1 2011-07-18 Jean-Charles Delay <delay@adacore.com>
3 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4 of supported languages.
5 * varobj.c: Add top definitions and basic implementation of the
6 following callbacks: ada_number_of_children, ada_name_of_variable,
7 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
8 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
9 (languages): Register Ada-specific callbacks.
10 (variable_language): Add the Ada case in the language setter switch.
12 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
14 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
16 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
19 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
20 (execute_stack_op): Use dwarf2_frame_ctx_funcs
21 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
22 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
23 get_frame_cfa, get_tls_address and dwarf_call via funcs.
24 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
25 (struct dwarf_expr_context_funcs): New, move here methods from ...
26 (struct dwarf_expr_context): ... here. New fields funcs.
27 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
28 (dwarf_expr_ctx_funcs): New.
29 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
30 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
31 (needs_frame_ctx_funcs): New.
32 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
34 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
36 * MAINTAINERS (Write After Approval): Add myself to the list.
38 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
40 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
41 that CIE pointer of an FDE really points to a CIE .
43 2011-07-15 Hui Zhu <teawater@gmail.com>
45 * remote.c (remote_get_trace_status): Add comments.
47 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
49 Code cleanup - constify struct lval_funcs.
50 * dwarf2loc.c (pieced_value_funcs): Make it const.
51 * infrun.c (siginfo_value_funcs): Likewise.
52 * opencl-lang.c (opencl_value_funcs): Likewise.
53 * valops.c (value_assign, value_ind): Make the funcs variable const.
54 * value.c (struct value): Make location.computed.funcs target const.
55 Rearrange the comments.
56 (allocate_computed_value): Make the funcs parameter target const.
57 (value_computed_funcs): Return the funcs target const.
58 (value_free, value_copy, set_value_component_location): Make the funcs
60 * value.h (allocate_computed_value): Make the funcs parameter target
62 (value_computed_funcs): Return the funcs target const.
63 * windows-tdep.c (tlb_value_funcs): Make it const.
65 2011-07-14 Hui Zhu <teawater@gmail.com>
67 * remote.c (remote_get_trace_status): Initialize p.
69 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
72 * remote.c (remote_get_trace_status): New variable ex. Put
73 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
75 2011-07-13 Tom Tromey <tromey@redhat.com>
77 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
78 value_from_contents for final conversion.
80 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
83 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
84 Indent prototypes so they do not get into tags.
86 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
88 Code cleanup making also optimized out values lazy.
89 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
90 allocate_optimized_out_value. Twice.
91 (loclist_read_variable) Use allocate_optimized_out_value. Once.
92 * findvar.c (read_var_value): Likewise.
93 * value.c (allocate_optimized_out_value): New function.
94 * value.h (allocate_optimized_out_value): New declaration.
96 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
98 Fix occasional crash of CTRL-C during DWARF read in.
99 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
101 2011-07-11 Tom Tromey <tromey@redhat.com>
103 * regcache.c (struct regcache_descr): Fix typo.
104 * i387-tdep.c (i387_supply_xsave): Fix typo.
106 2011-07-11 Tom Tromey <tromey@redhat.com>
108 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
109 (read_file_scope, read_type_unit_scope): Use it.
111 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
113 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
116 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
119 * python/python.c: Set gdbpy_should_print_stack default to off.
120 (set_python): Deprecate maint set python print-stack to
122 (_initialize_python): Deprecate maint set/show python print-stack.
123 Add new prefix command, python. Add new setting, print-backtrace.
124 * NEWS: Document set python print-stack. Document default change.
126 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
128 * python/py-inferior.c (infpy_dealloc): New function.
129 (inferior_to_inferior_object): Return a new object, or a
130 new reference to the existing object.
131 (find_thread_object): Cleanup references to inferior.
132 (delete_thread_object): Ditto.
133 * python/py-infthread.c (create_thread_object): Do not increment
134 inferior reference count.
136 2011-07-08 Tom Tromey <tromey@redhat.com>
138 * dwarf2loc.c (locexpr_regname): New function.
139 (locexpr_describe_location_piece): Use it.
140 (disassemble_dwarf_expression): Add per_cu argument. Use
142 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
143 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
145 (locexpr_describe_location_1): Add per_cu argument.
146 (locexpr_describe_location): Update.
147 (loclist_describe_location): Update.
149 2011-07-08 Tom Tromey <tromey@redhat.com>
151 * dwarf2expr.c (execute_stack_op): Add QUIT.
153 2011-07-07 Hui Zhu <teawater@gmail.com>
156 2011-07-06 Hui Zhu <teawater@gmail.com>
157 * remote.c (remote_start_remote): Add TRY_CATCH for
158 remote_get_trace_status.
159 * tracepoint.c (disconnect_tracing): Ditto.
161 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
163 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
164 variables as signed, not unsigned.
166 2011-07-06 Joel Brobecker <brobecker@adacore.com>
168 * jit.c (jit_inferior_init): Reformat forward declaration.
170 2011-07-06 Matt Rice <ratmice@gmail.com>
172 * MAINTAINERS (Write After Approval): Add myself to the list.
174 2011-07-06 Hui Zhu <teawater@gmail.com>
176 * remote.c (remote_start_remote): Add TRY_CATCH for
177 remote_get_trace_status.
178 * tracepoint.c (disconnect_tracing): Ditto.
180 2011-07-05 Tom Tromey <tromey@redhat.com>
182 * symtab.c (operator_chars): Now static.
183 * linespec.c (operator_chars): Don't declare.
185 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
187 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
189 2011-07-05 Tom Tromey <tromey@redhat.com>
191 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
192 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
193 (TYPE_CPLUS_REALLY_JAVA): New macro.
194 * dwarf2read.c (process_structure_scope): Set
195 TYPE_CPLUS_REALLY_JAVA.
197 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
199 * ada-lang.c: Fix typos.
200 * amd64-tdep.c: Likewise.
201 * breakpoint.c: Likewise.
202 * cli/cli-decode.c: Likewise.
203 * findcmd.c: Likewise.
204 * inline-frame.c: Likewise.
205 * mi/mi-main.c: Likewise.
206 * minsyms.c: Likewise.
207 * monitor.c: Likewise.
208 * monitor.h: Likewise.
209 * prologue-value.c: Likewise.
210 * reverse.c: Likewise.
211 * s390-tdep.c: Likewise.
213 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
215 * jit.c (jit_inferior_init): Forward declare.
216 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
218 2011-07-04 Joel Brobecker <brobecker@adacore.com>
220 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
222 2011-07-04 Tristan Gingold <gingold@adacore.com>
224 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
225 (tcb_fieldno): Add activation_link field.
226 (get_known_tasks_addr): Moved and rewritten.
227 (get_tcb_types_info): Set activation_link field.
228 (read_known_tasks_array): Add parameter. Rewritten.
229 (read_known_tasks_list): New function.
230 (read_known_tasks): New function.
231 (ada_build_task_list): Call read_known_tasks instead of
232 read_known_tasks_array.
233 * ravenscar-thread.c: Add first_task_name constant.
234 (has_ravenscar_runtime): Check for task list too.
236 2011-07-04 Tristan Gingold <gingold@adacore.com>
238 * ada-tasks.c: Renames fieldno to actb_fieldno.
239 (ada_get_task_number): Indentation.
240 (get_tcb_types_info): Remove all parameters. Write directly
242 (ptid_from_atcb_common): Adjust.
245 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
247 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
249 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
251 * ui-out.c (ui_out_field_core_addr): Mention that the function
252 description is in the header file.
253 * ui-out.h (ui_out_field_core_addr): Document function.
255 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
257 * ui-out.c (ui_out_get_field_separator): Remove unused function.
258 * ui-out.h (ui_out_get_field_separator): Remove prototype.
260 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
262 * symtab.c (expand_line_sal): Remove empty line.
264 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
266 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
267 same way as ELFOSABI_NONE.
268 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
270 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
272 * breakpoint.c: Fix typos in comments.
273 * linespec.c: Likewise.
274 * symtab.c: Likewise.
276 2011-07-04 Joel Brobecker <brobecker@adacore.com>
278 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
279 section in separate object files.
281 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
283 Fix false GCC warning.
284 * linespec.c (decode_line_1): Initialize values.
286 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
288 * linespec.c (find_method): Accept the function type automatically only
289 if it was specified with parameter types.
291 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
293 Stop on first linespec terminator instead of eating what we can.
294 * linespec.c (is_linespec_boundary): New function.
295 (name_end): Remove function.
296 (keep_name_info): New parameter on_boundary, replace the body.
297 (decode_line_1): Provide the parameter to keep_name_info.
298 (decode_compound): Likewise. Drop the trailing java return type
301 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
303 Fall back linespec to minimal symbols.
304 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
305 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
306 (find_method, symbol_found): Change error to cplusplus_error.
308 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
310 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
312 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
313 Tom Tromey <tromey@redhat.com>
315 * dwarf2read.c (check_physname): New variable.
316 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
317 (show_check_physname): New function.
318 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
320 2011-07-01 Joel Brobecker <brobecker@adacore.com>
322 * machoread.c (macho_symfile_read): Delete OBE comment.
324 2011-07-01 Joel Brobecker <brobecker@adacore.com>
326 * machoread.c (struct macho_oso_data): Delete.
327 (current_oso): Delete.
328 (macho_relocate_common_syms): New function, mostly extracted
330 (macho_add_oso_symfile): Call macho_relocate_common_syms.
331 Remove code that sets and unset current_oso.
332 (macho_symfile_relocate): Delete handling of common symbols,
333 now moved to macho_relocate_common_syms.
335 2011-07-01 Joel Brobecker <brobecker@adacore.com>
337 * darwin-nat.c (darwin_ptrace): Add documentation.
338 Set errno to zero before calling ptrace. If ptrace returns
339 -1 and errno is zero, then change then return zero.
340 (darwin_kill_inferior): Issue a warning instead of triggering
341 a failed assertion when the PT_KILL ptrace operations returned
344 2011-07-01 Joel Brobecker <brobecker@adacore.com>
346 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
347 only when inf->private->no_ptrace.
349 2011-07-01 Joel Brobecker <brobecker@adacore.com>
351 * ada-lang.c (print_it_exception): Print temporary catchpoints
352 as "Temporary catchpoint".
353 (print_mention_exception): Likewise.
355 2011-07-01 Tom Tromey <tromey@redhat.com>
357 * jv-lang.c (java_language_defn): Use java_printchar,
359 (java_get_encoding): New function.
360 (java_emit_char): Use generic_emit_char.
361 (java_printchar): New function.
362 (java_printstr): Likewise.
364 2011-07-01 Joel Brobecker <brobecker@adacore.com>
366 * ada-typeprint.c (print_record_type): If unable to decode
367 the name of the parent type, use the encoded name.
369 2011-07-01 Jean-Charles Delay <delay@adacore.com>
371 * ada-typeprint.c (ada_print_type): Fix both PAD type and
372 pointer to constrained packed array type output.
373 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
376 2011-07-01 Jean-Charles Delay <delay@adacore.com>
378 * ada-typeprint.c (print_array_type): removed if condition on show
379 being negative for bounds printing.
381 2011-07-01 Joel Brobecker <brobecker@adacore.com>
383 * ada-lang.c (ada_identical_enum_types_p): New function.
384 (symbols_are_identical_enums): New function.
385 (remove_extra_symbols): Do nothing if NSYMS < 2.
386 Use symbols_are_identical_enums.
388 2011-07-01 Joel Brobecker <brobecker@adacore.com>
390 * ada-valprint.c (ada_value_print): Handle typedefs.
392 2011-07-01 Joel Brobecker <brobecker@adacore.com>
394 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
396 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
398 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
399 (decode_constrained_packed_array): Likewise.
400 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
402 2011-07-01 Joel Brobecker <brobecker@adacore.com>
404 * ada-exp.y (convert_char_literal): Handle typedef types.
406 2011-07-01 Joel Brobecker <brobecker@adacore.com>
408 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
410 2011-06-30 Tom Tromey <tromey@redhat.com>
412 * varobj.c (varobj_create): Call do_cleanups on early exit path.
413 * valops.c (find_overload_match): Call do_cleanups on early exit
415 * solib.c (solib_find): Call do_cleanups on early exit path.
417 2011-06-30 Tom Tromey <tromey@redhat.com>
419 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
420 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
421 return paths. Defer final do_cleanups until last return.
422 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
425 2011-06-30 Tom Tromey <tromey@redhat.com>
427 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
429 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
431 * MAINTAINERS (Write After Approval): Add myself to the list.
433 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
435 Disable epilogue unwinders on recent GCCs.
436 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
437 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
438 * dwarf2read.c (process_full_comp_unit): Initialize
439 EPILOGUE_UNWIND_VALID.
440 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
441 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
442 * symtab.h (struct symtab): New field epilogue_unwind_valid.
444 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
446 Code cleanup - reformatting.
447 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
448 (producer_is_gcc_ge_4): ... here, change the return value.
449 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
452 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
454 Fix non-only rename list for Fortran modules import.
455 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
456 cp_add_using_directive caller.
457 (cp_add_using_directive): New parameter excludes, describe it. New
458 variables ix and param. Compare if also excludes match. Allocate NEW
459 with variable size, initialize EXCLUDES there.
460 (cp_lookup_symbol_imports): New variable excludep, test
461 current->EXCLUDES with it.
462 * cp-support.h: Include vec.h.
463 (struct using_direct): New field excludes, describe it.
464 (DEF_VEC_P (const_char_ptr)): New.
465 (cp_add_using_directive): New parameter excludes.
466 * defs.h (const_char_ptr): New typedef.
467 * dwarf2read.c (read_import_statement): New variables child_die,
468 excludes and cleanups, read in excludes.
469 (read_namespace): Adjust the cp_add_using_directive caller.
471 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
474 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
475 negative comparisons.
477 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
479 * mi/mi-main.c (mi_cmd_list_features): Emit
480 breakpoint-notifications.
482 2011-06-29 Tom Tromey <tromey@redhat.com>
485 * valprint.h (generic_emit_char, generic_printstr): Declare.
486 * valprint.c (wchar_printable, append_string_as_wide)
487 (print_wchar): Move from c-lang.c.
488 (generic_emit_char): New function; mostly taken from c_emit_char.
489 (generic_printstr): New function; mostly taken from c_printstr.
490 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
491 represented as arrays.
492 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
494 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
495 identically to TYPE_CODE_INT.
496 * f-lang.c (f_get_encoding): New function.
497 (f_emit_char): Use generic_emit_char.
498 (f_printchar): Replace comment.
499 (f_printstr): Use generic_printstr.
500 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
501 "character" types specially.
502 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
504 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
506 (c_emit_char): Call generic_emit_char.
507 (c_printstr): Call generic_printstr.
509 2011-06-29 Gary Benson <gbenson@redhat.com>
511 * breakpoint.c (bpstat_what): Removed duplicated case.
513 2011-06-28 Tom Tromey <tromey@redhat.com>
515 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
517 2011-06-27 Tom Tromey <tromey@redhat.com>
519 * valops.c (find_overload_match): Call do_cleanups before early
521 * top.c (execute_command): Call do_cleanups before early return.
522 (command_loop): Likewise.
523 * stack.c (backtrace_command): Make a null cleanup early. Don't
524 conditionally call do_cleanups.
525 * python/py-value.c (TRY_CATCH): Move cleanup handling into
527 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
528 so cleanups are always run.
529 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
530 * findcmd.c (parse_find_args): Call do_cleanups on early return
532 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
533 Don't conditionally call do_cleanups.
534 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
537 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
539 * MAINTAINERS (Write After Approval): Use default email address.
541 2011-06-27 Joel Brobecker <brobecker@adacore.com>
543 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
545 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
547 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
548 saved_regs_mask and copied_regs_mask fields.
549 (sparc_record_save_insn): New prototype.
550 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
551 (sparc_record_save_insn): New function.
552 (sparc_analyze_prologue): Add head comment. Recognize store insns
553 of call-saved registers. Use OFFSET consistently. Recognize flat
554 frames and cache their settings.
555 (sparc32_skip_prologue): Handle flat frames.
556 (sparc_frame_cache): Add frame_offset to the base address.
557 (sparc32_frame_cache): Adjust to new frame description.
558 (sparc32_frame_prev_register): Likewise.
559 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
560 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
561 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
562 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
563 frame by calling sparc_record_save_insn.
564 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
565 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
566 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
568 2011-06-27 Tristan Gingold <gingold@adacore.com>
570 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
571 field by map_addr and map_len.
572 (dwarf2_read_section): Adjust for the new bfd_mmap api.
573 (munmap_section_buffer): Likewise.
575 2011-06-24 Tom Tromey <tromey@redhat.com>
577 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
578 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
579 * python/python.c (gdbpy_parameter): Make 'arg' const.
580 (execute_gdb_command): Likewise.
581 (gdbpy_decode_line): Likewise. Copy it.
582 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
583 (gdbpy_write): Make 'arg' const.
584 * python/py-type.c (typy_lookup_typename): Make 'type_name'
586 (gdbpy_lookup_type): Likewise.
587 * python/py-prettyprint.c (print_children): Make 'name' const.
588 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
589 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
591 * python/py-function.c (fnpy_init): Make 'name' const.
592 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
593 (gdbpy_string_to_argv): Make 'input' const.
594 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
596 * gdbtypes.h (lookup_typename): Update.
597 * gdbtypes.c (lookup_typename): Make 'name' const.
598 (lookup_struct): Likewise.
599 (lookup_union): Likewise.
600 (lookup_enum): Likewise.
602 2011-06-24 Tom Tromey <tromey@redhat.com>
604 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
605 gdb_thread_db.h. Move all common/ entries to be together.
606 (TAGS): Don't depend on DEPFILES.
608 2011-06-23 Yao Qi <yao@codesourcery.com>
610 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
611 * remote.c (remote_start_remote): ... here.
612 * monitor.c (monitor_open): ... here.
614 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
616 * gdbtypes.c (append_composite_type_field_aligned): Fix
617 calculation of bit position based on alignment.
619 2011-06-22 Pedro Alves <pedro@codesourcery.com>
621 * breakpoint.c (bpstat_stop_status): Call the check_status
622 breakpoint_ops method.
623 (print_one_breakpoint_location): Also print the condition for Ada
624 exception catchpoints.
625 (allocate_bp_location): New, factored out from
626 allocate_bp_location.
627 (allocate_bp_location): Adjust. Call the owner breakpoint's
628 allocate_location method, if there is one.
629 (free_bp_location): Call the locations's dtor method, if there is
631 (init_raw_breakpoint_without_location): New breakpoint_ops
633 (set_raw_breakpoint_without_location): Adjust.
634 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
635 (set_raw_breakpoint): Adjust.
636 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
637 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
638 re_set and check_status methods.
639 (init_catchpoint): Don't memset, initialize thread, addr_string
640 and enable_state. Pass the ops down to init_raw_breakpoint.
641 (install_catchpoint): Rename to ...
642 (install_breakpoint): ... this, and make extern.
643 (create_fork_vfork_event_catchpoint): Adjust.
644 (catch_exec_breakpoint_ops): Install NULL allocate_location,
645 re_set and check_status methods.
646 (create_syscall_event_catchpoint): Adjust.
647 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
648 (masked_watchpoint_breakpoint_ops): Install NULL
649 allocate_location, re_set and check_status methods.
650 (catch_exec_command_1): Adjust.
651 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
652 re_set and check_status methods.
653 (create_ada_exception_breakpoint): Rename to ...
654 (init_ada_exception_breakpoint): ... this. Add a struct
655 breakpoint parameter, and delete the exp_string, cond_string and
656 cond parameters. Use init_raw_breakpoint, and don't install or
657 mention the breakpoint yet. Don't clear breakpoint fields that
658 init_raw_breakpoint already clears.
659 (re_set_breakpoint): Delete, split into ...
660 (breakpoint_re_set_default, prepare_re_set_context): ... these new
662 (breakpoint_re_set_one): Call the breakpoint's
663 breakpoint_ops->re_set implementation, if there's one. Adjust.
664 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
665 (struct bp_location_ops): New type.
666 (struct bp_location): New field `ops'.
667 (struct breakpoint_ops): New `allocate_location', `re_set' and
668 `check_status' fields. Make `breakpoint_hit''s description match
670 (init_bp_location): Declare.
671 (breakpoint_re_set_default): Declare.
672 (create_ada_exception_breakpoint): Rename to ...
673 (init_ada_exception_breakpoint): ... this. Add a struct
674 breakpoint parameter, and delete the exp_string, cond_string and
676 (install_breakpoint): Declare.
677 * ada-lang.c: Include exceptions.h.
678 <Ada exceptions description>: Update.
679 (struct ada_catchpoint_location): New type.
680 (ada_catchpoint_location_dtor): New function.
681 (ada_catchpoint_location_ops): New global.
682 (ada_catchpoint): New type.
683 (create_excep_cond_exprs): New function.
684 (dtor_exception, allocate_location_exception, re_set_exception)
685 (should_stop_exception, check_status_exception): New functions.
686 (print_one_exception, print_mention_exception)
687 (print_recreate_exception): Adjust.
688 (dtor_catch_exception, allocate_location_catch_exception)
689 (re_set_catch_exception, check_status_catch_exception): New
691 (catch_exception_breakpoint_ops): Install them.
692 (dtor_catch_exception_unhandled)
693 (allocate_location_catch_exception_unhandled)
694 (re_set_catch_exception_unhandled)
695 (check_status_catch_exception_unhandled): New functions.
696 (catch_exception_unhandled_breakpoint_ops): Install them.
697 (dtor_catch_assert, allocate_location_catch_assert)
698 (re_set_catch_assert, check_status_catch_assert): New functions.
699 (catch_assert_breakpoint_ops): Install them.
700 (ada_exception_catchpoint_p): Delete.
701 (catch_ada_exception_command_split)
702 (ada_exception_catchpoint_cond_string): Rename exp_string
703 parameter to excep_string. Adjust.
704 (ada_parse_catchpoint_condition): Delete.
705 (ada_exception_sal): Rename the exp_string parameter to
706 excep_string. Delete the cond_string and cond parameters.
708 (ada_decode_exception_location): Rename the exp_string parameter
709 to excep_string. Delete the cond_string and cond parameters.
711 (create_ada_exception_catchpoint): New function.
712 (catch_ada_exception_command, ada_decode_assert_location)
713 (catch_assert_command): Adjust.
714 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
716 2011-06-22 Pedro Alves <pedro@codesourcery.com>
718 * ada-lang.c: Include arch-utils.h.
719 (ada_decode_exception_location): Make static.
720 (catch_ada_exception_command): Moved here from breakpoint.c.
721 (ada_decode_assert_location): Make static.
722 (catch_assert_command): Moved here from breakpoint.c.
723 (_initialize_ada_lang): Install the exception and assert
724 catchpoint commands here.
725 * ada-lang.h (ada_decode_exception_location)
726 (ada_decode_assert_location): Delete declarations.
727 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
729 (create_ada_exception_breakpoint): Make extern.
730 (catch_ada_exception_command, catch_assert_command): Moved to
732 (add_catch_command): Make extern.
733 (_initilize_breakpoint): Don't install the exception and assert
734 catchpoint commands here.
735 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
737 (add_catch_command, create_ada_exception_breakpoint): Declare.
739 2011-06-22 Pedro Alves <pedro@codesourcery.com>
741 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
742 the breakpoint to the breakpoint chain here.
743 (set_raw_breakpoint_without_location): Add the breakpoint to the
744 breakpoint chain here.
745 (init_raw_breakpoint): Adjust comments.
746 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
748 (init_catchpoint): Don't set the catchpoint's breakpoint number
750 (install_catchpoint): New function.
751 (create_fork_vfork_event_catchpoint)
752 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
753 use install_catchpoint.
755 2011-06-22 Pedro Alves <pedro@codesourcery.com>
757 * breakpoint.c (create_catchpoint_without_mention)
758 (create_catchpoint): Delete.
760 2011-06-22 Pedro Alves <pedro@codesourcery.com>
762 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
763 * breakpoint.c (init_raw_breakpoint_without_location): Remove
764 reference to exec_pathname.
765 (struct exec_catchpoint): New type.
766 (dtor_catch_exec): New function.
767 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
768 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
769 (catch_exec_command_1): Adjust to use init_catchpoint.
770 (delete_breakpoint): Remove reference to exec_pathname.
772 2011-06-22 Pedro Alves <pedro@codesourcery.com>
774 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
775 (struct breakpoint): Delete field `syscalls_to_be_caught'.
776 * breakpoint.c (init_raw_breakpoint_without_location): Remove
777 reference to syscalls_to_be_caught.
778 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
780 (struct syscall_catchpoint): New type.
781 (dtor_catch_syscall): New function.
782 (insert_catch_syscall, remove_catch_syscall)
783 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
784 (print_recreate_catch_syscall): Adjust.
785 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
786 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
787 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
788 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
789 (masked_watchpoint_breakpoint_ops)
790 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
791 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
792 there is one. Remove references to syscalls_to_be_caught.
793 (catching_syscall_number): Adjust.
794 * ada-lang.c (catch_exception_breakpoint_ops)
795 (catch_exception_unhandled_breakpoint_ops)
796 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
798 2011-06-22 Pedro Alves <pedro@codesourcery.com>
800 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
802 * breakpoint.c (init_raw_breakpoint_without_location): Remove
803 reference to forked_inferior_pid.
804 (struct fork_catchpoint): New type.
805 (breakpoint_hit_catch_fork, print_it_catch_fork)
806 (print_one_catch_fork, breakpoint_hit_catch_vfork)
807 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
808 (create_fork_vfork_event_catchpoint): Adjust to use
811 2011-06-22 Pedro Alves <pedro@codesourcery.com>
813 * breakpoint.c (add_to_breakpoint_chain)
814 (init_raw_breakpoint_without_location): New functions, factored
816 (set_raw_breakpoint_without_location): ... this one.
817 (init_raw_breakpoint): New function, factored out from
818 set_raw_breakpoint and adjusted to use
819 init_raw_breakpoint_without_location.
820 (set_raw_breakpoint): Adjust.
821 (init_catchpoint): New function, factored out from
822 create_catchpoint_without_mention and adjusted to use
824 (create_catchpoint_without_mention): Adjust.
826 2011-06-22 Tom Tromey <tromey@redhat.com>
828 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
829 argument of 0 specially.
831 2011-06-22 Yao Qi <yao@codesourcery.com>
833 * infrun.c (handle_inferior_event): Remove write-only local variable
834 `sw_single_step_trap_p'.
836 2011-06-20 Tom Tromey <tromey@redhat.com>
838 * symtab.c (lookup_language_this): End loop if block is NULL.
840 2011-06-17 Tom Tromey <tromey@redhat.com>
842 * valops.c (value_of_this): Use lookup_language_this.
843 * symtab.h (lookup_language_this): Declare.
844 * symtab.c (lookup_language_this): New function.
845 (lookup_symbol_aux): Use lookup_language_this.
846 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
848 2011-06-17 Tom Tromey <tromey@redhat.com>
850 * value.h (value_of_this): Update.
851 (value_of_local): Remove.
852 * valops.c (value_of_this): Rename from value_of_local. Change
854 * p-exp.y (exp): Update.
855 (variable): Likewise.
856 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
858 2011-06-17 Tom Tromey <tromey@redhat.com>
860 * valops.c (value_of_local): Complain if NAME is NULL.
861 * std-operator.def (OP_OBJC_SELF): Remove.
862 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
863 * objc-exp.y (name_not_typename): Use OP_THIS.
864 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
866 <OP_OBJC_SELF>: Remove.
867 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
869 2011-06-16 Tristan Gingold <gingold@adacore.com>
871 * python/py-events.h (gdb_py_events): Make it extern.
872 * python/py-evtregistry.c (gdb_py_events): Declare.
874 2011-06-16 Hui Zhu <teawater@gmail.com>
876 * remote.c (remote_trace_set_readonly_regions): Add check for
877 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
880 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
882 * arm-linux-tdep.c: Include "auxv.h".
884 (ARM_LINUX_SIZEOF_VFP): Define.
885 (arm_linux_supply_vfp): New function.
886 (arm_linux_collect_vfp): Likewise.
887 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
888 (arm_linux_fpa_regset_sections): New variable.
889 (arm_linux_vfp_regset_sections): Likewise.
890 (arm_linux_core_read_description): New function.
891 (arm_linux_init_abi): Install arm_linux_core_read_description and
892 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
893 appropriate for the architecture.
894 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
895 (tdesc_arm_with_m): Declare.
896 (tdesc_arm_with_iwmmxt): Likewise.
897 (tdesc_arm_with_vfpv2): Likewise.
898 (tdesc_arm_with_vfpv3): Likewise.
899 (tdesc_arm_with_neon): Likewise.
900 * arm-linux-nat.c: Move features/*.c includes ...
901 * arm-tdep.c: ... here.
902 * arm-linux-nat.c (arm_linux_read_description): Move initializing
903 target description data structures ...
904 * arm-tdep.c (_initialize_arm_tdep): ... here.
905 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
906 HWCAP_VFPv3D16): Move definitions ...
907 * arm-linux-tdep.h: ... here.
909 2011-06-15 Hui Zhu <teawater@gmail.com>
911 * remote.c (remote_trace_set_readonly_regions): Add a check for
914 2011-06-14 Tom Tromey <tromey@redhat.com>
916 * coffread.c (coffread_objfile): Rename from current_objfile.
917 * dbxread.c (dbxread_objfile): Rename from current_objfile.
918 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
920 2011-06-14 Tom Tromey <tromey@redhat.com>
922 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
923 (class_symtab): Remove.
924 (jv_dynamics_progspace_key): New global.
925 (jv_per_objfile_free): Reset program space data. Update assert.
927 (get_dynamics_objfile): Use and set program space data.
928 (get_java_class_symtab): Use get_dynamics_objfile.
929 (add_class_symbol): Likewise.
930 (java_link_class_type): Likewise.
931 (java_object_type, jv_clear_object_type, set_java_object_type):
933 (get_java_object_type): Update. Don't cache result.
934 (is_object_type): Don't call set_java_object_type.
935 (_initialize_java_language): Don't set jv_type_objfile_data_key;
936 initialize jv_dynamics_progspace_key.
938 2011-06-14 Tom Tromey <tromey@redhat.com>
940 * symtab.h (current_objfile): Don't declare.
941 * objfiles.h (current_objfile): Don't declare.
942 * objfiles.c (current_objfile): Remove.
943 * mdebugread.c (current_objfile): New file-scope global.
944 * dbxread.c (current_objfile): New file-scope global.
945 * coffread.c (current_objfile): New file-scope global.
947 2011-06-13 Pedro Alves <pedro@codesourcery.com>
949 * top.h (line): Rename to ...
950 (saved_command_line): ... this.
951 (linesize): Rename to ...
952 (saved_command_line_size): ... this.
953 * top.c (line): Rename to ...
954 (saved_command_line): ... this.
955 (linesize): Rename to ...
956 (saved_command_line_size): ... this.
957 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
958 * event-top.c (command_line_handler): Adjust.
959 * main.c (captured_main): Adjust.
961 2011-06-12 Mark Kettenis <kettenis@gnu.org>
963 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
964 get_frame_func instead of get_frame_pc to determine the code
965 address used to construct the frame ID.
966 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
967 (i386_epilogue_frame_this_id): Likewise.
968 (i386_epilogue_frame_prev_register): New function.
969 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
970 (i386_stack_tramp_frame_sniffer): Fix coding style.
971 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
972 (i386_gdbarch_init): Fix comments.
974 2011-06-12 Mark Kettenis <kettenis@gnu.org>
976 * i386-tdep.c (i386_match_insn_block): Use length of the proper
977 instruction when walking back through the instruction stream.
979 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
981 * symtab.c (output_partial_symbol_filename): Exchange the filename and
982 fullname parameters order.
984 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
987 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
989 * psymtab.c (map_symbol_filenames_psymtab)
990 (map_partial_symbol_filenames): Likewise.
991 * psymtab.h: Include symfile.h.
992 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
993 * symfile.h (symbol_filename_ftype): New.
994 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
995 map_symbol_filenames, clarify more the naming in comment.
997 2011-06-07 Doug Evans <dje@google.com>
999 * cc-with-index.sh: Fix typos in comment.
1000 Look for ../../gdb, for fullname.exp.
1002 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1003 Pedro Alves <pedro@codesourcery.com>
1005 * cli/cli-cmds.c (shell_escape): Use waitpid.
1006 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
1008 2011-06-07 Tristan Gingold <gingold@adacore.com>
1010 * xcoffread.c (dwarf2_xcoff_names): New variable.
1011 (aix_process_linenos): Add a guard.
1012 (xcoff_symfile_finish): Free dwarf2.
1013 (xcoff_initial_scan): Add dwarf2 support.
1015 2011-06-06 Pedro Alves <pedro@codesourcery.com>
1017 * infcall.c (run_inferior_call): Don't mask async. Instead force
1018 a synchronous wait, if the target can async.
1020 * target.h (struct target_ops): Delete to_async_mask.
1021 (target_async_mask): Delete.
1022 * target.c (update_current_target): Delete references to to_async_mask.
1023 * linux-nat.c (linux_nat_async_mask_value): Delete.
1024 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
1025 to linux_nat_async_mask_value.
1026 (linux_nat_async_mask): Delete.
1027 (linux_nat_async, linux_nat_close): Remove references to
1028 linux_nat_async_mask_value.
1029 * record.c (record_async_mask_value): Delete.
1030 (record_async): Remove references to record_async_mask_value.
1031 (record_async_mask): Delete.
1032 (record_can_async_p, record_is_async_p): Remove references to
1033 record_async_mask_value.
1034 (init_record_ops, init_record_core_ops): Remove references to
1036 * remote.c (remote_async_mask_value): Delete.
1037 (init_remote_ops): Remove reference to remote_async_mask.
1038 (remote_can_async_p, remote_is_async_p): Remove references to
1039 remote_async_mask_value.
1040 (remote_async): Remove references to remote_async_mask_value.
1041 (remote_async_mask): Delete.
1043 * infrun.c (fetch_inferior_event): Don't claim registers changed
1044 if the current thread is already not executing.
1046 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
1048 From Stephen Kitt <steve@sk2.org>
1049 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
1050 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
1052 2011-06-03 Joel Brobecker <brobecker@adacore.com>
1054 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
1055 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
1057 2011-06-03 Tom Tromey <tromey@redhat.com>
1059 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
1061 * python/py-exitedevent.c (create_exited_event_object): Change
1062 type of 'exit_code'. Optionally add exit_code attribute.
1063 (emit_exited_event): Change type of 'exit_code'.
1064 * python/py-event.h (emit_exited_event): Update.
1065 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
1066 * infrun.c (handle_inferior_event): Set exit code fields on
1068 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
1070 * inferior.c (exit_inferior_1): Initialize new fields.
1072 2011-06-03 Tom Tromey <tromey@redhat.com>
1074 * dwarf2expr.c (get_signed_type): New function.
1075 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
1077 2011-06-02 Keith Seitz <keiths@redhat.com>
1079 * objc-lang.c (find_methods): Increment objfile_csym earlier.
1081 2011-06-02 Pedro Alves <pedro@codesourcery.com>
1083 * top.h (simplified_command_loop): Delete declaration.
1085 2011-06-01 Mike Frysinger <vapier@gentoo.org>
1087 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
1088 gdb_sysroot to the "len" variable. Append both to "arg_buf".
1090 2011-06-01 Yao Qi <yao@codesourcery.com>
1092 * objfiles.h (obj_section_addr): Update reference to objfile from
1094 (obj_section_endaddr): Likewise.
1096 2011-06-01 Daniel Jacobowitz <drow@false.org>
1098 * MAINTAINERS: Update my email address and affiliation. Also
1099 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
1101 2010-05-31 Keith Seitz <keiths@redhat.com>
1104 * linespec.c (get_search_block): New function.
1105 (find_methods): Add FILE_SYMTATB parameter and use it and
1106 get_search_block to pass an appropriate block to
1107 lookup_symbol_in_namespace.
1108 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
1109 Check if *ARGPTR starts with a filename first.
1110 If it does, call locate_first_half again to locate the next
1111 "first half" of the linespec.
1112 Pass FILE_SYMTATB to decode_objc and decode_compound.
1113 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
1114 (locate_first_half): Stop on the first colon seen.
1115 (decode_compound): Add FILE_SYMTAB parameter.
1116 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
1117 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
1118 get_search_block with lookup_symbol.
1119 (find_method): Add FILE_SYMTAB parameter and pass it to
1121 (decode_objc): Use get_search_block.
1123 2010-05-31 Keith Seitz <keiths@redhat.com>
1126 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
1127 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
1128 and CP_ANONYMOUS_NAMESPACE_LEN.
1129 (cp_is_anonymous): Likewise.
1130 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
1131 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
1132 * dwarf2read.c (namespace_name): Likewise.
1133 (fixup_partial_die): Likewise.
1134 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
1135 seen in the input, keep it.
1137 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1139 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
1140 * inf-loop.h (inferior_event_handler_wrapper): Delete.
1141 * inf-loop.c (inferior_event_handler_wrapper): Delete.
1142 (inferior_event_handler): Don't handle INF_QUIT_REQ.
1143 * remote.c (_initialize_remote): Register
1144 async_remote_interrupt_twice directly as
1145 sigint_remote_twice_token event.
1147 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1149 * target.h (enum inferior_event_type): Delete INF_ERROR.
1150 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
1152 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1154 * interps.c (interp_set): Don't cancel continuations.
1156 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1158 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
1160 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1162 * continuations.h (continuation_ftype): Add `err' parameter.
1163 Document parameters.
1164 (do_all_continuations, do_all_continuations_thread)
1165 (do_all_intermediate_continuations)
1166 (do_all_intermediate_continuations_thread)
1167 (do_all_inferior_continuations): Add `err' parameter.
1168 * continuations.c (do_my_continuations_1, do_my_continuations)
1169 (do_all_inferior_continuations, do_all_continuations_ptid)
1170 (do_all_continuations_thread_callback)
1171 (do_all_continuations_thread, do_all_continuations)
1172 (do_all_intermediate_continuations_thread_callback)
1173 (do_all_intermediate_continuations_thread)
1174 (do_all_intermediate_continuations): Add `err' parameter, and pass
1175 it down all the way to the continuations proper.
1176 * inf-loop.c (inferior_event_handler): If fetching an inferior
1177 event throws an error, don't pop the target, and still call the
1178 continuations, but with `err' set. Adjust all other continuation
1180 * breakpoint.c (until_break_command_continuation): Add `err'
1182 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
1183 issue another step if `err' is set.
1184 (struct until_next_continuation_args): New.
1185 (until_next_continuation): Add `err' parameter. Adjust.
1186 (until_next_command): Adjust.
1187 (struct finish_command_continuation_args): Add `thread' field.
1188 (finish_command_continuation): Add `err' parameter. Handle it.
1189 (finish_forward): Adjust.
1190 (attach_command_continuation): Add `err' parameter. Handle it.
1191 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1192 cancel the continuations.
1193 * interps.c (interp_set): Adjust to cancel the continuations.
1194 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1195 continuations rather than discarding.
1196 (free_thread): Don't clear thread inferior resources here.
1197 (delete_thread_1): Do it here instead. And do it before removing
1198 the thread from the threads list. Tag the thread as exited before
1199 clearing thread inferior resources.
1201 2011-05-30 Joel Brobecker <brobecker@adacore.com>
1203 * infcall.c (call_function_by_hand): Rephrase error message.
1205 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1207 * defs.h (struct thread_info, struct inferior): Delete forward
1209 * breakpoint.h (struct thread_info): New forward declaration.
1210 * observer.sh (struct inferior): New forward declaration.
1211 * python/python-internal.h (struct inferior): New forward
1214 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1216 * defs.h (struct continuation, continuation_ftype)
1217 (continuation_free_arg_ftype, add_continuation)
1218 (do_all_continuations, do_all_continuations_thread)
1219 (discard_all_continuations, discard_all_continuations_thread)
1220 (add_intermediate_continuation, do_all_intermediate_continuations)
1221 (do_all_intermediate_continuations_thread)
1222 (discard_all_intermediate_continuations)
1223 (discard_all_intermediate_continuations_thread)
1224 (add_inferior_continuation, do_all_inferior_continuations)
1225 (discard_all_inferior_continuations): Move to ...
1226 * continuations.h: ... this new file.
1227 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1228 infcmd.c, inferior.c, infrun.c, interps.c: Include
1231 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1232 Doug Evans <dje@google.com>
1234 Fix PR 10970, PR 12702.
1235 * linux-nat.c (linux_lwp_is_zombie): New function.
1236 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1237 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1239 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1241 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1243 (add_continuation, add_intermediate_continuation)
1244 (add_inferior_continuation): Use them.
1245 * continuations.c (struct continuation): Use them.
1246 (make_continuation_ftype): Delete.
1247 (make_continuation, add_inferior_continuation, add_continuation)
1248 (add_intermediate_continuation): Use continuation_ftype and
1249 continuation_free_arg_ftype. Rename parameters to shorter names.
1251 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1253 * continuations.c (make_continuation): Make it return void.
1254 (do_my_continuations): Rename to ...
1255 (do_my_continuations_1): ... this. Remove old_chain parameter and
1257 (do_my_continuations): New.
1258 (discard_my_continuations): Rename to ...
1259 (discard_my_continuations_1): ... this. Remove old_chain
1260 parameter and adjust.
1261 (discard_my_continuations): New.
1262 (add_inferior_continuation): Simplify.
1263 (do_all_inferior_continuations): Reimplement on top
1264 do_my_continuations.
1265 (discard_all_inferior_continuations): Simplify.
1266 (add_continuation): Simplify.
1267 (do_all_continuations_ptid): Simplify.
1268 (discard_all_continuations_thread_callback): Simplify.
1269 (add_intermediate_continuation): Simplify.
1270 (discard_all_intermediate_continuations_thread_callback):
1273 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1275 * utils.c (struct continuation, add_continuation)
1276 (add_inferior_continuation)
1277 (do_all_inferior_continuations, discard_all_inferior_continuations)
1278 (restore_thread_cleanup, do_all_continuations_ptid)
1279 (do_all_continuations_thread_callback)
1280 (do_all_continuations_thread, do_all_continuations)
1281 (discard_all_continuations_thread_callback)
1282 (discard_all_continuations_thread, discard_all_continuations)
1283 (add_intermediate_continuation)
1284 (do_all_intermediate_continuations_thread_callback)
1285 (do_all_intermediate_continuations_thread)
1286 (do_all_intermediate_continuations)
1287 (discard_all_intermediate_continuations_thread_callback)
1288 (discard_all_intermediate_continuations_thread)
1289 (discard_all_intermediate_continuations): Move to ...
1290 * continuations.c: ... this new file, and adjust to no longer
1291 implement continuations on top of cleanups.
1292 * Makefile.in (SFILES): Add continuations.c.
1293 (COMMON_OBS): Add continuations.o.
1295 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1297 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1298 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1299 Internal error on invalid values.
1300 * reverse.c: Don't handle EXEC_ERROR.
1301 * mi/mi-main.c: Don't handle EXEC_ERROR.
1303 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1305 * record.c: Include event-loop.h, inf-loop.h.
1306 (record_beneath_to_async): New global.
1307 (tmp_to_async): New global.
1308 (record_async_inferior_event_token): New global.
1309 (record_open_1): Don't error out if async is enabled.
1310 (record_open): Handle to_async. Create an async event source in
1312 (record_close): Delete the async event source.
1313 (record_resumed): New global.
1314 (record_execution_dir): New global.
1315 (record_resume, record_core_resume): Set them. Register the
1316 target on the event loop.
1317 (record_wait): Rename to ...
1318 (record_wait_1): ... this. Add more debug output. Handle
1319 TARGET_WNOHANG, and the target beneath returning
1320 TARGET_WAITKIND_IGNORE.
1321 (record_wait): Reimplement on top of record_wait_1.
1322 (record_async_mask_value): New global.
1323 (record_async, record_async_mask, record_can_async_p)
1324 (record_is_async_p, record_execution_direction): New functions.
1325 (init_record_ops, init_record_core_ops): Install new methods.
1326 * infrun.c (fetch_inferior_event): Temporarily switch the global
1327 execution direction to the direction the target was going.
1328 (execution_direction): Change type to int.
1329 * target.c (default_execution_direction): New function.
1330 (update_current_target): Inherit and de_fault
1331 to_execution_direction.
1332 * target.h (struct target_ops) <to_execution_direction>: New
1334 (target_execution_direction): New macro.
1335 * inferior.h (execution_direction): Change type to int.
1337 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1339 * infcall.c (call_function_by_hand): Don't allow calling functions
1340 in reverse execution mode.
1342 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1344 * infcmd.c (finish_command): Allow async finish in reverse.
1346 2011-05-26 Yao Qi <yao@codesourcery.com>
1348 * gdb_thread_db.h: Delete. Move to ...
1349 * common/gdb_thread_db.h: ... here.
1351 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1353 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1354 function's entry point instead of a manually managed momentary
1355 breakpoint, and only ever issue one proceed call.
1356 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1357 doing a reverse-finish, switch to stepi mode, to do another step.
1358 (insert_step_resume_breakpoint_at_sal): Make public.
1359 (normal_stop): No need to save function value return registers if
1361 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1363 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1365 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1366 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1367 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
1369 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1370 step-resume breakpoints.
1371 (print_it_typical): Handle bp_hp_step_resume.
1372 (bpstat_what): Ditto.
1373 (bptype_string): Ditto.
1374 (print_one_breakpoint_location): Ditto.
1375 (allocate_bp_location): Ditto.
1377 (breakpoint_re_set_one): Ditto.
1378 * infrun.c (handle_inferior_event): Adjust. Split
1379 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1380 BPSTAT_WHAT_HP_STEP_RESUME.
1381 (insert_step_resume_breakpoint_at_sal): Rename to ...
1382 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
1383 parameter. Handle it.
1384 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1385 insert_step_resume_breakpoint_at_sal_1.
1386 (insert_step_resume_breakpoint_at_frame): Rename to ...
1387 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
1388 set a high-priority step-resume breakpoint.
1389 (insert_step_resume_breakpoint_at_frame): Adjust comment.
1390 (insert_step_resume_breakpoint_at_caller): Ditto.
1392 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1394 * breakpoint.c (iterate_over_related_breakpoints): New.
1395 (do_map_delete_breakpoint): New.
1396 (delete_command): Pass do_map_delete_breakpoint to
1397 map_breakpoint_numbers.
1398 (do_disable_breakpoint): New.
1399 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1401 (do_enable_breakpoint): Rename to ...
1402 (enable_breakpoint_disp): ... this.
1403 (enable_breakpoint): Adjust.
1404 (do_enable_breakpoint): New.
1405 (enable_once_breakpoint): Delete.
1406 (do_map_enable_breakpoint): New.
1407 (do_map_enable_once_breakpoint): New.
1408 (enable_once_command, enable_delete_command)
1409 (delete_trace_command): Iterate over the breakpoint's related
1412 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1414 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1415 for ALPHA_ZERO_REGNUM.
1416 (alpha_supply_int_regs): Explicitly supply zero as the value for
1417 ALPHA_ZERO_REGNUM in the register cache.
1418 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1420 2011-05-26 Yao Qi <yao@codesourcery.com>
1422 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1424 2011-05-26 Tristan Gingold <gingold@adacore.com>
1426 * symfile.h (struct dwarf2_section_names): New type.
1427 (struct dwarf2_debug_sections): New type.
1428 (dwarf2_has_info): Add parameter.
1429 * dwarf2read.c (dwarf2_elf_names): New variable.
1430 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1431 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1432 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1433 (dwarf2_has_info): Add names parameter. Pass names
1434 to dwarf2_locate_sections.
1435 (section_is_p): Rewrite using the names parameter.
1436 (dwarf2_locate_sections): Use section names from the names parameter.
1437 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1438 * elfread.c (read_psyms): Ditto.
1439 * machoread.c (macho_symfile_read): Ditto.
1441 2011-05-25 Andreas Schwab <schwab@redhat.com>
1444 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1446 2011-05-24 Keith Seitz <keiths@redhat.com>
1449 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1450 (decode_compound): Unconditionally call keep_name_info.
1452 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1454 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1455 scope, clear its command list.
1456 (map_breakpoint_numbers): Don't walk the related breakpoints list
1459 2011-05-24 Tom Tromey <tromey@redhat.com>
1461 * MAINTAINERS: Move Jim Blandy to past maintainers.
1463 2011-05-24 Tristan Gingold <gingold@adacore.com>
1465 * symfile.h (enum dwarf2_section_enum): New type.
1466 (dwarf2_get_section_info): New prototype.
1467 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1468 section_name by sect. Use a switch to select the info.
1469 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1470 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1472 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1474 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1475 shared library event breakpoint if there's no execution.
1477 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
1479 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1480 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1482 2011-05-23 Tom Tromey <tromey@redhat.com>
1484 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1487 2011-05-23 Doug Evans <dje@google.com>
1489 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1490 entry for RuntimeError to doc string.
1492 2011-05-23 Jerome Guitton <guitton@adacore.com>
1494 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1495 sequence for probing loops.
1497 2011-05-23 Pedro Alves <pedro@codesourcery.com>
1499 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1502 2011-05-21 Mark Kettenis <kettenis@gnu.org>
1504 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1505 zero as the value for %g0 in the register cache.
1506 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1507 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1509 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1511 * infrun.c (proceed): Set previous_inferior_ptid here.
1512 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1513 inferior_ptid, not null_ptid.
1514 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1515 (fetch_inferior_event): Nor here.
1517 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1519 * inf-loop.c (inferior_event_handler): Only output a message if
1522 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
1524 * MAINTAINERS: Update my e-mail address.
1526 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1528 * infrun.c (proceed): Switch the inferior event loop to
1529 INF_EXEC_COMPLETE if the target refused to resume from a
1532 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1534 * infcmd.c: Include "inf-loop.h".
1535 (step_once): When stepping into an inline subroutine, pretend the
1536 target has run. If the target can async, switch the inferior
1537 event loop to INF_EXEC_COMPLETE.
1538 * inferior.h (user_visible_resume_ptid): Declare.
1539 * infrun.c (user_visible_resume_ptid): New function, factored out
1542 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1543 that the current thread is running. Merge async and sync
1546 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1548 * infcmd.c (step_1): Simplify synchronous case.
1550 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1552 * tracepoint.c: Include exceptions.h.
1553 (TFILE_PID): Move higher in file.
1554 (tfile_open): Delay pushing the tfile target until we're assured
1555 the tfile header is present in the file. Wrap reading the initial
1556 newline-terminated lines in TRY_CATCH. Pop the target if the
1557 initial setup failed. Add the tfile's thread immediately
1558 aftwards, before any non-essential setup. Don't skip
1559 post_create_inferior if there are no traceframes present in the
1561 (tfile_close): Remove redundant check for null before xfree call.
1562 (tfile_thread_alive): New function.
1563 (init_tfile_ops): Register it as to_thread_alive callback.
1565 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1567 * tracepoint.c (tfile_open): Delete #if 0'd code.
1569 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1571 Fix -readnow for -gdwarf-4 unused type units.
1572 * dwarf2read.c (struct signatured_type): Remove the field offset.
1573 (create_signatured_type_table_from_index): Remove its initialization.
1574 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1575 instead. Add a complaint call.
1576 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1577 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1578 (lookup_signatured_type_at_offset, read_signatured_type)
1579 (write_one_signatured_type): Update the field for per_cu.
1581 2011-05-19 Tom Tromey <tromey@redhat.com>
1583 * python/py-inferior.c (python_inferior_exit): Use
1585 (python_on_resume): Likewise.
1587 2011-05-19 Matt Rice <ratmice@gmail.com>
1589 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1591 2011-05-19 Hui Zhu <teawater@gmail.com>
1593 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1595 2011-05-19 Hui Zhu <teawater@gmail.com>
1597 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1599 2011-05-18 Tom Tromey <tromey@redhat.com>
1601 * dwarf2read.c (dwarf2_add_field): Constify.
1602 * value.c (value_static_field): Constify.
1603 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1605 * ax-gdb.c (gen_static_field): Constify
1607 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1609 * linux-nat.c (kill_callback): Use SIGKILL first.
1611 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1613 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1615 2011-05-18 Tom Tromey <tromey@redhat.com>
1617 * value.c (value_fn_field): Constify.
1618 * symtab.c (gdb_mangle_name): Constify.
1619 * stabsread.c (update_method_name_from_physname): Make 'physname'
1621 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1622 const. Use explicit fputc_filtered loop.
1623 (pascal_type_print_base): Constify.
1624 * p-lang.h (pascal_type_print_method_args): Update.
1625 * linespec.c (add_matching_methods): Constify.
1626 (add_constructors): Likewise.
1627 * jv-typeprint.c (java_type_print_base): Constify.
1628 * gdbtypes.h (struct cplus_struct_type)
1629 <fn_fieldlist.fn_field.physname>: Now const.
1630 * dwarf2read.c (compute_delayed_physnames): Constify.
1631 (dwarf2_add_member_fn): Likewise.
1632 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1634 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1636 * infrun.c (resume): Mention which is the current thread, and its
1637 current PC in debug output.
1638 (prepare_to_proceed): Mention the thread switching in debug
1641 2011-05-18 Tom Tromey <tromey@redhat.com>
1643 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1644 path check. Use xmalloc and cleanups.
1645 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1647 2011-05-17 Tom Tromey <tromey@redhat.com>
1649 * cp-valprint.c (cp_print_value_fields): Catch errors from
1652 2011-05-17 Tom Tromey <tromey@redhat.com>
1654 * dwarf2read.c (dwarf2_get_die_type): Call
1655 get_die_type_at_offset.
1656 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1657 get_base_type function.
1659 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1661 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1664 2011-05-16 Doug Evans <dje@google.com>
1666 * python/py-auto-load.c (source_section_scripts): Mention objfile
1669 2011-05-15 Doug Evans <dje@google.com>
1671 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1672 (try_thread_db_load_from_pdir): Call it. If unable to find
1673 libthread_db in directory of libpthread, see if we're looking at
1674 the separate-debug-info copy.
1676 * python/py-autoload.c (print_script): Print "Missing" instead of
1677 "No" for missing scripts.
1678 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1680 2011-05-13 Doug Evans <dje@google.com>
1682 * ui-file.c (stdio_file_write_async_safe): Add comment.
1684 2011-05-14 Hui Zhu <teawater@gmail.com>
1686 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1688 2011-05-13 Doug Evans <dje@google.com>
1690 Support $pdir and $sdir in libthread-db-search-path.
1691 * NEWS: Mention $sdir,$pdir.
1692 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1693 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1694 (try_thread_db_load_from_sdir): New function.
1695 (try_thread_db_load_from_dir): New function.
1696 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1697 system directories if search of libthread-db-search-path fails,
1698 that is now done via $sdir.
1699 (has_libpthread): New function.
1700 (thread_db_load): Remove search for libthread_db in directory of
1701 libpthread, that is now done via $pdir.
1703 * NEWS: Mention "info auto-load-scripts".
1704 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1705 script_not_found_warning_printed.
1706 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1707 all callers updated. Initialize script_not_found_warning_printed.
1708 (get_auto_load_pspace_data_for_loading): New function.
1709 (maybe_add_script): New function.
1710 (source_section_scripts): Simplify. Only print one warning regardless
1711 of the number of auto-load scripts not found.
1712 (clear_section_scripts): Clear script_not_found_warning_printed.
1713 (auto_load_objfile_script): Record script in hash table.
1714 (count_matching_scripts): New function.
1715 (maybe_print_script): Renamed from maybe_print_section_script, all
1716 callers updated. Rewrite to use ui_out_*.
1717 (info_auto_load_scripts): Renamed from
1718 maintenance_print_section_scripts, all callers updated.
1719 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1720 renamed as "info auto-load-scripts".
1722 2011-05-13 Tom Tromey <tromey@redhat.com>
1724 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1725 (read_sleb128): Likewise.
1727 2011-05-13 Tom Tromey <tromey@redhat.com>
1729 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1732 2011-05-13 Doug Evans <dje@google.com>
1734 * linux-nat.c (debug_linux_nat_async): Delete.
1735 Replace all references to use debug_linux_nat instead.
1736 (show_debug_linux_nat_async): Delete.
1737 (sigchld_handler): Call ui_file_write_async_safe instead of
1739 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1740 * ui-file.c (struct ui_file): New member to_write_async_safe.
1741 (null_file_write_async_safe): New function.
1742 (ui_file_write_async_safe): New function.
1743 (set_ui_file_write_async_safe): New function.
1744 (ui_file_new): Initialize to_write_async_safe.
1745 (stdio_file_write_async_safe): New function.
1746 (struct stdio_file): New member fd.
1747 (stdio_file_new): Initialize to_write_async_safe, fd.
1748 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1750 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1751 (set_ui_file_write_async_safe): Declare.
1752 (ui_file_write_async_safe): Declare.
1754 2011-05-13 Tom Tromey <tromey@redhat.com>
1756 * utils.c (do_value_free): New function.
1757 (make_cleanup_value_free): Likewise.
1758 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1760 (dwarf2_loc_desc_needs_frame): Call
1761 make_cleanup_value_free_to_mark.
1762 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1763 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1765 (new_dwarf_expr_context): Don't call value_mark.
1766 * dwarf2-frame.c (execute_stack_op): Call
1767 make_cleanup_value_free_to_mark.
1768 * defs.h (make_cleanup_value_free): Declare.
1770 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1772 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1773 prepare_execute_command.
1774 * top.c (prepare_execute_command): Return cleanup.
1775 (execute_command): Use cleanup from prepare_execute_command.
1776 * top.h (prepare_execute_command): Change prototype to return
1778 * defs.h (struct value): Add opaque declaration.
1779 (make_cleanup_value_free_to_mark): Add prototype.
1780 * utils.c (do_value_free_to_mark): New function.
1781 (make_cleanup_value_free_to_mark): Likewise.
1783 2011-05-12 Tom Tromey <tromey@redhat.com>
1785 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1786 cast left-hand-side to unsigned.
1788 2011-05-12 Tom Tromey <tromey@redhat.com>
1791 * value.h (value_from_contents): Declare.
1792 * value.c (value_from_contents): New function.
1793 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1794 (dwarf2_get_die_type): New function.
1795 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1796 (allocate_piece_closure): Acquire reference to values.
1797 (read_pieced_value): Update for value-based expressions.
1798 (write_pieced_value): Likewise.
1799 (free_pieced_value_closure): Call value_free as needed.
1800 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1801 Update for value-based expressions.
1802 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1803 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1804 <get_base_type>: New field.
1805 (struct dwarf_expr_piece) <v.value>: Change type.
1806 <v.regno>: New field.
1807 (struct dwarf_expr_context) <mark>: New field.
1808 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1809 (dwarf_expr_pop, dwarf_expr_push): Remove.
1810 (dwarf_expr_push_address): Declare.
1811 * dwarf2expr.c (dwarf_arch_cookie): New global.
1812 (struct dwarf_gdbarch_types): New.
1813 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1815 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1817 (dwarf_expr_push_address): New function.
1818 (dwarf_expr_pop): Now static.
1819 (dwarf_expr_fetch): Change return type.
1820 (dwarf_require_integral): New function.
1821 (dwarf_expr_fetch): Simplify.
1822 (add_piece): Update.
1823 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1825 (execute_stack_op) <sign_ext>: Remove.
1826 Use values for DWARF stack.
1827 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1828 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1830 (_initialize_dwarf2expr): New function.
1831 (add_piece): Update.
1832 (new_dwarf_expr_context): Set new field.
1833 (free_dwarf_expr_context): Call value_free_to_mark.
1834 * dwarf2-frame.c (no_base_type): New function.
1835 (execute_stack_op): Set get_base_type field. Update.
1837 2011-05-12 Tom Tromey <tromey@redhat.com>
1839 * dwarf2read.c (read_common_block): Fix formatting.
1841 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1843 * breakpoint.c (disable_breakpoint): Disable all locations
1844 associated with a tracepoint on target if a trace experiment is
1846 (disable_command): Disable a specific tracepoint location on target if
1847 a trace experiment is running.
1848 (do_enable_breakpoint): Enable all locations associated with a
1849 tracepoint on target if a trace experiment is running.
1850 (enable_command) Enable a specific tracepoint location on target if a
1851 trace experiment is running.
1852 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1853 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1854 to_disable_tracepoint.
1855 * target.h: Add declaration of struct bp_location.
1856 (struct target_ops): Add new functions
1857 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1858 to_disable_tracepoint to target operations.
1859 (target_supports_enable_disable_tracepoint): New macro.
1860 (target_enable_tracepoint): New macro.
1861 (target_disable_tracepoint): New macro.
1862 * remote.c (struct remote_state): Add new field.
1863 (remote_enable_disable_tracepoint_feature): New.
1864 (remote_protocol_features): Add new entry.
1865 (remote_supports_enable_disable_tracepoint): New.
1866 (remote_enable_tracepoint): New.
1867 (remote_disable_tracepoint): New.
1868 (init_remote_ops): Add remote_enable_tracepoint,
1869 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1870 to remote operations.
1871 * tracepoint.c (start_tracing): Allow tracing to start without any
1872 tracepoints enabled with just a warning if they can be re-enabled
1874 * NEWS: Add news item for the new behaviour of the enable and disable
1875 GDB commands when applied to tracepoints.
1876 Add news items for the new remote packets QTEnable and QTDisable.
1878 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1880 * config.in: Regenerate.
1881 * configure: Regenerate.
1882 * configure.ac <--with-system-readline> (for readline_echoing_p):
1884 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1885 (tui_old_rl_echoing_p): ... here.
1886 (tui_setup_io): Rename extern declaration readline_echoing_p to
1887 _rl_echoing_p. Adjust assignments for the both renames.
1889 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1891 * symtab.c (lookup_symtab): Run cleanup before returning.
1893 2011-05-11 Tom Tromey <tromey@redhat.com>
1895 * dwarf2read.c (handle_data_member_location): New function.
1896 (dwarf2_add_field): Use it.
1897 (read_common_block): Likewise.
1899 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1901 Make addrs->SECTINDEX always defined.
1902 * symfile.c (relative_addr_info_to_section_offsets): Check for
1903 SECTINDEX -1, not for zero ADDR.
1904 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1905 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1906 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1909 2011-05-10 Doug Evans <dje@google.com>
1911 * linux-thread-db.c: Whitespace cleanup.
1912 (try_thread_db_load_1): Fix comment.
1914 * linux-thread-db.c (set_libthread_db_search_path): New function.
1915 (_initialize_thread_db): Add setter for libthread-db-search-path.
1917 2011-05-09 Doug Evans <dje@google.com>
1919 * NEWS: Mention --with-iconv-bin.
1920 * configure.ac: New option --with-iconv-bin.
1921 * configure: Regenerate.
1922 * config.in: Regenerate.
1923 * defs.h (relocate_gdb_directory): Declare.
1924 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1925 removed progname parameter, and exported. All callers updated.
1926 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1928 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1929 adding missing call to restore_child_signals_mask.
1931 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1933 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1935 * infrun.c (proceed, start_remote): Adjust.
1936 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1937 and adjust to not handle it.
1938 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1939 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1940 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1941 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1942 * windows-nat.c (do_initial_windows_stuff): Adjust.
1943 * infcmd.c (attach_command): Adjust.
1944 (notice_new_inferior): Adjust.
1946 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1948 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1949 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1950 * spu-tdep.c (op_selb): Use correct value.
1952 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1954 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1955 "parent" parameter to symbol_file_add_from_bfd call.
1957 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1958 Thiago Jung Bauermann <bauerman@br.ibm.com>
1960 Implement support for PowerPC BookE masked watchpoints.
1961 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1963 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1964 method. Initialize to NULL in all existing breakpoint_ops instances.
1965 (struct breakpoint) <hw_wp_mask>: New field.
1966 * breakpoint.c (is_masked_watchpoint): Add prototype.
1967 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1968 breakpoint's breakpoint_ops.works_in_software_mode if available.
1969 (watchpoints_triggered): Handle the case of a hardware masked
1971 (watchpoint_check): Likewise.
1972 (works_in_software_mode_watchpoint): New function.
1973 (insert_masked_watchpoint, remove_masked_watchpoint)
1974 (resources_needed_masked_watchpoint)
1975 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1976 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1977 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1979 (masked_watchpoint_breakpoint_ops): New structure.
1980 (watch_command_1): Check for the existence of the `mask' parameter.
1981 Set b->ops according to the type of hardware watchpoint being created.
1982 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1983 (ppc_linux_remove_mask_watchpoint)
1984 (ppc_linux_masked_watch_num_registers): New functions.
1985 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1986 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1987 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1988 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1989 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1990 (target_masked_watch_num_registers): New functions.
1991 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1992 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1994 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1995 (target_masked_watch_num_registers): Add prototypes.
1997 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2000 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
2001 (producer_is_gcc_ge_4_0): New function.
2002 (process_full_comp_unit): Set also symtab->locations_valid. Move the
2003 symtab->language code.
2004 (var_decode_location): Set cu->has_loclist.
2005 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
2006 skip. Intialize force_skip from locations_valid. Move the prologue
2007 skipping code into two passes.
2008 * symtab.h (struct symtab): Make the primary field a bitfield. New
2009 field locations_valid.
2011 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2013 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
2014 (classify_inner_name): Call cp_lookup_nested_type with
2016 * cp-namespace.c (cp_lookup_nested_type): New variable
2017 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
2018 type_name_no_tag_or_error with saved_parent_type.
2019 * dwarf2read.c (load_partial_dies): Read in any children of
2020 DW_TAG_typedef with complaint in such case.
2021 * gdbtypes.c (type_name_no_tag_or_error): New function.
2022 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
2023 * valops.c (destructor_name_p): New comment for parameter type. Remove
2024 type const. Make dname and cp const. Call type_name_no_tag_or_error.
2025 * value.h (destructor_name_p): Remove type const.
2027 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2029 * symtab.c (compare_symbol_name): New function.
2030 (completion_list_add_name, expand_partial_symbol_name): Call it,
2031 remove the variable ncmp.
2032 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
2035 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2037 Demote to sw watchpoint only in update_watchpoint.
2038 * breakpoint.c (update_watchpoint): Change between software and
2039 hardware watchpoint for all kinds of watchpoints, not just
2040 read/write ones. Determine b->exact value here instead of
2041 in watch_command_1. Error out if there are not enough resources
2042 for a read or access hardware watchpoint.
2043 (watch_command_1): Remove logic of checking whether there are
2044 enough resources available, since update_watchpoint will do that
2045 work now. Don't set b->exact here. Catch exceptions thrown by
2046 update_watchpoint and delete the watchpoint.
2047 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
2048 Use target_exact_watchpoints instead.
2049 (delete_breakpoint): Notify observers only if deleted watchpoint
2050 has a breakpoint number assigned to it.
2052 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
2054 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2056 2011-05-05 Jerome Guitton <guitton@adacore.com>
2058 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
2060 (i386_stack_tramp_frame_unwind): New static global.
2061 (i386_match_pattern): New function, extracted from i386_match_insn.
2062 (i386_match_insn): Use i386_match_pattern.
2063 (i386_match_insn_block): New function.
2064 (i386_tramp_chain_in_reg_insns)
2065 (i386_tramp_chain_on_stack_insns): New static variables.
2066 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
2069 2011-05-04 Joseph Myers <joseph@codesourcery.com>
2071 * configure.host (xscale*): Don't handle target.
2072 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
2075 2011-05-04 Yao Qi <yao@codesourcery.com>
2077 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
2079 2011-05-03 Joel Brobecker <brobecker@adacore.com>
2082 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
2083 | * elfread.c (elf_symtab_read): Stop memory leak.
2085 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2087 * nto-tdep.c (nto_target): Replace deprecated call to
2088 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
2090 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2092 Fix false GCC warning.
2093 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
2095 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2097 * breakpoint.c (update_watchpoint): Move code to change
2098 the enable state of breakpoint from here ...
2099 (do_enable_breakpoint): ... to here.
2101 2011-04-26 Andrew Gontarek <andrewg@cray.com>
2103 * valprint.c (val_print_array_elements): Fixed poor performance
2104 of printing very large arrays with repeat_count_threshold set
2105 to unlimited. New comment.
2107 2011-04-29 Tom Tromey <tromey@redhat.com>
2109 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
2110 (mi_parse): Likewise.
2111 * breakpoint.c (break_range_command): Use sizeof char*, not
2113 (create_breakpoint): Likewise.
2114 (parse_breakpoint_sals): Likewise.
2116 2011-04-29 Pedro Alves <pedro@codesourcery.com>
2118 * linux-nat.c (linux_child_remove_fork_catchpoint)
2119 (linux_child_remove_vfork_catchpoint)
2120 (linux_child_remove_exec_catchpoint): New functions.
2121 (linux_target_install_ops): Install them.
2123 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
2127 * varobj.c (install_default_visualizer): Do not install a
2128 visualizer if the varobj is CPLUS_FAKE_CHILD.
2129 (construct_visualizer): Likewise.
2131 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2133 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
2134 case insensitive comparison.
2136 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
2138 * infrun.c (proceed): Revert previous change.
2139 (resume): Instead, handle the case of signal delivery while stepping
2140 off a breakpoint location here, and only if software single-stepping
2141 is used. Handle nested signals.
2143 2011-04-28 Yao Qi <yao@codesourcery.com>
2145 * arm-tdep.c (copy_unmodified): Rename to ...
2146 (arm_copy_unmodified): .. this. New.
2147 (copy_preload): Move common part to ...
2148 (install_preload): .. this. New.
2149 (arm_copy_preload): New.
2150 (copy_preload_reg): Move common part to ...
2151 (install_preload_reg): ... this. New.
2152 (arm_copy_preload_reg): New.
2153 (copy_b_bl_blx): Move common part to ...
2154 (install_b_bl_blx): .. this. New.
2155 (arm_copy_b_bl_blx): New.
2156 (copy_bx_blx_reg): Move common part to ...
2157 (install_bx_blx_reg): ... this. New.
2158 (arm_copy_bx_blx_reg): New.
2159 (copy_alu_reg): Move common part to ...
2160 (install_alu_reg): ... this. New.
2161 (arm_copy_alu_reg): New.
2162 (copy_alu_shifted_reg): Move common part to ...
2163 (install_alu_shifted_reg): ... this. New.
2164 (copy_ldr_str_ldrb_strb): Move common part to ...
2165 (install_ldr_str_ldrb_strb): ... this. New.
2166 (arm_copy_ldr_str_ldrb_strb): New.
2167 (copy_copro_load_store): Move some common part to ...
2168 (install_copy_copro_load_store): ... this. New.
2169 (arm_copy_copro_load_store): New.
2171 (arm_copy_svc): Renamed from copy_svc.
2172 (copy_undef): Delete.
2173 (arm_copy_undef): Renamed from copy_undef.
2174 (decode_ext_reg_ld_st): Delete.
2175 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2176 (decode_svc_copro): Delete.
2177 (arm_decode_svc_copro): Renamed from decode_svc_copro.
2178 (copy_copro_load_store, copy_alu_imm): update callers.
2179 (copy_extra_ld_st, copy_block_xfer): Likewise.
2180 (decode_misc_memhint_neon, decode_unconditional): Likewise.
2181 (decode_miscellaneous, decode_dp_misc): Likewise.
2182 (decode_ld_st_word_ubyte, decode_media): Likewise.
2183 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
2184 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
2185 (decode_unconditional, decode_miscellaneous): Likewise.
2186 (decode_media, decode_b_bl_ldmstm): Likewise.
2187 (arm_process_displaced_insn): Likewise..
2188 (decode_misc_memhint_neon): Delete.
2189 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2190 (decode_miscellaneous): Delete.
2191 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2192 (decode_dp_misc): Delete.
2193 (arm_decode_dp_misc): Renamed from decode_dp_misc.
2194 (decode_ld_st_word_ubyte): Delete.
2195 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2196 (decode_media): Delete.
2197 (arm_decode_media): Renamed from decode_media.
2198 (decode_b_bl_ldmstm): Delete.
2199 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2200 (decode_ext_reg_ld_st): Delete.
2201 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2202 (decode_unconditional): Delete.
2203 (arm_decode_unconditional): Renamed from decode_unconditional.
2205 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2207 Case insensitive lookups implementation.
2208 * dwarf2read.c: Include ctype.h.
2209 (struct mapped_index): New field version.
2210 (mapped_index_string_hash): New parameter index_version. New comment
2211 for it. Call tolower appropriately.
2212 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2213 Choose the right index version for mapped_index_string_hash.
2214 (dwarf2_read_index): Support also the index version 5. Initialize the
2215 new struct mapped_index field version.
2216 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2217 (find_slot): Explain the version needs. Pass INT_MAX for the new
2219 (write_psymtabs_to_index): Produce version 5.
2220 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2221 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2222 * psymtab.c (lookup_partial_symbol): Find the
2223 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2225 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2227 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2228 (completion_list_add_name): New variable ncmp, initialize it, use it.
2229 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2230 * utils.c (strcmp_iw): Support case_sensitive_off.
2231 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2232 New function comment part. New variables saved_string1,
2233 saved_string2 and case_pass. Add a proper second pass.
2235 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2237 Replace re_comp/re_exec by regcomp/regexec.
2238 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2239 (search_symbols_name_matches): Use them, use regexec.
2240 (search_symbols): New variable retval_chain, adjust the use of
2241 old_chain against it. Replace re_comp by regcomp. Use the new struct
2242 search_symbols_data fields, use regexec instead of re_exec.
2244 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2246 Format the code for the next patch.
2247 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2248 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2249 New variables c1 and c2.
2251 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2253 * infrun.c (proceed): Do not single-step into signal delivery
2254 when stepping off a breakpoint location.
2255 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2256 (insert_step_resume_breakpoint_at_caller): Likewise.
2257 (insert_step_resume_breakpoint_at_sal): Likewise.
2258 (insert_longjmp_resume_breakpoint): Likewise.
2260 2011-04-27 Yao Qi <yao@codesourcery.com>
2262 * common/linux-ptrace.h: Remove include <sys/wait.h>.
2264 2011-04-27 Joel Brobecker <brobecker@adacore.com>
2266 * procfs.c (procfs_pass_signals): Fix advance declaration.
2268 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2270 * target.h (struct target_ops): Remove to_notice_signals;
2271 add to_pass_signals.
2272 (target_notice_signals): Remove.
2273 (target_pass_signals): Add prototype.
2274 * target.c (update_current_target): Remove to_notice_signals;
2275 mention to_pass_signals.
2276 (target_pass_signals): New function.
2277 (debug_to_notice_signals): Remove.
2278 (setup_target_debug): Do not install debug_to_notice_signals.
2280 * infrun.c (signal_pass): New global.
2281 (resume): Call target_pass_signals.
2282 (handle_inferior_event): Report all signals while stepping over
2283 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
2284 are re-inserted when stepping over a signal handler.
2285 (signal_cache_update): New function.
2286 (signal_stop_update): Call it.
2287 (signal_print_update): Likewise.
2288 (signal_pass_update): Likewise.
2289 (handle_command): Call signal_cache_update and target_pass_signals
2290 instead of target_notice_signals.
2291 (_initialize_infrun): Initialize signal_pass.
2293 * linux-nat.c (pass_mask): New global.
2294 (linux_nat_pass_signals): New function.
2295 (linux_nat_create_inferior): Report all signals initially.
2296 (linux_nat_attach): Likewise.
2297 (linux_nat_resume): Use pass_mask to decide whether to directly
2298 handle an inferior signal.
2299 (linux_nat_wait_1): Likewise.
2300 (linux_nat_add_target): Install to_pass_signals callback.
2302 * nto-procfs.c (notice_signals): Remove.
2303 (procfs_resume): Do not call notice_signals.
2304 (procfs_notice_signals): Remove.
2305 (procfs_pass_signals): New function.
2306 (init_procfs_ops): Install to_pass_signals callback instead of
2307 to_notice_signals callback.
2308 (_initialize_procfs): Report all signals initially.
2310 * procfs.c (procfs_notice_signals): Remove.
2311 (procfs_pass_signals): New function.
2312 (procfs_target): Install to_pass_signals callback instead of
2313 to_notice_signals callback.
2314 (register_gdb_signals): Remove.
2315 (procfs_debug_inferior): Report all signals initially.
2316 (procfs_init_inferior): Remove redundant register_gdb_signals call.
2318 * remote.c (remote_pass_signals): Add numsigs and pass_signals
2319 parameters; use them instead of calling signal_..._state routines.
2320 (remote_notice_signals): Remove.
2321 (remote_start_remote): Report all signals initially.
2322 (remote_resume): Do not call remote_pass_signals.
2323 (_initialize_remote): Install to_pass_signals callback instead of
2324 to_notice_signals callback.
2326 2011-04-27 Pedro Alves <pedro@codesourcery.com>
2328 * breakpoint.c (user_settable_breakpoint): Delete.
2329 (user_breakpoint_p): Remove check on user_settable_breakpoint.
2330 (delete_command): Check user_breakpoint_p instead of looking at
2331 the breakpoint's type.
2332 (disable_command): Ditto.
2333 (enable_command): Ditto.
2334 (delete_trace_command): Use user_breakpoint_p instead of looking
2335 at the breakpoint number directly. When checking if there are
2336 user visible tracepoints, in order to know whether to ask the user
2337 for confirmation, check whether the breakpoint is actually a
2340 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2342 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2345 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2347 MI breakpoint notifications.
2349 * annotate.c (breakpoint_changed): Adjust parameter type.
2350 * breakpoint.c (set_breakpoint_condition): Adjust to change
2351 in breakpoint_modified type.
2352 (breakpoint_set_commands): Likewise.
2353 (do_map_commands_command): Likewise.
2354 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2355 changed after bumping hit count.
2356 (bpstat_stop_status): Likewise.
2357 (print_one_breakpoint_location): Don't wrap in tuple here.
2358 (print_one_breakpoint): Always print individual locations.
2359 For locations, use unnamed tuple.
2360 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2362 (create_catchpoint, create_syscall_event_catchpoint): Call
2363 breakpoint_created obsever.
2364 (mention): Don't call breakpoint_created observer.
2365 (create_breakpoint_sal): Call breakpoint_created observer.
2366 (create_breakpoint, watch_command_1): Likewise.
2367 (create_ada_exception_breakpoint): Likewise.
2368 (delete_breakpoint): Call breakpoint_deleted breakpoint.
2369 (locations_are_equal): New.
2370 (update_breakpoint_locations): If locations were changed, notify.
2371 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2372 Call breakpoint_modified observer.
2374 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2375 (mi_cmd_break_insert): Don't set observers for modify and delete.
2376 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2377 (mi_breakpoint_created, mi_breakpoint_deleted)
2378 (mi_breakpoint_modified): New.
2379 (mi_interpreter_init): Hook the above.
2380 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2381 while -break-* commands are executing.
2382 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2383 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2385 (mi_ui_out_impl): Hook in mi_redirect.
2386 (mi_field_skip): True to the name, skip the field, don't output
2387 a field with an empty value.
2389 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2390 (gdbpy_breakpoint_deleted): Adjust.
2391 * tui/tui-hooks.c (tui_event_create_breakpoint)
2392 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2394 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
2396 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2397 (procfs_remove_hw_watchpoint): Likewise.
2399 2011-04-26 Michael Walle <michael@walle.cc>
2401 * remote.c (remote_start_remote): Ack packet after sending the
2404 2011-04-26 Yao Qi <yao@codesourcery.com>
2406 * linux-nat.c: Move common macros to ...
2407 Include linux-ptrace.h.
2408 * common/linux-ptrace.h: ... here. New.
2410 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2412 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2413 !objfile_has_partial_symbols. New comment.
2414 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2415 SYM_READ_PSYMBOLS is not present. Extend the comment.
2416 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2418 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2420 * defs.h (ENUM_BITFIELD): Remove.
2422 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2423 Eli Zaretskii <eliz@gnu.org>
2425 * NEWS: Document the new gdbserver --once option.
2427 2011-04-21 Jie Zhang <jzhang918@gmail.com>
2429 * MAINTAINERS: Update my email address.
2431 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2433 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2434 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2435 function call if __STDC_ISO_10646__ macro is defined.
2436 (intermediate_encoding): New prototype.
2437 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2438 to generate compile time error for unsupported gdb_wchar_t size.
2439 (ENDIAN_SUFFIX): New macro.
2440 (intermediate_encoding): New function.
2442 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2444 * ada-lang.c (struct add_partial_datum): Update the comment for
2445 expand_partial_symbol_name.
2446 (ada_add_partial_symbol_completions): Rename to ...
2447 (ada_expand_partial_symbol_name): ... here, change return type, update
2448 function comment, call symbol_completion_match instead of
2449 symbol_completion_add.
2450 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2451 and ada_expand_partial_symbol_name.
2452 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2454 (dw2_map_symbol_names): Remove.
2455 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2456 * psymtab.c (map_symbol_names_psymtab): Remove.
2457 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2458 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2460 (psym_functions): Unlist map_symbol_names_psymtab.
2461 (map_partial_symbol_names): Rename to ...
2462 (expand_partial_symbol_names): ... here, change the FUN type, call
2463 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2464 * psymtab.h (map_partial_symbol_names): Rename to ...
2465 (expand_partial_symbol_names): ... here, change the FUN type.
2466 * symfile.h (struct quick_symbol_functions): Update the description of
2467 expand_symtabs_matching. Remove map_symbol_names.
2468 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2469 (struct add_name_data): Update the comment for
2470 expand_partial_symbol_name.
2471 (add_partial_symbol_name): Rename to ...
2472 (expand_partial_symbol_name): ... here. Replace
2473 completion_list_add_name call by strncmp.
2474 (default_make_symbol_completion_list_break_on): Use now
2475 expand_partial_symbol_names and expand_partial_symbol_name.
2476 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2478 2011-04-20 Tom Tromey <tromey@redhat.com>
2480 * dwarf2read.c (save_gdb_index_command): Replace format
2481 documentation with a pointer to the manual.
2483 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2485 * regcache.c: Include remote.h.
2486 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2487 (regcache_dump): Handle regcache_dump_remote.
2488 (maintenance_print_remote_registers): New function.
2489 (_initialize_regcache): Install "maint print remote-registers"
2491 * remote.c (map_regcache_remote_table): New function, factored out
2493 (init_remote_state): ... here.
2494 (remote_register_number_and_offset): New.
2495 * remote.h (remote_register_number_and_offset): Declare.
2497 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2499 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2500 null_ptid, assume and allow a NULL address space, instead of
2501 asking the target for the ptid's address space.
2502 * infrun.c (ptid_is_pid): Remove assertion.
2504 2011-04-19 Tom Tromey <tromey@redhat.com>
2506 * windows-tdep.c (windows_xfer_shared_library):
2507 * windows-nat.c (get_module_name, windows_make_so):
2508 * v850-tdep.c (v850_handle_pushm):
2509 * utils.c (null_cleanup, gdb_realpath):
2510 * ui-out.c (get_next_header):
2511 * tracepoint.c (clear_traceframe_info):
2512 * symtab.c (lookup_symtab):
2513 * serial.h (struct serial_ops):
2514 * mipsread.c (read_alphacoff_dynamic_symtab):
2515 * infcmd.c (print_return_value):
2516 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2517 * f-exp.y (parse_number):
2518 * exceptions.c (catch_exceptions):
2519 * dummy-frame.c (dummy_frame_this_id):
2520 * defs.h (struct cleanup):
2521 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2522 * arm-tdep.c (arm_push_dummy_call):
2523 * amd64-tdep.h (amd64_collect_xsave):
2524 * amd64-tdep.c (amd64_collect_xsave):
2525 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2526 * README (typing): Remove duplicate words.
2527 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2528 * infrun.c (siginfo_value_read): Fix typo.
2529 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2530 * top.c (source_line_number): Add comma.
2532 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2534 * thread.c (any_live_thread_of_process): Prioritize threads
2535 that are not executing.
2536 * gdbthread.h (any_live_thread_of_process): Update comment
2537 as per above change.
2539 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2541 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2542 (scan_xcoff_symtab): Likewise.
2544 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2546 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2549 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2550 Pedro Alves <pedro@codesourcery.com>
2552 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2553 variables to simplify code and avoid == operator at end of
2554 line as this is against GNU coding standards.
2556 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2558 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2559 lm_name to name_lm to avoid conflict with lm_name function.
2561 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2563 ARI fixes: Use only lowercase function name for static functions.
2564 * nto-tdep.c (LM_ADDR): Rename to...
2565 (lm_addr): New function name.
2566 (nto_relocate_section_addresses): Adapt to change above.
2567 * solib-sunos.c (LM_ADDR): Rename to...
2568 (lm_addr): New function name.
2569 (LM_NEXT): Rename to...
2570 (lm_next): New function name.
2571 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2572 function name changes above.
2573 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2574 (lm_addr_from_link_map): New function name.
2575 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2576 (has_lm_dynamic_from_link_map): New function name.
2577 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2578 (lm_dynamic_from_link_map): New function name.
2579 (LM_ADDR_CHECK): Rename to...
2580 (lm_addr_check): New function name.
2581 (LM_NEXT): Rename to...
2582 (lm_next): New function name.
2583 (LM_PREV): Rename to...
2584 (lm_prev): New function name.
2585 (LM_NAME): Rename to...
2586 (lm_name): New function name.
2587 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2588 (ignore_first_link_map_entry): New function name.
2589 (svr4_keep_data_in_core): Adapt to function name changes above.
2590 (svr4_current_sos): Likewise.
2591 (enable_break): Likewise.
2592 (svr4_relocate_section_addresses): Likewise.
2594 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2597 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2598 sprintf. Simplify code and avoid loosing memory.
2599 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2600 (call0_frame_cache): Remove && operator from end of line.
2602 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2604 Fix libraries displacement if they change whether they were prelinked.
2605 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2606 does not match. Comment why.
2608 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2610 * corelow.c: Include wrapper.h.
2611 (core_open): Call now gdb_target_find_new_threads.
2612 * wrapper.c: Include target.h.
2613 (gdb_target_find_new_threads): New.
2614 * wrapper.h (gdb_target_find_new_threads): New declaration.
2616 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2618 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2619 even if !TARGET_HAS_EXECUTION.
2621 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2623 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2624 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2625 bfd_get_synthetic_symtab.
2626 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2627 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2628 parameter parent, remove the call to add_separate_debug_objfile.
2629 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2630 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2631 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2632 parent, new comment for it, call add_separate_debug_objfile for it.
2633 (symbol_file_add_separate): Pass objfile as the parameter parent,
2634 remove the call to add_separate_debug_objfile.
2635 (symbol_file_add_from_bfd): New parameter parent, pass it.
2636 (symbol_file_add): Pass NULL to the new parameter parent.
2637 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2639 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2641 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2644 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2646 Fix Python access to inlined frames.
2647 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2648 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2650 2011-04-15 Tom Tromey <tromey@redhat.com>
2652 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2654 2011-04-15 Gary Benson <gbenson@redhat.com>
2656 * MAINTAINERS: Add myself to write-after-approval section.
2658 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2660 * remote-sim.c (sim_command_completer): New function.
2661 (_initialize_remote_sim): Set completer to sim_command_completer.
2663 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2665 * breakpoint.c (print_exception_catchpoint): Rename to ...
2666 (print_it_exception_catchpoint): ... this.
2667 (gnu_v3_exception_catchpoint_ops): Update with new name
2668 for print_it_exception_catchpoint.
2670 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2672 * MAINTAINERS: Add myself for write after approval privileges.
2674 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2676 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2678 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2680 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2682 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2684 * breakpoint.c (save_breakpoints): Verify whether
2685 breakpoint_ops.print_recreate is defined before calling it.
2687 2011-04-11 Gary Benson <gbenson@redhat.com>
2689 Fix failure with --enable-maintainer-mode.
2690 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2692 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2695 * symtab.c (search_symbols): Reorder the KIND description in the
2696 function comment. Remove the unused 4th element of types, types2,
2697 types3 and types4. New gdb_assert on KIND.
2698 (symtab_symbol_info): Remove the unused 4th element of classnames.
2699 New gdb_assert on KIND.
2700 * symtab.h (enum search_domain): New warning in the enum comment.
2701 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2704 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2706 Fix crash of gdb save-index on a STABS file.
2707 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2710 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2712 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2713 * dwarf2read.c: Include ctype.h.
2714 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2716 (dwarf2_add_field): Fix new_field->accessibility by calling
2717 dwarf2_default_access_attribute. Restructure setting accessibility
2719 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2720 is_private and is_protected by calling
2721 dwarf2_default_access_attribute.
2723 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2725 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2726 to the initialization.
2728 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2730 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2733 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2735 Remove support for old Cygwin 1.5 versions.
2736 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2737 function on old Cygwin version.
2738 * windows-nat.c: Remove cygwin version check and always define
2739 __USEWIDE for Cygwin compilation.
2741 2011-04-07 Yao Qi <yao@codesourcery.com>
2743 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2745 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2746 (arm_copy_svc): Remove parameters INSN and TO.
2747 (decode_svc_copro): Update caller.
2748 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2749 from function pointer `copy_svc_os'.
2751 2011-04-07 Yao Qi <yao@codesourcery.com>
2753 * arm-tdep.c (cleanup_branch): Set a correct return address in
2754 LR for ARM and Thumb.
2756 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2759 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2760 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2761 in the function comment, a new note on values compatibility.
2762 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2763 * symtab.h (SYMBOL_HASH_NEXT): New.
2765 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2767 * ppc-linux-nat.c (check_condition): Add len output parameter.
2768 Set it based on the memory region referenced in the condition
2769 expression. Update all callers.
2771 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2773 Fix crash regression on systems featuring .gdb_index.
2774 * objfiles.c (free_objfile): Move the
2775 forget_cached_source_info_for_objfile call earlier. Comment it.
2776 Extend the comment for objfile_free_data.
2778 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2780 Fix regression of displaying the debug format.
2781 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2784 2011-04-04 Tom Tromey <tromey@redhat.com>
2786 * cli/cli-interp.c (struct captured_execute_command_args):
2788 (do_captured_execute_command): Remove.
2789 (safe_execute_command): Use TRY_CATCH.
2790 * cli/cli-script.c (struct wrapped_read_command_file_args):
2792 (wrapped_read_command_file): Remove.
2793 (script_from_file): Use TRY_CATCH.
2794 * exceptions.c (catch_exception): Remove.
2795 * exceptions.h (catch_exception): Remove.
2796 (deprecated_throw_reason): Update comment.
2797 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2798 argument to 'context'.
2799 (mi_execute_command): Use TRY_CATCH.
2800 * remote.c (struct start_remote_args): Remove.
2801 (remote_start_remote): Update; change arguments.
2802 (remote_open_1): Use TRY_CATCH.
2804 2011-04-04 Tom Tromey <tromey@redhat.com>
2806 * tracepoint.c (scope_info): Update.
2807 * symtab.c (decode_line_spec): Update.
2808 * python/python.c (gdbpy_decode_line): Update.
2809 * linespec.h (decode_line_1): Update.
2810 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2811 (decode_compound, find_method, symtab_from_filename)
2812 (decode_variable): Likewise.
2813 * cli/cli-cmds.c (edit_command): Update.
2814 (list_command): Update.
2815 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2817 (create_breakpoint): Update.
2818 (until_break_command): Update.
2819 (addr_string_to_sals): Update.
2820 (decode_line_spec_1): Update.
2822 2011-04-04 Tom Tromey <tromey@redhat.com>
2824 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2825 (do_captured_parse_breakpoint): Remove.
2826 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2827 Use TRY_CATCH directly.
2829 2011-04-04 Tom Tromey <tromey@redhat.com>
2831 * symtab.h (free_symtab): Remove.
2832 (forget_cached_source_info_for_objfile): Declare.
2833 * symmisc.c (free_symtab): Remove.
2834 * source.c (forget_cached_source_info_for_objfile): New function.
2835 (forget_cached_source_info): Use it.
2836 * objfiles.c (free_objfile): Simplify check before calling
2837 clear_current_source_symtab_and_line. Call
2838 forget_cached_source_info_for_objfile.
2840 2011-04-04 Tom Tromey <tromey@redhat.com>
2842 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2843 (new_symtab): Don't set `free_code' on symtab.
2844 (new_linetable): Properly handle size==0.
2845 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2846 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2848 * jv-lang.c (struct jv_per_objfile_data): New.
2849 (jv_per_objfile_free): Free the data.
2850 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2851 (get_java_class_symtab): Set the `dict' field on the
2852 jv_per_objfile_data.
2853 (free_class_block): Remove.
2854 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2857 2011-04-04 Tom Tromey <tromey@redhat.com>
2859 * symfile.c (reread_symbols): Update.
2860 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2862 * objfiles.c (allocate_objfile): Update.
2863 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2865 * cp-namespace.c (lookup_symbol_file): Don't call
2866 lookup_possible_namespace_symbol.
2867 (initialize_namespace_symtab, get_possible_namespace_block)
2868 (free_namespace_block, cp_check_possible_namespace_symbols)
2869 (check_possible_namespace_symbols_loop)
2870 (check_one_possible_namespace_symbol)
2871 (lookup_possible_namespace_symbol): Remove.
2872 (maintenance_cplus_namespace): Replace with notice.
2873 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2875 2011-04-04 Tom Tromey <tromey@redhat.com>
2877 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2878 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2879 * symmisc.c (free_symtab): Don't free debugformat.
2880 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2881 (record_debugformat, record_producer): Document.
2882 * buildsym.c (end_symtab): Don't save debugformat and producer
2884 (end_symtab): Don't free debugformat and producer fields.
2885 (record_debugformat): Don't call xstrdup.
2886 (record_producer): Likewise.
2888 2011-04-04 Tom Tromey <tromey@redhat.com>
2890 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2891 (source_line_charpos, source_charpos_line): Remove.
2893 2011-04-04 Tom Tromey <tromey@redhat.com>
2895 * symtab.h (domain_enum): Split in two...
2896 (enum search_domain): New.
2897 (search_symbols): Update.
2898 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2899 redundant declarations.
2900 (search_symbols): Change 'kind' argument to search_domain.
2902 (print_symbol_info): Likewise.
2903 (symtab_symbol_info): Likewise.
2904 * symfile.h (struct quick_symbol_functions)
2905 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2906 <expand_symtabs_matching>: Likewise.
2907 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2908 (expand_symtabs_matching_via_partial): Update.
2909 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2910 (dw2_expand_symtabs_for_function): Update.
2911 * block.h: Moved anonymous enum...
2912 * defs.h (enum block_enum): ... here. Now named.
2914 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2916 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2917 * version.in: Bump version to 7.3.50.20110403-cvs.
2919 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2921 * NEWS: Create a new section for the next release branch.
2922 Rename the section of the current branch, now that it has
2925 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2927 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2928 for "fpscr" in target description.
2930 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2932 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2933 initialize it. Delay HASH initialization. Strip the part after open
2934 parenthesis for languages with qualifiers. Call do_cleanups.
2936 2011-04-01 Tom Tromey <tromey@redhat.com>
2938 * utils.c (report_command_stats): Don't print `-' for negative
2941 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2943 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2944 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2947 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2949 * breakpoint.h (bpdisp_text): Add declaration.
2950 * breakpoint.c (bpdisp_text): Make non-static.
2951 * ada-lang.c: #include "mi/mi-common.h".
2952 (print_it_exception): Rewrite to improve GDB/MI output.
2954 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2956 * arm-tdep.h (struct address_space): Add forward declaration.
2958 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2960 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2961 * arm-tdep.c (arm_override_mode): New global.
2962 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2963 execution mode heuristics.
2964 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2965 second single-step breakpoint if needed, using
2966 arm_insert_single_step_breakpoint.
2967 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2968 ARM execution mode, do not call thumb_get_next_pc_raw.
2969 (arm_get_next_pc): Encode execution mode in return value. Call
2970 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2971 (arm_insert_single_step_breakpoint): New function.
2972 (arm_software_single_step): Call it.
2973 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2974 argument to return execution mode of sigreturn target.
2975 (arm_linux_syscall_next_pc): Use it.
2976 (arm_linux_copy_svc): Update call.
2977 (arm_linux_software_single_step): Call
2978 arm_insert_single_step_breakpoint.
2980 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2982 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2985 2011-03-31 Tom Tromey <tromey@redhat.com>
2987 * varobj.c (update_dynamic_varobj_children): Properly handle
2988 errors from iterator.
2990 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2992 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2993 struct linkage name twice.
2995 2011-03-31 Tom Tromey <tromey@redhat.com>
2997 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2998 missing ">" to message.
3000 2011-03-31 Tom Tromey <tromey@redhat.com>
3002 * varobj.c (instantiate_pretty_printer): Remove duplicate
3005 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
3007 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
3008 if neither saved value nor register available (e.g. signal frame).
3010 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3012 * macroexp.c (expand): Avoid uninitialized variable
3015 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3017 * breakpoint.c (break_range_command): Fix typo in comment.
3019 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3020 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3022 Implement support for PowerPC BookE ranged breakpoints.
3023 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
3024 * breakpoint.h (struct bp_target_info) <length>: New member
3026 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
3027 instead of struct breakpoint as argument, and also add ASPACE
3028 and BP_ADDR arguments. Update all callers.
3029 (struct breakpoint_ops) <print_one_detail>: New method.
3030 (struct breakpoint) <addr_string_range_end>: New member variable.
3031 * breakpoint.c (breakpoint_location_address_match): Add function
3033 (insert_bp_location): Set bl->target_info.length.
3034 (breakpoint_here_p): Call breakpoint_location_address_match.
3035 (moribund_breakpoint_here_p): Likewise.
3036 (regular_breakpoint_inserted_here_p): Likewise.
3037 (breakpoint_thread_match): Likewise.
3038 (bpstat_stop_status): Likewise.
3039 (bpstat_check_location): Move call to
3040 breakpoint_ops.breakpoint_hit to the top.
3041 (print_one_breakpoint_location): Call
3042 breakpoint_ops.print_one_detail if available.
3043 (breakpoint_address_match_range): New function.
3044 (breakpoint_location_address_match): Likewise.
3045 (breakpoint_locations_match): Compare the length field of the
3047 (hw_breakpoint_used_count): Count resources used by all locations
3048 in a breakpoint, and use breakpoint_ops.resources_needed if
3050 (breakpoint_hit_ranged_breakpoint): New function.
3051 (resources_needed_ranged_breakpoint): Likewise.
3052 (print_it_ranged_breakpoint): Likewise.
3053 (print_one_ranged_breakpoint): Likewise.
3054 (print_one_detail_ranged_breakpoint): Likewise.
3055 (print_mention_ranged_breakpoint): Likewise.
3056 (print_recreate_ranged_breakpoint): Likewise.
3057 (ranged_breakpoint_ops): New structure.
3058 (find_breakpoint_range_end): New function.
3059 (break_range_command): Likewise.
3060 (delete_breakpoint): Free addr_string_range_end.
3061 (update_breakpoint_locations): Add SALS_END argument. Update
3062 all callers. Calculate breakpoint length if a non-zero SALS_END
3063 is given. Call breakpoint_locations_match instead of
3064 breakpoint_address_match.
3065 (reset_breakpoint): Find SaL of the end of the range if B is a
3067 (_initialize_breakpoint): Register break-range command.
3068 * defs.h (print_core_address): Add function prototype.
3069 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
3071 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
3072 (ppc_linux_remove_hw_breakpoint): Likewise.
3073 (_initialize_ppc_linux_nat): Initialize
3074 to_ranged_break_num_registers.
3075 * target.c (update_current_target): Add comment about
3076 to_ranged_break_num_registers.
3077 (target_ranged_break_num_registers): New function.
3078 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3080 (target_ranged_break_num_registers): Add function prototype.
3081 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
3082 * utils.c (print_core_address): ... here.
3084 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
3086 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
3087 variable compiler warning.
3089 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
3091 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
3093 (re_set_breakpoint): ... to here ...
3094 (addr_string_to_sals): ... and here.
3096 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3098 * Makefile.in (SFILES): Add missing C sources.
3099 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
3100 Add missing headers.
3102 2011-03-29 Mike Frysinger <vapier@gentoo.org>
3104 * .gitignore: New file.
3106 2011-03-29 Mike Frysinger <vapier@gentoo.org>
3108 * NEWS: Mention new cfi device simulation.
3110 2011-03-29 Tom Tromey <tromey@redhat.com>
3112 * dwarf2read.c (fixup_partial_die): Handle linkage name on
3113 otherwise anonymous types.
3114 (dwarf2_name): Likewise.
3115 * valops.c (value_struct_elt_for_reference): Refine artificial
3116 type logic. Call error if j==-1.
3118 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
3120 Fix false GCC warning.
3121 * infcall.c (find_function_addr): Initialize funaddr.
3123 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
3125 Fix mingw compilation with --enable-targets=all.
3126 * remote-mips.c (gdb_usleep.h): Include header.
3127 (mips_enter_debug): Use gdb_usleep instead of sleep.
3129 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3131 Support resolution of STT_GNU_IFUNC via breakpoints.
3132 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
3133 bp_gnu_ifunc_resolver_return.
3134 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
3135 the loop. Support bp_gnu_ifunc_resolver and
3136 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
3137 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
3139 (bptype_string, print_one_breakpoint_location): Support
3140 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
3141 (user_settable_breakpoint): Return true also for
3142 bp_gnu_ifunc_resolver.
3143 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
3144 bp_gnu_ifunc_resolver_return.
3145 (set_breakpoint_location_function): New parameter explicit_loc,
3146 describe it. Call find_pc_partial_function_gnu_ifunc with new
3147 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
3148 EXPLICIT_LOC is not set.
3149 (set_raw_breakpoint): Set EXPLICIT_LOC for
3150 set_breakpoint_location_function.
3151 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
3152 set_breakpoint_location_function.
3153 (mention): Support bp_gnu_ifunc_resolver and
3154 bp_gnu_ifunc_resolver_return.
3155 (add_location_to_breakpoint): Set EXPLICIT_LOC for
3156 set_breakpoint_location_function.
3157 (update_breakpoint_locations): Remove static.
3158 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
3159 bp_gnu_ifunc_resolver_return.
3160 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
3161 bp_gnu_ifunc_resolver_return.
3162 (update_breakpoint_locations): New declaration.
3163 * elfread.c: Include gdbthread.h and regcache.h.
3164 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
3166 (elf_gnu_ifunc_fns): Install them.
3167 * minsyms.c (stub_gnu_ifunc_resolver_stop)
3168 (stub_gnu_ifunc_resolver_return_stop): New functions.
3169 (stub_gnu_ifunc_fns): Install them.
3170 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
3171 and gnu_ifunc_resolver_return_stop.
3172 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
3174 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3176 STT_GNU_IFUNC reader implementation.
3177 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
3178 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
3179 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
3180 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
3181 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
3182 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
3183 (elf_gnu_ifunc_resolve_addr): New.
3184 (elf_symfile_read): Call elf_rel_plt_read.
3185 (elf_gnu_ifunc_fns): New.
3186 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
3187 Install elf_gnu_ifunc_fns.
3188 * infcall.c (find_function_return_type): New function.
3189 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3190 * minsyms.c (stub_gnu_ifunc_resolve_addr)
3191 (stub_gnu_ifunc_resolve_name): New functions.
3192 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3193 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3194 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3196 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3198 Code cleanup for later STT_GNU_IFUNC support.
3199 * infcall.c (find_function_addr): Remove variable code, use explicit
3200 dereferences for it. Move VALUE_TYPE initialization later.
3202 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3204 GDB find_pc_partial_function support for STT_GNU_IFUNC.
3205 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3206 (clear_pc_function_cache): Clear it.
3207 (find_pc_partial_function): Rename to ...
3208 (find_pc_partial_function_gnu_ifunc): ... this function. New
3209 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
3210 (find_pc_partial_function): New wrapper for this function.
3211 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3213 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3215 GDB internal type support for STT_GNU_IFUNC.
3216 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3217 (elf_symtab_read): Set mst_text_gnu_ifunc for
3218 BSF_GNU_INDIRECT_FUNCTION.
3219 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3220 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3221 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3222 nodebug_got_plt_symbol.
3223 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3224 (TYPE_GNU_IFUNC): New.
3225 (struct main_type): New field flag_gnu_ifunc.
3226 (struct builtin_type): New field builtin_func_func.
3227 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3228 nodebug_got_plt_symbol.
3229 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3230 (in_gnu_ifunc_stub): New.
3231 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3233 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3234 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3235 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3237 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3238 * symtab.c (search_symbols): Likewise.
3239 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3240 and mst_slot_got_plt.
3241 (in_gnu_ifunc_stub): New declaration.
3243 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3245 Support a ring of related breakpoints.
3246 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3247 other functions, add gdb_assert.
3248 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3249 watchpoint_del_at_next_stop.
3250 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3251 (bpstat_stop_status): Handle ring in related_breakpoint.
3252 (set_raw_breakpoint_without_location): Initialize ring in
3254 (delete_breakpoint): Handle ring in related_breakpoint, use
3255 watchpoint_del_at_next_stop.
3256 (map_breakpoint_numbers): Handle ring in related_breakpoint.
3258 2011-03-28 Tom Tromey <tromey@redhat.com>
3261 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3262 with `language_minimal'.
3264 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
3266 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3267 instead of checking for STT_ARM_TFUNC symbol type.
3269 2011-03-25 Tom Tromey <tromey@redhat.com>
3271 * linespec.c (symbol_found): Restore line-based result for
3272 non-LOC_LABEL symbols.
3274 2011-03-25 Kai Tietz <ktietz@redhat.com>
3276 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3277 instead of strcmp for comparison.
3278 (tui_source_is_displayed): Likewise.
3279 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3281 2011-03-24 Mark Wielaard <mjw@redhat.com>
3283 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3285 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3286 (find_partial_die_in_comp_unit): Likewise in comment.
3287 (read_attribute_value): Likewise.
3288 (lookup_die_type): Likewise.
3289 (dwarf_form_name): Likewise.
3290 (dump_die_shallow): Likewise.
3291 (follow_die_ref_or_sig): Likewise.
3293 2011-03-24 Tom Tromey <tromey@redhat.com>
3295 PR breakpoints/11816:
3296 * linespec.c (decode_line_1): Parse `function:label' linespecs.
3297 (decode_compound): Update.
3298 (find_function_symbol): New function.
3299 (decode_dollar): Update.
3300 (decode_label): Add 'function_symbol' parameter. Handle
3301 function-relative labels.
3302 (decode_variable): Update.
3303 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
3304 not its line. Set `special_display' and canonical name for
3307 2011-03-24 Tom Tromey <tromey@redhat.com>
3309 * linespec.h (struct linespec_result) <special_display>: New
3311 * breakpoint.h (struct breakpoint) <display_canonical>: New
3313 * breakpoint.c (print_breakpoint_location): Respect
3315 (create_breakpoint_sal): Add 'display_canonical' parameter.
3316 (create_breakpoints_sal): Update.
3317 (create_breakpoint): Update.
3319 2011-03-24 Tom Tromey <tromey@redhat.com>
3321 * symtab.c (decode_line_spec): Update.
3322 * linespec.c (build_canonical_line_spec): Change type of
3324 (decode_line_2, decode_line_1, decode_objc, decode_compound)
3325 (find_method, decode_all_digits, decode_dollar, decode_label)
3326 (symbol_found): Likewise.
3327 (init_linespec_result): New function.
3328 * breakpoint.c (struct captured_parse_breakpoint_args)
3329 <canonical_p>: New field, replaces addr_string_p.
3330 (create_breakpoints_sal): Add 'canonical' parameter, replacing
3332 (parse_breakpoint_sals): Likewise.
3333 (do_captured_parse_breakpoint): Update.
3334 (create_breakpoint): Use struct linespec_result.
3335 (until_break_command): Update.
3336 (breakpoint_re_set_one): Update.
3337 (decode_line_spec_1): Update.
3338 * linespec.h (struct linespec_result): New.
3339 (init_linespec_result): Declare.
3341 2011-03-23 Pedro Alves <pedro@codesourcery.com>
3343 * regcache.c (regcache_raw_read): If the target didn't supply a
3344 given raw register, mark it as unavailable.
3346 2011-03-23 Kai Tietz <ktietz@redhat.com>
3348 * breakpoint.c (clear_command): Use filename_cmp
3349 instead of strcmp for comparison.
3350 * buildsym.c (watch_main_source_file_lossage): Likewise.
3351 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3352 checking just for slash.
3353 * dbxread.c (read_dbx_symtab): Use lbasename instead of
3354 strrchr and filename_cmp instead of strcmp for filenames.
3355 (add_old_header_file): Use filename_cmp
3356 instead of strcmp for comparison.
3357 * exec.c (exec_set_section_address): Likewise.
3358 * macrotab.c (macro_lookup_inclusion): Likewise.
3359 (macro_lookup_inclusion): Likewise.
3360 * elfread.c (_initialize_elfread): Likewise.
3361 (elfstab_offset_sections): Likewise.
3362 (elfstab_offset_sections): Use lbasename instead of
3364 * mdebugread.c (parse_partial_symbols): Likewise.
3365 (arse_partial_symbols): Use filename_(n)cmp instead of
3366 str(n)cmp for comparison.
3367 * minsyms.c (lookup_minimal_symbol): Likewise.
3368 * psymtab.c (read_psymtabs_with_filename): Likewise.
3369 * solib.c (solib_read_symbols): Likewise.
3370 (reload_shared_libraries_1): Likewise.
3371 * symmisc.c (maintenance_print_symbols): Likewise.
3372 * symfile.c (separate_debug_file_exists): Likewise.
3373 (reread_symbols): Likewise.
3374 (find_separate_debug_file_by_debuglink): Likewise.
3375 * remote-fileio.c (remote_fileio_func_rename): Likewise.
3376 * source.c (add_path): Likewise.
3377 * symtab.c (filename_seen): Likewise.
3378 (file_matches): Likewise.
3379 (print_symbol_info): Likewise.
3380 (maybe_add_partial_symtab_filename): Likewise.
3381 (make_source_files_completion_list): Likewise.
3382 * xml-syscall.c (init_sysinfo): Likewise.
3383 * windows-nat.c (_initialize_check_for_gdb_ini): Use
3384 IS_DIR_SEPARATOR for checking for trailing path separator.
3386 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3388 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
3389 label abort_expression.
3390 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3391 DWARF_VALUE_OPTIMIZED_OUT.
3393 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3396 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3397 to linkage_name. Invert its value. Update the function comment.
3398 (c_type_print_varspec_suffix): Invert it at the caller.
3399 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3401 2011-03-22 Pedro Alves <pedro@codesourcery.com>
3403 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3404 errors when reading the `stop_pc'.
3405 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3408 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3410 * NEWS: Document gdb.Write stream keyword.
3412 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3415 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3416 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3417 (dwarf2_add_field): Fix new_field->accessibility for
3418 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3420 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3424 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3425 other error classes. Do not print stack trace.
3427 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3429 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3430 (dwarf2_add_field): Fix new_field->accessibility for
3431 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3433 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
3435 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3436 encountering a load via a non-SP register.
3438 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3440 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3441 field in returned unwinder.
3443 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3445 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3447 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3449 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3452 2012-03-18 Pedro Alves <pedro@codesourcery.com>
3454 * frame.c (frame_unwind_register): Throw an error if unwinding the
3456 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3457 an unwind stop reason.
3458 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3459 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3460 UNWIND_UNAVAILABLE>: New.
3461 * inline-frame.c (inline_frame_unwind): Install
3462 default_frame_unwind_stop_reason.
3463 * frame-unwind.c: Include "exceptions.h".
3464 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3465 (default_frame_unwind_stop_reason): New.
3466 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3467 (default_frame_unwind_stop_reason): Declare.
3468 (struct frame_unwind) <stop_reason>: New function pointer.
3470 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3471 * dwarf2-frame.c: Include exceptions.h.
3472 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3473 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3474 computing the CFA. If such an error was thrown, set
3475 unavailable_retaddr.
3476 (dwarf2_frame_unwind_stop_reason): New.
3477 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3479 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3480 (dwarf2_signal_frame_unwind): Ditto.
3482 * amd64-tdep.c: Include "exceptions.h".
3483 (struct amd64_frame_cache): New field "base_p".
3484 (amd64_init_frame_cache): Clear it.
3485 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3486 Avoid reading registers with functions that throw if the register
3487 is not necessary to compute the frame base.
3488 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3489 swallowing NOT_AVAILABLE_ERROR.
3490 (amd64_frame_unwind_stop_reason): New.
3491 (amd64_frame_this_id): Don't build a frame id if the frame base
3493 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3494 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3495 base_p if the frame base was computable.
3496 (amd64_sigtramp_frame_unwind_stop_reason): New.
3497 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3498 frame base was unavailable.
3499 (amd64_sigtramp_frame_unwind): Install
3500 amd64_sigtramp_frame_unwind_stop_reason.
3501 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3502 base_p if the frame base was computable.
3503 (amd64_epilogue_frame_unwind_stop_reason): New.
3504 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3505 frame base was unavailable.
3506 (amd64_epilogue_frame_unwind): Install
3507 amd64_epilogue_frame_unwind_stop_reason.
3508 * i386-tdep.c: Include "exceptions.h".
3509 (struct i386_frame_cache): New field "base_p".
3510 (i386_init_frame_cache): Clear it.
3511 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3512 Avoid reading registers with functions that throw if the register
3513 is not necessary to compute the frame base.
3514 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3515 swallowing NOT_AVAILABLE_ERROR.
3516 (i386_frame_unwind_stop_reason): New.
3517 (i386_frame_this_id): Don't build a frame id if the frame base was
3519 (i386_frame_prev_register): Handle unavailable SP.
3520 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3521 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3522 base_p if the frame base was computable.
3523 (i386_epilogue_frame_unwind_stop_reason): New.
3524 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3525 base was unavailable.
3526 (i386_epilogue_frame_unwind): Install
3527 i386_epilogue_frame_unwind_stop_reason.
3528 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3529 base_p if the frame base was computable.
3530 (i386_sigtramp_frame_unwind_stop_reason): New.
3531 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3532 base was unavailable.
3533 (i386_sigtramp_frame_unwind): Install
3534 i386_sigtramp_frame_unwind_stop_reason.
3535 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3536 type's size, not the register's.
3537 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3539 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3540 default_frame_unwind_stop_reason.
3541 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3542 (alpha_heuristic_frame_unwind): Ditto.
3543 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3544 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3545 * avr-tdep.c (avr_frame_unwind): Ditto.
3546 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3548 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3549 * frv-tdep.c (frv_frame_unwind): Ditto.
3550 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3551 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3552 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3553 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3554 (hppa_stub_frame_unwind): Ditto.
3555 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3556 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3557 (ia64_libunwind_frame_unwind)
3558 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3559 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3560 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3561 * m32c-tdep.c (m32c_unwind): Ditto.
3562 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3563 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3564 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3565 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3566 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3567 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3568 * mep-tdep.c (mep_frame_unwind): Ditto.
3569 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3570 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3571 (mips_stub_frame_unwind): Ditto.
3572 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3573 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3574 * mt-tdep.c (mt_frame_unwind): Ditto.
3575 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3576 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3577 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3578 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3579 (s390_sigtramp_frame_unwind): Ditto.
3580 * score-tdep.c (score_prologue_unwind): Ditto.
3581 * sh-tdep.c (sh_frame_unwind): Ditto.
3582 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3583 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3584 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3585 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3586 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3587 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3588 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3589 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3590 (sparc64obsd_trapframe_unwind): Ditto.
3591 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3592 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3593 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3594 * v850-tdep.c (v850_frame_unwind): Ditto.
3595 * vax-tdep.c (vax_frame_unwind): Ditto.
3596 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3597 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3598 * xtensa-tdep.c (xtensa_unwind): Ditto.
3600 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3602 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3603 there's always a frame. Use get_frame_pc_if_available instead of
3604 get_frame_pc, and if there's no PC available, don't look up a
3607 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3609 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3612 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3614 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3617 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3619 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3620 * frame.c (frame_unwind_caller_pc_if_available): New.
3621 * stack.c (frame_info): Handle unavailable PC.
3623 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3625 * frame.c (frame_unwind_pc): Rename to ...
3626 (frame_unwind_pc_if_available): ... this. New `pc' output
3627 parameter. Change return type to int. Gracefully handle
3628 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3629 happened, or 1 otherwise.
3630 (frame_unwind_pc): Reimplement on top of
3631 frame_unwind_pc_if_available.
3632 (get_frame_func): Rename to ...
3633 (get_frame_func_if_available): New `pc' output parameter. Change
3634 return type to int. Gracefully handle the PC not being available.
3635 (get_frame_func): Reimplement on top of
3636 get_frame_func_if_available.
3637 (select_frame): Handle the PC being unavailable.
3638 (get_prev_frame): Handle the PC being unavailable.
3639 (get_frame_pc_if_available): New.
3640 (get_frame_address_in_block_if_available): New.
3641 (find_frame_sal): Handle the frame PC not being available.
3642 * frame.h (get_frame_pc_if_available): Declare.
3643 (get_frame_address_in_block_if_available): Declare.
3644 (get_frame_func_if_available): Declare.
3645 * stack.c (print_frame_info): Handle the PC being unavailable.
3646 (find_frame_funname): Ditto.
3647 (print_frame): Handle the PC being unavailable.
3648 (get_frame_language): Ditto.
3649 * blockframe.c (get_frame_block): Ditto.
3650 * macroscope.c (default_macro_scope): Ditto.
3651 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3653 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3655 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3656 NOT_AVAILABLE_ERROR when evaluating the location expression.
3658 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3660 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3661 returning that the register piece is unavailable/optimized out.
3662 (write_pieced_value): Handle get_frame_register_bytes returning
3663 that the register piece is unavailable/optimized out when doing a
3664 read-modify write of a bitfield.
3665 * findvar.c (value_from_register): Handle get_frame_register_bytes
3666 returning that the register piece is unavailable/optimized out.
3667 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3668 and `unavailablep'. Throw error on bad debug info. Use
3669 frame_register instead of frame_register_read, to fill in the new
3671 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3673 * valops.c: (value_assign): Adjust, and handle
3674 get_frame_register_bytes failing.
3675 * spu-tdep.c: Include exceptions.h.
3676 (spu_software_single_step): Adjust, and handle
3677 get_frame_register_bytes failing.
3678 (spu_get_longjmp_target): Ditto.
3679 * gdbarch.sh (register_to_value): Change to return int. New
3680 parameters `optimizedp' and `unavailablep'.
3681 * gdbarch.h, gdbarch.c: Regenerate.
3682 * i386-tdep.c (i386_register_to_value): Adjust to new
3683 gdbarch_register_to_value interface.
3684 * i387-tdep.c (i387_register_to_value): Ditto.
3685 * i387-tdep.h (i387_register_to_value): Ditto.
3686 * alpha-tdep.c (alpha_register_to_value): Ditto.
3687 * ia64-tdep.c (ia64_register_to_value): Ditto.
3688 * m68k-tdep.c (m68k_register_to_value): Ditto.
3689 * mips-tdep.c (mips_register_to_value): Ditto.
3690 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3692 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3694 * findvar.c (value_of_register): Mark the value as unavailable, if
3695 the register is unavailable.
3696 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3697 (frame_register): New `unavailablep' parameter.
3698 (frame_register_read): Update comment.
3699 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3700 Set it if the register is unavailable. If the register is
3701 unavailable, clear the output buffer.
3702 (frame_register): New `unavailablep' parameter. Pass it down.
3703 (frame_unwind_register): Adjust.
3704 (put_frame_register): Adjust.
3705 (frame_register_read): Adjust. Also return false if the register
3707 (frame_register_unwind_location): Adjust.
3708 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3709 is unavailable, mark the value accordingly.
3710 * stack.c (frame_info): Handle unavailable registers.
3712 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3714 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3715 simplify, using regcache_cooked_read.
3717 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3719 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3720 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3721 (regcache_raw_read_unsigned, regcache_raw_read_part)
3722 (regcache_cooked_read, regcache_cooked_read_signed)
3723 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3724 (regcache_cooked_read_ftype): Change return to enum
3726 * regcache.c: Include exceptions.h
3727 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3728 (do_cooked_read): Change return to enum register_status. Always
3729 forward to regcache_cooked_read.
3730 (regcache_raw_read): Change return to enum register_status. If
3731 the register is not REG_VALID, memset the buffer. Return the
3733 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3734 return the register's status.
3735 (regcache_raw_read_unsigned): Ditto.
3736 (regcache_cooked_read): Change return to enum register_status.
3737 Assert that with read-only regcaches, the register's status must
3738 be known. If the regcache is read-only, and the register is not
3739 REG_VALID, memset the buffer. Return the register's status.
3740 (regcache_cooked_read_signed): Change return to enum
3741 register_status. Handle non-REG_VALID registers and return the
3743 (regcache_cooked_read_unsigned): Change return to enum
3744 register_status. Handle non-REG_VALID registers and return the
3746 (regcache_xfer_part, regcache_raw_read_part)
3747 (regcache_cooked_read_part): Change return to enum
3748 register_status. Return the register's status.
3749 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3751 (regcache_dump): Handle unavailable cooked registers.
3752 * frame.c (do_frame_register_read): Adjust interface to match
3753 regcache_cooked_read_ftype.
3754 * gdbarch.sh (pseudo_register_read): Change return to enum
3756 * gdbarch.h, gdbarch.c: Regenerate.
3758 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3760 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3761 register_status. If reading a raw register indicates the raw
3762 register is not valid, return the raw register's status,
3763 otherwise, return REG_VALID.
3764 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3765 register_status. Handle non-REG_VALID raw registers and return
3766 the register's status.
3767 * arm-tdep.c (arm_neon_quad_read)
3768 (arm_pseudo_read): Change return to enum register_status. Handle
3769 non-REG_VALID raw registers and return the register's status.
3770 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3771 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3772 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3773 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3774 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3776 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3777 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3778 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3779 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3780 (m32c_pseudo_register_read): Change return to enum
3781 register_status. Adjust.
3782 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3783 enum register_status. Return the register's status.
3784 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3785 register_status. Return the register's status.
3786 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3787 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3788 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3789 * rs6000-tdep.c (move_ev_register_func): New typedef.
3790 (e500_move_ev_register): Use it. Change return to enum
3791 register_status. Return the register's status.
3792 (do_regcache_raw_read): New function.
3793 (do_regcache_raw_write): New function.
3794 (e500_pseudo_register_read): Change return to enum
3795 register_status. Return the register's status. Use
3796 do_regcache_raw_read.
3797 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3798 (dfp_pseudo_register_read): Change return to enum register_status.
3799 Return the register's status.
3800 (vsx_pseudo_register_read): Ditto.
3801 (efpr_pseudo_register_read): Ditto.
3802 (rs6000_pseudo_register_read): Ditto.
3803 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3804 register_status. Return the register's status.
3805 * sh64-tdep.c (pseudo_register_read_portions): New function.
3806 (sh64_pseudo_register_read): Change return to enum
3807 register_status. Use pseudo_register_read_portions. Return the
3809 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3810 register_status. Return the register's status.
3811 * sh-tdep.c (pseudo_register_read_portions): New function.
3812 (sh_pseudo_register_read): Change return to enum register_status.
3813 Use pseudo_register_read_portions. Return the register's status.
3814 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3815 enum register_status. Return the register's status.
3816 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3817 * spu-tdep.c (spu_pseudo_register_read_spu)
3818 (spu_pseudo_register_read): Ditto.
3819 * xtensa-tdep.c (xtensa_register_read_masked)
3820 (xtensa_pseudo_register_read): Ditto.
3821 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3823 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3825 * python/py-value.c (valpy_getitem): Fix formatting of error function
3828 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3830 ARI fixes: Add missing internationalization markups throughout
3832 * darwin-nat-info.c: Ditto.
3835 * mi/mi-main.c: Ditto.
3837 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3839 ARI fixes: Add missing internationalization markups throughout
3842 * cp-name-parser.y: Ditto.
3845 * objc-exp.y: Ditto.
3848 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3850 ARI fixes: Messages should have no trailing new lines.
3851 * darwin-nat.c (mach_check_error): Remove trailing new line from
3852 warning function call message.
3853 * record.c (bfdcore_read): Idem for error call.
3855 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3857 * common/signals.c (target_signal_from_host): Add _ markup to error
3858 function call message.
3859 (target_signal_to_host): Add _ markup and remove trailing new line
3860 from warning call message.
3861 (target_signal_from_command): Add _ markup to error function call
3864 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3868 * python/python.c (gdbpy_write): Accept a stream argument and
3869 operate to the appropriate stream.
3870 (gdbpy_flush): Likewise.
3871 (_initialize_python): Add stream constants.
3872 (finish_python_initialization): Add GdbOutputErrorFile class.
3874 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3876 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3878 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3880 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3881 to store_signed_integer. Add debug message when relocating CALL
3882 instructions. Fix formatting of debug message.
3883 * i386-tdep.c (i386_relocate_instruction): Ditto.
3885 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3887 * target.h (struct target_ops): Remove to_lookup_symbol field.
3888 (target_lookup_symbol): Delete macro.
3889 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3890 (update_current_target, setup_target_debug): Remove handling
3891 of to_lookup_symbol target_ops field.
3892 * ada-tasks.c (get_known_tasks_addr): Remove use of
3893 target_lookup_symbol.
3894 * coffread.c (coff_symtab_read): Likewise.
3895 * dbxread.c (read_dbx_symtab): Ditto.
3897 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3900 * configure.ac: Add getthrds declaration check.
3901 * configure, config.in: Regenerate.
3902 * aix-thread.c (getthrds): Declare only if not already declared
3903 in procinfo.h. More declaration out of get_signaled_thread to
3906 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3908 * python/py-symtab.c: Populate symtab_object_methods,
3910 (stpy_is_valid): New function.
3911 (salpy_is_valid): Ditto.
3912 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3913 (sympy_is_valid): New function.
3914 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3915 (objfpy_is_valid): New function.
3916 * python/py-inferior.c: Populate inferior_object_methods.
3917 (infpy_is_valid): New function.
3918 * python/py-infthread.c: Populate thread_object_methods.
3919 (thpy_is_valid): New function.
3920 * python/py-block.c: Declare block_object_methods. Populate. Declare
3921 block_iterator_object_methods. Populate.
3922 (blpy_is_valid): New function.
3923 (blpy_iter_is_valid): Ditto.
3925 2011-03-16 Keith Seitz <keiths@redhat.com>
3927 * linespec.c (find_methods): Canonicalize NAME before looking
3929 (name_end): New function.
3930 (keep_name_info): New function.
3931 (decode_line_1): Use keep_name_info.
3932 (decode_compound): Likewise.
3933 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3934 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3937 * linespec.c (locate_first_half): Keep overload information, too.
3938 (decode_compound): Use a string to represent break characters
3940 If P points to a break character, do not increment it.
3941 For C++ and Java, keep overload information and relevant keywords.
3942 If we cannot find a symbol, search the minimal symbols.
3945 * linespec.c (decode_compound): Rename SAVED_ARG to
3947 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3949 Pass a valid block to lookup_symbol.
3950 (lookup_prefix_sym): Likewise.
3951 (find_method): Construct search name based on SYM_CLASS instead
3953 * psymtab.c (lookup_partial_symbol): Add language parameter.
3954 (lookup_symbol_aux_psymtabs): Likewise.
3955 Don't assume that the psymtab we found was the right one. Search
3956 for the desired symbol in the symtab to be certain.
3957 (psymtab_search_name): New function.
3958 (lookup_partial_symbol): Use psymtab_search_name.
3959 Add language parameter.
3960 (read_symtabs_for_function): Add language parameter and pass to
3961 lookup_partial_symbol.
3962 (find_symbol_file_from_partial): Likewise.
3964 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3967 * dwarf2read.c (noop_record_line): New function.
3968 (dwarf_decode_lines): Ignore line tables for GCd functions.
3970 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3972 Fix ARI warnings about new lines at the end of messages, which
3973 are unneeded as there is a new line added at the end of the message
3975 * darwin-nat.c (darwin_stop_inferior): Ditto.
3976 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3977 * dfp.c (decimal_to_number): Ditto.
3978 * exec.c (print_section_info): Ditto.
3979 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3980 * osdata.c (get_osdata): Ditto.
3981 * record.c (bfdcore_write): Ditto.
3982 * remote-mips.c (mips_readchar): Ditto.
3983 * remote.c (read_ptid): Ditto.
3984 * ser-mingw.c (ser_windows_raw): Ditto.
3985 * tracepoint.c (add_local_symbols): Ditto.
3986 * windows-nat.c (fake_create_process): Ditto.
3988 2011-03-16 Tom Tromey <tromey@redhat.com>
3990 * tracepoint.c (stop_tracing): Don't declare.
3991 * event-top.c (after_char_processing_hook): Add `(void)'.
3993 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3995 * NEWS: Add Parameter sub-classing description.
3997 2011-03-16 Kai Tietz <ktietz@redhat.com>
3999 * MAINTAINERS: Update my e-mail address.
4001 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
4003 * MAINTAINERS: Add myself for write after approval privileges.
4005 2011-03-15 Michael Snyder <msnyder@vmware.com>
4007 * frame.c (find_frame_sal): Assert sym is not null.
4009 * dbxread.c (process_one_symbol): Assert 'name' is not null.
4011 * objc-lang.c (selectors_info): Check strchr for null result.
4013 * stabsread.c (define_symbol): Guard against bad stabstring input.
4015 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4017 Remove trailing spaces and tabulations from pascal language
4022 p-valprint.c: Ditto.
4024 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4026 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
4027 than LOW. Comment it.
4028 (read_partial_die): Call complaint for inappropriate zero LOWPC or
4029 HIGHPC not strictly higher than LOWPC.
4031 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4033 Fix formatting of function declarations returning a pointer in
4035 * varobj.c (varobj_add_child): Ditto.
4036 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
4037 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
4039 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
4041 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
4042 for the "generic" vector ABI used with GCC 4.3 and later.
4043 (ppc64_sysv_abi_return_value): Likewise.
4045 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
4047 * infcall.c (call_function_by_hand): Function return value is
4048 always a non_lval, even when using struct_return.
4050 2011-03-15 Pedro Alves <pedro@codesourcery.com>
4052 * printcmd.c (ALL_DISPLAYS_SAFE): New.
4053 (map_display_numbers): New.
4054 (do_delete_display): New.
4055 (undisplay_command): Use map_display_numbers.
4056 (do_enable_disable_display): New.
4057 (enable_disable_display_command): New function.
4058 (enable_display): Delete.
4059 (enable_display_command): New.
4060 (disable_display_command): Reimplement.
4061 (_initialize_printcmd): Adjust "enable display" command to use
4062 `enable_display_command' as callback.
4064 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4066 * NEWS: Add Python breakpoint 'stop' operation.
4068 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4070 * NEWS: Delete duplicate entry. Fix typo.
4072 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4074 Fix ARI warning about function names in first column.
4075 Put prototype declaration on same line as return type.
4076 * objc-exp.y: Ditto.
4078 * python/py-stopevent.h: Ditto.
4079 For long function names, split parameters to
4080 allow function name on same line as return type.
4081 * solib-pa64.c: Ditto.
4084 For long function declaration, use single line.
4085 * hppa-tdep.h: Ditto.
4086 * inferior.h: Ditto.
4088 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
4090 * python/python.h: Declare gdbpy_should_stop and
4091 gdbpy_breakpoint_has_py_cond.
4092 * python/python.c: Add python.h to includes. Remove python.h from
4093 HAVE_PYTHON definition
4094 (gdbpy_should_stop): New dummy function.
4095 (gdbpy_breakpoint_has_py_cond): New dummy function.
4096 * python/py-breakpoint.c (bppy_init): Rewrite to allow
4097 sub-classing capabilities.
4098 (gdbpy_should_stop): New function.
4099 (gdbpy_breakpoint_has_py_cond): New function.
4100 (local_setattro): New function.
4101 * breakpoint.c (condition_command): Add check for Python 'stop'
4103 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
4104 operation function as part of stop/continue tests.
4106 2011-03-14 Tom Tromey <tromey@redhat.com>
4109 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
4110 (needs_frame_dwarf_call): Likewise.
4112 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
4114 Fix ARI warning about functions without parameters that do not
4116 * breakpoint.c (all_tracepoints): Replace () by (void).
4117 * f-exp.y (match_string_literal): Ditto.
4119 * m2-exp.y (yylex): Ditto.
4120 * mep-tdep.c (current_me_module): Ditto.
4121 (current_options): Ditto.
4122 (current_cop_data_bus_width): Ditto.
4123 (current_cr_names): Ditto.
4124 (current_cr_is_float): Ditto.
4125 (current_ccr_names): Ditto.
4126 * objc-exp.y (yylex): Ditto.
4127 * p-exp.y (yylex): Ditto.
4128 * remote.c (send_interrupt_sequence): Ditto.
4129 * tracepoint.c (current_trace_status): Ditto.
4130 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
4131 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
4133 2011-03-11 Michael Snyder <msnyder@vmware.com>
4135 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
4136 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
4137 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
4138 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
4139 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
4141 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
4142 (delete_async_event_handler): Ditto.
4144 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
4146 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
4148 * top.c (set_verbose): Assert showcmd was found.
4150 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
4152 * xtensa-tdep.c (warning_once): Correct style issues.
4154 2011-03-11 Yao Qi <yao@codesourcery.com>
4156 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
4158 2011-03-11 Andreas Schwab <schwab@redhat.com>
4160 * common/aclocal.m4: Remove.
4162 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4164 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
4165 (xtensa_write_register, xtensa_read_register): Likewise.
4166 (xtensa_hextochar): Removed.
4167 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
4169 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4171 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
4172 (xtensa_call0_frame_cache_t): Update comments. New fields added.
4173 (xtensa_alloc_frame_cache): Add initialization for new fields.
4174 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
4175 (warning_once): New function.
4176 (xtensa_insn_kind): New item c0opc_and.
4177 (call0_classify_opcode): Add the case for AND instruction.
4178 (call0_track_op): Change arguments. New local variable litbase.
4179 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
4180 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
4182 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
4183 (call0_analyze_prologue): Update the comments. Change arguments.
4184 Add the variety of updates to handle extended prologues, which now can
4185 conduct dynamic stack adjustments.
4186 (call0_frame_cache): Likewise.
4187 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
4188 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4190 2011-03-10 Michael Snyder <msnyder@vmware.com>
4192 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4193 (cmd_qtframe): Ditto.
4194 (cmd_qtbuffer): Ditto.
4195 (cmd_bigqtbuffer): Ditto.
4197 2011-03-10 Tom Tromey <tromey@redhat.com>
4199 * tracepoint.c (trace_actions_command): Update.
4200 * thread.c (thread_apply_command): Update.
4201 * reverse.c (delete_bookmark_command): Update.
4202 (bookmarks_info): Update.
4203 * printcmd.c (undisplay_command): Update.
4204 * memattr.c (mem_enable_command): Update.
4205 (mem_disable_command): Update.
4206 (mem_delete_command): Update.
4207 * inferior.c (detach_inferior_command): Update.
4208 (kill_inferior_command): Update.
4209 (remove_inferior_command): Update.
4210 * cli/cli-utils.h (struct get_number_or_range_state): New.
4211 (init_number_or_range): Declare.
4212 (get_number_or_range): Update.
4213 * cli/cli-utils.c (init_number_or_range): New function.
4214 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
4216 (number_is_in_list): Update.
4217 * breakpoint.h (get_tracepoint_by_number): Update.
4218 * breakpoint.c (map_breakpoint_numbers): Update for change to
4219 get_number_or_range.
4220 (find_location_by_number): Use get_number, not
4221 get_number_or_range.
4222 (trace_pass_set_count): New function.
4223 (trace_pass_command): Update for change to get_number_or_range.
4225 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4228 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
4230 * python/py-param.c (add_setshow_generic): Add set/show callback
4231 parameters. Register Python object context.
4232 (get_show_value): New function.
4233 (get_set_value): New function.
4234 (call_doc_function): New function.
4235 (get_doc_string): Move behind get_show_value/get_set_value.
4237 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
4239 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4241 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
4243 * xtensa-tdep.c (xtensa_read_register): Add comment.
4244 (xtensa_write_register): Likewise.
4245 (xtensa_hextochar): Add comment and update to match coding conventions.
4246 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4247 (execute_l32e, execute_s32e, execute_code): Update comments.
4248 (xtensa_exception_handler_t): Update to match coding conventions.
4249 (xtensa_insn_kind): Likewise.
4251 2011-03-09 Michael Snyder <msnyder@vmware.com>
4253 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4255 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4257 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4259 2011-03-09 Tom Tromey <tromey@redhat.com>
4261 * thread.c (restore_selected_frame): Handle frame_level == -1.
4262 (make_cleanup_restore_current_thread): Use
4263 get_selected_frame_if_set.
4264 * frame.h (get_selected_frame_if_set): Declare.
4265 * frame.c (get_selected_frame_if_set): New function.
4267 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4269 * cli/cli-cmds.c (shell_escape): Use lbasename.
4270 * coffread.c (coff_start_symtab): Constify parameter.
4271 (complete_symtab): Constify `name' parameter.
4272 (coff_symtab_read): Constify `filestring' local.
4273 (coff_getfilename): Constify return and `result' local.
4275 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4276 * linux-fork.c (info_checkpoints_command): Use lbasename.
4277 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4278 * minsyms.c (lookup_minimal_symbol): Use lbasename.
4279 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4280 * procfs.c (procfs_make_note_section): Use lbasename.
4281 * tui/tui-io.c (printable_part): Constity return and parameter.
4283 (print_filename): Constify parameters, and local `s'.
4284 (tui_rl_display_match_list): Constify local `temp'.
4286 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4289 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4290 Fix DWARF-3+ DW_AT_accessibility default assumption.
4291 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4292 cu->header.version >= 3.
4294 2011-03-09 Yao Qi <yao@codesourcery.com>
4296 * common/Makefile.in: Remove.
4297 * common/configure: Remove.
4298 * common/configure.ac: Remove.
4300 2011-03-09 Yao Qi <yao@codesourcery.com>
4303 2011-02-11 Yao Qi <yao@codesourcery.com>
4305 * common/Makefile.in: Add copyright header.
4307 2011-02-11 Yao Qi <yao@codesourcery.com>
4309 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4311 * configure.ac: Add common to sub dir.
4312 * configure: Regenerate.
4314 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4316 * xtensa-tdep.c (call0_ret): New function.
4317 (xtensa_skip_prologue): Speed up analysis.
4319 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4321 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
4322 while executing MI command -data-list-changed-registers.
4324 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4326 * xtensa-tdep.c (xtensa_read_register): New function.
4327 (xtensa_write_register): New function.
4328 (xtensa_find_register_by_name): New function.
4329 (xtensa_windowed_frame_cache): Update comments in type description.
4330 (xtensa_frame_cache): Likewise.
4331 (xtensa_window_interrupt_insn): New function.
4332 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
4333 (xtensa_insn_kind): Add new instructions.
4334 (rwx_special_register): New function.
4335 (call0_classify_opcode): Add new instructions to the analysis.
4336 (a0_saved, a7_saved, a11_saved): New variables.
4337 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
4338 (execute_l32e): New function.
4339 (execute_s32e): New function.
4340 (xtensa_exception_handler_t): New type.
4341 (execute_code): New function.
4342 (xtensa_window_interrupt_frame_cache): New function to conduct frame
4343 analysis for Xtensa Window Exception handlers.
4345 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4347 * xtensa-tdep.c (TX_PS): New.
4348 (windowing_enabled): Update to count for Call0 ABI.
4349 (xtensa_hextochar): New.
4350 (xtensa_init_reggroups): Make algorithm generic.
4351 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4353 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4355 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4357 2011-03-08 Michael Snyder <msnyder@vmware.com>
4359 * i386-tdep.c (i386_follow_jump): Check return value of
4361 (i386_analyze_struct_return): Ditto.
4362 (i386_skip_probe): Ditto.
4363 (i386_match_insn): Ditto.
4364 (i386_skip_noop): Ditto.
4365 (i386_analyze_frame_setup): Ditto.
4366 (i386_analyze_register_saves): Ditto.
4367 (i386_skip_prologue): Ditto.
4368 (i386_skip_main_prologue): Ditto.
4370 * target.c (read_whatever_is_readable): Fix memory leak.
4372 * i386-tdep.c (i386_process_record): Document fall through.
4374 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4376 Fix DWARF-3+ DW_AT_accessibility default assumption.
4377 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4378 cu->header.version >= 3.
4380 2011-03-08 Pedro Alves <pedro@codesourcery.com>
4382 * remote.c (remote_check_symbols): Skip if the target has no
4385 2011-03-08 Joel Brobecker <brobecker@adacore.com>
4387 * target.c (read_whatever_is_readable): Reformat comment,
4388 with a minor typo fix. Minor reformatting of the code.
4390 2011-03-08 Yao Qi <yao@codesourcery.com>
4392 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4393 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4394 Use cached result instead of calling displaced_in_arm_mode again.
4395 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4396 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4397 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4398 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4399 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4400 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4401 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4402 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4403 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4404 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4405 (arm_catch_kernel_helper_return): Likewise.
4406 * gdb/arm-tdep.h : Update function declarations.
4408 2011-03-07 Michael Snyder <msnyder@vmware.com>
4410 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4412 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4414 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4416 * elfread.c (elf_symtab_read): Stop memory leak.
4418 * main.c (captured_main): Fix memory leak.
4420 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
4422 * ada-lang.c (compare_names): Call is_name_suffix with string1
4425 2011-03-07 Tom Tromey <tromey@redhat.com>
4427 * xcoffread.c (xcoff_sym_fns): Update.
4428 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4429 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4430 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4431 (symbol_file_add_with_addrs_or_offsets): Likewise.
4432 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4433 * somread.c (som_sym_fns): Update.
4434 * psymtab.h (require_partial_symbols): Declare.
4435 * psymtab.c (require_partial_symbols): New function.
4436 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4437 (ALL_OBJFILE_PSYMTABS): Undef.
4438 (ALL_PSYMTABS): Move from psympriv.h.
4439 (lookup_partial_symtab, find_pc_sect_psymtab)
4440 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4441 (find_last_source_symtab_from_partial)
4442 (forget_cached_source_info_partial)
4443 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4444 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4445 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4446 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4447 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4448 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4449 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4450 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4451 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4453 * mipsread.c (ecoff_sym_fns): Update.
4454 * machoread.c (macho_sym_fns): Update.
4455 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4456 (read_psyms): New function.
4457 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4458 (elf_sym_fns_lazy_psyms): New global.
4459 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4460 dwarf2_build_psymtabs.
4461 * dbxread.c (aout_sym_fns): Update.
4462 * coffread.c (coff_sym_fns): Update.
4464 2011-03-07 Tom Tromey <tromey@redhat.com>
4466 * infrun.c (print_exited_reason): Include inferior id and pid in
4469 2011-03-07 Tom Tromey <tromey@redhat.com>
4471 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4473 (target_has_execution_1): Update.
4474 (target_has_execution_current): Declare.
4475 (target_has_execution): Call target_has_execution_current.
4476 (default_child_has_execution): Update.
4477 * target.c (default_child_has_execution): Add 'the_ptid'
4479 (target_has_execution_1): Likewise.
4480 (target_has_execution_current): New function.
4481 (add_target): Update.
4482 (init_dummy_target): Update.
4483 * remote-m32r-sdi.c (m32r_has_execution): New function.
4484 (init_m32r_ops): Use it.
4485 * record.c (record_core_has_execution): Now static. Add
4486 'the_ptid' parameter.
4487 * inferior.c (have_live_inferiors): Don't save current thread.
4488 Use target_has_execution_1.
4490 2011-03-07 Yao Qi <yao@codesourcery.com>
4492 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4494 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4496 * elfread.c (elf_symtab_read): Minor reformatting.
4498 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4500 * objc-lang.c (selectors_info): Minor reformatting.
4502 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4504 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4506 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4507 Michael Snyder <msnyder@vmware.com>
4509 * ada-valprint.c (ada_val_print_array): Move the declaration of
4510 "byte_order" and "elttype" inside the block where these variables
4511 are actually used. Remove some special handling for the case
4512 where "elttype" and "eltlen" are null. Replace by a comment
4513 and a couple of assertion checks.
4515 2011-03-05 Michael Snyder <msnyder@vmware.com>
4517 * source.c (add_path): Replace semicolon at end of block.
4518 * dwarf2expr.c (execute_stack_op): Ditto.
4520 2011-03-05 Mike Frysinger <vapier@gentoo.org>
4522 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4523 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4524 (bfin-*-*): Likewise.
4526 2011-03-05 Michael Snyder <msnyder@vmware.com>
4528 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4529 * mdebugread.c (parse_symbol): Ditto.
4530 * parse.c (parse_exp_in_context): Ditto.
4531 * source.c (add_path): Ditto.
4532 * utils.c (gnu_debuglink_crc32): Ditto.
4533 * varobj.c (variable_language): Ditto.
4535 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4537 2011-03-04 Michael Snyder <msnyder@vmware.com>
4539 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4541 * symfile.c (simple_overlay_update): Check for null return value
4542 from lookup_minimal_symbol.
4544 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4546 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4548 * eval.c (parse_and_eval_address_1): Remove function.
4549 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4550 instead of parse_and_eval_address_1.
4551 * value.h (parse_and_eval_address_1): Remove prototype.
4553 2011-03-04 Michael Snyder <msnyder@vmware.com>
4555 * remote.c (putpkt_binary): Document that case stmt falls through.
4557 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4559 * breakpointc (print_it_typical): Move NULL check from here...
4560 (print_bp_stop_message): ... to here.
4562 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4564 * breakpoint.c (enable_command): Use break instead of continue,
4565 and fill in a missing break.
4566 (disable_command): Ditto.
4568 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4570 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4571 (terminal_save_ours): Remove misleading comment.
4572 (inflow_inferior_data_cleanup): Free ttystate.
4573 (inflow_inferior_exit): Likewise.
4574 (copy_terminal_info): Copy ttystate.
4576 * serial.c (serial_copy_tty_state): New function.
4577 * serial.h (serial_copy_tty_state): Add prototype.
4578 (struct serial_ops): Add copy_tty_state callback.
4579 * ser-base.c (ser_base_copy_tty_state): New function.
4580 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4581 * ser-go32.c (dos_copy_tty_state): New function.
4582 (dos_ops): Install copy_tty_state callback.
4583 * ser-mingw.c (_initialize_ser_windows): Likewise.
4584 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4585 * ser-unix.c (hardwire_copy_tty_state): New function.
4586 (_initialize_ser_hardwire): Install it.
4588 2011-03-04 Michael Snyder <msnyder@vmware.com>
4590 * breakpoint.c (create_breakpoint): Add missing break statement.
4592 Reverting this patch:
4593 * infcall.c (call_function_by_hand): Add break statements for lint.
4595 Reverting this patch:
4596 * cli/cli-script.c (script_from_file): Add break for lint.
4598 2011-03-04 Michael Snyder <msnyder@vmware.com>
4600 * solib.c (reload_shared_libraries_1): Close memory leak.
4602 2011-03-03 Tom Tromey <tromey@redhat.com>
4605 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4608 2011-03-03 Michael Snyder <msnyder@vmware.com>
4610 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4611 fields of struct 'st' to zero.
4613 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4614 sal.pspace before calling set_current_source_symtab_and_line.
4616 2011-03-03 Yao Qi <yao@codesourcery.com>
4618 * Makefile.in (configure-common): Remove. Let Makefile
4619 in dir common to rebuild itself.
4620 (common/Makefile): Likewise.
4622 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4624 * utils.c (parse_escape): Add i18n markup in error message.
4626 2011-03-03 Yao Qi <yao@codesourcery.com>
4628 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4630 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4631 (displaced_write_reg, displaced_read_reg): Likewise.
4632 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4633 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4634 (cleanup_branch): Replace magic number 14 and 15 with
4635 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4637 2011-03-02 Michael Snyder <msnyder@vmware.com>
4639 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4641 * cli/cli-script.c (script_from_file): Add break for lint.
4643 * mdebugread.c (parse_partial_symbols): Fix indent.
4645 * target-descriptions.c (tdesc_gdb_type): No need to call
4646 xstrdup, callee saves a copy.
4648 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4650 * infcall.c (call_function_by_hand): Add break statements for lint.
4652 * utils.c (parse_escape): Escape the escape char.
4654 * python/py-inferior.c (build_inferior_list): Error out if
4655 PyList_Append fails.
4656 (gdbpy_inferiors): Error out if build_inferior_list fails.
4658 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4661 * record.c (record_restore): Move printf to before error return.
4663 2011-03-02 Yao Qi <yao@codesourcery.com>
4665 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4666 is_thumb and insn_size.
4667 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4668 on both ARM and Thumb mode.
4669 (arm_process_displaced_insn): Set is_thumb and insn_size.
4670 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4671 (arm_displaced_step_fixup): Likewise.
4673 2011-03-01 Michael Snyder <msnyder@vmware.com>
4675 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4677 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4679 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4681 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4683 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4686 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4687 which shadows function parameter.
4689 * tracepoint.c (create_tsv_from_upload): Superfluous call
4690 to xstrdup. Callee already calls xstrdup.
4692 * linespec.c (decode_line_1): Remove unnecessary null check.
4694 * tracepoint.c (scope_info): Fix mem leak, remove underused
4697 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4698 superfluous null check.
4700 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4701 (value_of_builtin_frame_fp_reg): Ditto.
4703 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4705 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4708 * linespec.c (decode_line_1): Check for null before dereference.
4710 * reverse.c (record_restore): Move null-check to before pointer
4713 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4715 * objc-lang.c (selectors_info): Add explanitory comment.
4716 (classes_info): Ditto.
4718 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4720 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4721 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4722 versions of the trampoline. Handle Thumb vs. ARM addresses.
4723 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4724 (arm_linux_init_abi): Install it.
4725 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4726 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4728 2011-02-28 Michael Snyder <msnyder@vmware.com>
4730 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4731 a little bigger, to avoid possibility of an overflow.
4733 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4734 buffers a little bigger, to avoid possibility of an overflow.
4736 * coffread.c (coff_getfilename): Add check to avoid overflow.
4738 * objc-lang.c (selectors_info): Add a small safety margin to
4740 (classes_info): Error out on too long REGEXP.
4742 * infrun.c (handle_inferior_event): Remove unused function call.
4744 * fork-child.c (fork_inferior): Remove ifdef'd code and
4747 * linux-thread-db.c (attach_thread): Discard unused value.
4749 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4751 * remote.c (remote_get_noisy_reply): Discard unused value.
4752 (remote_vcont_resume): Ditto.
4753 (remote_stop_ns): Ditto.
4755 * linespec.c (decode_objc): Delete unused variable.
4757 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4759 * dwarf2read.c (add_partial_symbol): Discard unused values.
4760 (read_base_type): Delete unused variable.
4762 * dbxread.c (read_dbx_symtab): Discard unused value.
4764 * eval.c (evaluate_subexp_standard): Delete unused variable,
4765 and discard unused values.
4767 * infcmd.c (_initialize_infcmd): Discard unused values.
4769 * stabsread.c (rs6000_builtin_type): Missing break statement.
4771 * dbxread.c (process_one_symbol): Discard unused value.
4773 * coffread.c (coff_end_symtab): Delete unused variable.
4775 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4776 (dwarf2_add_typedef): Delete unused variable.
4777 (read_namespace): Ditto.
4778 (dwarf_decode_macros): Ditto.
4780 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4782 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4784 * p-valprint.c (pascal_val_print): Discard unused value.
4786 * utils.c (nquery): Call va_end before return;
4790 * proc-service.c (ps_plog): Call va_end before return.
4792 2011-02-28 Tom Tromey <tromey@redhat.com>
4794 * python/python.c (gdbpy_value_cst): New global.
4795 (_initialize_python): Initialize it.
4796 * python/python-internal.h (gdbpy_value_cst): Declare.
4797 * python/py-value.c (convert_value_from_python): Use
4800 2011-02-28 Michael Snyder <msnyder@vmware.com>
4802 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4804 * breakpoint.c (catch_syscall_completer): Free malloced list.
4806 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4808 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4809 (lval_func_check_synthetic_pointer): Ditto.
4810 (lval_func_free_closure): Fix use-after-free.
4812 2011-02-28 Tom Tromey <tromey@redhat.com>
4814 * psymtab.c (expand_partial_symbol_tables): Use
4815 ALL_OBJFILE_PSYMTABS.
4817 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4819 * objc-lang.c (selectors_info): Error on too long REGEXP.
4821 2011-02-28 Michael Snyder <msnyder@vmware.com>
4823 * python/py-param.c (set_parameter_value): Add missing
4826 * linux-record.c (record_linux_system_call): Add missing
4829 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4831 * breakpoint.c (print_one_breakpoint_location): Remove unused
4832 argument PRINT_ADDRESS_BITS. Update callers.
4833 (print_one_breakpoint): Likewise.
4835 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4837 * breakpoint.c (wrap_indent_at_field): New function.
4838 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4839 Allocate ui_stream locally instead of using STB argument.
4840 (print_one_breakpoint_location): Update call.
4841 * ui-out.c (ui_out_query_field): New function.
4842 * ui-out.h (ui_out_query_field): Add prototype.
4844 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4846 From Michael Snyder <msnyder@vmware.com>
4847 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4849 2011-02-27 Michael Snyder <msnyder@vmware.com>
4851 * objc-lang.c (selectors_info): Prevent string overrun.
4853 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4856 * symtab.c (rbreak_command): Move variable 'file_name' to
4859 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4860 param with a local variable of the same name.
4862 2011-02-27 Michael Snyder <msnyder@vmware.com>
4864 * value.c (value_from_history_ref): New function.
4865 * value.h (value_from_history_ref): Export.
4866 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4867 to parse value history references.
4868 * cli/cli-utils.h (get_number_trailer): Update comment.
4870 2011-02-27 Michael Snyder <msnyder@vmware.com>
4872 * inferior.c (detach_inferior_command): Use get_number_or_range.
4873 (kill_inferior_command): Ditto.
4874 (remove_inferior_command): Ditto.
4875 (initialize_inferiors): Make command names plural.
4876 Update help strings.
4878 2011-02-27 Michael Snyder <msnyder@vmware.com>
4880 * darwin-nat-info.c: Fix comment typo.
4881 * dwarf2expr.h: Ditto.
4882 * fbsd-nat.c: Ditto.
4883 * fbsd-nat.h: Ditto.
4884 * frame-unwind.h: Ditto.
4886 * hppa-hpux-tdep.c: Ditto.
4887 * i386-linux-nat.c: Ditto.
4888 * linux-nat.c: Ditto.
4889 * nbsd-nat.c: Ditto.
4890 * nbsd-nat.h: Ditto.
4891 * ppc-linux-tdep.c: Ditto.
4894 * tui/tui-winsource.c: Ditto.
4896 2011-02-26 Michael Snyder <msnyder@vmware.com>
4898 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4900 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4902 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4903 with a local variable of the same name.
4905 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4906 param with a local variable of the same name.
4907 (i387_supply_xsave): Ditto.
4909 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4910 that it does not shadow a function parameter.
4912 * i386-nat.c (i386_length_and_rw_bits): Document that case
4913 statement is meant to fall through.
4915 * expprint.c (dump_subexp_body_standard): Document that case
4916 statement is meant to fall through.
4918 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4919 dead if statement. Condition can't be false.
4921 2011-02-25 Michael Snyder <msnyder@vmware.com>
4923 * arm-tdep.c: Fix typos in comments.
4924 * bsd-uthread.c: Ditto.
4925 * completer.c: Ditto.
4927 * cp-namespace.c: Ditto.
4928 * cp-support.c: Ditto.
4929 * cris-tdep.c: Ditto.
4931 * dwarf2read.c: Ditto.
4933 * gdbtypes.h: Ditto.
4934 * inferior.h: Ditto.
4935 * mdebugread.c: Ditto.
4936 * mips-tdep.c: Ditto.
4937 * ppc-linux-nat.c: Ditto.
4938 * ppc-linux-tdep.c: Ditto.
4939 * printcmd.c: Ditto.
4940 * sol-thread.c: Ditto.
4941 * solib-frv.c: Ditto.
4943 * sparc64-tdep.c: Ditto.
4944 * spu-tdep.c: Ditto.
4945 * stabsread.c: Ditto.
4950 * python/py-block.c: Ditto.
4951 * python/py-symbol.c: Ditto.
4952 * python/py-symtab.c: Ditto.
4953 * python/py-value.c: Ditto.
4954 * tui/tui-win.c: Ditto.
4956 2011-02-25 Michael Snyder <msnyder@vmware.com>
4958 * inferior.c (print_inferior): Accept a string instead of an int
4959 for requested_inferiors, and use get_number_or_range to parse it.
4960 (info_inferiors_command): Pass args string to print_inferior.
4961 (initialize_inferiors): Change help string for info inferiors.
4962 * inferior.h (print_inferior): Export prototype change.
4964 2011-02-25 Tom Tromey <tromey@redhat.com>
4966 * common/ax.def (invalid2): Set to 0x31.
4968 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4970 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4972 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4974 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4976 2011-02-24 Michael Snyder <msnyder@vmware.com>
4978 * Makefile.in (clean): Make clean should remove generated files
4979 observer.h and observer.inc.
4981 2011-02-24 Joel Brobecker <brobecker@adacore.com>
4983 Revert the following patch (not approved yet):
4984 2011-02-21 Hui Zhu <teawater@gmail.com>
4985 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4986 * ax-gdb.c (gen_printf_expr_callback): New function.
4987 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4988 * ax-general.c (ax_memcpy): New function.
4989 (ax_print): Handle "printf".
4991 * ax.h (ax_memcpy): Forward declare.
4992 * common/ax.def (invalid2): Removed.
4993 (printf): New entry.
4994 * printcmd.c (printcmd.h): New include.
4995 (string_printf): New function.
4996 (ui_printf): Removed.
4997 (printf_command): Remove static. Call string_printf.
4998 (eval_command): Call string_printf.
4999 * printcmd.h: New file.
5000 * tracepoint.c (validate_actionline,
5001 encode_actions_1): handle printf_command.
5003 2011-02-23 Tom Tromey <tromey@redhat.com>
5005 * ax-general.c (ax_pick): Add missing newline.
5007 2011-02-23 Michael Snyder <msnyder@vmware.com>
5009 * breakpoint.c (breakpoint_1): Change first argument from an int
5010 to a char pointer, so that the function now accepts a list of
5011 breakpoints rather than just one. Use new function
5012 'number_is_in_list' to implement.
5013 (breakpoints_info): Pass char * instead of int to breakpoint_1.
5014 (watchpoints_info): Ditto.
5015 (tracepoints_info): Ditto.
5016 (maintenance_info_breakpoints): Ditto.
5017 (_initialize_breakpoint): Update help strings to reflect the fact
5018 that these functions can now take more than one argument.
5019 * cli/cli-utils.c (number_is_in_list): New function.
5020 * cli/cli-utils.h (number_is_in_list): Export.
5022 2011-02-23 Michael Snyder <msnyder@vmware.com>
5024 * memattr.c (mem_enable_command): Use get_number_or_range.
5025 (mem_disable_command): Ditto.
5026 (mem_delete_command): Ditto.
5027 (_initialize_mem): Tweak usage message to reflect multiple
5030 2011-02-22 Doug Evans <dje@google.com>
5032 Add gdb.lookup_global_symbol python function.
5034 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
5035 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
5036 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
5038 2011-02-22 Tom Tromey <tromey@redhat.com>
5040 * language.c (language_class_name_from_physname): Rename
5041 'curr_language' argument to 'lang'; use in body.
5043 2011-02-22 Michael Snyder <msnyder@vmware.com>
5045 * cli/cli-utils.c (number_is_in_list): Check for zero return.
5047 2011-02-22 Pedro Alves <pedro@codesourcery.com>
5049 * frame-unwind.h: Fix comment to mention the this frame, not the
5052 2011-02-22 Tom Tromey <tromey@redhat.com>
5054 * symfile.c (auto_solib_limit): Remove.
5055 * symfile.h (auto_solib_limit): Remove.
5057 2011-02-22 Joel Brobecker <brobecker@adacore.com>
5059 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
5061 2011-02-21 Michael Snyder <msnyder@vmware.com>
5063 * gdbthread.h (print_thread_info): Change prototype.
5064 * thread.c (print_thread_info): Accept char* instead of int for
5065 requested_threads argument. Use new function number_is_in_list
5066 to determine which threads to list.
5067 (info_threads_command): Pass char* to print_thread_info.
5068 * cli/cli-utils.c (number_is_in_list): New function.
5069 * cli/cli-utils.h (number_is_in_list): Export.
5070 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
5072 (print_one_inferior): Ditto.
5073 (mi_cmd_list_thread_groups): Ditto.
5075 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5077 * common/Makefile.in (CFLAGS): New.
5078 (COMPILE): Add $(CFLAGS).
5080 2011-02-21 Tom Tromey <tromey@redhat.com>
5082 * breakpoint.c (catch_syscall_command_1): Fix typo.
5084 2011-02-21 Tom Tromey <tromey@redhat.com>
5086 * reverse.c: Include cli-utils.h.
5087 * printcmd.c: Include cli-utils.h.
5088 (string_printf): Use skip_spaces.
5089 * cli/cli-utils.h: New file.
5090 * cli/cli-utils.c: New file.
5091 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
5092 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
5093 * breakpoint.h (get_number, get_number_or_range): Move to
5095 * breakpoint.c: Include cli-utils.h.
5096 (get_number_trailer, get_number, get_number_or_range)
5097 (ep_skip_leading_whitespace): Move to cli-utils.c.
5098 (create_breakpoint_sal, find_condition_and_thread)
5099 (decode_static_tracepoint_spec, watch_command_1)
5100 (watch_maybe_just_location, ep_parse_optional_if_clause)
5101 (catch_fork_command_1, catch_exec_command_1)
5102 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
5103 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
5104 (SUBDIR_CLI_SRCS): Add cli-utils.c.
5105 (HFILES_NO_SRCDIR): Add cli-utils.h.
5106 (cli-utils.o): New target.
5108 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5110 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
5111 before calling discard_all_inferiors.
5113 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5115 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
5116 (struct builtin_opencl_type): Remove.
5117 (builtin_opencl_type): Change return type to "struct type **".
5118 (lookup_opencl_vector_type): Update caller.
5119 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
5120 (build_opencl_types): Install plain array of "struct type *"
5121 instead of "struct builtin_opencl_type".
5123 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5124 Ulrich Weigand <uweigand@de.ibm.com>
5126 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
5127 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
5128 (struct arm_linux_hwbp_cap): New type.
5129 (arm_linux_get_hwbp_cap): New function.
5130 (arm_linux_get_hw_breakpoint_count): Likewise.
5131 (arm_linux_get_hw_watchpoint_count): Likewise.
5132 (arm_linux_can_use_hw_breakpoint): Likewise.
5133 (arm_hwbp_type): New type.
5134 (arm_hwbp_control_t): Likewise.
5135 (struct arm_linux_hw_breakpoint): Likewise.
5136 (struct arm_linux_thread_points): Likewise.
5137 (arm_threads): New global variable.
5138 (arm_linux_find_breakpoints_by_tid): New function.
5139 (arm_hwbp_control_initialize): Likewise.
5140 (arm_hwbp_control_is_enabled): Likewise.
5141 (arm_hwbp_control_disable): Likewise.
5142 (arm_linux_hw_breakpoint_initialize): Likewise.
5143 (arm_linux_get_hwbp_type): Likewise.
5144 (arm_linux_hw_watchpoint_initialize): Likewise.
5145 (arm_linux_hw_breakpoint_equal): Likewise.
5146 (arm_linux_insert_hw_breakpoint1): Likewise.
5147 (arm_linux_remove_hw_breakpoint1): Likewise.
5148 (arm_linux_insert_hw_breakpoint): Likewise.
5149 (arm_linux_remove_hw_breakpoint): Likewise.
5150 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
5151 (arm_linux_insert_watchpoint): Likewise.
5152 (arm_linux_remove_watchpoint): Likewise.
5153 (arm_linux_stopped_data_address): Likewise.
5154 (arm_linux_stopped_by_watchpoint): Likewise.
5155 (arm_linux_watchpoint_addr_within_range): Likewise.
5156 (arm_linux_new_thread): Likewise.
5157 (arm_linux_thread_exit): Likewise.
5158 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
5159 related target callbacks. Register arm_linux_new_thread and
5160 arm_linux_thread_exit.
5161 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
5162 * arm-tdep.c (arm_pc_is_thumb): Make global.
5163 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
5165 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5167 * breakpoint.c (update_watchpoint): Do not attempt to recreate
5168 per-frame locations while within a function epilogue.
5170 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5172 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
5173 to GNU coding standards.
5175 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5177 Allow use of mingw native on Windows 95 OS.
5178 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
5179 (ser_windows_close): Only call CancelIo if function exists.
5180 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
5181 to check for existence of CancelIo function in kernel32 DLL.
5183 2011-02-21 Hui Zhu <teawater@gmail.com>
5185 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5186 * ax-gdb.c (gen_printf_expr_callback): New function.
5187 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5188 * ax-general.c (ax_memcpy): New function.
5189 (ax_print): Handle "printf".
5191 * ax.h (ax_memcpy): Forward declare.
5192 * common/ax.def (invalid2): Removed.
5193 (printf): New entry.
5194 * printcmd.c (printcmd.h): New include.
5195 (string_printf): New function.
5196 (ui_printf): Removed.
5197 (printf_command): Remove static. Call string_printf.
5198 (eval_command): Call string_printf.
5199 * printcmd.h: New file.
5200 * tracepoint.c (validate_actionline,
5201 encode_actions_1): handle printf_command.
5203 2011-02-19 Michael Snyder <msnyder@vmware.com>
5205 * reverse.c (delete_one_bookmark): Argument is now bookmark
5206 id rather than pointer to bookmark struct.
5207 (delete_bookmark_command): Use get_number_or_range.
5208 (goto_bookmark_command): Parse with get_number instead of strtoul.
5209 (bookmark_1): New function. Print info for one bookmark.
5210 (bookmarks_info): Use get_number_or_range and bookmark_1.
5212 2011-02-18 Michael Snyder <msnyder@vmware.com>
5214 * thread.c (info_threads_command): Re-implement using
5215 get_number_or_range.
5216 (thread_apply_command): Ditto.
5218 2011-02-18 Tom Tromey <tromey@redhat.com>
5220 * common/ax.def: New file.
5221 * ax.h (enum agent_op): Use ax.def.
5222 * ax-general.c (aop_map): Use ax.def.
5224 2011-02-18 Tom Tromey <tromey@redhat.com>
5226 * ax-general.c (aop_map): Add pick and rot.
5227 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5228 <DW_OP_rot>: Implement.
5229 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5231 * ax-general.c (ax_pick): New function.
5233 2011-02-18 Tom Tromey <tromey@redhat.com>
5235 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5237 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5238 Tom Tromey <tromey@redhat.com>
5240 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5241 make_symbol_overload_list_block with NULL BLOCK.
5242 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5244 2011-02-18 Pedro Alves <pedro@codesourcery.com>
5246 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5247 * breakpoint.h (get_number_or_range): Declare.
5248 * printcmd.c (ALL_DISPLAYS): Declare.
5249 (delete_display): Reimplement taking a display pointer.
5250 (undisplay_command): Accept a range of displays to delete, using
5251 get_number_or_range.
5253 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5255 * c-valprint.c (c_val_print): Add embedded_offset to address
5256 for arrays of unspecified length.
5257 * p-valprint.c (pascal_val_print): Likewise.
5259 2011-02-18 Yao Qi <yao@codesourcery.com>
5261 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5262 (arm_process_displaced_insn): .. here. Remove parameter INSN.
5263 (thumb_process_displaced_insn): New.
5264 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5265 call to arm_process_displaced_insn.
5266 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5268 2011-02-17 Tom Tromey <tromey@redhat.com>
5270 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5271 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5272 compile_dwarf_to_ax. No longer static. Call
5273 dwarf2_compile_cfa_to_ax.
5274 (locexpr_tracepoint_var_ref): Update.
5275 (loclist_tracepoint_var_ref): Update.
5276 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5277 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5278 argument; add 'gdbarch' and 'pc'.
5279 (dwarf2_compile_cfa_to_ax): New function.
5280 (dwarf2_frame_cache): Update.
5282 2011-02-17 Joel Brobecker <brobecker@adacore.com>
5284 * ada-lang.c (ada_type_of_array): Fix the size of the array
5285 in the case of an unconstrained packed array.
5287 2011-02-17 Yao Qi <yao@codesourcery.com>
5289 * common/Makefile.in: Add more targets for make.
5291 2011-02-16 Tom Tromey <tromey@redhat.com>
5293 * dwarf2loc.c (unimplemented): Fix typo.
5295 2011-02-16 Tom Tromey <tromey@redhat.com>
5297 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5298 (compile_dwarf_to_ax) <default>: Use unimplemented.
5299 <DW_OP_deref>: Update.
5300 (disassemble_dwarf_expression): Update.
5301 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5302 (decode_locdesc): Update.
5303 * dwarf2expr.h (dwarf_stack_op_name): Update.
5305 2011-02-16 Tom Tromey <tromey@redhat.com>
5307 * ax.h (struct aop_map) <name>: Now const.
5309 2011-02-16 Tom Tromey <tromey@redhat.com>
5311 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5314 2011-02-16 Yao Qi <yao@codesourcery.com>
5316 * infrun.c (get_displaced_step_closure_by_addr): New.
5317 * inferior.h: Declare it.
5318 * arm-tdep.c: (arm_pc_is_thumb): Call
5319 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
5322 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5323 Jan Kratochvil <jan.kratochvil@redhat.com>
5326 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
5328 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5329 Jan Kratochvil <jan.kratochvil@redhat.com>
5331 * value.c (value_contents_copy_raw): Extend describing comment.
5332 Assert that the destination contents we're overwriting are wholly
5334 (value_contents_copy): Extend describing comment.
5336 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5337 Jan Kratochvil <jan.kratochvil@redhat.com>
5339 * value.c (value_available_contents_eq): Remove redundant local
5340 variables. Fix available contents comparision.
5341 * value.h (value_available_contents_eq): Extend describing
5344 2011-02-16 Yao Qi <yao@codesourcery.com>
5346 * thread.c (info_threads_command): Add missing i18n markup and remove
5349 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5351 * breakpoint.c (longjmp_names): New variable.
5352 (struct breakpoint_objfile_data): New type.
5353 (breakpoint_objfile_key): New variable.
5354 (msym_not_found): New variable.
5355 (msym_not_found_p): New predicate.
5356 (get_breakpoint_objfile_data): New function.
5357 (create_overlay_event_breakpoint): Check per-objfile cache for
5359 (create_longjmp_master_breakpoint): Likewise.
5360 (create_std_terminate_master_breakpoint): Likewise.
5361 (create_exception_master_breakpoint): Likewise.
5362 (_initialize_breakpoint): Register per-objfile data key.
5364 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5366 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5368 (create_longjmp_master_breakpoint): Loop over longjmp names.
5369 (create_std_terminate_master_breakpoint): Const-propagate parameter
5371 (update_breakpoints_after_exec): Adjust.
5372 (breakpoint_re_set): Adjust.
5374 2011-02-15 Michael Snyder <msnyder@vmware.com>
5376 * thread.c (info_threads_command): Process arg as thread id,
5377 or list of thread ids.
5378 (thread_find_command): New command.
5379 (_initialize_thread): Document argument for info threads.
5380 Document 'thread find' command.
5381 * NEWS: Document new command "thread find".
5383 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5385 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5386 * aclocal.m4: Regenerated with aclocal-1.11.1.
5387 * common/configure: Regenerate with autoconf-2.64.
5389 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
5391 * opencl-lang.c (build_opencl_types): Set the size of the built-in
5392 bool data type to a size of one byte.
5394 2011-02-15 Pedro Alves <pedro@codesourcery.com>
5395 Jan Kratochvil <jan.kratochvil@redhat.com>
5397 * target.c (memory_xfer_live_readonly_partial): Document where to
5398 look for interface description.
5400 2011-02-15 Yao Qi <yao@codesourcery.com>
5403 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5404 order to store PC value on stack instead of text section.
5406 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
5408 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5409 the EFP register set size.
5410 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5411 data from the VMX register.
5412 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5413 and write data from/to the VMX register.
5415 2011-02-14 Michael Snyder <msnyder@vmware.com>
5417 * command.h (enum command_class): New class 'no_set_class', for
5418 "show" commands without a corresponding "set" command.
5419 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5420 * copying.c (_initialize_copying): Ditto for "show copying" and
5422 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5424 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5425 which there is no corresponding "set" command (eg. "show copying").
5427 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5428 Jan Kratochvil <jan.kratochvil@redhat.com>
5430 * exec.c (section_table_available_memory): Change `len' parameter
5432 * exec.h (section_table_available_memory): Ditto.
5433 * value.h (read_value_memory): Rename the `offset' parameter to
5436 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5437 Jan Kratochvil <jan.kratochvil@redhat.com>
5439 * memrange.c (compare_mem_ranges): Mention sort order in
5441 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5442 * tracepoint.c (traceframe_available_memory): Extend comment to
5443 mention what happens to RESULT when the target does not support
5446 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5447 Jan Kratochvil <jan.kratochvil@redhat.com>
5449 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5452 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5454 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5455 No longer handle NULL values.
5457 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5459 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5460 * value.c: Include "exceptions.h".
5461 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5463 * cp-abi.c: Include gdb_assert.h.
5464 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5465 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5467 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5468 parameters. No longer returns -1 on error.
5469 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5471 * cp-valprint.c: Include exceptions.h.
5472 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5473 the baseclass_offset. Handle unavailable base classes. Use
5474 val_print_invalid_address.
5475 * p-valprint.c: Include exceptions.h.
5476 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5477 when fetching the baseclass_offset. No longer expect
5478 baseclass_offset returning -1. Handle unavailable base classes.
5479 Use val_print_invalid_address.
5480 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5481 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5482 `embedded_offset' and `val' parameters. Adjust.
5483 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5484 parameter, and change its type to gdb_byte pointer. Add
5485 `embedded_offset' and `val' parameters. Adjust. No longer expect
5486 baseclass_offset returning -1.
5487 (value_dynamic_cast): Use value_contents_for_printing rather than
5488 value_contents. Adjust.
5489 (search_struct_field): No longer expect baseclass_offset returning
5491 (search_struct_method): If reading memory from the target is
5492 necessary, wrap it in a new value to pass to baseclass_offset. No
5493 longer expect baseclass_offset returning -1.
5494 (find_method_list): No longer expect baseclass_offset returning
5495 -1. Use value_contents_for_printing rather than value_contents.
5496 * valprint.c (val_print_invalid_address): New function.
5497 * valprint.h (val_print_invalid_address): Declare.
5498 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5499 and `val' parameters. No longer expect baseclass_offset returning
5501 * gnu-v2-abi.c: Include "exceptions.h".
5502 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5503 parameters. Handle unavailable memory. Recurse through
5504 gnuv2_baseclass_offset directly, rather than through
5505 baseclass_offset. No longer returns -1 on not found, instead
5507 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5508 `val' parameters. Adjust.
5510 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5512 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5513 almost but not quite adjacent.
5515 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5517 * value.h (value_entirely_available): Declare.
5518 * value.c (value_entirely_available): New function.
5519 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5520 real type if the pointer is unavailable.
5522 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5524 * valops.c (value_repeat): Use read_value_memory instead of
5527 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5529 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5530 * value.c (value_contents_copy_raw, value_contents_copy): New
5532 (value_primitive_field): Use value_contents_copy_raw instead of
5534 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5536 (value_array, value_slice): Ditto.
5537 * valarith.c (value_subscripted_rvalue): Use
5538 value_contents_copy_raw instead of memcpy.
5540 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5542 <unavailable> references.
5544 * valops.c (get_value_at): Use value_from_contents_and_address,
5545 avoiding read_memory.
5547 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5549 * c-valprint.c (c_val_print): Print a string with unavailable
5550 contents as an array.
5552 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5554 * value.h (unpack_bits_as_long): Delete declaration.
5555 (unpack_value_bits_as_long): Declare.
5556 (unpack_value_field_as_long): Declare.
5557 (value_field_bitfield): Declare.
5558 * value.c (unpack_bits_as_long): Rename to...
5559 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5560 value parameters. Return the extracted result in a new output
5561 parameter. If the value contents are unavailable, return false,
5562 otherwise return true.
5563 (unpack_value_bits_as_long): New.
5564 (unpack_field_as_long): Rename to...
5565 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5566 Add embedded_offset and value parameters. Return the extracted
5567 result in a new output parameter. If the value contents are
5568 unavailable, return false, otherwise return true.
5569 (unpack_value_field_as_long): New.
5570 (unpack_field_as_long_1): New.
5571 (unpack_field_as_long): Reimplement as wrapper around
5572 unpack_value_field_as_long_1.
5573 (value_field_bitfield): New function.
5574 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5575 unpack_value_bits_as_long. Mark the value as unavailable, if it
5577 * jv-valprint.c (java_print_value_fields): Use
5578 value_field_bitfield.
5579 * p-valprint.c (pascal_object_print_value_fields): Use
5580 value_field_bitfield.
5581 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5583 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5585 * value.c (get_internalvar_integer): Also return the int value of
5586 TYPE_CODE_INT INTERNALVAR_VALUE values.
5587 (set_internalvar): Don't special case TYPE_CODE_INT.
5589 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5591 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5592 INTERNALVAR_POINTER.
5594 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5595 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5596 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5598 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5600 * value.h (value_available_contents_eq): Declare.
5601 * value.c (find_first_range_overlap): New function.
5602 (value_available_contents_eq): New function.
5603 * valprint.c (val_print_array_elements): Use
5604 value_available_contents_eq.
5605 * ada-valprint.c (val_print_packed_array_elements): Use
5606 value_available_contents_eq.
5607 * jv-valprint.c (java_value_print): Use
5608 value_available_contents_eq.
5610 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5612 * target.c (target_read_live_memory): New function.
5613 (memory_xfer_live_readonly_partial): New.
5614 (memory_xfer_partial): If reading from a traceframe, fallback to
5615 reading unavailable read-only memory from read-only regions of
5617 * tracepoint.c (disconnect_tracing): Adjust.
5618 (set_current_traceframe): New, factored out from
5619 set_traceframe_number.
5620 (set_traceframe_number): Reimplement to only change the traceframe
5621 number on the GDB side.
5622 (do_restore_current_traceframe_cleanup): Adjust.
5623 (make_cleanup_restore_traceframe_number): New.
5624 (cur_traceframe_number): New global.
5625 (tfile_open): Set cur_traceframe_number to no traceframe.
5626 (set_tfile_traceframe): New function.
5627 (tfile_trace_find): If looking up a traceframe using any method
5628 other than by number, make sure the current tfile traceframe
5629 matches gdb's current traceframe. Update the current tfile
5630 traceframe if the lookup succeeded.
5631 (tfile_fetch_registers, tfile_xfer_partial)
5632 (tfile_get_trace_state_variable_value): Make sure the remote
5633 traceframe matches gdb's current traceframe.
5634 * remote.c (remote_traceframe_number): New global.
5635 (remote_open_1): Set it to -1.
5636 (set_remote_traceframe): New function.
5637 (remote_fetch_registers, remote_store_registers)
5638 (remote_xfer_memory, remote_xfer_partial)
5639 (remote_get_trace_state_variable_value): Make sure the remote
5640 traceframe matches gdb's current traceframe.
5641 (remote_trace_find): If looking up a traceframe using any method
5642 other than by number, make sure the current remote traceframe
5643 matches gdb's current traceframe. Update the current remote
5644 traceframe if the lookup succeeded.
5645 * infrun.c (fetch_inferior_event): Adjust.
5646 * tracepoint.h (set_current_traceframe): Declare.
5647 (get_traceframe_number, set_traceframe_number): Add describing
5650 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5652 Mark pieces of values as unavailable if the corresponding memory
5655 * valops.c: Include tracepoint.h.
5656 (value_fetch_lazy): Use read_value_memory.
5657 (read_value_memory): New.
5658 * value.h (read_value_memory): Declare.
5659 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5660 * exec.c (section_table_available_memory): New function.
5661 * exec.h (section_table_available_memory): Declare.
5663 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5665 * Makefile.in (SFILES): Add memrange.c.
5666 (HFILES_NO_SRCDIR): Add memrange.h.
5667 (COMMON_OBS): Add memrange.o.
5668 * memrange.c: New file.
5669 * memrange.h: New file.
5670 * tracepoint.c: Include memrange.h.
5671 (struct mem_range): Delete.
5672 (mem_range_s): Delete.
5673 (traceframe_available_memory): New function.
5674 * tracepoint.h (traceframe_available_memory): Declare.
5676 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5678 * target.h (struct traceframe_info): Forward declare.
5679 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5680 (struct target_ops) <to_traceframe_info>: New field.
5681 (target_traceframe_info): New.
5682 * target.c (update_current_target): Inherit and default
5684 * remote.c (PACKET_qXfer_traceframe_info): New.
5685 (remote_protocol_features): Register qXfer:traceframe-info:read.
5686 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5687 (remote_traceframe_info): New.
5688 (init_remote_ops): Install it.
5689 (_initialize_remote): Install "set/show remote traceframe-info"
5691 * tracepoint.h (parse_traceframe_info): Declare.
5692 * tracepoint.c (struct mem_range): New.
5693 (mem_range_s): New typedef.
5694 (struct traceframe_info): New.
5695 (traceframe_info): New global.
5696 (free_traceframe_info): New function.
5697 (clear_traceframe_info): New function.
5698 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5700 (build_traceframe_info): New function.
5701 (tfile_traceframe_info): New function.
5702 (init_tfile_ops): Install tfile_traceframe_info.
5703 (traceframe_info_start_memory, free_result): New functions.
5704 (memory_attributes, traceframe_info_elements): New globals.
5705 (parse_traceframe_info, get_traceframe_info): New functions.
5706 * features/traceframe-info.dtd: New file.
5707 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5709 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5711 Base support for <unavailable> value contents.
5713 * value.h (value_bytes_available): Declare.
5714 (mark_value_bytes_unavailable): Declare.
5715 * value.c (struct range): New struct.
5716 (range_s): New typedef.
5717 (ranges_overlap): New function.
5718 (range_lessthan): New function.
5719 (ranges_contain_p): New function.
5720 (struct value) <unavailable>: New field.
5721 (value_bytes_available): New function.
5722 (mark_value_bytes_unavailable): New function.
5723 (require_not_optimized_out): Constify parameter.
5724 (require_available): New function.
5725 (value_contents_all, value_contents): Require all bytes be
5727 (value_free): Free `unavailable'.
5728 (value_copy): Copy `unavailable'.
5729 * valprint.h (val_print_unavailable): Declare.
5730 * valprint.c (valprint_check_validity): Rename `offset' parameter
5731 to `embedded_offset'. If printing a scalar, check whether the
5732 value chunk is available.
5733 (val_print_unavailable): New.
5734 (val_print_scalar_formatted): Check whether the value is
5736 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5737 pretty-printing unavailable values.
5739 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5741 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5742 * c-typeprint.c (c_type_print_args): Update the function comment. New
5743 variable param_type, initialize it. Remove const/volatile qualifiers
5744 for language_cplus and !show_artificial. Use param_type.
5746 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5748 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5749 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5750 * symtab.h (struct symtab) <next>: Comment extension.
5752 2011-02-12 Yao Qi <yao@codesourcery.com>
5754 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5756 2011-02-11 Yao Qi <yao@codesourcery.com>
5758 * common/Makefile.in: Add copyright header.
5760 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5762 * infrun.c (proceed): Move switching out and in of tfind mode from
5764 (fetch_inferior_event): ... to here.
5766 2011-02-11 Yao Qi <yao@codesourcery.com>
5768 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5770 * configure.ac: Add common to sub dir.
5771 * configure: Regenerate.
5773 2011-02-11 Yao Qi <yao@codesourcery.com>
5777 * common/Makefile.in: New.
5778 * common/configure.ac: New.
5779 * common/aclocal.m4: New.
5780 * common/configure: Generate.
5782 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5784 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5785 side of the parenthesis.
5788 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5789 * vec.h (VEC_block_remove): Fix comment.
5791 2011-02-08 Michael Snyder <msnyder@vmware.com>
5793 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5795 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5797 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5798 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5801 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5804 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5806 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5807 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5809 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5811 * dwarf2read.c (read_subroutine_type): Set special calling
5812 convention flag for functions compiled by IBM XL C for OpenCL.
5813 * ppc-sysv-tdep.c: Include "dwarf2.h"
5814 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5816 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5817 IBM OpenCL vector types calling convention.
5818 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5819 (ppc_sysv_abi_broken_return_value): Likewise.
5820 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5821 types calling convention.
5822 (ppc64_sysv_abi_return_value): Likewise.
5823 * spu-tdep.c: Include "dwarf2.h"
5824 (spu_return_value): Implement IBM OpenCL vector types calling
5827 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5829 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5830 correct ABI for AltiVec vector arguments.
5832 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5834 * valprint.c (val_print): Extend comment.
5835 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5836 interface explanation to val_print.
5837 (ada_val_print_array): Adjust comment to current interface.
5838 (print_field_values): Adjust comment to current interface.
5839 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5840 explanation to val_print.
5841 * f-valprint.c (f_val_print): Ditto.
5842 * jv-valprint.c (java_val_print): Ditto.
5843 * m2-valprint.c (m2_val_print): Ditto.
5844 * p-valprint.c (pascal_val_print): Ditto.
5846 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5848 * breakpoint.c (parse_breakpoint_sals): Fix description.
5850 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5851 Oguz Kayral <oguzkayral@gmail.com>
5853 * python/py-inferior.c (python_on_normal_stop): New function.
5854 (python_on_resume): New function.
5855 (python_inferior_exit): New function.
5856 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5857 inferior_exit observers.
5858 * python/py-evtregistry.c: New file.
5859 * python/py-threadevent.c : New file.
5860 * python/py-event.c: New file.
5861 * python/py-evts.c: New file.
5862 * python/py-continueevent.c: New file.
5863 * python/py-bpevent.c: New file.
5864 * python/py-signalevent.c: New file.
5865 * python/py-exetiedevent.c: New file.
5866 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5867 Move struct breakpoint_object from here...
5868 * python/python-internal.h: ... to here.
5869 * python/py-event.h: New file.
5870 * python/py-events.h: New file.
5871 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5872 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5873 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5874 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5875 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5876 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5877 Add build rules for all the above.
5879 2011-02-04 Tom Tromey <tromey@redhat.com>
5881 * dwarf2read.c (dwarf2_section_empty_p): New function.
5882 (dwarf2_read_section): Use dwarf2_section_empty_p.
5883 (dwarf2_section_size): New function.
5884 (dwarf2_get_section_info): Unconditionally read section.
5885 (dwarf2_read_index): Use dwarf2_section_empty_p.
5886 (partial_read_comp_unit_head): Use dwarf2_section_size.
5887 (dwarf2_symbol_mark_computed): Likewise.
5889 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5891 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5893 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5895 * mips-linux-tdep.c: Include xml-syscall.h.
5896 (mips_linux_get_syscall_number): New function.
5897 (mips_linux_init_abi): Add calls to
5898 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5899 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5900 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5901 * syscalls/mips-n32-linux.xml: New file.
5902 * syscalls/mips-n64-linux.xml: New file.
5903 * syscalls/mips-o32-linux.xml: New file.
5905 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5907 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5908 Complain about inverted range entries.
5909 (dwarf2_record_block_ranges): Likewise.
5911 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5914 * breakpoint.c (update_watchpoint): Fix name of the
5915 update_global_location_list function.
5916 (print_one_breakpoint): Fix typo.
5917 (_initialize_breakpoint): Remove extra space in hbreak help
5919 * breakpoint.h (struct bp_location) <length>: Fix field
5922 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5924 * regcache.c (registers_changed_ptid): Don't explictly always
5925 clear `current_regcache'. Only clear current_thread_ptid and
5926 current_thread_arch when PTID matches. Only reinit the frame
5927 cache if PTID matches the current inferior_ptid. Move alloca(0)
5929 (registers_changed): ... here.
5931 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5933 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5934 starts with __stack_chk_guard as stack guard symbol.
5936 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5938 * disasm.c (compare_lines): Handle the end of sequence markers
5939 within the line table to better support disassembling over
5940 compilation unit boundaries.
5942 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5944 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5945 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5946 implementation even if no symbols are available.
5947 (thumb_analyze_prologue): Update call to skip_prologue_function.
5948 (arm_analyze_prologue): Likewise.
5950 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5952 * arm-tdep.c: Include "observer.h".
5953 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5954 (arm_exidx_data_key): New static variable.
5955 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5956 (struct arm_exidx_data): Likewise.
5957 (arm_exidx_data_free): New function.
5958 (arm_compare_exidx_entries): Likewise.
5959 (arm_obj_section_from_vma): Likewise.
5960 (arm_exidx_new_objfile): Likewise.
5961 (arm_find_exidx_entry): Likewise.
5962 (arm_exidx_fill_cache): Likewise.
5963 (arm_exidx_unwind_sniffer): Likewise.
5964 (arm_exidx_unwind): New global variable.
5965 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5966 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5967 observer. Register arm_exidx_data_key as objfile data.
5969 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5971 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5972 due to accessing uninitialized variable. Fix indentation.
5974 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5976 * c-valprint.c (c_value_print): When doing virtual base pointer
5977 adjustment, create a new value with adjusted contents rather than
5978 changing the contents of the value being printed (and getting it
5981 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5983 * xml-support.c (xml_find_attribute): New.
5984 (xinclude_start_include): Use it.
5985 * xml-support.h (xml_find_attribute): Declare.
5986 * memory-map.c (memory_map_start_memory)
5987 (memory_map_start_property): Use xml_find_attribute.
5988 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5990 * remote.c (start_thread): Use xml_find_attribute.
5991 * solib-target.c (library_list_start_segment)
5992 (library_list_start_section, library_list_start_library)
5993 (library_list_start_list): Use xml_find_attribute.
5994 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5995 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5996 (tdesc_start_field): Use xml_find_attribute.
5998 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
6000 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
6001 (BUILD_OCL_VTYPES): Update.
6003 2011-02-02 Joel Brobecker <brobecker@adacore.com>
6005 * configure.ac: Work around non-GNU sed limitation when computing
6006 python version number.
6007 * configure: Regenerate.
6009 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6011 Fix debug printing of TYPE_INSTANCE.
6012 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
6013 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
6015 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6017 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
6018 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
6019 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
6020 * ada-operator.inc: Rename the file to ...
6021 * ada-operator.def: ... here, wrap all the entries by macro OP.
6022 * expprint.c (op_name_standard): Remove all the entries. Include
6023 "std-operator.def" instead.
6024 * expression.h (enum exp_opcode): Include "std-operator.def" and
6025 "ada-operator.def". Move all the entries ...
6026 * std-operator.def: ... here, wrap all the entries by macro OP.
6028 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6030 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
6031 * breakpoint.c (remove_jit_event_breakpoints): New function.
6032 * jit.c (jit_descriptor_addr): Delete.
6033 (registering_code): Delete.
6034 (clear_int): Delete.
6035 (jit_inferior_data): New variable.
6036 (struct jit_inferior_data): New type.
6037 (get_jit_inferior_data): New function.
6038 (jit_inferior_data_cleanup): New function.
6039 (jit_read_descriptor): Adjust.
6040 (jit_register_code): Adjust.
6041 (jit_breakpoint_re_set_internal): New function; move code here ...
6042 (jit_inferior_init): ... from here.
6043 (jit_breakpoint_re_set): Adjust.
6044 (jit_reset_inferior_data_and_breakpoints): New function.
6045 (jit_inferior_created_observer): Adjust.
6046 (jit_inferior_exit_hook): Adjust.
6047 (jit_executable_changed_observer): New function.
6048 (jit_event_handler): Adjust.
6049 (_initialize_jit): Adjust.
6051 2011-01-31 Michael Snyder <msnyder@vmware.com>
6053 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
6056 2011-01-31 Tom Tromey <tromey@redhat.com>
6059 * python/python.c (execute_gdb_command): Call
6060 prevent_dont_repeat.
6061 * top.c (suppress_dont_repeat): New global.
6062 (dont_repeat): Use it.
6063 (prevent_dont_repeat): New function.
6064 * command.h (prevent_dont_repeat): Declare.
6066 2011-01-31 Tom Tromey <tromey@redhat.com>
6068 * infcmd.c (finish_backward): Use breakpoint_set_silent.
6069 * python/py-breakpoint.c (bppy_set_silent): Use
6070 breakpoint_set_silent.
6071 (bppy_set_thread): Use breakpoint_set_thread.
6072 (bppy_set_task): Use breakpoint_set_task.
6073 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
6074 (breakpoint_set_task): Declare.
6075 (make_breakpoint_silent): Remove.
6076 * breakpoint.c (breakpoint_set_silent): New function.
6077 (breakpoint_set_thread): Likewise.
6078 (breakpoint_set_task): Likewise.
6079 (make_breakpoint_silent): Remove.
6081 2011-01-31 Tom Tromey <tromey@redhat.com>
6083 * breakpoint.h (user_breakpoint_p): Declare.
6084 * breakpoint.c (user_breakpoint_p): New function.
6085 (breakpoint_1): Use it.
6086 (save_breakpoints): Likewise.
6088 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6090 * configure.ac: Add handling of Python distribution on Windows.
6091 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
6092 sysconfig variables are not defined, then do not use them.
6093 On Windows, if LIBPL is not defined, then use prefix + '/libs'
6094 instead. On Windows, return all paths using forward-slashes
6095 rather than backslashes.
6097 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6099 * configure.ac: Remove fallback behavior for building
6100 against Python. Remove tweaking of Python include path.
6101 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
6102 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
6103 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
6104 Always restore CPPFLAGS and LIBS after linking test.
6105 * configure: Regenerated.
6106 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
6107 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
6108 * python/python-internal.h: Adjust includes of Python .h files.
6110 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6112 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
6115 2011-01-31 Joel Brobecker <brobecker@adacore.com>
6117 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
6120 2011-01-31 Yao Qi <yao@codesourcery.com>
6122 * arm-linux-nat.c: Update calls to regcache_register_status
6123 instead of regcache_valid_p.
6124 * aix-thread.c: Likewise.
6125 * i386gnu-nat.c: Likewise.
6127 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6130 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
6131 touching TYPE_FIELD_ARTIFICIAL.
6133 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
6135 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
6138 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6140 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
6141 selected, don't try iterating over the traceframe's blocks.
6142 (tfile_has_stack): If there's no traceframe selected, then there's
6144 (tfile_has_registers): If there's no traceframe selected, then
6145 there's no registers.
6147 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6149 * target.c (memory_xfer_partial): No need to restore shadows if we
6150 haven't read anything.
6152 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6154 * mips-tdep.c (mips_print_register): Use get_frame_register_value
6155 and val_print_scalar_formatted.
6157 2011-01-27 Pedro Alves <pedro@codesourcery.com>
6159 * tracepoint.c (tfile_read): New.
6160 (tfile_open): Use it.
6161 (tfile_get_traceframe_address): Use it.
6162 (tfile_trace_find): Use it.
6163 (walk_blocks_callback_func): New typedef.
6164 (match_blocktype): New function.
6165 (traceframe_walk_blocks): New function.
6166 (traceframe_find_block_type): New function.
6167 (tfile_fetch_registers, tfile_xfer_partial)
6168 (tfile_get_trace_state_variable_value): Use
6169 traceframe_find_block_type and tfile_read.
6171 2011-01-26 Kevin Buettner <kevinb@redhat.com>
6173 * remote-mips.c: Add internationalization mark ups. Remove
6174 trailing \n from already marked up strings.
6176 2011-01-26 Tom Tromey <tromey@redhat.com>
6178 * python/py-prettyprint.c (print_string_repr): Clear
6179 'addressprint' option when calling val_print_string.
6180 (print_children): Handle Val_pretty_default. Clear 'addressprint'
6181 option when calling val_print_string.
6183 2011-01-26 Tom Tromey <tromey@redhat.com>
6185 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
6187 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6189 (gdb_py_longest, gdb_py_ulongest): New typedefs.
6190 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6191 (gdb_py_long_as_ulongest): New defines.
6192 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6193 (gdb_py_int_as_long): Declare.
6194 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6195 GDB_PY_LL_ARG, gdb_py_object_from_longest.
6196 (valpy_long): Add comment.
6197 * python/py-utils.c (get_addr_from_python): Use
6198 gdb_py_long_as_ulongest. Handle overflow properly.
6199 (gdb_py_object_from_longest): New function.
6200 (gdb_py_object_from_ulongest): Likewise.
6201 (gdb_py_int_as_long): Likewise.
6202 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6203 * python/py-symtab.c (salpy_get_pc): Use
6204 gdb_py_long_from_ulongest.
6205 (salpy_get_line): Use PyInt_FromLong.
6206 * python/py-param.c (set_parameter_value): Use
6208 * python/py-lazy-string.c (stpy_get_address): Use
6209 gdb_py_long_from_ulongest.
6210 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6211 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6212 * python/py-breakpoint.c (bppy_set_thread): Use
6214 (bppy_set_task): Likewise.
6215 (bppy_set_ignore_count): Likewise.
6216 (bppy_set_hit_count): Likewise.
6217 * python/py-block.c (blpy_get_start): Use
6218 gdb_py_object_from_ulongest.
6219 (blpy_get_end): Likewise.
6220 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6222 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
6225 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6226 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6227 equality test for objfile, initialize addr_low if needed.
6229 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6231 * tui/tui-regs.c (tui_register_format): Remove dead code.
6233 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6235 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6236 instead of print_scalar_formatted.
6237 (print_scalar_formatted): Don't handle 's' format strings here,
6238 and add an assertion that we never see such format here.
6239 * valprint.h (val_print_scalar_formatted): Declare.
6240 * valprint.c (val_print_scalar_formatted): New.
6241 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6242 instead of print_scalar_formatted.
6243 * jv-valprint.c (java_val_print): Ditto.
6244 * p-valprint.c (pascal_val_print): Ditto.
6245 * ada-valprint.c (ada_val_print_1): Ditto.
6246 * f-valprint.c (f_val_print): Ditto.
6247 * infcmd.c (registers_info): Ditto.
6248 * m2-valprint.c (m2_val_print): Ditto.
6250 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6252 * m2-valprint.c (print_unbounded_array): Pass
6253 value_contents_for_printing rather than value_contents, to
6254 m2_print_array_contents. Also pass in the value.
6256 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6258 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6259 (save_gdb_index_command): Switch to .gdb_index version 4.
6261 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6263 * mi/mi-main.c (get_register): Use get_frame_register_value rather
6264 than frame_register, and always pass a valid value to val_print.
6266 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6268 Centralize printing "<optimized out>".
6270 * valprint.h (val_print_optimized_out): Declare.
6271 * cp-valprint.c (cp_print_value_fields): Use
6272 val_print_optimized_out.
6273 * jv-valprint.c (java_print_value_fields): Ditto.
6274 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6275 * printcmd.c (print_formatted): Ditto.
6276 * valprint.c (valprint_check_validity): Ditto.
6277 (value_check_printable): Ditto.
6278 (val_print_optimized_out): New.
6280 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6282 * infcmd.c (default_print_registers_info): Allocate values so to
6283 never pass a NULL value to val_print.
6285 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6287 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6288 boolean. Make sure to always pass a value that matches the
6289 contents buffer to callees. Preserve `address' for following
6291 * value.c (value_contents_for_printing_const): New.
6292 (value_address): Constify value argument.
6293 * value.h (value_contents_for_printing_const): Declare.
6294 (value_address): Constify value argument.
6296 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6298 * regcache.c (struct regcache_descr): Rename
6299 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6300 and sizeof_cooked_register_valid_p to
6301 sizeof_cooked_register_status.
6302 (init_regcache_descr): Adjust.
6303 (struct regcache): Rename register_valid_p field to
6305 (regcache_xmalloc_1, regcache_xfree, regcache_save)
6306 (do_cooked_read): Adjust.
6307 (regcache_valid_p): Rename to ...
6308 (regcache_register_status): ... this. Adjust.
6309 (regcache_invalidate): Adjust.
6310 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6312 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
6313 as unavailable, not valid.
6314 (regcache_dump): Adjust.
6315 * regcache.h (enum register_status): New.
6316 (regcache_register_status): Declare.
6317 (regcache_invalidate): Delete declaration.
6318 * corelow.c (get_core_registers): Adjust.
6319 * tracepoint.c (tfile_fetch_registers): Adjust.
6320 * trad-frame.c (REG_VALUE): Rename to ...
6321 (TF_REG_VALUE): ... this.
6322 (REG_UNKNOWN): Rename to ...
6323 (TF_REG_UNKNOWN): ... this.
6324 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
6325 * mi/mi-main.c (register_changed_p): Adjust.
6327 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6329 * regcache.c (struct regcache_descr): Remove outdated comment.
6330 (init_regcache_descr): Remove sizeof_raw_register_valid_p
6332 (regcache_xmalloc): Rename to ...
6333 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
6334 Allocate the regcache type accordingly.
6335 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
6336 (regcache_xfree): Asser the source is also readonly. Copy sizeof
6337 cooked registers, not raw.
6338 (regcache_dup_no_passthrough): Delete.
6339 (get_thread_arch_regcache): Use regcache_xmalloc_1.
6340 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
6341 mention obsolete write_register_bytes.
6342 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6344 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6346 Stop remote_read_bytes from handling partial reads itself.
6348 * remote-fileio.c: Include target.h.
6349 (remote_fileio_write_bytes): Delete.
6350 (remote_fileio_func_open, remote_fileio_func_write)
6351 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6353 (remote_fileio_func_stat): Use target_read_memory and
6354 target_write_memory.
6355 (remote_fileio_func_gettimeofday): Use target_write_memory.
6356 (remote_fileio_func_system): Use target_read_memory.
6357 * remote.c (remote_write_bytes): Make it static.
6358 (remote_read_bytes): Don't handle partial reads here.
6359 * remote.h (remote_read_bytes): Delete declaration.
6361 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6363 Simplify XML parsing a bit.
6365 * xml-support.h (gdb_xml_parse_quick): Declare.
6366 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6367 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6369 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6370 gdb_xml_create_parser_and_cleanup_1.
6371 (gdb_xml_parse_quick): New.
6372 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6373 * osdata.c (osdata_parse): Ditto.
6374 * remote.c (remote_threads_info): Ditto.
6375 * solib-target.c (solib_target_parse_libraries): Ditto.
6376 * xml-syscall.c (syscall_parse_xml): Ditto.
6377 * xml-tdesc.c (tdesc_parse_xml): Ditto.
6379 2011-01-24 Kevin Buettner <kevinb@redhat.com>
6381 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6382 with remote-mips.o added to gdb_target_obs.
6383 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6385 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6387 * ada-valprint.c (val_print_packed_array_elements): Pass the
6388 correct struct value to val_print.
6389 (ada_val_print_1): Ditto.
6391 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6393 Don't lose embedded_offset in printing routines throughout.
6395 * valprint.h (val_print_array_elements): Change prototype.
6396 * valprint.c (val_print_array_elements): Add `embedded_offset'
6397 parameter, and adjust to pass it down to val_print, while passing
6398 `valaddr' or `address' unmodified. Take embedded_offset into
6399 account when checking repetitions.
6400 * c-valprint.c (c_val_print): Pass embedded_offset to
6401 val_print_array_elements instead of adjusting `valaddr' and
6403 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6404 embedded_offset to val_print_array_elements instead of adjusting
6406 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6407 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6408 val_print_array_elements and pascal_object_print_value_fields
6409 instead of adjusting `valaddr'.
6410 (pascal_object_print_value_fields): Add `offset' parameter, and
6412 (pascal_object_print_value): Add `offset' parameter, and adjust to
6414 (pascal_object_print_static_field): Use
6415 value_contents_for_printing/value_embedded_offset, rather than
6417 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6418 parameter, and adjust to use it. Use
6419 value_contents_for_printing/value_embedded_offset, rather than
6421 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6422 (ada_val_print_array): Add `offset' parameter, and adjust to use
6424 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6425 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6426 Instead work with offsets. Use
6427 value_contents_for_printing/value_embedded_offset, rather than
6428 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6429 and use value_from_pointer to extract a target pointer, rather
6430 than value_from_longest.
6431 (print_variant_part): Add `offset' parameter. Replace
6432 `outer_valaddr' parameter by a new `outer_offset' parameter.
6433 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6434 (ada_value_print): Use
6435 value_contents_for_printing/value_embedded_offset, rather than
6437 (print_record): Add `offset' parameter, and adjust to pass it
6439 (print_field_values): Add `offset' parameter. Replace
6440 `outer_valaddr' parameter by a new `outer_offset' parameter.
6441 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6442 Use value_contents_for_printing/value_embedded_offset, rather than
6444 * d-valprint.c (dynamic_array_type): Use
6445 value_contents_for_printing/value_embedded_offset, rather than
6447 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6448 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6449 (java_print_value_fields): Take `offset' into account. Don't
6450 re-adjust `valaddr'. Instead pass down adjusted offsets.
6451 (java_val_print): Take `embedded_offset' into account. Pass it to
6452 java_print_value_fields.
6453 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6454 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6455 down adjusted offsets.
6456 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6457 (f_val_print): Take `embedded_offset' into account.
6459 2011-01-21 Joel Brobecker <brobecker@adacore.com>
6461 * inflow.c: Include "gdbcmd.h".
6462 (interactive_mode): New static global, moved here from top.c.
6463 (show_interactive_mode): New function, moved here from top.c.
6464 use gdb_has_a_terminal instead of input_from_terminal_p to
6465 determine the current mode.
6466 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6468 (_initialize_inflow): Add the "set/show interactive-mode"
6469 commands. Moved here from top.c, after having adjusted slightly
6471 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6473 (input_from_terminal_p): Remove handling of "interactive-mode"
6474 setting, moved to infow.c.
6475 (init_main): Remove creation of the "set/show interactive-mode"
6476 commands, moved to inflow.c.
6478 2011-01-19 Joel Brobecker <brobecker@adacore.com>
6480 * NEWS: Add entry for native ia64-hpux support.
6482 2011-01-19 Tom Tromey <tromey@redhat.com>
6485 * thread.c (free_thread): Free 'name'.
6486 (print_thread_info): Emit thread name. Change CLI output.
6487 (thread_name_command): New function.
6488 (do_captured_thread_select): Emit newline.
6489 (_initialize_thread): Register 'thread name' command.
6490 * target.h (struct target_ops) <to_thread_name>: New field.
6491 (target_thread_name): New macro.
6492 * target.c (update_current_target): Handle to_thread_name.
6493 * python/py-infthread.c (thpy_get_name): New function.
6494 (thpy_set_name): Likewise.
6495 (thread_object_getset): Add "name".
6496 * linux-nat.c (linux_nat_thread_name): New function.
6497 (linux_nat_add_target): Set to_thread_name.
6498 * gdbthread.h (struct thread_info) <name>: New field.
6500 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6502 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6503 (ada_val_print_1): Likewise.
6505 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6507 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6508 upper limit address is not greater than the function end address
6509 when the upper limit could not be computed using the debugging
6512 2011-01-17 Tom Tromey <tromey@redhat.com>
6514 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6516 * utils.c: Include gdb_regex.h.
6517 (do_regfree_cleanup): New function.
6518 (make_regfree_cleanup): Likewise.
6519 (get_regcomp_error): Likewise.
6520 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6522 2011-01-17 Tom Tromey <tromey@redhat.com>
6524 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6527 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6529 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6530 for internal variables.
6531 (last_was_structop): New static variable.
6532 (COMPLETE): New token.
6533 (field_exp): New rule to group all '.' suffix handling.
6534 Add mark_struct_expression calls when approriate to be able
6535 to correctly find fields for completion.
6536 (yylex): Adapt to handle field completion and set INTVAR when
6539 2011-01-14 Yao Qi <yao@codesourcery.com>
6541 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6542 save_reggroup, restore_reggroup and all_reggroup.
6544 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6546 * ada-valprint. (ada_printchar): Use the correct type length
6547 in call to ada_emit_char.
6548 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6550 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6552 * solib-som.h (hpux_major_release): Declare variable here.
6553 * solib-som.c: Remove <sys/utsname.h> header.
6554 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6555 (hpux_major_release): Make global, change default value to
6556 DEFAULT_HPUX_MAJOR_RELEASE.
6557 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6558 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6559 Add "solib-som.h" header.
6560 (set_hpux_major_release): New function.
6561 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6563 2011-01-14 Mike Frysinger <vapier@gentoo.org>
6565 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6567 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6569 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6570 new-line at end of warning message.
6571 (ia64_hpux_store_register): Remove trailing new-line at end of
6573 * ia64-hpux-tdep.c: Rephrase comment.
6574 * solib-ia64-hpux.c (struct dld_info): Change type of field
6575 dld_flags from "long long" to ULONGEST.
6577 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6579 * target.h (deprecated_child_ops): Delete declaration.
6580 * target.c (deprecated_child_ops): Delete definition.
6582 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6584 * Makefile.in (hpux-thread.o): Delete rule.
6585 * configure.ac: Don't check for HPUX DCE threads support.
6586 * configure, config.in: Regenerate.
6587 * hppa-hpux-nat.c (child_suppress_run): Delete.
6588 (hppa_hpux_child_can_run): Delete.
6589 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6590 * hpux-thread.c: Delete.
6592 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6594 * hpux-thread.c (hpux_pid_to_str): Delete.
6596 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6598 * ada-valprint.c (ada_emit_char): Remove strange code.
6599 Check that c is <= UCHAR_MAX before passing it to isascii.
6600 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6602 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6604 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6605 to the case where instream is stdin.
6607 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6609 * ia64-tdep.h (struct regcache): Forward declare.
6610 (struct ia64_infcall_ops): New struct type.
6611 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6613 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6614 Renames ia64_find_global_pointer.
6615 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6616 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6617 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6619 (ia64_infcall_ops): New static global constant.
6620 (ia64_gdbarch_init): Set tdep->infcall_ops.
6621 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6622 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6623 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6624 (ia64_hpux_dummy_code): New static global constant.
6625 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6626 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6627 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6629 (ia64_hpux_infcall_ops): New static global constant.
6630 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6631 for inferior function calls to work properly on ia64-hpux.
6633 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6635 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6636 * ia64-tdep.h (struct frame_info): forward declaration.
6637 (struct gdbarch_tdep): Add field size_of_register_frame.
6638 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6639 to determine the size of the register frame.
6640 (ia64_size_of_register_frame): New function.
6641 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6642 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6643 (IA64_HPUX_UREG_REASON): New macro.
6644 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6646 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6647 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6648 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6651 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6653 Add support for ia64-hpux.
6654 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6655 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6657 * configure.host: Add handling for ia64-hpux hosts. Add associated
6659 * configure.tgt: Add handling for ia64-hpux targets.
6660 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6661 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6662 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6664 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6666 [ttrace] Compute thread list immediately after attach.
6667 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6669 (inf_ttrace_attach): Use it.
6671 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6673 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6674 if we could not determine the frame's function address. Instead,
6675 use the frame's PC, and then continue.
6677 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6679 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6680 not already defined.
6682 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6684 * ia64-tdep.c (ia64_struct_type_p): New function.
6685 (ia64_extract_return_value): Handle integral values that are
6686 less than 8 bytes long.
6687 (ia64_push_dummy_call): Likewise.
6689 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6691 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6692 floatformat_ia64_ext.
6693 (floatformat_ia64_ext_big): New static const.
6694 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6696 2011-01-12 Tom Tromey <tromey@redhat.com>
6698 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6700 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6701 (mi_cmd_thread_list_ids): Likewise.
6702 (mi_cmd_data_list_changed_registers): Likewise.
6703 (mi_cmd_data_list_register_values): Likewise.
6704 (mi_cmd_data_write_register_values): Likewise.
6705 (mi_cmd_data_evaluate_expression): Likewise.
6706 (mi_cmd_data_read_memory): Likewise.
6707 (mi_cmd_data_read_memory_bytes): Likewise.
6708 (mi_cmd_data_write_memory): Likewise.
6709 (mi_cmd_enable_timings): Likewise.
6710 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6711 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6712 (mi_cmd_var_delete): Likewise.
6713 (mi_cmd_var_set_format): Likewise.
6714 (mi_cmd_var_show_format): Likewise.
6715 (mi_cmd_var_info_num_children): Likewise.
6716 (mi_cmd_var_list_children): Likewise.
6717 (mi_cmd_var_info_type): Likewise.
6718 (mi_cmd_var_info_expression): Likewise.
6719 (mi_cmd_var_show_attributes): Likewise.
6720 (mi_cmd_var_assign): Likewise.
6721 (mi_cmd_var_update): Likewise.
6722 (mi_cmd_enable_pretty_printing): Likewise.
6723 (mi_cmd_var_set_update_range): Likewise.
6724 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6726 (mi_cmd_target_file_put): Likewise.
6727 (mi_cmd_target_file_delete): Likewise.
6728 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6730 (mi_cmd_stack_info_depth): Likewise.
6731 (mi_cmd_stack_list_locals): Likewise.
6732 (mi_cmd_stack_list_args): Likewise.
6733 (mi_cmd_stack_select_frame): Likewise.
6734 (mi_cmd_stack_select_frame): Likewise.
6735 (mi_cmd_stack_info_frame): Likewise.
6736 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6738 (mi_cmd_file_list_exec_source_files): Likewise.
6739 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6740 (mi_cmd_env_cd): Likewise.
6741 (mi_cmd_env_path): Likewise.
6742 (mi_cmd_env_dir): Likewise.
6743 (mi_cmd_inferior_tty_show): Likewise.
6744 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6745 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6746 (mi_cmd_break_watch): Likewise.
6748 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6750 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6751 (ppc_linux_insert_hw_breakpoint): Likewise.
6752 (ppc_linux_remove_hw_breakpoint): Likewise.
6753 (ppc_linux_insert_watchpoint): Likewise.
6755 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6756 Jan Kratochvil <jan.kratochvil@redhat.com>
6758 PR fortran/11104 and DWARF unbound arrays detection.
6759 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6760 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6761 unspecified upper bound.
6762 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6763 variables array_size_array, tmp_type and offset_item. New variable
6764 array. Remove call to f77_get_upperbound. New variables array_type
6765 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6766 the final call to deprecated_set_value_type.
6768 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6770 Make value allocations more lazy.
6771 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6772 instead of allocate_value and set_value_lazy when possible.
6773 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6774 instead of allocate_value and set_value_lazy.
6775 * findvar.c (value_of_register_lazy): Likewise.
6776 (read_var_value): Remove V preallocation, call just check_typedef in
6777 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6778 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6779 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6780 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6781 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6782 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6783 the end, remove set_value_lazy there.
6784 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6785 instead of allocate_value and set_value_lazy when possible.
6786 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6787 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6788 of allocate_value and set_value_lazy.
6789 (value_from_contents_and_address): Use allocate_value_lazy instead of
6790 allocate_value and set_value_lazy when possible.
6792 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6794 * disasm.c (dump_insns): Support dumping opcodes for MI.
6795 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6796 dumping of instruction opcodes.
6798 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6800 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6803 2011-01-11 Tom Tromey <tromey@redhat.com>
6805 * thread.c (do_captured_thread_select): Emit newline before
6808 2011-01-11 Michael Snyder <msnyder@vmware.com>
6810 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6811 * score-tdep.c: Ditto.
6812 * score-tdep.h: Ditto.
6813 * ser-base.c: Ditto.
6814 * ser-go32.c: Ditto.
6817 * ser-mingw.c: Ditto.
6818 * ser-pipe.c: Ditto.
6820 * ser-unix.c: Ditto.
6821 * sh64-tdep.c: Ditto.
6822 * shnbsd-nat.c: Ditto.
6826 * solib-darwin.c: Ditto.
6827 * solib-frv.c: Ditto.
6829 * solib-irix.c: Ditto.
6830 * solib-osf.c: Ditto.
6831 * solib-pa64.c: Ditto.
6832 * solib-som.c: Ditto.
6833 * solib-spu.c: Ditto.
6834 * solib-sunos.c: Ditto.
6835 * solib-svr4.c: Ditto.
6837 * sol-thread.c: Ditto.
6841 * sparc64-linux-tdep.c: Ditto.
6842 * sparc64-tdep.c: Ditto.
6843 * sparc-linux-nat.c: Ditto.
6844 * sparc-linux-tdep.c: Ditto.
6845 * sparc-sol2-nat.c: Ditto.
6846 * sparc-sol2-tdep.c: Ditto.
6847 * sparc-tdep.c: Ditto.
6848 * sparc-tdep.h: Ditto.
6849 * spu-tdep.c: Ditto.
6850 * stabsread.c: Ditto.
6851 * stabsread.h: Ditto.
6859 * target-descriptions.c: Ditto.
6860 * target-descriptions.h: Ditto.
6862 * target-memory.c: Ditto.
6863 * terminal.h: Ditto.
6866 * tracepoint.c: Ditto.
6867 * tracepoint.h: Ditto.
6868 * trad-frame.h: Ditto.
6869 * typeprint.c: Ditto.
6871 2011-01-11 Michael Snyder <msnyder@vmware.com>
6873 * ui-file.c: Comment cleanup, mostly periods and spaces.
6878 * v850-tdep.c: Ditto.
6879 * valarith.c: Ditto.
6881 * valprint.c: Ditto.
6882 * valprint.h: Ditto.
6887 * vax-tdep.c: Ditto.
6891 * windows-nat.c: Ditto.
6892 * windows-tdep.c: Ditto.
6893 * xcoffread.c: Ditto.
6894 * xcoffsolib.c: Ditto.
6895 * xml-support.c: Ditto.
6896 * xstormy16-tdep.c: Ditto.
6897 * xtensa-tdep.c: Ditto.
6898 * xtensa-tdep.h: Ditto.
6900 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6902 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6903 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6905 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6906 Thiago Jung Bauermann <bauerman@br.ibm.com>
6908 Implement support for PowerPC BookE ranged watchpoints.
6910 (struct breakpoint_ops) <resources_needed>: New method.
6911 Initialize to NULL in all existing breakpoint_ops instances.
6912 (struct breakpoint) <exact>: New field.
6913 (target_exact_watchpoints): Declare external global.
6914 * breakpoint.c (target_exact_watchpoints): New global flag.
6915 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6916 b->enable_state to bp_enabled before calling
6917 hw_watchpoint_used_count.
6918 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6919 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6921 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6922 if the watchpoint is exact.
6923 (resources_needed_watchpoint): New function.
6924 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6925 (watch_command_1): Set b->exact if the user asked for an exact
6926 watchpoint and one can be set.
6927 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6928 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6929 the user asks for an exact watchpoint and one can be set. Return
6930 number of needed debug registers to watch the expression.
6931 * gdbtypes.c (is_scalar_type): New function, based on
6932 valprint.c:scalar_type_p.
6933 (is_scalar_type_recursive): New function.
6934 * gdbtypes.h (is_scalar_type_recursive): Declare.
6935 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6936 handle regions when ranged watchpoints are available.
6937 (create_watchpoint_request): New function.
6938 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6939 create_watchpoint_request.
6940 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6941 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6942 `set powerpc' and `show powerpc' commands.
6943 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6944 Mention documentation comment in the target macro.
6945 (target_region_ok_for_hw_watchpoint): Document return value.
6947 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6949 * breakpoint.c (update_watchpoint): Decide on using a software or
6950 hardware watchpoint after the bp_locations are created.
6952 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6954 Convert hardware watchpoints to use breakpoint_ops.
6955 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6956 <insert_location>: ... this. Return int instead of void.
6957 Accept pointer to struct bp_location instead of pointer to
6958 struct breakpoint. Adapt all implementations.
6959 (breakpoint_ops) <remove>: Rename to...
6960 <remove_location>: ... this. Accept pointer to struct bp_location
6961 instead of pointer to struct breakpoint. Adapt all implementations.
6962 * breakpoint.c (insert_catchpoint): Delete function.
6963 (insert_bp_location): Call the watchpoint or catchpoint's
6964 breakpoint_ops.insert method.
6965 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6966 breakpoint_ops.remove method.
6967 (insert_watchpoint, remove_watchpoint): New functions.
6968 (watchpoint_breakpoint_ops): New structure.
6969 (watch_command_1): Initialize the OPS field.
6970 * inf-child.c (inf_child_insert_fork_catchpoint)
6971 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6972 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6973 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6975 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6976 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6977 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6978 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6979 * target.c (update_current_target): Change default implementation of
6980 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6981 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6982 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6983 to_set_syscall_catchpoint to return_one.
6984 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6985 (debug_to_insert_exec_catchpoint): Report return value.
6986 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6987 (to_insert_exec_catchpoint): Change declaration to return int instead
6990 2011-01-11 Michael Snyder <msnyder@vmware.com>
6992 * arm-tdep.c: Internationalization.
6995 * fork-child.c: Ditto.
6996 * nto-procfs.c: Ditto.
6997 * ppc-sysv-tdep.c: Ditto.
6999 * remote-mips.c: Ditto.
7001 * rs6000-nat.c: Ditto.
7002 * rs6000-tdep.c: Ditto.
7006 * xml-support.c: Ditto.
7007 * mi/mi-cmd-break.c: Ditto.
7008 * mi/mi-cmd-var.c: Ditto.
7009 * mi/mi-interp.c: Ditto.
7010 * mi/mi-main.c: Ditto.
7012 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
7014 * remote-sim.c (gdbsim_store_register): Update API to
7015 sim_store_register to check more error conditions.
7017 2011-01-10 Michael Snyder <msnyder@vmware.com>
7019 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
7020 * nto-tdep.c: Ditto.
7021 * nto-tdep.h: Ditto.
7022 * objc-exp.y: Ditto.
7023 * objc-lang.c: Ditto.
7024 * objfiles.c: Ditto.
7025 * objfiles.h: Ditto.
7026 * observer.c: Ditto.
7027 * opencl-lang.c: Ditto.
7030 * parser-defs.h: Ditto.
7033 * posix-hdep.c: Ditto.
7034 * ppcbug-rom.c: Ditto.
7035 * ppc-linux-nat.c: Ditto.
7036 * ppc-linux-tdep.c: Ditto.
7037 * ppc-linux-tdep.h: Ditto.
7038 * ppcnbsd-tdep.c: Ditto.
7039 * ppcobsd-tdep.c: Ditto.
7040 * ppcobsd-tdep.h: Ditto.
7041 * ppc-sysv-tdep.c: Ditto.
7042 * ppc-tdep.h: Ditto.
7043 * printcmd.c: Ditto.
7044 * proc-abi.c: Ditto.
7045 * proc-flags.c: Ditto.
7047 * proc-utils.h: Ditto.
7048 * progspace.h: Ditto.
7049 * prologue-value.c: Ditto.
7050 * prologue-value.h: Ditto.
7051 * psympriv.h: Ditto.
7053 * p-typeprint.c: Ditto.
7054 * p-valprint.c: Ditto.
7055 * ravenscar-sparc-thread.c: Ditto.
7056 * ravenscar-thread.c: Ditto.
7057 * ravenscar-thread.h: Ditto.
7059 * regcache.c: Ditto.
7060 * regcache.h: Ditto.
7062 * remote-fileio.c: Ditto.
7063 * remote-fileio.h: Ditto.
7065 * remote-m32r-sdi.c: Ditto.
7066 * remote-mips.c: Ditto.
7067 * remote-sim.c: Ditto.
7068 * rs6000-aix-tdep.c: Ditto.
7069 * rs6000-nat.c: Ditto.
7070 * rs6000-tdep.c: Ditto.
7072 2011-01-10 Michael Snyder <msnyder@vmware.com>
7074 * charset.c (validate): Internationalization.
7075 * coffread.c (read_one_sym): Ditto.
7076 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
7077 * h8300-tdep.c (H8300_extract_return_value): Ditto.
7078 * inflow.c (new_tty): Ditto.
7079 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
7080 * m32c-tdep.c (m32c_return_value): Ditto.
7081 * mep-tdep.c (mep_store_return_value): Ditto.
7082 * score-tdep.c (score7_fetch_insn): Ditto.
7083 * ser-mingw.c (pipe_windows_open): Ditto.
7084 * sh64-tdep.c (sh64_extract_return_value): Ditto.
7085 * spu-tdep.c (spu_register_type): Ditto.
7086 * tracepoint.c (trace_find_command): Ditto.
7087 * valarith.c (value_pos): Ditto.
7089 2011-01-10 Joel Brobecker <brobecker@adacore.com>
7091 * ada-valprint.c (printstr): Minor comment reformatting.
7093 2011-01-08 Michael Snyder <msnyder@vmware.com>
7095 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
7098 2011-01-08 Michael Snyder <msnyder@vmware.com>
7100 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
7101 * hppa-hpux-tdep.c: Ditto.
7102 * hppa-linux-nat.c: Ditto.
7103 * hppa-linux-tdep.c: Ditto.
7104 * hppanbsd-tdep.c: Ditto.
7105 * hppa-tdep.c: Ditto.
7106 * hppa-tdep.h: Ditto.
7107 * hpux-thread.c: Ditto.
7108 * i386-cygwin-tdep.c: Ditto.
7109 * i386-darwin-nat.c: Ditto.
7110 * i386gnu-nat.c: Ditto.
7111 * i386-linux-nat.c: Ditto.
7112 * i386-linux-tdep.c: Ditto.
7113 * i386-nat.c: Ditto.
7114 * i386-nat.h: Ditto.
7115 * i386nbsd-tdep.c: Ditto.
7116 * i386-sol2-nat.c: Ditto.
7117 * i386-stub.c: Ditto.
7118 * i386-tdep.c: Ditto.
7119 * i386-tdep.h: Ditto.
7120 * i387-tdep.c: Ditto.
7121 * ia64-linux-nat.c: Ditto.
7122 * ia64-linux-tdep.c: Ditto.
7123 * ia64-tdep.c: Ditto.
7127 * inferior.c: Ditto.
7128 * inferior.h: Ditto.
7134 * iq2000-tdep.c: Ditto.
7135 * irix5-nat.c: Ditto.
7141 * jv-typeprint.c: Ditto.
7142 * jv-valprint.c: Ditto.
7143 * language.c: Ditto.
7144 * language.h: Ditto.
7145 * linespec.c: Ditto.
7146 * linux-fork.c: Ditto.
7147 * linux-nat.c: Ditto.
7148 * linux-thread-db.c: Ditto.
7149 * lm32-tdep.c: Ditto.
7151 2011-01-08 Michael Snyder <msnyder@vmware.com>
7153 * m2-exp.y: Comment cleanup, mostly periods and spaces.
7155 * m2-typeprint.c: Ditto.
7156 * m2-valprint.c: Ditto.
7157 * m32c-tdep.c: Ditto.
7158 * m32r-linux-nat.c: Ditto.
7159 * m32r-rom.c: Ditto.
7160 * m32r-tdep.c: Ditto.
7161 * m32r-tdep.h: Ditto.
7162 * m68hc11-tdep.c: Ditto.
7163 * m58klinux-nat.c: Ditto.
7164 * m68k-tdep.c: Ditto.
7165 * m88k-tdep.c: Ditto.
7166 * m88k-tdep.h: Ditto.
7167 * machoread.c: Ditto.
7168 * macrocmd.c: Ditto.
7169 * macroexp.c: Ditto.
7170 * macrotab.c: Ditto.
7173 * mdebugread.c: Ditto.
7174 * mdebugread.h: Ditto.
7177 * memory-map.h: Ditto.
7178 * mep-tdep.c: Ditto.
7179 * microblaze-rom.c: Ditto.
7180 * microblaze-tdep.c: Ditto.
7182 * mips-irix-tdep.c: Ditto.
7183 * mips-linux-nat.c: Ditto.
7184 * mips-linux-tdep.c: Ditto.
7185 * mips-linux-tdep.h: Ditto.
7186 * mipsnbsd-nat.c: Ditto.
7187 * mipsnbsd-tdep.c: Ditto.
7188 * mipsread.c: Ditto.
7189 * mips-tdep.c: Ditto.
7190 * mips-tdep.h: Ditto.
7191 * mn10300-linux-tdep.c: Ditto.
7192 * mn10300-tdep.c: Ditto.
7193 * mn10300-tdep.h: Ditto.
7196 * moxie-tdep.c: Ditto.
7197 * moxie-tdep.h: Ditto.
7200 2011-01-08 Mike Frysinger <vapier@gentoo.org>
7202 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7204 2011-01-08 Robert Millan <rmh@gnu.org>
7206 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7208 2011-01-07 Michael Snyder <msnyder@vmware.com>
7210 * charset.c (_initialize_charset): Fix typo in string.
7212 2011-01-07 Michael Snyder <msnyder@vmware.com>
7214 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7216 * tui/tui-layout.c (tui_set_layout_for_display_command):
7217 Split line so that operator goes to beginning of line.
7218 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7219 assignment out of if statement.
7221 2011-01-07 Michael Snyder <msnyder@vmware.com>
7223 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7224 * ada-lang.h: Ditto.
7225 * ada-tasks.c: Ditto.
7226 * ada-valprint.c: Ditto.
7227 * aix-threads.c: Ditto.
7228 * alpha-linux-nat.c: Ditto.
7229 * alpha-linux-tdep.c: Ditto.
7230 * alpha-mdebug-tdep.c: Ditto.
7231 * alpha-nat.c: Ditto.
7232 * alpha-osf1-tdep.c: Ditto.
7233 * alpha-tdep.c: Ditto.
7234 * alphabsd-nat.c: Ditto.
7235 * alphabsd-tdep.c: Ditto.
7236 * amd64-darwin-tdep.c: Ditto.
7237 * amd64-linux-nat.c: Ditto.
7238 * amd64-linux-tdep.c: Ditto.
7239 * amd64-sol2-tdep.c: Ditto.
7240 * amd64-tdep.c: Ditto.
7241 * amd64-fbsd-tdep.c: Ditto.
7242 * amd64-nbsd-tdep.c: Ditto.
7243 * amd64-obsd-tdep.c: Ditto.
7244 * amd64-linux-nat.c: Ditto.
7245 * amd64-linux-tdep.c: Ditto.
7246 * arm-tdep.c: Ditto.
7247 * arm-tdep.h: Ditto.
7248 * armnbsd-nat.c: Ditto.
7249 * avr-tdep.c: Ditto.
7250 * bfin-tdep.c: Ditto.
7252 * c-typeprintc: Ditto.
7253 * c-valprint.c: Ditto.
7254 * coff-pe-read.h: Ditto.
7255 * coffreead.c: Ditto.
7256 * cris-tdep.c: Ditto.
7258 * darwin-nat-info.c: Ditto.
7259 * darwin-nat.c: Ditto.
7260 * dbug-rom.c: Ditto.
7264 * dec-thread.c: Ditto.
7266 * demangle.c: Ditto.
7267 * dicos-tdep.c: Ditto.
7268 * dictionary.c: Ditto.
7269 * dictionary.h: Ditto.
7270 * dink32-rom.c: Ditto.
7272 * doublest.c: Ditto.
7274 * dummy-frame.c: Ditto.
7275 * dwarf2-frame.c: Ditto.
7276 * dwarf2expr.c: Ditto.
7277 * dwarf2loc.c: Ditto.
7278 * dwarf2read.c: Ditto.
7282 * event-top.h: Ditto.
7283 * exceptions.c: Ditto.
7284 * exceptions.h: Ditto.
7286 * expprint.c: Ditto.
7287 * expression.h: Ditto.
7291 * f-typeprint.c: Ditto.
7292 * f-valprint.c: Ditto.
7293 * fbsd-nat.c: Ditto.
7295 * fork-child.c: Ditto.
7298 * frv-linux-tdep.c: Ditto.
7299 * frv-tdep.c: Ditto.
7301 * gdb-stabs.h: Ditto.
7302 * gdb_assert.h: Ditto.
7303 * gdb_string.h: Ditto.
7304 * gdb_thread_db.h: Ditto.
7305 * gdb_wait.h: Ditto.
7306 * gdbarch.sh: Ditto.
7308 * gdbthread.h: Ditto.
7309 * gdbtypes.c: Ditto.
7310 * gdbtypes.h: Ditto.
7313 * gnu-v2-abi.c: Ditto.
7314 * gnu-v3-abi.c: Ditto.
7315 * go32-nat.c: Ditto.
7316 * gdbarch.c: Regenerate.
7317 * gdbarch.h: Regenerate.
7319 2011-01-07 Michael Snyder <msnyder@vmware.com>
7321 * ax-gdb.c: Adjust some long output strings.
7322 * breakpoint.c: Ditto.
7327 * linux-nat.c: Ditto.
7328 * solib-pa64.c: Ditto.
7329 * solib-som.c: Ditto.
7331 2011-01-06 Tom Tromey <tromey@redhat.com>
7335 * python/python.c (GdbMethods): Add "newest_frame" method.
7336 * python/python-internal.h (gdbpy_newest_frame): Declare.
7337 * python/py-frame.c (gdbpy_newest_frame): New function.
7339 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
7341 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
7342 * jit.c (jit_debug): New variable.
7343 (show_jit_debug): New function.
7344 (struct target_buffer): Use ULONGEST.
7345 (bfd_open_from_target_memory): Likewise.
7346 (jit_register_code, jit_inferior_init): Add debug output.
7347 (_initialize_jit): Register "debug jit" command.
7349 2011-01-06 Tom Tromey <tromey@redhat.com>
7351 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7352 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7355 2011-01-06 Tom Tromey <tromey@redhat.com>
7357 * python/py-frame.c (frapy_block): Use get_frame_block.
7359 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7361 Do not stop on SIGPRIO signals by default
7362 * infrun.c (_initialize_infrun): Unset signal_stop and
7363 signal_print for TARGET_SIGNAL_PRIO.
7365 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7367 * ada-tasks.c: Fix style violation in comment.
7369 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7371 * linespec.c (decode_compound, find_method): Remove trailing \n
7372 at end of error string.
7373 * solib-irix.c (irix_current_sos): Likewise.
7374 * varobj.c (uninstall_variable): Likewise.
7376 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7378 * copyright.py: New script.
7379 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7380 Launch emacs without exec'ing. Call copyright.py afterwards.
7382 2011-01-05 Michael Snyder <msnyder@vmware.com>
7384 * addrmap.c: Shorten lines of >= 80 columns.
7385 * arch-utils.c: Ditto.
7386 * arch-utils.h: Ditto.
7388 * ax-general.c: Ditto.
7390 * blockframe.c: Ditto.
7391 * breakpoint.c: Ditto.
7392 * buildsym.c: Ditto.
7394 * c-typeprint.c: Ditto.
7396 * coffread.c: Ditto.
7400 * cp-namespace.c: Ditto.
7401 * cp-support.c: Ditto.
7402 * dbug-rom.c: Ditto.
7407 * dictionary.c: Ditto.
7409 * doublest.c: Ditto.
7410 * dwarf2-frame.c: Ditto.
7411 * dwarf2expr.c: Ditto.
7412 * dwarf2loc.c: Ditto.
7413 * dwarf2read.c: Ditto.
7416 * event-loop.c: Ditto.
7417 * event-loop.h: Ditto.
7418 * exceptions.h: Ditto.
7420 * expprint.c: Ditto.
7421 * expression.h: Ditto.
7423 * f-valprint.c: Ditto.
7425 * frame-base.c: Ditto.
7426 * frame-unwind.c: Ditto.
7427 * frame-unwind.h: Ditto.
7431 * gdb-stabs.h: Ditto.
7432 * gdb_assert.h: Ditto.
7433 * gdb_dirent.h: Ditto.
7434 * gdb_obstack.h: Ditto.
7436 * gdbtypes.c: Ditto.
7437 * gdbtypes.h: Ditto.
7438 * inf-ttrace.c: Ditto.
7443 * inline-frame.h: Ditto.
7444 * language.c: Ditto.
7445 * language.h: Ditto.
7446 * libunwind-frame.c: Ditto.
7447 * libunwind-frame.h: Ditto.
7448 * linespec.c: Ditto.
7449 * linux-nat.c: Ditto.
7450 * linux-nat.h: Ditto.
7451 * linux-thread-db.c: Ditto.
7452 * machoread.c: Ditto.
7453 * macroexp.c: Ditto.
7454 * macrotab.c: Ditto.
7457 * mdebugread.c: Ditto.
7462 * objfiles.c: Ditto.
7463 * objfiles.h: Ditto.
7465 * p-typeprint.c: Ditto.
7466 * p-valprint.c: Ditto.
7468 * printcmd.c: Ditto.
7469 * proc-events.c: Ditto.
7471 * progspace.c: Ditto.
7472 * progspace.h: Ditto.
7473 * psympriv.h: Ditto.
7476 * regcache.c: Ditto.
7477 * regcache.h: Ditto.
7478 * remote-fileio.c: Ditto.
7480 * ser-mingw.c: Ditto.
7482 * ser-unix.c: Ditto.
7485 * solib-frv.c: Ditto.
7486 * solib-irix.c: Ditto.
7487 * solib-osf.c: Ditto.
7488 * solib-pa64.c: Ditto.
7489 * solib-som.c: Ditto.
7490 * solib-sunos.c: Ditto.
7491 * solib-svr4.c: Ditto.
7492 * solib-target.c: Ditto.
7496 * stabsread.c: Ditto.
7497 * stabsread.c: Ditto.
7500 * symfile-mem.c: Ditto.
7506 * target-descriptions.c: Ditto.
7507 * target-memory.c: Ditto.
7510 * terminal.h: Ditto.
7513 * tracepoint.c: Ditto.
7514 * tracepoint.h: Ditto.
7518 * user-regs.c: Ditto.
7519 * user-regs.h: Ditto.
7521 * valarith.c: Ditto.
7523 * valprint.c: Ditto.
7524 * valprint.h: Ditto.
7529 * xcoffread.c: Ditto.
7530 * xcoffsolib.c: Ditto.
7531 * xcoffsolib.h: Ditto.
7532 * xml-syscall.c: Ditto.
7533 * xml-tdesc.c: Ditto.
7535 2011-01-05 Michael Snyder <msnyder@vmware.com>
7537 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7538 * cli/cli-decode.c: Ditto.
7539 * cli/cli-dump.c: Ditto.
7540 * cli/cli-logging.c: Ditto.
7541 * cli/cli-script.c: Ditto.
7542 * cli/cli-setshow.c: Ditto.
7543 * common/signals.c: Ditto.
7544 * mi/mi-cmd-break.c: Ditto.
7545 * mi/mi-cmd-disas.c: Ditto.
7546 * mi/mi-cmd-stack.c: Ditto.
7547 * mi/mi-cmd-var.c: Ditto.
7548 * mi/mi-cmds.c: Ditto.
7549 * mi/mi-common.h: Ditto.
7550 * mi/mi-console.c: Ditto.
7551 * mi/mi-interp.c: Ditto.
7552 * mi/mi-main.c: Ditto.
7553 * osf-share/cma_attr.c: Ditto.
7554 * osf-share/cma_deb_core.h: Ditto.
7555 * osf-share/cma_debug_client.h: Ditto.
7556 * osf-share/cma_handle.h: Ditto.
7557 * osf-share/cma_mutex.h: Ditto.
7558 * osf-share/cma_stack_int.h: Ditto.
7559 * osf-share/cma_tcb_defs.h: Ditto.
7560 * python/py-auto-load.c: Ditto.
7561 * python/py-breakpoint.c: Ditto.
7562 * python/py-cmd.c: Ditto.
7563 * python/py-frame.c: Ditto.
7564 * python/py-objfile.c: Ditto.
7565 * python/py-param.c: Ditto.
7566 * python/py-progspace.c: Ditto.
7567 * python/py-symbol.c: Ditto.
7568 * python/py-value.c: Ditto.
7569 * python/python-internal.h: Ditto.
7570 * python/python.c: Ditto.
7571 * tui/tui-data.c: Ditto.
7572 * tui/tui-disasm.c: Ditto.
7573 * tui/tui-hooks.c: Ditto.
7574 * tui/tui-io.c: Ditto.
7575 * tui/tui-layout.c: Ditto.
7576 * tui/tui-regs.c: Ditto.
7577 * tui/tui-source.c: Ditto.
7578 * tui/tui-stack.c: Ditto.
7579 * tui/tui-win.c: Ditto.
7580 * tui/tui-windata.c: Ditto.
7581 * tui/tui-winsource.c: Ditto.
7583 2011-01-05 Joel Brobecker <brobecker@adacore.com>
7585 * configure.ac, gdb.1: Copyright year update.
7587 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7589 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7590 this_pc_in_block, morestack_msym and morestack_name. Check for
7591 "__morestack" minimal symbol there.
7593 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7595 * symfile.c (find_sym_fns): Add call to dont_repeat.
7597 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7599 Copyright year update in most files (performed by copyright.sh).
7601 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7603 * top.c (print_gdb_version): Update copyright year in version output.
7605 For older changes see ChangeLog-2010.
7611 version-control: never