1 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4 * python/python.c: Set gdbpy_should_print_stack default to off.
5 (set_python): Deprecate maint set python print-stack to
7 (_initialize_python): Deprecate maint set/show python print-stack.
8 Add new prefix command, python. Add new setting, print-backtrace.
9 * NEWS: Document set python print-stack. Document default change.
11 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
13 * python/py-inferior.c (infpy_dealloc): New function.
14 (inferior_to_inferior_object): Return a new object, or a
15 new reference to the existing object.
16 (find_thread_object): Cleanup references to inferior.
17 (delete_thread_object): Ditto.
18 * python/py-infthread.c (create_thread_object): Do not increment
19 inferior reference count.
21 2011-07-08 Tom Tromey <tromey@redhat.com>
23 * dwarf2loc.c (locexpr_regname): New function.
24 (locexpr_describe_location_piece): Use it.
25 (disassemble_dwarf_expression): Add per_cu argument. Use
27 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
28 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
30 (locexpr_describe_location_1): Add per_cu argument.
31 (locexpr_describe_location): Update.
32 (loclist_describe_location): Update.
34 2011-07-08 Tom Tromey <tromey@redhat.com>
36 * dwarf2expr.c (execute_stack_op): Add QUIT.
38 2011-07-07 Hui Zhu <teawater@gmail.com>
41 2011-07-06 Hui Zhu <teawater@gmail.com>
42 * remote.c (remote_start_remote): Add TRY_CATCH for
43 remote_get_trace_status.
44 * tracepoint.c (disconnect_tracing): Ditto.
46 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
48 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
49 variables as signed, not unsigned.
51 2011-07-06 Joel Brobecker <brobecker@adacore.com>
53 * jit.c (jit_inferior_init): Reformat forward declaration.
55 2011-07-06 Matt Rice <ratmice@gmail.com>
57 * MAINTAINERS (Write After Approval): Add myself to the list.
59 2011-07-06 Hui Zhu <teawater@gmail.com>
61 * remote.c (remote_start_remote): Add TRY_CATCH for
62 remote_get_trace_status.
63 * tracepoint.c (disconnect_tracing): Ditto.
65 2011-07-05 Tom Tromey <tromey@redhat.com>
67 * symtab.c (operator_chars): Now static.
68 * linespec.c (operator_chars): Don't declare.
70 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
72 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
74 2011-07-05 Tom Tromey <tromey@redhat.com>
76 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
77 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
78 (TYPE_CPLUS_REALLY_JAVA): New macro.
79 * dwarf2read.c (process_structure_scope): Set
80 TYPE_CPLUS_REALLY_JAVA.
82 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
84 * ada-lang.c: Fix typos.
85 * amd64-tdep.c: Likewise.
86 * breakpoint.c: Likewise.
87 * cli/cli-decode.c: Likewise.
88 * findcmd.c: Likewise.
89 * inline-frame.c: Likewise.
90 * mi/mi-main.c: Likewise.
91 * minsyms.c: Likewise.
92 * monitor.c: Likewise.
93 * monitor.h: Likewise.
94 * prologue-value.c: Likewise.
95 * reverse.c: Likewise.
96 * s390-tdep.c: Likewise.
98 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
100 * jit.c (jit_inferior_init): Forward declare.
101 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
103 2011-07-04 Joel Brobecker <brobecker@adacore.com>
105 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
107 2011-07-04 Tristan Gingold <gingold@adacore.com>
109 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
110 (tcb_fieldno): Add activation_link field.
111 (get_known_tasks_addr): Moved and rewritten.
112 (get_tcb_types_info): Set activation_link field.
113 (read_known_tasks_array): Add parameter. Rewritten.
114 (read_known_tasks_list): New function.
115 (read_known_tasks): New function.
116 (ada_build_task_list): Call read_known_tasks instead of
117 read_known_tasks_array.
118 * ravenscar-thread.c: Add first_task_name constant.
119 (has_ravenscar_runtime): Check for task list too.
121 2011-07-04 Tristan Gingold <gingold@adacore.com>
123 * ada-tasks.c: Renames fieldno to actb_fieldno.
124 (ada_get_task_number): Indentation.
125 (get_tcb_types_info): Remove all parameters. Write directly
127 (ptid_from_atcb_common): Adjust.
130 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
132 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
134 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
136 * ui-out.c (ui_out_field_core_addr): Mention that the function
137 description is in the header file.
138 * ui-out.h (ui_out_field_core_addr): Document function.
140 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
142 * ui-out.c (ui_out_get_field_separator): Remove unused function.
143 * ui-out.h (ui_out_get_field_separator): Remove prototype.
145 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
147 * symtab.c (expand_line_sal): Remove empty line.
149 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
151 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
152 same way as ELFOSABI_NONE.
153 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
155 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
157 * breakpoint.c: Fix typos in comments.
158 * linespec.c: Likewise.
159 * symtab.c: Likewise.
161 2011-07-04 Joel Brobecker <brobecker@adacore.com>
163 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
164 section in separate object files.
166 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
168 Fix false GCC warning.
169 * linespec.c (decode_line_1): Initialize values.
171 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
173 * linespec.c (find_method): Accept the function type automatically only
174 if it was specified with parameter types.
176 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
178 Stop on first linespec terminator instead of eating what we can.
179 * linespec.c (is_linespec_boundary): New function.
180 (name_end): Remove function.
181 (keep_name_info): New parameter on_boundary, replace the body.
182 (decode_line_1): Provide the parameter to keep_name_info.
183 (decode_compound): Likewise. Drop the trailing java return type
186 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
188 Fall back linespec to minimal symbols.
189 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
190 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
191 (find_method, symbol_found): Change error to cplusplus_error.
193 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
195 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
197 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
198 Tom Tromey <tromey@redhat.com>
200 * dwarf2read.c (check_physname): New variable.
201 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
202 (show_check_physname): New function.
203 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
205 2011-07-01 Joel Brobecker <brobecker@adacore.com>
207 * machoread.c (macho_symfile_read): Delete OBE comment.
209 2011-07-01 Joel Brobecker <brobecker@adacore.com>
211 * machoread.c (struct macho_oso_data): Delete.
212 (current_oso): Delete.
213 (macho_relocate_common_syms): New function, mostly extracted
215 (macho_add_oso_symfile): Call macho_relocate_common_syms.
216 Remove code that sets and unset current_oso.
217 (macho_symfile_relocate): Delete handling of common symbols,
218 now moved to macho_relocate_common_syms.
220 2011-07-01 Joel Brobecker <brobecker@adacore.com>
222 * darwin-nat.c (darwin_ptrace): Add documentation.
223 Set errno to zero before calling ptrace. If ptrace returns
224 -1 and errno is zero, then change then return zero.
225 (darwin_kill_inferior): Issue a warning instead of triggering
226 a failed assertion when the PT_KILL ptrace operations returned
229 2011-07-01 Joel Brobecker <brobecker@adacore.com>
231 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
232 only when inf->private->no_ptrace.
234 2011-07-01 Joel Brobecker <brobecker@adacore.com>
236 * ada-lang.c (print_it_exception): Print temporary catchpoints
237 as "Temporary catchpoint".
238 (print_mention_exception): Likewise.
240 2011-07-01 Tom Tromey <tromey@redhat.com>
242 * jv-lang.c (java_language_defn): Use java_printchar,
244 (java_get_encoding): New function.
245 (java_emit_char): Use generic_emit_char.
246 (java_printchar): New function.
247 (java_printstr): Likewise.
249 2011-07-01 Joel Brobecker <brobecker@adacore.com>
251 * ada-typeprint.c (print_record_type): If unable to decode
252 the name of the parent type, use the encoded name.
254 2011-07-01 Jean-Charles Delay <delay@adacore.com>
256 * ada-typeprint.c (ada_print_type): Fix both PAD type and
257 pointer to constrained packed array type output.
258 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
261 2011-07-01 Jean-Charles Delay <delay@adacore.com>
263 * ada-typeprint.c (print_array_type): removed if condition on show
264 being negative for bounds printing.
266 2011-07-01 Joel Brobecker <brobecker@adacore.com>
268 * ada-lang.c (ada_identical_enum_types_p): New function.
269 (symbols_are_identical_enums): New function.
270 (remove_extra_symbols): Do nothing if NSYMS < 2.
271 Use symbols_are_identical_enums.
273 2011-07-01 Joel Brobecker <brobecker@adacore.com>
275 * ada-valprint.c (ada_value_print): Handle typedefs.
277 2011-07-01 Joel Brobecker <brobecker@adacore.com>
279 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
281 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
283 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
284 (decode_constrained_packed_array): Likewise.
285 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
287 2011-07-01 Joel Brobecker <brobecker@adacore.com>
289 * ada-exp.y (convert_char_literal): Handle typedef types.
291 2011-07-01 Joel Brobecker <brobecker@adacore.com>
293 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
295 2011-06-30 Tom Tromey <tromey@redhat.com>
297 * varobj.c (varobj_create): Call do_cleanups on early exit path.
298 * valops.c (find_overload_match): Call do_cleanups on early exit
300 * solib.c (solib_find): Call do_cleanups on early exit path.
302 2011-06-30 Tom Tromey <tromey@redhat.com>
304 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
305 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
306 return paths. Defer final do_cleanups until last return.
307 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
310 2011-06-30 Tom Tromey <tromey@redhat.com>
312 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
314 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
316 * MAINTAINERS (Write After Approval): Add myself to the list.
318 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
320 Disable epilogue unwinders on recent GCCs.
321 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
322 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
323 * dwarf2read.c (process_full_comp_unit): Initialize
324 EPILOGUE_UNWIND_VALID.
325 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
326 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
327 * symtab.h (struct symtab): New field epilogue_unwind_valid.
329 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
331 Code cleanup - reformatting.
332 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
333 (producer_is_gcc_ge_4): ... here, change the return value.
334 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
337 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
339 Fix non-only rename list for Fortran modules import.
340 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
341 cp_add_using_directive caller.
342 (cp_add_using_directive): New parameter excludes, describe it. New
343 variables ix and param. Compare if also excludes match. Allocate NEW
344 with variable size, initialize EXCLUDES there.
345 (cp_lookup_symbol_imports): New variable excludep, test
346 current->EXCLUDES with it.
347 * cp-support.h: Include vec.h.
348 (struct using_direct): New field excludes, describe it.
349 (DEF_VEC_P (const_char_ptr)): New.
350 (cp_add_using_directive): New parameter excludes.
351 * defs.h (const_char_ptr): New typedef.
352 * dwarf2read.c (read_import_statement): New variables child_die,
353 excludes and cleanups, read in excludes.
354 (read_namespace): Adjust the cp_add_using_directive caller.
356 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
359 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
360 negative comparisons.
362 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
364 * mi/mi-main.c (mi_cmd_list_features): Emit
365 breakpoint-notifications.
367 2011-06-29 Tom Tromey <tromey@redhat.com>
370 * valprint.h (generic_emit_char, generic_printstr): Declare.
371 * valprint.c (wchar_printable, append_string_as_wide)
372 (print_wchar): Move from c-lang.c.
373 (generic_emit_char): New function; mostly taken from c_emit_char.
374 (generic_printstr): New function; mostly taken from c_printstr.
375 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
376 represented as arrays.
377 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
379 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
380 identically to TYPE_CODE_INT.
381 * f-lang.c (f_get_encoding): New function.
382 (f_emit_char): Use generic_emit_char.
383 (f_printchar): Replace comment.
384 (f_printstr): Use generic_printstr.
385 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
386 "character" types specially.
387 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
389 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
391 (c_emit_char): Call generic_emit_char.
392 (c_printstr): Call generic_printstr.
394 2011-06-29 Gary Benson <gbenson@redhat.com>
396 * breakpoint.c (bpstat_what): Removed duplicated case.
398 2011-06-28 Tom Tromey <tromey@redhat.com>
400 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
402 2011-06-27 Tom Tromey <tromey@redhat.com>
404 * valops.c (find_overload_match): Call do_cleanups before early
406 * top.c (execute_command): Call do_cleanups before early return.
407 (command_loop): Likewise.
408 * stack.c (backtrace_command): Make a null cleanup early. Don't
409 conditionally call do_cleanups.
410 * python/py-value.c (TRY_CATCH): Move cleanup handling into
412 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
413 so cleanups are always run.
414 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
415 * findcmd.c (parse_find_args): Call do_cleanups on early return
417 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
418 Don't conditionally call do_cleanups.
419 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
422 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
424 * MAINTAINERS (Write After Approval): Use default email address.
426 2011-06-27 Joel Brobecker <brobecker@adacore.com>
428 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
430 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
432 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
433 saved_regs_mask and copied_regs_mask fields.
434 (sparc_record_save_insn): New prototype.
435 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
436 (sparc_record_save_insn): New function.
437 (sparc_analyze_prologue): Add head comment. Recognize store insns
438 of call-saved registers. Use OFFSET consistently. Recognize flat
439 frames and cache their settings.
440 (sparc32_skip_prologue): Handle flat frames.
441 (sparc_frame_cache): Add frame_offset to the base address.
442 (sparc32_frame_cache): Adjust to new frame description.
443 (sparc32_frame_prev_register): Likewise.
444 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
445 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
446 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
447 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
448 frame by calling sparc_record_save_insn.
449 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
450 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
451 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
453 2011-06-27 Tristan Gingold <gingold@adacore.com>
455 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
456 field by map_addr and map_len.
457 (dwarf2_read_section): Adjust for the new bfd_mmap api.
458 (munmap_section_buffer): Likewise.
460 2011-06-24 Tom Tromey <tromey@redhat.com>
462 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
463 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
464 * python/python.c (gdbpy_parameter): Make 'arg' const.
465 (execute_gdb_command): Likewise.
466 (gdbpy_decode_line): Likewise. Copy it.
467 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
468 (gdbpy_write): Make 'arg' const.
469 * python/py-type.c (typy_lookup_typename): Make 'type_name'
471 (gdbpy_lookup_type): Likewise.
472 * python/py-prettyprint.c (print_children): Make 'name' const.
473 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
474 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
476 * python/py-function.c (fnpy_init): Make 'name' const.
477 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
478 (gdbpy_string_to_argv): Make 'input' const.
479 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
481 * gdbtypes.h (lookup_typename): Update.
482 * gdbtypes.c (lookup_typename): Make 'name' const.
483 (lookup_struct): Likewise.
484 (lookup_union): Likewise.
485 (lookup_enum): Likewise.
487 2011-06-24 Tom Tromey <tromey@redhat.com>
489 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
490 gdb_thread_db.h. Move all common/ entries to be together.
491 (TAGS): Don't depend on DEPFILES.
493 2011-06-23 Yao Qi <yao@codesourcery.com>
495 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
496 * remote.c (remote_start_remote): ... here.
497 * monitor.c (monitor_open): ... here.
499 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
501 * gdbtypes.c (append_composite_type_field_aligned): Fix
502 calculation of bit position based on alignment.
504 2011-06-22 Pedro Alves <pedro@codesourcery.com>
506 * breakpoint.c (bpstat_stop_status): Call the check_status
507 breakpoint_ops method.
508 (print_one_breakpoint_location): Also print the condition for Ada
509 exception catchpoints.
510 (allocate_bp_location): New, factored out from
511 allocate_bp_location.
512 (allocate_bp_location): Adjust. Call the owner breakpoint's
513 allocate_location method, if there is one.
514 (free_bp_location): Call the locations's dtor method, if there is
516 (init_raw_breakpoint_without_location): New breakpoint_ops
518 (set_raw_breakpoint_without_location): Adjust.
519 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
520 (set_raw_breakpoint): Adjust.
521 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
522 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
523 re_set and check_status methods.
524 (init_catchpoint): Don't memset, initialize thread, addr_string
525 and enable_state. Pass the ops down to init_raw_breakpoint.
526 (install_catchpoint): Rename to ...
527 (install_breakpoint): ... this, and make extern.
528 (create_fork_vfork_event_catchpoint): Adjust.
529 (catch_exec_breakpoint_ops): Install NULL allocate_location,
530 re_set and check_status methods.
531 (create_syscall_event_catchpoint): Adjust.
532 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
533 (masked_watchpoint_breakpoint_ops): Install NULL
534 allocate_location, re_set and check_status methods.
535 (catch_exec_command_1): Adjust.
536 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
537 re_set and check_status methods.
538 (create_ada_exception_breakpoint): Rename to ...
539 (init_ada_exception_breakpoint): ... this. Add a struct
540 breakpoint parameter, and delete the exp_string, cond_string and
541 cond parameters. Use init_raw_breakpoint, and don't install or
542 mention the breakpoint yet. Don't clear breakpoint fields that
543 init_raw_breakpoint already clears.
544 (re_set_breakpoint): Delete, split into ...
545 (breakpoint_re_set_default, prepare_re_set_context): ... these new
547 (breakpoint_re_set_one): Call the breakpoint's
548 breakpoint_ops->re_set implementation, if there's one. Adjust.
549 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
550 (struct bp_location_ops): New type.
551 (struct bp_location): New field `ops'.
552 (struct breakpoint_ops): New `allocate_location', `re_set' and
553 `check_status' fields. Make `breakpoint_hit''s description match
555 (init_bp_location): Declare.
556 (breakpoint_re_set_default): Declare.
557 (create_ada_exception_breakpoint): Rename to ...
558 (init_ada_exception_breakpoint): ... this. Add a struct
559 breakpoint parameter, and delete the exp_string, cond_string and
561 (install_breakpoint): Declare.
562 * ada-lang.c: Include exceptions.h.
563 <Ada exceptions description>: Update.
564 (struct ada_catchpoint_location): New type.
565 (ada_catchpoint_location_dtor): New function.
566 (ada_catchpoint_location_ops): New global.
567 (ada_catchpoint): New type.
568 (create_excep_cond_exprs): New function.
569 (dtor_exception, allocate_location_exception, re_set_exception)
570 (should_stop_exception, check_status_exception): New functions.
571 (print_one_exception, print_mention_exception)
572 (print_recreate_exception): Adjust.
573 (dtor_catch_exception, allocate_location_catch_exception)
574 (re_set_catch_exception, check_status_catch_exception): New
576 (catch_exception_breakpoint_ops): Install them.
577 (dtor_catch_exception_unhandled)
578 (allocate_location_catch_exception_unhandled)
579 (re_set_catch_exception_unhandled)
580 (check_status_catch_exception_unhandled): New functions.
581 (catch_exception_unhandled_breakpoint_ops): Install them.
582 (dtor_catch_assert, allocate_location_catch_assert)
583 (re_set_catch_assert, check_status_catch_assert): New functions.
584 (catch_assert_breakpoint_ops): Install them.
585 (ada_exception_catchpoint_p): Delete.
586 (catch_ada_exception_command_split)
587 (ada_exception_catchpoint_cond_string): Rename exp_string
588 parameter to excep_string. Adjust.
589 (ada_parse_catchpoint_condition): Delete.
590 (ada_exception_sal): Rename the exp_string parameter to
591 excep_string. Delete the cond_string and cond parameters.
593 (ada_decode_exception_location): Rename the exp_string parameter
594 to excep_string. Delete the cond_string and cond parameters.
596 (create_ada_exception_catchpoint): New function.
597 (catch_ada_exception_command, ada_decode_assert_location)
598 (catch_assert_command): Adjust.
599 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
601 2011-06-22 Pedro Alves <pedro@codesourcery.com>
603 * ada-lang.c: Include arch-utils.h.
604 (ada_decode_exception_location): Make static.
605 (catch_ada_exception_command): Moved here from breakpoint.c.
606 (ada_decode_assert_location): Make static.
607 (catch_assert_command): Moved here from breakpoint.c.
608 (_initialize_ada_lang): Install the exception and assert
609 catchpoint commands here.
610 * ada-lang.h (ada_decode_exception_location)
611 (ada_decode_assert_location): Delete declarations.
612 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
614 (create_ada_exception_breakpoint): Make extern.
615 (catch_ada_exception_command, catch_assert_command): Moved to
617 (add_catch_command): Make extern.
618 (_initilize_breakpoint): Don't install the exception and assert
619 catchpoint commands here.
620 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
622 (add_catch_command, create_ada_exception_breakpoint): Declare.
624 2011-06-22 Pedro Alves <pedro@codesourcery.com>
626 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
627 the breakpoint to the breakpoint chain here.
628 (set_raw_breakpoint_without_location): Add the breakpoint to the
629 breakpoint chain here.
630 (init_raw_breakpoint): Adjust comments.
631 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
633 (init_catchpoint): Don't set the catchpoint's breakpoint number
635 (install_catchpoint): New function.
636 (create_fork_vfork_event_catchpoint)
637 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
638 use install_catchpoint.
640 2011-06-22 Pedro Alves <pedro@codesourcery.com>
642 * breakpoint.c (create_catchpoint_without_mention)
643 (create_catchpoint): Delete.
645 2011-06-22 Pedro Alves <pedro@codesourcery.com>
647 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
648 * breakpoint.c (init_raw_breakpoint_without_location): Remove
649 reference to exec_pathname.
650 (struct exec_catchpoint): New type.
651 (dtor_catch_exec): New function.
652 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
653 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
654 (catch_exec_command_1): Adjust to use init_catchpoint.
655 (delete_breakpoint): Remove reference to exec_pathname.
657 2011-06-22 Pedro Alves <pedro@codesourcery.com>
659 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
660 (struct breakpoint): Delete field `syscalls_to_be_caught'.
661 * breakpoint.c (init_raw_breakpoint_without_location): Remove
662 reference to syscalls_to_be_caught.
663 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
665 (struct syscall_catchpoint): New type.
666 (dtor_catch_syscall): New function.
667 (insert_catch_syscall, remove_catch_syscall)
668 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
669 (print_recreate_catch_syscall): Adjust.
670 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
671 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
672 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
673 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
674 (masked_watchpoint_breakpoint_ops)
675 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
676 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
677 there is one. Remove references to syscalls_to_be_caught.
678 (catching_syscall_number): Adjust.
679 * ada-lang.c (catch_exception_breakpoint_ops)
680 (catch_exception_unhandled_breakpoint_ops)
681 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
683 2011-06-22 Pedro Alves <pedro@codesourcery.com>
685 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
687 * breakpoint.c (init_raw_breakpoint_without_location): Remove
688 reference to forked_inferior_pid.
689 (struct fork_catchpoint): New type.
690 (breakpoint_hit_catch_fork, print_it_catch_fork)
691 (print_one_catch_fork, breakpoint_hit_catch_vfork)
692 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
693 (create_fork_vfork_event_catchpoint): Adjust to use
696 2011-06-22 Pedro Alves <pedro@codesourcery.com>
698 * breakpoint.c (add_to_breakpoint_chain)
699 (init_raw_breakpoint_without_location): New functions, factored
701 (set_raw_breakpoint_without_location): ... this one.
702 (init_raw_breakpoint): New function, factored out from
703 set_raw_breakpoint and adjusted to use
704 init_raw_breakpoint_without_location.
705 (set_raw_breakpoint): Adjust.
706 (init_catchpoint): New function, factored out from
707 create_catchpoint_without_mention and adjusted to use
709 (create_catchpoint_without_mention): Adjust.
711 2011-06-22 Tom Tromey <tromey@redhat.com>
713 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
714 argument of 0 specially.
716 2011-06-22 Yao Qi <yao@codesourcery.com>
718 * infrun.c (handle_inferior_event): Remove write-only local variable
719 `sw_single_step_trap_p'.
721 2011-06-20 Tom Tromey <tromey@redhat.com>
723 * symtab.c (lookup_language_this): End loop if block is NULL.
725 2011-06-17 Tom Tromey <tromey@redhat.com>
727 * valops.c (value_of_this): Use lookup_language_this.
728 * symtab.h (lookup_language_this): Declare.
729 * symtab.c (lookup_language_this): New function.
730 (lookup_symbol_aux): Use lookup_language_this.
731 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
733 2011-06-17 Tom Tromey <tromey@redhat.com>
735 * value.h (value_of_this): Update.
736 (value_of_local): Remove.
737 * valops.c (value_of_this): Rename from value_of_local. Change
739 * p-exp.y (exp): Update.
740 (variable): Likewise.
741 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
743 2011-06-17 Tom Tromey <tromey@redhat.com>
745 * valops.c (value_of_local): Complain if NAME is NULL.
746 * std-operator.def (OP_OBJC_SELF): Remove.
747 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
748 * objc-exp.y (name_not_typename): Use OP_THIS.
749 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
751 <OP_OBJC_SELF>: Remove.
752 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
754 2011-06-16 Tristan Gingold <gingold@adacore.com>
756 * python/py-events.h (gdb_py_events): Make it extern.
757 * python/py-evtregistry.c (gdb_py_events): Declare.
759 2011-06-16 Hui Zhu <teawater@gmail.com>
761 * remote.c (remote_trace_set_readonly_regions): Add check for
762 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
765 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
767 * arm-linux-tdep.c: Include "auxv.h".
769 (ARM_LINUX_SIZEOF_VFP): Define.
770 (arm_linux_supply_vfp): New function.
771 (arm_linux_collect_vfp): Likewise.
772 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
773 (arm_linux_fpa_regset_sections): New variable.
774 (arm_linux_vfp_regset_sections): Likewise.
775 (arm_linux_core_read_description): New function.
776 (arm_linux_init_abi): Install arm_linux_core_read_description and
777 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
778 appropriate for the architecture.
779 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
780 (tdesc_arm_with_m): Declare.
781 (tdesc_arm_with_iwmmxt): Likewise.
782 (tdesc_arm_with_vfpv2): Likewise.
783 (tdesc_arm_with_vfpv3): Likewise.
784 (tdesc_arm_with_neon): Likewise.
785 * arm-linux-nat.c: Move features/*.c includes ...
786 * arm-tdep.c: ... here.
787 * arm-linux-nat.c (arm_linux_read_description): Move initializing
788 target description data structures ...
789 * arm-tdep.c (_initialize_arm_tdep): ... here.
790 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
791 HWCAP_VFPv3D16): Move definitions ...
792 * arm-linux-tdep.h: ... here.
794 2011-06-15 Hui Zhu <teawater@gmail.com>
796 * remote.c (remote_trace_set_readonly_regions): Add a check for
799 2011-06-14 Tom Tromey <tromey@redhat.com>
801 * coffread.c (coffread_objfile): Rename from current_objfile.
802 * dbxread.c (dbxread_objfile): Rename from current_objfile.
803 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
805 2011-06-14 Tom Tromey <tromey@redhat.com>
807 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
808 (class_symtab): Remove.
809 (jv_dynamics_progspace_key): New global.
810 (jv_per_objfile_free): Reset program space data. Update assert.
812 (get_dynamics_objfile): Use and set program space data.
813 (get_java_class_symtab): Use get_dynamics_objfile.
814 (add_class_symbol): Likewise.
815 (java_link_class_type): Likewise.
816 (java_object_type, jv_clear_object_type, set_java_object_type):
818 (get_java_object_type): Update. Don't cache result.
819 (is_object_type): Don't call set_java_object_type.
820 (_initialize_java_language): Don't set jv_type_objfile_data_key;
821 initialize jv_dynamics_progspace_key.
823 2011-06-14 Tom Tromey <tromey@redhat.com>
825 * symtab.h (current_objfile): Don't declare.
826 * objfiles.h (current_objfile): Don't declare.
827 * objfiles.c (current_objfile): Remove.
828 * mdebugread.c (current_objfile): New file-scope global.
829 * dbxread.c (current_objfile): New file-scope global.
830 * coffread.c (current_objfile): New file-scope global.
832 2011-06-13 Pedro Alves <pedro@codesourcery.com>
834 * top.h (line): Rename to ...
835 (saved_command_line): ... this.
836 (linesize): Rename to ...
837 (saved_command_line_size): ... this.
838 * top.c (line): Rename to ...
839 (saved_command_line): ... this.
840 (linesize): Rename to ...
841 (saved_command_line_size): ... this.
842 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
843 * event-top.c (command_line_handler): Adjust.
844 * main.c (captured_main): Adjust.
846 2011-06-12 Mark Kettenis <kettenis@gnu.org>
848 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
849 get_frame_func instead of get_frame_pc to determine the code
850 address used to construct the frame ID.
851 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
852 (i386_epilogue_frame_this_id): Likewise.
853 (i386_epilogue_frame_prev_register): New function.
854 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
855 (i386_stack_tramp_frame_sniffer): Fix coding style.
856 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
857 (i386_gdbarch_init): Fix comments.
859 2011-06-12 Mark Kettenis <kettenis@gnu.org>
861 * i386-tdep.c (i386_match_insn_block): Use length of the proper
862 instruction when walking back through the instruction stream.
864 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
866 * symtab.c (output_partial_symbol_filename): Exchange the filename and
867 fullname parameters order.
869 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
872 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
874 * psymtab.c (map_symbol_filenames_psymtab)
875 (map_partial_symbol_filenames): Likewise.
876 * psymtab.h: Include symfile.h.
877 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
878 * symfile.h (symbol_filename_ftype): New.
879 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
880 map_symbol_filenames, clarify more the naming in comment.
882 2011-06-07 Doug Evans <dje@google.com>
884 * cc-with-index.sh: Fix typos in comment.
885 Look for ../../gdb, for fullname.exp.
887 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
888 Pedro Alves <pedro@codesourcery.com>
890 * cli/cli-cmds.c (shell_escape): Use waitpid.
891 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
893 2011-06-07 Tristan Gingold <gingold@adacore.com>
895 * xcoffread.c (dwarf2_xcoff_names): New variable.
896 (aix_process_linenos): Add a guard.
897 (xcoff_symfile_finish): Free dwarf2.
898 (xcoff_initial_scan): Add dwarf2 support.
900 2011-06-06 Pedro Alves <pedro@codesourcery.com>
902 * infcall.c (run_inferior_call): Don't mask async. Instead force
903 a synchronous wait, if the target can async.
905 * target.h (struct target_ops): Delete to_async_mask.
906 (target_async_mask): Delete.
907 * target.c (update_current_target): Delete references to to_async_mask.
908 * linux-nat.c (linux_nat_async_mask_value): Delete.
909 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
910 to linux_nat_async_mask_value.
911 (linux_nat_async_mask): Delete.
912 (linux_nat_async, linux_nat_close): Remove references to
913 linux_nat_async_mask_value.
914 * record.c (record_async_mask_value): Delete.
915 (record_async): Remove references to record_async_mask_value.
916 (record_async_mask): Delete.
917 (record_can_async_p, record_is_async_p): Remove references to
918 record_async_mask_value.
919 (init_record_ops, init_record_core_ops): Remove references to
921 * remote.c (remote_async_mask_value): Delete.
922 (init_remote_ops): Remove reference to remote_async_mask.
923 (remote_can_async_p, remote_is_async_p): Remove references to
924 remote_async_mask_value.
925 (remote_async): Remove references to remote_async_mask_value.
926 (remote_async_mask): Delete.
928 * infrun.c (fetch_inferior_event): Don't claim registers changed
929 if the current thread is already not executing.
931 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
933 From Stephen Kitt <steve@sk2.org>
934 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
935 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
937 2011-06-03 Joel Brobecker <brobecker@adacore.com>
939 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
940 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
942 2011-06-03 Tom Tromey <tromey@redhat.com>
944 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
946 * python/py-exitedevent.c (create_exited_event_object): Change
947 type of 'exit_code'. Optionally add exit_code attribute.
948 (emit_exited_event): Change type of 'exit_code'.
949 * python/py-event.h (emit_exited_event): Update.
950 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
951 * infrun.c (handle_inferior_event): Set exit code fields on
953 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
955 * inferior.c (exit_inferior_1): Initialize new fields.
957 2011-06-03 Tom Tromey <tromey@redhat.com>
959 * dwarf2expr.c (get_signed_type): New function.
960 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
962 2011-06-02 Keith Seitz <keiths@redhat.com>
964 * objc-lang.c (find_methods): Increment objfile_csym earlier.
966 2011-06-02 Pedro Alves <pedro@codesourcery.com>
968 * top.h (simplified_command_loop): Delete declaration.
970 2011-06-01 Mike Frysinger <vapier@gentoo.org>
972 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
973 gdb_sysroot to the "len" variable. Append both to "arg_buf".
975 2011-06-01 Yao Qi <yao@codesourcery.com>
977 * objfiles.h (obj_section_addr): Update reference to objfile from
979 (obj_section_endaddr): Likewise.
981 2011-06-01 Daniel Jacobowitz <drow@false.org>
983 * MAINTAINERS: Update my email address and affiliation. Also
984 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
986 2010-05-31 Keith Seitz <keiths@redhat.com>
989 * linespec.c (get_search_block): New function.
990 (find_methods): Add FILE_SYMTATB parameter and use it and
991 get_search_block to pass an appropriate block to
992 lookup_symbol_in_namespace.
993 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
994 Check if *ARGPTR starts with a filename first.
995 If it does, call locate_first_half again to locate the next
996 "first half" of the linespec.
997 Pass FILE_SYMTATB to decode_objc and decode_compound.
998 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
999 (locate_first_half): Stop on the first colon seen.
1000 (decode_compound): Add FILE_SYMTAB parameter.
1001 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
1002 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
1003 get_search_block with lookup_symbol.
1004 (find_method): Add FILE_SYMTAB parameter and pass it to
1006 (decode_objc): Use get_search_block.
1008 2010-05-31 Keith Seitz <keiths@redhat.com>
1011 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
1012 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
1013 and CP_ANONYMOUS_NAMESPACE_LEN.
1014 (cp_is_anonymous): Likewise.
1015 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
1016 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
1017 * dwarf2read.c (namespace_name): Likewise.
1018 (fixup_partial_die): Likewise.
1019 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
1020 seen in the input, keep it.
1022 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1024 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
1025 * inf-loop.h (inferior_event_handler_wrapper): Delete.
1026 * inf-loop.c (inferior_event_handler_wrapper): Delete.
1027 (inferior_event_handler): Don't handle INF_QUIT_REQ.
1028 * remote.c (_initialize_remote): Register
1029 async_remote_interrupt_twice directly as
1030 sigint_remote_twice_token event.
1032 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1034 * target.h (enum inferior_event_type): Delete INF_ERROR.
1035 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
1037 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1039 * interps.c (interp_set): Don't cancel continuations.
1041 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1043 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
1045 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1047 * continuations.h (continuation_ftype): Add `err' parameter.
1048 Document parameters.
1049 (do_all_continuations, do_all_continuations_thread)
1050 (do_all_intermediate_continuations)
1051 (do_all_intermediate_continuations_thread)
1052 (do_all_inferior_continuations): Add `err' parameter.
1053 * continuations.c (do_my_continuations_1, do_my_continuations)
1054 (do_all_inferior_continuations, do_all_continuations_ptid)
1055 (do_all_continuations_thread_callback)
1056 (do_all_continuations_thread, do_all_continuations)
1057 (do_all_intermediate_continuations_thread_callback)
1058 (do_all_intermediate_continuations_thread)
1059 (do_all_intermediate_continuations): Add `err' parameter, and pass
1060 it down all the way to the continuations proper.
1061 * inf-loop.c (inferior_event_handler): If fetching an inferior
1062 event throws an error, don't pop the target, and still call the
1063 continuations, but with `err' set. Adjust all other continuation
1065 * breakpoint.c (until_break_command_continuation): Add `err'
1067 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
1068 issue another step if `err' is set.
1069 (struct until_next_continuation_args): New.
1070 (until_next_continuation): Add `err' parameter. Adjust.
1071 (until_next_command): Adjust.
1072 (struct finish_command_continuation_args): Add `thread' field.
1073 (finish_command_continuation): Add `err' parameter. Handle it.
1074 (finish_forward): Adjust.
1075 (attach_command_continuation): Add `err' parameter. Handle it.
1076 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1077 cancel the continuations.
1078 * interps.c (interp_set): Adjust to cancel the continuations.
1079 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1080 continuations rather than discarding.
1081 (free_thread): Don't clear thread inferior resources here.
1082 (delete_thread_1): Do it here instead. And do it before removing
1083 the thread from the threads list. Tag the thread as exited before
1084 clearing thread inferior resources.
1086 2011-05-30 Joel Brobecker <brobecker@adacore.com>
1088 * infcall.c (call_function_by_hand): Rephrase error message.
1090 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1092 * defs.h (struct thread_info, struct inferior): Delete forward
1094 * breakpoint.h (struct thread_info): New forward declaration.
1095 * observer.sh (struct inferior): New forward declaration.
1096 * python/python-internal.h (struct inferior): New forward
1099 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1101 * defs.h (struct continuation, continuation_ftype)
1102 (continuation_free_arg_ftype, add_continuation)
1103 (do_all_continuations, do_all_continuations_thread)
1104 (discard_all_continuations, discard_all_continuations_thread)
1105 (add_intermediate_continuation, do_all_intermediate_continuations)
1106 (do_all_intermediate_continuations_thread)
1107 (discard_all_intermediate_continuations)
1108 (discard_all_intermediate_continuations_thread)
1109 (add_inferior_continuation, do_all_inferior_continuations)
1110 (discard_all_inferior_continuations): Move to ...
1111 * continuations.h: ... this new file.
1112 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1113 infcmd.c, inferior.c, infrun.c, interps.c: Include
1116 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1117 Doug Evans <dje@google.com>
1119 Fix PR 10970, PR 12702.
1120 * linux-nat.c (linux_lwp_is_zombie): New function.
1121 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1122 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1124 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1126 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1128 (add_continuation, add_intermediate_continuation)
1129 (add_inferior_continuation): Use them.
1130 * continuations.c (struct continuation): Use them.
1131 (make_continuation_ftype): Delete.
1132 (make_continuation, add_inferior_continuation, add_continuation)
1133 (add_intermediate_continuation): Use continuation_ftype and
1134 continuation_free_arg_ftype. Rename parameters to shorter names.
1136 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1138 * continuations.c (make_continuation): Make it return void.
1139 (do_my_continuations): Rename to ...
1140 (do_my_continuations_1): ... this. Remove old_chain parameter and
1142 (do_my_continuations): New.
1143 (discard_my_continuations): Rename to ...
1144 (discard_my_continuations_1): ... this. Remove old_chain
1145 parameter and adjust.
1146 (discard_my_continuations): New.
1147 (add_inferior_continuation): Simplify.
1148 (do_all_inferior_continuations): Reimplement on top
1149 do_my_continuations.
1150 (discard_all_inferior_continuations): Simplify.
1151 (add_continuation): Simplify.
1152 (do_all_continuations_ptid): Simplify.
1153 (discard_all_continuations_thread_callback): Simplify.
1154 (add_intermediate_continuation): Simplify.
1155 (discard_all_intermediate_continuations_thread_callback):
1158 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1160 * utils.c (struct continuation, add_continuation)
1161 (add_inferior_continuation)
1162 (do_all_inferior_continuations, discard_all_inferior_continuations)
1163 (restore_thread_cleanup, do_all_continuations_ptid)
1164 (do_all_continuations_thread_callback)
1165 (do_all_continuations_thread, do_all_continuations)
1166 (discard_all_continuations_thread_callback)
1167 (discard_all_continuations_thread, discard_all_continuations)
1168 (add_intermediate_continuation)
1169 (do_all_intermediate_continuations_thread_callback)
1170 (do_all_intermediate_continuations_thread)
1171 (do_all_intermediate_continuations)
1172 (discard_all_intermediate_continuations_thread_callback)
1173 (discard_all_intermediate_continuations_thread)
1174 (discard_all_intermediate_continuations): Move to ...
1175 * continuations.c: ... this new file, and adjust to no longer
1176 implement continuations on top of cleanups.
1177 * Makefile.in (SFILES): Add continuations.c.
1178 (COMMON_OBS): Add continuations.o.
1180 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1182 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1183 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1184 Internal error on invalid values.
1185 * reverse.c: Don't handle EXEC_ERROR.
1186 * mi/mi-main.c: Don't handle EXEC_ERROR.
1188 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1190 * record.c: Include event-loop.h, inf-loop.h.
1191 (record_beneath_to_async): New global.
1192 (tmp_to_async): New global.
1193 (record_async_inferior_event_token): New global.
1194 (record_open_1): Don't error out if async is enabled.
1195 (record_open): Handle to_async. Create an async event source in
1197 (record_close): Delete the async event source.
1198 (record_resumed): New global.
1199 (record_execution_dir): New global.
1200 (record_resume, record_core_resume): Set them. Register the
1201 target on the event loop.
1202 (record_wait): Rename to ...
1203 (record_wait_1): ... this. Add more debug output. Handle
1204 TARGET_WNOHANG, and the target beneath returning
1205 TARGET_WAITKIND_IGNORE.
1206 (record_wait): Reimplement on top of record_wait_1.
1207 (record_async_mask_value): New global.
1208 (record_async, record_async_mask, record_can_async_p)
1209 (record_is_async_p, record_execution_direction): New functions.
1210 (init_record_ops, init_record_core_ops): Install new methods.
1211 * infrun.c (fetch_inferior_event): Temporarily switch the global
1212 execution direction to the direction the target was going.
1213 (execution_direction): Change type to int.
1214 * target.c (default_execution_direction): New function.
1215 (update_current_target): Inherit and de_fault
1216 to_execution_direction.
1217 * target.h (struct target_ops) <to_execution_direction>: New
1219 (target_execution_direction): New macro.
1220 * inferior.h (execution_direction): Change type to int.
1222 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1224 * infcall.c (call_function_by_hand): Don't allow calling functions
1225 in reverse execution mode.
1227 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1229 * infcmd.c (finish_command): Allow async finish in reverse.
1231 2011-05-26 Yao Qi <yao@codesourcery.com>
1233 * gdb_thread_db.h: Delete. Move to ...
1234 * common/gdb_thread_db.h: ... here.
1236 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1238 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1239 function's entry point instead of a manually managed momentary
1240 breakpoint, and only ever issue one proceed call.
1241 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1242 doing a reverse-finish, switch to stepi mode, to do another step.
1243 (insert_step_resume_breakpoint_at_sal): Make public.
1244 (normal_stop): No need to save function value return registers if
1246 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1248 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1250 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1251 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1252 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
1254 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1255 step-resume breakpoints.
1256 (print_it_typical): Handle bp_hp_step_resume.
1257 (bpstat_what): Ditto.
1258 (bptype_string): Ditto.
1259 (print_one_breakpoint_location): Ditto.
1260 (allocate_bp_location): Ditto.
1262 (breakpoint_re_set_one): Ditto.
1263 * infrun.c (handle_inferior_event): Adjust. Split
1264 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1265 BPSTAT_WHAT_HP_STEP_RESUME.
1266 (insert_step_resume_breakpoint_at_sal): Rename to ...
1267 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
1268 parameter. Handle it.
1269 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1270 insert_step_resume_breakpoint_at_sal_1.
1271 (insert_step_resume_breakpoint_at_frame): Rename to ...
1272 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
1273 set a high-priority step-resume breakpoint.
1274 (insert_step_resume_breakpoint_at_frame): Adjust comment.
1275 (insert_step_resume_breakpoint_at_caller): Ditto.
1277 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1279 * breakpoint.c (iterate_over_related_breakpoints): New.
1280 (do_map_delete_breakpoint): New.
1281 (delete_command): Pass do_map_delete_breakpoint to
1282 map_breakpoint_numbers.
1283 (do_disable_breakpoint): New.
1284 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1286 (do_enable_breakpoint): Rename to ...
1287 (enable_breakpoint_disp): ... this.
1288 (enable_breakpoint): Adjust.
1289 (do_enable_breakpoint): New.
1290 (enable_once_breakpoint): Delete.
1291 (do_map_enable_breakpoint): New.
1292 (do_map_enable_once_breakpoint): New.
1293 (enable_once_command, enable_delete_command)
1294 (delete_trace_command): Iterate over the breakpoint's related
1297 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1299 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1300 for ALPHA_ZERO_REGNUM.
1301 (alpha_supply_int_regs): Explicitly supply zero as the value for
1302 ALPHA_ZERO_REGNUM in the register cache.
1303 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1305 2011-05-26 Yao Qi <yao@codesourcery.com>
1307 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1309 2011-05-26 Tristan Gingold <gingold@adacore.com>
1311 * symfile.h (struct dwarf2_section_names): New type.
1312 (struct dwarf2_debug_sections): New type.
1313 (dwarf2_has_info): Add parameter.
1314 * dwarf2read.c (dwarf2_elf_names): New variable.
1315 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1316 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1317 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1318 (dwarf2_has_info): Add names parameter. Pass names
1319 to dwarf2_locate_sections.
1320 (section_is_p): Rewrite using the names parameter.
1321 (dwarf2_locate_sections): Use section names from the names parameter.
1322 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1323 * elfread.c (read_psyms): Ditto.
1324 * machoread.c (macho_symfile_read): Ditto.
1326 2011-05-25 Andreas Schwab <schwab@redhat.com>
1329 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1331 2011-05-24 Keith Seitz <keiths@redhat.com>
1334 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1335 (decode_compound): Unconditionally call keep_name_info.
1337 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1339 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1340 scope, clear its command list.
1341 (map_breakpoint_numbers): Don't walk the related breakpoints list
1344 2011-05-24 Tom Tromey <tromey@redhat.com>
1346 * MAINTAINERS: Move Jim Blandy to past maintainers.
1348 2011-05-24 Tristan Gingold <gingold@adacore.com>
1350 * symfile.h (enum dwarf2_section_enum): New type.
1351 (dwarf2_get_section_info): New prototype.
1352 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1353 section_name by sect. Use a switch to select the info.
1354 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1355 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1357 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1359 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1360 shared library event breakpoint if there's no execution.
1362 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
1364 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1365 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1367 2011-05-23 Tom Tromey <tromey@redhat.com>
1369 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1372 2011-05-23 Doug Evans <dje@google.com>
1374 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1375 entry for RuntimeError to doc string.
1377 2011-05-23 Jerome Guitton <guitton@adacore.com>
1379 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1380 sequence for probing loops.
1382 2011-05-23 Pedro Alves <pedro@codesourcery.com>
1384 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1387 2011-05-21 Mark Kettenis <kettenis@gnu.org>
1389 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1390 zero as the value for %g0 in the register cache.
1391 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1392 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1394 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1396 * infrun.c (proceed): Set previous_inferior_ptid here.
1397 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1398 inferior_ptid, not null_ptid.
1399 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1400 (fetch_inferior_event): Nor here.
1402 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1404 * inf-loop.c (inferior_event_handler): Only output a message if
1407 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
1409 * MAINTAINERS: Update my e-mail address.
1411 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1413 * infrun.c (proceed): Switch the inferior event loop to
1414 INF_EXEC_COMPLETE if the target refused to resume from a
1417 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1419 * infcmd.c: Include "inf-loop.h".
1420 (step_once): When stepping into an inline subroutine, pretend the
1421 target has run. If the target can async, switch the inferior
1422 event loop to INF_EXEC_COMPLETE.
1423 * inferior.h (user_visible_resume_ptid): Declare.
1424 * infrun.c (user_visible_resume_ptid): New function, factored out
1427 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1428 that the current thread is running. Merge async and sync
1431 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1433 * infcmd.c (step_1): Simplify synchronous case.
1435 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1437 * tracepoint.c: Include exceptions.h.
1438 (TFILE_PID): Move higher in file.
1439 (tfile_open): Delay pushing the tfile target until we're assured
1440 the tfile header is present in the file. Wrap reading the initial
1441 newline-terminated lines in TRY_CATCH. Pop the target if the
1442 initial setup failed. Add the tfile's thread immediately
1443 aftwards, before any non-essential setup. Don't skip
1444 post_create_inferior if there are no traceframes present in the
1446 (tfile_close): Remove redundant check for null before xfree call.
1447 (tfile_thread_alive): New function.
1448 (init_tfile_ops): Register it as to_thread_alive callback.
1450 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1452 * tracepoint.c (tfile_open): Delete #if 0'd code.
1454 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1456 Fix -readnow for -gdwarf-4 unused type units.
1457 * dwarf2read.c (struct signatured_type): Remove the field offset.
1458 (create_signatured_type_table_from_index): Remove its initialization.
1459 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1460 instead. Add a complaint call.
1461 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1462 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1463 (lookup_signatured_type_at_offset, read_signatured_type)
1464 (write_one_signatured_type): Update the field for per_cu.
1466 2011-05-19 Tom Tromey <tromey@redhat.com>
1468 * python/py-inferior.c (python_inferior_exit): Use
1470 (python_on_resume): Likewise.
1472 2011-05-19 Matt Rice <ratmice@gmail.com>
1474 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1476 2011-05-19 Hui Zhu <teawater@gmail.com>
1478 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1480 2011-05-19 Hui Zhu <teawater@gmail.com>
1482 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1484 2011-05-18 Tom Tromey <tromey@redhat.com>
1486 * dwarf2read.c (dwarf2_add_field): Constify.
1487 * value.c (value_static_field): Constify.
1488 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1490 * ax-gdb.c (gen_static_field): Constify
1492 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1494 * linux-nat.c (kill_callback): Use SIGKILL first.
1496 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1498 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1500 2011-05-18 Tom Tromey <tromey@redhat.com>
1502 * value.c (value_fn_field): Constify.
1503 * symtab.c (gdb_mangle_name): Constify.
1504 * stabsread.c (update_method_name_from_physname): Make 'physname'
1506 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1507 const. Use explicit fputc_filtered loop.
1508 (pascal_type_print_base): Constify.
1509 * p-lang.h (pascal_type_print_method_args): Update.
1510 * linespec.c (add_matching_methods): Constify.
1511 (add_constructors): Likewise.
1512 * jv-typeprint.c (java_type_print_base): Constify.
1513 * gdbtypes.h (struct cplus_struct_type)
1514 <fn_fieldlist.fn_field.physname>: Now const.
1515 * dwarf2read.c (compute_delayed_physnames): Constify.
1516 (dwarf2_add_member_fn): Likewise.
1517 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1519 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1521 * infrun.c (resume): Mention which is the current thread, and its
1522 current PC in debug output.
1523 (prepare_to_proceed): Mention the thread switching in debug
1526 2011-05-18 Tom Tromey <tromey@redhat.com>
1528 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1529 path check. Use xmalloc and cleanups.
1530 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1532 2011-05-17 Tom Tromey <tromey@redhat.com>
1534 * cp-valprint.c (cp_print_value_fields): Catch errors from
1537 2011-05-17 Tom Tromey <tromey@redhat.com>
1539 * dwarf2read.c (dwarf2_get_die_type): Call
1540 get_die_type_at_offset.
1541 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1542 get_base_type function.
1544 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1546 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1549 2011-05-16 Doug Evans <dje@google.com>
1551 * python/py-auto-load.c (source_section_scripts): Mention objfile
1554 2011-05-15 Doug Evans <dje@google.com>
1556 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1557 (try_thread_db_load_from_pdir): Call it. If unable to find
1558 libthread_db in directory of libpthread, see if we're looking at
1559 the separate-debug-info copy.
1561 * python/py-autoload.c (print_script): Print "Missing" instead of
1562 "No" for missing scripts.
1563 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1565 2011-05-13 Doug Evans <dje@google.com>
1567 * ui-file.c (stdio_file_write_async_safe): Add comment.
1569 2011-05-14 Hui Zhu <teawater@gmail.com>
1571 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1573 2011-05-13 Doug Evans <dje@google.com>
1575 Support $pdir and $sdir in libthread-db-search-path.
1576 * NEWS: Mention $sdir,$pdir.
1577 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1578 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1579 (try_thread_db_load_from_sdir): New function.
1580 (try_thread_db_load_from_dir): New function.
1581 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1582 system directories if search of libthread-db-search-path fails,
1583 that is now done via $sdir.
1584 (has_libpthread): New function.
1585 (thread_db_load): Remove search for libthread_db in directory of
1586 libpthread, that is now done via $pdir.
1588 * NEWS: Mention "info auto-load-scripts".
1589 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1590 script_not_found_warning_printed.
1591 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1592 all callers updated. Initialize script_not_found_warning_printed.
1593 (get_auto_load_pspace_data_for_loading): New function.
1594 (maybe_add_script): New function.
1595 (source_section_scripts): Simplify. Only print one warning regardless
1596 of the number of auto-load scripts not found.
1597 (clear_section_scripts): Clear script_not_found_warning_printed.
1598 (auto_load_objfile_script): Record script in hash table.
1599 (count_matching_scripts): New function.
1600 (maybe_print_script): Renamed from maybe_print_section_script, all
1601 callers updated. Rewrite to use ui_out_*.
1602 (info_auto_load_scripts): Renamed from
1603 maintenance_print_section_scripts, all callers updated.
1604 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1605 renamed as "info auto-load-scripts".
1607 2011-05-13 Tom Tromey <tromey@redhat.com>
1609 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1610 (read_sleb128): Likewise.
1612 2011-05-13 Tom Tromey <tromey@redhat.com>
1614 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1617 2011-05-13 Doug Evans <dje@google.com>
1619 * linux-nat.c (debug_linux_nat_async): Delete.
1620 Replace all references to use debug_linux_nat instead.
1621 (show_debug_linux_nat_async): Delete.
1622 (sigchld_handler): Call ui_file_write_async_safe instead of
1624 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1625 * ui-file.c (struct ui_file): New member to_write_async_safe.
1626 (null_file_write_async_safe): New function.
1627 (ui_file_write_async_safe): New function.
1628 (set_ui_file_write_async_safe): New function.
1629 (ui_file_new): Initialize to_write_async_safe.
1630 (stdio_file_write_async_safe): New function.
1631 (struct stdio_file): New member fd.
1632 (stdio_file_new): Initialize to_write_async_safe, fd.
1633 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1635 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1636 (set_ui_file_write_async_safe): Declare.
1637 (ui_file_write_async_safe): Declare.
1639 2011-05-13 Tom Tromey <tromey@redhat.com>
1641 * utils.c (do_value_free): New function.
1642 (make_cleanup_value_free): Likewise.
1643 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1645 (dwarf2_loc_desc_needs_frame): Call
1646 make_cleanup_value_free_to_mark.
1647 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1648 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1650 (new_dwarf_expr_context): Don't call value_mark.
1651 * dwarf2-frame.c (execute_stack_op): Call
1652 make_cleanup_value_free_to_mark.
1653 * defs.h (make_cleanup_value_free): Declare.
1655 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1657 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1658 prepare_execute_command.
1659 * top.c (prepare_execute_command): Return cleanup.
1660 (execute_command): Use cleanup from prepare_execute_command.
1661 * top.h (prepare_execute_command): Change prototype to return
1663 * defs.h (struct value): Add opaque declaration.
1664 (make_cleanup_value_free_to_mark): Add prototype.
1665 * utils.c (do_value_free_to_mark): New function.
1666 (make_cleanup_value_free_to_mark): Likewise.
1668 2011-05-12 Tom Tromey <tromey@redhat.com>
1670 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1671 cast left-hand-side to unsigned.
1673 2011-05-12 Tom Tromey <tromey@redhat.com>
1676 * value.h (value_from_contents): Declare.
1677 * value.c (value_from_contents): New function.
1678 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1679 (dwarf2_get_die_type): New function.
1680 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1681 (allocate_piece_closure): Acquire reference to values.
1682 (read_pieced_value): Update for value-based expressions.
1683 (write_pieced_value): Likewise.
1684 (free_pieced_value_closure): Call value_free as needed.
1685 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1686 Update for value-based expressions.
1687 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1688 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1689 <get_base_type>: New field.
1690 (struct dwarf_expr_piece) <v.value>: Change type.
1691 <v.regno>: New field.
1692 (struct dwarf_expr_context) <mark>: New field.
1693 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1694 (dwarf_expr_pop, dwarf_expr_push): Remove.
1695 (dwarf_expr_push_address): Declare.
1696 * dwarf2expr.c (dwarf_arch_cookie): New global.
1697 (struct dwarf_gdbarch_types): New.
1698 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1700 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1702 (dwarf_expr_push_address): New function.
1703 (dwarf_expr_pop): Now static.
1704 (dwarf_expr_fetch): Change return type.
1705 (dwarf_require_integral): New function.
1706 (dwarf_expr_fetch): Simplify.
1707 (add_piece): Update.
1708 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1710 (execute_stack_op) <sign_ext>: Remove.
1711 Use values for DWARF stack.
1712 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1713 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1715 (_initialize_dwarf2expr): New function.
1716 (add_piece): Update.
1717 (new_dwarf_expr_context): Set new field.
1718 (free_dwarf_expr_context): Call value_free_to_mark.
1719 * dwarf2-frame.c (no_base_type): New function.
1720 (execute_stack_op): Set get_base_type field. Update.
1722 2011-05-12 Tom Tromey <tromey@redhat.com>
1724 * dwarf2read.c (read_common_block): Fix formatting.
1726 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1728 * breakpoint.c (disable_breakpoint): Disable all locations
1729 associated with a tracepoint on target if a trace experiment is
1731 (disable_command): Disable a specific tracepoint location on target if
1732 a trace experiment is running.
1733 (do_enable_breakpoint): Enable all locations associated with a
1734 tracepoint on target if a trace experiment is running.
1735 (enable_command) Enable a specific tracepoint location on target if a
1736 trace experiment is running.
1737 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1738 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1739 to_disable_tracepoint.
1740 * target.h: Add declaration of struct bp_location.
1741 (struct target_ops): Add new functions
1742 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1743 to_disable_tracepoint to target operations.
1744 (target_supports_enable_disable_tracepoint): New macro.
1745 (target_enable_tracepoint): New macro.
1746 (target_disable_tracepoint): New macro.
1747 * remote.c (struct remote_state): Add new field.
1748 (remote_enable_disable_tracepoint_feature): New.
1749 (remote_protocol_features): Add new entry.
1750 (remote_supports_enable_disable_tracepoint): New.
1751 (remote_enable_tracepoint): New.
1752 (remote_disable_tracepoint): New.
1753 (init_remote_ops): Add remote_enable_tracepoint,
1754 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1755 to remote operations.
1756 * tracepoint.c (start_tracing): Allow tracing to start without any
1757 tracepoints enabled with just a warning if they can be re-enabled
1759 * NEWS: Add news item for the new behaviour of the enable and disable
1760 GDB commands when applied to tracepoints.
1761 Add news items for the new remote packets QTEnable and QTDisable.
1763 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1765 * config.in: Regenerate.
1766 * configure: Regenerate.
1767 * configure.ac <--with-system-readline> (for readline_echoing_p):
1769 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1770 (tui_old_rl_echoing_p): ... here.
1771 (tui_setup_io): Rename extern declaration readline_echoing_p to
1772 _rl_echoing_p. Adjust assignments for the both renames.
1774 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1776 * symtab.c (lookup_symtab): Run cleanup before returning.
1778 2011-05-11 Tom Tromey <tromey@redhat.com>
1780 * dwarf2read.c (handle_data_member_location): New function.
1781 (dwarf2_add_field): Use it.
1782 (read_common_block): Likewise.
1784 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1786 Make addrs->SECTINDEX always defined.
1787 * symfile.c (relative_addr_info_to_section_offsets): Check for
1788 SECTINDEX -1, not for zero ADDR.
1789 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1790 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1791 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1794 2011-05-10 Doug Evans <dje@google.com>
1796 * linux-thread-db.c: Whitespace cleanup.
1797 (try_thread_db_load_1): Fix comment.
1799 * linux-thread-db.c (set_libthread_db_search_path): New function.
1800 (_initialize_thread_db): Add setter for libthread-db-search-path.
1802 2011-05-09 Doug Evans <dje@google.com>
1804 * NEWS: Mention --with-iconv-bin.
1805 * configure.ac: New option --with-iconv-bin.
1806 * configure: Regenerate.
1807 * config.in: Regenerate.
1808 * defs.h (relocate_gdb_directory): Declare.
1809 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1810 removed progname parameter, and exported. All callers updated.
1811 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1813 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1814 adding missing call to restore_child_signals_mask.
1816 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1818 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1820 * infrun.c (proceed, start_remote): Adjust.
1821 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1822 and adjust to not handle it.
1823 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1824 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1825 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1826 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1827 * windows-nat.c (do_initial_windows_stuff): Adjust.
1828 * infcmd.c (attach_command): Adjust.
1829 (notice_new_inferior): Adjust.
1831 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1833 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1834 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1835 * spu-tdep.c (op_selb): Use correct value.
1837 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1839 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1840 "parent" parameter to symbol_file_add_from_bfd call.
1842 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1843 Thiago Jung Bauermann <bauerman@br.ibm.com>
1845 Implement support for PowerPC BookE masked watchpoints.
1846 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1848 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1849 method. Initialize to NULL in all existing breakpoint_ops instances.
1850 (struct breakpoint) <hw_wp_mask>: New field.
1851 * breakpoint.c (is_masked_watchpoint): Add prototype.
1852 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1853 breakpoint's breakpoint_ops.works_in_software_mode if available.
1854 (watchpoints_triggered): Handle the case of a hardware masked
1856 (watchpoint_check): Likewise.
1857 (works_in_software_mode_watchpoint): New function.
1858 (insert_masked_watchpoint, remove_masked_watchpoint)
1859 (resources_needed_masked_watchpoint)
1860 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1861 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1862 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1864 (masked_watchpoint_breakpoint_ops): New structure.
1865 (watch_command_1): Check for the existence of the `mask' parameter.
1866 Set b->ops according to the type of hardware watchpoint being created.
1867 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1868 (ppc_linux_remove_mask_watchpoint)
1869 (ppc_linux_masked_watch_num_registers): New functions.
1870 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1871 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1872 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1873 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1874 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1875 (target_masked_watch_num_registers): New functions.
1876 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1877 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1879 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1880 (target_masked_watch_num_registers): Add prototypes.
1882 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1885 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1886 (producer_is_gcc_ge_4_0): New function.
1887 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1888 symtab->language code.
1889 (var_decode_location): Set cu->has_loclist.
1890 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1891 skip. Intialize force_skip from locations_valid. Move the prologue
1892 skipping code into two passes.
1893 * symtab.h (struct symtab): Make the primary field a bitfield. New
1894 field locations_valid.
1896 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1898 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1899 (classify_inner_name): Call cp_lookup_nested_type with
1901 * cp-namespace.c (cp_lookup_nested_type): New variable
1902 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1903 type_name_no_tag_or_error with saved_parent_type.
1904 * dwarf2read.c (load_partial_dies): Read in any children of
1905 DW_TAG_typedef with complaint in such case.
1906 * gdbtypes.c (type_name_no_tag_or_error): New function.
1907 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1908 * valops.c (destructor_name_p): New comment for parameter type. Remove
1909 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1910 * value.h (destructor_name_p): Remove type const.
1912 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1914 * symtab.c (compare_symbol_name): New function.
1915 (completion_list_add_name, expand_partial_symbol_name): Call it,
1916 remove the variable ncmp.
1917 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1920 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1922 Demote to sw watchpoint only in update_watchpoint.
1923 * breakpoint.c (update_watchpoint): Change between software and
1924 hardware watchpoint for all kinds of watchpoints, not just
1925 read/write ones. Determine b->exact value here instead of
1926 in watch_command_1. Error out if there are not enough resources
1927 for a read or access hardware watchpoint.
1928 (watch_command_1): Remove logic of checking whether there are
1929 enough resources available, since update_watchpoint will do that
1930 work now. Don't set b->exact here. Catch exceptions thrown by
1931 update_watchpoint and delete the watchpoint.
1932 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1933 Use target_exact_watchpoints instead.
1934 (delete_breakpoint): Notify observers only if deleted watchpoint
1935 has a breakpoint number assigned to it.
1937 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
1939 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1941 2011-05-05 Jerome Guitton <guitton@adacore.com>
1943 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1945 (i386_stack_tramp_frame_unwind): New static global.
1946 (i386_match_pattern): New function, extracted from i386_match_insn.
1947 (i386_match_insn): Use i386_match_pattern.
1948 (i386_match_insn_block): New function.
1949 (i386_tramp_chain_in_reg_insns)
1950 (i386_tramp_chain_on_stack_insns): New static variables.
1951 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1954 2011-05-04 Joseph Myers <joseph@codesourcery.com>
1956 * configure.host (xscale*): Don't handle target.
1957 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1960 2011-05-04 Yao Qi <yao@codesourcery.com>
1962 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1964 2011-05-03 Joel Brobecker <brobecker@adacore.com>
1967 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
1968 | * elfread.c (elf_symtab_read): Stop memory leak.
1970 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1972 * nto-tdep.c (nto_target): Replace deprecated call to
1973 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1975 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1977 Fix false GCC warning.
1978 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1980 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1982 * breakpoint.c (update_watchpoint): Move code to change
1983 the enable state of breakpoint from here ...
1984 (do_enable_breakpoint): ... to here.
1986 2011-04-26 Andrew Gontarek <andrewg@cray.com>
1988 * valprint.c (val_print_array_elements): Fixed poor performance
1989 of printing very large arrays with repeat_count_threshold set
1990 to unlimited. New comment.
1992 2011-04-29 Tom Tromey <tromey@redhat.com>
1994 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
1995 (mi_parse): Likewise.
1996 * breakpoint.c (break_range_command): Use sizeof char*, not
1998 (create_breakpoint): Likewise.
1999 (parse_breakpoint_sals): Likewise.
2001 2011-04-29 Pedro Alves <pedro@codesourcery.com>
2003 * linux-nat.c (linux_child_remove_fork_catchpoint)
2004 (linux_child_remove_vfork_catchpoint)
2005 (linux_child_remove_exec_catchpoint): New functions.
2006 (linux_target_install_ops): Install them.
2008 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
2012 * varobj.c (install_default_visualizer): Do not install a
2013 visualizer if the varobj is CPLUS_FAKE_CHILD.
2014 (construct_visualizer): Likewise.
2016 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2018 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
2019 case insensitive comparison.
2021 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
2023 * infrun.c (proceed): Revert previous change.
2024 (resume): Instead, handle the case of signal delivery while stepping
2025 off a breakpoint location here, and only if software single-stepping
2026 is used. Handle nested signals.
2028 2011-04-28 Yao Qi <yao@codesourcery.com>
2030 * arm-tdep.c (copy_unmodified): Rename to ...
2031 (arm_copy_unmodified): .. this. New.
2032 (copy_preload): Move common part to ...
2033 (install_preload): .. this. New.
2034 (arm_copy_preload): New.
2035 (copy_preload_reg): Move common part to ...
2036 (install_preload_reg): ... this. New.
2037 (arm_copy_preload_reg): New.
2038 (copy_b_bl_blx): Move common part to ...
2039 (install_b_bl_blx): .. this. New.
2040 (arm_copy_b_bl_blx): New.
2041 (copy_bx_blx_reg): Move common part to ...
2042 (install_bx_blx_reg): ... this. New.
2043 (arm_copy_bx_blx_reg): New.
2044 (copy_alu_reg): Move common part to ...
2045 (install_alu_reg): ... this. New.
2046 (arm_copy_alu_reg): New.
2047 (copy_alu_shifted_reg): Move common part to ...
2048 (install_alu_shifted_reg): ... this. New.
2049 (copy_ldr_str_ldrb_strb): Move common part to ...
2050 (install_ldr_str_ldrb_strb): ... this. New.
2051 (arm_copy_ldr_str_ldrb_strb): New.
2052 (copy_copro_load_store): Move some common part to ...
2053 (install_copy_copro_load_store): ... this. New.
2054 (arm_copy_copro_load_store): New.
2056 (arm_copy_svc): Renamed from copy_svc.
2057 (copy_undef): Delete.
2058 (arm_copy_undef): Renamed from copy_undef.
2059 (decode_ext_reg_ld_st): Delete.
2060 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2061 (decode_svc_copro): Delete.
2062 (arm_decode_svc_copro): Renamed from decode_svc_copro.
2063 (copy_copro_load_store, copy_alu_imm): update callers.
2064 (copy_extra_ld_st, copy_block_xfer): Likewise.
2065 (decode_misc_memhint_neon, decode_unconditional): Likewise.
2066 (decode_miscellaneous, decode_dp_misc): Likewise.
2067 (decode_ld_st_word_ubyte, decode_media): Likewise.
2068 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
2069 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
2070 (decode_unconditional, decode_miscellaneous): Likewise.
2071 (decode_media, decode_b_bl_ldmstm): Likewise.
2072 (arm_process_displaced_insn): Likewise..
2073 (decode_misc_memhint_neon): Delete.
2074 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2075 (decode_miscellaneous): Delete.
2076 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2077 (decode_dp_misc): Delete.
2078 (arm_decode_dp_misc): Renamed from decode_dp_misc.
2079 (decode_ld_st_word_ubyte): Delete.
2080 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2081 (decode_media): Delete.
2082 (arm_decode_media): Renamed from decode_media.
2083 (decode_b_bl_ldmstm): Delete.
2084 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2085 (decode_ext_reg_ld_st): Delete.
2086 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2087 (decode_unconditional): Delete.
2088 (arm_decode_unconditional): Renamed from decode_unconditional.
2090 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2092 Case insensitive lookups implementation.
2093 * dwarf2read.c: Include ctype.h.
2094 (struct mapped_index): New field version.
2095 (mapped_index_string_hash): New parameter index_version. New comment
2096 for it. Call tolower appropriately.
2097 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2098 Choose the right index version for mapped_index_string_hash.
2099 (dwarf2_read_index): Support also the index version 5. Initialize the
2100 new struct mapped_index field version.
2101 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2102 (find_slot): Explain the version needs. Pass INT_MAX for the new
2104 (write_psymtabs_to_index): Produce version 5.
2105 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2106 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2107 * psymtab.c (lookup_partial_symbol): Find the
2108 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2110 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2112 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2113 (completion_list_add_name): New variable ncmp, initialize it, use it.
2114 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2115 * utils.c (strcmp_iw): Support case_sensitive_off.
2116 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2117 New function comment part. New variables saved_string1,
2118 saved_string2 and case_pass. Add a proper second pass.
2120 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2122 Replace re_comp/re_exec by regcomp/regexec.
2123 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2124 (search_symbols_name_matches): Use them, use regexec.
2125 (search_symbols): New variable retval_chain, adjust the use of
2126 old_chain against it. Replace re_comp by regcomp. Use the new struct
2127 search_symbols_data fields, use regexec instead of re_exec.
2129 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2131 Format the code for the next patch.
2132 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2133 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2134 New variables c1 and c2.
2136 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2138 * infrun.c (proceed): Do not single-step into signal delivery
2139 when stepping off a breakpoint location.
2140 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2141 (insert_step_resume_breakpoint_at_caller): Likewise.
2142 (insert_step_resume_breakpoint_at_sal): Likewise.
2143 (insert_longjmp_resume_breakpoint): Likewise.
2145 2011-04-27 Yao Qi <yao@codesourcery.com>
2147 * common/linux-ptrace.h: Remove include <sys/wait.h>.
2149 2011-04-27 Joel Brobecker <brobecker@adacore.com>
2151 * procfs.c (procfs_pass_signals): Fix advance declaration.
2153 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2155 * target.h (struct target_ops): Remove to_notice_signals;
2156 add to_pass_signals.
2157 (target_notice_signals): Remove.
2158 (target_pass_signals): Add prototype.
2159 * target.c (update_current_target): Remove to_notice_signals;
2160 mention to_pass_signals.
2161 (target_pass_signals): New function.
2162 (debug_to_notice_signals): Remove.
2163 (setup_target_debug): Do not install debug_to_notice_signals.
2165 * infrun.c (signal_pass): New global.
2166 (resume): Call target_pass_signals.
2167 (handle_inferior_event): Report all signals while stepping over
2168 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
2169 are re-inserted when stepping over a signal handler.
2170 (signal_cache_update): New function.
2171 (signal_stop_update): Call it.
2172 (signal_print_update): Likewise.
2173 (signal_pass_update): Likewise.
2174 (handle_command): Call signal_cache_update and target_pass_signals
2175 instead of target_notice_signals.
2176 (_initialize_infrun): Initialize signal_pass.
2178 * linux-nat.c (pass_mask): New global.
2179 (linux_nat_pass_signals): New function.
2180 (linux_nat_create_inferior): Report all signals initially.
2181 (linux_nat_attach): Likewise.
2182 (linux_nat_resume): Use pass_mask to decide whether to directly
2183 handle an inferior signal.
2184 (linux_nat_wait_1): Likewise.
2185 (linux_nat_add_target): Install to_pass_signals callback.
2187 * nto-procfs.c (notice_signals): Remove.
2188 (procfs_resume): Do not call notice_signals.
2189 (procfs_notice_signals): Remove.
2190 (procfs_pass_signals): New function.
2191 (init_procfs_ops): Install to_pass_signals callback instead of
2192 to_notice_signals callback.
2193 (_initialize_procfs): Report all signals initially.
2195 * procfs.c (procfs_notice_signals): Remove.
2196 (procfs_pass_signals): New function.
2197 (procfs_target): Install to_pass_signals callback instead of
2198 to_notice_signals callback.
2199 (register_gdb_signals): Remove.
2200 (procfs_debug_inferior): Report all signals initially.
2201 (procfs_init_inferior): Remove redundant register_gdb_signals call.
2203 * remote.c (remote_pass_signals): Add numsigs and pass_signals
2204 parameters; use them instead of calling signal_..._state routines.
2205 (remote_notice_signals): Remove.
2206 (remote_start_remote): Report all signals initially.
2207 (remote_resume): Do not call remote_pass_signals.
2208 (_initialize_remote): Install to_pass_signals callback instead of
2209 to_notice_signals callback.
2211 2011-04-27 Pedro Alves <pedro@codesourcery.com>
2213 * breakpoint.c (user_settable_breakpoint): Delete.
2214 (user_breakpoint_p): Remove check on user_settable_breakpoint.
2215 (delete_command): Check user_breakpoint_p instead of looking at
2216 the breakpoint's type.
2217 (disable_command): Ditto.
2218 (enable_command): Ditto.
2219 (delete_trace_command): Use user_breakpoint_p instead of looking
2220 at the breakpoint number directly. When checking if there are
2221 user visible tracepoints, in order to know whether to ask the user
2222 for confirmation, check whether the breakpoint is actually a
2225 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2227 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2230 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2232 MI breakpoint notifications.
2234 * annotate.c (breakpoint_changed): Adjust parameter type.
2235 * breakpoint.c (set_breakpoint_condition): Adjust to change
2236 in breakpoint_modified type.
2237 (breakpoint_set_commands): Likewise.
2238 (do_map_commands_command): Likewise.
2239 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2240 changed after bumping hit count.
2241 (bpstat_stop_status): Likewise.
2242 (print_one_breakpoint_location): Don't wrap in tuple here.
2243 (print_one_breakpoint): Always print individual locations.
2244 For locations, use unnamed tuple.
2245 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2247 (create_catchpoint, create_syscall_event_catchpoint): Call
2248 breakpoint_created obsever.
2249 (mention): Don't call breakpoint_created observer.
2250 (create_breakpoint_sal): Call breakpoint_created observer.
2251 (create_breakpoint, watch_command_1): Likewise.
2252 (create_ada_exception_breakpoint): Likewise.
2253 (delete_breakpoint): Call breakpoint_deleted breakpoint.
2254 (locations_are_equal): New.
2255 (update_breakpoint_locations): If locations were changed, notify.
2256 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2257 Call breakpoint_modified observer.
2259 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2260 (mi_cmd_break_insert): Don't set observers for modify and delete.
2261 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2262 (mi_breakpoint_created, mi_breakpoint_deleted)
2263 (mi_breakpoint_modified): New.
2264 (mi_interpreter_init): Hook the above.
2265 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2266 while -break-* commands are executing.
2267 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2268 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2270 (mi_ui_out_impl): Hook in mi_redirect.
2271 (mi_field_skip): True to the name, skip the field, don't output
2272 a field with an empty value.
2274 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2275 (gdbpy_breakpoint_deleted): Adjust.
2276 * tui/tui-hooks.c (tui_event_create_breakpoint)
2277 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2279 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
2281 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2282 (procfs_remove_hw_watchpoint): Likewise.
2284 2011-04-26 Michael Walle <michael@walle.cc>
2286 * remote.c (remote_start_remote): Ack packet after sending the
2289 2011-04-26 Yao Qi <yao@codesourcery.com>
2291 * linux-nat.c: Move common macros to ...
2292 Include linux-ptrace.h.
2293 * common/linux-ptrace.h: ... here. New.
2295 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2297 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2298 !objfile_has_partial_symbols. New comment.
2299 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2300 SYM_READ_PSYMBOLS is not present. Extend the comment.
2301 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2303 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2305 * defs.h (ENUM_BITFIELD): Remove.
2307 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2308 Eli Zaretskii <eliz@gnu.org>
2310 * NEWS: Document the new gdbserver --once option.
2312 2011-04-21 Jie Zhang <jzhang918@gmail.com>
2314 * MAINTAINERS: Update my email address.
2316 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2318 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2319 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2320 function call if __STDC_ISO_10646__ macro is defined.
2321 (intermediate_encoding): New prototype.
2322 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2323 to generate compile time error for unsupported gdb_wchar_t size.
2324 (ENDIAN_SUFFIX): New macro.
2325 (intermediate_encoding): New function.
2327 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2329 * ada-lang.c (struct add_partial_datum): Update the comment for
2330 expand_partial_symbol_name.
2331 (ada_add_partial_symbol_completions): Rename to ...
2332 (ada_expand_partial_symbol_name): ... here, change return type, update
2333 function comment, call symbol_completion_match instead of
2334 symbol_completion_add.
2335 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2336 and ada_expand_partial_symbol_name.
2337 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2339 (dw2_map_symbol_names): Remove.
2340 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2341 * psymtab.c (map_symbol_names_psymtab): Remove.
2342 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2343 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2345 (psym_functions): Unlist map_symbol_names_psymtab.
2346 (map_partial_symbol_names): Rename to ...
2347 (expand_partial_symbol_names): ... here, change the FUN type, call
2348 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2349 * psymtab.h (map_partial_symbol_names): Rename to ...
2350 (expand_partial_symbol_names): ... here, change the FUN type.
2351 * symfile.h (struct quick_symbol_functions): Update the description of
2352 expand_symtabs_matching. Remove map_symbol_names.
2353 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2354 (struct add_name_data): Update the comment for
2355 expand_partial_symbol_name.
2356 (add_partial_symbol_name): Rename to ...
2357 (expand_partial_symbol_name): ... here. Replace
2358 completion_list_add_name call by strncmp.
2359 (default_make_symbol_completion_list_break_on): Use now
2360 expand_partial_symbol_names and expand_partial_symbol_name.
2361 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2363 2011-04-20 Tom Tromey <tromey@redhat.com>
2365 * dwarf2read.c (save_gdb_index_command): Replace format
2366 documentation with a pointer to the manual.
2368 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2370 * regcache.c: Include remote.h.
2371 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2372 (regcache_dump): Handle regcache_dump_remote.
2373 (maintenance_print_remote_registers): New function.
2374 (_initialize_regcache): Install "maint print remote-registers"
2376 * remote.c (map_regcache_remote_table): New function, factored out
2378 (init_remote_state): ... here.
2379 (remote_register_number_and_offset): New.
2380 * remote.h (remote_register_number_and_offset): Declare.
2382 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2384 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2385 null_ptid, assume and allow a NULL address space, instead of
2386 asking the target for the ptid's address space.
2387 * infrun.c (ptid_is_pid): Remove assertion.
2389 2011-04-19 Tom Tromey <tromey@redhat.com>
2391 * windows-tdep.c (windows_xfer_shared_library):
2392 * windows-nat.c (get_module_name, windows_make_so):
2393 * v850-tdep.c (v850_handle_pushm):
2394 * utils.c (null_cleanup, gdb_realpath):
2395 * ui-out.c (get_next_header):
2396 * tracepoint.c (clear_traceframe_info):
2397 * symtab.c (lookup_symtab):
2398 * serial.h (struct serial_ops):
2399 * mipsread.c (read_alphacoff_dynamic_symtab):
2400 * infcmd.c (print_return_value):
2401 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2402 * f-exp.y (parse_number):
2403 * exceptions.c (catch_exceptions):
2404 * dummy-frame.c (dummy_frame_this_id):
2405 * defs.h (struct cleanup):
2406 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2407 * arm-tdep.c (arm_push_dummy_call):
2408 * amd64-tdep.h (amd64_collect_xsave):
2409 * amd64-tdep.c (amd64_collect_xsave):
2410 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2411 * README (typing): Remove duplicate words.
2412 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2413 * infrun.c (siginfo_value_read): Fix typo.
2414 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2415 * top.c (source_line_number): Add comma.
2417 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2419 * thread.c (any_live_thread_of_process): Prioritize threads
2420 that are not executing.
2421 * gdbthread.h (any_live_thread_of_process): Update comment
2422 as per above change.
2424 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2426 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2427 (scan_xcoff_symtab): Likewise.
2429 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2431 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2434 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2435 Pedro Alves <pedro@codesourcery.com>
2437 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2438 variables to simplify code and avoid == operator at end of
2439 line as this is against GNU coding standards.
2441 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2443 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2444 lm_name to name_lm to avoid conflict with lm_name function.
2446 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2448 ARI fixes: Use only lowercase function name for static functions.
2449 * nto-tdep.c (LM_ADDR): Rename to...
2450 (lm_addr): New function name.
2451 (nto_relocate_section_addresses): Adapt to change above.
2452 * solib-sunos.c (LM_ADDR): Rename to...
2453 (lm_addr): New function name.
2454 (LM_NEXT): Rename to...
2455 (lm_next): New function name.
2456 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2457 function name changes above.
2458 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2459 (lm_addr_from_link_map): New function name.
2460 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2461 (has_lm_dynamic_from_link_map): New function name.
2462 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2463 (lm_dynamic_from_link_map): New function name.
2464 (LM_ADDR_CHECK): Rename to...
2465 (lm_addr_check): New function name.
2466 (LM_NEXT): Rename to...
2467 (lm_next): New function name.
2468 (LM_PREV): Rename to...
2469 (lm_prev): New function name.
2470 (LM_NAME): Rename to...
2471 (lm_name): New function name.
2472 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2473 (ignore_first_link_map_entry): New function name.
2474 (svr4_keep_data_in_core): Adapt to function name changes above.
2475 (svr4_current_sos): Likewise.
2476 (enable_break): Likewise.
2477 (svr4_relocate_section_addresses): Likewise.
2479 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2482 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2483 sprintf. Simplify code and avoid loosing memory.
2484 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2485 (call0_frame_cache): Remove && operator from end of line.
2487 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2489 Fix libraries displacement if they change whether they were prelinked.
2490 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2491 does not match. Comment why.
2493 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2495 * corelow.c: Include wrapper.h.
2496 (core_open): Call now gdb_target_find_new_threads.
2497 * wrapper.c: Include target.h.
2498 (gdb_target_find_new_threads): New.
2499 * wrapper.h (gdb_target_find_new_threads): New declaration.
2501 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2503 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2504 even if !TARGET_HAS_EXECUTION.
2506 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2508 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2509 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2510 bfd_get_synthetic_symtab.
2511 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2512 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2513 parameter parent, remove the call to add_separate_debug_objfile.
2514 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2515 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2516 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2517 parent, new comment for it, call add_separate_debug_objfile for it.
2518 (symbol_file_add_separate): Pass objfile as the parameter parent,
2519 remove the call to add_separate_debug_objfile.
2520 (symbol_file_add_from_bfd): New parameter parent, pass it.
2521 (symbol_file_add): Pass NULL to the new parameter parent.
2522 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2524 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2526 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2529 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2531 Fix Python access to inlined frames.
2532 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2533 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2535 2011-04-15 Tom Tromey <tromey@redhat.com>
2537 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2539 2011-04-15 Gary Benson <gbenson@redhat.com>
2541 * MAINTAINERS: Add myself to write-after-approval section.
2543 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2545 * remote-sim.c (sim_command_completer): New function.
2546 (_initialize_remote_sim): Set completer to sim_command_completer.
2548 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2550 * breakpoint.c (print_exception_catchpoint): Rename to ...
2551 (print_it_exception_catchpoint): ... this.
2552 (gnu_v3_exception_catchpoint_ops): Update with new name
2553 for print_it_exception_catchpoint.
2555 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2557 * MAINTAINERS: Add myself for write after approval privileges.
2559 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2561 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2563 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2565 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2567 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2569 * breakpoint.c (save_breakpoints): Verify whether
2570 breakpoint_ops.print_recreate is defined before calling it.
2572 2011-04-11 Gary Benson <gbenson@redhat.com>
2574 Fix failure with --enable-maintainer-mode.
2575 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2577 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2580 * symtab.c (search_symbols): Reorder the KIND description in the
2581 function comment. Remove the unused 4th element of types, types2,
2582 types3 and types4. New gdb_assert on KIND.
2583 (symtab_symbol_info): Remove the unused 4th element of classnames.
2584 New gdb_assert on KIND.
2585 * symtab.h (enum search_domain): New warning in the enum comment.
2586 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2589 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2591 Fix crash of gdb save-index on a STABS file.
2592 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2595 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2597 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2598 * dwarf2read.c: Include ctype.h.
2599 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2601 (dwarf2_add_field): Fix new_field->accessibility by calling
2602 dwarf2_default_access_attribute. Restructure setting accessibility
2604 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2605 is_private and is_protected by calling
2606 dwarf2_default_access_attribute.
2608 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2610 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2611 to the initialization.
2613 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2615 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2618 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2620 Remove support for old Cygwin 1.5 versions.
2621 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2622 function on old Cygwin version.
2623 * windows-nat.c: Remove cygwin version check and always define
2624 __USEWIDE for Cygwin compilation.
2626 2011-04-07 Yao Qi <yao@codesourcery.com>
2628 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2630 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2631 (arm_copy_svc): Remove parameters INSN and TO.
2632 (decode_svc_copro): Update caller.
2633 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2634 from function pointer `copy_svc_os'.
2636 2011-04-07 Yao Qi <yao@codesourcery.com>
2638 * arm-tdep.c (cleanup_branch): Set a correct return address in
2639 LR for ARM and Thumb.
2641 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2644 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2645 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2646 in the function comment, a new note on values compatibility.
2647 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2648 * symtab.h (SYMBOL_HASH_NEXT): New.
2650 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2652 * ppc-linux-nat.c (check_condition): Add len output parameter.
2653 Set it based on the memory region referenced in the condition
2654 expression. Update all callers.
2656 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2658 Fix crash regression on systems featuring .gdb_index.
2659 * objfiles.c (free_objfile): Move the
2660 forget_cached_source_info_for_objfile call earlier. Comment it.
2661 Extend the comment for objfile_free_data.
2663 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2665 Fix regression of displaying the debug format.
2666 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2669 2011-04-04 Tom Tromey <tromey@redhat.com>
2671 * cli/cli-interp.c (struct captured_execute_command_args):
2673 (do_captured_execute_command): Remove.
2674 (safe_execute_command): Use TRY_CATCH.
2675 * cli/cli-script.c (struct wrapped_read_command_file_args):
2677 (wrapped_read_command_file): Remove.
2678 (script_from_file): Use TRY_CATCH.
2679 * exceptions.c (catch_exception): Remove.
2680 * exceptions.h (catch_exception): Remove.
2681 (deprecated_throw_reason): Update comment.
2682 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2683 argument to 'context'.
2684 (mi_execute_command): Use TRY_CATCH.
2685 * remote.c (struct start_remote_args): Remove.
2686 (remote_start_remote): Update; change arguments.
2687 (remote_open_1): Use TRY_CATCH.
2689 2011-04-04 Tom Tromey <tromey@redhat.com>
2691 * tracepoint.c (scope_info): Update.
2692 * symtab.c (decode_line_spec): Update.
2693 * python/python.c (gdbpy_decode_line): Update.
2694 * linespec.h (decode_line_1): Update.
2695 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2696 (decode_compound, find_method, symtab_from_filename)
2697 (decode_variable): Likewise.
2698 * cli/cli-cmds.c (edit_command): Update.
2699 (list_command): Update.
2700 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2702 (create_breakpoint): Update.
2703 (until_break_command): Update.
2704 (addr_string_to_sals): Update.
2705 (decode_line_spec_1): Update.
2707 2011-04-04 Tom Tromey <tromey@redhat.com>
2709 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2710 (do_captured_parse_breakpoint): Remove.
2711 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2712 Use TRY_CATCH directly.
2714 2011-04-04 Tom Tromey <tromey@redhat.com>
2716 * symtab.h (free_symtab): Remove.
2717 (forget_cached_source_info_for_objfile): Declare.
2718 * symmisc.c (free_symtab): Remove.
2719 * source.c (forget_cached_source_info_for_objfile): New function.
2720 (forget_cached_source_info): Use it.
2721 * objfiles.c (free_objfile): Simplify check before calling
2722 clear_current_source_symtab_and_line. Call
2723 forget_cached_source_info_for_objfile.
2725 2011-04-04 Tom Tromey <tromey@redhat.com>
2727 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2728 (new_symtab): Don't set `free_code' on symtab.
2729 (new_linetable): Properly handle size==0.
2730 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2731 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2733 * jv-lang.c (struct jv_per_objfile_data): New.
2734 (jv_per_objfile_free): Free the data.
2735 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2736 (get_java_class_symtab): Set the `dict' field on the
2737 jv_per_objfile_data.
2738 (free_class_block): Remove.
2739 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2742 2011-04-04 Tom Tromey <tromey@redhat.com>
2744 * symfile.c (reread_symbols): Update.
2745 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2747 * objfiles.c (allocate_objfile): Update.
2748 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2750 * cp-namespace.c (lookup_symbol_file): Don't call
2751 lookup_possible_namespace_symbol.
2752 (initialize_namespace_symtab, get_possible_namespace_block)
2753 (free_namespace_block, cp_check_possible_namespace_symbols)
2754 (check_possible_namespace_symbols_loop)
2755 (check_one_possible_namespace_symbol)
2756 (lookup_possible_namespace_symbol): Remove.
2757 (maintenance_cplus_namespace): Replace with notice.
2758 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2760 2011-04-04 Tom Tromey <tromey@redhat.com>
2762 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2763 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2764 * symmisc.c (free_symtab): Don't free debugformat.
2765 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2766 (record_debugformat, record_producer): Document.
2767 * buildsym.c (end_symtab): Don't save debugformat and producer
2769 (end_symtab): Don't free debugformat and producer fields.
2770 (record_debugformat): Don't call xstrdup.
2771 (record_producer): Likewise.
2773 2011-04-04 Tom Tromey <tromey@redhat.com>
2775 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2776 (source_line_charpos, source_charpos_line): Remove.
2778 2011-04-04 Tom Tromey <tromey@redhat.com>
2780 * symtab.h (domain_enum): Split in two...
2781 (enum search_domain): New.
2782 (search_symbols): Update.
2783 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2784 redundant declarations.
2785 (search_symbols): Change 'kind' argument to search_domain.
2787 (print_symbol_info): Likewise.
2788 (symtab_symbol_info): Likewise.
2789 * symfile.h (struct quick_symbol_functions)
2790 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2791 <expand_symtabs_matching>: Likewise.
2792 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2793 (expand_symtabs_matching_via_partial): Update.
2794 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2795 (dw2_expand_symtabs_for_function): Update.
2796 * block.h: Moved anonymous enum...
2797 * defs.h (enum block_enum): ... here. Now named.
2799 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2801 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2802 * version.in: Bump version to 7.3.50.20110403-cvs.
2804 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2806 * NEWS: Create a new section for the next release branch.
2807 Rename the section of the current branch, now that it has
2810 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2812 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2813 for "fpscr" in target description.
2815 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2817 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2818 initialize it. Delay HASH initialization. Strip the part after open
2819 parenthesis for languages with qualifiers. Call do_cleanups.
2821 2011-04-01 Tom Tromey <tromey@redhat.com>
2823 * utils.c (report_command_stats): Don't print `-' for negative
2826 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2828 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2829 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2832 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2834 * breakpoint.h (bpdisp_text): Add declaration.
2835 * breakpoint.c (bpdisp_text): Make non-static.
2836 * ada-lang.c: #include "mi/mi-common.h".
2837 (print_it_exception): Rewrite to improve GDB/MI output.
2839 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2841 * arm-tdep.h (struct address_space): Add forward declaration.
2843 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2845 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2846 * arm-tdep.c (arm_override_mode): New global.
2847 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2848 execution mode heuristics.
2849 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2850 second single-step breakpoint if needed, using
2851 arm_insert_single_step_breakpoint.
2852 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2853 ARM execution mode, do not call thumb_get_next_pc_raw.
2854 (arm_get_next_pc): Encode execution mode in return value. Call
2855 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2856 (arm_insert_single_step_breakpoint): New function.
2857 (arm_software_single_step): Call it.
2858 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2859 argument to return execution mode of sigreturn target.
2860 (arm_linux_syscall_next_pc): Use it.
2861 (arm_linux_copy_svc): Update call.
2862 (arm_linux_software_single_step): Call
2863 arm_insert_single_step_breakpoint.
2865 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2867 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2870 2011-03-31 Tom Tromey <tromey@redhat.com>
2872 * varobj.c (update_dynamic_varobj_children): Properly handle
2873 errors from iterator.
2875 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2877 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2878 struct linkage name twice.
2880 2011-03-31 Tom Tromey <tromey@redhat.com>
2882 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2883 missing ">" to message.
2885 2011-03-31 Tom Tromey <tromey@redhat.com>
2887 * varobj.c (instantiate_pretty_printer): Remove duplicate
2890 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
2892 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2893 if neither saved value nor register available (e.g. signal frame).
2895 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2897 * macroexp.c (expand): Avoid uninitialized variable
2900 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2902 * breakpoint.c (break_range_command): Fix typo in comment.
2904 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2905 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2907 Implement support for PowerPC BookE ranged breakpoints.
2908 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2909 * breakpoint.h (struct bp_target_info) <length>: New member
2911 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2912 instead of struct breakpoint as argument, and also add ASPACE
2913 and BP_ADDR arguments. Update all callers.
2914 (struct breakpoint_ops) <print_one_detail>: New method.
2915 (struct breakpoint) <addr_string_range_end>: New member variable.
2916 * breakpoint.c (breakpoint_location_address_match): Add function
2918 (insert_bp_location): Set bl->target_info.length.
2919 (breakpoint_here_p): Call breakpoint_location_address_match.
2920 (moribund_breakpoint_here_p): Likewise.
2921 (regular_breakpoint_inserted_here_p): Likewise.
2922 (breakpoint_thread_match): Likewise.
2923 (bpstat_stop_status): Likewise.
2924 (bpstat_check_location): Move call to
2925 breakpoint_ops.breakpoint_hit to the top.
2926 (print_one_breakpoint_location): Call
2927 breakpoint_ops.print_one_detail if available.
2928 (breakpoint_address_match_range): New function.
2929 (breakpoint_location_address_match): Likewise.
2930 (breakpoint_locations_match): Compare the length field of the
2932 (hw_breakpoint_used_count): Count resources used by all locations
2933 in a breakpoint, and use breakpoint_ops.resources_needed if
2935 (breakpoint_hit_ranged_breakpoint): New function.
2936 (resources_needed_ranged_breakpoint): Likewise.
2937 (print_it_ranged_breakpoint): Likewise.
2938 (print_one_ranged_breakpoint): Likewise.
2939 (print_one_detail_ranged_breakpoint): Likewise.
2940 (print_mention_ranged_breakpoint): Likewise.
2941 (print_recreate_ranged_breakpoint): Likewise.
2942 (ranged_breakpoint_ops): New structure.
2943 (find_breakpoint_range_end): New function.
2944 (break_range_command): Likewise.
2945 (delete_breakpoint): Free addr_string_range_end.
2946 (update_breakpoint_locations): Add SALS_END argument. Update
2947 all callers. Calculate breakpoint length if a non-zero SALS_END
2948 is given. Call breakpoint_locations_match instead of
2949 breakpoint_address_match.
2950 (reset_breakpoint): Find SaL of the end of the range if B is a
2952 (_initialize_breakpoint): Register break-range command.
2953 * defs.h (print_core_address): Add function prototype.
2954 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2956 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2957 (ppc_linux_remove_hw_breakpoint): Likewise.
2958 (_initialize_ppc_linux_nat): Initialize
2959 to_ranged_break_num_registers.
2960 * target.c (update_current_target): Add comment about
2961 to_ranged_break_num_registers.
2962 (target_ranged_break_num_registers): New function.
2963 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2965 (target_ranged_break_num_registers): Add function prototype.
2966 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2967 * utils.c (print_core_address): ... here.
2969 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
2971 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2972 variable compiler warning.
2974 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2976 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2978 (re_set_breakpoint): ... to here ...
2979 (addr_string_to_sals): ... and here.
2981 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2983 * Makefile.in (SFILES): Add missing C sources.
2984 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2985 Add missing headers.
2987 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2989 * .gitignore: New file.
2991 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2993 * NEWS: Mention new cfi device simulation.
2995 2011-03-29 Tom Tromey <tromey@redhat.com>
2997 * dwarf2read.c (fixup_partial_die): Handle linkage name on
2998 otherwise anonymous types.
2999 (dwarf2_name): Likewise.
3000 * valops.c (value_struct_elt_for_reference): Refine artificial
3001 type logic. Call error if j==-1.
3003 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
3005 Fix false GCC warning.
3006 * infcall.c (find_function_addr): Initialize funaddr.
3008 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3010 Fix mingw compilation with --enable-targets=all.
3011 * remote-mips.c (gdb_usleep.h): Include header.
3012 (mips_enter_debug): Use gdb_usleep instead of sleep.
3014 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3016 Support resolution of STT_GNU_IFUNC via breakpoints.
3017 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
3018 bp_gnu_ifunc_resolver_return.
3019 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
3020 the loop. Support bp_gnu_ifunc_resolver and
3021 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
3022 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
3024 (bptype_string, print_one_breakpoint_location): Support
3025 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
3026 (user_settable_breakpoint): Return true also for
3027 bp_gnu_ifunc_resolver.
3028 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
3029 bp_gnu_ifunc_resolver_return.
3030 (set_breakpoint_location_function): New parameter explicit_loc,
3031 describe it. Call find_pc_partial_function_gnu_ifunc with new
3032 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
3033 EXPLICIT_LOC is not set.
3034 (set_raw_breakpoint): Set EXPLICIT_LOC for
3035 set_breakpoint_location_function.
3036 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
3037 set_breakpoint_location_function.
3038 (mention): Support bp_gnu_ifunc_resolver and
3039 bp_gnu_ifunc_resolver_return.
3040 (add_location_to_breakpoint): Set EXPLICIT_LOC for
3041 set_breakpoint_location_function.
3042 (update_breakpoint_locations): Remove static.
3043 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
3044 bp_gnu_ifunc_resolver_return.
3045 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
3046 bp_gnu_ifunc_resolver_return.
3047 (update_breakpoint_locations): New declaration.
3048 * elfread.c: Include gdbthread.h and regcache.h.
3049 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
3051 (elf_gnu_ifunc_fns): Install them.
3052 * minsyms.c (stub_gnu_ifunc_resolver_stop)
3053 (stub_gnu_ifunc_resolver_return_stop): New functions.
3054 (stub_gnu_ifunc_fns): Install them.
3055 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
3056 and gnu_ifunc_resolver_return_stop.
3057 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
3059 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3061 STT_GNU_IFUNC reader implementation.
3062 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
3063 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
3064 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
3065 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
3066 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
3067 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
3068 (elf_gnu_ifunc_resolve_addr): New.
3069 (elf_symfile_read): Call elf_rel_plt_read.
3070 (elf_gnu_ifunc_fns): New.
3071 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
3072 Install elf_gnu_ifunc_fns.
3073 * infcall.c (find_function_return_type): New function.
3074 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3075 * minsyms.c (stub_gnu_ifunc_resolve_addr)
3076 (stub_gnu_ifunc_resolve_name): New functions.
3077 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3078 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3079 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3081 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3083 Code cleanup for later STT_GNU_IFUNC support.
3084 * infcall.c (find_function_addr): Remove variable code, use explicit
3085 dereferences for it. Move VALUE_TYPE initialization later.
3087 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3089 GDB find_pc_partial_function support for STT_GNU_IFUNC.
3090 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3091 (clear_pc_function_cache): Clear it.
3092 (find_pc_partial_function): Rename to ...
3093 (find_pc_partial_function_gnu_ifunc): ... this function. New
3094 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
3095 (find_pc_partial_function): New wrapper for this function.
3096 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3098 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3100 GDB internal type support for STT_GNU_IFUNC.
3101 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3102 (elf_symtab_read): Set mst_text_gnu_ifunc for
3103 BSF_GNU_INDIRECT_FUNCTION.
3104 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3105 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3106 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3107 nodebug_got_plt_symbol.
3108 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3109 (TYPE_GNU_IFUNC): New.
3110 (struct main_type): New field flag_gnu_ifunc.
3111 (struct builtin_type): New field builtin_func_func.
3112 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3113 nodebug_got_plt_symbol.
3114 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3115 (in_gnu_ifunc_stub): New.
3116 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3118 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3119 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3120 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3122 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3123 * symtab.c (search_symbols): Likewise.
3124 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3125 and mst_slot_got_plt.
3126 (in_gnu_ifunc_stub): New declaration.
3128 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3130 Support a ring of related breakpoints.
3131 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3132 other functions, add gdb_assert.
3133 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3134 watchpoint_del_at_next_stop.
3135 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3136 (bpstat_stop_status): Handle ring in related_breakpoint.
3137 (set_raw_breakpoint_without_location): Initialize ring in
3139 (delete_breakpoint): Handle ring in related_breakpoint, use
3140 watchpoint_del_at_next_stop.
3141 (map_breakpoint_numbers): Handle ring in related_breakpoint.
3143 2011-03-28 Tom Tromey <tromey@redhat.com>
3146 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3147 with `language_minimal'.
3149 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
3151 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3152 instead of checking for STT_ARM_TFUNC symbol type.
3154 2011-03-25 Tom Tromey <tromey@redhat.com>
3156 * linespec.c (symbol_found): Restore line-based result for
3157 non-LOC_LABEL symbols.
3159 2011-03-25 Kai Tietz <ktietz@redhat.com>
3161 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3162 instead of strcmp for comparison.
3163 (tui_source_is_displayed): Likewise.
3164 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3166 2011-03-24 Mark Wielaard <mjw@redhat.com>
3168 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3170 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3171 (find_partial_die_in_comp_unit): Likewise in comment.
3172 (read_attribute_value): Likewise.
3173 (lookup_die_type): Likewise.
3174 (dwarf_form_name): Likewise.
3175 (dump_die_shallow): Likewise.
3176 (follow_die_ref_or_sig): Likewise.
3178 2011-03-24 Tom Tromey <tromey@redhat.com>
3180 PR breakpoints/11816:
3181 * linespec.c (decode_line_1): Parse `function:label' linespecs.
3182 (decode_compound): Update.
3183 (find_function_symbol): New function.
3184 (decode_dollar): Update.
3185 (decode_label): Add 'function_symbol' parameter. Handle
3186 function-relative labels.
3187 (decode_variable): Update.
3188 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
3189 not its line. Set `special_display' and canonical name for
3192 2011-03-24 Tom Tromey <tromey@redhat.com>
3194 * linespec.h (struct linespec_result) <special_display>: New
3196 * breakpoint.h (struct breakpoint) <display_canonical>: New
3198 * breakpoint.c (print_breakpoint_location): Respect
3200 (create_breakpoint_sal): Add 'display_canonical' parameter.
3201 (create_breakpoints_sal): Update.
3202 (create_breakpoint): Update.
3204 2011-03-24 Tom Tromey <tromey@redhat.com>
3206 * symtab.c (decode_line_spec): Update.
3207 * linespec.c (build_canonical_line_spec): Change type of
3209 (decode_line_2, decode_line_1, decode_objc, decode_compound)
3210 (find_method, decode_all_digits, decode_dollar, decode_label)
3211 (symbol_found): Likewise.
3212 (init_linespec_result): New function.
3213 * breakpoint.c (struct captured_parse_breakpoint_args)
3214 <canonical_p>: New field, replaces addr_string_p.
3215 (create_breakpoints_sal): Add 'canonical' parameter, replacing
3217 (parse_breakpoint_sals): Likewise.
3218 (do_captured_parse_breakpoint): Update.
3219 (create_breakpoint): Use struct linespec_result.
3220 (until_break_command): Update.
3221 (breakpoint_re_set_one): Update.
3222 (decode_line_spec_1): Update.
3223 * linespec.h (struct linespec_result): New.
3224 (init_linespec_result): Declare.
3226 2011-03-23 Pedro Alves <pedro@codesourcery.com>
3228 * regcache.c (regcache_raw_read): If the target didn't supply a
3229 given raw register, mark it as unavailable.
3231 2011-03-23 Kai Tietz <ktietz@redhat.com>
3233 * breakpoint.c (clear_command): Use filename_cmp
3234 instead of strcmp for comparison.
3235 * buildsym.c (watch_main_source_file_lossage): Likewise.
3236 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3237 checking just for slash.
3238 * dbxread.c (read_dbx_symtab): Use lbasename instead of
3239 strrchr and filename_cmp instead of strcmp for filenames.
3240 (add_old_header_file): Use filename_cmp
3241 instead of strcmp for comparison.
3242 * exec.c (exec_set_section_address): Likewise.
3243 * macrotab.c (macro_lookup_inclusion): Likewise.
3244 (macro_lookup_inclusion): Likewise.
3245 * elfread.c (_initialize_elfread): Likewise.
3246 (elfstab_offset_sections): Likewise.
3247 (elfstab_offset_sections): Use lbasename instead of
3249 * mdebugread.c (parse_partial_symbols): Likewise.
3250 (arse_partial_symbols): Use filename_(n)cmp instead of
3251 str(n)cmp for comparison.
3252 * minsyms.c (lookup_minimal_symbol): Likewise.
3253 * psymtab.c (read_psymtabs_with_filename): Likewise.
3254 * solib.c (solib_read_symbols): Likewise.
3255 (reload_shared_libraries_1): Likewise.
3256 * symmisc.c (maintenance_print_symbols): Likewise.
3257 * symfile.c (separate_debug_file_exists): Likewise.
3258 (reread_symbols): Likewise.
3259 (find_separate_debug_file_by_debuglink): Likewise.
3260 * remote-fileio.c (remote_fileio_func_rename): Likewise.
3261 * source.c (add_path): Likewise.
3262 * symtab.c (filename_seen): Likewise.
3263 (file_matches): Likewise.
3264 (print_symbol_info): Likewise.
3265 (maybe_add_partial_symtab_filename): Likewise.
3266 (make_source_files_completion_list): Likewise.
3267 * xml-syscall.c (init_sysinfo): Likewise.
3268 * windows-nat.c (_initialize_check_for_gdb_ini): Use
3269 IS_DIR_SEPARATOR for checking for trailing path separator.
3271 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3273 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
3274 label abort_expression.
3275 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3276 DWARF_VALUE_OPTIMIZED_OUT.
3278 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3281 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3282 to linkage_name. Invert its value. Update the function comment.
3283 (c_type_print_varspec_suffix): Invert it at the caller.
3284 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3286 2011-03-22 Pedro Alves <pedro@codesourcery.com>
3288 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3289 errors when reading the `stop_pc'.
3290 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3293 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3295 * NEWS: Document gdb.Write stream keyword.
3297 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3300 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3301 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3302 (dwarf2_add_field): Fix new_field->accessibility for
3303 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3305 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3309 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3310 other error classes. Do not print stack trace.
3312 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3314 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3315 (dwarf2_add_field): Fix new_field->accessibility for
3316 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3318 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
3320 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3321 encountering a load via a non-SP register.
3323 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3325 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3326 field in returned unwinder.
3328 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3330 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3332 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3334 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3337 2012-03-18 Pedro Alves <pedro@codesourcery.com>
3339 * frame.c (frame_unwind_register): Throw an error if unwinding the
3341 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3342 an unwind stop reason.
3343 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3344 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3345 UNWIND_UNAVAILABLE>: New.
3346 * inline-frame.c (inline_frame_unwind): Install
3347 default_frame_unwind_stop_reason.
3348 * frame-unwind.c: Include "exceptions.h".
3349 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3350 (default_frame_unwind_stop_reason): New.
3351 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3352 (default_frame_unwind_stop_reason): Declare.
3353 (struct frame_unwind) <stop_reason>: New function pointer.
3355 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3356 * dwarf2-frame.c: Include exceptions.h.
3357 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3358 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3359 computing the CFA. If such an error was thrown, set
3360 unavailable_retaddr.
3361 (dwarf2_frame_unwind_stop_reason): New.
3362 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3364 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3365 (dwarf2_signal_frame_unwind): Ditto.
3367 * amd64-tdep.c: Include "exceptions.h".
3368 (struct amd64_frame_cache): New field "base_p".
3369 (amd64_init_frame_cache): Clear it.
3370 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3371 Avoid reading registers with functions that throw if the register
3372 is not necessary to compute the frame base.
3373 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3374 swallowing NOT_AVAILABLE_ERROR.
3375 (amd64_frame_unwind_stop_reason): New.
3376 (amd64_frame_this_id): Don't build a frame id if the frame base
3378 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3379 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3380 base_p if the frame base was computable.
3381 (amd64_sigtramp_frame_unwind_stop_reason): New.
3382 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3383 frame base was unavailable.
3384 (amd64_sigtramp_frame_unwind): Install
3385 amd64_sigtramp_frame_unwind_stop_reason.
3386 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3387 base_p if the frame base was computable.
3388 (amd64_epilogue_frame_unwind_stop_reason): New.
3389 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3390 frame base was unavailable.
3391 (amd64_epilogue_frame_unwind): Install
3392 amd64_epilogue_frame_unwind_stop_reason.
3393 * i386-tdep.c: Include "exceptions.h".
3394 (struct i386_frame_cache): New field "base_p".
3395 (i386_init_frame_cache): Clear it.
3396 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3397 Avoid reading registers with functions that throw if the register
3398 is not necessary to compute the frame base.
3399 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3400 swallowing NOT_AVAILABLE_ERROR.
3401 (i386_frame_unwind_stop_reason): New.
3402 (i386_frame_this_id): Don't build a frame id if the frame base was
3404 (i386_frame_prev_register): Handle unavailable SP.
3405 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3406 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3407 base_p if the frame base was computable.
3408 (i386_epilogue_frame_unwind_stop_reason): New.
3409 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3410 base was unavailable.
3411 (i386_epilogue_frame_unwind): Install
3412 i386_epilogue_frame_unwind_stop_reason.
3413 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3414 base_p if the frame base was computable.
3415 (i386_sigtramp_frame_unwind_stop_reason): New.
3416 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3417 base was unavailable.
3418 (i386_sigtramp_frame_unwind): Install
3419 i386_sigtramp_frame_unwind_stop_reason.
3420 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3421 type's size, not the register's.
3422 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3424 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3425 default_frame_unwind_stop_reason.
3426 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3427 (alpha_heuristic_frame_unwind): Ditto.
3428 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3429 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3430 * avr-tdep.c (avr_frame_unwind): Ditto.
3431 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3433 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3434 * frv-tdep.c (frv_frame_unwind): Ditto.
3435 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3436 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3437 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3438 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3439 (hppa_stub_frame_unwind): Ditto.
3440 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3441 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3442 (ia64_libunwind_frame_unwind)
3443 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3444 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3445 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3446 * m32c-tdep.c (m32c_unwind): Ditto.
3447 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3448 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3449 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3450 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3451 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3452 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3453 * mep-tdep.c (mep_frame_unwind): Ditto.
3454 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3455 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3456 (mips_stub_frame_unwind): Ditto.
3457 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3458 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3459 * mt-tdep.c (mt_frame_unwind): Ditto.
3460 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3461 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3462 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3463 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3464 (s390_sigtramp_frame_unwind): Ditto.
3465 * score-tdep.c (score_prologue_unwind): Ditto.
3466 * sh-tdep.c (sh_frame_unwind): Ditto.
3467 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3468 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3469 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3470 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3471 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3472 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3473 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3474 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3475 (sparc64obsd_trapframe_unwind): Ditto.
3476 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3477 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3478 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3479 * v850-tdep.c (v850_frame_unwind): Ditto.
3480 * vax-tdep.c (vax_frame_unwind): Ditto.
3481 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3482 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3483 * xtensa-tdep.c (xtensa_unwind): Ditto.
3485 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3487 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3488 there's always a frame. Use get_frame_pc_if_available instead of
3489 get_frame_pc, and if there's no PC available, don't look up a
3492 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3494 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3497 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3499 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3502 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3504 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3505 * frame.c (frame_unwind_caller_pc_if_available): New.
3506 * stack.c (frame_info): Handle unavailable PC.
3508 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3510 * frame.c (frame_unwind_pc): Rename to ...
3511 (frame_unwind_pc_if_available): ... this. New `pc' output
3512 parameter. Change return type to int. Gracefully handle
3513 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3514 happened, or 1 otherwise.
3515 (frame_unwind_pc): Reimplement on top of
3516 frame_unwind_pc_if_available.
3517 (get_frame_func): Rename to ...
3518 (get_frame_func_if_available): New `pc' output parameter. Change
3519 return type to int. Gracefully handle the PC not being available.
3520 (get_frame_func): Reimplement on top of
3521 get_frame_func_if_available.
3522 (select_frame): Handle the PC being unavailable.
3523 (get_prev_frame): Handle the PC being unavailable.
3524 (get_frame_pc_if_available): New.
3525 (get_frame_address_in_block_if_available): New.
3526 (find_frame_sal): Handle the frame PC not being available.
3527 * frame.h (get_frame_pc_if_available): Declare.
3528 (get_frame_address_in_block_if_available): Declare.
3529 (get_frame_func_if_available): Declare.
3530 * stack.c (print_frame_info): Handle the PC being unavailable.
3531 (find_frame_funname): Ditto.
3532 (print_frame): Handle the PC being unavailable.
3533 (get_frame_language): Ditto.
3534 * blockframe.c (get_frame_block): Ditto.
3535 * macroscope.c (default_macro_scope): Ditto.
3536 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3538 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3540 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3541 NOT_AVAILABLE_ERROR when evaluating the location expression.
3543 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3545 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3546 returning that the register piece is unavailable/optimized out.
3547 (write_pieced_value): Handle get_frame_register_bytes returning
3548 that the register piece is unavailable/optimized out when doing a
3549 read-modify write of a bitfield.
3550 * findvar.c (value_from_register): Handle get_frame_register_bytes
3551 returning that the register piece is unavailable/optimized out.
3552 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3553 and `unavailablep'. Throw error on bad debug info. Use
3554 frame_register instead of frame_register_read, to fill in the new
3556 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3558 * valops.c: (value_assign): Adjust, and handle
3559 get_frame_register_bytes failing.
3560 * spu-tdep.c: Include exceptions.h.
3561 (spu_software_single_step): Adjust, and handle
3562 get_frame_register_bytes failing.
3563 (spu_get_longjmp_target): Ditto.
3564 * gdbarch.sh (register_to_value): Change to return int. New
3565 parameters `optimizedp' and `unavailablep'.
3566 * gdbarch.h, gdbarch.c: Regenerate.
3567 * i386-tdep.c (i386_register_to_value): Adjust to new
3568 gdbarch_register_to_value interface.
3569 * i387-tdep.c (i387_register_to_value): Ditto.
3570 * i387-tdep.h (i387_register_to_value): Ditto.
3571 * alpha-tdep.c (alpha_register_to_value): Ditto.
3572 * ia64-tdep.c (ia64_register_to_value): Ditto.
3573 * m68k-tdep.c (m68k_register_to_value): Ditto.
3574 * mips-tdep.c (mips_register_to_value): Ditto.
3575 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3577 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3579 * findvar.c (value_of_register): Mark the value as unavailable, if
3580 the register is unavailable.
3581 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3582 (frame_register): New `unavailablep' parameter.
3583 (frame_register_read): Update comment.
3584 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3585 Set it if the register is unavailable. If the register is
3586 unavailable, clear the output buffer.
3587 (frame_register): New `unavailablep' parameter. Pass it down.
3588 (frame_unwind_register): Adjust.
3589 (put_frame_register): Adjust.
3590 (frame_register_read): Adjust. Also return false if the register
3592 (frame_register_unwind_location): Adjust.
3593 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3594 is unavailable, mark the value accordingly.
3595 * stack.c (frame_info): Handle unavailable registers.
3597 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3599 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3600 simplify, using regcache_cooked_read.
3602 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3604 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3605 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3606 (regcache_raw_read_unsigned, regcache_raw_read_part)
3607 (regcache_cooked_read, regcache_cooked_read_signed)
3608 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3609 (regcache_cooked_read_ftype): Change return to enum
3611 * regcache.c: Include exceptions.h
3612 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3613 (do_cooked_read): Change return to enum register_status. Always
3614 forward to regcache_cooked_read.
3615 (regcache_raw_read): Change return to enum register_status. If
3616 the register is not REG_VALID, memset the buffer. Return the
3618 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3619 return the register's status.
3620 (regcache_raw_read_unsigned): Ditto.
3621 (regcache_cooked_read): Change return to enum register_status.
3622 Assert that with read-only regcaches, the register's status must
3623 be known. If the regcache is read-only, and the register is not
3624 REG_VALID, memset the buffer. Return the register's status.
3625 (regcache_cooked_read_signed): Change return to enum
3626 register_status. Handle non-REG_VALID registers and return the
3628 (regcache_cooked_read_unsigned): Change return to enum
3629 register_status. Handle non-REG_VALID registers and return the
3631 (regcache_xfer_part, regcache_raw_read_part)
3632 (regcache_cooked_read_part): Change return to enum
3633 register_status. Return the register's status.
3634 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3636 (regcache_dump): Handle unavailable cooked registers.
3637 * frame.c (do_frame_register_read): Adjust interface to match
3638 regcache_cooked_read_ftype.
3639 * gdbarch.sh (pseudo_register_read): Change return to enum
3641 * gdbarch.h, gdbarch.c: Regenerate.
3643 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3645 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3646 register_status. If reading a raw register indicates the raw
3647 register is not valid, return the raw register's status,
3648 otherwise, return REG_VALID.
3649 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3650 register_status. Handle non-REG_VALID raw registers and return
3651 the register's status.
3652 * arm-tdep.c (arm_neon_quad_read)
3653 (arm_pseudo_read): Change return to enum register_status. Handle
3654 non-REG_VALID raw registers and return the register's status.
3655 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3656 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3657 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3658 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3659 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3661 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3662 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3663 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3664 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3665 (m32c_pseudo_register_read): Change return to enum
3666 register_status. Adjust.
3667 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3668 enum register_status. Return the register's status.
3669 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3670 register_status. Return the register's status.
3671 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3672 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3673 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3674 * rs6000-tdep.c (move_ev_register_func): New typedef.
3675 (e500_move_ev_register): Use it. Change return to enum
3676 register_status. Return the register's status.
3677 (do_regcache_raw_read): New function.
3678 (do_regcache_raw_write): New function.
3679 (e500_pseudo_register_read): Change return to enum
3680 register_status. Return the register's status. Use
3681 do_regcache_raw_read.
3682 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3683 (dfp_pseudo_register_read): Change return to enum register_status.
3684 Return the register's status.
3685 (vsx_pseudo_register_read): Ditto.
3686 (efpr_pseudo_register_read): Ditto.
3687 (rs6000_pseudo_register_read): Ditto.
3688 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3689 register_status. Return the register's status.
3690 * sh64-tdep.c (pseudo_register_read_portions): New function.
3691 (sh64_pseudo_register_read): Change return to enum
3692 register_status. Use pseudo_register_read_portions. Return the
3694 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3695 register_status. Return the register's status.
3696 * sh-tdep.c (pseudo_register_read_portions): New function.
3697 (sh_pseudo_register_read): Change return to enum register_status.
3698 Use pseudo_register_read_portions. Return the register's status.
3699 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3700 enum register_status. Return the register's status.
3701 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3702 * spu-tdep.c (spu_pseudo_register_read_spu)
3703 (spu_pseudo_register_read): Ditto.
3704 * xtensa-tdep.c (xtensa_register_read_masked)
3705 (xtensa_pseudo_register_read): Ditto.
3706 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3708 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3710 * python/py-value.c (valpy_getitem): Fix formatting of error function
3713 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3715 ARI fixes: Add missing internationalization markups throughout
3717 * darwin-nat-info.c: Ditto.
3720 * mi/mi-main.c: Ditto.
3722 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3724 ARI fixes: Add missing internationalization markups throughout
3727 * cp-name-parser.y: Ditto.
3730 * objc-exp.y: Ditto.
3733 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3735 ARI fixes: Messages should have no trailing new lines.
3736 * darwin-nat.c (mach_check_error): Remove trailing new line from
3737 warning function call message.
3738 * record.c (bfdcore_read): Idem for error call.
3740 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3742 * common/signals.c (target_signal_from_host): Add _ markup to error
3743 function call message.
3744 (target_signal_to_host): Add _ markup and remove trailing new line
3745 from warning call message.
3746 (target_signal_from_command): Add _ markup to error function call
3749 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3753 * python/python.c (gdbpy_write): Accept a stream argument and
3754 operate to the appropriate stream.
3755 (gdbpy_flush): Likewise.
3756 (_initialize_python): Add stream constants.
3757 (finish_python_initialization): Add GdbOutputErrorFile class.
3759 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3761 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3763 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3765 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3766 to store_signed_integer. Add debug message when relocating CALL
3767 instructions. Fix formatting of debug message.
3768 * i386-tdep.c (i386_relocate_instruction): Ditto.
3770 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3772 * target.h (struct target_ops): Remove to_lookup_symbol field.
3773 (target_lookup_symbol): Delete macro.
3774 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3775 (update_current_target, setup_target_debug): Remove handling
3776 of to_lookup_symbol target_ops field.
3777 * ada-tasks.c (get_known_tasks_addr): Remove use of
3778 target_lookup_symbol.
3779 * coffread.c (coff_symtab_read): Likewise.
3780 * dbxread.c (read_dbx_symtab): Ditto.
3782 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3785 * configure.ac: Add getthrds declaration check.
3786 * configure, config.in: Regenerate.
3787 * aix-thread.c (getthrds): Declare only if not already declared
3788 in procinfo.h. More declaration out of get_signaled_thread to
3791 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3793 * python/py-symtab.c: Populate symtab_object_methods,
3795 (stpy_is_valid): New function.
3796 (salpy_is_valid): Ditto.
3797 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3798 (sympy_is_valid): New function.
3799 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3800 (objfpy_is_valid): New function.
3801 * python/py-inferior.c: Populate inferior_object_methods.
3802 (infpy_is_valid): New function.
3803 * python/py-infthread.c: Populate thread_object_methods.
3804 (thpy_is_valid): New function.
3805 * python/py-block.c: Declare block_object_methods. Populate. Declare
3806 block_iterator_object_methods. Populate.
3807 (blpy_is_valid): New function.
3808 (blpy_iter_is_valid): Ditto.
3810 2011-03-16 Keith Seitz <keiths@redhat.com>
3812 * linespec.c (find_methods): Canonicalize NAME before looking
3814 (name_end): New function.
3815 (keep_name_info): New function.
3816 (decode_line_1): Use keep_name_info.
3817 (decode_compound): Likewise.
3818 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3819 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3822 * linespec.c (locate_first_half): Keep overload information, too.
3823 (decode_compound): Use a string to represent break characters
3825 If P points to a break character, do not increment it.
3826 For C++ and Java, keep overload information and relevant keywords.
3827 If we cannot find a symbol, search the minimal symbols.
3830 * linespec.c (decode_compound): Rename SAVED_ARG to
3832 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3834 Pass a valid block to lookup_symbol.
3835 (lookup_prefix_sym): Likewise.
3836 (find_method): Construct search name based on SYM_CLASS instead
3838 * psymtab.c (lookup_partial_symbol): Add language parameter.
3839 (lookup_symbol_aux_psymtabs): Likewise.
3840 Don't assume that the psymtab we found was the right one. Search
3841 for the desired symbol in the symtab to be certain.
3842 (psymtab_search_name): New function.
3843 (lookup_partial_symbol): Use psymtab_search_name.
3844 Add language parameter.
3845 (read_symtabs_for_function): Add language parameter and pass to
3846 lookup_partial_symbol.
3847 (find_symbol_file_from_partial): Likewise.
3849 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3852 * dwarf2read.c (noop_record_line): New function.
3853 (dwarf_decode_lines): Ignore line tables for GCd functions.
3855 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3857 Fix ARI warnings about new lines at the end of messages, which
3858 are unneeded as there is a new line added at the end of the message
3860 * darwin-nat.c (darwin_stop_inferior): Ditto.
3861 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3862 * dfp.c (decimal_to_number): Ditto.
3863 * exec.c (print_section_info): Ditto.
3864 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3865 * osdata.c (get_osdata): Ditto.
3866 * record.c (bfdcore_write): Ditto.
3867 * remote-mips.c (mips_readchar): Ditto.
3868 * remote.c (read_ptid): Ditto.
3869 * ser-mingw.c (ser_windows_raw): Ditto.
3870 * tracepoint.c (add_local_symbols): Ditto.
3871 * windows-nat.c (fake_create_process): Ditto.
3873 2011-03-16 Tom Tromey <tromey@redhat.com>
3875 * tracepoint.c (stop_tracing): Don't declare.
3876 * event-top.c (after_char_processing_hook): Add `(void)'.
3878 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3880 * NEWS: Add Parameter sub-classing description.
3882 2011-03-16 Kai Tietz <ktietz@redhat.com>
3884 * MAINTAINERS: Update my e-mail address.
3886 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
3888 * MAINTAINERS: Add myself for write after approval privileges.
3890 2011-03-15 Michael Snyder <msnyder@vmware.com>
3892 * frame.c (find_frame_sal): Assert sym is not null.
3894 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3896 * objc-lang.c (selectors_info): Check strchr for null result.
3898 * stabsread.c (define_symbol): Guard against bad stabstring input.
3900 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3902 Remove trailing spaces and tabulations from pascal language
3907 p-valprint.c: Ditto.
3909 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3911 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3912 than LOW. Comment it.
3913 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3914 HIGHPC not strictly higher than LOWPC.
3916 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3918 Fix formatting of function declarations returning a pointer in
3920 * varobj.c (varobj_add_child): Ditto.
3921 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3922 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3924 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3926 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3927 for the "generic" vector ABI used with GCC 4.3 and later.
3928 (ppc64_sysv_abi_return_value): Likewise.
3930 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3932 * infcall.c (call_function_by_hand): Function return value is
3933 always a non_lval, even when using struct_return.
3935 2011-03-15 Pedro Alves <pedro@codesourcery.com>
3937 * printcmd.c (ALL_DISPLAYS_SAFE): New.
3938 (map_display_numbers): New.
3939 (do_delete_display): New.
3940 (undisplay_command): Use map_display_numbers.
3941 (do_enable_disable_display): New.
3942 (enable_disable_display_command): New function.
3943 (enable_display): Delete.
3944 (enable_display_command): New.
3945 (disable_display_command): Reimplement.
3946 (_initialize_printcmd): Adjust "enable display" command to use
3947 `enable_display_command' as callback.
3949 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3951 * NEWS: Add Python breakpoint 'stop' operation.
3953 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3955 * NEWS: Delete duplicate entry. Fix typo.
3957 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3959 Fix ARI warning about function names in first column.
3960 Put prototype declaration on same line as return type.
3961 * objc-exp.y: Ditto.
3963 * python/py-stopevent.h: Ditto.
3964 For long function names, split parameters to
3965 allow function name on same line as return type.
3966 * solib-pa64.c: Ditto.
3969 For long function declaration, use single line.
3970 * hppa-tdep.h: Ditto.
3971 * inferior.h: Ditto.
3973 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3975 * python/python.h: Declare gdbpy_should_stop and
3976 gdbpy_breakpoint_has_py_cond.
3977 * python/python.c: Add python.h to includes. Remove python.h from
3978 HAVE_PYTHON definition
3979 (gdbpy_should_stop): New dummy function.
3980 (gdbpy_breakpoint_has_py_cond): New dummy function.
3981 * python/py-breakpoint.c (bppy_init): Rewrite to allow
3982 sub-classing capabilities.
3983 (gdbpy_should_stop): New function.
3984 (gdbpy_breakpoint_has_py_cond): New function.
3985 (local_setattro): New function.
3986 * breakpoint.c (condition_command): Add check for Python 'stop'
3988 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3989 operation function as part of stop/continue tests.
3991 2011-03-14 Tom Tromey <tromey@redhat.com>
3994 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
3995 (needs_frame_dwarf_call): Likewise.
3997 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3999 Fix ARI warning about functions without parameters that do not
4001 * breakpoint.c (all_tracepoints): Replace () by (void).
4002 * f-exp.y (match_string_literal): Ditto.
4004 * m2-exp.y (yylex): Ditto.
4005 * mep-tdep.c (current_me_module): Ditto.
4006 (current_options): Ditto.
4007 (current_cop_data_bus_width): Ditto.
4008 (current_cr_names): Ditto.
4009 (current_cr_is_float): Ditto.
4010 (current_ccr_names): Ditto.
4011 * objc-exp.y (yylex): Ditto.
4012 * p-exp.y (yylex): Ditto.
4013 * remote.c (send_interrupt_sequence): Ditto.
4014 * tracepoint.c (current_trace_status): Ditto.
4015 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
4016 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
4018 2011-03-11 Michael Snyder <msnyder@vmware.com>
4020 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
4021 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
4022 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
4023 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
4024 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
4026 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
4027 (delete_async_event_handler): Ditto.
4029 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
4031 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
4033 * top.c (set_verbose): Assert showcmd was found.
4035 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
4037 * xtensa-tdep.c (warning_once): Correct style issues.
4039 2011-03-11 Yao Qi <yao@codesourcery.com>
4041 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
4043 2011-03-11 Andreas Schwab <schwab@redhat.com>
4045 * common/aclocal.m4: Remove.
4047 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4049 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
4050 (xtensa_write_register, xtensa_read_register): Likewise.
4051 (xtensa_hextochar): Removed.
4052 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
4054 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4056 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
4057 (xtensa_call0_frame_cache_t): Update comments. New fields added.
4058 (xtensa_alloc_frame_cache): Add initialization for new fields.
4059 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
4060 (warning_once): New function.
4061 (xtensa_insn_kind): New item c0opc_and.
4062 (call0_classify_opcode): Add the case for AND instruction.
4063 (call0_track_op): Change arguments. New local variable litbase.
4064 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
4065 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
4067 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
4068 (call0_analyze_prologue): Update the comments. Change arguments.
4069 Add the variety of updates to handle extended prologues, which now can
4070 conduct dynamic stack adjustments.
4071 (call0_frame_cache): Likewise.
4072 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
4073 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4075 2011-03-10 Michael Snyder <msnyder@vmware.com>
4077 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4078 (cmd_qtframe): Ditto.
4079 (cmd_qtbuffer): Ditto.
4080 (cmd_bigqtbuffer): Ditto.
4082 2011-03-10 Tom Tromey <tromey@redhat.com>
4084 * tracepoint.c (trace_actions_command): Update.
4085 * thread.c (thread_apply_command): Update.
4086 * reverse.c (delete_bookmark_command): Update.
4087 (bookmarks_info): Update.
4088 * printcmd.c (undisplay_command): Update.
4089 * memattr.c (mem_enable_command): Update.
4090 (mem_disable_command): Update.
4091 (mem_delete_command): Update.
4092 * inferior.c (detach_inferior_command): Update.
4093 (kill_inferior_command): Update.
4094 (remove_inferior_command): Update.
4095 * cli/cli-utils.h (struct get_number_or_range_state): New.
4096 (init_number_or_range): Declare.
4097 (get_number_or_range): Update.
4098 * cli/cli-utils.c (init_number_or_range): New function.
4099 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
4101 (number_is_in_list): Update.
4102 * breakpoint.h (get_tracepoint_by_number): Update.
4103 * breakpoint.c (map_breakpoint_numbers): Update for change to
4104 get_number_or_range.
4105 (find_location_by_number): Use get_number, not
4106 get_number_or_range.
4107 (trace_pass_set_count): New function.
4108 (trace_pass_command): Update for change to get_number_or_range.
4110 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4113 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
4115 * python/py-param.c (add_setshow_generic): Add set/show callback
4116 parameters. Register Python object context.
4117 (get_show_value): New function.
4118 (get_set_value): New function.
4119 (call_doc_function): New function.
4120 (get_doc_string): Move behind get_show_value/get_set_value.
4122 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
4124 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4126 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
4128 * xtensa-tdep.c (xtensa_read_register): Add comment.
4129 (xtensa_write_register): Likewise.
4130 (xtensa_hextochar): Add comment and update to match coding conventions.
4131 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4132 (execute_l32e, execute_s32e, execute_code): Update comments.
4133 (xtensa_exception_handler_t): Update to match coding conventions.
4134 (xtensa_insn_kind): Likewise.
4136 2011-03-09 Michael Snyder <msnyder@vmware.com>
4138 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4140 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4142 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4144 2011-03-09 Tom Tromey <tromey@redhat.com>
4146 * thread.c (restore_selected_frame): Handle frame_level == -1.
4147 (make_cleanup_restore_current_thread): Use
4148 get_selected_frame_if_set.
4149 * frame.h (get_selected_frame_if_set): Declare.
4150 * frame.c (get_selected_frame_if_set): New function.
4152 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4154 * cli/cli-cmds.c (shell_escape): Use lbasename.
4155 * coffread.c (coff_start_symtab): Constify parameter.
4156 (complete_symtab): Constify `name' parameter.
4157 (coff_symtab_read): Constify `filestring' local.
4158 (coff_getfilename): Constify return and `result' local.
4160 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4161 * linux-fork.c (info_checkpoints_command): Use lbasename.
4162 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4163 * minsyms.c (lookup_minimal_symbol): Use lbasename.
4164 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4165 * procfs.c (procfs_make_note_section): Use lbasename.
4166 * tui/tui-io.c (printable_part): Constity return and parameter.
4168 (print_filename): Constify parameters, and local `s'.
4169 (tui_rl_display_match_list): Constify local `temp'.
4171 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4174 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4175 Fix DWARF-3+ DW_AT_accessibility default assumption.
4176 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4177 cu->header.version >= 3.
4179 2011-03-09 Yao Qi <yao@codesourcery.com>
4181 * common/Makefile.in: Remove.
4182 * common/configure: Remove.
4183 * common/configure.ac: Remove.
4185 2011-03-09 Yao Qi <yao@codesourcery.com>
4188 2011-02-11 Yao Qi <yao@codesourcery.com>
4190 * common/Makefile.in: Add copyright header.
4192 2011-02-11 Yao Qi <yao@codesourcery.com>
4194 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4196 * configure.ac: Add common to sub dir.
4197 * configure: Regenerate.
4199 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4201 * xtensa-tdep.c (call0_ret): New function.
4202 (xtensa_skip_prologue): Speed up analysis.
4204 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4206 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
4207 while executing MI command -data-list-changed-registers.
4209 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4211 * xtensa-tdep.c (xtensa_read_register): New function.
4212 (xtensa_write_register): New function.
4213 (xtensa_find_register_by_name): New function.
4214 (xtensa_windowed_frame_cache): Update comments in type description.
4215 (xtensa_frame_cache): Likewise.
4216 (xtensa_window_interrupt_insn): New function.
4217 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
4218 (xtensa_insn_kind): Add new instructions.
4219 (rwx_special_register): New function.
4220 (call0_classify_opcode): Add new instructions to the analysis.
4221 (a0_saved, a7_saved, a11_saved): New variables.
4222 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
4223 (execute_l32e): New function.
4224 (execute_s32e): New function.
4225 (xtensa_exception_handler_t): New type.
4226 (execute_code): New function.
4227 (xtensa_window_interrupt_frame_cache): New function to conduct frame
4228 analysis for Xtensa Window Exception handlers.
4230 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4232 * xtensa-tdep.c (TX_PS): New.
4233 (windowing_enabled): Update to count for Call0 ABI.
4234 (xtensa_hextochar): New.
4235 (xtensa_init_reggroups): Make algorithm generic.
4236 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4238 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4240 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4242 2011-03-08 Michael Snyder <msnyder@vmware.com>
4244 * i386-tdep.c (i386_follow_jump): Check return value of
4246 (i386_analyze_struct_return): Ditto.
4247 (i386_skip_probe): Ditto.
4248 (i386_match_insn): Ditto.
4249 (i386_skip_noop): Ditto.
4250 (i386_analyze_frame_setup): Ditto.
4251 (i386_analyze_register_saves): Ditto.
4252 (i386_skip_prologue): Ditto.
4253 (i386_skip_main_prologue): Ditto.
4255 * target.c (read_whatever_is_readable): Fix memory leak.
4257 * i386-tdep.c (i386_process_record): Document fall through.
4259 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4261 Fix DWARF-3+ DW_AT_accessibility default assumption.
4262 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4263 cu->header.version >= 3.
4265 2011-03-08 Pedro Alves <pedro@codesourcery.com>
4267 * remote.c (remote_check_symbols): Skip if the target has no
4270 2011-03-08 Joel Brobecker <brobecker@adacore.com>
4272 * target.c (read_whatever_is_readable): Reformat comment,
4273 with a minor typo fix. Minor reformatting of the code.
4275 2011-03-08 Yao Qi <yao@codesourcery.com>
4277 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4278 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4279 Use cached result instead of calling displaced_in_arm_mode again.
4280 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4281 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4282 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4283 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4284 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4285 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4286 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4287 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4288 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4289 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4290 (arm_catch_kernel_helper_return): Likewise.
4291 * gdb/arm-tdep.h : Update function declarations.
4293 2011-03-07 Michael Snyder <msnyder@vmware.com>
4295 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4297 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4299 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4301 * elfread.c (elf_symtab_read): Stop memory leak.
4303 * main.c (captured_main): Fix memory leak.
4305 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
4307 * ada-lang.c (compare_names): Call is_name_suffix with string1
4310 2011-03-07 Tom Tromey <tromey@redhat.com>
4312 * xcoffread.c (xcoff_sym_fns): Update.
4313 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4314 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4315 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4316 (symbol_file_add_with_addrs_or_offsets): Likewise.
4317 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4318 * somread.c (som_sym_fns): Update.
4319 * psymtab.h (require_partial_symbols): Declare.
4320 * psymtab.c (require_partial_symbols): New function.
4321 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4322 (ALL_OBJFILE_PSYMTABS): Undef.
4323 (ALL_PSYMTABS): Move from psympriv.h.
4324 (lookup_partial_symtab, find_pc_sect_psymtab)
4325 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4326 (find_last_source_symtab_from_partial)
4327 (forget_cached_source_info_partial)
4328 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4329 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4330 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4331 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4332 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4333 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4334 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4335 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4336 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4338 * mipsread.c (ecoff_sym_fns): Update.
4339 * machoread.c (macho_sym_fns): Update.
4340 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4341 (read_psyms): New function.
4342 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4343 (elf_sym_fns_lazy_psyms): New global.
4344 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4345 dwarf2_build_psymtabs.
4346 * dbxread.c (aout_sym_fns): Update.
4347 * coffread.c (coff_sym_fns): Update.
4349 2011-03-07 Tom Tromey <tromey@redhat.com>
4351 * infrun.c (print_exited_reason): Include inferior id and pid in
4354 2011-03-07 Tom Tromey <tromey@redhat.com>
4356 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4358 (target_has_execution_1): Update.
4359 (target_has_execution_current): Declare.
4360 (target_has_execution): Call target_has_execution_current.
4361 (default_child_has_execution): Update.
4362 * target.c (default_child_has_execution): Add 'the_ptid'
4364 (target_has_execution_1): Likewise.
4365 (target_has_execution_current): New function.
4366 (add_target): Update.
4367 (init_dummy_target): Update.
4368 * remote-m32r-sdi.c (m32r_has_execution): New function.
4369 (init_m32r_ops): Use it.
4370 * record.c (record_core_has_execution): Now static. Add
4371 'the_ptid' parameter.
4372 * inferior.c (have_live_inferiors): Don't save current thread.
4373 Use target_has_execution_1.
4375 2011-03-07 Yao Qi <yao@codesourcery.com>
4377 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4379 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4381 * elfread.c (elf_symtab_read): Minor reformatting.
4383 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4385 * objc-lang.c (selectors_info): Minor reformatting.
4387 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4389 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4391 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4392 Michael Snyder <msnyder@vmware.com>
4394 * ada-valprint.c (ada_val_print_array): Move the declaration of
4395 "byte_order" and "elttype" inside the block where these variables
4396 are actually used. Remove some special handling for the case
4397 where "elttype" and "eltlen" are null. Replace by a comment
4398 and a couple of assertion checks.
4400 2011-03-05 Michael Snyder <msnyder@vmware.com>
4402 * source.c (add_path): Replace semicolon at end of block.
4403 * dwarf2expr.c (execute_stack_op): Ditto.
4405 2011-03-05 Mike Frysinger <vapier@gentoo.org>
4407 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4408 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4409 (bfin-*-*): Likewise.
4411 2011-03-05 Michael Snyder <msnyder@vmware.com>
4413 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4414 * mdebugread.c (parse_symbol): Ditto.
4415 * parse.c (parse_exp_in_context): Ditto.
4416 * source.c (add_path): Ditto.
4417 * utils.c (gnu_debuglink_crc32): Ditto.
4418 * varobj.c (variable_language): Ditto.
4420 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4422 2011-03-04 Michael Snyder <msnyder@vmware.com>
4424 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4426 * symfile.c (simple_overlay_update): Check for null return value
4427 from lookup_minimal_symbol.
4429 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4431 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4433 * eval.c (parse_and_eval_address_1): Remove function.
4434 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4435 instead of parse_and_eval_address_1.
4436 * value.h (parse_and_eval_address_1): Remove prototype.
4438 2011-03-04 Michael Snyder <msnyder@vmware.com>
4440 * remote.c (putpkt_binary): Document that case stmt falls through.
4442 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4444 * breakpointc (print_it_typical): Move NULL check from here...
4445 (print_bp_stop_message): ... to here.
4447 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4449 * breakpoint.c (enable_command): Use break instead of continue,
4450 and fill in a missing break.
4451 (disable_command): Ditto.
4453 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4455 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4456 (terminal_save_ours): Remove misleading comment.
4457 (inflow_inferior_data_cleanup): Free ttystate.
4458 (inflow_inferior_exit): Likewise.
4459 (copy_terminal_info): Copy ttystate.
4461 * serial.c (serial_copy_tty_state): New function.
4462 * serial.h (serial_copy_tty_state): Add prototype.
4463 (struct serial_ops): Add copy_tty_state callback.
4464 * ser-base.c (ser_base_copy_tty_state): New function.
4465 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4466 * ser-go32.c (dos_copy_tty_state): New function.
4467 (dos_ops): Install copy_tty_state callback.
4468 * ser-mingw.c (_initialize_ser_windows): Likewise.
4469 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4470 * ser-unix.c (hardwire_copy_tty_state): New function.
4471 (_initialize_ser_hardwire): Install it.
4473 2011-03-04 Michael Snyder <msnyder@vmware.com>
4475 * breakpoint.c (create_breakpoint): Add missing break statement.
4477 Reverting this patch:
4478 * infcall.c (call_function_by_hand): Add break statements for lint.
4480 Reverting this patch:
4481 * cli/cli-script.c (script_from_file): Add break for lint.
4483 2011-03-04 Michael Snyder <msnyder@vmware.com>
4485 * solib.c (reload_shared_libraries_1): Close memory leak.
4487 2011-03-03 Tom Tromey <tromey@redhat.com>
4490 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4493 2011-03-03 Michael Snyder <msnyder@vmware.com>
4495 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4496 fields of struct 'st' to zero.
4498 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4499 sal.pspace before calling set_current_source_symtab_and_line.
4501 2011-03-03 Yao Qi <yao@codesourcery.com>
4503 * Makefile.in (configure-common): Remove. Let Makefile
4504 in dir common to rebuild itself.
4505 (common/Makefile): Likewise.
4507 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4509 * utils.c (parse_escape): Add i18n markup in error message.
4511 2011-03-03 Yao Qi <yao@codesourcery.com>
4513 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4515 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4516 (displaced_write_reg, displaced_read_reg): Likewise.
4517 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4518 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4519 (cleanup_branch): Replace magic number 14 and 15 with
4520 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4522 2011-03-02 Michael Snyder <msnyder@vmware.com>
4524 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4526 * cli/cli-script.c (script_from_file): Add break for lint.
4528 * mdebugread.c (parse_partial_symbols): Fix indent.
4530 * target-descriptions.c (tdesc_gdb_type): No need to call
4531 xstrdup, callee saves a copy.
4533 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4535 * infcall.c (call_function_by_hand): Add break statements for lint.
4537 * utils.c (parse_escape): Escape the escape char.
4539 * python/py-inferior.c (build_inferior_list): Error out if
4540 PyList_Append fails.
4541 (gdbpy_inferiors): Error out if build_inferior_list fails.
4543 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4546 * record.c (record_restore): Move printf to before error return.
4548 2011-03-02 Yao Qi <yao@codesourcery.com>
4550 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4551 is_thumb and insn_size.
4552 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4553 on both ARM and Thumb mode.
4554 (arm_process_displaced_insn): Set is_thumb and insn_size.
4555 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4556 (arm_displaced_step_fixup): Likewise.
4558 2011-03-01 Michael Snyder <msnyder@vmware.com>
4560 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4562 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4564 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4566 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4568 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4571 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4572 which shadows function parameter.
4574 * tracepoint.c (create_tsv_from_upload): Superfluous call
4575 to xstrdup. Callee already calls xstrdup.
4577 * linespec.c (decode_line_1): Remove unnecessary null check.
4579 * tracepoint.c (scope_info): Fix mem leak, remove underused
4582 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4583 superfluous null check.
4585 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4586 (value_of_builtin_frame_fp_reg): Ditto.
4588 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4590 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4593 * linespec.c (decode_line_1): Check for null before dereference.
4595 * reverse.c (record_restore): Move null-check to before pointer
4598 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4600 * objc-lang.c (selectors_info): Add explanitory comment.
4601 (classes_info): Ditto.
4603 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4605 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4606 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4607 versions of the trampoline. Handle Thumb vs. ARM addresses.
4608 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4609 (arm_linux_init_abi): Install it.
4610 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4611 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4613 2011-02-28 Michael Snyder <msnyder@vmware.com>
4615 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4616 a little bigger, to avoid possibility of an overflow.
4618 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4619 buffers a little bigger, to avoid possibility of an overflow.
4621 * coffread.c (coff_getfilename): Add check to avoid overflow.
4623 * objc-lang.c (selectors_info): Add a small safety margin to
4625 (classes_info): Error out on too long REGEXP.
4627 * infrun.c (handle_inferior_event): Remove unused function call.
4629 * fork-child.c (fork_inferior): Remove ifdef'd code and
4632 * linux-thread-db.c (attach_thread): Discard unused value.
4634 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4636 * remote.c (remote_get_noisy_reply): Discard unused value.
4637 (remote_vcont_resume): Ditto.
4638 (remote_stop_ns): Ditto.
4640 * linespec.c (decode_objc): Delete unused variable.
4642 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4644 * dwarf2read.c (add_partial_symbol): Discard unused values.
4645 (read_base_type): Delete unused variable.
4647 * dbxread.c (read_dbx_symtab): Discard unused value.
4649 * eval.c (evaluate_subexp_standard): Delete unused variable,
4650 and discard unused values.
4652 * infcmd.c (_initialize_infcmd): Discard unused values.
4654 * stabsread.c (rs6000_builtin_type): Missing break statement.
4656 * dbxread.c (process_one_symbol): Discard unused value.
4658 * coffread.c (coff_end_symtab): Delete unused variable.
4660 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4661 (dwarf2_add_typedef): Delete unused variable.
4662 (read_namespace): Ditto.
4663 (dwarf_decode_macros): Ditto.
4665 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4667 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4669 * p-valprint.c (pascal_val_print): Discard unused value.
4671 * utils.c (nquery): Call va_end before return;
4675 * proc-service.c (ps_plog): Call va_end before return.
4677 2011-02-28 Tom Tromey <tromey@redhat.com>
4679 * python/python.c (gdbpy_value_cst): New global.
4680 (_initialize_python): Initialize it.
4681 * python/python-internal.h (gdbpy_value_cst): Declare.
4682 * python/py-value.c (convert_value_from_python): Use
4685 2011-02-28 Michael Snyder <msnyder@vmware.com>
4687 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4689 * breakpoint.c (catch_syscall_completer): Free malloced list.
4691 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4693 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4694 (lval_func_check_synthetic_pointer): Ditto.
4695 (lval_func_free_closure): Fix use-after-free.
4697 2011-02-28 Tom Tromey <tromey@redhat.com>
4699 * psymtab.c (expand_partial_symbol_tables): Use
4700 ALL_OBJFILE_PSYMTABS.
4702 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4704 * objc-lang.c (selectors_info): Error on too long REGEXP.
4706 2011-02-28 Michael Snyder <msnyder@vmware.com>
4708 * python/py-param.c (set_parameter_value): Add missing
4711 * linux-record.c (record_linux_system_call): Add missing
4714 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4716 * breakpoint.c (print_one_breakpoint_location): Remove unused
4717 argument PRINT_ADDRESS_BITS. Update callers.
4718 (print_one_breakpoint): Likewise.
4720 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4722 * breakpoint.c (wrap_indent_at_field): New function.
4723 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4724 Allocate ui_stream locally instead of using STB argument.
4725 (print_one_breakpoint_location): Update call.
4726 * ui-out.c (ui_out_query_field): New function.
4727 * ui-out.h (ui_out_query_field): Add prototype.
4729 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4731 From Michael Snyder <msnyder@vmware.com>
4732 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4734 2011-02-27 Michael Snyder <msnyder@vmware.com>
4736 * objc-lang.c (selectors_info): Prevent string overrun.
4738 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4741 * symtab.c (rbreak_command): Move variable 'file_name' to
4744 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4745 param with a local variable of the same name.
4747 2011-02-27 Michael Snyder <msnyder@vmware.com>
4749 * value.c (value_from_history_ref): New function.
4750 * value.h (value_from_history_ref): Export.
4751 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4752 to parse value history references.
4753 * cli/cli-utils.h (get_number_trailer): Update comment.
4755 2011-02-27 Michael Snyder <msnyder@vmware.com>
4757 * inferior.c (detach_inferior_command): Use get_number_or_range.
4758 (kill_inferior_command): Ditto.
4759 (remove_inferior_command): Ditto.
4760 (initialize_inferiors): Make command names plural.
4761 Update help strings.
4763 2011-02-27 Michael Snyder <msnyder@vmware.com>
4765 * darwin-nat-info.c: Fix comment typo.
4766 * dwarf2expr.h: Ditto.
4767 * fbsd-nat.c: Ditto.
4768 * fbsd-nat.h: Ditto.
4769 * frame-unwind.h: Ditto.
4771 * hppa-hpux-tdep.c: Ditto.
4772 * i386-linux-nat.c: Ditto.
4773 * linux-nat.c: Ditto.
4774 * nbsd-nat.c: Ditto.
4775 * nbsd-nat.h: Ditto.
4776 * ppc-linux-tdep.c: Ditto.
4779 * tui/tui-winsource.c: Ditto.
4781 2011-02-26 Michael Snyder <msnyder@vmware.com>
4783 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4785 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4787 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4788 with a local variable of the same name.
4790 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4791 param with a local variable of the same name.
4792 (i387_supply_xsave): Ditto.
4794 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4795 that it does not shadow a function parameter.
4797 * i386-nat.c (i386_length_and_rw_bits): Document that case
4798 statement is meant to fall through.
4800 * expprint.c (dump_subexp_body_standard): Document that case
4801 statement is meant to fall through.
4803 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4804 dead if statement. Condition can't be false.
4806 2011-02-25 Michael Snyder <msnyder@vmware.com>
4808 * arm-tdep.c: Fix typos in comments.
4809 * bsd-uthread.c: Ditto.
4810 * completer.c: Ditto.
4812 * cp-namespace.c: Ditto.
4813 * cp-support.c: Ditto.
4814 * cris-tdep.c: Ditto.
4816 * dwarf2read.c: Ditto.
4818 * gdbtypes.h: Ditto.
4819 * inferior.h: Ditto.
4820 * mdebugread.c: Ditto.
4821 * mips-tdep.c: Ditto.
4822 * ppc-linux-nat.c: Ditto.
4823 * ppc-linux-tdep.c: Ditto.
4824 * printcmd.c: Ditto.
4825 * sol-thread.c: Ditto.
4826 * solib-frv.c: Ditto.
4828 * sparc64-tdep.c: Ditto.
4829 * spu-tdep.c: Ditto.
4830 * stabsread.c: Ditto.
4835 * python/py-block.c: Ditto.
4836 * python/py-symbol.c: Ditto.
4837 * python/py-symtab.c: Ditto.
4838 * python/py-value.c: Ditto.
4839 * tui/tui-win.c: Ditto.
4841 2011-02-25 Michael Snyder <msnyder@vmware.com>
4843 * inferior.c (print_inferior): Accept a string instead of an int
4844 for requested_inferiors, and use get_number_or_range to parse it.
4845 (info_inferiors_command): Pass args string to print_inferior.
4846 (initialize_inferiors): Change help string for info inferiors.
4847 * inferior.h (print_inferior): Export prototype change.
4849 2011-02-25 Tom Tromey <tromey@redhat.com>
4851 * common/ax.def (invalid2): Set to 0x31.
4853 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4855 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4857 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4859 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4861 2011-02-24 Michael Snyder <msnyder@vmware.com>
4863 * Makefile.in (clean): Make clean should remove generated files
4864 observer.h and observer.inc.
4866 2011-02-24 Joel Brobecker <brobecker@adacore.com>
4868 Revert the following patch (not approved yet):
4869 2011-02-21 Hui Zhu <teawater@gmail.com>
4870 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4871 * ax-gdb.c (gen_printf_expr_callback): New function.
4872 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4873 * ax-general.c (ax_memcpy): New function.
4874 (ax_print): Handle "printf".
4876 * ax.h (ax_memcpy): Forward declare.
4877 * common/ax.def (invalid2): Removed.
4878 (printf): New entry.
4879 * printcmd.c (printcmd.h): New include.
4880 (string_printf): New function.
4881 (ui_printf): Removed.
4882 (printf_command): Remove static. Call string_printf.
4883 (eval_command): Call string_printf.
4884 * printcmd.h: New file.
4885 * tracepoint.c (validate_actionline,
4886 encode_actions_1): handle printf_command.
4888 2011-02-23 Tom Tromey <tromey@redhat.com>
4890 * ax-general.c (ax_pick): Add missing newline.
4892 2011-02-23 Michael Snyder <msnyder@vmware.com>
4894 * breakpoint.c (breakpoint_1): Change first argument from an int
4895 to a char pointer, so that the function now accepts a list of
4896 breakpoints rather than just one. Use new function
4897 'number_is_in_list' to implement.
4898 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4899 (watchpoints_info): Ditto.
4900 (tracepoints_info): Ditto.
4901 (maintenance_info_breakpoints): Ditto.
4902 (_initialize_breakpoint): Update help strings to reflect the fact
4903 that these functions can now take more than one argument.
4904 * cli/cli-utils.c (number_is_in_list): New function.
4905 * cli/cli-utils.h (number_is_in_list): Export.
4907 2011-02-23 Michael Snyder <msnyder@vmware.com>
4909 * memattr.c (mem_enable_command): Use get_number_or_range.
4910 (mem_disable_command): Ditto.
4911 (mem_delete_command): Ditto.
4912 (_initialize_mem): Tweak usage message to reflect multiple
4915 2011-02-22 Doug Evans <dje@google.com>
4917 Add gdb.lookup_global_symbol python function.
4919 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4920 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4921 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4923 2011-02-22 Tom Tromey <tromey@redhat.com>
4925 * language.c (language_class_name_from_physname): Rename
4926 'curr_language' argument to 'lang'; use in body.
4928 2011-02-22 Michael Snyder <msnyder@vmware.com>
4930 * cli/cli-utils.c (number_is_in_list): Check for zero return.
4932 2011-02-22 Pedro Alves <pedro@codesourcery.com>
4934 * frame-unwind.h: Fix comment to mention the this frame, not the
4937 2011-02-22 Tom Tromey <tromey@redhat.com>
4939 * symfile.c (auto_solib_limit): Remove.
4940 * symfile.h (auto_solib_limit): Remove.
4942 2011-02-22 Joel Brobecker <brobecker@adacore.com>
4944 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4946 2011-02-21 Michael Snyder <msnyder@vmware.com>
4948 * gdbthread.h (print_thread_info): Change prototype.
4949 * thread.c (print_thread_info): Accept char* instead of int for
4950 requested_threads argument. Use new function number_is_in_list
4951 to determine which threads to list.
4952 (info_threads_command): Pass char* to print_thread_info.
4953 * cli/cli-utils.c (number_is_in_list): New function.
4954 * cli/cli-utils.h (number_is_in_list): Export.
4955 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4957 (print_one_inferior): Ditto.
4958 (mi_cmd_list_thread_groups): Ditto.
4960 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4962 * common/Makefile.in (CFLAGS): New.
4963 (COMPILE): Add $(CFLAGS).
4965 2011-02-21 Tom Tromey <tromey@redhat.com>
4967 * breakpoint.c (catch_syscall_command_1): Fix typo.
4969 2011-02-21 Tom Tromey <tromey@redhat.com>
4971 * reverse.c: Include cli-utils.h.
4972 * printcmd.c: Include cli-utils.h.
4973 (string_printf): Use skip_spaces.
4974 * cli/cli-utils.h: New file.
4975 * cli/cli-utils.c: New file.
4976 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4977 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4978 * breakpoint.h (get_number, get_number_or_range): Move to
4980 * breakpoint.c: Include cli-utils.h.
4981 (get_number_trailer, get_number, get_number_or_range)
4982 (ep_skip_leading_whitespace): Move to cli-utils.c.
4983 (create_breakpoint_sal, find_condition_and_thread)
4984 (decode_static_tracepoint_spec, watch_command_1)
4985 (watch_maybe_just_location, ep_parse_optional_if_clause)
4986 (catch_fork_command_1, catch_exec_command_1)
4987 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4988 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4989 (SUBDIR_CLI_SRCS): Add cli-utils.c.
4990 (HFILES_NO_SRCDIR): Add cli-utils.h.
4991 (cli-utils.o): New target.
4993 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4995 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
4996 before calling discard_all_inferiors.
4998 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5000 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
5001 (struct builtin_opencl_type): Remove.
5002 (builtin_opencl_type): Change return type to "struct type **".
5003 (lookup_opencl_vector_type): Update caller.
5004 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
5005 (build_opencl_types): Install plain array of "struct type *"
5006 instead of "struct builtin_opencl_type".
5008 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5009 Ulrich Weigand <uweigand@de.ibm.com>
5011 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
5012 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
5013 (struct arm_linux_hwbp_cap): New type.
5014 (arm_linux_get_hwbp_cap): New function.
5015 (arm_linux_get_hw_breakpoint_count): Likewise.
5016 (arm_linux_get_hw_watchpoint_count): Likewise.
5017 (arm_linux_can_use_hw_breakpoint): Likewise.
5018 (arm_hwbp_type): New type.
5019 (arm_hwbp_control_t): Likewise.
5020 (struct arm_linux_hw_breakpoint): Likewise.
5021 (struct arm_linux_thread_points): Likewise.
5022 (arm_threads): New global variable.
5023 (arm_linux_find_breakpoints_by_tid): New function.
5024 (arm_hwbp_control_initialize): Likewise.
5025 (arm_hwbp_control_is_enabled): Likewise.
5026 (arm_hwbp_control_disable): Likewise.
5027 (arm_linux_hw_breakpoint_initialize): Likewise.
5028 (arm_linux_get_hwbp_type): Likewise.
5029 (arm_linux_hw_watchpoint_initialize): Likewise.
5030 (arm_linux_hw_breakpoint_equal): Likewise.
5031 (arm_linux_insert_hw_breakpoint1): Likewise.
5032 (arm_linux_remove_hw_breakpoint1): Likewise.
5033 (arm_linux_insert_hw_breakpoint): Likewise.
5034 (arm_linux_remove_hw_breakpoint): Likewise.
5035 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
5036 (arm_linux_insert_watchpoint): Likewise.
5037 (arm_linux_remove_watchpoint): Likewise.
5038 (arm_linux_stopped_data_address): Likewise.
5039 (arm_linux_stopped_by_watchpoint): Likewise.
5040 (arm_linux_watchpoint_addr_within_range): Likewise.
5041 (arm_linux_new_thread): Likewise.
5042 (arm_linux_thread_exit): Likewise.
5043 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
5044 related target callbacks. Register arm_linux_new_thread and
5045 arm_linux_thread_exit.
5046 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
5047 * arm-tdep.c (arm_pc_is_thumb): Make global.
5048 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
5050 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5052 * breakpoint.c (update_watchpoint): Do not attempt to recreate
5053 per-frame locations while within a function epilogue.
5055 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5057 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
5058 to GNU coding standards.
5060 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5062 Allow use of mingw native on Windows 95 OS.
5063 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
5064 (ser_windows_close): Only call CancelIo if function exists.
5065 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
5066 to check for existence of CancelIo function in kernel32 DLL.
5068 2011-02-21 Hui Zhu <teawater@gmail.com>
5070 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5071 * ax-gdb.c (gen_printf_expr_callback): New function.
5072 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5073 * ax-general.c (ax_memcpy): New function.
5074 (ax_print): Handle "printf".
5076 * ax.h (ax_memcpy): Forward declare.
5077 * common/ax.def (invalid2): Removed.
5078 (printf): New entry.
5079 * printcmd.c (printcmd.h): New include.
5080 (string_printf): New function.
5081 (ui_printf): Removed.
5082 (printf_command): Remove static. Call string_printf.
5083 (eval_command): Call string_printf.
5084 * printcmd.h: New file.
5085 * tracepoint.c (validate_actionline,
5086 encode_actions_1): handle printf_command.
5088 2011-02-19 Michael Snyder <msnyder@vmware.com>
5090 * reverse.c (delete_one_bookmark): Argument is now bookmark
5091 id rather than pointer to bookmark struct.
5092 (delete_bookmark_command): Use get_number_or_range.
5093 (goto_bookmark_command): Parse with get_number instead of strtoul.
5094 (bookmark_1): New function. Print info for one bookmark.
5095 (bookmarks_info): Use get_number_or_range and bookmark_1.
5097 2011-02-18 Michael Snyder <msnyder@vmware.com>
5099 * thread.c (info_threads_command): Re-implement using
5100 get_number_or_range.
5101 (thread_apply_command): Ditto.
5103 2011-02-18 Tom Tromey <tromey@redhat.com>
5105 * common/ax.def: New file.
5106 * ax.h (enum agent_op): Use ax.def.
5107 * ax-general.c (aop_map): Use ax.def.
5109 2011-02-18 Tom Tromey <tromey@redhat.com>
5111 * ax-general.c (aop_map): Add pick and rot.
5112 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5113 <DW_OP_rot>: Implement.
5114 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5116 * ax-general.c (ax_pick): New function.
5118 2011-02-18 Tom Tromey <tromey@redhat.com>
5120 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5122 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5123 Tom Tromey <tromey@redhat.com>
5125 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5126 make_symbol_overload_list_block with NULL BLOCK.
5127 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5129 2011-02-18 Pedro Alves <pedro@codesourcery.com>
5131 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5132 * breakpoint.h (get_number_or_range): Declare.
5133 * printcmd.c (ALL_DISPLAYS): Declare.
5134 (delete_display): Reimplement taking a display pointer.
5135 (undisplay_command): Accept a range of displays to delete, using
5136 get_number_or_range.
5138 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5140 * c-valprint.c (c_val_print): Add embedded_offset to address
5141 for arrays of unspecified length.
5142 * p-valprint.c (pascal_val_print): Likewise.
5144 2011-02-18 Yao Qi <yao@codesourcery.com>
5146 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5147 (arm_process_displaced_insn): .. here. Remove parameter INSN.
5148 (thumb_process_displaced_insn): New.
5149 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5150 call to arm_process_displaced_insn.
5151 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5153 2011-02-17 Tom Tromey <tromey@redhat.com>
5155 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5156 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5157 compile_dwarf_to_ax. No longer static. Call
5158 dwarf2_compile_cfa_to_ax.
5159 (locexpr_tracepoint_var_ref): Update.
5160 (loclist_tracepoint_var_ref): Update.
5161 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5162 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5163 argument; add 'gdbarch' and 'pc'.
5164 (dwarf2_compile_cfa_to_ax): New function.
5165 (dwarf2_frame_cache): Update.
5167 2011-02-17 Joel Brobecker <brobecker@adacore.com>
5169 * ada-lang.c (ada_type_of_array): Fix the size of the array
5170 in the case of an unconstrained packed array.
5172 2011-02-17 Yao Qi <yao@codesourcery.com>
5174 * common/Makefile.in: Add more targets for make.
5176 2011-02-16 Tom Tromey <tromey@redhat.com>
5178 * dwarf2loc.c (unimplemented): Fix typo.
5180 2011-02-16 Tom Tromey <tromey@redhat.com>
5182 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5183 (compile_dwarf_to_ax) <default>: Use unimplemented.
5184 <DW_OP_deref>: Update.
5185 (disassemble_dwarf_expression): Update.
5186 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5187 (decode_locdesc): Update.
5188 * dwarf2expr.h (dwarf_stack_op_name): Update.
5190 2011-02-16 Tom Tromey <tromey@redhat.com>
5192 * ax.h (struct aop_map) <name>: Now const.
5194 2011-02-16 Tom Tromey <tromey@redhat.com>
5196 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5199 2011-02-16 Yao Qi <yao@codesourcery.com>
5201 * infrun.c (get_displaced_step_closure_by_addr): New.
5202 * inferior.h: Declare it.
5203 * arm-tdep.c: (arm_pc_is_thumb): Call
5204 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
5207 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5208 Jan Kratochvil <jan.kratochvil@redhat.com>
5211 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
5213 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5214 Jan Kratochvil <jan.kratochvil@redhat.com>
5216 * value.c (value_contents_copy_raw): Extend describing comment.
5217 Assert that the destination contents we're overwriting are wholly
5219 (value_contents_copy): Extend describing comment.
5221 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5222 Jan Kratochvil <jan.kratochvil@redhat.com>
5224 * value.c (value_available_contents_eq): Remove redundant local
5225 variables. Fix available contents comparision.
5226 * value.h (value_available_contents_eq): Extend describing
5229 2011-02-16 Yao Qi <yao@codesourcery.com>
5231 * thread.c (info_threads_command): Add missing i18n markup and remove
5234 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5236 * breakpoint.c (longjmp_names): New variable.
5237 (struct breakpoint_objfile_data): New type.
5238 (breakpoint_objfile_key): New variable.
5239 (msym_not_found): New variable.
5240 (msym_not_found_p): New predicate.
5241 (get_breakpoint_objfile_data): New function.
5242 (create_overlay_event_breakpoint): Check per-objfile cache for
5244 (create_longjmp_master_breakpoint): Likewise.
5245 (create_std_terminate_master_breakpoint): Likewise.
5246 (create_exception_master_breakpoint): Likewise.
5247 (_initialize_breakpoint): Register per-objfile data key.
5249 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5251 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5253 (create_longjmp_master_breakpoint): Loop over longjmp names.
5254 (create_std_terminate_master_breakpoint): Const-propagate parameter
5256 (update_breakpoints_after_exec): Adjust.
5257 (breakpoint_re_set): Adjust.
5259 2011-02-15 Michael Snyder <msnyder@vmware.com>
5261 * thread.c (info_threads_command): Process arg as thread id,
5262 or list of thread ids.
5263 (thread_find_command): New command.
5264 (_initialize_thread): Document argument for info threads.
5265 Document 'thread find' command.
5266 * NEWS: Document new command "thread find".
5268 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5270 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5271 * aclocal.m4: Regenerated with aclocal-1.11.1.
5272 * common/configure: Regenerate with autoconf-2.64.
5274 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
5276 * opencl-lang.c (build_opencl_types): Set the size of the built-in
5277 bool data type to a size of one byte.
5279 2011-02-15 Pedro Alves <pedro@codesourcery.com>
5280 Jan Kratochvil <jan.kratochvil@redhat.com>
5282 * target.c (memory_xfer_live_readonly_partial): Document where to
5283 look for interface description.
5285 2011-02-15 Yao Qi <yao@codesourcery.com>
5288 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5289 order to store PC value on stack instead of text section.
5291 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
5293 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5294 the EFP register set size.
5295 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5296 data from the VMX register.
5297 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5298 and write data from/to the VMX register.
5300 2011-02-14 Michael Snyder <msnyder@vmware.com>
5302 * command.h (enum command_class): New class 'no_set_class', for
5303 "show" commands without a corresponding "set" command.
5304 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5305 * copying.c (_initialize_copying): Ditto for "show copying" and
5307 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5309 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5310 which there is no corresponding "set" command (eg. "show copying").
5312 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5313 Jan Kratochvil <jan.kratochvil@redhat.com>
5315 * exec.c (section_table_available_memory): Change `len' parameter
5317 * exec.h (section_table_available_memory): Ditto.
5318 * value.h (read_value_memory): Rename the `offset' parameter to
5321 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5322 Jan Kratochvil <jan.kratochvil@redhat.com>
5324 * memrange.c (compare_mem_ranges): Mention sort order in
5326 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5327 * tracepoint.c (traceframe_available_memory): Extend comment to
5328 mention what happens to RESULT when the target does not support
5331 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5332 Jan Kratochvil <jan.kratochvil@redhat.com>
5334 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5337 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5339 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5340 No longer handle NULL values.
5342 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5344 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5345 * value.c: Include "exceptions.h".
5346 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5348 * cp-abi.c: Include gdb_assert.h.
5349 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5350 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5352 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5353 parameters. No longer returns -1 on error.
5354 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5356 * cp-valprint.c: Include exceptions.h.
5357 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5358 the baseclass_offset. Handle unavailable base classes. Use
5359 val_print_invalid_address.
5360 * p-valprint.c: Include exceptions.h.
5361 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5362 when fetching the baseclass_offset. No longer expect
5363 baseclass_offset returning -1. Handle unavailable base classes.
5364 Use val_print_invalid_address.
5365 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5366 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5367 `embedded_offset' and `val' parameters. Adjust.
5368 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5369 parameter, and change its type to gdb_byte pointer. Add
5370 `embedded_offset' and `val' parameters. Adjust. No longer expect
5371 baseclass_offset returning -1.
5372 (value_dynamic_cast): Use value_contents_for_printing rather than
5373 value_contents. Adjust.
5374 (search_struct_field): No longer expect baseclass_offset returning
5376 (search_struct_method): If reading memory from the target is
5377 necessary, wrap it in a new value to pass to baseclass_offset. No
5378 longer expect baseclass_offset returning -1.
5379 (find_method_list): No longer expect baseclass_offset returning
5380 -1. Use value_contents_for_printing rather than value_contents.
5381 * valprint.c (val_print_invalid_address): New function.
5382 * valprint.h (val_print_invalid_address): Declare.
5383 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5384 and `val' parameters. No longer expect baseclass_offset returning
5386 * gnu-v2-abi.c: Include "exceptions.h".
5387 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5388 parameters. Handle unavailable memory. Recurse through
5389 gnuv2_baseclass_offset directly, rather than through
5390 baseclass_offset. No longer returns -1 on not found, instead
5392 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5393 `val' parameters. Adjust.
5395 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5397 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5398 almost but not quite adjacent.
5400 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5402 * value.h (value_entirely_available): Declare.
5403 * value.c (value_entirely_available): New function.
5404 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5405 real type if the pointer is unavailable.
5407 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5409 * valops.c (value_repeat): Use read_value_memory instead of
5412 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5414 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5415 * value.c (value_contents_copy_raw, value_contents_copy): New
5417 (value_primitive_field): Use value_contents_copy_raw instead of
5419 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5421 (value_array, value_slice): Ditto.
5422 * valarith.c (value_subscripted_rvalue): Use
5423 value_contents_copy_raw instead of memcpy.
5425 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5427 <unavailable> references.
5429 * valops.c (get_value_at): Use value_from_contents_and_address,
5430 avoiding read_memory.
5432 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5434 * c-valprint.c (c_val_print): Print a string with unavailable
5435 contents as an array.
5437 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5439 * value.h (unpack_bits_as_long): Delete declaration.
5440 (unpack_value_bits_as_long): Declare.
5441 (unpack_value_field_as_long): Declare.
5442 (value_field_bitfield): Declare.
5443 * value.c (unpack_bits_as_long): Rename to...
5444 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5445 value parameters. Return the extracted result in a new output
5446 parameter. If the value contents are unavailable, return false,
5447 otherwise return true.
5448 (unpack_value_bits_as_long): New.
5449 (unpack_field_as_long): Rename to...
5450 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5451 Add embedded_offset and value parameters. Return the extracted
5452 result in a new output parameter. If the value contents are
5453 unavailable, return false, otherwise return true.
5454 (unpack_value_field_as_long): New.
5455 (unpack_field_as_long_1): New.
5456 (unpack_field_as_long): Reimplement as wrapper around
5457 unpack_value_field_as_long_1.
5458 (value_field_bitfield): New function.
5459 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5460 unpack_value_bits_as_long. Mark the value as unavailable, if it
5462 * jv-valprint.c (java_print_value_fields): Use
5463 value_field_bitfield.
5464 * p-valprint.c (pascal_object_print_value_fields): Use
5465 value_field_bitfield.
5466 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5468 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5470 * value.c (get_internalvar_integer): Also return the int value of
5471 TYPE_CODE_INT INTERNALVAR_VALUE values.
5472 (set_internalvar): Don't special case TYPE_CODE_INT.
5474 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5476 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5477 INTERNALVAR_POINTER.
5479 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5480 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5481 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5483 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5485 * value.h (value_available_contents_eq): Declare.
5486 * value.c (find_first_range_overlap): New function.
5487 (value_available_contents_eq): New function.
5488 * valprint.c (val_print_array_elements): Use
5489 value_available_contents_eq.
5490 * ada-valprint.c (val_print_packed_array_elements): Use
5491 value_available_contents_eq.
5492 * jv-valprint.c (java_value_print): Use
5493 value_available_contents_eq.
5495 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5497 * target.c (target_read_live_memory): New function.
5498 (memory_xfer_live_readonly_partial): New.
5499 (memory_xfer_partial): If reading from a traceframe, fallback to
5500 reading unavailable read-only memory from read-only regions of
5502 * tracepoint.c (disconnect_tracing): Adjust.
5503 (set_current_traceframe): New, factored out from
5504 set_traceframe_number.
5505 (set_traceframe_number): Reimplement to only change the traceframe
5506 number on the GDB side.
5507 (do_restore_current_traceframe_cleanup): Adjust.
5508 (make_cleanup_restore_traceframe_number): New.
5509 (cur_traceframe_number): New global.
5510 (tfile_open): Set cur_traceframe_number to no traceframe.
5511 (set_tfile_traceframe): New function.
5512 (tfile_trace_find): If looking up a traceframe using any method
5513 other than by number, make sure the current tfile traceframe
5514 matches gdb's current traceframe. Update the current tfile
5515 traceframe if the lookup succeeded.
5516 (tfile_fetch_registers, tfile_xfer_partial)
5517 (tfile_get_trace_state_variable_value): Make sure the remote
5518 traceframe matches gdb's current traceframe.
5519 * remote.c (remote_traceframe_number): New global.
5520 (remote_open_1): Set it to -1.
5521 (set_remote_traceframe): New function.
5522 (remote_fetch_registers, remote_store_registers)
5523 (remote_xfer_memory, remote_xfer_partial)
5524 (remote_get_trace_state_variable_value): Make sure the remote
5525 traceframe matches gdb's current traceframe.
5526 (remote_trace_find): If looking up a traceframe using any method
5527 other than by number, make sure the current remote traceframe
5528 matches gdb's current traceframe. Update the current remote
5529 traceframe if the lookup succeeded.
5530 * infrun.c (fetch_inferior_event): Adjust.
5531 * tracepoint.h (set_current_traceframe): Declare.
5532 (get_traceframe_number, set_traceframe_number): Add describing
5535 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5537 Mark pieces of values as unavailable if the corresponding memory
5540 * valops.c: Include tracepoint.h.
5541 (value_fetch_lazy): Use read_value_memory.
5542 (read_value_memory): New.
5543 * value.h (read_value_memory): Declare.
5544 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5545 * exec.c (section_table_available_memory): New function.
5546 * exec.h (section_table_available_memory): Declare.
5548 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5550 * Makefile.in (SFILES): Add memrange.c.
5551 (HFILES_NO_SRCDIR): Add memrange.h.
5552 (COMMON_OBS): Add memrange.o.
5553 * memrange.c: New file.
5554 * memrange.h: New file.
5555 * tracepoint.c: Include memrange.h.
5556 (struct mem_range): Delete.
5557 (mem_range_s): Delete.
5558 (traceframe_available_memory): New function.
5559 * tracepoint.h (traceframe_available_memory): Declare.
5561 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5563 * target.h (struct traceframe_info): Forward declare.
5564 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5565 (struct target_ops) <to_traceframe_info>: New field.
5566 (target_traceframe_info): New.
5567 * target.c (update_current_target): Inherit and default
5569 * remote.c (PACKET_qXfer_traceframe_info): New.
5570 (remote_protocol_features): Register qXfer:traceframe-info:read.
5571 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5572 (remote_traceframe_info): New.
5573 (init_remote_ops): Install it.
5574 (_initialize_remote): Install "set/show remote traceframe-info"
5576 * tracepoint.h (parse_traceframe_info): Declare.
5577 * tracepoint.c (struct mem_range): New.
5578 (mem_range_s): New typedef.
5579 (struct traceframe_info): New.
5580 (traceframe_info): New global.
5581 (free_traceframe_info): New function.
5582 (clear_traceframe_info): New function.
5583 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5585 (build_traceframe_info): New function.
5586 (tfile_traceframe_info): New function.
5587 (init_tfile_ops): Install tfile_traceframe_info.
5588 (traceframe_info_start_memory, free_result): New functions.
5589 (memory_attributes, traceframe_info_elements): New globals.
5590 (parse_traceframe_info, get_traceframe_info): New functions.
5591 * features/traceframe-info.dtd: New file.
5592 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5594 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5596 Base support for <unavailable> value contents.
5598 * value.h (value_bytes_available): Declare.
5599 (mark_value_bytes_unavailable): Declare.
5600 * value.c (struct range): New struct.
5601 (range_s): New typedef.
5602 (ranges_overlap): New function.
5603 (range_lessthan): New function.
5604 (ranges_contain_p): New function.
5605 (struct value) <unavailable>: New field.
5606 (value_bytes_available): New function.
5607 (mark_value_bytes_unavailable): New function.
5608 (require_not_optimized_out): Constify parameter.
5609 (require_available): New function.
5610 (value_contents_all, value_contents): Require all bytes be
5612 (value_free): Free `unavailable'.
5613 (value_copy): Copy `unavailable'.
5614 * valprint.h (val_print_unavailable): Declare.
5615 * valprint.c (valprint_check_validity): Rename `offset' parameter
5616 to `embedded_offset'. If printing a scalar, check whether the
5617 value chunk is available.
5618 (val_print_unavailable): New.
5619 (val_print_scalar_formatted): Check whether the value is
5621 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5622 pretty-printing unavailable values.
5624 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5626 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5627 * c-typeprint.c (c_type_print_args): Update the function comment. New
5628 variable param_type, initialize it. Remove const/volatile qualifiers
5629 for language_cplus and !show_artificial. Use param_type.
5631 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5633 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5634 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5635 * symtab.h (struct symtab) <next>: Comment extension.
5637 2011-02-12 Yao Qi <yao@codesourcery.com>
5639 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5641 2011-02-11 Yao Qi <yao@codesourcery.com>
5643 * common/Makefile.in: Add copyright header.
5645 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5647 * infrun.c (proceed): Move switching out and in of tfind mode from
5649 (fetch_inferior_event): ... to here.
5651 2011-02-11 Yao Qi <yao@codesourcery.com>
5653 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5655 * configure.ac: Add common to sub dir.
5656 * configure: Regenerate.
5658 2011-02-11 Yao Qi <yao@codesourcery.com>
5662 * common/Makefile.in: New.
5663 * common/configure.ac: New.
5664 * common/aclocal.m4: New.
5665 * common/configure: Generate.
5667 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5669 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5670 side of the parenthesis.
5673 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5674 * vec.h (VEC_block_remove): Fix comment.
5676 2011-02-08 Michael Snyder <msnyder@vmware.com>
5678 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5680 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5682 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5683 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5686 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5689 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5691 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5692 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5694 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5696 * dwarf2read.c (read_subroutine_type): Set special calling
5697 convention flag for functions compiled by IBM XL C for OpenCL.
5698 * ppc-sysv-tdep.c: Include "dwarf2.h"
5699 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5701 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5702 IBM OpenCL vector types calling convention.
5703 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5704 (ppc_sysv_abi_broken_return_value): Likewise.
5705 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5706 types calling convention.
5707 (ppc64_sysv_abi_return_value): Likewise.
5708 * spu-tdep.c: Include "dwarf2.h"
5709 (spu_return_value): Implement IBM OpenCL vector types calling
5712 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5714 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5715 correct ABI for AltiVec vector arguments.
5717 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5719 * valprint.c (val_print): Extend comment.
5720 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5721 interface explanation to val_print.
5722 (ada_val_print_array): Adjust comment to current interface.
5723 (print_field_values): Adjust comment to current interface.
5724 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5725 explanation to val_print.
5726 * f-valprint.c (f_val_print): Ditto.
5727 * jv-valprint.c (java_val_print): Ditto.
5728 * m2-valprint.c (m2_val_print): Ditto.
5729 * p-valprint.c (pascal_val_print): Ditto.
5731 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5733 * breakpoint.c (parse_breakpoint_sals): Fix description.
5735 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5736 Oguz Kayral <oguzkayral@gmail.com>
5738 * python/py-inferior.c (python_on_normal_stop): New function.
5739 (python_on_resume): New function.
5740 (python_inferior_exit): New function.
5741 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5742 inferior_exit observers.
5743 * python/py-evtregistry.c: New file.
5744 * python/py-threadevent.c : New file.
5745 * python/py-event.c: New file.
5746 * python/py-evts.c: New file.
5747 * python/py-continueevent.c: New file.
5748 * python/py-bpevent.c: New file.
5749 * python/py-signalevent.c: New file.
5750 * python/py-exetiedevent.c: New file.
5751 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5752 Move struct breakpoint_object from here...
5753 * python/python-internal.h: ... to here.
5754 * python/py-event.h: New file.
5755 * python/py-events.h: New file.
5756 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5757 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5758 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5759 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5760 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5761 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5762 Add build rules for all the above.
5764 2011-02-04 Tom Tromey <tromey@redhat.com>
5766 * dwarf2read.c (dwarf2_section_empty_p): New function.
5767 (dwarf2_read_section): Use dwarf2_section_empty_p.
5768 (dwarf2_section_size): New function.
5769 (dwarf2_get_section_info): Unconditionally read section.
5770 (dwarf2_read_index): Use dwarf2_section_empty_p.
5771 (partial_read_comp_unit_head): Use dwarf2_section_size.
5772 (dwarf2_symbol_mark_computed): Likewise.
5774 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5776 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5778 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5780 * mips-linux-tdep.c: Include xml-syscall.h.
5781 (mips_linux_get_syscall_number): New function.
5782 (mips_linux_init_abi): Add calls to
5783 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5784 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5785 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5786 * syscalls/mips-n32-linux.xml: New file.
5787 * syscalls/mips-n64-linux.xml: New file.
5788 * syscalls/mips-o32-linux.xml: New file.
5790 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5792 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5793 Complain about inverted range entries.
5794 (dwarf2_record_block_ranges): Likewise.
5796 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5799 * breakpoint.c (update_watchpoint): Fix name of the
5800 update_global_location_list function.
5801 (print_one_breakpoint): Fix typo.
5802 (_initialize_breakpoint): Remove extra space in hbreak help
5804 * breakpoint.h (struct bp_location) <length>: Fix field
5807 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5809 * regcache.c (registers_changed_ptid): Don't explictly always
5810 clear `current_regcache'. Only clear current_thread_ptid and
5811 current_thread_arch when PTID matches. Only reinit the frame
5812 cache if PTID matches the current inferior_ptid. Move alloca(0)
5814 (registers_changed): ... here.
5816 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5818 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5819 starts with __stack_chk_guard as stack guard symbol.
5821 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5823 * disasm.c (compare_lines): Handle the end of sequence markers
5824 within the line table to better support disassembling over
5825 compilation unit boundaries.
5827 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5829 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5830 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5831 implementation even if no symbols are available.
5832 (thumb_analyze_prologue): Update call to skip_prologue_function.
5833 (arm_analyze_prologue): Likewise.
5835 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5837 * arm-tdep.c: Include "observer.h".
5838 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5839 (arm_exidx_data_key): New static variable.
5840 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5841 (struct arm_exidx_data): Likewise.
5842 (arm_exidx_data_free): New function.
5843 (arm_compare_exidx_entries): Likewise.
5844 (arm_obj_section_from_vma): Likewise.
5845 (arm_exidx_new_objfile): Likewise.
5846 (arm_find_exidx_entry): Likewise.
5847 (arm_exidx_fill_cache): Likewise.
5848 (arm_exidx_unwind_sniffer): Likewise.
5849 (arm_exidx_unwind): New global variable.
5850 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5851 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5852 observer. Register arm_exidx_data_key as objfile data.
5854 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5856 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5857 due to accessing uninitialized variable. Fix indentation.
5859 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5861 * c-valprint.c (c_value_print): When doing virtual base pointer
5862 adjustment, create a new value with adjusted contents rather than
5863 changing the contents of the value being printed (and getting it
5866 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5868 * xml-support.c (xml_find_attribute): New.
5869 (xinclude_start_include): Use it.
5870 * xml-support.h (xml_find_attribute): Declare.
5871 * memory-map.c (memory_map_start_memory)
5872 (memory_map_start_property): Use xml_find_attribute.
5873 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5875 * remote.c (start_thread): Use xml_find_attribute.
5876 * solib-target.c (library_list_start_segment)
5877 (library_list_start_section, library_list_start_library)
5878 (library_list_start_list): Use xml_find_attribute.
5879 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5880 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5881 (tdesc_start_field): Use xml_find_attribute.
5883 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
5885 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5886 (BUILD_OCL_VTYPES): Update.
5888 2011-02-02 Joel Brobecker <brobecker@adacore.com>
5890 * configure.ac: Work around non-GNU sed limitation when computing
5891 python version number.
5892 * configure: Regenerate.
5894 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5896 Fix debug printing of TYPE_INSTANCE.
5897 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5898 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5900 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5902 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5903 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5904 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5905 * ada-operator.inc: Rename the file to ...
5906 * ada-operator.def: ... here, wrap all the entries by macro OP.
5907 * expprint.c (op_name_standard): Remove all the entries. Include
5908 "std-operator.def" instead.
5909 * expression.h (enum exp_opcode): Include "std-operator.def" and
5910 "ada-operator.def". Move all the entries ...
5911 * std-operator.def: ... here, wrap all the entries by macro OP.
5913 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5915 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5916 * breakpoint.c (remove_jit_event_breakpoints): New function.
5917 * jit.c (jit_descriptor_addr): Delete.
5918 (registering_code): Delete.
5919 (clear_int): Delete.
5920 (jit_inferior_data): New variable.
5921 (struct jit_inferior_data): New type.
5922 (get_jit_inferior_data): New function.
5923 (jit_inferior_data_cleanup): New function.
5924 (jit_read_descriptor): Adjust.
5925 (jit_register_code): Adjust.
5926 (jit_breakpoint_re_set_internal): New function; move code here ...
5927 (jit_inferior_init): ... from here.
5928 (jit_breakpoint_re_set): Adjust.
5929 (jit_reset_inferior_data_and_breakpoints): New function.
5930 (jit_inferior_created_observer): Adjust.
5931 (jit_inferior_exit_hook): Adjust.
5932 (jit_executable_changed_observer): New function.
5933 (jit_event_handler): Adjust.
5934 (_initialize_jit): Adjust.
5936 2011-01-31 Michael Snyder <msnyder@vmware.com>
5938 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5941 2011-01-31 Tom Tromey <tromey@redhat.com>
5944 * python/python.c (execute_gdb_command): Call
5945 prevent_dont_repeat.
5946 * top.c (suppress_dont_repeat): New global.
5947 (dont_repeat): Use it.
5948 (prevent_dont_repeat): New function.
5949 * command.h (prevent_dont_repeat): Declare.
5951 2011-01-31 Tom Tromey <tromey@redhat.com>
5953 * infcmd.c (finish_backward): Use breakpoint_set_silent.
5954 * python/py-breakpoint.c (bppy_set_silent): Use
5955 breakpoint_set_silent.
5956 (bppy_set_thread): Use breakpoint_set_thread.
5957 (bppy_set_task): Use breakpoint_set_task.
5958 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5959 (breakpoint_set_task): Declare.
5960 (make_breakpoint_silent): Remove.
5961 * breakpoint.c (breakpoint_set_silent): New function.
5962 (breakpoint_set_thread): Likewise.
5963 (breakpoint_set_task): Likewise.
5964 (make_breakpoint_silent): Remove.
5966 2011-01-31 Tom Tromey <tromey@redhat.com>
5968 * breakpoint.h (user_breakpoint_p): Declare.
5969 * breakpoint.c (user_breakpoint_p): New function.
5970 (breakpoint_1): Use it.
5971 (save_breakpoints): Likewise.
5973 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5975 * configure.ac: Add handling of Python distribution on Windows.
5976 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5977 sysconfig variables are not defined, then do not use them.
5978 On Windows, if LIBPL is not defined, then use prefix + '/libs'
5979 instead. On Windows, return all paths using forward-slashes
5980 rather than backslashes.
5982 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5984 * configure.ac: Remove fallback behavior for building
5985 against Python. Remove tweaking of Python include path.
5986 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5987 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
5988 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5989 Always restore CPPFLAGS and LIBS after linking test.
5990 * configure: Regenerated.
5991 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5992 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5993 * python/python-internal.h: Adjust includes of Python .h files.
5995 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5997 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
6000 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6002 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
6005 2011-01-31 Yao Qi <yao@codesourcery.com>
6007 * arm-linux-nat.c: Update calls to regcache_register_status
6008 instead of regcache_valid_p.
6009 * aix-thread.c: Likewise.
6010 * i386gnu-nat.c: Likewise.
6012 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6015 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
6016 touching TYPE_FIELD_ARTIFICIAL.
6018 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
6020 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
6023 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6025 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
6026 selected, don't try iterating over the traceframe's blocks.
6027 (tfile_has_stack): If there's no traceframe selected, then there's
6029 (tfile_has_registers): If there's no traceframe selected, then
6030 there's no registers.
6032 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6034 * target.c (memory_xfer_partial): No need to restore shadows if we
6035 haven't read anything.
6037 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6039 * mips-tdep.c (mips_print_register): Use get_frame_register_value
6040 and val_print_scalar_formatted.
6042 2011-01-27 Pedro Alves <pedro@codesourcery.com>
6044 * tracepoint.c (tfile_read): New.
6045 (tfile_open): Use it.
6046 (tfile_get_traceframe_address): Use it.
6047 (tfile_trace_find): Use it.
6048 (walk_blocks_callback_func): New typedef.
6049 (match_blocktype): New function.
6050 (traceframe_walk_blocks): New function.
6051 (traceframe_find_block_type): New function.
6052 (tfile_fetch_registers, tfile_xfer_partial)
6053 (tfile_get_trace_state_variable_value): Use
6054 traceframe_find_block_type and tfile_read.
6056 2011-01-26 Kevin Buettner <kevinb@redhat.com>
6058 * remote-mips.c: Add internationalization mark ups. Remove
6059 trailing \n from already marked up strings.
6061 2011-01-26 Tom Tromey <tromey@redhat.com>
6063 * python/py-prettyprint.c (print_string_repr): Clear
6064 'addressprint' option when calling val_print_string.
6065 (print_children): Handle Val_pretty_default. Clear 'addressprint'
6066 option when calling val_print_string.
6068 2011-01-26 Tom Tromey <tromey@redhat.com>
6070 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
6072 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6074 (gdb_py_longest, gdb_py_ulongest): New typedefs.
6075 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6076 (gdb_py_long_as_ulongest): New defines.
6077 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6078 (gdb_py_int_as_long): Declare.
6079 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6080 GDB_PY_LL_ARG, gdb_py_object_from_longest.
6081 (valpy_long): Add comment.
6082 * python/py-utils.c (get_addr_from_python): Use
6083 gdb_py_long_as_ulongest. Handle overflow properly.
6084 (gdb_py_object_from_longest): New function.
6085 (gdb_py_object_from_ulongest): Likewise.
6086 (gdb_py_int_as_long): Likewise.
6087 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6088 * python/py-symtab.c (salpy_get_pc): Use
6089 gdb_py_long_from_ulongest.
6090 (salpy_get_line): Use PyInt_FromLong.
6091 * python/py-param.c (set_parameter_value): Use
6093 * python/py-lazy-string.c (stpy_get_address): Use
6094 gdb_py_long_from_ulongest.
6095 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6096 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6097 * python/py-breakpoint.c (bppy_set_thread): Use
6099 (bppy_set_task): Likewise.
6100 (bppy_set_ignore_count): Likewise.
6101 (bppy_set_hit_count): Likewise.
6102 * python/py-block.c (blpy_get_start): Use
6103 gdb_py_object_from_ulongest.
6104 (blpy_get_end): Likewise.
6105 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6107 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
6110 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6111 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6112 equality test for objfile, initialize addr_low if needed.
6114 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6116 * tui/tui-regs.c (tui_register_format): Remove dead code.
6118 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6120 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6121 instead of print_scalar_formatted.
6122 (print_scalar_formatted): Don't handle 's' format strings here,
6123 and add an assertion that we never see such format here.
6124 * valprint.h (val_print_scalar_formatted): Declare.
6125 * valprint.c (val_print_scalar_formatted): New.
6126 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6127 instead of print_scalar_formatted.
6128 * jv-valprint.c (java_val_print): Ditto.
6129 * p-valprint.c (pascal_val_print): Ditto.
6130 * ada-valprint.c (ada_val_print_1): Ditto.
6131 * f-valprint.c (f_val_print): Ditto.
6132 * infcmd.c (registers_info): Ditto.
6133 * m2-valprint.c (m2_val_print): Ditto.
6135 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6137 * m2-valprint.c (print_unbounded_array): Pass
6138 value_contents_for_printing rather than value_contents, to
6139 m2_print_array_contents. Also pass in the value.
6141 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6143 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6144 (save_gdb_index_command): Switch to .gdb_index version 4.
6146 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6148 * mi/mi-main.c (get_register): Use get_frame_register_value rather
6149 than frame_register, and always pass a valid value to val_print.
6151 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6153 Centralize printing "<optimized out>".
6155 * valprint.h (val_print_optimized_out): Declare.
6156 * cp-valprint.c (cp_print_value_fields): Use
6157 val_print_optimized_out.
6158 * jv-valprint.c (java_print_value_fields): Ditto.
6159 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6160 * printcmd.c (print_formatted): Ditto.
6161 * valprint.c (valprint_check_validity): Ditto.
6162 (value_check_printable): Ditto.
6163 (val_print_optimized_out): New.
6165 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6167 * infcmd.c (default_print_registers_info): Allocate values so to
6168 never pass a NULL value to val_print.
6170 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6172 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6173 boolean. Make sure to always pass a value that matches the
6174 contents buffer to callees. Preserve `address' for following
6176 * value.c (value_contents_for_printing_const): New.
6177 (value_address): Constify value argument.
6178 * value.h (value_contents_for_printing_const): Declare.
6179 (value_address): Constify value argument.
6181 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6183 * regcache.c (struct regcache_descr): Rename
6184 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6185 and sizeof_cooked_register_valid_p to
6186 sizeof_cooked_register_status.
6187 (init_regcache_descr): Adjust.
6188 (struct regcache): Rename register_valid_p field to
6190 (regcache_xmalloc_1, regcache_xfree, regcache_save)
6191 (do_cooked_read): Adjust.
6192 (regcache_valid_p): Rename to ...
6193 (regcache_register_status): ... this. Adjust.
6194 (regcache_invalidate): Adjust.
6195 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6197 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
6198 as unavailable, not valid.
6199 (regcache_dump): Adjust.
6200 * regcache.h (enum register_status): New.
6201 (regcache_register_status): Declare.
6202 (regcache_invalidate): Delete declaration.
6203 * corelow.c (get_core_registers): Adjust.
6204 * tracepoint.c (tfile_fetch_registers): Adjust.
6205 * trad-frame.c (REG_VALUE): Rename to ...
6206 (TF_REG_VALUE): ... this.
6207 (REG_UNKNOWN): Rename to ...
6208 (TF_REG_UNKNOWN): ... this.
6209 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
6210 * mi/mi-main.c (register_changed_p): Adjust.
6212 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6214 * regcache.c (struct regcache_descr): Remove outdated comment.
6215 (init_regcache_descr): Remove sizeof_raw_register_valid_p
6217 (regcache_xmalloc): Rename to ...
6218 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
6219 Allocate the regcache type accordingly.
6220 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
6221 (regcache_xfree): Asser the source is also readonly. Copy sizeof
6222 cooked registers, not raw.
6223 (regcache_dup_no_passthrough): Delete.
6224 (get_thread_arch_regcache): Use regcache_xmalloc_1.
6225 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
6226 mention obsolete write_register_bytes.
6227 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6229 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6231 Stop remote_read_bytes from handling partial reads itself.
6233 * remote-fileio.c: Include target.h.
6234 (remote_fileio_write_bytes): Delete.
6235 (remote_fileio_func_open, remote_fileio_func_write)
6236 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6238 (remote_fileio_func_stat): Use target_read_memory and
6239 target_write_memory.
6240 (remote_fileio_func_gettimeofday): Use target_write_memory.
6241 (remote_fileio_func_system): Use target_read_memory.
6242 * remote.c (remote_write_bytes): Make it static.
6243 (remote_read_bytes): Don't handle partial reads here.
6244 * remote.h (remote_read_bytes): Delete declaration.
6246 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6248 Simplify XML parsing a bit.
6250 * xml-support.h (gdb_xml_parse_quick): Declare.
6251 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6252 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6254 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6255 gdb_xml_create_parser_and_cleanup_1.
6256 (gdb_xml_parse_quick): New.
6257 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6258 * osdata.c (osdata_parse): Ditto.
6259 * remote.c (remote_threads_info): Ditto.
6260 * solib-target.c (solib_target_parse_libraries): Ditto.
6261 * xml-syscall.c (syscall_parse_xml): Ditto.
6262 * xml-tdesc.c (tdesc_parse_xml): Ditto.
6264 2011-01-24 Kevin Buettner <kevinb@redhat.com>
6266 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6267 with remote-mips.o added to gdb_target_obs.
6268 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6270 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6272 * ada-valprint.c (val_print_packed_array_elements): Pass the
6273 correct struct value to val_print.
6274 (ada_val_print_1): Ditto.
6276 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6278 Don't lose embedded_offset in printing routines throughout.
6280 * valprint.h (val_print_array_elements): Change prototype.
6281 * valprint.c (val_print_array_elements): Add `embedded_offset'
6282 parameter, and adjust to pass it down to val_print, while passing
6283 `valaddr' or `address' unmodified. Take embedded_offset into
6284 account when checking repetitions.
6285 * c-valprint.c (c_val_print): Pass embedded_offset to
6286 val_print_array_elements instead of adjusting `valaddr' and
6288 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6289 embedded_offset to val_print_array_elements instead of adjusting
6291 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6292 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6293 val_print_array_elements and pascal_object_print_value_fields
6294 instead of adjusting `valaddr'.
6295 (pascal_object_print_value_fields): Add `offset' parameter, and
6297 (pascal_object_print_value): Add `offset' parameter, and adjust to
6299 (pascal_object_print_static_field): Use
6300 value_contents_for_printing/value_embedded_offset, rather than
6302 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6303 parameter, and adjust to use it. Use
6304 value_contents_for_printing/value_embedded_offset, rather than
6306 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6307 (ada_val_print_array): Add `offset' parameter, and adjust to use
6309 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6310 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6311 Instead work with offsets. Use
6312 value_contents_for_printing/value_embedded_offset, rather than
6313 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6314 and use value_from_pointer to extract a target pointer, rather
6315 than value_from_longest.
6316 (print_variant_part): Add `offset' parameter. Replace
6317 `outer_valaddr' parameter by a new `outer_offset' parameter.
6318 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6319 (ada_value_print): Use
6320 value_contents_for_printing/value_embedded_offset, rather than
6322 (print_record): Add `offset' parameter, and adjust to pass it
6324 (print_field_values): Add `offset' parameter. Replace
6325 `outer_valaddr' parameter by a new `outer_offset' parameter.
6326 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6327 Use value_contents_for_printing/value_embedded_offset, rather than
6329 * d-valprint.c (dynamic_array_type): Use
6330 value_contents_for_printing/value_embedded_offset, rather than
6332 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6333 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6334 (java_print_value_fields): Take `offset' into account. Don't
6335 re-adjust `valaddr'. Instead pass down adjusted offsets.
6336 (java_val_print): Take `embedded_offset' into account. Pass it to
6337 java_print_value_fields.
6338 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6339 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6340 down adjusted offsets.
6341 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6342 (f_val_print): Take `embedded_offset' into account.
6344 2011-01-21 Joel Brobecker <brobecker@adacore.com>
6346 * inflow.c: Include "gdbcmd.h".
6347 (interactive_mode): New static global, moved here from top.c.
6348 (show_interactive_mode): New function, moved here from top.c.
6349 use gdb_has_a_terminal instead of input_from_terminal_p to
6350 determine the current mode.
6351 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6353 (_initialize_inflow): Add the "set/show interactive-mode"
6354 commands. Moved here from top.c, after having adjusted slightly
6356 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6358 (input_from_terminal_p): Remove handling of "interactive-mode"
6359 setting, moved to infow.c.
6360 (init_main): Remove creation of the "set/show interactive-mode"
6361 commands, moved to inflow.c.
6363 2011-01-19 Joel Brobecker <brobecker@adacore.com>
6365 * NEWS: Add entry for native ia64-hpux support.
6367 2011-01-19 Tom Tromey <tromey@redhat.com>
6370 * thread.c (free_thread): Free 'name'.
6371 (print_thread_info): Emit thread name. Change CLI output.
6372 (thread_name_command): New function.
6373 (do_captured_thread_select): Emit newline.
6374 (_initialize_thread): Register 'thread name' command.
6375 * target.h (struct target_ops) <to_thread_name>: New field.
6376 (target_thread_name): New macro.
6377 * target.c (update_current_target): Handle to_thread_name.
6378 * python/py-infthread.c (thpy_get_name): New function.
6379 (thpy_set_name): Likewise.
6380 (thread_object_getset): Add "name".
6381 * linux-nat.c (linux_nat_thread_name): New function.
6382 (linux_nat_add_target): Set to_thread_name.
6383 * gdbthread.h (struct thread_info) <name>: New field.
6385 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6387 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6388 (ada_val_print_1): Likewise.
6390 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6392 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6393 upper limit address is not greater than the function end address
6394 when the upper limit could not be computed using the debugging
6397 2011-01-17 Tom Tromey <tromey@redhat.com>
6399 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6401 * utils.c: Include gdb_regex.h.
6402 (do_regfree_cleanup): New function.
6403 (make_regfree_cleanup): Likewise.
6404 (get_regcomp_error): Likewise.
6405 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6407 2011-01-17 Tom Tromey <tromey@redhat.com>
6409 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6412 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6414 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6415 for internal variables.
6416 (last_was_structop): New static variable.
6417 (COMPLETE): New token.
6418 (field_exp): New rule to group all '.' suffix handling.
6419 Add mark_struct_expression calls when approriate to be able
6420 to correctly find fields for completion.
6421 (yylex): Adapt to handle field completion and set INTVAR when
6424 2011-01-14 Yao Qi <yao@codesourcery.com>
6426 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6427 save_reggroup, restore_reggroup and all_reggroup.
6429 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6431 * ada-valprint. (ada_printchar): Use the correct type length
6432 in call to ada_emit_char.
6433 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6435 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6437 * solib-som.h (hpux_major_release): Declare variable here.
6438 * solib-som.c: Remove <sys/utsname.h> header.
6439 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6440 (hpux_major_release): Make global, change default value to
6441 DEFAULT_HPUX_MAJOR_RELEASE.
6442 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6443 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6444 Add "solib-som.h" header.
6445 (set_hpux_major_release): New function.
6446 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6448 2011-01-14 Mike Frysinger <vapier@gentoo.org>
6450 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6452 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6454 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6455 new-line at end of warning message.
6456 (ia64_hpux_store_register): Remove trailing new-line at end of
6458 * ia64-hpux-tdep.c: Rephrase comment.
6459 * solib-ia64-hpux.c (struct dld_info): Change type of field
6460 dld_flags from "long long" to ULONGEST.
6462 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6464 * target.h (deprecated_child_ops): Delete declaration.
6465 * target.c (deprecated_child_ops): Delete definition.
6467 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6469 * Makefile.in (hpux-thread.o): Delete rule.
6470 * configure.ac: Don't check for HPUX DCE threads support.
6471 * configure, config.in: Regenerate.
6472 * hppa-hpux-nat.c (child_suppress_run): Delete.
6473 (hppa_hpux_child_can_run): Delete.
6474 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6475 * hpux-thread.c: Delete.
6477 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6479 * hpux-thread.c (hpux_pid_to_str): Delete.
6481 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6483 * ada-valprint.c (ada_emit_char): Remove strange code.
6484 Check that c is <= UCHAR_MAX before passing it to isascii.
6485 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6487 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6489 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6490 to the case where instream is stdin.
6492 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6494 * ia64-tdep.h (struct regcache): Forward declare.
6495 (struct ia64_infcall_ops): New struct type.
6496 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6498 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6499 Renames ia64_find_global_pointer.
6500 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6501 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6502 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6504 (ia64_infcall_ops): New static global constant.
6505 (ia64_gdbarch_init): Set tdep->infcall_ops.
6506 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6507 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6508 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6509 (ia64_hpux_dummy_code): New static global constant.
6510 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6511 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6512 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6514 (ia64_hpux_infcall_ops): New static global constant.
6515 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6516 for inferior function calls to work properly on ia64-hpux.
6518 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6520 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6521 * ia64-tdep.h (struct frame_info): forward declaration.
6522 (struct gdbarch_tdep): Add field size_of_register_frame.
6523 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6524 to determine the size of the register frame.
6525 (ia64_size_of_register_frame): New function.
6526 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6527 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6528 (IA64_HPUX_UREG_REASON): New macro.
6529 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6531 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6532 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6533 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6536 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6538 Add support for ia64-hpux.
6539 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6540 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6542 * configure.host: Add handling for ia64-hpux hosts. Add associated
6544 * configure.tgt: Add handling for ia64-hpux targets.
6545 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6546 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6547 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6549 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6551 [ttrace] Compute thread list immediately after attach.
6552 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6554 (inf_ttrace_attach): Use it.
6556 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6558 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6559 if we could not determine the frame's function address. Instead,
6560 use the frame's PC, and then continue.
6562 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6564 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6565 not already defined.
6567 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6569 * ia64-tdep.c (ia64_struct_type_p): New function.
6570 (ia64_extract_return_value): Handle integral values that are
6571 less than 8 bytes long.
6572 (ia64_push_dummy_call): Likewise.
6574 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6576 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6577 floatformat_ia64_ext.
6578 (floatformat_ia64_ext_big): New static const.
6579 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6581 2011-01-12 Tom Tromey <tromey@redhat.com>
6583 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6585 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6586 (mi_cmd_thread_list_ids): Likewise.
6587 (mi_cmd_data_list_changed_registers): Likewise.
6588 (mi_cmd_data_list_register_values): Likewise.
6589 (mi_cmd_data_write_register_values): Likewise.
6590 (mi_cmd_data_evaluate_expression): Likewise.
6591 (mi_cmd_data_read_memory): Likewise.
6592 (mi_cmd_data_read_memory_bytes): Likewise.
6593 (mi_cmd_data_write_memory): Likewise.
6594 (mi_cmd_enable_timings): Likewise.
6595 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6596 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6597 (mi_cmd_var_delete): Likewise.
6598 (mi_cmd_var_set_format): Likewise.
6599 (mi_cmd_var_show_format): Likewise.
6600 (mi_cmd_var_info_num_children): Likewise.
6601 (mi_cmd_var_list_children): Likewise.
6602 (mi_cmd_var_info_type): Likewise.
6603 (mi_cmd_var_info_expression): Likewise.
6604 (mi_cmd_var_show_attributes): Likewise.
6605 (mi_cmd_var_assign): Likewise.
6606 (mi_cmd_var_update): Likewise.
6607 (mi_cmd_enable_pretty_printing): Likewise.
6608 (mi_cmd_var_set_update_range): Likewise.
6609 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6611 (mi_cmd_target_file_put): Likewise.
6612 (mi_cmd_target_file_delete): Likewise.
6613 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6615 (mi_cmd_stack_info_depth): Likewise.
6616 (mi_cmd_stack_list_locals): Likewise.
6617 (mi_cmd_stack_list_args): Likewise.
6618 (mi_cmd_stack_select_frame): Likewise.
6619 (mi_cmd_stack_select_frame): Likewise.
6620 (mi_cmd_stack_info_frame): Likewise.
6621 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6623 (mi_cmd_file_list_exec_source_files): Likewise.
6624 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6625 (mi_cmd_env_cd): Likewise.
6626 (mi_cmd_env_path): Likewise.
6627 (mi_cmd_env_dir): Likewise.
6628 (mi_cmd_inferior_tty_show): Likewise.
6629 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6630 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6631 (mi_cmd_break_watch): Likewise.
6633 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6635 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6636 (ppc_linux_insert_hw_breakpoint): Likewise.
6637 (ppc_linux_remove_hw_breakpoint): Likewise.
6638 (ppc_linux_insert_watchpoint): Likewise.
6640 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6641 Jan Kratochvil <jan.kratochvil@redhat.com>
6643 PR fortran/11104 and DWARF unbound arrays detection.
6644 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6645 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6646 unspecified upper bound.
6647 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6648 variables array_size_array, tmp_type and offset_item. New variable
6649 array. Remove call to f77_get_upperbound. New variables array_type
6650 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6651 the final call to deprecated_set_value_type.
6653 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6655 Make value allocations more lazy.
6656 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6657 instead of allocate_value and set_value_lazy when possible.
6658 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6659 instead of allocate_value and set_value_lazy.
6660 * findvar.c (value_of_register_lazy): Likewise.
6661 (read_var_value): Remove V preallocation, call just check_typedef in
6662 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6663 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6664 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6665 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6666 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6667 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6668 the end, remove set_value_lazy there.
6669 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6670 instead of allocate_value and set_value_lazy when possible.
6671 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6672 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6673 of allocate_value and set_value_lazy.
6674 (value_from_contents_and_address): Use allocate_value_lazy instead of
6675 allocate_value and set_value_lazy when possible.
6677 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6679 * disasm.c (dump_insns): Support dumping opcodes for MI.
6680 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6681 dumping of instruction opcodes.
6683 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6685 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6688 2011-01-11 Tom Tromey <tromey@redhat.com>
6690 * thread.c (do_captured_thread_select): Emit newline before
6693 2011-01-11 Michael Snyder <msnyder@vmware.com>
6695 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6696 * score-tdep.c: Ditto.
6697 * score-tdep.h: Ditto.
6698 * ser-base.c: Ditto.
6699 * ser-go32.c: Ditto.
6702 * ser-mingw.c: Ditto.
6703 * ser-pipe.c: Ditto.
6705 * ser-unix.c: Ditto.
6706 * sh64-tdep.c: Ditto.
6707 * shnbsd-nat.c: Ditto.
6711 * solib-darwin.c: Ditto.
6712 * solib-frv.c: Ditto.
6714 * solib-irix.c: Ditto.
6715 * solib-osf.c: Ditto.
6716 * solib-pa64.c: Ditto.
6717 * solib-som.c: Ditto.
6718 * solib-spu.c: Ditto.
6719 * solib-sunos.c: Ditto.
6720 * solib-svr4.c: Ditto.
6722 * sol-thread.c: Ditto.
6726 * sparc64-linux-tdep.c: Ditto.
6727 * sparc64-tdep.c: Ditto.
6728 * sparc-linux-nat.c: Ditto.
6729 * sparc-linux-tdep.c: Ditto.
6730 * sparc-sol2-nat.c: Ditto.
6731 * sparc-sol2-tdep.c: Ditto.
6732 * sparc-tdep.c: Ditto.
6733 * sparc-tdep.h: Ditto.
6734 * spu-tdep.c: Ditto.
6735 * stabsread.c: Ditto.
6736 * stabsread.h: Ditto.
6744 * target-descriptions.c: Ditto.
6745 * target-descriptions.h: Ditto.
6747 * target-memory.c: Ditto.
6748 * terminal.h: Ditto.
6751 * tracepoint.c: Ditto.
6752 * tracepoint.h: Ditto.
6753 * trad-frame.h: Ditto.
6754 * typeprint.c: Ditto.
6756 2011-01-11 Michael Snyder <msnyder@vmware.com>
6758 * ui-file.c: Comment cleanup, mostly periods and spaces.
6763 * v850-tdep.c: Ditto.
6764 * valarith.c: Ditto.
6766 * valprint.c: Ditto.
6767 * valprint.h: Ditto.
6772 * vax-tdep.c: Ditto.
6776 * windows-nat.c: Ditto.
6777 * windows-tdep.c: Ditto.
6778 * xcoffread.c: Ditto.
6779 * xcoffsolib.c: Ditto.
6780 * xml-support.c: Ditto.
6781 * xstormy16-tdep.c: Ditto.
6782 * xtensa-tdep.c: Ditto.
6783 * xtensa-tdep.h: Ditto.
6785 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6787 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6788 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6790 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6791 Thiago Jung Bauermann <bauerman@br.ibm.com>
6793 Implement support for PowerPC BookE ranged watchpoints.
6795 (struct breakpoint_ops) <resources_needed>: New method.
6796 Initialize to NULL in all existing breakpoint_ops instances.
6797 (struct breakpoint) <exact>: New field.
6798 (target_exact_watchpoints): Declare external global.
6799 * breakpoint.c (target_exact_watchpoints): New global flag.
6800 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6801 b->enable_state to bp_enabled before calling
6802 hw_watchpoint_used_count.
6803 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6804 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6806 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6807 if the watchpoint is exact.
6808 (resources_needed_watchpoint): New function.
6809 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6810 (watch_command_1): Set b->exact if the user asked for an exact
6811 watchpoint and one can be set.
6812 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6813 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6814 the user asks for an exact watchpoint and one can be set. Return
6815 number of needed debug registers to watch the expression.
6816 * gdbtypes.c (is_scalar_type): New function, based on
6817 valprint.c:scalar_type_p.
6818 (is_scalar_type_recursive): New function.
6819 * gdbtypes.h (is_scalar_type_recursive): Declare.
6820 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6821 handle regions when ranged watchpoints are available.
6822 (create_watchpoint_request): New function.
6823 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6824 create_watchpoint_request.
6825 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6826 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6827 `set powerpc' and `show powerpc' commands.
6828 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6829 Mention documentation comment in the target macro.
6830 (target_region_ok_for_hw_watchpoint): Document return value.
6832 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6834 * breakpoint.c (update_watchpoint): Decide on using a software or
6835 hardware watchpoint after the bp_locations are created.
6837 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6839 Convert hardware watchpoints to use breakpoint_ops.
6840 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6841 <insert_location>: ... this. Return int instead of void.
6842 Accept pointer to struct bp_location instead of pointer to
6843 struct breakpoint. Adapt all implementations.
6844 (breakpoint_ops) <remove>: Rename to...
6845 <remove_location>: ... this. Accept pointer to struct bp_location
6846 instead of pointer to struct breakpoint. Adapt all implementations.
6847 * breakpoint.c (insert_catchpoint): Delete function.
6848 (insert_bp_location): Call the watchpoint or catchpoint's
6849 breakpoint_ops.insert method.
6850 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6851 breakpoint_ops.remove method.
6852 (insert_watchpoint, remove_watchpoint): New functions.
6853 (watchpoint_breakpoint_ops): New structure.
6854 (watch_command_1): Initialize the OPS field.
6855 * inf-child.c (inf_child_insert_fork_catchpoint)
6856 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6857 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6858 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6860 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6861 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6862 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6863 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6864 * target.c (update_current_target): Change default implementation of
6865 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6866 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6867 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6868 to_set_syscall_catchpoint to return_one.
6869 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6870 (debug_to_insert_exec_catchpoint): Report return value.
6871 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6872 (to_insert_exec_catchpoint): Change declaration to return int instead
6875 2011-01-11 Michael Snyder <msnyder@vmware.com>
6877 * arm-tdep.c: Internationalization.
6880 * fork-child.c: Ditto.
6881 * nto-procfs.c: Ditto.
6882 * ppc-sysv-tdep.c: Ditto.
6884 * remote-mips.c: Ditto.
6886 * rs6000-nat.c: Ditto.
6887 * rs6000-tdep.c: Ditto.
6891 * xml-support.c: Ditto.
6892 * mi/mi-cmd-break.c: Ditto.
6893 * mi/mi-cmd-var.c: Ditto.
6894 * mi/mi-interp.c: Ditto.
6895 * mi/mi-main.c: Ditto.
6897 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
6899 * remote-sim.c (gdbsim_store_register): Update API to
6900 sim_store_register to check more error conditions.
6902 2011-01-10 Michael Snyder <msnyder@vmware.com>
6904 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6905 * nto-tdep.c: Ditto.
6906 * nto-tdep.h: Ditto.
6907 * objc-exp.y: Ditto.
6908 * objc-lang.c: Ditto.
6909 * objfiles.c: Ditto.
6910 * objfiles.h: Ditto.
6911 * observer.c: Ditto.
6912 * opencl-lang.c: Ditto.
6915 * parser-defs.h: Ditto.
6918 * posix-hdep.c: Ditto.
6919 * ppcbug-rom.c: Ditto.
6920 * ppc-linux-nat.c: Ditto.
6921 * ppc-linux-tdep.c: Ditto.
6922 * ppc-linux-tdep.h: Ditto.
6923 * ppcnbsd-tdep.c: Ditto.
6924 * ppcobsd-tdep.c: Ditto.
6925 * ppcobsd-tdep.h: Ditto.
6926 * ppc-sysv-tdep.c: Ditto.
6927 * ppc-tdep.h: Ditto.
6928 * printcmd.c: Ditto.
6929 * proc-abi.c: Ditto.
6930 * proc-flags.c: Ditto.
6932 * proc-utils.h: Ditto.
6933 * progspace.h: Ditto.
6934 * prologue-value.c: Ditto.
6935 * prologue-value.h: Ditto.
6936 * psympriv.h: Ditto.
6938 * p-typeprint.c: Ditto.
6939 * p-valprint.c: Ditto.
6940 * ravenscar-sparc-thread.c: Ditto.
6941 * ravenscar-thread.c: Ditto.
6942 * ravenscar-thread.h: Ditto.
6944 * regcache.c: Ditto.
6945 * regcache.h: Ditto.
6947 * remote-fileio.c: Ditto.
6948 * remote-fileio.h: Ditto.
6950 * remote-m32r-sdi.c: Ditto.
6951 * remote-mips.c: Ditto.
6952 * remote-sim.c: Ditto.
6953 * rs6000-aix-tdep.c: Ditto.
6954 * rs6000-nat.c: Ditto.
6955 * rs6000-tdep.c: Ditto.
6957 2011-01-10 Michael Snyder <msnyder@vmware.com>
6959 * charset.c (validate): Internationalization.
6960 * coffread.c (read_one_sym): Ditto.
6961 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6962 * h8300-tdep.c (H8300_extract_return_value): Ditto.
6963 * inflow.c (new_tty): Ditto.
6964 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6965 * m32c-tdep.c (m32c_return_value): Ditto.
6966 * mep-tdep.c (mep_store_return_value): Ditto.
6967 * score-tdep.c (score7_fetch_insn): Ditto.
6968 * ser-mingw.c (pipe_windows_open): Ditto.
6969 * sh64-tdep.c (sh64_extract_return_value): Ditto.
6970 * spu-tdep.c (spu_register_type): Ditto.
6971 * tracepoint.c (trace_find_command): Ditto.
6972 * valarith.c (value_pos): Ditto.
6974 2011-01-10 Joel Brobecker <brobecker@adacore.com>
6976 * ada-valprint.c (printstr): Minor comment reformatting.
6978 2011-01-08 Michael Snyder <msnyder@vmware.com>
6980 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6983 2011-01-08 Michael Snyder <msnyder@vmware.com>
6985 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6986 * hppa-hpux-tdep.c: Ditto.
6987 * hppa-linux-nat.c: Ditto.
6988 * hppa-linux-tdep.c: Ditto.
6989 * hppanbsd-tdep.c: Ditto.
6990 * hppa-tdep.c: Ditto.
6991 * hppa-tdep.h: Ditto.
6992 * hpux-thread.c: Ditto.
6993 * i386-cygwin-tdep.c: Ditto.
6994 * i386-darwin-nat.c: Ditto.
6995 * i386gnu-nat.c: Ditto.
6996 * i386-linux-nat.c: Ditto.
6997 * i386-linux-tdep.c: Ditto.
6998 * i386-nat.c: Ditto.
6999 * i386-nat.h: Ditto.
7000 * i386nbsd-tdep.c: Ditto.
7001 * i386-sol2-nat.c: Ditto.
7002 * i386-stub.c: Ditto.
7003 * i386-tdep.c: Ditto.
7004 * i386-tdep.h: Ditto.
7005 * i387-tdep.c: Ditto.
7006 * ia64-linux-nat.c: Ditto.
7007 * ia64-linux-tdep.c: Ditto.
7008 * ia64-tdep.c: Ditto.
7012 * inferior.c: Ditto.
7013 * inferior.h: Ditto.
7019 * iq2000-tdep.c: Ditto.
7020 * irix5-nat.c: Ditto.
7026 * jv-typeprint.c: Ditto.
7027 * jv-valprint.c: Ditto.
7028 * language.c: Ditto.
7029 * language.h: Ditto.
7030 * linespec.c: Ditto.
7031 * linux-fork.c: Ditto.
7032 * linux-nat.c: Ditto.
7033 * linux-thread-db.c: Ditto.
7034 * lm32-tdep.c: Ditto.
7036 2011-01-08 Michael Snyder <msnyder@vmware.com>
7038 * m2-exp.y: Comment cleanup, mostly periods and spaces.
7040 * m2-typeprint.c: Ditto.
7041 * m2-valprint.c: Ditto.
7042 * m32c-tdep.c: Ditto.
7043 * m32r-linux-nat.c: Ditto.
7044 * m32r-rom.c: Ditto.
7045 * m32r-tdep.c: Ditto.
7046 * m32r-tdep.h: Ditto.
7047 * m68hc11-tdep.c: Ditto.
7048 * m58klinux-nat.c: Ditto.
7049 * m68k-tdep.c: Ditto.
7050 * m88k-tdep.c: Ditto.
7051 * m88k-tdep.h: Ditto.
7052 * machoread.c: Ditto.
7053 * macrocmd.c: Ditto.
7054 * macroexp.c: Ditto.
7055 * macrotab.c: Ditto.
7058 * mdebugread.c: Ditto.
7059 * mdebugread.h: Ditto.
7062 * memory-map.h: Ditto.
7063 * mep-tdep.c: Ditto.
7064 * microblaze-rom.c: Ditto.
7065 * microblaze-tdep.c: Ditto.
7067 * mips-irix-tdep.c: Ditto.
7068 * mips-linux-nat.c: Ditto.
7069 * mips-linux-tdep.c: Ditto.
7070 * mips-linux-tdep.h: Ditto.
7071 * mipsnbsd-nat.c: Ditto.
7072 * mipsnbsd-tdep.c: Ditto.
7073 * mipsread.c: Ditto.
7074 * mips-tdep.c: Ditto.
7075 * mips-tdep.h: Ditto.
7076 * mn10300-linux-tdep.c: Ditto.
7077 * mn10300-tdep.c: Ditto.
7078 * mn10300-tdep.h: Ditto.
7081 * moxie-tdep.c: Ditto.
7082 * moxie-tdep.h: Ditto.
7085 2011-01-08 Mike Frysinger <vapier@gentoo.org>
7087 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7089 2011-01-08 Robert Millan <rmh@gnu.org>
7091 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7093 2011-01-07 Michael Snyder <msnyder@vmware.com>
7095 * charset.c (_initialize_charset): Fix typo in string.
7097 2011-01-07 Michael Snyder <msnyder@vmware.com>
7099 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7101 * tui/tui-layout.c (tui_set_layout_for_display_command):
7102 Split line so that operator goes to beginning of line.
7103 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7104 assignment out of if statement.
7106 2011-01-07 Michael Snyder <msnyder@vmware.com>
7108 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7109 * ada-lang.h: Ditto.
7110 * ada-tasks.c: Ditto.
7111 * ada-valprint.c: Ditto.
7112 * aix-threads.c: Ditto.
7113 * alpha-linux-nat.c: Ditto.
7114 * alpha-linux-tdep.c: Ditto.
7115 * alpha-mdebug-tdep.c: Ditto.
7116 * alpha-nat.c: Ditto.
7117 * alpha-osf1-tdep.c: Ditto.
7118 * alpha-tdep.c: Ditto.
7119 * alphabsd-nat.c: Ditto.
7120 * alphabsd-tdep.c: Ditto.
7121 * amd64-darwin-tdep.c: Ditto.
7122 * amd64-linux-nat.c: Ditto.
7123 * amd64-linux-tdep.c: Ditto.
7124 * amd64-sol2-tdep.c: Ditto.
7125 * amd64-tdep.c: Ditto.
7126 * amd64-fbsd-tdep.c: Ditto.
7127 * amd64-nbsd-tdep.c: Ditto.
7128 * amd64-obsd-tdep.c: Ditto.
7129 * amd64-linux-nat.c: Ditto.
7130 * amd64-linux-tdep.c: Ditto.
7131 * arm-tdep.c: Ditto.
7132 * arm-tdep.h: Ditto.
7133 * armnbsd-nat.c: Ditto.
7134 * avr-tdep.c: Ditto.
7135 * bfin-tdep.c: Ditto.
7137 * c-typeprintc: Ditto.
7138 * c-valprint.c: Ditto.
7139 * coff-pe-read.h: Ditto.
7140 * coffreead.c: Ditto.
7141 * cris-tdep.c: Ditto.
7143 * darwin-nat-info.c: Ditto.
7144 * darwin-nat.c: Ditto.
7145 * dbug-rom.c: Ditto.
7149 * dec-thread.c: Ditto.
7151 * demangle.c: Ditto.
7152 * dicos-tdep.c: Ditto.
7153 * dictionary.c: Ditto.
7154 * dictionary.h: Ditto.
7155 * dink32-rom.c: Ditto.
7157 * doublest.c: Ditto.
7159 * dummy-frame.c: Ditto.
7160 * dwarf2-frame.c: Ditto.
7161 * dwarf2expr.c: Ditto.
7162 * dwarf2loc.c: Ditto.
7163 * dwarf2read.c: Ditto.
7167 * event-top.h: Ditto.
7168 * exceptions.c: Ditto.
7169 * exceptions.h: Ditto.
7171 * expprint.c: Ditto.
7172 * expression.h: Ditto.
7176 * f-typeprint.c: Ditto.
7177 * f-valprint.c: Ditto.
7178 * fbsd-nat.c: Ditto.
7180 * fork-child.c: Ditto.
7183 * frv-linux-tdep.c: Ditto.
7184 * frv-tdep.c: Ditto.
7186 * gdb-stabs.h: Ditto.
7187 * gdb_assert.h: Ditto.
7188 * gdb_string.h: Ditto.
7189 * gdb_thread_db.h: Ditto.
7190 * gdb_wait.h: Ditto.
7191 * gdbarch.sh: Ditto.
7193 * gdbthread.h: Ditto.
7194 * gdbtypes.c: Ditto.
7195 * gdbtypes.h: Ditto.
7198 * gnu-v2-abi.c: Ditto.
7199 * gnu-v3-abi.c: Ditto.
7200 * go32-nat.c: Ditto.
7201 * gdbarch.c: Regenerate.
7202 * gdbarch.h: Regenerate.
7204 2011-01-07 Michael Snyder <msnyder@vmware.com>
7206 * ax-gdb.c: Adjust some long output strings.
7207 * breakpoint.c: Ditto.
7212 * linux-nat.c: Ditto.
7213 * solib-pa64.c: Ditto.
7214 * solib-som.c: Ditto.
7216 2011-01-06 Tom Tromey <tromey@redhat.com>
7220 * python/python.c (GdbMethods): Add "newest_frame" method.
7221 * python/python-internal.h (gdbpy_newest_frame): Declare.
7222 * python/py-frame.c (gdbpy_newest_frame): New function.
7224 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
7226 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
7227 * jit.c (jit_debug): New variable.
7228 (show_jit_debug): New function.
7229 (struct target_buffer): Use ULONGEST.
7230 (bfd_open_from_target_memory): Likewise.
7231 (jit_register_code, jit_inferior_init): Add debug output.
7232 (_initialize_jit): Register "debug jit" command.
7234 2011-01-06 Tom Tromey <tromey@redhat.com>
7236 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7237 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7240 2011-01-06 Tom Tromey <tromey@redhat.com>
7242 * python/py-frame.c (frapy_block): Use get_frame_block.
7244 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7246 Do not stop on SIGPRIO signals by default
7247 * infrun.c (_initialize_infrun): Unset signal_stop and
7248 signal_print for TARGET_SIGNAL_PRIO.
7250 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7252 * ada-tasks.c: Fix style violation in comment.
7254 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7256 * linespec.c (decode_compound, find_method): Remove trailing \n
7257 at end of error string.
7258 * solib-irix.c (irix_current_sos): Likewise.
7259 * varobj.c (uninstall_variable): Likewise.
7261 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7263 * copyright.py: New script.
7264 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7265 Launch emacs without exec'ing. Call copyright.py afterwards.
7267 2011-01-05 Michael Snyder <msnyder@vmware.com>
7269 * addrmap.c: Shorten lines of >= 80 columns.
7270 * arch-utils.c: Ditto.
7271 * arch-utils.h: Ditto.
7273 * ax-general.c: Ditto.
7275 * blockframe.c: Ditto.
7276 * breakpoint.c: Ditto.
7277 * buildsym.c: Ditto.
7279 * c-typeprint.c: Ditto.
7281 * coffread.c: Ditto.
7285 * cp-namespace.c: Ditto.
7286 * cp-support.c: Ditto.
7287 * dbug-rom.c: Ditto.
7292 * dictionary.c: Ditto.
7294 * doublest.c: Ditto.
7295 * dwarf2-frame.c: Ditto.
7296 * dwarf2expr.c: Ditto.
7297 * dwarf2loc.c: Ditto.
7298 * dwarf2read.c: Ditto.
7301 * event-loop.c: Ditto.
7302 * event-loop.h: Ditto.
7303 * exceptions.h: Ditto.
7305 * expprint.c: Ditto.
7306 * expression.h: Ditto.
7308 * f-valprint.c: Ditto.
7310 * frame-base.c: Ditto.
7311 * frame-unwind.c: Ditto.
7312 * frame-unwind.h: Ditto.
7316 * gdb-stabs.h: Ditto.
7317 * gdb_assert.h: Ditto.
7318 * gdb_dirent.h: Ditto.
7319 * gdb_obstack.h: Ditto.
7321 * gdbtypes.c: Ditto.
7322 * gdbtypes.h: Ditto.
7323 * inf-ttrace.c: Ditto.
7328 * inline-frame.h: Ditto.
7329 * language.c: Ditto.
7330 * language.h: Ditto.
7331 * libunwind-frame.c: Ditto.
7332 * libunwind-frame.h: Ditto.
7333 * linespec.c: Ditto.
7334 * linux-nat.c: Ditto.
7335 * linux-nat.h: Ditto.
7336 * linux-thread-db.c: Ditto.
7337 * machoread.c: Ditto.
7338 * macroexp.c: Ditto.
7339 * macrotab.c: Ditto.
7342 * mdebugread.c: Ditto.
7347 * objfiles.c: Ditto.
7348 * objfiles.h: Ditto.
7350 * p-typeprint.c: Ditto.
7351 * p-valprint.c: Ditto.
7353 * printcmd.c: Ditto.
7354 * proc-events.c: Ditto.
7356 * progspace.c: Ditto.
7357 * progspace.h: Ditto.
7358 * psympriv.h: Ditto.
7361 * regcache.c: Ditto.
7362 * regcache.h: Ditto.
7363 * remote-fileio.c: Ditto.
7365 * ser-mingw.c: Ditto.
7367 * ser-unix.c: Ditto.
7370 * solib-frv.c: Ditto.
7371 * solib-irix.c: Ditto.
7372 * solib-osf.c: Ditto.
7373 * solib-pa64.c: Ditto.
7374 * solib-som.c: Ditto.
7375 * solib-sunos.c: Ditto.
7376 * solib-svr4.c: Ditto.
7377 * solib-target.c: Ditto.
7381 * stabsread.c: Ditto.
7382 * stabsread.c: Ditto.
7385 * symfile-mem.c: Ditto.
7391 * target-descriptions.c: Ditto.
7392 * target-memory.c: Ditto.
7395 * terminal.h: Ditto.
7398 * tracepoint.c: Ditto.
7399 * tracepoint.h: Ditto.
7403 * user-regs.c: Ditto.
7404 * user-regs.h: Ditto.
7406 * valarith.c: Ditto.
7408 * valprint.c: Ditto.
7409 * valprint.h: Ditto.
7414 * xcoffread.c: Ditto.
7415 * xcoffsolib.c: Ditto.
7416 * xcoffsolib.h: Ditto.
7417 * xml-syscall.c: Ditto.
7418 * xml-tdesc.c: Ditto.
7420 2011-01-05 Michael Snyder <msnyder@vmware.com>
7422 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7423 * cli/cli-decode.c: Ditto.
7424 * cli/cli-dump.c: Ditto.
7425 * cli/cli-logging.c: Ditto.
7426 * cli/cli-script.c: Ditto.
7427 * cli/cli-setshow.c: Ditto.
7428 * common/signals.c: Ditto.
7429 * mi/mi-cmd-break.c: Ditto.
7430 * mi/mi-cmd-disas.c: Ditto.
7431 * mi/mi-cmd-stack.c: Ditto.
7432 * mi/mi-cmd-var.c: Ditto.
7433 * mi/mi-cmds.c: Ditto.
7434 * mi/mi-common.h: Ditto.
7435 * mi/mi-console.c: Ditto.
7436 * mi/mi-interp.c: Ditto.
7437 * mi/mi-main.c: Ditto.
7438 * osf-share/cma_attr.c: Ditto.
7439 * osf-share/cma_deb_core.h: Ditto.
7440 * osf-share/cma_debug_client.h: Ditto.
7441 * osf-share/cma_handle.h: Ditto.
7442 * osf-share/cma_mutex.h: Ditto.
7443 * osf-share/cma_stack_int.h: Ditto.
7444 * osf-share/cma_tcb_defs.h: Ditto.
7445 * python/py-auto-load.c: Ditto.
7446 * python/py-breakpoint.c: Ditto.
7447 * python/py-cmd.c: Ditto.
7448 * python/py-frame.c: Ditto.
7449 * python/py-objfile.c: Ditto.
7450 * python/py-param.c: Ditto.
7451 * python/py-progspace.c: Ditto.
7452 * python/py-symbol.c: Ditto.
7453 * python/py-value.c: Ditto.
7454 * python/python-internal.h: Ditto.
7455 * python/python.c: Ditto.
7456 * tui/tui-data.c: Ditto.
7457 * tui/tui-disasm.c: Ditto.
7458 * tui/tui-hooks.c: Ditto.
7459 * tui/tui-io.c: Ditto.
7460 * tui/tui-layout.c: Ditto.
7461 * tui/tui-regs.c: Ditto.
7462 * tui/tui-source.c: Ditto.
7463 * tui/tui-stack.c: Ditto.
7464 * tui/tui-win.c: Ditto.
7465 * tui/tui-windata.c: Ditto.
7466 * tui/tui-winsource.c: Ditto.
7468 2011-01-05 Joel Brobecker <brobecker@adacore.com>
7470 * configure.ac, gdb.1: Copyright year update.
7472 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7474 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7475 this_pc_in_block, morestack_msym and morestack_name. Check for
7476 "__morestack" minimal symbol there.
7478 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7480 * symfile.c (find_sym_fns): Add call to dont_repeat.
7482 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7484 Copyright year update in most files (performed by copyright.sh).
7486 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7488 * top.c (print_gdb_version): Update copyright year in version output.
7490 For older changes see ChangeLog-2010.
7496 version-control: never