1 2011-07-20 Tom Tromey <tromey@redhat.com>
3 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4 in some declaration-only cases.
6 2011-07-18 Tom Tromey <tromey@redhat.com>
9 * dwarf2read.c (dwarf2_section_info_def): New typedef.
10 (struct dwarf2_per_objfile) <types>: Change to a VEC.
11 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
12 <debug_type_section>: New field.
13 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
14 (load_cu): Use appropriate section.
15 (create_signatured_type_table_from_index): Add 'section'
17 (dwarf2_read_index): Only allow a single .debug_types section.
18 (dw2_get_file_names): Use appropriate section.
19 (read_type_comp_unit_head): Add 'section' argument.
20 (create_debug_types_hash_table): Loop over all .debug_types
22 (init_cu_die_reader): Use appropriate section.
23 (process_psymtab_comp_unit, load_partial_comp_unit)
24 (load_full_comp_unit, read_die_and_children, find_partial_die)
25 (lookup_die_type, determine_prefix, follow_die_offset): Update.
26 (lookup_signatured_type_at_offset): Add 'section' argument.
27 (read_signatured_type_at_offset): Add 'sect' argument.
28 (read_signatured_type): Use appropriate section.
29 (set_die_type, get_die_type_at_offset): Update.
30 (dwarf2_per_objfile_free): Free all .debug_types sections, and
32 (write_psymtabs_to_index): Don't allow index with more than one
35 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
37 Fix crash if referenced CU is aged out.
38 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
40 (indirect_pieced_value): New variable back_to, use to for xfree of
42 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
44 * dwarf2read.c (dwarf2_find_base_address): New prototype.
45 (load_cu): New function from ...
46 (dw2_do_instantiate_symtab): ... the code here ...
47 (process_full_comp_unit): ... and here.
48 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
51 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
53 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
56 2011-07-19 Gary Benson <gbenson@redhat.com>
58 * infrun.c (struct execution_control_state): New member
60 (clear_stop_func, fill_in_stop_func): New functions.
61 (handle_inferior_event): Call clear_stop_func rather than
62 manipulating the execution control state directly.
63 Call fill_in_stop_func lazily as required rather than
64 directly calling find_pc_partial_function in all cases.
66 2011-07-18 Tom Tromey <tromey@redhat.com>
68 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
69 checking for variable-sized array.
71 2011-07-18 Jean-Charles Delay <delay@adacore.com>
73 * varobj.h (varobj_languages): Add vlang_ada definition to the list
74 of supported languages.
75 * varobj.c: Add top definitions and basic implementation of the
76 following callbacks: ada_number_of_children, ada_name_of_variable,
77 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
78 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
79 (languages): Register Ada-specific callbacks.
80 (variable_language): Add the Ada case in the language setter switch.
82 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
84 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
86 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
89 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
90 (execute_stack_op): Use dwarf2_frame_ctx_funcs
91 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
92 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
93 get_frame_cfa, get_tls_address and dwarf_call via funcs.
94 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
95 (struct dwarf_expr_context_funcs): New, move here methods from ...
96 (struct dwarf_expr_context): ... here. New fields funcs.
97 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
98 (dwarf_expr_ctx_funcs): New.
99 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
100 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
101 (needs_frame_ctx_funcs): New.
102 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
104 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
106 * MAINTAINERS (Write After Approval): Add myself to the list.
108 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
110 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
111 that CIE pointer of an FDE really points to a CIE .
113 2011-07-15 Hui Zhu <teawater@gmail.com>
115 * remote.c (remote_get_trace_status): Add comments.
117 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
119 Code cleanup - constify struct lval_funcs.
120 * dwarf2loc.c (pieced_value_funcs): Make it const.
121 * infrun.c (siginfo_value_funcs): Likewise.
122 * opencl-lang.c (opencl_value_funcs): Likewise.
123 * valops.c (value_assign, value_ind): Make the funcs variable const.
124 * value.c (struct value): Make location.computed.funcs target const.
125 Rearrange the comments.
126 (allocate_computed_value): Make the funcs parameter target const.
127 (value_computed_funcs): Return the funcs target const.
128 (value_free, value_copy, set_value_component_location): Make the funcs
130 * value.h (allocate_computed_value): Make the funcs parameter target
132 (value_computed_funcs): Return the funcs target const.
133 * windows-tdep.c (tlb_value_funcs): Make it const.
135 2011-07-14 Hui Zhu <teawater@gmail.com>
137 * remote.c (remote_get_trace_status): Initialize p.
139 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
142 * remote.c (remote_get_trace_status): New variable ex. Put
143 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
145 2011-07-13 Tom Tromey <tromey@redhat.com>
147 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
148 value_from_contents for final conversion.
150 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
153 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
154 Indent prototypes so they do not get into tags.
156 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
158 Code cleanup making also optimized out values lazy.
159 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
160 allocate_optimized_out_value. Twice.
161 (loclist_read_variable) Use allocate_optimized_out_value. Once.
162 * findvar.c (read_var_value): Likewise.
163 * value.c (allocate_optimized_out_value): New function.
164 * value.h (allocate_optimized_out_value): New declaration.
166 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
168 Fix occasional crash of CTRL-C during DWARF read in.
169 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
171 2011-07-11 Tom Tromey <tromey@redhat.com>
173 * regcache.c (struct regcache_descr): Fix typo.
174 * i387-tdep.c (i387_supply_xsave): Fix typo.
176 2011-07-11 Tom Tromey <tromey@redhat.com>
178 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
179 (read_file_scope, read_type_unit_scope): Use it.
181 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
183 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
186 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
189 * python/python.c: Set gdbpy_should_print_stack default to off.
190 (set_python): Deprecate maint set python print-stack to
192 (_initialize_python): Deprecate maint set/show python print-stack.
193 Add new prefix command, python. Add new setting, print-backtrace.
194 * NEWS: Document set python print-stack. Document default change.
196 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
198 * python/py-inferior.c (infpy_dealloc): New function.
199 (inferior_to_inferior_object): Return a new object, or a
200 new reference to the existing object.
201 (find_thread_object): Cleanup references to inferior.
202 (delete_thread_object): Ditto.
203 * python/py-infthread.c (create_thread_object): Do not increment
204 inferior reference count.
206 2011-07-08 Tom Tromey <tromey@redhat.com>
208 * dwarf2loc.c (locexpr_regname): New function.
209 (locexpr_describe_location_piece): Use it.
210 (disassemble_dwarf_expression): Add per_cu argument. Use
212 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
213 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
215 (locexpr_describe_location_1): Add per_cu argument.
216 (locexpr_describe_location): Update.
217 (loclist_describe_location): Update.
219 2011-07-08 Tom Tromey <tromey@redhat.com>
221 * dwarf2expr.c (execute_stack_op): Add QUIT.
223 2011-07-07 Hui Zhu <teawater@gmail.com>
226 2011-07-06 Hui Zhu <teawater@gmail.com>
227 * remote.c (remote_start_remote): Add TRY_CATCH for
228 remote_get_trace_status.
229 * tracepoint.c (disconnect_tracing): Ditto.
231 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
233 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
234 variables as signed, not unsigned.
236 2011-07-06 Joel Brobecker <brobecker@adacore.com>
238 * jit.c (jit_inferior_init): Reformat forward declaration.
240 2011-07-06 Matt Rice <ratmice@gmail.com>
242 * MAINTAINERS (Write After Approval): Add myself to the list.
244 2011-07-06 Hui Zhu <teawater@gmail.com>
246 * remote.c (remote_start_remote): Add TRY_CATCH for
247 remote_get_trace_status.
248 * tracepoint.c (disconnect_tracing): Ditto.
250 2011-07-05 Tom Tromey <tromey@redhat.com>
252 * symtab.c (operator_chars): Now static.
253 * linespec.c (operator_chars): Don't declare.
255 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
257 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
259 2011-07-05 Tom Tromey <tromey@redhat.com>
261 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
262 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
263 (TYPE_CPLUS_REALLY_JAVA): New macro.
264 * dwarf2read.c (process_structure_scope): Set
265 TYPE_CPLUS_REALLY_JAVA.
267 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
269 * ada-lang.c: Fix typos.
270 * amd64-tdep.c: Likewise.
271 * breakpoint.c: Likewise.
272 * cli/cli-decode.c: Likewise.
273 * findcmd.c: Likewise.
274 * inline-frame.c: Likewise.
275 * mi/mi-main.c: Likewise.
276 * minsyms.c: Likewise.
277 * monitor.c: Likewise.
278 * monitor.h: Likewise.
279 * prologue-value.c: Likewise.
280 * reverse.c: Likewise.
281 * s390-tdep.c: Likewise.
283 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
285 * jit.c (jit_inferior_init): Forward declare.
286 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
288 2011-07-04 Joel Brobecker <brobecker@adacore.com>
290 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
292 2011-07-04 Tristan Gingold <gingold@adacore.com>
294 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
295 (tcb_fieldno): Add activation_link field.
296 (get_known_tasks_addr): Moved and rewritten.
297 (get_tcb_types_info): Set activation_link field.
298 (read_known_tasks_array): Add parameter. Rewritten.
299 (read_known_tasks_list): New function.
300 (read_known_tasks): New function.
301 (ada_build_task_list): Call read_known_tasks instead of
302 read_known_tasks_array.
303 * ravenscar-thread.c: Add first_task_name constant.
304 (has_ravenscar_runtime): Check for task list too.
306 2011-07-04 Tristan Gingold <gingold@adacore.com>
308 * ada-tasks.c: Renames fieldno to actb_fieldno.
309 (ada_get_task_number): Indentation.
310 (get_tcb_types_info): Remove all parameters. Write directly
312 (ptid_from_atcb_common): Adjust.
315 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
317 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
319 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
321 * ui-out.c (ui_out_field_core_addr): Mention that the function
322 description is in the header file.
323 * ui-out.h (ui_out_field_core_addr): Document function.
325 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
327 * ui-out.c (ui_out_get_field_separator): Remove unused function.
328 * ui-out.h (ui_out_get_field_separator): Remove prototype.
330 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
332 * symtab.c (expand_line_sal): Remove empty line.
334 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
336 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
337 same way as ELFOSABI_NONE.
338 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
340 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
342 * breakpoint.c: Fix typos in comments.
343 * linespec.c: Likewise.
344 * symtab.c: Likewise.
346 2011-07-04 Joel Brobecker <brobecker@adacore.com>
348 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
349 section in separate object files.
351 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
353 Fix false GCC warning.
354 * linespec.c (decode_line_1): Initialize values.
356 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
358 * linespec.c (find_method): Accept the function type automatically only
359 if it was specified with parameter types.
361 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
363 Stop on first linespec terminator instead of eating what we can.
364 * linespec.c (is_linespec_boundary): New function.
365 (name_end): Remove function.
366 (keep_name_info): New parameter on_boundary, replace the body.
367 (decode_line_1): Provide the parameter to keep_name_info.
368 (decode_compound): Likewise. Drop the trailing java return type
371 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
373 Fall back linespec to minimal symbols.
374 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
375 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
376 (find_method, symbol_found): Change error to cplusplus_error.
378 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
380 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
382 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
383 Tom Tromey <tromey@redhat.com>
385 * dwarf2read.c (check_physname): New variable.
386 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
387 (show_check_physname): New function.
388 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
390 2011-07-01 Joel Brobecker <brobecker@adacore.com>
392 * machoread.c (macho_symfile_read): Delete OBE comment.
394 2011-07-01 Joel Brobecker <brobecker@adacore.com>
396 * machoread.c (struct macho_oso_data): Delete.
397 (current_oso): Delete.
398 (macho_relocate_common_syms): New function, mostly extracted
400 (macho_add_oso_symfile): Call macho_relocate_common_syms.
401 Remove code that sets and unset current_oso.
402 (macho_symfile_relocate): Delete handling of common symbols,
403 now moved to macho_relocate_common_syms.
405 2011-07-01 Joel Brobecker <brobecker@adacore.com>
407 * darwin-nat.c (darwin_ptrace): Add documentation.
408 Set errno to zero before calling ptrace. If ptrace returns
409 -1 and errno is zero, then change then return zero.
410 (darwin_kill_inferior): Issue a warning instead of triggering
411 a failed assertion when the PT_KILL ptrace operations returned
414 2011-07-01 Joel Brobecker <brobecker@adacore.com>
416 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
417 only when inf->private->no_ptrace.
419 2011-07-01 Joel Brobecker <brobecker@adacore.com>
421 * ada-lang.c (print_it_exception): Print temporary catchpoints
422 as "Temporary catchpoint".
423 (print_mention_exception): Likewise.
425 2011-07-01 Tom Tromey <tromey@redhat.com>
427 * jv-lang.c (java_language_defn): Use java_printchar,
429 (java_get_encoding): New function.
430 (java_emit_char): Use generic_emit_char.
431 (java_printchar): New function.
432 (java_printstr): Likewise.
434 2011-07-01 Joel Brobecker <brobecker@adacore.com>
436 * ada-typeprint.c (print_record_type): If unable to decode
437 the name of the parent type, use the encoded name.
439 2011-07-01 Jean-Charles Delay <delay@adacore.com>
441 * ada-typeprint.c (ada_print_type): Fix both PAD type and
442 pointer to constrained packed array type output.
443 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
446 2011-07-01 Jean-Charles Delay <delay@adacore.com>
448 * ada-typeprint.c (print_array_type): removed if condition on show
449 being negative for bounds printing.
451 2011-07-01 Joel Brobecker <brobecker@adacore.com>
453 * ada-lang.c (ada_identical_enum_types_p): New function.
454 (symbols_are_identical_enums): New function.
455 (remove_extra_symbols): Do nothing if NSYMS < 2.
456 Use symbols_are_identical_enums.
458 2011-07-01 Joel Brobecker <brobecker@adacore.com>
460 * ada-valprint.c (ada_value_print): Handle typedefs.
462 2011-07-01 Joel Brobecker <brobecker@adacore.com>
464 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
466 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
468 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
469 (decode_constrained_packed_array): Likewise.
470 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
472 2011-07-01 Joel Brobecker <brobecker@adacore.com>
474 * ada-exp.y (convert_char_literal): Handle typedef types.
476 2011-07-01 Joel Brobecker <brobecker@adacore.com>
478 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
480 2011-06-30 Tom Tromey <tromey@redhat.com>
482 * varobj.c (varobj_create): Call do_cleanups on early exit path.
483 * valops.c (find_overload_match): Call do_cleanups on early exit
485 * solib.c (solib_find): Call do_cleanups on early exit path.
487 2011-06-30 Tom Tromey <tromey@redhat.com>
489 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
490 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
491 return paths. Defer final do_cleanups until last return.
492 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
495 2011-06-30 Tom Tromey <tromey@redhat.com>
497 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
499 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
501 * MAINTAINERS (Write After Approval): Add myself to the list.
503 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
505 Disable epilogue unwinders on recent GCCs.
506 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
507 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
508 * dwarf2read.c (process_full_comp_unit): Initialize
509 EPILOGUE_UNWIND_VALID.
510 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
511 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
512 * symtab.h (struct symtab): New field epilogue_unwind_valid.
514 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
516 Code cleanup - reformatting.
517 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
518 (producer_is_gcc_ge_4): ... here, change the return value.
519 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
522 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
524 Fix non-only rename list for Fortran modules import.
525 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
526 cp_add_using_directive caller.
527 (cp_add_using_directive): New parameter excludes, describe it. New
528 variables ix and param. Compare if also excludes match. Allocate NEW
529 with variable size, initialize EXCLUDES there.
530 (cp_lookup_symbol_imports): New variable excludep, test
531 current->EXCLUDES with it.
532 * cp-support.h: Include vec.h.
533 (struct using_direct): New field excludes, describe it.
534 (DEF_VEC_P (const_char_ptr)): New.
535 (cp_add_using_directive): New parameter excludes.
536 * defs.h (const_char_ptr): New typedef.
537 * dwarf2read.c (read_import_statement): New variables child_die,
538 excludes and cleanups, read in excludes.
539 (read_namespace): Adjust the cp_add_using_directive caller.
541 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
544 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
545 negative comparisons.
547 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
549 * mi/mi-main.c (mi_cmd_list_features): Emit
550 breakpoint-notifications.
552 2011-06-29 Tom Tromey <tromey@redhat.com>
555 * valprint.h (generic_emit_char, generic_printstr): Declare.
556 * valprint.c (wchar_printable, append_string_as_wide)
557 (print_wchar): Move from c-lang.c.
558 (generic_emit_char): New function; mostly taken from c_emit_char.
559 (generic_printstr): New function; mostly taken from c_printstr.
560 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
561 represented as arrays.
562 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
564 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
565 identically to TYPE_CODE_INT.
566 * f-lang.c (f_get_encoding): New function.
567 (f_emit_char): Use generic_emit_char.
568 (f_printchar): Replace comment.
569 (f_printstr): Use generic_printstr.
570 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
571 "character" types specially.
572 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
574 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
576 (c_emit_char): Call generic_emit_char.
577 (c_printstr): Call generic_printstr.
579 2011-06-29 Gary Benson <gbenson@redhat.com>
581 * breakpoint.c (bpstat_what): Removed duplicated case.
583 2011-06-28 Tom Tromey <tromey@redhat.com>
585 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
587 2011-06-27 Tom Tromey <tromey@redhat.com>
589 * valops.c (find_overload_match): Call do_cleanups before early
591 * top.c (execute_command): Call do_cleanups before early return.
592 (command_loop): Likewise.
593 * stack.c (backtrace_command): Make a null cleanup early. Don't
594 conditionally call do_cleanups.
595 * python/py-value.c (TRY_CATCH): Move cleanup handling into
597 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
598 so cleanups are always run.
599 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
600 * findcmd.c (parse_find_args): Call do_cleanups on early return
602 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
603 Don't conditionally call do_cleanups.
604 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
607 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
609 * MAINTAINERS (Write After Approval): Use default email address.
611 2011-06-27 Joel Brobecker <brobecker@adacore.com>
613 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
615 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
617 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
618 saved_regs_mask and copied_regs_mask fields.
619 (sparc_record_save_insn): New prototype.
620 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
621 (sparc_record_save_insn): New function.
622 (sparc_analyze_prologue): Add head comment. Recognize store insns
623 of call-saved registers. Use OFFSET consistently. Recognize flat
624 frames and cache their settings.
625 (sparc32_skip_prologue): Handle flat frames.
626 (sparc_frame_cache): Add frame_offset to the base address.
627 (sparc32_frame_cache): Adjust to new frame description.
628 (sparc32_frame_prev_register): Likewise.
629 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
630 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
631 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
632 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
633 frame by calling sparc_record_save_insn.
634 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
635 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
636 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
638 2011-06-27 Tristan Gingold <gingold@adacore.com>
640 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
641 field by map_addr and map_len.
642 (dwarf2_read_section): Adjust for the new bfd_mmap api.
643 (munmap_section_buffer): Likewise.
645 2011-06-24 Tom Tromey <tromey@redhat.com>
647 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
648 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
649 * python/python.c (gdbpy_parameter): Make 'arg' const.
650 (execute_gdb_command): Likewise.
651 (gdbpy_decode_line): Likewise. Copy it.
652 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
653 (gdbpy_write): Make 'arg' const.
654 * python/py-type.c (typy_lookup_typename): Make 'type_name'
656 (gdbpy_lookup_type): Likewise.
657 * python/py-prettyprint.c (print_children): Make 'name' const.
658 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
659 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
661 * python/py-function.c (fnpy_init): Make 'name' const.
662 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
663 (gdbpy_string_to_argv): Make 'input' const.
664 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
666 * gdbtypes.h (lookup_typename): Update.
667 * gdbtypes.c (lookup_typename): Make 'name' const.
668 (lookup_struct): Likewise.
669 (lookup_union): Likewise.
670 (lookup_enum): Likewise.
672 2011-06-24 Tom Tromey <tromey@redhat.com>
674 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
675 gdb_thread_db.h. Move all common/ entries to be together.
676 (TAGS): Don't depend on DEPFILES.
678 2011-06-23 Yao Qi <yao@codesourcery.com>
680 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
681 * remote.c (remote_start_remote): ... here.
682 * monitor.c (monitor_open): ... here.
684 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
686 * gdbtypes.c (append_composite_type_field_aligned): Fix
687 calculation of bit position based on alignment.
689 2011-06-22 Pedro Alves <pedro@codesourcery.com>
691 * breakpoint.c (bpstat_stop_status): Call the check_status
692 breakpoint_ops method.
693 (print_one_breakpoint_location): Also print the condition for Ada
694 exception catchpoints.
695 (allocate_bp_location): New, factored out from
696 allocate_bp_location.
697 (allocate_bp_location): Adjust. Call the owner breakpoint's
698 allocate_location method, if there is one.
699 (free_bp_location): Call the locations's dtor method, if there is
701 (init_raw_breakpoint_without_location): New breakpoint_ops
703 (set_raw_breakpoint_without_location): Adjust.
704 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
705 (set_raw_breakpoint): Adjust.
706 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
707 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
708 re_set and check_status methods.
709 (init_catchpoint): Don't memset, initialize thread, addr_string
710 and enable_state. Pass the ops down to init_raw_breakpoint.
711 (install_catchpoint): Rename to ...
712 (install_breakpoint): ... this, and make extern.
713 (create_fork_vfork_event_catchpoint): Adjust.
714 (catch_exec_breakpoint_ops): Install NULL allocate_location,
715 re_set and check_status methods.
716 (create_syscall_event_catchpoint): Adjust.
717 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
718 (masked_watchpoint_breakpoint_ops): Install NULL
719 allocate_location, re_set and check_status methods.
720 (catch_exec_command_1): Adjust.
721 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
722 re_set and check_status methods.
723 (create_ada_exception_breakpoint): Rename to ...
724 (init_ada_exception_breakpoint): ... this. Add a struct
725 breakpoint parameter, and delete the exp_string, cond_string and
726 cond parameters. Use init_raw_breakpoint, and don't install or
727 mention the breakpoint yet. Don't clear breakpoint fields that
728 init_raw_breakpoint already clears.
729 (re_set_breakpoint): Delete, split into ...
730 (breakpoint_re_set_default, prepare_re_set_context): ... these new
732 (breakpoint_re_set_one): Call the breakpoint's
733 breakpoint_ops->re_set implementation, if there's one. Adjust.
734 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
735 (struct bp_location_ops): New type.
736 (struct bp_location): New field `ops'.
737 (struct breakpoint_ops): New `allocate_location', `re_set' and
738 `check_status' fields. Make `breakpoint_hit''s description match
740 (init_bp_location): Declare.
741 (breakpoint_re_set_default): Declare.
742 (create_ada_exception_breakpoint): Rename to ...
743 (init_ada_exception_breakpoint): ... this. Add a struct
744 breakpoint parameter, and delete the exp_string, cond_string and
746 (install_breakpoint): Declare.
747 * ada-lang.c: Include exceptions.h.
748 <Ada exceptions description>: Update.
749 (struct ada_catchpoint_location): New type.
750 (ada_catchpoint_location_dtor): New function.
751 (ada_catchpoint_location_ops): New global.
752 (ada_catchpoint): New type.
753 (create_excep_cond_exprs): New function.
754 (dtor_exception, allocate_location_exception, re_set_exception)
755 (should_stop_exception, check_status_exception): New functions.
756 (print_one_exception, print_mention_exception)
757 (print_recreate_exception): Adjust.
758 (dtor_catch_exception, allocate_location_catch_exception)
759 (re_set_catch_exception, check_status_catch_exception): New
761 (catch_exception_breakpoint_ops): Install them.
762 (dtor_catch_exception_unhandled)
763 (allocate_location_catch_exception_unhandled)
764 (re_set_catch_exception_unhandled)
765 (check_status_catch_exception_unhandled): New functions.
766 (catch_exception_unhandled_breakpoint_ops): Install them.
767 (dtor_catch_assert, allocate_location_catch_assert)
768 (re_set_catch_assert, check_status_catch_assert): New functions.
769 (catch_assert_breakpoint_ops): Install them.
770 (ada_exception_catchpoint_p): Delete.
771 (catch_ada_exception_command_split)
772 (ada_exception_catchpoint_cond_string): Rename exp_string
773 parameter to excep_string. Adjust.
774 (ada_parse_catchpoint_condition): Delete.
775 (ada_exception_sal): Rename the exp_string parameter to
776 excep_string. Delete the cond_string and cond parameters.
778 (ada_decode_exception_location): Rename the exp_string parameter
779 to excep_string. Delete the cond_string and cond parameters.
781 (create_ada_exception_catchpoint): New function.
782 (catch_ada_exception_command, ada_decode_assert_location)
783 (catch_assert_command): Adjust.
784 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
786 2011-06-22 Pedro Alves <pedro@codesourcery.com>
788 * ada-lang.c: Include arch-utils.h.
789 (ada_decode_exception_location): Make static.
790 (catch_ada_exception_command): Moved here from breakpoint.c.
791 (ada_decode_assert_location): Make static.
792 (catch_assert_command): Moved here from breakpoint.c.
793 (_initialize_ada_lang): Install the exception and assert
794 catchpoint commands here.
795 * ada-lang.h (ada_decode_exception_location)
796 (ada_decode_assert_location): Delete declarations.
797 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
799 (create_ada_exception_breakpoint): Make extern.
800 (catch_ada_exception_command, catch_assert_command): Moved to
802 (add_catch_command): Make extern.
803 (_initilize_breakpoint): Don't install the exception and assert
804 catchpoint commands here.
805 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
807 (add_catch_command, create_ada_exception_breakpoint): Declare.
809 2011-06-22 Pedro Alves <pedro@codesourcery.com>
811 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
812 the breakpoint to the breakpoint chain here.
813 (set_raw_breakpoint_without_location): Add the breakpoint to the
814 breakpoint chain here.
815 (init_raw_breakpoint): Adjust comments.
816 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
818 (init_catchpoint): Don't set the catchpoint's breakpoint number
820 (install_catchpoint): New function.
821 (create_fork_vfork_event_catchpoint)
822 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
823 use install_catchpoint.
825 2011-06-22 Pedro Alves <pedro@codesourcery.com>
827 * breakpoint.c (create_catchpoint_without_mention)
828 (create_catchpoint): Delete.
830 2011-06-22 Pedro Alves <pedro@codesourcery.com>
832 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
833 * breakpoint.c (init_raw_breakpoint_without_location): Remove
834 reference to exec_pathname.
835 (struct exec_catchpoint): New type.
836 (dtor_catch_exec): New function.
837 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
838 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
839 (catch_exec_command_1): Adjust to use init_catchpoint.
840 (delete_breakpoint): Remove reference to exec_pathname.
842 2011-06-22 Pedro Alves <pedro@codesourcery.com>
844 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
845 (struct breakpoint): Delete field `syscalls_to_be_caught'.
846 * breakpoint.c (init_raw_breakpoint_without_location): Remove
847 reference to syscalls_to_be_caught.
848 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
850 (struct syscall_catchpoint): New type.
851 (dtor_catch_syscall): New function.
852 (insert_catch_syscall, remove_catch_syscall)
853 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
854 (print_recreate_catch_syscall): Adjust.
855 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
856 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
857 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
858 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
859 (masked_watchpoint_breakpoint_ops)
860 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
861 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
862 there is one. Remove references to syscalls_to_be_caught.
863 (catching_syscall_number): Adjust.
864 * ada-lang.c (catch_exception_breakpoint_ops)
865 (catch_exception_unhandled_breakpoint_ops)
866 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
868 2011-06-22 Pedro Alves <pedro@codesourcery.com>
870 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
872 * breakpoint.c (init_raw_breakpoint_without_location): Remove
873 reference to forked_inferior_pid.
874 (struct fork_catchpoint): New type.
875 (breakpoint_hit_catch_fork, print_it_catch_fork)
876 (print_one_catch_fork, breakpoint_hit_catch_vfork)
877 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
878 (create_fork_vfork_event_catchpoint): Adjust to use
881 2011-06-22 Pedro Alves <pedro@codesourcery.com>
883 * breakpoint.c (add_to_breakpoint_chain)
884 (init_raw_breakpoint_without_location): New functions, factored
886 (set_raw_breakpoint_without_location): ... this one.
887 (init_raw_breakpoint): New function, factored out from
888 set_raw_breakpoint and adjusted to use
889 init_raw_breakpoint_without_location.
890 (set_raw_breakpoint): Adjust.
891 (init_catchpoint): New function, factored out from
892 create_catchpoint_without_mention and adjusted to use
894 (create_catchpoint_without_mention): Adjust.
896 2011-06-22 Tom Tromey <tromey@redhat.com>
898 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
899 argument of 0 specially.
901 2011-06-22 Yao Qi <yao@codesourcery.com>
903 * infrun.c (handle_inferior_event): Remove write-only local variable
904 `sw_single_step_trap_p'.
906 2011-06-20 Tom Tromey <tromey@redhat.com>
908 * symtab.c (lookup_language_this): End loop if block is NULL.
910 2011-06-17 Tom Tromey <tromey@redhat.com>
912 * valops.c (value_of_this): Use lookup_language_this.
913 * symtab.h (lookup_language_this): Declare.
914 * symtab.c (lookup_language_this): New function.
915 (lookup_symbol_aux): Use lookup_language_this.
916 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
918 2011-06-17 Tom Tromey <tromey@redhat.com>
920 * value.h (value_of_this): Update.
921 (value_of_local): Remove.
922 * valops.c (value_of_this): Rename from value_of_local. Change
924 * p-exp.y (exp): Update.
925 (variable): Likewise.
926 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
928 2011-06-17 Tom Tromey <tromey@redhat.com>
930 * valops.c (value_of_local): Complain if NAME is NULL.
931 * std-operator.def (OP_OBJC_SELF): Remove.
932 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
933 * objc-exp.y (name_not_typename): Use OP_THIS.
934 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
936 <OP_OBJC_SELF>: Remove.
937 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
939 2011-06-16 Tristan Gingold <gingold@adacore.com>
941 * python/py-events.h (gdb_py_events): Make it extern.
942 * python/py-evtregistry.c (gdb_py_events): Declare.
944 2011-06-16 Hui Zhu <teawater@gmail.com>
946 * remote.c (remote_trace_set_readonly_regions): Add check for
947 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
950 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
952 * arm-linux-tdep.c: Include "auxv.h".
954 (ARM_LINUX_SIZEOF_VFP): Define.
955 (arm_linux_supply_vfp): New function.
956 (arm_linux_collect_vfp): Likewise.
957 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
958 (arm_linux_fpa_regset_sections): New variable.
959 (arm_linux_vfp_regset_sections): Likewise.
960 (arm_linux_core_read_description): New function.
961 (arm_linux_init_abi): Install arm_linux_core_read_description and
962 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
963 appropriate for the architecture.
964 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
965 (tdesc_arm_with_m): Declare.
966 (tdesc_arm_with_iwmmxt): Likewise.
967 (tdesc_arm_with_vfpv2): Likewise.
968 (tdesc_arm_with_vfpv3): Likewise.
969 (tdesc_arm_with_neon): Likewise.
970 * arm-linux-nat.c: Move features/*.c includes ...
971 * arm-tdep.c: ... here.
972 * arm-linux-nat.c (arm_linux_read_description): Move initializing
973 target description data structures ...
974 * arm-tdep.c (_initialize_arm_tdep): ... here.
975 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
976 HWCAP_VFPv3D16): Move definitions ...
977 * arm-linux-tdep.h: ... here.
979 2011-06-15 Hui Zhu <teawater@gmail.com>
981 * remote.c (remote_trace_set_readonly_regions): Add a check for
984 2011-06-14 Tom Tromey <tromey@redhat.com>
986 * coffread.c (coffread_objfile): Rename from current_objfile.
987 * dbxread.c (dbxread_objfile): Rename from current_objfile.
988 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
990 2011-06-14 Tom Tromey <tromey@redhat.com>
992 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
993 (class_symtab): Remove.
994 (jv_dynamics_progspace_key): New global.
995 (jv_per_objfile_free): Reset program space data. Update assert.
997 (get_dynamics_objfile): Use and set program space data.
998 (get_java_class_symtab): Use get_dynamics_objfile.
999 (add_class_symbol): Likewise.
1000 (java_link_class_type): Likewise.
1001 (java_object_type, jv_clear_object_type, set_java_object_type):
1003 (get_java_object_type): Update. Don't cache result.
1004 (is_object_type): Don't call set_java_object_type.
1005 (_initialize_java_language): Don't set jv_type_objfile_data_key;
1006 initialize jv_dynamics_progspace_key.
1008 2011-06-14 Tom Tromey <tromey@redhat.com>
1010 * symtab.h (current_objfile): Don't declare.
1011 * objfiles.h (current_objfile): Don't declare.
1012 * objfiles.c (current_objfile): Remove.
1013 * mdebugread.c (current_objfile): New file-scope global.
1014 * dbxread.c (current_objfile): New file-scope global.
1015 * coffread.c (current_objfile): New file-scope global.
1017 2011-06-13 Pedro Alves <pedro@codesourcery.com>
1019 * top.h (line): Rename to ...
1020 (saved_command_line): ... this.
1021 (linesize): Rename to ...
1022 (saved_command_line_size): ... this.
1023 * top.c (line): Rename to ...
1024 (saved_command_line): ... this.
1025 (linesize): Rename to ...
1026 (saved_command_line_size): ... this.
1027 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
1028 * event-top.c (command_line_handler): Adjust.
1029 * main.c (captured_main): Adjust.
1031 2011-06-12 Mark Kettenis <kettenis@gnu.org>
1033 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
1034 get_frame_func instead of get_frame_pc to determine the code
1035 address used to construct the frame ID.
1036 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
1037 (i386_epilogue_frame_this_id): Likewise.
1038 (i386_epilogue_frame_prev_register): New function.
1039 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
1040 (i386_stack_tramp_frame_sniffer): Fix coding style.
1041 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
1042 (i386_gdbarch_init): Fix comments.
1044 2011-06-12 Mark Kettenis <kettenis@gnu.org>
1046 * i386-tdep.c (i386_match_insn_block): Use length of the proper
1047 instruction when walking back through the instruction stream.
1049 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1051 * symtab.c (output_partial_symbol_filename): Exchange the filename and
1052 fullname parameters order.
1054 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1057 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
1059 * psymtab.c (map_symbol_filenames_psymtab)
1060 (map_partial_symbol_filenames): Likewise.
1061 * psymtab.h: Include symfile.h.
1062 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
1063 * symfile.h (symbol_filename_ftype): New.
1064 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
1065 map_symbol_filenames, clarify more the naming in comment.
1067 2011-06-07 Doug Evans <dje@google.com>
1069 * cc-with-index.sh: Fix typos in comment.
1070 Look for ../../gdb, for fullname.exp.
1072 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1073 Pedro Alves <pedro@codesourcery.com>
1075 * cli/cli-cmds.c (shell_escape): Use waitpid.
1076 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
1078 2011-06-07 Tristan Gingold <gingold@adacore.com>
1080 * xcoffread.c (dwarf2_xcoff_names): New variable.
1081 (aix_process_linenos): Add a guard.
1082 (xcoff_symfile_finish): Free dwarf2.
1083 (xcoff_initial_scan): Add dwarf2 support.
1085 2011-06-06 Pedro Alves <pedro@codesourcery.com>
1087 * infcall.c (run_inferior_call): Don't mask async. Instead force
1088 a synchronous wait, if the target can async.
1090 * target.h (struct target_ops): Delete to_async_mask.
1091 (target_async_mask): Delete.
1092 * target.c (update_current_target): Delete references to to_async_mask.
1093 * linux-nat.c (linux_nat_async_mask_value): Delete.
1094 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
1095 to linux_nat_async_mask_value.
1096 (linux_nat_async_mask): Delete.
1097 (linux_nat_async, linux_nat_close): Remove references to
1098 linux_nat_async_mask_value.
1099 * record.c (record_async_mask_value): Delete.
1100 (record_async): Remove references to record_async_mask_value.
1101 (record_async_mask): Delete.
1102 (record_can_async_p, record_is_async_p): Remove references to
1103 record_async_mask_value.
1104 (init_record_ops, init_record_core_ops): Remove references to
1106 * remote.c (remote_async_mask_value): Delete.
1107 (init_remote_ops): Remove reference to remote_async_mask.
1108 (remote_can_async_p, remote_is_async_p): Remove references to
1109 remote_async_mask_value.
1110 (remote_async): Remove references to remote_async_mask_value.
1111 (remote_async_mask): Delete.
1113 * infrun.c (fetch_inferior_event): Don't claim registers changed
1114 if the current thread is already not executing.
1116 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
1118 From Stephen Kitt <steve@sk2.org>
1119 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
1120 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
1122 2011-06-03 Joel Brobecker <brobecker@adacore.com>
1124 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
1125 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
1127 2011-06-03 Tom Tromey <tromey@redhat.com>
1129 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
1131 * python/py-exitedevent.c (create_exited_event_object): Change
1132 type of 'exit_code'. Optionally add exit_code attribute.
1133 (emit_exited_event): Change type of 'exit_code'.
1134 * python/py-event.h (emit_exited_event): Update.
1135 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
1136 * infrun.c (handle_inferior_event): Set exit code fields on
1138 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
1140 * inferior.c (exit_inferior_1): Initialize new fields.
1142 2011-06-03 Tom Tromey <tromey@redhat.com>
1144 * dwarf2expr.c (get_signed_type): New function.
1145 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
1147 2011-06-02 Keith Seitz <keiths@redhat.com>
1149 * objc-lang.c (find_methods): Increment objfile_csym earlier.
1151 2011-06-02 Pedro Alves <pedro@codesourcery.com>
1153 * top.h (simplified_command_loop): Delete declaration.
1155 2011-06-01 Mike Frysinger <vapier@gentoo.org>
1157 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
1158 gdb_sysroot to the "len" variable. Append both to "arg_buf".
1160 2011-06-01 Yao Qi <yao@codesourcery.com>
1162 * objfiles.h (obj_section_addr): Update reference to objfile from
1164 (obj_section_endaddr): Likewise.
1166 2011-06-01 Daniel Jacobowitz <drow@false.org>
1168 * MAINTAINERS: Update my email address and affiliation. Also
1169 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
1171 2010-05-31 Keith Seitz <keiths@redhat.com>
1174 * linespec.c (get_search_block): New function.
1175 (find_methods): Add FILE_SYMTATB parameter and use it and
1176 get_search_block to pass an appropriate block to
1177 lookup_symbol_in_namespace.
1178 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
1179 Check if *ARGPTR starts with a filename first.
1180 If it does, call locate_first_half again to locate the next
1181 "first half" of the linespec.
1182 Pass FILE_SYMTATB to decode_objc and decode_compound.
1183 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
1184 (locate_first_half): Stop on the first colon seen.
1185 (decode_compound): Add FILE_SYMTAB parameter.
1186 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
1187 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
1188 get_search_block with lookup_symbol.
1189 (find_method): Add FILE_SYMTAB parameter and pass it to
1191 (decode_objc): Use get_search_block.
1193 2010-05-31 Keith Seitz <keiths@redhat.com>
1196 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
1197 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
1198 and CP_ANONYMOUS_NAMESPACE_LEN.
1199 (cp_is_anonymous): Likewise.
1200 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
1201 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
1202 * dwarf2read.c (namespace_name): Likewise.
1203 (fixup_partial_die): Likewise.
1204 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
1205 seen in the input, keep it.
1207 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1209 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
1210 * inf-loop.h (inferior_event_handler_wrapper): Delete.
1211 * inf-loop.c (inferior_event_handler_wrapper): Delete.
1212 (inferior_event_handler): Don't handle INF_QUIT_REQ.
1213 * remote.c (_initialize_remote): Register
1214 async_remote_interrupt_twice directly as
1215 sigint_remote_twice_token event.
1217 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1219 * target.h (enum inferior_event_type): Delete INF_ERROR.
1220 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
1222 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1224 * interps.c (interp_set): Don't cancel continuations.
1226 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1228 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
1230 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1232 * continuations.h (continuation_ftype): Add `err' parameter.
1233 Document parameters.
1234 (do_all_continuations, do_all_continuations_thread)
1235 (do_all_intermediate_continuations)
1236 (do_all_intermediate_continuations_thread)
1237 (do_all_inferior_continuations): Add `err' parameter.
1238 * continuations.c (do_my_continuations_1, do_my_continuations)
1239 (do_all_inferior_continuations, do_all_continuations_ptid)
1240 (do_all_continuations_thread_callback)
1241 (do_all_continuations_thread, do_all_continuations)
1242 (do_all_intermediate_continuations_thread_callback)
1243 (do_all_intermediate_continuations_thread)
1244 (do_all_intermediate_continuations): Add `err' parameter, and pass
1245 it down all the way to the continuations proper.
1246 * inf-loop.c (inferior_event_handler): If fetching an inferior
1247 event throws an error, don't pop the target, and still call the
1248 continuations, but with `err' set. Adjust all other continuation
1250 * breakpoint.c (until_break_command_continuation): Add `err'
1252 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
1253 issue another step if `err' is set.
1254 (struct until_next_continuation_args): New.
1255 (until_next_continuation): Add `err' parameter. Adjust.
1256 (until_next_command): Adjust.
1257 (struct finish_command_continuation_args): Add `thread' field.
1258 (finish_command_continuation): Add `err' parameter. Handle it.
1259 (finish_forward): Adjust.
1260 (attach_command_continuation): Add `err' parameter. Handle it.
1261 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1262 cancel the continuations.
1263 * interps.c (interp_set): Adjust to cancel the continuations.
1264 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1265 continuations rather than discarding.
1266 (free_thread): Don't clear thread inferior resources here.
1267 (delete_thread_1): Do it here instead. And do it before removing
1268 the thread from the threads list. Tag the thread as exited before
1269 clearing thread inferior resources.
1271 2011-05-30 Joel Brobecker <brobecker@adacore.com>
1273 * infcall.c (call_function_by_hand): Rephrase error message.
1275 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1277 * defs.h (struct thread_info, struct inferior): Delete forward
1279 * breakpoint.h (struct thread_info): New forward declaration.
1280 * observer.sh (struct inferior): New forward declaration.
1281 * python/python-internal.h (struct inferior): New forward
1284 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1286 * defs.h (struct continuation, continuation_ftype)
1287 (continuation_free_arg_ftype, add_continuation)
1288 (do_all_continuations, do_all_continuations_thread)
1289 (discard_all_continuations, discard_all_continuations_thread)
1290 (add_intermediate_continuation, do_all_intermediate_continuations)
1291 (do_all_intermediate_continuations_thread)
1292 (discard_all_intermediate_continuations)
1293 (discard_all_intermediate_continuations_thread)
1294 (add_inferior_continuation, do_all_inferior_continuations)
1295 (discard_all_inferior_continuations): Move to ...
1296 * continuations.h: ... this new file.
1297 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1298 infcmd.c, inferior.c, infrun.c, interps.c: Include
1301 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1302 Doug Evans <dje@google.com>
1304 Fix PR 10970, PR 12702.
1305 * linux-nat.c (linux_lwp_is_zombie): New function.
1306 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1307 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1309 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1311 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1313 (add_continuation, add_intermediate_continuation)
1314 (add_inferior_continuation): Use them.
1315 * continuations.c (struct continuation): Use them.
1316 (make_continuation_ftype): Delete.
1317 (make_continuation, add_inferior_continuation, add_continuation)
1318 (add_intermediate_continuation): Use continuation_ftype and
1319 continuation_free_arg_ftype. Rename parameters to shorter names.
1321 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1323 * continuations.c (make_continuation): Make it return void.
1324 (do_my_continuations): Rename to ...
1325 (do_my_continuations_1): ... this. Remove old_chain parameter and
1327 (do_my_continuations): New.
1328 (discard_my_continuations): Rename to ...
1329 (discard_my_continuations_1): ... this. Remove old_chain
1330 parameter and adjust.
1331 (discard_my_continuations): New.
1332 (add_inferior_continuation): Simplify.
1333 (do_all_inferior_continuations): Reimplement on top
1334 do_my_continuations.
1335 (discard_all_inferior_continuations): Simplify.
1336 (add_continuation): Simplify.
1337 (do_all_continuations_ptid): Simplify.
1338 (discard_all_continuations_thread_callback): Simplify.
1339 (add_intermediate_continuation): Simplify.
1340 (discard_all_intermediate_continuations_thread_callback):
1343 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1345 * utils.c (struct continuation, add_continuation)
1346 (add_inferior_continuation)
1347 (do_all_inferior_continuations, discard_all_inferior_continuations)
1348 (restore_thread_cleanup, do_all_continuations_ptid)
1349 (do_all_continuations_thread_callback)
1350 (do_all_continuations_thread, do_all_continuations)
1351 (discard_all_continuations_thread_callback)
1352 (discard_all_continuations_thread, discard_all_continuations)
1353 (add_intermediate_continuation)
1354 (do_all_intermediate_continuations_thread_callback)
1355 (do_all_intermediate_continuations_thread)
1356 (do_all_intermediate_continuations)
1357 (discard_all_intermediate_continuations_thread_callback)
1358 (discard_all_intermediate_continuations_thread)
1359 (discard_all_intermediate_continuations): Move to ...
1360 * continuations.c: ... this new file, and adjust to no longer
1361 implement continuations on top of cleanups.
1362 * Makefile.in (SFILES): Add continuations.c.
1363 (COMMON_OBS): Add continuations.o.
1365 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1367 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1368 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1369 Internal error on invalid values.
1370 * reverse.c: Don't handle EXEC_ERROR.
1371 * mi/mi-main.c: Don't handle EXEC_ERROR.
1373 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1375 * record.c: Include event-loop.h, inf-loop.h.
1376 (record_beneath_to_async): New global.
1377 (tmp_to_async): New global.
1378 (record_async_inferior_event_token): New global.
1379 (record_open_1): Don't error out if async is enabled.
1380 (record_open): Handle to_async. Create an async event source in
1382 (record_close): Delete the async event source.
1383 (record_resumed): New global.
1384 (record_execution_dir): New global.
1385 (record_resume, record_core_resume): Set them. Register the
1386 target on the event loop.
1387 (record_wait): Rename to ...
1388 (record_wait_1): ... this. Add more debug output. Handle
1389 TARGET_WNOHANG, and the target beneath returning
1390 TARGET_WAITKIND_IGNORE.
1391 (record_wait): Reimplement on top of record_wait_1.
1392 (record_async_mask_value): New global.
1393 (record_async, record_async_mask, record_can_async_p)
1394 (record_is_async_p, record_execution_direction): New functions.
1395 (init_record_ops, init_record_core_ops): Install new methods.
1396 * infrun.c (fetch_inferior_event): Temporarily switch the global
1397 execution direction to the direction the target was going.
1398 (execution_direction): Change type to int.
1399 * target.c (default_execution_direction): New function.
1400 (update_current_target): Inherit and de_fault
1401 to_execution_direction.
1402 * target.h (struct target_ops) <to_execution_direction>: New
1404 (target_execution_direction): New macro.
1405 * inferior.h (execution_direction): Change type to int.
1407 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1409 * infcall.c (call_function_by_hand): Don't allow calling functions
1410 in reverse execution mode.
1412 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1414 * infcmd.c (finish_command): Allow async finish in reverse.
1416 2011-05-26 Yao Qi <yao@codesourcery.com>
1418 * gdb_thread_db.h: Delete. Move to ...
1419 * common/gdb_thread_db.h: ... here.
1421 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1423 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1424 function's entry point instead of a manually managed momentary
1425 breakpoint, and only ever issue one proceed call.
1426 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1427 doing a reverse-finish, switch to stepi mode, to do another step.
1428 (insert_step_resume_breakpoint_at_sal): Make public.
1429 (normal_stop): No need to save function value return registers if
1431 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1433 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1435 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1436 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1437 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
1439 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1440 step-resume breakpoints.
1441 (print_it_typical): Handle bp_hp_step_resume.
1442 (bpstat_what): Ditto.
1443 (bptype_string): Ditto.
1444 (print_one_breakpoint_location): Ditto.
1445 (allocate_bp_location): Ditto.
1447 (breakpoint_re_set_one): Ditto.
1448 * infrun.c (handle_inferior_event): Adjust. Split
1449 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1450 BPSTAT_WHAT_HP_STEP_RESUME.
1451 (insert_step_resume_breakpoint_at_sal): Rename to ...
1452 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
1453 parameter. Handle it.
1454 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1455 insert_step_resume_breakpoint_at_sal_1.
1456 (insert_step_resume_breakpoint_at_frame): Rename to ...
1457 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
1458 set a high-priority step-resume breakpoint.
1459 (insert_step_resume_breakpoint_at_frame): Adjust comment.
1460 (insert_step_resume_breakpoint_at_caller): Ditto.
1462 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1464 * breakpoint.c (iterate_over_related_breakpoints): New.
1465 (do_map_delete_breakpoint): New.
1466 (delete_command): Pass do_map_delete_breakpoint to
1467 map_breakpoint_numbers.
1468 (do_disable_breakpoint): New.
1469 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1471 (do_enable_breakpoint): Rename to ...
1472 (enable_breakpoint_disp): ... this.
1473 (enable_breakpoint): Adjust.
1474 (do_enable_breakpoint): New.
1475 (enable_once_breakpoint): Delete.
1476 (do_map_enable_breakpoint): New.
1477 (do_map_enable_once_breakpoint): New.
1478 (enable_once_command, enable_delete_command)
1479 (delete_trace_command): Iterate over the breakpoint's related
1482 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1484 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1485 for ALPHA_ZERO_REGNUM.
1486 (alpha_supply_int_regs): Explicitly supply zero as the value for
1487 ALPHA_ZERO_REGNUM in the register cache.
1488 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1490 2011-05-26 Yao Qi <yao@codesourcery.com>
1492 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1494 2011-05-26 Tristan Gingold <gingold@adacore.com>
1496 * symfile.h (struct dwarf2_section_names): New type.
1497 (struct dwarf2_debug_sections): New type.
1498 (dwarf2_has_info): Add parameter.
1499 * dwarf2read.c (dwarf2_elf_names): New variable.
1500 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1501 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1502 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1503 (dwarf2_has_info): Add names parameter. Pass names
1504 to dwarf2_locate_sections.
1505 (section_is_p): Rewrite using the names parameter.
1506 (dwarf2_locate_sections): Use section names from the names parameter.
1507 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1508 * elfread.c (read_psyms): Ditto.
1509 * machoread.c (macho_symfile_read): Ditto.
1511 2011-05-25 Andreas Schwab <schwab@redhat.com>
1514 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1516 2011-05-24 Keith Seitz <keiths@redhat.com>
1519 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1520 (decode_compound): Unconditionally call keep_name_info.
1522 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1524 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1525 scope, clear its command list.
1526 (map_breakpoint_numbers): Don't walk the related breakpoints list
1529 2011-05-24 Tom Tromey <tromey@redhat.com>
1531 * MAINTAINERS: Move Jim Blandy to past maintainers.
1533 2011-05-24 Tristan Gingold <gingold@adacore.com>
1535 * symfile.h (enum dwarf2_section_enum): New type.
1536 (dwarf2_get_section_info): New prototype.
1537 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1538 section_name by sect. Use a switch to select the info.
1539 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1540 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1542 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1544 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1545 shared library event breakpoint if there's no execution.
1547 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
1549 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1550 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1552 2011-05-23 Tom Tromey <tromey@redhat.com>
1554 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1557 2011-05-23 Doug Evans <dje@google.com>
1559 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1560 entry for RuntimeError to doc string.
1562 2011-05-23 Jerome Guitton <guitton@adacore.com>
1564 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1565 sequence for probing loops.
1567 2011-05-23 Pedro Alves <pedro@codesourcery.com>
1569 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1572 2011-05-21 Mark Kettenis <kettenis@gnu.org>
1574 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1575 zero as the value for %g0 in the register cache.
1576 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1577 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1579 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1581 * infrun.c (proceed): Set previous_inferior_ptid here.
1582 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1583 inferior_ptid, not null_ptid.
1584 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1585 (fetch_inferior_event): Nor here.
1587 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1589 * inf-loop.c (inferior_event_handler): Only output a message if
1592 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
1594 * MAINTAINERS: Update my e-mail address.
1596 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1598 * infrun.c (proceed): Switch the inferior event loop to
1599 INF_EXEC_COMPLETE if the target refused to resume from a
1602 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1604 * infcmd.c: Include "inf-loop.h".
1605 (step_once): When stepping into an inline subroutine, pretend the
1606 target has run. If the target can async, switch the inferior
1607 event loop to INF_EXEC_COMPLETE.
1608 * inferior.h (user_visible_resume_ptid): Declare.
1609 * infrun.c (user_visible_resume_ptid): New function, factored out
1612 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1613 that the current thread is running. Merge async and sync
1616 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1618 * infcmd.c (step_1): Simplify synchronous case.
1620 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1622 * tracepoint.c: Include exceptions.h.
1623 (TFILE_PID): Move higher in file.
1624 (tfile_open): Delay pushing the tfile target until we're assured
1625 the tfile header is present in the file. Wrap reading the initial
1626 newline-terminated lines in TRY_CATCH. Pop the target if the
1627 initial setup failed. Add the tfile's thread immediately
1628 aftwards, before any non-essential setup. Don't skip
1629 post_create_inferior if there are no traceframes present in the
1631 (tfile_close): Remove redundant check for null before xfree call.
1632 (tfile_thread_alive): New function.
1633 (init_tfile_ops): Register it as to_thread_alive callback.
1635 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1637 * tracepoint.c (tfile_open): Delete #if 0'd code.
1639 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1641 Fix -readnow for -gdwarf-4 unused type units.
1642 * dwarf2read.c (struct signatured_type): Remove the field offset.
1643 (create_signatured_type_table_from_index): Remove its initialization.
1644 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1645 instead. Add a complaint call.
1646 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1647 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1648 (lookup_signatured_type_at_offset, read_signatured_type)
1649 (write_one_signatured_type): Update the field for per_cu.
1651 2011-05-19 Tom Tromey <tromey@redhat.com>
1653 * python/py-inferior.c (python_inferior_exit): Use
1655 (python_on_resume): Likewise.
1657 2011-05-19 Matt Rice <ratmice@gmail.com>
1659 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1661 2011-05-19 Hui Zhu <teawater@gmail.com>
1663 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1665 2011-05-19 Hui Zhu <teawater@gmail.com>
1667 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1669 2011-05-18 Tom Tromey <tromey@redhat.com>
1671 * dwarf2read.c (dwarf2_add_field): Constify.
1672 * value.c (value_static_field): Constify.
1673 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1675 * ax-gdb.c (gen_static_field): Constify
1677 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1679 * linux-nat.c (kill_callback): Use SIGKILL first.
1681 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1683 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1685 2011-05-18 Tom Tromey <tromey@redhat.com>
1687 * value.c (value_fn_field): Constify.
1688 * symtab.c (gdb_mangle_name): Constify.
1689 * stabsread.c (update_method_name_from_physname): Make 'physname'
1691 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1692 const. Use explicit fputc_filtered loop.
1693 (pascal_type_print_base): Constify.
1694 * p-lang.h (pascal_type_print_method_args): Update.
1695 * linespec.c (add_matching_methods): Constify.
1696 (add_constructors): Likewise.
1697 * jv-typeprint.c (java_type_print_base): Constify.
1698 * gdbtypes.h (struct cplus_struct_type)
1699 <fn_fieldlist.fn_field.physname>: Now const.
1700 * dwarf2read.c (compute_delayed_physnames): Constify.
1701 (dwarf2_add_member_fn): Likewise.
1702 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1704 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1706 * infrun.c (resume): Mention which is the current thread, and its
1707 current PC in debug output.
1708 (prepare_to_proceed): Mention the thread switching in debug
1711 2011-05-18 Tom Tromey <tromey@redhat.com>
1713 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1714 path check. Use xmalloc and cleanups.
1715 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1717 2011-05-17 Tom Tromey <tromey@redhat.com>
1719 * cp-valprint.c (cp_print_value_fields): Catch errors from
1722 2011-05-17 Tom Tromey <tromey@redhat.com>
1724 * dwarf2read.c (dwarf2_get_die_type): Call
1725 get_die_type_at_offset.
1726 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1727 get_base_type function.
1729 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1731 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1734 2011-05-16 Doug Evans <dje@google.com>
1736 * python/py-auto-load.c (source_section_scripts): Mention objfile
1739 2011-05-15 Doug Evans <dje@google.com>
1741 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1742 (try_thread_db_load_from_pdir): Call it. If unable to find
1743 libthread_db in directory of libpthread, see if we're looking at
1744 the separate-debug-info copy.
1746 * python/py-autoload.c (print_script): Print "Missing" instead of
1747 "No" for missing scripts.
1748 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1750 2011-05-13 Doug Evans <dje@google.com>
1752 * ui-file.c (stdio_file_write_async_safe): Add comment.
1754 2011-05-14 Hui Zhu <teawater@gmail.com>
1756 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1758 2011-05-13 Doug Evans <dje@google.com>
1760 Support $pdir and $sdir in libthread-db-search-path.
1761 * NEWS: Mention $sdir,$pdir.
1762 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1763 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1764 (try_thread_db_load_from_sdir): New function.
1765 (try_thread_db_load_from_dir): New function.
1766 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1767 system directories if search of libthread-db-search-path fails,
1768 that is now done via $sdir.
1769 (has_libpthread): New function.
1770 (thread_db_load): Remove search for libthread_db in directory of
1771 libpthread, that is now done via $pdir.
1773 * NEWS: Mention "info auto-load-scripts".
1774 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1775 script_not_found_warning_printed.
1776 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1777 all callers updated. Initialize script_not_found_warning_printed.
1778 (get_auto_load_pspace_data_for_loading): New function.
1779 (maybe_add_script): New function.
1780 (source_section_scripts): Simplify. Only print one warning regardless
1781 of the number of auto-load scripts not found.
1782 (clear_section_scripts): Clear script_not_found_warning_printed.
1783 (auto_load_objfile_script): Record script in hash table.
1784 (count_matching_scripts): New function.
1785 (maybe_print_script): Renamed from maybe_print_section_script, all
1786 callers updated. Rewrite to use ui_out_*.
1787 (info_auto_load_scripts): Renamed from
1788 maintenance_print_section_scripts, all callers updated.
1789 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1790 renamed as "info auto-load-scripts".
1792 2011-05-13 Tom Tromey <tromey@redhat.com>
1794 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1795 (read_sleb128): Likewise.
1797 2011-05-13 Tom Tromey <tromey@redhat.com>
1799 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1802 2011-05-13 Doug Evans <dje@google.com>
1804 * linux-nat.c (debug_linux_nat_async): Delete.
1805 Replace all references to use debug_linux_nat instead.
1806 (show_debug_linux_nat_async): Delete.
1807 (sigchld_handler): Call ui_file_write_async_safe instead of
1809 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1810 * ui-file.c (struct ui_file): New member to_write_async_safe.
1811 (null_file_write_async_safe): New function.
1812 (ui_file_write_async_safe): New function.
1813 (set_ui_file_write_async_safe): New function.
1814 (ui_file_new): Initialize to_write_async_safe.
1815 (stdio_file_write_async_safe): New function.
1816 (struct stdio_file): New member fd.
1817 (stdio_file_new): Initialize to_write_async_safe, fd.
1818 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1820 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1821 (set_ui_file_write_async_safe): Declare.
1822 (ui_file_write_async_safe): Declare.
1824 2011-05-13 Tom Tromey <tromey@redhat.com>
1826 * utils.c (do_value_free): New function.
1827 (make_cleanup_value_free): Likewise.
1828 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1830 (dwarf2_loc_desc_needs_frame): Call
1831 make_cleanup_value_free_to_mark.
1832 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1833 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1835 (new_dwarf_expr_context): Don't call value_mark.
1836 * dwarf2-frame.c (execute_stack_op): Call
1837 make_cleanup_value_free_to_mark.
1838 * defs.h (make_cleanup_value_free): Declare.
1840 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1842 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1843 prepare_execute_command.
1844 * top.c (prepare_execute_command): Return cleanup.
1845 (execute_command): Use cleanup from prepare_execute_command.
1846 * top.h (prepare_execute_command): Change prototype to return
1848 * defs.h (struct value): Add opaque declaration.
1849 (make_cleanup_value_free_to_mark): Add prototype.
1850 * utils.c (do_value_free_to_mark): New function.
1851 (make_cleanup_value_free_to_mark): Likewise.
1853 2011-05-12 Tom Tromey <tromey@redhat.com>
1855 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1856 cast left-hand-side to unsigned.
1858 2011-05-12 Tom Tromey <tromey@redhat.com>
1861 * value.h (value_from_contents): Declare.
1862 * value.c (value_from_contents): New function.
1863 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1864 (dwarf2_get_die_type): New function.
1865 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1866 (allocate_piece_closure): Acquire reference to values.
1867 (read_pieced_value): Update for value-based expressions.
1868 (write_pieced_value): Likewise.
1869 (free_pieced_value_closure): Call value_free as needed.
1870 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1871 Update for value-based expressions.
1872 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1873 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1874 <get_base_type>: New field.
1875 (struct dwarf_expr_piece) <v.value>: Change type.
1876 <v.regno>: New field.
1877 (struct dwarf_expr_context) <mark>: New field.
1878 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1879 (dwarf_expr_pop, dwarf_expr_push): Remove.
1880 (dwarf_expr_push_address): Declare.
1881 * dwarf2expr.c (dwarf_arch_cookie): New global.
1882 (struct dwarf_gdbarch_types): New.
1883 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1885 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1887 (dwarf_expr_push_address): New function.
1888 (dwarf_expr_pop): Now static.
1889 (dwarf_expr_fetch): Change return type.
1890 (dwarf_require_integral): New function.
1891 (dwarf_expr_fetch): Simplify.
1892 (add_piece): Update.
1893 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1895 (execute_stack_op) <sign_ext>: Remove.
1896 Use values for DWARF stack.
1897 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1898 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1900 (_initialize_dwarf2expr): New function.
1901 (add_piece): Update.
1902 (new_dwarf_expr_context): Set new field.
1903 (free_dwarf_expr_context): Call value_free_to_mark.
1904 * dwarf2-frame.c (no_base_type): New function.
1905 (execute_stack_op): Set get_base_type field. Update.
1907 2011-05-12 Tom Tromey <tromey@redhat.com>
1909 * dwarf2read.c (read_common_block): Fix formatting.
1911 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1913 * breakpoint.c (disable_breakpoint): Disable all locations
1914 associated with a tracepoint on target if a trace experiment is
1916 (disable_command): Disable a specific tracepoint location on target if
1917 a trace experiment is running.
1918 (do_enable_breakpoint): Enable all locations associated with a
1919 tracepoint on target if a trace experiment is running.
1920 (enable_command) Enable a specific tracepoint location on target if a
1921 trace experiment is running.
1922 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1923 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1924 to_disable_tracepoint.
1925 * target.h: Add declaration of struct bp_location.
1926 (struct target_ops): Add new functions
1927 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1928 to_disable_tracepoint to target operations.
1929 (target_supports_enable_disable_tracepoint): New macro.
1930 (target_enable_tracepoint): New macro.
1931 (target_disable_tracepoint): New macro.
1932 * remote.c (struct remote_state): Add new field.
1933 (remote_enable_disable_tracepoint_feature): New.
1934 (remote_protocol_features): Add new entry.
1935 (remote_supports_enable_disable_tracepoint): New.
1936 (remote_enable_tracepoint): New.
1937 (remote_disable_tracepoint): New.
1938 (init_remote_ops): Add remote_enable_tracepoint,
1939 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1940 to remote operations.
1941 * tracepoint.c (start_tracing): Allow tracing to start without any
1942 tracepoints enabled with just a warning if they can be re-enabled
1944 * NEWS: Add news item for the new behaviour of the enable and disable
1945 GDB commands when applied to tracepoints.
1946 Add news items for the new remote packets QTEnable and QTDisable.
1948 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1950 * config.in: Regenerate.
1951 * configure: Regenerate.
1952 * configure.ac <--with-system-readline> (for readline_echoing_p):
1954 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1955 (tui_old_rl_echoing_p): ... here.
1956 (tui_setup_io): Rename extern declaration readline_echoing_p to
1957 _rl_echoing_p. Adjust assignments for the both renames.
1959 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1961 * symtab.c (lookup_symtab): Run cleanup before returning.
1963 2011-05-11 Tom Tromey <tromey@redhat.com>
1965 * dwarf2read.c (handle_data_member_location): New function.
1966 (dwarf2_add_field): Use it.
1967 (read_common_block): Likewise.
1969 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1971 Make addrs->SECTINDEX always defined.
1972 * symfile.c (relative_addr_info_to_section_offsets): Check for
1973 SECTINDEX -1, not for zero ADDR.
1974 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1975 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1976 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1979 2011-05-10 Doug Evans <dje@google.com>
1981 * linux-thread-db.c: Whitespace cleanup.
1982 (try_thread_db_load_1): Fix comment.
1984 * linux-thread-db.c (set_libthread_db_search_path): New function.
1985 (_initialize_thread_db): Add setter for libthread-db-search-path.
1987 2011-05-09 Doug Evans <dje@google.com>
1989 * NEWS: Mention --with-iconv-bin.
1990 * configure.ac: New option --with-iconv-bin.
1991 * configure: Regenerate.
1992 * config.in: Regenerate.
1993 * defs.h (relocate_gdb_directory): Declare.
1994 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1995 removed progname parameter, and exported. All callers updated.
1996 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1998 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1999 adding missing call to restore_child_signals_mask.
2001 2011-05-09 Pedro Alves <pedro@codesourcery.com>
2003 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
2005 * infrun.c (proceed, start_remote): Adjust.
2006 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
2007 and adjust to not handle it.
2008 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
2009 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2010 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
2011 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
2012 * windows-nat.c (do_initial_windows_stuff): Adjust.
2013 * infcmd.c (attach_command): Adjust.
2014 (notice_new_inferior): Adjust.
2016 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2018 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
2019 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
2020 * spu-tdep.c (op_selb): Use correct value.
2022 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2024 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
2025 "parent" parameter to symbol_file_add_from_bfd call.
2027 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2028 Thiago Jung Bauermann <bauerman@br.ibm.com>
2030 Implement support for PowerPC BookE masked watchpoints.
2031 * NEWS: Mention masked watchpoint support. Create "Changed commands"
2033 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
2034 method. Initialize to NULL in all existing breakpoint_ops instances.
2035 (struct breakpoint) <hw_wp_mask>: New field.
2036 * breakpoint.c (is_masked_watchpoint): Add prototype.
2037 (update_watchpoint): Don't set b->val for masked watchpoints. Call
2038 breakpoint's breakpoint_ops.works_in_software_mode if available.
2039 (watchpoints_triggered): Handle the case of a hardware masked
2041 (watchpoint_check): Likewise.
2042 (works_in_software_mode_watchpoint): New function.
2043 (insert_masked_watchpoint, remove_masked_watchpoint)
2044 (resources_needed_masked_watchpoint)
2045 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
2046 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
2047 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
2049 (masked_watchpoint_breakpoint_ops): New structure.
2050 (watch_command_1): Check for the existence of the `mask' parameter.
2051 Set b->ops according to the type of hardware watchpoint being created.
2052 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
2053 (ppc_linux_remove_mask_watchpoint)
2054 (ppc_linux_masked_watch_num_registers): New functions.
2055 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
2056 to_remove_mask_watchpoint and to_masked_watch_num_registers.
2057 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
2058 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
2059 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2060 (target_masked_watch_num_registers): New functions.
2061 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
2062 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
2064 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2065 (target_masked_watch_num_registers): Add prototypes.
2067 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2070 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
2071 (producer_is_gcc_ge_4_0): New function.
2072 (process_full_comp_unit): Set also symtab->locations_valid. Move the
2073 symtab->language code.
2074 (var_decode_location): Set cu->has_loclist.
2075 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
2076 skip. Intialize force_skip from locations_valid. Move the prologue
2077 skipping code into two passes.
2078 * symtab.h (struct symtab): Make the primary field a bitfield. New
2079 field locations_valid.
2081 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2083 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
2084 (classify_inner_name): Call cp_lookup_nested_type with
2086 * cp-namespace.c (cp_lookup_nested_type): New variable
2087 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
2088 type_name_no_tag_or_error with saved_parent_type.
2089 * dwarf2read.c (load_partial_dies): Read in any children of
2090 DW_TAG_typedef with complaint in such case.
2091 * gdbtypes.c (type_name_no_tag_or_error): New function.
2092 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
2093 * valops.c (destructor_name_p): New comment for parameter type. Remove
2094 type const. Make dname and cp const. Call type_name_no_tag_or_error.
2095 * value.h (destructor_name_p): Remove type const.
2097 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2099 * symtab.c (compare_symbol_name): New function.
2100 (completion_list_add_name, expand_partial_symbol_name): Call it,
2101 remove the variable ncmp.
2102 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
2105 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2107 Demote to sw watchpoint only in update_watchpoint.
2108 * breakpoint.c (update_watchpoint): Change between software and
2109 hardware watchpoint for all kinds of watchpoints, not just
2110 read/write ones. Determine b->exact value here instead of
2111 in watch_command_1. Error out if there are not enough resources
2112 for a read or access hardware watchpoint.
2113 (watch_command_1): Remove logic of checking whether there are
2114 enough resources available, since update_watchpoint will do that
2115 work now. Don't set b->exact here. Catch exceptions thrown by
2116 update_watchpoint and delete the watchpoint.
2117 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
2118 Use target_exact_watchpoints instead.
2119 (delete_breakpoint): Notify observers only if deleted watchpoint
2120 has a breakpoint number assigned to it.
2122 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
2124 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2126 2011-05-05 Jerome Guitton <guitton@adacore.com>
2128 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
2130 (i386_stack_tramp_frame_unwind): New static global.
2131 (i386_match_pattern): New function, extracted from i386_match_insn.
2132 (i386_match_insn): Use i386_match_pattern.
2133 (i386_match_insn_block): New function.
2134 (i386_tramp_chain_in_reg_insns)
2135 (i386_tramp_chain_on_stack_insns): New static variables.
2136 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
2139 2011-05-04 Joseph Myers <joseph@codesourcery.com>
2141 * configure.host (xscale*): Don't handle target.
2142 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
2145 2011-05-04 Yao Qi <yao@codesourcery.com>
2147 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
2149 2011-05-03 Joel Brobecker <brobecker@adacore.com>
2152 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
2153 | * elfread.c (elf_symtab_read): Stop memory leak.
2155 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2157 * nto-tdep.c (nto_target): Replace deprecated call to
2158 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
2160 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2162 Fix false GCC warning.
2163 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
2165 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2167 * breakpoint.c (update_watchpoint): Move code to change
2168 the enable state of breakpoint from here ...
2169 (do_enable_breakpoint): ... to here.
2171 2011-04-26 Andrew Gontarek <andrewg@cray.com>
2173 * valprint.c (val_print_array_elements): Fixed poor performance
2174 of printing very large arrays with repeat_count_threshold set
2175 to unlimited. New comment.
2177 2011-04-29 Tom Tromey <tromey@redhat.com>
2179 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
2180 (mi_parse): Likewise.
2181 * breakpoint.c (break_range_command): Use sizeof char*, not
2183 (create_breakpoint): Likewise.
2184 (parse_breakpoint_sals): Likewise.
2186 2011-04-29 Pedro Alves <pedro@codesourcery.com>
2188 * linux-nat.c (linux_child_remove_fork_catchpoint)
2189 (linux_child_remove_vfork_catchpoint)
2190 (linux_child_remove_exec_catchpoint): New functions.
2191 (linux_target_install_ops): Install them.
2193 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
2197 * varobj.c (install_default_visualizer): Do not install a
2198 visualizer if the varobj is CPLUS_FAKE_CHILD.
2199 (construct_visualizer): Likewise.
2201 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2203 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
2204 case insensitive comparison.
2206 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
2208 * infrun.c (proceed): Revert previous change.
2209 (resume): Instead, handle the case of signal delivery while stepping
2210 off a breakpoint location here, and only if software single-stepping
2211 is used. Handle nested signals.
2213 2011-04-28 Yao Qi <yao@codesourcery.com>
2215 * arm-tdep.c (copy_unmodified): Rename to ...
2216 (arm_copy_unmodified): .. this. New.
2217 (copy_preload): Move common part to ...
2218 (install_preload): .. this. New.
2219 (arm_copy_preload): New.
2220 (copy_preload_reg): Move common part to ...
2221 (install_preload_reg): ... this. New.
2222 (arm_copy_preload_reg): New.
2223 (copy_b_bl_blx): Move common part to ...
2224 (install_b_bl_blx): .. this. New.
2225 (arm_copy_b_bl_blx): New.
2226 (copy_bx_blx_reg): Move common part to ...
2227 (install_bx_blx_reg): ... this. New.
2228 (arm_copy_bx_blx_reg): New.
2229 (copy_alu_reg): Move common part to ...
2230 (install_alu_reg): ... this. New.
2231 (arm_copy_alu_reg): New.
2232 (copy_alu_shifted_reg): Move common part to ...
2233 (install_alu_shifted_reg): ... this. New.
2234 (copy_ldr_str_ldrb_strb): Move common part to ...
2235 (install_ldr_str_ldrb_strb): ... this. New.
2236 (arm_copy_ldr_str_ldrb_strb): New.
2237 (copy_copro_load_store): Move some common part to ...
2238 (install_copy_copro_load_store): ... this. New.
2239 (arm_copy_copro_load_store): New.
2241 (arm_copy_svc): Renamed from copy_svc.
2242 (copy_undef): Delete.
2243 (arm_copy_undef): Renamed from copy_undef.
2244 (decode_ext_reg_ld_st): Delete.
2245 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2246 (decode_svc_copro): Delete.
2247 (arm_decode_svc_copro): Renamed from decode_svc_copro.
2248 (copy_copro_load_store, copy_alu_imm): update callers.
2249 (copy_extra_ld_st, copy_block_xfer): Likewise.
2250 (decode_misc_memhint_neon, decode_unconditional): Likewise.
2251 (decode_miscellaneous, decode_dp_misc): Likewise.
2252 (decode_ld_st_word_ubyte, decode_media): Likewise.
2253 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
2254 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
2255 (decode_unconditional, decode_miscellaneous): Likewise.
2256 (decode_media, decode_b_bl_ldmstm): Likewise.
2257 (arm_process_displaced_insn): Likewise..
2258 (decode_misc_memhint_neon): Delete.
2259 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2260 (decode_miscellaneous): Delete.
2261 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2262 (decode_dp_misc): Delete.
2263 (arm_decode_dp_misc): Renamed from decode_dp_misc.
2264 (decode_ld_st_word_ubyte): Delete.
2265 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2266 (decode_media): Delete.
2267 (arm_decode_media): Renamed from decode_media.
2268 (decode_b_bl_ldmstm): Delete.
2269 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2270 (decode_ext_reg_ld_st): Delete.
2271 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2272 (decode_unconditional): Delete.
2273 (arm_decode_unconditional): Renamed from decode_unconditional.
2275 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2277 Case insensitive lookups implementation.
2278 * dwarf2read.c: Include ctype.h.
2279 (struct mapped_index): New field version.
2280 (mapped_index_string_hash): New parameter index_version. New comment
2281 for it. Call tolower appropriately.
2282 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2283 Choose the right index version for mapped_index_string_hash.
2284 (dwarf2_read_index): Support also the index version 5. Initialize the
2285 new struct mapped_index field version.
2286 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2287 (find_slot): Explain the version needs. Pass INT_MAX for the new
2289 (write_psymtabs_to_index): Produce version 5.
2290 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2291 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2292 * psymtab.c (lookup_partial_symbol): Find the
2293 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2295 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2297 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2298 (completion_list_add_name): New variable ncmp, initialize it, use it.
2299 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2300 * utils.c (strcmp_iw): Support case_sensitive_off.
2301 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2302 New function comment part. New variables saved_string1,
2303 saved_string2 and case_pass. Add a proper second pass.
2305 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2307 Replace re_comp/re_exec by regcomp/regexec.
2308 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2309 (search_symbols_name_matches): Use them, use regexec.
2310 (search_symbols): New variable retval_chain, adjust the use of
2311 old_chain against it. Replace re_comp by regcomp. Use the new struct
2312 search_symbols_data fields, use regexec instead of re_exec.
2314 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2316 Format the code for the next patch.
2317 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2318 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2319 New variables c1 and c2.
2321 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2323 * infrun.c (proceed): Do not single-step into signal delivery
2324 when stepping off a breakpoint location.
2325 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2326 (insert_step_resume_breakpoint_at_caller): Likewise.
2327 (insert_step_resume_breakpoint_at_sal): Likewise.
2328 (insert_longjmp_resume_breakpoint): Likewise.
2330 2011-04-27 Yao Qi <yao@codesourcery.com>
2332 * common/linux-ptrace.h: Remove include <sys/wait.h>.
2334 2011-04-27 Joel Brobecker <brobecker@adacore.com>
2336 * procfs.c (procfs_pass_signals): Fix advance declaration.
2338 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2340 * target.h (struct target_ops): Remove to_notice_signals;
2341 add to_pass_signals.
2342 (target_notice_signals): Remove.
2343 (target_pass_signals): Add prototype.
2344 * target.c (update_current_target): Remove to_notice_signals;
2345 mention to_pass_signals.
2346 (target_pass_signals): New function.
2347 (debug_to_notice_signals): Remove.
2348 (setup_target_debug): Do not install debug_to_notice_signals.
2350 * infrun.c (signal_pass): New global.
2351 (resume): Call target_pass_signals.
2352 (handle_inferior_event): Report all signals while stepping over
2353 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
2354 are re-inserted when stepping over a signal handler.
2355 (signal_cache_update): New function.
2356 (signal_stop_update): Call it.
2357 (signal_print_update): Likewise.
2358 (signal_pass_update): Likewise.
2359 (handle_command): Call signal_cache_update and target_pass_signals
2360 instead of target_notice_signals.
2361 (_initialize_infrun): Initialize signal_pass.
2363 * linux-nat.c (pass_mask): New global.
2364 (linux_nat_pass_signals): New function.
2365 (linux_nat_create_inferior): Report all signals initially.
2366 (linux_nat_attach): Likewise.
2367 (linux_nat_resume): Use pass_mask to decide whether to directly
2368 handle an inferior signal.
2369 (linux_nat_wait_1): Likewise.
2370 (linux_nat_add_target): Install to_pass_signals callback.
2372 * nto-procfs.c (notice_signals): Remove.
2373 (procfs_resume): Do not call notice_signals.
2374 (procfs_notice_signals): Remove.
2375 (procfs_pass_signals): New function.
2376 (init_procfs_ops): Install to_pass_signals callback instead of
2377 to_notice_signals callback.
2378 (_initialize_procfs): Report all signals initially.
2380 * procfs.c (procfs_notice_signals): Remove.
2381 (procfs_pass_signals): New function.
2382 (procfs_target): Install to_pass_signals callback instead of
2383 to_notice_signals callback.
2384 (register_gdb_signals): Remove.
2385 (procfs_debug_inferior): Report all signals initially.
2386 (procfs_init_inferior): Remove redundant register_gdb_signals call.
2388 * remote.c (remote_pass_signals): Add numsigs and pass_signals
2389 parameters; use them instead of calling signal_..._state routines.
2390 (remote_notice_signals): Remove.
2391 (remote_start_remote): Report all signals initially.
2392 (remote_resume): Do not call remote_pass_signals.
2393 (_initialize_remote): Install to_pass_signals callback instead of
2394 to_notice_signals callback.
2396 2011-04-27 Pedro Alves <pedro@codesourcery.com>
2398 * breakpoint.c (user_settable_breakpoint): Delete.
2399 (user_breakpoint_p): Remove check on user_settable_breakpoint.
2400 (delete_command): Check user_breakpoint_p instead of looking at
2401 the breakpoint's type.
2402 (disable_command): Ditto.
2403 (enable_command): Ditto.
2404 (delete_trace_command): Use user_breakpoint_p instead of looking
2405 at the breakpoint number directly. When checking if there are
2406 user visible tracepoints, in order to know whether to ask the user
2407 for confirmation, check whether the breakpoint is actually a
2410 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2412 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2415 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2417 MI breakpoint notifications.
2419 * annotate.c (breakpoint_changed): Adjust parameter type.
2420 * breakpoint.c (set_breakpoint_condition): Adjust to change
2421 in breakpoint_modified type.
2422 (breakpoint_set_commands): Likewise.
2423 (do_map_commands_command): Likewise.
2424 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2425 changed after bumping hit count.
2426 (bpstat_stop_status): Likewise.
2427 (print_one_breakpoint_location): Don't wrap in tuple here.
2428 (print_one_breakpoint): Always print individual locations.
2429 For locations, use unnamed tuple.
2430 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2432 (create_catchpoint, create_syscall_event_catchpoint): Call
2433 breakpoint_created obsever.
2434 (mention): Don't call breakpoint_created observer.
2435 (create_breakpoint_sal): Call breakpoint_created observer.
2436 (create_breakpoint, watch_command_1): Likewise.
2437 (create_ada_exception_breakpoint): Likewise.
2438 (delete_breakpoint): Call breakpoint_deleted breakpoint.
2439 (locations_are_equal): New.
2440 (update_breakpoint_locations): If locations were changed, notify.
2441 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2442 Call breakpoint_modified observer.
2444 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2445 (mi_cmd_break_insert): Don't set observers for modify and delete.
2446 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2447 (mi_breakpoint_created, mi_breakpoint_deleted)
2448 (mi_breakpoint_modified): New.
2449 (mi_interpreter_init): Hook the above.
2450 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2451 while -break-* commands are executing.
2452 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2453 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2455 (mi_ui_out_impl): Hook in mi_redirect.
2456 (mi_field_skip): True to the name, skip the field, don't output
2457 a field with an empty value.
2459 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2460 (gdbpy_breakpoint_deleted): Adjust.
2461 * tui/tui-hooks.c (tui_event_create_breakpoint)
2462 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2464 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
2466 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2467 (procfs_remove_hw_watchpoint): Likewise.
2469 2011-04-26 Michael Walle <michael@walle.cc>
2471 * remote.c (remote_start_remote): Ack packet after sending the
2474 2011-04-26 Yao Qi <yao@codesourcery.com>
2476 * linux-nat.c: Move common macros to ...
2477 Include linux-ptrace.h.
2478 * common/linux-ptrace.h: ... here. New.
2480 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2482 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2483 !objfile_has_partial_symbols. New comment.
2484 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2485 SYM_READ_PSYMBOLS is not present. Extend the comment.
2486 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2488 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2490 * defs.h (ENUM_BITFIELD): Remove.
2492 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2493 Eli Zaretskii <eliz@gnu.org>
2495 * NEWS: Document the new gdbserver --once option.
2497 2011-04-21 Jie Zhang <jzhang918@gmail.com>
2499 * MAINTAINERS: Update my email address.
2501 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2503 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2504 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2505 function call if __STDC_ISO_10646__ macro is defined.
2506 (intermediate_encoding): New prototype.
2507 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2508 to generate compile time error for unsupported gdb_wchar_t size.
2509 (ENDIAN_SUFFIX): New macro.
2510 (intermediate_encoding): New function.
2512 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2514 * ada-lang.c (struct add_partial_datum): Update the comment for
2515 expand_partial_symbol_name.
2516 (ada_add_partial_symbol_completions): Rename to ...
2517 (ada_expand_partial_symbol_name): ... here, change return type, update
2518 function comment, call symbol_completion_match instead of
2519 symbol_completion_add.
2520 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2521 and ada_expand_partial_symbol_name.
2522 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2524 (dw2_map_symbol_names): Remove.
2525 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2526 * psymtab.c (map_symbol_names_psymtab): Remove.
2527 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2528 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2530 (psym_functions): Unlist map_symbol_names_psymtab.
2531 (map_partial_symbol_names): Rename to ...
2532 (expand_partial_symbol_names): ... here, change the FUN type, call
2533 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2534 * psymtab.h (map_partial_symbol_names): Rename to ...
2535 (expand_partial_symbol_names): ... here, change the FUN type.
2536 * symfile.h (struct quick_symbol_functions): Update the description of
2537 expand_symtabs_matching. Remove map_symbol_names.
2538 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2539 (struct add_name_data): Update the comment for
2540 expand_partial_symbol_name.
2541 (add_partial_symbol_name): Rename to ...
2542 (expand_partial_symbol_name): ... here. Replace
2543 completion_list_add_name call by strncmp.
2544 (default_make_symbol_completion_list_break_on): Use now
2545 expand_partial_symbol_names and expand_partial_symbol_name.
2546 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2548 2011-04-20 Tom Tromey <tromey@redhat.com>
2550 * dwarf2read.c (save_gdb_index_command): Replace format
2551 documentation with a pointer to the manual.
2553 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2555 * regcache.c: Include remote.h.
2556 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2557 (regcache_dump): Handle regcache_dump_remote.
2558 (maintenance_print_remote_registers): New function.
2559 (_initialize_regcache): Install "maint print remote-registers"
2561 * remote.c (map_regcache_remote_table): New function, factored out
2563 (init_remote_state): ... here.
2564 (remote_register_number_and_offset): New.
2565 * remote.h (remote_register_number_and_offset): Declare.
2567 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2569 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2570 null_ptid, assume and allow a NULL address space, instead of
2571 asking the target for the ptid's address space.
2572 * infrun.c (ptid_is_pid): Remove assertion.
2574 2011-04-19 Tom Tromey <tromey@redhat.com>
2576 * windows-tdep.c (windows_xfer_shared_library):
2577 * windows-nat.c (get_module_name, windows_make_so):
2578 * v850-tdep.c (v850_handle_pushm):
2579 * utils.c (null_cleanup, gdb_realpath):
2580 * ui-out.c (get_next_header):
2581 * tracepoint.c (clear_traceframe_info):
2582 * symtab.c (lookup_symtab):
2583 * serial.h (struct serial_ops):
2584 * mipsread.c (read_alphacoff_dynamic_symtab):
2585 * infcmd.c (print_return_value):
2586 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2587 * f-exp.y (parse_number):
2588 * exceptions.c (catch_exceptions):
2589 * dummy-frame.c (dummy_frame_this_id):
2590 * defs.h (struct cleanup):
2591 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2592 * arm-tdep.c (arm_push_dummy_call):
2593 * amd64-tdep.h (amd64_collect_xsave):
2594 * amd64-tdep.c (amd64_collect_xsave):
2595 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2596 * README (typing): Remove duplicate words.
2597 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2598 * infrun.c (siginfo_value_read): Fix typo.
2599 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2600 * top.c (source_line_number): Add comma.
2602 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2604 * thread.c (any_live_thread_of_process): Prioritize threads
2605 that are not executing.
2606 * gdbthread.h (any_live_thread_of_process): Update comment
2607 as per above change.
2609 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2611 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2612 (scan_xcoff_symtab): Likewise.
2614 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2616 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2619 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2620 Pedro Alves <pedro@codesourcery.com>
2622 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2623 variables to simplify code and avoid == operator at end of
2624 line as this is against GNU coding standards.
2626 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2628 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2629 lm_name to name_lm to avoid conflict with lm_name function.
2631 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2633 ARI fixes: Use only lowercase function name for static functions.
2634 * nto-tdep.c (LM_ADDR): Rename to...
2635 (lm_addr): New function name.
2636 (nto_relocate_section_addresses): Adapt to change above.
2637 * solib-sunos.c (LM_ADDR): Rename to...
2638 (lm_addr): New function name.
2639 (LM_NEXT): Rename to...
2640 (lm_next): New function name.
2641 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2642 function name changes above.
2643 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2644 (lm_addr_from_link_map): New function name.
2645 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2646 (has_lm_dynamic_from_link_map): New function name.
2647 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2648 (lm_dynamic_from_link_map): New function name.
2649 (LM_ADDR_CHECK): Rename to...
2650 (lm_addr_check): New function name.
2651 (LM_NEXT): Rename to...
2652 (lm_next): New function name.
2653 (LM_PREV): Rename to...
2654 (lm_prev): New function name.
2655 (LM_NAME): Rename to...
2656 (lm_name): New function name.
2657 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2658 (ignore_first_link_map_entry): New function name.
2659 (svr4_keep_data_in_core): Adapt to function name changes above.
2660 (svr4_current_sos): Likewise.
2661 (enable_break): Likewise.
2662 (svr4_relocate_section_addresses): Likewise.
2664 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2667 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2668 sprintf. Simplify code and avoid loosing memory.
2669 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2670 (call0_frame_cache): Remove && operator from end of line.
2672 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2674 Fix libraries displacement if they change whether they were prelinked.
2675 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2676 does not match. Comment why.
2678 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2680 * corelow.c: Include wrapper.h.
2681 (core_open): Call now gdb_target_find_new_threads.
2682 * wrapper.c: Include target.h.
2683 (gdb_target_find_new_threads): New.
2684 * wrapper.h (gdb_target_find_new_threads): New declaration.
2686 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2688 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2689 even if !TARGET_HAS_EXECUTION.
2691 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2693 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2694 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2695 bfd_get_synthetic_symtab.
2696 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2697 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2698 parameter parent, remove the call to add_separate_debug_objfile.
2699 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2700 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2701 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2702 parent, new comment for it, call add_separate_debug_objfile for it.
2703 (symbol_file_add_separate): Pass objfile as the parameter parent,
2704 remove the call to add_separate_debug_objfile.
2705 (symbol_file_add_from_bfd): New parameter parent, pass it.
2706 (symbol_file_add): Pass NULL to the new parameter parent.
2707 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2709 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2711 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2714 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2716 Fix Python access to inlined frames.
2717 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2718 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2720 2011-04-15 Tom Tromey <tromey@redhat.com>
2722 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2724 2011-04-15 Gary Benson <gbenson@redhat.com>
2726 * MAINTAINERS: Add myself to write-after-approval section.
2728 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2730 * remote-sim.c (sim_command_completer): New function.
2731 (_initialize_remote_sim): Set completer to sim_command_completer.
2733 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2735 * breakpoint.c (print_exception_catchpoint): Rename to ...
2736 (print_it_exception_catchpoint): ... this.
2737 (gnu_v3_exception_catchpoint_ops): Update with new name
2738 for print_it_exception_catchpoint.
2740 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2742 * MAINTAINERS: Add myself for write after approval privileges.
2744 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2746 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2748 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2750 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2752 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2754 * breakpoint.c (save_breakpoints): Verify whether
2755 breakpoint_ops.print_recreate is defined before calling it.
2757 2011-04-11 Gary Benson <gbenson@redhat.com>
2759 Fix failure with --enable-maintainer-mode.
2760 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2762 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2765 * symtab.c (search_symbols): Reorder the KIND description in the
2766 function comment. Remove the unused 4th element of types, types2,
2767 types3 and types4. New gdb_assert on KIND.
2768 (symtab_symbol_info): Remove the unused 4th element of classnames.
2769 New gdb_assert on KIND.
2770 * symtab.h (enum search_domain): New warning in the enum comment.
2771 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2774 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2776 Fix crash of gdb save-index on a STABS file.
2777 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2780 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2782 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2783 * dwarf2read.c: Include ctype.h.
2784 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2786 (dwarf2_add_field): Fix new_field->accessibility by calling
2787 dwarf2_default_access_attribute. Restructure setting accessibility
2789 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2790 is_private and is_protected by calling
2791 dwarf2_default_access_attribute.
2793 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2795 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2796 to the initialization.
2798 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2800 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2803 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2805 Remove support for old Cygwin 1.5 versions.
2806 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2807 function on old Cygwin version.
2808 * windows-nat.c: Remove cygwin version check and always define
2809 __USEWIDE for Cygwin compilation.
2811 2011-04-07 Yao Qi <yao@codesourcery.com>
2813 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2815 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2816 (arm_copy_svc): Remove parameters INSN and TO.
2817 (decode_svc_copro): Update caller.
2818 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2819 from function pointer `copy_svc_os'.
2821 2011-04-07 Yao Qi <yao@codesourcery.com>
2823 * arm-tdep.c (cleanup_branch): Set a correct return address in
2824 LR for ARM and Thumb.
2826 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2829 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2830 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2831 in the function comment, a new note on values compatibility.
2832 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2833 * symtab.h (SYMBOL_HASH_NEXT): New.
2835 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2837 * ppc-linux-nat.c (check_condition): Add len output parameter.
2838 Set it based on the memory region referenced in the condition
2839 expression. Update all callers.
2841 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2843 Fix crash regression on systems featuring .gdb_index.
2844 * objfiles.c (free_objfile): Move the
2845 forget_cached_source_info_for_objfile call earlier. Comment it.
2846 Extend the comment for objfile_free_data.
2848 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2850 Fix regression of displaying the debug format.
2851 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2854 2011-04-04 Tom Tromey <tromey@redhat.com>
2856 * cli/cli-interp.c (struct captured_execute_command_args):
2858 (do_captured_execute_command): Remove.
2859 (safe_execute_command): Use TRY_CATCH.
2860 * cli/cli-script.c (struct wrapped_read_command_file_args):
2862 (wrapped_read_command_file): Remove.
2863 (script_from_file): Use TRY_CATCH.
2864 * exceptions.c (catch_exception): Remove.
2865 * exceptions.h (catch_exception): Remove.
2866 (deprecated_throw_reason): Update comment.
2867 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2868 argument to 'context'.
2869 (mi_execute_command): Use TRY_CATCH.
2870 * remote.c (struct start_remote_args): Remove.
2871 (remote_start_remote): Update; change arguments.
2872 (remote_open_1): Use TRY_CATCH.
2874 2011-04-04 Tom Tromey <tromey@redhat.com>
2876 * tracepoint.c (scope_info): Update.
2877 * symtab.c (decode_line_spec): Update.
2878 * python/python.c (gdbpy_decode_line): Update.
2879 * linespec.h (decode_line_1): Update.
2880 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2881 (decode_compound, find_method, symtab_from_filename)
2882 (decode_variable): Likewise.
2883 * cli/cli-cmds.c (edit_command): Update.
2884 (list_command): Update.
2885 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2887 (create_breakpoint): Update.
2888 (until_break_command): Update.
2889 (addr_string_to_sals): Update.
2890 (decode_line_spec_1): Update.
2892 2011-04-04 Tom Tromey <tromey@redhat.com>
2894 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2895 (do_captured_parse_breakpoint): Remove.
2896 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2897 Use TRY_CATCH directly.
2899 2011-04-04 Tom Tromey <tromey@redhat.com>
2901 * symtab.h (free_symtab): Remove.
2902 (forget_cached_source_info_for_objfile): Declare.
2903 * symmisc.c (free_symtab): Remove.
2904 * source.c (forget_cached_source_info_for_objfile): New function.
2905 (forget_cached_source_info): Use it.
2906 * objfiles.c (free_objfile): Simplify check before calling
2907 clear_current_source_symtab_and_line. Call
2908 forget_cached_source_info_for_objfile.
2910 2011-04-04 Tom Tromey <tromey@redhat.com>
2912 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2913 (new_symtab): Don't set `free_code' on symtab.
2914 (new_linetable): Properly handle size==0.
2915 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2916 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2918 * jv-lang.c (struct jv_per_objfile_data): New.
2919 (jv_per_objfile_free): Free the data.
2920 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2921 (get_java_class_symtab): Set the `dict' field on the
2922 jv_per_objfile_data.
2923 (free_class_block): Remove.
2924 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2927 2011-04-04 Tom Tromey <tromey@redhat.com>
2929 * symfile.c (reread_symbols): Update.
2930 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2932 * objfiles.c (allocate_objfile): Update.
2933 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2935 * cp-namespace.c (lookup_symbol_file): Don't call
2936 lookup_possible_namespace_symbol.
2937 (initialize_namespace_symtab, get_possible_namespace_block)
2938 (free_namespace_block, cp_check_possible_namespace_symbols)
2939 (check_possible_namespace_symbols_loop)
2940 (check_one_possible_namespace_symbol)
2941 (lookup_possible_namespace_symbol): Remove.
2942 (maintenance_cplus_namespace): Replace with notice.
2943 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2945 2011-04-04 Tom Tromey <tromey@redhat.com>
2947 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2948 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2949 * symmisc.c (free_symtab): Don't free debugformat.
2950 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2951 (record_debugformat, record_producer): Document.
2952 * buildsym.c (end_symtab): Don't save debugformat and producer
2954 (end_symtab): Don't free debugformat and producer fields.
2955 (record_debugformat): Don't call xstrdup.
2956 (record_producer): Likewise.
2958 2011-04-04 Tom Tromey <tromey@redhat.com>
2960 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2961 (source_line_charpos, source_charpos_line): Remove.
2963 2011-04-04 Tom Tromey <tromey@redhat.com>
2965 * symtab.h (domain_enum): Split in two...
2966 (enum search_domain): New.
2967 (search_symbols): Update.
2968 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2969 redundant declarations.
2970 (search_symbols): Change 'kind' argument to search_domain.
2972 (print_symbol_info): Likewise.
2973 (symtab_symbol_info): Likewise.
2974 * symfile.h (struct quick_symbol_functions)
2975 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2976 <expand_symtabs_matching>: Likewise.
2977 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2978 (expand_symtabs_matching_via_partial): Update.
2979 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2980 (dw2_expand_symtabs_for_function): Update.
2981 * block.h: Moved anonymous enum...
2982 * defs.h (enum block_enum): ... here. Now named.
2984 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2986 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2987 * version.in: Bump version to 7.3.50.20110403-cvs.
2989 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2991 * NEWS: Create a new section for the next release branch.
2992 Rename the section of the current branch, now that it has
2995 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2997 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2998 for "fpscr" in target description.
3000 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3002 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
3003 initialize it. Delay HASH initialization. Strip the part after open
3004 parenthesis for languages with qualifiers. Call do_cleanups.
3006 2011-04-01 Tom Tromey <tromey@redhat.com>
3008 * utils.c (report_command_stats): Don't print `-' for negative
3011 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
3013 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
3014 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
3017 2011-04-01 Joel Brobecker <brobecker@adacore.com>
3019 * breakpoint.h (bpdisp_text): Add declaration.
3020 * breakpoint.c (bpdisp_text): Make non-static.
3021 * ada-lang.c: #include "mi/mi-common.h".
3022 (print_it_exception): Rewrite to improve GDB/MI output.
3024 2011-04-01 Pedro Alves <pedro@codesourcery.com>
3026 * arm-tdep.h (struct address_space): Add forward declaration.
3028 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3030 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
3031 * arm-tdep.c (arm_override_mode): New global.
3032 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
3033 execution mode heuristics.
3034 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
3035 second single-step breakpoint if needed, using
3036 arm_insert_single_step_breakpoint.
3037 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
3038 ARM execution mode, do not call thumb_get_next_pc_raw.
3039 (arm_get_next_pc): Encode execution mode in return value. Call
3040 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
3041 (arm_insert_single_step_breakpoint): New function.
3042 (arm_software_single_step): Call it.
3043 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
3044 argument to return execution mode of sigreturn target.
3045 (arm_linux_syscall_next_pc): Use it.
3046 (arm_linux_copy_svc): Update call.
3047 (arm_linux_software_single_step): Call
3048 arm_insert_single_step_breakpoint.
3050 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3052 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
3055 2011-03-31 Tom Tromey <tromey@redhat.com>
3057 * varobj.c (update_dynamic_varobj_children): Properly handle
3058 errors from iterator.
3060 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3062 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
3063 struct linkage name twice.
3065 2011-03-31 Tom Tromey <tromey@redhat.com>
3067 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
3068 missing ">" to message.
3070 2011-03-31 Tom Tromey <tromey@redhat.com>
3072 * varobj.c (instantiate_pretty_printer): Remove duplicate
3075 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
3077 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
3078 if neither saved value nor register available (e.g. signal frame).
3080 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3082 * macroexp.c (expand): Avoid uninitialized variable
3085 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3087 * breakpoint.c (break_range_command): Fix typo in comment.
3089 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3090 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3092 Implement support for PowerPC BookE ranged breakpoints.
3093 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
3094 * breakpoint.h (struct bp_target_info) <length>: New member
3096 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
3097 instead of struct breakpoint as argument, and also add ASPACE
3098 and BP_ADDR arguments. Update all callers.
3099 (struct breakpoint_ops) <print_one_detail>: New method.
3100 (struct breakpoint) <addr_string_range_end>: New member variable.
3101 * breakpoint.c (breakpoint_location_address_match): Add function
3103 (insert_bp_location): Set bl->target_info.length.
3104 (breakpoint_here_p): Call breakpoint_location_address_match.
3105 (moribund_breakpoint_here_p): Likewise.
3106 (regular_breakpoint_inserted_here_p): Likewise.
3107 (breakpoint_thread_match): Likewise.
3108 (bpstat_stop_status): Likewise.
3109 (bpstat_check_location): Move call to
3110 breakpoint_ops.breakpoint_hit to the top.
3111 (print_one_breakpoint_location): Call
3112 breakpoint_ops.print_one_detail if available.
3113 (breakpoint_address_match_range): New function.
3114 (breakpoint_location_address_match): Likewise.
3115 (breakpoint_locations_match): Compare the length field of the
3117 (hw_breakpoint_used_count): Count resources used by all locations
3118 in a breakpoint, and use breakpoint_ops.resources_needed if
3120 (breakpoint_hit_ranged_breakpoint): New function.
3121 (resources_needed_ranged_breakpoint): Likewise.
3122 (print_it_ranged_breakpoint): Likewise.
3123 (print_one_ranged_breakpoint): Likewise.
3124 (print_one_detail_ranged_breakpoint): Likewise.
3125 (print_mention_ranged_breakpoint): Likewise.
3126 (print_recreate_ranged_breakpoint): Likewise.
3127 (ranged_breakpoint_ops): New structure.
3128 (find_breakpoint_range_end): New function.
3129 (break_range_command): Likewise.
3130 (delete_breakpoint): Free addr_string_range_end.
3131 (update_breakpoint_locations): Add SALS_END argument. Update
3132 all callers. Calculate breakpoint length if a non-zero SALS_END
3133 is given. Call breakpoint_locations_match instead of
3134 breakpoint_address_match.
3135 (reset_breakpoint): Find SaL of the end of the range if B is a
3137 (_initialize_breakpoint): Register break-range command.
3138 * defs.h (print_core_address): Add function prototype.
3139 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
3141 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
3142 (ppc_linux_remove_hw_breakpoint): Likewise.
3143 (_initialize_ppc_linux_nat): Initialize
3144 to_ranged_break_num_registers.
3145 * target.c (update_current_target): Add comment about
3146 to_ranged_break_num_registers.
3147 (target_ranged_break_num_registers): New function.
3148 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3150 (target_ranged_break_num_registers): Add function prototype.
3151 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
3152 * utils.c (print_core_address): ... here.
3154 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
3156 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
3157 variable compiler warning.
3159 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
3161 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
3163 (re_set_breakpoint): ... to here ...
3164 (addr_string_to_sals): ... and here.
3166 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3168 * Makefile.in (SFILES): Add missing C sources.
3169 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
3170 Add missing headers.
3172 2011-03-29 Mike Frysinger <vapier@gentoo.org>
3174 * .gitignore: New file.
3176 2011-03-29 Mike Frysinger <vapier@gentoo.org>
3178 * NEWS: Mention new cfi device simulation.
3180 2011-03-29 Tom Tromey <tromey@redhat.com>
3182 * dwarf2read.c (fixup_partial_die): Handle linkage name on
3183 otherwise anonymous types.
3184 (dwarf2_name): Likewise.
3185 * valops.c (value_struct_elt_for_reference): Refine artificial
3186 type logic. Call error if j==-1.
3188 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
3190 Fix false GCC warning.
3191 * infcall.c (find_function_addr): Initialize funaddr.
3193 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3195 Fix mingw compilation with --enable-targets=all.
3196 * remote-mips.c (gdb_usleep.h): Include header.
3197 (mips_enter_debug): Use gdb_usleep instead of sleep.
3199 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3201 Support resolution of STT_GNU_IFUNC via breakpoints.
3202 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
3203 bp_gnu_ifunc_resolver_return.
3204 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
3205 the loop. Support bp_gnu_ifunc_resolver and
3206 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
3207 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
3209 (bptype_string, print_one_breakpoint_location): Support
3210 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
3211 (user_settable_breakpoint): Return true also for
3212 bp_gnu_ifunc_resolver.
3213 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
3214 bp_gnu_ifunc_resolver_return.
3215 (set_breakpoint_location_function): New parameter explicit_loc,
3216 describe it. Call find_pc_partial_function_gnu_ifunc with new
3217 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
3218 EXPLICIT_LOC is not set.
3219 (set_raw_breakpoint): Set EXPLICIT_LOC for
3220 set_breakpoint_location_function.
3221 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
3222 set_breakpoint_location_function.
3223 (mention): Support bp_gnu_ifunc_resolver and
3224 bp_gnu_ifunc_resolver_return.
3225 (add_location_to_breakpoint): Set EXPLICIT_LOC for
3226 set_breakpoint_location_function.
3227 (update_breakpoint_locations): Remove static.
3228 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
3229 bp_gnu_ifunc_resolver_return.
3230 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
3231 bp_gnu_ifunc_resolver_return.
3232 (update_breakpoint_locations): New declaration.
3233 * elfread.c: Include gdbthread.h and regcache.h.
3234 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
3236 (elf_gnu_ifunc_fns): Install them.
3237 * minsyms.c (stub_gnu_ifunc_resolver_stop)
3238 (stub_gnu_ifunc_resolver_return_stop): New functions.
3239 (stub_gnu_ifunc_fns): Install them.
3240 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
3241 and gnu_ifunc_resolver_return_stop.
3242 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
3244 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3246 STT_GNU_IFUNC reader implementation.
3247 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
3248 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
3249 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
3250 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
3251 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
3252 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
3253 (elf_gnu_ifunc_resolve_addr): New.
3254 (elf_symfile_read): Call elf_rel_plt_read.
3255 (elf_gnu_ifunc_fns): New.
3256 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
3257 Install elf_gnu_ifunc_fns.
3258 * infcall.c (find_function_return_type): New function.
3259 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3260 * minsyms.c (stub_gnu_ifunc_resolve_addr)
3261 (stub_gnu_ifunc_resolve_name): New functions.
3262 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3263 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3264 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3266 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3268 Code cleanup for later STT_GNU_IFUNC support.
3269 * infcall.c (find_function_addr): Remove variable code, use explicit
3270 dereferences for it. Move VALUE_TYPE initialization later.
3272 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3274 GDB find_pc_partial_function support for STT_GNU_IFUNC.
3275 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3276 (clear_pc_function_cache): Clear it.
3277 (find_pc_partial_function): Rename to ...
3278 (find_pc_partial_function_gnu_ifunc): ... this function. New
3279 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
3280 (find_pc_partial_function): New wrapper for this function.
3281 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3283 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3285 GDB internal type support for STT_GNU_IFUNC.
3286 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3287 (elf_symtab_read): Set mst_text_gnu_ifunc for
3288 BSF_GNU_INDIRECT_FUNCTION.
3289 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3290 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3291 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3292 nodebug_got_plt_symbol.
3293 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3294 (TYPE_GNU_IFUNC): New.
3295 (struct main_type): New field flag_gnu_ifunc.
3296 (struct builtin_type): New field builtin_func_func.
3297 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3298 nodebug_got_plt_symbol.
3299 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3300 (in_gnu_ifunc_stub): New.
3301 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3303 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3304 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3305 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3307 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3308 * symtab.c (search_symbols): Likewise.
3309 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3310 and mst_slot_got_plt.
3311 (in_gnu_ifunc_stub): New declaration.
3313 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3315 Support a ring of related breakpoints.
3316 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3317 other functions, add gdb_assert.
3318 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3319 watchpoint_del_at_next_stop.
3320 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3321 (bpstat_stop_status): Handle ring in related_breakpoint.
3322 (set_raw_breakpoint_without_location): Initialize ring in
3324 (delete_breakpoint): Handle ring in related_breakpoint, use
3325 watchpoint_del_at_next_stop.
3326 (map_breakpoint_numbers): Handle ring in related_breakpoint.
3328 2011-03-28 Tom Tromey <tromey@redhat.com>
3331 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3332 with `language_minimal'.
3334 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
3336 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3337 instead of checking for STT_ARM_TFUNC symbol type.
3339 2011-03-25 Tom Tromey <tromey@redhat.com>
3341 * linespec.c (symbol_found): Restore line-based result for
3342 non-LOC_LABEL symbols.
3344 2011-03-25 Kai Tietz <ktietz@redhat.com>
3346 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3347 instead of strcmp for comparison.
3348 (tui_source_is_displayed): Likewise.
3349 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3351 2011-03-24 Mark Wielaard <mjw@redhat.com>
3353 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3355 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3356 (find_partial_die_in_comp_unit): Likewise in comment.
3357 (read_attribute_value): Likewise.
3358 (lookup_die_type): Likewise.
3359 (dwarf_form_name): Likewise.
3360 (dump_die_shallow): Likewise.
3361 (follow_die_ref_or_sig): Likewise.
3363 2011-03-24 Tom Tromey <tromey@redhat.com>
3365 PR breakpoints/11816:
3366 * linespec.c (decode_line_1): Parse `function:label' linespecs.
3367 (decode_compound): Update.
3368 (find_function_symbol): New function.
3369 (decode_dollar): Update.
3370 (decode_label): Add 'function_symbol' parameter. Handle
3371 function-relative labels.
3372 (decode_variable): Update.
3373 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
3374 not its line. Set `special_display' and canonical name for
3377 2011-03-24 Tom Tromey <tromey@redhat.com>
3379 * linespec.h (struct linespec_result) <special_display>: New
3381 * breakpoint.h (struct breakpoint) <display_canonical>: New
3383 * breakpoint.c (print_breakpoint_location): Respect
3385 (create_breakpoint_sal): Add 'display_canonical' parameter.
3386 (create_breakpoints_sal): Update.
3387 (create_breakpoint): Update.
3389 2011-03-24 Tom Tromey <tromey@redhat.com>
3391 * symtab.c (decode_line_spec): Update.
3392 * linespec.c (build_canonical_line_spec): Change type of
3394 (decode_line_2, decode_line_1, decode_objc, decode_compound)
3395 (find_method, decode_all_digits, decode_dollar, decode_label)
3396 (symbol_found): Likewise.
3397 (init_linespec_result): New function.
3398 * breakpoint.c (struct captured_parse_breakpoint_args)
3399 <canonical_p>: New field, replaces addr_string_p.
3400 (create_breakpoints_sal): Add 'canonical' parameter, replacing
3402 (parse_breakpoint_sals): Likewise.
3403 (do_captured_parse_breakpoint): Update.
3404 (create_breakpoint): Use struct linespec_result.
3405 (until_break_command): Update.
3406 (breakpoint_re_set_one): Update.
3407 (decode_line_spec_1): Update.
3408 * linespec.h (struct linespec_result): New.
3409 (init_linespec_result): Declare.
3411 2011-03-23 Pedro Alves <pedro@codesourcery.com>
3413 * regcache.c (regcache_raw_read): If the target didn't supply a
3414 given raw register, mark it as unavailable.
3416 2011-03-23 Kai Tietz <ktietz@redhat.com>
3418 * breakpoint.c (clear_command): Use filename_cmp
3419 instead of strcmp for comparison.
3420 * buildsym.c (watch_main_source_file_lossage): Likewise.
3421 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3422 checking just for slash.
3423 * dbxread.c (read_dbx_symtab): Use lbasename instead of
3424 strrchr and filename_cmp instead of strcmp for filenames.
3425 (add_old_header_file): Use filename_cmp
3426 instead of strcmp for comparison.
3427 * exec.c (exec_set_section_address): Likewise.
3428 * macrotab.c (macro_lookup_inclusion): Likewise.
3429 (macro_lookup_inclusion): Likewise.
3430 * elfread.c (_initialize_elfread): Likewise.
3431 (elfstab_offset_sections): Likewise.
3432 (elfstab_offset_sections): Use lbasename instead of
3434 * mdebugread.c (parse_partial_symbols): Likewise.
3435 (arse_partial_symbols): Use filename_(n)cmp instead of
3436 str(n)cmp for comparison.
3437 * minsyms.c (lookup_minimal_symbol): Likewise.
3438 * psymtab.c (read_psymtabs_with_filename): Likewise.
3439 * solib.c (solib_read_symbols): Likewise.
3440 (reload_shared_libraries_1): Likewise.
3441 * symmisc.c (maintenance_print_symbols): Likewise.
3442 * symfile.c (separate_debug_file_exists): Likewise.
3443 (reread_symbols): Likewise.
3444 (find_separate_debug_file_by_debuglink): Likewise.
3445 * remote-fileio.c (remote_fileio_func_rename): Likewise.
3446 * source.c (add_path): Likewise.
3447 * symtab.c (filename_seen): Likewise.
3448 (file_matches): Likewise.
3449 (print_symbol_info): Likewise.
3450 (maybe_add_partial_symtab_filename): Likewise.
3451 (make_source_files_completion_list): Likewise.
3452 * xml-syscall.c (init_sysinfo): Likewise.
3453 * windows-nat.c (_initialize_check_for_gdb_ini): Use
3454 IS_DIR_SEPARATOR for checking for trailing path separator.
3456 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3458 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
3459 label abort_expression.
3460 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3461 DWARF_VALUE_OPTIMIZED_OUT.
3463 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3466 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3467 to linkage_name. Invert its value. Update the function comment.
3468 (c_type_print_varspec_suffix): Invert it at the caller.
3469 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3471 2011-03-22 Pedro Alves <pedro@codesourcery.com>
3473 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3474 errors when reading the `stop_pc'.
3475 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3478 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3480 * NEWS: Document gdb.Write stream keyword.
3482 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3485 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3486 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3487 (dwarf2_add_field): Fix new_field->accessibility for
3488 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3490 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3494 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3495 other error classes. Do not print stack trace.
3497 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3499 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3500 (dwarf2_add_field): Fix new_field->accessibility for
3501 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3503 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
3505 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3506 encountering a load via a non-SP register.
3508 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3510 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3511 field in returned unwinder.
3513 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3515 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3517 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3519 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3522 2012-03-18 Pedro Alves <pedro@codesourcery.com>
3524 * frame.c (frame_unwind_register): Throw an error if unwinding the
3526 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3527 an unwind stop reason.
3528 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3529 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3530 UNWIND_UNAVAILABLE>: New.
3531 * inline-frame.c (inline_frame_unwind): Install
3532 default_frame_unwind_stop_reason.
3533 * frame-unwind.c: Include "exceptions.h".
3534 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3535 (default_frame_unwind_stop_reason): New.
3536 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3537 (default_frame_unwind_stop_reason): Declare.
3538 (struct frame_unwind) <stop_reason>: New function pointer.
3540 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3541 * dwarf2-frame.c: Include exceptions.h.
3542 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3543 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3544 computing the CFA. If such an error was thrown, set
3545 unavailable_retaddr.
3546 (dwarf2_frame_unwind_stop_reason): New.
3547 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3549 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3550 (dwarf2_signal_frame_unwind): Ditto.
3552 * amd64-tdep.c: Include "exceptions.h".
3553 (struct amd64_frame_cache): New field "base_p".
3554 (amd64_init_frame_cache): Clear it.
3555 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3556 Avoid reading registers with functions that throw if the register
3557 is not necessary to compute the frame base.
3558 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3559 swallowing NOT_AVAILABLE_ERROR.
3560 (amd64_frame_unwind_stop_reason): New.
3561 (amd64_frame_this_id): Don't build a frame id if the frame base
3563 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3564 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3565 base_p if the frame base was computable.
3566 (amd64_sigtramp_frame_unwind_stop_reason): New.
3567 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3568 frame base was unavailable.
3569 (amd64_sigtramp_frame_unwind): Install
3570 amd64_sigtramp_frame_unwind_stop_reason.
3571 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3572 base_p if the frame base was computable.
3573 (amd64_epilogue_frame_unwind_stop_reason): New.
3574 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3575 frame base was unavailable.
3576 (amd64_epilogue_frame_unwind): Install
3577 amd64_epilogue_frame_unwind_stop_reason.
3578 * i386-tdep.c: Include "exceptions.h".
3579 (struct i386_frame_cache): New field "base_p".
3580 (i386_init_frame_cache): Clear it.
3581 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3582 Avoid reading registers with functions that throw if the register
3583 is not necessary to compute the frame base.
3584 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3585 swallowing NOT_AVAILABLE_ERROR.
3586 (i386_frame_unwind_stop_reason): New.
3587 (i386_frame_this_id): Don't build a frame id if the frame base was
3589 (i386_frame_prev_register): Handle unavailable SP.
3590 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3591 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3592 base_p if the frame base was computable.
3593 (i386_epilogue_frame_unwind_stop_reason): New.
3594 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3595 base was unavailable.
3596 (i386_epilogue_frame_unwind): Install
3597 i386_epilogue_frame_unwind_stop_reason.
3598 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3599 base_p if the frame base was computable.
3600 (i386_sigtramp_frame_unwind_stop_reason): New.
3601 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3602 base was unavailable.
3603 (i386_sigtramp_frame_unwind): Install
3604 i386_sigtramp_frame_unwind_stop_reason.
3605 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3606 type's size, not the register's.
3607 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3609 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3610 default_frame_unwind_stop_reason.
3611 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3612 (alpha_heuristic_frame_unwind): Ditto.
3613 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3614 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3615 * avr-tdep.c (avr_frame_unwind): Ditto.
3616 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3618 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3619 * frv-tdep.c (frv_frame_unwind): Ditto.
3620 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3621 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3622 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3623 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3624 (hppa_stub_frame_unwind): Ditto.
3625 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3626 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3627 (ia64_libunwind_frame_unwind)
3628 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3629 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3630 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3631 * m32c-tdep.c (m32c_unwind): Ditto.
3632 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3633 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3634 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3635 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3636 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3637 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3638 * mep-tdep.c (mep_frame_unwind): Ditto.
3639 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3640 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3641 (mips_stub_frame_unwind): Ditto.
3642 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3643 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3644 * mt-tdep.c (mt_frame_unwind): Ditto.
3645 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3646 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3647 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3648 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3649 (s390_sigtramp_frame_unwind): Ditto.
3650 * score-tdep.c (score_prologue_unwind): Ditto.
3651 * sh-tdep.c (sh_frame_unwind): Ditto.
3652 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3653 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3654 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3655 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3656 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3657 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3658 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3659 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3660 (sparc64obsd_trapframe_unwind): Ditto.
3661 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3662 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3663 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3664 * v850-tdep.c (v850_frame_unwind): Ditto.
3665 * vax-tdep.c (vax_frame_unwind): Ditto.
3666 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3667 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3668 * xtensa-tdep.c (xtensa_unwind): Ditto.
3670 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3672 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3673 there's always a frame. Use get_frame_pc_if_available instead of
3674 get_frame_pc, and if there's no PC available, don't look up a
3677 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3679 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3682 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3684 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3687 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3689 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3690 * frame.c (frame_unwind_caller_pc_if_available): New.
3691 * stack.c (frame_info): Handle unavailable PC.
3693 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3695 * frame.c (frame_unwind_pc): Rename to ...
3696 (frame_unwind_pc_if_available): ... this. New `pc' output
3697 parameter. Change return type to int. Gracefully handle
3698 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3699 happened, or 1 otherwise.
3700 (frame_unwind_pc): Reimplement on top of
3701 frame_unwind_pc_if_available.
3702 (get_frame_func): Rename to ...
3703 (get_frame_func_if_available): New `pc' output parameter. Change
3704 return type to int. Gracefully handle the PC not being available.
3705 (get_frame_func): Reimplement on top of
3706 get_frame_func_if_available.
3707 (select_frame): Handle the PC being unavailable.
3708 (get_prev_frame): Handle the PC being unavailable.
3709 (get_frame_pc_if_available): New.
3710 (get_frame_address_in_block_if_available): New.
3711 (find_frame_sal): Handle the frame PC not being available.
3712 * frame.h (get_frame_pc_if_available): Declare.
3713 (get_frame_address_in_block_if_available): Declare.
3714 (get_frame_func_if_available): Declare.
3715 * stack.c (print_frame_info): Handle the PC being unavailable.
3716 (find_frame_funname): Ditto.
3717 (print_frame): Handle the PC being unavailable.
3718 (get_frame_language): Ditto.
3719 * blockframe.c (get_frame_block): Ditto.
3720 * macroscope.c (default_macro_scope): Ditto.
3721 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3723 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3725 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3726 NOT_AVAILABLE_ERROR when evaluating the location expression.
3728 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3730 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3731 returning that the register piece is unavailable/optimized out.
3732 (write_pieced_value): Handle get_frame_register_bytes returning
3733 that the register piece is unavailable/optimized out when doing a
3734 read-modify write of a bitfield.
3735 * findvar.c (value_from_register): Handle get_frame_register_bytes
3736 returning that the register piece is unavailable/optimized out.
3737 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3738 and `unavailablep'. Throw error on bad debug info. Use
3739 frame_register instead of frame_register_read, to fill in the new
3741 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3743 * valops.c: (value_assign): Adjust, and handle
3744 get_frame_register_bytes failing.
3745 * spu-tdep.c: Include exceptions.h.
3746 (spu_software_single_step): Adjust, and handle
3747 get_frame_register_bytes failing.
3748 (spu_get_longjmp_target): Ditto.
3749 * gdbarch.sh (register_to_value): Change to return int. New
3750 parameters `optimizedp' and `unavailablep'.
3751 * gdbarch.h, gdbarch.c: Regenerate.
3752 * i386-tdep.c (i386_register_to_value): Adjust to new
3753 gdbarch_register_to_value interface.
3754 * i387-tdep.c (i387_register_to_value): Ditto.
3755 * i387-tdep.h (i387_register_to_value): Ditto.
3756 * alpha-tdep.c (alpha_register_to_value): Ditto.
3757 * ia64-tdep.c (ia64_register_to_value): Ditto.
3758 * m68k-tdep.c (m68k_register_to_value): Ditto.
3759 * mips-tdep.c (mips_register_to_value): Ditto.
3760 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3762 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3764 * findvar.c (value_of_register): Mark the value as unavailable, if
3765 the register is unavailable.
3766 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3767 (frame_register): New `unavailablep' parameter.
3768 (frame_register_read): Update comment.
3769 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3770 Set it if the register is unavailable. If the register is
3771 unavailable, clear the output buffer.
3772 (frame_register): New `unavailablep' parameter. Pass it down.
3773 (frame_unwind_register): Adjust.
3774 (put_frame_register): Adjust.
3775 (frame_register_read): Adjust. Also return false if the register
3777 (frame_register_unwind_location): Adjust.
3778 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3779 is unavailable, mark the value accordingly.
3780 * stack.c (frame_info): Handle unavailable registers.
3782 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3784 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3785 simplify, using regcache_cooked_read.
3787 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3789 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3790 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3791 (regcache_raw_read_unsigned, regcache_raw_read_part)
3792 (regcache_cooked_read, regcache_cooked_read_signed)
3793 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3794 (regcache_cooked_read_ftype): Change return to enum
3796 * regcache.c: Include exceptions.h
3797 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3798 (do_cooked_read): Change return to enum register_status. Always
3799 forward to regcache_cooked_read.
3800 (regcache_raw_read): Change return to enum register_status. If
3801 the register is not REG_VALID, memset the buffer. Return the
3803 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3804 return the register's status.
3805 (regcache_raw_read_unsigned): Ditto.
3806 (regcache_cooked_read): Change return to enum register_status.
3807 Assert that with read-only regcaches, the register's status must
3808 be known. If the regcache is read-only, and the register is not
3809 REG_VALID, memset the buffer. Return the register's status.
3810 (regcache_cooked_read_signed): Change return to enum
3811 register_status. Handle non-REG_VALID registers and return the
3813 (regcache_cooked_read_unsigned): Change return to enum
3814 register_status. Handle non-REG_VALID registers and return the
3816 (regcache_xfer_part, regcache_raw_read_part)
3817 (regcache_cooked_read_part): Change return to enum
3818 register_status. Return the register's status.
3819 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3821 (regcache_dump): Handle unavailable cooked registers.
3822 * frame.c (do_frame_register_read): Adjust interface to match
3823 regcache_cooked_read_ftype.
3824 * gdbarch.sh (pseudo_register_read): Change return to enum
3826 * gdbarch.h, gdbarch.c: Regenerate.
3828 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3830 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3831 register_status. If reading a raw register indicates the raw
3832 register is not valid, return the raw register's status,
3833 otherwise, return REG_VALID.
3834 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3835 register_status. Handle non-REG_VALID raw registers and return
3836 the register's status.
3837 * arm-tdep.c (arm_neon_quad_read)
3838 (arm_pseudo_read): Change return to enum register_status. Handle
3839 non-REG_VALID raw registers and return the register's status.
3840 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3841 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3842 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3843 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3844 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3846 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3847 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3848 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3849 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3850 (m32c_pseudo_register_read): Change return to enum
3851 register_status. Adjust.
3852 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3853 enum register_status. Return the register's status.
3854 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3855 register_status. Return the register's status.
3856 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3857 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3858 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3859 * rs6000-tdep.c (move_ev_register_func): New typedef.
3860 (e500_move_ev_register): Use it. Change return to enum
3861 register_status. Return the register's status.
3862 (do_regcache_raw_read): New function.
3863 (do_regcache_raw_write): New function.
3864 (e500_pseudo_register_read): Change return to enum
3865 register_status. Return the register's status. Use
3866 do_regcache_raw_read.
3867 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3868 (dfp_pseudo_register_read): Change return to enum register_status.
3869 Return the register's status.
3870 (vsx_pseudo_register_read): Ditto.
3871 (efpr_pseudo_register_read): Ditto.
3872 (rs6000_pseudo_register_read): Ditto.
3873 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3874 register_status. Return the register's status.
3875 * sh64-tdep.c (pseudo_register_read_portions): New function.
3876 (sh64_pseudo_register_read): Change return to enum
3877 register_status. Use pseudo_register_read_portions. Return the
3879 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3880 register_status. Return the register's status.
3881 * sh-tdep.c (pseudo_register_read_portions): New function.
3882 (sh_pseudo_register_read): Change return to enum register_status.
3883 Use pseudo_register_read_portions. Return the register's status.
3884 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3885 enum register_status. Return the register's status.
3886 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3887 * spu-tdep.c (spu_pseudo_register_read_spu)
3888 (spu_pseudo_register_read): Ditto.
3889 * xtensa-tdep.c (xtensa_register_read_masked)
3890 (xtensa_pseudo_register_read): Ditto.
3891 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3893 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3895 * python/py-value.c (valpy_getitem): Fix formatting of error function
3898 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3900 ARI fixes: Add missing internationalization markups throughout
3902 * darwin-nat-info.c: Ditto.
3905 * mi/mi-main.c: Ditto.
3907 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3909 ARI fixes: Add missing internationalization markups throughout
3912 * cp-name-parser.y: Ditto.
3915 * objc-exp.y: Ditto.
3918 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3920 ARI fixes: Messages should have no trailing new lines.
3921 * darwin-nat.c (mach_check_error): Remove trailing new line from
3922 warning function call message.
3923 * record.c (bfdcore_read): Idem for error call.
3925 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3927 * common/signals.c (target_signal_from_host): Add _ markup to error
3928 function call message.
3929 (target_signal_to_host): Add _ markup and remove trailing new line
3930 from warning call message.
3931 (target_signal_from_command): Add _ markup to error function call
3934 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3938 * python/python.c (gdbpy_write): Accept a stream argument and
3939 operate to the appropriate stream.
3940 (gdbpy_flush): Likewise.
3941 (_initialize_python): Add stream constants.
3942 (finish_python_initialization): Add GdbOutputErrorFile class.
3944 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3946 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3948 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3950 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3951 to store_signed_integer. Add debug message when relocating CALL
3952 instructions. Fix formatting of debug message.
3953 * i386-tdep.c (i386_relocate_instruction): Ditto.
3955 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3957 * target.h (struct target_ops): Remove to_lookup_symbol field.
3958 (target_lookup_symbol): Delete macro.
3959 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3960 (update_current_target, setup_target_debug): Remove handling
3961 of to_lookup_symbol target_ops field.
3962 * ada-tasks.c (get_known_tasks_addr): Remove use of
3963 target_lookup_symbol.
3964 * coffread.c (coff_symtab_read): Likewise.
3965 * dbxread.c (read_dbx_symtab): Ditto.
3967 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3970 * configure.ac: Add getthrds declaration check.
3971 * configure, config.in: Regenerate.
3972 * aix-thread.c (getthrds): Declare only if not already declared
3973 in procinfo.h. More declaration out of get_signaled_thread to
3976 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3978 * python/py-symtab.c: Populate symtab_object_methods,
3980 (stpy_is_valid): New function.
3981 (salpy_is_valid): Ditto.
3982 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3983 (sympy_is_valid): New function.
3984 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3985 (objfpy_is_valid): New function.
3986 * python/py-inferior.c: Populate inferior_object_methods.
3987 (infpy_is_valid): New function.
3988 * python/py-infthread.c: Populate thread_object_methods.
3989 (thpy_is_valid): New function.
3990 * python/py-block.c: Declare block_object_methods. Populate. Declare
3991 block_iterator_object_methods. Populate.
3992 (blpy_is_valid): New function.
3993 (blpy_iter_is_valid): Ditto.
3995 2011-03-16 Keith Seitz <keiths@redhat.com>
3997 * linespec.c (find_methods): Canonicalize NAME before looking
3999 (name_end): New function.
4000 (keep_name_info): New function.
4001 (decode_line_1): Use keep_name_info.
4002 (decode_compound): Likewise.
4003 * cli/cli-utils.h (remove_trailing_whitespace): New function.
4004 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
4007 * linespec.c (locate_first_half): Keep overload information, too.
4008 (decode_compound): Use a string to represent break characters
4010 If P points to a break character, do not increment it.
4011 For C++ and Java, keep overload information and relevant keywords.
4012 If we cannot find a symbol, search the minimal symbols.
4015 * linespec.c (decode_compound): Rename SAVED_ARG to
4017 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
4019 Pass a valid block to lookup_symbol.
4020 (lookup_prefix_sym): Likewise.
4021 (find_method): Construct search name based on SYM_CLASS instead
4023 * psymtab.c (lookup_partial_symbol): Add language parameter.
4024 (lookup_symbol_aux_psymtabs): Likewise.
4025 Don't assume that the psymtab we found was the right one. Search
4026 for the desired symbol in the symtab to be certain.
4027 (psymtab_search_name): New function.
4028 (lookup_partial_symbol): Use psymtab_search_name.
4029 Add language parameter.
4030 (read_symtabs_for_function): Add language parameter and pass to
4031 lookup_partial_symbol.
4032 (find_symbol_file_from_partial): Likewise.
4034 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
4037 * dwarf2read.c (noop_record_line): New function.
4038 (dwarf_decode_lines): Ignore line tables for GCd functions.
4040 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4042 Fix ARI warnings about new lines at the end of messages, which
4043 are unneeded as there is a new line added at the end of the message
4045 * darwin-nat.c (darwin_stop_inferior): Ditto.
4046 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
4047 * dfp.c (decimal_to_number): Ditto.
4048 * exec.c (print_section_info): Ditto.
4049 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
4050 * osdata.c (get_osdata): Ditto.
4051 * record.c (bfdcore_write): Ditto.
4052 * remote-mips.c (mips_readchar): Ditto.
4053 * remote.c (read_ptid): Ditto.
4054 * ser-mingw.c (ser_windows_raw): Ditto.
4055 * tracepoint.c (add_local_symbols): Ditto.
4056 * windows-nat.c (fake_create_process): Ditto.
4058 2011-03-16 Tom Tromey <tromey@redhat.com>
4060 * tracepoint.c (stop_tracing): Don't declare.
4061 * event-top.c (after_char_processing_hook): Add `(void)'.
4063 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
4065 * NEWS: Add Parameter sub-classing description.
4067 2011-03-16 Kai Tietz <ktietz@redhat.com>
4069 * MAINTAINERS: Update my e-mail address.
4071 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
4073 * MAINTAINERS: Add myself for write after approval privileges.
4075 2011-03-15 Michael Snyder <msnyder@vmware.com>
4077 * frame.c (find_frame_sal): Assert sym is not null.
4079 * dbxread.c (process_one_symbol): Assert 'name' is not null.
4081 * objc-lang.c (selectors_info): Check strchr for null result.
4083 * stabsread.c (define_symbol): Guard against bad stabstring input.
4085 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4087 Remove trailing spaces and tabulations from pascal language
4092 p-valprint.c: Ditto.
4094 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4096 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
4097 than LOW. Comment it.
4098 (read_partial_die): Call complaint for inappropriate zero LOWPC or
4099 HIGHPC not strictly higher than LOWPC.
4101 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4103 Fix formatting of function declarations returning a pointer in
4105 * varobj.c (varobj_add_child): Ditto.
4106 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
4107 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
4109 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
4111 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
4112 for the "generic" vector ABI used with GCC 4.3 and later.
4113 (ppc64_sysv_abi_return_value): Likewise.
4115 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
4117 * infcall.c (call_function_by_hand): Function return value is
4118 always a non_lval, even when using struct_return.
4120 2011-03-15 Pedro Alves <pedro@codesourcery.com>
4122 * printcmd.c (ALL_DISPLAYS_SAFE): New.
4123 (map_display_numbers): New.
4124 (do_delete_display): New.
4125 (undisplay_command): Use map_display_numbers.
4126 (do_enable_disable_display): New.
4127 (enable_disable_display_command): New function.
4128 (enable_display): Delete.
4129 (enable_display_command): New.
4130 (disable_display_command): Reimplement.
4131 (_initialize_printcmd): Adjust "enable display" command to use
4132 `enable_display_command' as callback.
4134 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4136 * NEWS: Add Python breakpoint 'stop' operation.
4138 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4140 * NEWS: Delete duplicate entry. Fix typo.
4142 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4144 Fix ARI warning about function names in first column.
4145 Put prototype declaration on same line as return type.
4146 * objc-exp.y: Ditto.
4148 * python/py-stopevent.h: Ditto.
4149 For long function names, split parameters to
4150 allow function name on same line as return type.
4151 * solib-pa64.c: Ditto.
4154 For long function declaration, use single line.
4155 * hppa-tdep.h: Ditto.
4156 * inferior.h: Ditto.
4158 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4160 * python/python.h: Declare gdbpy_should_stop and
4161 gdbpy_breakpoint_has_py_cond.
4162 * python/python.c: Add python.h to includes. Remove python.h from
4163 HAVE_PYTHON definition
4164 (gdbpy_should_stop): New dummy function.
4165 (gdbpy_breakpoint_has_py_cond): New dummy function.
4166 * python/py-breakpoint.c (bppy_init): Rewrite to allow
4167 sub-classing capabilities.
4168 (gdbpy_should_stop): New function.
4169 (gdbpy_breakpoint_has_py_cond): New function.
4170 (local_setattro): New function.
4171 * breakpoint.c (condition_command): Add check for Python 'stop'
4173 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
4174 operation function as part of stop/continue tests.
4176 2011-03-14 Tom Tromey <tromey@redhat.com>
4179 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
4180 (needs_frame_dwarf_call): Likewise.
4182 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4184 Fix ARI warning about functions without parameters that do not
4186 * breakpoint.c (all_tracepoints): Replace () by (void).
4187 * f-exp.y (match_string_literal): Ditto.
4189 * m2-exp.y (yylex): Ditto.
4190 * mep-tdep.c (current_me_module): Ditto.
4191 (current_options): Ditto.
4192 (current_cop_data_bus_width): Ditto.
4193 (current_cr_names): Ditto.
4194 (current_cr_is_float): Ditto.
4195 (current_ccr_names): Ditto.
4196 * objc-exp.y (yylex): Ditto.
4197 * p-exp.y (yylex): Ditto.
4198 * remote.c (send_interrupt_sequence): Ditto.
4199 * tracepoint.c (current_trace_status): Ditto.
4200 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
4201 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
4203 2011-03-11 Michael Snyder <msnyder@vmware.com>
4205 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
4206 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
4207 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
4208 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
4209 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
4211 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
4212 (delete_async_event_handler): Ditto.
4214 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
4216 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
4218 * top.c (set_verbose): Assert showcmd was found.
4220 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
4222 * xtensa-tdep.c (warning_once): Correct style issues.
4224 2011-03-11 Yao Qi <yao@codesourcery.com>
4226 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
4228 2011-03-11 Andreas Schwab <schwab@redhat.com>
4230 * common/aclocal.m4: Remove.
4232 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4234 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
4235 (xtensa_write_register, xtensa_read_register): Likewise.
4236 (xtensa_hextochar): Removed.
4237 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
4239 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4241 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
4242 (xtensa_call0_frame_cache_t): Update comments. New fields added.
4243 (xtensa_alloc_frame_cache): Add initialization for new fields.
4244 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
4245 (warning_once): New function.
4246 (xtensa_insn_kind): New item c0opc_and.
4247 (call0_classify_opcode): Add the case for AND instruction.
4248 (call0_track_op): Change arguments. New local variable litbase.
4249 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
4250 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
4252 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
4253 (call0_analyze_prologue): Update the comments. Change arguments.
4254 Add the variety of updates to handle extended prologues, which now can
4255 conduct dynamic stack adjustments.
4256 (call0_frame_cache): Likewise.
4257 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
4258 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4260 2011-03-10 Michael Snyder <msnyder@vmware.com>
4262 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4263 (cmd_qtframe): Ditto.
4264 (cmd_qtbuffer): Ditto.
4265 (cmd_bigqtbuffer): Ditto.
4267 2011-03-10 Tom Tromey <tromey@redhat.com>
4269 * tracepoint.c (trace_actions_command): Update.
4270 * thread.c (thread_apply_command): Update.
4271 * reverse.c (delete_bookmark_command): Update.
4272 (bookmarks_info): Update.
4273 * printcmd.c (undisplay_command): Update.
4274 * memattr.c (mem_enable_command): Update.
4275 (mem_disable_command): Update.
4276 (mem_delete_command): Update.
4277 * inferior.c (detach_inferior_command): Update.
4278 (kill_inferior_command): Update.
4279 (remove_inferior_command): Update.
4280 * cli/cli-utils.h (struct get_number_or_range_state): New.
4281 (init_number_or_range): Declare.
4282 (get_number_or_range): Update.
4283 * cli/cli-utils.c (init_number_or_range): New function.
4284 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
4286 (number_is_in_list): Update.
4287 * breakpoint.h (get_tracepoint_by_number): Update.
4288 * breakpoint.c (map_breakpoint_numbers): Update for change to
4289 get_number_or_range.
4290 (find_location_by_number): Use get_number, not
4291 get_number_or_range.
4292 (trace_pass_set_count): New function.
4293 (trace_pass_command): Update for change to get_number_or_range.
4295 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4298 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
4300 * python/py-param.c (add_setshow_generic): Add set/show callback
4301 parameters. Register Python object context.
4302 (get_show_value): New function.
4303 (get_set_value): New function.
4304 (call_doc_function): New function.
4305 (get_doc_string): Move behind get_show_value/get_set_value.
4307 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
4309 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4311 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
4313 * xtensa-tdep.c (xtensa_read_register): Add comment.
4314 (xtensa_write_register): Likewise.
4315 (xtensa_hextochar): Add comment and update to match coding conventions.
4316 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4317 (execute_l32e, execute_s32e, execute_code): Update comments.
4318 (xtensa_exception_handler_t): Update to match coding conventions.
4319 (xtensa_insn_kind): Likewise.
4321 2011-03-09 Michael Snyder <msnyder@vmware.com>
4323 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4325 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4327 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4329 2011-03-09 Tom Tromey <tromey@redhat.com>
4331 * thread.c (restore_selected_frame): Handle frame_level == -1.
4332 (make_cleanup_restore_current_thread): Use
4333 get_selected_frame_if_set.
4334 * frame.h (get_selected_frame_if_set): Declare.
4335 * frame.c (get_selected_frame_if_set): New function.
4337 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4339 * cli/cli-cmds.c (shell_escape): Use lbasename.
4340 * coffread.c (coff_start_symtab): Constify parameter.
4341 (complete_symtab): Constify `name' parameter.
4342 (coff_symtab_read): Constify `filestring' local.
4343 (coff_getfilename): Constify return and `result' local.
4345 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4346 * linux-fork.c (info_checkpoints_command): Use lbasename.
4347 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4348 * minsyms.c (lookup_minimal_symbol): Use lbasename.
4349 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4350 * procfs.c (procfs_make_note_section): Use lbasename.
4351 * tui/tui-io.c (printable_part): Constity return and parameter.
4353 (print_filename): Constify parameters, and local `s'.
4354 (tui_rl_display_match_list): Constify local `temp'.
4356 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4359 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4360 Fix DWARF-3+ DW_AT_accessibility default assumption.
4361 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4362 cu->header.version >= 3.
4364 2011-03-09 Yao Qi <yao@codesourcery.com>
4366 * common/Makefile.in: Remove.
4367 * common/configure: Remove.
4368 * common/configure.ac: Remove.
4370 2011-03-09 Yao Qi <yao@codesourcery.com>
4373 2011-02-11 Yao Qi <yao@codesourcery.com>
4375 * common/Makefile.in: Add copyright header.
4377 2011-02-11 Yao Qi <yao@codesourcery.com>
4379 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4381 * configure.ac: Add common to sub dir.
4382 * configure: Regenerate.
4384 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4386 * xtensa-tdep.c (call0_ret): New function.
4387 (xtensa_skip_prologue): Speed up analysis.
4389 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4391 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
4392 while executing MI command -data-list-changed-registers.
4394 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4396 * xtensa-tdep.c (xtensa_read_register): New function.
4397 (xtensa_write_register): New function.
4398 (xtensa_find_register_by_name): New function.
4399 (xtensa_windowed_frame_cache): Update comments in type description.
4400 (xtensa_frame_cache): Likewise.
4401 (xtensa_window_interrupt_insn): New function.
4402 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
4403 (xtensa_insn_kind): Add new instructions.
4404 (rwx_special_register): New function.
4405 (call0_classify_opcode): Add new instructions to the analysis.
4406 (a0_saved, a7_saved, a11_saved): New variables.
4407 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
4408 (execute_l32e): New function.
4409 (execute_s32e): New function.
4410 (xtensa_exception_handler_t): New type.
4411 (execute_code): New function.
4412 (xtensa_window_interrupt_frame_cache): New function to conduct frame
4413 analysis for Xtensa Window Exception handlers.
4415 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4417 * xtensa-tdep.c (TX_PS): New.
4418 (windowing_enabled): Update to count for Call0 ABI.
4419 (xtensa_hextochar): New.
4420 (xtensa_init_reggroups): Make algorithm generic.
4421 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4423 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4425 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4427 2011-03-08 Michael Snyder <msnyder@vmware.com>
4429 * i386-tdep.c (i386_follow_jump): Check return value of
4431 (i386_analyze_struct_return): Ditto.
4432 (i386_skip_probe): Ditto.
4433 (i386_match_insn): Ditto.
4434 (i386_skip_noop): Ditto.
4435 (i386_analyze_frame_setup): Ditto.
4436 (i386_analyze_register_saves): Ditto.
4437 (i386_skip_prologue): Ditto.
4438 (i386_skip_main_prologue): Ditto.
4440 * target.c (read_whatever_is_readable): Fix memory leak.
4442 * i386-tdep.c (i386_process_record): Document fall through.
4444 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4446 Fix DWARF-3+ DW_AT_accessibility default assumption.
4447 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4448 cu->header.version >= 3.
4450 2011-03-08 Pedro Alves <pedro@codesourcery.com>
4452 * remote.c (remote_check_symbols): Skip if the target has no
4455 2011-03-08 Joel Brobecker <brobecker@adacore.com>
4457 * target.c (read_whatever_is_readable): Reformat comment,
4458 with a minor typo fix. Minor reformatting of the code.
4460 2011-03-08 Yao Qi <yao@codesourcery.com>
4462 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4463 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4464 Use cached result instead of calling displaced_in_arm_mode again.
4465 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4466 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4467 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4468 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4469 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4470 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4471 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4472 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4473 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4474 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4475 (arm_catch_kernel_helper_return): Likewise.
4476 * gdb/arm-tdep.h : Update function declarations.
4478 2011-03-07 Michael Snyder <msnyder@vmware.com>
4480 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4482 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4484 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4486 * elfread.c (elf_symtab_read): Stop memory leak.
4488 * main.c (captured_main): Fix memory leak.
4490 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
4492 * ada-lang.c (compare_names): Call is_name_suffix with string1
4495 2011-03-07 Tom Tromey <tromey@redhat.com>
4497 * xcoffread.c (xcoff_sym_fns): Update.
4498 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4499 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4500 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4501 (symbol_file_add_with_addrs_or_offsets): Likewise.
4502 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4503 * somread.c (som_sym_fns): Update.
4504 * psymtab.h (require_partial_symbols): Declare.
4505 * psymtab.c (require_partial_symbols): New function.
4506 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4507 (ALL_OBJFILE_PSYMTABS): Undef.
4508 (ALL_PSYMTABS): Move from psympriv.h.
4509 (lookup_partial_symtab, find_pc_sect_psymtab)
4510 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4511 (find_last_source_symtab_from_partial)
4512 (forget_cached_source_info_partial)
4513 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4514 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4515 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4516 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4517 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4518 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4519 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4520 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4521 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4523 * mipsread.c (ecoff_sym_fns): Update.
4524 * machoread.c (macho_sym_fns): Update.
4525 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4526 (read_psyms): New function.
4527 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4528 (elf_sym_fns_lazy_psyms): New global.
4529 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4530 dwarf2_build_psymtabs.
4531 * dbxread.c (aout_sym_fns): Update.
4532 * coffread.c (coff_sym_fns): Update.
4534 2011-03-07 Tom Tromey <tromey@redhat.com>
4536 * infrun.c (print_exited_reason): Include inferior id and pid in
4539 2011-03-07 Tom Tromey <tromey@redhat.com>
4541 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4543 (target_has_execution_1): Update.
4544 (target_has_execution_current): Declare.
4545 (target_has_execution): Call target_has_execution_current.
4546 (default_child_has_execution): Update.
4547 * target.c (default_child_has_execution): Add 'the_ptid'
4549 (target_has_execution_1): Likewise.
4550 (target_has_execution_current): New function.
4551 (add_target): Update.
4552 (init_dummy_target): Update.
4553 * remote-m32r-sdi.c (m32r_has_execution): New function.
4554 (init_m32r_ops): Use it.
4555 * record.c (record_core_has_execution): Now static. Add
4556 'the_ptid' parameter.
4557 * inferior.c (have_live_inferiors): Don't save current thread.
4558 Use target_has_execution_1.
4560 2011-03-07 Yao Qi <yao@codesourcery.com>
4562 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4564 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4566 * elfread.c (elf_symtab_read): Minor reformatting.
4568 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4570 * objc-lang.c (selectors_info): Minor reformatting.
4572 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4574 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4576 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4577 Michael Snyder <msnyder@vmware.com>
4579 * ada-valprint.c (ada_val_print_array): Move the declaration of
4580 "byte_order" and "elttype" inside the block where these variables
4581 are actually used. Remove some special handling for the case
4582 where "elttype" and "eltlen" are null. Replace by a comment
4583 and a couple of assertion checks.
4585 2011-03-05 Michael Snyder <msnyder@vmware.com>
4587 * source.c (add_path): Replace semicolon at end of block.
4588 * dwarf2expr.c (execute_stack_op): Ditto.
4590 2011-03-05 Mike Frysinger <vapier@gentoo.org>
4592 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4593 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4594 (bfin-*-*): Likewise.
4596 2011-03-05 Michael Snyder <msnyder@vmware.com>
4598 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4599 * mdebugread.c (parse_symbol): Ditto.
4600 * parse.c (parse_exp_in_context): Ditto.
4601 * source.c (add_path): Ditto.
4602 * utils.c (gnu_debuglink_crc32): Ditto.
4603 * varobj.c (variable_language): Ditto.
4605 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4607 2011-03-04 Michael Snyder <msnyder@vmware.com>
4609 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4611 * symfile.c (simple_overlay_update): Check for null return value
4612 from lookup_minimal_symbol.
4614 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4616 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4618 * eval.c (parse_and_eval_address_1): Remove function.
4619 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4620 instead of parse_and_eval_address_1.
4621 * value.h (parse_and_eval_address_1): Remove prototype.
4623 2011-03-04 Michael Snyder <msnyder@vmware.com>
4625 * remote.c (putpkt_binary): Document that case stmt falls through.
4627 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4629 * breakpointc (print_it_typical): Move NULL check from here...
4630 (print_bp_stop_message): ... to here.
4632 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4634 * breakpoint.c (enable_command): Use break instead of continue,
4635 and fill in a missing break.
4636 (disable_command): Ditto.
4638 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4640 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4641 (terminal_save_ours): Remove misleading comment.
4642 (inflow_inferior_data_cleanup): Free ttystate.
4643 (inflow_inferior_exit): Likewise.
4644 (copy_terminal_info): Copy ttystate.
4646 * serial.c (serial_copy_tty_state): New function.
4647 * serial.h (serial_copy_tty_state): Add prototype.
4648 (struct serial_ops): Add copy_tty_state callback.
4649 * ser-base.c (ser_base_copy_tty_state): New function.
4650 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4651 * ser-go32.c (dos_copy_tty_state): New function.
4652 (dos_ops): Install copy_tty_state callback.
4653 * ser-mingw.c (_initialize_ser_windows): Likewise.
4654 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4655 * ser-unix.c (hardwire_copy_tty_state): New function.
4656 (_initialize_ser_hardwire): Install it.
4658 2011-03-04 Michael Snyder <msnyder@vmware.com>
4660 * breakpoint.c (create_breakpoint): Add missing break statement.
4662 Reverting this patch:
4663 * infcall.c (call_function_by_hand): Add break statements for lint.
4665 Reverting this patch:
4666 * cli/cli-script.c (script_from_file): Add break for lint.
4668 2011-03-04 Michael Snyder <msnyder@vmware.com>
4670 * solib.c (reload_shared_libraries_1): Close memory leak.
4672 2011-03-03 Tom Tromey <tromey@redhat.com>
4675 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4678 2011-03-03 Michael Snyder <msnyder@vmware.com>
4680 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4681 fields of struct 'st' to zero.
4683 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4684 sal.pspace before calling set_current_source_symtab_and_line.
4686 2011-03-03 Yao Qi <yao@codesourcery.com>
4688 * Makefile.in (configure-common): Remove. Let Makefile
4689 in dir common to rebuild itself.
4690 (common/Makefile): Likewise.
4692 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4694 * utils.c (parse_escape): Add i18n markup in error message.
4696 2011-03-03 Yao Qi <yao@codesourcery.com>
4698 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4700 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4701 (displaced_write_reg, displaced_read_reg): Likewise.
4702 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4703 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4704 (cleanup_branch): Replace magic number 14 and 15 with
4705 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4707 2011-03-02 Michael Snyder <msnyder@vmware.com>
4709 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4711 * cli/cli-script.c (script_from_file): Add break for lint.
4713 * mdebugread.c (parse_partial_symbols): Fix indent.
4715 * target-descriptions.c (tdesc_gdb_type): No need to call
4716 xstrdup, callee saves a copy.
4718 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4720 * infcall.c (call_function_by_hand): Add break statements for lint.
4722 * utils.c (parse_escape): Escape the escape char.
4724 * python/py-inferior.c (build_inferior_list): Error out if
4725 PyList_Append fails.
4726 (gdbpy_inferiors): Error out if build_inferior_list fails.
4728 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4731 * record.c (record_restore): Move printf to before error return.
4733 2011-03-02 Yao Qi <yao@codesourcery.com>
4735 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4736 is_thumb and insn_size.
4737 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4738 on both ARM and Thumb mode.
4739 (arm_process_displaced_insn): Set is_thumb and insn_size.
4740 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4741 (arm_displaced_step_fixup): Likewise.
4743 2011-03-01 Michael Snyder <msnyder@vmware.com>
4745 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4747 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4749 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4751 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4753 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4756 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4757 which shadows function parameter.
4759 * tracepoint.c (create_tsv_from_upload): Superfluous call
4760 to xstrdup. Callee already calls xstrdup.
4762 * linespec.c (decode_line_1): Remove unnecessary null check.
4764 * tracepoint.c (scope_info): Fix mem leak, remove underused
4767 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4768 superfluous null check.
4770 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4771 (value_of_builtin_frame_fp_reg): Ditto.
4773 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4775 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4778 * linespec.c (decode_line_1): Check for null before dereference.
4780 * reverse.c (record_restore): Move null-check to before pointer
4783 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4785 * objc-lang.c (selectors_info): Add explanitory comment.
4786 (classes_info): Ditto.
4788 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4790 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4791 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4792 versions of the trampoline. Handle Thumb vs. ARM addresses.
4793 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4794 (arm_linux_init_abi): Install it.
4795 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4796 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4798 2011-02-28 Michael Snyder <msnyder@vmware.com>
4800 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4801 a little bigger, to avoid possibility of an overflow.
4803 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4804 buffers a little bigger, to avoid possibility of an overflow.
4806 * coffread.c (coff_getfilename): Add check to avoid overflow.
4808 * objc-lang.c (selectors_info): Add a small safety margin to
4810 (classes_info): Error out on too long REGEXP.
4812 * infrun.c (handle_inferior_event): Remove unused function call.
4814 * fork-child.c (fork_inferior): Remove ifdef'd code and
4817 * linux-thread-db.c (attach_thread): Discard unused value.
4819 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4821 * remote.c (remote_get_noisy_reply): Discard unused value.
4822 (remote_vcont_resume): Ditto.
4823 (remote_stop_ns): Ditto.
4825 * linespec.c (decode_objc): Delete unused variable.
4827 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4829 * dwarf2read.c (add_partial_symbol): Discard unused values.
4830 (read_base_type): Delete unused variable.
4832 * dbxread.c (read_dbx_symtab): Discard unused value.
4834 * eval.c (evaluate_subexp_standard): Delete unused variable,
4835 and discard unused values.
4837 * infcmd.c (_initialize_infcmd): Discard unused values.
4839 * stabsread.c (rs6000_builtin_type): Missing break statement.
4841 * dbxread.c (process_one_symbol): Discard unused value.
4843 * coffread.c (coff_end_symtab): Delete unused variable.
4845 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4846 (dwarf2_add_typedef): Delete unused variable.
4847 (read_namespace): Ditto.
4848 (dwarf_decode_macros): Ditto.
4850 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4852 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4854 * p-valprint.c (pascal_val_print): Discard unused value.
4856 * utils.c (nquery): Call va_end before return;
4860 * proc-service.c (ps_plog): Call va_end before return.
4862 2011-02-28 Tom Tromey <tromey@redhat.com>
4864 * python/python.c (gdbpy_value_cst): New global.
4865 (_initialize_python): Initialize it.
4866 * python/python-internal.h (gdbpy_value_cst): Declare.
4867 * python/py-value.c (convert_value_from_python): Use
4870 2011-02-28 Michael Snyder <msnyder@vmware.com>
4872 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4874 * breakpoint.c (catch_syscall_completer): Free malloced list.
4876 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4878 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4879 (lval_func_check_synthetic_pointer): Ditto.
4880 (lval_func_free_closure): Fix use-after-free.
4882 2011-02-28 Tom Tromey <tromey@redhat.com>
4884 * psymtab.c (expand_partial_symbol_tables): Use
4885 ALL_OBJFILE_PSYMTABS.
4887 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4889 * objc-lang.c (selectors_info): Error on too long REGEXP.
4891 2011-02-28 Michael Snyder <msnyder@vmware.com>
4893 * python/py-param.c (set_parameter_value): Add missing
4896 * linux-record.c (record_linux_system_call): Add missing
4899 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4901 * breakpoint.c (print_one_breakpoint_location): Remove unused
4902 argument PRINT_ADDRESS_BITS. Update callers.
4903 (print_one_breakpoint): Likewise.
4905 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4907 * breakpoint.c (wrap_indent_at_field): New function.
4908 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4909 Allocate ui_stream locally instead of using STB argument.
4910 (print_one_breakpoint_location): Update call.
4911 * ui-out.c (ui_out_query_field): New function.
4912 * ui-out.h (ui_out_query_field): Add prototype.
4914 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4916 From Michael Snyder <msnyder@vmware.com>
4917 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4919 2011-02-27 Michael Snyder <msnyder@vmware.com>
4921 * objc-lang.c (selectors_info): Prevent string overrun.
4923 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4926 * symtab.c (rbreak_command): Move variable 'file_name' to
4929 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4930 param with a local variable of the same name.
4932 2011-02-27 Michael Snyder <msnyder@vmware.com>
4934 * value.c (value_from_history_ref): New function.
4935 * value.h (value_from_history_ref): Export.
4936 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4937 to parse value history references.
4938 * cli/cli-utils.h (get_number_trailer): Update comment.
4940 2011-02-27 Michael Snyder <msnyder@vmware.com>
4942 * inferior.c (detach_inferior_command): Use get_number_or_range.
4943 (kill_inferior_command): Ditto.
4944 (remove_inferior_command): Ditto.
4945 (initialize_inferiors): Make command names plural.
4946 Update help strings.
4948 2011-02-27 Michael Snyder <msnyder@vmware.com>
4950 * darwin-nat-info.c: Fix comment typo.
4951 * dwarf2expr.h: Ditto.
4952 * fbsd-nat.c: Ditto.
4953 * fbsd-nat.h: Ditto.
4954 * frame-unwind.h: Ditto.
4956 * hppa-hpux-tdep.c: Ditto.
4957 * i386-linux-nat.c: Ditto.
4958 * linux-nat.c: Ditto.
4959 * nbsd-nat.c: Ditto.
4960 * nbsd-nat.h: Ditto.
4961 * ppc-linux-tdep.c: Ditto.
4964 * tui/tui-winsource.c: Ditto.
4966 2011-02-26 Michael Snyder <msnyder@vmware.com>
4968 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4970 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4972 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4973 with a local variable of the same name.
4975 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4976 param with a local variable of the same name.
4977 (i387_supply_xsave): Ditto.
4979 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4980 that it does not shadow a function parameter.
4982 * i386-nat.c (i386_length_and_rw_bits): Document that case
4983 statement is meant to fall through.
4985 * expprint.c (dump_subexp_body_standard): Document that case
4986 statement is meant to fall through.
4988 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4989 dead if statement. Condition can't be false.
4991 2011-02-25 Michael Snyder <msnyder@vmware.com>
4993 * arm-tdep.c: Fix typos in comments.
4994 * bsd-uthread.c: Ditto.
4995 * completer.c: Ditto.
4997 * cp-namespace.c: Ditto.
4998 * cp-support.c: Ditto.
4999 * cris-tdep.c: Ditto.
5001 * dwarf2read.c: Ditto.
5003 * gdbtypes.h: Ditto.
5004 * inferior.h: Ditto.
5005 * mdebugread.c: Ditto.
5006 * mips-tdep.c: Ditto.
5007 * ppc-linux-nat.c: Ditto.
5008 * ppc-linux-tdep.c: Ditto.
5009 * printcmd.c: Ditto.
5010 * sol-thread.c: Ditto.
5011 * solib-frv.c: Ditto.
5013 * sparc64-tdep.c: Ditto.
5014 * spu-tdep.c: Ditto.
5015 * stabsread.c: Ditto.
5020 * python/py-block.c: Ditto.
5021 * python/py-symbol.c: Ditto.
5022 * python/py-symtab.c: Ditto.
5023 * python/py-value.c: Ditto.
5024 * tui/tui-win.c: Ditto.
5026 2011-02-25 Michael Snyder <msnyder@vmware.com>
5028 * inferior.c (print_inferior): Accept a string instead of an int
5029 for requested_inferiors, and use get_number_or_range to parse it.
5030 (info_inferiors_command): Pass args string to print_inferior.
5031 (initialize_inferiors): Change help string for info inferiors.
5032 * inferior.h (print_inferior): Export prototype change.
5034 2011-02-25 Tom Tromey <tromey@redhat.com>
5036 * common/ax.def (invalid2): Set to 0x31.
5038 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5040 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
5042 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
5044 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
5046 2011-02-24 Michael Snyder <msnyder@vmware.com>
5048 * Makefile.in (clean): Make clean should remove generated files
5049 observer.h and observer.inc.
5051 2011-02-24 Joel Brobecker <brobecker@adacore.com>
5053 Revert the following patch (not approved yet):
5054 2011-02-21 Hui Zhu <teawater@gmail.com>
5055 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5056 * ax-gdb.c (gen_printf_expr_callback): New function.
5057 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5058 * ax-general.c (ax_memcpy): New function.
5059 (ax_print): Handle "printf".
5061 * ax.h (ax_memcpy): Forward declare.
5062 * common/ax.def (invalid2): Removed.
5063 (printf): New entry.
5064 * printcmd.c (printcmd.h): New include.
5065 (string_printf): New function.
5066 (ui_printf): Removed.
5067 (printf_command): Remove static. Call string_printf.
5068 (eval_command): Call string_printf.
5069 * printcmd.h: New file.
5070 * tracepoint.c (validate_actionline,
5071 encode_actions_1): handle printf_command.
5073 2011-02-23 Tom Tromey <tromey@redhat.com>
5075 * ax-general.c (ax_pick): Add missing newline.
5077 2011-02-23 Michael Snyder <msnyder@vmware.com>
5079 * breakpoint.c (breakpoint_1): Change first argument from an int
5080 to a char pointer, so that the function now accepts a list of
5081 breakpoints rather than just one. Use new function
5082 'number_is_in_list' to implement.
5083 (breakpoints_info): Pass char * instead of int to breakpoint_1.
5084 (watchpoints_info): Ditto.
5085 (tracepoints_info): Ditto.
5086 (maintenance_info_breakpoints): Ditto.
5087 (_initialize_breakpoint): Update help strings to reflect the fact
5088 that these functions can now take more than one argument.
5089 * cli/cli-utils.c (number_is_in_list): New function.
5090 * cli/cli-utils.h (number_is_in_list): Export.
5092 2011-02-23 Michael Snyder <msnyder@vmware.com>
5094 * memattr.c (mem_enable_command): Use get_number_or_range.
5095 (mem_disable_command): Ditto.
5096 (mem_delete_command): Ditto.
5097 (_initialize_mem): Tweak usage message to reflect multiple
5100 2011-02-22 Doug Evans <dje@google.com>
5102 Add gdb.lookup_global_symbol python function.
5104 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
5105 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
5106 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
5108 2011-02-22 Tom Tromey <tromey@redhat.com>
5110 * language.c (language_class_name_from_physname): Rename
5111 'curr_language' argument to 'lang'; use in body.
5113 2011-02-22 Michael Snyder <msnyder@vmware.com>
5115 * cli/cli-utils.c (number_is_in_list): Check for zero return.
5117 2011-02-22 Pedro Alves <pedro@codesourcery.com>
5119 * frame-unwind.h: Fix comment to mention the this frame, not the
5122 2011-02-22 Tom Tromey <tromey@redhat.com>
5124 * symfile.c (auto_solib_limit): Remove.
5125 * symfile.h (auto_solib_limit): Remove.
5127 2011-02-22 Joel Brobecker <brobecker@adacore.com>
5129 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
5131 2011-02-21 Michael Snyder <msnyder@vmware.com>
5133 * gdbthread.h (print_thread_info): Change prototype.
5134 * thread.c (print_thread_info): Accept char* instead of int for
5135 requested_threads argument. Use new function number_is_in_list
5136 to determine which threads to list.
5137 (info_threads_command): Pass char* to print_thread_info.
5138 * cli/cli-utils.c (number_is_in_list): New function.
5139 * cli/cli-utils.h (number_is_in_list): Export.
5140 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
5142 (print_one_inferior): Ditto.
5143 (mi_cmd_list_thread_groups): Ditto.
5145 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5147 * common/Makefile.in (CFLAGS): New.
5148 (COMPILE): Add $(CFLAGS).
5150 2011-02-21 Tom Tromey <tromey@redhat.com>
5152 * breakpoint.c (catch_syscall_command_1): Fix typo.
5154 2011-02-21 Tom Tromey <tromey@redhat.com>
5156 * reverse.c: Include cli-utils.h.
5157 * printcmd.c: Include cli-utils.h.
5158 (string_printf): Use skip_spaces.
5159 * cli/cli-utils.h: New file.
5160 * cli/cli-utils.c: New file.
5161 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
5162 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
5163 * breakpoint.h (get_number, get_number_or_range): Move to
5165 * breakpoint.c: Include cli-utils.h.
5166 (get_number_trailer, get_number, get_number_or_range)
5167 (ep_skip_leading_whitespace): Move to cli-utils.c.
5168 (create_breakpoint_sal, find_condition_and_thread)
5169 (decode_static_tracepoint_spec, watch_command_1)
5170 (watch_maybe_just_location, ep_parse_optional_if_clause)
5171 (catch_fork_command_1, catch_exec_command_1)
5172 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
5173 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
5174 (SUBDIR_CLI_SRCS): Add cli-utils.c.
5175 (HFILES_NO_SRCDIR): Add cli-utils.h.
5176 (cli-utils.o): New target.
5178 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5180 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
5181 before calling discard_all_inferiors.
5183 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5185 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
5186 (struct builtin_opencl_type): Remove.
5187 (builtin_opencl_type): Change return type to "struct type **".
5188 (lookup_opencl_vector_type): Update caller.
5189 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
5190 (build_opencl_types): Install plain array of "struct type *"
5191 instead of "struct builtin_opencl_type".
5193 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5194 Ulrich Weigand <uweigand@de.ibm.com>
5196 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
5197 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
5198 (struct arm_linux_hwbp_cap): New type.
5199 (arm_linux_get_hwbp_cap): New function.
5200 (arm_linux_get_hw_breakpoint_count): Likewise.
5201 (arm_linux_get_hw_watchpoint_count): Likewise.
5202 (arm_linux_can_use_hw_breakpoint): Likewise.
5203 (arm_hwbp_type): New type.
5204 (arm_hwbp_control_t): Likewise.
5205 (struct arm_linux_hw_breakpoint): Likewise.
5206 (struct arm_linux_thread_points): Likewise.
5207 (arm_threads): New global variable.
5208 (arm_linux_find_breakpoints_by_tid): New function.
5209 (arm_hwbp_control_initialize): Likewise.
5210 (arm_hwbp_control_is_enabled): Likewise.
5211 (arm_hwbp_control_disable): Likewise.
5212 (arm_linux_hw_breakpoint_initialize): Likewise.
5213 (arm_linux_get_hwbp_type): Likewise.
5214 (arm_linux_hw_watchpoint_initialize): Likewise.
5215 (arm_linux_hw_breakpoint_equal): Likewise.
5216 (arm_linux_insert_hw_breakpoint1): Likewise.
5217 (arm_linux_remove_hw_breakpoint1): Likewise.
5218 (arm_linux_insert_hw_breakpoint): Likewise.
5219 (arm_linux_remove_hw_breakpoint): Likewise.
5220 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
5221 (arm_linux_insert_watchpoint): Likewise.
5222 (arm_linux_remove_watchpoint): Likewise.
5223 (arm_linux_stopped_data_address): Likewise.
5224 (arm_linux_stopped_by_watchpoint): Likewise.
5225 (arm_linux_watchpoint_addr_within_range): Likewise.
5226 (arm_linux_new_thread): Likewise.
5227 (arm_linux_thread_exit): Likewise.
5228 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
5229 related target callbacks. Register arm_linux_new_thread and
5230 arm_linux_thread_exit.
5231 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
5232 * arm-tdep.c (arm_pc_is_thumb): Make global.
5233 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
5235 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5237 * breakpoint.c (update_watchpoint): Do not attempt to recreate
5238 per-frame locations while within a function epilogue.
5240 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5242 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
5243 to GNU coding standards.
5245 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5247 Allow use of mingw native on Windows 95 OS.
5248 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
5249 (ser_windows_close): Only call CancelIo if function exists.
5250 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
5251 to check for existence of CancelIo function in kernel32 DLL.
5253 2011-02-21 Hui Zhu <teawater@gmail.com>
5255 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5256 * ax-gdb.c (gen_printf_expr_callback): New function.
5257 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5258 * ax-general.c (ax_memcpy): New function.
5259 (ax_print): Handle "printf".
5261 * ax.h (ax_memcpy): Forward declare.
5262 * common/ax.def (invalid2): Removed.
5263 (printf): New entry.
5264 * printcmd.c (printcmd.h): New include.
5265 (string_printf): New function.
5266 (ui_printf): Removed.
5267 (printf_command): Remove static. Call string_printf.
5268 (eval_command): Call string_printf.
5269 * printcmd.h: New file.
5270 * tracepoint.c (validate_actionline,
5271 encode_actions_1): handle printf_command.
5273 2011-02-19 Michael Snyder <msnyder@vmware.com>
5275 * reverse.c (delete_one_bookmark): Argument is now bookmark
5276 id rather than pointer to bookmark struct.
5277 (delete_bookmark_command): Use get_number_or_range.
5278 (goto_bookmark_command): Parse with get_number instead of strtoul.
5279 (bookmark_1): New function. Print info for one bookmark.
5280 (bookmarks_info): Use get_number_or_range and bookmark_1.
5282 2011-02-18 Michael Snyder <msnyder@vmware.com>
5284 * thread.c (info_threads_command): Re-implement using
5285 get_number_or_range.
5286 (thread_apply_command): Ditto.
5288 2011-02-18 Tom Tromey <tromey@redhat.com>
5290 * common/ax.def: New file.
5291 * ax.h (enum agent_op): Use ax.def.
5292 * ax-general.c (aop_map): Use ax.def.
5294 2011-02-18 Tom Tromey <tromey@redhat.com>
5296 * ax-general.c (aop_map): Add pick and rot.
5297 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5298 <DW_OP_rot>: Implement.
5299 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5301 * ax-general.c (ax_pick): New function.
5303 2011-02-18 Tom Tromey <tromey@redhat.com>
5305 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5307 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5308 Tom Tromey <tromey@redhat.com>
5310 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5311 make_symbol_overload_list_block with NULL BLOCK.
5312 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5314 2011-02-18 Pedro Alves <pedro@codesourcery.com>
5316 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5317 * breakpoint.h (get_number_or_range): Declare.
5318 * printcmd.c (ALL_DISPLAYS): Declare.
5319 (delete_display): Reimplement taking a display pointer.
5320 (undisplay_command): Accept a range of displays to delete, using
5321 get_number_or_range.
5323 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5325 * c-valprint.c (c_val_print): Add embedded_offset to address
5326 for arrays of unspecified length.
5327 * p-valprint.c (pascal_val_print): Likewise.
5329 2011-02-18 Yao Qi <yao@codesourcery.com>
5331 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5332 (arm_process_displaced_insn): .. here. Remove parameter INSN.
5333 (thumb_process_displaced_insn): New.
5334 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5335 call to arm_process_displaced_insn.
5336 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5338 2011-02-17 Tom Tromey <tromey@redhat.com>
5340 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5341 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5342 compile_dwarf_to_ax. No longer static. Call
5343 dwarf2_compile_cfa_to_ax.
5344 (locexpr_tracepoint_var_ref): Update.
5345 (loclist_tracepoint_var_ref): Update.
5346 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5347 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5348 argument; add 'gdbarch' and 'pc'.
5349 (dwarf2_compile_cfa_to_ax): New function.
5350 (dwarf2_frame_cache): Update.
5352 2011-02-17 Joel Brobecker <brobecker@adacore.com>
5354 * ada-lang.c (ada_type_of_array): Fix the size of the array
5355 in the case of an unconstrained packed array.
5357 2011-02-17 Yao Qi <yao@codesourcery.com>
5359 * common/Makefile.in: Add more targets for make.
5361 2011-02-16 Tom Tromey <tromey@redhat.com>
5363 * dwarf2loc.c (unimplemented): Fix typo.
5365 2011-02-16 Tom Tromey <tromey@redhat.com>
5367 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5368 (compile_dwarf_to_ax) <default>: Use unimplemented.
5369 <DW_OP_deref>: Update.
5370 (disassemble_dwarf_expression): Update.
5371 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5372 (decode_locdesc): Update.
5373 * dwarf2expr.h (dwarf_stack_op_name): Update.
5375 2011-02-16 Tom Tromey <tromey@redhat.com>
5377 * ax.h (struct aop_map) <name>: Now const.
5379 2011-02-16 Tom Tromey <tromey@redhat.com>
5381 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5384 2011-02-16 Yao Qi <yao@codesourcery.com>
5386 * infrun.c (get_displaced_step_closure_by_addr): New.
5387 * inferior.h: Declare it.
5388 * arm-tdep.c: (arm_pc_is_thumb): Call
5389 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
5392 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5393 Jan Kratochvil <jan.kratochvil@redhat.com>
5396 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
5398 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5399 Jan Kratochvil <jan.kratochvil@redhat.com>
5401 * value.c (value_contents_copy_raw): Extend describing comment.
5402 Assert that the destination contents we're overwriting are wholly
5404 (value_contents_copy): Extend describing comment.
5406 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5407 Jan Kratochvil <jan.kratochvil@redhat.com>
5409 * value.c (value_available_contents_eq): Remove redundant local
5410 variables. Fix available contents comparision.
5411 * value.h (value_available_contents_eq): Extend describing
5414 2011-02-16 Yao Qi <yao@codesourcery.com>
5416 * thread.c (info_threads_command): Add missing i18n markup and remove
5419 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5421 * breakpoint.c (longjmp_names): New variable.
5422 (struct breakpoint_objfile_data): New type.
5423 (breakpoint_objfile_key): New variable.
5424 (msym_not_found): New variable.
5425 (msym_not_found_p): New predicate.
5426 (get_breakpoint_objfile_data): New function.
5427 (create_overlay_event_breakpoint): Check per-objfile cache for
5429 (create_longjmp_master_breakpoint): Likewise.
5430 (create_std_terminate_master_breakpoint): Likewise.
5431 (create_exception_master_breakpoint): Likewise.
5432 (_initialize_breakpoint): Register per-objfile data key.
5434 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5436 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5438 (create_longjmp_master_breakpoint): Loop over longjmp names.
5439 (create_std_terminate_master_breakpoint): Const-propagate parameter
5441 (update_breakpoints_after_exec): Adjust.
5442 (breakpoint_re_set): Adjust.
5444 2011-02-15 Michael Snyder <msnyder@vmware.com>
5446 * thread.c (info_threads_command): Process arg as thread id,
5447 or list of thread ids.
5448 (thread_find_command): New command.
5449 (_initialize_thread): Document argument for info threads.
5450 Document 'thread find' command.
5451 * NEWS: Document new command "thread find".
5453 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5455 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5456 * aclocal.m4: Regenerated with aclocal-1.11.1.
5457 * common/configure: Regenerate with autoconf-2.64.
5459 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
5461 * opencl-lang.c (build_opencl_types): Set the size of the built-in
5462 bool data type to a size of one byte.
5464 2011-02-15 Pedro Alves <pedro@codesourcery.com>
5465 Jan Kratochvil <jan.kratochvil@redhat.com>
5467 * target.c (memory_xfer_live_readonly_partial): Document where to
5468 look for interface description.
5470 2011-02-15 Yao Qi <yao@codesourcery.com>
5473 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5474 order to store PC value on stack instead of text section.
5476 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
5478 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5479 the EFP register set size.
5480 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5481 data from the VMX register.
5482 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5483 and write data from/to the VMX register.
5485 2011-02-14 Michael Snyder <msnyder@vmware.com>
5487 * command.h (enum command_class): New class 'no_set_class', for
5488 "show" commands without a corresponding "set" command.
5489 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5490 * copying.c (_initialize_copying): Ditto for "show copying" and
5492 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5494 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5495 which there is no corresponding "set" command (eg. "show copying").
5497 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5498 Jan Kratochvil <jan.kratochvil@redhat.com>
5500 * exec.c (section_table_available_memory): Change `len' parameter
5502 * exec.h (section_table_available_memory): Ditto.
5503 * value.h (read_value_memory): Rename the `offset' parameter to
5506 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5507 Jan Kratochvil <jan.kratochvil@redhat.com>
5509 * memrange.c (compare_mem_ranges): Mention sort order in
5511 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5512 * tracepoint.c (traceframe_available_memory): Extend comment to
5513 mention what happens to RESULT when the target does not support
5516 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5517 Jan Kratochvil <jan.kratochvil@redhat.com>
5519 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5522 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5524 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5525 No longer handle NULL values.
5527 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5529 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5530 * value.c: Include "exceptions.h".
5531 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5533 * cp-abi.c: Include gdb_assert.h.
5534 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5535 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5537 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5538 parameters. No longer returns -1 on error.
5539 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5541 * cp-valprint.c: Include exceptions.h.
5542 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5543 the baseclass_offset. Handle unavailable base classes. Use
5544 val_print_invalid_address.
5545 * p-valprint.c: Include exceptions.h.
5546 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5547 when fetching the baseclass_offset. No longer expect
5548 baseclass_offset returning -1. Handle unavailable base classes.
5549 Use val_print_invalid_address.
5550 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5551 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5552 `embedded_offset' and `val' parameters. Adjust.
5553 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5554 parameter, and change its type to gdb_byte pointer. Add
5555 `embedded_offset' and `val' parameters. Adjust. No longer expect
5556 baseclass_offset returning -1.
5557 (value_dynamic_cast): Use value_contents_for_printing rather than
5558 value_contents. Adjust.
5559 (search_struct_field): No longer expect baseclass_offset returning
5561 (search_struct_method): If reading memory from the target is
5562 necessary, wrap it in a new value to pass to baseclass_offset. No
5563 longer expect baseclass_offset returning -1.
5564 (find_method_list): No longer expect baseclass_offset returning
5565 -1. Use value_contents_for_printing rather than value_contents.
5566 * valprint.c (val_print_invalid_address): New function.
5567 * valprint.h (val_print_invalid_address): Declare.
5568 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5569 and `val' parameters. No longer expect baseclass_offset returning
5571 * gnu-v2-abi.c: Include "exceptions.h".
5572 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5573 parameters. Handle unavailable memory. Recurse through
5574 gnuv2_baseclass_offset directly, rather than through
5575 baseclass_offset. No longer returns -1 on not found, instead
5577 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5578 `val' parameters. Adjust.
5580 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5582 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5583 almost but not quite adjacent.
5585 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5587 * value.h (value_entirely_available): Declare.
5588 * value.c (value_entirely_available): New function.
5589 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5590 real type if the pointer is unavailable.
5592 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5594 * valops.c (value_repeat): Use read_value_memory instead of
5597 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5599 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5600 * value.c (value_contents_copy_raw, value_contents_copy): New
5602 (value_primitive_field): Use value_contents_copy_raw instead of
5604 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5606 (value_array, value_slice): Ditto.
5607 * valarith.c (value_subscripted_rvalue): Use
5608 value_contents_copy_raw instead of memcpy.
5610 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5612 <unavailable> references.
5614 * valops.c (get_value_at): Use value_from_contents_and_address,
5615 avoiding read_memory.
5617 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5619 * c-valprint.c (c_val_print): Print a string with unavailable
5620 contents as an array.
5622 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5624 * value.h (unpack_bits_as_long): Delete declaration.
5625 (unpack_value_bits_as_long): Declare.
5626 (unpack_value_field_as_long): Declare.
5627 (value_field_bitfield): Declare.
5628 * value.c (unpack_bits_as_long): Rename to...
5629 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5630 value parameters. Return the extracted result in a new output
5631 parameter. If the value contents are unavailable, return false,
5632 otherwise return true.
5633 (unpack_value_bits_as_long): New.
5634 (unpack_field_as_long): Rename to...
5635 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5636 Add embedded_offset and value parameters. Return the extracted
5637 result in a new output parameter. If the value contents are
5638 unavailable, return false, otherwise return true.
5639 (unpack_value_field_as_long): New.
5640 (unpack_field_as_long_1): New.
5641 (unpack_field_as_long): Reimplement as wrapper around
5642 unpack_value_field_as_long_1.
5643 (value_field_bitfield): New function.
5644 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5645 unpack_value_bits_as_long. Mark the value as unavailable, if it
5647 * jv-valprint.c (java_print_value_fields): Use
5648 value_field_bitfield.
5649 * p-valprint.c (pascal_object_print_value_fields): Use
5650 value_field_bitfield.
5651 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5653 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5655 * value.c (get_internalvar_integer): Also return the int value of
5656 TYPE_CODE_INT INTERNALVAR_VALUE values.
5657 (set_internalvar): Don't special case TYPE_CODE_INT.
5659 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5661 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5662 INTERNALVAR_POINTER.
5664 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5665 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5666 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5668 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5670 * value.h (value_available_contents_eq): Declare.
5671 * value.c (find_first_range_overlap): New function.
5672 (value_available_contents_eq): New function.
5673 * valprint.c (val_print_array_elements): Use
5674 value_available_contents_eq.
5675 * ada-valprint.c (val_print_packed_array_elements): Use
5676 value_available_contents_eq.
5677 * jv-valprint.c (java_value_print): Use
5678 value_available_contents_eq.
5680 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5682 * target.c (target_read_live_memory): New function.
5683 (memory_xfer_live_readonly_partial): New.
5684 (memory_xfer_partial): If reading from a traceframe, fallback to
5685 reading unavailable read-only memory from read-only regions of
5687 * tracepoint.c (disconnect_tracing): Adjust.
5688 (set_current_traceframe): New, factored out from
5689 set_traceframe_number.
5690 (set_traceframe_number): Reimplement to only change the traceframe
5691 number on the GDB side.
5692 (do_restore_current_traceframe_cleanup): Adjust.
5693 (make_cleanup_restore_traceframe_number): New.
5694 (cur_traceframe_number): New global.
5695 (tfile_open): Set cur_traceframe_number to no traceframe.
5696 (set_tfile_traceframe): New function.
5697 (tfile_trace_find): If looking up a traceframe using any method
5698 other than by number, make sure the current tfile traceframe
5699 matches gdb's current traceframe. Update the current tfile
5700 traceframe if the lookup succeeded.
5701 (tfile_fetch_registers, tfile_xfer_partial)
5702 (tfile_get_trace_state_variable_value): Make sure the remote
5703 traceframe matches gdb's current traceframe.
5704 * remote.c (remote_traceframe_number): New global.
5705 (remote_open_1): Set it to -1.
5706 (set_remote_traceframe): New function.
5707 (remote_fetch_registers, remote_store_registers)
5708 (remote_xfer_memory, remote_xfer_partial)
5709 (remote_get_trace_state_variable_value): Make sure the remote
5710 traceframe matches gdb's current traceframe.
5711 (remote_trace_find): If looking up a traceframe using any method
5712 other than by number, make sure the current remote traceframe
5713 matches gdb's current traceframe. Update the current remote
5714 traceframe if the lookup succeeded.
5715 * infrun.c (fetch_inferior_event): Adjust.
5716 * tracepoint.h (set_current_traceframe): Declare.
5717 (get_traceframe_number, set_traceframe_number): Add describing
5720 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5722 Mark pieces of values as unavailable if the corresponding memory
5725 * valops.c: Include tracepoint.h.
5726 (value_fetch_lazy): Use read_value_memory.
5727 (read_value_memory): New.
5728 * value.h (read_value_memory): Declare.
5729 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5730 * exec.c (section_table_available_memory): New function.
5731 * exec.h (section_table_available_memory): Declare.
5733 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5735 * Makefile.in (SFILES): Add memrange.c.
5736 (HFILES_NO_SRCDIR): Add memrange.h.
5737 (COMMON_OBS): Add memrange.o.
5738 * memrange.c: New file.
5739 * memrange.h: New file.
5740 * tracepoint.c: Include memrange.h.
5741 (struct mem_range): Delete.
5742 (mem_range_s): Delete.
5743 (traceframe_available_memory): New function.
5744 * tracepoint.h (traceframe_available_memory): Declare.
5746 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5748 * target.h (struct traceframe_info): Forward declare.
5749 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5750 (struct target_ops) <to_traceframe_info>: New field.
5751 (target_traceframe_info): New.
5752 * target.c (update_current_target): Inherit and default
5754 * remote.c (PACKET_qXfer_traceframe_info): New.
5755 (remote_protocol_features): Register qXfer:traceframe-info:read.
5756 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5757 (remote_traceframe_info): New.
5758 (init_remote_ops): Install it.
5759 (_initialize_remote): Install "set/show remote traceframe-info"
5761 * tracepoint.h (parse_traceframe_info): Declare.
5762 * tracepoint.c (struct mem_range): New.
5763 (mem_range_s): New typedef.
5764 (struct traceframe_info): New.
5765 (traceframe_info): New global.
5766 (free_traceframe_info): New function.
5767 (clear_traceframe_info): New function.
5768 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5770 (build_traceframe_info): New function.
5771 (tfile_traceframe_info): New function.
5772 (init_tfile_ops): Install tfile_traceframe_info.
5773 (traceframe_info_start_memory, free_result): New functions.
5774 (memory_attributes, traceframe_info_elements): New globals.
5775 (parse_traceframe_info, get_traceframe_info): New functions.
5776 * features/traceframe-info.dtd: New file.
5777 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5779 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5781 Base support for <unavailable> value contents.
5783 * value.h (value_bytes_available): Declare.
5784 (mark_value_bytes_unavailable): Declare.
5785 * value.c (struct range): New struct.
5786 (range_s): New typedef.
5787 (ranges_overlap): New function.
5788 (range_lessthan): New function.
5789 (ranges_contain_p): New function.
5790 (struct value) <unavailable>: New field.
5791 (value_bytes_available): New function.
5792 (mark_value_bytes_unavailable): New function.
5793 (require_not_optimized_out): Constify parameter.
5794 (require_available): New function.
5795 (value_contents_all, value_contents): Require all bytes be
5797 (value_free): Free `unavailable'.
5798 (value_copy): Copy `unavailable'.
5799 * valprint.h (val_print_unavailable): Declare.
5800 * valprint.c (valprint_check_validity): Rename `offset' parameter
5801 to `embedded_offset'. If printing a scalar, check whether the
5802 value chunk is available.
5803 (val_print_unavailable): New.
5804 (val_print_scalar_formatted): Check whether the value is
5806 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5807 pretty-printing unavailable values.
5809 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5811 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5812 * c-typeprint.c (c_type_print_args): Update the function comment. New
5813 variable param_type, initialize it. Remove const/volatile qualifiers
5814 for language_cplus and !show_artificial. Use param_type.
5816 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5818 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5819 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5820 * symtab.h (struct symtab) <next>: Comment extension.
5822 2011-02-12 Yao Qi <yao@codesourcery.com>
5824 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5826 2011-02-11 Yao Qi <yao@codesourcery.com>
5828 * common/Makefile.in: Add copyright header.
5830 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5832 * infrun.c (proceed): Move switching out and in of tfind mode from
5834 (fetch_inferior_event): ... to here.
5836 2011-02-11 Yao Qi <yao@codesourcery.com>
5838 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5840 * configure.ac: Add common to sub dir.
5841 * configure: Regenerate.
5843 2011-02-11 Yao Qi <yao@codesourcery.com>
5847 * common/Makefile.in: New.
5848 * common/configure.ac: New.
5849 * common/aclocal.m4: New.
5850 * common/configure: Generate.
5852 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5854 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5855 side of the parenthesis.
5858 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5859 * vec.h (VEC_block_remove): Fix comment.
5861 2011-02-08 Michael Snyder <msnyder@vmware.com>
5863 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5865 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5867 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5868 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5871 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5874 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5876 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5877 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5879 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5881 * dwarf2read.c (read_subroutine_type): Set special calling
5882 convention flag for functions compiled by IBM XL C for OpenCL.
5883 * ppc-sysv-tdep.c: Include "dwarf2.h"
5884 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5886 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5887 IBM OpenCL vector types calling convention.
5888 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5889 (ppc_sysv_abi_broken_return_value): Likewise.
5890 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5891 types calling convention.
5892 (ppc64_sysv_abi_return_value): Likewise.
5893 * spu-tdep.c: Include "dwarf2.h"
5894 (spu_return_value): Implement IBM OpenCL vector types calling
5897 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5899 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5900 correct ABI for AltiVec vector arguments.
5902 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5904 * valprint.c (val_print): Extend comment.
5905 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5906 interface explanation to val_print.
5907 (ada_val_print_array): Adjust comment to current interface.
5908 (print_field_values): Adjust comment to current interface.
5909 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5910 explanation to val_print.
5911 * f-valprint.c (f_val_print): Ditto.
5912 * jv-valprint.c (java_val_print): Ditto.
5913 * m2-valprint.c (m2_val_print): Ditto.
5914 * p-valprint.c (pascal_val_print): Ditto.
5916 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5918 * breakpoint.c (parse_breakpoint_sals): Fix description.
5920 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5921 Oguz Kayral <oguzkayral@gmail.com>
5923 * python/py-inferior.c (python_on_normal_stop): New function.
5924 (python_on_resume): New function.
5925 (python_inferior_exit): New function.
5926 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5927 inferior_exit observers.
5928 * python/py-evtregistry.c: New file.
5929 * python/py-threadevent.c : New file.
5930 * python/py-event.c: New file.
5931 * python/py-evts.c: New file.
5932 * python/py-continueevent.c: New file.
5933 * python/py-bpevent.c: New file.
5934 * python/py-signalevent.c: New file.
5935 * python/py-exetiedevent.c: New file.
5936 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5937 Move struct breakpoint_object from here...
5938 * python/python-internal.h: ... to here.
5939 * python/py-event.h: New file.
5940 * python/py-events.h: New file.
5941 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5942 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5943 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5944 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5945 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5946 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5947 Add build rules for all the above.
5949 2011-02-04 Tom Tromey <tromey@redhat.com>
5951 * dwarf2read.c (dwarf2_section_empty_p): New function.
5952 (dwarf2_read_section): Use dwarf2_section_empty_p.
5953 (dwarf2_section_size): New function.
5954 (dwarf2_get_section_info): Unconditionally read section.
5955 (dwarf2_read_index): Use dwarf2_section_empty_p.
5956 (partial_read_comp_unit_head): Use dwarf2_section_size.
5957 (dwarf2_symbol_mark_computed): Likewise.
5959 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5961 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5963 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5965 * mips-linux-tdep.c: Include xml-syscall.h.
5966 (mips_linux_get_syscall_number): New function.
5967 (mips_linux_init_abi): Add calls to
5968 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5969 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5970 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5971 * syscalls/mips-n32-linux.xml: New file.
5972 * syscalls/mips-n64-linux.xml: New file.
5973 * syscalls/mips-o32-linux.xml: New file.
5975 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5977 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5978 Complain about inverted range entries.
5979 (dwarf2_record_block_ranges): Likewise.
5981 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5984 * breakpoint.c (update_watchpoint): Fix name of the
5985 update_global_location_list function.
5986 (print_one_breakpoint): Fix typo.
5987 (_initialize_breakpoint): Remove extra space in hbreak help
5989 * breakpoint.h (struct bp_location) <length>: Fix field
5992 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5994 * regcache.c (registers_changed_ptid): Don't explictly always
5995 clear `current_regcache'. Only clear current_thread_ptid and
5996 current_thread_arch when PTID matches. Only reinit the frame
5997 cache if PTID matches the current inferior_ptid. Move alloca(0)
5999 (registers_changed): ... here.
6001 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
6003 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
6004 starts with __stack_chk_guard as stack guard symbol.
6006 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
6008 * disasm.c (compare_lines): Handle the end of sequence markers
6009 within the line table to better support disassembling over
6010 compilation unit boundaries.
6012 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6014 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
6015 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
6016 implementation even if no symbols are available.
6017 (thumb_analyze_prologue): Update call to skip_prologue_function.
6018 (arm_analyze_prologue): Likewise.
6020 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6022 * arm-tdep.c: Include "observer.h".
6023 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
6024 (arm_exidx_data_key): New static variable.
6025 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
6026 (struct arm_exidx_data): Likewise.
6027 (arm_exidx_data_free): New function.
6028 (arm_compare_exidx_entries): Likewise.
6029 (arm_obj_section_from_vma): Likewise.
6030 (arm_exidx_new_objfile): Likewise.
6031 (arm_find_exidx_entry): Likewise.
6032 (arm_exidx_fill_cache): Likewise.
6033 (arm_exidx_unwind_sniffer): Likewise.
6034 (arm_exidx_unwind): New global variable.
6035 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
6036 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
6037 observer. Register arm_exidx_data_key as objfile data.
6039 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6041 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
6042 due to accessing uninitialized variable. Fix indentation.
6044 2011-02-02 Pedro Alves <pedro@codesourcery.com>
6046 * c-valprint.c (c_value_print): When doing virtual base pointer
6047 adjustment, create a new value with adjusted contents rather than
6048 changing the contents of the value being printed (and getting it
6051 2011-02-02 Pedro Alves <pedro@codesourcery.com>
6053 * xml-support.c (xml_find_attribute): New.
6054 (xinclude_start_include): Use it.
6055 * xml-support.h (xml_find_attribute): Declare.
6056 * memory-map.c (memory_map_start_memory)
6057 (memory_map_start_property): Use xml_find_attribute.
6058 * osdata.c (osdata_start_osdata, osdata_start_column): Use
6060 * remote.c (start_thread): Use xml_find_attribute.
6061 * solib-target.c (library_list_start_segment)
6062 (library_list_start_section, library_list_start_library)
6063 (library_list_start_list): Use xml_find_attribute.
6064 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
6065 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
6066 (tdesc_start_field): Use xml_find_attribute.
6068 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
6070 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
6071 (BUILD_OCL_VTYPES): Update.
6073 2011-02-02 Joel Brobecker <brobecker@adacore.com>
6075 * configure.ac: Work around non-GNU sed limitation when computing
6076 python version number.
6077 * configure: Regenerate.
6079 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6081 Fix debug printing of TYPE_INSTANCE.
6082 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
6083 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
6085 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6087 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
6088 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
6089 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
6090 * ada-operator.inc: Rename the file to ...
6091 * ada-operator.def: ... here, wrap all the entries by macro OP.
6092 * expprint.c (op_name_standard): Remove all the entries. Include
6093 "std-operator.def" instead.
6094 * expression.h (enum exp_opcode): Include "std-operator.def" and
6095 "ada-operator.def". Move all the entries ...
6096 * std-operator.def: ... here, wrap all the entries by macro OP.
6098 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6100 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
6101 * breakpoint.c (remove_jit_event_breakpoints): New function.
6102 * jit.c (jit_descriptor_addr): Delete.
6103 (registering_code): Delete.
6104 (clear_int): Delete.
6105 (jit_inferior_data): New variable.
6106 (struct jit_inferior_data): New type.
6107 (get_jit_inferior_data): New function.
6108 (jit_inferior_data_cleanup): New function.
6109 (jit_read_descriptor): Adjust.
6110 (jit_register_code): Adjust.
6111 (jit_breakpoint_re_set_internal): New function; move code here ...
6112 (jit_inferior_init): ... from here.
6113 (jit_breakpoint_re_set): Adjust.
6114 (jit_reset_inferior_data_and_breakpoints): New function.
6115 (jit_inferior_created_observer): Adjust.
6116 (jit_inferior_exit_hook): Adjust.
6117 (jit_executable_changed_observer): New function.
6118 (jit_event_handler): Adjust.
6119 (_initialize_jit): Adjust.
6121 2011-01-31 Michael Snyder <msnyder@vmware.com>
6123 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
6126 2011-01-31 Tom Tromey <tromey@redhat.com>
6129 * python/python.c (execute_gdb_command): Call
6130 prevent_dont_repeat.
6131 * top.c (suppress_dont_repeat): New global.
6132 (dont_repeat): Use it.
6133 (prevent_dont_repeat): New function.
6134 * command.h (prevent_dont_repeat): Declare.
6136 2011-01-31 Tom Tromey <tromey@redhat.com>
6138 * infcmd.c (finish_backward): Use breakpoint_set_silent.
6139 * python/py-breakpoint.c (bppy_set_silent): Use
6140 breakpoint_set_silent.
6141 (bppy_set_thread): Use breakpoint_set_thread.
6142 (bppy_set_task): Use breakpoint_set_task.
6143 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
6144 (breakpoint_set_task): Declare.
6145 (make_breakpoint_silent): Remove.
6146 * breakpoint.c (breakpoint_set_silent): New function.
6147 (breakpoint_set_thread): Likewise.
6148 (breakpoint_set_task): Likewise.
6149 (make_breakpoint_silent): Remove.
6151 2011-01-31 Tom Tromey <tromey@redhat.com>
6153 * breakpoint.h (user_breakpoint_p): Declare.
6154 * breakpoint.c (user_breakpoint_p): New function.
6155 (breakpoint_1): Use it.
6156 (save_breakpoints): Likewise.
6158 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6160 * configure.ac: Add handling of Python distribution on Windows.
6161 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
6162 sysconfig variables are not defined, then do not use them.
6163 On Windows, if LIBPL is not defined, then use prefix + '/libs'
6164 instead. On Windows, return all paths using forward-slashes
6165 rather than backslashes.
6167 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6169 * configure.ac: Remove fallback behavior for building
6170 against Python. Remove tweaking of Python include path.
6171 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
6172 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
6173 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
6174 Always restore CPPFLAGS and LIBS after linking test.
6175 * configure: Regenerated.
6176 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
6177 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
6178 * python/python-internal.h: Adjust includes of Python .h files.
6180 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6182 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
6185 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6187 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
6190 2011-01-31 Yao Qi <yao@codesourcery.com>
6192 * arm-linux-nat.c: Update calls to regcache_register_status
6193 instead of regcache_valid_p.
6194 * aix-thread.c: Likewise.
6195 * i386gnu-nat.c: Likewise.
6197 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6200 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
6201 touching TYPE_FIELD_ARTIFICIAL.
6203 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
6205 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
6208 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6210 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
6211 selected, don't try iterating over the traceframe's blocks.
6212 (tfile_has_stack): If there's no traceframe selected, then there's
6214 (tfile_has_registers): If there's no traceframe selected, then
6215 there's no registers.
6217 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6219 * target.c (memory_xfer_partial): No need to restore shadows if we
6220 haven't read anything.
6222 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6224 * mips-tdep.c (mips_print_register): Use get_frame_register_value
6225 and val_print_scalar_formatted.
6227 2011-01-27 Pedro Alves <pedro@codesourcery.com>
6229 * tracepoint.c (tfile_read): New.
6230 (tfile_open): Use it.
6231 (tfile_get_traceframe_address): Use it.
6232 (tfile_trace_find): Use it.
6233 (walk_blocks_callback_func): New typedef.
6234 (match_blocktype): New function.
6235 (traceframe_walk_blocks): New function.
6236 (traceframe_find_block_type): New function.
6237 (tfile_fetch_registers, tfile_xfer_partial)
6238 (tfile_get_trace_state_variable_value): Use
6239 traceframe_find_block_type and tfile_read.
6241 2011-01-26 Kevin Buettner <kevinb@redhat.com>
6243 * remote-mips.c: Add internationalization mark ups. Remove
6244 trailing \n from already marked up strings.
6246 2011-01-26 Tom Tromey <tromey@redhat.com>
6248 * python/py-prettyprint.c (print_string_repr): Clear
6249 'addressprint' option when calling val_print_string.
6250 (print_children): Handle Val_pretty_default. Clear 'addressprint'
6251 option when calling val_print_string.
6253 2011-01-26 Tom Tromey <tromey@redhat.com>
6255 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
6257 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6259 (gdb_py_longest, gdb_py_ulongest): New typedefs.
6260 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6261 (gdb_py_long_as_ulongest): New defines.
6262 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6263 (gdb_py_int_as_long): Declare.
6264 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6265 GDB_PY_LL_ARG, gdb_py_object_from_longest.
6266 (valpy_long): Add comment.
6267 * python/py-utils.c (get_addr_from_python): Use
6268 gdb_py_long_as_ulongest. Handle overflow properly.
6269 (gdb_py_object_from_longest): New function.
6270 (gdb_py_object_from_ulongest): Likewise.
6271 (gdb_py_int_as_long): Likewise.
6272 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6273 * python/py-symtab.c (salpy_get_pc): Use
6274 gdb_py_long_from_ulongest.
6275 (salpy_get_line): Use PyInt_FromLong.
6276 * python/py-param.c (set_parameter_value): Use
6278 * python/py-lazy-string.c (stpy_get_address): Use
6279 gdb_py_long_from_ulongest.
6280 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6281 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6282 * python/py-breakpoint.c (bppy_set_thread): Use
6284 (bppy_set_task): Likewise.
6285 (bppy_set_ignore_count): Likewise.
6286 (bppy_set_hit_count): Likewise.
6287 * python/py-block.c (blpy_get_start): Use
6288 gdb_py_object_from_ulongest.
6289 (blpy_get_end): Likewise.
6290 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6292 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
6295 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6296 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6297 equality test for objfile, initialize addr_low if needed.
6299 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6301 * tui/tui-regs.c (tui_register_format): Remove dead code.
6303 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6305 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6306 instead of print_scalar_formatted.
6307 (print_scalar_formatted): Don't handle 's' format strings here,
6308 and add an assertion that we never see such format here.
6309 * valprint.h (val_print_scalar_formatted): Declare.
6310 * valprint.c (val_print_scalar_formatted): New.
6311 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6312 instead of print_scalar_formatted.
6313 * jv-valprint.c (java_val_print): Ditto.
6314 * p-valprint.c (pascal_val_print): Ditto.
6315 * ada-valprint.c (ada_val_print_1): Ditto.
6316 * f-valprint.c (f_val_print): Ditto.
6317 * infcmd.c (registers_info): Ditto.
6318 * m2-valprint.c (m2_val_print): Ditto.
6320 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6322 * m2-valprint.c (print_unbounded_array): Pass
6323 value_contents_for_printing rather than value_contents, to
6324 m2_print_array_contents. Also pass in the value.
6326 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6328 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6329 (save_gdb_index_command): Switch to .gdb_index version 4.
6331 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6333 * mi/mi-main.c (get_register): Use get_frame_register_value rather
6334 than frame_register, and always pass a valid value to val_print.
6336 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6338 Centralize printing "<optimized out>".
6340 * valprint.h (val_print_optimized_out): Declare.
6341 * cp-valprint.c (cp_print_value_fields): Use
6342 val_print_optimized_out.
6343 * jv-valprint.c (java_print_value_fields): Ditto.
6344 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6345 * printcmd.c (print_formatted): Ditto.
6346 * valprint.c (valprint_check_validity): Ditto.
6347 (value_check_printable): Ditto.
6348 (val_print_optimized_out): New.
6350 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6352 * infcmd.c (default_print_registers_info): Allocate values so to
6353 never pass a NULL value to val_print.
6355 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6357 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6358 boolean. Make sure to always pass a value that matches the
6359 contents buffer to callees. Preserve `address' for following
6361 * value.c (value_contents_for_printing_const): New.
6362 (value_address): Constify value argument.
6363 * value.h (value_contents_for_printing_const): Declare.
6364 (value_address): Constify value argument.
6366 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6368 * regcache.c (struct regcache_descr): Rename
6369 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6370 and sizeof_cooked_register_valid_p to
6371 sizeof_cooked_register_status.
6372 (init_regcache_descr): Adjust.
6373 (struct regcache): Rename register_valid_p field to
6375 (regcache_xmalloc_1, regcache_xfree, regcache_save)
6376 (do_cooked_read): Adjust.
6377 (regcache_valid_p): Rename to ...
6378 (regcache_register_status): ... this. Adjust.
6379 (regcache_invalidate): Adjust.
6380 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6382 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
6383 as unavailable, not valid.
6384 (regcache_dump): Adjust.
6385 * regcache.h (enum register_status): New.
6386 (regcache_register_status): Declare.
6387 (regcache_invalidate): Delete declaration.
6388 * corelow.c (get_core_registers): Adjust.
6389 * tracepoint.c (tfile_fetch_registers): Adjust.
6390 * trad-frame.c (REG_VALUE): Rename to ...
6391 (TF_REG_VALUE): ... this.
6392 (REG_UNKNOWN): Rename to ...
6393 (TF_REG_UNKNOWN): ... this.
6394 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
6395 * mi/mi-main.c (register_changed_p): Adjust.
6397 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6399 * regcache.c (struct regcache_descr): Remove outdated comment.
6400 (init_regcache_descr): Remove sizeof_raw_register_valid_p
6402 (regcache_xmalloc): Rename to ...
6403 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
6404 Allocate the regcache type accordingly.
6405 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
6406 (regcache_xfree): Asser the source is also readonly. Copy sizeof
6407 cooked registers, not raw.
6408 (regcache_dup_no_passthrough): Delete.
6409 (get_thread_arch_regcache): Use regcache_xmalloc_1.
6410 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
6411 mention obsolete write_register_bytes.
6412 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6414 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6416 Stop remote_read_bytes from handling partial reads itself.
6418 * remote-fileio.c: Include target.h.
6419 (remote_fileio_write_bytes): Delete.
6420 (remote_fileio_func_open, remote_fileio_func_write)
6421 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6423 (remote_fileio_func_stat): Use target_read_memory and
6424 target_write_memory.
6425 (remote_fileio_func_gettimeofday): Use target_write_memory.
6426 (remote_fileio_func_system): Use target_read_memory.
6427 * remote.c (remote_write_bytes): Make it static.
6428 (remote_read_bytes): Don't handle partial reads here.
6429 * remote.h (remote_read_bytes): Delete declaration.
6431 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6433 Simplify XML parsing a bit.
6435 * xml-support.h (gdb_xml_parse_quick): Declare.
6436 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6437 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6439 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6440 gdb_xml_create_parser_and_cleanup_1.
6441 (gdb_xml_parse_quick): New.
6442 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6443 * osdata.c (osdata_parse): Ditto.
6444 * remote.c (remote_threads_info): Ditto.
6445 * solib-target.c (solib_target_parse_libraries): Ditto.
6446 * xml-syscall.c (syscall_parse_xml): Ditto.
6447 * xml-tdesc.c (tdesc_parse_xml): Ditto.
6449 2011-01-24 Kevin Buettner <kevinb@redhat.com>
6451 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6452 with remote-mips.o added to gdb_target_obs.
6453 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6455 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6457 * ada-valprint.c (val_print_packed_array_elements): Pass the
6458 correct struct value to val_print.
6459 (ada_val_print_1): Ditto.
6461 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6463 Don't lose embedded_offset in printing routines throughout.
6465 * valprint.h (val_print_array_elements): Change prototype.
6466 * valprint.c (val_print_array_elements): Add `embedded_offset'
6467 parameter, and adjust to pass it down to val_print, while passing
6468 `valaddr' or `address' unmodified. Take embedded_offset into
6469 account when checking repetitions.
6470 * c-valprint.c (c_val_print): Pass embedded_offset to
6471 val_print_array_elements instead of adjusting `valaddr' and
6473 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6474 embedded_offset to val_print_array_elements instead of adjusting
6476 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6477 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6478 val_print_array_elements and pascal_object_print_value_fields
6479 instead of adjusting `valaddr'.
6480 (pascal_object_print_value_fields): Add `offset' parameter, and
6482 (pascal_object_print_value): Add `offset' parameter, and adjust to
6484 (pascal_object_print_static_field): Use
6485 value_contents_for_printing/value_embedded_offset, rather than
6487 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6488 parameter, and adjust to use it. Use
6489 value_contents_for_printing/value_embedded_offset, rather than
6491 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6492 (ada_val_print_array): Add `offset' parameter, and adjust to use
6494 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6495 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6496 Instead work with offsets. Use
6497 value_contents_for_printing/value_embedded_offset, rather than
6498 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6499 and use value_from_pointer to extract a target pointer, rather
6500 than value_from_longest.
6501 (print_variant_part): Add `offset' parameter. Replace
6502 `outer_valaddr' parameter by a new `outer_offset' parameter.
6503 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6504 (ada_value_print): Use
6505 value_contents_for_printing/value_embedded_offset, rather than
6507 (print_record): Add `offset' parameter, and adjust to pass it
6509 (print_field_values): Add `offset' parameter. Replace
6510 `outer_valaddr' parameter by a new `outer_offset' parameter.
6511 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6512 Use value_contents_for_printing/value_embedded_offset, rather than
6514 * d-valprint.c (dynamic_array_type): Use
6515 value_contents_for_printing/value_embedded_offset, rather than
6517 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6518 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6519 (java_print_value_fields): Take `offset' into account. Don't
6520 re-adjust `valaddr'. Instead pass down adjusted offsets.
6521 (java_val_print): Take `embedded_offset' into account. Pass it to
6522 java_print_value_fields.
6523 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6524 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6525 down adjusted offsets.
6526 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6527 (f_val_print): Take `embedded_offset' into account.
6529 2011-01-21 Joel Brobecker <brobecker@adacore.com>
6531 * inflow.c: Include "gdbcmd.h".
6532 (interactive_mode): New static global, moved here from top.c.
6533 (show_interactive_mode): New function, moved here from top.c.
6534 use gdb_has_a_terminal instead of input_from_terminal_p to
6535 determine the current mode.
6536 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6538 (_initialize_inflow): Add the "set/show interactive-mode"
6539 commands. Moved here from top.c, after having adjusted slightly
6541 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6543 (input_from_terminal_p): Remove handling of "interactive-mode"
6544 setting, moved to infow.c.
6545 (init_main): Remove creation of the "set/show interactive-mode"
6546 commands, moved to inflow.c.
6548 2011-01-19 Joel Brobecker <brobecker@adacore.com>
6550 * NEWS: Add entry for native ia64-hpux support.
6552 2011-01-19 Tom Tromey <tromey@redhat.com>
6555 * thread.c (free_thread): Free 'name'.
6556 (print_thread_info): Emit thread name. Change CLI output.
6557 (thread_name_command): New function.
6558 (do_captured_thread_select): Emit newline.
6559 (_initialize_thread): Register 'thread name' command.
6560 * target.h (struct target_ops) <to_thread_name>: New field.
6561 (target_thread_name): New macro.
6562 * target.c (update_current_target): Handle to_thread_name.
6563 * python/py-infthread.c (thpy_get_name): New function.
6564 (thpy_set_name): Likewise.
6565 (thread_object_getset): Add "name".
6566 * linux-nat.c (linux_nat_thread_name): New function.
6567 (linux_nat_add_target): Set to_thread_name.
6568 * gdbthread.h (struct thread_info) <name>: New field.
6570 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6572 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6573 (ada_val_print_1): Likewise.
6575 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6577 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6578 upper limit address is not greater than the function end address
6579 when the upper limit could not be computed using the debugging
6582 2011-01-17 Tom Tromey <tromey@redhat.com>
6584 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6586 * utils.c: Include gdb_regex.h.
6587 (do_regfree_cleanup): New function.
6588 (make_regfree_cleanup): Likewise.
6589 (get_regcomp_error): Likewise.
6590 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6592 2011-01-17 Tom Tromey <tromey@redhat.com>
6594 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6597 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6599 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6600 for internal variables.
6601 (last_was_structop): New static variable.
6602 (COMPLETE): New token.
6603 (field_exp): New rule to group all '.' suffix handling.
6604 Add mark_struct_expression calls when approriate to be able
6605 to correctly find fields for completion.
6606 (yylex): Adapt to handle field completion and set INTVAR when
6609 2011-01-14 Yao Qi <yao@codesourcery.com>
6611 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6612 save_reggroup, restore_reggroup and all_reggroup.
6614 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6616 * ada-valprint. (ada_printchar): Use the correct type length
6617 in call to ada_emit_char.
6618 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6620 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6622 * solib-som.h (hpux_major_release): Declare variable here.
6623 * solib-som.c: Remove <sys/utsname.h> header.
6624 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6625 (hpux_major_release): Make global, change default value to
6626 DEFAULT_HPUX_MAJOR_RELEASE.
6627 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6628 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6629 Add "solib-som.h" header.
6630 (set_hpux_major_release): New function.
6631 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6633 2011-01-14 Mike Frysinger <vapier@gentoo.org>
6635 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6637 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6639 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6640 new-line at end of warning message.
6641 (ia64_hpux_store_register): Remove trailing new-line at end of
6643 * ia64-hpux-tdep.c: Rephrase comment.
6644 * solib-ia64-hpux.c (struct dld_info): Change type of field
6645 dld_flags from "long long" to ULONGEST.
6647 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6649 * target.h (deprecated_child_ops): Delete declaration.
6650 * target.c (deprecated_child_ops): Delete definition.
6652 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6654 * Makefile.in (hpux-thread.o): Delete rule.
6655 * configure.ac: Don't check for HPUX DCE threads support.
6656 * configure, config.in: Regenerate.
6657 * hppa-hpux-nat.c (child_suppress_run): Delete.
6658 (hppa_hpux_child_can_run): Delete.
6659 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6660 * hpux-thread.c: Delete.
6662 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6664 * hpux-thread.c (hpux_pid_to_str): Delete.
6666 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6668 * ada-valprint.c (ada_emit_char): Remove strange code.
6669 Check that c is <= UCHAR_MAX before passing it to isascii.
6670 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6672 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6674 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6675 to the case where instream is stdin.
6677 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6679 * ia64-tdep.h (struct regcache): Forward declare.
6680 (struct ia64_infcall_ops): New struct type.
6681 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6683 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6684 Renames ia64_find_global_pointer.
6685 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6686 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6687 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6689 (ia64_infcall_ops): New static global constant.
6690 (ia64_gdbarch_init): Set tdep->infcall_ops.
6691 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6692 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6693 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6694 (ia64_hpux_dummy_code): New static global constant.
6695 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6696 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6697 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6699 (ia64_hpux_infcall_ops): New static global constant.
6700 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6701 for inferior function calls to work properly on ia64-hpux.
6703 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6705 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6706 * ia64-tdep.h (struct frame_info): forward declaration.
6707 (struct gdbarch_tdep): Add field size_of_register_frame.
6708 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6709 to determine the size of the register frame.
6710 (ia64_size_of_register_frame): New function.
6711 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6712 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6713 (IA64_HPUX_UREG_REASON): New macro.
6714 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6716 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6717 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6718 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6721 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6723 Add support for ia64-hpux.
6724 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6725 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6727 * configure.host: Add handling for ia64-hpux hosts. Add associated
6729 * configure.tgt: Add handling for ia64-hpux targets.
6730 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6731 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6732 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6734 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6736 [ttrace] Compute thread list immediately after attach.
6737 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6739 (inf_ttrace_attach): Use it.
6741 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6743 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6744 if we could not determine the frame's function address. Instead,
6745 use the frame's PC, and then continue.
6747 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6749 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6750 not already defined.
6752 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6754 * ia64-tdep.c (ia64_struct_type_p): New function.
6755 (ia64_extract_return_value): Handle integral values that are
6756 less than 8 bytes long.
6757 (ia64_push_dummy_call): Likewise.
6759 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6761 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6762 floatformat_ia64_ext.
6763 (floatformat_ia64_ext_big): New static const.
6764 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6766 2011-01-12 Tom Tromey <tromey@redhat.com>
6768 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6770 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6771 (mi_cmd_thread_list_ids): Likewise.
6772 (mi_cmd_data_list_changed_registers): Likewise.
6773 (mi_cmd_data_list_register_values): Likewise.
6774 (mi_cmd_data_write_register_values): Likewise.
6775 (mi_cmd_data_evaluate_expression): Likewise.
6776 (mi_cmd_data_read_memory): Likewise.
6777 (mi_cmd_data_read_memory_bytes): Likewise.
6778 (mi_cmd_data_write_memory): Likewise.
6779 (mi_cmd_enable_timings): Likewise.
6780 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6781 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6782 (mi_cmd_var_delete): Likewise.
6783 (mi_cmd_var_set_format): Likewise.
6784 (mi_cmd_var_show_format): Likewise.
6785 (mi_cmd_var_info_num_children): Likewise.
6786 (mi_cmd_var_list_children): Likewise.
6787 (mi_cmd_var_info_type): Likewise.
6788 (mi_cmd_var_info_expression): Likewise.
6789 (mi_cmd_var_show_attributes): Likewise.
6790 (mi_cmd_var_assign): Likewise.
6791 (mi_cmd_var_update): Likewise.
6792 (mi_cmd_enable_pretty_printing): Likewise.
6793 (mi_cmd_var_set_update_range): Likewise.
6794 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6796 (mi_cmd_target_file_put): Likewise.
6797 (mi_cmd_target_file_delete): Likewise.
6798 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6800 (mi_cmd_stack_info_depth): Likewise.
6801 (mi_cmd_stack_list_locals): Likewise.
6802 (mi_cmd_stack_list_args): Likewise.
6803 (mi_cmd_stack_select_frame): Likewise.
6804 (mi_cmd_stack_select_frame): Likewise.
6805 (mi_cmd_stack_info_frame): Likewise.
6806 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6808 (mi_cmd_file_list_exec_source_files): Likewise.
6809 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6810 (mi_cmd_env_cd): Likewise.
6811 (mi_cmd_env_path): Likewise.
6812 (mi_cmd_env_dir): Likewise.
6813 (mi_cmd_inferior_tty_show): Likewise.
6814 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6815 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6816 (mi_cmd_break_watch): Likewise.
6818 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6820 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6821 (ppc_linux_insert_hw_breakpoint): Likewise.
6822 (ppc_linux_remove_hw_breakpoint): Likewise.
6823 (ppc_linux_insert_watchpoint): Likewise.
6825 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6826 Jan Kratochvil <jan.kratochvil@redhat.com>
6828 PR fortran/11104 and DWARF unbound arrays detection.
6829 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6830 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6831 unspecified upper bound.
6832 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6833 variables array_size_array, tmp_type and offset_item. New variable
6834 array. Remove call to f77_get_upperbound. New variables array_type
6835 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6836 the final call to deprecated_set_value_type.
6838 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6840 Make value allocations more lazy.
6841 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6842 instead of allocate_value and set_value_lazy when possible.
6843 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6844 instead of allocate_value and set_value_lazy.
6845 * findvar.c (value_of_register_lazy): Likewise.
6846 (read_var_value): Remove V preallocation, call just check_typedef in
6847 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6848 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6849 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6850 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6851 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6852 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6853 the end, remove set_value_lazy there.
6854 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6855 instead of allocate_value and set_value_lazy when possible.
6856 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6857 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6858 of allocate_value and set_value_lazy.
6859 (value_from_contents_and_address): Use allocate_value_lazy instead of
6860 allocate_value and set_value_lazy when possible.
6862 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6864 * disasm.c (dump_insns): Support dumping opcodes for MI.
6865 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6866 dumping of instruction opcodes.
6868 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6870 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6873 2011-01-11 Tom Tromey <tromey@redhat.com>
6875 * thread.c (do_captured_thread_select): Emit newline before
6878 2011-01-11 Michael Snyder <msnyder@vmware.com>
6880 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6881 * score-tdep.c: Ditto.
6882 * score-tdep.h: Ditto.
6883 * ser-base.c: Ditto.
6884 * ser-go32.c: Ditto.
6887 * ser-mingw.c: Ditto.
6888 * ser-pipe.c: Ditto.
6890 * ser-unix.c: Ditto.
6891 * sh64-tdep.c: Ditto.
6892 * shnbsd-nat.c: Ditto.
6896 * solib-darwin.c: Ditto.
6897 * solib-frv.c: Ditto.
6899 * solib-irix.c: Ditto.
6900 * solib-osf.c: Ditto.
6901 * solib-pa64.c: Ditto.
6902 * solib-som.c: Ditto.
6903 * solib-spu.c: Ditto.
6904 * solib-sunos.c: Ditto.
6905 * solib-svr4.c: Ditto.
6907 * sol-thread.c: Ditto.
6911 * sparc64-linux-tdep.c: Ditto.
6912 * sparc64-tdep.c: Ditto.
6913 * sparc-linux-nat.c: Ditto.
6914 * sparc-linux-tdep.c: Ditto.
6915 * sparc-sol2-nat.c: Ditto.
6916 * sparc-sol2-tdep.c: Ditto.
6917 * sparc-tdep.c: Ditto.
6918 * sparc-tdep.h: Ditto.
6919 * spu-tdep.c: Ditto.
6920 * stabsread.c: Ditto.
6921 * stabsread.h: Ditto.
6929 * target-descriptions.c: Ditto.
6930 * target-descriptions.h: Ditto.
6932 * target-memory.c: Ditto.
6933 * terminal.h: Ditto.
6936 * tracepoint.c: Ditto.
6937 * tracepoint.h: Ditto.
6938 * trad-frame.h: Ditto.
6939 * typeprint.c: Ditto.
6941 2011-01-11 Michael Snyder <msnyder@vmware.com>
6943 * ui-file.c: Comment cleanup, mostly periods and spaces.
6948 * v850-tdep.c: Ditto.
6949 * valarith.c: Ditto.
6951 * valprint.c: Ditto.
6952 * valprint.h: Ditto.
6957 * vax-tdep.c: Ditto.
6961 * windows-nat.c: Ditto.
6962 * windows-tdep.c: Ditto.
6963 * xcoffread.c: Ditto.
6964 * xcoffsolib.c: Ditto.
6965 * xml-support.c: Ditto.
6966 * xstormy16-tdep.c: Ditto.
6967 * xtensa-tdep.c: Ditto.
6968 * xtensa-tdep.h: Ditto.
6970 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6972 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6973 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6975 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6976 Thiago Jung Bauermann <bauerman@br.ibm.com>
6978 Implement support for PowerPC BookE ranged watchpoints.
6980 (struct breakpoint_ops) <resources_needed>: New method.
6981 Initialize to NULL in all existing breakpoint_ops instances.
6982 (struct breakpoint) <exact>: New field.
6983 (target_exact_watchpoints): Declare external global.
6984 * breakpoint.c (target_exact_watchpoints): New global flag.
6985 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6986 b->enable_state to bp_enabled before calling
6987 hw_watchpoint_used_count.
6988 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6989 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6991 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6992 if the watchpoint is exact.
6993 (resources_needed_watchpoint): New function.
6994 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6995 (watch_command_1): Set b->exact if the user asked for an exact
6996 watchpoint and one can be set.
6997 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6998 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6999 the user asks for an exact watchpoint and one can be set. Return
7000 number of needed debug registers to watch the expression.
7001 * gdbtypes.c (is_scalar_type): New function, based on
7002 valprint.c:scalar_type_p.
7003 (is_scalar_type_recursive): New function.
7004 * gdbtypes.h (is_scalar_type_recursive): Declare.
7005 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
7006 handle regions when ranged watchpoints are available.
7007 (create_watchpoint_request): New function.
7008 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
7009 create_watchpoint_request.
7010 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
7011 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
7012 `set powerpc' and `show powerpc' commands.
7013 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7014 Mention documentation comment in the target macro.
7015 (target_region_ok_for_hw_watchpoint): Document return value.
7017 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7019 * breakpoint.c (update_watchpoint): Decide on using a software or
7020 hardware watchpoint after the bp_locations are created.
7022 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7024 Convert hardware watchpoints to use breakpoint_ops.
7025 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
7026 <insert_location>: ... this. Return int instead of void.
7027 Accept pointer to struct bp_location instead of pointer to
7028 struct breakpoint. Adapt all implementations.
7029 (breakpoint_ops) <remove>: Rename to...
7030 <remove_location>: ... this. Accept pointer to struct bp_location
7031 instead of pointer to struct breakpoint. Adapt all implementations.
7032 * breakpoint.c (insert_catchpoint): Delete function.
7033 (insert_bp_location): Call the watchpoint or catchpoint's
7034 breakpoint_ops.insert method.
7035 (remove_breakpoint_1): Call the watchpoint or catchpoint's
7036 breakpoint_ops.remove method.
7037 (insert_watchpoint, remove_watchpoint): New functions.
7038 (watchpoint_breakpoint_ops): New structure.
7039 (watch_command_1): Initialize the OPS field.
7040 * inf-child.c (inf_child_insert_fork_catchpoint)
7041 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
7042 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
7043 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
7045 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
7046 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
7047 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
7048 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
7049 * target.c (update_current_target): Change default implementation of
7050 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
7051 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
7052 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
7053 to_set_syscall_catchpoint to return_one.
7054 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
7055 (debug_to_insert_exec_catchpoint): Report return value.
7056 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
7057 (to_insert_exec_catchpoint): Change declaration to return int instead
7060 2011-01-11 Michael Snyder <msnyder@vmware.com>
7062 * arm-tdep.c: Internationalization.
7065 * fork-child.c: Ditto.
7066 * nto-procfs.c: Ditto.
7067 * ppc-sysv-tdep.c: Ditto.
7069 * remote-mips.c: Ditto.
7071 * rs6000-nat.c: Ditto.
7072 * rs6000-tdep.c: Ditto.
7076 * xml-support.c: Ditto.
7077 * mi/mi-cmd-break.c: Ditto.
7078 * mi/mi-cmd-var.c: Ditto.
7079 * mi/mi-interp.c: Ditto.
7080 * mi/mi-main.c: Ditto.
7082 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
7084 * remote-sim.c (gdbsim_store_register): Update API to
7085 sim_store_register to check more error conditions.
7087 2011-01-10 Michael Snyder <msnyder@vmware.com>
7089 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
7090 * nto-tdep.c: Ditto.
7091 * nto-tdep.h: Ditto.
7092 * objc-exp.y: Ditto.
7093 * objc-lang.c: Ditto.
7094 * objfiles.c: Ditto.
7095 * objfiles.h: Ditto.
7096 * observer.c: Ditto.
7097 * opencl-lang.c: Ditto.
7100 * parser-defs.h: Ditto.
7103 * posix-hdep.c: Ditto.
7104 * ppcbug-rom.c: Ditto.
7105 * ppc-linux-nat.c: Ditto.
7106 * ppc-linux-tdep.c: Ditto.
7107 * ppc-linux-tdep.h: Ditto.
7108 * ppcnbsd-tdep.c: Ditto.
7109 * ppcobsd-tdep.c: Ditto.
7110 * ppcobsd-tdep.h: Ditto.
7111 * ppc-sysv-tdep.c: Ditto.
7112 * ppc-tdep.h: Ditto.
7113 * printcmd.c: Ditto.
7114 * proc-abi.c: Ditto.
7115 * proc-flags.c: Ditto.
7117 * proc-utils.h: Ditto.
7118 * progspace.h: Ditto.
7119 * prologue-value.c: Ditto.
7120 * prologue-value.h: Ditto.
7121 * psympriv.h: Ditto.
7123 * p-typeprint.c: Ditto.
7124 * p-valprint.c: Ditto.
7125 * ravenscar-sparc-thread.c: Ditto.
7126 * ravenscar-thread.c: Ditto.
7127 * ravenscar-thread.h: Ditto.
7129 * regcache.c: Ditto.
7130 * regcache.h: Ditto.
7132 * remote-fileio.c: Ditto.
7133 * remote-fileio.h: Ditto.
7135 * remote-m32r-sdi.c: Ditto.
7136 * remote-mips.c: Ditto.
7137 * remote-sim.c: Ditto.
7138 * rs6000-aix-tdep.c: Ditto.
7139 * rs6000-nat.c: Ditto.
7140 * rs6000-tdep.c: Ditto.
7142 2011-01-10 Michael Snyder <msnyder@vmware.com>
7144 * charset.c (validate): Internationalization.
7145 * coffread.c (read_one_sym): Ditto.
7146 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
7147 * h8300-tdep.c (H8300_extract_return_value): Ditto.
7148 * inflow.c (new_tty): Ditto.
7149 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
7150 * m32c-tdep.c (m32c_return_value): Ditto.
7151 * mep-tdep.c (mep_store_return_value): Ditto.
7152 * score-tdep.c (score7_fetch_insn): Ditto.
7153 * ser-mingw.c (pipe_windows_open): Ditto.
7154 * sh64-tdep.c (sh64_extract_return_value): Ditto.
7155 * spu-tdep.c (spu_register_type): Ditto.
7156 * tracepoint.c (trace_find_command): Ditto.
7157 * valarith.c (value_pos): Ditto.
7159 2011-01-10 Joel Brobecker <brobecker@adacore.com>
7161 * ada-valprint.c (printstr): Minor comment reformatting.
7163 2011-01-08 Michael Snyder <msnyder@vmware.com>
7165 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
7168 2011-01-08 Michael Snyder <msnyder@vmware.com>
7170 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
7171 * hppa-hpux-tdep.c: Ditto.
7172 * hppa-linux-nat.c: Ditto.
7173 * hppa-linux-tdep.c: Ditto.
7174 * hppanbsd-tdep.c: Ditto.
7175 * hppa-tdep.c: Ditto.
7176 * hppa-tdep.h: Ditto.
7177 * hpux-thread.c: Ditto.
7178 * i386-cygwin-tdep.c: Ditto.
7179 * i386-darwin-nat.c: Ditto.
7180 * i386gnu-nat.c: Ditto.
7181 * i386-linux-nat.c: Ditto.
7182 * i386-linux-tdep.c: Ditto.
7183 * i386-nat.c: Ditto.
7184 * i386-nat.h: Ditto.
7185 * i386nbsd-tdep.c: Ditto.
7186 * i386-sol2-nat.c: Ditto.
7187 * i386-stub.c: Ditto.
7188 * i386-tdep.c: Ditto.
7189 * i386-tdep.h: Ditto.
7190 * i387-tdep.c: Ditto.
7191 * ia64-linux-nat.c: Ditto.
7192 * ia64-linux-tdep.c: Ditto.
7193 * ia64-tdep.c: Ditto.
7197 * inferior.c: Ditto.
7198 * inferior.h: Ditto.
7204 * iq2000-tdep.c: Ditto.
7205 * irix5-nat.c: Ditto.
7211 * jv-typeprint.c: Ditto.
7212 * jv-valprint.c: Ditto.
7213 * language.c: Ditto.
7214 * language.h: Ditto.
7215 * linespec.c: Ditto.
7216 * linux-fork.c: Ditto.
7217 * linux-nat.c: Ditto.
7218 * linux-thread-db.c: Ditto.
7219 * lm32-tdep.c: Ditto.
7221 2011-01-08 Michael Snyder <msnyder@vmware.com>
7223 * m2-exp.y: Comment cleanup, mostly periods and spaces.
7225 * m2-typeprint.c: Ditto.
7226 * m2-valprint.c: Ditto.
7227 * m32c-tdep.c: Ditto.
7228 * m32r-linux-nat.c: Ditto.
7229 * m32r-rom.c: Ditto.
7230 * m32r-tdep.c: Ditto.
7231 * m32r-tdep.h: Ditto.
7232 * m68hc11-tdep.c: Ditto.
7233 * m58klinux-nat.c: Ditto.
7234 * m68k-tdep.c: Ditto.
7235 * m88k-tdep.c: Ditto.
7236 * m88k-tdep.h: Ditto.
7237 * machoread.c: Ditto.
7238 * macrocmd.c: Ditto.
7239 * macroexp.c: Ditto.
7240 * macrotab.c: Ditto.
7243 * mdebugread.c: Ditto.
7244 * mdebugread.h: Ditto.
7247 * memory-map.h: Ditto.
7248 * mep-tdep.c: Ditto.
7249 * microblaze-rom.c: Ditto.
7250 * microblaze-tdep.c: Ditto.
7252 * mips-irix-tdep.c: Ditto.
7253 * mips-linux-nat.c: Ditto.
7254 * mips-linux-tdep.c: Ditto.
7255 * mips-linux-tdep.h: Ditto.
7256 * mipsnbsd-nat.c: Ditto.
7257 * mipsnbsd-tdep.c: Ditto.
7258 * mipsread.c: Ditto.
7259 * mips-tdep.c: Ditto.
7260 * mips-tdep.h: Ditto.
7261 * mn10300-linux-tdep.c: Ditto.
7262 * mn10300-tdep.c: Ditto.
7263 * mn10300-tdep.h: Ditto.
7266 * moxie-tdep.c: Ditto.
7267 * moxie-tdep.h: Ditto.
7270 2011-01-08 Mike Frysinger <vapier@gentoo.org>
7272 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7274 2011-01-08 Robert Millan <rmh@gnu.org>
7276 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7278 2011-01-07 Michael Snyder <msnyder@vmware.com>
7280 * charset.c (_initialize_charset): Fix typo in string.
7282 2011-01-07 Michael Snyder <msnyder@vmware.com>
7284 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7286 * tui/tui-layout.c (tui_set_layout_for_display_command):
7287 Split line so that operator goes to beginning of line.
7288 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7289 assignment out of if statement.
7291 2011-01-07 Michael Snyder <msnyder@vmware.com>
7293 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7294 * ada-lang.h: Ditto.
7295 * ada-tasks.c: Ditto.
7296 * ada-valprint.c: Ditto.
7297 * aix-threads.c: Ditto.
7298 * alpha-linux-nat.c: Ditto.
7299 * alpha-linux-tdep.c: Ditto.
7300 * alpha-mdebug-tdep.c: Ditto.
7301 * alpha-nat.c: Ditto.
7302 * alpha-osf1-tdep.c: Ditto.
7303 * alpha-tdep.c: Ditto.
7304 * alphabsd-nat.c: Ditto.
7305 * alphabsd-tdep.c: Ditto.
7306 * amd64-darwin-tdep.c: Ditto.
7307 * amd64-linux-nat.c: Ditto.
7308 * amd64-linux-tdep.c: Ditto.
7309 * amd64-sol2-tdep.c: Ditto.
7310 * amd64-tdep.c: Ditto.
7311 * amd64-fbsd-tdep.c: Ditto.
7312 * amd64-nbsd-tdep.c: Ditto.
7313 * amd64-obsd-tdep.c: Ditto.
7314 * amd64-linux-nat.c: Ditto.
7315 * amd64-linux-tdep.c: Ditto.
7316 * arm-tdep.c: Ditto.
7317 * arm-tdep.h: Ditto.
7318 * armnbsd-nat.c: Ditto.
7319 * avr-tdep.c: Ditto.
7320 * bfin-tdep.c: Ditto.
7322 * c-typeprintc: Ditto.
7323 * c-valprint.c: Ditto.
7324 * coff-pe-read.h: Ditto.
7325 * coffreead.c: Ditto.
7326 * cris-tdep.c: Ditto.
7328 * darwin-nat-info.c: Ditto.
7329 * darwin-nat.c: Ditto.
7330 * dbug-rom.c: Ditto.
7334 * dec-thread.c: Ditto.
7336 * demangle.c: Ditto.
7337 * dicos-tdep.c: Ditto.
7338 * dictionary.c: Ditto.
7339 * dictionary.h: Ditto.
7340 * dink32-rom.c: Ditto.
7342 * doublest.c: Ditto.
7344 * dummy-frame.c: Ditto.
7345 * dwarf2-frame.c: Ditto.
7346 * dwarf2expr.c: Ditto.
7347 * dwarf2loc.c: Ditto.
7348 * dwarf2read.c: Ditto.
7352 * event-top.h: Ditto.
7353 * exceptions.c: Ditto.
7354 * exceptions.h: Ditto.
7356 * expprint.c: Ditto.
7357 * expression.h: Ditto.
7361 * f-typeprint.c: Ditto.
7362 * f-valprint.c: Ditto.
7363 * fbsd-nat.c: Ditto.
7365 * fork-child.c: Ditto.
7368 * frv-linux-tdep.c: Ditto.
7369 * frv-tdep.c: Ditto.
7371 * gdb-stabs.h: Ditto.
7372 * gdb_assert.h: Ditto.
7373 * gdb_string.h: Ditto.
7374 * gdb_thread_db.h: Ditto.
7375 * gdb_wait.h: Ditto.
7376 * gdbarch.sh: Ditto.
7378 * gdbthread.h: Ditto.
7379 * gdbtypes.c: Ditto.
7380 * gdbtypes.h: Ditto.
7383 * gnu-v2-abi.c: Ditto.
7384 * gnu-v3-abi.c: Ditto.
7385 * go32-nat.c: Ditto.
7386 * gdbarch.c: Regenerate.
7387 * gdbarch.h: Regenerate.
7389 2011-01-07 Michael Snyder <msnyder@vmware.com>
7391 * ax-gdb.c: Adjust some long output strings.
7392 * breakpoint.c: Ditto.
7397 * linux-nat.c: Ditto.
7398 * solib-pa64.c: Ditto.
7399 * solib-som.c: Ditto.
7401 2011-01-06 Tom Tromey <tromey@redhat.com>
7405 * python/python.c (GdbMethods): Add "newest_frame" method.
7406 * python/python-internal.h (gdbpy_newest_frame): Declare.
7407 * python/py-frame.c (gdbpy_newest_frame): New function.
7409 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
7411 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
7412 * jit.c (jit_debug): New variable.
7413 (show_jit_debug): New function.
7414 (struct target_buffer): Use ULONGEST.
7415 (bfd_open_from_target_memory): Likewise.
7416 (jit_register_code, jit_inferior_init): Add debug output.
7417 (_initialize_jit): Register "debug jit" command.
7419 2011-01-06 Tom Tromey <tromey@redhat.com>
7421 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7422 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7425 2011-01-06 Tom Tromey <tromey@redhat.com>
7427 * python/py-frame.c (frapy_block): Use get_frame_block.
7429 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7431 Do not stop on SIGPRIO signals by default
7432 * infrun.c (_initialize_infrun): Unset signal_stop and
7433 signal_print for TARGET_SIGNAL_PRIO.
7435 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7437 * ada-tasks.c: Fix style violation in comment.
7439 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7441 * linespec.c (decode_compound, find_method): Remove trailing \n
7442 at end of error string.
7443 * solib-irix.c (irix_current_sos): Likewise.
7444 * varobj.c (uninstall_variable): Likewise.
7446 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7448 * copyright.py: New script.
7449 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7450 Launch emacs without exec'ing. Call copyright.py afterwards.
7452 2011-01-05 Michael Snyder <msnyder@vmware.com>
7454 * addrmap.c: Shorten lines of >= 80 columns.
7455 * arch-utils.c: Ditto.
7456 * arch-utils.h: Ditto.
7458 * ax-general.c: Ditto.
7460 * blockframe.c: Ditto.
7461 * breakpoint.c: Ditto.
7462 * buildsym.c: Ditto.
7464 * c-typeprint.c: Ditto.
7466 * coffread.c: Ditto.
7470 * cp-namespace.c: Ditto.
7471 * cp-support.c: Ditto.
7472 * dbug-rom.c: Ditto.
7477 * dictionary.c: Ditto.
7479 * doublest.c: Ditto.
7480 * dwarf2-frame.c: Ditto.
7481 * dwarf2expr.c: Ditto.
7482 * dwarf2loc.c: Ditto.
7483 * dwarf2read.c: Ditto.
7486 * event-loop.c: Ditto.
7487 * event-loop.h: Ditto.
7488 * exceptions.h: Ditto.
7490 * expprint.c: Ditto.
7491 * expression.h: Ditto.
7493 * f-valprint.c: Ditto.
7495 * frame-base.c: Ditto.
7496 * frame-unwind.c: Ditto.
7497 * frame-unwind.h: Ditto.
7501 * gdb-stabs.h: Ditto.
7502 * gdb_assert.h: Ditto.
7503 * gdb_dirent.h: Ditto.
7504 * gdb_obstack.h: Ditto.
7506 * gdbtypes.c: Ditto.
7507 * gdbtypes.h: Ditto.
7508 * inf-ttrace.c: Ditto.
7513 * inline-frame.h: Ditto.
7514 * language.c: Ditto.
7515 * language.h: Ditto.
7516 * libunwind-frame.c: Ditto.
7517 * libunwind-frame.h: Ditto.
7518 * linespec.c: Ditto.
7519 * linux-nat.c: Ditto.
7520 * linux-nat.h: Ditto.
7521 * linux-thread-db.c: Ditto.
7522 * machoread.c: Ditto.
7523 * macroexp.c: Ditto.
7524 * macrotab.c: Ditto.
7527 * mdebugread.c: Ditto.
7532 * objfiles.c: Ditto.
7533 * objfiles.h: Ditto.
7535 * p-typeprint.c: Ditto.
7536 * p-valprint.c: Ditto.
7538 * printcmd.c: Ditto.
7539 * proc-events.c: Ditto.
7541 * progspace.c: Ditto.
7542 * progspace.h: Ditto.
7543 * psympriv.h: Ditto.
7546 * regcache.c: Ditto.
7547 * regcache.h: Ditto.
7548 * remote-fileio.c: Ditto.
7550 * ser-mingw.c: Ditto.
7552 * ser-unix.c: Ditto.
7555 * solib-frv.c: Ditto.
7556 * solib-irix.c: Ditto.
7557 * solib-osf.c: Ditto.
7558 * solib-pa64.c: Ditto.
7559 * solib-som.c: Ditto.
7560 * solib-sunos.c: Ditto.
7561 * solib-svr4.c: Ditto.
7562 * solib-target.c: Ditto.
7566 * stabsread.c: Ditto.
7567 * stabsread.c: Ditto.
7570 * symfile-mem.c: Ditto.
7576 * target-descriptions.c: Ditto.
7577 * target-memory.c: Ditto.
7580 * terminal.h: Ditto.
7583 * tracepoint.c: Ditto.
7584 * tracepoint.h: Ditto.
7588 * user-regs.c: Ditto.
7589 * user-regs.h: Ditto.
7591 * valarith.c: Ditto.
7593 * valprint.c: Ditto.
7594 * valprint.h: Ditto.
7599 * xcoffread.c: Ditto.
7600 * xcoffsolib.c: Ditto.
7601 * xcoffsolib.h: Ditto.
7602 * xml-syscall.c: Ditto.
7603 * xml-tdesc.c: Ditto.
7605 2011-01-05 Michael Snyder <msnyder@vmware.com>
7607 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7608 * cli/cli-decode.c: Ditto.
7609 * cli/cli-dump.c: Ditto.
7610 * cli/cli-logging.c: Ditto.
7611 * cli/cli-script.c: Ditto.
7612 * cli/cli-setshow.c: Ditto.
7613 * common/signals.c: Ditto.
7614 * mi/mi-cmd-break.c: Ditto.
7615 * mi/mi-cmd-disas.c: Ditto.
7616 * mi/mi-cmd-stack.c: Ditto.
7617 * mi/mi-cmd-var.c: Ditto.
7618 * mi/mi-cmds.c: Ditto.
7619 * mi/mi-common.h: Ditto.
7620 * mi/mi-console.c: Ditto.
7621 * mi/mi-interp.c: Ditto.
7622 * mi/mi-main.c: Ditto.
7623 * osf-share/cma_attr.c: Ditto.
7624 * osf-share/cma_deb_core.h: Ditto.
7625 * osf-share/cma_debug_client.h: Ditto.
7626 * osf-share/cma_handle.h: Ditto.
7627 * osf-share/cma_mutex.h: Ditto.
7628 * osf-share/cma_stack_int.h: Ditto.
7629 * osf-share/cma_tcb_defs.h: Ditto.
7630 * python/py-auto-load.c: Ditto.
7631 * python/py-breakpoint.c: Ditto.
7632 * python/py-cmd.c: Ditto.
7633 * python/py-frame.c: Ditto.
7634 * python/py-objfile.c: Ditto.
7635 * python/py-param.c: Ditto.
7636 * python/py-progspace.c: Ditto.
7637 * python/py-symbol.c: Ditto.
7638 * python/py-value.c: Ditto.
7639 * python/python-internal.h: Ditto.
7640 * python/python.c: Ditto.
7641 * tui/tui-data.c: Ditto.
7642 * tui/tui-disasm.c: Ditto.
7643 * tui/tui-hooks.c: Ditto.
7644 * tui/tui-io.c: Ditto.
7645 * tui/tui-layout.c: Ditto.
7646 * tui/tui-regs.c: Ditto.
7647 * tui/tui-source.c: Ditto.
7648 * tui/tui-stack.c: Ditto.
7649 * tui/tui-win.c: Ditto.
7650 * tui/tui-windata.c: Ditto.
7651 * tui/tui-winsource.c: Ditto.
7653 2011-01-05 Joel Brobecker <brobecker@adacore.com>
7655 * configure.ac, gdb.1: Copyright year update.
7657 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7659 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7660 this_pc_in_block, morestack_msym and morestack_name. Check for
7661 "__morestack" minimal symbol there.
7663 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7665 * symfile.c (find_sym_fns): Add call to dont_repeat.
7667 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7669 Copyright year update in most files (performed by copyright.sh).
7671 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7673 * top.c (print_gdb_version): Update copyright year in version output.
7675 For older changes see ChangeLog-2010.
7681 version-control: never