1 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3 Fix crash if referenced CU is aged out.
4 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
6 (indirect_pieced_value): New variable back_to, use to for xfree of
8 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
10 * dwarf2read.c (dwarf2_find_base_address): New prototype.
11 (load_cu): New function from ...
12 (dw2_do_instantiate_symtab): ... the code here ...
13 (process_full_comp_unit): ... and here.
14 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
17 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
19 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
22 2011-07-19 Gary Benson <gbenson@redhat.com>
24 * infrun.c (struct execution_control_state): New member
26 (clear_stop_func, fill_in_stop_func): New functions.
27 (handle_inferior_event): Call clear_stop_func rather than
28 manipulating the execution control state directly.
29 Call fill_in_stop_func lazily as required rather than
30 directly calling find_pc_partial_function in all cases.
32 2011-07-18 Tom Tromey <tromey@redhat.com>
34 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
35 checking for variable-sized array.
37 2011-07-18 Jean-Charles Delay <delay@adacore.com>
39 * varobj.h (varobj_languages): Add vlang_ada definition to the list
40 of supported languages.
41 * varobj.c: Add top definitions and basic implementation of the
42 following callbacks: ada_number_of_children, ada_name_of_variable,
43 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
44 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
45 (languages): Register Ada-specific callbacks.
46 (variable_language): Add the Ada case in the language setter switch.
48 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
50 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
52 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
55 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
56 (execute_stack_op): Use dwarf2_frame_ctx_funcs
57 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
58 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
59 get_frame_cfa, get_tls_address and dwarf_call via funcs.
60 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
61 (struct dwarf_expr_context_funcs): New, move here methods from ...
62 (struct dwarf_expr_context): ... here. New fields funcs.
63 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
64 (dwarf_expr_ctx_funcs): New.
65 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
66 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
67 (needs_frame_ctx_funcs): New.
68 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
70 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
72 * MAINTAINERS (Write After Approval): Add myself to the list.
74 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
76 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
77 that CIE pointer of an FDE really points to a CIE .
79 2011-07-15 Hui Zhu <teawater@gmail.com>
81 * remote.c (remote_get_trace_status): Add comments.
83 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
85 Code cleanup - constify struct lval_funcs.
86 * dwarf2loc.c (pieced_value_funcs): Make it const.
87 * infrun.c (siginfo_value_funcs): Likewise.
88 * opencl-lang.c (opencl_value_funcs): Likewise.
89 * valops.c (value_assign, value_ind): Make the funcs variable const.
90 * value.c (struct value): Make location.computed.funcs target const.
91 Rearrange the comments.
92 (allocate_computed_value): Make the funcs parameter target const.
93 (value_computed_funcs): Return the funcs target const.
94 (value_free, value_copy, set_value_component_location): Make the funcs
96 * value.h (allocate_computed_value): Make the funcs parameter target
98 (value_computed_funcs): Return the funcs target const.
99 * windows-tdep.c (tlb_value_funcs): Make it const.
101 2011-07-14 Hui Zhu <teawater@gmail.com>
103 * remote.c (remote_get_trace_status): Initialize p.
105 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
108 * remote.c (remote_get_trace_status): New variable ex. Put
109 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
111 2011-07-13 Tom Tromey <tromey@redhat.com>
113 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
114 value_from_contents for final conversion.
116 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
119 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
120 Indent prototypes so they do not get into tags.
122 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
124 Code cleanup making also optimized out values lazy.
125 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
126 allocate_optimized_out_value. Twice.
127 (loclist_read_variable) Use allocate_optimized_out_value. Once.
128 * findvar.c (read_var_value): Likewise.
129 * value.c (allocate_optimized_out_value): New function.
130 * value.h (allocate_optimized_out_value): New declaration.
132 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
134 Fix occasional crash of CTRL-C during DWARF read in.
135 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
137 2011-07-11 Tom Tromey <tromey@redhat.com>
139 * regcache.c (struct regcache_descr): Fix typo.
140 * i387-tdep.c (i387_supply_xsave): Fix typo.
142 2011-07-11 Tom Tromey <tromey@redhat.com>
144 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
145 (read_file_scope, read_type_unit_scope): Use it.
147 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
149 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
152 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
155 * python/python.c: Set gdbpy_should_print_stack default to off.
156 (set_python): Deprecate maint set python print-stack to
158 (_initialize_python): Deprecate maint set/show python print-stack.
159 Add new prefix command, python. Add new setting, print-backtrace.
160 * NEWS: Document set python print-stack. Document default change.
162 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
164 * python/py-inferior.c (infpy_dealloc): New function.
165 (inferior_to_inferior_object): Return a new object, or a
166 new reference to the existing object.
167 (find_thread_object): Cleanup references to inferior.
168 (delete_thread_object): Ditto.
169 * python/py-infthread.c (create_thread_object): Do not increment
170 inferior reference count.
172 2011-07-08 Tom Tromey <tromey@redhat.com>
174 * dwarf2loc.c (locexpr_regname): New function.
175 (locexpr_describe_location_piece): Use it.
176 (disassemble_dwarf_expression): Add per_cu argument. Use
178 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
179 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
181 (locexpr_describe_location_1): Add per_cu argument.
182 (locexpr_describe_location): Update.
183 (loclist_describe_location): Update.
185 2011-07-08 Tom Tromey <tromey@redhat.com>
187 * dwarf2expr.c (execute_stack_op): Add QUIT.
189 2011-07-07 Hui Zhu <teawater@gmail.com>
192 2011-07-06 Hui Zhu <teawater@gmail.com>
193 * remote.c (remote_start_remote): Add TRY_CATCH for
194 remote_get_trace_status.
195 * tracepoint.c (disconnect_tracing): Ditto.
197 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
199 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
200 variables as signed, not unsigned.
202 2011-07-06 Joel Brobecker <brobecker@adacore.com>
204 * jit.c (jit_inferior_init): Reformat forward declaration.
206 2011-07-06 Matt Rice <ratmice@gmail.com>
208 * MAINTAINERS (Write After Approval): Add myself to the list.
210 2011-07-06 Hui Zhu <teawater@gmail.com>
212 * remote.c (remote_start_remote): Add TRY_CATCH for
213 remote_get_trace_status.
214 * tracepoint.c (disconnect_tracing): Ditto.
216 2011-07-05 Tom Tromey <tromey@redhat.com>
218 * symtab.c (operator_chars): Now static.
219 * linespec.c (operator_chars): Don't declare.
221 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
223 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
225 2011-07-05 Tom Tromey <tromey@redhat.com>
227 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
228 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
229 (TYPE_CPLUS_REALLY_JAVA): New macro.
230 * dwarf2read.c (process_structure_scope): Set
231 TYPE_CPLUS_REALLY_JAVA.
233 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
235 * ada-lang.c: Fix typos.
236 * amd64-tdep.c: Likewise.
237 * breakpoint.c: Likewise.
238 * cli/cli-decode.c: Likewise.
239 * findcmd.c: Likewise.
240 * inline-frame.c: Likewise.
241 * mi/mi-main.c: Likewise.
242 * minsyms.c: Likewise.
243 * monitor.c: Likewise.
244 * monitor.h: Likewise.
245 * prologue-value.c: Likewise.
246 * reverse.c: Likewise.
247 * s390-tdep.c: Likewise.
249 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
251 * jit.c (jit_inferior_init): Forward declare.
252 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
254 2011-07-04 Joel Brobecker <brobecker@adacore.com>
256 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
258 2011-07-04 Tristan Gingold <gingold@adacore.com>
260 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
261 (tcb_fieldno): Add activation_link field.
262 (get_known_tasks_addr): Moved and rewritten.
263 (get_tcb_types_info): Set activation_link field.
264 (read_known_tasks_array): Add parameter. Rewritten.
265 (read_known_tasks_list): New function.
266 (read_known_tasks): New function.
267 (ada_build_task_list): Call read_known_tasks instead of
268 read_known_tasks_array.
269 * ravenscar-thread.c: Add first_task_name constant.
270 (has_ravenscar_runtime): Check for task list too.
272 2011-07-04 Tristan Gingold <gingold@adacore.com>
274 * ada-tasks.c: Renames fieldno to actb_fieldno.
275 (ada_get_task_number): Indentation.
276 (get_tcb_types_info): Remove all parameters. Write directly
278 (ptid_from_atcb_common): Adjust.
281 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
283 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
285 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
287 * ui-out.c (ui_out_field_core_addr): Mention that the function
288 description is in the header file.
289 * ui-out.h (ui_out_field_core_addr): Document function.
291 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
293 * ui-out.c (ui_out_get_field_separator): Remove unused function.
294 * ui-out.h (ui_out_get_field_separator): Remove prototype.
296 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
298 * symtab.c (expand_line_sal): Remove empty line.
300 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
302 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
303 same way as ELFOSABI_NONE.
304 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
306 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
308 * breakpoint.c: Fix typos in comments.
309 * linespec.c: Likewise.
310 * symtab.c: Likewise.
312 2011-07-04 Joel Brobecker <brobecker@adacore.com>
314 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
315 section in separate object files.
317 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
319 Fix false GCC warning.
320 * linespec.c (decode_line_1): Initialize values.
322 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
324 * linespec.c (find_method): Accept the function type automatically only
325 if it was specified with parameter types.
327 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
329 Stop on first linespec terminator instead of eating what we can.
330 * linespec.c (is_linespec_boundary): New function.
331 (name_end): Remove function.
332 (keep_name_info): New parameter on_boundary, replace the body.
333 (decode_line_1): Provide the parameter to keep_name_info.
334 (decode_compound): Likewise. Drop the trailing java return type
337 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
339 Fall back linespec to minimal symbols.
340 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
341 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
342 (find_method, symbol_found): Change error to cplusplus_error.
344 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
346 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
348 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
349 Tom Tromey <tromey@redhat.com>
351 * dwarf2read.c (check_physname): New variable.
352 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
353 (show_check_physname): New function.
354 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
356 2011-07-01 Joel Brobecker <brobecker@adacore.com>
358 * machoread.c (macho_symfile_read): Delete OBE comment.
360 2011-07-01 Joel Brobecker <brobecker@adacore.com>
362 * machoread.c (struct macho_oso_data): Delete.
363 (current_oso): Delete.
364 (macho_relocate_common_syms): New function, mostly extracted
366 (macho_add_oso_symfile): Call macho_relocate_common_syms.
367 Remove code that sets and unset current_oso.
368 (macho_symfile_relocate): Delete handling of common symbols,
369 now moved to macho_relocate_common_syms.
371 2011-07-01 Joel Brobecker <brobecker@adacore.com>
373 * darwin-nat.c (darwin_ptrace): Add documentation.
374 Set errno to zero before calling ptrace. If ptrace returns
375 -1 and errno is zero, then change then return zero.
376 (darwin_kill_inferior): Issue a warning instead of triggering
377 a failed assertion when the PT_KILL ptrace operations returned
380 2011-07-01 Joel Brobecker <brobecker@adacore.com>
382 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
383 only when inf->private->no_ptrace.
385 2011-07-01 Joel Brobecker <brobecker@adacore.com>
387 * ada-lang.c (print_it_exception): Print temporary catchpoints
388 as "Temporary catchpoint".
389 (print_mention_exception): Likewise.
391 2011-07-01 Tom Tromey <tromey@redhat.com>
393 * jv-lang.c (java_language_defn): Use java_printchar,
395 (java_get_encoding): New function.
396 (java_emit_char): Use generic_emit_char.
397 (java_printchar): New function.
398 (java_printstr): Likewise.
400 2011-07-01 Joel Brobecker <brobecker@adacore.com>
402 * ada-typeprint.c (print_record_type): If unable to decode
403 the name of the parent type, use the encoded name.
405 2011-07-01 Jean-Charles Delay <delay@adacore.com>
407 * ada-typeprint.c (ada_print_type): Fix both PAD type and
408 pointer to constrained packed array type output.
409 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
412 2011-07-01 Jean-Charles Delay <delay@adacore.com>
414 * ada-typeprint.c (print_array_type): removed if condition on show
415 being negative for bounds printing.
417 2011-07-01 Joel Brobecker <brobecker@adacore.com>
419 * ada-lang.c (ada_identical_enum_types_p): New function.
420 (symbols_are_identical_enums): New function.
421 (remove_extra_symbols): Do nothing if NSYMS < 2.
422 Use symbols_are_identical_enums.
424 2011-07-01 Joel Brobecker <brobecker@adacore.com>
426 * ada-valprint.c (ada_value_print): Handle typedefs.
428 2011-07-01 Joel Brobecker <brobecker@adacore.com>
430 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
432 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
434 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
435 (decode_constrained_packed_array): Likewise.
436 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
438 2011-07-01 Joel Brobecker <brobecker@adacore.com>
440 * ada-exp.y (convert_char_literal): Handle typedef types.
442 2011-07-01 Joel Brobecker <brobecker@adacore.com>
444 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
446 2011-06-30 Tom Tromey <tromey@redhat.com>
448 * varobj.c (varobj_create): Call do_cleanups on early exit path.
449 * valops.c (find_overload_match): Call do_cleanups on early exit
451 * solib.c (solib_find): Call do_cleanups on early exit path.
453 2011-06-30 Tom Tromey <tromey@redhat.com>
455 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
456 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
457 return paths. Defer final do_cleanups until last return.
458 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
461 2011-06-30 Tom Tromey <tromey@redhat.com>
463 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
465 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
467 * MAINTAINERS (Write After Approval): Add myself to the list.
469 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
471 Disable epilogue unwinders on recent GCCs.
472 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
473 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
474 * dwarf2read.c (process_full_comp_unit): Initialize
475 EPILOGUE_UNWIND_VALID.
476 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
477 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
478 * symtab.h (struct symtab): New field epilogue_unwind_valid.
480 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
482 Code cleanup - reformatting.
483 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
484 (producer_is_gcc_ge_4): ... here, change the return value.
485 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
488 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
490 Fix non-only rename list for Fortran modules import.
491 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
492 cp_add_using_directive caller.
493 (cp_add_using_directive): New parameter excludes, describe it. New
494 variables ix and param. Compare if also excludes match. Allocate NEW
495 with variable size, initialize EXCLUDES there.
496 (cp_lookup_symbol_imports): New variable excludep, test
497 current->EXCLUDES with it.
498 * cp-support.h: Include vec.h.
499 (struct using_direct): New field excludes, describe it.
500 (DEF_VEC_P (const_char_ptr)): New.
501 (cp_add_using_directive): New parameter excludes.
502 * defs.h (const_char_ptr): New typedef.
503 * dwarf2read.c (read_import_statement): New variables child_die,
504 excludes and cleanups, read in excludes.
505 (read_namespace): Adjust the cp_add_using_directive caller.
507 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
510 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
511 negative comparisons.
513 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
515 * mi/mi-main.c (mi_cmd_list_features): Emit
516 breakpoint-notifications.
518 2011-06-29 Tom Tromey <tromey@redhat.com>
521 * valprint.h (generic_emit_char, generic_printstr): Declare.
522 * valprint.c (wchar_printable, append_string_as_wide)
523 (print_wchar): Move from c-lang.c.
524 (generic_emit_char): New function; mostly taken from c_emit_char.
525 (generic_printstr): New function; mostly taken from c_printstr.
526 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
527 represented as arrays.
528 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
530 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
531 identically to TYPE_CODE_INT.
532 * f-lang.c (f_get_encoding): New function.
533 (f_emit_char): Use generic_emit_char.
534 (f_printchar): Replace comment.
535 (f_printstr): Use generic_printstr.
536 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
537 "character" types specially.
538 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
540 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
542 (c_emit_char): Call generic_emit_char.
543 (c_printstr): Call generic_printstr.
545 2011-06-29 Gary Benson <gbenson@redhat.com>
547 * breakpoint.c (bpstat_what): Removed duplicated case.
549 2011-06-28 Tom Tromey <tromey@redhat.com>
551 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
553 2011-06-27 Tom Tromey <tromey@redhat.com>
555 * valops.c (find_overload_match): Call do_cleanups before early
557 * top.c (execute_command): Call do_cleanups before early return.
558 (command_loop): Likewise.
559 * stack.c (backtrace_command): Make a null cleanup early. Don't
560 conditionally call do_cleanups.
561 * python/py-value.c (TRY_CATCH): Move cleanup handling into
563 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
564 so cleanups are always run.
565 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
566 * findcmd.c (parse_find_args): Call do_cleanups on early return
568 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
569 Don't conditionally call do_cleanups.
570 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
573 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
575 * MAINTAINERS (Write After Approval): Use default email address.
577 2011-06-27 Joel Brobecker <brobecker@adacore.com>
579 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
581 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
583 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
584 saved_regs_mask and copied_regs_mask fields.
585 (sparc_record_save_insn): New prototype.
586 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
587 (sparc_record_save_insn): New function.
588 (sparc_analyze_prologue): Add head comment. Recognize store insns
589 of call-saved registers. Use OFFSET consistently. Recognize flat
590 frames and cache their settings.
591 (sparc32_skip_prologue): Handle flat frames.
592 (sparc_frame_cache): Add frame_offset to the base address.
593 (sparc32_frame_cache): Adjust to new frame description.
594 (sparc32_frame_prev_register): Likewise.
595 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
596 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
597 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
598 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
599 frame by calling sparc_record_save_insn.
600 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
601 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
602 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
604 2011-06-27 Tristan Gingold <gingold@adacore.com>
606 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
607 field by map_addr and map_len.
608 (dwarf2_read_section): Adjust for the new bfd_mmap api.
609 (munmap_section_buffer): Likewise.
611 2011-06-24 Tom Tromey <tromey@redhat.com>
613 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
614 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
615 * python/python.c (gdbpy_parameter): Make 'arg' const.
616 (execute_gdb_command): Likewise.
617 (gdbpy_decode_line): Likewise. Copy it.
618 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
619 (gdbpy_write): Make 'arg' const.
620 * python/py-type.c (typy_lookup_typename): Make 'type_name'
622 (gdbpy_lookup_type): Likewise.
623 * python/py-prettyprint.c (print_children): Make 'name' const.
624 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
625 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
627 * python/py-function.c (fnpy_init): Make 'name' const.
628 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
629 (gdbpy_string_to_argv): Make 'input' const.
630 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
632 * gdbtypes.h (lookup_typename): Update.
633 * gdbtypes.c (lookup_typename): Make 'name' const.
634 (lookup_struct): Likewise.
635 (lookup_union): Likewise.
636 (lookup_enum): Likewise.
638 2011-06-24 Tom Tromey <tromey@redhat.com>
640 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
641 gdb_thread_db.h. Move all common/ entries to be together.
642 (TAGS): Don't depend on DEPFILES.
644 2011-06-23 Yao Qi <yao@codesourcery.com>
646 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
647 * remote.c (remote_start_remote): ... here.
648 * monitor.c (monitor_open): ... here.
650 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
652 * gdbtypes.c (append_composite_type_field_aligned): Fix
653 calculation of bit position based on alignment.
655 2011-06-22 Pedro Alves <pedro@codesourcery.com>
657 * breakpoint.c (bpstat_stop_status): Call the check_status
658 breakpoint_ops method.
659 (print_one_breakpoint_location): Also print the condition for Ada
660 exception catchpoints.
661 (allocate_bp_location): New, factored out from
662 allocate_bp_location.
663 (allocate_bp_location): Adjust. Call the owner breakpoint's
664 allocate_location method, if there is one.
665 (free_bp_location): Call the locations's dtor method, if there is
667 (init_raw_breakpoint_without_location): New breakpoint_ops
669 (set_raw_breakpoint_without_location): Adjust.
670 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
671 (set_raw_breakpoint): Adjust.
672 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
673 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
674 re_set and check_status methods.
675 (init_catchpoint): Don't memset, initialize thread, addr_string
676 and enable_state. Pass the ops down to init_raw_breakpoint.
677 (install_catchpoint): Rename to ...
678 (install_breakpoint): ... this, and make extern.
679 (create_fork_vfork_event_catchpoint): Adjust.
680 (catch_exec_breakpoint_ops): Install NULL allocate_location,
681 re_set and check_status methods.
682 (create_syscall_event_catchpoint): Adjust.
683 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
684 (masked_watchpoint_breakpoint_ops): Install NULL
685 allocate_location, re_set and check_status methods.
686 (catch_exec_command_1): Adjust.
687 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
688 re_set and check_status methods.
689 (create_ada_exception_breakpoint): Rename to ...
690 (init_ada_exception_breakpoint): ... this. Add a struct
691 breakpoint parameter, and delete the exp_string, cond_string and
692 cond parameters. Use init_raw_breakpoint, and don't install or
693 mention the breakpoint yet. Don't clear breakpoint fields that
694 init_raw_breakpoint already clears.
695 (re_set_breakpoint): Delete, split into ...
696 (breakpoint_re_set_default, prepare_re_set_context): ... these new
698 (breakpoint_re_set_one): Call the breakpoint's
699 breakpoint_ops->re_set implementation, if there's one. Adjust.
700 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
701 (struct bp_location_ops): New type.
702 (struct bp_location): New field `ops'.
703 (struct breakpoint_ops): New `allocate_location', `re_set' and
704 `check_status' fields. Make `breakpoint_hit''s description match
706 (init_bp_location): Declare.
707 (breakpoint_re_set_default): Declare.
708 (create_ada_exception_breakpoint): Rename to ...
709 (init_ada_exception_breakpoint): ... this. Add a struct
710 breakpoint parameter, and delete the exp_string, cond_string and
712 (install_breakpoint): Declare.
713 * ada-lang.c: Include exceptions.h.
714 <Ada exceptions description>: Update.
715 (struct ada_catchpoint_location): New type.
716 (ada_catchpoint_location_dtor): New function.
717 (ada_catchpoint_location_ops): New global.
718 (ada_catchpoint): New type.
719 (create_excep_cond_exprs): New function.
720 (dtor_exception, allocate_location_exception, re_set_exception)
721 (should_stop_exception, check_status_exception): New functions.
722 (print_one_exception, print_mention_exception)
723 (print_recreate_exception): Adjust.
724 (dtor_catch_exception, allocate_location_catch_exception)
725 (re_set_catch_exception, check_status_catch_exception): New
727 (catch_exception_breakpoint_ops): Install them.
728 (dtor_catch_exception_unhandled)
729 (allocate_location_catch_exception_unhandled)
730 (re_set_catch_exception_unhandled)
731 (check_status_catch_exception_unhandled): New functions.
732 (catch_exception_unhandled_breakpoint_ops): Install them.
733 (dtor_catch_assert, allocate_location_catch_assert)
734 (re_set_catch_assert, check_status_catch_assert): New functions.
735 (catch_assert_breakpoint_ops): Install them.
736 (ada_exception_catchpoint_p): Delete.
737 (catch_ada_exception_command_split)
738 (ada_exception_catchpoint_cond_string): Rename exp_string
739 parameter to excep_string. Adjust.
740 (ada_parse_catchpoint_condition): Delete.
741 (ada_exception_sal): Rename the exp_string parameter to
742 excep_string. Delete the cond_string and cond parameters.
744 (ada_decode_exception_location): Rename the exp_string parameter
745 to excep_string. Delete the cond_string and cond parameters.
747 (create_ada_exception_catchpoint): New function.
748 (catch_ada_exception_command, ada_decode_assert_location)
749 (catch_assert_command): Adjust.
750 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
752 2011-06-22 Pedro Alves <pedro@codesourcery.com>
754 * ada-lang.c: Include arch-utils.h.
755 (ada_decode_exception_location): Make static.
756 (catch_ada_exception_command): Moved here from breakpoint.c.
757 (ada_decode_assert_location): Make static.
758 (catch_assert_command): Moved here from breakpoint.c.
759 (_initialize_ada_lang): Install the exception and assert
760 catchpoint commands here.
761 * ada-lang.h (ada_decode_exception_location)
762 (ada_decode_assert_location): Delete declarations.
763 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
765 (create_ada_exception_breakpoint): Make extern.
766 (catch_ada_exception_command, catch_assert_command): Moved to
768 (add_catch_command): Make extern.
769 (_initilize_breakpoint): Don't install the exception and assert
770 catchpoint commands here.
771 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
773 (add_catch_command, create_ada_exception_breakpoint): Declare.
775 2011-06-22 Pedro Alves <pedro@codesourcery.com>
777 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
778 the breakpoint to the breakpoint chain here.
779 (set_raw_breakpoint_without_location): Add the breakpoint to the
780 breakpoint chain here.
781 (init_raw_breakpoint): Adjust comments.
782 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
784 (init_catchpoint): Don't set the catchpoint's breakpoint number
786 (install_catchpoint): New function.
787 (create_fork_vfork_event_catchpoint)
788 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
789 use install_catchpoint.
791 2011-06-22 Pedro Alves <pedro@codesourcery.com>
793 * breakpoint.c (create_catchpoint_without_mention)
794 (create_catchpoint): Delete.
796 2011-06-22 Pedro Alves <pedro@codesourcery.com>
798 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
799 * breakpoint.c (init_raw_breakpoint_without_location): Remove
800 reference to exec_pathname.
801 (struct exec_catchpoint): New type.
802 (dtor_catch_exec): New function.
803 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
804 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
805 (catch_exec_command_1): Adjust to use init_catchpoint.
806 (delete_breakpoint): Remove reference to exec_pathname.
808 2011-06-22 Pedro Alves <pedro@codesourcery.com>
810 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
811 (struct breakpoint): Delete field `syscalls_to_be_caught'.
812 * breakpoint.c (init_raw_breakpoint_without_location): Remove
813 reference to syscalls_to_be_caught.
814 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
816 (struct syscall_catchpoint): New type.
817 (dtor_catch_syscall): New function.
818 (insert_catch_syscall, remove_catch_syscall)
819 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
820 (print_recreate_catch_syscall): Adjust.
821 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
822 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
823 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
824 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
825 (masked_watchpoint_breakpoint_ops)
826 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
827 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
828 there is one. Remove references to syscalls_to_be_caught.
829 (catching_syscall_number): Adjust.
830 * ada-lang.c (catch_exception_breakpoint_ops)
831 (catch_exception_unhandled_breakpoint_ops)
832 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
834 2011-06-22 Pedro Alves <pedro@codesourcery.com>
836 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
838 * breakpoint.c (init_raw_breakpoint_without_location): Remove
839 reference to forked_inferior_pid.
840 (struct fork_catchpoint): New type.
841 (breakpoint_hit_catch_fork, print_it_catch_fork)
842 (print_one_catch_fork, breakpoint_hit_catch_vfork)
843 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
844 (create_fork_vfork_event_catchpoint): Adjust to use
847 2011-06-22 Pedro Alves <pedro@codesourcery.com>
849 * breakpoint.c (add_to_breakpoint_chain)
850 (init_raw_breakpoint_without_location): New functions, factored
852 (set_raw_breakpoint_without_location): ... this one.
853 (init_raw_breakpoint): New function, factored out from
854 set_raw_breakpoint and adjusted to use
855 init_raw_breakpoint_without_location.
856 (set_raw_breakpoint): Adjust.
857 (init_catchpoint): New function, factored out from
858 create_catchpoint_without_mention and adjusted to use
860 (create_catchpoint_without_mention): Adjust.
862 2011-06-22 Tom Tromey <tromey@redhat.com>
864 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
865 argument of 0 specially.
867 2011-06-22 Yao Qi <yao@codesourcery.com>
869 * infrun.c (handle_inferior_event): Remove write-only local variable
870 `sw_single_step_trap_p'.
872 2011-06-20 Tom Tromey <tromey@redhat.com>
874 * symtab.c (lookup_language_this): End loop if block is NULL.
876 2011-06-17 Tom Tromey <tromey@redhat.com>
878 * valops.c (value_of_this): Use lookup_language_this.
879 * symtab.h (lookup_language_this): Declare.
880 * symtab.c (lookup_language_this): New function.
881 (lookup_symbol_aux): Use lookup_language_this.
882 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
884 2011-06-17 Tom Tromey <tromey@redhat.com>
886 * value.h (value_of_this): Update.
887 (value_of_local): Remove.
888 * valops.c (value_of_this): Rename from value_of_local. Change
890 * p-exp.y (exp): Update.
891 (variable): Likewise.
892 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
894 2011-06-17 Tom Tromey <tromey@redhat.com>
896 * valops.c (value_of_local): Complain if NAME is NULL.
897 * std-operator.def (OP_OBJC_SELF): Remove.
898 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
899 * objc-exp.y (name_not_typename): Use OP_THIS.
900 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
902 <OP_OBJC_SELF>: Remove.
903 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
905 2011-06-16 Tristan Gingold <gingold@adacore.com>
907 * python/py-events.h (gdb_py_events): Make it extern.
908 * python/py-evtregistry.c (gdb_py_events): Declare.
910 2011-06-16 Hui Zhu <teawater@gmail.com>
912 * remote.c (remote_trace_set_readonly_regions): Add check for
913 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
916 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
918 * arm-linux-tdep.c: Include "auxv.h".
920 (ARM_LINUX_SIZEOF_VFP): Define.
921 (arm_linux_supply_vfp): New function.
922 (arm_linux_collect_vfp): Likewise.
923 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
924 (arm_linux_fpa_regset_sections): New variable.
925 (arm_linux_vfp_regset_sections): Likewise.
926 (arm_linux_core_read_description): New function.
927 (arm_linux_init_abi): Install arm_linux_core_read_description and
928 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
929 appropriate for the architecture.
930 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
931 (tdesc_arm_with_m): Declare.
932 (tdesc_arm_with_iwmmxt): Likewise.
933 (tdesc_arm_with_vfpv2): Likewise.
934 (tdesc_arm_with_vfpv3): Likewise.
935 (tdesc_arm_with_neon): Likewise.
936 * arm-linux-nat.c: Move features/*.c includes ...
937 * arm-tdep.c: ... here.
938 * arm-linux-nat.c (arm_linux_read_description): Move initializing
939 target description data structures ...
940 * arm-tdep.c (_initialize_arm_tdep): ... here.
941 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
942 HWCAP_VFPv3D16): Move definitions ...
943 * arm-linux-tdep.h: ... here.
945 2011-06-15 Hui Zhu <teawater@gmail.com>
947 * remote.c (remote_trace_set_readonly_regions): Add a check for
950 2011-06-14 Tom Tromey <tromey@redhat.com>
952 * coffread.c (coffread_objfile): Rename from current_objfile.
953 * dbxread.c (dbxread_objfile): Rename from current_objfile.
954 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
956 2011-06-14 Tom Tromey <tromey@redhat.com>
958 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
959 (class_symtab): Remove.
960 (jv_dynamics_progspace_key): New global.
961 (jv_per_objfile_free): Reset program space data. Update assert.
963 (get_dynamics_objfile): Use and set program space data.
964 (get_java_class_symtab): Use get_dynamics_objfile.
965 (add_class_symbol): Likewise.
966 (java_link_class_type): Likewise.
967 (java_object_type, jv_clear_object_type, set_java_object_type):
969 (get_java_object_type): Update. Don't cache result.
970 (is_object_type): Don't call set_java_object_type.
971 (_initialize_java_language): Don't set jv_type_objfile_data_key;
972 initialize jv_dynamics_progspace_key.
974 2011-06-14 Tom Tromey <tromey@redhat.com>
976 * symtab.h (current_objfile): Don't declare.
977 * objfiles.h (current_objfile): Don't declare.
978 * objfiles.c (current_objfile): Remove.
979 * mdebugread.c (current_objfile): New file-scope global.
980 * dbxread.c (current_objfile): New file-scope global.
981 * coffread.c (current_objfile): New file-scope global.
983 2011-06-13 Pedro Alves <pedro@codesourcery.com>
985 * top.h (line): Rename to ...
986 (saved_command_line): ... this.
987 (linesize): Rename to ...
988 (saved_command_line_size): ... this.
989 * top.c (line): Rename to ...
990 (saved_command_line): ... this.
991 (linesize): Rename to ...
992 (saved_command_line_size): ... this.
993 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
994 * event-top.c (command_line_handler): Adjust.
995 * main.c (captured_main): Adjust.
997 2011-06-12 Mark Kettenis <kettenis@gnu.org>
999 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
1000 get_frame_func instead of get_frame_pc to determine the code
1001 address used to construct the frame ID.
1002 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
1003 (i386_epilogue_frame_this_id): Likewise.
1004 (i386_epilogue_frame_prev_register): New function.
1005 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
1006 (i386_stack_tramp_frame_sniffer): Fix coding style.
1007 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
1008 (i386_gdbarch_init): Fix comments.
1010 2011-06-12 Mark Kettenis <kettenis@gnu.org>
1012 * i386-tdep.c (i386_match_insn_block): Use length of the proper
1013 instruction when walking back through the instruction stream.
1015 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1017 * symtab.c (output_partial_symbol_filename): Exchange the filename and
1018 fullname parameters order.
1020 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1023 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
1025 * psymtab.c (map_symbol_filenames_psymtab)
1026 (map_partial_symbol_filenames): Likewise.
1027 * psymtab.h: Include symfile.h.
1028 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
1029 * symfile.h (symbol_filename_ftype): New.
1030 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
1031 map_symbol_filenames, clarify more the naming in comment.
1033 2011-06-07 Doug Evans <dje@google.com>
1035 * cc-with-index.sh: Fix typos in comment.
1036 Look for ../../gdb, for fullname.exp.
1038 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1039 Pedro Alves <pedro@codesourcery.com>
1041 * cli/cli-cmds.c (shell_escape): Use waitpid.
1042 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
1044 2011-06-07 Tristan Gingold <gingold@adacore.com>
1046 * xcoffread.c (dwarf2_xcoff_names): New variable.
1047 (aix_process_linenos): Add a guard.
1048 (xcoff_symfile_finish): Free dwarf2.
1049 (xcoff_initial_scan): Add dwarf2 support.
1051 2011-06-06 Pedro Alves <pedro@codesourcery.com>
1053 * infcall.c (run_inferior_call): Don't mask async. Instead force
1054 a synchronous wait, if the target can async.
1056 * target.h (struct target_ops): Delete to_async_mask.
1057 (target_async_mask): Delete.
1058 * target.c (update_current_target): Delete references to to_async_mask.
1059 * linux-nat.c (linux_nat_async_mask_value): Delete.
1060 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
1061 to linux_nat_async_mask_value.
1062 (linux_nat_async_mask): Delete.
1063 (linux_nat_async, linux_nat_close): Remove references to
1064 linux_nat_async_mask_value.
1065 * record.c (record_async_mask_value): Delete.
1066 (record_async): Remove references to record_async_mask_value.
1067 (record_async_mask): Delete.
1068 (record_can_async_p, record_is_async_p): Remove references to
1069 record_async_mask_value.
1070 (init_record_ops, init_record_core_ops): Remove references to
1072 * remote.c (remote_async_mask_value): Delete.
1073 (init_remote_ops): Remove reference to remote_async_mask.
1074 (remote_can_async_p, remote_is_async_p): Remove references to
1075 remote_async_mask_value.
1076 (remote_async): Remove references to remote_async_mask_value.
1077 (remote_async_mask): Delete.
1079 * infrun.c (fetch_inferior_event): Don't claim registers changed
1080 if the current thread is already not executing.
1082 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
1084 From Stephen Kitt <steve@sk2.org>
1085 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
1086 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
1088 2011-06-03 Joel Brobecker <brobecker@adacore.com>
1090 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
1091 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
1093 2011-06-03 Tom Tromey <tromey@redhat.com>
1095 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
1097 * python/py-exitedevent.c (create_exited_event_object): Change
1098 type of 'exit_code'. Optionally add exit_code attribute.
1099 (emit_exited_event): Change type of 'exit_code'.
1100 * python/py-event.h (emit_exited_event): Update.
1101 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
1102 * infrun.c (handle_inferior_event): Set exit code fields on
1104 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
1106 * inferior.c (exit_inferior_1): Initialize new fields.
1108 2011-06-03 Tom Tromey <tromey@redhat.com>
1110 * dwarf2expr.c (get_signed_type): New function.
1111 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
1113 2011-06-02 Keith Seitz <keiths@redhat.com>
1115 * objc-lang.c (find_methods): Increment objfile_csym earlier.
1117 2011-06-02 Pedro Alves <pedro@codesourcery.com>
1119 * top.h (simplified_command_loop): Delete declaration.
1121 2011-06-01 Mike Frysinger <vapier@gentoo.org>
1123 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
1124 gdb_sysroot to the "len" variable. Append both to "arg_buf".
1126 2011-06-01 Yao Qi <yao@codesourcery.com>
1128 * objfiles.h (obj_section_addr): Update reference to objfile from
1130 (obj_section_endaddr): Likewise.
1132 2011-06-01 Daniel Jacobowitz <drow@false.org>
1134 * MAINTAINERS: Update my email address and affiliation. Also
1135 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
1137 2010-05-31 Keith Seitz <keiths@redhat.com>
1140 * linespec.c (get_search_block): New function.
1141 (find_methods): Add FILE_SYMTATB parameter and use it and
1142 get_search_block to pass an appropriate block to
1143 lookup_symbol_in_namespace.
1144 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
1145 Check if *ARGPTR starts with a filename first.
1146 If it does, call locate_first_half again to locate the next
1147 "first half" of the linespec.
1148 Pass FILE_SYMTATB to decode_objc and decode_compound.
1149 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
1150 (locate_first_half): Stop on the first colon seen.
1151 (decode_compound): Add FILE_SYMTAB parameter.
1152 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
1153 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
1154 get_search_block with lookup_symbol.
1155 (find_method): Add FILE_SYMTAB parameter and pass it to
1157 (decode_objc): Use get_search_block.
1159 2010-05-31 Keith Seitz <keiths@redhat.com>
1162 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
1163 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
1164 and CP_ANONYMOUS_NAMESPACE_LEN.
1165 (cp_is_anonymous): Likewise.
1166 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
1167 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
1168 * dwarf2read.c (namespace_name): Likewise.
1169 (fixup_partial_die): Likewise.
1170 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
1171 seen in the input, keep it.
1173 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1175 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
1176 * inf-loop.h (inferior_event_handler_wrapper): Delete.
1177 * inf-loop.c (inferior_event_handler_wrapper): Delete.
1178 (inferior_event_handler): Don't handle INF_QUIT_REQ.
1179 * remote.c (_initialize_remote): Register
1180 async_remote_interrupt_twice directly as
1181 sigint_remote_twice_token event.
1183 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1185 * target.h (enum inferior_event_type): Delete INF_ERROR.
1186 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
1188 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1190 * interps.c (interp_set): Don't cancel continuations.
1192 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1194 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
1196 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1198 * continuations.h (continuation_ftype): Add `err' parameter.
1199 Document parameters.
1200 (do_all_continuations, do_all_continuations_thread)
1201 (do_all_intermediate_continuations)
1202 (do_all_intermediate_continuations_thread)
1203 (do_all_inferior_continuations): Add `err' parameter.
1204 * continuations.c (do_my_continuations_1, do_my_continuations)
1205 (do_all_inferior_continuations, do_all_continuations_ptid)
1206 (do_all_continuations_thread_callback)
1207 (do_all_continuations_thread, do_all_continuations)
1208 (do_all_intermediate_continuations_thread_callback)
1209 (do_all_intermediate_continuations_thread)
1210 (do_all_intermediate_continuations): Add `err' parameter, and pass
1211 it down all the way to the continuations proper.
1212 * inf-loop.c (inferior_event_handler): If fetching an inferior
1213 event throws an error, don't pop the target, and still call the
1214 continuations, but with `err' set. Adjust all other continuation
1216 * breakpoint.c (until_break_command_continuation): Add `err'
1218 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
1219 issue another step if `err' is set.
1220 (struct until_next_continuation_args): New.
1221 (until_next_continuation): Add `err' parameter. Adjust.
1222 (until_next_command): Adjust.
1223 (struct finish_command_continuation_args): Add `thread' field.
1224 (finish_command_continuation): Add `err' parameter. Handle it.
1225 (finish_forward): Adjust.
1226 (attach_command_continuation): Add `err' parameter. Handle it.
1227 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1228 cancel the continuations.
1229 * interps.c (interp_set): Adjust to cancel the continuations.
1230 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1231 continuations rather than discarding.
1232 (free_thread): Don't clear thread inferior resources here.
1233 (delete_thread_1): Do it here instead. And do it before removing
1234 the thread from the threads list. Tag the thread as exited before
1235 clearing thread inferior resources.
1237 2011-05-30 Joel Brobecker <brobecker@adacore.com>
1239 * infcall.c (call_function_by_hand): Rephrase error message.
1241 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1243 * defs.h (struct thread_info, struct inferior): Delete forward
1245 * breakpoint.h (struct thread_info): New forward declaration.
1246 * observer.sh (struct inferior): New forward declaration.
1247 * python/python-internal.h (struct inferior): New forward
1250 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1252 * defs.h (struct continuation, continuation_ftype)
1253 (continuation_free_arg_ftype, add_continuation)
1254 (do_all_continuations, do_all_continuations_thread)
1255 (discard_all_continuations, discard_all_continuations_thread)
1256 (add_intermediate_continuation, do_all_intermediate_continuations)
1257 (do_all_intermediate_continuations_thread)
1258 (discard_all_intermediate_continuations)
1259 (discard_all_intermediate_continuations_thread)
1260 (add_inferior_continuation, do_all_inferior_continuations)
1261 (discard_all_inferior_continuations): Move to ...
1262 * continuations.h: ... this new file.
1263 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1264 infcmd.c, inferior.c, infrun.c, interps.c: Include
1267 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1268 Doug Evans <dje@google.com>
1270 Fix PR 10970, PR 12702.
1271 * linux-nat.c (linux_lwp_is_zombie): New function.
1272 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1273 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1275 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1277 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1279 (add_continuation, add_intermediate_continuation)
1280 (add_inferior_continuation): Use them.
1281 * continuations.c (struct continuation): Use them.
1282 (make_continuation_ftype): Delete.
1283 (make_continuation, add_inferior_continuation, add_continuation)
1284 (add_intermediate_continuation): Use continuation_ftype and
1285 continuation_free_arg_ftype. Rename parameters to shorter names.
1287 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1289 * continuations.c (make_continuation): Make it return void.
1290 (do_my_continuations): Rename to ...
1291 (do_my_continuations_1): ... this. Remove old_chain parameter and
1293 (do_my_continuations): New.
1294 (discard_my_continuations): Rename to ...
1295 (discard_my_continuations_1): ... this. Remove old_chain
1296 parameter and adjust.
1297 (discard_my_continuations): New.
1298 (add_inferior_continuation): Simplify.
1299 (do_all_inferior_continuations): Reimplement on top
1300 do_my_continuations.
1301 (discard_all_inferior_continuations): Simplify.
1302 (add_continuation): Simplify.
1303 (do_all_continuations_ptid): Simplify.
1304 (discard_all_continuations_thread_callback): Simplify.
1305 (add_intermediate_continuation): Simplify.
1306 (discard_all_intermediate_continuations_thread_callback):
1309 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1311 * utils.c (struct continuation, add_continuation)
1312 (add_inferior_continuation)
1313 (do_all_inferior_continuations, discard_all_inferior_continuations)
1314 (restore_thread_cleanup, do_all_continuations_ptid)
1315 (do_all_continuations_thread_callback)
1316 (do_all_continuations_thread, do_all_continuations)
1317 (discard_all_continuations_thread_callback)
1318 (discard_all_continuations_thread, discard_all_continuations)
1319 (add_intermediate_continuation)
1320 (do_all_intermediate_continuations_thread_callback)
1321 (do_all_intermediate_continuations_thread)
1322 (do_all_intermediate_continuations)
1323 (discard_all_intermediate_continuations_thread_callback)
1324 (discard_all_intermediate_continuations_thread)
1325 (discard_all_intermediate_continuations): Move to ...
1326 * continuations.c: ... this new file, and adjust to no longer
1327 implement continuations on top of cleanups.
1328 * Makefile.in (SFILES): Add continuations.c.
1329 (COMMON_OBS): Add continuations.o.
1331 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1333 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1334 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1335 Internal error on invalid values.
1336 * reverse.c: Don't handle EXEC_ERROR.
1337 * mi/mi-main.c: Don't handle EXEC_ERROR.
1339 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1341 * record.c: Include event-loop.h, inf-loop.h.
1342 (record_beneath_to_async): New global.
1343 (tmp_to_async): New global.
1344 (record_async_inferior_event_token): New global.
1345 (record_open_1): Don't error out if async is enabled.
1346 (record_open): Handle to_async. Create an async event source in
1348 (record_close): Delete the async event source.
1349 (record_resumed): New global.
1350 (record_execution_dir): New global.
1351 (record_resume, record_core_resume): Set them. Register the
1352 target on the event loop.
1353 (record_wait): Rename to ...
1354 (record_wait_1): ... this. Add more debug output. Handle
1355 TARGET_WNOHANG, and the target beneath returning
1356 TARGET_WAITKIND_IGNORE.
1357 (record_wait): Reimplement on top of record_wait_1.
1358 (record_async_mask_value): New global.
1359 (record_async, record_async_mask, record_can_async_p)
1360 (record_is_async_p, record_execution_direction): New functions.
1361 (init_record_ops, init_record_core_ops): Install new methods.
1362 * infrun.c (fetch_inferior_event): Temporarily switch the global
1363 execution direction to the direction the target was going.
1364 (execution_direction): Change type to int.
1365 * target.c (default_execution_direction): New function.
1366 (update_current_target): Inherit and de_fault
1367 to_execution_direction.
1368 * target.h (struct target_ops) <to_execution_direction>: New
1370 (target_execution_direction): New macro.
1371 * inferior.h (execution_direction): Change type to int.
1373 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1375 * infcall.c (call_function_by_hand): Don't allow calling functions
1376 in reverse execution mode.
1378 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1380 * infcmd.c (finish_command): Allow async finish in reverse.
1382 2011-05-26 Yao Qi <yao@codesourcery.com>
1384 * gdb_thread_db.h: Delete. Move to ...
1385 * common/gdb_thread_db.h: ... here.
1387 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1389 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1390 function's entry point instead of a manually managed momentary
1391 breakpoint, and only ever issue one proceed call.
1392 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1393 doing a reverse-finish, switch to stepi mode, to do another step.
1394 (insert_step_resume_breakpoint_at_sal): Make public.
1395 (normal_stop): No need to save function value return registers if
1397 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1399 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1401 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1402 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1403 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
1405 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1406 step-resume breakpoints.
1407 (print_it_typical): Handle bp_hp_step_resume.
1408 (bpstat_what): Ditto.
1409 (bptype_string): Ditto.
1410 (print_one_breakpoint_location): Ditto.
1411 (allocate_bp_location): Ditto.
1413 (breakpoint_re_set_one): Ditto.
1414 * infrun.c (handle_inferior_event): Adjust. Split
1415 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1416 BPSTAT_WHAT_HP_STEP_RESUME.
1417 (insert_step_resume_breakpoint_at_sal): Rename to ...
1418 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
1419 parameter. Handle it.
1420 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1421 insert_step_resume_breakpoint_at_sal_1.
1422 (insert_step_resume_breakpoint_at_frame): Rename to ...
1423 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
1424 set a high-priority step-resume breakpoint.
1425 (insert_step_resume_breakpoint_at_frame): Adjust comment.
1426 (insert_step_resume_breakpoint_at_caller): Ditto.
1428 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1430 * breakpoint.c (iterate_over_related_breakpoints): New.
1431 (do_map_delete_breakpoint): New.
1432 (delete_command): Pass do_map_delete_breakpoint to
1433 map_breakpoint_numbers.
1434 (do_disable_breakpoint): New.
1435 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1437 (do_enable_breakpoint): Rename to ...
1438 (enable_breakpoint_disp): ... this.
1439 (enable_breakpoint): Adjust.
1440 (do_enable_breakpoint): New.
1441 (enable_once_breakpoint): Delete.
1442 (do_map_enable_breakpoint): New.
1443 (do_map_enable_once_breakpoint): New.
1444 (enable_once_command, enable_delete_command)
1445 (delete_trace_command): Iterate over the breakpoint's related
1448 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1450 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1451 for ALPHA_ZERO_REGNUM.
1452 (alpha_supply_int_regs): Explicitly supply zero as the value for
1453 ALPHA_ZERO_REGNUM in the register cache.
1454 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1456 2011-05-26 Yao Qi <yao@codesourcery.com>
1458 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1460 2011-05-26 Tristan Gingold <gingold@adacore.com>
1462 * symfile.h (struct dwarf2_section_names): New type.
1463 (struct dwarf2_debug_sections): New type.
1464 (dwarf2_has_info): Add parameter.
1465 * dwarf2read.c (dwarf2_elf_names): New variable.
1466 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1467 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1468 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1469 (dwarf2_has_info): Add names parameter. Pass names
1470 to dwarf2_locate_sections.
1471 (section_is_p): Rewrite using the names parameter.
1472 (dwarf2_locate_sections): Use section names from the names parameter.
1473 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1474 * elfread.c (read_psyms): Ditto.
1475 * machoread.c (macho_symfile_read): Ditto.
1477 2011-05-25 Andreas Schwab <schwab@redhat.com>
1480 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1482 2011-05-24 Keith Seitz <keiths@redhat.com>
1485 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1486 (decode_compound): Unconditionally call keep_name_info.
1488 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1490 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1491 scope, clear its command list.
1492 (map_breakpoint_numbers): Don't walk the related breakpoints list
1495 2011-05-24 Tom Tromey <tromey@redhat.com>
1497 * MAINTAINERS: Move Jim Blandy to past maintainers.
1499 2011-05-24 Tristan Gingold <gingold@adacore.com>
1501 * symfile.h (enum dwarf2_section_enum): New type.
1502 (dwarf2_get_section_info): New prototype.
1503 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1504 section_name by sect. Use a switch to select the info.
1505 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1506 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1508 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1510 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1511 shared library event breakpoint if there's no execution.
1513 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
1515 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1516 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1518 2011-05-23 Tom Tromey <tromey@redhat.com>
1520 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1523 2011-05-23 Doug Evans <dje@google.com>
1525 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1526 entry for RuntimeError to doc string.
1528 2011-05-23 Jerome Guitton <guitton@adacore.com>
1530 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1531 sequence for probing loops.
1533 2011-05-23 Pedro Alves <pedro@codesourcery.com>
1535 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1538 2011-05-21 Mark Kettenis <kettenis@gnu.org>
1540 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1541 zero as the value for %g0 in the register cache.
1542 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1543 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1545 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1547 * infrun.c (proceed): Set previous_inferior_ptid here.
1548 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1549 inferior_ptid, not null_ptid.
1550 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1551 (fetch_inferior_event): Nor here.
1553 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1555 * inf-loop.c (inferior_event_handler): Only output a message if
1558 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
1560 * MAINTAINERS: Update my e-mail address.
1562 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1564 * infrun.c (proceed): Switch the inferior event loop to
1565 INF_EXEC_COMPLETE if the target refused to resume from a
1568 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1570 * infcmd.c: Include "inf-loop.h".
1571 (step_once): When stepping into an inline subroutine, pretend the
1572 target has run. If the target can async, switch the inferior
1573 event loop to INF_EXEC_COMPLETE.
1574 * inferior.h (user_visible_resume_ptid): Declare.
1575 * infrun.c (user_visible_resume_ptid): New function, factored out
1578 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1579 that the current thread is running. Merge async and sync
1582 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1584 * infcmd.c (step_1): Simplify synchronous case.
1586 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1588 * tracepoint.c: Include exceptions.h.
1589 (TFILE_PID): Move higher in file.
1590 (tfile_open): Delay pushing the tfile target until we're assured
1591 the tfile header is present in the file. Wrap reading the initial
1592 newline-terminated lines in TRY_CATCH. Pop the target if the
1593 initial setup failed. Add the tfile's thread immediately
1594 aftwards, before any non-essential setup. Don't skip
1595 post_create_inferior if there are no traceframes present in the
1597 (tfile_close): Remove redundant check for null before xfree call.
1598 (tfile_thread_alive): New function.
1599 (init_tfile_ops): Register it as to_thread_alive callback.
1601 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1603 * tracepoint.c (tfile_open): Delete #if 0'd code.
1605 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1607 Fix -readnow for -gdwarf-4 unused type units.
1608 * dwarf2read.c (struct signatured_type): Remove the field offset.
1609 (create_signatured_type_table_from_index): Remove its initialization.
1610 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1611 instead. Add a complaint call.
1612 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1613 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1614 (lookup_signatured_type_at_offset, read_signatured_type)
1615 (write_one_signatured_type): Update the field for per_cu.
1617 2011-05-19 Tom Tromey <tromey@redhat.com>
1619 * python/py-inferior.c (python_inferior_exit): Use
1621 (python_on_resume): Likewise.
1623 2011-05-19 Matt Rice <ratmice@gmail.com>
1625 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1627 2011-05-19 Hui Zhu <teawater@gmail.com>
1629 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1631 2011-05-19 Hui Zhu <teawater@gmail.com>
1633 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1635 2011-05-18 Tom Tromey <tromey@redhat.com>
1637 * dwarf2read.c (dwarf2_add_field): Constify.
1638 * value.c (value_static_field): Constify.
1639 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1641 * ax-gdb.c (gen_static_field): Constify
1643 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1645 * linux-nat.c (kill_callback): Use SIGKILL first.
1647 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1649 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1651 2011-05-18 Tom Tromey <tromey@redhat.com>
1653 * value.c (value_fn_field): Constify.
1654 * symtab.c (gdb_mangle_name): Constify.
1655 * stabsread.c (update_method_name_from_physname): Make 'physname'
1657 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1658 const. Use explicit fputc_filtered loop.
1659 (pascal_type_print_base): Constify.
1660 * p-lang.h (pascal_type_print_method_args): Update.
1661 * linespec.c (add_matching_methods): Constify.
1662 (add_constructors): Likewise.
1663 * jv-typeprint.c (java_type_print_base): Constify.
1664 * gdbtypes.h (struct cplus_struct_type)
1665 <fn_fieldlist.fn_field.physname>: Now const.
1666 * dwarf2read.c (compute_delayed_physnames): Constify.
1667 (dwarf2_add_member_fn): Likewise.
1668 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1670 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1672 * infrun.c (resume): Mention which is the current thread, and its
1673 current PC in debug output.
1674 (prepare_to_proceed): Mention the thread switching in debug
1677 2011-05-18 Tom Tromey <tromey@redhat.com>
1679 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1680 path check. Use xmalloc and cleanups.
1681 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1683 2011-05-17 Tom Tromey <tromey@redhat.com>
1685 * cp-valprint.c (cp_print_value_fields): Catch errors from
1688 2011-05-17 Tom Tromey <tromey@redhat.com>
1690 * dwarf2read.c (dwarf2_get_die_type): Call
1691 get_die_type_at_offset.
1692 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1693 get_base_type function.
1695 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1697 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1700 2011-05-16 Doug Evans <dje@google.com>
1702 * python/py-auto-load.c (source_section_scripts): Mention objfile
1705 2011-05-15 Doug Evans <dje@google.com>
1707 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1708 (try_thread_db_load_from_pdir): Call it. If unable to find
1709 libthread_db in directory of libpthread, see if we're looking at
1710 the separate-debug-info copy.
1712 * python/py-autoload.c (print_script): Print "Missing" instead of
1713 "No" for missing scripts.
1714 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1716 2011-05-13 Doug Evans <dje@google.com>
1718 * ui-file.c (stdio_file_write_async_safe): Add comment.
1720 2011-05-14 Hui Zhu <teawater@gmail.com>
1722 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1724 2011-05-13 Doug Evans <dje@google.com>
1726 Support $pdir and $sdir in libthread-db-search-path.
1727 * NEWS: Mention $sdir,$pdir.
1728 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1729 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1730 (try_thread_db_load_from_sdir): New function.
1731 (try_thread_db_load_from_dir): New function.
1732 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1733 system directories if search of libthread-db-search-path fails,
1734 that is now done via $sdir.
1735 (has_libpthread): New function.
1736 (thread_db_load): Remove search for libthread_db in directory of
1737 libpthread, that is now done via $pdir.
1739 * NEWS: Mention "info auto-load-scripts".
1740 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1741 script_not_found_warning_printed.
1742 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1743 all callers updated. Initialize script_not_found_warning_printed.
1744 (get_auto_load_pspace_data_for_loading): New function.
1745 (maybe_add_script): New function.
1746 (source_section_scripts): Simplify. Only print one warning regardless
1747 of the number of auto-load scripts not found.
1748 (clear_section_scripts): Clear script_not_found_warning_printed.
1749 (auto_load_objfile_script): Record script in hash table.
1750 (count_matching_scripts): New function.
1751 (maybe_print_script): Renamed from maybe_print_section_script, all
1752 callers updated. Rewrite to use ui_out_*.
1753 (info_auto_load_scripts): Renamed from
1754 maintenance_print_section_scripts, all callers updated.
1755 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1756 renamed as "info auto-load-scripts".
1758 2011-05-13 Tom Tromey <tromey@redhat.com>
1760 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1761 (read_sleb128): Likewise.
1763 2011-05-13 Tom Tromey <tromey@redhat.com>
1765 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1768 2011-05-13 Doug Evans <dje@google.com>
1770 * linux-nat.c (debug_linux_nat_async): Delete.
1771 Replace all references to use debug_linux_nat instead.
1772 (show_debug_linux_nat_async): Delete.
1773 (sigchld_handler): Call ui_file_write_async_safe instead of
1775 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1776 * ui-file.c (struct ui_file): New member to_write_async_safe.
1777 (null_file_write_async_safe): New function.
1778 (ui_file_write_async_safe): New function.
1779 (set_ui_file_write_async_safe): New function.
1780 (ui_file_new): Initialize to_write_async_safe.
1781 (stdio_file_write_async_safe): New function.
1782 (struct stdio_file): New member fd.
1783 (stdio_file_new): Initialize to_write_async_safe, fd.
1784 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1786 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1787 (set_ui_file_write_async_safe): Declare.
1788 (ui_file_write_async_safe): Declare.
1790 2011-05-13 Tom Tromey <tromey@redhat.com>
1792 * utils.c (do_value_free): New function.
1793 (make_cleanup_value_free): Likewise.
1794 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1796 (dwarf2_loc_desc_needs_frame): Call
1797 make_cleanup_value_free_to_mark.
1798 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1799 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1801 (new_dwarf_expr_context): Don't call value_mark.
1802 * dwarf2-frame.c (execute_stack_op): Call
1803 make_cleanup_value_free_to_mark.
1804 * defs.h (make_cleanup_value_free): Declare.
1806 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1808 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1809 prepare_execute_command.
1810 * top.c (prepare_execute_command): Return cleanup.
1811 (execute_command): Use cleanup from prepare_execute_command.
1812 * top.h (prepare_execute_command): Change prototype to return
1814 * defs.h (struct value): Add opaque declaration.
1815 (make_cleanup_value_free_to_mark): Add prototype.
1816 * utils.c (do_value_free_to_mark): New function.
1817 (make_cleanup_value_free_to_mark): Likewise.
1819 2011-05-12 Tom Tromey <tromey@redhat.com>
1821 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1822 cast left-hand-side to unsigned.
1824 2011-05-12 Tom Tromey <tromey@redhat.com>
1827 * value.h (value_from_contents): Declare.
1828 * value.c (value_from_contents): New function.
1829 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1830 (dwarf2_get_die_type): New function.
1831 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1832 (allocate_piece_closure): Acquire reference to values.
1833 (read_pieced_value): Update for value-based expressions.
1834 (write_pieced_value): Likewise.
1835 (free_pieced_value_closure): Call value_free as needed.
1836 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1837 Update for value-based expressions.
1838 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1839 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1840 <get_base_type>: New field.
1841 (struct dwarf_expr_piece) <v.value>: Change type.
1842 <v.regno>: New field.
1843 (struct dwarf_expr_context) <mark>: New field.
1844 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1845 (dwarf_expr_pop, dwarf_expr_push): Remove.
1846 (dwarf_expr_push_address): Declare.
1847 * dwarf2expr.c (dwarf_arch_cookie): New global.
1848 (struct dwarf_gdbarch_types): New.
1849 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1851 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1853 (dwarf_expr_push_address): New function.
1854 (dwarf_expr_pop): Now static.
1855 (dwarf_expr_fetch): Change return type.
1856 (dwarf_require_integral): New function.
1857 (dwarf_expr_fetch): Simplify.
1858 (add_piece): Update.
1859 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1861 (execute_stack_op) <sign_ext>: Remove.
1862 Use values for DWARF stack.
1863 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1864 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1866 (_initialize_dwarf2expr): New function.
1867 (add_piece): Update.
1868 (new_dwarf_expr_context): Set new field.
1869 (free_dwarf_expr_context): Call value_free_to_mark.
1870 * dwarf2-frame.c (no_base_type): New function.
1871 (execute_stack_op): Set get_base_type field. Update.
1873 2011-05-12 Tom Tromey <tromey@redhat.com>
1875 * dwarf2read.c (read_common_block): Fix formatting.
1877 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1879 * breakpoint.c (disable_breakpoint): Disable all locations
1880 associated with a tracepoint on target if a trace experiment is
1882 (disable_command): Disable a specific tracepoint location on target if
1883 a trace experiment is running.
1884 (do_enable_breakpoint): Enable all locations associated with a
1885 tracepoint on target if a trace experiment is running.
1886 (enable_command) Enable a specific tracepoint location on target if a
1887 trace experiment is running.
1888 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1889 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1890 to_disable_tracepoint.
1891 * target.h: Add declaration of struct bp_location.
1892 (struct target_ops): Add new functions
1893 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1894 to_disable_tracepoint to target operations.
1895 (target_supports_enable_disable_tracepoint): New macro.
1896 (target_enable_tracepoint): New macro.
1897 (target_disable_tracepoint): New macro.
1898 * remote.c (struct remote_state): Add new field.
1899 (remote_enable_disable_tracepoint_feature): New.
1900 (remote_protocol_features): Add new entry.
1901 (remote_supports_enable_disable_tracepoint): New.
1902 (remote_enable_tracepoint): New.
1903 (remote_disable_tracepoint): New.
1904 (init_remote_ops): Add remote_enable_tracepoint,
1905 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1906 to remote operations.
1907 * tracepoint.c (start_tracing): Allow tracing to start without any
1908 tracepoints enabled with just a warning if they can be re-enabled
1910 * NEWS: Add news item for the new behaviour of the enable and disable
1911 GDB commands when applied to tracepoints.
1912 Add news items for the new remote packets QTEnable and QTDisable.
1914 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1916 * config.in: Regenerate.
1917 * configure: Regenerate.
1918 * configure.ac <--with-system-readline> (for readline_echoing_p):
1920 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1921 (tui_old_rl_echoing_p): ... here.
1922 (tui_setup_io): Rename extern declaration readline_echoing_p to
1923 _rl_echoing_p. Adjust assignments for the both renames.
1925 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1927 * symtab.c (lookup_symtab): Run cleanup before returning.
1929 2011-05-11 Tom Tromey <tromey@redhat.com>
1931 * dwarf2read.c (handle_data_member_location): New function.
1932 (dwarf2_add_field): Use it.
1933 (read_common_block): Likewise.
1935 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1937 Make addrs->SECTINDEX always defined.
1938 * symfile.c (relative_addr_info_to_section_offsets): Check for
1939 SECTINDEX -1, not for zero ADDR.
1940 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1941 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1942 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1945 2011-05-10 Doug Evans <dje@google.com>
1947 * linux-thread-db.c: Whitespace cleanup.
1948 (try_thread_db_load_1): Fix comment.
1950 * linux-thread-db.c (set_libthread_db_search_path): New function.
1951 (_initialize_thread_db): Add setter for libthread-db-search-path.
1953 2011-05-09 Doug Evans <dje@google.com>
1955 * NEWS: Mention --with-iconv-bin.
1956 * configure.ac: New option --with-iconv-bin.
1957 * configure: Regenerate.
1958 * config.in: Regenerate.
1959 * defs.h (relocate_gdb_directory): Declare.
1960 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1961 removed progname parameter, and exported. All callers updated.
1962 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1964 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1965 adding missing call to restore_child_signals_mask.
1967 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1969 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1971 * infrun.c (proceed, start_remote): Adjust.
1972 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1973 and adjust to not handle it.
1974 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1975 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1976 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1977 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1978 * windows-nat.c (do_initial_windows_stuff): Adjust.
1979 * infcmd.c (attach_command): Adjust.
1980 (notice_new_inferior): Adjust.
1982 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1984 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1985 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1986 * spu-tdep.c (op_selb): Use correct value.
1988 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1990 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1991 "parent" parameter to symbol_file_add_from_bfd call.
1993 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1994 Thiago Jung Bauermann <bauerman@br.ibm.com>
1996 Implement support for PowerPC BookE masked watchpoints.
1997 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1999 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
2000 method. Initialize to NULL in all existing breakpoint_ops instances.
2001 (struct breakpoint) <hw_wp_mask>: New field.
2002 * breakpoint.c (is_masked_watchpoint): Add prototype.
2003 (update_watchpoint): Don't set b->val for masked watchpoints. Call
2004 breakpoint's breakpoint_ops.works_in_software_mode if available.
2005 (watchpoints_triggered): Handle the case of a hardware masked
2007 (watchpoint_check): Likewise.
2008 (works_in_software_mode_watchpoint): New function.
2009 (insert_masked_watchpoint, remove_masked_watchpoint)
2010 (resources_needed_masked_watchpoint)
2011 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
2012 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
2013 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
2015 (masked_watchpoint_breakpoint_ops): New structure.
2016 (watch_command_1): Check for the existence of the `mask' parameter.
2017 Set b->ops according to the type of hardware watchpoint being created.
2018 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
2019 (ppc_linux_remove_mask_watchpoint)
2020 (ppc_linux_masked_watch_num_registers): New functions.
2021 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
2022 to_remove_mask_watchpoint and to_masked_watch_num_registers.
2023 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
2024 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
2025 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2026 (target_masked_watch_num_registers): New functions.
2027 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
2028 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
2030 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2031 (target_masked_watch_num_registers): Add prototypes.
2033 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2036 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
2037 (producer_is_gcc_ge_4_0): New function.
2038 (process_full_comp_unit): Set also symtab->locations_valid. Move the
2039 symtab->language code.
2040 (var_decode_location): Set cu->has_loclist.
2041 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
2042 skip. Intialize force_skip from locations_valid. Move the prologue
2043 skipping code into two passes.
2044 * symtab.h (struct symtab): Make the primary field a bitfield. New
2045 field locations_valid.
2047 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2049 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
2050 (classify_inner_name): Call cp_lookup_nested_type with
2052 * cp-namespace.c (cp_lookup_nested_type): New variable
2053 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
2054 type_name_no_tag_or_error with saved_parent_type.
2055 * dwarf2read.c (load_partial_dies): Read in any children of
2056 DW_TAG_typedef with complaint in such case.
2057 * gdbtypes.c (type_name_no_tag_or_error): New function.
2058 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
2059 * valops.c (destructor_name_p): New comment for parameter type. Remove
2060 type const. Make dname and cp const. Call type_name_no_tag_or_error.
2061 * value.h (destructor_name_p): Remove type const.
2063 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2065 * symtab.c (compare_symbol_name): New function.
2066 (completion_list_add_name, expand_partial_symbol_name): Call it,
2067 remove the variable ncmp.
2068 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
2071 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2073 Demote to sw watchpoint only in update_watchpoint.
2074 * breakpoint.c (update_watchpoint): Change between software and
2075 hardware watchpoint for all kinds of watchpoints, not just
2076 read/write ones. Determine b->exact value here instead of
2077 in watch_command_1. Error out if there are not enough resources
2078 for a read or access hardware watchpoint.
2079 (watch_command_1): Remove logic of checking whether there are
2080 enough resources available, since update_watchpoint will do that
2081 work now. Don't set b->exact here. Catch exceptions thrown by
2082 update_watchpoint and delete the watchpoint.
2083 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
2084 Use target_exact_watchpoints instead.
2085 (delete_breakpoint): Notify observers only if deleted watchpoint
2086 has a breakpoint number assigned to it.
2088 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
2090 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2092 2011-05-05 Jerome Guitton <guitton@adacore.com>
2094 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
2096 (i386_stack_tramp_frame_unwind): New static global.
2097 (i386_match_pattern): New function, extracted from i386_match_insn.
2098 (i386_match_insn): Use i386_match_pattern.
2099 (i386_match_insn_block): New function.
2100 (i386_tramp_chain_in_reg_insns)
2101 (i386_tramp_chain_on_stack_insns): New static variables.
2102 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
2105 2011-05-04 Joseph Myers <joseph@codesourcery.com>
2107 * configure.host (xscale*): Don't handle target.
2108 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
2111 2011-05-04 Yao Qi <yao@codesourcery.com>
2113 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
2115 2011-05-03 Joel Brobecker <brobecker@adacore.com>
2118 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
2119 | * elfread.c (elf_symtab_read): Stop memory leak.
2121 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2123 * nto-tdep.c (nto_target): Replace deprecated call to
2124 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
2126 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2128 Fix false GCC warning.
2129 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
2131 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2133 * breakpoint.c (update_watchpoint): Move code to change
2134 the enable state of breakpoint from here ...
2135 (do_enable_breakpoint): ... to here.
2137 2011-04-26 Andrew Gontarek <andrewg@cray.com>
2139 * valprint.c (val_print_array_elements): Fixed poor performance
2140 of printing very large arrays with repeat_count_threshold set
2141 to unlimited. New comment.
2143 2011-04-29 Tom Tromey <tromey@redhat.com>
2145 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
2146 (mi_parse): Likewise.
2147 * breakpoint.c (break_range_command): Use sizeof char*, not
2149 (create_breakpoint): Likewise.
2150 (parse_breakpoint_sals): Likewise.
2152 2011-04-29 Pedro Alves <pedro@codesourcery.com>
2154 * linux-nat.c (linux_child_remove_fork_catchpoint)
2155 (linux_child_remove_vfork_catchpoint)
2156 (linux_child_remove_exec_catchpoint): New functions.
2157 (linux_target_install_ops): Install them.
2159 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
2163 * varobj.c (install_default_visualizer): Do not install a
2164 visualizer if the varobj is CPLUS_FAKE_CHILD.
2165 (construct_visualizer): Likewise.
2167 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2169 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
2170 case insensitive comparison.
2172 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
2174 * infrun.c (proceed): Revert previous change.
2175 (resume): Instead, handle the case of signal delivery while stepping
2176 off a breakpoint location here, and only if software single-stepping
2177 is used. Handle nested signals.
2179 2011-04-28 Yao Qi <yao@codesourcery.com>
2181 * arm-tdep.c (copy_unmodified): Rename to ...
2182 (arm_copy_unmodified): .. this. New.
2183 (copy_preload): Move common part to ...
2184 (install_preload): .. this. New.
2185 (arm_copy_preload): New.
2186 (copy_preload_reg): Move common part to ...
2187 (install_preload_reg): ... this. New.
2188 (arm_copy_preload_reg): New.
2189 (copy_b_bl_blx): Move common part to ...
2190 (install_b_bl_blx): .. this. New.
2191 (arm_copy_b_bl_blx): New.
2192 (copy_bx_blx_reg): Move common part to ...
2193 (install_bx_blx_reg): ... this. New.
2194 (arm_copy_bx_blx_reg): New.
2195 (copy_alu_reg): Move common part to ...
2196 (install_alu_reg): ... this. New.
2197 (arm_copy_alu_reg): New.
2198 (copy_alu_shifted_reg): Move common part to ...
2199 (install_alu_shifted_reg): ... this. New.
2200 (copy_ldr_str_ldrb_strb): Move common part to ...
2201 (install_ldr_str_ldrb_strb): ... this. New.
2202 (arm_copy_ldr_str_ldrb_strb): New.
2203 (copy_copro_load_store): Move some common part to ...
2204 (install_copy_copro_load_store): ... this. New.
2205 (arm_copy_copro_load_store): New.
2207 (arm_copy_svc): Renamed from copy_svc.
2208 (copy_undef): Delete.
2209 (arm_copy_undef): Renamed from copy_undef.
2210 (decode_ext_reg_ld_st): Delete.
2211 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2212 (decode_svc_copro): Delete.
2213 (arm_decode_svc_copro): Renamed from decode_svc_copro.
2214 (copy_copro_load_store, copy_alu_imm): update callers.
2215 (copy_extra_ld_st, copy_block_xfer): Likewise.
2216 (decode_misc_memhint_neon, decode_unconditional): Likewise.
2217 (decode_miscellaneous, decode_dp_misc): Likewise.
2218 (decode_ld_st_word_ubyte, decode_media): Likewise.
2219 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
2220 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
2221 (decode_unconditional, decode_miscellaneous): Likewise.
2222 (decode_media, decode_b_bl_ldmstm): Likewise.
2223 (arm_process_displaced_insn): Likewise..
2224 (decode_misc_memhint_neon): Delete.
2225 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2226 (decode_miscellaneous): Delete.
2227 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2228 (decode_dp_misc): Delete.
2229 (arm_decode_dp_misc): Renamed from decode_dp_misc.
2230 (decode_ld_st_word_ubyte): Delete.
2231 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2232 (decode_media): Delete.
2233 (arm_decode_media): Renamed from decode_media.
2234 (decode_b_bl_ldmstm): Delete.
2235 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2236 (decode_ext_reg_ld_st): Delete.
2237 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2238 (decode_unconditional): Delete.
2239 (arm_decode_unconditional): Renamed from decode_unconditional.
2241 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2243 Case insensitive lookups implementation.
2244 * dwarf2read.c: Include ctype.h.
2245 (struct mapped_index): New field version.
2246 (mapped_index_string_hash): New parameter index_version. New comment
2247 for it. Call tolower appropriately.
2248 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2249 Choose the right index version for mapped_index_string_hash.
2250 (dwarf2_read_index): Support also the index version 5. Initialize the
2251 new struct mapped_index field version.
2252 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2253 (find_slot): Explain the version needs. Pass INT_MAX for the new
2255 (write_psymtabs_to_index): Produce version 5.
2256 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2257 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2258 * psymtab.c (lookup_partial_symbol): Find the
2259 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2261 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2263 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2264 (completion_list_add_name): New variable ncmp, initialize it, use it.
2265 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2266 * utils.c (strcmp_iw): Support case_sensitive_off.
2267 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2268 New function comment part. New variables saved_string1,
2269 saved_string2 and case_pass. Add a proper second pass.
2271 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2273 Replace re_comp/re_exec by regcomp/regexec.
2274 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2275 (search_symbols_name_matches): Use them, use regexec.
2276 (search_symbols): New variable retval_chain, adjust the use of
2277 old_chain against it. Replace re_comp by regcomp. Use the new struct
2278 search_symbols_data fields, use regexec instead of re_exec.
2280 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2282 Format the code for the next patch.
2283 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2284 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2285 New variables c1 and c2.
2287 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2289 * infrun.c (proceed): Do not single-step into signal delivery
2290 when stepping off a breakpoint location.
2291 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2292 (insert_step_resume_breakpoint_at_caller): Likewise.
2293 (insert_step_resume_breakpoint_at_sal): Likewise.
2294 (insert_longjmp_resume_breakpoint): Likewise.
2296 2011-04-27 Yao Qi <yao@codesourcery.com>
2298 * common/linux-ptrace.h: Remove include <sys/wait.h>.
2300 2011-04-27 Joel Brobecker <brobecker@adacore.com>
2302 * procfs.c (procfs_pass_signals): Fix advance declaration.
2304 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2306 * target.h (struct target_ops): Remove to_notice_signals;
2307 add to_pass_signals.
2308 (target_notice_signals): Remove.
2309 (target_pass_signals): Add prototype.
2310 * target.c (update_current_target): Remove to_notice_signals;
2311 mention to_pass_signals.
2312 (target_pass_signals): New function.
2313 (debug_to_notice_signals): Remove.
2314 (setup_target_debug): Do not install debug_to_notice_signals.
2316 * infrun.c (signal_pass): New global.
2317 (resume): Call target_pass_signals.
2318 (handle_inferior_event): Report all signals while stepping over
2319 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
2320 are re-inserted when stepping over a signal handler.
2321 (signal_cache_update): New function.
2322 (signal_stop_update): Call it.
2323 (signal_print_update): Likewise.
2324 (signal_pass_update): Likewise.
2325 (handle_command): Call signal_cache_update and target_pass_signals
2326 instead of target_notice_signals.
2327 (_initialize_infrun): Initialize signal_pass.
2329 * linux-nat.c (pass_mask): New global.
2330 (linux_nat_pass_signals): New function.
2331 (linux_nat_create_inferior): Report all signals initially.
2332 (linux_nat_attach): Likewise.
2333 (linux_nat_resume): Use pass_mask to decide whether to directly
2334 handle an inferior signal.
2335 (linux_nat_wait_1): Likewise.
2336 (linux_nat_add_target): Install to_pass_signals callback.
2338 * nto-procfs.c (notice_signals): Remove.
2339 (procfs_resume): Do not call notice_signals.
2340 (procfs_notice_signals): Remove.
2341 (procfs_pass_signals): New function.
2342 (init_procfs_ops): Install to_pass_signals callback instead of
2343 to_notice_signals callback.
2344 (_initialize_procfs): Report all signals initially.
2346 * procfs.c (procfs_notice_signals): Remove.
2347 (procfs_pass_signals): New function.
2348 (procfs_target): Install to_pass_signals callback instead of
2349 to_notice_signals callback.
2350 (register_gdb_signals): Remove.
2351 (procfs_debug_inferior): Report all signals initially.
2352 (procfs_init_inferior): Remove redundant register_gdb_signals call.
2354 * remote.c (remote_pass_signals): Add numsigs and pass_signals
2355 parameters; use them instead of calling signal_..._state routines.
2356 (remote_notice_signals): Remove.
2357 (remote_start_remote): Report all signals initially.
2358 (remote_resume): Do not call remote_pass_signals.
2359 (_initialize_remote): Install to_pass_signals callback instead of
2360 to_notice_signals callback.
2362 2011-04-27 Pedro Alves <pedro@codesourcery.com>
2364 * breakpoint.c (user_settable_breakpoint): Delete.
2365 (user_breakpoint_p): Remove check on user_settable_breakpoint.
2366 (delete_command): Check user_breakpoint_p instead of looking at
2367 the breakpoint's type.
2368 (disable_command): Ditto.
2369 (enable_command): Ditto.
2370 (delete_trace_command): Use user_breakpoint_p instead of looking
2371 at the breakpoint number directly. When checking if there are
2372 user visible tracepoints, in order to know whether to ask the user
2373 for confirmation, check whether the breakpoint is actually a
2376 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2378 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2381 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2383 MI breakpoint notifications.
2385 * annotate.c (breakpoint_changed): Adjust parameter type.
2386 * breakpoint.c (set_breakpoint_condition): Adjust to change
2387 in breakpoint_modified type.
2388 (breakpoint_set_commands): Likewise.
2389 (do_map_commands_command): Likewise.
2390 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2391 changed after bumping hit count.
2392 (bpstat_stop_status): Likewise.
2393 (print_one_breakpoint_location): Don't wrap in tuple here.
2394 (print_one_breakpoint): Always print individual locations.
2395 For locations, use unnamed tuple.
2396 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2398 (create_catchpoint, create_syscall_event_catchpoint): Call
2399 breakpoint_created obsever.
2400 (mention): Don't call breakpoint_created observer.
2401 (create_breakpoint_sal): Call breakpoint_created observer.
2402 (create_breakpoint, watch_command_1): Likewise.
2403 (create_ada_exception_breakpoint): Likewise.
2404 (delete_breakpoint): Call breakpoint_deleted breakpoint.
2405 (locations_are_equal): New.
2406 (update_breakpoint_locations): If locations were changed, notify.
2407 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2408 Call breakpoint_modified observer.
2410 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2411 (mi_cmd_break_insert): Don't set observers for modify and delete.
2412 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2413 (mi_breakpoint_created, mi_breakpoint_deleted)
2414 (mi_breakpoint_modified): New.
2415 (mi_interpreter_init): Hook the above.
2416 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2417 while -break-* commands are executing.
2418 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2419 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2421 (mi_ui_out_impl): Hook in mi_redirect.
2422 (mi_field_skip): True to the name, skip the field, don't output
2423 a field with an empty value.
2425 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2426 (gdbpy_breakpoint_deleted): Adjust.
2427 * tui/tui-hooks.c (tui_event_create_breakpoint)
2428 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2430 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
2432 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2433 (procfs_remove_hw_watchpoint): Likewise.
2435 2011-04-26 Michael Walle <michael@walle.cc>
2437 * remote.c (remote_start_remote): Ack packet after sending the
2440 2011-04-26 Yao Qi <yao@codesourcery.com>
2442 * linux-nat.c: Move common macros to ...
2443 Include linux-ptrace.h.
2444 * common/linux-ptrace.h: ... here. New.
2446 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2448 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2449 !objfile_has_partial_symbols. New comment.
2450 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2451 SYM_READ_PSYMBOLS is not present. Extend the comment.
2452 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2454 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2456 * defs.h (ENUM_BITFIELD): Remove.
2458 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2459 Eli Zaretskii <eliz@gnu.org>
2461 * NEWS: Document the new gdbserver --once option.
2463 2011-04-21 Jie Zhang <jzhang918@gmail.com>
2465 * MAINTAINERS: Update my email address.
2467 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2469 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2470 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2471 function call if __STDC_ISO_10646__ macro is defined.
2472 (intermediate_encoding): New prototype.
2473 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2474 to generate compile time error for unsupported gdb_wchar_t size.
2475 (ENDIAN_SUFFIX): New macro.
2476 (intermediate_encoding): New function.
2478 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2480 * ada-lang.c (struct add_partial_datum): Update the comment for
2481 expand_partial_symbol_name.
2482 (ada_add_partial_symbol_completions): Rename to ...
2483 (ada_expand_partial_symbol_name): ... here, change return type, update
2484 function comment, call symbol_completion_match instead of
2485 symbol_completion_add.
2486 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2487 and ada_expand_partial_symbol_name.
2488 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2490 (dw2_map_symbol_names): Remove.
2491 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2492 * psymtab.c (map_symbol_names_psymtab): Remove.
2493 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2494 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2496 (psym_functions): Unlist map_symbol_names_psymtab.
2497 (map_partial_symbol_names): Rename to ...
2498 (expand_partial_symbol_names): ... here, change the FUN type, call
2499 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2500 * psymtab.h (map_partial_symbol_names): Rename to ...
2501 (expand_partial_symbol_names): ... here, change the FUN type.
2502 * symfile.h (struct quick_symbol_functions): Update the description of
2503 expand_symtabs_matching. Remove map_symbol_names.
2504 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2505 (struct add_name_data): Update the comment for
2506 expand_partial_symbol_name.
2507 (add_partial_symbol_name): Rename to ...
2508 (expand_partial_symbol_name): ... here. Replace
2509 completion_list_add_name call by strncmp.
2510 (default_make_symbol_completion_list_break_on): Use now
2511 expand_partial_symbol_names and expand_partial_symbol_name.
2512 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2514 2011-04-20 Tom Tromey <tromey@redhat.com>
2516 * dwarf2read.c (save_gdb_index_command): Replace format
2517 documentation with a pointer to the manual.
2519 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2521 * regcache.c: Include remote.h.
2522 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2523 (regcache_dump): Handle regcache_dump_remote.
2524 (maintenance_print_remote_registers): New function.
2525 (_initialize_regcache): Install "maint print remote-registers"
2527 * remote.c (map_regcache_remote_table): New function, factored out
2529 (init_remote_state): ... here.
2530 (remote_register_number_and_offset): New.
2531 * remote.h (remote_register_number_and_offset): Declare.
2533 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2535 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2536 null_ptid, assume and allow a NULL address space, instead of
2537 asking the target for the ptid's address space.
2538 * infrun.c (ptid_is_pid): Remove assertion.
2540 2011-04-19 Tom Tromey <tromey@redhat.com>
2542 * windows-tdep.c (windows_xfer_shared_library):
2543 * windows-nat.c (get_module_name, windows_make_so):
2544 * v850-tdep.c (v850_handle_pushm):
2545 * utils.c (null_cleanup, gdb_realpath):
2546 * ui-out.c (get_next_header):
2547 * tracepoint.c (clear_traceframe_info):
2548 * symtab.c (lookup_symtab):
2549 * serial.h (struct serial_ops):
2550 * mipsread.c (read_alphacoff_dynamic_symtab):
2551 * infcmd.c (print_return_value):
2552 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2553 * f-exp.y (parse_number):
2554 * exceptions.c (catch_exceptions):
2555 * dummy-frame.c (dummy_frame_this_id):
2556 * defs.h (struct cleanup):
2557 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2558 * arm-tdep.c (arm_push_dummy_call):
2559 * amd64-tdep.h (amd64_collect_xsave):
2560 * amd64-tdep.c (amd64_collect_xsave):
2561 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2562 * README (typing): Remove duplicate words.
2563 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2564 * infrun.c (siginfo_value_read): Fix typo.
2565 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2566 * top.c (source_line_number): Add comma.
2568 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2570 * thread.c (any_live_thread_of_process): Prioritize threads
2571 that are not executing.
2572 * gdbthread.h (any_live_thread_of_process): Update comment
2573 as per above change.
2575 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2577 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2578 (scan_xcoff_symtab): Likewise.
2580 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2582 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2585 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2586 Pedro Alves <pedro@codesourcery.com>
2588 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2589 variables to simplify code and avoid == operator at end of
2590 line as this is against GNU coding standards.
2592 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2594 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2595 lm_name to name_lm to avoid conflict with lm_name function.
2597 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2599 ARI fixes: Use only lowercase function name for static functions.
2600 * nto-tdep.c (LM_ADDR): Rename to...
2601 (lm_addr): New function name.
2602 (nto_relocate_section_addresses): Adapt to change above.
2603 * solib-sunos.c (LM_ADDR): Rename to...
2604 (lm_addr): New function name.
2605 (LM_NEXT): Rename to...
2606 (lm_next): New function name.
2607 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2608 function name changes above.
2609 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2610 (lm_addr_from_link_map): New function name.
2611 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2612 (has_lm_dynamic_from_link_map): New function name.
2613 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2614 (lm_dynamic_from_link_map): New function name.
2615 (LM_ADDR_CHECK): Rename to...
2616 (lm_addr_check): New function name.
2617 (LM_NEXT): Rename to...
2618 (lm_next): New function name.
2619 (LM_PREV): Rename to...
2620 (lm_prev): New function name.
2621 (LM_NAME): Rename to...
2622 (lm_name): New function name.
2623 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2624 (ignore_first_link_map_entry): New function name.
2625 (svr4_keep_data_in_core): Adapt to function name changes above.
2626 (svr4_current_sos): Likewise.
2627 (enable_break): Likewise.
2628 (svr4_relocate_section_addresses): Likewise.
2630 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2633 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2634 sprintf. Simplify code and avoid loosing memory.
2635 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2636 (call0_frame_cache): Remove && operator from end of line.
2638 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2640 Fix libraries displacement if they change whether they were prelinked.
2641 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2642 does not match. Comment why.
2644 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2646 * corelow.c: Include wrapper.h.
2647 (core_open): Call now gdb_target_find_new_threads.
2648 * wrapper.c: Include target.h.
2649 (gdb_target_find_new_threads): New.
2650 * wrapper.h (gdb_target_find_new_threads): New declaration.
2652 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2654 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2655 even if !TARGET_HAS_EXECUTION.
2657 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2659 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2660 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2661 bfd_get_synthetic_symtab.
2662 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2663 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2664 parameter parent, remove the call to add_separate_debug_objfile.
2665 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2666 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2667 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2668 parent, new comment for it, call add_separate_debug_objfile for it.
2669 (symbol_file_add_separate): Pass objfile as the parameter parent,
2670 remove the call to add_separate_debug_objfile.
2671 (symbol_file_add_from_bfd): New parameter parent, pass it.
2672 (symbol_file_add): Pass NULL to the new parameter parent.
2673 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2675 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2677 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2680 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2682 Fix Python access to inlined frames.
2683 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2684 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2686 2011-04-15 Tom Tromey <tromey@redhat.com>
2688 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2690 2011-04-15 Gary Benson <gbenson@redhat.com>
2692 * MAINTAINERS: Add myself to write-after-approval section.
2694 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2696 * remote-sim.c (sim_command_completer): New function.
2697 (_initialize_remote_sim): Set completer to sim_command_completer.
2699 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2701 * breakpoint.c (print_exception_catchpoint): Rename to ...
2702 (print_it_exception_catchpoint): ... this.
2703 (gnu_v3_exception_catchpoint_ops): Update with new name
2704 for print_it_exception_catchpoint.
2706 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2708 * MAINTAINERS: Add myself for write after approval privileges.
2710 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2712 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2714 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2716 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2718 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2720 * breakpoint.c (save_breakpoints): Verify whether
2721 breakpoint_ops.print_recreate is defined before calling it.
2723 2011-04-11 Gary Benson <gbenson@redhat.com>
2725 Fix failure with --enable-maintainer-mode.
2726 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2728 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2731 * symtab.c (search_symbols): Reorder the KIND description in the
2732 function comment. Remove the unused 4th element of types, types2,
2733 types3 and types4. New gdb_assert on KIND.
2734 (symtab_symbol_info): Remove the unused 4th element of classnames.
2735 New gdb_assert on KIND.
2736 * symtab.h (enum search_domain): New warning in the enum comment.
2737 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2740 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2742 Fix crash of gdb save-index on a STABS file.
2743 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2746 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2748 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2749 * dwarf2read.c: Include ctype.h.
2750 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2752 (dwarf2_add_field): Fix new_field->accessibility by calling
2753 dwarf2_default_access_attribute. Restructure setting accessibility
2755 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2756 is_private and is_protected by calling
2757 dwarf2_default_access_attribute.
2759 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2761 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2762 to the initialization.
2764 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2766 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2769 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2771 Remove support for old Cygwin 1.5 versions.
2772 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2773 function on old Cygwin version.
2774 * windows-nat.c: Remove cygwin version check and always define
2775 __USEWIDE for Cygwin compilation.
2777 2011-04-07 Yao Qi <yao@codesourcery.com>
2779 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2781 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2782 (arm_copy_svc): Remove parameters INSN and TO.
2783 (decode_svc_copro): Update caller.
2784 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2785 from function pointer `copy_svc_os'.
2787 2011-04-07 Yao Qi <yao@codesourcery.com>
2789 * arm-tdep.c (cleanup_branch): Set a correct return address in
2790 LR for ARM and Thumb.
2792 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2795 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2796 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2797 in the function comment, a new note on values compatibility.
2798 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2799 * symtab.h (SYMBOL_HASH_NEXT): New.
2801 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2803 * ppc-linux-nat.c (check_condition): Add len output parameter.
2804 Set it based on the memory region referenced in the condition
2805 expression. Update all callers.
2807 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2809 Fix crash regression on systems featuring .gdb_index.
2810 * objfiles.c (free_objfile): Move the
2811 forget_cached_source_info_for_objfile call earlier. Comment it.
2812 Extend the comment for objfile_free_data.
2814 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2816 Fix regression of displaying the debug format.
2817 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2820 2011-04-04 Tom Tromey <tromey@redhat.com>
2822 * cli/cli-interp.c (struct captured_execute_command_args):
2824 (do_captured_execute_command): Remove.
2825 (safe_execute_command): Use TRY_CATCH.
2826 * cli/cli-script.c (struct wrapped_read_command_file_args):
2828 (wrapped_read_command_file): Remove.
2829 (script_from_file): Use TRY_CATCH.
2830 * exceptions.c (catch_exception): Remove.
2831 * exceptions.h (catch_exception): Remove.
2832 (deprecated_throw_reason): Update comment.
2833 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2834 argument to 'context'.
2835 (mi_execute_command): Use TRY_CATCH.
2836 * remote.c (struct start_remote_args): Remove.
2837 (remote_start_remote): Update; change arguments.
2838 (remote_open_1): Use TRY_CATCH.
2840 2011-04-04 Tom Tromey <tromey@redhat.com>
2842 * tracepoint.c (scope_info): Update.
2843 * symtab.c (decode_line_spec): Update.
2844 * python/python.c (gdbpy_decode_line): Update.
2845 * linespec.h (decode_line_1): Update.
2846 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2847 (decode_compound, find_method, symtab_from_filename)
2848 (decode_variable): Likewise.
2849 * cli/cli-cmds.c (edit_command): Update.
2850 (list_command): Update.
2851 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2853 (create_breakpoint): Update.
2854 (until_break_command): Update.
2855 (addr_string_to_sals): Update.
2856 (decode_line_spec_1): Update.
2858 2011-04-04 Tom Tromey <tromey@redhat.com>
2860 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2861 (do_captured_parse_breakpoint): Remove.
2862 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2863 Use TRY_CATCH directly.
2865 2011-04-04 Tom Tromey <tromey@redhat.com>
2867 * symtab.h (free_symtab): Remove.
2868 (forget_cached_source_info_for_objfile): Declare.
2869 * symmisc.c (free_symtab): Remove.
2870 * source.c (forget_cached_source_info_for_objfile): New function.
2871 (forget_cached_source_info): Use it.
2872 * objfiles.c (free_objfile): Simplify check before calling
2873 clear_current_source_symtab_and_line. Call
2874 forget_cached_source_info_for_objfile.
2876 2011-04-04 Tom Tromey <tromey@redhat.com>
2878 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2879 (new_symtab): Don't set `free_code' on symtab.
2880 (new_linetable): Properly handle size==0.
2881 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2882 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2884 * jv-lang.c (struct jv_per_objfile_data): New.
2885 (jv_per_objfile_free): Free the data.
2886 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2887 (get_java_class_symtab): Set the `dict' field on the
2888 jv_per_objfile_data.
2889 (free_class_block): Remove.
2890 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2893 2011-04-04 Tom Tromey <tromey@redhat.com>
2895 * symfile.c (reread_symbols): Update.
2896 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2898 * objfiles.c (allocate_objfile): Update.
2899 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2901 * cp-namespace.c (lookup_symbol_file): Don't call
2902 lookup_possible_namespace_symbol.
2903 (initialize_namespace_symtab, get_possible_namespace_block)
2904 (free_namespace_block, cp_check_possible_namespace_symbols)
2905 (check_possible_namespace_symbols_loop)
2906 (check_one_possible_namespace_symbol)
2907 (lookup_possible_namespace_symbol): Remove.
2908 (maintenance_cplus_namespace): Replace with notice.
2909 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2911 2011-04-04 Tom Tromey <tromey@redhat.com>
2913 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2914 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2915 * symmisc.c (free_symtab): Don't free debugformat.
2916 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2917 (record_debugformat, record_producer): Document.
2918 * buildsym.c (end_symtab): Don't save debugformat and producer
2920 (end_symtab): Don't free debugformat and producer fields.
2921 (record_debugformat): Don't call xstrdup.
2922 (record_producer): Likewise.
2924 2011-04-04 Tom Tromey <tromey@redhat.com>
2926 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2927 (source_line_charpos, source_charpos_line): Remove.
2929 2011-04-04 Tom Tromey <tromey@redhat.com>
2931 * symtab.h (domain_enum): Split in two...
2932 (enum search_domain): New.
2933 (search_symbols): Update.
2934 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2935 redundant declarations.
2936 (search_symbols): Change 'kind' argument to search_domain.
2938 (print_symbol_info): Likewise.
2939 (symtab_symbol_info): Likewise.
2940 * symfile.h (struct quick_symbol_functions)
2941 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2942 <expand_symtabs_matching>: Likewise.
2943 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2944 (expand_symtabs_matching_via_partial): Update.
2945 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2946 (dw2_expand_symtabs_for_function): Update.
2947 * block.h: Moved anonymous enum...
2948 * defs.h (enum block_enum): ... here. Now named.
2950 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2952 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2953 * version.in: Bump version to 7.3.50.20110403-cvs.
2955 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2957 * NEWS: Create a new section for the next release branch.
2958 Rename the section of the current branch, now that it has
2961 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2963 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2964 for "fpscr" in target description.
2966 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2968 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2969 initialize it. Delay HASH initialization. Strip the part after open
2970 parenthesis for languages with qualifiers. Call do_cleanups.
2972 2011-04-01 Tom Tromey <tromey@redhat.com>
2974 * utils.c (report_command_stats): Don't print `-' for negative
2977 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2979 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2980 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2983 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2985 * breakpoint.h (bpdisp_text): Add declaration.
2986 * breakpoint.c (bpdisp_text): Make non-static.
2987 * ada-lang.c: #include "mi/mi-common.h".
2988 (print_it_exception): Rewrite to improve GDB/MI output.
2990 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2992 * arm-tdep.h (struct address_space): Add forward declaration.
2994 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2996 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2997 * arm-tdep.c (arm_override_mode): New global.
2998 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2999 execution mode heuristics.
3000 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
3001 second single-step breakpoint if needed, using
3002 arm_insert_single_step_breakpoint.
3003 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
3004 ARM execution mode, do not call thumb_get_next_pc_raw.
3005 (arm_get_next_pc): Encode execution mode in return value. Call
3006 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
3007 (arm_insert_single_step_breakpoint): New function.
3008 (arm_software_single_step): Call it.
3009 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
3010 argument to return execution mode of sigreturn target.
3011 (arm_linux_syscall_next_pc): Use it.
3012 (arm_linux_copy_svc): Update call.
3013 (arm_linux_software_single_step): Call
3014 arm_insert_single_step_breakpoint.
3016 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3018 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
3021 2011-03-31 Tom Tromey <tromey@redhat.com>
3023 * varobj.c (update_dynamic_varobj_children): Properly handle
3024 errors from iterator.
3026 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3028 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
3029 struct linkage name twice.
3031 2011-03-31 Tom Tromey <tromey@redhat.com>
3033 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
3034 missing ">" to message.
3036 2011-03-31 Tom Tromey <tromey@redhat.com>
3038 * varobj.c (instantiate_pretty_printer): Remove duplicate
3041 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
3043 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
3044 if neither saved value nor register available (e.g. signal frame).
3046 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3048 * macroexp.c (expand): Avoid uninitialized variable
3051 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3053 * breakpoint.c (break_range_command): Fix typo in comment.
3055 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3056 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3058 Implement support for PowerPC BookE ranged breakpoints.
3059 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
3060 * breakpoint.h (struct bp_target_info) <length>: New member
3062 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
3063 instead of struct breakpoint as argument, and also add ASPACE
3064 and BP_ADDR arguments. Update all callers.
3065 (struct breakpoint_ops) <print_one_detail>: New method.
3066 (struct breakpoint) <addr_string_range_end>: New member variable.
3067 * breakpoint.c (breakpoint_location_address_match): Add function
3069 (insert_bp_location): Set bl->target_info.length.
3070 (breakpoint_here_p): Call breakpoint_location_address_match.
3071 (moribund_breakpoint_here_p): Likewise.
3072 (regular_breakpoint_inserted_here_p): Likewise.
3073 (breakpoint_thread_match): Likewise.
3074 (bpstat_stop_status): Likewise.
3075 (bpstat_check_location): Move call to
3076 breakpoint_ops.breakpoint_hit to the top.
3077 (print_one_breakpoint_location): Call
3078 breakpoint_ops.print_one_detail if available.
3079 (breakpoint_address_match_range): New function.
3080 (breakpoint_location_address_match): Likewise.
3081 (breakpoint_locations_match): Compare the length field of the
3083 (hw_breakpoint_used_count): Count resources used by all locations
3084 in a breakpoint, and use breakpoint_ops.resources_needed if
3086 (breakpoint_hit_ranged_breakpoint): New function.
3087 (resources_needed_ranged_breakpoint): Likewise.
3088 (print_it_ranged_breakpoint): Likewise.
3089 (print_one_ranged_breakpoint): Likewise.
3090 (print_one_detail_ranged_breakpoint): Likewise.
3091 (print_mention_ranged_breakpoint): Likewise.
3092 (print_recreate_ranged_breakpoint): Likewise.
3093 (ranged_breakpoint_ops): New structure.
3094 (find_breakpoint_range_end): New function.
3095 (break_range_command): Likewise.
3096 (delete_breakpoint): Free addr_string_range_end.
3097 (update_breakpoint_locations): Add SALS_END argument. Update
3098 all callers. Calculate breakpoint length if a non-zero SALS_END
3099 is given. Call breakpoint_locations_match instead of
3100 breakpoint_address_match.
3101 (reset_breakpoint): Find SaL of the end of the range if B is a
3103 (_initialize_breakpoint): Register break-range command.
3104 * defs.h (print_core_address): Add function prototype.
3105 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
3107 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
3108 (ppc_linux_remove_hw_breakpoint): Likewise.
3109 (_initialize_ppc_linux_nat): Initialize
3110 to_ranged_break_num_registers.
3111 * target.c (update_current_target): Add comment about
3112 to_ranged_break_num_registers.
3113 (target_ranged_break_num_registers): New function.
3114 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3116 (target_ranged_break_num_registers): Add function prototype.
3117 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
3118 * utils.c (print_core_address): ... here.
3120 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
3122 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
3123 variable compiler warning.
3125 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
3127 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
3129 (re_set_breakpoint): ... to here ...
3130 (addr_string_to_sals): ... and here.
3132 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3134 * Makefile.in (SFILES): Add missing C sources.
3135 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
3136 Add missing headers.
3138 2011-03-29 Mike Frysinger <vapier@gentoo.org>
3140 * .gitignore: New file.
3142 2011-03-29 Mike Frysinger <vapier@gentoo.org>
3144 * NEWS: Mention new cfi device simulation.
3146 2011-03-29 Tom Tromey <tromey@redhat.com>
3148 * dwarf2read.c (fixup_partial_die): Handle linkage name on
3149 otherwise anonymous types.
3150 (dwarf2_name): Likewise.
3151 * valops.c (value_struct_elt_for_reference): Refine artificial
3152 type logic. Call error if j==-1.
3154 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
3156 Fix false GCC warning.
3157 * infcall.c (find_function_addr): Initialize funaddr.
3159 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3161 Fix mingw compilation with --enable-targets=all.
3162 * remote-mips.c (gdb_usleep.h): Include header.
3163 (mips_enter_debug): Use gdb_usleep instead of sleep.
3165 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3167 Support resolution of STT_GNU_IFUNC via breakpoints.
3168 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
3169 bp_gnu_ifunc_resolver_return.
3170 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
3171 the loop. Support bp_gnu_ifunc_resolver and
3172 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
3173 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
3175 (bptype_string, print_one_breakpoint_location): Support
3176 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
3177 (user_settable_breakpoint): Return true also for
3178 bp_gnu_ifunc_resolver.
3179 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
3180 bp_gnu_ifunc_resolver_return.
3181 (set_breakpoint_location_function): New parameter explicit_loc,
3182 describe it. Call find_pc_partial_function_gnu_ifunc with new
3183 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
3184 EXPLICIT_LOC is not set.
3185 (set_raw_breakpoint): Set EXPLICIT_LOC for
3186 set_breakpoint_location_function.
3187 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
3188 set_breakpoint_location_function.
3189 (mention): Support bp_gnu_ifunc_resolver and
3190 bp_gnu_ifunc_resolver_return.
3191 (add_location_to_breakpoint): Set EXPLICIT_LOC for
3192 set_breakpoint_location_function.
3193 (update_breakpoint_locations): Remove static.
3194 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
3195 bp_gnu_ifunc_resolver_return.
3196 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
3197 bp_gnu_ifunc_resolver_return.
3198 (update_breakpoint_locations): New declaration.
3199 * elfread.c: Include gdbthread.h and regcache.h.
3200 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
3202 (elf_gnu_ifunc_fns): Install them.
3203 * minsyms.c (stub_gnu_ifunc_resolver_stop)
3204 (stub_gnu_ifunc_resolver_return_stop): New functions.
3205 (stub_gnu_ifunc_fns): Install them.
3206 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
3207 and gnu_ifunc_resolver_return_stop.
3208 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
3210 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3212 STT_GNU_IFUNC reader implementation.
3213 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
3214 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
3215 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
3216 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
3217 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
3218 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
3219 (elf_gnu_ifunc_resolve_addr): New.
3220 (elf_symfile_read): Call elf_rel_plt_read.
3221 (elf_gnu_ifunc_fns): New.
3222 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
3223 Install elf_gnu_ifunc_fns.
3224 * infcall.c (find_function_return_type): New function.
3225 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3226 * minsyms.c (stub_gnu_ifunc_resolve_addr)
3227 (stub_gnu_ifunc_resolve_name): New functions.
3228 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3229 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3230 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3232 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3234 Code cleanup for later STT_GNU_IFUNC support.
3235 * infcall.c (find_function_addr): Remove variable code, use explicit
3236 dereferences for it. Move VALUE_TYPE initialization later.
3238 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3240 GDB find_pc_partial_function support for STT_GNU_IFUNC.
3241 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3242 (clear_pc_function_cache): Clear it.
3243 (find_pc_partial_function): Rename to ...
3244 (find_pc_partial_function_gnu_ifunc): ... this function. New
3245 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
3246 (find_pc_partial_function): New wrapper for this function.
3247 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3249 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3251 GDB internal type support for STT_GNU_IFUNC.
3252 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3253 (elf_symtab_read): Set mst_text_gnu_ifunc for
3254 BSF_GNU_INDIRECT_FUNCTION.
3255 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3256 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3257 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3258 nodebug_got_plt_symbol.
3259 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3260 (TYPE_GNU_IFUNC): New.
3261 (struct main_type): New field flag_gnu_ifunc.
3262 (struct builtin_type): New field builtin_func_func.
3263 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3264 nodebug_got_plt_symbol.
3265 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3266 (in_gnu_ifunc_stub): New.
3267 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3269 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3270 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3271 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3273 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3274 * symtab.c (search_symbols): Likewise.
3275 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3276 and mst_slot_got_plt.
3277 (in_gnu_ifunc_stub): New declaration.
3279 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3281 Support a ring of related breakpoints.
3282 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3283 other functions, add gdb_assert.
3284 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3285 watchpoint_del_at_next_stop.
3286 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3287 (bpstat_stop_status): Handle ring in related_breakpoint.
3288 (set_raw_breakpoint_without_location): Initialize ring in
3290 (delete_breakpoint): Handle ring in related_breakpoint, use
3291 watchpoint_del_at_next_stop.
3292 (map_breakpoint_numbers): Handle ring in related_breakpoint.
3294 2011-03-28 Tom Tromey <tromey@redhat.com>
3297 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3298 with `language_minimal'.
3300 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
3302 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3303 instead of checking for STT_ARM_TFUNC symbol type.
3305 2011-03-25 Tom Tromey <tromey@redhat.com>
3307 * linespec.c (symbol_found): Restore line-based result for
3308 non-LOC_LABEL symbols.
3310 2011-03-25 Kai Tietz <ktietz@redhat.com>
3312 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3313 instead of strcmp for comparison.
3314 (tui_source_is_displayed): Likewise.
3315 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3317 2011-03-24 Mark Wielaard <mjw@redhat.com>
3319 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3321 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3322 (find_partial_die_in_comp_unit): Likewise in comment.
3323 (read_attribute_value): Likewise.
3324 (lookup_die_type): Likewise.
3325 (dwarf_form_name): Likewise.
3326 (dump_die_shallow): Likewise.
3327 (follow_die_ref_or_sig): Likewise.
3329 2011-03-24 Tom Tromey <tromey@redhat.com>
3331 PR breakpoints/11816:
3332 * linespec.c (decode_line_1): Parse `function:label' linespecs.
3333 (decode_compound): Update.
3334 (find_function_symbol): New function.
3335 (decode_dollar): Update.
3336 (decode_label): Add 'function_symbol' parameter. Handle
3337 function-relative labels.
3338 (decode_variable): Update.
3339 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
3340 not its line. Set `special_display' and canonical name for
3343 2011-03-24 Tom Tromey <tromey@redhat.com>
3345 * linespec.h (struct linespec_result) <special_display>: New
3347 * breakpoint.h (struct breakpoint) <display_canonical>: New
3349 * breakpoint.c (print_breakpoint_location): Respect
3351 (create_breakpoint_sal): Add 'display_canonical' parameter.
3352 (create_breakpoints_sal): Update.
3353 (create_breakpoint): Update.
3355 2011-03-24 Tom Tromey <tromey@redhat.com>
3357 * symtab.c (decode_line_spec): Update.
3358 * linespec.c (build_canonical_line_spec): Change type of
3360 (decode_line_2, decode_line_1, decode_objc, decode_compound)
3361 (find_method, decode_all_digits, decode_dollar, decode_label)
3362 (symbol_found): Likewise.
3363 (init_linespec_result): New function.
3364 * breakpoint.c (struct captured_parse_breakpoint_args)
3365 <canonical_p>: New field, replaces addr_string_p.
3366 (create_breakpoints_sal): Add 'canonical' parameter, replacing
3368 (parse_breakpoint_sals): Likewise.
3369 (do_captured_parse_breakpoint): Update.
3370 (create_breakpoint): Use struct linespec_result.
3371 (until_break_command): Update.
3372 (breakpoint_re_set_one): Update.
3373 (decode_line_spec_1): Update.
3374 * linespec.h (struct linespec_result): New.
3375 (init_linespec_result): Declare.
3377 2011-03-23 Pedro Alves <pedro@codesourcery.com>
3379 * regcache.c (regcache_raw_read): If the target didn't supply a
3380 given raw register, mark it as unavailable.
3382 2011-03-23 Kai Tietz <ktietz@redhat.com>
3384 * breakpoint.c (clear_command): Use filename_cmp
3385 instead of strcmp for comparison.
3386 * buildsym.c (watch_main_source_file_lossage): Likewise.
3387 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3388 checking just for slash.
3389 * dbxread.c (read_dbx_symtab): Use lbasename instead of
3390 strrchr and filename_cmp instead of strcmp for filenames.
3391 (add_old_header_file): Use filename_cmp
3392 instead of strcmp for comparison.
3393 * exec.c (exec_set_section_address): Likewise.
3394 * macrotab.c (macro_lookup_inclusion): Likewise.
3395 (macro_lookup_inclusion): Likewise.
3396 * elfread.c (_initialize_elfread): Likewise.
3397 (elfstab_offset_sections): Likewise.
3398 (elfstab_offset_sections): Use lbasename instead of
3400 * mdebugread.c (parse_partial_symbols): Likewise.
3401 (arse_partial_symbols): Use filename_(n)cmp instead of
3402 str(n)cmp for comparison.
3403 * minsyms.c (lookup_minimal_symbol): Likewise.
3404 * psymtab.c (read_psymtabs_with_filename): Likewise.
3405 * solib.c (solib_read_symbols): Likewise.
3406 (reload_shared_libraries_1): Likewise.
3407 * symmisc.c (maintenance_print_symbols): Likewise.
3408 * symfile.c (separate_debug_file_exists): Likewise.
3409 (reread_symbols): Likewise.
3410 (find_separate_debug_file_by_debuglink): Likewise.
3411 * remote-fileio.c (remote_fileio_func_rename): Likewise.
3412 * source.c (add_path): Likewise.
3413 * symtab.c (filename_seen): Likewise.
3414 (file_matches): Likewise.
3415 (print_symbol_info): Likewise.
3416 (maybe_add_partial_symtab_filename): Likewise.
3417 (make_source_files_completion_list): Likewise.
3418 * xml-syscall.c (init_sysinfo): Likewise.
3419 * windows-nat.c (_initialize_check_for_gdb_ini): Use
3420 IS_DIR_SEPARATOR for checking for trailing path separator.
3422 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3424 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
3425 label abort_expression.
3426 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3427 DWARF_VALUE_OPTIMIZED_OUT.
3429 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3432 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3433 to linkage_name. Invert its value. Update the function comment.
3434 (c_type_print_varspec_suffix): Invert it at the caller.
3435 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3437 2011-03-22 Pedro Alves <pedro@codesourcery.com>
3439 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3440 errors when reading the `stop_pc'.
3441 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3444 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3446 * NEWS: Document gdb.Write stream keyword.
3448 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3451 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3452 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3453 (dwarf2_add_field): Fix new_field->accessibility for
3454 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3456 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3460 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3461 other error classes. Do not print stack trace.
3463 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3465 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3466 (dwarf2_add_field): Fix new_field->accessibility for
3467 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3469 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
3471 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3472 encountering a load via a non-SP register.
3474 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3476 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3477 field in returned unwinder.
3479 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3481 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3483 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3485 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3488 2012-03-18 Pedro Alves <pedro@codesourcery.com>
3490 * frame.c (frame_unwind_register): Throw an error if unwinding the
3492 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3493 an unwind stop reason.
3494 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3495 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3496 UNWIND_UNAVAILABLE>: New.
3497 * inline-frame.c (inline_frame_unwind): Install
3498 default_frame_unwind_stop_reason.
3499 * frame-unwind.c: Include "exceptions.h".
3500 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3501 (default_frame_unwind_stop_reason): New.
3502 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3503 (default_frame_unwind_stop_reason): Declare.
3504 (struct frame_unwind) <stop_reason>: New function pointer.
3506 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3507 * dwarf2-frame.c: Include exceptions.h.
3508 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3509 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3510 computing the CFA. If such an error was thrown, set
3511 unavailable_retaddr.
3512 (dwarf2_frame_unwind_stop_reason): New.
3513 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3515 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3516 (dwarf2_signal_frame_unwind): Ditto.
3518 * amd64-tdep.c: Include "exceptions.h".
3519 (struct amd64_frame_cache): New field "base_p".
3520 (amd64_init_frame_cache): Clear it.
3521 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3522 Avoid reading registers with functions that throw if the register
3523 is not necessary to compute the frame base.
3524 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3525 swallowing NOT_AVAILABLE_ERROR.
3526 (amd64_frame_unwind_stop_reason): New.
3527 (amd64_frame_this_id): Don't build a frame id if the frame base
3529 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3530 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3531 base_p if the frame base was computable.
3532 (amd64_sigtramp_frame_unwind_stop_reason): New.
3533 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3534 frame base was unavailable.
3535 (amd64_sigtramp_frame_unwind): Install
3536 amd64_sigtramp_frame_unwind_stop_reason.
3537 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3538 base_p if the frame base was computable.
3539 (amd64_epilogue_frame_unwind_stop_reason): New.
3540 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3541 frame base was unavailable.
3542 (amd64_epilogue_frame_unwind): Install
3543 amd64_epilogue_frame_unwind_stop_reason.
3544 * i386-tdep.c: Include "exceptions.h".
3545 (struct i386_frame_cache): New field "base_p".
3546 (i386_init_frame_cache): Clear it.
3547 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3548 Avoid reading registers with functions that throw if the register
3549 is not necessary to compute the frame base.
3550 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3551 swallowing NOT_AVAILABLE_ERROR.
3552 (i386_frame_unwind_stop_reason): New.
3553 (i386_frame_this_id): Don't build a frame id if the frame base was
3555 (i386_frame_prev_register): Handle unavailable SP.
3556 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3557 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3558 base_p if the frame base was computable.
3559 (i386_epilogue_frame_unwind_stop_reason): New.
3560 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3561 base was unavailable.
3562 (i386_epilogue_frame_unwind): Install
3563 i386_epilogue_frame_unwind_stop_reason.
3564 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3565 base_p if the frame base was computable.
3566 (i386_sigtramp_frame_unwind_stop_reason): New.
3567 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3568 base was unavailable.
3569 (i386_sigtramp_frame_unwind): Install
3570 i386_sigtramp_frame_unwind_stop_reason.
3571 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3572 type's size, not the register's.
3573 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3575 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3576 default_frame_unwind_stop_reason.
3577 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3578 (alpha_heuristic_frame_unwind): Ditto.
3579 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3580 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3581 * avr-tdep.c (avr_frame_unwind): Ditto.
3582 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3584 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3585 * frv-tdep.c (frv_frame_unwind): Ditto.
3586 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3587 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3588 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3589 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3590 (hppa_stub_frame_unwind): Ditto.
3591 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3592 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3593 (ia64_libunwind_frame_unwind)
3594 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3595 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3596 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3597 * m32c-tdep.c (m32c_unwind): Ditto.
3598 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3599 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3600 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3601 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3602 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3603 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3604 * mep-tdep.c (mep_frame_unwind): Ditto.
3605 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3606 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3607 (mips_stub_frame_unwind): Ditto.
3608 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3609 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3610 * mt-tdep.c (mt_frame_unwind): Ditto.
3611 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3612 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3613 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3614 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3615 (s390_sigtramp_frame_unwind): Ditto.
3616 * score-tdep.c (score_prologue_unwind): Ditto.
3617 * sh-tdep.c (sh_frame_unwind): Ditto.
3618 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3619 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3620 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3621 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3622 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3623 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3624 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3625 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3626 (sparc64obsd_trapframe_unwind): Ditto.
3627 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3628 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3629 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3630 * v850-tdep.c (v850_frame_unwind): Ditto.
3631 * vax-tdep.c (vax_frame_unwind): Ditto.
3632 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3633 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3634 * xtensa-tdep.c (xtensa_unwind): Ditto.
3636 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3638 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3639 there's always a frame. Use get_frame_pc_if_available instead of
3640 get_frame_pc, and if there's no PC available, don't look up a
3643 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3645 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3648 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3650 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3653 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3655 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3656 * frame.c (frame_unwind_caller_pc_if_available): New.
3657 * stack.c (frame_info): Handle unavailable PC.
3659 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3661 * frame.c (frame_unwind_pc): Rename to ...
3662 (frame_unwind_pc_if_available): ... this. New `pc' output
3663 parameter. Change return type to int. Gracefully handle
3664 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3665 happened, or 1 otherwise.
3666 (frame_unwind_pc): Reimplement on top of
3667 frame_unwind_pc_if_available.
3668 (get_frame_func): Rename to ...
3669 (get_frame_func_if_available): New `pc' output parameter. Change
3670 return type to int. Gracefully handle the PC not being available.
3671 (get_frame_func): Reimplement on top of
3672 get_frame_func_if_available.
3673 (select_frame): Handle the PC being unavailable.
3674 (get_prev_frame): Handle the PC being unavailable.
3675 (get_frame_pc_if_available): New.
3676 (get_frame_address_in_block_if_available): New.
3677 (find_frame_sal): Handle the frame PC not being available.
3678 * frame.h (get_frame_pc_if_available): Declare.
3679 (get_frame_address_in_block_if_available): Declare.
3680 (get_frame_func_if_available): Declare.
3681 * stack.c (print_frame_info): Handle the PC being unavailable.
3682 (find_frame_funname): Ditto.
3683 (print_frame): Handle the PC being unavailable.
3684 (get_frame_language): Ditto.
3685 * blockframe.c (get_frame_block): Ditto.
3686 * macroscope.c (default_macro_scope): Ditto.
3687 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3689 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3691 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3692 NOT_AVAILABLE_ERROR when evaluating the location expression.
3694 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3696 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3697 returning that the register piece is unavailable/optimized out.
3698 (write_pieced_value): Handle get_frame_register_bytes returning
3699 that the register piece is unavailable/optimized out when doing a
3700 read-modify write of a bitfield.
3701 * findvar.c (value_from_register): Handle get_frame_register_bytes
3702 returning that the register piece is unavailable/optimized out.
3703 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3704 and `unavailablep'. Throw error on bad debug info. Use
3705 frame_register instead of frame_register_read, to fill in the new
3707 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3709 * valops.c: (value_assign): Adjust, and handle
3710 get_frame_register_bytes failing.
3711 * spu-tdep.c: Include exceptions.h.
3712 (spu_software_single_step): Adjust, and handle
3713 get_frame_register_bytes failing.
3714 (spu_get_longjmp_target): Ditto.
3715 * gdbarch.sh (register_to_value): Change to return int. New
3716 parameters `optimizedp' and `unavailablep'.
3717 * gdbarch.h, gdbarch.c: Regenerate.
3718 * i386-tdep.c (i386_register_to_value): Adjust to new
3719 gdbarch_register_to_value interface.
3720 * i387-tdep.c (i387_register_to_value): Ditto.
3721 * i387-tdep.h (i387_register_to_value): Ditto.
3722 * alpha-tdep.c (alpha_register_to_value): Ditto.
3723 * ia64-tdep.c (ia64_register_to_value): Ditto.
3724 * m68k-tdep.c (m68k_register_to_value): Ditto.
3725 * mips-tdep.c (mips_register_to_value): Ditto.
3726 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3728 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3730 * findvar.c (value_of_register): Mark the value as unavailable, if
3731 the register is unavailable.
3732 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3733 (frame_register): New `unavailablep' parameter.
3734 (frame_register_read): Update comment.
3735 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3736 Set it if the register is unavailable. If the register is
3737 unavailable, clear the output buffer.
3738 (frame_register): New `unavailablep' parameter. Pass it down.
3739 (frame_unwind_register): Adjust.
3740 (put_frame_register): Adjust.
3741 (frame_register_read): Adjust. Also return false if the register
3743 (frame_register_unwind_location): Adjust.
3744 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3745 is unavailable, mark the value accordingly.
3746 * stack.c (frame_info): Handle unavailable registers.
3748 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3750 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3751 simplify, using regcache_cooked_read.
3753 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3755 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3756 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3757 (regcache_raw_read_unsigned, regcache_raw_read_part)
3758 (regcache_cooked_read, regcache_cooked_read_signed)
3759 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3760 (regcache_cooked_read_ftype): Change return to enum
3762 * regcache.c: Include exceptions.h
3763 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3764 (do_cooked_read): Change return to enum register_status. Always
3765 forward to regcache_cooked_read.
3766 (regcache_raw_read): Change return to enum register_status. If
3767 the register is not REG_VALID, memset the buffer. Return the
3769 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3770 return the register's status.
3771 (regcache_raw_read_unsigned): Ditto.
3772 (regcache_cooked_read): Change return to enum register_status.
3773 Assert that with read-only regcaches, the register's status must
3774 be known. If the regcache is read-only, and the register is not
3775 REG_VALID, memset the buffer. Return the register's status.
3776 (regcache_cooked_read_signed): Change return to enum
3777 register_status. Handle non-REG_VALID registers and return the
3779 (regcache_cooked_read_unsigned): Change return to enum
3780 register_status. Handle non-REG_VALID registers and return the
3782 (regcache_xfer_part, regcache_raw_read_part)
3783 (regcache_cooked_read_part): Change return to enum
3784 register_status. Return the register's status.
3785 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3787 (regcache_dump): Handle unavailable cooked registers.
3788 * frame.c (do_frame_register_read): Adjust interface to match
3789 regcache_cooked_read_ftype.
3790 * gdbarch.sh (pseudo_register_read): Change return to enum
3792 * gdbarch.h, gdbarch.c: Regenerate.
3794 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3796 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3797 register_status. If reading a raw register indicates the raw
3798 register is not valid, return the raw register's status,
3799 otherwise, return REG_VALID.
3800 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3801 register_status. Handle non-REG_VALID raw registers and return
3802 the register's status.
3803 * arm-tdep.c (arm_neon_quad_read)
3804 (arm_pseudo_read): Change return to enum register_status. Handle
3805 non-REG_VALID raw registers and return the register's status.
3806 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3807 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3808 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3809 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3810 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3812 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3813 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3814 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3815 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3816 (m32c_pseudo_register_read): Change return to enum
3817 register_status. Adjust.
3818 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3819 enum register_status. Return the register's status.
3820 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3821 register_status. Return the register's status.
3822 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3823 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3824 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3825 * rs6000-tdep.c (move_ev_register_func): New typedef.
3826 (e500_move_ev_register): Use it. Change return to enum
3827 register_status. Return the register's status.
3828 (do_regcache_raw_read): New function.
3829 (do_regcache_raw_write): New function.
3830 (e500_pseudo_register_read): Change return to enum
3831 register_status. Return the register's status. Use
3832 do_regcache_raw_read.
3833 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3834 (dfp_pseudo_register_read): Change return to enum register_status.
3835 Return the register's status.
3836 (vsx_pseudo_register_read): Ditto.
3837 (efpr_pseudo_register_read): Ditto.
3838 (rs6000_pseudo_register_read): Ditto.
3839 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3840 register_status. Return the register's status.
3841 * sh64-tdep.c (pseudo_register_read_portions): New function.
3842 (sh64_pseudo_register_read): Change return to enum
3843 register_status. Use pseudo_register_read_portions. Return the
3845 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3846 register_status. Return the register's status.
3847 * sh-tdep.c (pseudo_register_read_portions): New function.
3848 (sh_pseudo_register_read): Change return to enum register_status.
3849 Use pseudo_register_read_portions. Return the register's status.
3850 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3851 enum register_status. Return the register's status.
3852 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3853 * spu-tdep.c (spu_pseudo_register_read_spu)
3854 (spu_pseudo_register_read): Ditto.
3855 * xtensa-tdep.c (xtensa_register_read_masked)
3856 (xtensa_pseudo_register_read): Ditto.
3857 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3859 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3861 * python/py-value.c (valpy_getitem): Fix formatting of error function
3864 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3866 ARI fixes: Add missing internationalization markups throughout
3868 * darwin-nat-info.c: Ditto.
3871 * mi/mi-main.c: Ditto.
3873 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3875 ARI fixes: Add missing internationalization markups throughout
3878 * cp-name-parser.y: Ditto.
3881 * objc-exp.y: Ditto.
3884 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3886 ARI fixes: Messages should have no trailing new lines.
3887 * darwin-nat.c (mach_check_error): Remove trailing new line from
3888 warning function call message.
3889 * record.c (bfdcore_read): Idem for error call.
3891 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3893 * common/signals.c (target_signal_from_host): Add _ markup to error
3894 function call message.
3895 (target_signal_to_host): Add _ markup and remove trailing new line
3896 from warning call message.
3897 (target_signal_from_command): Add _ markup to error function call
3900 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3904 * python/python.c (gdbpy_write): Accept a stream argument and
3905 operate to the appropriate stream.
3906 (gdbpy_flush): Likewise.
3907 (_initialize_python): Add stream constants.
3908 (finish_python_initialization): Add GdbOutputErrorFile class.
3910 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3912 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3914 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3916 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3917 to store_signed_integer. Add debug message when relocating CALL
3918 instructions. Fix formatting of debug message.
3919 * i386-tdep.c (i386_relocate_instruction): Ditto.
3921 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3923 * target.h (struct target_ops): Remove to_lookup_symbol field.
3924 (target_lookup_symbol): Delete macro.
3925 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3926 (update_current_target, setup_target_debug): Remove handling
3927 of to_lookup_symbol target_ops field.
3928 * ada-tasks.c (get_known_tasks_addr): Remove use of
3929 target_lookup_symbol.
3930 * coffread.c (coff_symtab_read): Likewise.
3931 * dbxread.c (read_dbx_symtab): Ditto.
3933 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3936 * configure.ac: Add getthrds declaration check.
3937 * configure, config.in: Regenerate.
3938 * aix-thread.c (getthrds): Declare only if not already declared
3939 in procinfo.h. More declaration out of get_signaled_thread to
3942 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3944 * python/py-symtab.c: Populate symtab_object_methods,
3946 (stpy_is_valid): New function.
3947 (salpy_is_valid): Ditto.
3948 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3949 (sympy_is_valid): New function.
3950 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3951 (objfpy_is_valid): New function.
3952 * python/py-inferior.c: Populate inferior_object_methods.
3953 (infpy_is_valid): New function.
3954 * python/py-infthread.c: Populate thread_object_methods.
3955 (thpy_is_valid): New function.
3956 * python/py-block.c: Declare block_object_methods. Populate. Declare
3957 block_iterator_object_methods. Populate.
3958 (blpy_is_valid): New function.
3959 (blpy_iter_is_valid): Ditto.
3961 2011-03-16 Keith Seitz <keiths@redhat.com>
3963 * linespec.c (find_methods): Canonicalize NAME before looking
3965 (name_end): New function.
3966 (keep_name_info): New function.
3967 (decode_line_1): Use keep_name_info.
3968 (decode_compound): Likewise.
3969 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3970 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3973 * linespec.c (locate_first_half): Keep overload information, too.
3974 (decode_compound): Use a string to represent break characters
3976 If P points to a break character, do not increment it.
3977 For C++ and Java, keep overload information and relevant keywords.
3978 If we cannot find a symbol, search the minimal symbols.
3981 * linespec.c (decode_compound): Rename SAVED_ARG to
3983 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3985 Pass a valid block to lookup_symbol.
3986 (lookup_prefix_sym): Likewise.
3987 (find_method): Construct search name based on SYM_CLASS instead
3989 * psymtab.c (lookup_partial_symbol): Add language parameter.
3990 (lookup_symbol_aux_psymtabs): Likewise.
3991 Don't assume that the psymtab we found was the right one. Search
3992 for the desired symbol in the symtab to be certain.
3993 (psymtab_search_name): New function.
3994 (lookup_partial_symbol): Use psymtab_search_name.
3995 Add language parameter.
3996 (read_symtabs_for_function): Add language parameter and pass to
3997 lookup_partial_symbol.
3998 (find_symbol_file_from_partial): Likewise.
4000 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
4003 * dwarf2read.c (noop_record_line): New function.
4004 (dwarf_decode_lines): Ignore line tables for GCd functions.
4006 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4008 Fix ARI warnings about new lines at the end of messages, which
4009 are unneeded as there is a new line added at the end of the message
4011 * darwin-nat.c (darwin_stop_inferior): Ditto.
4012 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
4013 * dfp.c (decimal_to_number): Ditto.
4014 * exec.c (print_section_info): Ditto.
4015 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
4016 * osdata.c (get_osdata): Ditto.
4017 * record.c (bfdcore_write): Ditto.
4018 * remote-mips.c (mips_readchar): Ditto.
4019 * remote.c (read_ptid): Ditto.
4020 * ser-mingw.c (ser_windows_raw): Ditto.
4021 * tracepoint.c (add_local_symbols): Ditto.
4022 * windows-nat.c (fake_create_process): Ditto.
4024 2011-03-16 Tom Tromey <tromey@redhat.com>
4026 * tracepoint.c (stop_tracing): Don't declare.
4027 * event-top.c (after_char_processing_hook): Add `(void)'.
4029 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
4031 * NEWS: Add Parameter sub-classing description.
4033 2011-03-16 Kai Tietz <ktietz@redhat.com>
4035 * MAINTAINERS: Update my e-mail address.
4037 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
4039 * MAINTAINERS: Add myself for write after approval privileges.
4041 2011-03-15 Michael Snyder <msnyder@vmware.com>
4043 * frame.c (find_frame_sal): Assert sym is not null.
4045 * dbxread.c (process_one_symbol): Assert 'name' is not null.
4047 * objc-lang.c (selectors_info): Check strchr for null result.
4049 * stabsread.c (define_symbol): Guard against bad stabstring input.
4051 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4053 Remove trailing spaces and tabulations from pascal language
4058 p-valprint.c: Ditto.
4060 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4062 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
4063 than LOW. Comment it.
4064 (read_partial_die): Call complaint for inappropriate zero LOWPC or
4065 HIGHPC not strictly higher than LOWPC.
4067 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4069 Fix formatting of function declarations returning a pointer in
4071 * varobj.c (varobj_add_child): Ditto.
4072 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
4073 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
4075 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
4077 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
4078 for the "generic" vector ABI used with GCC 4.3 and later.
4079 (ppc64_sysv_abi_return_value): Likewise.
4081 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
4083 * infcall.c (call_function_by_hand): Function return value is
4084 always a non_lval, even when using struct_return.
4086 2011-03-15 Pedro Alves <pedro@codesourcery.com>
4088 * printcmd.c (ALL_DISPLAYS_SAFE): New.
4089 (map_display_numbers): New.
4090 (do_delete_display): New.
4091 (undisplay_command): Use map_display_numbers.
4092 (do_enable_disable_display): New.
4093 (enable_disable_display_command): New function.
4094 (enable_display): Delete.
4095 (enable_display_command): New.
4096 (disable_display_command): Reimplement.
4097 (_initialize_printcmd): Adjust "enable display" command to use
4098 `enable_display_command' as callback.
4100 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4102 * NEWS: Add Python breakpoint 'stop' operation.
4104 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4106 * NEWS: Delete duplicate entry. Fix typo.
4108 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4110 Fix ARI warning about function names in first column.
4111 Put prototype declaration on same line as return type.
4112 * objc-exp.y: Ditto.
4114 * python/py-stopevent.h: Ditto.
4115 For long function names, split parameters to
4116 allow function name on same line as return type.
4117 * solib-pa64.c: Ditto.
4120 For long function declaration, use single line.
4121 * hppa-tdep.h: Ditto.
4122 * inferior.h: Ditto.
4124 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4126 * python/python.h: Declare gdbpy_should_stop and
4127 gdbpy_breakpoint_has_py_cond.
4128 * python/python.c: Add python.h to includes. Remove python.h from
4129 HAVE_PYTHON definition
4130 (gdbpy_should_stop): New dummy function.
4131 (gdbpy_breakpoint_has_py_cond): New dummy function.
4132 * python/py-breakpoint.c (bppy_init): Rewrite to allow
4133 sub-classing capabilities.
4134 (gdbpy_should_stop): New function.
4135 (gdbpy_breakpoint_has_py_cond): New function.
4136 (local_setattro): New function.
4137 * breakpoint.c (condition_command): Add check for Python 'stop'
4139 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
4140 operation function as part of stop/continue tests.
4142 2011-03-14 Tom Tromey <tromey@redhat.com>
4145 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
4146 (needs_frame_dwarf_call): Likewise.
4148 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4150 Fix ARI warning about functions without parameters that do not
4152 * breakpoint.c (all_tracepoints): Replace () by (void).
4153 * f-exp.y (match_string_literal): Ditto.
4155 * m2-exp.y (yylex): Ditto.
4156 * mep-tdep.c (current_me_module): Ditto.
4157 (current_options): Ditto.
4158 (current_cop_data_bus_width): Ditto.
4159 (current_cr_names): Ditto.
4160 (current_cr_is_float): Ditto.
4161 (current_ccr_names): Ditto.
4162 * objc-exp.y (yylex): Ditto.
4163 * p-exp.y (yylex): Ditto.
4164 * remote.c (send_interrupt_sequence): Ditto.
4165 * tracepoint.c (current_trace_status): Ditto.
4166 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
4167 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
4169 2011-03-11 Michael Snyder <msnyder@vmware.com>
4171 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
4172 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
4173 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
4174 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
4175 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
4177 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
4178 (delete_async_event_handler): Ditto.
4180 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
4182 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
4184 * top.c (set_verbose): Assert showcmd was found.
4186 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
4188 * xtensa-tdep.c (warning_once): Correct style issues.
4190 2011-03-11 Yao Qi <yao@codesourcery.com>
4192 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
4194 2011-03-11 Andreas Schwab <schwab@redhat.com>
4196 * common/aclocal.m4: Remove.
4198 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4200 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
4201 (xtensa_write_register, xtensa_read_register): Likewise.
4202 (xtensa_hextochar): Removed.
4203 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
4205 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4207 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
4208 (xtensa_call0_frame_cache_t): Update comments. New fields added.
4209 (xtensa_alloc_frame_cache): Add initialization for new fields.
4210 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
4211 (warning_once): New function.
4212 (xtensa_insn_kind): New item c0opc_and.
4213 (call0_classify_opcode): Add the case for AND instruction.
4214 (call0_track_op): Change arguments. New local variable litbase.
4215 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
4216 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
4218 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
4219 (call0_analyze_prologue): Update the comments. Change arguments.
4220 Add the variety of updates to handle extended prologues, which now can
4221 conduct dynamic stack adjustments.
4222 (call0_frame_cache): Likewise.
4223 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
4224 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4226 2011-03-10 Michael Snyder <msnyder@vmware.com>
4228 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4229 (cmd_qtframe): Ditto.
4230 (cmd_qtbuffer): Ditto.
4231 (cmd_bigqtbuffer): Ditto.
4233 2011-03-10 Tom Tromey <tromey@redhat.com>
4235 * tracepoint.c (trace_actions_command): Update.
4236 * thread.c (thread_apply_command): Update.
4237 * reverse.c (delete_bookmark_command): Update.
4238 (bookmarks_info): Update.
4239 * printcmd.c (undisplay_command): Update.
4240 * memattr.c (mem_enable_command): Update.
4241 (mem_disable_command): Update.
4242 (mem_delete_command): Update.
4243 * inferior.c (detach_inferior_command): Update.
4244 (kill_inferior_command): Update.
4245 (remove_inferior_command): Update.
4246 * cli/cli-utils.h (struct get_number_or_range_state): New.
4247 (init_number_or_range): Declare.
4248 (get_number_or_range): Update.
4249 * cli/cli-utils.c (init_number_or_range): New function.
4250 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
4252 (number_is_in_list): Update.
4253 * breakpoint.h (get_tracepoint_by_number): Update.
4254 * breakpoint.c (map_breakpoint_numbers): Update for change to
4255 get_number_or_range.
4256 (find_location_by_number): Use get_number, not
4257 get_number_or_range.
4258 (trace_pass_set_count): New function.
4259 (trace_pass_command): Update for change to get_number_or_range.
4261 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4264 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
4266 * python/py-param.c (add_setshow_generic): Add set/show callback
4267 parameters. Register Python object context.
4268 (get_show_value): New function.
4269 (get_set_value): New function.
4270 (call_doc_function): New function.
4271 (get_doc_string): Move behind get_show_value/get_set_value.
4273 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
4275 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4277 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
4279 * xtensa-tdep.c (xtensa_read_register): Add comment.
4280 (xtensa_write_register): Likewise.
4281 (xtensa_hextochar): Add comment and update to match coding conventions.
4282 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4283 (execute_l32e, execute_s32e, execute_code): Update comments.
4284 (xtensa_exception_handler_t): Update to match coding conventions.
4285 (xtensa_insn_kind): Likewise.
4287 2011-03-09 Michael Snyder <msnyder@vmware.com>
4289 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4291 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4293 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4295 2011-03-09 Tom Tromey <tromey@redhat.com>
4297 * thread.c (restore_selected_frame): Handle frame_level == -1.
4298 (make_cleanup_restore_current_thread): Use
4299 get_selected_frame_if_set.
4300 * frame.h (get_selected_frame_if_set): Declare.
4301 * frame.c (get_selected_frame_if_set): New function.
4303 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4305 * cli/cli-cmds.c (shell_escape): Use lbasename.
4306 * coffread.c (coff_start_symtab): Constify parameter.
4307 (complete_symtab): Constify `name' parameter.
4308 (coff_symtab_read): Constify `filestring' local.
4309 (coff_getfilename): Constify return and `result' local.
4311 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4312 * linux-fork.c (info_checkpoints_command): Use lbasename.
4313 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4314 * minsyms.c (lookup_minimal_symbol): Use lbasename.
4315 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4316 * procfs.c (procfs_make_note_section): Use lbasename.
4317 * tui/tui-io.c (printable_part): Constity return and parameter.
4319 (print_filename): Constify parameters, and local `s'.
4320 (tui_rl_display_match_list): Constify local `temp'.
4322 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4325 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4326 Fix DWARF-3+ DW_AT_accessibility default assumption.
4327 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4328 cu->header.version >= 3.
4330 2011-03-09 Yao Qi <yao@codesourcery.com>
4332 * common/Makefile.in: Remove.
4333 * common/configure: Remove.
4334 * common/configure.ac: Remove.
4336 2011-03-09 Yao Qi <yao@codesourcery.com>
4339 2011-02-11 Yao Qi <yao@codesourcery.com>
4341 * common/Makefile.in: Add copyright header.
4343 2011-02-11 Yao Qi <yao@codesourcery.com>
4345 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4347 * configure.ac: Add common to sub dir.
4348 * configure: Regenerate.
4350 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4352 * xtensa-tdep.c (call0_ret): New function.
4353 (xtensa_skip_prologue): Speed up analysis.
4355 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4357 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
4358 while executing MI command -data-list-changed-registers.
4360 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4362 * xtensa-tdep.c (xtensa_read_register): New function.
4363 (xtensa_write_register): New function.
4364 (xtensa_find_register_by_name): New function.
4365 (xtensa_windowed_frame_cache): Update comments in type description.
4366 (xtensa_frame_cache): Likewise.
4367 (xtensa_window_interrupt_insn): New function.
4368 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
4369 (xtensa_insn_kind): Add new instructions.
4370 (rwx_special_register): New function.
4371 (call0_classify_opcode): Add new instructions to the analysis.
4372 (a0_saved, a7_saved, a11_saved): New variables.
4373 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
4374 (execute_l32e): New function.
4375 (execute_s32e): New function.
4376 (xtensa_exception_handler_t): New type.
4377 (execute_code): New function.
4378 (xtensa_window_interrupt_frame_cache): New function to conduct frame
4379 analysis for Xtensa Window Exception handlers.
4381 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4383 * xtensa-tdep.c (TX_PS): New.
4384 (windowing_enabled): Update to count for Call0 ABI.
4385 (xtensa_hextochar): New.
4386 (xtensa_init_reggroups): Make algorithm generic.
4387 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4389 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4391 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4393 2011-03-08 Michael Snyder <msnyder@vmware.com>
4395 * i386-tdep.c (i386_follow_jump): Check return value of
4397 (i386_analyze_struct_return): Ditto.
4398 (i386_skip_probe): Ditto.
4399 (i386_match_insn): Ditto.
4400 (i386_skip_noop): Ditto.
4401 (i386_analyze_frame_setup): Ditto.
4402 (i386_analyze_register_saves): Ditto.
4403 (i386_skip_prologue): Ditto.
4404 (i386_skip_main_prologue): Ditto.
4406 * target.c (read_whatever_is_readable): Fix memory leak.
4408 * i386-tdep.c (i386_process_record): Document fall through.
4410 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4412 Fix DWARF-3+ DW_AT_accessibility default assumption.
4413 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4414 cu->header.version >= 3.
4416 2011-03-08 Pedro Alves <pedro@codesourcery.com>
4418 * remote.c (remote_check_symbols): Skip if the target has no
4421 2011-03-08 Joel Brobecker <brobecker@adacore.com>
4423 * target.c (read_whatever_is_readable): Reformat comment,
4424 with a minor typo fix. Minor reformatting of the code.
4426 2011-03-08 Yao Qi <yao@codesourcery.com>
4428 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4429 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4430 Use cached result instead of calling displaced_in_arm_mode again.
4431 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4432 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4433 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4434 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4435 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4436 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4437 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4438 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4439 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4440 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4441 (arm_catch_kernel_helper_return): Likewise.
4442 * gdb/arm-tdep.h : Update function declarations.
4444 2011-03-07 Michael Snyder <msnyder@vmware.com>
4446 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4448 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4450 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4452 * elfread.c (elf_symtab_read): Stop memory leak.
4454 * main.c (captured_main): Fix memory leak.
4456 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
4458 * ada-lang.c (compare_names): Call is_name_suffix with string1
4461 2011-03-07 Tom Tromey <tromey@redhat.com>
4463 * xcoffread.c (xcoff_sym_fns): Update.
4464 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4465 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4466 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4467 (symbol_file_add_with_addrs_or_offsets): Likewise.
4468 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4469 * somread.c (som_sym_fns): Update.
4470 * psymtab.h (require_partial_symbols): Declare.
4471 * psymtab.c (require_partial_symbols): New function.
4472 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4473 (ALL_OBJFILE_PSYMTABS): Undef.
4474 (ALL_PSYMTABS): Move from psympriv.h.
4475 (lookup_partial_symtab, find_pc_sect_psymtab)
4476 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4477 (find_last_source_symtab_from_partial)
4478 (forget_cached_source_info_partial)
4479 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4480 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4481 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4482 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4483 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4484 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4485 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4486 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4487 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4489 * mipsread.c (ecoff_sym_fns): Update.
4490 * machoread.c (macho_sym_fns): Update.
4491 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4492 (read_psyms): New function.
4493 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4494 (elf_sym_fns_lazy_psyms): New global.
4495 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4496 dwarf2_build_psymtabs.
4497 * dbxread.c (aout_sym_fns): Update.
4498 * coffread.c (coff_sym_fns): Update.
4500 2011-03-07 Tom Tromey <tromey@redhat.com>
4502 * infrun.c (print_exited_reason): Include inferior id and pid in
4505 2011-03-07 Tom Tromey <tromey@redhat.com>
4507 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4509 (target_has_execution_1): Update.
4510 (target_has_execution_current): Declare.
4511 (target_has_execution): Call target_has_execution_current.
4512 (default_child_has_execution): Update.
4513 * target.c (default_child_has_execution): Add 'the_ptid'
4515 (target_has_execution_1): Likewise.
4516 (target_has_execution_current): New function.
4517 (add_target): Update.
4518 (init_dummy_target): Update.
4519 * remote-m32r-sdi.c (m32r_has_execution): New function.
4520 (init_m32r_ops): Use it.
4521 * record.c (record_core_has_execution): Now static. Add
4522 'the_ptid' parameter.
4523 * inferior.c (have_live_inferiors): Don't save current thread.
4524 Use target_has_execution_1.
4526 2011-03-07 Yao Qi <yao@codesourcery.com>
4528 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4530 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4532 * elfread.c (elf_symtab_read): Minor reformatting.
4534 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4536 * objc-lang.c (selectors_info): Minor reformatting.
4538 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4540 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4542 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4543 Michael Snyder <msnyder@vmware.com>
4545 * ada-valprint.c (ada_val_print_array): Move the declaration of
4546 "byte_order" and "elttype" inside the block where these variables
4547 are actually used. Remove some special handling for the case
4548 where "elttype" and "eltlen" are null. Replace by a comment
4549 and a couple of assertion checks.
4551 2011-03-05 Michael Snyder <msnyder@vmware.com>
4553 * source.c (add_path): Replace semicolon at end of block.
4554 * dwarf2expr.c (execute_stack_op): Ditto.
4556 2011-03-05 Mike Frysinger <vapier@gentoo.org>
4558 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4559 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4560 (bfin-*-*): Likewise.
4562 2011-03-05 Michael Snyder <msnyder@vmware.com>
4564 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4565 * mdebugread.c (parse_symbol): Ditto.
4566 * parse.c (parse_exp_in_context): Ditto.
4567 * source.c (add_path): Ditto.
4568 * utils.c (gnu_debuglink_crc32): Ditto.
4569 * varobj.c (variable_language): Ditto.
4571 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4573 2011-03-04 Michael Snyder <msnyder@vmware.com>
4575 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4577 * symfile.c (simple_overlay_update): Check for null return value
4578 from lookup_minimal_symbol.
4580 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4582 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4584 * eval.c (parse_and_eval_address_1): Remove function.
4585 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4586 instead of parse_and_eval_address_1.
4587 * value.h (parse_and_eval_address_1): Remove prototype.
4589 2011-03-04 Michael Snyder <msnyder@vmware.com>
4591 * remote.c (putpkt_binary): Document that case stmt falls through.
4593 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4595 * breakpointc (print_it_typical): Move NULL check from here...
4596 (print_bp_stop_message): ... to here.
4598 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4600 * breakpoint.c (enable_command): Use break instead of continue,
4601 and fill in a missing break.
4602 (disable_command): Ditto.
4604 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4606 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4607 (terminal_save_ours): Remove misleading comment.
4608 (inflow_inferior_data_cleanup): Free ttystate.
4609 (inflow_inferior_exit): Likewise.
4610 (copy_terminal_info): Copy ttystate.
4612 * serial.c (serial_copy_tty_state): New function.
4613 * serial.h (serial_copy_tty_state): Add prototype.
4614 (struct serial_ops): Add copy_tty_state callback.
4615 * ser-base.c (ser_base_copy_tty_state): New function.
4616 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4617 * ser-go32.c (dos_copy_tty_state): New function.
4618 (dos_ops): Install copy_tty_state callback.
4619 * ser-mingw.c (_initialize_ser_windows): Likewise.
4620 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4621 * ser-unix.c (hardwire_copy_tty_state): New function.
4622 (_initialize_ser_hardwire): Install it.
4624 2011-03-04 Michael Snyder <msnyder@vmware.com>
4626 * breakpoint.c (create_breakpoint): Add missing break statement.
4628 Reverting this patch:
4629 * infcall.c (call_function_by_hand): Add break statements for lint.
4631 Reverting this patch:
4632 * cli/cli-script.c (script_from_file): Add break for lint.
4634 2011-03-04 Michael Snyder <msnyder@vmware.com>
4636 * solib.c (reload_shared_libraries_1): Close memory leak.
4638 2011-03-03 Tom Tromey <tromey@redhat.com>
4641 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4644 2011-03-03 Michael Snyder <msnyder@vmware.com>
4646 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4647 fields of struct 'st' to zero.
4649 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4650 sal.pspace before calling set_current_source_symtab_and_line.
4652 2011-03-03 Yao Qi <yao@codesourcery.com>
4654 * Makefile.in (configure-common): Remove. Let Makefile
4655 in dir common to rebuild itself.
4656 (common/Makefile): Likewise.
4658 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4660 * utils.c (parse_escape): Add i18n markup in error message.
4662 2011-03-03 Yao Qi <yao@codesourcery.com>
4664 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4666 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4667 (displaced_write_reg, displaced_read_reg): Likewise.
4668 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4669 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4670 (cleanup_branch): Replace magic number 14 and 15 with
4671 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4673 2011-03-02 Michael Snyder <msnyder@vmware.com>
4675 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4677 * cli/cli-script.c (script_from_file): Add break for lint.
4679 * mdebugread.c (parse_partial_symbols): Fix indent.
4681 * target-descriptions.c (tdesc_gdb_type): No need to call
4682 xstrdup, callee saves a copy.
4684 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4686 * infcall.c (call_function_by_hand): Add break statements for lint.
4688 * utils.c (parse_escape): Escape the escape char.
4690 * python/py-inferior.c (build_inferior_list): Error out if
4691 PyList_Append fails.
4692 (gdbpy_inferiors): Error out if build_inferior_list fails.
4694 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4697 * record.c (record_restore): Move printf to before error return.
4699 2011-03-02 Yao Qi <yao@codesourcery.com>
4701 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4702 is_thumb and insn_size.
4703 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4704 on both ARM and Thumb mode.
4705 (arm_process_displaced_insn): Set is_thumb and insn_size.
4706 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4707 (arm_displaced_step_fixup): Likewise.
4709 2011-03-01 Michael Snyder <msnyder@vmware.com>
4711 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4713 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4715 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4717 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4719 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4722 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4723 which shadows function parameter.
4725 * tracepoint.c (create_tsv_from_upload): Superfluous call
4726 to xstrdup. Callee already calls xstrdup.
4728 * linespec.c (decode_line_1): Remove unnecessary null check.
4730 * tracepoint.c (scope_info): Fix mem leak, remove underused
4733 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4734 superfluous null check.
4736 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4737 (value_of_builtin_frame_fp_reg): Ditto.
4739 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4741 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4744 * linespec.c (decode_line_1): Check for null before dereference.
4746 * reverse.c (record_restore): Move null-check to before pointer
4749 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4751 * objc-lang.c (selectors_info): Add explanitory comment.
4752 (classes_info): Ditto.
4754 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4756 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4757 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4758 versions of the trampoline. Handle Thumb vs. ARM addresses.
4759 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4760 (arm_linux_init_abi): Install it.
4761 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4762 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4764 2011-02-28 Michael Snyder <msnyder@vmware.com>
4766 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4767 a little bigger, to avoid possibility of an overflow.
4769 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4770 buffers a little bigger, to avoid possibility of an overflow.
4772 * coffread.c (coff_getfilename): Add check to avoid overflow.
4774 * objc-lang.c (selectors_info): Add a small safety margin to
4776 (classes_info): Error out on too long REGEXP.
4778 * infrun.c (handle_inferior_event): Remove unused function call.
4780 * fork-child.c (fork_inferior): Remove ifdef'd code and
4783 * linux-thread-db.c (attach_thread): Discard unused value.
4785 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4787 * remote.c (remote_get_noisy_reply): Discard unused value.
4788 (remote_vcont_resume): Ditto.
4789 (remote_stop_ns): Ditto.
4791 * linespec.c (decode_objc): Delete unused variable.
4793 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4795 * dwarf2read.c (add_partial_symbol): Discard unused values.
4796 (read_base_type): Delete unused variable.
4798 * dbxread.c (read_dbx_symtab): Discard unused value.
4800 * eval.c (evaluate_subexp_standard): Delete unused variable,
4801 and discard unused values.
4803 * infcmd.c (_initialize_infcmd): Discard unused values.
4805 * stabsread.c (rs6000_builtin_type): Missing break statement.
4807 * dbxread.c (process_one_symbol): Discard unused value.
4809 * coffread.c (coff_end_symtab): Delete unused variable.
4811 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4812 (dwarf2_add_typedef): Delete unused variable.
4813 (read_namespace): Ditto.
4814 (dwarf_decode_macros): Ditto.
4816 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4818 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4820 * p-valprint.c (pascal_val_print): Discard unused value.
4822 * utils.c (nquery): Call va_end before return;
4826 * proc-service.c (ps_plog): Call va_end before return.
4828 2011-02-28 Tom Tromey <tromey@redhat.com>
4830 * python/python.c (gdbpy_value_cst): New global.
4831 (_initialize_python): Initialize it.
4832 * python/python-internal.h (gdbpy_value_cst): Declare.
4833 * python/py-value.c (convert_value_from_python): Use
4836 2011-02-28 Michael Snyder <msnyder@vmware.com>
4838 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4840 * breakpoint.c (catch_syscall_completer): Free malloced list.
4842 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4844 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4845 (lval_func_check_synthetic_pointer): Ditto.
4846 (lval_func_free_closure): Fix use-after-free.
4848 2011-02-28 Tom Tromey <tromey@redhat.com>
4850 * psymtab.c (expand_partial_symbol_tables): Use
4851 ALL_OBJFILE_PSYMTABS.
4853 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4855 * objc-lang.c (selectors_info): Error on too long REGEXP.
4857 2011-02-28 Michael Snyder <msnyder@vmware.com>
4859 * python/py-param.c (set_parameter_value): Add missing
4862 * linux-record.c (record_linux_system_call): Add missing
4865 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4867 * breakpoint.c (print_one_breakpoint_location): Remove unused
4868 argument PRINT_ADDRESS_BITS. Update callers.
4869 (print_one_breakpoint): Likewise.
4871 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4873 * breakpoint.c (wrap_indent_at_field): New function.
4874 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4875 Allocate ui_stream locally instead of using STB argument.
4876 (print_one_breakpoint_location): Update call.
4877 * ui-out.c (ui_out_query_field): New function.
4878 * ui-out.h (ui_out_query_field): Add prototype.
4880 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4882 From Michael Snyder <msnyder@vmware.com>
4883 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4885 2011-02-27 Michael Snyder <msnyder@vmware.com>
4887 * objc-lang.c (selectors_info): Prevent string overrun.
4889 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4892 * symtab.c (rbreak_command): Move variable 'file_name' to
4895 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4896 param with a local variable of the same name.
4898 2011-02-27 Michael Snyder <msnyder@vmware.com>
4900 * value.c (value_from_history_ref): New function.
4901 * value.h (value_from_history_ref): Export.
4902 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4903 to parse value history references.
4904 * cli/cli-utils.h (get_number_trailer): Update comment.
4906 2011-02-27 Michael Snyder <msnyder@vmware.com>
4908 * inferior.c (detach_inferior_command): Use get_number_or_range.
4909 (kill_inferior_command): Ditto.
4910 (remove_inferior_command): Ditto.
4911 (initialize_inferiors): Make command names plural.
4912 Update help strings.
4914 2011-02-27 Michael Snyder <msnyder@vmware.com>
4916 * darwin-nat-info.c: Fix comment typo.
4917 * dwarf2expr.h: Ditto.
4918 * fbsd-nat.c: Ditto.
4919 * fbsd-nat.h: Ditto.
4920 * frame-unwind.h: Ditto.
4922 * hppa-hpux-tdep.c: Ditto.
4923 * i386-linux-nat.c: Ditto.
4924 * linux-nat.c: Ditto.
4925 * nbsd-nat.c: Ditto.
4926 * nbsd-nat.h: Ditto.
4927 * ppc-linux-tdep.c: Ditto.
4930 * tui/tui-winsource.c: Ditto.
4932 2011-02-26 Michael Snyder <msnyder@vmware.com>
4934 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4936 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4938 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4939 with a local variable of the same name.
4941 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4942 param with a local variable of the same name.
4943 (i387_supply_xsave): Ditto.
4945 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4946 that it does not shadow a function parameter.
4948 * i386-nat.c (i386_length_and_rw_bits): Document that case
4949 statement is meant to fall through.
4951 * expprint.c (dump_subexp_body_standard): Document that case
4952 statement is meant to fall through.
4954 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4955 dead if statement. Condition can't be false.
4957 2011-02-25 Michael Snyder <msnyder@vmware.com>
4959 * arm-tdep.c: Fix typos in comments.
4960 * bsd-uthread.c: Ditto.
4961 * completer.c: Ditto.
4963 * cp-namespace.c: Ditto.
4964 * cp-support.c: Ditto.
4965 * cris-tdep.c: Ditto.
4967 * dwarf2read.c: Ditto.
4969 * gdbtypes.h: Ditto.
4970 * inferior.h: Ditto.
4971 * mdebugread.c: Ditto.
4972 * mips-tdep.c: Ditto.
4973 * ppc-linux-nat.c: Ditto.
4974 * ppc-linux-tdep.c: Ditto.
4975 * printcmd.c: Ditto.
4976 * sol-thread.c: Ditto.
4977 * solib-frv.c: Ditto.
4979 * sparc64-tdep.c: Ditto.
4980 * spu-tdep.c: Ditto.
4981 * stabsread.c: Ditto.
4986 * python/py-block.c: Ditto.
4987 * python/py-symbol.c: Ditto.
4988 * python/py-symtab.c: Ditto.
4989 * python/py-value.c: Ditto.
4990 * tui/tui-win.c: Ditto.
4992 2011-02-25 Michael Snyder <msnyder@vmware.com>
4994 * inferior.c (print_inferior): Accept a string instead of an int
4995 for requested_inferiors, and use get_number_or_range to parse it.
4996 (info_inferiors_command): Pass args string to print_inferior.
4997 (initialize_inferiors): Change help string for info inferiors.
4998 * inferior.h (print_inferior): Export prototype change.
5000 2011-02-25 Tom Tromey <tromey@redhat.com>
5002 * common/ax.def (invalid2): Set to 0x31.
5004 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5006 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
5008 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
5010 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
5012 2011-02-24 Michael Snyder <msnyder@vmware.com>
5014 * Makefile.in (clean): Make clean should remove generated files
5015 observer.h and observer.inc.
5017 2011-02-24 Joel Brobecker <brobecker@adacore.com>
5019 Revert the following patch (not approved yet):
5020 2011-02-21 Hui Zhu <teawater@gmail.com>
5021 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5022 * ax-gdb.c (gen_printf_expr_callback): New function.
5023 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5024 * ax-general.c (ax_memcpy): New function.
5025 (ax_print): Handle "printf".
5027 * ax.h (ax_memcpy): Forward declare.
5028 * common/ax.def (invalid2): Removed.
5029 (printf): New entry.
5030 * printcmd.c (printcmd.h): New include.
5031 (string_printf): New function.
5032 (ui_printf): Removed.
5033 (printf_command): Remove static. Call string_printf.
5034 (eval_command): Call string_printf.
5035 * printcmd.h: New file.
5036 * tracepoint.c (validate_actionline,
5037 encode_actions_1): handle printf_command.
5039 2011-02-23 Tom Tromey <tromey@redhat.com>
5041 * ax-general.c (ax_pick): Add missing newline.
5043 2011-02-23 Michael Snyder <msnyder@vmware.com>
5045 * breakpoint.c (breakpoint_1): Change first argument from an int
5046 to a char pointer, so that the function now accepts a list of
5047 breakpoints rather than just one. Use new function
5048 'number_is_in_list' to implement.
5049 (breakpoints_info): Pass char * instead of int to breakpoint_1.
5050 (watchpoints_info): Ditto.
5051 (tracepoints_info): Ditto.
5052 (maintenance_info_breakpoints): Ditto.
5053 (_initialize_breakpoint): Update help strings to reflect the fact
5054 that these functions can now take more than one argument.
5055 * cli/cli-utils.c (number_is_in_list): New function.
5056 * cli/cli-utils.h (number_is_in_list): Export.
5058 2011-02-23 Michael Snyder <msnyder@vmware.com>
5060 * memattr.c (mem_enable_command): Use get_number_or_range.
5061 (mem_disable_command): Ditto.
5062 (mem_delete_command): Ditto.
5063 (_initialize_mem): Tweak usage message to reflect multiple
5066 2011-02-22 Doug Evans <dje@google.com>
5068 Add gdb.lookup_global_symbol python function.
5070 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
5071 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
5072 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
5074 2011-02-22 Tom Tromey <tromey@redhat.com>
5076 * language.c (language_class_name_from_physname): Rename
5077 'curr_language' argument to 'lang'; use in body.
5079 2011-02-22 Michael Snyder <msnyder@vmware.com>
5081 * cli/cli-utils.c (number_is_in_list): Check for zero return.
5083 2011-02-22 Pedro Alves <pedro@codesourcery.com>
5085 * frame-unwind.h: Fix comment to mention the this frame, not the
5088 2011-02-22 Tom Tromey <tromey@redhat.com>
5090 * symfile.c (auto_solib_limit): Remove.
5091 * symfile.h (auto_solib_limit): Remove.
5093 2011-02-22 Joel Brobecker <brobecker@adacore.com>
5095 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
5097 2011-02-21 Michael Snyder <msnyder@vmware.com>
5099 * gdbthread.h (print_thread_info): Change prototype.
5100 * thread.c (print_thread_info): Accept char* instead of int for
5101 requested_threads argument. Use new function number_is_in_list
5102 to determine which threads to list.
5103 (info_threads_command): Pass char* to print_thread_info.
5104 * cli/cli-utils.c (number_is_in_list): New function.
5105 * cli/cli-utils.h (number_is_in_list): Export.
5106 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
5108 (print_one_inferior): Ditto.
5109 (mi_cmd_list_thread_groups): Ditto.
5111 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5113 * common/Makefile.in (CFLAGS): New.
5114 (COMPILE): Add $(CFLAGS).
5116 2011-02-21 Tom Tromey <tromey@redhat.com>
5118 * breakpoint.c (catch_syscall_command_1): Fix typo.
5120 2011-02-21 Tom Tromey <tromey@redhat.com>
5122 * reverse.c: Include cli-utils.h.
5123 * printcmd.c: Include cli-utils.h.
5124 (string_printf): Use skip_spaces.
5125 * cli/cli-utils.h: New file.
5126 * cli/cli-utils.c: New file.
5127 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
5128 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
5129 * breakpoint.h (get_number, get_number_or_range): Move to
5131 * breakpoint.c: Include cli-utils.h.
5132 (get_number_trailer, get_number, get_number_or_range)
5133 (ep_skip_leading_whitespace): Move to cli-utils.c.
5134 (create_breakpoint_sal, find_condition_and_thread)
5135 (decode_static_tracepoint_spec, watch_command_1)
5136 (watch_maybe_just_location, ep_parse_optional_if_clause)
5137 (catch_fork_command_1, catch_exec_command_1)
5138 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
5139 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
5140 (SUBDIR_CLI_SRCS): Add cli-utils.c.
5141 (HFILES_NO_SRCDIR): Add cli-utils.h.
5142 (cli-utils.o): New target.
5144 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5146 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
5147 before calling discard_all_inferiors.
5149 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5151 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
5152 (struct builtin_opencl_type): Remove.
5153 (builtin_opencl_type): Change return type to "struct type **".
5154 (lookup_opencl_vector_type): Update caller.
5155 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
5156 (build_opencl_types): Install plain array of "struct type *"
5157 instead of "struct builtin_opencl_type".
5159 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5160 Ulrich Weigand <uweigand@de.ibm.com>
5162 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
5163 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
5164 (struct arm_linux_hwbp_cap): New type.
5165 (arm_linux_get_hwbp_cap): New function.
5166 (arm_linux_get_hw_breakpoint_count): Likewise.
5167 (arm_linux_get_hw_watchpoint_count): Likewise.
5168 (arm_linux_can_use_hw_breakpoint): Likewise.
5169 (arm_hwbp_type): New type.
5170 (arm_hwbp_control_t): Likewise.
5171 (struct arm_linux_hw_breakpoint): Likewise.
5172 (struct arm_linux_thread_points): Likewise.
5173 (arm_threads): New global variable.
5174 (arm_linux_find_breakpoints_by_tid): New function.
5175 (arm_hwbp_control_initialize): Likewise.
5176 (arm_hwbp_control_is_enabled): Likewise.
5177 (arm_hwbp_control_disable): Likewise.
5178 (arm_linux_hw_breakpoint_initialize): Likewise.
5179 (arm_linux_get_hwbp_type): Likewise.
5180 (arm_linux_hw_watchpoint_initialize): Likewise.
5181 (arm_linux_hw_breakpoint_equal): Likewise.
5182 (arm_linux_insert_hw_breakpoint1): Likewise.
5183 (arm_linux_remove_hw_breakpoint1): Likewise.
5184 (arm_linux_insert_hw_breakpoint): Likewise.
5185 (arm_linux_remove_hw_breakpoint): Likewise.
5186 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
5187 (arm_linux_insert_watchpoint): Likewise.
5188 (arm_linux_remove_watchpoint): Likewise.
5189 (arm_linux_stopped_data_address): Likewise.
5190 (arm_linux_stopped_by_watchpoint): Likewise.
5191 (arm_linux_watchpoint_addr_within_range): Likewise.
5192 (arm_linux_new_thread): Likewise.
5193 (arm_linux_thread_exit): Likewise.
5194 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
5195 related target callbacks. Register arm_linux_new_thread and
5196 arm_linux_thread_exit.
5197 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
5198 * arm-tdep.c (arm_pc_is_thumb): Make global.
5199 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
5201 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5203 * breakpoint.c (update_watchpoint): Do not attempt to recreate
5204 per-frame locations while within a function epilogue.
5206 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5208 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
5209 to GNU coding standards.
5211 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5213 Allow use of mingw native on Windows 95 OS.
5214 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
5215 (ser_windows_close): Only call CancelIo if function exists.
5216 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
5217 to check for existence of CancelIo function in kernel32 DLL.
5219 2011-02-21 Hui Zhu <teawater@gmail.com>
5221 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5222 * ax-gdb.c (gen_printf_expr_callback): New function.
5223 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5224 * ax-general.c (ax_memcpy): New function.
5225 (ax_print): Handle "printf".
5227 * ax.h (ax_memcpy): Forward declare.
5228 * common/ax.def (invalid2): Removed.
5229 (printf): New entry.
5230 * printcmd.c (printcmd.h): New include.
5231 (string_printf): New function.
5232 (ui_printf): Removed.
5233 (printf_command): Remove static. Call string_printf.
5234 (eval_command): Call string_printf.
5235 * printcmd.h: New file.
5236 * tracepoint.c (validate_actionline,
5237 encode_actions_1): handle printf_command.
5239 2011-02-19 Michael Snyder <msnyder@vmware.com>
5241 * reverse.c (delete_one_bookmark): Argument is now bookmark
5242 id rather than pointer to bookmark struct.
5243 (delete_bookmark_command): Use get_number_or_range.
5244 (goto_bookmark_command): Parse with get_number instead of strtoul.
5245 (bookmark_1): New function. Print info for one bookmark.
5246 (bookmarks_info): Use get_number_or_range and bookmark_1.
5248 2011-02-18 Michael Snyder <msnyder@vmware.com>
5250 * thread.c (info_threads_command): Re-implement using
5251 get_number_or_range.
5252 (thread_apply_command): Ditto.
5254 2011-02-18 Tom Tromey <tromey@redhat.com>
5256 * common/ax.def: New file.
5257 * ax.h (enum agent_op): Use ax.def.
5258 * ax-general.c (aop_map): Use ax.def.
5260 2011-02-18 Tom Tromey <tromey@redhat.com>
5262 * ax-general.c (aop_map): Add pick and rot.
5263 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5264 <DW_OP_rot>: Implement.
5265 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5267 * ax-general.c (ax_pick): New function.
5269 2011-02-18 Tom Tromey <tromey@redhat.com>
5271 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5273 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5274 Tom Tromey <tromey@redhat.com>
5276 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5277 make_symbol_overload_list_block with NULL BLOCK.
5278 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5280 2011-02-18 Pedro Alves <pedro@codesourcery.com>
5282 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5283 * breakpoint.h (get_number_or_range): Declare.
5284 * printcmd.c (ALL_DISPLAYS): Declare.
5285 (delete_display): Reimplement taking a display pointer.
5286 (undisplay_command): Accept a range of displays to delete, using
5287 get_number_or_range.
5289 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5291 * c-valprint.c (c_val_print): Add embedded_offset to address
5292 for arrays of unspecified length.
5293 * p-valprint.c (pascal_val_print): Likewise.
5295 2011-02-18 Yao Qi <yao@codesourcery.com>
5297 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5298 (arm_process_displaced_insn): .. here. Remove parameter INSN.
5299 (thumb_process_displaced_insn): New.
5300 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5301 call to arm_process_displaced_insn.
5302 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5304 2011-02-17 Tom Tromey <tromey@redhat.com>
5306 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5307 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5308 compile_dwarf_to_ax. No longer static. Call
5309 dwarf2_compile_cfa_to_ax.
5310 (locexpr_tracepoint_var_ref): Update.
5311 (loclist_tracepoint_var_ref): Update.
5312 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5313 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5314 argument; add 'gdbarch' and 'pc'.
5315 (dwarf2_compile_cfa_to_ax): New function.
5316 (dwarf2_frame_cache): Update.
5318 2011-02-17 Joel Brobecker <brobecker@adacore.com>
5320 * ada-lang.c (ada_type_of_array): Fix the size of the array
5321 in the case of an unconstrained packed array.
5323 2011-02-17 Yao Qi <yao@codesourcery.com>
5325 * common/Makefile.in: Add more targets for make.
5327 2011-02-16 Tom Tromey <tromey@redhat.com>
5329 * dwarf2loc.c (unimplemented): Fix typo.
5331 2011-02-16 Tom Tromey <tromey@redhat.com>
5333 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5334 (compile_dwarf_to_ax) <default>: Use unimplemented.
5335 <DW_OP_deref>: Update.
5336 (disassemble_dwarf_expression): Update.
5337 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5338 (decode_locdesc): Update.
5339 * dwarf2expr.h (dwarf_stack_op_name): Update.
5341 2011-02-16 Tom Tromey <tromey@redhat.com>
5343 * ax.h (struct aop_map) <name>: Now const.
5345 2011-02-16 Tom Tromey <tromey@redhat.com>
5347 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5350 2011-02-16 Yao Qi <yao@codesourcery.com>
5352 * infrun.c (get_displaced_step_closure_by_addr): New.
5353 * inferior.h: Declare it.
5354 * arm-tdep.c: (arm_pc_is_thumb): Call
5355 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
5358 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5359 Jan Kratochvil <jan.kratochvil@redhat.com>
5362 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
5364 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5365 Jan Kratochvil <jan.kratochvil@redhat.com>
5367 * value.c (value_contents_copy_raw): Extend describing comment.
5368 Assert that the destination contents we're overwriting are wholly
5370 (value_contents_copy): Extend describing comment.
5372 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5373 Jan Kratochvil <jan.kratochvil@redhat.com>
5375 * value.c (value_available_contents_eq): Remove redundant local
5376 variables. Fix available contents comparision.
5377 * value.h (value_available_contents_eq): Extend describing
5380 2011-02-16 Yao Qi <yao@codesourcery.com>
5382 * thread.c (info_threads_command): Add missing i18n markup and remove
5385 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5387 * breakpoint.c (longjmp_names): New variable.
5388 (struct breakpoint_objfile_data): New type.
5389 (breakpoint_objfile_key): New variable.
5390 (msym_not_found): New variable.
5391 (msym_not_found_p): New predicate.
5392 (get_breakpoint_objfile_data): New function.
5393 (create_overlay_event_breakpoint): Check per-objfile cache for
5395 (create_longjmp_master_breakpoint): Likewise.
5396 (create_std_terminate_master_breakpoint): Likewise.
5397 (create_exception_master_breakpoint): Likewise.
5398 (_initialize_breakpoint): Register per-objfile data key.
5400 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5402 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5404 (create_longjmp_master_breakpoint): Loop over longjmp names.
5405 (create_std_terminate_master_breakpoint): Const-propagate parameter
5407 (update_breakpoints_after_exec): Adjust.
5408 (breakpoint_re_set): Adjust.
5410 2011-02-15 Michael Snyder <msnyder@vmware.com>
5412 * thread.c (info_threads_command): Process arg as thread id,
5413 or list of thread ids.
5414 (thread_find_command): New command.
5415 (_initialize_thread): Document argument for info threads.
5416 Document 'thread find' command.
5417 * NEWS: Document new command "thread find".
5419 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5421 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5422 * aclocal.m4: Regenerated with aclocal-1.11.1.
5423 * common/configure: Regenerate with autoconf-2.64.
5425 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
5427 * opencl-lang.c (build_opencl_types): Set the size of the built-in
5428 bool data type to a size of one byte.
5430 2011-02-15 Pedro Alves <pedro@codesourcery.com>
5431 Jan Kratochvil <jan.kratochvil@redhat.com>
5433 * target.c (memory_xfer_live_readonly_partial): Document where to
5434 look for interface description.
5436 2011-02-15 Yao Qi <yao@codesourcery.com>
5439 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5440 order to store PC value on stack instead of text section.
5442 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
5444 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5445 the EFP register set size.
5446 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5447 data from the VMX register.
5448 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5449 and write data from/to the VMX register.
5451 2011-02-14 Michael Snyder <msnyder@vmware.com>
5453 * command.h (enum command_class): New class 'no_set_class', for
5454 "show" commands without a corresponding "set" command.
5455 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5456 * copying.c (_initialize_copying): Ditto for "show copying" and
5458 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5460 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5461 which there is no corresponding "set" command (eg. "show copying").
5463 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5464 Jan Kratochvil <jan.kratochvil@redhat.com>
5466 * exec.c (section_table_available_memory): Change `len' parameter
5468 * exec.h (section_table_available_memory): Ditto.
5469 * value.h (read_value_memory): Rename the `offset' parameter to
5472 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5473 Jan Kratochvil <jan.kratochvil@redhat.com>
5475 * memrange.c (compare_mem_ranges): Mention sort order in
5477 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5478 * tracepoint.c (traceframe_available_memory): Extend comment to
5479 mention what happens to RESULT when the target does not support
5482 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5483 Jan Kratochvil <jan.kratochvil@redhat.com>
5485 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5488 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5490 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5491 No longer handle NULL values.
5493 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5495 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5496 * value.c: Include "exceptions.h".
5497 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5499 * cp-abi.c: Include gdb_assert.h.
5500 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5501 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5503 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5504 parameters. No longer returns -1 on error.
5505 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5507 * cp-valprint.c: Include exceptions.h.
5508 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5509 the baseclass_offset. Handle unavailable base classes. Use
5510 val_print_invalid_address.
5511 * p-valprint.c: Include exceptions.h.
5512 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5513 when fetching the baseclass_offset. No longer expect
5514 baseclass_offset returning -1. Handle unavailable base classes.
5515 Use val_print_invalid_address.
5516 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5517 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5518 `embedded_offset' and `val' parameters. Adjust.
5519 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5520 parameter, and change its type to gdb_byte pointer. Add
5521 `embedded_offset' and `val' parameters. Adjust. No longer expect
5522 baseclass_offset returning -1.
5523 (value_dynamic_cast): Use value_contents_for_printing rather than
5524 value_contents. Adjust.
5525 (search_struct_field): No longer expect baseclass_offset returning
5527 (search_struct_method): If reading memory from the target is
5528 necessary, wrap it in a new value to pass to baseclass_offset. No
5529 longer expect baseclass_offset returning -1.
5530 (find_method_list): No longer expect baseclass_offset returning
5531 -1. Use value_contents_for_printing rather than value_contents.
5532 * valprint.c (val_print_invalid_address): New function.
5533 * valprint.h (val_print_invalid_address): Declare.
5534 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5535 and `val' parameters. No longer expect baseclass_offset returning
5537 * gnu-v2-abi.c: Include "exceptions.h".
5538 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5539 parameters. Handle unavailable memory. Recurse through
5540 gnuv2_baseclass_offset directly, rather than through
5541 baseclass_offset. No longer returns -1 on not found, instead
5543 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5544 `val' parameters. Adjust.
5546 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5548 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5549 almost but not quite adjacent.
5551 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5553 * value.h (value_entirely_available): Declare.
5554 * value.c (value_entirely_available): New function.
5555 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5556 real type if the pointer is unavailable.
5558 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5560 * valops.c (value_repeat): Use read_value_memory instead of
5563 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5565 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5566 * value.c (value_contents_copy_raw, value_contents_copy): New
5568 (value_primitive_field): Use value_contents_copy_raw instead of
5570 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5572 (value_array, value_slice): Ditto.
5573 * valarith.c (value_subscripted_rvalue): Use
5574 value_contents_copy_raw instead of memcpy.
5576 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5578 <unavailable> references.
5580 * valops.c (get_value_at): Use value_from_contents_and_address,
5581 avoiding read_memory.
5583 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5585 * c-valprint.c (c_val_print): Print a string with unavailable
5586 contents as an array.
5588 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5590 * value.h (unpack_bits_as_long): Delete declaration.
5591 (unpack_value_bits_as_long): Declare.
5592 (unpack_value_field_as_long): Declare.
5593 (value_field_bitfield): Declare.
5594 * value.c (unpack_bits_as_long): Rename to...
5595 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5596 value parameters. Return the extracted result in a new output
5597 parameter. If the value contents are unavailable, return false,
5598 otherwise return true.
5599 (unpack_value_bits_as_long): New.
5600 (unpack_field_as_long): Rename to...
5601 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5602 Add embedded_offset and value parameters. Return the extracted
5603 result in a new output parameter. If the value contents are
5604 unavailable, return false, otherwise return true.
5605 (unpack_value_field_as_long): New.
5606 (unpack_field_as_long_1): New.
5607 (unpack_field_as_long): Reimplement as wrapper around
5608 unpack_value_field_as_long_1.
5609 (value_field_bitfield): New function.
5610 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5611 unpack_value_bits_as_long. Mark the value as unavailable, if it
5613 * jv-valprint.c (java_print_value_fields): Use
5614 value_field_bitfield.
5615 * p-valprint.c (pascal_object_print_value_fields): Use
5616 value_field_bitfield.
5617 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5619 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5621 * value.c (get_internalvar_integer): Also return the int value of
5622 TYPE_CODE_INT INTERNALVAR_VALUE values.
5623 (set_internalvar): Don't special case TYPE_CODE_INT.
5625 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5627 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5628 INTERNALVAR_POINTER.
5630 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5631 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5632 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5634 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5636 * value.h (value_available_contents_eq): Declare.
5637 * value.c (find_first_range_overlap): New function.
5638 (value_available_contents_eq): New function.
5639 * valprint.c (val_print_array_elements): Use
5640 value_available_contents_eq.
5641 * ada-valprint.c (val_print_packed_array_elements): Use
5642 value_available_contents_eq.
5643 * jv-valprint.c (java_value_print): Use
5644 value_available_contents_eq.
5646 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5648 * target.c (target_read_live_memory): New function.
5649 (memory_xfer_live_readonly_partial): New.
5650 (memory_xfer_partial): If reading from a traceframe, fallback to
5651 reading unavailable read-only memory from read-only regions of
5653 * tracepoint.c (disconnect_tracing): Adjust.
5654 (set_current_traceframe): New, factored out from
5655 set_traceframe_number.
5656 (set_traceframe_number): Reimplement to only change the traceframe
5657 number on the GDB side.
5658 (do_restore_current_traceframe_cleanup): Adjust.
5659 (make_cleanup_restore_traceframe_number): New.
5660 (cur_traceframe_number): New global.
5661 (tfile_open): Set cur_traceframe_number to no traceframe.
5662 (set_tfile_traceframe): New function.
5663 (tfile_trace_find): If looking up a traceframe using any method
5664 other than by number, make sure the current tfile traceframe
5665 matches gdb's current traceframe. Update the current tfile
5666 traceframe if the lookup succeeded.
5667 (tfile_fetch_registers, tfile_xfer_partial)
5668 (tfile_get_trace_state_variable_value): Make sure the remote
5669 traceframe matches gdb's current traceframe.
5670 * remote.c (remote_traceframe_number): New global.
5671 (remote_open_1): Set it to -1.
5672 (set_remote_traceframe): New function.
5673 (remote_fetch_registers, remote_store_registers)
5674 (remote_xfer_memory, remote_xfer_partial)
5675 (remote_get_trace_state_variable_value): Make sure the remote
5676 traceframe matches gdb's current traceframe.
5677 (remote_trace_find): If looking up a traceframe using any method
5678 other than by number, make sure the current remote traceframe
5679 matches gdb's current traceframe. Update the current remote
5680 traceframe if the lookup succeeded.
5681 * infrun.c (fetch_inferior_event): Adjust.
5682 * tracepoint.h (set_current_traceframe): Declare.
5683 (get_traceframe_number, set_traceframe_number): Add describing
5686 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5688 Mark pieces of values as unavailable if the corresponding memory
5691 * valops.c: Include tracepoint.h.
5692 (value_fetch_lazy): Use read_value_memory.
5693 (read_value_memory): New.
5694 * value.h (read_value_memory): Declare.
5695 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5696 * exec.c (section_table_available_memory): New function.
5697 * exec.h (section_table_available_memory): Declare.
5699 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5701 * Makefile.in (SFILES): Add memrange.c.
5702 (HFILES_NO_SRCDIR): Add memrange.h.
5703 (COMMON_OBS): Add memrange.o.
5704 * memrange.c: New file.
5705 * memrange.h: New file.
5706 * tracepoint.c: Include memrange.h.
5707 (struct mem_range): Delete.
5708 (mem_range_s): Delete.
5709 (traceframe_available_memory): New function.
5710 * tracepoint.h (traceframe_available_memory): Declare.
5712 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5714 * target.h (struct traceframe_info): Forward declare.
5715 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5716 (struct target_ops) <to_traceframe_info>: New field.
5717 (target_traceframe_info): New.
5718 * target.c (update_current_target): Inherit and default
5720 * remote.c (PACKET_qXfer_traceframe_info): New.
5721 (remote_protocol_features): Register qXfer:traceframe-info:read.
5722 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5723 (remote_traceframe_info): New.
5724 (init_remote_ops): Install it.
5725 (_initialize_remote): Install "set/show remote traceframe-info"
5727 * tracepoint.h (parse_traceframe_info): Declare.
5728 * tracepoint.c (struct mem_range): New.
5729 (mem_range_s): New typedef.
5730 (struct traceframe_info): New.
5731 (traceframe_info): New global.
5732 (free_traceframe_info): New function.
5733 (clear_traceframe_info): New function.
5734 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5736 (build_traceframe_info): New function.
5737 (tfile_traceframe_info): New function.
5738 (init_tfile_ops): Install tfile_traceframe_info.
5739 (traceframe_info_start_memory, free_result): New functions.
5740 (memory_attributes, traceframe_info_elements): New globals.
5741 (parse_traceframe_info, get_traceframe_info): New functions.
5742 * features/traceframe-info.dtd: New file.
5743 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5745 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5747 Base support for <unavailable> value contents.
5749 * value.h (value_bytes_available): Declare.
5750 (mark_value_bytes_unavailable): Declare.
5751 * value.c (struct range): New struct.
5752 (range_s): New typedef.
5753 (ranges_overlap): New function.
5754 (range_lessthan): New function.
5755 (ranges_contain_p): New function.
5756 (struct value) <unavailable>: New field.
5757 (value_bytes_available): New function.
5758 (mark_value_bytes_unavailable): New function.
5759 (require_not_optimized_out): Constify parameter.
5760 (require_available): New function.
5761 (value_contents_all, value_contents): Require all bytes be
5763 (value_free): Free `unavailable'.
5764 (value_copy): Copy `unavailable'.
5765 * valprint.h (val_print_unavailable): Declare.
5766 * valprint.c (valprint_check_validity): Rename `offset' parameter
5767 to `embedded_offset'. If printing a scalar, check whether the
5768 value chunk is available.
5769 (val_print_unavailable): New.
5770 (val_print_scalar_formatted): Check whether the value is
5772 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5773 pretty-printing unavailable values.
5775 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5777 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5778 * c-typeprint.c (c_type_print_args): Update the function comment. New
5779 variable param_type, initialize it. Remove const/volatile qualifiers
5780 for language_cplus and !show_artificial. Use param_type.
5782 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5784 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5785 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5786 * symtab.h (struct symtab) <next>: Comment extension.
5788 2011-02-12 Yao Qi <yao@codesourcery.com>
5790 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5792 2011-02-11 Yao Qi <yao@codesourcery.com>
5794 * common/Makefile.in: Add copyright header.
5796 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5798 * infrun.c (proceed): Move switching out and in of tfind mode from
5800 (fetch_inferior_event): ... to here.
5802 2011-02-11 Yao Qi <yao@codesourcery.com>
5804 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5806 * configure.ac: Add common to sub dir.
5807 * configure: Regenerate.
5809 2011-02-11 Yao Qi <yao@codesourcery.com>
5813 * common/Makefile.in: New.
5814 * common/configure.ac: New.
5815 * common/aclocal.m4: New.
5816 * common/configure: Generate.
5818 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5820 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5821 side of the parenthesis.
5824 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5825 * vec.h (VEC_block_remove): Fix comment.
5827 2011-02-08 Michael Snyder <msnyder@vmware.com>
5829 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5831 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5833 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5834 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5837 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5840 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5842 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5843 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5845 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5847 * dwarf2read.c (read_subroutine_type): Set special calling
5848 convention flag for functions compiled by IBM XL C for OpenCL.
5849 * ppc-sysv-tdep.c: Include "dwarf2.h"
5850 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5852 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5853 IBM OpenCL vector types calling convention.
5854 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5855 (ppc_sysv_abi_broken_return_value): Likewise.
5856 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5857 types calling convention.
5858 (ppc64_sysv_abi_return_value): Likewise.
5859 * spu-tdep.c: Include "dwarf2.h"
5860 (spu_return_value): Implement IBM OpenCL vector types calling
5863 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5865 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5866 correct ABI for AltiVec vector arguments.
5868 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5870 * valprint.c (val_print): Extend comment.
5871 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5872 interface explanation to val_print.
5873 (ada_val_print_array): Adjust comment to current interface.
5874 (print_field_values): Adjust comment to current interface.
5875 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5876 explanation to val_print.
5877 * f-valprint.c (f_val_print): Ditto.
5878 * jv-valprint.c (java_val_print): Ditto.
5879 * m2-valprint.c (m2_val_print): Ditto.
5880 * p-valprint.c (pascal_val_print): Ditto.
5882 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5884 * breakpoint.c (parse_breakpoint_sals): Fix description.
5886 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5887 Oguz Kayral <oguzkayral@gmail.com>
5889 * python/py-inferior.c (python_on_normal_stop): New function.
5890 (python_on_resume): New function.
5891 (python_inferior_exit): New function.
5892 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5893 inferior_exit observers.
5894 * python/py-evtregistry.c: New file.
5895 * python/py-threadevent.c : New file.
5896 * python/py-event.c: New file.
5897 * python/py-evts.c: New file.
5898 * python/py-continueevent.c: New file.
5899 * python/py-bpevent.c: New file.
5900 * python/py-signalevent.c: New file.
5901 * python/py-exetiedevent.c: New file.
5902 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5903 Move struct breakpoint_object from here...
5904 * python/python-internal.h: ... to here.
5905 * python/py-event.h: New file.
5906 * python/py-events.h: New file.
5907 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5908 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5909 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5910 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5911 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5912 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5913 Add build rules for all the above.
5915 2011-02-04 Tom Tromey <tromey@redhat.com>
5917 * dwarf2read.c (dwarf2_section_empty_p): New function.
5918 (dwarf2_read_section): Use dwarf2_section_empty_p.
5919 (dwarf2_section_size): New function.
5920 (dwarf2_get_section_info): Unconditionally read section.
5921 (dwarf2_read_index): Use dwarf2_section_empty_p.
5922 (partial_read_comp_unit_head): Use dwarf2_section_size.
5923 (dwarf2_symbol_mark_computed): Likewise.
5925 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5927 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5929 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5931 * mips-linux-tdep.c: Include xml-syscall.h.
5932 (mips_linux_get_syscall_number): New function.
5933 (mips_linux_init_abi): Add calls to
5934 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5935 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5936 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5937 * syscalls/mips-n32-linux.xml: New file.
5938 * syscalls/mips-n64-linux.xml: New file.
5939 * syscalls/mips-o32-linux.xml: New file.
5941 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5943 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5944 Complain about inverted range entries.
5945 (dwarf2_record_block_ranges): Likewise.
5947 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5950 * breakpoint.c (update_watchpoint): Fix name of the
5951 update_global_location_list function.
5952 (print_one_breakpoint): Fix typo.
5953 (_initialize_breakpoint): Remove extra space in hbreak help
5955 * breakpoint.h (struct bp_location) <length>: Fix field
5958 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5960 * regcache.c (registers_changed_ptid): Don't explictly always
5961 clear `current_regcache'. Only clear current_thread_ptid and
5962 current_thread_arch when PTID matches. Only reinit the frame
5963 cache if PTID matches the current inferior_ptid. Move alloca(0)
5965 (registers_changed): ... here.
5967 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5969 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5970 starts with __stack_chk_guard as stack guard symbol.
5972 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5974 * disasm.c (compare_lines): Handle the end of sequence markers
5975 within the line table to better support disassembling over
5976 compilation unit boundaries.
5978 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5980 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5981 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5982 implementation even if no symbols are available.
5983 (thumb_analyze_prologue): Update call to skip_prologue_function.
5984 (arm_analyze_prologue): Likewise.
5986 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5988 * arm-tdep.c: Include "observer.h".
5989 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5990 (arm_exidx_data_key): New static variable.
5991 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5992 (struct arm_exidx_data): Likewise.
5993 (arm_exidx_data_free): New function.
5994 (arm_compare_exidx_entries): Likewise.
5995 (arm_obj_section_from_vma): Likewise.
5996 (arm_exidx_new_objfile): Likewise.
5997 (arm_find_exidx_entry): Likewise.
5998 (arm_exidx_fill_cache): Likewise.
5999 (arm_exidx_unwind_sniffer): Likewise.
6000 (arm_exidx_unwind): New global variable.
6001 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
6002 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
6003 observer. Register arm_exidx_data_key as objfile data.
6005 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6007 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
6008 due to accessing uninitialized variable. Fix indentation.
6010 2011-02-02 Pedro Alves <pedro@codesourcery.com>
6012 * c-valprint.c (c_value_print): When doing virtual base pointer
6013 adjustment, create a new value with adjusted contents rather than
6014 changing the contents of the value being printed (and getting it
6017 2011-02-02 Pedro Alves <pedro@codesourcery.com>
6019 * xml-support.c (xml_find_attribute): New.
6020 (xinclude_start_include): Use it.
6021 * xml-support.h (xml_find_attribute): Declare.
6022 * memory-map.c (memory_map_start_memory)
6023 (memory_map_start_property): Use xml_find_attribute.
6024 * osdata.c (osdata_start_osdata, osdata_start_column): Use
6026 * remote.c (start_thread): Use xml_find_attribute.
6027 * solib-target.c (library_list_start_segment)
6028 (library_list_start_section, library_list_start_library)
6029 (library_list_start_list): Use xml_find_attribute.
6030 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
6031 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
6032 (tdesc_start_field): Use xml_find_attribute.
6034 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
6036 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
6037 (BUILD_OCL_VTYPES): Update.
6039 2011-02-02 Joel Brobecker <brobecker@adacore.com>
6041 * configure.ac: Work around non-GNU sed limitation when computing
6042 python version number.
6043 * configure: Regenerate.
6045 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6047 Fix debug printing of TYPE_INSTANCE.
6048 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
6049 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
6051 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6053 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
6054 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
6055 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
6056 * ada-operator.inc: Rename the file to ...
6057 * ada-operator.def: ... here, wrap all the entries by macro OP.
6058 * expprint.c (op_name_standard): Remove all the entries. Include
6059 "std-operator.def" instead.
6060 * expression.h (enum exp_opcode): Include "std-operator.def" and
6061 "ada-operator.def". Move all the entries ...
6062 * std-operator.def: ... here, wrap all the entries by macro OP.
6064 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6066 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
6067 * breakpoint.c (remove_jit_event_breakpoints): New function.
6068 * jit.c (jit_descriptor_addr): Delete.
6069 (registering_code): Delete.
6070 (clear_int): Delete.
6071 (jit_inferior_data): New variable.
6072 (struct jit_inferior_data): New type.
6073 (get_jit_inferior_data): New function.
6074 (jit_inferior_data_cleanup): New function.
6075 (jit_read_descriptor): Adjust.
6076 (jit_register_code): Adjust.
6077 (jit_breakpoint_re_set_internal): New function; move code here ...
6078 (jit_inferior_init): ... from here.
6079 (jit_breakpoint_re_set): Adjust.
6080 (jit_reset_inferior_data_and_breakpoints): New function.
6081 (jit_inferior_created_observer): Adjust.
6082 (jit_inferior_exit_hook): Adjust.
6083 (jit_executable_changed_observer): New function.
6084 (jit_event_handler): Adjust.
6085 (_initialize_jit): Adjust.
6087 2011-01-31 Michael Snyder <msnyder@vmware.com>
6089 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
6092 2011-01-31 Tom Tromey <tromey@redhat.com>
6095 * python/python.c (execute_gdb_command): Call
6096 prevent_dont_repeat.
6097 * top.c (suppress_dont_repeat): New global.
6098 (dont_repeat): Use it.
6099 (prevent_dont_repeat): New function.
6100 * command.h (prevent_dont_repeat): Declare.
6102 2011-01-31 Tom Tromey <tromey@redhat.com>
6104 * infcmd.c (finish_backward): Use breakpoint_set_silent.
6105 * python/py-breakpoint.c (bppy_set_silent): Use
6106 breakpoint_set_silent.
6107 (bppy_set_thread): Use breakpoint_set_thread.
6108 (bppy_set_task): Use breakpoint_set_task.
6109 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
6110 (breakpoint_set_task): Declare.
6111 (make_breakpoint_silent): Remove.
6112 * breakpoint.c (breakpoint_set_silent): New function.
6113 (breakpoint_set_thread): Likewise.
6114 (breakpoint_set_task): Likewise.
6115 (make_breakpoint_silent): Remove.
6117 2011-01-31 Tom Tromey <tromey@redhat.com>
6119 * breakpoint.h (user_breakpoint_p): Declare.
6120 * breakpoint.c (user_breakpoint_p): New function.
6121 (breakpoint_1): Use it.
6122 (save_breakpoints): Likewise.
6124 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6126 * configure.ac: Add handling of Python distribution on Windows.
6127 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
6128 sysconfig variables are not defined, then do not use them.
6129 On Windows, if LIBPL is not defined, then use prefix + '/libs'
6130 instead. On Windows, return all paths using forward-slashes
6131 rather than backslashes.
6133 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6135 * configure.ac: Remove fallback behavior for building
6136 against Python. Remove tweaking of Python include path.
6137 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
6138 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
6139 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
6140 Always restore CPPFLAGS and LIBS after linking test.
6141 * configure: Regenerated.
6142 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
6143 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
6144 * python/python-internal.h: Adjust includes of Python .h files.
6146 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6148 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
6151 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6153 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
6156 2011-01-31 Yao Qi <yao@codesourcery.com>
6158 * arm-linux-nat.c: Update calls to regcache_register_status
6159 instead of regcache_valid_p.
6160 * aix-thread.c: Likewise.
6161 * i386gnu-nat.c: Likewise.
6163 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6166 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
6167 touching TYPE_FIELD_ARTIFICIAL.
6169 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
6171 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
6174 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6176 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
6177 selected, don't try iterating over the traceframe's blocks.
6178 (tfile_has_stack): If there's no traceframe selected, then there's
6180 (tfile_has_registers): If there's no traceframe selected, then
6181 there's no registers.
6183 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6185 * target.c (memory_xfer_partial): No need to restore shadows if we
6186 haven't read anything.
6188 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6190 * mips-tdep.c (mips_print_register): Use get_frame_register_value
6191 and val_print_scalar_formatted.
6193 2011-01-27 Pedro Alves <pedro@codesourcery.com>
6195 * tracepoint.c (tfile_read): New.
6196 (tfile_open): Use it.
6197 (tfile_get_traceframe_address): Use it.
6198 (tfile_trace_find): Use it.
6199 (walk_blocks_callback_func): New typedef.
6200 (match_blocktype): New function.
6201 (traceframe_walk_blocks): New function.
6202 (traceframe_find_block_type): New function.
6203 (tfile_fetch_registers, tfile_xfer_partial)
6204 (tfile_get_trace_state_variable_value): Use
6205 traceframe_find_block_type and tfile_read.
6207 2011-01-26 Kevin Buettner <kevinb@redhat.com>
6209 * remote-mips.c: Add internationalization mark ups. Remove
6210 trailing \n from already marked up strings.
6212 2011-01-26 Tom Tromey <tromey@redhat.com>
6214 * python/py-prettyprint.c (print_string_repr): Clear
6215 'addressprint' option when calling val_print_string.
6216 (print_children): Handle Val_pretty_default. Clear 'addressprint'
6217 option when calling val_print_string.
6219 2011-01-26 Tom Tromey <tromey@redhat.com>
6221 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
6223 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6225 (gdb_py_longest, gdb_py_ulongest): New typedefs.
6226 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6227 (gdb_py_long_as_ulongest): New defines.
6228 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6229 (gdb_py_int_as_long): Declare.
6230 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6231 GDB_PY_LL_ARG, gdb_py_object_from_longest.
6232 (valpy_long): Add comment.
6233 * python/py-utils.c (get_addr_from_python): Use
6234 gdb_py_long_as_ulongest. Handle overflow properly.
6235 (gdb_py_object_from_longest): New function.
6236 (gdb_py_object_from_ulongest): Likewise.
6237 (gdb_py_int_as_long): Likewise.
6238 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6239 * python/py-symtab.c (salpy_get_pc): Use
6240 gdb_py_long_from_ulongest.
6241 (salpy_get_line): Use PyInt_FromLong.
6242 * python/py-param.c (set_parameter_value): Use
6244 * python/py-lazy-string.c (stpy_get_address): Use
6245 gdb_py_long_from_ulongest.
6246 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6247 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6248 * python/py-breakpoint.c (bppy_set_thread): Use
6250 (bppy_set_task): Likewise.
6251 (bppy_set_ignore_count): Likewise.
6252 (bppy_set_hit_count): Likewise.
6253 * python/py-block.c (blpy_get_start): Use
6254 gdb_py_object_from_ulongest.
6255 (blpy_get_end): Likewise.
6256 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6258 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
6261 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6262 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6263 equality test for objfile, initialize addr_low if needed.
6265 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6267 * tui/tui-regs.c (tui_register_format): Remove dead code.
6269 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6271 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6272 instead of print_scalar_formatted.
6273 (print_scalar_formatted): Don't handle 's' format strings here,
6274 and add an assertion that we never see such format here.
6275 * valprint.h (val_print_scalar_formatted): Declare.
6276 * valprint.c (val_print_scalar_formatted): New.
6277 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6278 instead of print_scalar_formatted.
6279 * jv-valprint.c (java_val_print): Ditto.
6280 * p-valprint.c (pascal_val_print): Ditto.
6281 * ada-valprint.c (ada_val_print_1): Ditto.
6282 * f-valprint.c (f_val_print): Ditto.
6283 * infcmd.c (registers_info): Ditto.
6284 * m2-valprint.c (m2_val_print): Ditto.
6286 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6288 * m2-valprint.c (print_unbounded_array): Pass
6289 value_contents_for_printing rather than value_contents, to
6290 m2_print_array_contents. Also pass in the value.
6292 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6294 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6295 (save_gdb_index_command): Switch to .gdb_index version 4.
6297 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6299 * mi/mi-main.c (get_register): Use get_frame_register_value rather
6300 than frame_register, and always pass a valid value to val_print.
6302 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6304 Centralize printing "<optimized out>".
6306 * valprint.h (val_print_optimized_out): Declare.
6307 * cp-valprint.c (cp_print_value_fields): Use
6308 val_print_optimized_out.
6309 * jv-valprint.c (java_print_value_fields): Ditto.
6310 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6311 * printcmd.c (print_formatted): Ditto.
6312 * valprint.c (valprint_check_validity): Ditto.
6313 (value_check_printable): Ditto.
6314 (val_print_optimized_out): New.
6316 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6318 * infcmd.c (default_print_registers_info): Allocate values so to
6319 never pass a NULL value to val_print.
6321 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6323 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6324 boolean. Make sure to always pass a value that matches the
6325 contents buffer to callees. Preserve `address' for following
6327 * value.c (value_contents_for_printing_const): New.
6328 (value_address): Constify value argument.
6329 * value.h (value_contents_for_printing_const): Declare.
6330 (value_address): Constify value argument.
6332 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6334 * regcache.c (struct regcache_descr): Rename
6335 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6336 and sizeof_cooked_register_valid_p to
6337 sizeof_cooked_register_status.
6338 (init_regcache_descr): Adjust.
6339 (struct regcache): Rename register_valid_p field to
6341 (regcache_xmalloc_1, regcache_xfree, regcache_save)
6342 (do_cooked_read): Adjust.
6343 (regcache_valid_p): Rename to ...
6344 (regcache_register_status): ... this. Adjust.
6345 (regcache_invalidate): Adjust.
6346 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6348 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
6349 as unavailable, not valid.
6350 (regcache_dump): Adjust.
6351 * regcache.h (enum register_status): New.
6352 (regcache_register_status): Declare.
6353 (regcache_invalidate): Delete declaration.
6354 * corelow.c (get_core_registers): Adjust.
6355 * tracepoint.c (tfile_fetch_registers): Adjust.
6356 * trad-frame.c (REG_VALUE): Rename to ...
6357 (TF_REG_VALUE): ... this.
6358 (REG_UNKNOWN): Rename to ...
6359 (TF_REG_UNKNOWN): ... this.
6360 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
6361 * mi/mi-main.c (register_changed_p): Adjust.
6363 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6365 * regcache.c (struct regcache_descr): Remove outdated comment.
6366 (init_regcache_descr): Remove sizeof_raw_register_valid_p
6368 (regcache_xmalloc): Rename to ...
6369 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
6370 Allocate the regcache type accordingly.
6371 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
6372 (regcache_xfree): Asser the source is also readonly. Copy sizeof
6373 cooked registers, not raw.
6374 (regcache_dup_no_passthrough): Delete.
6375 (get_thread_arch_regcache): Use regcache_xmalloc_1.
6376 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
6377 mention obsolete write_register_bytes.
6378 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6380 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6382 Stop remote_read_bytes from handling partial reads itself.
6384 * remote-fileio.c: Include target.h.
6385 (remote_fileio_write_bytes): Delete.
6386 (remote_fileio_func_open, remote_fileio_func_write)
6387 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6389 (remote_fileio_func_stat): Use target_read_memory and
6390 target_write_memory.
6391 (remote_fileio_func_gettimeofday): Use target_write_memory.
6392 (remote_fileio_func_system): Use target_read_memory.
6393 * remote.c (remote_write_bytes): Make it static.
6394 (remote_read_bytes): Don't handle partial reads here.
6395 * remote.h (remote_read_bytes): Delete declaration.
6397 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6399 Simplify XML parsing a bit.
6401 * xml-support.h (gdb_xml_parse_quick): Declare.
6402 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6403 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6405 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6406 gdb_xml_create_parser_and_cleanup_1.
6407 (gdb_xml_parse_quick): New.
6408 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6409 * osdata.c (osdata_parse): Ditto.
6410 * remote.c (remote_threads_info): Ditto.
6411 * solib-target.c (solib_target_parse_libraries): Ditto.
6412 * xml-syscall.c (syscall_parse_xml): Ditto.
6413 * xml-tdesc.c (tdesc_parse_xml): Ditto.
6415 2011-01-24 Kevin Buettner <kevinb@redhat.com>
6417 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6418 with remote-mips.o added to gdb_target_obs.
6419 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6421 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6423 * ada-valprint.c (val_print_packed_array_elements): Pass the
6424 correct struct value to val_print.
6425 (ada_val_print_1): Ditto.
6427 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6429 Don't lose embedded_offset in printing routines throughout.
6431 * valprint.h (val_print_array_elements): Change prototype.
6432 * valprint.c (val_print_array_elements): Add `embedded_offset'
6433 parameter, and adjust to pass it down to val_print, while passing
6434 `valaddr' or `address' unmodified. Take embedded_offset into
6435 account when checking repetitions.
6436 * c-valprint.c (c_val_print): Pass embedded_offset to
6437 val_print_array_elements instead of adjusting `valaddr' and
6439 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6440 embedded_offset to val_print_array_elements instead of adjusting
6442 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6443 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6444 val_print_array_elements and pascal_object_print_value_fields
6445 instead of adjusting `valaddr'.
6446 (pascal_object_print_value_fields): Add `offset' parameter, and
6448 (pascal_object_print_value): Add `offset' parameter, and adjust to
6450 (pascal_object_print_static_field): Use
6451 value_contents_for_printing/value_embedded_offset, rather than
6453 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6454 parameter, and adjust to use it. Use
6455 value_contents_for_printing/value_embedded_offset, rather than
6457 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6458 (ada_val_print_array): Add `offset' parameter, and adjust to use
6460 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6461 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6462 Instead work with offsets. Use
6463 value_contents_for_printing/value_embedded_offset, rather than
6464 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6465 and use value_from_pointer to extract a target pointer, rather
6466 than value_from_longest.
6467 (print_variant_part): Add `offset' parameter. Replace
6468 `outer_valaddr' parameter by a new `outer_offset' parameter.
6469 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6470 (ada_value_print): Use
6471 value_contents_for_printing/value_embedded_offset, rather than
6473 (print_record): Add `offset' parameter, and adjust to pass it
6475 (print_field_values): Add `offset' parameter. Replace
6476 `outer_valaddr' parameter by a new `outer_offset' parameter.
6477 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6478 Use value_contents_for_printing/value_embedded_offset, rather than
6480 * d-valprint.c (dynamic_array_type): Use
6481 value_contents_for_printing/value_embedded_offset, rather than
6483 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6484 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6485 (java_print_value_fields): Take `offset' into account. Don't
6486 re-adjust `valaddr'. Instead pass down adjusted offsets.
6487 (java_val_print): Take `embedded_offset' into account. Pass it to
6488 java_print_value_fields.
6489 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6490 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6491 down adjusted offsets.
6492 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6493 (f_val_print): Take `embedded_offset' into account.
6495 2011-01-21 Joel Brobecker <brobecker@adacore.com>
6497 * inflow.c: Include "gdbcmd.h".
6498 (interactive_mode): New static global, moved here from top.c.
6499 (show_interactive_mode): New function, moved here from top.c.
6500 use gdb_has_a_terminal instead of input_from_terminal_p to
6501 determine the current mode.
6502 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6504 (_initialize_inflow): Add the "set/show interactive-mode"
6505 commands. Moved here from top.c, after having adjusted slightly
6507 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6509 (input_from_terminal_p): Remove handling of "interactive-mode"
6510 setting, moved to infow.c.
6511 (init_main): Remove creation of the "set/show interactive-mode"
6512 commands, moved to inflow.c.
6514 2011-01-19 Joel Brobecker <brobecker@adacore.com>
6516 * NEWS: Add entry for native ia64-hpux support.
6518 2011-01-19 Tom Tromey <tromey@redhat.com>
6521 * thread.c (free_thread): Free 'name'.
6522 (print_thread_info): Emit thread name. Change CLI output.
6523 (thread_name_command): New function.
6524 (do_captured_thread_select): Emit newline.
6525 (_initialize_thread): Register 'thread name' command.
6526 * target.h (struct target_ops) <to_thread_name>: New field.
6527 (target_thread_name): New macro.
6528 * target.c (update_current_target): Handle to_thread_name.
6529 * python/py-infthread.c (thpy_get_name): New function.
6530 (thpy_set_name): Likewise.
6531 (thread_object_getset): Add "name".
6532 * linux-nat.c (linux_nat_thread_name): New function.
6533 (linux_nat_add_target): Set to_thread_name.
6534 * gdbthread.h (struct thread_info) <name>: New field.
6536 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6538 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6539 (ada_val_print_1): Likewise.
6541 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6543 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6544 upper limit address is not greater than the function end address
6545 when the upper limit could not be computed using the debugging
6548 2011-01-17 Tom Tromey <tromey@redhat.com>
6550 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6552 * utils.c: Include gdb_regex.h.
6553 (do_regfree_cleanup): New function.
6554 (make_regfree_cleanup): Likewise.
6555 (get_regcomp_error): Likewise.
6556 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6558 2011-01-17 Tom Tromey <tromey@redhat.com>
6560 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6563 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6565 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6566 for internal variables.
6567 (last_was_structop): New static variable.
6568 (COMPLETE): New token.
6569 (field_exp): New rule to group all '.' suffix handling.
6570 Add mark_struct_expression calls when approriate to be able
6571 to correctly find fields for completion.
6572 (yylex): Adapt to handle field completion and set INTVAR when
6575 2011-01-14 Yao Qi <yao@codesourcery.com>
6577 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6578 save_reggroup, restore_reggroup and all_reggroup.
6580 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6582 * ada-valprint. (ada_printchar): Use the correct type length
6583 in call to ada_emit_char.
6584 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6586 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6588 * solib-som.h (hpux_major_release): Declare variable here.
6589 * solib-som.c: Remove <sys/utsname.h> header.
6590 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6591 (hpux_major_release): Make global, change default value to
6592 DEFAULT_HPUX_MAJOR_RELEASE.
6593 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6594 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6595 Add "solib-som.h" header.
6596 (set_hpux_major_release): New function.
6597 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6599 2011-01-14 Mike Frysinger <vapier@gentoo.org>
6601 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6603 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6605 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6606 new-line at end of warning message.
6607 (ia64_hpux_store_register): Remove trailing new-line at end of
6609 * ia64-hpux-tdep.c: Rephrase comment.
6610 * solib-ia64-hpux.c (struct dld_info): Change type of field
6611 dld_flags from "long long" to ULONGEST.
6613 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6615 * target.h (deprecated_child_ops): Delete declaration.
6616 * target.c (deprecated_child_ops): Delete definition.
6618 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6620 * Makefile.in (hpux-thread.o): Delete rule.
6621 * configure.ac: Don't check for HPUX DCE threads support.
6622 * configure, config.in: Regenerate.
6623 * hppa-hpux-nat.c (child_suppress_run): Delete.
6624 (hppa_hpux_child_can_run): Delete.
6625 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6626 * hpux-thread.c: Delete.
6628 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6630 * hpux-thread.c (hpux_pid_to_str): Delete.
6632 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6634 * ada-valprint.c (ada_emit_char): Remove strange code.
6635 Check that c is <= UCHAR_MAX before passing it to isascii.
6636 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6638 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6640 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6641 to the case where instream is stdin.
6643 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6645 * ia64-tdep.h (struct regcache): Forward declare.
6646 (struct ia64_infcall_ops): New struct type.
6647 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6649 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6650 Renames ia64_find_global_pointer.
6651 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6652 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6653 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6655 (ia64_infcall_ops): New static global constant.
6656 (ia64_gdbarch_init): Set tdep->infcall_ops.
6657 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6658 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6659 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6660 (ia64_hpux_dummy_code): New static global constant.
6661 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6662 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6663 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6665 (ia64_hpux_infcall_ops): New static global constant.
6666 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6667 for inferior function calls to work properly on ia64-hpux.
6669 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6671 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6672 * ia64-tdep.h (struct frame_info): forward declaration.
6673 (struct gdbarch_tdep): Add field size_of_register_frame.
6674 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6675 to determine the size of the register frame.
6676 (ia64_size_of_register_frame): New function.
6677 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6678 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6679 (IA64_HPUX_UREG_REASON): New macro.
6680 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6682 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6683 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6684 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6687 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6689 Add support for ia64-hpux.
6690 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6691 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6693 * configure.host: Add handling for ia64-hpux hosts. Add associated
6695 * configure.tgt: Add handling for ia64-hpux targets.
6696 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6697 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6698 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6700 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6702 [ttrace] Compute thread list immediately after attach.
6703 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6705 (inf_ttrace_attach): Use it.
6707 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6709 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6710 if we could not determine the frame's function address. Instead,
6711 use the frame's PC, and then continue.
6713 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6715 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6716 not already defined.
6718 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6720 * ia64-tdep.c (ia64_struct_type_p): New function.
6721 (ia64_extract_return_value): Handle integral values that are
6722 less than 8 bytes long.
6723 (ia64_push_dummy_call): Likewise.
6725 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6727 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6728 floatformat_ia64_ext.
6729 (floatformat_ia64_ext_big): New static const.
6730 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6732 2011-01-12 Tom Tromey <tromey@redhat.com>
6734 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6736 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6737 (mi_cmd_thread_list_ids): Likewise.
6738 (mi_cmd_data_list_changed_registers): Likewise.
6739 (mi_cmd_data_list_register_values): Likewise.
6740 (mi_cmd_data_write_register_values): Likewise.
6741 (mi_cmd_data_evaluate_expression): Likewise.
6742 (mi_cmd_data_read_memory): Likewise.
6743 (mi_cmd_data_read_memory_bytes): Likewise.
6744 (mi_cmd_data_write_memory): Likewise.
6745 (mi_cmd_enable_timings): Likewise.
6746 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6747 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6748 (mi_cmd_var_delete): Likewise.
6749 (mi_cmd_var_set_format): Likewise.
6750 (mi_cmd_var_show_format): Likewise.
6751 (mi_cmd_var_info_num_children): Likewise.
6752 (mi_cmd_var_list_children): Likewise.
6753 (mi_cmd_var_info_type): Likewise.
6754 (mi_cmd_var_info_expression): Likewise.
6755 (mi_cmd_var_show_attributes): Likewise.
6756 (mi_cmd_var_assign): Likewise.
6757 (mi_cmd_var_update): Likewise.
6758 (mi_cmd_enable_pretty_printing): Likewise.
6759 (mi_cmd_var_set_update_range): Likewise.
6760 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6762 (mi_cmd_target_file_put): Likewise.
6763 (mi_cmd_target_file_delete): Likewise.
6764 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6766 (mi_cmd_stack_info_depth): Likewise.
6767 (mi_cmd_stack_list_locals): Likewise.
6768 (mi_cmd_stack_list_args): Likewise.
6769 (mi_cmd_stack_select_frame): Likewise.
6770 (mi_cmd_stack_select_frame): Likewise.
6771 (mi_cmd_stack_info_frame): Likewise.
6772 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6774 (mi_cmd_file_list_exec_source_files): Likewise.
6775 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6776 (mi_cmd_env_cd): Likewise.
6777 (mi_cmd_env_path): Likewise.
6778 (mi_cmd_env_dir): Likewise.
6779 (mi_cmd_inferior_tty_show): Likewise.
6780 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6781 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6782 (mi_cmd_break_watch): Likewise.
6784 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6786 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6787 (ppc_linux_insert_hw_breakpoint): Likewise.
6788 (ppc_linux_remove_hw_breakpoint): Likewise.
6789 (ppc_linux_insert_watchpoint): Likewise.
6791 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6792 Jan Kratochvil <jan.kratochvil@redhat.com>
6794 PR fortran/11104 and DWARF unbound arrays detection.
6795 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6796 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6797 unspecified upper bound.
6798 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6799 variables array_size_array, tmp_type and offset_item. New variable
6800 array. Remove call to f77_get_upperbound. New variables array_type
6801 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6802 the final call to deprecated_set_value_type.
6804 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6806 Make value allocations more lazy.
6807 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6808 instead of allocate_value and set_value_lazy when possible.
6809 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6810 instead of allocate_value and set_value_lazy.
6811 * findvar.c (value_of_register_lazy): Likewise.
6812 (read_var_value): Remove V preallocation, call just check_typedef in
6813 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6814 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6815 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6816 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6817 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6818 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6819 the end, remove set_value_lazy there.
6820 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6821 instead of allocate_value and set_value_lazy when possible.
6822 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6823 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6824 of allocate_value and set_value_lazy.
6825 (value_from_contents_and_address): Use allocate_value_lazy instead of
6826 allocate_value and set_value_lazy when possible.
6828 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6830 * disasm.c (dump_insns): Support dumping opcodes for MI.
6831 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6832 dumping of instruction opcodes.
6834 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6836 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6839 2011-01-11 Tom Tromey <tromey@redhat.com>
6841 * thread.c (do_captured_thread_select): Emit newline before
6844 2011-01-11 Michael Snyder <msnyder@vmware.com>
6846 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6847 * score-tdep.c: Ditto.
6848 * score-tdep.h: Ditto.
6849 * ser-base.c: Ditto.
6850 * ser-go32.c: Ditto.
6853 * ser-mingw.c: Ditto.
6854 * ser-pipe.c: Ditto.
6856 * ser-unix.c: Ditto.
6857 * sh64-tdep.c: Ditto.
6858 * shnbsd-nat.c: Ditto.
6862 * solib-darwin.c: Ditto.
6863 * solib-frv.c: Ditto.
6865 * solib-irix.c: Ditto.
6866 * solib-osf.c: Ditto.
6867 * solib-pa64.c: Ditto.
6868 * solib-som.c: Ditto.
6869 * solib-spu.c: Ditto.
6870 * solib-sunos.c: Ditto.
6871 * solib-svr4.c: Ditto.
6873 * sol-thread.c: Ditto.
6877 * sparc64-linux-tdep.c: Ditto.
6878 * sparc64-tdep.c: Ditto.
6879 * sparc-linux-nat.c: Ditto.
6880 * sparc-linux-tdep.c: Ditto.
6881 * sparc-sol2-nat.c: Ditto.
6882 * sparc-sol2-tdep.c: Ditto.
6883 * sparc-tdep.c: Ditto.
6884 * sparc-tdep.h: Ditto.
6885 * spu-tdep.c: Ditto.
6886 * stabsread.c: Ditto.
6887 * stabsread.h: Ditto.
6895 * target-descriptions.c: Ditto.
6896 * target-descriptions.h: Ditto.
6898 * target-memory.c: Ditto.
6899 * terminal.h: Ditto.
6902 * tracepoint.c: Ditto.
6903 * tracepoint.h: Ditto.
6904 * trad-frame.h: Ditto.
6905 * typeprint.c: Ditto.
6907 2011-01-11 Michael Snyder <msnyder@vmware.com>
6909 * ui-file.c: Comment cleanup, mostly periods and spaces.
6914 * v850-tdep.c: Ditto.
6915 * valarith.c: Ditto.
6917 * valprint.c: Ditto.
6918 * valprint.h: Ditto.
6923 * vax-tdep.c: Ditto.
6927 * windows-nat.c: Ditto.
6928 * windows-tdep.c: Ditto.
6929 * xcoffread.c: Ditto.
6930 * xcoffsolib.c: Ditto.
6931 * xml-support.c: Ditto.
6932 * xstormy16-tdep.c: Ditto.
6933 * xtensa-tdep.c: Ditto.
6934 * xtensa-tdep.h: Ditto.
6936 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6938 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6939 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6941 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6942 Thiago Jung Bauermann <bauerman@br.ibm.com>
6944 Implement support for PowerPC BookE ranged watchpoints.
6946 (struct breakpoint_ops) <resources_needed>: New method.
6947 Initialize to NULL in all existing breakpoint_ops instances.
6948 (struct breakpoint) <exact>: New field.
6949 (target_exact_watchpoints): Declare external global.
6950 * breakpoint.c (target_exact_watchpoints): New global flag.
6951 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6952 b->enable_state to bp_enabled before calling
6953 hw_watchpoint_used_count.
6954 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6955 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6957 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6958 if the watchpoint is exact.
6959 (resources_needed_watchpoint): New function.
6960 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6961 (watch_command_1): Set b->exact if the user asked for an exact
6962 watchpoint and one can be set.
6963 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6964 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6965 the user asks for an exact watchpoint and one can be set. Return
6966 number of needed debug registers to watch the expression.
6967 * gdbtypes.c (is_scalar_type): New function, based on
6968 valprint.c:scalar_type_p.
6969 (is_scalar_type_recursive): New function.
6970 * gdbtypes.h (is_scalar_type_recursive): Declare.
6971 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6972 handle regions when ranged watchpoints are available.
6973 (create_watchpoint_request): New function.
6974 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6975 create_watchpoint_request.
6976 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6977 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6978 `set powerpc' and `show powerpc' commands.
6979 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6980 Mention documentation comment in the target macro.
6981 (target_region_ok_for_hw_watchpoint): Document return value.
6983 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6985 * breakpoint.c (update_watchpoint): Decide on using a software or
6986 hardware watchpoint after the bp_locations are created.
6988 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6990 Convert hardware watchpoints to use breakpoint_ops.
6991 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6992 <insert_location>: ... this. Return int instead of void.
6993 Accept pointer to struct bp_location instead of pointer to
6994 struct breakpoint. Adapt all implementations.
6995 (breakpoint_ops) <remove>: Rename to...
6996 <remove_location>: ... this. Accept pointer to struct bp_location
6997 instead of pointer to struct breakpoint. Adapt all implementations.
6998 * breakpoint.c (insert_catchpoint): Delete function.
6999 (insert_bp_location): Call the watchpoint or catchpoint's
7000 breakpoint_ops.insert method.
7001 (remove_breakpoint_1): Call the watchpoint or catchpoint's
7002 breakpoint_ops.remove method.
7003 (insert_watchpoint, remove_watchpoint): New functions.
7004 (watchpoint_breakpoint_ops): New structure.
7005 (watch_command_1): Initialize the OPS field.
7006 * inf-child.c (inf_child_insert_fork_catchpoint)
7007 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
7008 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
7009 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
7011 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
7012 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
7013 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
7014 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
7015 * target.c (update_current_target): Change default implementation of
7016 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
7017 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
7018 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
7019 to_set_syscall_catchpoint to return_one.
7020 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
7021 (debug_to_insert_exec_catchpoint): Report return value.
7022 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
7023 (to_insert_exec_catchpoint): Change declaration to return int instead
7026 2011-01-11 Michael Snyder <msnyder@vmware.com>
7028 * arm-tdep.c: Internationalization.
7031 * fork-child.c: Ditto.
7032 * nto-procfs.c: Ditto.
7033 * ppc-sysv-tdep.c: Ditto.
7035 * remote-mips.c: Ditto.
7037 * rs6000-nat.c: Ditto.
7038 * rs6000-tdep.c: Ditto.
7042 * xml-support.c: Ditto.
7043 * mi/mi-cmd-break.c: Ditto.
7044 * mi/mi-cmd-var.c: Ditto.
7045 * mi/mi-interp.c: Ditto.
7046 * mi/mi-main.c: Ditto.
7048 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
7050 * remote-sim.c (gdbsim_store_register): Update API to
7051 sim_store_register to check more error conditions.
7053 2011-01-10 Michael Snyder <msnyder@vmware.com>
7055 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
7056 * nto-tdep.c: Ditto.
7057 * nto-tdep.h: Ditto.
7058 * objc-exp.y: Ditto.
7059 * objc-lang.c: Ditto.
7060 * objfiles.c: Ditto.
7061 * objfiles.h: Ditto.
7062 * observer.c: Ditto.
7063 * opencl-lang.c: Ditto.
7066 * parser-defs.h: Ditto.
7069 * posix-hdep.c: Ditto.
7070 * ppcbug-rom.c: Ditto.
7071 * ppc-linux-nat.c: Ditto.
7072 * ppc-linux-tdep.c: Ditto.
7073 * ppc-linux-tdep.h: Ditto.
7074 * ppcnbsd-tdep.c: Ditto.
7075 * ppcobsd-tdep.c: Ditto.
7076 * ppcobsd-tdep.h: Ditto.
7077 * ppc-sysv-tdep.c: Ditto.
7078 * ppc-tdep.h: Ditto.
7079 * printcmd.c: Ditto.
7080 * proc-abi.c: Ditto.
7081 * proc-flags.c: Ditto.
7083 * proc-utils.h: Ditto.
7084 * progspace.h: Ditto.
7085 * prologue-value.c: Ditto.
7086 * prologue-value.h: Ditto.
7087 * psympriv.h: Ditto.
7089 * p-typeprint.c: Ditto.
7090 * p-valprint.c: Ditto.
7091 * ravenscar-sparc-thread.c: Ditto.
7092 * ravenscar-thread.c: Ditto.
7093 * ravenscar-thread.h: Ditto.
7095 * regcache.c: Ditto.
7096 * regcache.h: Ditto.
7098 * remote-fileio.c: Ditto.
7099 * remote-fileio.h: Ditto.
7101 * remote-m32r-sdi.c: Ditto.
7102 * remote-mips.c: Ditto.
7103 * remote-sim.c: Ditto.
7104 * rs6000-aix-tdep.c: Ditto.
7105 * rs6000-nat.c: Ditto.
7106 * rs6000-tdep.c: Ditto.
7108 2011-01-10 Michael Snyder <msnyder@vmware.com>
7110 * charset.c (validate): Internationalization.
7111 * coffread.c (read_one_sym): Ditto.
7112 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
7113 * h8300-tdep.c (H8300_extract_return_value): Ditto.
7114 * inflow.c (new_tty): Ditto.
7115 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
7116 * m32c-tdep.c (m32c_return_value): Ditto.
7117 * mep-tdep.c (mep_store_return_value): Ditto.
7118 * score-tdep.c (score7_fetch_insn): Ditto.
7119 * ser-mingw.c (pipe_windows_open): Ditto.
7120 * sh64-tdep.c (sh64_extract_return_value): Ditto.
7121 * spu-tdep.c (spu_register_type): Ditto.
7122 * tracepoint.c (trace_find_command): Ditto.
7123 * valarith.c (value_pos): Ditto.
7125 2011-01-10 Joel Brobecker <brobecker@adacore.com>
7127 * ada-valprint.c (printstr): Minor comment reformatting.
7129 2011-01-08 Michael Snyder <msnyder@vmware.com>
7131 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
7134 2011-01-08 Michael Snyder <msnyder@vmware.com>
7136 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
7137 * hppa-hpux-tdep.c: Ditto.
7138 * hppa-linux-nat.c: Ditto.
7139 * hppa-linux-tdep.c: Ditto.
7140 * hppanbsd-tdep.c: Ditto.
7141 * hppa-tdep.c: Ditto.
7142 * hppa-tdep.h: Ditto.
7143 * hpux-thread.c: Ditto.
7144 * i386-cygwin-tdep.c: Ditto.
7145 * i386-darwin-nat.c: Ditto.
7146 * i386gnu-nat.c: Ditto.
7147 * i386-linux-nat.c: Ditto.
7148 * i386-linux-tdep.c: Ditto.
7149 * i386-nat.c: Ditto.
7150 * i386-nat.h: Ditto.
7151 * i386nbsd-tdep.c: Ditto.
7152 * i386-sol2-nat.c: Ditto.
7153 * i386-stub.c: Ditto.
7154 * i386-tdep.c: Ditto.
7155 * i386-tdep.h: Ditto.
7156 * i387-tdep.c: Ditto.
7157 * ia64-linux-nat.c: Ditto.
7158 * ia64-linux-tdep.c: Ditto.
7159 * ia64-tdep.c: Ditto.
7163 * inferior.c: Ditto.
7164 * inferior.h: Ditto.
7170 * iq2000-tdep.c: Ditto.
7171 * irix5-nat.c: Ditto.
7177 * jv-typeprint.c: Ditto.
7178 * jv-valprint.c: Ditto.
7179 * language.c: Ditto.
7180 * language.h: Ditto.
7181 * linespec.c: Ditto.
7182 * linux-fork.c: Ditto.
7183 * linux-nat.c: Ditto.
7184 * linux-thread-db.c: Ditto.
7185 * lm32-tdep.c: Ditto.
7187 2011-01-08 Michael Snyder <msnyder@vmware.com>
7189 * m2-exp.y: Comment cleanup, mostly periods and spaces.
7191 * m2-typeprint.c: Ditto.
7192 * m2-valprint.c: Ditto.
7193 * m32c-tdep.c: Ditto.
7194 * m32r-linux-nat.c: Ditto.
7195 * m32r-rom.c: Ditto.
7196 * m32r-tdep.c: Ditto.
7197 * m32r-tdep.h: Ditto.
7198 * m68hc11-tdep.c: Ditto.
7199 * m58klinux-nat.c: Ditto.
7200 * m68k-tdep.c: Ditto.
7201 * m88k-tdep.c: Ditto.
7202 * m88k-tdep.h: Ditto.
7203 * machoread.c: Ditto.
7204 * macrocmd.c: Ditto.
7205 * macroexp.c: Ditto.
7206 * macrotab.c: Ditto.
7209 * mdebugread.c: Ditto.
7210 * mdebugread.h: Ditto.
7213 * memory-map.h: Ditto.
7214 * mep-tdep.c: Ditto.
7215 * microblaze-rom.c: Ditto.
7216 * microblaze-tdep.c: Ditto.
7218 * mips-irix-tdep.c: Ditto.
7219 * mips-linux-nat.c: Ditto.
7220 * mips-linux-tdep.c: Ditto.
7221 * mips-linux-tdep.h: Ditto.
7222 * mipsnbsd-nat.c: Ditto.
7223 * mipsnbsd-tdep.c: Ditto.
7224 * mipsread.c: Ditto.
7225 * mips-tdep.c: Ditto.
7226 * mips-tdep.h: Ditto.
7227 * mn10300-linux-tdep.c: Ditto.
7228 * mn10300-tdep.c: Ditto.
7229 * mn10300-tdep.h: Ditto.
7232 * moxie-tdep.c: Ditto.
7233 * moxie-tdep.h: Ditto.
7236 2011-01-08 Mike Frysinger <vapier@gentoo.org>
7238 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7240 2011-01-08 Robert Millan <rmh@gnu.org>
7242 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7244 2011-01-07 Michael Snyder <msnyder@vmware.com>
7246 * charset.c (_initialize_charset): Fix typo in string.
7248 2011-01-07 Michael Snyder <msnyder@vmware.com>
7250 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7252 * tui/tui-layout.c (tui_set_layout_for_display_command):
7253 Split line so that operator goes to beginning of line.
7254 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7255 assignment out of if statement.
7257 2011-01-07 Michael Snyder <msnyder@vmware.com>
7259 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7260 * ada-lang.h: Ditto.
7261 * ada-tasks.c: Ditto.
7262 * ada-valprint.c: Ditto.
7263 * aix-threads.c: Ditto.
7264 * alpha-linux-nat.c: Ditto.
7265 * alpha-linux-tdep.c: Ditto.
7266 * alpha-mdebug-tdep.c: Ditto.
7267 * alpha-nat.c: Ditto.
7268 * alpha-osf1-tdep.c: Ditto.
7269 * alpha-tdep.c: Ditto.
7270 * alphabsd-nat.c: Ditto.
7271 * alphabsd-tdep.c: Ditto.
7272 * amd64-darwin-tdep.c: Ditto.
7273 * amd64-linux-nat.c: Ditto.
7274 * amd64-linux-tdep.c: Ditto.
7275 * amd64-sol2-tdep.c: Ditto.
7276 * amd64-tdep.c: Ditto.
7277 * amd64-fbsd-tdep.c: Ditto.
7278 * amd64-nbsd-tdep.c: Ditto.
7279 * amd64-obsd-tdep.c: Ditto.
7280 * amd64-linux-nat.c: Ditto.
7281 * amd64-linux-tdep.c: Ditto.
7282 * arm-tdep.c: Ditto.
7283 * arm-tdep.h: Ditto.
7284 * armnbsd-nat.c: Ditto.
7285 * avr-tdep.c: Ditto.
7286 * bfin-tdep.c: Ditto.
7288 * c-typeprintc: Ditto.
7289 * c-valprint.c: Ditto.
7290 * coff-pe-read.h: Ditto.
7291 * coffreead.c: Ditto.
7292 * cris-tdep.c: Ditto.
7294 * darwin-nat-info.c: Ditto.
7295 * darwin-nat.c: Ditto.
7296 * dbug-rom.c: Ditto.
7300 * dec-thread.c: Ditto.
7302 * demangle.c: Ditto.
7303 * dicos-tdep.c: Ditto.
7304 * dictionary.c: Ditto.
7305 * dictionary.h: Ditto.
7306 * dink32-rom.c: Ditto.
7308 * doublest.c: Ditto.
7310 * dummy-frame.c: Ditto.
7311 * dwarf2-frame.c: Ditto.
7312 * dwarf2expr.c: Ditto.
7313 * dwarf2loc.c: Ditto.
7314 * dwarf2read.c: Ditto.
7318 * event-top.h: Ditto.
7319 * exceptions.c: Ditto.
7320 * exceptions.h: Ditto.
7322 * expprint.c: Ditto.
7323 * expression.h: Ditto.
7327 * f-typeprint.c: Ditto.
7328 * f-valprint.c: Ditto.
7329 * fbsd-nat.c: Ditto.
7331 * fork-child.c: Ditto.
7334 * frv-linux-tdep.c: Ditto.
7335 * frv-tdep.c: Ditto.
7337 * gdb-stabs.h: Ditto.
7338 * gdb_assert.h: Ditto.
7339 * gdb_string.h: Ditto.
7340 * gdb_thread_db.h: Ditto.
7341 * gdb_wait.h: Ditto.
7342 * gdbarch.sh: Ditto.
7344 * gdbthread.h: Ditto.
7345 * gdbtypes.c: Ditto.
7346 * gdbtypes.h: Ditto.
7349 * gnu-v2-abi.c: Ditto.
7350 * gnu-v3-abi.c: Ditto.
7351 * go32-nat.c: Ditto.
7352 * gdbarch.c: Regenerate.
7353 * gdbarch.h: Regenerate.
7355 2011-01-07 Michael Snyder <msnyder@vmware.com>
7357 * ax-gdb.c: Adjust some long output strings.
7358 * breakpoint.c: Ditto.
7363 * linux-nat.c: Ditto.
7364 * solib-pa64.c: Ditto.
7365 * solib-som.c: Ditto.
7367 2011-01-06 Tom Tromey <tromey@redhat.com>
7371 * python/python.c (GdbMethods): Add "newest_frame" method.
7372 * python/python-internal.h (gdbpy_newest_frame): Declare.
7373 * python/py-frame.c (gdbpy_newest_frame): New function.
7375 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
7377 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
7378 * jit.c (jit_debug): New variable.
7379 (show_jit_debug): New function.
7380 (struct target_buffer): Use ULONGEST.
7381 (bfd_open_from_target_memory): Likewise.
7382 (jit_register_code, jit_inferior_init): Add debug output.
7383 (_initialize_jit): Register "debug jit" command.
7385 2011-01-06 Tom Tromey <tromey@redhat.com>
7387 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7388 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7391 2011-01-06 Tom Tromey <tromey@redhat.com>
7393 * python/py-frame.c (frapy_block): Use get_frame_block.
7395 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7397 Do not stop on SIGPRIO signals by default
7398 * infrun.c (_initialize_infrun): Unset signal_stop and
7399 signal_print for TARGET_SIGNAL_PRIO.
7401 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7403 * ada-tasks.c: Fix style violation in comment.
7405 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7407 * linespec.c (decode_compound, find_method): Remove trailing \n
7408 at end of error string.
7409 * solib-irix.c (irix_current_sos): Likewise.
7410 * varobj.c (uninstall_variable): Likewise.
7412 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7414 * copyright.py: New script.
7415 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7416 Launch emacs without exec'ing. Call copyright.py afterwards.
7418 2011-01-05 Michael Snyder <msnyder@vmware.com>
7420 * addrmap.c: Shorten lines of >= 80 columns.
7421 * arch-utils.c: Ditto.
7422 * arch-utils.h: Ditto.
7424 * ax-general.c: Ditto.
7426 * blockframe.c: Ditto.
7427 * breakpoint.c: Ditto.
7428 * buildsym.c: Ditto.
7430 * c-typeprint.c: Ditto.
7432 * coffread.c: Ditto.
7436 * cp-namespace.c: Ditto.
7437 * cp-support.c: Ditto.
7438 * dbug-rom.c: Ditto.
7443 * dictionary.c: Ditto.
7445 * doublest.c: Ditto.
7446 * dwarf2-frame.c: Ditto.
7447 * dwarf2expr.c: Ditto.
7448 * dwarf2loc.c: Ditto.
7449 * dwarf2read.c: Ditto.
7452 * event-loop.c: Ditto.
7453 * event-loop.h: Ditto.
7454 * exceptions.h: Ditto.
7456 * expprint.c: Ditto.
7457 * expression.h: Ditto.
7459 * f-valprint.c: Ditto.
7461 * frame-base.c: Ditto.
7462 * frame-unwind.c: Ditto.
7463 * frame-unwind.h: Ditto.
7467 * gdb-stabs.h: Ditto.
7468 * gdb_assert.h: Ditto.
7469 * gdb_dirent.h: Ditto.
7470 * gdb_obstack.h: Ditto.
7472 * gdbtypes.c: Ditto.
7473 * gdbtypes.h: Ditto.
7474 * inf-ttrace.c: Ditto.
7479 * inline-frame.h: Ditto.
7480 * language.c: Ditto.
7481 * language.h: Ditto.
7482 * libunwind-frame.c: Ditto.
7483 * libunwind-frame.h: Ditto.
7484 * linespec.c: Ditto.
7485 * linux-nat.c: Ditto.
7486 * linux-nat.h: Ditto.
7487 * linux-thread-db.c: Ditto.
7488 * machoread.c: Ditto.
7489 * macroexp.c: Ditto.
7490 * macrotab.c: Ditto.
7493 * mdebugread.c: Ditto.
7498 * objfiles.c: Ditto.
7499 * objfiles.h: Ditto.
7501 * p-typeprint.c: Ditto.
7502 * p-valprint.c: Ditto.
7504 * printcmd.c: Ditto.
7505 * proc-events.c: Ditto.
7507 * progspace.c: Ditto.
7508 * progspace.h: Ditto.
7509 * psympriv.h: Ditto.
7512 * regcache.c: Ditto.
7513 * regcache.h: Ditto.
7514 * remote-fileio.c: Ditto.
7516 * ser-mingw.c: Ditto.
7518 * ser-unix.c: Ditto.
7521 * solib-frv.c: Ditto.
7522 * solib-irix.c: Ditto.
7523 * solib-osf.c: Ditto.
7524 * solib-pa64.c: Ditto.
7525 * solib-som.c: Ditto.
7526 * solib-sunos.c: Ditto.
7527 * solib-svr4.c: Ditto.
7528 * solib-target.c: Ditto.
7532 * stabsread.c: Ditto.
7533 * stabsread.c: Ditto.
7536 * symfile-mem.c: Ditto.
7542 * target-descriptions.c: Ditto.
7543 * target-memory.c: Ditto.
7546 * terminal.h: Ditto.
7549 * tracepoint.c: Ditto.
7550 * tracepoint.h: Ditto.
7554 * user-regs.c: Ditto.
7555 * user-regs.h: Ditto.
7557 * valarith.c: Ditto.
7559 * valprint.c: Ditto.
7560 * valprint.h: Ditto.
7565 * xcoffread.c: Ditto.
7566 * xcoffsolib.c: Ditto.
7567 * xcoffsolib.h: Ditto.
7568 * xml-syscall.c: Ditto.
7569 * xml-tdesc.c: Ditto.
7571 2011-01-05 Michael Snyder <msnyder@vmware.com>
7573 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7574 * cli/cli-decode.c: Ditto.
7575 * cli/cli-dump.c: Ditto.
7576 * cli/cli-logging.c: Ditto.
7577 * cli/cli-script.c: Ditto.
7578 * cli/cli-setshow.c: Ditto.
7579 * common/signals.c: Ditto.
7580 * mi/mi-cmd-break.c: Ditto.
7581 * mi/mi-cmd-disas.c: Ditto.
7582 * mi/mi-cmd-stack.c: Ditto.
7583 * mi/mi-cmd-var.c: Ditto.
7584 * mi/mi-cmds.c: Ditto.
7585 * mi/mi-common.h: Ditto.
7586 * mi/mi-console.c: Ditto.
7587 * mi/mi-interp.c: Ditto.
7588 * mi/mi-main.c: Ditto.
7589 * osf-share/cma_attr.c: Ditto.
7590 * osf-share/cma_deb_core.h: Ditto.
7591 * osf-share/cma_debug_client.h: Ditto.
7592 * osf-share/cma_handle.h: Ditto.
7593 * osf-share/cma_mutex.h: Ditto.
7594 * osf-share/cma_stack_int.h: Ditto.
7595 * osf-share/cma_tcb_defs.h: Ditto.
7596 * python/py-auto-load.c: Ditto.
7597 * python/py-breakpoint.c: Ditto.
7598 * python/py-cmd.c: Ditto.
7599 * python/py-frame.c: Ditto.
7600 * python/py-objfile.c: Ditto.
7601 * python/py-param.c: Ditto.
7602 * python/py-progspace.c: Ditto.
7603 * python/py-symbol.c: Ditto.
7604 * python/py-value.c: Ditto.
7605 * python/python-internal.h: Ditto.
7606 * python/python.c: Ditto.
7607 * tui/tui-data.c: Ditto.
7608 * tui/tui-disasm.c: Ditto.
7609 * tui/tui-hooks.c: Ditto.
7610 * tui/tui-io.c: Ditto.
7611 * tui/tui-layout.c: Ditto.
7612 * tui/tui-regs.c: Ditto.
7613 * tui/tui-source.c: Ditto.
7614 * tui/tui-stack.c: Ditto.
7615 * tui/tui-win.c: Ditto.
7616 * tui/tui-windata.c: Ditto.
7617 * tui/tui-winsource.c: Ditto.
7619 2011-01-05 Joel Brobecker <brobecker@adacore.com>
7621 * configure.ac, gdb.1: Copyright year update.
7623 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7625 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7626 this_pc_in_block, morestack_msym and morestack_name. Check for
7627 "__morestack" minimal symbol there.
7629 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7631 * symfile.c (find_sym_fns): Add call to dont_repeat.
7633 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7635 Copyright year update in most files (performed by copyright.sh).
7637 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7639 * top.c (print_gdb_version): Update copyright year in version output.
7641 For older changes see ChangeLog-2010.
7647 version-control: never