1 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
6 2011-07-19 Gary Benson <gbenson@redhat.com>
8 * infrun.c (struct execution_control_state): New member
10 (clear_stop_func, fill_in_stop_func): New functions.
11 (handle_inferior_event): Call clear_stop_func rather than
12 manipulating the execution control state directly.
13 Call fill_in_stop_func lazily as required rather than
14 directly calling find_pc_partial_function in all cases.
16 2011-07-18 Tom Tromey <tromey@redhat.com>
18 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
19 checking for variable-sized array.
21 2011-07-18 Jean-Charles Delay <delay@adacore.com>
23 * varobj.h (varobj_languages): Add vlang_ada definition to the list
24 of supported languages.
25 * varobj.c: Add top definitions and basic implementation of the
26 following callbacks: ada_number_of_children, ada_name_of_variable,
27 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
28 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
29 (languages): Register Ada-specific callbacks.
30 (variable_language): Add the Ada case in the language setter switch.
32 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
34 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
36 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
39 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
40 (execute_stack_op): Use dwarf2_frame_ctx_funcs
41 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
42 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
43 get_frame_cfa, get_tls_address and dwarf_call via funcs.
44 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
45 (struct dwarf_expr_context_funcs): New, move here methods from ...
46 (struct dwarf_expr_context): ... here. New fields funcs.
47 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
48 (dwarf_expr_ctx_funcs): New.
49 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
50 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
51 (needs_frame_ctx_funcs): New.
52 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
54 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
56 * MAINTAINERS (Write After Approval): Add myself to the list.
58 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
60 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
61 that CIE pointer of an FDE really points to a CIE .
63 2011-07-15 Hui Zhu <teawater@gmail.com>
65 * remote.c (remote_get_trace_status): Add comments.
67 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
69 Code cleanup - constify struct lval_funcs.
70 * dwarf2loc.c (pieced_value_funcs): Make it const.
71 * infrun.c (siginfo_value_funcs): Likewise.
72 * opencl-lang.c (opencl_value_funcs): Likewise.
73 * valops.c (value_assign, value_ind): Make the funcs variable const.
74 * value.c (struct value): Make location.computed.funcs target const.
75 Rearrange the comments.
76 (allocate_computed_value): Make the funcs parameter target const.
77 (value_computed_funcs): Return the funcs target const.
78 (value_free, value_copy, set_value_component_location): Make the funcs
80 * value.h (allocate_computed_value): Make the funcs parameter target
82 (value_computed_funcs): Return the funcs target const.
83 * windows-tdep.c (tlb_value_funcs): Make it const.
85 2011-07-14 Hui Zhu <teawater@gmail.com>
87 * remote.c (remote_get_trace_status): Initialize p.
89 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
92 * remote.c (remote_get_trace_status): New variable ex. Put
93 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
95 2011-07-13 Tom Tromey <tromey@redhat.com>
97 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
98 value_from_contents for final conversion.
100 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
103 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
104 Indent prototypes so they do not get into tags.
106 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
108 Code cleanup making also optimized out values lazy.
109 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
110 allocate_optimized_out_value. Twice.
111 (loclist_read_variable) Use allocate_optimized_out_value. Once.
112 * findvar.c (read_var_value): Likewise.
113 * value.c (allocate_optimized_out_value): New function.
114 * value.h (allocate_optimized_out_value): New declaration.
116 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
118 Fix occasional crash of CTRL-C during DWARF read in.
119 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
121 2011-07-11 Tom Tromey <tromey@redhat.com>
123 * regcache.c (struct regcache_descr): Fix typo.
124 * i387-tdep.c (i387_supply_xsave): Fix typo.
126 2011-07-11 Tom Tromey <tromey@redhat.com>
128 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
129 (read_file_scope, read_type_unit_scope): Use it.
131 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
133 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
136 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
139 * python/python.c: Set gdbpy_should_print_stack default to off.
140 (set_python): Deprecate maint set python print-stack to
142 (_initialize_python): Deprecate maint set/show python print-stack.
143 Add new prefix command, python. Add new setting, print-backtrace.
144 * NEWS: Document set python print-stack. Document default change.
146 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
148 * python/py-inferior.c (infpy_dealloc): New function.
149 (inferior_to_inferior_object): Return a new object, or a
150 new reference to the existing object.
151 (find_thread_object): Cleanup references to inferior.
152 (delete_thread_object): Ditto.
153 * python/py-infthread.c (create_thread_object): Do not increment
154 inferior reference count.
156 2011-07-08 Tom Tromey <tromey@redhat.com>
158 * dwarf2loc.c (locexpr_regname): New function.
159 (locexpr_describe_location_piece): Use it.
160 (disassemble_dwarf_expression): Add per_cu argument. Use
162 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
163 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
165 (locexpr_describe_location_1): Add per_cu argument.
166 (locexpr_describe_location): Update.
167 (loclist_describe_location): Update.
169 2011-07-08 Tom Tromey <tromey@redhat.com>
171 * dwarf2expr.c (execute_stack_op): Add QUIT.
173 2011-07-07 Hui Zhu <teawater@gmail.com>
176 2011-07-06 Hui Zhu <teawater@gmail.com>
177 * remote.c (remote_start_remote): Add TRY_CATCH for
178 remote_get_trace_status.
179 * tracepoint.c (disconnect_tracing): Ditto.
181 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
183 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
184 variables as signed, not unsigned.
186 2011-07-06 Joel Brobecker <brobecker@adacore.com>
188 * jit.c (jit_inferior_init): Reformat forward declaration.
190 2011-07-06 Matt Rice <ratmice@gmail.com>
192 * MAINTAINERS (Write After Approval): Add myself to the list.
194 2011-07-06 Hui Zhu <teawater@gmail.com>
196 * remote.c (remote_start_remote): Add TRY_CATCH for
197 remote_get_trace_status.
198 * tracepoint.c (disconnect_tracing): Ditto.
200 2011-07-05 Tom Tromey <tromey@redhat.com>
202 * symtab.c (operator_chars): Now static.
203 * linespec.c (operator_chars): Don't declare.
205 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
207 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
209 2011-07-05 Tom Tromey <tromey@redhat.com>
211 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
212 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
213 (TYPE_CPLUS_REALLY_JAVA): New macro.
214 * dwarf2read.c (process_structure_scope): Set
215 TYPE_CPLUS_REALLY_JAVA.
217 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
219 * ada-lang.c: Fix typos.
220 * amd64-tdep.c: Likewise.
221 * breakpoint.c: Likewise.
222 * cli/cli-decode.c: Likewise.
223 * findcmd.c: Likewise.
224 * inline-frame.c: Likewise.
225 * mi/mi-main.c: Likewise.
226 * minsyms.c: Likewise.
227 * monitor.c: Likewise.
228 * monitor.h: Likewise.
229 * prologue-value.c: Likewise.
230 * reverse.c: Likewise.
231 * s390-tdep.c: Likewise.
233 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
235 * jit.c (jit_inferior_init): Forward declare.
236 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
238 2011-07-04 Joel Brobecker <brobecker@adacore.com>
240 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
242 2011-07-04 Tristan Gingold <gingold@adacore.com>
244 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
245 (tcb_fieldno): Add activation_link field.
246 (get_known_tasks_addr): Moved and rewritten.
247 (get_tcb_types_info): Set activation_link field.
248 (read_known_tasks_array): Add parameter. Rewritten.
249 (read_known_tasks_list): New function.
250 (read_known_tasks): New function.
251 (ada_build_task_list): Call read_known_tasks instead of
252 read_known_tasks_array.
253 * ravenscar-thread.c: Add first_task_name constant.
254 (has_ravenscar_runtime): Check for task list too.
256 2011-07-04 Tristan Gingold <gingold@adacore.com>
258 * ada-tasks.c: Renames fieldno to actb_fieldno.
259 (ada_get_task_number): Indentation.
260 (get_tcb_types_info): Remove all parameters. Write directly
262 (ptid_from_atcb_common): Adjust.
265 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
267 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
269 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
271 * ui-out.c (ui_out_field_core_addr): Mention that the function
272 description is in the header file.
273 * ui-out.h (ui_out_field_core_addr): Document function.
275 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
277 * ui-out.c (ui_out_get_field_separator): Remove unused function.
278 * ui-out.h (ui_out_get_field_separator): Remove prototype.
280 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
282 * symtab.c (expand_line_sal): Remove empty line.
284 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
286 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
287 same way as ELFOSABI_NONE.
288 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
290 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
292 * breakpoint.c: Fix typos in comments.
293 * linespec.c: Likewise.
294 * symtab.c: Likewise.
296 2011-07-04 Joel Brobecker <brobecker@adacore.com>
298 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
299 section in separate object files.
301 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
303 Fix false GCC warning.
304 * linespec.c (decode_line_1): Initialize values.
306 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
308 * linespec.c (find_method): Accept the function type automatically only
309 if it was specified with parameter types.
311 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
313 Stop on first linespec terminator instead of eating what we can.
314 * linespec.c (is_linespec_boundary): New function.
315 (name_end): Remove function.
316 (keep_name_info): New parameter on_boundary, replace the body.
317 (decode_line_1): Provide the parameter to keep_name_info.
318 (decode_compound): Likewise. Drop the trailing java return type
321 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
323 Fall back linespec to minimal symbols.
324 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
325 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
326 (find_method, symbol_found): Change error to cplusplus_error.
328 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
330 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
332 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
333 Tom Tromey <tromey@redhat.com>
335 * dwarf2read.c (check_physname): New variable.
336 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
337 (show_check_physname): New function.
338 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
340 2011-07-01 Joel Brobecker <brobecker@adacore.com>
342 * machoread.c (macho_symfile_read): Delete OBE comment.
344 2011-07-01 Joel Brobecker <brobecker@adacore.com>
346 * machoread.c (struct macho_oso_data): Delete.
347 (current_oso): Delete.
348 (macho_relocate_common_syms): New function, mostly extracted
350 (macho_add_oso_symfile): Call macho_relocate_common_syms.
351 Remove code that sets and unset current_oso.
352 (macho_symfile_relocate): Delete handling of common symbols,
353 now moved to macho_relocate_common_syms.
355 2011-07-01 Joel Brobecker <brobecker@adacore.com>
357 * darwin-nat.c (darwin_ptrace): Add documentation.
358 Set errno to zero before calling ptrace. If ptrace returns
359 -1 and errno is zero, then change then return zero.
360 (darwin_kill_inferior): Issue a warning instead of triggering
361 a failed assertion when the PT_KILL ptrace operations returned
364 2011-07-01 Joel Brobecker <brobecker@adacore.com>
366 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
367 only when inf->private->no_ptrace.
369 2011-07-01 Joel Brobecker <brobecker@adacore.com>
371 * ada-lang.c (print_it_exception): Print temporary catchpoints
372 as "Temporary catchpoint".
373 (print_mention_exception): Likewise.
375 2011-07-01 Tom Tromey <tromey@redhat.com>
377 * jv-lang.c (java_language_defn): Use java_printchar,
379 (java_get_encoding): New function.
380 (java_emit_char): Use generic_emit_char.
381 (java_printchar): New function.
382 (java_printstr): Likewise.
384 2011-07-01 Joel Brobecker <brobecker@adacore.com>
386 * ada-typeprint.c (print_record_type): If unable to decode
387 the name of the parent type, use the encoded name.
389 2011-07-01 Jean-Charles Delay <delay@adacore.com>
391 * ada-typeprint.c (ada_print_type): Fix both PAD type and
392 pointer to constrained packed array type output.
393 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
396 2011-07-01 Jean-Charles Delay <delay@adacore.com>
398 * ada-typeprint.c (print_array_type): removed if condition on show
399 being negative for bounds printing.
401 2011-07-01 Joel Brobecker <brobecker@adacore.com>
403 * ada-lang.c (ada_identical_enum_types_p): New function.
404 (symbols_are_identical_enums): New function.
405 (remove_extra_symbols): Do nothing if NSYMS < 2.
406 Use symbols_are_identical_enums.
408 2011-07-01 Joel Brobecker <brobecker@adacore.com>
410 * ada-valprint.c (ada_value_print): Handle typedefs.
412 2011-07-01 Joel Brobecker <brobecker@adacore.com>
414 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
416 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
418 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
419 (decode_constrained_packed_array): Likewise.
420 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
422 2011-07-01 Joel Brobecker <brobecker@adacore.com>
424 * ada-exp.y (convert_char_literal): Handle typedef types.
426 2011-07-01 Joel Brobecker <brobecker@adacore.com>
428 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
430 2011-06-30 Tom Tromey <tromey@redhat.com>
432 * varobj.c (varobj_create): Call do_cleanups on early exit path.
433 * valops.c (find_overload_match): Call do_cleanups on early exit
435 * solib.c (solib_find): Call do_cleanups on early exit path.
437 2011-06-30 Tom Tromey <tromey@redhat.com>
439 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
440 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
441 return paths. Defer final do_cleanups until last return.
442 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
445 2011-06-30 Tom Tromey <tromey@redhat.com>
447 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
449 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
451 * MAINTAINERS (Write After Approval): Add myself to the list.
453 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
455 Disable epilogue unwinders on recent GCCs.
456 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
457 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
458 * dwarf2read.c (process_full_comp_unit): Initialize
459 EPILOGUE_UNWIND_VALID.
460 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
461 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
462 * symtab.h (struct symtab): New field epilogue_unwind_valid.
464 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
466 Code cleanup - reformatting.
467 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
468 (producer_is_gcc_ge_4): ... here, change the return value.
469 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
472 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
474 Fix non-only rename list for Fortran modules import.
475 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
476 cp_add_using_directive caller.
477 (cp_add_using_directive): New parameter excludes, describe it. New
478 variables ix and param. Compare if also excludes match. Allocate NEW
479 with variable size, initialize EXCLUDES there.
480 (cp_lookup_symbol_imports): New variable excludep, test
481 current->EXCLUDES with it.
482 * cp-support.h: Include vec.h.
483 (struct using_direct): New field excludes, describe it.
484 (DEF_VEC_P (const_char_ptr)): New.
485 (cp_add_using_directive): New parameter excludes.
486 * defs.h (const_char_ptr): New typedef.
487 * dwarf2read.c (read_import_statement): New variables child_die,
488 excludes and cleanups, read in excludes.
489 (read_namespace): Adjust the cp_add_using_directive caller.
491 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
494 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
495 negative comparisons.
497 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
499 * mi/mi-main.c (mi_cmd_list_features): Emit
500 breakpoint-notifications.
502 2011-06-29 Tom Tromey <tromey@redhat.com>
505 * valprint.h (generic_emit_char, generic_printstr): Declare.
506 * valprint.c (wchar_printable, append_string_as_wide)
507 (print_wchar): Move from c-lang.c.
508 (generic_emit_char): New function; mostly taken from c_emit_char.
509 (generic_printstr): New function; mostly taken from c_printstr.
510 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
511 represented as arrays.
512 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
514 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
515 identically to TYPE_CODE_INT.
516 * f-lang.c (f_get_encoding): New function.
517 (f_emit_char): Use generic_emit_char.
518 (f_printchar): Replace comment.
519 (f_printstr): Use generic_printstr.
520 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
521 "character" types specially.
522 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
524 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
526 (c_emit_char): Call generic_emit_char.
527 (c_printstr): Call generic_printstr.
529 2011-06-29 Gary Benson <gbenson@redhat.com>
531 * breakpoint.c (bpstat_what): Removed duplicated case.
533 2011-06-28 Tom Tromey <tromey@redhat.com>
535 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
537 2011-06-27 Tom Tromey <tromey@redhat.com>
539 * valops.c (find_overload_match): Call do_cleanups before early
541 * top.c (execute_command): Call do_cleanups before early return.
542 (command_loop): Likewise.
543 * stack.c (backtrace_command): Make a null cleanup early. Don't
544 conditionally call do_cleanups.
545 * python/py-value.c (TRY_CATCH): Move cleanup handling into
547 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
548 so cleanups are always run.
549 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
550 * findcmd.c (parse_find_args): Call do_cleanups on early return
552 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
553 Don't conditionally call do_cleanups.
554 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
557 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
559 * MAINTAINERS (Write After Approval): Use default email address.
561 2011-06-27 Joel Brobecker <brobecker@adacore.com>
563 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
565 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
567 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
568 saved_regs_mask and copied_regs_mask fields.
569 (sparc_record_save_insn): New prototype.
570 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
571 (sparc_record_save_insn): New function.
572 (sparc_analyze_prologue): Add head comment. Recognize store insns
573 of call-saved registers. Use OFFSET consistently. Recognize flat
574 frames and cache their settings.
575 (sparc32_skip_prologue): Handle flat frames.
576 (sparc_frame_cache): Add frame_offset to the base address.
577 (sparc32_frame_cache): Adjust to new frame description.
578 (sparc32_frame_prev_register): Likewise.
579 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
580 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
581 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
582 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
583 frame by calling sparc_record_save_insn.
584 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
585 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
586 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
588 2011-06-27 Tristan Gingold <gingold@adacore.com>
590 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
591 field by map_addr and map_len.
592 (dwarf2_read_section): Adjust for the new bfd_mmap api.
593 (munmap_section_buffer): Likewise.
595 2011-06-24 Tom Tromey <tromey@redhat.com>
597 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
598 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
599 * python/python.c (gdbpy_parameter): Make 'arg' const.
600 (execute_gdb_command): Likewise.
601 (gdbpy_decode_line): Likewise. Copy it.
602 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
603 (gdbpy_write): Make 'arg' const.
604 * python/py-type.c (typy_lookup_typename): Make 'type_name'
606 (gdbpy_lookup_type): Likewise.
607 * python/py-prettyprint.c (print_children): Make 'name' const.
608 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
609 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
611 * python/py-function.c (fnpy_init): Make 'name' const.
612 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
613 (gdbpy_string_to_argv): Make 'input' const.
614 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
616 * gdbtypes.h (lookup_typename): Update.
617 * gdbtypes.c (lookup_typename): Make 'name' const.
618 (lookup_struct): Likewise.
619 (lookup_union): Likewise.
620 (lookup_enum): Likewise.
622 2011-06-24 Tom Tromey <tromey@redhat.com>
624 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
625 gdb_thread_db.h. Move all common/ entries to be together.
626 (TAGS): Don't depend on DEPFILES.
628 2011-06-23 Yao Qi <yao@codesourcery.com>
630 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
631 * remote.c (remote_start_remote): ... here.
632 * monitor.c (monitor_open): ... here.
634 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
636 * gdbtypes.c (append_composite_type_field_aligned): Fix
637 calculation of bit position based on alignment.
639 2011-06-22 Pedro Alves <pedro@codesourcery.com>
641 * breakpoint.c (bpstat_stop_status): Call the check_status
642 breakpoint_ops method.
643 (print_one_breakpoint_location): Also print the condition for Ada
644 exception catchpoints.
645 (allocate_bp_location): New, factored out from
646 allocate_bp_location.
647 (allocate_bp_location): Adjust. Call the owner breakpoint's
648 allocate_location method, if there is one.
649 (free_bp_location): Call the locations's dtor method, if there is
651 (init_raw_breakpoint_without_location): New breakpoint_ops
653 (set_raw_breakpoint_without_location): Adjust.
654 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
655 (set_raw_breakpoint): Adjust.
656 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
657 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
658 re_set and check_status methods.
659 (init_catchpoint): Don't memset, initialize thread, addr_string
660 and enable_state. Pass the ops down to init_raw_breakpoint.
661 (install_catchpoint): Rename to ...
662 (install_breakpoint): ... this, and make extern.
663 (create_fork_vfork_event_catchpoint): Adjust.
664 (catch_exec_breakpoint_ops): Install NULL allocate_location,
665 re_set and check_status methods.
666 (create_syscall_event_catchpoint): Adjust.
667 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
668 (masked_watchpoint_breakpoint_ops): Install NULL
669 allocate_location, re_set and check_status methods.
670 (catch_exec_command_1): Adjust.
671 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
672 re_set and check_status methods.
673 (create_ada_exception_breakpoint): Rename to ...
674 (init_ada_exception_breakpoint): ... this. Add a struct
675 breakpoint parameter, and delete the exp_string, cond_string and
676 cond parameters. Use init_raw_breakpoint, and don't install or
677 mention the breakpoint yet. Don't clear breakpoint fields that
678 init_raw_breakpoint already clears.
679 (re_set_breakpoint): Delete, split into ...
680 (breakpoint_re_set_default, prepare_re_set_context): ... these new
682 (breakpoint_re_set_one): Call the breakpoint's
683 breakpoint_ops->re_set implementation, if there's one. Adjust.
684 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
685 (struct bp_location_ops): New type.
686 (struct bp_location): New field `ops'.
687 (struct breakpoint_ops): New `allocate_location', `re_set' and
688 `check_status' fields. Make `breakpoint_hit''s description match
690 (init_bp_location): Declare.
691 (breakpoint_re_set_default): Declare.
692 (create_ada_exception_breakpoint): Rename to ...
693 (init_ada_exception_breakpoint): ... this. Add a struct
694 breakpoint parameter, and delete the exp_string, cond_string and
696 (install_breakpoint): Declare.
697 * ada-lang.c: Include exceptions.h.
698 <Ada exceptions description>: Update.
699 (struct ada_catchpoint_location): New type.
700 (ada_catchpoint_location_dtor): New function.
701 (ada_catchpoint_location_ops): New global.
702 (ada_catchpoint): New type.
703 (create_excep_cond_exprs): New function.
704 (dtor_exception, allocate_location_exception, re_set_exception)
705 (should_stop_exception, check_status_exception): New functions.
706 (print_one_exception, print_mention_exception)
707 (print_recreate_exception): Adjust.
708 (dtor_catch_exception, allocate_location_catch_exception)
709 (re_set_catch_exception, check_status_catch_exception): New
711 (catch_exception_breakpoint_ops): Install them.
712 (dtor_catch_exception_unhandled)
713 (allocate_location_catch_exception_unhandled)
714 (re_set_catch_exception_unhandled)
715 (check_status_catch_exception_unhandled): New functions.
716 (catch_exception_unhandled_breakpoint_ops): Install them.
717 (dtor_catch_assert, allocate_location_catch_assert)
718 (re_set_catch_assert, check_status_catch_assert): New functions.
719 (catch_assert_breakpoint_ops): Install them.
720 (ada_exception_catchpoint_p): Delete.
721 (catch_ada_exception_command_split)
722 (ada_exception_catchpoint_cond_string): Rename exp_string
723 parameter to excep_string. Adjust.
724 (ada_parse_catchpoint_condition): Delete.
725 (ada_exception_sal): Rename the exp_string parameter to
726 excep_string. Delete the cond_string and cond parameters.
728 (ada_decode_exception_location): Rename the exp_string parameter
729 to excep_string. Delete the cond_string and cond parameters.
731 (create_ada_exception_catchpoint): New function.
732 (catch_ada_exception_command, ada_decode_assert_location)
733 (catch_assert_command): Adjust.
734 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
736 2011-06-22 Pedro Alves <pedro@codesourcery.com>
738 * ada-lang.c: Include arch-utils.h.
739 (ada_decode_exception_location): Make static.
740 (catch_ada_exception_command): Moved here from breakpoint.c.
741 (ada_decode_assert_location): Make static.
742 (catch_assert_command): Moved here from breakpoint.c.
743 (_initialize_ada_lang): Install the exception and assert
744 catchpoint commands here.
745 * ada-lang.h (ada_decode_exception_location)
746 (ada_decode_assert_location): Delete declarations.
747 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
749 (create_ada_exception_breakpoint): Make extern.
750 (catch_ada_exception_command, catch_assert_command): Moved to
752 (add_catch_command): Make extern.
753 (_initilize_breakpoint): Don't install the exception and assert
754 catchpoint commands here.
755 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
757 (add_catch_command, create_ada_exception_breakpoint): Declare.
759 2011-06-22 Pedro Alves <pedro@codesourcery.com>
761 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
762 the breakpoint to the breakpoint chain here.
763 (set_raw_breakpoint_without_location): Add the breakpoint to the
764 breakpoint chain here.
765 (init_raw_breakpoint): Adjust comments.
766 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
768 (init_catchpoint): Don't set the catchpoint's breakpoint number
770 (install_catchpoint): New function.
771 (create_fork_vfork_event_catchpoint)
772 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
773 use install_catchpoint.
775 2011-06-22 Pedro Alves <pedro@codesourcery.com>
777 * breakpoint.c (create_catchpoint_without_mention)
778 (create_catchpoint): Delete.
780 2011-06-22 Pedro Alves <pedro@codesourcery.com>
782 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
783 * breakpoint.c (init_raw_breakpoint_without_location): Remove
784 reference to exec_pathname.
785 (struct exec_catchpoint): New type.
786 (dtor_catch_exec): New function.
787 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
788 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
789 (catch_exec_command_1): Adjust to use init_catchpoint.
790 (delete_breakpoint): Remove reference to exec_pathname.
792 2011-06-22 Pedro Alves <pedro@codesourcery.com>
794 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
795 (struct breakpoint): Delete field `syscalls_to_be_caught'.
796 * breakpoint.c (init_raw_breakpoint_without_location): Remove
797 reference to syscalls_to_be_caught.
798 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
800 (struct syscall_catchpoint): New type.
801 (dtor_catch_syscall): New function.
802 (insert_catch_syscall, remove_catch_syscall)
803 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
804 (print_recreate_catch_syscall): Adjust.
805 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
806 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
807 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
808 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
809 (masked_watchpoint_breakpoint_ops)
810 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
811 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
812 there is one. Remove references to syscalls_to_be_caught.
813 (catching_syscall_number): Adjust.
814 * ada-lang.c (catch_exception_breakpoint_ops)
815 (catch_exception_unhandled_breakpoint_ops)
816 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
818 2011-06-22 Pedro Alves <pedro@codesourcery.com>
820 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
822 * breakpoint.c (init_raw_breakpoint_without_location): Remove
823 reference to forked_inferior_pid.
824 (struct fork_catchpoint): New type.
825 (breakpoint_hit_catch_fork, print_it_catch_fork)
826 (print_one_catch_fork, breakpoint_hit_catch_vfork)
827 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
828 (create_fork_vfork_event_catchpoint): Adjust to use
831 2011-06-22 Pedro Alves <pedro@codesourcery.com>
833 * breakpoint.c (add_to_breakpoint_chain)
834 (init_raw_breakpoint_without_location): New functions, factored
836 (set_raw_breakpoint_without_location): ... this one.
837 (init_raw_breakpoint): New function, factored out from
838 set_raw_breakpoint and adjusted to use
839 init_raw_breakpoint_without_location.
840 (set_raw_breakpoint): Adjust.
841 (init_catchpoint): New function, factored out from
842 create_catchpoint_without_mention and adjusted to use
844 (create_catchpoint_without_mention): Adjust.
846 2011-06-22 Tom Tromey <tromey@redhat.com>
848 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
849 argument of 0 specially.
851 2011-06-22 Yao Qi <yao@codesourcery.com>
853 * infrun.c (handle_inferior_event): Remove write-only local variable
854 `sw_single_step_trap_p'.
856 2011-06-20 Tom Tromey <tromey@redhat.com>
858 * symtab.c (lookup_language_this): End loop if block is NULL.
860 2011-06-17 Tom Tromey <tromey@redhat.com>
862 * valops.c (value_of_this): Use lookup_language_this.
863 * symtab.h (lookup_language_this): Declare.
864 * symtab.c (lookup_language_this): New function.
865 (lookup_symbol_aux): Use lookup_language_this.
866 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
868 2011-06-17 Tom Tromey <tromey@redhat.com>
870 * value.h (value_of_this): Update.
871 (value_of_local): Remove.
872 * valops.c (value_of_this): Rename from value_of_local. Change
874 * p-exp.y (exp): Update.
875 (variable): Likewise.
876 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
878 2011-06-17 Tom Tromey <tromey@redhat.com>
880 * valops.c (value_of_local): Complain if NAME is NULL.
881 * std-operator.def (OP_OBJC_SELF): Remove.
882 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
883 * objc-exp.y (name_not_typename): Use OP_THIS.
884 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
886 <OP_OBJC_SELF>: Remove.
887 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
889 2011-06-16 Tristan Gingold <gingold@adacore.com>
891 * python/py-events.h (gdb_py_events): Make it extern.
892 * python/py-evtregistry.c (gdb_py_events): Declare.
894 2011-06-16 Hui Zhu <teawater@gmail.com>
896 * remote.c (remote_trace_set_readonly_regions): Add check for
897 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
900 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
902 * arm-linux-tdep.c: Include "auxv.h".
904 (ARM_LINUX_SIZEOF_VFP): Define.
905 (arm_linux_supply_vfp): New function.
906 (arm_linux_collect_vfp): Likewise.
907 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
908 (arm_linux_fpa_regset_sections): New variable.
909 (arm_linux_vfp_regset_sections): Likewise.
910 (arm_linux_core_read_description): New function.
911 (arm_linux_init_abi): Install arm_linux_core_read_description and
912 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
913 appropriate for the architecture.
914 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
915 (tdesc_arm_with_m): Declare.
916 (tdesc_arm_with_iwmmxt): Likewise.
917 (tdesc_arm_with_vfpv2): Likewise.
918 (tdesc_arm_with_vfpv3): Likewise.
919 (tdesc_arm_with_neon): Likewise.
920 * arm-linux-nat.c: Move features/*.c includes ...
921 * arm-tdep.c: ... here.
922 * arm-linux-nat.c (arm_linux_read_description): Move initializing
923 target description data structures ...
924 * arm-tdep.c (_initialize_arm_tdep): ... here.
925 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
926 HWCAP_VFPv3D16): Move definitions ...
927 * arm-linux-tdep.h: ... here.
929 2011-06-15 Hui Zhu <teawater@gmail.com>
931 * remote.c (remote_trace_set_readonly_regions): Add a check for
934 2011-06-14 Tom Tromey <tromey@redhat.com>
936 * coffread.c (coffread_objfile): Rename from current_objfile.
937 * dbxread.c (dbxread_objfile): Rename from current_objfile.
938 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
940 2011-06-14 Tom Tromey <tromey@redhat.com>
942 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
943 (class_symtab): Remove.
944 (jv_dynamics_progspace_key): New global.
945 (jv_per_objfile_free): Reset program space data. Update assert.
947 (get_dynamics_objfile): Use and set program space data.
948 (get_java_class_symtab): Use get_dynamics_objfile.
949 (add_class_symbol): Likewise.
950 (java_link_class_type): Likewise.
951 (java_object_type, jv_clear_object_type, set_java_object_type):
953 (get_java_object_type): Update. Don't cache result.
954 (is_object_type): Don't call set_java_object_type.
955 (_initialize_java_language): Don't set jv_type_objfile_data_key;
956 initialize jv_dynamics_progspace_key.
958 2011-06-14 Tom Tromey <tromey@redhat.com>
960 * symtab.h (current_objfile): Don't declare.
961 * objfiles.h (current_objfile): Don't declare.
962 * objfiles.c (current_objfile): Remove.
963 * mdebugread.c (current_objfile): New file-scope global.
964 * dbxread.c (current_objfile): New file-scope global.
965 * coffread.c (current_objfile): New file-scope global.
967 2011-06-13 Pedro Alves <pedro@codesourcery.com>
969 * top.h (line): Rename to ...
970 (saved_command_line): ... this.
971 (linesize): Rename to ...
972 (saved_command_line_size): ... this.
973 * top.c (line): Rename to ...
974 (saved_command_line): ... this.
975 (linesize): Rename to ...
976 (saved_command_line_size): ... this.
977 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
978 * event-top.c (command_line_handler): Adjust.
979 * main.c (captured_main): Adjust.
981 2011-06-12 Mark Kettenis <kettenis@gnu.org>
983 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
984 get_frame_func instead of get_frame_pc to determine the code
985 address used to construct the frame ID.
986 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
987 (i386_epilogue_frame_this_id): Likewise.
988 (i386_epilogue_frame_prev_register): New function.
989 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
990 (i386_stack_tramp_frame_sniffer): Fix coding style.
991 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
992 (i386_gdbarch_init): Fix comments.
994 2011-06-12 Mark Kettenis <kettenis@gnu.org>
996 * i386-tdep.c (i386_match_insn_block): Use length of the proper
997 instruction when walking back through the instruction stream.
999 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1001 * symtab.c (output_partial_symbol_filename): Exchange the filename and
1002 fullname parameters order.
1004 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1007 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
1009 * psymtab.c (map_symbol_filenames_psymtab)
1010 (map_partial_symbol_filenames): Likewise.
1011 * psymtab.h: Include symfile.h.
1012 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
1013 * symfile.h (symbol_filename_ftype): New.
1014 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
1015 map_symbol_filenames, clarify more the naming in comment.
1017 2011-06-07 Doug Evans <dje@google.com>
1019 * cc-with-index.sh: Fix typos in comment.
1020 Look for ../../gdb, for fullname.exp.
1022 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1023 Pedro Alves <pedro@codesourcery.com>
1025 * cli/cli-cmds.c (shell_escape): Use waitpid.
1026 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
1028 2011-06-07 Tristan Gingold <gingold@adacore.com>
1030 * xcoffread.c (dwarf2_xcoff_names): New variable.
1031 (aix_process_linenos): Add a guard.
1032 (xcoff_symfile_finish): Free dwarf2.
1033 (xcoff_initial_scan): Add dwarf2 support.
1035 2011-06-06 Pedro Alves <pedro@codesourcery.com>
1037 * infcall.c (run_inferior_call): Don't mask async. Instead force
1038 a synchronous wait, if the target can async.
1040 * target.h (struct target_ops): Delete to_async_mask.
1041 (target_async_mask): Delete.
1042 * target.c (update_current_target): Delete references to to_async_mask.
1043 * linux-nat.c (linux_nat_async_mask_value): Delete.
1044 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
1045 to linux_nat_async_mask_value.
1046 (linux_nat_async_mask): Delete.
1047 (linux_nat_async, linux_nat_close): Remove references to
1048 linux_nat_async_mask_value.
1049 * record.c (record_async_mask_value): Delete.
1050 (record_async): Remove references to record_async_mask_value.
1051 (record_async_mask): Delete.
1052 (record_can_async_p, record_is_async_p): Remove references to
1053 record_async_mask_value.
1054 (init_record_ops, init_record_core_ops): Remove references to
1056 * remote.c (remote_async_mask_value): Delete.
1057 (init_remote_ops): Remove reference to remote_async_mask.
1058 (remote_can_async_p, remote_is_async_p): Remove references to
1059 remote_async_mask_value.
1060 (remote_async): Remove references to remote_async_mask_value.
1061 (remote_async_mask): Delete.
1063 * infrun.c (fetch_inferior_event): Don't claim registers changed
1064 if the current thread is already not executing.
1066 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
1068 From Stephen Kitt <steve@sk2.org>
1069 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
1070 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
1072 2011-06-03 Joel Brobecker <brobecker@adacore.com>
1074 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
1075 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
1077 2011-06-03 Tom Tromey <tromey@redhat.com>
1079 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
1081 * python/py-exitedevent.c (create_exited_event_object): Change
1082 type of 'exit_code'. Optionally add exit_code attribute.
1083 (emit_exited_event): Change type of 'exit_code'.
1084 * python/py-event.h (emit_exited_event): Update.
1085 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
1086 * infrun.c (handle_inferior_event): Set exit code fields on
1088 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
1090 * inferior.c (exit_inferior_1): Initialize new fields.
1092 2011-06-03 Tom Tromey <tromey@redhat.com>
1094 * dwarf2expr.c (get_signed_type): New function.
1095 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
1097 2011-06-02 Keith Seitz <keiths@redhat.com>
1099 * objc-lang.c (find_methods): Increment objfile_csym earlier.
1101 2011-06-02 Pedro Alves <pedro@codesourcery.com>
1103 * top.h (simplified_command_loop): Delete declaration.
1105 2011-06-01 Mike Frysinger <vapier@gentoo.org>
1107 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
1108 gdb_sysroot to the "len" variable. Append both to "arg_buf".
1110 2011-06-01 Yao Qi <yao@codesourcery.com>
1112 * objfiles.h (obj_section_addr): Update reference to objfile from
1114 (obj_section_endaddr): Likewise.
1116 2011-06-01 Daniel Jacobowitz <drow@false.org>
1118 * MAINTAINERS: Update my email address and affiliation. Also
1119 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
1121 2010-05-31 Keith Seitz <keiths@redhat.com>
1124 * linespec.c (get_search_block): New function.
1125 (find_methods): Add FILE_SYMTATB parameter and use it and
1126 get_search_block to pass an appropriate block to
1127 lookup_symbol_in_namespace.
1128 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
1129 Check if *ARGPTR starts with a filename first.
1130 If it does, call locate_first_half again to locate the next
1131 "first half" of the linespec.
1132 Pass FILE_SYMTATB to decode_objc and decode_compound.
1133 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
1134 (locate_first_half): Stop on the first colon seen.
1135 (decode_compound): Add FILE_SYMTAB parameter.
1136 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
1137 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
1138 get_search_block with lookup_symbol.
1139 (find_method): Add FILE_SYMTAB parameter and pass it to
1141 (decode_objc): Use get_search_block.
1143 2010-05-31 Keith Seitz <keiths@redhat.com>
1146 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
1147 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
1148 and CP_ANONYMOUS_NAMESPACE_LEN.
1149 (cp_is_anonymous): Likewise.
1150 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
1151 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
1152 * dwarf2read.c (namespace_name): Likewise.
1153 (fixup_partial_die): Likewise.
1154 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
1155 seen in the input, keep it.
1157 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1159 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
1160 * inf-loop.h (inferior_event_handler_wrapper): Delete.
1161 * inf-loop.c (inferior_event_handler_wrapper): Delete.
1162 (inferior_event_handler): Don't handle INF_QUIT_REQ.
1163 * remote.c (_initialize_remote): Register
1164 async_remote_interrupt_twice directly as
1165 sigint_remote_twice_token event.
1167 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1169 * target.h (enum inferior_event_type): Delete INF_ERROR.
1170 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
1172 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1174 * interps.c (interp_set): Don't cancel continuations.
1176 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1178 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
1180 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1182 * continuations.h (continuation_ftype): Add `err' parameter.
1183 Document parameters.
1184 (do_all_continuations, do_all_continuations_thread)
1185 (do_all_intermediate_continuations)
1186 (do_all_intermediate_continuations_thread)
1187 (do_all_inferior_continuations): Add `err' parameter.
1188 * continuations.c (do_my_continuations_1, do_my_continuations)
1189 (do_all_inferior_continuations, do_all_continuations_ptid)
1190 (do_all_continuations_thread_callback)
1191 (do_all_continuations_thread, do_all_continuations)
1192 (do_all_intermediate_continuations_thread_callback)
1193 (do_all_intermediate_continuations_thread)
1194 (do_all_intermediate_continuations): Add `err' parameter, and pass
1195 it down all the way to the continuations proper.
1196 * inf-loop.c (inferior_event_handler): If fetching an inferior
1197 event throws an error, don't pop the target, and still call the
1198 continuations, but with `err' set. Adjust all other continuation
1200 * breakpoint.c (until_break_command_continuation): Add `err'
1202 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
1203 issue another step if `err' is set.
1204 (struct until_next_continuation_args): New.
1205 (until_next_continuation): Add `err' parameter. Adjust.
1206 (until_next_command): Adjust.
1207 (struct finish_command_continuation_args): Add `thread' field.
1208 (finish_command_continuation): Add `err' parameter. Handle it.
1209 (finish_forward): Adjust.
1210 (attach_command_continuation): Add `err' parameter. Handle it.
1211 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1212 cancel the continuations.
1213 * interps.c (interp_set): Adjust to cancel the continuations.
1214 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1215 continuations rather than discarding.
1216 (free_thread): Don't clear thread inferior resources here.
1217 (delete_thread_1): Do it here instead. And do it before removing
1218 the thread from the threads list. Tag the thread as exited before
1219 clearing thread inferior resources.
1221 2011-05-30 Joel Brobecker <brobecker@adacore.com>
1223 * infcall.c (call_function_by_hand): Rephrase error message.
1225 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1227 * defs.h (struct thread_info, struct inferior): Delete forward
1229 * breakpoint.h (struct thread_info): New forward declaration.
1230 * observer.sh (struct inferior): New forward declaration.
1231 * python/python-internal.h (struct inferior): New forward
1234 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1236 * defs.h (struct continuation, continuation_ftype)
1237 (continuation_free_arg_ftype, add_continuation)
1238 (do_all_continuations, do_all_continuations_thread)
1239 (discard_all_continuations, discard_all_continuations_thread)
1240 (add_intermediate_continuation, do_all_intermediate_continuations)
1241 (do_all_intermediate_continuations_thread)
1242 (discard_all_intermediate_continuations)
1243 (discard_all_intermediate_continuations_thread)
1244 (add_inferior_continuation, do_all_inferior_continuations)
1245 (discard_all_inferior_continuations): Move to ...
1246 * continuations.h: ... this new file.
1247 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1248 infcmd.c, inferior.c, infrun.c, interps.c: Include
1251 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1252 Doug Evans <dje@google.com>
1254 Fix PR 10970, PR 12702.
1255 * linux-nat.c (linux_lwp_is_zombie): New function.
1256 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1257 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1259 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1261 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1263 (add_continuation, add_intermediate_continuation)
1264 (add_inferior_continuation): Use them.
1265 * continuations.c (struct continuation): Use them.
1266 (make_continuation_ftype): Delete.
1267 (make_continuation, add_inferior_continuation, add_continuation)
1268 (add_intermediate_continuation): Use continuation_ftype and
1269 continuation_free_arg_ftype. Rename parameters to shorter names.
1271 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1273 * continuations.c (make_continuation): Make it return void.
1274 (do_my_continuations): Rename to ...
1275 (do_my_continuations_1): ... this. Remove old_chain parameter and
1277 (do_my_continuations): New.
1278 (discard_my_continuations): Rename to ...
1279 (discard_my_continuations_1): ... this. Remove old_chain
1280 parameter and adjust.
1281 (discard_my_continuations): New.
1282 (add_inferior_continuation): Simplify.
1283 (do_all_inferior_continuations): Reimplement on top
1284 do_my_continuations.
1285 (discard_all_inferior_continuations): Simplify.
1286 (add_continuation): Simplify.
1287 (do_all_continuations_ptid): Simplify.
1288 (discard_all_continuations_thread_callback): Simplify.
1289 (add_intermediate_continuation): Simplify.
1290 (discard_all_intermediate_continuations_thread_callback):
1293 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1295 * utils.c (struct continuation, add_continuation)
1296 (add_inferior_continuation)
1297 (do_all_inferior_continuations, discard_all_inferior_continuations)
1298 (restore_thread_cleanup, do_all_continuations_ptid)
1299 (do_all_continuations_thread_callback)
1300 (do_all_continuations_thread, do_all_continuations)
1301 (discard_all_continuations_thread_callback)
1302 (discard_all_continuations_thread, discard_all_continuations)
1303 (add_intermediate_continuation)
1304 (do_all_intermediate_continuations_thread_callback)
1305 (do_all_intermediate_continuations_thread)
1306 (do_all_intermediate_continuations)
1307 (discard_all_intermediate_continuations_thread_callback)
1308 (discard_all_intermediate_continuations_thread)
1309 (discard_all_intermediate_continuations): Move to ...
1310 * continuations.c: ... this new file, and adjust to no longer
1311 implement continuations on top of cleanups.
1312 * Makefile.in (SFILES): Add continuations.c.
1313 (COMMON_OBS): Add continuations.o.
1315 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1317 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1318 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1319 Internal error on invalid values.
1320 * reverse.c: Don't handle EXEC_ERROR.
1321 * mi/mi-main.c: Don't handle EXEC_ERROR.
1323 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1325 * record.c: Include event-loop.h, inf-loop.h.
1326 (record_beneath_to_async): New global.
1327 (tmp_to_async): New global.
1328 (record_async_inferior_event_token): New global.
1329 (record_open_1): Don't error out if async is enabled.
1330 (record_open): Handle to_async. Create an async event source in
1332 (record_close): Delete the async event source.
1333 (record_resumed): New global.
1334 (record_execution_dir): New global.
1335 (record_resume, record_core_resume): Set them. Register the
1336 target on the event loop.
1337 (record_wait): Rename to ...
1338 (record_wait_1): ... this. Add more debug output. Handle
1339 TARGET_WNOHANG, and the target beneath returning
1340 TARGET_WAITKIND_IGNORE.
1341 (record_wait): Reimplement on top of record_wait_1.
1342 (record_async_mask_value): New global.
1343 (record_async, record_async_mask, record_can_async_p)
1344 (record_is_async_p, record_execution_direction): New functions.
1345 (init_record_ops, init_record_core_ops): Install new methods.
1346 * infrun.c (fetch_inferior_event): Temporarily switch the global
1347 execution direction to the direction the target was going.
1348 (execution_direction): Change type to int.
1349 * target.c (default_execution_direction): New function.
1350 (update_current_target): Inherit and de_fault
1351 to_execution_direction.
1352 * target.h (struct target_ops) <to_execution_direction>: New
1354 (target_execution_direction): New macro.
1355 * inferior.h (execution_direction): Change type to int.
1357 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1359 * infcall.c (call_function_by_hand): Don't allow calling functions
1360 in reverse execution mode.
1362 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1364 * infcmd.c (finish_command): Allow async finish in reverse.
1366 2011-05-26 Yao Qi <yao@codesourcery.com>
1368 * gdb_thread_db.h: Delete. Move to ...
1369 * common/gdb_thread_db.h: ... here.
1371 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1373 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1374 function's entry point instead of a manually managed momentary
1375 breakpoint, and only ever issue one proceed call.
1376 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1377 doing a reverse-finish, switch to stepi mode, to do another step.
1378 (insert_step_resume_breakpoint_at_sal): Make public.
1379 (normal_stop): No need to save function value return registers if
1381 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1383 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1385 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1386 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1387 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
1389 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1390 step-resume breakpoints.
1391 (print_it_typical): Handle bp_hp_step_resume.
1392 (bpstat_what): Ditto.
1393 (bptype_string): Ditto.
1394 (print_one_breakpoint_location): Ditto.
1395 (allocate_bp_location): Ditto.
1397 (breakpoint_re_set_one): Ditto.
1398 * infrun.c (handle_inferior_event): Adjust. Split
1399 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1400 BPSTAT_WHAT_HP_STEP_RESUME.
1401 (insert_step_resume_breakpoint_at_sal): Rename to ...
1402 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
1403 parameter. Handle it.
1404 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1405 insert_step_resume_breakpoint_at_sal_1.
1406 (insert_step_resume_breakpoint_at_frame): Rename to ...
1407 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
1408 set a high-priority step-resume breakpoint.
1409 (insert_step_resume_breakpoint_at_frame): Adjust comment.
1410 (insert_step_resume_breakpoint_at_caller): Ditto.
1412 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1414 * breakpoint.c (iterate_over_related_breakpoints): New.
1415 (do_map_delete_breakpoint): New.
1416 (delete_command): Pass do_map_delete_breakpoint to
1417 map_breakpoint_numbers.
1418 (do_disable_breakpoint): New.
1419 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1421 (do_enable_breakpoint): Rename to ...
1422 (enable_breakpoint_disp): ... this.
1423 (enable_breakpoint): Adjust.
1424 (do_enable_breakpoint): New.
1425 (enable_once_breakpoint): Delete.
1426 (do_map_enable_breakpoint): New.
1427 (do_map_enable_once_breakpoint): New.
1428 (enable_once_command, enable_delete_command)
1429 (delete_trace_command): Iterate over the breakpoint's related
1432 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1434 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1435 for ALPHA_ZERO_REGNUM.
1436 (alpha_supply_int_regs): Explicitly supply zero as the value for
1437 ALPHA_ZERO_REGNUM in the register cache.
1438 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1440 2011-05-26 Yao Qi <yao@codesourcery.com>
1442 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1444 2011-05-26 Tristan Gingold <gingold@adacore.com>
1446 * symfile.h (struct dwarf2_section_names): New type.
1447 (struct dwarf2_debug_sections): New type.
1448 (dwarf2_has_info): Add parameter.
1449 * dwarf2read.c (dwarf2_elf_names): New variable.
1450 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1451 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1452 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1453 (dwarf2_has_info): Add names parameter. Pass names
1454 to dwarf2_locate_sections.
1455 (section_is_p): Rewrite using the names parameter.
1456 (dwarf2_locate_sections): Use section names from the names parameter.
1457 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1458 * elfread.c (read_psyms): Ditto.
1459 * machoread.c (macho_symfile_read): Ditto.
1461 2011-05-25 Andreas Schwab <schwab@redhat.com>
1464 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1466 2011-05-24 Keith Seitz <keiths@redhat.com>
1469 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1470 (decode_compound): Unconditionally call keep_name_info.
1472 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1474 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1475 scope, clear its command list.
1476 (map_breakpoint_numbers): Don't walk the related breakpoints list
1479 2011-05-24 Tom Tromey <tromey@redhat.com>
1481 * MAINTAINERS: Move Jim Blandy to past maintainers.
1483 2011-05-24 Tristan Gingold <gingold@adacore.com>
1485 * symfile.h (enum dwarf2_section_enum): New type.
1486 (dwarf2_get_section_info): New prototype.
1487 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1488 section_name by sect. Use a switch to select the info.
1489 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1490 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1492 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1494 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1495 shared library event breakpoint if there's no execution.
1497 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
1499 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1500 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1502 2011-05-23 Tom Tromey <tromey@redhat.com>
1504 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1507 2011-05-23 Doug Evans <dje@google.com>
1509 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1510 entry for RuntimeError to doc string.
1512 2011-05-23 Jerome Guitton <guitton@adacore.com>
1514 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1515 sequence for probing loops.
1517 2011-05-23 Pedro Alves <pedro@codesourcery.com>
1519 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1522 2011-05-21 Mark Kettenis <kettenis@gnu.org>
1524 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1525 zero as the value for %g0 in the register cache.
1526 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1527 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1529 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1531 * infrun.c (proceed): Set previous_inferior_ptid here.
1532 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1533 inferior_ptid, not null_ptid.
1534 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1535 (fetch_inferior_event): Nor here.
1537 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1539 * inf-loop.c (inferior_event_handler): Only output a message if
1542 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
1544 * MAINTAINERS: Update my e-mail address.
1546 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1548 * infrun.c (proceed): Switch the inferior event loop to
1549 INF_EXEC_COMPLETE if the target refused to resume from a
1552 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1554 * infcmd.c: Include "inf-loop.h".
1555 (step_once): When stepping into an inline subroutine, pretend the
1556 target has run. If the target can async, switch the inferior
1557 event loop to INF_EXEC_COMPLETE.
1558 * inferior.h (user_visible_resume_ptid): Declare.
1559 * infrun.c (user_visible_resume_ptid): New function, factored out
1562 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1563 that the current thread is running. Merge async and sync
1566 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1568 * infcmd.c (step_1): Simplify synchronous case.
1570 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1572 * tracepoint.c: Include exceptions.h.
1573 (TFILE_PID): Move higher in file.
1574 (tfile_open): Delay pushing the tfile target until we're assured
1575 the tfile header is present in the file. Wrap reading the initial
1576 newline-terminated lines in TRY_CATCH. Pop the target if the
1577 initial setup failed. Add the tfile's thread immediately
1578 aftwards, before any non-essential setup. Don't skip
1579 post_create_inferior if there are no traceframes present in the
1581 (tfile_close): Remove redundant check for null before xfree call.
1582 (tfile_thread_alive): New function.
1583 (init_tfile_ops): Register it as to_thread_alive callback.
1585 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1587 * tracepoint.c (tfile_open): Delete #if 0'd code.
1589 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1591 Fix -readnow for -gdwarf-4 unused type units.
1592 * dwarf2read.c (struct signatured_type): Remove the field offset.
1593 (create_signatured_type_table_from_index): Remove its initialization.
1594 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1595 instead. Add a complaint call.
1596 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1597 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1598 (lookup_signatured_type_at_offset, read_signatured_type)
1599 (write_one_signatured_type): Update the field for per_cu.
1601 2011-05-19 Tom Tromey <tromey@redhat.com>
1603 * python/py-inferior.c (python_inferior_exit): Use
1605 (python_on_resume): Likewise.
1607 2011-05-19 Matt Rice <ratmice@gmail.com>
1609 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1611 2011-05-19 Hui Zhu <teawater@gmail.com>
1613 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1615 2011-05-19 Hui Zhu <teawater@gmail.com>
1617 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1619 2011-05-18 Tom Tromey <tromey@redhat.com>
1621 * dwarf2read.c (dwarf2_add_field): Constify.
1622 * value.c (value_static_field): Constify.
1623 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1625 * ax-gdb.c (gen_static_field): Constify
1627 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1629 * linux-nat.c (kill_callback): Use SIGKILL first.
1631 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1633 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1635 2011-05-18 Tom Tromey <tromey@redhat.com>
1637 * value.c (value_fn_field): Constify.
1638 * symtab.c (gdb_mangle_name): Constify.
1639 * stabsread.c (update_method_name_from_physname): Make 'physname'
1641 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1642 const. Use explicit fputc_filtered loop.
1643 (pascal_type_print_base): Constify.
1644 * p-lang.h (pascal_type_print_method_args): Update.
1645 * linespec.c (add_matching_methods): Constify.
1646 (add_constructors): Likewise.
1647 * jv-typeprint.c (java_type_print_base): Constify.
1648 * gdbtypes.h (struct cplus_struct_type)
1649 <fn_fieldlist.fn_field.physname>: Now const.
1650 * dwarf2read.c (compute_delayed_physnames): Constify.
1651 (dwarf2_add_member_fn): Likewise.
1652 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1654 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1656 * infrun.c (resume): Mention which is the current thread, and its
1657 current PC in debug output.
1658 (prepare_to_proceed): Mention the thread switching in debug
1661 2011-05-18 Tom Tromey <tromey@redhat.com>
1663 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1664 path check. Use xmalloc and cleanups.
1665 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1667 2011-05-17 Tom Tromey <tromey@redhat.com>
1669 * cp-valprint.c (cp_print_value_fields): Catch errors from
1672 2011-05-17 Tom Tromey <tromey@redhat.com>
1674 * dwarf2read.c (dwarf2_get_die_type): Call
1675 get_die_type_at_offset.
1676 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1677 get_base_type function.
1679 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1681 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1684 2011-05-16 Doug Evans <dje@google.com>
1686 * python/py-auto-load.c (source_section_scripts): Mention objfile
1689 2011-05-15 Doug Evans <dje@google.com>
1691 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1692 (try_thread_db_load_from_pdir): Call it. If unable to find
1693 libthread_db in directory of libpthread, see if we're looking at
1694 the separate-debug-info copy.
1696 * python/py-autoload.c (print_script): Print "Missing" instead of
1697 "No" for missing scripts.
1698 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1700 2011-05-13 Doug Evans <dje@google.com>
1702 * ui-file.c (stdio_file_write_async_safe): Add comment.
1704 2011-05-14 Hui Zhu <teawater@gmail.com>
1706 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1708 2011-05-13 Doug Evans <dje@google.com>
1710 Support $pdir and $sdir in libthread-db-search-path.
1711 * NEWS: Mention $sdir,$pdir.
1712 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1713 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1714 (try_thread_db_load_from_sdir): New function.
1715 (try_thread_db_load_from_dir): New function.
1716 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1717 system directories if search of libthread-db-search-path fails,
1718 that is now done via $sdir.
1719 (has_libpthread): New function.
1720 (thread_db_load): Remove search for libthread_db in directory of
1721 libpthread, that is now done via $pdir.
1723 * NEWS: Mention "info auto-load-scripts".
1724 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1725 script_not_found_warning_printed.
1726 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1727 all callers updated. Initialize script_not_found_warning_printed.
1728 (get_auto_load_pspace_data_for_loading): New function.
1729 (maybe_add_script): New function.
1730 (source_section_scripts): Simplify. Only print one warning regardless
1731 of the number of auto-load scripts not found.
1732 (clear_section_scripts): Clear script_not_found_warning_printed.
1733 (auto_load_objfile_script): Record script in hash table.
1734 (count_matching_scripts): New function.
1735 (maybe_print_script): Renamed from maybe_print_section_script, all
1736 callers updated. Rewrite to use ui_out_*.
1737 (info_auto_load_scripts): Renamed from
1738 maintenance_print_section_scripts, all callers updated.
1739 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1740 renamed as "info auto-load-scripts".
1742 2011-05-13 Tom Tromey <tromey@redhat.com>
1744 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1745 (read_sleb128): Likewise.
1747 2011-05-13 Tom Tromey <tromey@redhat.com>
1749 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1752 2011-05-13 Doug Evans <dje@google.com>
1754 * linux-nat.c (debug_linux_nat_async): Delete.
1755 Replace all references to use debug_linux_nat instead.
1756 (show_debug_linux_nat_async): Delete.
1757 (sigchld_handler): Call ui_file_write_async_safe instead of
1759 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1760 * ui-file.c (struct ui_file): New member to_write_async_safe.
1761 (null_file_write_async_safe): New function.
1762 (ui_file_write_async_safe): New function.
1763 (set_ui_file_write_async_safe): New function.
1764 (ui_file_new): Initialize to_write_async_safe.
1765 (stdio_file_write_async_safe): New function.
1766 (struct stdio_file): New member fd.
1767 (stdio_file_new): Initialize to_write_async_safe, fd.
1768 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1770 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1771 (set_ui_file_write_async_safe): Declare.
1772 (ui_file_write_async_safe): Declare.
1774 2011-05-13 Tom Tromey <tromey@redhat.com>
1776 * utils.c (do_value_free): New function.
1777 (make_cleanup_value_free): Likewise.
1778 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1780 (dwarf2_loc_desc_needs_frame): Call
1781 make_cleanup_value_free_to_mark.
1782 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1783 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1785 (new_dwarf_expr_context): Don't call value_mark.
1786 * dwarf2-frame.c (execute_stack_op): Call
1787 make_cleanup_value_free_to_mark.
1788 * defs.h (make_cleanup_value_free): Declare.
1790 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1792 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1793 prepare_execute_command.
1794 * top.c (prepare_execute_command): Return cleanup.
1795 (execute_command): Use cleanup from prepare_execute_command.
1796 * top.h (prepare_execute_command): Change prototype to return
1798 * defs.h (struct value): Add opaque declaration.
1799 (make_cleanup_value_free_to_mark): Add prototype.
1800 * utils.c (do_value_free_to_mark): New function.
1801 (make_cleanup_value_free_to_mark): Likewise.
1803 2011-05-12 Tom Tromey <tromey@redhat.com>
1805 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1806 cast left-hand-side to unsigned.
1808 2011-05-12 Tom Tromey <tromey@redhat.com>
1811 * value.h (value_from_contents): Declare.
1812 * value.c (value_from_contents): New function.
1813 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1814 (dwarf2_get_die_type): New function.
1815 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1816 (allocate_piece_closure): Acquire reference to values.
1817 (read_pieced_value): Update for value-based expressions.
1818 (write_pieced_value): Likewise.
1819 (free_pieced_value_closure): Call value_free as needed.
1820 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1821 Update for value-based expressions.
1822 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1823 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1824 <get_base_type>: New field.
1825 (struct dwarf_expr_piece) <v.value>: Change type.
1826 <v.regno>: New field.
1827 (struct dwarf_expr_context) <mark>: New field.
1828 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1829 (dwarf_expr_pop, dwarf_expr_push): Remove.
1830 (dwarf_expr_push_address): Declare.
1831 * dwarf2expr.c (dwarf_arch_cookie): New global.
1832 (struct dwarf_gdbarch_types): New.
1833 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1835 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1837 (dwarf_expr_push_address): New function.
1838 (dwarf_expr_pop): Now static.
1839 (dwarf_expr_fetch): Change return type.
1840 (dwarf_require_integral): New function.
1841 (dwarf_expr_fetch): Simplify.
1842 (add_piece): Update.
1843 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1845 (execute_stack_op) <sign_ext>: Remove.
1846 Use values for DWARF stack.
1847 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1848 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1850 (_initialize_dwarf2expr): New function.
1851 (add_piece): Update.
1852 (new_dwarf_expr_context): Set new field.
1853 (free_dwarf_expr_context): Call value_free_to_mark.
1854 * dwarf2-frame.c (no_base_type): New function.
1855 (execute_stack_op): Set get_base_type field. Update.
1857 2011-05-12 Tom Tromey <tromey@redhat.com>
1859 * dwarf2read.c (read_common_block): Fix formatting.
1861 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1863 * breakpoint.c (disable_breakpoint): Disable all locations
1864 associated with a tracepoint on target if a trace experiment is
1866 (disable_command): Disable a specific tracepoint location on target if
1867 a trace experiment is running.
1868 (do_enable_breakpoint): Enable all locations associated with a
1869 tracepoint on target if a trace experiment is running.
1870 (enable_command) Enable a specific tracepoint location on target if a
1871 trace experiment is running.
1872 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1873 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1874 to_disable_tracepoint.
1875 * target.h: Add declaration of struct bp_location.
1876 (struct target_ops): Add new functions
1877 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1878 to_disable_tracepoint to target operations.
1879 (target_supports_enable_disable_tracepoint): New macro.
1880 (target_enable_tracepoint): New macro.
1881 (target_disable_tracepoint): New macro.
1882 * remote.c (struct remote_state): Add new field.
1883 (remote_enable_disable_tracepoint_feature): New.
1884 (remote_protocol_features): Add new entry.
1885 (remote_supports_enable_disable_tracepoint): New.
1886 (remote_enable_tracepoint): New.
1887 (remote_disable_tracepoint): New.
1888 (init_remote_ops): Add remote_enable_tracepoint,
1889 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1890 to remote operations.
1891 * tracepoint.c (start_tracing): Allow tracing to start without any
1892 tracepoints enabled with just a warning if they can be re-enabled
1894 * NEWS: Add news item for the new behaviour of the enable and disable
1895 GDB commands when applied to tracepoints.
1896 Add news items for the new remote packets QTEnable and QTDisable.
1898 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1900 * config.in: Regenerate.
1901 * configure: Regenerate.
1902 * configure.ac <--with-system-readline> (for readline_echoing_p):
1904 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1905 (tui_old_rl_echoing_p): ... here.
1906 (tui_setup_io): Rename extern declaration readline_echoing_p to
1907 _rl_echoing_p. Adjust assignments for the both renames.
1909 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1911 * symtab.c (lookup_symtab): Run cleanup before returning.
1913 2011-05-11 Tom Tromey <tromey@redhat.com>
1915 * dwarf2read.c (handle_data_member_location): New function.
1916 (dwarf2_add_field): Use it.
1917 (read_common_block): Likewise.
1919 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1921 Make addrs->SECTINDEX always defined.
1922 * symfile.c (relative_addr_info_to_section_offsets): Check for
1923 SECTINDEX -1, not for zero ADDR.
1924 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1925 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1926 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1929 2011-05-10 Doug Evans <dje@google.com>
1931 * linux-thread-db.c: Whitespace cleanup.
1932 (try_thread_db_load_1): Fix comment.
1934 * linux-thread-db.c (set_libthread_db_search_path): New function.
1935 (_initialize_thread_db): Add setter for libthread-db-search-path.
1937 2011-05-09 Doug Evans <dje@google.com>
1939 * NEWS: Mention --with-iconv-bin.
1940 * configure.ac: New option --with-iconv-bin.
1941 * configure: Regenerate.
1942 * config.in: Regenerate.
1943 * defs.h (relocate_gdb_directory): Declare.
1944 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1945 removed progname parameter, and exported. All callers updated.
1946 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1948 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1949 adding missing call to restore_child_signals_mask.
1951 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1953 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1955 * infrun.c (proceed, start_remote): Adjust.
1956 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1957 and adjust to not handle it.
1958 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1959 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1960 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1961 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1962 * windows-nat.c (do_initial_windows_stuff): Adjust.
1963 * infcmd.c (attach_command): Adjust.
1964 (notice_new_inferior): Adjust.
1966 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1968 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1969 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1970 * spu-tdep.c (op_selb): Use correct value.
1972 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1974 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1975 "parent" parameter to symbol_file_add_from_bfd call.
1977 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1978 Thiago Jung Bauermann <bauerman@br.ibm.com>
1980 Implement support for PowerPC BookE masked watchpoints.
1981 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1983 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1984 method. Initialize to NULL in all existing breakpoint_ops instances.
1985 (struct breakpoint) <hw_wp_mask>: New field.
1986 * breakpoint.c (is_masked_watchpoint): Add prototype.
1987 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1988 breakpoint's breakpoint_ops.works_in_software_mode if available.
1989 (watchpoints_triggered): Handle the case of a hardware masked
1991 (watchpoint_check): Likewise.
1992 (works_in_software_mode_watchpoint): New function.
1993 (insert_masked_watchpoint, remove_masked_watchpoint)
1994 (resources_needed_masked_watchpoint)
1995 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1996 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1997 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1999 (masked_watchpoint_breakpoint_ops): New structure.
2000 (watch_command_1): Check for the existence of the `mask' parameter.
2001 Set b->ops according to the type of hardware watchpoint being created.
2002 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
2003 (ppc_linux_remove_mask_watchpoint)
2004 (ppc_linux_masked_watch_num_registers): New functions.
2005 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
2006 to_remove_mask_watchpoint and to_masked_watch_num_registers.
2007 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
2008 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
2009 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2010 (target_masked_watch_num_registers): New functions.
2011 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
2012 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
2014 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2015 (target_masked_watch_num_registers): Add prototypes.
2017 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2020 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
2021 (producer_is_gcc_ge_4_0): New function.
2022 (process_full_comp_unit): Set also symtab->locations_valid. Move the
2023 symtab->language code.
2024 (var_decode_location): Set cu->has_loclist.
2025 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
2026 skip. Intialize force_skip from locations_valid. Move the prologue
2027 skipping code into two passes.
2028 * symtab.h (struct symtab): Make the primary field a bitfield. New
2029 field locations_valid.
2031 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2033 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
2034 (classify_inner_name): Call cp_lookup_nested_type with
2036 * cp-namespace.c (cp_lookup_nested_type): New variable
2037 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
2038 type_name_no_tag_or_error with saved_parent_type.
2039 * dwarf2read.c (load_partial_dies): Read in any children of
2040 DW_TAG_typedef with complaint in such case.
2041 * gdbtypes.c (type_name_no_tag_or_error): New function.
2042 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
2043 * valops.c (destructor_name_p): New comment for parameter type. Remove
2044 type const. Make dname and cp const. Call type_name_no_tag_or_error.
2045 * value.h (destructor_name_p): Remove type const.
2047 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2049 * symtab.c (compare_symbol_name): New function.
2050 (completion_list_add_name, expand_partial_symbol_name): Call it,
2051 remove the variable ncmp.
2052 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
2055 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2057 Demote to sw watchpoint only in update_watchpoint.
2058 * breakpoint.c (update_watchpoint): Change between software and
2059 hardware watchpoint for all kinds of watchpoints, not just
2060 read/write ones. Determine b->exact value here instead of
2061 in watch_command_1. Error out if there are not enough resources
2062 for a read or access hardware watchpoint.
2063 (watch_command_1): Remove logic of checking whether there are
2064 enough resources available, since update_watchpoint will do that
2065 work now. Don't set b->exact here. Catch exceptions thrown by
2066 update_watchpoint and delete the watchpoint.
2067 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
2068 Use target_exact_watchpoints instead.
2069 (delete_breakpoint): Notify observers only if deleted watchpoint
2070 has a breakpoint number assigned to it.
2072 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
2074 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2076 2011-05-05 Jerome Guitton <guitton@adacore.com>
2078 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
2080 (i386_stack_tramp_frame_unwind): New static global.
2081 (i386_match_pattern): New function, extracted from i386_match_insn.
2082 (i386_match_insn): Use i386_match_pattern.
2083 (i386_match_insn_block): New function.
2084 (i386_tramp_chain_in_reg_insns)
2085 (i386_tramp_chain_on_stack_insns): New static variables.
2086 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
2089 2011-05-04 Joseph Myers <joseph@codesourcery.com>
2091 * configure.host (xscale*): Don't handle target.
2092 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
2095 2011-05-04 Yao Qi <yao@codesourcery.com>
2097 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
2099 2011-05-03 Joel Brobecker <brobecker@adacore.com>
2102 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
2103 | * elfread.c (elf_symtab_read): Stop memory leak.
2105 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2107 * nto-tdep.c (nto_target): Replace deprecated call to
2108 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
2110 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2112 Fix false GCC warning.
2113 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
2115 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2117 * breakpoint.c (update_watchpoint): Move code to change
2118 the enable state of breakpoint from here ...
2119 (do_enable_breakpoint): ... to here.
2121 2011-04-26 Andrew Gontarek <andrewg@cray.com>
2123 * valprint.c (val_print_array_elements): Fixed poor performance
2124 of printing very large arrays with repeat_count_threshold set
2125 to unlimited. New comment.
2127 2011-04-29 Tom Tromey <tromey@redhat.com>
2129 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
2130 (mi_parse): Likewise.
2131 * breakpoint.c (break_range_command): Use sizeof char*, not
2133 (create_breakpoint): Likewise.
2134 (parse_breakpoint_sals): Likewise.
2136 2011-04-29 Pedro Alves <pedro@codesourcery.com>
2138 * linux-nat.c (linux_child_remove_fork_catchpoint)
2139 (linux_child_remove_vfork_catchpoint)
2140 (linux_child_remove_exec_catchpoint): New functions.
2141 (linux_target_install_ops): Install them.
2143 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
2147 * varobj.c (install_default_visualizer): Do not install a
2148 visualizer if the varobj is CPLUS_FAKE_CHILD.
2149 (construct_visualizer): Likewise.
2151 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2153 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
2154 case insensitive comparison.
2156 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
2158 * infrun.c (proceed): Revert previous change.
2159 (resume): Instead, handle the case of signal delivery while stepping
2160 off a breakpoint location here, and only if software single-stepping
2161 is used. Handle nested signals.
2163 2011-04-28 Yao Qi <yao@codesourcery.com>
2165 * arm-tdep.c (copy_unmodified): Rename to ...
2166 (arm_copy_unmodified): .. this. New.
2167 (copy_preload): Move common part to ...
2168 (install_preload): .. this. New.
2169 (arm_copy_preload): New.
2170 (copy_preload_reg): Move common part to ...
2171 (install_preload_reg): ... this. New.
2172 (arm_copy_preload_reg): New.
2173 (copy_b_bl_blx): Move common part to ...
2174 (install_b_bl_blx): .. this. New.
2175 (arm_copy_b_bl_blx): New.
2176 (copy_bx_blx_reg): Move common part to ...
2177 (install_bx_blx_reg): ... this. New.
2178 (arm_copy_bx_blx_reg): New.
2179 (copy_alu_reg): Move common part to ...
2180 (install_alu_reg): ... this. New.
2181 (arm_copy_alu_reg): New.
2182 (copy_alu_shifted_reg): Move common part to ...
2183 (install_alu_shifted_reg): ... this. New.
2184 (copy_ldr_str_ldrb_strb): Move common part to ...
2185 (install_ldr_str_ldrb_strb): ... this. New.
2186 (arm_copy_ldr_str_ldrb_strb): New.
2187 (copy_copro_load_store): Move some common part to ...
2188 (install_copy_copro_load_store): ... this. New.
2189 (arm_copy_copro_load_store): New.
2191 (arm_copy_svc): Renamed from copy_svc.
2192 (copy_undef): Delete.
2193 (arm_copy_undef): Renamed from copy_undef.
2194 (decode_ext_reg_ld_st): Delete.
2195 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2196 (decode_svc_copro): Delete.
2197 (arm_decode_svc_copro): Renamed from decode_svc_copro.
2198 (copy_copro_load_store, copy_alu_imm): update callers.
2199 (copy_extra_ld_st, copy_block_xfer): Likewise.
2200 (decode_misc_memhint_neon, decode_unconditional): Likewise.
2201 (decode_miscellaneous, decode_dp_misc): Likewise.
2202 (decode_ld_st_word_ubyte, decode_media): Likewise.
2203 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
2204 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
2205 (decode_unconditional, decode_miscellaneous): Likewise.
2206 (decode_media, decode_b_bl_ldmstm): Likewise.
2207 (arm_process_displaced_insn): Likewise..
2208 (decode_misc_memhint_neon): Delete.
2209 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2210 (decode_miscellaneous): Delete.
2211 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2212 (decode_dp_misc): Delete.
2213 (arm_decode_dp_misc): Renamed from decode_dp_misc.
2214 (decode_ld_st_word_ubyte): Delete.
2215 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2216 (decode_media): Delete.
2217 (arm_decode_media): Renamed from decode_media.
2218 (decode_b_bl_ldmstm): Delete.
2219 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2220 (decode_ext_reg_ld_st): Delete.
2221 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2222 (decode_unconditional): Delete.
2223 (arm_decode_unconditional): Renamed from decode_unconditional.
2225 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2227 Case insensitive lookups implementation.
2228 * dwarf2read.c: Include ctype.h.
2229 (struct mapped_index): New field version.
2230 (mapped_index_string_hash): New parameter index_version. New comment
2231 for it. Call tolower appropriately.
2232 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2233 Choose the right index version for mapped_index_string_hash.
2234 (dwarf2_read_index): Support also the index version 5. Initialize the
2235 new struct mapped_index field version.
2236 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2237 (find_slot): Explain the version needs. Pass INT_MAX for the new
2239 (write_psymtabs_to_index): Produce version 5.
2240 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2241 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2242 * psymtab.c (lookup_partial_symbol): Find the
2243 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2245 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2247 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2248 (completion_list_add_name): New variable ncmp, initialize it, use it.
2249 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2250 * utils.c (strcmp_iw): Support case_sensitive_off.
2251 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2252 New function comment part. New variables saved_string1,
2253 saved_string2 and case_pass. Add a proper second pass.
2255 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2257 Replace re_comp/re_exec by regcomp/regexec.
2258 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2259 (search_symbols_name_matches): Use them, use regexec.
2260 (search_symbols): New variable retval_chain, adjust the use of
2261 old_chain against it. Replace re_comp by regcomp. Use the new struct
2262 search_symbols_data fields, use regexec instead of re_exec.
2264 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2266 Format the code for the next patch.
2267 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2268 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2269 New variables c1 and c2.
2271 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2273 * infrun.c (proceed): Do not single-step into signal delivery
2274 when stepping off a breakpoint location.
2275 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2276 (insert_step_resume_breakpoint_at_caller): Likewise.
2277 (insert_step_resume_breakpoint_at_sal): Likewise.
2278 (insert_longjmp_resume_breakpoint): Likewise.
2280 2011-04-27 Yao Qi <yao@codesourcery.com>
2282 * common/linux-ptrace.h: Remove include <sys/wait.h>.
2284 2011-04-27 Joel Brobecker <brobecker@adacore.com>
2286 * procfs.c (procfs_pass_signals): Fix advance declaration.
2288 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2290 * target.h (struct target_ops): Remove to_notice_signals;
2291 add to_pass_signals.
2292 (target_notice_signals): Remove.
2293 (target_pass_signals): Add prototype.
2294 * target.c (update_current_target): Remove to_notice_signals;
2295 mention to_pass_signals.
2296 (target_pass_signals): New function.
2297 (debug_to_notice_signals): Remove.
2298 (setup_target_debug): Do not install debug_to_notice_signals.
2300 * infrun.c (signal_pass): New global.
2301 (resume): Call target_pass_signals.
2302 (handle_inferior_event): Report all signals while stepping over
2303 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
2304 are re-inserted when stepping over a signal handler.
2305 (signal_cache_update): New function.
2306 (signal_stop_update): Call it.
2307 (signal_print_update): Likewise.
2308 (signal_pass_update): Likewise.
2309 (handle_command): Call signal_cache_update and target_pass_signals
2310 instead of target_notice_signals.
2311 (_initialize_infrun): Initialize signal_pass.
2313 * linux-nat.c (pass_mask): New global.
2314 (linux_nat_pass_signals): New function.
2315 (linux_nat_create_inferior): Report all signals initially.
2316 (linux_nat_attach): Likewise.
2317 (linux_nat_resume): Use pass_mask to decide whether to directly
2318 handle an inferior signal.
2319 (linux_nat_wait_1): Likewise.
2320 (linux_nat_add_target): Install to_pass_signals callback.
2322 * nto-procfs.c (notice_signals): Remove.
2323 (procfs_resume): Do not call notice_signals.
2324 (procfs_notice_signals): Remove.
2325 (procfs_pass_signals): New function.
2326 (init_procfs_ops): Install to_pass_signals callback instead of
2327 to_notice_signals callback.
2328 (_initialize_procfs): Report all signals initially.
2330 * procfs.c (procfs_notice_signals): Remove.
2331 (procfs_pass_signals): New function.
2332 (procfs_target): Install to_pass_signals callback instead of
2333 to_notice_signals callback.
2334 (register_gdb_signals): Remove.
2335 (procfs_debug_inferior): Report all signals initially.
2336 (procfs_init_inferior): Remove redundant register_gdb_signals call.
2338 * remote.c (remote_pass_signals): Add numsigs and pass_signals
2339 parameters; use them instead of calling signal_..._state routines.
2340 (remote_notice_signals): Remove.
2341 (remote_start_remote): Report all signals initially.
2342 (remote_resume): Do not call remote_pass_signals.
2343 (_initialize_remote): Install to_pass_signals callback instead of
2344 to_notice_signals callback.
2346 2011-04-27 Pedro Alves <pedro@codesourcery.com>
2348 * breakpoint.c (user_settable_breakpoint): Delete.
2349 (user_breakpoint_p): Remove check on user_settable_breakpoint.
2350 (delete_command): Check user_breakpoint_p instead of looking at
2351 the breakpoint's type.
2352 (disable_command): Ditto.
2353 (enable_command): Ditto.
2354 (delete_trace_command): Use user_breakpoint_p instead of looking
2355 at the breakpoint number directly. When checking if there are
2356 user visible tracepoints, in order to know whether to ask the user
2357 for confirmation, check whether the breakpoint is actually a
2360 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2362 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2365 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2367 MI breakpoint notifications.
2369 * annotate.c (breakpoint_changed): Adjust parameter type.
2370 * breakpoint.c (set_breakpoint_condition): Adjust to change
2371 in breakpoint_modified type.
2372 (breakpoint_set_commands): Likewise.
2373 (do_map_commands_command): Likewise.
2374 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2375 changed after bumping hit count.
2376 (bpstat_stop_status): Likewise.
2377 (print_one_breakpoint_location): Don't wrap in tuple here.
2378 (print_one_breakpoint): Always print individual locations.
2379 For locations, use unnamed tuple.
2380 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2382 (create_catchpoint, create_syscall_event_catchpoint): Call
2383 breakpoint_created obsever.
2384 (mention): Don't call breakpoint_created observer.
2385 (create_breakpoint_sal): Call breakpoint_created observer.
2386 (create_breakpoint, watch_command_1): Likewise.
2387 (create_ada_exception_breakpoint): Likewise.
2388 (delete_breakpoint): Call breakpoint_deleted breakpoint.
2389 (locations_are_equal): New.
2390 (update_breakpoint_locations): If locations were changed, notify.
2391 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2392 Call breakpoint_modified observer.
2394 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2395 (mi_cmd_break_insert): Don't set observers for modify and delete.
2396 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2397 (mi_breakpoint_created, mi_breakpoint_deleted)
2398 (mi_breakpoint_modified): New.
2399 (mi_interpreter_init): Hook the above.
2400 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2401 while -break-* commands are executing.
2402 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2403 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2405 (mi_ui_out_impl): Hook in mi_redirect.
2406 (mi_field_skip): True to the name, skip the field, don't output
2407 a field with an empty value.
2409 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2410 (gdbpy_breakpoint_deleted): Adjust.
2411 * tui/tui-hooks.c (tui_event_create_breakpoint)
2412 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2414 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
2416 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2417 (procfs_remove_hw_watchpoint): Likewise.
2419 2011-04-26 Michael Walle <michael@walle.cc>
2421 * remote.c (remote_start_remote): Ack packet after sending the
2424 2011-04-26 Yao Qi <yao@codesourcery.com>
2426 * linux-nat.c: Move common macros to ...
2427 Include linux-ptrace.h.
2428 * common/linux-ptrace.h: ... here. New.
2430 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2432 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2433 !objfile_has_partial_symbols. New comment.
2434 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2435 SYM_READ_PSYMBOLS is not present. Extend the comment.
2436 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2438 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2440 * defs.h (ENUM_BITFIELD): Remove.
2442 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2443 Eli Zaretskii <eliz@gnu.org>
2445 * NEWS: Document the new gdbserver --once option.
2447 2011-04-21 Jie Zhang <jzhang918@gmail.com>
2449 * MAINTAINERS: Update my email address.
2451 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2453 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2454 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2455 function call if __STDC_ISO_10646__ macro is defined.
2456 (intermediate_encoding): New prototype.
2457 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2458 to generate compile time error for unsupported gdb_wchar_t size.
2459 (ENDIAN_SUFFIX): New macro.
2460 (intermediate_encoding): New function.
2462 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2464 * ada-lang.c (struct add_partial_datum): Update the comment for
2465 expand_partial_symbol_name.
2466 (ada_add_partial_symbol_completions): Rename to ...
2467 (ada_expand_partial_symbol_name): ... here, change return type, update
2468 function comment, call symbol_completion_match instead of
2469 symbol_completion_add.
2470 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2471 and ada_expand_partial_symbol_name.
2472 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2474 (dw2_map_symbol_names): Remove.
2475 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2476 * psymtab.c (map_symbol_names_psymtab): Remove.
2477 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2478 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2480 (psym_functions): Unlist map_symbol_names_psymtab.
2481 (map_partial_symbol_names): Rename to ...
2482 (expand_partial_symbol_names): ... here, change the FUN type, call
2483 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2484 * psymtab.h (map_partial_symbol_names): Rename to ...
2485 (expand_partial_symbol_names): ... here, change the FUN type.
2486 * symfile.h (struct quick_symbol_functions): Update the description of
2487 expand_symtabs_matching. Remove map_symbol_names.
2488 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2489 (struct add_name_data): Update the comment for
2490 expand_partial_symbol_name.
2491 (add_partial_symbol_name): Rename to ...
2492 (expand_partial_symbol_name): ... here. Replace
2493 completion_list_add_name call by strncmp.
2494 (default_make_symbol_completion_list_break_on): Use now
2495 expand_partial_symbol_names and expand_partial_symbol_name.
2496 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2498 2011-04-20 Tom Tromey <tromey@redhat.com>
2500 * dwarf2read.c (save_gdb_index_command): Replace format
2501 documentation with a pointer to the manual.
2503 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2505 * regcache.c: Include remote.h.
2506 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2507 (regcache_dump): Handle regcache_dump_remote.
2508 (maintenance_print_remote_registers): New function.
2509 (_initialize_regcache): Install "maint print remote-registers"
2511 * remote.c (map_regcache_remote_table): New function, factored out
2513 (init_remote_state): ... here.
2514 (remote_register_number_and_offset): New.
2515 * remote.h (remote_register_number_and_offset): Declare.
2517 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2519 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2520 null_ptid, assume and allow a NULL address space, instead of
2521 asking the target for the ptid's address space.
2522 * infrun.c (ptid_is_pid): Remove assertion.
2524 2011-04-19 Tom Tromey <tromey@redhat.com>
2526 * windows-tdep.c (windows_xfer_shared_library):
2527 * windows-nat.c (get_module_name, windows_make_so):
2528 * v850-tdep.c (v850_handle_pushm):
2529 * utils.c (null_cleanup, gdb_realpath):
2530 * ui-out.c (get_next_header):
2531 * tracepoint.c (clear_traceframe_info):
2532 * symtab.c (lookup_symtab):
2533 * serial.h (struct serial_ops):
2534 * mipsread.c (read_alphacoff_dynamic_symtab):
2535 * infcmd.c (print_return_value):
2536 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2537 * f-exp.y (parse_number):
2538 * exceptions.c (catch_exceptions):
2539 * dummy-frame.c (dummy_frame_this_id):
2540 * defs.h (struct cleanup):
2541 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2542 * arm-tdep.c (arm_push_dummy_call):
2543 * amd64-tdep.h (amd64_collect_xsave):
2544 * amd64-tdep.c (amd64_collect_xsave):
2545 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2546 * README (typing): Remove duplicate words.
2547 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2548 * infrun.c (siginfo_value_read): Fix typo.
2549 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2550 * top.c (source_line_number): Add comma.
2552 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2554 * thread.c (any_live_thread_of_process): Prioritize threads
2555 that are not executing.
2556 * gdbthread.h (any_live_thread_of_process): Update comment
2557 as per above change.
2559 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2561 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2562 (scan_xcoff_symtab): Likewise.
2564 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2566 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2569 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2570 Pedro Alves <pedro@codesourcery.com>
2572 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2573 variables to simplify code and avoid == operator at end of
2574 line as this is against GNU coding standards.
2576 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2578 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2579 lm_name to name_lm to avoid conflict with lm_name function.
2581 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2583 ARI fixes: Use only lowercase function name for static functions.
2584 * nto-tdep.c (LM_ADDR): Rename to...
2585 (lm_addr): New function name.
2586 (nto_relocate_section_addresses): Adapt to change above.
2587 * solib-sunos.c (LM_ADDR): Rename to...
2588 (lm_addr): New function name.
2589 (LM_NEXT): Rename to...
2590 (lm_next): New function name.
2591 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2592 function name changes above.
2593 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2594 (lm_addr_from_link_map): New function name.
2595 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2596 (has_lm_dynamic_from_link_map): New function name.
2597 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2598 (lm_dynamic_from_link_map): New function name.
2599 (LM_ADDR_CHECK): Rename to...
2600 (lm_addr_check): New function name.
2601 (LM_NEXT): Rename to...
2602 (lm_next): New function name.
2603 (LM_PREV): Rename to...
2604 (lm_prev): New function name.
2605 (LM_NAME): Rename to...
2606 (lm_name): New function name.
2607 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2608 (ignore_first_link_map_entry): New function name.
2609 (svr4_keep_data_in_core): Adapt to function name changes above.
2610 (svr4_current_sos): Likewise.
2611 (enable_break): Likewise.
2612 (svr4_relocate_section_addresses): Likewise.
2614 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2617 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2618 sprintf. Simplify code and avoid loosing memory.
2619 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2620 (call0_frame_cache): Remove && operator from end of line.
2622 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2624 Fix libraries displacement if they change whether they were prelinked.
2625 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2626 does not match. Comment why.
2628 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2630 * corelow.c: Include wrapper.h.
2631 (core_open): Call now gdb_target_find_new_threads.
2632 * wrapper.c: Include target.h.
2633 (gdb_target_find_new_threads): New.
2634 * wrapper.h (gdb_target_find_new_threads): New declaration.
2636 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2638 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2639 even if !TARGET_HAS_EXECUTION.
2641 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2643 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2644 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2645 bfd_get_synthetic_symtab.
2646 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2647 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2648 parameter parent, remove the call to add_separate_debug_objfile.
2649 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2650 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2651 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2652 parent, new comment for it, call add_separate_debug_objfile for it.
2653 (symbol_file_add_separate): Pass objfile as the parameter parent,
2654 remove the call to add_separate_debug_objfile.
2655 (symbol_file_add_from_bfd): New parameter parent, pass it.
2656 (symbol_file_add): Pass NULL to the new parameter parent.
2657 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2659 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2661 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2664 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2666 Fix Python access to inlined frames.
2667 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2668 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2670 2011-04-15 Tom Tromey <tromey@redhat.com>
2672 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2674 2011-04-15 Gary Benson <gbenson@redhat.com>
2676 * MAINTAINERS: Add myself to write-after-approval section.
2678 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2680 * remote-sim.c (sim_command_completer): New function.
2681 (_initialize_remote_sim): Set completer to sim_command_completer.
2683 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2685 * breakpoint.c (print_exception_catchpoint): Rename to ...
2686 (print_it_exception_catchpoint): ... this.
2687 (gnu_v3_exception_catchpoint_ops): Update with new name
2688 for print_it_exception_catchpoint.
2690 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2692 * MAINTAINERS: Add myself for write after approval privileges.
2694 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2696 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2698 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2700 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2702 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2704 * breakpoint.c (save_breakpoints): Verify whether
2705 breakpoint_ops.print_recreate is defined before calling it.
2707 2011-04-11 Gary Benson <gbenson@redhat.com>
2709 Fix failure with --enable-maintainer-mode.
2710 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2712 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2715 * symtab.c (search_symbols): Reorder the KIND description in the
2716 function comment. Remove the unused 4th element of types, types2,
2717 types3 and types4. New gdb_assert on KIND.
2718 (symtab_symbol_info): Remove the unused 4th element of classnames.
2719 New gdb_assert on KIND.
2720 * symtab.h (enum search_domain): New warning in the enum comment.
2721 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2724 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2726 Fix crash of gdb save-index on a STABS file.
2727 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2730 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2732 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2733 * dwarf2read.c: Include ctype.h.
2734 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2736 (dwarf2_add_field): Fix new_field->accessibility by calling
2737 dwarf2_default_access_attribute. Restructure setting accessibility
2739 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2740 is_private and is_protected by calling
2741 dwarf2_default_access_attribute.
2743 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2745 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2746 to the initialization.
2748 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2750 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2753 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2755 Remove support for old Cygwin 1.5 versions.
2756 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2757 function on old Cygwin version.
2758 * windows-nat.c: Remove cygwin version check and always define
2759 __USEWIDE for Cygwin compilation.
2761 2011-04-07 Yao Qi <yao@codesourcery.com>
2763 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2765 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2766 (arm_copy_svc): Remove parameters INSN and TO.
2767 (decode_svc_copro): Update caller.
2768 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2769 from function pointer `copy_svc_os'.
2771 2011-04-07 Yao Qi <yao@codesourcery.com>
2773 * arm-tdep.c (cleanup_branch): Set a correct return address in
2774 LR for ARM and Thumb.
2776 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2779 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2780 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2781 in the function comment, a new note on values compatibility.
2782 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2783 * symtab.h (SYMBOL_HASH_NEXT): New.
2785 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2787 * ppc-linux-nat.c (check_condition): Add len output parameter.
2788 Set it based on the memory region referenced in the condition
2789 expression. Update all callers.
2791 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2793 Fix crash regression on systems featuring .gdb_index.
2794 * objfiles.c (free_objfile): Move the
2795 forget_cached_source_info_for_objfile call earlier. Comment it.
2796 Extend the comment for objfile_free_data.
2798 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2800 Fix regression of displaying the debug format.
2801 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2804 2011-04-04 Tom Tromey <tromey@redhat.com>
2806 * cli/cli-interp.c (struct captured_execute_command_args):
2808 (do_captured_execute_command): Remove.
2809 (safe_execute_command): Use TRY_CATCH.
2810 * cli/cli-script.c (struct wrapped_read_command_file_args):
2812 (wrapped_read_command_file): Remove.
2813 (script_from_file): Use TRY_CATCH.
2814 * exceptions.c (catch_exception): Remove.
2815 * exceptions.h (catch_exception): Remove.
2816 (deprecated_throw_reason): Update comment.
2817 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2818 argument to 'context'.
2819 (mi_execute_command): Use TRY_CATCH.
2820 * remote.c (struct start_remote_args): Remove.
2821 (remote_start_remote): Update; change arguments.
2822 (remote_open_1): Use TRY_CATCH.
2824 2011-04-04 Tom Tromey <tromey@redhat.com>
2826 * tracepoint.c (scope_info): Update.
2827 * symtab.c (decode_line_spec): Update.
2828 * python/python.c (gdbpy_decode_line): Update.
2829 * linespec.h (decode_line_1): Update.
2830 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2831 (decode_compound, find_method, symtab_from_filename)
2832 (decode_variable): Likewise.
2833 * cli/cli-cmds.c (edit_command): Update.
2834 (list_command): Update.
2835 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2837 (create_breakpoint): Update.
2838 (until_break_command): Update.
2839 (addr_string_to_sals): Update.
2840 (decode_line_spec_1): Update.
2842 2011-04-04 Tom Tromey <tromey@redhat.com>
2844 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2845 (do_captured_parse_breakpoint): Remove.
2846 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2847 Use TRY_CATCH directly.
2849 2011-04-04 Tom Tromey <tromey@redhat.com>
2851 * symtab.h (free_symtab): Remove.
2852 (forget_cached_source_info_for_objfile): Declare.
2853 * symmisc.c (free_symtab): Remove.
2854 * source.c (forget_cached_source_info_for_objfile): New function.
2855 (forget_cached_source_info): Use it.
2856 * objfiles.c (free_objfile): Simplify check before calling
2857 clear_current_source_symtab_and_line. Call
2858 forget_cached_source_info_for_objfile.
2860 2011-04-04 Tom Tromey <tromey@redhat.com>
2862 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2863 (new_symtab): Don't set `free_code' on symtab.
2864 (new_linetable): Properly handle size==0.
2865 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2866 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2868 * jv-lang.c (struct jv_per_objfile_data): New.
2869 (jv_per_objfile_free): Free the data.
2870 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2871 (get_java_class_symtab): Set the `dict' field on the
2872 jv_per_objfile_data.
2873 (free_class_block): Remove.
2874 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2877 2011-04-04 Tom Tromey <tromey@redhat.com>
2879 * symfile.c (reread_symbols): Update.
2880 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2882 * objfiles.c (allocate_objfile): Update.
2883 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2885 * cp-namespace.c (lookup_symbol_file): Don't call
2886 lookup_possible_namespace_symbol.
2887 (initialize_namespace_symtab, get_possible_namespace_block)
2888 (free_namespace_block, cp_check_possible_namespace_symbols)
2889 (check_possible_namespace_symbols_loop)
2890 (check_one_possible_namespace_symbol)
2891 (lookup_possible_namespace_symbol): Remove.
2892 (maintenance_cplus_namespace): Replace with notice.
2893 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2895 2011-04-04 Tom Tromey <tromey@redhat.com>
2897 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2898 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2899 * symmisc.c (free_symtab): Don't free debugformat.
2900 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2901 (record_debugformat, record_producer): Document.
2902 * buildsym.c (end_symtab): Don't save debugformat and producer
2904 (end_symtab): Don't free debugformat and producer fields.
2905 (record_debugformat): Don't call xstrdup.
2906 (record_producer): Likewise.
2908 2011-04-04 Tom Tromey <tromey@redhat.com>
2910 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2911 (source_line_charpos, source_charpos_line): Remove.
2913 2011-04-04 Tom Tromey <tromey@redhat.com>
2915 * symtab.h (domain_enum): Split in two...
2916 (enum search_domain): New.
2917 (search_symbols): Update.
2918 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2919 redundant declarations.
2920 (search_symbols): Change 'kind' argument to search_domain.
2922 (print_symbol_info): Likewise.
2923 (symtab_symbol_info): Likewise.
2924 * symfile.h (struct quick_symbol_functions)
2925 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2926 <expand_symtabs_matching>: Likewise.
2927 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2928 (expand_symtabs_matching_via_partial): Update.
2929 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2930 (dw2_expand_symtabs_for_function): Update.
2931 * block.h: Moved anonymous enum...
2932 * defs.h (enum block_enum): ... here. Now named.
2934 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2936 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2937 * version.in: Bump version to 7.3.50.20110403-cvs.
2939 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2941 * NEWS: Create a new section for the next release branch.
2942 Rename the section of the current branch, now that it has
2945 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2947 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2948 for "fpscr" in target description.
2950 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2952 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2953 initialize it. Delay HASH initialization. Strip the part after open
2954 parenthesis for languages with qualifiers. Call do_cleanups.
2956 2011-04-01 Tom Tromey <tromey@redhat.com>
2958 * utils.c (report_command_stats): Don't print `-' for negative
2961 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2963 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2964 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2967 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2969 * breakpoint.h (bpdisp_text): Add declaration.
2970 * breakpoint.c (bpdisp_text): Make non-static.
2971 * ada-lang.c: #include "mi/mi-common.h".
2972 (print_it_exception): Rewrite to improve GDB/MI output.
2974 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2976 * arm-tdep.h (struct address_space): Add forward declaration.
2978 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2980 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2981 * arm-tdep.c (arm_override_mode): New global.
2982 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2983 execution mode heuristics.
2984 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2985 second single-step breakpoint if needed, using
2986 arm_insert_single_step_breakpoint.
2987 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2988 ARM execution mode, do not call thumb_get_next_pc_raw.
2989 (arm_get_next_pc): Encode execution mode in return value. Call
2990 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2991 (arm_insert_single_step_breakpoint): New function.
2992 (arm_software_single_step): Call it.
2993 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2994 argument to return execution mode of sigreturn target.
2995 (arm_linux_syscall_next_pc): Use it.
2996 (arm_linux_copy_svc): Update call.
2997 (arm_linux_software_single_step): Call
2998 arm_insert_single_step_breakpoint.
3000 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3002 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
3005 2011-03-31 Tom Tromey <tromey@redhat.com>
3007 * varobj.c (update_dynamic_varobj_children): Properly handle
3008 errors from iterator.
3010 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3012 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
3013 struct linkage name twice.
3015 2011-03-31 Tom Tromey <tromey@redhat.com>
3017 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
3018 missing ">" to message.
3020 2011-03-31 Tom Tromey <tromey@redhat.com>
3022 * varobj.c (instantiate_pretty_printer): Remove duplicate
3025 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
3027 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
3028 if neither saved value nor register available (e.g. signal frame).
3030 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3032 * macroexp.c (expand): Avoid uninitialized variable
3035 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3037 * breakpoint.c (break_range_command): Fix typo in comment.
3039 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3040 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3042 Implement support for PowerPC BookE ranged breakpoints.
3043 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
3044 * breakpoint.h (struct bp_target_info) <length>: New member
3046 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
3047 instead of struct breakpoint as argument, and also add ASPACE
3048 and BP_ADDR arguments. Update all callers.
3049 (struct breakpoint_ops) <print_one_detail>: New method.
3050 (struct breakpoint) <addr_string_range_end>: New member variable.
3051 * breakpoint.c (breakpoint_location_address_match): Add function
3053 (insert_bp_location): Set bl->target_info.length.
3054 (breakpoint_here_p): Call breakpoint_location_address_match.
3055 (moribund_breakpoint_here_p): Likewise.
3056 (regular_breakpoint_inserted_here_p): Likewise.
3057 (breakpoint_thread_match): Likewise.
3058 (bpstat_stop_status): Likewise.
3059 (bpstat_check_location): Move call to
3060 breakpoint_ops.breakpoint_hit to the top.
3061 (print_one_breakpoint_location): Call
3062 breakpoint_ops.print_one_detail if available.
3063 (breakpoint_address_match_range): New function.
3064 (breakpoint_location_address_match): Likewise.
3065 (breakpoint_locations_match): Compare the length field of the
3067 (hw_breakpoint_used_count): Count resources used by all locations
3068 in a breakpoint, and use breakpoint_ops.resources_needed if
3070 (breakpoint_hit_ranged_breakpoint): New function.
3071 (resources_needed_ranged_breakpoint): Likewise.
3072 (print_it_ranged_breakpoint): Likewise.
3073 (print_one_ranged_breakpoint): Likewise.
3074 (print_one_detail_ranged_breakpoint): Likewise.
3075 (print_mention_ranged_breakpoint): Likewise.
3076 (print_recreate_ranged_breakpoint): Likewise.
3077 (ranged_breakpoint_ops): New structure.
3078 (find_breakpoint_range_end): New function.
3079 (break_range_command): Likewise.
3080 (delete_breakpoint): Free addr_string_range_end.
3081 (update_breakpoint_locations): Add SALS_END argument. Update
3082 all callers. Calculate breakpoint length if a non-zero SALS_END
3083 is given. Call breakpoint_locations_match instead of
3084 breakpoint_address_match.
3085 (reset_breakpoint): Find SaL of the end of the range if B is a
3087 (_initialize_breakpoint): Register break-range command.
3088 * defs.h (print_core_address): Add function prototype.
3089 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
3091 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
3092 (ppc_linux_remove_hw_breakpoint): Likewise.
3093 (_initialize_ppc_linux_nat): Initialize
3094 to_ranged_break_num_registers.
3095 * target.c (update_current_target): Add comment about
3096 to_ranged_break_num_registers.
3097 (target_ranged_break_num_registers): New function.
3098 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3100 (target_ranged_break_num_registers): Add function prototype.
3101 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
3102 * utils.c (print_core_address): ... here.
3104 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
3106 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
3107 variable compiler warning.
3109 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
3111 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
3113 (re_set_breakpoint): ... to here ...
3114 (addr_string_to_sals): ... and here.
3116 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3118 * Makefile.in (SFILES): Add missing C sources.
3119 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
3120 Add missing headers.
3122 2011-03-29 Mike Frysinger <vapier@gentoo.org>
3124 * .gitignore: New file.
3126 2011-03-29 Mike Frysinger <vapier@gentoo.org>
3128 * NEWS: Mention new cfi device simulation.
3130 2011-03-29 Tom Tromey <tromey@redhat.com>
3132 * dwarf2read.c (fixup_partial_die): Handle linkage name on
3133 otherwise anonymous types.
3134 (dwarf2_name): Likewise.
3135 * valops.c (value_struct_elt_for_reference): Refine artificial
3136 type logic. Call error if j==-1.
3138 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
3140 Fix false GCC warning.
3141 * infcall.c (find_function_addr): Initialize funaddr.
3143 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3145 Fix mingw compilation with --enable-targets=all.
3146 * remote-mips.c (gdb_usleep.h): Include header.
3147 (mips_enter_debug): Use gdb_usleep instead of sleep.
3149 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3151 Support resolution of STT_GNU_IFUNC via breakpoints.
3152 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
3153 bp_gnu_ifunc_resolver_return.
3154 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
3155 the loop. Support bp_gnu_ifunc_resolver and
3156 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
3157 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
3159 (bptype_string, print_one_breakpoint_location): Support
3160 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
3161 (user_settable_breakpoint): Return true also for
3162 bp_gnu_ifunc_resolver.
3163 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
3164 bp_gnu_ifunc_resolver_return.
3165 (set_breakpoint_location_function): New parameter explicit_loc,
3166 describe it. Call find_pc_partial_function_gnu_ifunc with new
3167 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
3168 EXPLICIT_LOC is not set.
3169 (set_raw_breakpoint): Set EXPLICIT_LOC for
3170 set_breakpoint_location_function.
3171 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
3172 set_breakpoint_location_function.
3173 (mention): Support bp_gnu_ifunc_resolver and
3174 bp_gnu_ifunc_resolver_return.
3175 (add_location_to_breakpoint): Set EXPLICIT_LOC for
3176 set_breakpoint_location_function.
3177 (update_breakpoint_locations): Remove static.
3178 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
3179 bp_gnu_ifunc_resolver_return.
3180 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
3181 bp_gnu_ifunc_resolver_return.
3182 (update_breakpoint_locations): New declaration.
3183 * elfread.c: Include gdbthread.h and regcache.h.
3184 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
3186 (elf_gnu_ifunc_fns): Install them.
3187 * minsyms.c (stub_gnu_ifunc_resolver_stop)
3188 (stub_gnu_ifunc_resolver_return_stop): New functions.
3189 (stub_gnu_ifunc_fns): Install them.
3190 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
3191 and gnu_ifunc_resolver_return_stop.
3192 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
3194 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3196 STT_GNU_IFUNC reader implementation.
3197 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
3198 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
3199 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
3200 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
3201 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
3202 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
3203 (elf_gnu_ifunc_resolve_addr): New.
3204 (elf_symfile_read): Call elf_rel_plt_read.
3205 (elf_gnu_ifunc_fns): New.
3206 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
3207 Install elf_gnu_ifunc_fns.
3208 * infcall.c (find_function_return_type): New function.
3209 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3210 * minsyms.c (stub_gnu_ifunc_resolve_addr)
3211 (stub_gnu_ifunc_resolve_name): New functions.
3212 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3213 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3214 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3216 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3218 Code cleanup for later STT_GNU_IFUNC support.
3219 * infcall.c (find_function_addr): Remove variable code, use explicit
3220 dereferences for it. Move VALUE_TYPE initialization later.
3222 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3224 GDB find_pc_partial_function support for STT_GNU_IFUNC.
3225 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3226 (clear_pc_function_cache): Clear it.
3227 (find_pc_partial_function): Rename to ...
3228 (find_pc_partial_function_gnu_ifunc): ... this function. New
3229 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
3230 (find_pc_partial_function): New wrapper for this function.
3231 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3233 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3235 GDB internal type support for STT_GNU_IFUNC.
3236 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3237 (elf_symtab_read): Set mst_text_gnu_ifunc for
3238 BSF_GNU_INDIRECT_FUNCTION.
3239 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3240 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3241 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3242 nodebug_got_plt_symbol.
3243 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3244 (TYPE_GNU_IFUNC): New.
3245 (struct main_type): New field flag_gnu_ifunc.
3246 (struct builtin_type): New field builtin_func_func.
3247 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3248 nodebug_got_plt_symbol.
3249 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3250 (in_gnu_ifunc_stub): New.
3251 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3253 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3254 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3255 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3257 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3258 * symtab.c (search_symbols): Likewise.
3259 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3260 and mst_slot_got_plt.
3261 (in_gnu_ifunc_stub): New declaration.
3263 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3265 Support a ring of related breakpoints.
3266 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3267 other functions, add gdb_assert.
3268 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3269 watchpoint_del_at_next_stop.
3270 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3271 (bpstat_stop_status): Handle ring in related_breakpoint.
3272 (set_raw_breakpoint_without_location): Initialize ring in
3274 (delete_breakpoint): Handle ring in related_breakpoint, use
3275 watchpoint_del_at_next_stop.
3276 (map_breakpoint_numbers): Handle ring in related_breakpoint.
3278 2011-03-28 Tom Tromey <tromey@redhat.com>
3281 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3282 with `language_minimal'.
3284 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
3286 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3287 instead of checking for STT_ARM_TFUNC symbol type.
3289 2011-03-25 Tom Tromey <tromey@redhat.com>
3291 * linespec.c (symbol_found): Restore line-based result for
3292 non-LOC_LABEL symbols.
3294 2011-03-25 Kai Tietz <ktietz@redhat.com>
3296 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3297 instead of strcmp for comparison.
3298 (tui_source_is_displayed): Likewise.
3299 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3301 2011-03-24 Mark Wielaard <mjw@redhat.com>
3303 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3305 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3306 (find_partial_die_in_comp_unit): Likewise in comment.
3307 (read_attribute_value): Likewise.
3308 (lookup_die_type): Likewise.
3309 (dwarf_form_name): Likewise.
3310 (dump_die_shallow): Likewise.
3311 (follow_die_ref_or_sig): Likewise.
3313 2011-03-24 Tom Tromey <tromey@redhat.com>
3315 PR breakpoints/11816:
3316 * linespec.c (decode_line_1): Parse `function:label' linespecs.
3317 (decode_compound): Update.
3318 (find_function_symbol): New function.
3319 (decode_dollar): Update.
3320 (decode_label): Add 'function_symbol' parameter. Handle
3321 function-relative labels.
3322 (decode_variable): Update.
3323 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
3324 not its line. Set `special_display' and canonical name for
3327 2011-03-24 Tom Tromey <tromey@redhat.com>
3329 * linespec.h (struct linespec_result) <special_display>: New
3331 * breakpoint.h (struct breakpoint) <display_canonical>: New
3333 * breakpoint.c (print_breakpoint_location): Respect
3335 (create_breakpoint_sal): Add 'display_canonical' parameter.
3336 (create_breakpoints_sal): Update.
3337 (create_breakpoint): Update.
3339 2011-03-24 Tom Tromey <tromey@redhat.com>
3341 * symtab.c (decode_line_spec): Update.
3342 * linespec.c (build_canonical_line_spec): Change type of
3344 (decode_line_2, decode_line_1, decode_objc, decode_compound)
3345 (find_method, decode_all_digits, decode_dollar, decode_label)
3346 (symbol_found): Likewise.
3347 (init_linespec_result): New function.
3348 * breakpoint.c (struct captured_parse_breakpoint_args)
3349 <canonical_p>: New field, replaces addr_string_p.
3350 (create_breakpoints_sal): Add 'canonical' parameter, replacing
3352 (parse_breakpoint_sals): Likewise.
3353 (do_captured_parse_breakpoint): Update.
3354 (create_breakpoint): Use struct linespec_result.
3355 (until_break_command): Update.
3356 (breakpoint_re_set_one): Update.
3357 (decode_line_spec_1): Update.
3358 * linespec.h (struct linespec_result): New.
3359 (init_linespec_result): Declare.
3361 2011-03-23 Pedro Alves <pedro@codesourcery.com>
3363 * regcache.c (regcache_raw_read): If the target didn't supply a
3364 given raw register, mark it as unavailable.
3366 2011-03-23 Kai Tietz <ktietz@redhat.com>
3368 * breakpoint.c (clear_command): Use filename_cmp
3369 instead of strcmp for comparison.
3370 * buildsym.c (watch_main_source_file_lossage): Likewise.
3371 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3372 checking just for slash.
3373 * dbxread.c (read_dbx_symtab): Use lbasename instead of
3374 strrchr and filename_cmp instead of strcmp for filenames.
3375 (add_old_header_file): Use filename_cmp
3376 instead of strcmp for comparison.
3377 * exec.c (exec_set_section_address): Likewise.
3378 * macrotab.c (macro_lookup_inclusion): Likewise.
3379 (macro_lookup_inclusion): Likewise.
3380 * elfread.c (_initialize_elfread): Likewise.
3381 (elfstab_offset_sections): Likewise.
3382 (elfstab_offset_sections): Use lbasename instead of
3384 * mdebugread.c (parse_partial_symbols): Likewise.
3385 (arse_partial_symbols): Use filename_(n)cmp instead of
3386 str(n)cmp for comparison.
3387 * minsyms.c (lookup_minimal_symbol): Likewise.
3388 * psymtab.c (read_psymtabs_with_filename): Likewise.
3389 * solib.c (solib_read_symbols): Likewise.
3390 (reload_shared_libraries_1): Likewise.
3391 * symmisc.c (maintenance_print_symbols): Likewise.
3392 * symfile.c (separate_debug_file_exists): Likewise.
3393 (reread_symbols): Likewise.
3394 (find_separate_debug_file_by_debuglink): Likewise.
3395 * remote-fileio.c (remote_fileio_func_rename): Likewise.
3396 * source.c (add_path): Likewise.
3397 * symtab.c (filename_seen): Likewise.
3398 (file_matches): Likewise.
3399 (print_symbol_info): Likewise.
3400 (maybe_add_partial_symtab_filename): Likewise.
3401 (make_source_files_completion_list): Likewise.
3402 * xml-syscall.c (init_sysinfo): Likewise.
3403 * windows-nat.c (_initialize_check_for_gdb_ini): Use
3404 IS_DIR_SEPARATOR for checking for trailing path separator.
3406 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3408 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
3409 label abort_expression.
3410 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3411 DWARF_VALUE_OPTIMIZED_OUT.
3413 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3416 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3417 to linkage_name. Invert its value. Update the function comment.
3418 (c_type_print_varspec_suffix): Invert it at the caller.
3419 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3421 2011-03-22 Pedro Alves <pedro@codesourcery.com>
3423 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3424 errors when reading the `stop_pc'.
3425 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3428 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3430 * NEWS: Document gdb.Write stream keyword.
3432 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3435 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3436 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3437 (dwarf2_add_field): Fix new_field->accessibility for
3438 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3440 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3444 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3445 other error classes. Do not print stack trace.
3447 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3449 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3450 (dwarf2_add_field): Fix new_field->accessibility for
3451 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3453 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
3455 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3456 encountering a load via a non-SP register.
3458 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3460 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3461 field in returned unwinder.
3463 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3465 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3467 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3469 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3472 2012-03-18 Pedro Alves <pedro@codesourcery.com>
3474 * frame.c (frame_unwind_register): Throw an error if unwinding the
3476 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3477 an unwind stop reason.
3478 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3479 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3480 UNWIND_UNAVAILABLE>: New.
3481 * inline-frame.c (inline_frame_unwind): Install
3482 default_frame_unwind_stop_reason.
3483 * frame-unwind.c: Include "exceptions.h".
3484 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3485 (default_frame_unwind_stop_reason): New.
3486 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3487 (default_frame_unwind_stop_reason): Declare.
3488 (struct frame_unwind) <stop_reason>: New function pointer.
3490 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3491 * dwarf2-frame.c: Include exceptions.h.
3492 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3493 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3494 computing the CFA. If such an error was thrown, set
3495 unavailable_retaddr.
3496 (dwarf2_frame_unwind_stop_reason): New.
3497 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3499 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3500 (dwarf2_signal_frame_unwind): Ditto.
3502 * amd64-tdep.c: Include "exceptions.h".
3503 (struct amd64_frame_cache): New field "base_p".
3504 (amd64_init_frame_cache): Clear it.
3505 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3506 Avoid reading registers with functions that throw if the register
3507 is not necessary to compute the frame base.
3508 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3509 swallowing NOT_AVAILABLE_ERROR.
3510 (amd64_frame_unwind_stop_reason): New.
3511 (amd64_frame_this_id): Don't build a frame id if the frame base
3513 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3514 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3515 base_p if the frame base was computable.
3516 (amd64_sigtramp_frame_unwind_stop_reason): New.
3517 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3518 frame base was unavailable.
3519 (amd64_sigtramp_frame_unwind): Install
3520 amd64_sigtramp_frame_unwind_stop_reason.
3521 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3522 base_p if the frame base was computable.
3523 (amd64_epilogue_frame_unwind_stop_reason): New.
3524 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3525 frame base was unavailable.
3526 (amd64_epilogue_frame_unwind): Install
3527 amd64_epilogue_frame_unwind_stop_reason.
3528 * i386-tdep.c: Include "exceptions.h".
3529 (struct i386_frame_cache): New field "base_p".
3530 (i386_init_frame_cache): Clear it.
3531 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3532 Avoid reading registers with functions that throw if the register
3533 is not necessary to compute the frame base.
3534 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3535 swallowing NOT_AVAILABLE_ERROR.
3536 (i386_frame_unwind_stop_reason): New.
3537 (i386_frame_this_id): Don't build a frame id if the frame base was
3539 (i386_frame_prev_register): Handle unavailable SP.
3540 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3541 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3542 base_p if the frame base was computable.
3543 (i386_epilogue_frame_unwind_stop_reason): New.
3544 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3545 base was unavailable.
3546 (i386_epilogue_frame_unwind): Install
3547 i386_epilogue_frame_unwind_stop_reason.
3548 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3549 base_p if the frame base was computable.
3550 (i386_sigtramp_frame_unwind_stop_reason): New.
3551 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3552 base was unavailable.
3553 (i386_sigtramp_frame_unwind): Install
3554 i386_sigtramp_frame_unwind_stop_reason.
3555 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3556 type's size, not the register's.
3557 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3559 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3560 default_frame_unwind_stop_reason.
3561 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3562 (alpha_heuristic_frame_unwind): Ditto.
3563 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3564 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3565 * avr-tdep.c (avr_frame_unwind): Ditto.
3566 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3568 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3569 * frv-tdep.c (frv_frame_unwind): Ditto.
3570 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3571 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3572 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3573 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3574 (hppa_stub_frame_unwind): Ditto.
3575 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3576 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3577 (ia64_libunwind_frame_unwind)
3578 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3579 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3580 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3581 * m32c-tdep.c (m32c_unwind): Ditto.
3582 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3583 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3584 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3585 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3586 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3587 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3588 * mep-tdep.c (mep_frame_unwind): Ditto.
3589 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3590 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3591 (mips_stub_frame_unwind): Ditto.
3592 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3593 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3594 * mt-tdep.c (mt_frame_unwind): Ditto.
3595 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3596 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3597 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3598 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3599 (s390_sigtramp_frame_unwind): Ditto.
3600 * score-tdep.c (score_prologue_unwind): Ditto.
3601 * sh-tdep.c (sh_frame_unwind): Ditto.
3602 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3603 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3604 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3605 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3606 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3607 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3608 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3609 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3610 (sparc64obsd_trapframe_unwind): Ditto.
3611 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3612 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3613 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3614 * v850-tdep.c (v850_frame_unwind): Ditto.
3615 * vax-tdep.c (vax_frame_unwind): Ditto.
3616 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3617 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3618 * xtensa-tdep.c (xtensa_unwind): Ditto.
3620 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3622 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3623 there's always a frame. Use get_frame_pc_if_available instead of
3624 get_frame_pc, and if there's no PC available, don't look up a
3627 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3629 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3632 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3634 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3637 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3639 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3640 * frame.c (frame_unwind_caller_pc_if_available): New.
3641 * stack.c (frame_info): Handle unavailable PC.
3643 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3645 * frame.c (frame_unwind_pc): Rename to ...
3646 (frame_unwind_pc_if_available): ... this. New `pc' output
3647 parameter. Change return type to int. Gracefully handle
3648 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3649 happened, or 1 otherwise.
3650 (frame_unwind_pc): Reimplement on top of
3651 frame_unwind_pc_if_available.
3652 (get_frame_func): Rename to ...
3653 (get_frame_func_if_available): New `pc' output parameter. Change
3654 return type to int. Gracefully handle the PC not being available.
3655 (get_frame_func): Reimplement on top of
3656 get_frame_func_if_available.
3657 (select_frame): Handle the PC being unavailable.
3658 (get_prev_frame): Handle the PC being unavailable.
3659 (get_frame_pc_if_available): New.
3660 (get_frame_address_in_block_if_available): New.
3661 (find_frame_sal): Handle the frame PC not being available.
3662 * frame.h (get_frame_pc_if_available): Declare.
3663 (get_frame_address_in_block_if_available): Declare.
3664 (get_frame_func_if_available): Declare.
3665 * stack.c (print_frame_info): Handle the PC being unavailable.
3666 (find_frame_funname): Ditto.
3667 (print_frame): Handle the PC being unavailable.
3668 (get_frame_language): Ditto.
3669 * blockframe.c (get_frame_block): Ditto.
3670 * macroscope.c (default_macro_scope): Ditto.
3671 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3673 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3675 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3676 NOT_AVAILABLE_ERROR when evaluating the location expression.
3678 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3680 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3681 returning that the register piece is unavailable/optimized out.
3682 (write_pieced_value): Handle get_frame_register_bytes returning
3683 that the register piece is unavailable/optimized out when doing a
3684 read-modify write of a bitfield.
3685 * findvar.c (value_from_register): Handle get_frame_register_bytes
3686 returning that the register piece is unavailable/optimized out.
3687 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3688 and `unavailablep'. Throw error on bad debug info. Use
3689 frame_register instead of frame_register_read, to fill in the new
3691 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3693 * valops.c: (value_assign): Adjust, and handle
3694 get_frame_register_bytes failing.
3695 * spu-tdep.c: Include exceptions.h.
3696 (spu_software_single_step): Adjust, and handle
3697 get_frame_register_bytes failing.
3698 (spu_get_longjmp_target): Ditto.
3699 * gdbarch.sh (register_to_value): Change to return int. New
3700 parameters `optimizedp' and `unavailablep'.
3701 * gdbarch.h, gdbarch.c: Regenerate.
3702 * i386-tdep.c (i386_register_to_value): Adjust to new
3703 gdbarch_register_to_value interface.
3704 * i387-tdep.c (i387_register_to_value): Ditto.
3705 * i387-tdep.h (i387_register_to_value): Ditto.
3706 * alpha-tdep.c (alpha_register_to_value): Ditto.
3707 * ia64-tdep.c (ia64_register_to_value): Ditto.
3708 * m68k-tdep.c (m68k_register_to_value): Ditto.
3709 * mips-tdep.c (mips_register_to_value): Ditto.
3710 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3712 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3714 * findvar.c (value_of_register): Mark the value as unavailable, if
3715 the register is unavailable.
3716 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3717 (frame_register): New `unavailablep' parameter.
3718 (frame_register_read): Update comment.
3719 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3720 Set it if the register is unavailable. If the register is
3721 unavailable, clear the output buffer.
3722 (frame_register): New `unavailablep' parameter. Pass it down.
3723 (frame_unwind_register): Adjust.
3724 (put_frame_register): Adjust.
3725 (frame_register_read): Adjust. Also return false if the register
3727 (frame_register_unwind_location): Adjust.
3728 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3729 is unavailable, mark the value accordingly.
3730 * stack.c (frame_info): Handle unavailable registers.
3732 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3734 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3735 simplify, using regcache_cooked_read.
3737 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3739 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3740 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3741 (regcache_raw_read_unsigned, regcache_raw_read_part)
3742 (regcache_cooked_read, regcache_cooked_read_signed)
3743 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3744 (regcache_cooked_read_ftype): Change return to enum
3746 * regcache.c: Include exceptions.h
3747 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3748 (do_cooked_read): Change return to enum register_status. Always
3749 forward to regcache_cooked_read.
3750 (regcache_raw_read): Change return to enum register_status. If
3751 the register is not REG_VALID, memset the buffer. Return the
3753 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3754 return the register's status.
3755 (regcache_raw_read_unsigned): Ditto.
3756 (regcache_cooked_read): Change return to enum register_status.
3757 Assert that with read-only regcaches, the register's status must
3758 be known. If the regcache is read-only, and the register is not
3759 REG_VALID, memset the buffer. Return the register's status.
3760 (regcache_cooked_read_signed): Change return to enum
3761 register_status. Handle non-REG_VALID registers and return the
3763 (regcache_cooked_read_unsigned): Change return to enum
3764 register_status. Handle non-REG_VALID registers and return the
3766 (regcache_xfer_part, regcache_raw_read_part)
3767 (regcache_cooked_read_part): Change return to enum
3768 register_status. Return the register's status.
3769 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3771 (regcache_dump): Handle unavailable cooked registers.
3772 * frame.c (do_frame_register_read): Adjust interface to match
3773 regcache_cooked_read_ftype.
3774 * gdbarch.sh (pseudo_register_read): Change return to enum
3776 * gdbarch.h, gdbarch.c: Regenerate.
3778 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3780 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3781 register_status. If reading a raw register indicates the raw
3782 register is not valid, return the raw register's status,
3783 otherwise, return REG_VALID.
3784 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3785 register_status. Handle non-REG_VALID raw registers and return
3786 the register's status.
3787 * arm-tdep.c (arm_neon_quad_read)
3788 (arm_pseudo_read): Change return to enum register_status. Handle
3789 non-REG_VALID raw registers and return the register's status.
3790 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3791 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3792 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3793 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3794 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3796 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3797 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3798 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3799 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3800 (m32c_pseudo_register_read): Change return to enum
3801 register_status. Adjust.
3802 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3803 enum register_status. Return the register's status.
3804 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3805 register_status. Return the register's status.
3806 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3807 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3808 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3809 * rs6000-tdep.c (move_ev_register_func): New typedef.
3810 (e500_move_ev_register): Use it. Change return to enum
3811 register_status. Return the register's status.
3812 (do_regcache_raw_read): New function.
3813 (do_regcache_raw_write): New function.
3814 (e500_pseudo_register_read): Change return to enum
3815 register_status. Return the register's status. Use
3816 do_regcache_raw_read.
3817 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3818 (dfp_pseudo_register_read): Change return to enum register_status.
3819 Return the register's status.
3820 (vsx_pseudo_register_read): Ditto.
3821 (efpr_pseudo_register_read): Ditto.
3822 (rs6000_pseudo_register_read): Ditto.
3823 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3824 register_status. Return the register's status.
3825 * sh64-tdep.c (pseudo_register_read_portions): New function.
3826 (sh64_pseudo_register_read): Change return to enum
3827 register_status. Use pseudo_register_read_portions. Return the
3829 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3830 register_status. Return the register's status.
3831 * sh-tdep.c (pseudo_register_read_portions): New function.
3832 (sh_pseudo_register_read): Change return to enum register_status.
3833 Use pseudo_register_read_portions. Return the register's status.
3834 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3835 enum register_status. Return the register's status.
3836 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3837 * spu-tdep.c (spu_pseudo_register_read_spu)
3838 (spu_pseudo_register_read): Ditto.
3839 * xtensa-tdep.c (xtensa_register_read_masked)
3840 (xtensa_pseudo_register_read): Ditto.
3841 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3843 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3845 * python/py-value.c (valpy_getitem): Fix formatting of error function
3848 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3850 ARI fixes: Add missing internationalization markups throughout
3852 * darwin-nat-info.c: Ditto.
3855 * mi/mi-main.c: Ditto.
3857 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3859 ARI fixes: Add missing internationalization markups throughout
3862 * cp-name-parser.y: Ditto.
3865 * objc-exp.y: Ditto.
3868 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3870 ARI fixes: Messages should have no trailing new lines.
3871 * darwin-nat.c (mach_check_error): Remove trailing new line from
3872 warning function call message.
3873 * record.c (bfdcore_read): Idem for error call.
3875 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3877 * common/signals.c (target_signal_from_host): Add _ markup to error
3878 function call message.
3879 (target_signal_to_host): Add _ markup and remove trailing new line
3880 from warning call message.
3881 (target_signal_from_command): Add _ markup to error function call
3884 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3888 * python/python.c (gdbpy_write): Accept a stream argument and
3889 operate to the appropriate stream.
3890 (gdbpy_flush): Likewise.
3891 (_initialize_python): Add stream constants.
3892 (finish_python_initialization): Add GdbOutputErrorFile class.
3894 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3896 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3898 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3900 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3901 to store_signed_integer. Add debug message when relocating CALL
3902 instructions. Fix formatting of debug message.
3903 * i386-tdep.c (i386_relocate_instruction): Ditto.
3905 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3907 * target.h (struct target_ops): Remove to_lookup_symbol field.
3908 (target_lookup_symbol): Delete macro.
3909 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3910 (update_current_target, setup_target_debug): Remove handling
3911 of to_lookup_symbol target_ops field.
3912 * ada-tasks.c (get_known_tasks_addr): Remove use of
3913 target_lookup_symbol.
3914 * coffread.c (coff_symtab_read): Likewise.
3915 * dbxread.c (read_dbx_symtab): Ditto.
3917 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3920 * configure.ac: Add getthrds declaration check.
3921 * configure, config.in: Regenerate.
3922 * aix-thread.c (getthrds): Declare only if not already declared
3923 in procinfo.h. More declaration out of get_signaled_thread to
3926 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3928 * python/py-symtab.c: Populate symtab_object_methods,
3930 (stpy_is_valid): New function.
3931 (salpy_is_valid): Ditto.
3932 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3933 (sympy_is_valid): New function.
3934 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3935 (objfpy_is_valid): New function.
3936 * python/py-inferior.c: Populate inferior_object_methods.
3937 (infpy_is_valid): New function.
3938 * python/py-infthread.c: Populate thread_object_methods.
3939 (thpy_is_valid): New function.
3940 * python/py-block.c: Declare block_object_methods. Populate. Declare
3941 block_iterator_object_methods. Populate.
3942 (blpy_is_valid): New function.
3943 (blpy_iter_is_valid): Ditto.
3945 2011-03-16 Keith Seitz <keiths@redhat.com>
3947 * linespec.c (find_methods): Canonicalize NAME before looking
3949 (name_end): New function.
3950 (keep_name_info): New function.
3951 (decode_line_1): Use keep_name_info.
3952 (decode_compound): Likewise.
3953 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3954 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3957 * linespec.c (locate_first_half): Keep overload information, too.
3958 (decode_compound): Use a string to represent break characters
3960 If P points to a break character, do not increment it.
3961 For C++ and Java, keep overload information and relevant keywords.
3962 If we cannot find a symbol, search the minimal symbols.
3965 * linespec.c (decode_compound): Rename SAVED_ARG to
3967 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3969 Pass a valid block to lookup_symbol.
3970 (lookup_prefix_sym): Likewise.
3971 (find_method): Construct search name based on SYM_CLASS instead
3973 * psymtab.c (lookup_partial_symbol): Add language parameter.
3974 (lookup_symbol_aux_psymtabs): Likewise.
3975 Don't assume that the psymtab we found was the right one. Search
3976 for the desired symbol in the symtab to be certain.
3977 (psymtab_search_name): New function.
3978 (lookup_partial_symbol): Use psymtab_search_name.
3979 Add language parameter.
3980 (read_symtabs_for_function): Add language parameter and pass to
3981 lookup_partial_symbol.
3982 (find_symbol_file_from_partial): Likewise.
3984 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3987 * dwarf2read.c (noop_record_line): New function.
3988 (dwarf_decode_lines): Ignore line tables for GCd functions.
3990 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3992 Fix ARI warnings about new lines at the end of messages, which
3993 are unneeded as there is a new line added at the end of the message
3995 * darwin-nat.c (darwin_stop_inferior): Ditto.
3996 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3997 * dfp.c (decimal_to_number): Ditto.
3998 * exec.c (print_section_info): Ditto.
3999 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
4000 * osdata.c (get_osdata): Ditto.
4001 * record.c (bfdcore_write): Ditto.
4002 * remote-mips.c (mips_readchar): Ditto.
4003 * remote.c (read_ptid): Ditto.
4004 * ser-mingw.c (ser_windows_raw): Ditto.
4005 * tracepoint.c (add_local_symbols): Ditto.
4006 * windows-nat.c (fake_create_process): Ditto.
4008 2011-03-16 Tom Tromey <tromey@redhat.com>
4010 * tracepoint.c (stop_tracing): Don't declare.
4011 * event-top.c (after_char_processing_hook): Add `(void)'.
4013 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
4015 * NEWS: Add Parameter sub-classing description.
4017 2011-03-16 Kai Tietz <ktietz@redhat.com>
4019 * MAINTAINERS: Update my e-mail address.
4021 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
4023 * MAINTAINERS: Add myself for write after approval privileges.
4025 2011-03-15 Michael Snyder <msnyder@vmware.com>
4027 * frame.c (find_frame_sal): Assert sym is not null.
4029 * dbxread.c (process_one_symbol): Assert 'name' is not null.
4031 * objc-lang.c (selectors_info): Check strchr for null result.
4033 * stabsread.c (define_symbol): Guard against bad stabstring input.
4035 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4037 Remove trailing spaces and tabulations from pascal language
4042 p-valprint.c: Ditto.
4044 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4046 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
4047 than LOW. Comment it.
4048 (read_partial_die): Call complaint for inappropriate zero LOWPC or
4049 HIGHPC not strictly higher than LOWPC.
4051 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4053 Fix formatting of function declarations returning a pointer in
4055 * varobj.c (varobj_add_child): Ditto.
4056 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
4057 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
4059 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
4061 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
4062 for the "generic" vector ABI used with GCC 4.3 and later.
4063 (ppc64_sysv_abi_return_value): Likewise.
4065 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
4067 * infcall.c (call_function_by_hand): Function return value is
4068 always a non_lval, even when using struct_return.
4070 2011-03-15 Pedro Alves <pedro@codesourcery.com>
4072 * printcmd.c (ALL_DISPLAYS_SAFE): New.
4073 (map_display_numbers): New.
4074 (do_delete_display): New.
4075 (undisplay_command): Use map_display_numbers.
4076 (do_enable_disable_display): New.
4077 (enable_disable_display_command): New function.
4078 (enable_display): Delete.
4079 (enable_display_command): New.
4080 (disable_display_command): Reimplement.
4081 (_initialize_printcmd): Adjust "enable display" command to use
4082 `enable_display_command' as callback.
4084 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4086 * NEWS: Add Python breakpoint 'stop' operation.
4088 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4090 * NEWS: Delete duplicate entry. Fix typo.
4092 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4094 Fix ARI warning about function names in first column.
4095 Put prototype declaration on same line as return type.
4096 * objc-exp.y: Ditto.
4098 * python/py-stopevent.h: Ditto.
4099 For long function names, split parameters to
4100 allow function name on same line as return type.
4101 * solib-pa64.c: Ditto.
4104 For long function declaration, use single line.
4105 * hppa-tdep.h: Ditto.
4106 * inferior.h: Ditto.
4108 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4110 * python/python.h: Declare gdbpy_should_stop and
4111 gdbpy_breakpoint_has_py_cond.
4112 * python/python.c: Add python.h to includes. Remove python.h from
4113 HAVE_PYTHON definition
4114 (gdbpy_should_stop): New dummy function.
4115 (gdbpy_breakpoint_has_py_cond): New dummy function.
4116 * python/py-breakpoint.c (bppy_init): Rewrite to allow
4117 sub-classing capabilities.
4118 (gdbpy_should_stop): New function.
4119 (gdbpy_breakpoint_has_py_cond): New function.
4120 (local_setattro): New function.
4121 * breakpoint.c (condition_command): Add check for Python 'stop'
4123 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
4124 operation function as part of stop/continue tests.
4126 2011-03-14 Tom Tromey <tromey@redhat.com>
4129 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
4130 (needs_frame_dwarf_call): Likewise.
4132 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4134 Fix ARI warning about functions without parameters that do not
4136 * breakpoint.c (all_tracepoints): Replace () by (void).
4137 * f-exp.y (match_string_literal): Ditto.
4139 * m2-exp.y (yylex): Ditto.
4140 * mep-tdep.c (current_me_module): Ditto.
4141 (current_options): Ditto.
4142 (current_cop_data_bus_width): Ditto.
4143 (current_cr_names): Ditto.
4144 (current_cr_is_float): Ditto.
4145 (current_ccr_names): Ditto.
4146 * objc-exp.y (yylex): Ditto.
4147 * p-exp.y (yylex): Ditto.
4148 * remote.c (send_interrupt_sequence): Ditto.
4149 * tracepoint.c (current_trace_status): Ditto.
4150 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
4151 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
4153 2011-03-11 Michael Snyder <msnyder@vmware.com>
4155 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
4156 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
4157 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
4158 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
4159 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
4161 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
4162 (delete_async_event_handler): Ditto.
4164 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
4166 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
4168 * top.c (set_verbose): Assert showcmd was found.
4170 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
4172 * xtensa-tdep.c (warning_once): Correct style issues.
4174 2011-03-11 Yao Qi <yao@codesourcery.com>
4176 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
4178 2011-03-11 Andreas Schwab <schwab@redhat.com>
4180 * common/aclocal.m4: Remove.
4182 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4184 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
4185 (xtensa_write_register, xtensa_read_register): Likewise.
4186 (xtensa_hextochar): Removed.
4187 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
4189 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4191 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
4192 (xtensa_call0_frame_cache_t): Update comments. New fields added.
4193 (xtensa_alloc_frame_cache): Add initialization for new fields.
4194 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
4195 (warning_once): New function.
4196 (xtensa_insn_kind): New item c0opc_and.
4197 (call0_classify_opcode): Add the case for AND instruction.
4198 (call0_track_op): Change arguments. New local variable litbase.
4199 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
4200 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
4202 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
4203 (call0_analyze_prologue): Update the comments. Change arguments.
4204 Add the variety of updates to handle extended prologues, which now can
4205 conduct dynamic stack adjustments.
4206 (call0_frame_cache): Likewise.
4207 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
4208 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4210 2011-03-10 Michael Snyder <msnyder@vmware.com>
4212 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4213 (cmd_qtframe): Ditto.
4214 (cmd_qtbuffer): Ditto.
4215 (cmd_bigqtbuffer): Ditto.
4217 2011-03-10 Tom Tromey <tromey@redhat.com>
4219 * tracepoint.c (trace_actions_command): Update.
4220 * thread.c (thread_apply_command): Update.
4221 * reverse.c (delete_bookmark_command): Update.
4222 (bookmarks_info): Update.
4223 * printcmd.c (undisplay_command): Update.
4224 * memattr.c (mem_enable_command): Update.
4225 (mem_disable_command): Update.
4226 (mem_delete_command): Update.
4227 * inferior.c (detach_inferior_command): Update.
4228 (kill_inferior_command): Update.
4229 (remove_inferior_command): Update.
4230 * cli/cli-utils.h (struct get_number_or_range_state): New.
4231 (init_number_or_range): Declare.
4232 (get_number_or_range): Update.
4233 * cli/cli-utils.c (init_number_or_range): New function.
4234 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
4236 (number_is_in_list): Update.
4237 * breakpoint.h (get_tracepoint_by_number): Update.
4238 * breakpoint.c (map_breakpoint_numbers): Update for change to
4239 get_number_or_range.
4240 (find_location_by_number): Use get_number, not
4241 get_number_or_range.
4242 (trace_pass_set_count): New function.
4243 (trace_pass_command): Update for change to get_number_or_range.
4245 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4248 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
4250 * python/py-param.c (add_setshow_generic): Add set/show callback
4251 parameters. Register Python object context.
4252 (get_show_value): New function.
4253 (get_set_value): New function.
4254 (call_doc_function): New function.
4255 (get_doc_string): Move behind get_show_value/get_set_value.
4257 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
4259 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4261 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
4263 * xtensa-tdep.c (xtensa_read_register): Add comment.
4264 (xtensa_write_register): Likewise.
4265 (xtensa_hextochar): Add comment and update to match coding conventions.
4266 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4267 (execute_l32e, execute_s32e, execute_code): Update comments.
4268 (xtensa_exception_handler_t): Update to match coding conventions.
4269 (xtensa_insn_kind): Likewise.
4271 2011-03-09 Michael Snyder <msnyder@vmware.com>
4273 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4275 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4277 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4279 2011-03-09 Tom Tromey <tromey@redhat.com>
4281 * thread.c (restore_selected_frame): Handle frame_level == -1.
4282 (make_cleanup_restore_current_thread): Use
4283 get_selected_frame_if_set.
4284 * frame.h (get_selected_frame_if_set): Declare.
4285 * frame.c (get_selected_frame_if_set): New function.
4287 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4289 * cli/cli-cmds.c (shell_escape): Use lbasename.
4290 * coffread.c (coff_start_symtab): Constify parameter.
4291 (complete_symtab): Constify `name' parameter.
4292 (coff_symtab_read): Constify `filestring' local.
4293 (coff_getfilename): Constify return and `result' local.
4295 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4296 * linux-fork.c (info_checkpoints_command): Use lbasename.
4297 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4298 * minsyms.c (lookup_minimal_symbol): Use lbasename.
4299 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4300 * procfs.c (procfs_make_note_section): Use lbasename.
4301 * tui/tui-io.c (printable_part): Constity return and parameter.
4303 (print_filename): Constify parameters, and local `s'.
4304 (tui_rl_display_match_list): Constify local `temp'.
4306 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4309 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4310 Fix DWARF-3+ DW_AT_accessibility default assumption.
4311 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4312 cu->header.version >= 3.
4314 2011-03-09 Yao Qi <yao@codesourcery.com>
4316 * common/Makefile.in: Remove.
4317 * common/configure: Remove.
4318 * common/configure.ac: Remove.
4320 2011-03-09 Yao Qi <yao@codesourcery.com>
4323 2011-02-11 Yao Qi <yao@codesourcery.com>
4325 * common/Makefile.in: Add copyright header.
4327 2011-02-11 Yao Qi <yao@codesourcery.com>
4329 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4331 * configure.ac: Add common to sub dir.
4332 * configure: Regenerate.
4334 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4336 * xtensa-tdep.c (call0_ret): New function.
4337 (xtensa_skip_prologue): Speed up analysis.
4339 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4341 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
4342 while executing MI command -data-list-changed-registers.
4344 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4346 * xtensa-tdep.c (xtensa_read_register): New function.
4347 (xtensa_write_register): New function.
4348 (xtensa_find_register_by_name): New function.
4349 (xtensa_windowed_frame_cache): Update comments in type description.
4350 (xtensa_frame_cache): Likewise.
4351 (xtensa_window_interrupt_insn): New function.
4352 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
4353 (xtensa_insn_kind): Add new instructions.
4354 (rwx_special_register): New function.
4355 (call0_classify_opcode): Add new instructions to the analysis.
4356 (a0_saved, a7_saved, a11_saved): New variables.
4357 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
4358 (execute_l32e): New function.
4359 (execute_s32e): New function.
4360 (xtensa_exception_handler_t): New type.
4361 (execute_code): New function.
4362 (xtensa_window_interrupt_frame_cache): New function to conduct frame
4363 analysis for Xtensa Window Exception handlers.
4365 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4367 * xtensa-tdep.c (TX_PS): New.
4368 (windowing_enabled): Update to count for Call0 ABI.
4369 (xtensa_hextochar): New.
4370 (xtensa_init_reggroups): Make algorithm generic.
4371 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4373 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4375 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4377 2011-03-08 Michael Snyder <msnyder@vmware.com>
4379 * i386-tdep.c (i386_follow_jump): Check return value of
4381 (i386_analyze_struct_return): Ditto.
4382 (i386_skip_probe): Ditto.
4383 (i386_match_insn): Ditto.
4384 (i386_skip_noop): Ditto.
4385 (i386_analyze_frame_setup): Ditto.
4386 (i386_analyze_register_saves): Ditto.
4387 (i386_skip_prologue): Ditto.
4388 (i386_skip_main_prologue): Ditto.
4390 * target.c (read_whatever_is_readable): Fix memory leak.
4392 * i386-tdep.c (i386_process_record): Document fall through.
4394 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4396 Fix DWARF-3+ DW_AT_accessibility default assumption.
4397 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4398 cu->header.version >= 3.
4400 2011-03-08 Pedro Alves <pedro@codesourcery.com>
4402 * remote.c (remote_check_symbols): Skip if the target has no
4405 2011-03-08 Joel Brobecker <brobecker@adacore.com>
4407 * target.c (read_whatever_is_readable): Reformat comment,
4408 with a minor typo fix. Minor reformatting of the code.
4410 2011-03-08 Yao Qi <yao@codesourcery.com>
4412 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4413 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4414 Use cached result instead of calling displaced_in_arm_mode again.
4415 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4416 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4417 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4418 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4419 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4420 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4421 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4422 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4423 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4424 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4425 (arm_catch_kernel_helper_return): Likewise.
4426 * gdb/arm-tdep.h : Update function declarations.
4428 2011-03-07 Michael Snyder <msnyder@vmware.com>
4430 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4432 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4434 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4436 * elfread.c (elf_symtab_read): Stop memory leak.
4438 * main.c (captured_main): Fix memory leak.
4440 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
4442 * ada-lang.c (compare_names): Call is_name_suffix with string1
4445 2011-03-07 Tom Tromey <tromey@redhat.com>
4447 * xcoffread.c (xcoff_sym_fns): Update.
4448 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4449 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4450 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4451 (symbol_file_add_with_addrs_or_offsets): Likewise.
4452 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4453 * somread.c (som_sym_fns): Update.
4454 * psymtab.h (require_partial_symbols): Declare.
4455 * psymtab.c (require_partial_symbols): New function.
4456 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4457 (ALL_OBJFILE_PSYMTABS): Undef.
4458 (ALL_PSYMTABS): Move from psympriv.h.
4459 (lookup_partial_symtab, find_pc_sect_psymtab)
4460 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4461 (find_last_source_symtab_from_partial)
4462 (forget_cached_source_info_partial)
4463 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4464 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4465 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4466 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4467 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4468 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4469 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4470 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4471 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4473 * mipsread.c (ecoff_sym_fns): Update.
4474 * machoread.c (macho_sym_fns): Update.
4475 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4476 (read_psyms): New function.
4477 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4478 (elf_sym_fns_lazy_psyms): New global.
4479 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4480 dwarf2_build_psymtabs.
4481 * dbxread.c (aout_sym_fns): Update.
4482 * coffread.c (coff_sym_fns): Update.
4484 2011-03-07 Tom Tromey <tromey@redhat.com>
4486 * infrun.c (print_exited_reason): Include inferior id and pid in
4489 2011-03-07 Tom Tromey <tromey@redhat.com>
4491 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4493 (target_has_execution_1): Update.
4494 (target_has_execution_current): Declare.
4495 (target_has_execution): Call target_has_execution_current.
4496 (default_child_has_execution): Update.
4497 * target.c (default_child_has_execution): Add 'the_ptid'
4499 (target_has_execution_1): Likewise.
4500 (target_has_execution_current): New function.
4501 (add_target): Update.
4502 (init_dummy_target): Update.
4503 * remote-m32r-sdi.c (m32r_has_execution): New function.
4504 (init_m32r_ops): Use it.
4505 * record.c (record_core_has_execution): Now static. Add
4506 'the_ptid' parameter.
4507 * inferior.c (have_live_inferiors): Don't save current thread.
4508 Use target_has_execution_1.
4510 2011-03-07 Yao Qi <yao@codesourcery.com>
4512 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4514 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4516 * elfread.c (elf_symtab_read): Minor reformatting.
4518 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4520 * objc-lang.c (selectors_info): Minor reformatting.
4522 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4524 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4526 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4527 Michael Snyder <msnyder@vmware.com>
4529 * ada-valprint.c (ada_val_print_array): Move the declaration of
4530 "byte_order" and "elttype" inside the block where these variables
4531 are actually used. Remove some special handling for the case
4532 where "elttype" and "eltlen" are null. Replace by a comment
4533 and a couple of assertion checks.
4535 2011-03-05 Michael Snyder <msnyder@vmware.com>
4537 * source.c (add_path): Replace semicolon at end of block.
4538 * dwarf2expr.c (execute_stack_op): Ditto.
4540 2011-03-05 Mike Frysinger <vapier@gentoo.org>
4542 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4543 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4544 (bfin-*-*): Likewise.
4546 2011-03-05 Michael Snyder <msnyder@vmware.com>
4548 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4549 * mdebugread.c (parse_symbol): Ditto.
4550 * parse.c (parse_exp_in_context): Ditto.
4551 * source.c (add_path): Ditto.
4552 * utils.c (gnu_debuglink_crc32): Ditto.
4553 * varobj.c (variable_language): Ditto.
4555 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4557 2011-03-04 Michael Snyder <msnyder@vmware.com>
4559 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4561 * symfile.c (simple_overlay_update): Check for null return value
4562 from lookup_minimal_symbol.
4564 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4566 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4568 * eval.c (parse_and_eval_address_1): Remove function.
4569 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4570 instead of parse_and_eval_address_1.
4571 * value.h (parse_and_eval_address_1): Remove prototype.
4573 2011-03-04 Michael Snyder <msnyder@vmware.com>
4575 * remote.c (putpkt_binary): Document that case stmt falls through.
4577 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4579 * breakpointc (print_it_typical): Move NULL check from here...
4580 (print_bp_stop_message): ... to here.
4582 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4584 * breakpoint.c (enable_command): Use break instead of continue,
4585 and fill in a missing break.
4586 (disable_command): Ditto.
4588 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4590 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4591 (terminal_save_ours): Remove misleading comment.
4592 (inflow_inferior_data_cleanup): Free ttystate.
4593 (inflow_inferior_exit): Likewise.
4594 (copy_terminal_info): Copy ttystate.
4596 * serial.c (serial_copy_tty_state): New function.
4597 * serial.h (serial_copy_tty_state): Add prototype.
4598 (struct serial_ops): Add copy_tty_state callback.
4599 * ser-base.c (ser_base_copy_tty_state): New function.
4600 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4601 * ser-go32.c (dos_copy_tty_state): New function.
4602 (dos_ops): Install copy_tty_state callback.
4603 * ser-mingw.c (_initialize_ser_windows): Likewise.
4604 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4605 * ser-unix.c (hardwire_copy_tty_state): New function.
4606 (_initialize_ser_hardwire): Install it.
4608 2011-03-04 Michael Snyder <msnyder@vmware.com>
4610 * breakpoint.c (create_breakpoint): Add missing break statement.
4612 Reverting this patch:
4613 * infcall.c (call_function_by_hand): Add break statements for lint.
4615 Reverting this patch:
4616 * cli/cli-script.c (script_from_file): Add break for lint.
4618 2011-03-04 Michael Snyder <msnyder@vmware.com>
4620 * solib.c (reload_shared_libraries_1): Close memory leak.
4622 2011-03-03 Tom Tromey <tromey@redhat.com>
4625 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4628 2011-03-03 Michael Snyder <msnyder@vmware.com>
4630 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4631 fields of struct 'st' to zero.
4633 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4634 sal.pspace before calling set_current_source_symtab_and_line.
4636 2011-03-03 Yao Qi <yao@codesourcery.com>
4638 * Makefile.in (configure-common): Remove. Let Makefile
4639 in dir common to rebuild itself.
4640 (common/Makefile): Likewise.
4642 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4644 * utils.c (parse_escape): Add i18n markup in error message.
4646 2011-03-03 Yao Qi <yao@codesourcery.com>
4648 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4650 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4651 (displaced_write_reg, displaced_read_reg): Likewise.
4652 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4653 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4654 (cleanup_branch): Replace magic number 14 and 15 with
4655 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4657 2011-03-02 Michael Snyder <msnyder@vmware.com>
4659 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4661 * cli/cli-script.c (script_from_file): Add break for lint.
4663 * mdebugread.c (parse_partial_symbols): Fix indent.
4665 * target-descriptions.c (tdesc_gdb_type): No need to call
4666 xstrdup, callee saves a copy.
4668 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4670 * infcall.c (call_function_by_hand): Add break statements for lint.
4672 * utils.c (parse_escape): Escape the escape char.
4674 * python/py-inferior.c (build_inferior_list): Error out if
4675 PyList_Append fails.
4676 (gdbpy_inferiors): Error out if build_inferior_list fails.
4678 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4681 * record.c (record_restore): Move printf to before error return.
4683 2011-03-02 Yao Qi <yao@codesourcery.com>
4685 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4686 is_thumb and insn_size.
4687 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4688 on both ARM and Thumb mode.
4689 (arm_process_displaced_insn): Set is_thumb and insn_size.
4690 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4691 (arm_displaced_step_fixup): Likewise.
4693 2011-03-01 Michael Snyder <msnyder@vmware.com>
4695 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4697 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4699 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4701 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4703 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4706 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4707 which shadows function parameter.
4709 * tracepoint.c (create_tsv_from_upload): Superfluous call
4710 to xstrdup. Callee already calls xstrdup.
4712 * linespec.c (decode_line_1): Remove unnecessary null check.
4714 * tracepoint.c (scope_info): Fix mem leak, remove underused
4717 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4718 superfluous null check.
4720 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4721 (value_of_builtin_frame_fp_reg): Ditto.
4723 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4725 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4728 * linespec.c (decode_line_1): Check for null before dereference.
4730 * reverse.c (record_restore): Move null-check to before pointer
4733 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4735 * objc-lang.c (selectors_info): Add explanitory comment.
4736 (classes_info): Ditto.
4738 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4740 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4741 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4742 versions of the trampoline. Handle Thumb vs. ARM addresses.
4743 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4744 (arm_linux_init_abi): Install it.
4745 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4746 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4748 2011-02-28 Michael Snyder <msnyder@vmware.com>
4750 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4751 a little bigger, to avoid possibility of an overflow.
4753 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4754 buffers a little bigger, to avoid possibility of an overflow.
4756 * coffread.c (coff_getfilename): Add check to avoid overflow.
4758 * objc-lang.c (selectors_info): Add a small safety margin to
4760 (classes_info): Error out on too long REGEXP.
4762 * infrun.c (handle_inferior_event): Remove unused function call.
4764 * fork-child.c (fork_inferior): Remove ifdef'd code and
4767 * linux-thread-db.c (attach_thread): Discard unused value.
4769 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4771 * remote.c (remote_get_noisy_reply): Discard unused value.
4772 (remote_vcont_resume): Ditto.
4773 (remote_stop_ns): Ditto.
4775 * linespec.c (decode_objc): Delete unused variable.
4777 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4779 * dwarf2read.c (add_partial_symbol): Discard unused values.
4780 (read_base_type): Delete unused variable.
4782 * dbxread.c (read_dbx_symtab): Discard unused value.
4784 * eval.c (evaluate_subexp_standard): Delete unused variable,
4785 and discard unused values.
4787 * infcmd.c (_initialize_infcmd): Discard unused values.
4789 * stabsread.c (rs6000_builtin_type): Missing break statement.
4791 * dbxread.c (process_one_symbol): Discard unused value.
4793 * coffread.c (coff_end_symtab): Delete unused variable.
4795 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4796 (dwarf2_add_typedef): Delete unused variable.
4797 (read_namespace): Ditto.
4798 (dwarf_decode_macros): Ditto.
4800 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4802 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4804 * p-valprint.c (pascal_val_print): Discard unused value.
4806 * utils.c (nquery): Call va_end before return;
4810 * proc-service.c (ps_plog): Call va_end before return.
4812 2011-02-28 Tom Tromey <tromey@redhat.com>
4814 * python/python.c (gdbpy_value_cst): New global.
4815 (_initialize_python): Initialize it.
4816 * python/python-internal.h (gdbpy_value_cst): Declare.
4817 * python/py-value.c (convert_value_from_python): Use
4820 2011-02-28 Michael Snyder <msnyder@vmware.com>
4822 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4824 * breakpoint.c (catch_syscall_completer): Free malloced list.
4826 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4828 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4829 (lval_func_check_synthetic_pointer): Ditto.
4830 (lval_func_free_closure): Fix use-after-free.
4832 2011-02-28 Tom Tromey <tromey@redhat.com>
4834 * psymtab.c (expand_partial_symbol_tables): Use
4835 ALL_OBJFILE_PSYMTABS.
4837 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4839 * objc-lang.c (selectors_info): Error on too long REGEXP.
4841 2011-02-28 Michael Snyder <msnyder@vmware.com>
4843 * python/py-param.c (set_parameter_value): Add missing
4846 * linux-record.c (record_linux_system_call): Add missing
4849 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4851 * breakpoint.c (print_one_breakpoint_location): Remove unused
4852 argument PRINT_ADDRESS_BITS. Update callers.
4853 (print_one_breakpoint): Likewise.
4855 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4857 * breakpoint.c (wrap_indent_at_field): New function.
4858 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4859 Allocate ui_stream locally instead of using STB argument.
4860 (print_one_breakpoint_location): Update call.
4861 * ui-out.c (ui_out_query_field): New function.
4862 * ui-out.h (ui_out_query_field): Add prototype.
4864 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4866 From Michael Snyder <msnyder@vmware.com>
4867 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4869 2011-02-27 Michael Snyder <msnyder@vmware.com>
4871 * objc-lang.c (selectors_info): Prevent string overrun.
4873 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4876 * symtab.c (rbreak_command): Move variable 'file_name' to
4879 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4880 param with a local variable of the same name.
4882 2011-02-27 Michael Snyder <msnyder@vmware.com>
4884 * value.c (value_from_history_ref): New function.
4885 * value.h (value_from_history_ref): Export.
4886 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4887 to parse value history references.
4888 * cli/cli-utils.h (get_number_trailer): Update comment.
4890 2011-02-27 Michael Snyder <msnyder@vmware.com>
4892 * inferior.c (detach_inferior_command): Use get_number_or_range.
4893 (kill_inferior_command): Ditto.
4894 (remove_inferior_command): Ditto.
4895 (initialize_inferiors): Make command names plural.
4896 Update help strings.
4898 2011-02-27 Michael Snyder <msnyder@vmware.com>
4900 * darwin-nat-info.c: Fix comment typo.
4901 * dwarf2expr.h: Ditto.
4902 * fbsd-nat.c: Ditto.
4903 * fbsd-nat.h: Ditto.
4904 * frame-unwind.h: Ditto.
4906 * hppa-hpux-tdep.c: Ditto.
4907 * i386-linux-nat.c: Ditto.
4908 * linux-nat.c: Ditto.
4909 * nbsd-nat.c: Ditto.
4910 * nbsd-nat.h: Ditto.
4911 * ppc-linux-tdep.c: Ditto.
4914 * tui/tui-winsource.c: Ditto.
4916 2011-02-26 Michael Snyder <msnyder@vmware.com>
4918 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4920 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4922 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4923 with a local variable of the same name.
4925 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4926 param with a local variable of the same name.
4927 (i387_supply_xsave): Ditto.
4929 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4930 that it does not shadow a function parameter.
4932 * i386-nat.c (i386_length_and_rw_bits): Document that case
4933 statement is meant to fall through.
4935 * expprint.c (dump_subexp_body_standard): Document that case
4936 statement is meant to fall through.
4938 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4939 dead if statement. Condition can't be false.
4941 2011-02-25 Michael Snyder <msnyder@vmware.com>
4943 * arm-tdep.c: Fix typos in comments.
4944 * bsd-uthread.c: Ditto.
4945 * completer.c: Ditto.
4947 * cp-namespace.c: Ditto.
4948 * cp-support.c: Ditto.
4949 * cris-tdep.c: Ditto.
4951 * dwarf2read.c: Ditto.
4953 * gdbtypes.h: Ditto.
4954 * inferior.h: Ditto.
4955 * mdebugread.c: Ditto.
4956 * mips-tdep.c: Ditto.
4957 * ppc-linux-nat.c: Ditto.
4958 * ppc-linux-tdep.c: Ditto.
4959 * printcmd.c: Ditto.
4960 * sol-thread.c: Ditto.
4961 * solib-frv.c: Ditto.
4963 * sparc64-tdep.c: Ditto.
4964 * spu-tdep.c: Ditto.
4965 * stabsread.c: Ditto.
4970 * python/py-block.c: Ditto.
4971 * python/py-symbol.c: Ditto.
4972 * python/py-symtab.c: Ditto.
4973 * python/py-value.c: Ditto.
4974 * tui/tui-win.c: Ditto.
4976 2011-02-25 Michael Snyder <msnyder@vmware.com>
4978 * inferior.c (print_inferior): Accept a string instead of an int
4979 for requested_inferiors, and use get_number_or_range to parse it.
4980 (info_inferiors_command): Pass args string to print_inferior.
4981 (initialize_inferiors): Change help string for info inferiors.
4982 * inferior.h (print_inferior): Export prototype change.
4984 2011-02-25 Tom Tromey <tromey@redhat.com>
4986 * common/ax.def (invalid2): Set to 0x31.
4988 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4990 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4992 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4994 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4996 2011-02-24 Michael Snyder <msnyder@vmware.com>
4998 * Makefile.in (clean): Make clean should remove generated files
4999 observer.h and observer.inc.
5001 2011-02-24 Joel Brobecker <brobecker@adacore.com>
5003 Revert the following patch (not approved yet):
5004 2011-02-21 Hui Zhu <teawater@gmail.com>
5005 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5006 * ax-gdb.c (gen_printf_expr_callback): New function.
5007 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5008 * ax-general.c (ax_memcpy): New function.
5009 (ax_print): Handle "printf".
5011 * ax.h (ax_memcpy): Forward declare.
5012 * common/ax.def (invalid2): Removed.
5013 (printf): New entry.
5014 * printcmd.c (printcmd.h): New include.
5015 (string_printf): New function.
5016 (ui_printf): Removed.
5017 (printf_command): Remove static. Call string_printf.
5018 (eval_command): Call string_printf.
5019 * printcmd.h: New file.
5020 * tracepoint.c (validate_actionline,
5021 encode_actions_1): handle printf_command.
5023 2011-02-23 Tom Tromey <tromey@redhat.com>
5025 * ax-general.c (ax_pick): Add missing newline.
5027 2011-02-23 Michael Snyder <msnyder@vmware.com>
5029 * breakpoint.c (breakpoint_1): Change first argument from an int
5030 to a char pointer, so that the function now accepts a list of
5031 breakpoints rather than just one. Use new function
5032 'number_is_in_list' to implement.
5033 (breakpoints_info): Pass char * instead of int to breakpoint_1.
5034 (watchpoints_info): Ditto.
5035 (tracepoints_info): Ditto.
5036 (maintenance_info_breakpoints): Ditto.
5037 (_initialize_breakpoint): Update help strings to reflect the fact
5038 that these functions can now take more than one argument.
5039 * cli/cli-utils.c (number_is_in_list): New function.
5040 * cli/cli-utils.h (number_is_in_list): Export.
5042 2011-02-23 Michael Snyder <msnyder@vmware.com>
5044 * memattr.c (mem_enable_command): Use get_number_or_range.
5045 (mem_disable_command): Ditto.
5046 (mem_delete_command): Ditto.
5047 (_initialize_mem): Tweak usage message to reflect multiple
5050 2011-02-22 Doug Evans <dje@google.com>
5052 Add gdb.lookup_global_symbol python function.
5054 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
5055 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
5056 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
5058 2011-02-22 Tom Tromey <tromey@redhat.com>
5060 * language.c (language_class_name_from_physname): Rename
5061 'curr_language' argument to 'lang'; use in body.
5063 2011-02-22 Michael Snyder <msnyder@vmware.com>
5065 * cli/cli-utils.c (number_is_in_list): Check for zero return.
5067 2011-02-22 Pedro Alves <pedro@codesourcery.com>
5069 * frame-unwind.h: Fix comment to mention the this frame, not the
5072 2011-02-22 Tom Tromey <tromey@redhat.com>
5074 * symfile.c (auto_solib_limit): Remove.
5075 * symfile.h (auto_solib_limit): Remove.
5077 2011-02-22 Joel Brobecker <brobecker@adacore.com>
5079 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
5081 2011-02-21 Michael Snyder <msnyder@vmware.com>
5083 * gdbthread.h (print_thread_info): Change prototype.
5084 * thread.c (print_thread_info): Accept char* instead of int for
5085 requested_threads argument. Use new function number_is_in_list
5086 to determine which threads to list.
5087 (info_threads_command): Pass char* to print_thread_info.
5088 * cli/cli-utils.c (number_is_in_list): New function.
5089 * cli/cli-utils.h (number_is_in_list): Export.
5090 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
5092 (print_one_inferior): Ditto.
5093 (mi_cmd_list_thread_groups): Ditto.
5095 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5097 * common/Makefile.in (CFLAGS): New.
5098 (COMPILE): Add $(CFLAGS).
5100 2011-02-21 Tom Tromey <tromey@redhat.com>
5102 * breakpoint.c (catch_syscall_command_1): Fix typo.
5104 2011-02-21 Tom Tromey <tromey@redhat.com>
5106 * reverse.c: Include cli-utils.h.
5107 * printcmd.c: Include cli-utils.h.
5108 (string_printf): Use skip_spaces.
5109 * cli/cli-utils.h: New file.
5110 * cli/cli-utils.c: New file.
5111 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
5112 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
5113 * breakpoint.h (get_number, get_number_or_range): Move to
5115 * breakpoint.c: Include cli-utils.h.
5116 (get_number_trailer, get_number, get_number_or_range)
5117 (ep_skip_leading_whitespace): Move to cli-utils.c.
5118 (create_breakpoint_sal, find_condition_and_thread)
5119 (decode_static_tracepoint_spec, watch_command_1)
5120 (watch_maybe_just_location, ep_parse_optional_if_clause)
5121 (catch_fork_command_1, catch_exec_command_1)
5122 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
5123 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
5124 (SUBDIR_CLI_SRCS): Add cli-utils.c.
5125 (HFILES_NO_SRCDIR): Add cli-utils.h.
5126 (cli-utils.o): New target.
5128 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5130 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
5131 before calling discard_all_inferiors.
5133 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5135 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
5136 (struct builtin_opencl_type): Remove.
5137 (builtin_opencl_type): Change return type to "struct type **".
5138 (lookup_opencl_vector_type): Update caller.
5139 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
5140 (build_opencl_types): Install plain array of "struct type *"
5141 instead of "struct builtin_opencl_type".
5143 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5144 Ulrich Weigand <uweigand@de.ibm.com>
5146 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
5147 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
5148 (struct arm_linux_hwbp_cap): New type.
5149 (arm_linux_get_hwbp_cap): New function.
5150 (arm_linux_get_hw_breakpoint_count): Likewise.
5151 (arm_linux_get_hw_watchpoint_count): Likewise.
5152 (arm_linux_can_use_hw_breakpoint): Likewise.
5153 (arm_hwbp_type): New type.
5154 (arm_hwbp_control_t): Likewise.
5155 (struct arm_linux_hw_breakpoint): Likewise.
5156 (struct arm_linux_thread_points): Likewise.
5157 (arm_threads): New global variable.
5158 (arm_linux_find_breakpoints_by_tid): New function.
5159 (arm_hwbp_control_initialize): Likewise.
5160 (arm_hwbp_control_is_enabled): Likewise.
5161 (arm_hwbp_control_disable): Likewise.
5162 (arm_linux_hw_breakpoint_initialize): Likewise.
5163 (arm_linux_get_hwbp_type): Likewise.
5164 (arm_linux_hw_watchpoint_initialize): Likewise.
5165 (arm_linux_hw_breakpoint_equal): Likewise.
5166 (arm_linux_insert_hw_breakpoint1): Likewise.
5167 (arm_linux_remove_hw_breakpoint1): Likewise.
5168 (arm_linux_insert_hw_breakpoint): Likewise.
5169 (arm_linux_remove_hw_breakpoint): Likewise.
5170 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
5171 (arm_linux_insert_watchpoint): Likewise.
5172 (arm_linux_remove_watchpoint): Likewise.
5173 (arm_linux_stopped_data_address): Likewise.
5174 (arm_linux_stopped_by_watchpoint): Likewise.
5175 (arm_linux_watchpoint_addr_within_range): Likewise.
5176 (arm_linux_new_thread): Likewise.
5177 (arm_linux_thread_exit): Likewise.
5178 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
5179 related target callbacks. Register arm_linux_new_thread and
5180 arm_linux_thread_exit.
5181 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
5182 * arm-tdep.c (arm_pc_is_thumb): Make global.
5183 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
5185 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5187 * breakpoint.c (update_watchpoint): Do not attempt to recreate
5188 per-frame locations while within a function epilogue.
5190 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5192 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
5193 to GNU coding standards.
5195 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5197 Allow use of mingw native on Windows 95 OS.
5198 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
5199 (ser_windows_close): Only call CancelIo if function exists.
5200 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
5201 to check for existence of CancelIo function in kernel32 DLL.
5203 2011-02-21 Hui Zhu <teawater@gmail.com>
5205 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5206 * ax-gdb.c (gen_printf_expr_callback): New function.
5207 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5208 * ax-general.c (ax_memcpy): New function.
5209 (ax_print): Handle "printf".
5211 * ax.h (ax_memcpy): Forward declare.
5212 * common/ax.def (invalid2): Removed.
5213 (printf): New entry.
5214 * printcmd.c (printcmd.h): New include.
5215 (string_printf): New function.
5216 (ui_printf): Removed.
5217 (printf_command): Remove static. Call string_printf.
5218 (eval_command): Call string_printf.
5219 * printcmd.h: New file.
5220 * tracepoint.c (validate_actionline,
5221 encode_actions_1): handle printf_command.
5223 2011-02-19 Michael Snyder <msnyder@vmware.com>
5225 * reverse.c (delete_one_bookmark): Argument is now bookmark
5226 id rather than pointer to bookmark struct.
5227 (delete_bookmark_command): Use get_number_or_range.
5228 (goto_bookmark_command): Parse with get_number instead of strtoul.
5229 (bookmark_1): New function. Print info for one bookmark.
5230 (bookmarks_info): Use get_number_or_range and bookmark_1.
5232 2011-02-18 Michael Snyder <msnyder@vmware.com>
5234 * thread.c (info_threads_command): Re-implement using
5235 get_number_or_range.
5236 (thread_apply_command): Ditto.
5238 2011-02-18 Tom Tromey <tromey@redhat.com>
5240 * common/ax.def: New file.
5241 * ax.h (enum agent_op): Use ax.def.
5242 * ax-general.c (aop_map): Use ax.def.
5244 2011-02-18 Tom Tromey <tromey@redhat.com>
5246 * ax-general.c (aop_map): Add pick and rot.
5247 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5248 <DW_OP_rot>: Implement.
5249 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5251 * ax-general.c (ax_pick): New function.
5253 2011-02-18 Tom Tromey <tromey@redhat.com>
5255 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5257 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5258 Tom Tromey <tromey@redhat.com>
5260 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5261 make_symbol_overload_list_block with NULL BLOCK.
5262 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5264 2011-02-18 Pedro Alves <pedro@codesourcery.com>
5266 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5267 * breakpoint.h (get_number_or_range): Declare.
5268 * printcmd.c (ALL_DISPLAYS): Declare.
5269 (delete_display): Reimplement taking a display pointer.
5270 (undisplay_command): Accept a range of displays to delete, using
5271 get_number_or_range.
5273 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5275 * c-valprint.c (c_val_print): Add embedded_offset to address
5276 for arrays of unspecified length.
5277 * p-valprint.c (pascal_val_print): Likewise.
5279 2011-02-18 Yao Qi <yao@codesourcery.com>
5281 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5282 (arm_process_displaced_insn): .. here. Remove parameter INSN.
5283 (thumb_process_displaced_insn): New.
5284 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5285 call to arm_process_displaced_insn.
5286 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5288 2011-02-17 Tom Tromey <tromey@redhat.com>
5290 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5291 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5292 compile_dwarf_to_ax. No longer static. Call
5293 dwarf2_compile_cfa_to_ax.
5294 (locexpr_tracepoint_var_ref): Update.
5295 (loclist_tracepoint_var_ref): Update.
5296 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5297 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5298 argument; add 'gdbarch' and 'pc'.
5299 (dwarf2_compile_cfa_to_ax): New function.
5300 (dwarf2_frame_cache): Update.
5302 2011-02-17 Joel Brobecker <brobecker@adacore.com>
5304 * ada-lang.c (ada_type_of_array): Fix the size of the array
5305 in the case of an unconstrained packed array.
5307 2011-02-17 Yao Qi <yao@codesourcery.com>
5309 * common/Makefile.in: Add more targets for make.
5311 2011-02-16 Tom Tromey <tromey@redhat.com>
5313 * dwarf2loc.c (unimplemented): Fix typo.
5315 2011-02-16 Tom Tromey <tromey@redhat.com>
5317 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5318 (compile_dwarf_to_ax) <default>: Use unimplemented.
5319 <DW_OP_deref>: Update.
5320 (disassemble_dwarf_expression): Update.
5321 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5322 (decode_locdesc): Update.
5323 * dwarf2expr.h (dwarf_stack_op_name): Update.
5325 2011-02-16 Tom Tromey <tromey@redhat.com>
5327 * ax.h (struct aop_map) <name>: Now const.
5329 2011-02-16 Tom Tromey <tromey@redhat.com>
5331 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5334 2011-02-16 Yao Qi <yao@codesourcery.com>
5336 * infrun.c (get_displaced_step_closure_by_addr): New.
5337 * inferior.h: Declare it.
5338 * arm-tdep.c: (arm_pc_is_thumb): Call
5339 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
5342 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5343 Jan Kratochvil <jan.kratochvil@redhat.com>
5346 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
5348 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5349 Jan Kratochvil <jan.kratochvil@redhat.com>
5351 * value.c (value_contents_copy_raw): Extend describing comment.
5352 Assert that the destination contents we're overwriting are wholly
5354 (value_contents_copy): Extend describing comment.
5356 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5357 Jan Kratochvil <jan.kratochvil@redhat.com>
5359 * value.c (value_available_contents_eq): Remove redundant local
5360 variables. Fix available contents comparision.
5361 * value.h (value_available_contents_eq): Extend describing
5364 2011-02-16 Yao Qi <yao@codesourcery.com>
5366 * thread.c (info_threads_command): Add missing i18n markup and remove
5369 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5371 * breakpoint.c (longjmp_names): New variable.
5372 (struct breakpoint_objfile_data): New type.
5373 (breakpoint_objfile_key): New variable.
5374 (msym_not_found): New variable.
5375 (msym_not_found_p): New predicate.
5376 (get_breakpoint_objfile_data): New function.
5377 (create_overlay_event_breakpoint): Check per-objfile cache for
5379 (create_longjmp_master_breakpoint): Likewise.
5380 (create_std_terminate_master_breakpoint): Likewise.
5381 (create_exception_master_breakpoint): Likewise.
5382 (_initialize_breakpoint): Register per-objfile data key.
5384 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5386 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5388 (create_longjmp_master_breakpoint): Loop over longjmp names.
5389 (create_std_terminate_master_breakpoint): Const-propagate parameter
5391 (update_breakpoints_after_exec): Adjust.
5392 (breakpoint_re_set): Adjust.
5394 2011-02-15 Michael Snyder <msnyder@vmware.com>
5396 * thread.c (info_threads_command): Process arg as thread id,
5397 or list of thread ids.
5398 (thread_find_command): New command.
5399 (_initialize_thread): Document argument for info threads.
5400 Document 'thread find' command.
5401 * NEWS: Document new command "thread find".
5403 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5405 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5406 * aclocal.m4: Regenerated with aclocal-1.11.1.
5407 * common/configure: Regenerate with autoconf-2.64.
5409 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
5411 * opencl-lang.c (build_opencl_types): Set the size of the built-in
5412 bool data type to a size of one byte.
5414 2011-02-15 Pedro Alves <pedro@codesourcery.com>
5415 Jan Kratochvil <jan.kratochvil@redhat.com>
5417 * target.c (memory_xfer_live_readonly_partial): Document where to
5418 look for interface description.
5420 2011-02-15 Yao Qi <yao@codesourcery.com>
5423 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5424 order to store PC value on stack instead of text section.
5426 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
5428 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5429 the EFP register set size.
5430 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5431 data from the VMX register.
5432 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5433 and write data from/to the VMX register.
5435 2011-02-14 Michael Snyder <msnyder@vmware.com>
5437 * command.h (enum command_class): New class 'no_set_class', for
5438 "show" commands without a corresponding "set" command.
5439 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5440 * copying.c (_initialize_copying): Ditto for "show copying" and
5442 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5444 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5445 which there is no corresponding "set" command (eg. "show copying").
5447 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5448 Jan Kratochvil <jan.kratochvil@redhat.com>
5450 * exec.c (section_table_available_memory): Change `len' parameter
5452 * exec.h (section_table_available_memory): Ditto.
5453 * value.h (read_value_memory): Rename the `offset' parameter to
5456 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5457 Jan Kratochvil <jan.kratochvil@redhat.com>
5459 * memrange.c (compare_mem_ranges): Mention sort order in
5461 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5462 * tracepoint.c (traceframe_available_memory): Extend comment to
5463 mention what happens to RESULT when the target does not support
5466 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5467 Jan Kratochvil <jan.kratochvil@redhat.com>
5469 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5472 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5474 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5475 No longer handle NULL values.
5477 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5479 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5480 * value.c: Include "exceptions.h".
5481 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5483 * cp-abi.c: Include gdb_assert.h.
5484 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5485 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5487 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5488 parameters. No longer returns -1 on error.
5489 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5491 * cp-valprint.c: Include exceptions.h.
5492 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5493 the baseclass_offset. Handle unavailable base classes. Use
5494 val_print_invalid_address.
5495 * p-valprint.c: Include exceptions.h.
5496 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5497 when fetching the baseclass_offset. No longer expect
5498 baseclass_offset returning -1. Handle unavailable base classes.
5499 Use val_print_invalid_address.
5500 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5501 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5502 `embedded_offset' and `val' parameters. Adjust.
5503 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5504 parameter, and change its type to gdb_byte pointer. Add
5505 `embedded_offset' and `val' parameters. Adjust. No longer expect
5506 baseclass_offset returning -1.
5507 (value_dynamic_cast): Use value_contents_for_printing rather than
5508 value_contents. Adjust.
5509 (search_struct_field): No longer expect baseclass_offset returning
5511 (search_struct_method): If reading memory from the target is
5512 necessary, wrap it in a new value to pass to baseclass_offset. No
5513 longer expect baseclass_offset returning -1.
5514 (find_method_list): No longer expect baseclass_offset returning
5515 -1. Use value_contents_for_printing rather than value_contents.
5516 * valprint.c (val_print_invalid_address): New function.
5517 * valprint.h (val_print_invalid_address): Declare.
5518 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5519 and `val' parameters. No longer expect baseclass_offset returning
5521 * gnu-v2-abi.c: Include "exceptions.h".
5522 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5523 parameters. Handle unavailable memory. Recurse through
5524 gnuv2_baseclass_offset directly, rather than through
5525 baseclass_offset. No longer returns -1 on not found, instead
5527 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5528 `val' parameters. Adjust.
5530 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5532 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5533 almost but not quite adjacent.
5535 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5537 * value.h (value_entirely_available): Declare.
5538 * value.c (value_entirely_available): New function.
5539 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5540 real type if the pointer is unavailable.
5542 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5544 * valops.c (value_repeat): Use read_value_memory instead of
5547 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5549 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5550 * value.c (value_contents_copy_raw, value_contents_copy): New
5552 (value_primitive_field): Use value_contents_copy_raw instead of
5554 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5556 (value_array, value_slice): Ditto.
5557 * valarith.c (value_subscripted_rvalue): Use
5558 value_contents_copy_raw instead of memcpy.
5560 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5562 <unavailable> references.
5564 * valops.c (get_value_at): Use value_from_contents_and_address,
5565 avoiding read_memory.
5567 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5569 * c-valprint.c (c_val_print): Print a string with unavailable
5570 contents as an array.
5572 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5574 * value.h (unpack_bits_as_long): Delete declaration.
5575 (unpack_value_bits_as_long): Declare.
5576 (unpack_value_field_as_long): Declare.
5577 (value_field_bitfield): Declare.
5578 * value.c (unpack_bits_as_long): Rename to...
5579 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5580 value parameters. Return the extracted result in a new output
5581 parameter. If the value contents are unavailable, return false,
5582 otherwise return true.
5583 (unpack_value_bits_as_long): New.
5584 (unpack_field_as_long): Rename to...
5585 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5586 Add embedded_offset and value parameters. Return the extracted
5587 result in a new output parameter. If the value contents are
5588 unavailable, return false, otherwise return true.
5589 (unpack_value_field_as_long): New.
5590 (unpack_field_as_long_1): New.
5591 (unpack_field_as_long): Reimplement as wrapper around
5592 unpack_value_field_as_long_1.
5593 (value_field_bitfield): New function.
5594 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5595 unpack_value_bits_as_long. Mark the value as unavailable, if it
5597 * jv-valprint.c (java_print_value_fields): Use
5598 value_field_bitfield.
5599 * p-valprint.c (pascal_object_print_value_fields): Use
5600 value_field_bitfield.
5601 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5603 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5605 * value.c (get_internalvar_integer): Also return the int value of
5606 TYPE_CODE_INT INTERNALVAR_VALUE values.
5607 (set_internalvar): Don't special case TYPE_CODE_INT.
5609 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5611 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5612 INTERNALVAR_POINTER.
5614 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5615 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5616 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5618 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5620 * value.h (value_available_contents_eq): Declare.
5621 * value.c (find_first_range_overlap): New function.
5622 (value_available_contents_eq): New function.
5623 * valprint.c (val_print_array_elements): Use
5624 value_available_contents_eq.
5625 * ada-valprint.c (val_print_packed_array_elements): Use
5626 value_available_contents_eq.
5627 * jv-valprint.c (java_value_print): Use
5628 value_available_contents_eq.
5630 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5632 * target.c (target_read_live_memory): New function.
5633 (memory_xfer_live_readonly_partial): New.
5634 (memory_xfer_partial): If reading from a traceframe, fallback to
5635 reading unavailable read-only memory from read-only regions of
5637 * tracepoint.c (disconnect_tracing): Adjust.
5638 (set_current_traceframe): New, factored out from
5639 set_traceframe_number.
5640 (set_traceframe_number): Reimplement to only change the traceframe
5641 number on the GDB side.
5642 (do_restore_current_traceframe_cleanup): Adjust.
5643 (make_cleanup_restore_traceframe_number): New.
5644 (cur_traceframe_number): New global.
5645 (tfile_open): Set cur_traceframe_number to no traceframe.
5646 (set_tfile_traceframe): New function.
5647 (tfile_trace_find): If looking up a traceframe using any method
5648 other than by number, make sure the current tfile traceframe
5649 matches gdb's current traceframe. Update the current tfile
5650 traceframe if the lookup succeeded.
5651 (tfile_fetch_registers, tfile_xfer_partial)
5652 (tfile_get_trace_state_variable_value): Make sure the remote
5653 traceframe matches gdb's current traceframe.
5654 * remote.c (remote_traceframe_number): New global.
5655 (remote_open_1): Set it to -1.
5656 (set_remote_traceframe): New function.
5657 (remote_fetch_registers, remote_store_registers)
5658 (remote_xfer_memory, remote_xfer_partial)
5659 (remote_get_trace_state_variable_value): Make sure the remote
5660 traceframe matches gdb's current traceframe.
5661 (remote_trace_find): If looking up a traceframe using any method
5662 other than by number, make sure the current remote traceframe
5663 matches gdb's current traceframe. Update the current remote
5664 traceframe if the lookup succeeded.
5665 * infrun.c (fetch_inferior_event): Adjust.
5666 * tracepoint.h (set_current_traceframe): Declare.
5667 (get_traceframe_number, set_traceframe_number): Add describing
5670 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5672 Mark pieces of values as unavailable if the corresponding memory
5675 * valops.c: Include tracepoint.h.
5676 (value_fetch_lazy): Use read_value_memory.
5677 (read_value_memory): New.
5678 * value.h (read_value_memory): Declare.
5679 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5680 * exec.c (section_table_available_memory): New function.
5681 * exec.h (section_table_available_memory): Declare.
5683 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5685 * Makefile.in (SFILES): Add memrange.c.
5686 (HFILES_NO_SRCDIR): Add memrange.h.
5687 (COMMON_OBS): Add memrange.o.
5688 * memrange.c: New file.
5689 * memrange.h: New file.
5690 * tracepoint.c: Include memrange.h.
5691 (struct mem_range): Delete.
5692 (mem_range_s): Delete.
5693 (traceframe_available_memory): New function.
5694 * tracepoint.h (traceframe_available_memory): Declare.
5696 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5698 * target.h (struct traceframe_info): Forward declare.
5699 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5700 (struct target_ops) <to_traceframe_info>: New field.
5701 (target_traceframe_info): New.
5702 * target.c (update_current_target): Inherit and default
5704 * remote.c (PACKET_qXfer_traceframe_info): New.
5705 (remote_protocol_features): Register qXfer:traceframe-info:read.
5706 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5707 (remote_traceframe_info): New.
5708 (init_remote_ops): Install it.
5709 (_initialize_remote): Install "set/show remote traceframe-info"
5711 * tracepoint.h (parse_traceframe_info): Declare.
5712 * tracepoint.c (struct mem_range): New.
5713 (mem_range_s): New typedef.
5714 (struct traceframe_info): New.
5715 (traceframe_info): New global.
5716 (free_traceframe_info): New function.
5717 (clear_traceframe_info): New function.
5718 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5720 (build_traceframe_info): New function.
5721 (tfile_traceframe_info): New function.
5722 (init_tfile_ops): Install tfile_traceframe_info.
5723 (traceframe_info_start_memory, free_result): New functions.
5724 (memory_attributes, traceframe_info_elements): New globals.
5725 (parse_traceframe_info, get_traceframe_info): New functions.
5726 * features/traceframe-info.dtd: New file.
5727 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5729 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5731 Base support for <unavailable> value contents.
5733 * value.h (value_bytes_available): Declare.
5734 (mark_value_bytes_unavailable): Declare.
5735 * value.c (struct range): New struct.
5736 (range_s): New typedef.
5737 (ranges_overlap): New function.
5738 (range_lessthan): New function.
5739 (ranges_contain_p): New function.
5740 (struct value) <unavailable>: New field.
5741 (value_bytes_available): New function.
5742 (mark_value_bytes_unavailable): New function.
5743 (require_not_optimized_out): Constify parameter.
5744 (require_available): New function.
5745 (value_contents_all, value_contents): Require all bytes be
5747 (value_free): Free `unavailable'.
5748 (value_copy): Copy `unavailable'.
5749 * valprint.h (val_print_unavailable): Declare.
5750 * valprint.c (valprint_check_validity): Rename `offset' parameter
5751 to `embedded_offset'. If printing a scalar, check whether the
5752 value chunk is available.
5753 (val_print_unavailable): New.
5754 (val_print_scalar_formatted): Check whether the value is
5756 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5757 pretty-printing unavailable values.
5759 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5761 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5762 * c-typeprint.c (c_type_print_args): Update the function comment. New
5763 variable param_type, initialize it. Remove const/volatile qualifiers
5764 for language_cplus and !show_artificial. Use param_type.
5766 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5768 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5769 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5770 * symtab.h (struct symtab) <next>: Comment extension.
5772 2011-02-12 Yao Qi <yao@codesourcery.com>
5774 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5776 2011-02-11 Yao Qi <yao@codesourcery.com>
5778 * common/Makefile.in: Add copyright header.
5780 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5782 * infrun.c (proceed): Move switching out and in of tfind mode from
5784 (fetch_inferior_event): ... to here.
5786 2011-02-11 Yao Qi <yao@codesourcery.com>
5788 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5790 * configure.ac: Add common to sub dir.
5791 * configure: Regenerate.
5793 2011-02-11 Yao Qi <yao@codesourcery.com>
5797 * common/Makefile.in: New.
5798 * common/configure.ac: New.
5799 * common/aclocal.m4: New.
5800 * common/configure: Generate.
5802 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5804 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5805 side of the parenthesis.
5808 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5809 * vec.h (VEC_block_remove): Fix comment.
5811 2011-02-08 Michael Snyder <msnyder@vmware.com>
5813 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5815 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5817 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5818 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5821 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5824 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5826 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5827 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5829 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5831 * dwarf2read.c (read_subroutine_type): Set special calling
5832 convention flag for functions compiled by IBM XL C for OpenCL.
5833 * ppc-sysv-tdep.c: Include "dwarf2.h"
5834 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5836 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5837 IBM OpenCL vector types calling convention.
5838 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5839 (ppc_sysv_abi_broken_return_value): Likewise.
5840 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5841 types calling convention.
5842 (ppc64_sysv_abi_return_value): Likewise.
5843 * spu-tdep.c: Include "dwarf2.h"
5844 (spu_return_value): Implement IBM OpenCL vector types calling
5847 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5849 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5850 correct ABI for AltiVec vector arguments.
5852 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5854 * valprint.c (val_print): Extend comment.
5855 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5856 interface explanation to val_print.
5857 (ada_val_print_array): Adjust comment to current interface.
5858 (print_field_values): Adjust comment to current interface.
5859 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5860 explanation to val_print.
5861 * f-valprint.c (f_val_print): Ditto.
5862 * jv-valprint.c (java_val_print): Ditto.
5863 * m2-valprint.c (m2_val_print): Ditto.
5864 * p-valprint.c (pascal_val_print): Ditto.
5866 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5868 * breakpoint.c (parse_breakpoint_sals): Fix description.
5870 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5871 Oguz Kayral <oguzkayral@gmail.com>
5873 * python/py-inferior.c (python_on_normal_stop): New function.
5874 (python_on_resume): New function.
5875 (python_inferior_exit): New function.
5876 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5877 inferior_exit observers.
5878 * python/py-evtregistry.c: New file.
5879 * python/py-threadevent.c : New file.
5880 * python/py-event.c: New file.
5881 * python/py-evts.c: New file.
5882 * python/py-continueevent.c: New file.
5883 * python/py-bpevent.c: New file.
5884 * python/py-signalevent.c: New file.
5885 * python/py-exetiedevent.c: New file.
5886 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5887 Move struct breakpoint_object from here...
5888 * python/python-internal.h: ... to here.
5889 * python/py-event.h: New file.
5890 * python/py-events.h: New file.
5891 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5892 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5893 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5894 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5895 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5896 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5897 Add build rules for all the above.
5899 2011-02-04 Tom Tromey <tromey@redhat.com>
5901 * dwarf2read.c (dwarf2_section_empty_p): New function.
5902 (dwarf2_read_section): Use dwarf2_section_empty_p.
5903 (dwarf2_section_size): New function.
5904 (dwarf2_get_section_info): Unconditionally read section.
5905 (dwarf2_read_index): Use dwarf2_section_empty_p.
5906 (partial_read_comp_unit_head): Use dwarf2_section_size.
5907 (dwarf2_symbol_mark_computed): Likewise.
5909 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5911 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5913 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5915 * mips-linux-tdep.c: Include xml-syscall.h.
5916 (mips_linux_get_syscall_number): New function.
5917 (mips_linux_init_abi): Add calls to
5918 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5919 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5920 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5921 * syscalls/mips-n32-linux.xml: New file.
5922 * syscalls/mips-n64-linux.xml: New file.
5923 * syscalls/mips-o32-linux.xml: New file.
5925 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5927 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5928 Complain about inverted range entries.
5929 (dwarf2_record_block_ranges): Likewise.
5931 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5934 * breakpoint.c (update_watchpoint): Fix name of the
5935 update_global_location_list function.
5936 (print_one_breakpoint): Fix typo.
5937 (_initialize_breakpoint): Remove extra space in hbreak help
5939 * breakpoint.h (struct bp_location) <length>: Fix field
5942 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5944 * regcache.c (registers_changed_ptid): Don't explictly always
5945 clear `current_regcache'. Only clear current_thread_ptid and
5946 current_thread_arch when PTID matches. Only reinit the frame
5947 cache if PTID matches the current inferior_ptid. Move alloca(0)
5949 (registers_changed): ... here.
5951 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5953 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5954 starts with __stack_chk_guard as stack guard symbol.
5956 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5958 * disasm.c (compare_lines): Handle the end of sequence markers
5959 within the line table to better support disassembling over
5960 compilation unit boundaries.
5962 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5964 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5965 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5966 implementation even if no symbols are available.
5967 (thumb_analyze_prologue): Update call to skip_prologue_function.
5968 (arm_analyze_prologue): Likewise.
5970 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5972 * arm-tdep.c: Include "observer.h".
5973 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5974 (arm_exidx_data_key): New static variable.
5975 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5976 (struct arm_exidx_data): Likewise.
5977 (arm_exidx_data_free): New function.
5978 (arm_compare_exidx_entries): Likewise.
5979 (arm_obj_section_from_vma): Likewise.
5980 (arm_exidx_new_objfile): Likewise.
5981 (arm_find_exidx_entry): Likewise.
5982 (arm_exidx_fill_cache): Likewise.
5983 (arm_exidx_unwind_sniffer): Likewise.
5984 (arm_exidx_unwind): New global variable.
5985 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5986 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5987 observer. Register arm_exidx_data_key as objfile data.
5989 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5991 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5992 due to accessing uninitialized variable. Fix indentation.
5994 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5996 * c-valprint.c (c_value_print): When doing virtual base pointer
5997 adjustment, create a new value with adjusted contents rather than
5998 changing the contents of the value being printed (and getting it
6001 2011-02-02 Pedro Alves <pedro@codesourcery.com>
6003 * xml-support.c (xml_find_attribute): New.
6004 (xinclude_start_include): Use it.
6005 * xml-support.h (xml_find_attribute): Declare.
6006 * memory-map.c (memory_map_start_memory)
6007 (memory_map_start_property): Use xml_find_attribute.
6008 * osdata.c (osdata_start_osdata, osdata_start_column): Use
6010 * remote.c (start_thread): Use xml_find_attribute.
6011 * solib-target.c (library_list_start_segment)
6012 (library_list_start_section, library_list_start_library)
6013 (library_list_start_list): Use xml_find_attribute.
6014 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
6015 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
6016 (tdesc_start_field): Use xml_find_attribute.
6018 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
6020 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
6021 (BUILD_OCL_VTYPES): Update.
6023 2011-02-02 Joel Brobecker <brobecker@adacore.com>
6025 * configure.ac: Work around non-GNU sed limitation when computing
6026 python version number.
6027 * configure: Regenerate.
6029 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6031 Fix debug printing of TYPE_INSTANCE.
6032 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
6033 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
6035 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6037 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
6038 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
6039 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
6040 * ada-operator.inc: Rename the file to ...
6041 * ada-operator.def: ... here, wrap all the entries by macro OP.
6042 * expprint.c (op_name_standard): Remove all the entries. Include
6043 "std-operator.def" instead.
6044 * expression.h (enum exp_opcode): Include "std-operator.def" and
6045 "ada-operator.def". Move all the entries ...
6046 * std-operator.def: ... here, wrap all the entries by macro OP.
6048 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6050 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
6051 * breakpoint.c (remove_jit_event_breakpoints): New function.
6052 * jit.c (jit_descriptor_addr): Delete.
6053 (registering_code): Delete.
6054 (clear_int): Delete.
6055 (jit_inferior_data): New variable.
6056 (struct jit_inferior_data): New type.
6057 (get_jit_inferior_data): New function.
6058 (jit_inferior_data_cleanup): New function.
6059 (jit_read_descriptor): Adjust.
6060 (jit_register_code): Adjust.
6061 (jit_breakpoint_re_set_internal): New function; move code here ...
6062 (jit_inferior_init): ... from here.
6063 (jit_breakpoint_re_set): Adjust.
6064 (jit_reset_inferior_data_and_breakpoints): New function.
6065 (jit_inferior_created_observer): Adjust.
6066 (jit_inferior_exit_hook): Adjust.
6067 (jit_executable_changed_observer): New function.
6068 (jit_event_handler): Adjust.
6069 (_initialize_jit): Adjust.
6071 2011-01-31 Michael Snyder <msnyder@vmware.com>
6073 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
6076 2011-01-31 Tom Tromey <tromey@redhat.com>
6079 * python/python.c (execute_gdb_command): Call
6080 prevent_dont_repeat.
6081 * top.c (suppress_dont_repeat): New global.
6082 (dont_repeat): Use it.
6083 (prevent_dont_repeat): New function.
6084 * command.h (prevent_dont_repeat): Declare.
6086 2011-01-31 Tom Tromey <tromey@redhat.com>
6088 * infcmd.c (finish_backward): Use breakpoint_set_silent.
6089 * python/py-breakpoint.c (bppy_set_silent): Use
6090 breakpoint_set_silent.
6091 (bppy_set_thread): Use breakpoint_set_thread.
6092 (bppy_set_task): Use breakpoint_set_task.
6093 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
6094 (breakpoint_set_task): Declare.
6095 (make_breakpoint_silent): Remove.
6096 * breakpoint.c (breakpoint_set_silent): New function.
6097 (breakpoint_set_thread): Likewise.
6098 (breakpoint_set_task): Likewise.
6099 (make_breakpoint_silent): Remove.
6101 2011-01-31 Tom Tromey <tromey@redhat.com>
6103 * breakpoint.h (user_breakpoint_p): Declare.
6104 * breakpoint.c (user_breakpoint_p): New function.
6105 (breakpoint_1): Use it.
6106 (save_breakpoints): Likewise.
6108 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6110 * configure.ac: Add handling of Python distribution on Windows.
6111 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
6112 sysconfig variables are not defined, then do not use them.
6113 On Windows, if LIBPL is not defined, then use prefix + '/libs'
6114 instead. On Windows, return all paths using forward-slashes
6115 rather than backslashes.
6117 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6119 * configure.ac: Remove fallback behavior for building
6120 against Python. Remove tweaking of Python include path.
6121 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
6122 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
6123 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
6124 Always restore CPPFLAGS and LIBS after linking test.
6125 * configure: Regenerated.
6126 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
6127 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
6128 * python/python-internal.h: Adjust includes of Python .h files.
6130 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6132 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
6135 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6137 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
6140 2011-01-31 Yao Qi <yao@codesourcery.com>
6142 * arm-linux-nat.c: Update calls to regcache_register_status
6143 instead of regcache_valid_p.
6144 * aix-thread.c: Likewise.
6145 * i386gnu-nat.c: Likewise.
6147 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6150 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
6151 touching TYPE_FIELD_ARTIFICIAL.
6153 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
6155 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
6158 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6160 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
6161 selected, don't try iterating over the traceframe's blocks.
6162 (tfile_has_stack): If there's no traceframe selected, then there's
6164 (tfile_has_registers): If there's no traceframe selected, then
6165 there's no registers.
6167 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6169 * target.c (memory_xfer_partial): No need to restore shadows if we
6170 haven't read anything.
6172 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6174 * mips-tdep.c (mips_print_register): Use get_frame_register_value
6175 and val_print_scalar_formatted.
6177 2011-01-27 Pedro Alves <pedro@codesourcery.com>
6179 * tracepoint.c (tfile_read): New.
6180 (tfile_open): Use it.
6181 (tfile_get_traceframe_address): Use it.
6182 (tfile_trace_find): Use it.
6183 (walk_blocks_callback_func): New typedef.
6184 (match_blocktype): New function.
6185 (traceframe_walk_blocks): New function.
6186 (traceframe_find_block_type): New function.
6187 (tfile_fetch_registers, tfile_xfer_partial)
6188 (tfile_get_trace_state_variable_value): Use
6189 traceframe_find_block_type and tfile_read.
6191 2011-01-26 Kevin Buettner <kevinb@redhat.com>
6193 * remote-mips.c: Add internationalization mark ups. Remove
6194 trailing \n from already marked up strings.
6196 2011-01-26 Tom Tromey <tromey@redhat.com>
6198 * python/py-prettyprint.c (print_string_repr): Clear
6199 'addressprint' option when calling val_print_string.
6200 (print_children): Handle Val_pretty_default. Clear 'addressprint'
6201 option when calling val_print_string.
6203 2011-01-26 Tom Tromey <tromey@redhat.com>
6205 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
6207 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6209 (gdb_py_longest, gdb_py_ulongest): New typedefs.
6210 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6211 (gdb_py_long_as_ulongest): New defines.
6212 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6213 (gdb_py_int_as_long): Declare.
6214 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6215 GDB_PY_LL_ARG, gdb_py_object_from_longest.
6216 (valpy_long): Add comment.
6217 * python/py-utils.c (get_addr_from_python): Use
6218 gdb_py_long_as_ulongest. Handle overflow properly.
6219 (gdb_py_object_from_longest): New function.
6220 (gdb_py_object_from_ulongest): Likewise.
6221 (gdb_py_int_as_long): Likewise.
6222 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6223 * python/py-symtab.c (salpy_get_pc): Use
6224 gdb_py_long_from_ulongest.
6225 (salpy_get_line): Use PyInt_FromLong.
6226 * python/py-param.c (set_parameter_value): Use
6228 * python/py-lazy-string.c (stpy_get_address): Use
6229 gdb_py_long_from_ulongest.
6230 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6231 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6232 * python/py-breakpoint.c (bppy_set_thread): Use
6234 (bppy_set_task): Likewise.
6235 (bppy_set_ignore_count): Likewise.
6236 (bppy_set_hit_count): Likewise.
6237 * python/py-block.c (blpy_get_start): Use
6238 gdb_py_object_from_ulongest.
6239 (blpy_get_end): Likewise.
6240 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6242 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
6245 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6246 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6247 equality test for objfile, initialize addr_low if needed.
6249 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6251 * tui/tui-regs.c (tui_register_format): Remove dead code.
6253 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6255 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6256 instead of print_scalar_formatted.
6257 (print_scalar_formatted): Don't handle 's' format strings here,
6258 and add an assertion that we never see such format here.
6259 * valprint.h (val_print_scalar_formatted): Declare.
6260 * valprint.c (val_print_scalar_formatted): New.
6261 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6262 instead of print_scalar_formatted.
6263 * jv-valprint.c (java_val_print): Ditto.
6264 * p-valprint.c (pascal_val_print): Ditto.
6265 * ada-valprint.c (ada_val_print_1): Ditto.
6266 * f-valprint.c (f_val_print): Ditto.
6267 * infcmd.c (registers_info): Ditto.
6268 * m2-valprint.c (m2_val_print): Ditto.
6270 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6272 * m2-valprint.c (print_unbounded_array): Pass
6273 value_contents_for_printing rather than value_contents, to
6274 m2_print_array_contents. Also pass in the value.
6276 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6278 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6279 (save_gdb_index_command): Switch to .gdb_index version 4.
6281 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6283 * mi/mi-main.c (get_register): Use get_frame_register_value rather
6284 than frame_register, and always pass a valid value to val_print.
6286 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6288 Centralize printing "<optimized out>".
6290 * valprint.h (val_print_optimized_out): Declare.
6291 * cp-valprint.c (cp_print_value_fields): Use
6292 val_print_optimized_out.
6293 * jv-valprint.c (java_print_value_fields): Ditto.
6294 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6295 * printcmd.c (print_formatted): Ditto.
6296 * valprint.c (valprint_check_validity): Ditto.
6297 (value_check_printable): Ditto.
6298 (val_print_optimized_out): New.
6300 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6302 * infcmd.c (default_print_registers_info): Allocate values so to
6303 never pass a NULL value to val_print.
6305 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6307 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6308 boolean. Make sure to always pass a value that matches the
6309 contents buffer to callees. Preserve `address' for following
6311 * value.c (value_contents_for_printing_const): New.
6312 (value_address): Constify value argument.
6313 * value.h (value_contents_for_printing_const): Declare.
6314 (value_address): Constify value argument.
6316 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6318 * regcache.c (struct regcache_descr): Rename
6319 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6320 and sizeof_cooked_register_valid_p to
6321 sizeof_cooked_register_status.
6322 (init_regcache_descr): Adjust.
6323 (struct regcache): Rename register_valid_p field to
6325 (regcache_xmalloc_1, regcache_xfree, regcache_save)
6326 (do_cooked_read): Adjust.
6327 (regcache_valid_p): Rename to ...
6328 (regcache_register_status): ... this. Adjust.
6329 (regcache_invalidate): Adjust.
6330 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6332 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
6333 as unavailable, not valid.
6334 (regcache_dump): Adjust.
6335 * regcache.h (enum register_status): New.
6336 (regcache_register_status): Declare.
6337 (regcache_invalidate): Delete declaration.
6338 * corelow.c (get_core_registers): Adjust.
6339 * tracepoint.c (tfile_fetch_registers): Adjust.
6340 * trad-frame.c (REG_VALUE): Rename to ...
6341 (TF_REG_VALUE): ... this.
6342 (REG_UNKNOWN): Rename to ...
6343 (TF_REG_UNKNOWN): ... this.
6344 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
6345 * mi/mi-main.c (register_changed_p): Adjust.
6347 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6349 * regcache.c (struct regcache_descr): Remove outdated comment.
6350 (init_regcache_descr): Remove sizeof_raw_register_valid_p
6352 (regcache_xmalloc): Rename to ...
6353 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
6354 Allocate the regcache type accordingly.
6355 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
6356 (regcache_xfree): Asser the source is also readonly. Copy sizeof
6357 cooked registers, not raw.
6358 (regcache_dup_no_passthrough): Delete.
6359 (get_thread_arch_regcache): Use regcache_xmalloc_1.
6360 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
6361 mention obsolete write_register_bytes.
6362 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6364 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6366 Stop remote_read_bytes from handling partial reads itself.
6368 * remote-fileio.c: Include target.h.
6369 (remote_fileio_write_bytes): Delete.
6370 (remote_fileio_func_open, remote_fileio_func_write)
6371 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6373 (remote_fileio_func_stat): Use target_read_memory and
6374 target_write_memory.
6375 (remote_fileio_func_gettimeofday): Use target_write_memory.
6376 (remote_fileio_func_system): Use target_read_memory.
6377 * remote.c (remote_write_bytes): Make it static.
6378 (remote_read_bytes): Don't handle partial reads here.
6379 * remote.h (remote_read_bytes): Delete declaration.
6381 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6383 Simplify XML parsing a bit.
6385 * xml-support.h (gdb_xml_parse_quick): Declare.
6386 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6387 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6389 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6390 gdb_xml_create_parser_and_cleanup_1.
6391 (gdb_xml_parse_quick): New.
6392 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6393 * osdata.c (osdata_parse): Ditto.
6394 * remote.c (remote_threads_info): Ditto.
6395 * solib-target.c (solib_target_parse_libraries): Ditto.
6396 * xml-syscall.c (syscall_parse_xml): Ditto.
6397 * xml-tdesc.c (tdesc_parse_xml): Ditto.
6399 2011-01-24 Kevin Buettner <kevinb@redhat.com>
6401 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6402 with remote-mips.o added to gdb_target_obs.
6403 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6405 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6407 * ada-valprint.c (val_print_packed_array_elements): Pass the
6408 correct struct value to val_print.
6409 (ada_val_print_1): Ditto.
6411 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6413 Don't lose embedded_offset in printing routines throughout.
6415 * valprint.h (val_print_array_elements): Change prototype.
6416 * valprint.c (val_print_array_elements): Add `embedded_offset'
6417 parameter, and adjust to pass it down to val_print, while passing
6418 `valaddr' or `address' unmodified. Take embedded_offset into
6419 account when checking repetitions.
6420 * c-valprint.c (c_val_print): Pass embedded_offset to
6421 val_print_array_elements instead of adjusting `valaddr' and
6423 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6424 embedded_offset to val_print_array_elements instead of adjusting
6426 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6427 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6428 val_print_array_elements and pascal_object_print_value_fields
6429 instead of adjusting `valaddr'.
6430 (pascal_object_print_value_fields): Add `offset' parameter, and
6432 (pascal_object_print_value): Add `offset' parameter, and adjust to
6434 (pascal_object_print_static_field): Use
6435 value_contents_for_printing/value_embedded_offset, rather than
6437 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6438 parameter, and adjust to use it. Use
6439 value_contents_for_printing/value_embedded_offset, rather than
6441 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6442 (ada_val_print_array): Add `offset' parameter, and adjust to use
6444 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6445 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6446 Instead work with offsets. Use
6447 value_contents_for_printing/value_embedded_offset, rather than
6448 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6449 and use value_from_pointer to extract a target pointer, rather
6450 than value_from_longest.
6451 (print_variant_part): Add `offset' parameter. Replace
6452 `outer_valaddr' parameter by a new `outer_offset' parameter.
6453 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6454 (ada_value_print): Use
6455 value_contents_for_printing/value_embedded_offset, rather than
6457 (print_record): Add `offset' parameter, and adjust to pass it
6459 (print_field_values): Add `offset' parameter. Replace
6460 `outer_valaddr' parameter by a new `outer_offset' parameter.
6461 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6462 Use value_contents_for_printing/value_embedded_offset, rather than
6464 * d-valprint.c (dynamic_array_type): Use
6465 value_contents_for_printing/value_embedded_offset, rather than
6467 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6468 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6469 (java_print_value_fields): Take `offset' into account. Don't
6470 re-adjust `valaddr'. Instead pass down adjusted offsets.
6471 (java_val_print): Take `embedded_offset' into account. Pass it to
6472 java_print_value_fields.
6473 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6474 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6475 down adjusted offsets.
6476 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6477 (f_val_print): Take `embedded_offset' into account.
6479 2011-01-21 Joel Brobecker <brobecker@adacore.com>
6481 * inflow.c: Include "gdbcmd.h".
6482 (interactive_mode): New static global, moved here from top.c.
6483 (show_interactive_mode): New function, moved here from top.c.
6484 use gdb_has_a_terminal instead of input_from_terminal_p to
6485 determine the current mode.
6486 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6488 (_initialize_inflow): Add the "set/show interactive-mode"
6489 commands. Moved here from top.c, after having adjusted slightly
6491 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6493 (input_from_terminal_p): Remove handling of "interactive-mode"
6494 setting, moved to infow.c.
6495 (init_main): Remove creation of the "set/show interactive-mode"
6496 commands, moved to inflow.c.
6498 2011-01-19 Joel Brobecker <brobecker@adacore.com>
6500 * NEWS: Add entry for native ia64-hpux support.
6502 2011-01-19 Tom Tromey <tromey@redhat.com>
6505 * thread.c (free_thread): Free 'name'.
6506 (print_thread_info): Emit thread name. Change CLI output.
6507 (thread_name_command): New function.
6508 (do_captured_thread_select): Emit newline.
6509 (_initialize_thread): Register 'thread name' command.
6510 * target.h (struct target_ops) <to_thread_name>: New field.
6511 (target_thread_name): New macro.
6512 * target.c (update_current_target): Handle to_thread_name.
6513 * python/py-infthread.c (thpy_get_name): New function.
6514 (thpy_set_name): Likewise.
6515 (thread_object_getset): Add "name".
6516 * linux-nat.c (linux_nat_thread_name): New function.
6517 (linux_nat_add_target): Set to_thread_name.
6518 * gdbthread.h (struct thread_info) <name>: New field.
6520 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6522 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6523 (ada_val_print_1): Likewise.
6525 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6527 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6528 upper limit address is not greater than the function end address
6529 when the upper limit could not be computed using the debugging
6532 2011-01-17 Tom Tromey <tromey@redhat.com>
6534 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6536 * utils.c: Include gdb_regex.h.
6537 (do_regfree_cleanup): New function.
6538 (make_regfree_cleanup): Likewise.
6539 (get_regcomp_error): Likewise.
6540 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6542 2011-01-17 Tom Tromey <tromey@redhat.com>
6544 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6547 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6549 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6550 for internal variables.
6551 (last_was_structop): New static variable.
6552 (COMPLETE): New token.
6553 (field_exp): New rule to group all '.' suffix handling.
6554 Add mark_struct_expression calls when approriate to be able
6555 to correctly find fields for completion.
6556 (yylex): Adapt to handle field completion and set INTVAR when
6559 2011-01-14 Yao Qi <yao@codesourcery.com>
6561 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6562 save_reggroup, restore_reggroup and all_reggroup.
6564 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6566 * ada-valprint. (ada_printchar): Use the correct type length
6567 in call to ada_emit_char.
6568 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6570 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6572 * solib-som.h (hpux_major_release): Declare variable here.
6573 * solib-som.c: Remove <sys/utsname.h> header.
6574 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6575 (hpux_major_release): Make global, change default value to
6576 DEFAULT_HPUX_MAJOR_RELEASE.
6577 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6578 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6579 Add "solib-som.h" header.
6580 (set_hpux_major_release): New function.
6581 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6583 2011-01-14 Mike Frysinger <vapier@gentoo.org>
6585 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6587 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6589 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6590 new-line at end of warning message.
6591 (ia64_hpux_store_register): Remove trailing new-line at end of
6593 * ia64-hpux-tdep.c: Rephrase comment.
6594 * solib-ia64-hpux.c (struct dld_info): Change type of field
6595 dld_flags from "long long" to ULONGEST.
6597 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6599 * target.h (deprecated_child_ops): Delete declaration.
6600 * target.c (deprecated_child_ops): Delete definition.
6602 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6604 * Makefile.in (hpux-thread.o): Delete rule.
6605 * configure.ac: Don't check for HPUX DCE threads support.
6606 * configure, config.in: Regenerate.
6607 * hppa-hpux-nat.c (child_suppress_run): Delete.
6608 (hppa_hpux_child_can_run): Delete.
6609 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6610 * hpux-thread.c: Delete.
6612 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6614 * hpux-thread.c (hpux_pid_to_str): Delete.
6616 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6618 * ada-valprint.c (ada_emit_char): Remove strange code.
6619 Check that c is <= UCHAR_MAX before passing it to isascii.
6620 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6622 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6624 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6625 to the case where instream is stdin.
6627 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6629 * ia64-tdep.h (struct regcache): Forward declare.
6630 (struct ia64_infcall_ops): New struct type.
6631 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6633 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6634 Renames ia64_find_global_pointer.
6635 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6636 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6637 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6639 (ia64_infcall_ops): New static global constant.
6640 (ia64_gdbarch_init): Set tdep->infcall_ops.
6641 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6642 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6643 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6644 (ia64_hpux_dummy_code): New static global constant.
6645 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6646 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6647 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6649 (ia64_hpux_infcall_ops): New static global constant.
6650 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6651 for inferior function calls to work properly on ia64-hpux.
6653 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6655 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6656 * ia64-tdep.h (struct frame_info): forward declaration.
6657 (struct gdbarch_tdep): Add field size_of_register_frame.
6658 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6659 to determine the size of the register frame.
6660 (ia64_size_of_register_frame): New function.
6661 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6662 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6663 (IA64_HPUX_UREG_REASON): New macro.
6664 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6666 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6667 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6668 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6671 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6673 Add support for ia64-hpux.
6674 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6675 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6677 * configure.host: Add handling for ia64-hpux hosts. Add associated
6679 * configure.tgt: Add handling for ia64-hpux targets.
6680 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6681 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6682 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6684 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6686 [ttrace] Compute thread list immediately after attach.
6687 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6689 (inf_ttrace_attach): Use it.
6691 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6693 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6694 if we could not determine the frame's function address. Instead,
6695 use the frame's PC, and then continue.
6697 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6699 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6700 not already defined.
6702 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6704 * ia64-tdep.c (ia64_struct_type_p): New function.
6705 (ia64_extract_return_value): Handle integral values that are
6706 less than 8 bytes long.
6707 (ia64_push_dummy_call): Likewise.
6709 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6711 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6712 floatformat_ia64_ext.
6713 (floatformat_ia64_ext_big): New static const.
6714 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6716 2011-01-12 Tom Tromey <tromey@redhat.com>
6718 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6720 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6721 (mi_cmd_thread_list_ids): Likewise.
6722 (mi_cmd_data_list_changed_registers): Likewise.
6723 (mi_cmd_data_list_register_values): Likewise.
6724 (mi_cmd_data_write_register_values): Likewise.
6725 (mi_cmd_data_evaluate_expression): Likewise.
6726 (mi_cmd_data_read_memory): Likewise.
6727 (mi_cmd_data_read_memory_bytes): Likewise.
6728 (mi_cmd_data_write_memory): Likewise.
6729 (mi_cmd_enable_timings): Likewise.
6730 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6731 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6732 (mi_cmd_var_delete): Likewise.
6733 (mi_cmd_var_set_format): Likewise.
6734 (mi_cmd_var_show_format): Likewise.
6735 (mi_cmd_var_info_num_children): Likewise.
6736 (mi_cmd_var_list_children): Likewise.
6737 (mi_cmd_var_info_type): Likewise.
6738 (mi_cmd_var_info_expression): Likewise.
6739 (mi_cmd_var_show_attributes): Likewise.
6740 (mi_cmd_var_assign): Likewise.
6741 (mi_cmd_var_update): Likewise.
6742 (mi_cmd_enable_pretty_printing): Likewise.
6743 (mi_cmd_var_set_update_range): Likewise.
6744 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6746 (mi_cmd_target_file_put): Likewise.
6747 (mi_cmd_target_file_delete): Likewise.
6748 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6750 (mi_cmd_stack_info_depth): Likewise.
6751 (mi_cmd_stack_list_locals): Likewise.
6752 (mi_cmd_stack_list_args): Likewise.
6753 (mi_cmd_stack_select_frame): Likewise.
6754 (mi_cmd_stack_select_frame): Likewise.
6755 (mi_cmd_stack_info_frame): Likewise.
6756 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6758 (mi_cmd_file_list_exec_source_files): Likewise.
6759 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6760 (mi_cmd_env_cd): Likewise.
6761 (mi_cmd_env_path): Likewise.
6762 (mi_cmd_env_dir): Likewise.
6763 (mi_cmd_inferior_tty_show): Likewise.
6764 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6765 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6766 (mi_cmd_break_watch): Likewise.
6768 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6770 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6771 (ppc_linux_insert_hw_breakpoint): Likewise.
6772 (ppc_linux_remove_hw_breakpoint): Likewise.
6773 (ppc_linux_insert_watchpoint): Likewise.
6775 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6776 Jan Kratochvil <jan.kratochvil@redhat.com>
6778 PR fortran/11104 and DWARF unbound arrays detection.
6779 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6780 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6781 unspecified upper bound.
6782 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6783 variables array_size_array, tmp_type and offset_item. New variable
6784 array. Remove call to f77_get_upperbound. New variables array_type
6785 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6786 the final call to deprecated_set_value_type.
6788 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6790 Make value allocations more lazy.
6791 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6792 instead of allocate_value and set_value_lazy when possible.
6793 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6794 instead of allocate_value and set_value_lazy.
6795 * findvar.c (value_of_register_lazy): Likewise.
6796 (read_var_value): Remove V preallocation, call just check_typedef in
6797 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6798 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6799 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6800 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6801 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6802 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6803 the end, remove set_value_lazy there.
6804 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6805 instead of allocate_value and set_value_lazy when possible.
6806 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6807 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6808 of allocate_value and set_value_lazy.
6809 (value_from_contents_and_address): Use allocate_value_lazy instead of
6810 allocate_value and set_value_lazy when possible.
6812 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6814 * disasm.c (dump_insns): Support dumping opcodes for MI.
6815 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6816 dumping of instruction opcodes.
6818 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6820 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6823 2011-01-11 Tom Tromey <tromey@redhat.com>
6825 * thread.c (do_captured_thread_select): Emit newline before
6828 2011-01-11 Michael Snyder <msnyder@vmware.com>
6830 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6831 * score-tdep.c: Ditto.
6832 * score-tdep.h: Ditto.
6833 * ser-base.c: Ditto.
6834 * ser-go32.c: Ditto.
6837 * ser-mingw.c: Ditto.
6838 * ser-pipe.c: Ditto.
6840 * ser-unix.c: Ditto.
6841 * sh64-tdep.c: Ditto.
6842 * shnbsd-nat.c: Ditto.
6846 * solib-darwin.c: Ditto.
6847 * solib-frv.c: Ditto.
6849 * solib-irix.c: Ditto.
6850 * solib-osf.c: Ditto.
6851 * solib-pa64.c: Ditto.
6852 * solib-som.c: Ditto.
6853 * solib-spu.c: Ditto.
6854 * solib-sunos.c: Ditto.
6855 * solib-svr4.c: Ditto.
6857 * sol-thread.c: Ditto.
6861 * sparc64-linux-tdep.c: Ditto.
6862 * sparc64-tdep.c: Ditto.
6863 * sparc-linux-nat.c: Ditto.
6864 * sparc-linux-tdep.c: Ditto.
6865 * sparc-sol2-nat.c: Ditto.
6866 * sparc-sol2-tdep.c: Ditto.
6867 * sparc-tdep.c: Ditto.
6868 * sparc-tdep.h: Ditto.
6869 * spu-tdep.c: Ditto.
6870 * stabsread.c: Ditto.
6871 * stabsread.h: Ditto.
6879 * target-descriptions.c: Ditto.
6880 * target-descriptions.h: Ditto.
6882 * target-memory.c: Ditto.
6883 * terminal.h: Ditto.
6886 * tracepoint.c: Ditto.
6887 * tracepoint.h: Ditto.
6888 * trad-frame.h: Ditto.
6889 * typeprint.c: Ditto.
6891 2011-01-11 Michael Snyder <msnyder@vmware.com>
6893 * ui-file.c: Comment cleanup, mostly periods and spaces.
6898 * v850-tdep.c: Ditto.
6899 * valarith.c: Ditto.
6901 * valprint.c: Ditto.
6902 * valprint.h: Ditto.
6907 * vax-tdep.c: Ditto.
6911 * windows-nat.c: Ditto.
6912 * windows-tdep.c: Ditto.
6913 * xcoffread.c: Ditto.
6914 * xcoffsolib.c: Ditto.
6915 * xml-support.c: Ditto.
6916 * xstormy16-tdep.c: Ditto.
6917 * xtensa-tdep.c: Ditto.
6918 * xtensa-tdep.h: Ditto.
6920 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6922 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6923 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6925 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6926 Thiago Jung Bauermann <bauerman@br.ibm.com>
6928 Implement support for PowerPC BookE ranged watchpoints.
6930 (struct breakpoint_ops) <resources_needed>: New method.
6931 Initialize to NULL in all existing breakpoint_ops instances.
6932 (struct breakpoint) <exact>: New field.
6933 (target_exact_watchpoints): Declare external global.
6934 * breakpoint.c (target_exact_watchpoints): New global flag.
6935 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6936 b->enable_state to bp_enabled before calling
6937 hw_watchpoint_used_count.
6938 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6939 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6941 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6942 if the watchpoint is exact.
6943 (resources_needed_watchpoint): New function.
6944 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6945 (watch_command_1): Set b->exact if the user asked for an exact
6946 watchpoint and one can be set.
6947 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6948 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6949 the user asks for an exact watchpoint and one can be set. Return
6950 number of needed debug registers to watch the expression.
6951 * gdbtypes.c (is_scalar_type): New function, based on
6952 valprint.c:scalar_type_p.
6953 (is_scalar_type_recursive): New function.
6954 * gdbtypes.h (is_scalar_type_recursive): Declare.
6955 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6956 handle regions when ranged watchpoints are available.
6957 (create_watchpoint_request): New function.
6958 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6959 create_watchpoint_request.
6960 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6961 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6962 `set powerpc' and `show powerpc' commands.
6963 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6964 Mention documentation comment in the target macro.
6965 (target_region_ok_for_hw_watchpoint): Document return value.
6967 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6969 * breakpoint.c (update_watchpoint): Decide on using a software or
6970 hardware watchpoint after the bp_locations are created.
6972 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6974 Convert hardware watchpoints to use breakpoint_ops.
6975 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6976 <insert_location>: ... this. Return int instead of void.
6977 Accept pointer to struct bp_location instead of pointer to
6978 struct breakpoint. Adapt all implementations.
6979 (breakpoint_ops) <remove>: Rename to...
6980 <remove_location>: ... this. Accept pointer to struct bp_location
6981 instead of pointer to struct breakpoint. Adapt all implementations.
6982 * breakpoint.c (insert_catchpoint): Delete function.
6983 (insert_bp_location): Call the watchpoint or catchpoint's
6984 breakpoint_ops.insert method.
6985 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6986 breakpoint_ops.remove method.
6987 (insert_watchpoint, remove_watchpoint): New functions.
6988 (watchpoint_breakpoint_ops): New structure.
6989 (watch_command_1): Initialize the OPS field.
6990 * inf-child.c (inf_child_insert_fork_catchpoint)
6991 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6992 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6993 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6995 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6996 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6997 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6998 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6999 * target.c (update_current_target): Change default implementation of
7000 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
7001 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
7002 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
7003 to_set_syscall_catchpoint to return_one.
7004 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
7005 (debug_to_insert_exec_catchpoint): Report return value.
7006 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
7007 (to_insert_exec_catchpoint): Change declaration to return int instead
7010 2011-01-11 Michael Snyder <msnyder@vmware.com>
7012 * arm-tdep.c: Internationalization.
7015 * fork-child.c: Ditto.
7016 * nto-procfs.c: Ditto.
7017 * ppc-sysv-tdep.c: Ditto.
7019 * remote-mips.c: Ditto.
7021 * rs6000-nat.c: Ditto.
7022 * rs6000-tdep.c: Ditto.
7026 * xml-support.c: Ditto.
7027 * mi/mi-cmd-break.c: Ditto.
7028 * mi/mi-cmd-var.c: Ditto.
7029 * mi/mi-interp.c: Ditto.
7030 * mi/mi-main.c: Ditto.
7032 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
7034 * remote-sim.c (gdbsim_store_register): Update API to
7035 sim_store_register to check more error conditions.
7037 2011-01-10 Michael Snyder <msnyder@vmware.com>
7039 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
7040 * nto-tdep.c: Ditto.
7041 * nto-tdep.h: Ditto.
7042 * objc-exp.y: Ditto.
7043 * objc-lang.c: Ditto.
7044 * objfiles.c: Ditto.
7045 * objfiles.h: Ditto.
7046 * observer.c: Ditto.
7047 * opencl-lang.c: Ditto.
7050 * parser-defs.h: Ditto.
7053 * posix-hdep.c: Ditto.
7054 * ppcbug-rom.c: Ditto.
7055 * ppc-linux-nat.c: Ditto.
7056 * ppc-linux-tdep.c: Ditto.
7057 * ppc-linux-tdep.h: Ditto.
7058 * ppcnbsd-tdep.c: Ditto.
7059 * ppcobsd-tdep.c: Ditto.
7060 * ppcobsd-tdep.h: Ditto.
7061 * ppc-sysv-tdep.c: Ditto.
7062 * ppc-tdep.h: Ditto.
7063 * printcmd.c: Ditto.
7064 * proc-abi.c: Ditto.
7065 * proc-flags.c: Ditto.
7067 * proc-utils.h: Ditto.
7068 * progspace.h: Ditto.
7069 * prologue-value.c: Ditto.
7070 * prologue-value.h: Ditto.
7071 * psympriv.h: Ditto.
7073 * p-typeprint.c: Ditto.
7074 * p-valprint.c: Ditto.
7075 * ravenscar-sparc-thread.c: Ditto.
7076 * ravenscar-thread.c: Ditto.
7077 * ravenscar-thread.h: Ditto.
7079 * regcache.c: Ditto.
7080 * regcache.h: Ditto.
7082 * remote-fileio.c: Ditto.
7083 * remote-fileio.h: Ditto.
7085 * remote-m32r-sdi.c: Ditto.
7086 * remote-mips.c: Ditto.
7087 * remote-sim.c: Ditto.
7088 * rs6000-aix-tdep.c: Ditto.
7089 * rs6000-nat.c: Ditto.
7090 * rs6000-tdep.c: Ditto.
7092 2011-01-10 Michael Snyder <msnyder@vmware.com>
7094 * charset.c (validate): Internationalization.
7095 * coffread.c (read_one_sym): Ditto.
7096 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
7097 * h8300-tdep.c (H8300_extract_return_value): Ditto.
7098 * inflow.c (new_tty): Ditto.
7099 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
7100 * m32c-tdep.c (m32c_return_value): Ditto.
7101 * mep-tdep.c (mep_store_return_value): Ditto.
7102 * score-tdep.c (score7_fetch_insn): Ditto.
7103 * ser-mingw.c (pipe_windows_open): Ditto.
7104 * sh64-tdep.c (sh64_extract_return_value): Ditto.
7105 * spu-tdep.c (spu_register_type): Ditto.
7106 * tracepoint.c (trace_find_command): Ditto.
7107 * valarith.c (value_pos): Ditto.
7109 2011-01-10 Joel Brobecker <brobecker@adacore.com>
7111 * ada-valprint.c (printstr): Minor comment reformatting.
7113 2011-01-08 Michael Snyder <msnyder@vmware.com>
7115 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
7118 2011-01-08 Michael Snyder <msnyder@vmware.com>
7120 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
7121 * hppa-hpux-tdep.c: Ditto.
7122 * hppa-linux-nat.c: Ditto.
7123 * hppa-linux-tdep.c: Ditto.
7124 * hppanbsd-tdep.c: Ditto.
7125 * hppa-tdep.c: Ditto.
7126 * hppa-tdep.h: Ditto.
7127 * hpux-thread.c: Ditto.
7128 * i386-cygwin-tdep.c: Ditto.
7129 * i386-darwin-nat.c: Ditto.
7130 * i386gnu-nat.c: Ditto.
7131 * i386-linux-nat.c: Ditto.
7132 * i386-linux-tdep.c: Ditto.
7133 * i386-nat.c: Ditto.
7134 * i386-nat.h: Ditto.
7135 * i386nbsd-tdep.c: Ditto.
7136 * i386-sol2-nat.c: Ditto.
7137 * i386-stub.c: Ditto.
7138 * i386-tdep.c: Ditto.
7139 * i386-tdep.h: Ditto.
7140 * i387-tdep.c: Ditto.
7141 * ia64-linux-nat.c: Ditto.
7142 * ia64-linux-tdep.c: Ditto.
7143 * ia64-tdep.c: Ditto.
7147 * inferior.c: Ditto.
7148 * inferior.h: Ditto.
7154 * iq2000-tdep.c: Ditto.
7155 * irix5-nat.c: Ditto.
7161 * jv-typeprint.c: Ditto.
7162 * jv-valprint.c: Ditto.
7163 * language.c: Ditto.
7164 * language.h: Ditto.
7165 * linespec.c: Ditto.
7166 * linux-fork.c: Ditto.
7167 * linux-nat.c: Ditto.
7168 * linux-thread-db.c: Ditto.
7169 * lm32-tdep.c: Ditto.
7171 2011-01-08 Michael Snyder <msnyder@vmware.com>
7173 * m2-exp.y: Comment cleanup, mostly periods and spaces.
7175 * m2-typeprint.c: Ditto.
7176 * m2-valprint.c: Ditto.
7177 * m32c-tdep.c: Ditto.
7178 * m32r-linux-nat.c: Ditto.
7179 * m32r-rom.c: Ditto.
7180 * m32r-tdep.c: Ditto.
7181 * m32r-tdep.h: Ditto.
7182 * m68hc11-tdep.c: Ditto.
7183 * m58klinux-nat.c: Ditto.
7184 * m68k-tdep.c: Ditto.
7185 * m88k-tdep.c: Ditto.
7186 * m88k-tdep.h: Ditto.
7187 * machoread.c: Ditto.
7188 * macrocmd.c: Ditto.
7189 * macroexp.c: Ditto.
7190 * macrotab.c: Ditto.
7193 * mdebugread.c: Ditto.
7194 * mdebugread.h: Ditto.
7197 * memory-map.h: Ditto.
7198 * mep-tdep.c: Ditto.
7199 * microblaze-rom.c: Ditto.
7200 * microblaze-tdep.c: Ditto.
7202 * mips-irix-tdep.c: Ditto.
7203 * mips-linux-nat.c: Ditto.
7204 * mips-linux-tdep.c: Ditto.
7205 * mips-linux-tdep.h: Ditto.
7206 * mipsnbsd-nat.c: Ditto.
7207 * mipsnbsd-tdep.c: Ditto.
7208 * mipsread.c: Ditto.
7209 * mips-tdep.c: Ditto.
7210 * mips-tdep.h: Ditto.
7211 * mn10300-linux-tdep.c: Ditto.
7212 * mn10300-tdep.c: Ditto.
7213 * mn10300-tdep.h: Ditto.
7216 * moxie-tdep.c: Ditto.
7217 * moxie-tdep.h: Ditto.
7220 2011-01-08 Mike Frysinger <vapier@gentoo.org>
7222 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7224 2011-01-08 Robert Millan <rmh@gnu.org>
7226 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7228 2011-01-07 Michael Snyder <msnyder@vmware.com>
7230 * charset.c (_initialize_charset): Fix typo in string.
7232 2011-01-07 Michael Snyder <msnyder@vmware.com>
7234 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7236 * tui/tui-layout.c (tui_set_layout_for_display_command):
7237 Split line so that operator goes to beginning of line.
7238 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7239 assignment out of if statement.
7241 2011-01-07 Michael Snyder <msnyder@vmware.com>
7243 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7244 * ada-lang.h: Ditto.
7245 * ada-tasks.c: Ditto.
7246 * ada-valprint.c: Ditto.
7247 * aix-threads.c: Ditto.
7248 * alpha-linux-nat.c: Ditto.
7249 * alpha-linux-tdep.c: Ditto.
7250 * alpha-mdebug-tdep.c: Ditto.
7251 * alpha-nat.c: Ditto.
7252 * alpha-osf1-tdep.c: Ditto.
7253 * alpha-tdep.c: Ditto.
7254 * alphabsd-nat.c: Ditto.
7255 * alphabsd-tdep.c: Ditto.
7256 * amd64-darwin-tdep.c: Ditto.
7257 * amd64-linux-nat.c: Ditto.
7258 * amd64-linux-tdep.c: Ditto.
7259 * amd64-sol2-tdep.c: Ditto.
7260 * amd64-tdep.c: Ditto.
7261 * amd64-fbsd-tdep.c: Ditto.
7262 * amd64-nbsd-tdep.c: Ditto.
7263 * amd64-obsd-tdep.c: Ditto.
7264 * amd64-linux-nat.c: Ditto.
7265 * amd64-linux-tdep.c: Ditto.
7266 * arm-tdep.c: Ditto.
7267 * arm-tdep.h: Ditto.
7268 * armnbsd-nat.c: Ditto.
7269 * avr-tdep.c: Ditto.
7270 * bfin-tdep.c: Ditto.
7272 * c-typeprintc: Ditto.
7273 * c-valprint.c: Ditto.
7274 * coff-pe-read.h: Ditto.
7275 * coffreead.c: Ditto.
7276 * cris-tdep.c: Ditto.
7278 * darwin-nat-info.c: Ditto.
7279 * darwin-nat.c: Ditto.
7280 * dbug-rom.c: Ditto.
7284 * dec-thread.c: Ditto.
7286 * demangle.c: Ditto.
7287 * dicos-tdep.c: Ditto.
7288 * dictionary.c: Ditto.
7289 * dictionary.h: Ditto.
7290 * dink32-rom.c: Ditto.
7292 * doublest.c: Ditto.
7294 * dummy-frame.c: Ditto.
7295 * dwarf2-frame.c: Ditto.
7296 * dwarf2expr.c: Ditto.
7297 * dwarf2loc.c: Ditto.
7298 * dwarf2read.c: Ditto.
7302 * event-top.h: Ditto.
7303 * exceptions.c: Ditto.
7304 * exceptions.h: Ditto.
7306 * expprint.c: Ditto.
7307 * expression.h: Ditto.
7311 * f-typeprint.c: Ditto.
7312 * f-valprint.c: Ditto.
7313 * fbsd-nat.c: Ditto.
7315 * fork-child.c: Ditto.
7318 * frv-linux-tdep.c: Ditto.
7319 * frv-tdep.c: Ditto.
7321 * gdb-stabs.h: Ditto.
7322 * gdb_assert.h: Ditto.
7323 * gdb_string.h: Ditto.
7324 * gdb_thread_db.h: Ditto.
7325 * gdb_wait.h: Ditto.
7326 * gdbarch.sh: Ditto.
7328 * gdbthread.h: Ditto.
7329 * gdbtypes.c: Ditto.
7330 * gdbtypes.h: Ditto.
7333 * gnu-v2-abi.c: Ditto.
7334 * gnu-v3-abi.c: Ditto.
7335 * go32-nat.c: Ditto.
7336 * gdbarch.c: Regenerate.
7337 * gdbarch.h: Regenerate.
7339 2011-01-07 Michael Snyder <msnyder@vmware.com>
7341 * ax-gdb.c: Adjust some long output strings.
7342 * breakpoint.c: Ditto.
7347 * linux-nat.c: Ditto.
7348 * solib-pa64.c: Ditto.
7349 * solib-som.c: Ditto.
7351 2011-01-06 Tom Tromey <tromey@redhat.com>
7355 * python/python.c (GdbMethods): Add "newest_frame" method.
7356 * python/python-internal.h (gdbpy_newest_frame): Declare.
7357 * python/py-frame.c (gdbpy_newest_frame): New function.
7359 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
7361 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
7362 * jit.c (jit_debug): New variable.
7363 (show_jit_debug): New function.
7364 (struct target_buffer): Use ULONGEST.
7365 (bfd_open_from_target_memory): Likewise.
7366 (jit_register_code, jit_inferior_init): Add debug output.
7367 (_initialize_jit): Register "debug jit" command.
7369 2011-01-06 Tom Tromey <tromey@redhat.com>
7371 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7372 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7375 2011-01-06 Tom Tromey <tromey@redhat.com>
7377 * python/py-frame.c (frapy_block): Use get_frame_block.
7379 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7381 Do not stop on SIGPRIO signals by default
7382 * infrun.c (_initialize_infrun): Unset signal_stop and
7383 signal_print for TARGET_SIGNAL_PRIO.
7385 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7387 * ada-tasks.c: Fix style violation in comment.
7389 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7391 * linespec.c (decode_compound, find_method): Remove trailing \n
7392 at end of error string.
7393 * solib-irix.c (irix_current_sos): Likewise.
7394 * varobj.c (uninstall_variable): Likewise.
7396 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7398 * copyright.py: New script.
7399 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7400 Launch emacs without exec'ing. Call copyright.py afterwards.
7402 2011-01-05 Michael Snyder <msnyder@vmware.com>
7404 * addrmap.c: Shorten lines of >= 80 columns.
7405 * arch-utils.c: Ditto.
7406 * arch-utils.h: Ditto.
7408 * ax-general.c: Ditto.
7410 * blockframe.c: Ditto.
7411 * breakpoint.c: Ditto.
7412 * buildsym.c: Ditto.
7414 * c-typeprint.c: Ditto.
7416 * coffread.c: Ditto.
7420 * cp-namespace.c: Ditto.
7421 * cp-support.c: Ditto.
7422 * dbug-rom.c: Ditto.
7427 * dictionary.c: Ditto.
7429 * doublest.c: Ditto.
7430 * dwarf2-frame.c: Ditto.
7431 * dwarf2expr.c: Ditto.
7432 * dwarf2loc.c: Ditto.
7433 * dwarf2read.c: Ditto.
7436 * event-loop.c: Ditto.
7437 * event-loop.h: Ditto.
7438 * exceptions.h: Ditto.
7440 * expprint.c: Ditto.
7441 * expression.h: Ditto.
7443 * f-valprint.c: Ditto.
7445 * frame-base.c: Ditto.
7446 * frame-unwind.c: Ditto.
7447 * frame-unwind.h: Ditto.
7451 * gdb-stabs.h: Ditto.
7452 * gdb_assert.h: Ditto.
7453 * gdb_dirent.h: Ditto.
7454 * gdb_obstack.h: Ditto.
7456 * gdbtypes.c: Ditto.
7457 * gdbtypes.h: Ditto.
7458 * inf-ttrace.c: Ditto.
7463 * inline-frame.h: Ditto.
7464 * language.c: Ditto.
7465 * language.h: Ditto.
7466 * libunwind-frame.c: Ditto.
7467 * libunwind-frame.h: Ditto.
7468 * linespec.c: Ditto.
7469 * linux-nat.c: Ditto.
7470 * linux-nat.h: Ditto.
7471 * linux-thread-db.c: Ditto.
7472 * machoread.c: Ditto.
7473 * macroexp.c: Ditto.
7474 * macrotab.c: Ditto.
7477 * mdebugread.c: Ditto.
7482 * objfiles.c: Ditto.
7483 * objfiles.h: Ditto.
7485 * p-typeprint.c: Ditto.
7486 * p-valprint.c: Ditto.
7488 * printcmd.c: Ditto.
7489 * proc-events.c: Ditto.
7491 * progspace.c: Ditto.
7492 * progspace.h: Ditto.
7493 * psympriv.h: Ditto.
7496 * regcache.c: Ditto.
7497 * regcache.h: Ditto.
7498 * remote-fileio.c: Ditto.
7500 * ser-mingw.c: Ditto.
7502 * ser-unix.c: Ditto.
7505 * solib-frv.c: Ditto.
7506 * solib-irix.c: Ditto.
7507 * solib-osf.c: Ditto.
7508 * solib-pa64.c: Ditto.
7509 * solib-som.c: Ditto.
7510 * solib-sunos.c: Ditto.
7511 * solib-svr4.c: Ditto.
7512 * solib-target.c: Ditto.
7516 * stabsread.c: Ditto.
7517 * stabsread.c: Ditto.
7520 * symfile-mem.c: Ditto.
7526 * target-descriptions.c: Ditto.
7527 * target-memory.c: Ditto.
7530 * terminal.h: Ditto.
7533 * tracepoint.c: Ditto.
7534 * tracepoint.h: Ditto.
7538 * user-regs.c: Ditto.
7539 * user-regs.h: Ditto.
7541 * valarith.c: Ditto.
7543 * valprint.c: Ditto.
7544 * valprint.h: Ditto.
7549 * xcoffread.c: Ditto.
7550 * xcoffsolib.c: Ditto.
7551 * xcoffsolib.h: Ditto.
7552 * xml-syscall.c: Ditto.
7553 * xml-tdesc.c: Ditto.
7555 2011-01-05 Michael Snyder <msnyder@vmware.com>
7557 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7558 * cli/cli-decode.c: Ditto.
7559 * cli/cli-dump.c: Ditto.
7560 * cli/cli-logging.c: Ditto.
7561 * cli/cli-script.c: Ditto.
7562 * cli/cli-setshow.c: Ditto.
7563 * common/signals.c: Ditto.
7564 * mi/mi-cmd-break.c: Ditto.
7565 * mi/mi-cmd-disas.c: Ditto.
7566 * mi/mi-cmd-stack.c: Ditto.
7567 * mi/mi-cmd-var.c: Ditto.
7568 * mi/mi-cmds.c: Ditto.
7569 * mi/mi-common.h: Ditto.
7570 * mi/mi-console.c: Ditto.
7571 * mi/mi-interp.c: Ditto.
7572 * mi/mi-main.c: Ditto.
7573 * osf-share/cma_attr.c: Ditto.
7574 * osf-share/cma_deb_core.h: Ditto.
7575 * osf-share/cma_debug_client.h: Ditto.
7576 * osf-share/cma_handle.h: Ditto.
7577 * osf-share/cma_mutex.h: Ditto.
7578 * osf-share/cma_stack_int.h: Ditto.
7579 * osf-share/cma_tcb_defs.h: Ditto.
7580 * python/py-auto-load.c: Ditto.
7581 * python/py-breakpoint.c: Ditto.
7582 * python/py-cmd.c: Ditto.
7583 * python/py-frame.c: Ditto.
7584 * python/py-objfile.c: Ditto.
7585 * python/py-param.c: Ditto.
7586 * python/py-progspace.c: Ditto.
7587 * python/py-symbol.c: Ditto.
7588 * python/py-value.c: Ditto.
7589 * python/python-internal.h: Ditto.
7590 * python/python.c: Ditto.
7591 * tui/tui-data.c: Ditto.
7592 * tui/tui-disasm.c: Ditto.
7593 * tui/tui-hooks.c: Ditto.
7594 * tui/tui-io.c: Ditto.
7595 * tui/tui-layout.c: Ditto.
7596 * tui/tui-regs.c: Ditto.
7597 * tui/tui-source.c: Ditto.
7598 * tui/tui-stack.c: Ditto.
7599 * tui/tui-win.c: Ditto.
7600 * tui/tui-windata.c: Ditto.
7601 * tui/tui-winsource.c: Ditto.
7603 2011-01-05 Joel Brobecker <brobecker@adacore.com>
7605 * configure.ac, gdb.1: Copyright year update.
7607 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7609 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7610 this_pc_in_block, morestack_msym and morestack_name. Check for
7611 "__morestack" minimal symbol there.
7613 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7615 * symfile.c (find_sym_fns): Add call to dont_repeat.
7617 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7619 Copyright year update in most files (performed by copyright.sh).
7621 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7623 * top.c (print_gdb_version): Update copyright year in version output.
7625 For older changes see ChangeLog-2010.
7631 version-control: never