1 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3 Code cleanup - constify struct lval_funcs.
4 * dwarf2loc.c (pieced_value_funcs): Make it const.
5 * infrun.c (siginfo_value_funcs): Likewise.
6 * opencl-lang.c (opencl_value_funcs): Likewise.
7 * valops.c (value_assign, value_ind): Make the funcs variable const.
8 * value.c (struct value): Make location.computed.funcs target const.
9 Rearrange the comments.
10 (allocate_computed_value): Make the funcs parameter target const.
11 (value_computed_funcs): Return the funcs target const.
12 (value_free, value_copy, set_value_component_location): Make the funcs
14 * value.h (allocate_computed_value): Make the funcs parameter target
16 (value_computed_funcs): Return the funcs target const.
17 * windows-tdep.c (tlb_value_funcs): Make it const.
19 2011-07-14 Hui Zhu <teawater@gmail.com>
21 * remote.c (remote_get_trace_status): Initialize p.
23 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
26 * remote.c (remote_get_trace_status): New variable ex. Put
27 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
29 2011-07-13 Tom Tromey <tromey@redhat.com>
31 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
32 value_from_contents for final conversion.
34 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
37 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
38 Indent prototypes so they do not get into tags.
40 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
42 Code cleanup making also optimized out values lazy.
43 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
44 allocate_optimized_out_value. Twice.
45 (loclist_read_variable) Use allocate_optimized_out_value. Once.
46 * findvar.c (read_var_value): Likewise.
47 * value.c (allocate_optimized_out_value): New function.
48 * value.h (allocate_optimized_out_value): New declaration.
50 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
52 Fix occasional crash of CTRL-C during DWARF read in.
53 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
55 2011-07-11 Tom Tromey <tromey@redhat.com>
57 * regcache.c (struct regcache_descr): Fix typo.
58 * i387-tdep.c (i387_supply_xsave): Fix typo.
60 2011-07-11 Tom Tromey <tromey@redhat.com>
62 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
63 (read_file_scope, read_type_unit_scope): Use it.
65 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
67 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
70 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
73 * python/python.c: Set gdbpy_should_print_stack default to off.
74 (set_python): Deprecate maint set python print-stack to
76 (_initialize_python): Deprecate maint set/show python print-stack.
77 Add new prefix command, python. Add new setting, print-backtrace.
78 * NEWS: Document set python print-stack. Document default change.
80 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
82 * python/py-inferior.c (infpy_dealloc): New function.
83 (inferior_to_inferior_object): Return a new object, or a
84 new reference to the existing object.
85 (find_thread_object): Cleanup references to inferior.
86 (delete_thread_object): Ditto.
87 * python/py-infthread.c (create_thread_object): Do not increment
88 inferior reference count.
90 2011-07-08 Tom Tromey <tromey@redhat.com>
92 * dwarf2loc.c (locexpr_regname): New function.
93 (locexpr_describe_location_piece): Use it.
94 (disassemble_dwarf_expression): Add per_cu argument. Use
96 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
97 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
99 (locexpr_describe_location_1): Add per_cu argument.
100 (locexpr_describe_location): Update.
101 (loclist_describe_location): Update.
103 2011-07-08 Tom Tromey <tromey@redhat.com>
105 * dwarf2expr.c (execute_stack_op): Add QUIT.
107 2011-07-07 Hui Zhu <teawater@gmail.com>
110 2011-07-06 Hui Zhu <teawater@gmail.com>
111 * remote.c (remote_start_remote): Add TRY_CATCH for
112 remote_get_trace_status.
113 * tracepoint.c (disconnect_tracing): Ditto.
115 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
117 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
118 variables as signed, not unsigned.
120 2011-07-06 Joel Brobecker <brobecker@adacore.com>
122 * jit.c (jit_inferior_init): Reformat forward declaration.
124 2011-07-06 Matt Rice <ratmice@gmail.com>
126 * MAINTAINERS (Write After Approval): Add myself to the list.
128 2011-07-06 Hui Zhu <teawater@gmail.com>
130 * remote.c (remote_start_remote): Add TRY_CATCH for
131 remote_get_trace_status.
132 * tracepoint.c (disconnect_tracing): Ditto.
134 2011-07-05 Tom Tromey <tromey@redhat.com>
136 * symtab.c (operator_chars): Now static.
137 * linespec.c (operator_chars): Don't declare.
139 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
141 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
143 2011-07-05 Tom Tromey <tromey@redhat.com>
145 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
146 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
147 (TYPE_CPLUS_REALLY_JAVA): New macro.
148 * dwarf2read.c (process_structure_scope): Set
149 TYPE_CPLUS_REALLY_JAVA.
151 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
153 * ada-lang.c: Fix typos.
154 * amd64-tdep.c: Likewise.
155 * breakpoint.c: Likewise.
156 * cli/cli-decode.c: Likewise.
157 * findcmd.c: Likewise.
158 * inline-frame.c: Likewise.
159 * mi/mi-main.c: Likewise.
160 * minsyms.c: Likewise.
161 * monitor.c: Likewise.
162 * monitor.h: Likewise.
163 * prologue-value.c: Likewise.
164 * reverse.c: Likewise.
165 * s390-tdep.c: Likewise.
167 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
169 * jit.c (jit_inferior_init): Forward declare.
170 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
172 2011-07-04 Joel Brobecker <brobecker@adacore.com>
174 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
176 2011-07-04 Tristan Gingold <gingold@adacore.com>
178 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
179 (tcb_fieldno): Add activation_link field.
180 (get_known_tasks_addr): Moved and rewritten.
181 (get_tcb_types_info): Set activation_link field.
182 (read_known_tasks_array): Add parameter. Rewritten.
183 (read_known_tasks_list): New function.
184 (read_known_tasks): New function.
185 (ada_build_task_list): Call read_known_tasks instead of
186 read_known_tasks_array.
187 * ravenscar-thread.c: Add first_task_name constant.
188 (has_ravenscar_runtime): Check for task list too.
190 2011-07-04 Tristan Gingold <gingold@adacore.com>
192 * ada-tasks.c: Renames fieldno to actb_fieldno.
193 (ada_get_task_number): Indentation.
194 (get_tcb_types_info): Remove all parameters. Write directly
196 (ptid_from_atcb_common): Adjust.
199 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
201 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
203 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
205 * ui-out.c (ui_out_field_core_addr): Mention that the function
206 description is in the header file.
207 * ui-out.h (ui_out_field_core_addr): Document function.
209 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
211 * ui-out.c (ui_out_get_field_separator): Remove unused function.
212 * ui-out.h (ui_out_get_field_separator): Remove prototype.
214 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
216 * symtab.c (expand_line_sal): Remove empty line.
218 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
220 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
221 same way as ELFOSABI_NONE.
222 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
224 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
226 * breakpoint.c: Fix typos in comments.
227 * linespec.c: Likewise.
228 * symtab.c: Likewise.
230 2011-07-04 Joel Brobecker <brobecker@adacore.com>
232 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
233 section in separate object files.
235 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
237 Fix false GCC warning.
238 * linespec.c (decode_line_1): Initialize values.
240 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
242 * linespec.c (find_method): Accept the function type automatically only
243 if it was specified with parameter types.
245 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
247 Stop on first linespec terminator instead of eating what we can.
248 * linespec.c (is_linespec_boundary): New function.
249 (name_end): Remove function.
250 (keep_name_info): New parameter on_boundary, replace the body.
251 (decode_line_1): Provide the parameter to keep_name_info.
252 (decode_compound): Likewise. Drop the trailing java return type
255 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
257 Fall back linespec to minimal symbols.
258 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
259 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
260 (find_method, symbol_found): Change error to cplusplus_error.
262 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
264 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
266 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
267 Tom Tromey <tromey@redhat.com>
269 * dwarf2read.c (check_physname): New variable.
270 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
271 (show_check_physname): New function.
272 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
274 2011-07-01 Joel Brobecker <brobecker@adacore.com>
276 * machoread.c (macho_symfile_read): Delete OBE comment.
278 2011-07-01 Joel Brobecker <brobecker@adacore.com>
280 * machoread.c (struct macho_oso_data): Delete.
281 (current_oso): Delete.
282 (macho_relocate_common_syms): New function, mostly extracted
284 (macho_add_oso_symfile): Call macho_relocate_common_syms.
285 Remove code that sets and unset current_oso.
286 (macho_symfile_relocate): Delete handling of common symbols,
287 now moved to macho_relocate_common_syms.
289 2011-07-01 Joel Brobecker <brobecker@adacore.com>
291 * darwin-nat.c (darwin_ptrace): Add documentation.
292 Set errno to zero before calling ptrace. If ptrace returns
293 -1 and errno is zero, then change then return zero.
294 (darwin_kill_inferior): Issue a warning instead of triggering
295 a failed assertion when the PT_KILL ptrace operations returned
298 2011-07-01 Joel Brobecker <brobecker@adacore.com>
300 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
301 only when inf->private->no_ptrace.
303 2011-07-01 Joel Brobecker <brobecker@adacore.com>
305 * ada-lang.c (print_it_exception): Print temporary catchpoints
306 as "Temporary catchpoint".
307 (print_mention_exception): Likewise.
309 2011-07-01 Tom Tromey <tromey@redhat.com>
311 * jv-lang.c (java_language_defn): Use java_printchar,
313 (java_get_encoding): New function.
314 (java_emit_char): Use generic_emit_char.
315 (java_printchar): New function.
316 (java_printstr): Likewise.
318 2011-07-01 Joel Brobecker <brobecker@adacore.com>
320 * ada-typeprint.c (print_record_type): If unable to decode
321 the name of the parent type, use the encoded name.
323 2011-07-01 Jean-Charles Delay <delay@adacore.com>
325 * ada-typeprint.c (ada_print_type): Fix both PAD type and
326 pointer to constrained packed array type output.
327 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
330 2011-07-01 Jean-Charles Delay <delay@adacore.com>
332 * ada-typeprint.c (print_array_type): removed if condition on show
333 being negative for bounds printing.
335 2011-07-01 Joel Brobecker <brobecker@adacore.com>
337 * ada-lang.c (ada_identical_enum_types_p): New function.
338 (symbols_are_identical_enums): New function.
339 (remove_extra_symbols): Do nothing if NSYMS < 2.
340 Use symbols_are_identical_enums.
342 2011-07-01 Joel Brobecker <brobecker@adacore.com>
344 * ada-valprint.c (ada_value_print): Handle typedefs.
346 2011-07-01 Joel Brobecker <brobecker@adacore.com>
348 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
350 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
352 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
353 (decode_constrained_packed_array): Likewise.
354 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
356 2011-07-01 Joel Brobecker <brobecker@adacore.com>
358 * ada-exp.y (convert_char_literal): Handle typedef types.
360 2011-07-01 Joel Brobecker <brobecker@adacore.com>
362 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
364 2011-06-30 Tom Tromey <tromey@redhat.com>
366 * varobj.c (varobj_create): Call do_cleanups on early exit path.
367 * valops.c (find_overload_match): Call do_cleanups on early exit
369 * solib.c (solib_find): Call do_cleanups on early exit path.
371 2011-06-30 Tom Tromey <tromey@redhat.com>
373 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
374 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
375 return paths. Defer final do_cleanups until last return.
376 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
379 2011-06-30 Tom Tromey <tromey@redhat.com>
381 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
383 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
385 * MAINTAINERS (Write After Approval): Add myself to the list.
387 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
389 Disable epilogue unwinders on recent GCCs.
390 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
391 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
392 * dwarf2read.c (process_full_comp_unit): Initialize
393 EPILOGUE_UNWIND_VALID.
394 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
395 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
396 * symtab.h (struct symtab): New field epilogue_unwind_valid.
398 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
400 Code cleanup - reformatting.
401 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
402 (producer_is_gcc_ge_4): ... here, change the return value.
403 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
406 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
408 Fix non-only rename list for Fortran modules import.
409 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
410 cp_add_using_directive caller.
411 (cp_add_using_directive): New parameter excludes, describe it. New
412 variables ix and param. Compare if also excludes match. Allocate NEW
413 with variable size, initialize EXCLUDES there.
414 (cp_lookup_symbol_imports): New variable excludep, test
415 current->EXCLUDES with it.
416 * cp-support.h: Include vec.h.
417 (struct using_direct): New field excludes, describe it.
418 (DEF_VEC_P (const_char_ptr)): New.
419 (cp_add_using_directive): New parameter excludes.
420 * defs.h (const_char_ptr): New typedef.
421 * dwarf2read.c (read_import_statement): New variables child_die,
422 excludes and cleanups, read in excludes.
423 (read_namespace): Adjust the cp_add_using_directive caller.
425 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
428 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
429 negative comparisons.
431 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
433 * mi/mi-main.c (mi_cmd_list_features): Emit
434 breakpoint-notifications.
436 2011-06-29 Tom Tromey <tromey@redhat.com>
439 * valprint.h (generic_emit_char, generic_printstr): Declare.
440 * valprint.c (wchar_printable, append_string_as_wide)
441 (print_wchar): Move from c-lang.c.
442 (generic_emit_char): New function; mostly taken from c_emit_char.
443 (generic_printstr): New function; mostly taken from c_printstr.
444 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
445 represented as arrays.
446 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
448 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
449 identically to TYPE_CODE_INT.
450 * f-lang.c (f_get_encoding): New function.
451 (f_emit_char): Use generic_emit_char.
452 (f_printchar): Replace comment.
453 (f_printstr): Use generic_printstr.
454 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
455 "character" types specially.
456 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
458 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
460 (c_emit_char): Call generic_emit_char.
461 (c_printstr): Call generic_printstr.
463 2011-06-29 Gary Benson <gbenson@redhat.com>
465 * breakpoint.c (bpstat_what): Removed duplicated case.
467 2011-06-28 Tom Tromey <tromey@redhat.com>
469 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
471 2011-06-27 Tom Tromey <tromey@redhat.com>
473 * valops.c (find_overload_match): Call do_cleanups before early
475 * top.c (execute_command): Call do_cleanups before early return.
476 (command_loop): Likewise.
477 * stack.c (backtrace_command): Make a null cleanup early. Don't
478 conditionally call do_cleanups.
479 * python/py-value.c (TRY_CATCH): Move cleanup handling into
481 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
482 so cleanups are always run.
483 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
484 * findcmd.c (parse_find_args): Call do_cleanups on early return
486 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
487 Don't conditionally call do_cleanups.
488 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
491 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
493 * MAINTAINERS (Write After Approval): Use default email address.
495 2011-06-27 Joel Brobecker <brobecker@adacore.com>
497 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
499 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
501 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
502 saved_regs_mask and copied_regs_mask fields.
503 (sparc_record_save_insn): New prototype.
504 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
505 (sparc_record_save_insn): New function.
506 (sparc_analyze_prologue): Add head comment. Recognize store insns
507 of call-saved registers. Use OFFSET consistently. Recognize flat
508 frames and cache their settings.
509 (sparc32_skip_prologue): Handle flat frames.
510 (sparc_frame_cache): Add frame_offset to the base address.
511 (sparc32_frame_cache): Adjust to new frame description.
512 (sparc32_frame_prev_register): Likewise.
513 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
514 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
515 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
516 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
517 frame by calling sparc_record_save_insn.
518 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
519 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
520 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
522 2011-06-27 Tristan Gingold <gingold@adacore.com>
524 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
525 field by map_addr and map_len.
526 (dwarf2_read_section): Adjust for the new bfd_mmap api.
527 (munmap_section_buffer): Likewise.
529 2011-06-24 Tom Tromey <tromey@redhat.com>
531 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
532 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
533 * python/python.c (gdbpy_parameter): Make 'arg' const.
534 (execute_gdb_command): Likewise.
535 (gdbpy_decode_line): Likewise. Copy it.
536 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
537 (gdbpy_write): Make 'arg' const.
538 * python/py-type.c (typy_lookup_typename): Make 'type_name'
540 (gdbpy_lookup_type): Likewise.
541 * python/py-prettyprint.c (print_children): Make 'name' const.
542 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
543 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
545 * python/py-function.c (fnpy_init): Make 'name' const.
546 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
547 (gdbpy_string_to_argv): Make 'input' const.
548 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
550 * gdbtypes.h (lookup_typename): Update.
551 * gdbtypes.c (lookup_typename): Make 'name' const.
552 (lookup_struct): Likewise.
553 (lookup_union): Likewise.
554 (lookup_enum): Likewise.
556 2011-06-24 Tom Tromey <tromey@redhat.com>
558 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
559 gdb_thread_db.h. Move all common/ entries to be together.
560 (TAGS): Don't depend on DEPFILES.
562 2011-06-23 Yao Qi <yao@codesourcery.com>
564 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
565 * remote.c (remote_start_remote): ... here.
566 * monitor.c (monitor_open): ... here.
568 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
570 * gdbtypes.c (append_composite_type_field_aligned): Fix
571 calculation of bit position based on alignment.
573 2011-06-22 Pedro Alves <pedro@codesourcery.com>
575 * breakpoint.c (bpstat_stop_status): Call the check_status
576 breakpoint_ops method.
577 (print_one_breakpoint_location): Also print the condition for Ada
578 exception catchpoints.
579 (allocate_bp_location): New, factored out from
580 allocate_bp_location.
581 (allocate_bp_location): Adjust. Call the owner breakpoint's
582 allocate_location method, if there is one.
583 (free_bp_location): Call the locations's dtor method, if there is
585 (init_raw_breakpoint_without_location): New breakpoint_ops
587 (set_raw_breakpoint_without_location): Adjust.
588 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
589 (set_raw_breakpoint): Adjust.
590 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
591 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
592 re_set and check_status methods.
593 (init_catchpoint): Don't memset, initialize thread, addr_string
594 and enable_state. Pass the ops down to init_raw_breakpoint.
595 (install_catchpoint): Rename to ...
596 (install_breakpoint): ... this, and make extern.
597 (create_fork_vfork_event_catchpoint): Adjust.
598 (catch_exec_breakpoint_ops): Install NULL allocate_location,
599 re_set and check_status methods.
600 (create_syscall_event_catchpoint): Adjust.
601 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
602 (masked_watchpoint_breakpoint_ops): Install NULL
603 allocate_location, re_set and check_status methods.
604 (catch_exec_command_1): Adjust.
605 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
606 re_set and check_status methods.
607 (create_ada_exception_breakpoint): Rename to ...
608 (init_ada_exception_breakpoint): ... this. Add a struct
609 breakpoint parameter, and delete the exp_string, cond_string and
610 cond parameters. Use init_raw_breakpoint, and don't install or
611 mention the breakpoint yet. Don't clear breakpoint fields that
612 init_raw_breakpoint already clears.
613 (re_set_breakpoint): Delete, split into ...
614 (breakpoint_re_set_default, prepare_re_set_context): ... these new
616 (breakpoint_re_set_one): Call the breakpoint's
617 breakpoint_ops->re_set implementation, if there's one. Adjust.
618 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
619 (struct bp_location_ops): New type.
620 (struct bp_location): New field `ops'.
621 (struct breakpoint_ops): New `allocate_location', `re_set' and
622 `check_status' fields. Make `breakpoint_hit''s description match
624 (init_bp_location): Declare.
625 (breakpoint_re_set_default): Declare.
626 (create_ada_exception_breakpoint): Rename to ...
627 (init_ada_exception_breakpoint): ... this. Add a struct
628 breakpoint parameter, and delete the exp_string, cond_string and
630 (install_breakpoint): Declare.
631 * ada-lang.c: Include exceptions.h.
632 <Ada exceptions description>: Update.
633 (struct ada_catchpoint_location): New type.
634 (ada_catchpoint_location_dtor): New function.
635 (ada_catchpoint_location_ops): New global.
636 (ada_catchpoint): New type.
637 (create_excep_cond_exprs): New function.
638 (dtor_exception, allocate_location_exception, re_set_exception)
639 (should_stop_exception, check_status_exception): New functions.
640 (print_one_exception, print_mention_exception)
641 (print_recreate_exception): Adjust.
642 (dtor_catch_exception, allocate_location_catch_exception)
643 (re_set_catch_exception, check_status_catch_exception): New
645 (catch_exception_breakpoint_ops): Install them.
646 (dtor_catch_exception_unhandled)
647 (allocate_location_catch_exception_unhandled)
648 (re_set_catch_exception_unhandled)
649 (check_status_catch_exception_unhandled): New functions.
650 (catch_exception_unhandled_breakpoint_ops): Install them.
651 (dtor_catch_assert, allocate_location_catch_assert)
652 (re_set_catch_assert, check_status_catch_assert): New functions.
653 (catch_assert_breakpoint_ops): Install them.
654 (ada_exception_catchpoint_p): Delete.
655 (catch_ada_exception_command_split)
656 (ada_exception_catchpoint_cond_string): Rename exp_string
657 parameter to excep_string. Adjust.
658 (ada_parse_catchpoint_condition): Delete.
659 (ada_exception_sal): Rename the exp_string parameter to
660 excep_string. Delete the cond_string and cond parameters.
662 (ada_decode_exception_location): Rename the exp_string parameter
663 to excep_string. Delete the cond_string and cond parameters.
665 (create_ada_exception_catchpoint): New function.
666 (catch_ada_exception_command, ada_decode_assert_location)
667 (catch_assert_command): Adjust.
668 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
670 2011-06-22 Pedro Alves <pedro@codesourcery.com>
672 * ada-lang.c: Include arch-utils.h.
673 (ada_decode_exception_location): Make static.
674 (catch_ada_exception_command): Moved here from breakpoint.c.
675 (ada_decode_assert_location): Make static.
676 (catch_assert_command): Moved here from breakpoint.c.
677 (_initialize_ada_lang): Install the exception and assert
678 catchpoint commands here.
679 * ada-lang.h (ada_decode_exception_location)
680 (ada_decode_assert_location): Delete declarations.
681 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
683 (create_ada_exception_breakpoint): Make extern.
684 (catch_ada_exception_command, catch_assert_command): Moved to
686 (add_catch_command): Make extern.
687 (_initilize_breakpoint): Don't install the exception and assert
688 catchpoint commands here.
689 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
691 (add_catch_command, create_ada_exception_breakpoint): Declare.
693 2011-06-22 Pedro Alves <pedro@codesourcery.com>
695 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
696 the breakpoint to the breakpoint chain here.
697 (set_raw_breakpoint_without_location): Add the breakpoint to the
698 breakpoint chain here.
699 (init_raw_breakpoint): Adjust comments.
700 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
702 (init_catchpoint): Don't set the catchpoint's breakpoint number
704 (install_catchpoint): New function.
705 (create_fork_vfork_event_catchpoint)
706 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
707 use install_catchpoint.
709 2011-06-22 Pedro Alves <pedro@codesourcery.com>
711 * breakpoint.c (create_catchpoint_without_mention)
712 (create_catchpoint): Delete.
714 2011-06-22 Pedro Alves <pedro@codesourcery.com>
716 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
717 * breakpoint.c (init_raw_breakpoint_without_location): Remove
718 reference to exec_pathname.
719 (struct exec_catchpoint): New type.
720 (dtor_catch_exec): New function.
721 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
722 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
723 (catch_exec_command_1): Adjust to use init_catchpoint.
724 (delete_breakpoint): Remove reference to exec_pathname.
726 2011-06-22 Pedro Alves <pedro@codesourcery.com>
728 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
729 (struct breakpoint): Delete field `syscalls_to_be_caught'.
730 * breakpoint.c (init_raw_breakpoint_without_location): Remove
731 reference to syscalls_to_be_caught.
732 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
734 (struct syscall_catchpoint): New type.
735 (dtor_catch_syscall): New function.
736 (insert_catch_syscall, remove_catch_syscall)
737 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
738 (print_recreate_catch_syscall): Adjust.
739 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
740 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
741 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
742 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
743 (masked_watchpoint_breakpoint_ops)
744 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
745 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
746 there is one. Remove references to syscalls_to_be_caught.
747 (catching_syscall_number): Adjust.
748 * ada-lang.c (catch_exception_breakpoint_ops)
749 (catch_exception_unhandled_breakpoint_ops)
750 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
752 2011-06-22 Pedro Alves <pedro@codesourcery.com>
754 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
756 * breakpoint.c (init_raw_breakpoint_without_location): Remove
757 reference to forked_inferior_pid.
758 (struct fork_catchpoint): New type.
759 (breakpoint_hit_catch_fork, print_it_catch_fork)
760 (print_one_catch_fork, breakpoint_hit_catch_vfork)
761 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
762 (create_fork_vfork_event_catchpoint): Adjust to use
765 2011-06-22 Pedro Alves <pedro@codesourcery.com>
767 * breakpoint.c (add_to_breakpoint_chain)
768 (init_raw_breakpoint_without_location): New functions, factored
770 (set_raw_breakpoint_without_location): ... this one.
771 (init_raw_breakpoint): New function, factored out from
772 set_raw_breakpoint and adjusted to use
773 init_raw_breakpoint_without_location.
774 (set_raw_breakpoint): Adjust.
775 (init_catchpoint): New function, factored out from
776 create_catchpoint_without_mention and adjusted to use
778 (create_catchpoint_without_mention): Adjust.
780 2011-06-22 Tom Tromey <tromey@redhat.com>
782 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
783 argument of 0 specially.
785 2011-06-22 Yao Qi <yao@codesourcery.com>
787 * infrun.c (handle_inferior_event): Remove write-only local variable
788 `sw_single_step_trap_p'.
790 2011-06-20 Tom Tromey <tromey@redhat.com>
792 * symtab.c (lookup_language_this): End loop if block is NULL.
794 2011-06-17 Tom Tromey <tromey@redhat.com>
796 * valops.c (value_of_this): Use lookup_language_this.
797 * symtab.h (lookup_language_this): Declare.
798 * symtab.c (lookup_language_this): New function.
799 (lookup_symbol_aux): Use lookup_language_this.
800 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
802 2011-06-17 Tom Tromey <tromey@redhat.com>
804 * value.h (value_of_this): Update.
805 (value_of_local): Remove.
806 * valops.c (value_of_this): Rename from value_of_local. Change
808 * p-exp.y (exp): Update.
809 (variable): Likewise.
810 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
812 2011-06-17 Tom Tromey <tromey@redhat.com>
814 * valops.c (value_of_local): Complain if NAME is NULL.
815 * std-operator.def (OP_OBJC_SELF): Remove.
816 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
817 * objc-exp.y (name_not_typename): Use OP_THIS.
818 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
820 <OP_OBJC_SELF>: Remove.
821 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
823 2011-06-16 Tristan Gingold <gingold@adacore.com>
825 * python/py-events.h (gdb_py_events): Make it extern.
826 * python/py-evtregistry.c (gdb_py_events): Declare.
828 2011-06-16 Hui Zhu <teawater@gmail.com>
830 * remote.c (remote_trace_set_readonly_regions): Add check for
831 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
834 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
836 * arm-linux-tdep.c: Include "auxv.h".
838 (ARM_LINUX_SIZEOF_VFP): Define.
839 (arm_linux_supply_vfp): New function.
840 (arm_linux_collect_vfp): Likewise.
841 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
842 (arm_linux_fpa_regset_sections): New variable.
843 (arm_linux_vfp_regset_sections): Likewise.
844 (arm_linux_core_read_description): New function.
845 (arm_linux_init_abi): Install arm_linux_core_read_description and
846 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
847 appropriate for the architecture.
848 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
849 (tdesc_arm_with_m): Declare.
850 (tdesc_arm_with_iwmmxt): Likewise.
851 (tdesc_arm_with_vfpv2): Likewise.
852 (tdesc_arm_with_vfpv3): Likewise.
853 (tdesc_arm_with_neon): Likewise.
854 * arm-linux-nat.c: Move features/*.c includes ...
855 * arm-tdep.c: ... here.
856 * arm-linux-nat.c (arm_linux_read_description): Move initializing
857 target description data structures ...
858 * arm-tdep.c (_initialize_arm_tdep): ... here.
859 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
860 HWCAP_VFPv3D16): Move definitions ...
861 * arm-linux-tdep.h: ... here.
863 2011-06-15 Hui Zhu <teawater@gmail.com>
865 * remote.c (remote_trace_set_readonly_regions): Add a check for
868 2011-06-14 Tom Tromey <tromey@redhat.com>
870 * coffread.c (coffread_objfile): Rename from current_objfile.
871 * dbxread.c (dbxread_objfile): Rename from current_objfile.
872 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
874 2011-06-14 Tom Tromey <tromey@redhat.com>
876 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
877 (class_symtab): Remove.
878 (jv_dynamics_progspace_key): New global.
879 (jv_per_objfile_free): Reset program space data. Update assert.
881 (get_dynamics_objfile): Use and set program space data.
882 (get_java_class_symtab): Use get_dynamics_objfile.
883 (add_class_symbol): Likewise.
884 (java_link_class_type): Likewise.
885 (java_object_type, jv_clear_object_type, set_java_object_type):
887 (get_java_object_type): Update. Don't cache result.
888 (is_object_type): Don't call set_java_object_type.
889 (_initialize_java_language): Don't set jv_type_objfile_data_key;
890 initialize jv_dynamics_progspace_key.
892 2011-06-14 Tom Tromey <tromey@redhat.com>
894 * symtab.h (current_objfile): Don't declare.
895 * objfiles.h (current_objfile): Don't declare.
896 * objfiles.c (current_objfile): Remove.
897 * mdebugread.c (current_objfile): New file-scope global.
898 * dbxread.c (current_objfile): New file-scope global.
899 * coffread.c (current_objfile): New file-scope global.
901 2011-06-13 Pedro Alves <pedro@codesourcery.com>
903 * top.h (line): Rename to ...
904 (saved_command_line): ... this.
905 (linesize): Rename to ...
906 (saved_command_line_size): ... this.
907 * top.c (line): Rename to ...
908 (saved_command_line): ... this.
909 (linesize): Rename to ...
910 (saved_command_line_size): ... this.
911 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
912 * event-top.c (command_line_handler): Adjust.
913 * main.c (captured_main): Adjust.
915 2011-06-12 Mark Kettenis <kettenis@gnu.org>
917 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
918 get_frame_func instead of get_frame_pc to determine the code
919 address used to construct the frame ID.
920 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
921 (i386_epilogue_frame_this_id): Likewise.
922 (i386_epilogue_frame_prev_register): New function.
923 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
924 (i386_stack_tramp_frame_sniffer): Fix coding style.
925 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
926 (i386_gdbarch_init): Fix comments.
928 2011-06-12 Mark Kettenis <kettenis@gnu.org>
930 * i386-tdep.c (i386_match_insn_block): Use length of the proper
931 instruction when walking back through the instruction stream.
933 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
935 * symtab.c (output_partial_symbol_filename): Exchange the filename and
936 fullname parameters order.
938 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
941 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
943 * psymtab.c (map_symbol_filenames_psymtab)
944 (map_partial_symbol_filenames): Likewise.
945 * psymtab.h: Include symfile.h.
946 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
947 * symfile.h (symbol_filename_ftype): New.
948 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
949 map_symbol_filenames, clarify more the naming in comment.
951 2011-06-07 Doug Evans <dje@google.com>
953 * cc-with-index.sh: Fix typos in comment.
954 Look for ../../gdb, for fullname.exp.
956 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
957 Pedro Alves <pedro@codesourcery.com>
959 * cli/cli-cmds.c (shell_escape): Use waitpid.
960 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
962 2011-06-07 Tristan Gingold <gingold@adacore.com>
964 * xcoffread.c (dwarf2_xcoff_names): New variable.
965 (aix_process_linenos): Add a guard.
966 (xcoff_symfile_finish): Free dwarf2.
967 (xcoff_initial_scan): Add dwarf2 support.
969 2011-06-06 Pedro Alves <pedro@codesourcery.com>
971 * infcall.c (run_inferior_call): Don't mask async. Instead force
972 a synchronous wait, if the target can async.
974 * target.h (struct target_ops): Delete to_async_mask.
975 (target_async_mask): Delete.
976 * target.c (update_current_target): Delete references to to_async_mask.
977 * linux-nat.c (linux_nat_async_mask_value): Delete.
978 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
979 to linux_nat_async_mask_value.
980 (linux_nat_async_mask): Delete.
981 (linux_nat_async, linux_nat_close): Remove references to
982 linux_nat_async_mask_value.
983 * record.c (record_async_mask_value): Delete.
984 (record_async): Remove references to record_async_mask_value.
985 (record_async_mask): Delete.
986 (record_can_async_p, record_is_async_p): Remove references to
987 record_async_mask_value.
988 (init_record_ops, init_record_core_ops): Remove references to
990 * remote.c (remote_async_mask_value): Delete.
991 (init_remote_ops): Remove reference to remote_async_mask.
992 (remote_can_async_p, remote_is_async_p): Remove references to
993 remote_async_mask_value.
994 (remote_async): Remove references to remote_async_mask_value.
995 (remote_async_mask): Delete.
997 * infrun.c (fetch_inferior_event): Don't claim registers changed
998 if the current thread is already not executing.
1000 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
1002 From Stephen Kitt <steve@sk2.org>
1003 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
1004 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
1006 2011-06-03 Joel Brobecker <brobecker@adacore.com>
1008 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
1009 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
1011 2011-06-03 Tom Tromey <tromey@redhat.com>
1013 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
1015 * python/py-exitedevent.c (create_exited_event_object): Change
1016 type of 'exit_code'. Optionally add exit_code attribute.
1017 (emit_exited_event): Change type of 'exit_code'.
1018 * python/py-event.h (emit_exited_event): Update.
1019 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
1020 * infrun.c (handle_inferior_event): Set exit code fields on
1022 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
1024 * inferior.c (exit_inferior_1): Initialize new fields.
1026 2011-06-03 Tom Tromey <tromey@redhat.com>
1028 * dwarf2expr.c (get_signed_type): New function.
1029 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
1031 2011-06-02 Keith Seitz <keiths@redhat.com>
1033 * objc-lang.c (find_methods): Increment objfile_csym earlier.
1035 2011-06-02 Pedro Alves <pedro@codesourcery.com>
1037 * top.h (simplified_command_loop): Delete declaration.
1039 2011-06-01 Mike Frysinger <vapier@gentoo.org>
1041 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
1042 gdb_sysroot to the "len" variable. Append both to "arg_buf".
1044 2011-06-01 Yao Qi <yao@codesourcery.com>
1046 * objfiles.h (obj_section_addr): Update reference to objfile from
1048 (obj_section_endaddr): Likewise.
1050 2011-06-01 Daniel Jacobowitz <drow@false.org>
1052 * MAINTAINERS: Update my email address and affiliation. Also
1053 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
1055 2010-05-31 Keith Seitz <keiths@redhat.com>
1058 * linespec.c (get_search_block): New function.
1059 (find_methods): Add FILE_SYMTATB parameter and use it and
1060 get_search_block to pass an appropriate block to
1061 lookup_symbol_in_namespace.
1062 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
1063 Check if *ARGPTR starts with a filename first.
1064 If it does, call locate_first_half again to locate the next
1065 "first half" of the linespec.
1066 Pass FILE_SYMTATB to decode_objc and decode_compound.
1067 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
1068 (locate_first_half): Stop on the first colon seen.
1069 (decode_compound): Add FILE_SYMTAB parameter.
1070 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
1071 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
1072 get_search_block with lookup_symbol.
1073 (find_method): Add FILE_SYMTAB parameter and pass it to
1075 (decode_objc): Use get_search_block.
1077 2010-05-31 Keith Seitz <keiths@redhat.com>
1080 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
1081 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
1082 and CP_ANONYMOUS_NAMESPACE_LEN.
1083 (cp_is_anonymous): Likewise.
1084 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
1085 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
1086 * dwarf2read.c (namespace_name): Likewise.
1087 (fixup_partial_die): Likewise.
1088 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
1089 seen in the input, keep it.
1091 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1093 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
1094 * inf-loop.h (inferior_event_handler_wrapper): Delete.
1095 * inf-loop.c (inferior_event_handler_wrapper): Delete.
1096 (inferior_event_handler): Don't handle INF_QUIT_REQ.
1097 * remote.c (_initialize_remote): Register
1098 async_remote_interrupt_twice directly as
1099 sigint_remote_twice_token event.
1101 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1103 * target.h (enum inferior_event_type): Delete INF_ERROR.
1104 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
1106 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1108 * interps.c (interp_set): Don't cancel continuations.
1110 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1112 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
1114 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1116 * continuations.h (continuation_ftype): Add `err' parameter.
1117 Document parameters.
1118 (do_all_continuations, do_all_continuations_thread)
1119 (do_all_intermediate_continuations)
1120 (do_all_intermediate_continuations_thread)
1121 (do_all_inferior_continuations): Add `err' parameter.
1122 * continuations.c (do_my_continuations_1, do_my_continuations)
1123 (do_all_inferior_continuations, do_all_continuations_ptid)
1124 (do_all_continuations_thread_callback)
1125 (do_all_continuations_thread, do_all_continuations)
1126 (do_all_intermediate_continuations_thread_callback)
1127 (do_all_intermediate_continuations_thread)
1128 (do_all_intermediate_continuations): Add `err' parameter, and pass
1129 it down all the way to the continuations proper.
1130 * inf-loop.c (inferior_event_handler): If fetching an inferior
1131 event throws an error, don't pop the target, and still call the
1132 continuations, but with `err' set. Adjust all other continuation
1134 * breakpoint.c (until_break_command_continuation): Add `err'
1136 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
1137 issue another step if `err' is set.
1138 (struct until_next_continuation_args): New.
1139 (until_next_continuation): Add `err' parameter. Adjust.
1140 (until_next_command): Adjust.
1141 (struct finish_command_continuation_args): Add `thread' field.
1142 (finish_command_continuation): Add `err' parameter. Handle it.
1143 (finish_forward): Adjust.
1144 (attach_command_continuation): Add `err' parameter. Handle it.
1145 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1146 cancel the continuations.
1147 * interps.c (interp_set): Adjust to cancel the continuations.
1148 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1149 continuations rather than discarding.
1150 (free_thread): Don't clear thread inferior resources here.
1151 (delete_thread_1): Do it here instead. And do it before removing
1152 the thread from the threads list. Tag the thread as exited before
1153 clearing thread inferior resources.
1155 2011-05-30 Joel Brobecker <brobecker@adacore.com>
1157 * infcall.c (call_function_by_hand): Rephrase error message.
1159 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1161 * defs.h (struct thread_info, struct inferior): Delete forward
1163 * breakpoint.h (struct thread_info): New forward declaration.
1164 * observer.sh (struct inferior): New forward declaration.
1165 * python/python-internal.h (struct inferior): New forward
1168 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1170 * defs.h (struct continuation, continuation_ftype)
1171 (continuation_free_arg_ftype, add_continuation)
1172 (do_all_continuations, do_all_continuations_thread)
1173 (discard_all_continuations, discard_all_continuations_thread)
1174 (add_intermediate_continuation, do_all_intermediate_continuations)
1175 (do_all_intermediate_continuations_thread)
1176 (discard_all_intermediate_continuations)
1177 (discard_all_intermediate_continuations_thread)
1178 (add_inferior_continuation, do_all_inferior_continuations)
1179 (discard_all_inferior_continuations): Move to ...
1180 * continuations.h: ... this new file.
1181 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1182 infcmd.c, inferior.c, infrun.c, interps.c: Include
1185 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1186 Doug Evans <dje@google.com>
1188 Fix PR 10970, PR 12702.
1189 * linux-nat.c (linux_lwp_is_zombie): New function.
1190 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1191 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1193 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1195 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1197 (add_continuation, add_intermediate_continuation)
1198 (add_inferior_continuation): Use them.
1199 * continuations.c (struct continuation): Use them.
1200 (make_continuation_ftype): Delete.
1201 (make_continuation, add_inferior_continuation, add_continuation)
1202 (add_intermediate_continuation): Use continuation_ftype and
1203 continuation_free_arg_ftype. Rename parameters to shorter names.
1205 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1207 * continuations.c (make_continuation): Make it return void.
1208 (do_my_continuations): Rename to ...
1209 (do_my_continuations_1): ... this. Remove old_chain parameter and
1211 (do_my_continuations): New.
1212 (discard_my_continuations): Rename to ...
1213 (discard_my_continuations_1): ... this. Remove old_chain
1214 parameter and adjust.
1215 (discard_my_continuations): New.
1216 (add_inferior_continuation): Simplify.
1217 (do_all_inferior_continuations): Reimplement on top
1218 do_my_continuations.
1219 (discard_all_inferior_continuations): Simplify.
1220 (add_continuation): Simplify.
1221 (do_all_continuations_ptid): Simplify.
1222 (discard_all_continuations_thread_callback): Simplify.
1223 (add_intermediate_continuation): Simplify.
1224 (discard_all_intermediate_continuations_thread_callback):
1227 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1229 * utils.c (struct continuation, add_continuation)
1230 (add_inferior_continuation)
1231 (do_all_inferior_continuations, discard_all_inferior_continuations)
1232 (restore_thread_cleanup, do_all_continuations_ptid)
1233 (do_all_continuations_thread_callback)
1234 (do_all_continuations_thread, do_all_continuations)
1235 (discard_all_continuations_thread_callback)
1236 (discard_all_continuations_thread, discard_all_continuations)
1237 (add_intermediate_continuation)
1238 (do_all_intermediate_continuations_thread_callback)
1239 (do_all_intermediate_continuations_thread)
1240 (do_all_intermediate_continuations)
1241 (discard_all_intermediate_continuations_thread_callback)
1242 (discard_all_intermediate_continuations_thread)
1243 (discard_all_intermediate_continuations): Move to ...
1244 * continuations.c: ... this new file, and adjust to no longer
1245 implement continuations on top of cleanups.
1246 * Makefile.in (SFILES): Add continuations.c.
1247 (COMMON_OBS): Add continuations.o.
1249 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1251 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1252 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1253 Internal error on invalid values.
1254 * reverse.c: Don't handle EXEC_ERROR.
1255 * mi/mi-main.c: Don't handle EXEC_ERROR.
1257 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1259 * record.c: Include event-loop.h, inf-loop.h.
1260 (record_beneath_to_async): New global.
1261 (tmp_to_async): New global.
1262 (record_async_inferior_event_token): New global.
1263 (record_open_1): Don't error out if async is enabled.
1264 (record_open): Handle to_async. Create an async event source in
1266 (record_close): Delete the async event source.
1267 (record_resumed): New global.
1268 (record_execution_dir): New global.
1269 (record_resume, record_core_resume): Set them. Register the
1270 target on the event loop.
1271 (record_wait): Rename to ...
1272 (record_wait_1): ... this. Add more debug output. Handle
1273 TARGET_WNOHANG, and the target beneath returning
1274 TARGET_WAITKIND_IGNORE.
1275 (record_wait): Reimplement on top of record_wait_1.
1276 (record_async_mask_value): New global.
1277 (record_async, record_async_mask, record_can_async_p)
1278 (record_is_async_p, record_execution_direction): New functions.
1279 (init_record_ops, init_record_core_ops): Install new methods.
1280 * infrun.c (fetch_inferior_event): Temporarily switch the global
1281 execution direction to the direction the target was going.
1282 (execution_direction): Change type to int.
1283 * target.c (default_execution_direction): New function.
1284 (update_current_target): Inherit and de_fault
1285 to_execution_direction.
1286 * target.h (struct target_ops) <to_execution_direction>: New
1288 (target_execution_direction): New macro.
1289 * inferior.h (execution_direction): Change type to int.
1291 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1293 * infcall.c (call_function_by_hand): Don't allow calling functions
1294 in reverse execution mode.
1296 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1298 * infcmd.c (finish_command): Allow async finish in reverse.
1300 2011-05-26 Yao Qi <yao@codesourcery.com>
1302 * gdb_thread_db.h: Delete. Move to ...
1303 * common/gdb_thread_db.h: ... here.
1305 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1307 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1308 function's entry point instead of a manually managed momentary
1309 breakpoint, and only ever issue one proceed call.
1310 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1311 doing a reverse-finish, switch to stepi mode, to do another step.
1312 (insert_step_resume_breakpoint_at_sal): Make public.
1313 (normal_stop): No need to save function value return registers if
1315 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1317 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1319 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1320 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1321 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
1323 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1324 step-resume breakpoints.
1325 (print_it_typical): Handle bp_hp_step_resume.
1326 (bpstat_what): Ditto.
1327 (bptype_string): Ditto.
1328 (print_one_breakpoint_location): Ditto.
1329 (allocate_bp_location): Ditto.
1331 (breakpoint_re_set_one): Ditto.
1332 * infrun.c (handle_inferior_event): Adjust. Split
1333 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1334 BPSTAT_WHAT_HP_STEP_RESUME.
1335 (insert_step_resume_breakpoint_at_sal): Rename to ...
1336 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
1337 parameter. Handle it.
1338 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1339 insert_step_resume_breakpoint_at_sal_1.
1340 (insert_step_resume_breakpoint_at_frame): Rename to ...
1341 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
1342 set a high-priority step-resume breakpoint.
1343 (insert_step_resume_breakpoint_at_frame): Adjust comment.
1344 (insert_step_resume_breakpoint_at_caller): Ditto.
1346 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1348 * breakpoint.c (iterate_over_related_breakpoints): New.
1349 (do_map_delete_breakpoint): New.
1350 (delete_command): Pass do_map_delete_breakpoint to
1351 map_breakpoint_numbers.
1352 (do_disable_breakpoint): New.
1353 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1355 (do_enable_breakpoint): Rename to ...
1356 (enable_breakpoint_disp): ... this.
1357 (enable_breakpoint): Adjust.
1358 (do_enable_breakpoint): New.
1359 (enable_once_breakpoint): Delete.
1360 (do_map_enable_breakpoint): New.
1361 (do_map_enable_once_breakpoint): New.
1362 (enable_once_command, enable_delete_command)
1363 (delete_trace_command): Iterate over the breakpoint's related
1366 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1368 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1369 for ALPHA_ZERO_REGNUM.
1370 (alpha_supply_int_regs): Explicitly supply zero as the value for
1371 ALPHA_ZERO_REGNUM in the register cache.
1372 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1374 2011-05-26 Yao Qi <yao@codesourcery.com>
1376 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1378 2011-05-26 Tristan Gingold <gingold@adacore.com>
1380 * symfile.h (struct dwarf2_section_names): New type.
1381 (struct dwarf2_debug_sections): New type.
1382 (dwarf2_has_info): Add parameter.
1383 * dwarf2read.c (dwarf2_elf_names): New variable.
1384 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1385 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1386 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1387 (dwarf2_has_info): Add names parameter. Pass names
1388 to dwarf2_locate_sections.
1389 (section_is_p): Rewrite using the names parameter.
1390 (dwarf2_locate_sections): Use section names from the names parameter.
1391 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1392 * elfread.c (read_psyms): Ditto.
1393 * machoread.c (macho_symfile_read): Ditto.
1395 2011-05-25 Andreas Schwab <schwab@redhat.com>
1398 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1400 2011-05-24 Keith Seitz <keiths@redhat.com>
1403 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1404 (decode_compound): Unconditionally call keep_name_info.
1406 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1408 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1409 scope, clear its command list.
1410 (map_breakpoint_numbers): Don't walk the related breakpoints list
1413 2011-05-24 Tom Tromey <tromey@redhat.com>
1415 * MAINTAINERS: Move Jim Blandy to past maintainers.
1417 2011-05-24 Tristan Gingold <gingold@adacore.com>
1419 * symfile.h (enum dwarf2_section_enum): New type.
1420 (dwarf2_get_section_info): New prototype.
1421 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1422 section_name by sect. Use a switch to select the info.
1423 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1424 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1426 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1428 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1429 shared library event breakpoint if there's no execution.
1431 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
1433 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1434 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1436 2011-05-23 Tom Tromey <tromey@redhat.com>
1438 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1441 2011-05-23 Doug Evans <dje@google.com>
1443 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1444 entry for RuntimeError to doc string.
1446 2011-05-23 Jerome Guitton <guitton@adacore.com>
1448 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1449 sequence for probing loops.
1451 2011-05-23 Pedro Alves <pedro@codesourcery.com>
1453 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1456 2011-05-21 Mark Kettenis <kettenis@gnu.org>
1458 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1459 zero as the value for %g0 in the register cache.
1460 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1461 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1463 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1465 * infrun.c (proceed): Set previous_inferior_ptid here.
1466 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1467 inferior_ptid, not null_ptid.
1468 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1469 (fetch_inferior_event): Nor here.
1471 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1473 * inf-loop.c (inferior_event_handler): Only output a message if
1476 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
1478 * MAINTAINERS: Update my e-mail address.
1480 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1482 * infrun.c (proceed): Switch the inferior event loop to
1483 INF_EXEC_COMPLETE if the target refused to resume from a
1486 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1488 * infcmd.c: Include "inf-loop.h".
1489 (step_once): When stepping into an inline subroutine, pretend the
1490 target has run. If the target can async, switch the inferior
1491 event loop to INF_EXEC_COMPLETE.
1492 * inferior.h (user_visible_resume_ptid): Declare.
1493 * infrun.c (user_visible_resume_ptid): New function, factored out
1496 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1497 that the current thread is running. Merge async and sync
1500 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1502 * infcmd.c (step_1): Simplify synchronous case.
1504 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1506 * tracepoint.c: Include exceptions.h.
1507 (TFILE_PID): Move higher in file.
1508 (tfile_open): Delay pushing the tfile target until we're assured
1509 the tfile header is present in the file. Wrap reading the initial
1510 newline-terminated lines in TRY_CATCH. Pop the target if the
1511 initial setup failed. Add the tfile's thread immediately
1512 aftwards, before any non-essential setup. Don't skip
1513 post_create_inferior if there are no traceframes present in the
1515 (tfile_close): Remove redundant check for null before xfree call.
1516 (tfile_thread_alive): New function.
1517 (init_tfile_ops): Register it as to_thread_alive callback.
1519 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1521 * tracepoint.c (tfile_open): Delete #if 0'd code.
1523 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1525 Fix -readnow for -gdwarf-4 unused type units.
1526 * dwarf2read.c (struct signatured_type): Remove the field offset.
1527 (create_signatured_type_table_from_index): Remove its initialization.
1528 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1529 instead. Add a complaint call.
1530 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1531 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1532 (lookup_signatured_type_at_offset, read_signatured_type)
1533 (write_one_signatured_type): Update the field for per_cu.
1535 2011-05-19 Tom Tromey <tromey@redhat.com>
1537 * python/py-inferior.c (python_inferior_exit): Use
1539 (python_on_resume): Likewise.
1541 2011-05-19 Matt Rice <ratmice@gmail.com>
1543 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1545 2011-05-19 Hui Zhu <teawater@gmail.com>
1547 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1549 2011-05-19 Hui Zhu <teawater@gmail.com>
1551 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1553 2011-05-18 Tom Tromey <tromey@redhat.com>
1555 * dwarf2read.c (dwarf2_add_field): Constify.
1556 * value.c (value_static_field): Constify.
1557 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1559 * ax-gdb.c (gen_static_field): Constify
1561 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1563 * linux-nat.c (kill_callback): Use SIGKILL first.
1565 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1567 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1569 2011-05-18 Tom Tromey <tromey@redhat.com>
1571 * value.c (value_fn_field): Constify.
1572 * symtab.c (gdb_mangle_name): Constify.
1573 * stabsread.c (update_method_name_from_physname): Make 'physname'
1575 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1576 const. Use explicit fputc_filtered loop.
1577 (pascal_type_print_base): Constify.
1578 * p-lang.h (pascal_type_print_method_args): Update.
1579 * linespec.c (add_matching_methods): Constify.
1580 (add_constructors): Likewise.
1581 * jv-typeprint.c (java_type_print_base): Constify.
1582 * gdbtypes.h (struct cplus_struct_type)
1583 <fn_fieldlist.fn_field.physname>: Now const.
1584 * dwarf2read.c (compute_delayed_physnames): Constify.
1585 (dwarf2_add_member_fn): Likewise.
1586 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1588 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1590 * infrun.c (resume): Mention which is the current thread, and its
1591 current PC in debug output.
1592 (prepare_to_proceed): Mention the thread switching in debug
1595 2011-05-18 Tom Tromey <tromey@redhat.com>
1597 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1598 path check. Use xmalloc and cleanups.
1599 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1601 2011-05-17 Tom Tromey <tromey@redhat.com>
1603 * cp-valprint.c (cp_print_value_fields): Catch errors from
1606 2011-05-17 Tom Tromey <tromey@redhat.com>
1608 * dwarf2read.c (dwarf2_get_die_type): Call
1609 get_die_type_at_offset.
1610 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1611 get_base_type function.
1613 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1615 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1618 2011-05-16 Doug Evans <dje@google.com>
1620 * python/py-auto-load.c (source_section_scripts): Mention objfile
1623 2011-05-15 Doug Evans <dje@google.com>
1625 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1626 (try_thread_db_load_from_pdir): Call it. If unable to find
1627 libthread_db in directory of libpthread, see if we're looking at
1628 the separate-debug-info copy.
1630 * python/py-autoload.c (print_script): Print "Missing" instead of
1631 "No" for missing scripts.
1632 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1634 2011-05-13 Doug Evans <dje@google.com>
1636 * ui-file.c (stdio_file_write_async_safe): Add comment.
1638 2011-05-14 Hui Zhu <teawater@gmail.com>
1640 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1642 2011-05-13 Doug Evans <dje@google.com>
1644 Support $pdir and $sdir in libthread-db-search-path.
1645 * NEWS: Mention $sdir,$pdir.
1646 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1647 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1648 (try_thread_db_load_from_sdir): New function.
1649 (try_thread_db_load_from_dir): New function.
1650 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1651 system directories if search of libthread-db-search-path fails,
1652 that is now done via $sdir.
1653 (has_libpthread): New function.
1654 (thread_db_load): Remove search for libthread_db in directory of
1655 libpthread, that is now done via $pdir.
1657 * NEWS: Mention "info auto-load-scripts".
1658 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1659 script_not_found_warning_printed.
1660 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1661 all callers updated. Initialize script_not_found_warning_printed.
1662 (get_auto_load_pspace_data_for_loading): New function.
1663 (maybe_add_script): New function.
1664 (source_section_scripts): Simplify. Only print one warning regardless
1665 of the number of auto-load scripts not found.
1666 (clear_section_scripts): Clear script_not_found_warning_printed.
1667 (auto_load_objfile_script): Record script in hash table.
1668 (count_matching_scripts): New function.
1669 (maybe_print_script): Renamed from maybe_print_section_script, all
1670 callers updated. Rewrite to use ui_out_*.
1671 (info_auto_load_scripts): Renamed from
1672 maintenance_print_section_scripts, all callers updated.
1673 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1674 renamed as "info auto-load-scripts".
1676 2011-05-13 Tom Tromey <tromey@redhat.com>
1678 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1679 (read_sleb128): Likewise.
1681 2011-05-13 Tom Tromey <tromey@redhat.com>
1683 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1686 2011-05-13 Doug Evans <dje@google.com>
1688 * linux-nat.c (debug_linux_nat_async): Delete.
1689 Replace all references to use debug_linux_nat instead.
1690 (show_debug_linux_nat_async): Delete.
1691 (sigchld_handler): Call ui_file_write_async_safe instead of
1693 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1694 * ui-file.c (struct ui_file): New member to_write_async_safe.
1695 (null_file_write_async_safe): New function.
1696 (ui_file_write_async_safe): New function.
1697 (set_ui_file_write_async_safe): New function.
1698 (ui_file_new): Initialize to_write_async_safe.
1699 (stdio_file_write_async_safe): New function.
1700 (struct stdio_file): New member fd.
1701 (stdio_file_new): Initialize to_write_async_safe, fd.
1702 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1704 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1705 (set_ui_file_write_async_safe): Declare.
1706 (ui_file_write_async_safe): Declare.
1708 2011-05-13 Tom Tromey <tromey@redhat.com>
1710 * utils.c (do_value_free): New function.
1711 (make_cleanup_value_free): Likewise.
1712 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1714 (dwarf2_loc_desc_needs_frame): Call
1715 make_cleanup_value_free_to_mark.
1716 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1717 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1719 (new_dwarf_expr_context): Don't call value_mark.
1720 * dwarf2-frame.c (execute_stack_op): Call
1721 make_cleanup_value_free_to_mark.
1722 * defs.h (make_cleanup_value_free): Declare.
1724 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1726 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1727 prepare_execute_command.
1728 * top.c (prepare_execute_command): Return cleanup.
1729 (execute_command): Use cleanup from prepare_execute_command.
1730 * top.h (prepare_execute_command): Change prototype to return
1732 * defs.h (struct value): Add opaque declaration.
1733 (make_cleanup_value_free_to_mark): Add prototype.
1734 * utils.c (do_value_free_to_mark): New function.
1735 (make_cleanup_value_free_to_mark): Likewise.
1737 2011-05-12 Tom Tromey <tromey@redhat.com>
1739 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1740 cast left-hand-side to unsigned.
1742 2011-05-12 Tom Tromey <tromey@redhat.com>
1745 * value.h (value_from_contents): Declare.
1746 * value.c (value_from_contents): New function.
1747 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1748 (dwarf2_get_die_type): New function.
1749 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1750 (allocate_piece_closure): Acquire reference to values.
1751 (read_pieced_value): Update for value-based expressions.
1752 (write_pieced_value): Likewise.
1753 (free_pieced_value_closure): Call value_free as needed.
1754 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1755 Update for value-based expressions.
1756 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1757 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1758 <get_base_type>: New field.
1759 (struct dwarf_expr_piece) <v.value>: Change type.
1760 <v.regno>: New field.
1761 (struct dwarf_expr_context) <mark>: New field.
1762 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1763 (dwarf_expr_pop, dwarf_expr_push): Remove.
1764 (dwarf_expr_push_address): Declare.
1765 * dwarf2expr.c (dwarf_arch_cookie): New global.
1766 (struct dwarf_gdbarch_types): New.
1767 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1769 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1771 (dwarf_expr_push_address): New function.
1772 (dwarf_expr_pop): Now static.
1773 (dwarf_expr_fetch): Change return type.
1774 (dwarf_require_integral): New function.
1775 (dwarf_expr_fetch): Simplify.
1776 (add_piece): Update.
1777 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1779 (execute_stack_op) <sign_ext>: Remove.
1780 Use values for DWARF stack.
1781 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1782 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1784 (_initialize_dwarf2expr): New function.
1785 (add_piece): Update.
1786 (new_dwarf_expr_context): Set new field.
1787 (free_dwarf_expr_context): Call value_free_to_mark.
1788 * dwarf2-frame.c (no_base_type): New function.
1789 (execute_stack_op): Set get_base_type field. Update.
1791 2011-05-12 Tom Tromey <tromey@redhat.com>
1793 * dwarf2read.c (read_common_block): Fix formatting.
1795 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1797 * breakpoint.c (disable_breakpoint): Disable all locations
1798 associated with a tracepoint on target if a trace experiment is
1800 (disable_command): Disable a specific tracepoint location on target if
1801 a trace experiment is running.
1802 (do_enable_breakpoint): Enable all locations associated with a
1803 tracepoint on target if a trace experiment is running.
1804 (enable_command) Enable a specific tracepoint location on target if a
1805 trace experiment is running.
1806 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1807 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1808 to_disable_tracepoint.
1809 * target.h: Add declaration of struct bp_location.
1810 (struct target_ops): Add new functions
1811 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1812 to_disable_tracepoint to target operations.
1813 (target_supports_enable_disable_tracepoint): New macro.
1814 (target_enable_tracepoint): New macro.
1815 (target_disable_tracepoint): New macro.
1816 * remote.c (struct remote_state): Add new field.
1817 (remote_enable_disable_tracepoint_feature): New.
1818 (remote_protocol_features): Add new entry.
1819 (remote_supports_enable_disable_tracepoint): New.
1820 (remote_enable_tracepoint): New.
1821 (remote_disable_tracepoint): New.
1822 (init_remote_ops): Add remote_enable_tracepoint,
1823 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1824 to remote operations.
1825 * tracepoint.c (start_tracing): Allow tracing to start without any
1826 tracepoints enabled with just a warning if they can be re-enabled
1828 * NEWS: Add news item for the new behaviour of the enable and disable
1829 GDB commands when applied to tracepoints.
1830 Add news items for the new remote packets QTEnable and QTDisable.
1832 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1834 * config.in: Regenerate.
1835 * configure: Regenerate.
1836 * configure.ac <--with-system-readline> (for readline_echoing_p):
1838 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1839 (tui_old_rl_echoing_p): ... here.
1840 (tui_setup_io): Rename extern declaration readline_echoing_p to
1841 _rl_echoing_p. Adjust assignments for the both renames.
1843 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1845 * symtab.c (lookup_symtab): Run cleanup before returning.
1847 2011-05-11 Tom Tromey <tromey@redhat.com>
1849 * dwarf2read.c (handle_data_member_location): New function.
1850 (dwarf2_add_field): Use it.
1851 (read_common_block): Likewise.
1853 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1855 Make addrs->SECTINDEX always defined.
1856 * symfile.c (relative_addr_info_to_section_offsets): Check for
1857 SECTINDEX -1, not for zero ADDR.
1858 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1859 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1860 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1863 2011-05-10 Doug Evans <dje@google.com>
1865 * linux-thread-db.c: Whitespace cleanup.
1866 (try_thread_db_load_1): Fix comment.
1868 * linux-thread-db.c (set_libthread_db_search_path): New function.
1869 (_initialize_thread_db): Add setter for libthread-db-search-path.
1871 2011-05-09 Doug Evans <dje@google.com>
1873 * NEWS: Mention --with-iconv-bin.
1874 * configure.ac: New option --with-iconv-bin.
1875 * configure: Regenerate.
1876 * config.in: Regenerate.
1877 * defs.h (relocate_gdb_directory): Declare.
1878 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1879 removed progname parameter, and exported. All callers updated.
1880 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1882 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1883 adding missing call to restore_child_signals_mask.
1885 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1887 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1889 * infrun.c (proceed, start_remote): Adjust.
1890 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1891 and adjust to not handle it.
1892 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1893 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1894 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1895 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1896 * windows-nat.c (do_initial_windows_stuff): Adjust.
1897 * infcmd.c (attach_command): Adjust.
1898 (notice_new_inferior): Adjust.
1900 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1902 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1903 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1904 * spu-tdep.c (op_selb): Use correct value.
1906 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1908 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1909 "parent" parameter to symbol_file_add_from_bfd call.
1911 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1912 Thiago Jung Bauermann <bauerman@br.ibm.com>
1914 Implement support for PowerPC BookE masked watchpoints.
1915 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1917 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1918 method. Initialize to NULL in all existing breakpoint_ops instances.
1919 (struct breakpoint) <hw_wp_mask>: New field.
1920 * breakpoint.c (is_masked_watchpoint): Add prototype.
1921 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1922 breakpoint's breakpoint_ops.works_in_software_mode if available.
1923 (watchpoints_triggered): Handle the case of a hardware masked
1925 (watchpoint_check): Likewise.
1926 (works_in_software_mode_watchpoint): New function.
1927 (insert_masked_watchpoint, remove_masked_watchpoint)
1928 (resources_needed_masked_watchpoint)
1929 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1930 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1931 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1933 (masked_watchpoint_breakpoint_ops): New structure.
1934 (watch_command_1): Check for the existence of the `mask' parameter.
1935 Set b->ops according to the type of hardware watchpoint being created.
1936 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1937 (ppc_linux_remove_mask_watchpoint)
1938 (ppc_linux_masked_watch_num_registers): New functions.
1939 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1940 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1941 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1942 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1943 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1944 (target_masked_watch_num_registers): New functions.
1945 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1946 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1948 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1949 (target_masked_watch_num_registers): Add prototypes.
1951 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1954 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1955 (producer_is_gcc_ge_4_0): New function.
1956 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1957 symtab->language code.
1958 (var_decode_location): Set cu->has_loclist.
1959 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1960 skip. Intialize force_skip from locations_valid. Move the prologue
1961 skipping code into two passes.
1962 * symtab.h (struct symtab): Make the primary field a bitfield. New
1963 field locations_valid.
1965 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1967 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1968 (classify_inner_name): Call cp_lookup_nested_type with
1970 * cp-namespace.c (cp_lookup_nested_type): New variable
1971 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1972 type_name_no_tag_or_error with saved_parent_type.
1973 * dwarf2read.c (load_partial_dies): Read in any children of
1974 DW_TAG_typedef with complaint in such case.
1975 * gdbtypes.c (type_name_no_tag_or_error): New function.
1976 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1977 * valops.c (destructor_name_p): New comment for parameter type. Remove
1978 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1979 * value.h (destructor_name_p): Remove type const.
1981 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1983 * symtab.c (compare_symbol_name): New function.
1984 (completion_list_add_name, expand_partial_symbol_name): Call it,
1985 remove the variable ncmp.
1986 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1989 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1991 Demote to sw watchpoint only in update_watchpoint.
1992 * breakpoint.c (update_watchpoint): Change between software and
1993 hardware watchpoint for all kinds of watchpoints, not just
1994 read/write ones. Determine b->exact value here instead of
1995 in watch_command_1. Error out if there are not enough resources
1996 for a read or access hardware watchpoint.
1997 (watch_command_1): Remove logic of checking whether there are
1998 enough resources available, since update_watchpoint will do that
1999 work now. Don't set b->exact here. Catch exceptions thrown by
2000 update_watchpoint and delete the watchpoint.
2001 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
2002 Use target_exact_watchpoints instead.
2003 (delete_breakpoint): Notify observers only if deleted watchpoint
2004 has a breakpoint number assigned to it.
2006 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
2008 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2010 2011-05-05 Jerome Guitton <guitton@adacore.com>
2012 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
2014 (i386_stack_tramp_frame_unwind): New static global.
2015 (i386_match_pattern): New function, extracted from i386_match_insn.
2016 (i386_match_insn): Use i386_match_pattern.
2017 (i386_match_insn_block): New function.
2018 (i386_tramp_chain_in_reg_insns)
2019 (i386_tramp_chain_on_stack_insns): New static variables.
2020 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
2023 2011-05-04 Joseph Myers <joseph@codesourcery.com>
2025 * configure.host (xscale*): Don't handle target.
2026 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
2029 2011-05-04 Yao Qi <yao@codesourcery.com>
2031 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
2033 2011-05-03 Joel Brobecker <brobecker@adacore.com>
2036 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
2037 | * elfread.c (elf_symtab_read): Stop memory leak.
2039 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2041 * nto-tdep.c (nto_target): Replace deprecated call to
2042 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
2044 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2046 Fix false GCC warning.
2047 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
2049 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2051 * breakpoint.c (update_watchpoint): Move code to change
2052 the enable state of breakpoint from here ...
2053 (do_enable_breakpoint): ... to here.
2055 2011-04-26 Andrew Gontarek <andrewg@cray.com>
2057 * valprint.c (val_print_array_elements): Fixed poor performance
2058 of printing very large arrays with repeat_count_threshold set
2059 to unlimited. New comment.
2061 2011-04-29 Tom Tromey <tromey@redhat.com>
2063 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
2064 (mi_parse): Likewise.
2065 * breakpoint.c (break_range_command): Use sizeof char*, not
2067 (create_breakpoint): Likewise.
2068 (parse_breakpoint_sals): Likewise.
2070 2011-04-29 Pedro Alves <pedro@codesourcery.com>
2072 * linux-nat.c (linux_child_remove_fork_catchpoint)
2073 (linux_child_remove_vfork_catchpoint)
2074 (linux_child_remove_exec_catchpoint): New functions.
2075 (linux_target_install_ops): Install them.
2077 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
2081 * varobj.c (install_default_visualizer): Do not install a
2082 visualizer if the varobj is CPLUS_FAKE_CHILD.
2083 (construct_visualizer): Likewise.
2085 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2087 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
2088 case insensitive comparison.
2090 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
2092 * infrun.c (proceed): Revert previous change.
2093 (resume): Instead, handle the case of signal delivery while stepping
2094 off a breakpoint location here, and only if software single-stepping
2095 is used. Handle nested signals.
2097 2011-04-28 Yao Qi <yao@codesourcery.com>
2099 * arm-tdep.c (copy_unmodified): Rename to ...
2100 (arm_copy_unmodified): .. this. New.
2101 (copy_preload): Move common part to ...
2102 (install_preload): .. this. New.
2103 (arm_copy_preload): New.
2104 (copy_preload_reg): Move common part to ...
2105 (install_preload_reg): ... this. New.
2106 (arm_copy_preload_reg): New.
2107 (copy_b_bl_blx): Move common part to ...
2108 (install_b_bl_blx): .. this. New.
2109 (arm_copy_b_bl_blx): New.
2110 (copy_bx_blx_reg): Move common part to ...
2111 (install_bx_blx_reg): ... this. New.
2112 (arm_copy_bx_blx_reg): New.
2113 (copy_alu_reg): Move common part to ...
2114 (install_alu_reg): ... this. New.
2115 (arm_copy_alu_reg): New.
2116 (copy_alu_shifted_reg): Move common part to ...
2117 (install_alu_shifted_reg): ... this. New.
2118 (copy_ldr_str_ldrb_strb): Move common part to ...
2119 (install_ldr_str_ldrb_strb): ... this. New.
2120 (arm_copy_ldr_str_ldrb_strb): New.
2121 (copy_copro_load_store): Move some common part to ...
2122 (install_copy_copro_load_store): ... this. New.
2123 (arm_copy_copro_load_store): New.
2125 (arm_copy_svc): Renamed from copy_svc.
2126 (copy_undef): Delete.
2127 (arm_copy_undef): Renamed from copy_undef.
2128 (decode_ext_reg_ld_st): Delete.
2129 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2130 (decode_svc_copro): Delete.
2131 (arm_decode_svc_copro): Renamed from decode_svc_copro.
2132 (copy_copro_load_store, copy_alu_imm): update callers.
2133 (copy_extra_ld_st, copy_block_xfer): Likewise.
2134 (decode_misc_memhint_neon, decode_unconditional): Likewise.
2135 (decode_miscellaneous, decode_dp_misc): Likewise.
2136 (decode_ld_st_word_ubyte, decode_media): Likewise.
2137 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
2138 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
2139 (decode_unconditional, decode_miscellaneous): Likewise.
2140 (decode_media, decode_b_bl_ldmstm): Likewise.
2141 (arm_process_displaced_insn): Likewise..
2142 (decode_misc_memhint_neon): Delete.
2143 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2144 (decode_miscellaneous): Delete.
2145 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2146 (decode_dp_misc): Delete.
2147 (arm_decode_dp_misc): Renamed from decode_dp_misc.
2148 (decode_ld_st_word_ubyte): Delete.
2149 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2150 (decode_media): Delete.
2151 (arm_decode_media): Renamed from decode_media.
2152 (decode_b_bl_ldmstm): Delete.
2153 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2154 (decode_ext_reg_ld_st): Delete.
2155 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2156 (decode_unconditional): Delete.
2157 (arm_decode_unconditional): Renamed from decode_unconditional.
2159 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2161 Case insensitive lookups implementation.
2162 * dwarf2read.c: Include ctype.h.
2163 (struct mapped_index): New field version.
2164 (mapped_index_string_hash): New parameter index_version. New comment
2165 for it. Call tolower appropriately.
2166 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2167 Choose the right index version for mapped_index_string_hash.
2168 (dwarf2_read_index): Support also the index version 5. Initialize the
2169 new struct mapped_index field version.
2170 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2171 (find_slot): Explain the version needs. Pass INT_MAX for the new
2173 (write_psymtabs_to_index): Produce version 5.
2174 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2175 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2176 * psymtab.c (lookup_partial_symbol): Find the
2177 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2179 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2181 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2182 (completion_list_add_name): New variable ncmp, initialize it, use it.
2183 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2184 * utils.c (strcmp_iw): Support case_sensitive_off.
2185 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2186 New function comment part. New variables saved_string1,
2187 saved_string2 and case_pass. Add a proper second pass.
2189 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2191 Replace re_comp/re_exec by regcomp/regexec.
2192 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2193 (search_symbols_name_matches): Use them, use regexec.
2194 (search_symbols): New variable retval_chain, adjust the use of
2195 old_chain against it. Replace re_comp by regcomp. Use the new struct
2196 search_symbols_data fields, use regexec instead of re_exec.
2198 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2200 Format the code for the next patch.
2201 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2202 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2203 New variables c1 and c2.
2205 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2207 * infrun.c (proceed): Do not single-step into signal delivery
2208 when stepping off a breakpoint location.
2209 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2210 (insert_step_resume_breakpoint_at_caller): Likewise.
2211 (insert_step_resume_breakpoint_at_sal): Likewise.
2212 (insert_longjmp_resume_breakpoint): Likewise.
2214 2011-04-27 Yao Qi <yao@codesourcery.com>
2216 * common/linux-ptrace.h: Remove include <sys/wait.h>.
2218 2011-04-27 Joel Brobecker <brobecker@adacore.com>
2220 * procfs.c (procfs_pass_signals): Fix advance declaration.
2222 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2224 * target.h (struct target_ops): Remove to_notice_signals;
2225 add to_pass_signals.
2226 (target_notice_signals): Remove.
2227 (target_pass_signals): Add prototype.
2228 * target.c (update_current_target): Remove to_notice_signals;
2229 mention to_pass_signals.
2230 (target_pass_signals): New function.
2231 (debug_to_notice_signals): Remove.
2232 (setup_target_debug): Do not install debug_to_notice_signals.
2234 * infrun.c (signal_pass): New global.
2235 (resume): Call target_pass_signals.
2236 (handle_inferior_event): Report all signals while stepping over
2237 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
2238 are re-inserted when stepping over a signal handler.
2239 (signal_cache_update): New function.
2240 (signal_stop_update): Call it.
2241 (signal_print_update): Likewise.
2242 (signal_pass_update): Likewise.
2243 (handle_command): Call signal_cache_update and target_pass_signals
2244 instead of target_notice_signals.
2245 (_initialize_infrun): Initialize signal_pass.
2247 * linux-nat.c (pass_mask): New global.
2248 (linux_nat_pass_signals): New function.
2249 (linux_nat_create_inferior): Report all signals initially.
2250 (linux_nat_attach): Likewise.
2251 (linux_nat_resume): Use pass_mask to decide whether to directly
2252 handle an inferior signal.
2253 (linux_nat_wait_1): Likewise.
2254 (linux_nat_add_target): Install to_pass_signals callback.
2256 * nto-procfs.c (notice_signals): Remove.
2257 (procfs_resume): Do not call notice_signals.
2258 (procfs_notice_signals): Remove.
2259 (procfs_pass_signals): New function.
2260 (init_procfs_ops): Install to_pass_signals callback instead of
2261 to_notice_signals callback.
2262 (_initialize_procfs): Report all signals initially.
2264 * procfs.c (procfs_notice_signals): Remove.
2265 (procfs_pass_signals): New function.
2266 (procfs_target): Install to_pass_signals callback instead of
2267 to_notice_signals callback.
2268 (register_gdb_signals): Remove.
2269 (procfs_debug_inferior): Report all signals initially.
2270 (procfs_init_inferior): Remove redundant register_gdb_signals call.
2272 * remote.c (remote_pass_signals): Add numsigs and pass_signals
2273 parameters; use them instead of calling signal_..._state routines.
2274 (remote_notice_signals): Remove.
2275 (remote_start_remote): Report all signals initially.
2276 (remote_resume): Do not call remote_pass_signals.
2277 (_initialize_remote): Install to_pass_signals callback instead of
2278 to_notice_signals callback.
2280 2011-04-27 Pedro Alves <pedro@codesourcery.com>
2282 * breakpoint.c (user_settable_breakpoint): Delete.
2283 (user_breakpoint_p): Remove check on user_settable_breakpoint.
2284 (delete_command): Check user_breakpoint_p instead of looking at
2285 the breakpoint's type.
2286 (disable_command): Ditto.
2287 (enable_command): Ditto.
2288 (delete_trace_command): Use user_breakpoint_p instead of looking
2289 at the breakpoint number directly. When checking if there are
2290 user visible tracepoints, in order to know whether to ask the user
2291 for confirmation, check whether the breakpoint is actually a
2294 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2296 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2299 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2301 MI breakpoint notifications.
2303 * annotate.c (breakpoint_changed): Adjust parameter type.
2304 * breakpoint.c (set_breakpoint_condition): Adjust to change
2305 in breakpoint_modified type.
2306 (breakpoint_set_commands): Likewise.
2307 (do_map_commands_command): Likewise.
2308 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2309 changed after bumping hit count.
2310 (bpstat_stop_status): Likewise.
2311 (print_one_breakpoint_location): Don't wrap in tuple here.
2312 (print_one_breakpoint): Always print individual locations.
2313 For locations, use unnamed tuple.
2314 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2316 (create_catchpoint, create_syscall_event_catchpoint): Call
2317 breakpoint_created obsever.
2318 (mention): Don't call breakpoint_created observer.
2319 (create_breakpoint_sal): Call breakpoint_created observer.
2320 (create_breakpoint, watch_command_1): Likewise.
2321 (create_ada_exception_breakpoint): Likewise.
2322 (delete_breakpoint): Call breakpoint_deleted breakpoint.
2323 (locations_are_equal): New.
2324 (update_breakpoint_locations): If locations were changed, notify.
2325 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2326 Call breakpoint_modified observer.
2328 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2329 (mi_cmd_break_insert): Don't set observers for modify and delete.
2330 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2331 (mi_breakpoint_created, mi_breakpoint_deleted)
2332 (mi_breakpoint_modified): New.
2333 (mi_interpreter_init): Hook the above.
2334 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2335 while -break-* commands are executing.
2336 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2337 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2339 (mi_ui_out_impl): Hook in mi_redirect.
2340 (mi_field_skip): True to the name, skip the field, don't output
2341 a field with an empty value.
2343 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2344 (gdbpy_breakpoint_deleted): Adjust.
2345 * tui/tui-hooks.c (tui_event_create_breakpoint)
2346 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2348 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
2350 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2351 (procfs_remove_hw_watchpoint): Likewise.
2353 2011-04-26 Michael Walle <michael@walle.cc>
2355 * remote.c (remote_start_remote): Ack packet after sending the
2358 2011-04-26 Yao Qi <yao@codesourcery.com>
2360 * linux-nat.c: Move common macros to ...
2361 Include linux-ptrace.h.
2362 * common/linux-ptrace.h: ... here. New.
2364 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2366 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2367 !objfile_has_partial_symbols. New comment.
2368 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2369 SYM_READ_PSYMBOLS is not present. Extend the comment.
2370 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2372 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2374 * defs.h (ENUM_BITFIELD): Remove.
2376 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2377 Eli Zaretskii <eliz@gnu.org>
2379 * NEWS: Document the new gdbserver --once option.
2381 2011-04-21 Jie Zhang <jzhang918@gmail.com>
2383 * MAINTAINERS: Update my email address.
2385 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2387 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2388 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2389 function call if __STDC_ISO_10646__ macro is defined.
2390 (intermediate_encoding): New prototype.
2391 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2392 to generate compile time error for unsupported gdb_wchar_t size.
2393 (ENDIAN_SUFFIX): New macro.
2394 (intermediate_encoding): New function.
2396 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2398 * ada-lang.c (struct add_partial_datum): Update the comment for
2399 expand_partial_symbol_name.
2400 (ada_add_partial_symbol_completions): Rename to ...
2401 (ada_expand_partial_symbol_name): ... here, change return type, update
2402 function comment, call symbol_completion_match instead of
2403 symbol_completion_add.
2404 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2405 and ada_expand_partial_symbol_name.
2406 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2408 (dw2_map_symbol_names): Remove.
2409 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2410 * psymtab.c (map_symbol_names_psymtab): Remove.
2411 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2412 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2414 (psym_functions): Unlist map_symbol_names_psymtab.
2415 (map_partial_symbol_names): Rename to ...
2416 (expand_partial_symbol_names): ... here, change the FUN type, call
2417 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2418 * psymtab.h (map_partial_symbol_names): Rename to ...
2419 (expand_partial_symbol_names): ... here, change the FUN type.
2420 * symfile.h (struct quick_symbol_functions): Update the description of
2421 expand_symtabs_matching. Remove map_symbol_names.
2422 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2423 (struct add_name_data): Update the comment for
2424 expand_partial_symbol_name.
2425 (add_partial_symbol_name): Rename to ...
2426 (expand_partial_symbol_name): ... here. Replace
2427 completion_list_add_name call by strncmp.
2428 (default_make_symbol_completion_list_break_on): Use now
2429 expand_partial_symbol_names and expand_partial_symbol_name.
2430 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2432 2011-04-20 Tom Tromey <tromey@redhat.com>
2434 * dwarf2read.c (save_gdb_index_command): Replace format
2435 documentation with a pointer to the manual.
2437 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2439 * regcache.c: Include remote.h.
2440 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2441 (regcache_dump): Handle regcache_dump_remote.
2442 (maintenance_print_remote_registers): New function.
2443 (_initialize_regcache): Install "maint print remote-registers"
2445 * remote.c (map_regcache_remote_table): New function, factored out
2447 (init_remote_state): ... here.
2448 (remote_register_number_and_offset): New.
2449 * remote.h (remote_register_number_and_offset): Declare.
2451 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2453 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2454 null_ptid, assume and allow a NULL address space, instead of
2455 asking the target for the ptid's address space.
2456 * infrun.c (ptid_is_pid): Remove assertion.
2458 2011-04-19 Tom Tromey <tromey@redhat.com>
2460 * windows-tdep.c (windows_xfer_shared_library):
2461 * windows-nat.c (get_module_name, windows_make_so):
2462 * v850-tdep.c (v850_handle_pushm):
2463 * utils.c (null_cleanup, gdb_realpath):
2464 * ui-out.c (get_next_header):
2465 * tracepoint.c (clear_traceframe_info):
2466 * symtab.c (lookup_symtab):
2467 * serial.h (struct serial_ops):
2468 * mipsread.c (read_alphacoff_dynamic_symtab):
2469 * infcmd.c (print_return_value):
2470 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2471 * f-exp.y (parse_number):
2472 * exceptions.c (catch_exceptions):
2473 * dummy-frame.c (dummy_frame_this_id):
2474 * defs.h (struct cleanup):
2475 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2476 * arm-tdep.c (arm_push_dummy_call):
2477 * amd64-tdep.h (amd64_collect_xsave):
2478 * amd64-tdep.c (amd64_collect_xsave):
2479 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2480 * README (typing): Remove duplicate words.
2481 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2482 * infrun.c (siginfo_value_read): Fix typo.
2483 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2484 * top.c (source_line_number): Add comma.
2486 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2488 * thread.c (any_live_thread_of_process): Prioritize threads
2489 that are not executing.
2490 * gdbthread.h (any_live_thread_of_process): Update comment
2491 as per above change.
2493 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2495 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2496 (scan_xcoff_symtab): Likewise.
2498 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2500 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2503 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2504 Pedro Alves <pedro@codesourcery.com>
2506 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2507 variables to simplify code and avoid == operator at end of
2508 line as this is against GNU coding standards.
2510 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2512 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2513 lm_name to name_lm to avoid conflict with lm_name function.
2515 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2517 ARI fixes: Use only lowercase function name for static functions.
2518 * nto-tdep.c (LM_ADDR): Rename to...
2519 (lm_addr): New function name.
2520 (nto_relocate_section_addresses): Adapt to change above.
2521 * solib-sunos.c (LM_ADDR): Rename to...
2522 (lm_addr): New function name.
2523 (LM_NEXT): Rename to...
2524 (lm_next): New function name.
2525 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2526 function name changes above.
2527 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2528 (lm_addr_from_link_map): New function name.
2529 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2530 (has_lm_dynamic_from_link_map): New function name.
2531 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2532 (lm_dynamic_from_link_map): New function name.
2533 (LM_ADDR_CHECK): Rename to...
2534 (lm_addr_check): New function name.
2535 (LM_NEXT): Rename to...
2536 (lm_next): New function name.
2537 (LM_PREV): Rename to...
2538 (lm_prev): New function name.
2539 (LM_NAME): Rename to...
2540 (lm_name): New function name.
2541 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2542 (ignore_first_link_map_entry): New function name.
2543 (svr4_keep_data_in_core): Adapt to function name changes above.
2544 (svr4_current_sos): Likewise.
2545 (enable_break): Likewise.
2546 (svr4_relocate_section_addresses): Likewise.
2548 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2551 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2552 sprintf. Simplify code and avoid loosing memory.
2553 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2554 (call0_frame_cache): Remove && operator from end of line.
2556 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2558 Fix libraries displacement if they change whether they were prelinked.
2559 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2560 does not match. Comment why.
2562 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2564 * corelow.c: Include wrapper.h.
2565 (core_open): Call now gdb_target_find_new_threads.
2566 * wrapper.c: Include target.h.
2567 (gdb_target_find_new_threads): New.
2568 * wrapper.h (gdb_target_find_new_threads): New declaration.
2570 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2572 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2573 even if !TARGET_HAS_EXECUTION.
2575 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2577 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2578 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2579 bfd_get_synthetic_symtab.
2580 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2581 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2582 parameter parent, remove the call to add_separate_debug_objfile.
2583 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2584 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2585 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2586 parent, new comment for it, call add_separate_debug_objfile for it.
2587 (symbol_file_add_separate): Pass objfile as the parameter parent,
2588 remove the call to add_separate_debug_objfile.
2589 (symbol_file_add_from_bfd): New parameter parent, pass it.
2590 (symbol_file_add): Pass NULL to the new parameter parent.
2591 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2593 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2595 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2598 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2600 Fix Python access to inlined frames.
2601 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2602 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2604 2011-04-15 Tom Tromey <tromey@redhat.com>
2606 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2608 2011-04-15 Gary Benson <gbenson@redhat.com>
2610 * MAINTAINERS: Add myself to write-after-approval section.
2612 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2614 * remote-sim.c (sim_command_completer): New function.
2615 (_initialize_remote_sim): Set completer to sim_command_completer.
2617 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2619 * breakpoint.c (print_exception_catchpoint): Rename to ...
2620 (print_it_exception_catchpoint): ... this.
2621 (gnu_v3_exception_catchpoint_ops): Update with new name
2622 for print_it_exception_catchpoint.
2624 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2626 * MAINTAINERS: Add myself for write after approval privileges.
2628 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2630 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2632 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2634 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2636 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2638 * breakpoint.c (save_breakpoints): Verify whether
2639 breakpoint_ops.print_recreate is defined before calling it.
2641 2011-04-11 Gary Benson <gbenson@redhat.com>
2643 Fix failure with --enable-maintainer-mode.
2644 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2646 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2649 * symtab.c (search_symbols): Reorder the KIND description in the
2650 function comment. Remove the unused 4th element of types, types2,
2651 types3 and types4. New gdb_assert on KIND.
2652 (symtab_symbol_info): Remove the unused 4th element of classnames.
2653 New gdb_assert on KIND.
2654 * symtab.h (enum search_domain): New warning in the enum comment.
2655 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2658 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2660 Fix crash of gdb save-index on a STABS file.
2661 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2664 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2666 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2667 * dwarf2read.c: Include ctype.h.
2668 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2670 (dwarf2_add_field): Fix new_field->accessibility by calling
2671 dwarf2_default_access_attribute. Restructure setting accessibility
2673 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2674 is_private and is_protected by calling
2675 dwarf2_default_access_attribute.
2677 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2679 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2680 to the initialization.
2682 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2684 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2687 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2689 Remove support for old Cygwin 1.5 versions.
2690 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2691 function on old Cygwin version.
2692 * windows-nat.c: Remove cygwin version check and always define
2693 __USEWIDE for Cygwin compilation.
2695 2011-04-07 Yao Qi <yao@codesourcery.com>
2697 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2699 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2700 (arm_copy_svc): Remove parameters INSN and TO.
2701 (decode_svc_copro): Update caller.
2702 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2703 from function pointer `copy_svc_os'.
2705 2011-04-07 Yao Qi <yao@codesourcery.com>
2707 * arm-tdep.c (cleanup_branch): Set a correct return address in
2708 LR for ARM and Thumb.
2710 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2713 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2714 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2715 in the function comment, a new note on values compatibility.
2716 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2717 * symtab.h (SYMBOL_HASH_NEXT): New.
2719 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2721 * ppc-linux-nat.c (check_condition): Add len output parameter.
2722 Set it based on the memory region referenced in the condition
2723 expression. Update all callers.
2725 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2727 Fix crash regression on systems featuring .gdb_index.
2728 * objfiles.c (free_objfile): Move the
2729 forget_cached_source_info_for_objfile call earlier. Comment it.
2730 Extend the comment for objfile_free_data.
2732 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2734 Fix regression of displaying the debug format.
2735 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2738 2011-04-04 Tom Tromey <tromey@redhat.com>
2740 * cli/cli-interp.c (struct captured_execute_command_args):
2742 (do_captured_execute_command): Remove.
2743 (safe_execute_command): Use TRY_CATCH.
2744 * cli/cli-script.c (struct wrapped_read_command_file_args):
2746 (wrapped_read_command_file): Remove.
2747 (script_from_file): Use TRY_CATCH.
2748 * exceptions.c (catch_exception): Remove.
2749 * exceptions.h (catch_exception): Remove.
2750 (deprecated_throw_reason): Update comment.
2751 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2752 argument to 'context'.
2753 (mi_execute_command): Use TRY_CATCH.
2754 * remote.c (struct start_remote_args): Remove.
2755 (remote_start_remote): Update; change arguments.
2756 (remote_open_1): Use TRY_CATCH.
2758 2011-04-04 Tom Tromey <tromey@redhat.com>
2760 * tracepoint.c (scope_info): Update.
2761 * symtab.c (decode_line_spec): Update.
2762 * python/python.c (gdbpy_decode_line): Update.
2763 * linespec.h (decode_line_1): Update.
2764 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2765 (decode_compound, find_method, symtab_from_filename)
2766 (decode_variable): Likewise.
2767 * cli/cli-cmds.c (edit_command): Update.
2768 (list_command): Update.
2769 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2771 (create_breakpoint): Update.
2772 (until_break_command): Update.
2773 (addr_string_to_sals): Update.
2774 (decode_line_spec_1): Update.
2776 2011-04-04 Tom Tromey <tromey@redhat.com>
2778 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2779 (do_captured_parse_breakpoint): Remove.
2780 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2781 Use TRY_CATCH directly.
2783 2011-04-04 Tom Tromey <tromey@redhat.com>
2785 * symtab.h (free_symtab): Remove.
2786 (forget_cached_source_info_for_objfile): Declare.
2787 * symmisc.c (free_symtab): Remove.
2788 * source.c (forget_cached_source_info_for_objfile): New function.
2789 (forget_cached_source_info): Use it.
2790 * objfiles.c (free_objfile): Simplify check before calling
2791 clear_current_source_symtab_and_line. Call
2792 forget_cached_source_info_for_objfile.
2794 2011-04-04 Tom Tromey <tromey@redhat.com>
2796 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2797 (new_symtab): Don't set `free_code' on symtab.
2798 (new_linetable): Properly handle size==0.
2799 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2800 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2802 * jv-lang.c (struct jv_per_objfile_data): New.
2803 (jv_per_objfile_free): Free the data.
2804 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2805 (get_java_class_symtab): Set the `dict' field on the
2806 jv_per_objfile_data.
2807 (free_class_block): Remove.
2808 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2811 2011-04-04 Tom Tromey <tromey@redhat.com>
2813 * symfile.c (reread_symbols): Update.
2814 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2816 * objfiles.c (allocate_objfile): Update.
2817 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2819 * cp-namespace.c (lookup_symbol_file): Don't call
2820 lookup_possible_namespace_symbol.
2821 (initialize_namespace_symtab, get_possible_namespace_block)
2822 (free_namespace_block, cp_check_possible_namespace_symbols)
2823 (check_possible_namespace_symbols_loop)
2824 (check_one_possible_namespace_symbol)
2825 (lookup_possible_namespace_symbol): Remove.
2826 (maintenance_cplus_namespace): Replace with notice.
2827 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2829 2011-04-04 Tom Tromey <tromey@redhat.com>
2831 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2832 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2833 * symmisc.c (free_symtab): Don't free debugformat.
2834 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2835 (record_debugformat, record_producer): Document.
2836 * buildsym.c (end_symtab): Don't save debugformat and producer
2838 (end_symtab): Don't free debugformat and producer fields.
2839 (record_debugformat): Don't call xstrdup.
2840 (record_producer): Likewise.
2842 2011-04-04 Tom Tromey <tromey@redhat.com>
2844 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2845 (source_line_charpos, source_charpos_line): Remove.
2847 2011-04-04 Tom Tromey <tromey@redhat.com>
2849 * symtab.h (domain_enum): Split in two...
2850 (enum search_domain): New.
2851 (search_symbols): Update.
2852 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2853 redundant declarations.
2854 (search_symbols): Change 'kind' argument to search_domain.
2856 (print_symbol_info): Likewise.
2857 (symtab_symbol_info): Likewise.
2858 * symfile.h (struct quick_symbol_functions)
2859 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2860 <expand_symtabs_matching>: Likewise.
2861 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2862 (expand_symtabs_matching_via_partial): Update.
2863 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2864 (dw2_expand_symtabs_for_function): Update.
2865 * block.h: Moved anonymous enum...
2866 * defs.h (enum block_enum): ... here. Now named.
2868 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2870 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2871 * version.in: Bump version to 7.3.50.20110403-cvs.
2873 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2875 * NEWS: Create a new section for the next release branch.
2876 Rename the section of the current branch, now that it has
2879 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2881 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2882 for "fpscr" in target description.
2884 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2886 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2887 initialize it. Delay HASH initialization. Strip the part after open
2888 parenthesis for languages with qualifiers. Call do_cleanups.
2890 2011-04-01 Tom Tromey <tromey@redhat.com>
2892 * utils.c (report_command_stats): Don't print `-' for negative
2895 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2897 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2898 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2901 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2903 * breakpoint.h (bpdisp_text): Add declaration.
2904 * breakpoint.c (bpdisp_text): Make non-static.
2905 * ada-lang.c: #include "mi/mi-common.h".
2906 (print_it_exception): Rewrite to improve GDB/MI output.
2908 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2910 * arm-tdep.h (struct address_space): Add forward declaration.
2912 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2914 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2915 * arm-tdep.c (arm_override_mode): New global.
2916 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2917 execution mode heuristics.
2918 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2919 second single-step breakpoint if needed, using
2920 arm_insert_single_step_breakpoint.
2921 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2922 ARM execution mode, do not call thumb_get_next_pc_raw.
2923 (arm_get_next_pc): Encode execution mode in return value. Call
2924 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2925 (arm_insert_single_step_breakpoint): New function.
2926 (arm_software_single_step): Call it.
2927 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2928 argument to return execution mode of sigreturn target.
2929 (arm_linux_syscall_next_pc): Use it.
2930 (arm_linux_copy_svc): Update call.
2931 (arm_linux_software_single_step): Call
2932 arm_insert_single_step_breakpoint.
2934 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2936 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2939 2011-03-31 Tom Tromey <tromey@redhat.com>
2941 * varobj.c (update_dynamic_varobj_children): Properly handle
2942 errors from iterator.
2944 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2946 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2947 struct linkage name twice.
2949 2011-03-31 Tom Tromey <tromey@redhat.com>
2951 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2952 missing ">" to message.
2954 2011-03-31 Tom Tromey <tromey@redhat.com>
2956 * varobj.c (instantiate_pretty_printer): Remove duplicate
2959 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
2961 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2962 if neither saved value nor register available (e.g. signal frame).
2964 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2966 * macroexp.c (expand): Avoid uninitialized variable
2969 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2971 * breakpoint.c (break_range_command): Fix typo in comment.
2973 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2974 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2976 Implement support for PowerPC BookE ranged breakpoints.
2977 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2978 * breakpoint.h (struct bp_target_info) <length>: New member
2980 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2981 instead of struct breakpoint as argument, and also add ASPACE
2982 and BP_ADDR arguments. Update all callers.
2983 (struct breakpoint_ops) <print_one_detail>: New method.
2984 (struct breakpoint) <addr_string_range_end>: New member variable.
2985 * breakpoint.c (breakpoint_location_address_match): Add function
2987 (insert_bp_location): Set bl->target_info.length.
2988 (breakpoint_here_p): Call breakpoint_location_address_match.
2989 (moribund_breakpoint_here_p): Likewise.
2990 (regular_breakpoint_inserted_here_p): Likewise.
2991 (breakpoint_thread_match): Likewise.
2992 (bpstat_stop_status): Likewise.
2993 (bpstat_check_location): Move call to
2994 breakpoint_ops.breakpoint_hit to the top.
2995 (print_one_breakpoint_location): Call
2996 breakpoint_ops.print_one_detail if available.
2997 (breakpoint_address_match_range): New function.
2998 (breakpoint_location_address_match): Likewise.
2999 (breakpoint_locations_match): Compare the length field of the
3001 (hw_breakpoint_used_count): Count resources used by all locations
3002 in a breakpoint, and use breakpoint_ops.resources_needed if
3004 (breakpoint_hit_ranged_breakpoint): New function.
3005 (resources_needed_ranged_breakpoint): Likewise.
3006 (print_it_ranged_breakpoint): Likewise.
3007 (print_one_ranged_breakpoint): Likewise.
3008 (print_one_detail_ranged_breakpoint): Likewise.
3009 (print_mention_ranged_breakpoint): Likewise.
3010 (print_recreate_ranged_breakpoint): Likewise.
3011 (ranged_breakpoint_ops): New structure.
3012 (find_breakpoint_range_end): New function.
3013 (break_range_command): Likewise.
3014 (delete_breakpoint): Free addr_string_range_end.
3015 (update_breakpoint_locations): Add SALS_END argument. Update
3016 all callers. Calculate breakpoint length if a non-zero SALS_END
3017 is given. Call breakpoint_locations_match instead of
3018 breakpoint_address_match.
3019 (reset_breakpoint): Find SaL of the end of the range if B is a
3021 (_initialize_breakpoint): Register break-range command.
3022 * defs.h (print_core_address): Add function prototype.
3023 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
3025 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
3026 (ppc_linux_remove_hw_breakpoint): Likewise.
3027 (_initialize_ppc_linux_nat): Initialize
3028 to_ranged_break_num_registers.
3029 * target.c (update_current_target): Add comment about
3030 to_ranged_break_num_registers.
3031 (target_ranged_break_num_registers): New function.
3032 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3034 (target_ranged_break_num_registers): Add function prototype.
3035 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
3036 * utils.c (print_core_address): ... here.
3038 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
3040 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
3041 variable compiler warning.
3043 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
3045 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
3047 (re_set_breakpoint): ... to here ...
3048 (addr_string_to_sals): ... and here.
3050 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3052 * Makefile.in (SFILES): Add missing C sources.
3053 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
3054 Add missing headers.
3056 2011-03-29 Mike Frysinger <vapier@gentoo.org>
3058 * .gitignore: New file.
3060 2011-03-29 Mike Frysinger <vapier@gentoo.org>
3062 * NEWS: Mention new cfi device simulation.
3064 2011-03-29 Tom Tromey <tromey@redhat.com>
3066 * dwarf2read.c (fixup_partial_die): Handle linkage name on
3067 otherwise anonymous types.
3068 (dwarf2_name): Likewise.
3069 * valops.c (value_struct_elt_for_reference): Refine artificial
3070 type logic. Call error if j==-1.
3072 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
3074 Fix false GCC warning.
3075 * infcall.c (find_function_addr): Initialize funaddr.
3077 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3079 Fix mingw compilation with --enable-targets=all.
3080 * remote-mips.c (gdb_usleep.h): Include header.
3081 (mips_enter_debug): Use gdb_usleep instead of sleep.
3083 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3085 Support resolution of STT_GNU_IFUNC via breakpoints.
3086 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
3087 bp_gnu_ifunc_resolver_return.
3088 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
3089 the loop. Support bp_gnu_ifunc_resolver and
3090 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
3091 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
3093 (bptype_string, print_one_breakpoint_location): Support
3094 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
3095 (user_settable_breakpoint): Return true also for
3096 bp_gnu_ifunc_resolver.
3097 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
3098 bp_gnu_ifunc_resolver_return.
3099 (set_breakpoint_location_function): New parameter explicit_loc,
3100 describe it. Call find_pc_partial_function_gnu_ifunc with new
3101 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
3102 EXPLICIT_LOC is not set.
3103 (set_raw_breakpoint): Set EXPLICIT_LOC for
3104 set_breakpoint_location_function.
3105 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
3106 set_breakpoint_location_function.
3107 (mention): Support bp_gnu_ifunc_resolver and
3108 bp_gnu_ifunc_resolver_return.
3109 (add_location_to_breakpoint): Set EXPLICIT_LOC for
3110 set_breakpoint_location_function.
3111 (update_breakpoint_locations): Remove static.
3112 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
3113 bp_gnu_ifunc_resolver_return.
3114 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
3115 bp_gnu_ifunc_resolver_return.
3116 (update_breakpoint_locations): New declaration.
3117 * elfread.c: Include gdbthread.h and regcache.h.
3118 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
3120 (elf_gnu_ifunc_fns): Install them.
3121 * minsyms.c (stub_gnu_ifunc_resolver_stop)
3122 (stub_gnu_ifunc_resolver_return_stop): New functions.
3123 (stub_gnu_ifunc_fns): Install them.
3124 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
3125 and gnu_ifunc_resolver_return_stop.
3126 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
3128 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3130 STT_GNU_IFUNC reader implementation.
3131 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
3132 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
3133 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
3134 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
3135 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
3136 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
3137 (elf_gnu_ifunc_resolve_addr): New.
3138 (elf_symfile_read): Call elf_rel_plt_read.
3139 (elf_gnu_ifunc_fns): New.
3140 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
3141 Install elf_gnu_ifunc_fns.
3142 * infcall.c (find_function_return_type): New function.
3143 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3144 * minsyms.c (stub_gnu_ifunc_resolve_addr)
3145 (stub_gnu_ifunc_resolve_name): New functions.
3146 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3147 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3148 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3150 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3152 Code cleanup for later STT_GNU_IFUNC support.
3153 * infcall.c (find_function_addr): Remove variable code, use explicit
3154 dereferences for it. Move VALUE_TYPE initialization later.
3156 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3158 GDB find_pc_partial_function support for STT_GNU_IFUNC.
3159 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3160 (clear_pc_function_cache): Clear it.
3161 (find_pc_partial_function): Rename to ...
3162 (find_pc_partial_function_gnu_ifunc): ... this function. New
3163 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
3164 (find_pc_partial_function): New wrapper for this function.
3165 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3167 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3169 GDB internal type support for STT_GNU_IFUNC.
3170 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3171 (elf_symtab_read): Set mst_text_gnu_ifunc for
3172 BSF_GNU_INDIRECT_FUNCTION.
3173 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3174 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3175 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3176 nodebug_got_plt_symbol.
3177 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3178 (TYPE_GNU_IFUNC): New.
3179 (struct main_type): New field flag_gnu_ifunc.
3180 (struct builtin_type): New field builtin_func_func.
3181 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3182 nodebug_got_plt_symbol.
3183 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3184 (in_gnu_ifunc_stub): New.
3185 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3187 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3188 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3189 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3191 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3192 * symtab.c (search_symbols): Likewise.
3193 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3194 and mst_slot_got_plt.
3195 (in_gnu_ifunc_stub): New declaration.
3197 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3199 Support a ring of related breakpoints.
3200 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3201 other functions, add gdb_assert.
3202 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3203 watchpoint_del_at_next_stop.
3204 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3205 (bpstat_stop_status): Handle ring in related_breakpoint.
3206 (set_raw_breakpoint_without_location): Initialize ring in
3208 (delete_breakpoint): Handle ring in related_breakpoint, use
3209 watchpoint_del_at_next_stop.
3210 (map_breakpoint_numbers): Handle ring in related_breakpoint.
3212 2011-03-28 Tom Tromey <tromey@redhat.com>
3215 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3216 with `language_minimal'.
3218 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
3220 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3221 instead of checking for STT_ARM_TFUNC symbol type.
3223 2011-03-25 Tom Tromey <tromey@redhat.com>
3225 * linespec.c (symbol_found): Restore line-based result for
3226 non-LOC_LABEL symbols.
3228 2011-03-25 Kai Tietz <ktietz@redhat.com>
3230 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3231 instead of strcmp for comparison.
3232 (tui_source_is_displayed): Likewise.
3233 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3235 2011-03-24 Mark Wielaard <mjw@redhat.com>
3237 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3239 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3240 (find_partial_die_in_comp_unit): Likewise in comment.
3241 (read_attribute_value): Likewise.
3242 (lookup_die_type): Likewise.
3243 (dwarf_form_name): Likewise.
3244 (dump_die_shallow): Likewise.
3245 (follow_die_ref_or_sig): Likewise.
3247 2011-03-24 Tom Tromey <tromey@redhat.com>
3249 PR breakpoints/11816:
3250 * linespec.c (decode_line_1): Parse `function:label' linespecs.
3251 (decode_compound): Update.
3252 (find_function_symbol): New function.
3253 (decode_dollar): Update.
3254 (decode_label): Add 'function_symbol' parameter. Handle
3255 function-relative labels.
3256 (decode_variable): Update.
3257 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
3258 not its line. Set `special_display' and canonical name for
3261 2011-03-24 Tom Tromey <tromey@redhat.com>
3263 * linespec.h (struct linespec_result) <special_display>: New
3265 * breakpoint.h (struct breakpoint) <display_canonical>: New
3267 * breakpoint.c (print_breakpoint_location): Respect
3269 (create_breakpoint_sal): Add 'display_canonical' parameter.
3270 (create_breakpoints_sal): Update.
3271 (create_breakpoint): Update.
3273 2011-03-24 Tom Tromey <tromey@redhat.com>
3275 * symtab.c (decode_line_spec): Update.
3276 * linespec.c (build_canonical_line_spec): Change type of
3278 (decode_line_2, decode_line_1, decode_objc, decode_compound)
3279 (find_method, decode_all_digits, decode_dollar, decode_label)
3280 (symbol_found): Likewise.
3281 (init_linespec_result): New function.
3282 * breakpoint.c (struct captured_parse_breakpoint_args)
3283 <canonical_p>: New field, replaces addr_string_p.
3284 (create_breakpoints_sal): Add 'canonical' parameter, replacing
3286 (parse_breakpoint_sals): Likewise.
3287 (do_captured_parse_breakpoint): Update.
3288 (create_breakpoint): Use struct linespec_result.
3289 (until_break_command): Update.
3290 (breakpoint_re_set_one): Update.
3291 (decode_line_spec_1): Update.
3292 * linespec.h (struct linespec_result): New.
3293 (init_linespec_result): Declare.
3295 2011-03-23 Pedro Alves <pedro@codesourcery.com>
3297 * regcache.c (regcache_raw_read): If the target didn't supply a
3298 given raw register, mark it as unavailable.
3300 2011-03-23 Kai Tietz <ktietz@redhat.com>
3302 * breakpoint.c (clear_command): Use filename_cmp
3303 instead of strcmp for comparison.
3304 * buildsym.c (watch_main_source_file_lossage): Likewise.
3305 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3306 checking just for slash.
3307 * dbxread.c (read_dbx_symtab): Use lbasename instead of
3308 strrchr and filename_cmp instead of strcmp for filenames.
3309 (add_old_header_file): Use filename_cmp
3310 instead of strcmp for comparison.
3311 * exec.c (exec_set_section_address): Likewise.
3312 * macrotab.c (macro_lookup_inclusion): Likewise.
3313 (macro_lookup_inclusion): Likewise.
3314 * elfread.c (_initialize_elfread): Likewise.
3315 (elfstab_offset_sections): Likewise.
3316 (elfstab_offset_sections): Use lbasename instead of
3318 * mdebugread.c (parse_partial_symbols): Likewise.
3319 (arse_partial_symbols): Use filename_(n)cmp instead of
3320 str(n)cmp for comparison.
3321 * minsyms.c (lookup_minimal_symbol): Likewise.
3322 * psymtab.c (read_psymtabs_with_filename): Likewise.
3323 * solib.c (solib_read_symbols): Likewise.
3324 (reload_shared_libraries_1): Likewise.
3325 * symmisc.c (maintenance_print_symbols): Likewise.
3326 * symfile.c (separate_debug_file_exists): Likewise.
3327 (reread_symbols): Likewise.
3328 (find_separate_debug_file_by_debuglink): Likewise.
3329 * remote-fileio.c (remote_fileio_func_rename): Likewise.
3330 * source.c (add_path): Likewise.
3331 * symtab.c (filename_seen): Likewise.
3332 (file_matches): Likewise.
3333 (print_symbol_info): Likewise.
3334 (maybe_add_partial_symtab_filename): Likewise.
3335 (make_source_files_completion_list): Likewise.
3336 * xml-syscall.c (init_sysinfo): Likewise.
3337 * windows-nat.c (_initialize_check_for_gdb_ini): Use
3338 IS_DIR_SEPARATOR for checking for trailing path separator.
3340 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3342 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
3343 label abort_expression.
3344 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3345 DWARF_VALUE_OPTIMIZED_OUT.
3347 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3350 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3351 to linkage_name. Invert its value. Update the function comment.
3352 (c_type_print_varspec_suffix): Invert it at the caller.
3353 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3355 2011-03-22 Pedro Alves <pedro@codesourcery.com>
3357 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3358 errors when reading the `stop_pc'.
3359 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3362 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3364 * NEWS: Document gdb.Write stream keyword.
3366 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3369 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3370 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3371 (dwarf2_add_field): Fix new_field->accessibility for
3372 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3374 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3378 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3379 other error classes. Do not print stack trace.
3381 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3383 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3384 (dwarf2_add_field): Fix new_field->accessibility for
3385 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3387 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
3389 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3390 encountering a load via a non-SP register.
3392 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3394 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3395 field in returned unwinder.
3397 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3399 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3401 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3403 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3406 2012-03-18 Pedro Alves <pedro@codesourcery.com>
3408 * frame.c (frame_unwind_register): Throw an error if unwinding the
3410 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3411 an unwind stop reason.
3412 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3413 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3414 UNWIND_UNAVAILABLE>: New.
3415 * inline-frame.c (inline_frame_unwind): Install
3416 default_frame_unwind_stop_reason.
3417 * frame-unwind.c: Include "exceptions.h".
3418 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3419 (default_frame_unwind_stop_reason): New.
3420 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3421 (default_frame_unwind_stop_reason): Declare.
3422 (struct frame_unwind) <stop_reason>: New function pointer.
3424 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3425 * dwarf2-frame.c: Include exceptions.h.
3426 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3427 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3428 computing the CFA. If such an error was thrown, set
3429 unavailable_retaddr.
3430 (dwarf2_frame_unwind_stop_reason): New.
3431 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3433 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3434 (dwarf2_signal_frame_unwind): Ditto.
3436 * amd64-tdep.c: Include "exceptions.h".
3437 (struct amd64_frame_cache): New field "base_p".
3438 (amd64_init_frame_cache): Clear it.
3439 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3440 Avoid reading registers with functions that throw if the register
3441 is not necessary to compute the frame base.
3442 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3443 swallowing NOT_AVAILABLE_ERROR.
3444 (amd64_frame_unwind_stop_reason): New.
3445 (amd64_frame_this_id): Don't build a frame id if the frame base
3447 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3448 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3449 base_p if the frame base was computable.
3450 (amd64_sigtramp_frame_unwind_stop_reason): New.
3451 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3452 frame base was unavailable.
3453 (amd64_sigtramp_frame_unwind): Install
3454 amd64_sigtramp_frame_unwind_stop_reason.
3455 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3456 base_p if the frame base was computable.
3457 (amd64_epilogue_frame_unwind_stop_reason): New.
3458 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3459 frame base was unavailable.
3460 (amd64_epilogue_frame_unwind): Install
3461 amd64_epilogue_frame_unwind_stop_reason.
3462 * i386-tdep.c: Include "exceptions.h".
3463 (struct i386_frame_cache): New field "base_p".
3464 (i386_init_frame_cache): Clear it.
3465 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3466 Avoid reading registers with functions that throw if the register
3467 is not necessary to compute the frame base.
3468 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3469 swallowing NOT_AVAILABLE_ERROR.
3470 (i386_frame_unwind_stop_reason): New.
3471 (i386_frame_this_id): Don't build a frame id if the frame base was
3473 (i386_frame_prev_register): Handle unavailable SP.
3474 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3475 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3476 base_p if the frame base was computable.
3477 (i386_epilogue_frame_unwind_stop_reason): New.
3478 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3479 base was unavailable.
3480 (i386_epilogue_frame_unwind): Install
3481 i386_epilogue_frame_unwind_stop_reason.
3482 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3483 base_p if the frame base was computable.
3484 (i386_sigtramp_frame_unwind_stop_reason): New.
3485 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3486 base was unavailable.
3487 (i386_sigtramp_frame_unwind): Install
3488 i386_sigtramp_frame_unwind_stop_reason.
3489 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3490 type's size, not the register's.
3491 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3493 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3494 default_frame_unwind_stop_reason.
3495 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3496 (alpha_heuristic_frame_unwind): Ditto.
3497 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3498 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3499 * avr-tdep.c (avr_frame_unwind): Ditto.
3500 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3502 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3503 * frv-tdep.c (frv_frame_unwind): Ditto.
3504 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3505 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3506 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3507 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3508 (hppa_stub_frame_unwind): Ditto.
3509 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3510 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3511 (ia64_libunwind_frame_unwind)
3512 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3513 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3514 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3515 * m32c-tdep.c (m32c_unwind): Ditto.
3516 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3517 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3518 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3519 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3520 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3521 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3522 * mep-tdep.c (mep_frame_unwind): Ditto.
3523 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3524 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3525 (mips_stub_frame_unwind): Ditto.
3526 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3527 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3528 * mt-tdep.c (mt_frame_unwind): Ditto.
3529 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3530 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3531 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3532 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3533 (s390_sigtramp_frame_unwind): Ditto.
3534 * score-tdep.c (score_prologue_unwind): Ditto.
3535 * sh-tdep.c (sh_frame_unwind): Ditto.
3536 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3537 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3538 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3539 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3540 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3541 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3542 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3543 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3544 (sparc64obsd_trapframe_unwind): Ditto.
3545 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3546 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3547 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3548 * v850-tdep.c (v850_frame_unwind): Ditto.
3549 * vax-tdep.c (vax_frame_unwind): Ditto.
3550 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3551 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3552 * xtensa-tdep.c (xtensa_unwind): Ditto.
3554 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3556 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3557 there's always a frame. Use get_frame_pc_if_available instead of
3558 get_frame_pc, and if there's no PC available, don't look up a
3561 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3563 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3566 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3568 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3571 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3573 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3574 * frame.c (frame_unwind_caller_pc_if_available): New.
3575 * stack.c (frame_info): Handle unavailable PC.
3577 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3579 * frame.c (frame_unwind_pc): Rename to ...
3580 (frame_unwind_pc_if_available): ... this. New `pc' output
3581 parameter. Change return type to int. Gracefully handle
3582 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3583 happened, or 1 otherwise.
3584 (frame_unwind_pc): Reimplement on top of
3585 frame_unwind_pc_if_available.
3586 (get_frame_func): Rename to ...
3587 (get_frame_func_if_available): New `pc' output parameter. Change
3588 return type to int. Gracefully handle the PC not being available.
3589 (get_frame_func): Reimplement on top of
3590 get_frame_func_if_available.
3591 (select_frame): Handle the PC being unavailable.
3592 (get_prev_frame): Handle the PC being unavailable.
3593 (get_frame_pc_if_available): New.
3594 (get_frame_address_in_block_if_available): New.
3595 (find_frame_sal): Handle the frame PC not being available.
3596 * frame.h (get_frame_pc_if_available): Declare.
3597 (get_frame_address_in_block_if_available): Declare.
3598 (get_frame_func_if_available): Declare.
3599 * stack.c (print_frame_info): Handle the PC being unavailable.
3600 (find_frame_funname): Ditto.
3601 (print_frame): Handle the PC being unavailable.
3602 (get_frame_language): Ditto.
3603 * blockframe.c (get_frame_block): Ditto.
3604 * macroscope.c (default_macro_scope): Ditto.
3605 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3607 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3609 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3610 NOT_AVAILABLE_ERROR when evaluating the location expression.
3612 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3614 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3615 returning that the register piece is unavailable/optimized out.
3616 (write_pieced_value): Handle get_frame_register_bytes returning
3617 that the register piece is unavailable/optimized out when doing a
3618 read-modify write of a bitfield.
3619 * findvar.c (value_from_register): Handle get_frame_register_bytes
3620 returning that the register piece is unavailable/optimized out.
3621 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3622 and `unavailablep'. Throw error on bad debug info. Use
3623 frame_register instead of frame_register_read, to fill in the new
3625 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3627 * valops.c: (value_assign): Adjust, and handle
3628 get_frame_register_bytes failing.
3629 * spu-tdep.c: Include exceptions.h.
3630 (spu_software_single_step): Adjust, and handle
3631 get_frame_register_bytes failing.
3632 (spu_get_longjmp_target): Ditto.
3633 * gdbarch.sh (register_to_value): Change to return int. New
3634 parameters `optimizedp' and `unavailablep'.
3635 * gdbarch.h, gdbarch.c: Regenerate.
3636 * i386-tdep.c (i386_register_to_value): Adjust to new
3637 gdbarch_register_to_value interface.
3638 * i387-tdep.c (i387_register_to_value): Ditto.
3639 * i387-tdep.h (i387_register_to_value): Ditto.
3640 * alpha-tdep.c (alpha_register_to_value): Ditto.
3641 * ia64-tdep.c (ia64_register_to_value): Ditto.
3642 * m68k-tdep.c (m68k_register_to_value): Ditto.
3643 * mips-tdep.c (mips_register_to_value): Ditto.
3644 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3646 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3648 * findvar.c (value_of_register): Mark the value as unavailable, if
3649 the register is unavailable.
3650 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3651 (frame_register): New `unavailablep' parameter.
3652 (frame_register_read): Update comment.
3653 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3654 Set it if the register is unavailable. If the register is
3655 unavailable, clear the output buffer.
3656 (frame_register): New `unavailablep' parameter. Pass it down.
3657 (frame_unwind_register): Adjust.
3658 (put_frame_register): Adjust.
3659 (frame_register_read): Adjust. Also return false if the register
3661 (frame_register_unwind_location): Adjust.
3662 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3663 is unavailable, mark the value accordingly.
3664 * stack.c (frame_info): Handle unavailable registers.
3666 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3668 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3669 simplify, using regcache_cooked_read.
3671 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3673 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3674 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3675 (regcache_raw_read_unsigned, regcache_raw_read_part)
3676 (regcache_cooked_read, regcache_cooked_read_signed)
3677 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3678 (regcache_cooked_read_ftype): Change return to enum
3680 * regcache.c: Include exceptions.h
3681 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3682 (do_cooked_read): Change return to enum register_status. Always
3683 forward to regcache_cooked_read.
3684 (regcache_raw_read): Change return to enum register_status. If
3685 the register is not REG_VALID, memset the buffer. Return the
3687 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3688 return the register's status.
3689 (regcache_raw_read_unsigned): Ditto.
3690 (regcache_cooked_read): Change return to enum register_status.
3691 Assert that with read-only regcaches, the register's status must
3692 be known. If the regcache is read-only, and the register is not
3693 REG_VALID, memset the buffer. Return the register's status.
3694 (regcache_cooked_read_signed): Change return to enum
3695 register_status. Handle non-REG_VALID registers and return the
3697 (regcache_cooked_read_unsigned): Change return to enum
3698 register_status. Handle non-REG_VALID registers and return the
3700 (regcache_xfer_part, regcache_raw_read_part)
3701 (regcache_cooked_read_part): Change return to enum
3702 register_status. Return the register's status.
3703 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3705 (regcache_dump): Handle unavailable cooked registers.
3706 * frame.c (do_frame_register_read): Adjust interface to match
3707 regcache_cooked_read_ftype.
3708 * gdbarch.sh (pseudo_register_read): Change return to enum
3710 * gdbarch.h, gdbarch.c: Regenerate.
3712 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3714 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3715 register_status. If reading a raw register indicates the raw
3716 register is not valid, return the raw register's status,
3717 otherwise, return REG_VALID.
3718 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3719 register_status. Handle non-REG_VALID raw registers and return
3720 the register's status.
3721 * arm-tdep.c (arm_neon_quad_read)
3722 (arm_pseudo_read): Change return to enum register_status. Handle
3723 non-REG_VALID raw registers and return the register's status.
3724 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3725 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3726 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3727 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3728 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3730 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3731 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3732 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3733 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3734 (m32c_pseudo_register_read): Change return to enum
3735 register_status. Adjust.
3736 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3737 enum register_status. Return the register's status.
3738 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3739 register_status. Return the register's status.
3740 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3741 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3742 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3743 * rs6000-tdep.c (move_ev_register_func): New typedef.
3744 (e500_move_ev_register): Use it. Change return to enum
3745 register_status. Return the register's status.
3746 (do_regcache_raw_read): New function.
3747 (do_regcache_raw_write): New function.
3748 (e500_pseudo_register_read): Change return to enum
3749 register_status. Return the register's status. Use
3750 do_regcache_raw_read.
3751 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3752 (dfp_pseudo_register_read): Change return to enum register_status.
3753 Return the register's status.
3754 (vsx_pseudo_register_read): Ditto.
3755 (efpr_pseudo_register_read): Ditto.
3756 (rs6000_pseudo_register_read): Ditto.
3757 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3758 register_status. Return the register's status.
3759 * sh64-tdep.c (pseudo_register_read_portions): New function.
3760 (sh64_pseudo_register_read): Change return to enum
3761 register_status. Use pseudo_register_read_portions. Return the
3763 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3764 register_status. Return the register's status.
3765 * sh-tdep.c (pseudo_register_read_portions): New function.
3766 (sh_pseudo_register_read): Change return to enum register_status.
3767 Use pseudo_register_read_portions. Return the register's status.
3768 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3769 enum register_status. Return the register's status.
3770 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3771 * spu-tdep.c (spu_pseudo_register_read_spu)
3772 (spu_pseudo_register_read): Ditto.
3773 * xtensa-tdep.c (xtensa_register_read_masked)
3774 (xtensa_pseudo_register_read): Ditto.
3775 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3777 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3779 * python/py-value.c (valpy_getitem): Fix formatting of error function
3782 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3784 ARI fixes: Add missing internationalization markups throughout
3786 * darwin-nat-info.c: Ditto.
3789 * mi/mi-main.c: Ditto.
3791 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3793 ARI fixes: Add missing internationalization markups throughout
3796 * cp-name-parser.y: Ditto.
3799 * objc-exp.y: Ditto.
3802 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3804 ARI fixes: Messages should have no trailing new lines.
3805 * darwin-nat.c (mach_check_error): Remove trailing new line from
3806 warning function call message.
3807 * record.c (bfdcore_read): Idem for error call.
3809 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3811 * common/signals.c (target_signal_from_host): Add _ markup to error
3812 function call message.
3813 (target_signal_to_host): Add _ markup and remove trailing new line
3814 from warning call message.
3815 (target_signal_from_command): Add _ markup to error function call
3818 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3822 * python/python.c (gdbpy_write): Accept a stream argument and
3823 operate to the appropriate stream.
3824 (gdbpy_flush): Likewise.
3825 (_initialize_python): Add stream constants.
3826 (finish_python_initialization): Add GdbOutputErrorFile class.
3828 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3830 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3832 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3834 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3835 to store_signed_integer. Add debug message when relocating CALL
3836 instructions. Fix formatting of debug message.
3837 * i386-tdep.c (i386_relocate_instruction): Ditto.
3839 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3841 * target.h (struct target_ops): Remove to_lookup_symbol field.
3842 (target_lookup_symbol): Delete macro.
3843 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3844 (update_current_target, setup_target_debug): Remove handling
3845 of to_lookup_symbol target_ops field.
3846 * ada-tasks.c (get_known_tasks_addr): Remove use of
3847 target_lookup_symbol.
3848 * coffread.c (coff_symtab_read): Likewise.
3849 * dbxread.c (read_dbx_symtab): Ditto.
3851 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3854 * configure.ac: Add getthrds declaration check.
3855 * configure, config.in: Regenerate.
3856 * aix-thread.c (getthrds): Declare only if not already declared
3857 in procinfo.h. More declaration out of get_signaled_thread to
3860 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3862 * python/py-symtab.c: Populate symtab_object_methods,
3864 (stpy_is_valid): New function.
3865 (salpy_is_valid): Ditto.
3866 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3867 (sympy_is_valid): New function.
3868 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3869 (objfpy_is_valid): New function.
3870 * python/py-inferior.c: Populate inferior_object_methods.
3871 (infpy_is_valid): New function.
3872 * python/py-infthread.c: Populate thread_object_methods.
3873 (thpy_is_valid): New function.
3874 * python/py-block.c: Declare block_object_methods. Populate. Declare
3875 block_iterator_object_methods. Populate.
3876 (blpy_is_valid): New function.
3877 (blpy_iter_is_valid): Ditto.
3879 2011-03-16 Keith Seitz <keiths@redhat.com>
3881 * linespec.c (find_methods): Canonicalize NAME before looking
3883 (name_end): New function.
3884 (keep_name_info): New function.
3885 (decode_line_1): Use keep_name_info.
3886 (decode_compound): Likewise.
3887 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3888 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3891 * linespec.c (locate_first_half): Keep overload information, too.
3892 (decode_compound): Use a string to represent break characters
3894 If P points to a break character, do not increment it.
3895 For C++ and Java, keep overload information and relevant keywords.
3896 If we cannot find a symbol, search the minimal symbols.
3899 * linespec.c (decode_compound): Rename SAVED_ARG to
3901 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3903 Pass a valid block to lookup_symbol.
3904 (lookup_prefix_sym): Likewise.
3905 (find_method): Construct search name based on SYM_CLASS instead
3907 * psymtab.c (lookup_partial_symbol): Add language parameter.
3908 (lookup_symbol_aux_psymtabs): Likewise.
3909 Don't assume that the psymtab we found was the right one. Search
3910 for the desired symbol in the symtab to be certain.
3911 (psymtab_search_name): New function.
3912 (lookup_partial_symbol): Use psymtab_search_name.
3913 Add language parameter.
3914 (read_symtabs_for_function): Add language parameter and pass to
3915 lookup_partial_symbol.
3916 (find_symbol_file_from_partial): Likewise.
3918 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3921 * dwarf2read.c (noop_record_line): New function.
3922 (dwarf_decode_lines): Ignore line tables for GCd functions.
3924 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3926 Fix ARI warnings about new lines at the end of messages, which
3927 are unneeded as there is a new line added at the end of the message
3929 * darwin-nat.c (darwin_stop_inferior): Ditto.
3930 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3931 * dfp.c (decimal_to_number): Ditto.
3932 * exec.c (print_section_info): Ditto.
3933 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3934 * osdata.c (get_osdata): Ditto.
3935 * record.c (bfdcore_write): Ditto.
3936 * remote-mips.c (mips_readchar): Ditto.
3937 * remote.c (read_ptid): Ditto.
3938 * ser-mingw.c (ser_windows_raw): Ditto.
3939 * tracepoint.c (add_local_symbols): Ditto.
3940 * windows-nat.c (fake_create_process): Ditto.
3942 2011-03-16 Tom Tromey <tromey@redhat.com>
3944 * tracepoint.c (stop_tracing): Don't declare.
3945 * event-top.c (after_char_processing_hook): Add `(void)'.
3947 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3949 * NEWS: Add Parameter sub-classing description.
3951 2011-03-16 Kai Tietz <ktietz@redhat.com>
3953 * MAINTAINERS: Update my e-mail address.
3955 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
3957 * MAINTAINERS: Add myself for write after approval privileges.
3959 2011-03-15 Michael Snyder <msnyder@vmware.com>
3961 * frame.c (find_frame_sal): Assert sym is not null.
3963 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3965 * objc-lang.c (selectors_info): Check strchr for null result.
3967 * stabsread.c (define_symbol): Guard against bad stabstring input.
3969 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3971 Remove trailing spaces and tabulations from pascal language
3976 p-valprint.c: Ditto.
3978 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3980 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3981 than LOW. Comment it.
3982 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3983 HIGHPC not strictly higher than LOWPC.
3985 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3987 Fix formatting of function declarations returning a pointer in
3989 * varobj.c (varobj_add_child): Ditto.
3990 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3991 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3993 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3995 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3996 for the "generic" vector ABI used with GCC 4.3 and later.
3997 (ppc64_sysv_abi_return_value): Likewise.
3999 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
4001 * infcall.c (call_function_by_hand): Function return value is
4002 always a non_lval, even when using struct_return.
4004 2011-03-15 Pedro Alves <pedro@codesourcery.com>
4006 * printcmd.c (ALL_DISPLAYS_SAFE): New.
4007 (map_display_numbers): New.
4008 (do_delete_display): New.
4009 (undisplay_command): Use map_display_numbers.
4010 (do_enable_disable_display): New.
4011 (enable_disable_display_command): New function.
4012 (enable_display): Delete.
4013 (enable_display_command): New.
4014 (disable_display_command): Reimplement.
4015 (_initialize_printcmd): Adjust "enable display" command to use
4016 `enable_display_command' as callback.
4018 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4020 * NEWS: Add Python breakpoint 'stop' operation.
4022 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4024 * NEWS: Delete duplicate entry. Fix typo.
4026 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4028 Fix ARI warning about function names in first column.
4029 Put prototype declaration on same line as return type.
4030 * objc-exp.y: Ditto.
4032 * python/py-stopevent.h: Ditto.
4033 For long function names, split parameters to
4034 allow function name on same line as return type.
4035 * solib-pa64.c: Ditto.
4038 For long function declaration, use single line.
4039 * hppa-tdep.h: Ditto.
4040 * inferior.h: Ditto.
4042 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4044 * python/python.h: Declare gdbpy_should_stop and
4045 gdbpy_breakpoint_has_py_cond.
4046 * python/python.c: Add python.h to includes. Remove python.h from
4047 HAVE_PYTHON definition
4048 (gdbpy_should_stop): New dummy function.
4049 (gdbpy_breakpoint_has_py_cond): New dummy function.
4050 * python/py-breakpoint.c (bppy_init): Rewrite to allow
4051 sub-classing capabilities.
4052 (gdbpy_should_stop): New function.
4053 (gdbpy_breakpoint_has_py_cond): New function.
4054 (local_setattro): New function.
4055 * breakpoint.c (condition_command): Add check for Python 'stop'
4057 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
4058 operation function as part of stop/continue tests.
4060 2011-03-14 Tom Tromey <tromey@redhat.com>
4063 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
4064 (needs_frame_dwarf_call): Likewise.
4066 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4068 Fix ARI warning about functions without parameters that do not
4070 * breakpoint.c (all_tracepoints): Replace () by (void).
4071 * f-exp.y (match_string_literal): Ditto.
4073 * m2-exp.y (yylex): Ditto.
4074 * mep-tdep.c (current_me_module): Ditto.
4075 (current_options): Ditto.
4076 (current_cop_data_bus_width): Ditto.
4077 (current_cr_names): Ditto.
4078 (current_cr_is_float): Ditto.
4079 (current_ccr_names): Ditto.
4080 * objc-exp.y (yylex): Ditto.
4081 * p-exp.y (yylex): Ditto.
4082 * remote.c (send_interrupt_sequence): Ditto.
4083 * tracepoint.c (current_trace_status): Ditto.
4084 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
4085 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
4087 2011-03-11 Michael Snyder <msnyder@vmware.com>
4089 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
4090 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
4091 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
4092 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
4093 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
4095 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
4096 (delete_async_event_handler): Ditto.
4098 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
4100 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
4102 * top.c (set_verbose): Assert showcmd was found.
4104 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
4106 * xtensa-tdep.c (warning_once): Correct style issues.
4108 2011-03-11 Yao Qi <yao@codesourcery.com>
4110 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
4112 2011-03-11 Andreas Schwab <schwab@redhat.com>
4114 * common/aclocal.m4: Remove.
4116 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4118 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
4119 (xtensa_write_register, xtensa_read_register): Likewise.
4120 (xtensa_hextochar): Removed.
4121 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
4123 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4125 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
4126 (xtensa_call0_frame_cache_t): Update comments. New fields added.
4127 (xtensa_alloc_frame_cache): Add initialization for new fields.
4128 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
4129 (warning_once): New function.
4130 (xtensa_insn_kind): New item c0opc_and.
4131 (call0_classify_opcode): Add the case for AND instruction.
4132 (call0_track_op): Change arguments. New local variable litbase.
4133 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
4134 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
4136 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
4137 (call0_analyze_prologue): Update the comments. Change arguments.
4138 Add the variety of updates to handle extended prologues, which now can
4139 conduct dynamic stack adjustments.
4140 (call0_frame_cache): Likewise.
4141 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
4142 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4144 2011-03-10 Michael Snyder <msnyder@vmware.com>
4146 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4147 (cmd_qtframe): Ditto.
4148 (cmd_qtbuffer): Ditto.
4149 (cmd_bigqtbuffer): Ditto.
4151 2011-03-10 Tom Tromey <tromey@redhat.com>
4153 * tracepoint.c (trace_actions_command): Update.
4154 * thread.c (thread_apply_command): Update.
4155 * reverse.c (delete_bookmark_command): Update.
4156 (bookmarks_info): Update.
4157 * printcmd.c (undisplay_command): Update.
4158 * memattr.c (mem_enable_command): Update.
4159 (mem_disable_command): Update.
4160 (mem_delete_command): Update.
4161 * inferior.c (detach_inferior_command): Update.
4162 (kill_inferior_command): Update.
4163 (remove_inferior_command): Update.
4164 * cli/cli-utils.h (struct get_number_or_range_state): New.
4165 (init_number_or_range): Declare.
4166 (get_number_or_range): Update.
4167 * cli/cli-utils.c (init_number_or_range): New function.
4168 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
4170 (number_is_in_list): Update.
4171 * breakpoint.h (get_tracepoint_by_number): Update.
4172 * breakpoint.c (map_breakpoint_numbers): Update for change to
4173 get_number_or_range.
4174 (find_location_by_number): Use get_number, not
4175 get_number_or_range.
4176 (trace_pass_set_count): New function.
4177 (trace_pass_command): Update for change to get_number_or_range.
4179 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4182 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
4184 * python/py-param.c (add_setshow_generic): Add set/show callback
4185 parameters. Register Python object context.
4186 (get_show_value): New function.
4187 (get_set_value): New function.
4188 (call_doc_function): New function.
4189 (get_doc_string): Move behind get_show_value/get_set_value.
4191 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
4193 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4195 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
4197 * xtensa-tdep.c (xtensa_read_register): Add comment.
4198 (xtensa_write_register): Likewise.
4199 (xtensa_hextochar): Add comment and update to match coding conventions.
4200 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4201 (execute_l32e, execute_s32e, execute_code): Update comments.
4202 (xtensa_exception_handler_t): Update to match coding conventions.
4203 (xtensa_insn_kind): Likewise.
4205 2011-03-09 Michael Snyder <msnyder@vmware.com>
4207 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4209 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4211 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4213 2011-03-09 Tom Tromey <tromey@redhat.com>
4215 * thread.c (restore_selected_frame): Handle frame_level == -1.
4216 (make_cleanup_restore_current_thread): Use
4217 get_selected_frame_if_set.
4218 * frame.h (get_selected_frame_if_set): Declare.
4219 * frame.c (get_selected_frame_if_set): New function.
4221 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4223 * cli/cli-cmds.c (shell_escape): Use lbasename.
4224 * coffread.c (coff_start_symtab): Constify parameter.
4225 (complete_symtab): Constify `name' parameter.
4226 (coff_symtab_read): Constify `filestring' local.
4227 (coff_getfilename): Constify return and `result' local.
4229 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4230 * linux-fork.c (info_checkpoints_command): Use lbasename.
4231 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4232 * minsyms.c (lookup_minimal_symbol): Use lbasename.
4233 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4234 * procfs.c (procfs_make_note_section): Use lbasename.
4235 * tui/tui-io.c (printable_part): Constity return and parameter.
4237 (print_filename): Constify parameters, and local `s'.
4238 (tui_rl_display_match_list): Constify local `temp'.
4240 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4243 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4244 Fix DWARF-3+ DW_AT_accessibility default assumption.
4245 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4246 cu->header.version >= 3.
4248 2011-03-09 Yao Qi <yao@codesourcery.com>
4250 * common/Makefile.in: Remove.
4251 * common/configure: Remove.
4252 * common/configure.ac: Remove.
4254 2011-03-09 Yao Qi <yao@codesourcery.com>
4257 2011-02-11 Yao Qi <yao@codesourcery.com>
4259 * common/Makefile.in: Add copyright header.
4261 2011-02-11 Yao Qi <yao@codesourcery.com>
4263 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4265 * configure.ac: Add common to sub dir.
4266 * configure: Regenerate.
4268 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4270 * xtensa-tdep.c (call0_ret): New function.
4271 (xtensa_skip_prologue): Speed up analysis.
4273 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4275 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
4276 while executing MI command -data-list-changed-registers.
4278 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4280 * xtensa-tdep.c (xtensa_read_register): New function.
4281 (xtensa_write_register): New function.
4282 (xtensa_find_register_by_name): New function.
4283 (xtensa_windowed_frame_cache): Update comments in type description.
4284 (xtensa_frame_cache): Likewise.
4285 (xtensa_window_interrupt_insn): New function.
4286 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
4287 (xtensa_insn_kind): Add new instructions.
4288 (rwx_special_register): New function.
4289 (call0_classify_opcode): Add new instructions to the analysis.
4290 (a0_saved, a7_saved, a11_saved): New variables.
4291 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
4292 (execute_l32e): New function.
4293 (execute_s32e): New function.
4294 (xtensa_exception_handler_t): New type.
4295 (execute_code): New function.
4296 (xtensa_window_interrupt_frame_cache): New function to conduct frame
4297 analysis for Xtensa Window Exception handlers.
4299 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4301 * xtensa-tdep.c (TX_PS): New.
4302 (windowing_enabled): Update to count for Call0 ABI.
4303 (xtensa_hextochar): New.
4304 (xtensa_init_reggroups): Make algorithm generic.
4305 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4307 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4309 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4311 2011-03-08 Michael Snyder <msnyder@vmware.com>
4313 * i386-tdep.c (i386_follow_jump): Check return value of
4315 (i386_analyze_struct_return): Ditto.
4316 (i386_skip_probe): Ditto.
4317 (i386_match_insn): Ditto.
4318 (i386_skip_noop): Ditto.
4319 (i386_analyze_frame_setup): Ditto.
4320 (i386_analyze_register_saves): Ditto.
4321 (i386_skip_prologue): Ditto.
4322 (i386_skip_main_prologue): Ditto.
4324 * target.c (read_whatever_is_readable): Fix memory leak.
4326 * i386-tdep.c (i386_process_record): Document fall through.
4328 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4330 Fix DWARF-3+ DW_AT_accessibility default assumption.
4331 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4332 cu->header.version >= 3.
4334 2011-03-08 Pedro Alves <pedro@codesourcery.com>
4336 * remote.c (remote_check_symbols): Skip if the target has no
4339 2011-03-08 Joel Brobecker <brobecker@adacore.com>
4341 * target.c (read_whatever_is_readable): Reformat comment,
4342 with a minor typo fix. Minor reformatting of the code.
4344 2011-03-08 Yao Qi <yao@codesourcery.com>
4346 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4347 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4348 Use cached result instead of calling displaced_in_arm_mode again.
4349 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4350 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4351 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4352 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4353 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4354 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4355 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4356 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4357 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4358 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4359 (arm_catch_kernel_helper_return): Likewise.
4360 * gdb/arm-tdep.h : Update function declarations.
4362 2011-03-07 Michael Snyder <msnyder@vmware.com>
4364 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4366 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4368 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4370 * elfread.c (elf_symtab_read): Stop memory leak.
4372 * main.c (captured_main): Fix memory leak.
4374 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
4376 * ada-lang.c (compare_names): Call is_name_suffix with string1
4379 2011-03-07 Tom Tromey <tromey@redhat.com>
4381 * xcoffread.c (xcoff_sym_fns): Update.
4382 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4383 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4384 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4385 (symbol_file_add_with_addrs_or_offsets): Likewise.
4386 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4387 * somread.c (som_sym_fns): Update.
4388 * psymtab.h (require_partial_symbols): Declare.
4389 * psymtab.c (require_partial_symbols): New function.
4390 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4391 (ALL_OBJFILE_PSYMTABS): Undef.
4392 (ALL_PSYMTABS): Move from psympriv.h.
4393 (lookup_partial_symtab, find_pc_sect_psymtab)
4394 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4395 (find_last_source_symtab_from_partial)
4396 (forget_cached_source_info_partial)
4397 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4398 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4399 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4400 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4401 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4402 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4403 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4404 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4405 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4407 * mipsread.c (ecoff_sym_fns): Update.
4408 * machoread.c (macho_sym_fns): Update.
4409 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4410 (read_psyms): New function.
4411 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4412 (elf_sym_fns_lazy_psyms): New global.
4413 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4414 dwarf2_build_psymtabs.
4415 * dbxread.c (aout_sym_fns): Update.
4416 * coffread.c (coff_sym_fns): Update.
4418 2011-03-07 Tom Tromey <tromey@redhat.com>
4420 * infrun.c (print_exited_reason): Include inferior id and pid in
4423 2011-03-07 Tom Tromey <tromey@redhat.com>
4425 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4427 (target_has_execution_1): Update.
4428 (target_has_execution_current): Declare.
4429 (target_has_execution): Call target_has_execution_current.
4430 (default_child_has_execution): Update.
4431 * target.c (default_child_has_execution): Add 'the_ptid'
4433 (target_has_execution_1): Likewise.
4434 (target_has_execution_current): New function.
4435 (add_target): Update.
4436 (init_dummy_target): Update.
4437 * remote-m32r-sdi.c (m32r_has_execution): New function.
4438 (init_m32r_ops): Use it.
4439 * record.c (record_core_has_execution): Now static. Add
4440 'the_ptid' parameter.
4441 * inferior.c (have_live_inferiors): Don't save current thread.
4442 Use target_has_execution_1.
4444 2011-03-07 Yao Qi <yao@codesourcery.com>
4446 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4448 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4450 * elfread.c (elf_symtab_read): Minor reformatting.
4452 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4454 * objc-lang.c (selectors_info): Minor reformatting.
4456 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4458 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4460 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4461 Michael Snyder <msnyder@vmware.com>
4463 * ada-valprint.c (ada_val_print_array): Move the declaration of
4464 "byte_order" and "elttype" inside the block where these variables
4465 are actually used. Remove some special handling for the case
4466 where "elttype" and "eltlen" are null. Replace by a comment
4467 and a couple of assertion checks.
4469 2011-03-05 Michael Snyder <msnyder@vmware.com>
4471 * source.c (add_path): Replace semicolon at end of block.
4472 * dwarf2expr.c (execute_stack_op): Ditto.
4474 2011-03-05 Mike Frysinger <vapier@gentoo.org>
4476 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4477 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4478 (bfin-*-*): Likewise.
4480 2011-03-05 Michael Snyder <msnyder@vmware.com>
4482 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4483 * mdebugread.c (parse_symbol): Ditto.
4484 * parse.c (parse_exp_in_context): Ditto.
4485 * source.c (add_path): Ditto.
4486 * utils.c (gnu_debuglink_crc32): Ditto.
4487 * varobj.c (variable_language): Ditto.
4489 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4491 2011-03-04 Michael Snyder <msnyder@vmware.com>
4493 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4495 * symfile.c (simple_overlay_update): Check for null return value
4496 from lookup_minimal_symbol.
4498 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4500 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4502 * eval.c (parse_and_eval_address_1): Remove function.
4503 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4504 instead of parse_and_eval_address_1.
4505 * value.h (parse_and_eval_address_1): Remove prototype.
4507 2011-03-04 Michael Snyder <msnyder@vmware.com>
4509 * remote.c (putpkt_binary): Document that case stmt falls through.
4511 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4513 * breakpointc (print_it_typical): Move NULL check from here...
4514 (print_bp_stop_message): ... to here.
4516 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4518 * breakpoint.c (enable_command): Use break instead of continue,
4519 and fill in a missing break.
4520 (disable_command): Ditto.
4522 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4524 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4525 (terminal_save_ours): Remove misleading comment.
4526 (inflow_inferior_data_cleanup): Free ttystate.
4527 (inflow_inferior_exit): Likewise.
4528 (copy_terminal_info): Copy ttystate.
4530 * serial.c (serial_copy_tty_state): New function.
4531 * serial.h (serial_copy_tty_state): Add prototype.
4532 (struct serial_ops): Add copy_tty_state callback.
4533 * ser-base.c (ser_base_copy_tty_state): New function.
4534 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4535 * ser-go32.c (dos_copy_tty_state): New function.
4536 (dos_ops): Install copy_tty_state callback.
4537 * ser-mingw.c (_initialize_ser_windows): Likewise.
4538 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4539 * ser-unix.c (hardwire_copy_tty_state): New function.
4540 (_initialize_ser_hardwire): Install it.
4542 2011-03-04 Michael Snyder <msnyder@vmware.com>
4544 * breakpoint.c (create_breakpoint): Add missing break statement.
4546 Reverting this patch:
4547 * infcall.c (call_function_by_hand): Add break statements for lint.
4549 Reverting this patch:
4550 * cli/cli-script.c (script_from_file): Add break for lint.
4552 2011-03-04 Michael Snyder <msnyder@vmware.com>
4554 * solib.c (reload_shared_libraries_1): Close memory leak.
4556 2011-03-03 Tom Tromey <tromey@redhat.com>
4559 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4562 2011-03-03 Michael Snyder <msnyder@vmware.com>
4564 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4565 fields of struct 'st' to zero.
4567 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4568 sal.pspace before calling set_current_source_symtab_and_line.
4570 2011-03-03 Yao Qi <yao@codesourcery.com>
4572 * Makefile.in (configure-common): Remove. Let Makefile
4573 in dir common to rebuild itself.
4574 (common/Makefile): Likewise.
4576 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4578 * utils.c (parse_escape): Add i18n markup in error message.
4580 2011-03-03 Yao Qi <yao@codesourcery.com>
4582 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4584 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4585 (displaced_write_reg, displaced_read_reg): Likewise.
4586 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4587 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4588 (cleanup_branch): Replace magic number 14 and 15 with
4589 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4591 2011-03-02 Michael Snyder <msnyder@vmware.com>
4593 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4595 * cli/cli-script.c (script_from_file): Add break for lint.
4597 * mdebugread.c (parse_partial_symbols): Fix indent.
4599 * target-descriptions.c (tdesc_gdb_type): No need to call
4600 xstrdup, callee saves a copy.
4602 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4604 * infcall.c (call_function_by_hand): Add break statements for lint.
4606 * utils.c (parse_escape): Escape the escape char.
4608 * python/py-inferior.c (build_inferior_list): Error out if
4609 PyList_Append fails.
4610 (gdbpy_inferiors): Error out if build_inferior_list fails.
4612 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4615 * record.c (record_restore): Move printf to before error return.
4617 2011-03-02 Yao Qi <yao@codesourcery.com>
4619 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4620 is_thumb and insn_size.
4621 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4622 on both ARM and Thumb mode.
4623 (arm_process_displaced_insn): Set is_thumb and insn_size.
4624 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4625 (arm_displaced_step_fixup): Likewise.
4627 2011-03-01 Michael Snyder <msnyder@vmware.com>
4629 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4631 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4633 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4635 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4637 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4640 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4641 which shadows function parameter.
4643 * tracepoint.c (create_tsv_from_upload): Superfluous call
4644 to xstrdup. Callee already calls xstrdup.
4646 * linespec.c (decode_line_1): Remove unnecessary null check.
4648 * tracepoint.c (scope_info): Fix mem leak, remove underused
4651 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4652 superfluous null check.
4654 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4655 (value_of_builtin_frame_fp_reg): Ditto.
4657 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4659 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4662 * linespec.c (decode_line_1): Check for null before dereference.
4664 * reverse.c (record_restore): Move null-check to before pointer
4667 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4669 * objc-lang.c (selectors_info): Add explanitory comment.
4670 (classes_info): Ditto.
4672 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4674 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4675 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4676 versions of the trampoline. Handle Thumb vs. ARM addresses.
4677 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4678 (arm_linux_init_abi): Install it.
4679 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4680 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4682 2011-02-28 Michael Snyder <msnyder@vmware.com>
4684 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4685 a little bigger, to avoid possibility of an overflow.
4687 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4688 buffers a little bigger, to avoid possibility of an overflow.
4690 * coffread.c (coff_getfilename): Add check to avoid overflow.
4692 * objc-lang.c (selectors_info): Add a small safety margin to
4694 (classes_info): Error out on too long REGEXP.
4696 * infrun.c (handle_inferior_event): Remove unused function call.
4698 * fork-child.c (fork_inferior): Remove ifdef'd code and
4701 * linux-thread-db.c (attach_thread): Discard unused value.
4703 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4705 * remote.c (remote_get_noisy_reply): Discard unused value.
4706 (remote_vcont_resume): Ditto.
4707 (remote_stop_ns): Ditto.
4709 * linespec.c (decode_objc): Delete unused variable.
4711 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4713 * dwarf2read.c (add_partial_symbol): Discard unused values.
4714 (read_base_type): Delete unused variable.
4716 * dbxread.c (read_dbx_symtab): Discard unused value.
4718 * eval.c (evaluate_subexp_standard): Delete unused variable,
4719 and discard unused values.
4721 * infcmd.c (_initialize_infcmd): Discard unused values.
4723 * stabsread.c (rs6000_builtin_type): Missing break statement.
4725 * dbxread.c (process_one_symbol): Discard unused value.
4727 * coffread.c (coff_end_symtab): Delete unused variable.
4729 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4730 (dwarf2_add_typedef): Delete unused variable.
4731 (read_namespace): Ditto.
4732 (dwarf_decode_macros): Ditto.
4734 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4736 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4738 * p-valprint.c (pascal_val_print): Discard unused value.
4740 * utils.c (nquery): Call va_end before return;
4744 * proc-service.c (ps_plog): Call va_end before return.
4746 2011-02-28 Tom Tromey <tromey@redhat.com>
4748 * python/python.c (gdbpy_value_cst): New global.
4749 (_initialize_python): Initialize it.
4750 * python/python-internal.h (gdbpy_value_cst): Declare.
4751 * python/py-value.c (convert_value_from_python): Use
4754 2011-02-28 Michael Snyder <msnyder@vmware.com>
4756 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4758 * breakpoint.c (catch_syscall_completer): Free malloced list.
4760 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4762 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4763 (lval_func_check_synthetic_pointer): Ditto.
4764 (lval_func_free_closure): Fix use-after-free.
4766 2011-02-28 Tom Tromey <tromey@redhat.com>
4768 * psymtab.c (expand_partial_symbol_tables): Use
4769 ALL_OBJFILE_PSYMTABS.
4771 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4773 * objc-lang.c (selectors_info): Error on too long REGEXP.
4775 2011-02-28 Michael Snyder <msnyder@vmware.com>
4777 * python/py-param.c (set_parameter_value): Add missing
4780 * linux-record.c (record_linux_system_call): Add missing
4783 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4785 * breakpoint.c (print_one_breakpoint_location): Remove unused
4786 argument PRINT_ADDRESS_BITS. Update callers.
4787 (print_one_breakpoint): Likewise.
4789 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4791 * breakpoint.c (wrap_indent_at_field): New function.
4792 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4793 Allocate ui_stream locally instead of using STB argument.
4794 (print_one_breakpoint_location): Update call.
4795 * ui-out.c (ui_out_query_field): New function.
4796 * ui-out.h (ui_out_query_field): Add prototype.
4798 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4800 From Michael Snyder <msnyder@vmware.com>
4801 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4803 2011-02-27 Michael Snyder <msnyder@vmware.com>
4805 * objc-lang.c (selectors_info): Prevent string overrun.
4807 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4810 * symtab.c (rbreak_command): Move variable 'file_name' to
4813 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4814 param with a local variable of the same name.
4816 2011-02-27 Michael Snyder <msnyder@vmware.com>
4818 * value.c (value_from_history_ref): New function.
4819 * value.h (value_from_history_ref): Export.
4820 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4821 to parse value history references.
4822 * cli/cli-utils.h (get_number_trailer): Update comment.
4824 2011-02-27 Michael Snyder <msnyder@vmware.com>
4826 * inferior.c (detach_inferior_command): Use get_number_or_range.
4827 (kill_inferior_command): Ditto.
4828 (remove_inferior_command): Ditto.
4829 (initialize_inferiors): Make command names plural.
4830 Update help strings.
4832 2011-02-27 Michael Snyder <msnyder@vmware.com>
4834 * darwin-nat-info.c: Fix comment typo.
4835 * dwarf2expr.h: Ditto.
4836 * fbsd-nat.c: Ditto.
4837 * fbsd-nat.h: Ditto.
4838 * frame-unwind.h: Ditto.
4840 * hppa-hpux-tdep.c: Ditto.
4841 * i386-linux-nat.c: Ditto.
4842 * linux-nat.c: Ditto.
4843 * nbsd-nat.c: Ditto.
4844 * nbsd-nat.h: Ditto.
4845 * ppc-linux-tdep.c: Ditto.
4848 * tui/tui-winsource.c: Ditto.
4850 2011-02-26 Michael Snyder <msnyder@vmware.com>
4852 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4854 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4856 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4857 with a local variable of the same name.
4859 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4860 param with a local variable of the same name.
4861 (i387_supply_xsave): Ditto.
4863 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4864 that it does not shadow a function parameter.
4866 * i386-nat.c (i386_length_and_rw_bits): Document that case
4867 statement is meant to fall through.
4869 * expprint.c (dump_subexp_body_standard): Document that case
4870 statement is meant to fall through.
4872 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4873 dead if statement. Condition can't be false.
4875 2011-02-25 Michael Snyder <msnyder@vmware.com>
4877 * arm-tdep.c: Fix typos in comments.
4878 * bsd-uthread.c: Ditto.
4879 * completer.c: Ditto.
4881 * cp-namespace.c: Ditto.
4882 * cp-support.c: Ditto.
4883 * cris-tdep.c: Ditto.
4885 * dwarf2read.c: Ditto.
4887 * gdbtypes.h: Ditto.
4888 * inferior.h: Ditto.
4889 * mdebugread.c: Ditto.
4890 * mips-tdep.c: Ditto.
4891 * ppc-linux-nat.c: Ditto.
4892 * ppc-linux-tdep.c: Ditto.
4893 * printcmd.c: Ditto.
4894 * sol-thread.c: Ditto.
4895 * solib-frv.c: Ditto.
4897 * sparc64-tdep.c: Ditto.
4898 * spu-tdep.c: Ditto.
4899 * stabsread.c: Ditto.
4904 * python/py-block.c: Ditto.
4905 * python/py-symbol.c: Ditto.
4906 * python/py-symtab.c: Ditto.
4907 * python/py-value.c: Ditto.
4908 * tui/tui-win.c: Ditto.
4910 2011-02-25 Michael Snyder <msnyder@vmware.com>
4912 * inferior.c (print_inferior): Accept a string instead of an int
4913 for requested_inferiors, and use get_number_or_range to parse it.
4914 (info_inferiors_command): Pass args string to print_inferior.
4915 (initialize_inferiors): Change help string for info inferiors.
4916 * inferior.h (print_inferior): Export prototype change.
4918 2011-02-25 Tom Tromey <tromey@redhat.com>
4920 * common/ax.def (invalid2): Set to 0x31.
4922 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4924 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4926 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4928 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4930 2011-02-24 Michael Snyder <msnyder@vmware.com>
4932 * Makefile.in (clean): Make clean should remove generated files
4933 observer.h and observer.inc.
4935 2011-02-24 Joel Brobecker <brobecker@adacore.com>
4937 Revert the following patch (not approved yet):
4938 2011-02-21 Hui Zhu <teawater@gmail.com>
4939 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4940 * ax-gdb.c (gen_printf_expr_callback): New function.
4941 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4942 * ax-general.c (ax_memcpy): New function.
4943 (ax_print): Handle "printf".
4945 * ax.h (ax_memcpy): Forward declare.
4946 * common/ax.def (invalid2): Removed.
4947 (printf): New entry.
4948 * printcmd.c (printcmd.h): New include.
4949 (string_printf): New function.
4950 (ui_printf): Removed.
4951 (printf_command): Remove static. Call string_printf.
4952 (eval_command): Call string_printf.
4953 * printcmd.h: New file.
4954 * tracepoint.c (validate_actionline,
4955 encode_actions_1): handle printf_command.
4957 2011-02-23 Tom Tromey <tromey@redhat.com>
4959 * ax-general.c (ax_pick): Add missing newline.
4961 2011-02-23 Michael Snyder <msnyder@vmware.com>
4963 * breakpoint.c (breakpoint_1): Change first argument from an int
4964 to a char pointer, so that the function now accepts a list of
4965 breakpoints rather than just one. Use new function
4966 'number_is_in_list' to implement.
4967 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4968 (watchpoints_info): Ditto.
4969 (tracepoints_info): Ditto.
4970 (maintenance_info_breakpoints): Ditto.
4971 (_initialize_breakpoint): Update help strings to reflect the fact
4972 that these functions can now take more than one argument.
4973 * cli/cli-utils.c (number_is_in_list): New function.
4974 * cli/cli-utils.h (number_is_in_list): Export.
4976 2011-02-23 Michael Snyder <msnyder@vmware.com>
4978 * memattr.c (mem_enable_command): Use get_number_or_range.
4979 (mem_disable_command): Ditto.
4980 (mem_delete_command): Ditto.
4981 (_initialize_mem): Tweak usage message to reflect multiple
4984 2011-02-22 Doug Evans <dje@google.com>
4986 Add gdb.lookup_global_symbol python function.
4988 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4989 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4990 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4992 2011-02-22 Tom Tromey <tromey@redhat.com>
4994 * language.c (language_class_name_from_physname): Rename
4995 'curr_language' argument to 'lang'; use in body.
4997 2011-02-22 Michael Snyder <msnyder@vmware.com>
4999 * cli/cli-utils.c (number_is_in_list): Check for zero return.
5001 2011-02-22 Pedro Alves <pedro@codesourcery.com>
5003 * frame-unwind.h: Fix comment to mention the this frame, not the
5006 2011-02-22 Tom Tromey <tromey@redhat.com>
5008 * symfile.c (auto_solib_limit): Remove.
5009 * symfile.h (auto_solib_limit): Remove.
5011 2011-02-22 Joel Brobecker <brobecker@adacore.com>
5013 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
5015 2011-02-21 Michael Snyder <msnyder@vmware.com>
5017 * gdbthread.h (print_thread_info): Change prototype.
5018 * thread.c (print_thread_info): Accept char* instead of int for
5019 requested_threads argument. Use new function number_is_in_list
5020 to determine which threads to list.
5021 (info_threads_command): Pass char* to print_thread_info.
5022 * cli/cli-utils.c (number_is_in_list): New function.
5023 * cli/cli-utils.h (number_is_in_list): Export.
5024 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
5026 (print_one_inferior): Ditto.
5027 (mi_cmd_list_thread_groups): Ditto.
5029 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5031 * common/Makefile.in (CFLAGS): New.
5032 (COMPILE): Add $(CFLAGS).
5034 2011-02-21 Tom Tromey <tromey@redhat.com>
5036 * breakpoint.c (catch_syscall_command_1): Fix typo.
5038 2011-02-21 Tom Tromey <tromey@redhat.com>
5040 * reverse.c: Include cli-utils.h.
5041 * printcmd.c: Include cli-utils.h.
5042 (string_printf): Use skip_spaces.
5043 * cli/cli-utils.h: New file.
5044 * cli/cli-utils.c: New file.
5045 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
5046 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
5047 * breakpoint.h (get_number, get_number_or_range): Move to
5049 * breakpoint.c: Include cli-utils.h.
5050 (get_number_trailer, get_number, get_number_or_range)
5051 (ep_skip_leading_whitespace): Move to cli-utils.c.
5052 (create_breakpoint_sal, find_condition_and_thread)
5053 (decode_static_tracepoint_spec, watch_command_1)
5054 (watch_maybe_just_location, ep_parse_optional_if_clause)
5055 (catch_fork_command_1, catch_exec_command_1)
5056 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
5057 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
5058 (SUBDIR_CLI_SRCS): Add cli-utils.c.
5059 (HFILES_NO_SRCDIR): Add cli-utils.h.
5060 (cli-utils.o): New target.
5062 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5064 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
5065 before calling discard_all_inferiors.
5067 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5069 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
5070 (struct builtin_opencl_type): Remove.
5071 (builtin_opencl_type): Change return type to "struct type **".
5072 (lookup_opencl_vector_type): Update caller.
5073 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
5074 (build_opencl_types): Install plain array of "struct type *"
5075 instead of "struct builtin_opencl_type".
5077 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5078 Ulrich Weigand <uweigand@de.ibm.com>
5080 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
5081 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
5082 (struct arm_linux_hwbp_cap): New type.
5083 (arm_linux_get_hwbp_cap): New function.
5084 (arm_linux_get_hw_breakpoint_count): Likewise.
5085 (arm_linux_get_hw_watchpoint_count): Likewise.
5086 (arm_linux_can_use_hw_breakpoint): Likewise.
5087 (arm_hwbp_type): New type.
5088 (arm_hwbp_control_t): Likewise.
5089 (struct arm_linux_hw_breakpoint): Likewise.
5090 (struct arm_linux_thread_points): Likewise.
5091 (arm_threads): New global variable.
5092 (arm_linux_find_breakpoints_by_tid): New function.
5093 (arm_hwbp_control_initialize): Likewise.
5094 (arm_hwbp_control_is_enabled): Likewise.
5095 (arm_hwbp_control_disable): Likewise.
5096 (arm_linux_hw_breakpoint_initialize): Likewise.
5097 (arm_linux_get_hwbp_type): Likewise.
5098 (arm_linux_hw_watchpoint_initialize): Likewise.
5099 (arm_linux_hw_breakpoint_equal): Likewise.
5100 (arm_linux_insert_hw_breakpoint1): Likewise.
5101 (arm_linux_remove_hw_breakpoint1): Likewise.
5102 (arm_linux_insert_hw_breakpoint): Likewise.
5103 (arm_linux_remove_hw_breakpoint): Likewise.
5104 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
5105 (arm_linux_insert_watchpoint): Likewise.
5106 (arm_linux_remove_watchpoint): Likewise.
5107 (arm_linux_stopped_data_address): Likewise.
5108 (arm_linux_stopped_by_watchpoint): Likewise.
5109 (arm_linux_watchpoint_addr_within_range): Likewise.
5110 (arm_linux_new_thread): Likewise.
5111 (arm_linux_thread_exit): Likewise.
5112 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
5113 related target callbacks. Register arm_linux_new_thread and
5114 arm_linux_thread_exit.
5115 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
5116 * arm-tdep.c (arm_pc_is_thumb): Make global.
5117 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
5119 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5121 * breakpoint.c (update_watchpoint): Do not attempt to recreate
5122 per-frame locations while within a function epilogue.
5124 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5126 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
5127 to GNU coding standards.
5129 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5131 Allow use of mingw native on Windows 95 OS.
5132 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
5133 (ser_windows_close): Only call CancelIo if function exists.
5134 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
5135 to check for existence of CancelIo function in kernel32 DLL.
5137 2011-02-21 Hui Zhu <teawater@gmail.com>
5139 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5140 * ax-gdb.c (gen_printf_expr_callback): New function.
5141 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5142 * ax-general.c (ax_memcpy): New function.
5143 (ax_print): Handle "printf".
5145 * ax.h (ax_memcpy): Forward declare.
5146 * common/ax.def (invalid2): Removed.
5147 (printf): New entry.
5148 * printcmd.c (printcmd.h): New include.
5149 (string_printf): New function.
5150 (ui_printf): Removed.
5151 (printf_command): Remove static. Call string_printf.
5152 (eval_command): Call string_printf.
5153 * printcmd.h: New file.
5154 * tracepoint.c (validate_actionline,
5155 encode_actions_1): handle printf_command.
5157 2011-02-19 Michael Snyder <msnyder@vmware.com>
5159 * reverse.c (delete_one_bookmark): Argument is now bookmark
5160 id rather than pointer to bookmark struct.
5161 (delete_bookmark_command): Use get_number_or_range.
5162 (goto_bookmark_command): Parse with get_number instead of strtoul.
5163 (bookmark_1): New function. Print info for one bookmark.
5164 (bookmarks_info): Use get_number_or_range and bookmark_1.
5166 2011-02-18 Michael Snyder <msnyder@vmware.com>
5168 * thread.c (info_threads_command): Re-implement using
5169 get_number_or_range.
5170 (thread_apply_command): Ditto.
5172 2011-02-18 Tom Tromey <tromey@redhat.com>
5174 * common/ax.def: New file.
5175 * ax.h (enum agent_op): Use ax.def.
5176 * ax-general.c (aop_map): Use ax.def.
5178 2011-02-18 Tom Tromey <tromey@redhat.com>
5180 * ax-general.c (aop_map): Add pick and rot.
5181 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5182 <DW_OP_rot>: Implement.
5183 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5185 * ax-general.c (ax_pick): New function.
5187 2011-02-18 Tom Tromey <tromey@redhat.com>
5189 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5191 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5192 Tom Tromey <tromey@redhat.com>
5194 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5195 make_symbol_overload_list_block with NULL BLOCK.
5196 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5198 2011-02-18 Pedro Alves <pedro@codesourcery.com>
5200 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5201 * breakpoint.h (get_number_or_range): Declare.
5202 * printcmd.c (ALL_DISPLAYS): Declare.
5203 (delete_display): Reimplement taking a display pointer.
5204 (undisplay_command): Accept a range of displays to delete, using
5205 get_number_or_range.
5207 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5209 * c-valprint.c (c_val_print): Add embedded_offset to address
5210 for arrays of unspecified length.
5211 * p-valprint.c (pascal_val_print): Likewise.
5213 2011-02-18 Yao Qi <yao@codesourcery.com>
5215 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5216 (arm_process_displaced_insn): .. here. Remove parameter INSN.
5217 (thumb_process_displaced_insn): New.
5218 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5219 call to arm_process_displaced_insn.
5220 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5222 2011-02-17 Tom Tromey <tromey@redhat.com>
5224 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5225 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5226 compile_dwarf_to_ax. No longer static. Call
5227 dwarf2_compile_cfa_to_ax.
5228 (locexpr_tracepoint_var_ref): Update.
5229 (loclist_tracepoint_var_ref): Update.
5230 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5231 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5232 argument; add 'gdbarch' and 'pc'.
5233 (dwarf2_compile_cfa_to_ax): New function.
5234 (dwarf2_frame_cache): Update.
5236 2011-02-17 Joel Brobecker <brobecker@adacore.com>
5238 * ada-lang.c (ada_type_of_array): Fix the size of the array
5239 in the case of an unconstrained packed array.
5241 2011-02-17 Yao Qi <yao@codesourcery.com>
5243 * common/Makefile.in: Add more targets for make.
5245 2011-02-16 Tom Tromey <tromey@redhat.com>
5247 * dwarf2loc.c (unimplemented): Fix typo.
5249 2011-02-16 Tom Tromey <tromey@redhat.com>
5251 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5252 (compile_dwarf_to_ax) <default>: Use unimplemented.
5253 <DW_OP_deref>: Update.
5254 (disassemble_dwarf_expression): Update.
5255 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5256 (decode_locdesc): Update.
5257 * dwarf2expr.h (dwarf_stack_op_name): Update.
5259 2011-02-16 Tom Tromey <tromey@redhat.com>
5261 * ax.h (struct aop_map) <name>: Now const.
5263 2011-02-16 Tom Tromey <tromey@redhat.com>
5265 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5268 2011-02-16 Yao Qi <yao@codesourcery.com>
5270 * infrun.c (get_displaced_step_closure_by_addr): New.
5271 * inferior.h: Declare it.
5272 * arm-tdep.c: (arm_pc_is_thumb): Call
5273 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
5276 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5277 Jan Kratochvil <jan.kratochvil@redhat.com>
5280 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
5282 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5283 Jan Kratochvil <jan.kratochvil@redhat.com>
5285 * value.c (value_contents_copy_raw): Extend describing comment.
5286 Assert that the destination contents we're overwriting are wholly
5288 (value_contents_copy): Extend describing comment.
5290 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5291 Jan Kratochvil <jan.kratochvil@redhat.com>
5293 * value.c (value_available_contents_eq): Remove redundant local
5294 variables. Fix available contents comparision.
5295 * value.h (value_available_contents_eq): Extend describing
5298 2011-02-16 Yao Qi <yao@codesourcery.com>
5300 * thread.c (info_threads_command): Add missing i18n markup and remove
5303 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5305 * breakpoint.c (longjmp_names): New variable.
5306 (struct breakpoint_objfile_data): New type.
5307 (breakpoint_objfile_key): New variable.
5308 (msym_not_found): New variable.
5309 (msym_not_found_p): New predicate.
5310 (get_breakpoint_objfile_data): New function.
5311 (create_overlay_event_breakpoint): Check per-objfile cache for
5313 (create_longjmp_master_breakpoint): Likewise.
5314 (create_std_terminate_master_breakpoint): Likewise.
5315 (create_exception_master_breakpoint): Likewise.
5316 (_initialize_breakpoint): Register per-objfile data key.
5318 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5320 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5322 (create_longjmp_master_breakpoint): Loop over longjmp names.
5323 (create_std_terminate_master_breakpoint): Const-propagate parameter
5325 (update_breakpoints_after_exec): Adjust.
5326 (breakpoint_re_set): Adjust.
5328 2011-02-15 Michael Snyder <msnyder@vmware.com>
5330 * thread.c (info_threads_command): Process arg as thread id,
5331 or list of thread ids.
5332 (thread_find_command): New command.
5333 (_initialize_thread): Document argument for info threads.
5334 Document 'thread find' command.
5335 * NEWS: Document new command "thread find".
5337 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5339 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5340 * aclocal.m4: Regenerated with aclocal-1.11.1.
5341 * common/configure: Regenerate with autoconf-2.64.
5343 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
5345 * opencl-lang.c (build_opencl_types): Set the size of the built-in
5346 bool data type to a size of one byte.
5348 2011-02-15 Pedro Alves <pedro@codesourcery.com>
5349 Jan Kratochvil <jan.kratochvil@redhat.com>
5351 * target.c (memory_xfer_live_readonly_partial): Document where to
5352 look for interface description.
5354 2011-02-15 Yao Qi <yao@codesourcery.com>
5357 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5358 order to store PC value on stack instead of text section.
5360 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
5362 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5363 the EFP register set size.
5364 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5365 data from the VMX register.
5366 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5367 and write data from/to the VMX register.
5369 2011-02-14 Michael Snyder <msnyder@vmware.com>
5371 * command.h (enum command_class): New class 'no_set_class', for
5372 "show" commands without a corresponding "set" command.
5373 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5374 * copying.c (_initialize_copying): Ditto for "show copying" and
5376 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5378 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5379 which there is no corresponding "set" command (eg. "show copying").
5381 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5382 Jan Kratochvil <jan.kratochvil@redhat.com>
5384 * exec.c (section_table_available_memory): Change `len' parameter
5386 * exec.h (section_table_available_memory): Ditto.
5387 * value.h (read_value_memory): Rename the `offset' parameter to
5390 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5391 Jan Kratochvil <jan.kratochvil@redhat.com>
5393 * memrange.c (compare_mem_ranges): Mention sort order in
5395 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5396 * tracepoint.c (traceframe_available_memory): Extend comment to
5397 mention what happens to RESULT when the target does not support
5400 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5401 Jan Kratochvil <jan.kratochvil@redhat.com>
5403 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5406 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5408 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5409 No longer handle NULL values.
5411 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5413 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5414 * value.c: Include "exceptions.h".
5415 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5417 * cp-abi.c: Include gdb_assert.h.
5418 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5419 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5421 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5422 parameters. No longer returns -1 on error.
5423 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5425 * cp-valprint.c: Include exceptions.h.
5426 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5427 the baseclass_offset. Handle unavailable base classes. Use
5428 val_print_invalid_address.
5429 * p-valprint.c: Include exceptions.h.
5430 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5431 when fetching the baseclass_offset. No longer expect
5432 baseclass_offset returning -1. Handle unavailable base classes.
5433 Use val_print_invalid_address.
5434 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5435 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5436 `embedded_offset' and `val' parameters. Adjust.
5437 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5438 parameter, and change its type to gdb_byte pointer. Add
5439 `embedded_offset' and `val' parameters. Adjust. No longer expect
5440 baseclass_offset returning -1.
5441 (value_dynamic_cast): Use value_contents_for_printing rather than
5442 value_contents. Adjust.
5443 (search_struct_field): No longer expect baseclass_offset returning
5445 (search_struct_method): If reading memory from the target is
5446 necessary, wrap it in a new value to pass to baseclass_offset. No
5447 longer expect baseclass_offset returning -1.
5448 (find_method_list): No longer expect baseclass_offset returning
5449 -1. Use value_contents_for_printing rather than value_contents.
5450 * valprint.c (val_print_invalid_address): New function.
5451 * valprint.h (val_print_invalid_address): Declare.
5452 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5453 and `val' parameters. No longer expect baseclass_offset returning
5455 * gnu-v2-abi.c: Include "exceptions.h".
5456 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5457 parameters. Handle unavailable memory. Recurse through
5458 gnuv2_baseclass_offset directly, rather than through
5459 baseclass_offset. No longer returns -1 on not found, instead
5461 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5462 `val' parameters. Adjust.
5464 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5466 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5467 almost but not quite adjacent.
5469 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5471 * value.h (value_entirely_available): Declare.
5472 * value.c (value_entirely_available): New function.
5473 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5474 real type if the pointer is unavailable.
5476 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5478 * valops.c (value_repeat): Use read_value_memory instead of
5481 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5483 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5484 * value.c (value_contents_copy_raw, value_contents_copy): New
5486 (value_primitive_field): Use value_contents_copy_raw instead of
5488 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5490 (value_array, value_slice): Ditto.
5491 * valarith.c (value_subscripted_rvalue): Use
5492 value_contents_copy_raw instead of memcpy.
5494 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5496 <unavailable> references.
5498 * valops.c (get_value_at): Use value_from_contents_and_address,
5499 avoiding read_memory.
5501 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5503 * c-valprint.c (c_val_print): Print a string with unavailable
5504 contents as an array.
5506 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5508 * value.h (unpack_bits_as_long): Delete declaration.
5509 (unpack_value_bits_as_long): Declare.
5510 (unpack_value_field_as_long): Declare.
5511 (value_field_bitfield): Declare.
5512 * value.c (unpack_bits_as_long): Rename to...
5513 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5514 value parameters. Return the extracted result in a new output
5515 parameter. If the value contents are unavailable, return false,
5516 otherwise return true.
5517 (unpack_value_bits_as_long): New.
5518 (unpack_field_as_long): Rename to...
5519 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5520 Add embedded_offset and value parameters. Return the extracted
5521 result in a new output parameter. If the value contents are
5522 unavailable, return false, otherwise return true.
5523 (unpack_value_field_as_long): New.
5524 (unpack_field_as_long_1): New.
5525 (unpack_field_as_long): Reimplement as wrapper around
5526 unpack_value_field_as_long_1.
5527 (value_field_bitfield): New function.
5528 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5529 unpack_value_bits_as_long. Mark the value as unavailable, if it
5531 * jv-valprint.c (java_print_value_fields): Use
5532 value_field_bitfield.
5533 * p-valprint.c (pascal_object_print_value_fields): Use
5534 value_field_bitfield.
5535 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5537 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5539 * value.c (get_internalvar_integer): Also return the int value of
5540 TYPE_CODE_INT INTERNALVAR_VALUE values.
5541 (set_internalvar): Don't special case TYPE_CODE_INT.
5543 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5545 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5546 INTERNALVAR_POINTER.
5548 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5549 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5550 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5552 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5554 * value.h (value_available_contents_eq): Declare.
5555 * value.c (find_first_range_overlap): New function.
5556 (value_available_contents_eq): New function.
5557 * valprint.c (val_print_array_elements): Use
5558 value_available_contents_eq.
5559 * ada-valprint.c (val_print_packed_array_elements): Use
5560 value_available_contents_eq.
5561 * jv-valprint.c (java_value_print): Use
5562 value_available_contents_eq.
5564 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5566 * target.c (target_read_live_memory): New function.
5567 (memory_xfer_live_readonly_partial): New.
5568 (memory_xfer_partial): If reading from a traceframe, fallback to
5569 reading unavailable read-only memory from read-only regions of
5571 * tracepoint.c (disconnect_tracing): Adjust.
5572 (set_current_traceframe): New, factored out from
5573 set_traceframe_number.
5574 (set_traceframe_number): Reimplement to only change the traceframe
5575 number on the GDB side.
5576 (do_restore_current_traceframe_cleanup): Adjust.
5577 (make_cleanup_restore_traceframe_number): New.
5578 (cur_traceframe_number): New global.
5579 (tfile_open): Set cur_traceframe_number to no traceframe.
5580 (set_tfile_traceframe): New function.
5581 (tfile_trace_find): If looking up a traceframe using any method
5582 other than by number, make sure the current tfile traceframe
5583 matches gdb's current traceframe. Update the current tfile
5584 traceframe if the lookup succeeded.
5585 (tfile_fetch_registers, tfile_xfer_partial)
5586 (tfile_get_trace_state_variable_value): Make sure the remote
5587 traceframe matches gdb's current traceframe.
5588 * remote.c (remote_traceframe_number): New global.
5589 (remote_open_1): Set it to -1.
5590 (set_remote_traceframe): New function.
5591 (remote_fetch_registers, remote_store_registers)
5592 (remote_xfer_memory, remote_xfer_partial)
5593 (remote_get_trace_state_variable_value): Make sure the remote
5594 traceframe matches gdb's current traceframe.
5595 (remote_trace_find): If looking up a traceframe using any method
5596 other than by number, make sure the current remote traceframe
5597 matches gdb's current traceframe. Update the current remote
5598 traceframe if the lookup succeeded.
5599 * infrun.c (fetch_inferior_event): Adjust.
5600 * tracepoint.h (set_current_traceframe): Declare.
5601 (get_traceframe_number, set_traceframe_number): Add describing
5604 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5606 Mark pieces of values as unavailable if the corresponding memory
5609 * valops.c: Include tracepoint.h.
5610 (value_fetch_lazy): Use read_value_memory.
5611 (read_value_memory): New.
5612 * value.h (read_value_memory): Declare.
5613 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5614 * exec.c (section_table_available_memory): New function.
5615 * exec.h (section_table_available_memory): Declare.
5617 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5619 * Makefile.in (SFILES): Add memrange.c.
5620 (HFILES_NO_SRCDIR): Add memrange.h.
5621 (COMMON_OBS): Add memrange.o.
5622 * memrange.c: New file.
5623 * memrange.h: New file.
5624 * tracepoint.c: Include memrange.h.
5625 (struct mem_range): Delete.
5626 (mem_range_s): Delete.
5627 (traceframe_available_memory): New function.
5628 * tracepoint.h (traceframe_available_memory): Declare.
5630 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5632 * target.h (struct traceframe_info): Forward declare.
5633 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5634 (struct target_ops) <to_traceframe_info>: New field.
5635 (target_traceframe_info): New.
5636 * target.c (update_current_target): Inherit and default
5638 * remote.c (PACKET_qXfer_traceframe_info): New.
5639 (remote_protocol_features): Register qXfer:traceframe-info:read.
5640 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5641 (remote_traceframe_info): New.
5642 (init_remote_ops): Install it.
5643 (_initialize_remote): Install "set/show remote traceframe-info"
5645 * tracepoint.h (parse_traceframe_info): Declare.
5646 * tracepoint.c (struct mem_range): New.
5647 (mem_range_s): New typedef.
5648 (struct traceframe_info): New.
5649 (traceframe_info): New global.
5650 (free_traceframe_info): New function.
5651 (clear_traceframe_info): New function.
5652 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5654 (build_traceframe_info): New function.
5655 (tfile_traceframe_info): New function.
5656 (init_tfile_ops): Install tfile_traceframe_info.
5657 (traceframe_info_start_memory, free_result): New functions.
5658 (memory_attributes, traceframe_info_elements): New globals.
5659 (parse_traceframe_info, get_traceframe_info): New functions.
5660 * features/traceframe-info.dtd: New file.
5661 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5663 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5665 Base support for <unavailable> value contents.
5667 * value.h (value_bytes_available): Declare.
5668 (mark_value_bytes_unavailable): Declare.
5669 * value.c (struct range): New struct.
5670 (range_s): New typedef.
5671 (ranges_overlap): New function.
5672 (range_lessthan): New function.
5673 (ranges_contain_p): New function.
5674 (struct value) <unavailable>: New field.
5675 (value_bytes_available): New function.
5676 (mark_value_bytes_unavailable): New function.
5677 (require_not_optimized_out): Constify parameter.
5678 (require_available): New function.
5679 (value_contents_all, value_contents): Require all bytes be
5681 (value_free): Free `unavailable'.
5682 (value_copy): Copy `unavailable'.
5683 * valprint.h (val_print_unavailable): Declare.
5684 * valprint.c (valprint_check_validity): Rename `offset' parameter
5685 to `embedded_offset'. If printing a scalar, check whether the
5686 value chunk is available.
5687 (val_print_unavailable): New.
5688 (val_print_scalar_formatted): Check whether the value is
5690 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5691 pretty-printing unavailable values.
5693 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5695 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5696 * c-typeprint.c (c_type_print_args): Update the function comment. New
5697 variable param_type, initialize it. Remove const/volatile qualifiers
5698 for language_cplus and !show_artificial. Use param_type.
5700 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5702 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5703 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5704 * symtab.h (struct symtab) <next>: Comment extension.
5706 2011-02-12 Yao Qi <yao@codesourcery.com>
5708 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5710 2011-02-11 Yao Qi <yao@codesourcery.com>
5712 * common/Makefile.in: Add copyright header.
5714 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5716 * infrun.c (proceed): Move switching out and in of tfind mode from
5718 (fetch_inferior_event): ... to here.
5720 2011-02-11 Yao Qi <yao@codesourcery.com>
5722 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5724 * configure.ac: Add common to sub dir.
5725 * configure: Regenerate.
5727 2011-02-11 Yao Qi <yao@codesourcery.com>
5731 * common/Makefile.in: New.
5732 * common/configure.ac: New.
5733 * common/aclocal.m4: New.
5734 * common/configure: Generate.
5736 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5738 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5739 side of the parenthesis.
5742 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5743 * vec.h (VEC_block_remove): Fix comment.
5745 2011-02-08 Michael Snyder <msnyder@vmware.com>
5747 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5749 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5751 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5752 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5755 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5758 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5760 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5761 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5763 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5765 * dwarf2read.c (read_subroutine_type): Set special calling
5766 convention flag for functions compiled by IBM XL C for OpenCL.
5767 * ppc-sysv-tdep.c: Include "dwarf2.h"
5768 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5770 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5771 IBM OpenCL vector types calling convention.
5772 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5773 (ppc_sysv_abi_broken_return_value): Likewise.
5774 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5775 types calling convention.
5776 (ppc64_sysv_abi_return_value): Likewise.
5777 * spu-tdep.c: Include "dwarf2.h"
5778 (spu_return_value): Implement IBM OpenCL vector types calling
5781 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5783 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5784 correct ABI for AltiVec vector arguments.
5786 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5788 * valprint.c (val_print): Extend comment.
5789 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5790 interface explanation to val_print.
5791 (ada_val_print_array): Adjust comment to current interface.
5792 (print_field_values): Adjust comment to current interface.
5793 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5794 explanation to val_print.
5795 * f-valprint.c (f_val_print): Ditto.
5796 * jv-valprint.c (java_val_print): Ditto.
5797 * m2-valprint.c (m2_val_print): Ditto.
5798 * p-valprint.c (pascal_val_print): Ditto.
5800 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5802 * breakpoint.c (parse_breakpoint_sals): Fix description.
5804 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5805 Oguz Kayral <oguzkayral@gmail.com>
5807 * python/py-inferior.c (python_on_normal_stop): New function.
5808 (python_on_resume): New function.
5809 (python_inferior_exit): New function.
5810 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5811 inferior_exit observers.
5812 * python/py-evtregistry.c: New file.
5813 * python/py-threadevent.c : New file.
5814 * python/py-event.c: New file.
5815 * python/py-evts.c: New file.
5816 * python/py-continueevent.c: New file.
5817 * python/py-bpevent.c: New file.
5818 * python/py-signalevent.c: New file.
5819 * python/py-exetiedevent.c: New file.
5820 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5821 Move struct breakpoint_object from here...
5822 * python/python-internal.h: ... to here.
5823 * python/py-event.h: New file.
5824 * python/py-events.h: New file.
5825 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5826 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5827 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5828 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5829 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5830 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5831 Add build rules for all the above.
5833 2011-02-04 Tom Tromey <tromey@redhat.com>
5835 * dwarf2read.c (dwarf2_section_empty_p): New function.
5836 (dwarf2_read_section): Use dwarf2_section_empty_p.
5837 (dwarf2_section_size): New function.
5838 (dwarf2_get_section_info): Unconditionally read section.
5839 (dwarf2_read_index): Use dwarf2_section_empty_p.
5840 (partial_read_comp_unit_head): Use dwarf2_section_size.
5841 (dwarf2_symbol_mark_computed): Likewise.
5843 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5845 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5847 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5849 * mips-linux-tdep.c: Include xml-syscall.h.
5850 (mips_linux_get_syscall_number): New function.
5851 (mips_linux_init_abi): Add calls to
5852 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5853 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5854 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5855 * syscalls/mips-n32-linux.xml: New file.
5856 * syscalls/mips-n64-linux.xml: New file.
5857 * syscalls/mips-o32-linux.xml: New file.
5859 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5861 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5862 Complain about inverted range entries.
5863 (dwarf2_record_block_ranges): Likewise.
5865 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5868 * breakpoint.c (update_watchpoint): Fix name of the
5869 update_global_location_list function.
5870 (print_one_breakpoint): Fix typo.
5871 (_initialize_breakpoint): Remove extra space in hbreak help
5873 * breakpoint.h (struct bp_location) <length>: Fix field
5876 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5878 * regcache.c (registers_changed_ptid): Don't explictly always
5879 clear `current_regcache'. Only clear current_thread_ptid and
5880 current_thread_arch when PTID matches. Only reinit the frame
5881 cache if PTID matches the current inferior_ptid. Move alloca(0)
5883 (registers_changed): ... here.
5885 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5887 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5888 starts with __stack_chk_guard as stack guard symbol.
5890 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5892 * disasm.c (compare_lines): Handle the end of sequence markers
5893 within the line table to better support disassembling over
5894 compilation unit boundaries.
5896 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5898 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5899 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5900 implementation even if no symbols are available.
5901 (thumb_analyze_prologue): Update call to skip_prologue_function.
5902 (arm_analyze_prologue): Likewise.
5904 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5906 * arm-tdep.c: Include "observer.h".
5907 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5908 (arm_exidx_data_key): New static variable.
5909 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5910 (struct arm_exidx_data): Likewise.
5911 (arm_exidx_data_free): New function.
5912 (arm_compare_exidx_entries): Likewise.
5913 (arm_obj_section_from_vma): Likewise.
5914 (arm_exidx_new_objfile): Likewise.
5915 (arm_find_exidx_entry): Likewise.
5916 (arm_exidx_fill_cache): Likewise.
5917 (arm_exidx_unwind_sniffer): Likewise.
5918 (arm_exidx_unwind): New global variable.
5919 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5920 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5921 observer. Register arm_exidx_data_key as objfile data.
5923 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5925 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5926 due to accessing uninitialized variable. Fix indentation.
5928 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5930 * c-valprint.c (c_value_print): When doing virtual base pointer
5931 adjustment, create a new value with adjusted contents rather than
5932 changing the contents of the value being printed (and getting it
5935 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5937 * xml-support.c (xml_find_attribute): New.
5938 (xinclude_start_include): Use it.
5939 * xml-support.h (xml_find_attribute): Declare.
5940 * memory-map.c (memory_map_start_memory)
5941 (memory_map_start_property): Use xml_find_attribute.
5942 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5944 * remote.c (start_thread): Use xml_find_attribute.
5945 * solib-target.c (library_list_start_segment)
5946 (library_list_start_section, library_list_start_library)
5947 (library_list_start_list): Use xml_find_attribute.
5948 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5949 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5950 (tdesc_start_field): Use xml_find_attribute.
5952 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
5954 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5955 (BUILD_OCL_VTYPES): Update.
5957 2011-02-02 Joel Brobecker <brobecker@adacore.com>
5959 * configure.ac: Work around non-GNU sed limitation when computing
5960 python version number.
5961 * configure: Regenerate.
5963 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5965 Fix debug printing of TYPE_INSTANCE.
5966 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5967 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5969 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5971 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5972 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5973 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5974 * ada-operator.inc: Rename the file to ...
5975 * ada-operator.def: ... here, wrap all the entries by macro OP.
5976 * expprint.c (op_name_standard): Remove all the entries. Include
5977 "std-operator.def" instead.
5978 * expression.h (enum exp_opcode): Include "std-operator.def" and
5979 "ada-operator.def". Move all the entries ...
5980 * std-operator.def: ... here, wrap all the entries by macro OP.
5982 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5984 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5985 * breakpoint.c (remove_jit_event_breakpoints): New function.
5986 * jit.c (jit_descriptor_addr): Delete.
5987 (registering_code): Delete.
5988 (clear_int): Delete.
5989 (jit_inferior_data): New variable.
5990 (struct jit_inferior_data): New type.
5991 (get_jit_inferior_data): New function.
5992 (jit_inferior_data_cleanup): New function.
5993 (jit_read_descriptor): Adjust.
5994 (jit_register_code): Adjust.
5995 (jit_breakpoint_re_set_internal): New function; move code here ...
5996 (jit_inferior_init): ... from here.
5997 (jit_breakpoint_re_set): Adjust.
5998 (jit_reset_inferior_data_and_breakpoints): New function.
5999 (jit_inferior_created_observer): Adjust.
6000 (jit_inferior_exit_hook): Adjust.
6001 (jit_executable_changed_observer): New function.
6002 (jit_event_handler): Adjust.
6003 (_initialize_jit): Adjust.
6005 2011-01-31 Michael Snyder <msnyder@vmware.com>
6007 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
6010 2011-01-31 Tom Tromey <tromey@redhat.com>
6013 * python/python.c (execute_gdb_command): Call
6014 prevent_dont_repeat.
6015 * top.c (suppress_dont_repeat): New global.
6016 (dont_repeat): Use it.
6017 (prevent_dont_repeat): New function.
6018 * command.h (prevent_dont_repeat): Declare.
6020 2011-01-31 Tom Tromey <tromey@redhat.com>
6022 * infcmd.c (finish_backward): Use breakpoint_set_silent.
6023 * python/py-breakpoint.c (bppy_set_silent): Use
6024 breakpoint_set_silent.
6025 (bppy_set_thread): Use breakpoint_set_thread.
6026 (bppy_set_task): Use breakpoint_set_task.
6027 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
6028 (breakpoint_set_task): Declare.
6029 (make_breakpoint_silent): Remove.
6030 * breakpoint.c (breakpoint_set_silent): New function.
6031 (breakpoint_set_thread): Likewise.
6032 (breakpoint_set_task): Likewise.
6033 (make_breakpoint_silent): Remove.
6035 2011-01-31 Tom Tromey <tromey@redhat.com>
6037 * breakpoint.h (user_breakpoint_p): Declare.
6038 * breakpoint.c (user_breakpoint_p): New function.
6039 (breakpoint_1): Use it.
6040 (save_breakpoints): Likewise.
6042 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6044 * configure.ac: Add handling of Python distribution on Windows.
6045 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
6046 sysconfig variables are not defined, then do not use them.
6047 On Windows, if LIBPL is not defined, then use prefix + '/libs'
6048 instead. On Windows, return all paths using forward-slashes
6049 rather than backslashes.
6051 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6053 * configure.ac: Remove fallback behavior for building
6054 against Python. Remove tweaking of Python include path.
6055 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
6056 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
6057 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
6058 Always restore CPPFLAGS and LIBS after linking test.
6059 * configure: Regenerated.
6060 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
6061 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
6062 * python/python-internal.h: Adjust includes of Python .h files.
6064 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6066 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
6069 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6071 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
6074 2011-01-31 Yao Qi <yao@codesourcery.com>
6076 * arm-linux-nat.c: Update calls to regcache_register_status
6077 instead of regcache_valid_p.
6078 * aix-thread.c: Likewise.
6079 * i386gnu-nat.c: Likewise.
6081 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6084 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
6085 touching TYPE_FIELD_ARTIFICIAL.
6087 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
6089 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
6092 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6094 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
6095 selected, don't try iterating over the traceframe's blocks.
6096 (tfile_has_stack): If there's no traceframe selected, then there's
6098 (tfile_has_registers): If there's no traceframe selected, then
6099 there's no registers.
6101 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6103 * target.c (memory_xfer_partial): No need to restore shadows if we
6104 haven't read anything.
6106 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6108 * mips-tdep.c (mips_print_register): Use get_frame_register_value
6109 and val_print_scalar_formatted.
6111 2011-01-27 Pedro Alves <pedro@codesourcery.com>
6113 * tracepoint.c (tfile_read): New.
6114 (tfile_open): Use it.
6115 (tfile_get_traceframe_address): Use it.
6116 (tfile_trace_find): Use it.
6117 (walk_blocks_callback_func): New typedef.
6118 (match_blocktype): New function.
6119 (traceframe_walk_blocks): New function.
6120 (traceframe_find_block_type): New function.
6121 (tfile_fetch_registers, tfile_xfer_partial)
6122 (tfile_get_trace_state_variable_value): Use
6123 traceframe_find_block_type and tfile_read.
6125 2011-01-26 Kevin Buettner <kevinb@redhat.com>
6127 * remote-mips.c: Add internationalization mark ups. Remove
6128 trailing \n from already marked up strings.
6130 2011-01-26 Tom Tromey <tromey@redhat.com>
6132 * python/py-prettyprint.c (print_string_repr): Clear
6133 'addressprint' option when calling val_print_string.
6134 (print_children): Handle Val_pretty_default. Clear 'addressprint'
6135 option when calling val_print_string.
6137 2011-01-26 Tom Tromey <tromey@redhat.com>
6139 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
6141 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6143 (gdb_py_longest, gdb_py_ulongest): New typedefs.
6144 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6145 (gdb_py_long_as_ulongest): New defines.
6146 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6147 (gdb_py_int_as_long): Declare.
6148 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6149 GDB_PY_LL_ARG, gdb_py_object_from_longest.
6150 (valpy_long): Add comment.
6151 * python/py-utils.c (get_addr_from_python): Use
6152 gdb_py_long_as_ulongest. Handle overflow properly.
6153 (gdb_py_object_from_longest): New function.
6154 (gdb_py_object_from_ulongest): Likewise.
6155 (gdb_py_int_as_long): Likewise.
6156 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6157 * python/py-symtab.c (salpy_get_pc): Use
6158 gdb_py_long_from_ulongest.
6159 (salpy_get_line): Use PyInt_FromLong.
6160 * python/py-param.c (set_parameter_value): Use
6162 * python/py-lazy-string.c (stpy_get_address): Use
6163 gdb_py_long_from_ulongest.
6164 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6165 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6166 * python/py-breakpoint.c (bppy_set_thread): Use
6168 (bppy_set_task): Likewise.
6169 (bppy_set_ignore_count): Likewise.
6170 (bppy_set_hit_count): Likewise.
6171 * python/py-block.c (blpy_get_start): Use
6172 gdb_py_object_from_ulongest.
6173 (blpy_get_end): Likewise.
6174 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6176 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
6179 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6180 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6181 equality test for objfile, initialize addr_low if needed.
6183 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6185 * tui/tui-regs.c (tui_register_format): Remove dead code.
6187 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6189 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6190 instead of print_scalar_formatted.
6191 (print_scalar_formatted): Don't handle 's' format strings here,
6192 and add an assertion that we never see such format here.
6193 * valprint.h (val_print_scalar_formatted): Declare.
6194 * valprint.c (val_print_scalar_formatted): New.
6195 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6196 instead of print_scalar_formatted.
6197 * jv-valprint.c (java_val_print): Ditto.
6198 * p-valprint.c (pascal_val_print): Ditto.
6199 * ada-valprint.c (ada_val_print_1): Ditto.
6200 * f-valprint.c (f_val_print): Ditto.
6201 * infcmd.c (registers_info): Ditto.
6202 * m2-valprint.c (m2_val_print): Ditto.
6204 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6206 * m2-valprint.c (print_unbounded_array): Pass
6207 value_contents_for_printing rather than value_contents, to
6208 m2_print_array_contents. Also pass in the value.
6210 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6212 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6213 (save_gdb_index_command): Switch to .gdb_index version 4.
6215 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6217 * mi/mi-main.c (get_register): Use get_frame_register_value rather
6218 than frame_register, and always pass a valid value to val_print.
6220 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6222 Centralize printing "<optimized out>".
6224 * valprint.h (val_print_optimized_out): Declare.
6225 * cp-valprint.c (cp_print_value_fields): Use
6226 val_print_optimized_out.
6227 * jv-valprint.c (java_print_value_fields): Ditto.
6228 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6229 * printcmd.c (print_formatted): Ditto.
6230 * valprint.c (valprint_check_validity): Ditto.
6231 (value_check_printable): Ditto.
6232 (val_print_optimized_out): New.
6234 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6236 * infcmd.c (default_print_registers_info): Allocate values so to
6237 never pass a NULL value to val_print.
6239 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6241 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6242 boolean. Make sure to always pass a value that matches the
6243 contents buffer to callees. Preserve `address' for following
6245 * value.c (value_contents_for_printing_const): New.
6246 (value_address): Constify value argument.
6247 * value.h (value_contents_for_printing_const): Declare.
6248 (value_address): Constify value argument.
6250 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6252 * regcache.c (struct regcache_descr): Rename
6253 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6254 and sizeof_cooked_register_valid_p to
6255 sizeof_cooked_register_status.
6256 (init_regcache_descr): Adjust.
6257 (struct regcache): Rename register_valid_p field to
6259 (regcache_xmalloc_1, regcache_xfree, regcache_save)
6260 (do_cooked_read): Adjust.
6261 (regcache_valid_p): Rename to ...
6262 (regcache_register_status): ... this. Adjust.
6263 (regcache_invalidate): Adjust.
6264 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6266 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
6267 as unavailable, not valid.
6268 (regcache_dump): Adjust.
6269 * regcache.h (enum register_status): New.
6270 (regcache_register_status): Declare.
6271 (regcache_invalidate): Delete declaration.
6272 * corelow.c (get_core_registers): Adjust.
6273 * tracepoint.c (tfile_fetch_registers): Adjust.
6274 * trad-frame.c (REG_VALUE): Rename to ...
6275 (TF_REG_VALUE): ... this.
6276 (REG_UNKNOWN): Rename to ...
6277 (TF_REG_UNKNOWN): ... this.
6278 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
6279 * mi/mi-main.c (register_changed_p): Adjust.
6281 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6283 * regcache.c (struct regcache_descr): Remove outdated comment.
6284 (init_regcache_descr): Remove sizeof_raw_register_valid_p
6286 (regcache_xmalloc): Rename to ...
6287 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
6288 Allocate the regcache type accordingly.
6289 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
6290 (regcache_xfree): Asser the source is also readonly. Copy sizeof
6291 cooked registers, not raw.
6292 (regcache_dup_no_passthrough): Delete.
6293 (get_thread_arch_regcache): Use regcache_xmalloc_1.
6294 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
6295 mention obsolete write_register_bytes.
6296 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6298 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6300 Stop remote_read_bytes from handling partial reads itself.
6302 * remote-fileio.c: Include target.h.
6303 (remote_fileio_write_bytes): Delete.
6304 (remote_fileio_func_open, remote_fileio_func_write)
6305 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6307 (remote_fileio_func_stat): Use target_read_memory and
6308 target_write_memory.
6309 (remote_fileio_func_gettimeofday): Use target_write_memory.
6310 (remote_fileio_func_system): Use target_read_memory.
6311 * remote.c (remote_write_bytes): Make it static.
6312 (remote_read_bytes): Don't handle partial reads here.
6313 * remote.h (remote_read_bytes): Delete declaration.
6315 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6317 Simplify XML parsing a bit.
6319 * xml-support.h (gdb_xml_parse_quick): Declare.
6320 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6321 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6323 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6324 gdb_xml_create_parser_and_cleanup_1.
6325 (gdb_xml_parse_quick): New.
6326 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6327 * osdata.c (osdata_parse): Ditto.
6328 * remote.c (remote_threads_info): Ditto.
6329 * solib-target.c (solib_target_parse_libraries): Ditto.
6330 * xml-syscall.c (syscall_parse_xml): Ditto.
6331 * xml-tdesc.c (tdesc_parse_xml): Ditto.
6333 2011-01-24 Kevin Buettner <kevinb@redhat.com>
6335 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6336 with remote-mips.o added to gdb_target_obs.
6337 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6339 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6341 * ada-valprint.c (val_print_packed_array_elements): Pass the
6342 correct struct value to val_print.
6343 (ada_val_print_1): Ditto.
6345 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6347 Don't lose embedded_offset in printing routines throughout.
6349 * valprint.h (val_print_array_elements): Change prototype.
6350 * valprint.c (val_print_array_elements): Add `embedded_offset'
6351 parameter, and adjust to pass it down to val_print, while passing
6352 `valaddr' or `address' unmodified. Take embedded_offset into
6353 account when checking repetitions.
6354 * c-valprint.c (c_val_print): Pass embedded_offset to
6355 val_print_array_elements instead of adjusting `valaddr' and
6357 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6358 embedded_offset to val_print_array_elements instead of adjusting
6360 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6361 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6362 val_print_array_elements and pascal_object_print_value_fields
6363 instead of adjusting `valaddr'.
6364 (pascal_object_print_value_fields): Add `offset' parameter, and
6366 (pascal_object_print_value): Add `offset' parameter, and adjust to
6368 (pascal_object_print_static_field): Use
6369 value_contents_for_printing/value_embedded_offset, rather than
6371 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6372 parameter, and adjust to use it. Use
6373 value_contents_for_printing/value_embedded_offset, rather than
6375 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6376 (ada_val_print_array): Add `offset' parameter, and adjust to use
6378 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6379 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6380 Instead work with offsets. Use
6381 value_contents_for_printing/value_embedded_offset, rather than
6382 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6383 and use value_from_pointer to extract a target pointer, rather
6384 than value_from_longest.
6385 (print_variant_part): Add `offset' parameter. Replace
6386 `outer_valaddr' parameter by a new `outer_offset' parameter.
6387 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6388 (ada_value_print): Use
6389 value_contents_for_printing/value_embedded_offset, rather than
6391 (print_record): Add `offset' parameter, and adjust to pass it
6393 (print_field_values): Add `offset' parameter. Replace
6394 `outer_valaddr' parameter by a new `outer_offset' parameter.
6395 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6396 Use value_contents_for_printing/value_embedded_offset, rather than
6398 * d-valprint.c (dynamic_array_type): Use
6399 value_contents_for_printing/value_embedded_offset, rather than
6401 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6402 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6403 (java_print_value_fields): Take `offset' into account. Don't
6404 re-adjust `valaddr'. Instead pass down adjusted offsets.
6405 (java_val_print): Take `embedded_offset' into account. Pass it to
6406 java_print_value_fields.
6407 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6408 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6409 down adjusted offsets.
6410 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6411 (f_val_print): Take `embedded_offset' into account.
6413 2011-01-21 Joel Brobecker <brobecker@adacore.com>
6415 * inflow.c: Include "gdbcmd.h".
6416 (interactive_mode): New static global, moved here from top.c.
6417 (show_interactive_mode): New function, moved here from top.c.
6418 use gdb_has_a_terminal instead of input_from_terminal_p to
6419 determine the current mode.
6420 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6422 (_initialize_inflow): Add the "set/show interactive-mode"
6423 commands. Moved here from top.c, after having adjusted slightly
6425 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6427 (input_from_terminal_p): Remove handling of "interactive-mode"
6428 setting, moved to infow.c.
6429 (init_main): Remove creation of the "set/show interactive-mode"
6430 commands, moved to inflow.c.
6432 2011-01-19 Joel Brobecker <brobecker@adacore.com>
6434 * NEWS: Add entry for native ia64-hpux support.
6436 2011-01-19 Tom Tromey <tromey@redhat.com>
6439 * thread.c (free_thread): Free 'name'.
6440 (print_thread_info): Emit thread name. Change CLI output.
6441 (thread_name_command): New function.
6442 (do_captured_thread_select): Emit newline.
6443 (_initialize_thread): Register 'thread name' command.
6444 * target.h (struct target_ops) <to_thread_name>: New field.
6445 (target_thread_name): New macro.
6446 * target.c (update_current_target): Handle to_thread_name.
6447 * python/py-infthread.c (thpy_get_name): New function.
6448 (thpy_set_name): Likewise.
6449 (thread_object_getset): Add "name".
6450 * linux-nat.c (linux_nat_thread_name): New function.
6451 (linux_nat_add_target): Set to_thread_name.
6452 * gdbthread.h (struct thread_info) <name>: New field.
6454 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6456 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6457 (ada_val_print_1): Likewise.
6459 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6461 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6462 upper limit address is not greater than the function end address
6463 when the upper limit could not be computed using the debugging
6466 2011-01-17 Tom Tromey <tromey@redhat.com>
6468 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6470 * utils.c: Include gdb_regex.h.
6471 (do_regfree_cleanup): New function.
6472 (make_regfree_cleanup): Likewise.
6473 (get_regcomp_error): Likewise.
6474 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6476 2011-01-17 Tom Tromey <tromey@redhat.com>
6478 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6481 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6483 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6484 for internal variables.
6485 (last_was_structop): New static variable.
6486 (COMPLETE): New token.
6487 (field_exp): New rule to group all '.' suffix handling.
6488 Add mark_struct_expression calls when approriate to be able
6489 to correctly find fields for completion.
6490 (yylex): Adapt to handle field completion and set INTVAR when
6493 2011-01-14 Yao Qi <yao@codesourcery.com>
6495 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6496 save_reggroup, restore_reggroup and all_reggroup.
6498 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6500 * ada-valprint. (ada_printchar): Use the correct type length
6501 in call to ada_emit_char.
6502 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6504 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6506 * solib-som.h (hpux_major_release): Declare variable here.
6507 * solib-som.c: Remove <sys/utsname.h> header.
6508 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6509 (hpux_major_release): Make global, change default value to
6510 DEFAULT_HPUX_MAJOR_RELEASE.
6511 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6512 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6513 Add "solib-som.h" header.
6514 (set_hpux_major_release): New function.
6515 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6517 2011-01-14 Mike Frysinger <vapier@gentoo.org>
6519 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6521 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6523 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6524 new-line at end of warning message.
6525 (ia64_hpux_store_register): Remove trailing new-line at end of
6527 * ia64-hpux-tdep.c: Rephrase comment.
6528 * solib-ia64-hpux.c (struct dld_info): Change type of field
6529 dld_flags from "long long" to ULONGEST.
6531 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6533 * target.h (deprecated_child_ops): Delete declaration.
6534 * target.c (deprecated_child_ops): Delete definition.
6536 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6538 * Makefile.in (hpux-thread.o): Delete rule.
6539 * configure.ac: Don't check for HPUX DCE threads support.
6540 * configure, config.in: Regenerate.
6541 * hppa-hpux-nat.c (child_suppress_run): Delete.
6542 (hppa_hpux_child_can_run): Delete.
6543 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6544 * hpux-thread.c: Delete.
6546 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6548 * hpux-thread.c (hpux_pid_to_str): Delete.
6550 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6552 * ada-valprint.c (ada_emit_char): Remove strange code.
6553 Check that c is <= UCHAR_MAX before passing it to isascii.
6554 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6556 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6558 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6559 to the case where instream is stdin.
6561 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6563 * ia64-tdep.h (struct regcache): Forward declare.
6564 (struct ia64_infcall_ops): New struct type.
6565 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6567 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6568 Renames ia64_find_global_pointer.
6569 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6570 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6571 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6573 (ia64_infcall_ops): New static global constant.
6574 (ia64_gdbarch_init): Set tdep->infcall_ops.
6575 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6576 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6577 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6578 (ia64_hpux_dummy_code): New static global constant.
6579 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6580 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6581 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6583 (ia64_hpux_infcall_ops): New static global constant.
6584 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6585 for inferior function calls to work properly on ia64-hpux.
6587 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6589 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6590 * ia64-tdep.h (struct frame_info): forward declaration.
6591 (struct gdbarch_tdep): Add field size_of_register_frame.
6592 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6593 to determine the size of the register frame.
6594 (ia64_size_of_register_frame): New function.
6595 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6596 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6597 (IA64_HPUX_UREG_REASON): New macro.
6598 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6600 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6601 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6602 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6605 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6607 Add support for ia64-hpux.
6608 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6609 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6611 * configure.host: Add handling for ia64-hpux hosts. Add associated
6613 * configure.tgt: Add handling for ia64-hpux targets.
6614 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6615 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6616 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6618 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6620 [ttrace] Compute thread list immediately after attach.
6621 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6623 (inf_ttrace_attach): Use it.
6625 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6627 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6628 if we could not determine the frame's function address. Instead,
6629 use the frame's PC, and then continue.
6631 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6633 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6634 not already defined.
6636 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6638 * ia64-tdep.c (ia64_struct_type_p): New function.
6639 (ia64_extract_return_value): Handle integral values that are
6640 less than 8 bytes long.
6641 (ia64_push_dummy_call): Likewise.
6643 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6645 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6646 floatformat_ia64_ext.
6647 (floatformat_ia64_ext_big): New static const.
6648 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6650 2011-01-12 Tom Tromey <tromey@redhat.com>
6652 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6654 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6655 (mi_cmd_thread_list_ids): Likewise.
6656 (mi_cmd_data_list_changed_registers): Likewise.
6657 (mi_cmd_data_list_register_values): Likewise.
6658 (mi_cmd_data_write_register_values): Likewise.
6659 (mi_cmd_data_evaluate_expression): Likewise.
6660 (mi_cmd_data_read_memory): Likewise.
6661 (mi_cmd_data_read_memory_bytes): Likewise.
6662 (mi_cmd_data_write_memory): Likewise.
6663 (mi_cmd_enable_timings): Likewise.
6664 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6665 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6666 (mi_cmd_var_delete): Likewise.
6667 (mi_cmd_var_set_format): Likewise.
6668 (mi_cmd_var_show_format): Likewise.
6669 (mi_cmd_var_info_num_children): Likewise.
6670 (mi_cmd_var_list_children): Likewise.
6671 (mi_cmd_var_info_type): Likewise.
6672 (mi_cmd_var_info_expression): Likewise.
6673 (mi_cmd_var_show_attributes): Likewise.
6674 (mi_cmd_var_assign): Likewise.
6675 (mi_cmd_var_update): Likewise.
6676 (mi_cmd_enable_pretty_printing): Likewise.
6677 (mi_cmd_var_set_update_range): Likewise.
6678 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6680 (mi_cmd_target_file_put): Likewise.
6681 (mi_cmd_target_file_delete): Likewise.
6682 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6684 (mi_cmd_stack_info_depth): Likewise.
6685 (mi_cmd_stack_list_locals): Likewise.
6686 (mi_cmd_stack_list_args): Likewise.
6687 (mi_cmd_stack_select_frame): Likewise.
6688 (mi_cmd_stack_select_frame): Likewise.
6689 (mi_cmd_stack_info_frame): Likewise.
6690 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6692 (mi_cmd_file_list_exec_source_files): Likewise.
6693 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6694 (mi_cmd_env_cd): Likewise.
6695 (mi_cmd_env_path): Likewise.
6696 (mi_cmd_env_dir): Likewise.
6697 (mi_cmd_inferior_tty_show): Likewise.
6698 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6699 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6700 (mi_cmd_break_watch): Likewise.
6702 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6704 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6705 (ppc_linux_insert_hw_breakpoint): Likewise.
6706 (ppc_linux_remove_hw_breakpoint): Likewise.
6707 (ppc_linux_insert_watchpoint): Likewise.
6709 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6710 Jan Kratochvil <jan.kratochvil@redhat.com>
6712 PR fortran/11104 and DWARF unbound arrays detection.
6713 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6714 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6715 unspecified upper bound.
6716 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6717 variables array_size_array, tmp_type and offset_item. New variable
6718 array. Remove call to f77_get_upperbound. New variables array_type
6719 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6720 the final call to deprecated_set_value_type.
6722 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6724 Make value allocations more lazy.
6725 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6726 instead of allocate_value and set_value_lazy when possible.
6727 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6728 instead of allocate_value and set_value_lazy.
6729 * findvar.c (value_of_register_lazy): Likewise.
6730 (read_var_value): Remove V preallocation, call just check_typedef in
6731 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6732 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6733 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6734 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6735 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6736 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6737 the end, remove set_value_lazy there.
6738 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6739 instead of allocate_value and set_value_lazy when possible.
6740 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6741 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6742 of allocate_value and set_value_lazy.
6743 (value_from_contents_and_address): Use allocate_value_lazy instead of
6744 allocate_value and set_value_lazy when possible.
6746 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6748 * disasm.c (dump_insns): Support dumping opcodes for MI.
6749 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6750 dumping of instruction opcodes.
6752 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6754 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6757 2011-01-11 Tom Tromey <tromey@redhat.com>
6759 * thread.c (do_captured_thread_select): Emit newline before
6762 2011-01-11 Michael Snyder <msnyder@vmware.com>
6764 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6765 * score-tdep.c: Ditto.
6766 * score-tdep.h: Ditto.
6767 * ser-base.c: Ditto.
6768 * ser-go32.c: Ditto.
6771 * ser-mingw.c: Ditto.
6772 * ser-pipe.c: Ditto.
6774 * ser-unix.c: Ditto.
6775 * sh64-tdep.c: Ditto.
6776 * shnbsd-nat.c: Ditto.
6780 * solib-darwin.c: Ditto.
6781 * solib-frv.c: Ditto.
6783 * solib-irix.c: Ditto.
6784 * solib-osf.c: Ditto.
6785 * solib-pa64.c: Ditto.
6786 * solib-som.c: Ditto.
6787 * solib-spu.c: Ditto.
6788 * solib-sunos.c: Ditto.
6789 * solib-svr4.c: Ditto.
6791 * sol-thread.c: Ditto.
6795 * sparc64-linux-tdep.c: Ditto.
6796 * sparc64-tdep.c: Ditto.
6797 * sparc-linux-nat.c: Ditto.
6798 * sparc-linux-tdep.c: Ditto.
6799 * sparc-sol2-nat.c: Ditto.
6800 * sparc-sol2-tdep.c: Ditto.
6801 * sparc-tdep.c: Ditto.
6802 * sparc-tdep.h: Ditto.
6803 * spu-tdep.c: Ditto.
6804 * stabsread.c: Ditto.
6805 * stabsread.h: Ditto.
6813 * target-descriptions.c: Ditto.
6814 * target-descriptions.h: Ditto.
6816 * target-memory.c: Ditto.
6817 * terminal.h: Ditto.
6820 * tracepoint.c: Ditto.
6821 * tracepoint.h: Ditto.
6822 * trad-frame.h: Ditto.
6823 * typeprint.c: Ditto.
6825 2011-01-11 Michael Snyder <msnyder@vmware.com>
6827 * ui-file.c: Comment cleanup, mostly periods and spaces.
6832 * v850-tdep.c: Ditto.
6833 * valarith.c: Ditto.
6835 * valprint.c: Ditto.
6836 * valprint.h: Ditto.
6841 * vax-tdep.c: Ditto.
6845 * windows-nat.c: Ditto.
6846 * windows-tdep.c: Ditto.
6847 * xcoffread.c: Ditto.
6848 * xcoffsolib.c: Ditto.
6849 * xml-support.c: Ditto.
6850 * xstormy16-tdep.c: Ditto.
6851 * xtensa-tdep.c: Ditto.
6852 * xtensa-tdep.h: Ditto.
6854 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6856 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6857 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6859 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6860 Thiago Jung Bauermann <bauerman@br.ibm.com>
6862 Implement support for PowerPC BookE ranged watchpoints.
6864 (struct breakpoint_ops) <resources_needed>: New method.
6865 Initialize to NULL in all existing breakpoint_ops instances.
6866 (struct breakpoint) <exact>: New field.
6867 (target_exact_watchpoints): Declare external global.
6868 * breakpoint.c (target_exact_watchpoints): New global flag.
6869 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6870 b->enable_state to bp_enabled before calling
6871 hw_watchpoint_used_count.
6872 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6873 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6875 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6876 if the watchpoint is exact.
6877 (resources_needed_watchpoint): New function.
6878 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6879 (watch_command_1): Set b->exact if the user asked for an exact
6880 watchpoint and one can be set.
6881 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6882 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6883 the user asks for an exact watchpoint and one can be set. Return
6884 number of needed debug registers to watch the expression.
6885 * gdbtypes.c (is_scalar_type): New function, based on
6886 valprint.c:scalar_type_p.
6887 (is_scalar_type_recursive): New function.
6888 * gdbtypes.h (is_scalar_type_recursive): Declare.
6889 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6890 handle regions when ranged watchpoints are available.
6891 (create_watchpoint_request): New function.
6892 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6893 create_watchpoint_request.
6894 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6895 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6896 `set powerpc' and `show powerpc' commands.
6897 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6898 Mention documentation comment in the target macro.
6899 (target_region_ok_for_hw_watchpoint): Document return value.
6901 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6903 * breakpoint.c (update_watchpoint): Decide on using a software or
6904 hardware watchpoint after the bp_locations are created.
6906 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6908 Convert hardware watchpoints to use breakpoint_ops.
6909 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6910 <insert_location>: ... this. Return int instead of void.
6911 Accept pointer to struct bp_location instead of pointer to
6912 struct breakpoint. Adapt all implementations.
6913 (breakpoint_ops) <remove>: Rename to...
6914 <remove_location>: ... this. Accept pointer to struct bp_location
6915 instead of pointer to struct breakpoint. Adapt all implementations.
6916 * breakpoint.c (insert_catchpoint): Delete function.
6917 (insert_bp_location): Call the watchpoint or catchpoint's
6918 breakpoint_ops.insert method.
6919 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6920 breakpoint_ops.remove method.
6921 (insert_watchpoint, remove_watchpoint): New functions.
6922 (watchpoint_breakpoint_ops): New structure.
6923 (watch_command_1): Initialize the OPS field.
6924 * inf-child.c (inf_child_insert_fork_catchpoint)
6925 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6926 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6927 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6929 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6930 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6931 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6932 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6933 * target.c (update_current_target): Change default implementation of
6934 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6935 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6936 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6937 to_set_syscall_catchpoint to return_one.
6938 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6939 (debug_to_insert_exec_catchpoint): Report return value.
6940 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6941 (to_insert_exec_catchpoint): Change declaration to return int instead
6944 2011-01-11 Michael Snyder <msnyder@vmware.com>
6946 * arm-tdep.c: Internationalization.
6949 * fork-child.c: Ditto.
6950 * nto-procfs.c: Ditto.
6951 * ppc-sysv-tdep.c: Ditto.
6953 * remote-mips.c: Ditto.
6955 * rs6000-nat.c: Ditto.
6956 * rs6000-tdep.c: Ditto.
6960 * xml-support.c: Ditto.
6961 * mi/mi-cmd-break.c: Ditto.
6962 * mi/mi-cmd-var.c: Ditto.
6963 * mi/mi-interp.c: Ditto.
6964 * mi/mi-main.c: Ditto.
6966 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
6968 * remote-sim.c (gdbsim_store_register): Update API to
6969 sim_store_register to check more error conditions.
6971 2011-01-10 Michael Snyder <msnyder@vmware.com>
6973 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6974 * nto-tdep.c: Ditto.
6975 * nto-tdep.h: Ditto.
6976 * objc-exp.y: Ditto.
6977 * objc-lang.c: Ditto.
6978 * objfiles.c: Ditto.
6979 * objfiles.h: Ditto.
6980 * observer.c: Ditto.
6981 * opencl-lang.c: Ditto.
6984 * parser-defs.h: Ditto.
6987 * posix-hdep.c: Ditto.
6988 * ppcbug-rom.c: Ditto.
6989 * ppc-linux-nat.c: Ditto.
6990 * ppc-linux-tdep.c: Ditto.
6991 * ppc-linux-tdep.h: Ditto.
6992 * ppcnbsd-tdep.c: Ditto.
6993 * ppcobsd-tdep.c: Ditto.
6994 * ppcobsd-tdep.h: Ditto.
6995 * ppc-sysv-tdep.c: Ditto.
6996 * ppc-tdep.h: Ditto.
6997 * printcmd.c: Ditto.
6998 * proc-abi.c: Ditto.
6999 * proc-flags.c: Ditto.
7001 * proc-utils.h: Ditto.
7002 * progspace.h: Ditto.
7003 * prologue-value.c: Ditto.
7004 * prologue-value.h: Ditto.
7005 * psympriv.h: Ditto.
7007 * p-typeprint.c: Ditto.
7008 * p-valprint.c: Ditto.
7009 * ravenscar-sparc-thread.c: Ditto.
7010 * ravenscar-thread.c: Ditto.
7011 * ravenscar-thread.h: Ditto.
7013 * regcache.c: Ditto.
7014 * regcache.h: Ditto.
7016 * remote-fileio.c: Ditto.
7017 * remote-fileio.h: Ditto.
7019 * remote-m32r-sdi.c: Ditto.
7020 * remote-mips.c: Ditto.
7021 * remote-sim.c: Ditto.
7022 * rs6000-aix-tdep.c: Ditto.
7023 * rs6000-nat.c: Ditto.
7024 * rs6000-tdep.c: Ditto.
7026 2011-01-10 Michael Snyder <msnyder@vmware.com>
7028 * charset.c (validate): Internationalization.
7029 * coffread.c (read_one_sym): Ditto.
7030 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
7031 * h8300-tdep.c (H8300_extract_return_value): Ditto.
7032 * inflow.c (new_tty): Ditto.
7033 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
7034 * m32c-tdep.c (m32c_return_value): Ditto.
7035 * mep-tdep.c (mep_store_return_value): Ditto.
7036 * score-tdep.c (score7_fetch_insn): Ditto.
7037 * ser-mingw.c (pipe_windows_open): Ditto.
7038 * sh64-tdep.c (sh64_extract_return_value): Ditto.
7039 * spu-tdep.c (spu_register_type): Ditto.
7040 * tracepoint.c (trace_find_command): Ditto.
7041 * valarith.c (value_pos): Ditto.
7043 2011-01-10 Joel Brobecker <brobecker@adacore.com>
7045 * ada-valprint.c (printstr): Minor comment reformatting.
7047 2011-01-08 Michael Snyder <msnyder@vmware.com>
7049 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
7052 2011-01-08 Michael Snyder <msnyder@vmware.com>
7054 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
7055 * hppa-hpux-tdep.c: Ditto.
7056 * hppa-linux-nat.c: Ditto.
7057 * hppa-linux-tdep.c: Ditto.
7058 * hppanbsd-tdep.c: Ditto.
7059 * hppa-tdep.c: Ditto.
7060 * hppa-tdep.h: Ditto.
7061 * hpux-thread.c: Ditto.
7062 * i386-cygwin-tdep.c: Ditto.
7063 * i386-darwin-nat.c: Ditto.
7064 * i386gnu-nat.c: Ditto.
7065 * i386-linux-nat.c: Ditto.
7066 * i386-linux-tdep.c: Ditto.
7067 * i386-nat.c: Ditto.
7068 * i386-nat.h: Ditto.
7069 * i386nbsd-tdep.c: Ditto.
7070 * i386-sol2-nat.c: Ditto.
7071 * i386-stub.c: Ditto.
7072 * i386-tdep.c: Ditto.
7073 * i386-tdep.h: Ditto.
7074 * i387-tdep.c: Ditto.
7075 * ia64-linux-nat.c: Ditto.
7076 * ia64-linux-tdep.c: Ditto.
7077 * ia64-tdep.c: Ditto.
7081 * inferior.c: Ditto.
7082 * inferior.h: Ditto.
7088 * iq2000-tdep.c: Ditto.
7089 * irix5-nat.c: Ditto.
7095 * jv-typeprint.c: Ditto.
7096 * jv-valprint.c: Ditto.
7097 * language.c: Ditto.
7098 * language.h: Ditto.
7099 * linespec.c: Ditto.
7100 * linux-fork.c: Ditto.
7101 * linux-nat.c: Ditto.
7102 * linux-thread-db.c: Ditto.
7103 * lm32-tdep.c: Ditto.
7105 2011-01-08 Michael Snyder <msnyder@vmware.com>
7107 * m2-exp.y: Comment cleanup, mostly periods and spaces.
7109 * m2-typeprint.c: Ditto.
7110 * m2-valprint.c: Ditto.
7111 * m32c-tdep.c: Ditto.
7112 * m32r-linux-nat.c: Ditto.
7113 * m32r-rom.c: Ditto.
7114 * m32r-tdep.c: Ditto.
7115 * m32r-tdep.h: Ditto.
7116 * m68hc11-tdep.c: Ditto.
7117 * m58klinux-nat.c: Ditto.
7118 * m68k-tdep.c: Ditto.
7119 * m88k-tdep.c: Ditto.
7120 * m88k-tdep.h: Ditto.
7121 * machoread.c: Ditto.
7122 * macrocmd.c: Ditto.
7123 * macroexp.c: Ditto.
7124 * macrotab.c: Ditto.
7127 * mdebugread.c: Ditto.
7128 * mdebugread.h: Ditto.
7131 * memory-map.h: Ditto.
7132 * mep-tdep.c: Ditto.
7133 * microblaze-rom.c: Ditto.
7134 * microblaze-tdep.c: Ditto.
7136 * mips-irix-tdep.c: Ditto.
7137 * mips-linux-nat.c: Ditto.
7138 * mips-linux-tdep.c: Ditto.
7139 * mips-linux-tdep.h: Ditto.
7140 * mipsnbsd-nat.c: Ditto.
7141 * mipsnbsd-tdep.c: Ditto.
7142 * mipsread.c: Ditto.
7143 * mips-tdep.c: Ditto.
7144 * mips-tdep.h: Ditto.
7145 * mn10300-linux-tdep.c: Ditto.
7146 * mn10300-tdep.c: Ditto.
7147 * mn10300-tdep.h: Ditto.
7150 * moxie-tdep.c: Ditto.
7151 * moxie-tdep.h: Ditto.
7154 2011-01-08 Mike Frysinger <vapier@gentoo.org>
7156 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7158 2011-01-08 Robert Millan <rmh@gnu.org>
7160 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7162 2011-01-07 Michael Snyder <msnyder@vmware.com>
7164 * charset.c (_initialize_charset): Fix typo in string.
7166 2011-01-07 Michael Snyder <msnyder@vmware.com>
7168 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7170 * tui/tui-layout.c (tui_set_layout_for_display_command):
7171 Split line so that operator goes to beginning of line.
7172 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7173 assignment out of if statement.
7175 2011-01-07 Michael Snyder <msnyder@vmware.com>
7177 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7178 * ada-lang.h: Ditto.
7179 * ada-tasks.c: Ditto.
7180 * ada-valprint.c: Ditto.
7181 * aix-threads.c: Ditto.
7182 * alpha-linux-nat.c: Ditto.
7183 * alpha-linux-tdep.c: Ditto.
7184 * alpha-mdebug-tdep.c: Ditto.
7185 * alpha-nat.c: Ditto.
7186 * alpha-osf1-tdep.c: Ditto.
7187 * alpha-tdep.c: Ditto.
7188 * alphabsd-nat.c: Ditto.
7189 * alphabsd-tdep.c: Ditto.
7190 * amd64-darwin-tdep.c: Ditto.
7191 * amd64-linux-nat.c: Ditto.
7192 * amd64-linux-tdep.c: Ditto.
7193 * amd64-sol2-tdep.c: Ditto.
7194 * amd64-tdep.c: Ditto.
7195 * amd64-fbsd-tdep.c: Ditto.
7196 * amd64-nbsd-tdep.c: Ditto.
7197 * amd64-obsd-tdep.c: Ditto.
7198 * amd64-linux-nat.c: Ditto.
7199 * amd64-linux-tdep.c: Ditto.
7200 * arm-tdep.c: Ditto.
7201 * arm-tdep.h: Ditto.
7202 * armnbsd-nat.c: Ditto.
7203 * avr-tdep.c: Ditto.
7204 * bfin-tdep.c: Ditto.
7206 * c-typeprintc: Ditto.
7207 * c-valprint.c: Ditto.
7208 * coff-pe-read.h: Ditto.
7209 * coffreead.c: Ditto.
7210 * cris-tdep.c: Ditto.
7212 * darwin-nat-info.c: Ditto.
7213 * darwin-nat.c: Ditto.
7214 * dbug-rom.c: Ditto.
7218 * dec-thread.c: Ditto.
7220 * demangle.c: Ditto.
7221 * dicos-tdep.c: Ditto.
7222 * dictionary.c: Ditto.
7223 * dictionary.h: Ditto.
7224 * dink32-rom.c: Ditto.
7226 * doublest.c: Ditto.
7228 * dummy-frame.c: Ditto.
7229 * dwarf2-frame.c: Ditto.
7230 * dwarf2expr.c: Ditto.
7231 * dwarf2loc.c: Ditto.
7232 * dwarf2read.c: Ditto.
7236 * event-top.h: Ditto.
7237 * exceptions.c: Ditto.
7238 * exceptions.h: Ditto.
7240 * expprint.c: Ditto.
7241 * expression.h: Ditto.
7245 * f-typeprint.c: Ditto.
7246 * f-valprint.c: Ditto.
7247 * fbsd-nat.c: Ditto.
7249 * fork-child.c: Ditto.
7252 * frv-linux-tdep.c: Ditto.
7253 * frv-tdep.c: Ditto.
7255 * gdb-stabs.h: Ditto.
7256 * gdb_assert.h: Ditto.
7257 * gdb_string.h: Ditto.
7258 * gdb_thread_db.h: Ditto.
7259 * gdb_wait.h: Ditto.
7260 * gdbarch.sh: Ditto.
7262 * gdbthread.h: Ditto.
7263 * gdbtypes.c: Ditto.
7264 * gdbtypes.h: Ditto.
7267 * gnu-v2-abi.c: Ditto.
7268 * gnu-v3-abi.c: Ditto.
7269 * go32-nat.c: Ditto.
7270 * gdbarch.c: Regenerate.
7271 * gdbarch.h: Regenerate.
7273 2011-01-07 Michael Snyder <msnyder@vmware.com>
7275 * ax-gdb.c: Adjust some long output strings.
7276 * breakpoint.c: Ditto.
7281 * linux-nat.c: Ditto.
7282 * solib-pa64.c: Ditto.
7283 * solib-som.c: Ditto.
7285 2011-01-06 Tom Tromey <tromey@redhat.com>
7289 * python/python.c (GdbMethods): Add "newest_frame" method.
7290 * python/python-internal.h (gdbpy_newest_frame): Declare.
7291 * python/py-frame.c (gdbpy_newest_frame): New function.
7293 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
7295 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
7296 * jit.c (jit_debug): New variable.
7297 (show_jit_debug): New function.
7298 (struct target_buffer): Use ULONGEST.
7299 (bfd_open_from_target_memory): Likewise.
7300 (jit_register_code, jit_inferior_init): Add debug output.
7301 (_initialize_jit): Register "debug jit" command.
7303 2011-01-06 Tom Tromey <tromey@redhat.com>
7305 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7306 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7309 2011-01-06 Tom Tromey <tromey@redhat.com>
7311 * python/py-frame.c (frapy_block): Use get_frame_block.
7313 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7315 Do not stop on SIGPRIO signals by default
7316 * infrun.c (_initialize_infrun): Unset signal_stop and
7317 signal_print for TARGET_SIGNAL_PRIO.
7319 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7321 * ada-tasks.c: Fix style violation in comment.
7323 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7325 * linespec.c (decode_compound, find_method): Remove trailing \n
7326 at end of error string.
7327 * solib-irix.c (irix_current_sos): Likewise.
7328 * varobj.c (uninstall_variable): Likewise.
7330 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7332 * copyright.py: New script.
7333 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7334 Launch emacs without exec'ing. Call copyright.py afterwards.
7336 2011-01-05 Michael Snyder <msnyder@vmware.com>
7338 * addrmap.c: Shorten lines of >= 80 columns.
7339 * arch-utils.c: Ditto.
7340 * arch-utils.h: Ditto.
7342 * ax-general.c: Ditto.
7344 * blockframe.c: Ditto.
7345 * breakpoint.c: Ditto.
7346 * buildsym.c: Ditto.
7348 * c-typeprint.c: Ditto.
7350 * coffread.c: Ditto.
7354 * cp-namespace.c: Ditto.
7355 * cp-support.c: Ditto.
7356 * dbug-rom.c: Ditto.
7361 * dictionary.c: Ditto.
7363 * doublest.c: Ditto.
7364 * dwarf2-frame.c: Ditto.
7365 * dwarf2expr.c: Ditto.
7366 * dwarf2loc.c: Ditto.
7367 * dwarf2read.c: Ditto.
7370 * event-loop.c: Ditto.
7371 * event-loop.h: Ditto.
7372 * exceptions.h: Ditto.
7374 * expprint.c: Ditto.
7375 * expression.h: Ditto.
7377 * f-valprint.c: Ditto.
7379 * frame-base.c: Ditto.
7380 * frame-unwind.c: Ditto.
7381 * frame-unwind.h: Ditto.
7385 * gdb-stabs.h: Ditto.
7386 * gdb_assert.h: Ditto.
7387 * gdb_dirent.h: Ditto.
7388 * gdb_obstack.h: Ditto.
7390 * gdbtypes.c: Ditto.
7391 * gdbtypes.h: Ditto.
7392 * inf-ttrace.c: Ditto.
7397 * inline-frame.h: Ditto.
7398 * language.c: Ditto.
7399 * language.h: Ditto.
7400 * libunwind-frame.c: Ditto.
7401 * libunwind-frame.h: Ditto.
7402 * linespec.c: Ditto.
7403 * linux-nat.c: Ditto.
7404 * linux-nat.h: Ditto.
7405 * linux-thread-db.c: Ditto.
7406 * machoread.c: Ditto.
7407 * macroexp.c: Ditto.
7408 * macrotab.c: Ditto.
7411 * mdebugread.c: Ditto.
7416 * objfiles.c: Ditto.
7417 * objfiles.h: Ditto.
7419 * p-typeprint.c: Ditto.
7420 * p-valprint.c: Ditto.
7422 * printcmd.c: Ditto.
7423 * proc-events.c: Ditto.
7425 * progspace.c: Ditto.
7426 * progspace.h: Ditto.
7427 * psympriv.h: Ditto.
7430 * regcache.c: Ditto.
7431 * regcache.h: Ditto.
7432 * remote-fileio.c: Ditto.
7434 * ser-mingw.c: Ditto.
7436 * ser-unix.c: Ditto.
7439 * solib-frv.c: Ditto.
7440 * solib-irix.c: Ditto.
7441 * solib-osf.c: Ditto.
7442 * solib-pa64.c: Ditto.
7443 * solib-som.c: Ditto.
7444 * solib-sunos.c: Ditto.
7445 * solib-svr4.c: Ditto.
7446 * solib-target.c: Ditto.
7450 * stabsread.c: Ditto.
7451 * stabsread.c: Ditto.
7454 * symfile-mem.c: Ditto.
7460 * target-descriptions.c: Ditto.
7461 * target-memory.c: Ditto.
7464 * terminal.h: Ditto.
7467 * tracepoint.c: Ditto.
7468 * tracepoint.h: Ditto.
7472 * user-regs.c: Ditto.
7473 * user-regs.h: Ditto.
7475 * valarith.c: Ditto.
7477 * valprint.c: Ditto.
7478 * valprint.h: Ditto.
7483 * xcoffread.c: Ditto.
7484 * xcoffsolib.c: Ditto.
7485 * xcoffsolib.h: Ditto.
7486 * xml-syscall.c: Ditto.
7487 * xml-tdesc.c: Ditto.
7489 2011-01-05 Michael Snyder <msnyder@vmware.com>
7491 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7492 * cli/cli-decode.c: Ditto.
7493 * cli/cli-dump.c: Ditto.
7494 * cli/cli-logging.c: Ditto.
7495 * cli/cli-script.c: Ditto.
7496 * cli/cli-setshow.c: Ditto.
7497 * common/signals.c: Ditto.
7498 * mi/mi-cmd-break.c: Ditto.
7499 * mi/mi-cmd-disas.c: Ditto.
7500 * mi/mi-cmd-stack.c: Ditto.
7501 * mi/mi-cmd-var.c: Ditto.
7502 * mi/mi-cmds.c: Ditto.
7503 * mi/mi-common.h: Ditto.
7504 * mi/mi-console.c: Ditto.
7505 * mi/mi-interp.c: Ditto.
7506 * mi/mi-main.c: Ditto.
7507 * osf-share/cma_attr.c: Ditto.
7508 * osf-share/cma_deb_core.h: Ditto.
7509 * osf-share/cma_debug_client.h: Ditto.
7510 * osf-share/cma_handle.h: Ditto.
7511 * osf-share/cma_mutex.h: Ditto.
7512 * osf-share/cma_stack_int.h: Ditto.
7513 * osf-share/cma_tcb_defs.h: Ditto.
7514 * python/py-auto-load.c: Ditto.
7515 * python/py-breakpoint.c: Ditto.
7516 * python/py-cmd.c: Ditto.
7517 * python/py-frame.c: Ditto.
7518 * python/py-objfile.c: Ditto.
7519 * python/py-param.c: Ditto.
7520 * python/py-progspace.c: Ditto.
7521 * python/py-symbol.c: Ditto.
7522 * python/py-value.c: Ditto.
7523 * python/python-internal.h: Ditto.
7524 * python/python.c: Ditto.
7525 * tui/tui-data.c: Ditto.
7526 * tui/tui-disasm.c: Ditto.
7527 * tui/tui-hooks.c: Ditto.
7528 * tui/tui-io.c: Ditto.
7529 * tui/tui-layout.c: Ditto.
7530 * tui/tui-regs.c: Ditto.
7531 * tui/tui-source.c: Ditto.
7532 * tui/tui-stack.c: Ditto.
7533 * tui/tui-win.c: Ditto.
7534 * tui/tui-windata.c: Ditto.
7535 * tui/tui-winsource.c: Ditto.
7537 2011-01-05 Joel Brobecker <brobecker@adacore.com>
7539 * configure.ac, gdb.1: Copyright year update.
7541 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7543 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7544 this_pc_in_block, morestack_msym and morestack_name. Check for
7545 "__morestack" minimal symbol there.
7547 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7549 * symfile.c (find_sym_fns): Add call to dont_repeat.
7551 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7553 Copyright year update in most files (performed by copyright.sh).
7555 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7557 * top.c (print_gdb_version): Update copyright year in version output.
7559 For older changes see ChangeLog-2010.
7565 version-control: never