1 2011-07-08 Tom Tromey <tromey@redhat.com>
3 * dwarf2loc.c (locexpr_regname): New function.
4 (locexpr_describe_location_piece): Use it.
5 (disassemble_dwarf_expression): Add per_cu argument. Use
7 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
8 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
10 (locexpr_describe_location_1): Add per_cu argument.
11 (locexpr_describe_location): Update.
12 (loclist_describe_location): Update.
14 2011-07-08 Tom Tromey <tromey@redhat.com>
16 * dwarf2expr.c (execute_stack_op): Add QUIT.
18 2011-07-07 Hui Zhu <teawater@gmail.com>
21 2011-07-06 Hui Zhu <teawater@gmail.com>
22 * remote.c (remote_start_remote): Add TRY_CATCH for
23 remote_get_trace_status.
24 * tracepoint.c (disconnect_tracing): Ditto.
26 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
28 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
29 variables as signed, not unsigned.
31 2011-07-06 Joel Brobecker <brobecker@adacore.com>
33 * jit.c (jit_inferior_init): Reformat forward declaration.
35 2011-07-06 Matt Rice <ratmice@gmail.com>
37 * MAINTAINERS (Write After Approval): Add myself to the list.
39 2011-07-06 Hui Zhu <teawater@gmail.com>
41 * remote.c (remote_start_remote): Add TRY_CATCH for
42 remote_get_trace_status.
43 * tracepoint.c (disconnect_tracing): Ditto.
45 2011-07-05 Tom Tromey <tromey@redhat.com>
47 * symtab.c (operator_chars): Now static.
48 * linespec.c (operator_chars): Don't declare.
50 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
52 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
54 2011-07-05 Tom Tromey <tromey@redhat.com>
56 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
57 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
58 (TYPE_CPLUS_REALLY_JAVA): New macro.
59 * dwarf2read.c (process_structure_scope): Set
60 TYPE_CPLUS_REALLY_JAVA.
62 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
64 * ada-lang.c: Fix typos.
65 * amd64-tdep.c: Likewise.
66 * breakpoint.c: Likewise.
67 * cli/cli-decode.c: Likewise.
68 * findcmd.c: Likewise.
69 * inline-frame.c: Likewise.
70 * mi/mi-main.c: Likewise.
71 * minsyms.c: Likewise.
72 * monitor.c: Likewise.
73 * monitor.h: Likewise.
74 * prologue-value.c: Likewise.
75 * reverse.c: Likewise.
76 * s390-tdep.c: Likewise.
78 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
80 * jit.c (jit_inferior_init): Forward declare.
81 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
83 2011-07-04 Joel Brobecker <brobecker@adacore.com>
85 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
87 2011-07-04 Tristan Gingold <gingold@adacore.com>
89 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
90 (tcb_fieldno): Add activation_link field.
91 (get_known_tasks_addr): Moved and rewritten.
92 (get_tcb_types_info): Set activation_link field.
93 (read_known_tasks_array): Add parameter. Rewritten.
94 (read_known_tasks_list): New function.
95 (read_known_tasks): New function.
96 (ada_build_task_list): Call read_known_tasks instead of
97 read_known_tasks_array.
98 * ravenscar-thread.c: Add first_task_name constant.
99 (has_ravenscar_runtime): Check for task list too.
101 2011-07-04 Tristan Gingold <gingold@adacore.com>
103 * ada-tasks.c: Renames fieldno to actb_fieldno.
104 (ada_get_task_number): Indentation.
105 (get_tcb_types_info): Remove all parameters. Write directly
107 (ptid_from_atcb_common): Adjust.
110 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
112 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
114 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
116 * ui-out.c (ui_out_field_core_addr): Mention that the function
117 description is in the header file.
118 * ui-out.h (ui_out_field_core_addr): Document function.
120 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
122 * ui-out.c (ui_out_get_field_separator): Remove unused function.
123 * ui-out.h (ui_out_get_field_separator): Remove prototype.
125 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
127 * symtab.c (expand_line_sal): Remove empty line.
129 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
131 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
132 same way as ELFOSABI_NONE.
133 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
135 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
137 * breakpoint.c: Fix typos in comments.
138 * linespec.c: Likewise.
139 * symtab.c: Likewise.
141 2011-07-04 Joel Brobecker <brobecker@adacore.com>
143 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
144 section in separate object files.
146 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
148 Fix false GCC warning.
149 * linespec.c (decode_line_1): Initialize values.
151 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
153 * linespec.c (find_method): Accept the function type automatically only
154 if it was specified with parameter types.
156 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
158 Stop on first linespec terminator instead of eating what we can.
159 * linespec.c (is_linespec_boundary): New function.
160 (name_end): Remove function.
161 (keep_name_info): New parameter on_boundary, replace the body.
162 (decode_line_1): Provide the parameter to keep_name_info.
163 (decode_compound): Likewise. Drop the trailing java return type
166 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
168 Fall back linespec to minimal symbols.
169 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
170 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
171 (find_method, symbol_found): Change error to cplusplus_error.
173 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
175 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
177 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
178 Tom Tromey <tromey@redhat.com>
180 * dwarf2read.c (check_physname): New variable.
181 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
182 (show_check_physname): New function.
183 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
185 2011-07-01 Joel Brobecker <brobecker@adacore.com>
187 * machoread.c (macho_symfile_read): Delete OBE comment.
189 2011-07-01 Joel Brobecker <brobecker@adacore.com>
191 * machoread.c (struct macho_oso_data): Delete.
192 (current_oso): Delete.
193 (macho_relocate_common_syms): New function, mostly extracted
195 (macho_add_oso_symfile): Call macho_relocate_common_syms.
196 Remove code that sets and unset current_oso.
197 (macho_symfile_relocate): Delete handling of common symbols,
198 now moved to macho_relocate_common_syms.
200 2011-07-01 Joel Brobecker <brobecker@adacore.com>
202 * darwin-nat.c (darwin_ptrace): Add documentation.
203 Set errno to zero before calling ptrace. If ptrace returns
204 -1 and errno is zero, then change then return zero.
205 (darwin_kill_inferior): Issue a warning instead of triggering
206 a failed assertion when the PT_KILL ptrace operations returned
209 2011-07-01 Joel Brobecker <brobecker@adacore.com>
211 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
212 only when inf->private->no_ptrace.
214 2011-07-01 Joel Brobecker <brobecker@adacore.com>
216 * ada-lang.c (print_it_exception): Print temporary catchpoints
217 as "Temporary catchpoint".
218 (print_mention_exception): Likewise.
220 2011-07-01 Tom Tromey <tromey@redhat.com>
222 * jv-lang.c (java_language_defn): Use java_printchar,
224 (java_get_encoding): New function.
225 (java_emit_char): Use generic_emit_char.
226 (java_printchar): New function.
227 (java_printstr): Likewise.
229 2011-07-01 Joel Brobecker <brobecker@adacore.com>
231 * ada-typeprint.c (print_record_type): If unable to decode
232 the name of the parent type, use the encoded name.
234 2011-07-01 Jean-Charles Delay <delay@adacore.com>
236 * ada-typeprint.c (ada_print_type): Fix both PAD type and
237 pointer to constrained packed array type output.
238 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
241 2011-07-01 Jean-Charles Delay <delay@adacore.com>
243 * ada-typeprint.c (print_array_type): removed if condition on show
244 being negative for bounds printing.
246 2011-07-01 Joel Brobecker <brobecker@adacore.com>
248 * ada-lang.c (ada_identical_enum_types_p): New function.
249 (symbols_are_identical_enums): New function.
250 (remove_extra_symbols): Do nothing if NSYMS < 2.
251 Use symbols_are_identical_enums.
253 2011-07-01 Joel Brobecker <brobecker@adacore.com>
255 * ada-valprint.c (ada_value_print): Handle typedefs.
257 2011-07-01 Joel Brobecker <brobecker@adacore.com>
259 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
261 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
263 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
264 (decode_constrained_packed_array): Likewise.
265 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
267 2011-07-01 Joel Brobecker <brobecker@adacore.com>
269 * ada-exp.y (convert_char_literal): Handle typedef types.
271 2011-07-01 Joel Brobecker <brobecker@adacore.com>
273 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
275 2011-06-30 Tom Tromey <tromey@redhat.com>
277 * varobj.c (varobj_create): Call do_cleanups on early exit path.
278 * valops.c (find_overload_match): Call do_cleanups on early exit
280 * solib.c (solib_find): Call do_cleanups on early exit path.
282 2011-06-30 Tom Tromey <tromey@redhat.com>
284 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
285 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
286 return paths. Defer final do_cleanups until last return.
287 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
290 2011-06-30 Tom Tromey <tromey@redhat.com>
292 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
294 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
296 * MAINTAINERS (Write After Approval): Add myself to the list.
298 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
300 Disable epilogue unwinders on recent GCCs.
301 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
302 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
303 * dwarf2read.c (process_full_comp_unit): Initialize
304 EPILOGUE_UNWIND_VALID.
305 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
306 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
307 * symtab.h (struct symtab): New field epilogue_unwind_valid.
309 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
311 Code cleanup - reformatting.
312 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
313 (producer_is_gcc_ge_4): ... here, change the return value.
314 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
317 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
319 Fix non-only rename list for Fortran modules import.
320 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
321 cp_add_using_directive caller.
322 (cp_add_using_directive): New parameter excludes, describe it. New
323 variables ix and param. Compare if also excludes match. Allocate NEW
324 with variable size, initialize EXCLUDES there.
325 (cp_lookup_symbol_imports): New variable excludep, test
326 current->EXCLUDES with it.
327 * cp-support.h: Include vec.h.
328 (struct using_direct): New field excludes, describe it.
329 (DEF_VEC_P (const_char_ptr)): New.
330 (cp_add_using_directive): New parameter excludes.
331 * defs.h (const_char_ptr): New typedef.
332 * dwarf2read.c (read_import_statement): New variables child_die,
333 excludes and cleanups, read in excludes.
334 (read_namespace): Adjust the cp_add_using_directive caller.
336 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
339 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
340 negative comparisons.
342 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
344 * mi/mi-main.c (mi_cmd_list_features): Emit
345 breakpoint-notifications.
347 2011-06-29 Tom Tromey <tromey@redhat.com>
350 * valprint.h (generic_emit_char, generic_printstr): Declare.
351 * valprint.c (wchar_printable, append_string_as_wide)
352 (print_wchar): Move from c-lang.c.
353 (generic_emit_char): New function; mostly taken from c_emit_char.
354 (generic_printstr): New function; mostly taken from c_printstr.
355 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
356 represented as arrays.
357 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
359 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
360 identically to TYPE_CODE_INT.
361 * f-lang.c (f_get_encoding): New function.
362 (f_emit_char): Use generic_emit_char.
363 (f_printchar): Replace comment.
364 (f_printstr): Use generic_printstr.
365 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
366 "character" types specially.
367 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
369 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
371 (c_emit_char): Call generic_emit_char.
372 (c_printstr): Call generic_printstr.
374 2011-06-29 Gary Benson <gbenson@redhat.com>
376 * breakpoint.c (bpstat_what): Removed duplicated case.
378 2011-06-28 Tom Tromey <tromey@redhat.com>
380 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
382 2011-06-27 Tom Tromey <tromey@redhat.com>
384 * valops.c (find_overload_match): Call do_cleanups before early
386 * top.c (execute_command): Call do_cleanups before early return.
387 (command_loop): Likewise.
388 * stack.c (backtrace_command): Make a null cleanup early. Don't
389 conditionally call do_cleanups.
390 * python/py-value.c (TRY_CATCH): Move cleanup handling into
392 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
393 so cleanups are always run.
394 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
395 * findcmd.c (parse_find_args): Call do_cleanups on early return
397 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
398 Don't conditionally call do_cleanups.
399 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
402 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
404 * MAINTAINERS (Write After Approval): Use default email address.
406 2011-06-27 Joel Brobecker <brobecker@adacore.com>
408 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
410 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
412 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
413 saved_regs_mask and copied_regs_mask fields.
414 (sparc_record_save_insn): New prototype.
415 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
416 (sparc_record_save_insn): New function.
417 (sparc_analyze_prologue): Add head comment. Recognize store insns
418 of call-saved registers. Use OFFSET consistently. Recognize flat
419 frames and cache their settings.
420 (sparc32_skip_prologue): Handle flat frames.
421 (sparc_frame_cache): Add frame_offset to the base address.
422 (sparc32_frame_cache): Adjust to new frame description.
423 (sparc32_frame_prev_register): Likewise.
424 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
425 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
426 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
427 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
428 frame by calling sparc_record_save_insn.
429 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
430 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
431 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
433 2011-06-27 Tristan Gingold <gingold@adacore.com>
435 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
436 field by map_addr and map_len.
437 (dwarf2_read_section): Adjust for the new bfd_mmap api.
438 (munmap_section_buffer): Likewise.
440 2011-06-24 Tom Tromey <tromey@redhat.com>
442 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
443 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
444 * python/python.c (gdbpy_parameter): Make 'arg' const.
445 (execute_gdb_command): Likewise.
446 (gdbpy_decode_line): Likewise. Copy it.
447 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
448 (gdbpy_write): Make 'arg' const.
449 * python/py-type.c (typy_lookup_typename): Make 'type_name'
451 (gdbpy_lookup_type): Likewise.
452 * python/py-prettyprint.c (print_children): Make 'name' const.
453 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
454 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
456 * python/py-function.c (fnpy_init): Make 'name' const.
457 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
458 (gdbpy_string_to_argv): Make 'input' const.
459 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
461 * gdbtypes.h (lookup_typename): Update.
462 * gdbtypes.c (lookup_typename): Make 'name' const.
463 (lookup_struct): Likewise.
464 (lookup_union): Likewise.
465 (lookup_enum): Likewise.
467 2011-06-24 Tom Tromey <tromey@redhat.com>
469 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
470 gdb_thread_db.h. Move all common/ entries to be together.
471 (TAGS): Don't depend on DEPFILES.
473 2011-06-23 Yao Qi <yao@codesourcery.com>
475 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
476 * remote.c (remote_start_remote): ... here.
477 * monitor.c (monitor_open): ... here.
479 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
481 * gdbtypes.c (append_composite_type_field_aligned): Fix
482 calculation of bit position based on alignment.
484 2011-06-22 Pedro Alves <pedro@codesourcery.com>
486 * breakpoint.c (bpstat_stop_status): Call the check_status
487 breakpoint_ops method.
488 (print_one_breakpoint_location): Also print the condition for Ada
489 exception catchpoints.
490 (allocate_bp_location): New, factored out from
491 allocate_bp_location.
492 (allocate_bp_location): Adjust. Call the owner breakpoint's
493 allocate_location method, if there is one.
494 (free_bp_location): Call the locations's dtor method, if there is
496 (init_raw_breakpoint_without_location): New breakpoint_ops
498 (set_raw_breakpoint_without_location): Adjust.
499 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
500 (set_raw_breakpoint): Adjust.
501 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
502 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
503 re_set and check_status methods.
504 (init_catchpoint): Don't memset, initialize thread, addr_string
505 and enable_state. Pass the ops down to init_raw_breakpoint.
506 (install_catchpoint): Rename to ...
507 (install_breakpoint): ... this, and make extern.
508 (create_fork_vfork_event_catchpoint): Adjust.
509 (catch_exec_breakpoint_ops): Install NULL allocate_location,
510 re_set and check_status methods.
511 (create_syscall_event_catchpoint): Adjust.
512 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
513 (masked_watchpoint_breakpoint_ops): Install NULL
514 allocate_location, re_set and check_status methods.
515 (catch_exec_command_1): Adjust.
516 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
517 re_set and check_status methods.
518 (create_ada_exception_breakpoint): Rename to ...
519 (init_ada_exception_breakpoint): ... this. Add a struct
520 breakpoint parameter, and delete the exp_string, cond_string and
521 cond parameters. Use init_raw_breakpoint, and don't install or
522 mention the breakpoint yet. Don't clear breakpoint fields that
523 init_raw_breakpoint already clears.
524 (re_set_breakpoint): Delete, split into ...
525 (breakpoint_re_set_default, prepare_re_set_context): ... these new
527 (breakpoint_re_set_one): Call the breakpoint's
528 breakpoint_ops->re_set implementation, if there's one. Adjust.
529 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
530 (struct bp_location_ops): New type.
531 (struct bp_location): New field `ops'.
532 (struct breakpoint_ops): New `allocate_location', `re_set' and
533 `check_status' fields. Make `breakpoint_hit''s description match
535 (init_bp_location): Declare.
536 (breakpoint_re_set_default): Declare.
537 (create_ada_exception_breakpoint): Rename to ...
538 (init_ada_exception_breakpoint): ... this. Add a struct
539 breakpoint parameter, and delete the exp_string, cond_string and
541 (install_breakpoint): Declare.
542 * ada-lang.c: Include exceptions.h.
543 <Ada exceptions description>: Update.
544 (struct ada_catchpoint_location): New type.
545 (ada_catchpoint_location_dtor): New function.
546 (ada_catchpoint_location_ops): New global.
547 (ada_catchpoint): New type.
548 (create_excep_cond_exprs): New function.
549 (dtor_exception, allocate_location_exception, re_set_exception)
550 (should_stop_exception, check_status_exception): New functions.
551 (print_one_exception, print_mention_exception)
552 (print_recreate_exception): Adjust.
553 (dtor_catch_exception, allocate_location_catch_exception)
554 (re_set_catch_exception, check_status_catch_exception): New
556 (catch_exception_breakpoint_ops): Install them.
557 (dtor_catch_exception_unhandled)
558 (allocate_location_catch_exception_unhandled)
559 (re_set_catch_exception_unhandled)
560 (check_status_catch_exception_unhandled): New functions.
561 (catch_exception_unhandled_breakpoint_ops): Install them.
562 (dtor_catch_assert, allocate_location_catch_assert)
563 (re_set_catch_assert, check_status_catch_assert): New functions.
564 (catch_assert_breakpoint_ops): Install them.
565 (ada_exception_catchpoint_p): Delete.
566 (catch_ada_exception_command_split)
567 (ada_exception_catchpoint_cond_string): Rename exp_string
568 parameter to excep_string. Adjust.
569 (ada_parse_catchpoint_condition): Delete.
570 (ada_exception_sal): Rename the exp_string parameter to
571 excep_string. Delete the cond_string and cond parameters.
573 (ada_decode_exception_location): Rename the exp_string parameter
574 to excep_string. Delete the cond_string and cond parameters.
576 (create_ada_exception_catchpoint): New function.
577 (catch_ada_exception_command, ada_decode_assert_location)
578 (catch_assert_command): Adjust.
579 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
581 2011-06-22 Pedro Alves <pedro@codesourcery.com>
583 * ada-lang.c: Include arch-utils.h.
584 (ada_decode_exception_location): Make static.
585 (catch_ada_exception_command): Moved here from breakpoint.c.
586 (ada_decode_assert_location): Make static.
587 (catch_assert_command): Moved here from breakpoint.c.
588 (_initialize_ada_lang): Install the exception and assert
589 catchpoint commands here.
590 * ada-lang.h (ada_decode_exception_location)
591 (ada_decode_assert_location): Delete declarations.
592 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
594 (create_ada_exception_breakpoint): Make extern.
595 (catch_ada_exception_command, catch_assert_command): Moved to
597 (add_catch_command): Make extern.
598 (_initilize_breakpoint): Don't install the exception and assert
599 catchpoint commands here.
600 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
602 (add_catch_command, create_ada_exception_breakpoint): Declare.
604 2011-06-22 Pedro Alves <pedro@codesourcery.com>
606 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
607 the breakpoint to the breakpoint chain here.
608 (set_raw_breakpoint_without_location): Add the breakpoint to the
609 breakpoint chain here.
610 (init_raw_breakpoint): Adjust comments.
611 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
613 (init_catchpoint): Don't set the catchpoint's breakpoint number
615 (install_catchpoint): New function.
616 (create_fork_vfork_event_catchpoint)
617 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
618 use install_catchpoint.
620 2011-06-22 Pedro Alves <pedro@codesourcery.com>
622 * breakpoint.c (create_catchpoint_without_mention)
623 (create_catchpoint): Delete.
625 2011-06-22 Pedro Alves <pedro@codesourcery.com>
627 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
628 * breakpoint.c (init_raw_breakpoint_without_location): Remove
629 reference to exec_pathname.
630 (struct exec_catchpoint): New type.
631 (dtor_catch_exec): New function.
632 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
633 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
634 (catch_exec_command_1): Adjust to use init_catchpoint.
635 (delete_breakpoint): Remove reference to exec_pathname.
637 2011-06-22 Pedro Alves <pedro@codesourcery.com>
639 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
640 (struct breakpoint): Delete field `syscalls_to_be_caught'.
641 * breakpoint.c (init_raw_breakpoint_without_location): Remove
642 reference to syscalls_to_be_caught.
643 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
645 (struct syscall_catchpoint): New type.
646 (dtor_catch_syscall): New function.
647 (insert_catch_syscall, remove_catch_syscall)
648 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
649 (print_recreate_catch_syscall): Adjust.
650 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
651 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
652 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
653 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
654 (masked_watchpoint_breakpoint_ops)
655 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
656 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
657 there is one. Remove references to syscalls_to_be_caught.
658 (catching_syscall_number): Adjust.
659 * ada-lang.c (catch_exception_breakpoint_ops)
660 (catch_exception_unhandled_breakpoint_ops)
661 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
663 2011-06-22 Pedro Alves <pedro@codesourcery.com>
665 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
667 * breakpoint.c (init_raw_breakpoint_without_location): Remove
668 reference to forked_inferior_pid.
669 (struct fork_catchpoint): New type.
670 (breakpoint_hit_catch_fork, print_it_catch_fork)
671 (print_one_catch_fork, breakpoint_hit_catch_vfork)
672 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
673 (create_fork_vfork_event_catchpoint): Adjust to use
676 2011-06-22 Pedro Alves <pedro@codesourcery.com>
678 * breakpoint.c (add_to_breakpoint_chain)
679 (init_raw_breakpoint_without_location): New functions, factored
681 (set_raw_breakpoint_without_location): ... this one.
682 (init_raw_breakpoint): New function, factored out from
683 set_raw_breakpoint and adjusted to use
684 init_raw_breakpoint_without_location.
685 (set_raw_breakpoint): Adjust.
686 (init_catchpoint): New function, factored out from
687 create_catchpoint_without_mention and adjusted to use
689 (create_catchpoint_without_mention): Adjust.
691 2011-06-22 Tom Tromey <tromey@redhat.com>
693 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
694 argument of 0 specially.
696 2011-06-22 Yao Qi <yao@codesourcery.com>
698 * infrun.c (handle_inferior_event): Remove write-only local variable
699 `sw_single_step_trap_p'.
701 2011-06-20 Tom Tromey <tromey@redhat.com>
703 * symtab.c (lookup_language_this): End loop if block is NULL.
705 2011-06-17 Tom Tromey <tromey@redhat.com>
707 * valops.c (value_of_this): Use lookup_language_this.
708 * symtab.h (lookup_language_this): Declare.
709 * symtab.c (lookup_language_this): New function.
710 (lookup_symbol_aux): Use lookup_language_this.
711 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
713 2011-06-17 Tom Tromey <tromey@redhat.com>
715 * value.h (value_of_this): Update.
716 (value_of_local): Remove.
717 * valops.c (value_of_this): Rename from value_of_local. Change
719 * p-exp.y (exp): Update.
720 (variable): Likewise.
721 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
723 2011-06-17 Tom Tromey <tromey@redhat.com>
725 * valops.c (value_of_local): Complain if NAME is NULL.
726 * std-operator.def (OP_OBJC_SELF): Remove.
727 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
728 * objc-exp.y (name_not_typename): Use OP_THIS.
729 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
731 <OP_OBJC_SELF>: Remove.
732 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
734 2011-06-16 Tristan Gingold <gingold@adacore.com>
736 * python/py-events.h (gdb_py_events): Make it extern.
737 * python/py-evtregistry.c (gdb_py_events): Declare.
739 2011-06-16 Hui Zhu <teawater@gmail.com>
741 * remote.c (remote_trace_set_readonly_regions): Add check for
742 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
745 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
747 * arm-linux-tdep.c: Include "auxv.h".
749 (ARM_LINUX_SIZEOF_VFP): Define.
750 (arm_linux_supply_vfp): New function.
751 (arm_linux_collect_vfp): Likewise.
752 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
753 (arm_linux_fpa_regset_sections): New variable.
754 (arm_linux_vfp_regset_sections): Likewise.
755 (arm_linux_core_read_description): New function.
756 (arm_linux_init_abi): Install arm_linux_core_read_description and
757 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
758 appropriate for the architecture.
759 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
760 (tdesc_arm_with_m): Declare.
761 (tdesc_arm_with_iwmmxt): Likewise.
762 (tdesc_arm_with_vfpv2): Likewise.
763 (tdesc_arm_with_vfpv3): Likewise.
764 (tdesc_arm_with_neon): Likewise.
765 * arm-linux-nat.c: Move features/*.c includes ...
766 * arm-tdep.c: ... here.
767 * arm-linux-nat.c (arm_linux_read_description): Move initializing
768 target description data structures ...
769 * arm-tdep.c (_initialize_arm_tdep): ... here.
770 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
771 HWCAP_VFPv3D16): Move definitions ...
772 * arm-linux-tdep.h: ... here.
774 2011-06-15 Hui Zhu <teawater@gmail.com>
776 * remote.c (remote_trace_set_readonly_regions): Add a check for
779 2011-06-14 Tom Tromey <tromey@redhat.com>
781 * coffread.c (coffread_objfile): Rename from current_objfile.
782 * dbxread.c (dbxread_objfile): Rename from current_objfile.
783 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
785 2011-06-14 Tom Tromey <tromey@redhat.com>
787 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
788 (class_symtab): Remove.
789 (jv_dynamics_progspace_key): New global.
790 (jv_per_objfile_free): Reset program space data. Update assert.
792 (get_dynamics_objfile): Use and set program space data.
793 (get_java_class_symtab): Use get_dynamics_objfile.
794 (add_class_symbol): Likewise.
795 (java_link_class_type): Likewise.
796 (java_object_type, jv_clear_object_type, set_java_object_type):
798 (get_java_object_type): Update. Don't cache result.
799 (is_object_type): Don't call set_java_object_type.
800 (_initialize_java_language): Don't set jv_type_objfile_data_key;
801 initialize jv_dynamics_progspace_key.
803 2011-06-14 Tom Tromey <tromey@redhat.com>
805 * symtab.h (current_objfile): Don't declare.
806 * objfiles.h (current_objfile): Don't declare.
807 * objfiles.c (current_objfile): Remove.
808 * mdebugread.c (current_objfile): New file-scope global.
809 * dbxread.c (current_objfile): New file-scope global.
810 * coffread.c (current_objfile): New file-scope global.
812 2011-06-13 Pedro Alves <pedro@codesourcery.com>
814 * top.h (line): Rename to ...
815 (saved_command_line): ... this.
816 (linesize): Rename to ...
817 (saved_command_line_size): ... this.
818 * top.c (line): Rename to ...
819 (saved_command_line): ... this.
820 (linesize): Rename to ...
821 (saved_command_line_size): ... this.
822 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
823 * event-top.c (command_line_handler): Adjust.
824 * main.c (captured_main): Adjust.
826 2011-06-12 Mark Kettenis <kettenis@gnu.org>
828 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
829 get_frame_func instead of get_frame_pc to determine the code
830 address used to construct the frame ID.
831 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
832 (i386_epilogue_frame_this_id): Likewise.
833 (i386_epilogue_frame_prev_register): New function.
834 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
835 (i386_stack_tramp_frame_sniffer): Fix coding style.
836 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
837 (i386_gdbarch_init): Fix comments.
839 2011-06-12 Mark Kettenis <kettenis@gnu.org>
841 * i386-tdep.c (i386_match_insn_block): Use length of the proper
842 instruction when walking back through the instruction stream.
844 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
846 * symtab.c (output_partial_symbol_filename): Exchange the filename and
847 fullname parameters order.
849 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
852 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
854 * psymtab.c (map_symbol_filenames_psymtab)
855 (map_partial_symbol_filenames): Likewise.
856 * psymtab.h: Include symfile.h.
857 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
858 * symfile.h (symbol_filename_ftype): New.
859 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
860 map_symbol_filenames, clarify more the naming in comment.
862 2011-06-07 Doug Evans <dje@google.com>
864 * cc-with-index.sh: Fix typos in comment.
865 Look for ../../gdb, for fullname.exp.
867 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
868 Pedro Alves <pedro@codesourcery.com>
870 * cli/cli-cmds.c (shell_escape): Use waitpid.
871 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
873 2011-06-07 Tristan Gingold <gingold@adacore.com>
875 * xcoffread.c (dwarf2_xcoff_names): New variable.
876 (aix_process_linenos): Add a guard.
877 (xcoff_symfile_finish): Free dwarf2.
878 (xcoff_initial_scan): Add dwarf2 support.
880 2011-06-06 Pedro Alves <pedro@codesourcery.com>
882 * infcall.c (run_inferior_call): Don't mask async. Instead force
883 a synchronous wait, if the target can async.
885 * target.h (struct target_ops): Delete to_async_mask.
886 (target_async_mask): Delete.
887 * target.c (update_current_target): Delete references to to_async_mask.
888 * linux-nat.c (linux_nat_async_mask_value): Delete.
889 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
890 to linux_nat_async_mask_value.
891 (linux_nat_async_mask): Delete.
892 (linux_nat_async, linux_nat_close): Remove references to
893 linux_nat_async_mask_value.
894 * record.c (record_async_mask_value): Delete.
895 (record_async): Remove references to record_async_mask_value.
896 (record_async_mask): Delete.
897 (record_can_async_p, record_is_async_p): Remove references to
898 record_async_mask_value.
899 (init_record_ops, init_record_core_ops): Remove references to
901 * remote.c (remote_async_mask_value): Delete.
902 (init_remote_ops): Remove reference to remote_async_mask.
903 (remote_can_async_p, remote_is_async_p): Remove references to
904 remote_async_mask_value.
905 (remote_async): Remove references to remote_async_mask_value.
906 (remote_async_mask): Delete.
908 * infrun.c (fetch_inferior_event): Don't claim registers changed
909 if the current thread is already not executing.
911 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
913 From Stephen Kitt <steve@sk2.org>
914 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
915 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
917 2011-06-03 Joel Brobecker <brobecker@adacore.com>
919 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
920 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
922 2011-06-03 Tom Tromey <tromey@redhat.com>
924 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
926 * python/py-exitedevent.c (create_exited_event_object): Change
927 type of 'exit_code'. Optionally add exit_code attribute.
928 (emit_exited_event): Change type of 'exit_code'.
929 * python/py-event.h (emit_exited_event): Update.
930 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
931 * infrun.c (handle_inferior_event): Set exit code fields on
933 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
935 * inferior.c (exit_inferior_1): Initialize new fields.
937 2011-06-03 Tom Tromey <tromey@redhat.com>
939 * dwarf2expr.c (get_signed_type): New function.
940 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
942 2011-06-02 Keith Seitz <keiths@redhat.com>
944 * objc-lang.c (find_methods): Increment objfile_csym earlier.
946 2011-06-02 Pedro Alves <pedro@codesourcery.com>
948 * top.h (simplified_command_loop): Delete declaration.
950 2011-06-01 Mike Frysinger <vapier@gentoo.org>
952 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
953 gdb_sysroot to the "len" variable. Append both to "arg_buf".
955 2011-06-01 Yao Qi <yao@codesourcery.com>
957 * objfiles.h (obj_section_addr): Update reference to objfile from
959 (obj_section_endaddr): Likewise.
961 2011-06-01 Daniel Jacobowitz <drow@false.org>
963 * MAINTAINERS: Update my email address and affiliation. Also
964 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
966 2010-05-31 Keith Seitz <keiths@redhat.com>
969 * linespec.c (get_search_block): New function.
970 (find_methods): Add FILE_SYMTATB parameter and use it and
971 get_search_block to pass an appropriate block to
972 lookup_symbol_in_namespace.
973 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
974 Check if *ARGPTR starts with a filename first.
975 If it does, call locate_first_half again to locate the next
976 "first half" of the linespec.
977 Pass FILE_SYMTATB to decode_objc and decode_compound.
978 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
979 (locate_first_half): Stop on the first colon seen.
980 (decode_compound): Add FILE_SYMTAB parameter.
981 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
982 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
983 get_search_block with lookup_symbol.
984 (find_method): Add FILE_SYMTAB parameter and pass it to
986 (decode_objc): Use get_search_block.
988 2010-05-31 Keith Seitz <keiths@redhat.com>
991 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
992 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
993 and CP_ANONYMOUS_NAMESPACE_LEN.
994 (cp_is_anonymous): Likewise.
995 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
996 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
997 * dwarf2read.c (namespace_name): Likewise.
998 (fixup_partial_die): Likewise.
999 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
1000 seen in the input, keep it.
1002 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1004 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
1005 * inf-loop.h (inferior_event_handler_wrapper): Delete.
1006 * inf-loop.c (inferior_event_handler_wrapper): Delete.
1007 (inferior_event_handler): Don't handle INF_QUIT_REQ.
1008 * remote.c (_initialize_remote): Register
1009 async_remote_interrupt_twice directly as
1010 sigint_remote_twice_token event.
1012 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1014 * target.h (enum inferior_event_type): Delete INF_ERROR.
1015 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
1017 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1019 * interps.c (interp_set): Don't cancel continuations.
1021 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1023 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
1025 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1027 * continuations.h (continuation_ftype): Add `err' parameter.
1028 Document parameters.
1029 (do_all_continuations, do_all_continuations_thread)
1030 (do_all_intermediate_continuations)
1031 (do_all_intermediate_continuations_thread)
1032 (do_all_inferior_continuations): Add `err' parameter.
1033 * continuations.c (do_my_continuations_1, do_my_continuations)
1034 (do_all_inferior_continuations, do_all_continuations_ptid)
1035 (do_all_continuations_thread_callback)
1036 (do_all_continuations_thread, do_all_continuations)
1037 (do_all_intermediate_continuations_thread_callback)
1038 (do_all_intermediate_continuations_thread)
1039 (do_all_intermediate_continuations): Add `err' parameter, and pass
1040 it down all the way to the continuations proper.
1041 * inf-loop.c (inferior_event_handler): If fetching an inferior
1042 event throws an error, don't pop the target, and still call the
1043 continuations, but with `err' set. Adjust all other continuation
1045 * breakpoint.c (until_break_command_continuation): Add `err'
1047 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
1048 issue another step if `err' is set.
1049 (struct until_next_continuation_args): New.
1050 (until_next_continuation): Add `err' parameter. Adjust.
1051 (until_next_command): Adjust.
1052 (struct finish_command_continuation_args): Add `thread' field.
1053 (finish_command_continuation): Add `err' parameter. Handle it.
1054 (finish_forward): Adjust.
1055 (attach_command_continuation): Add `err' parameter. Handle it.
1056 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1057 cancel the continuations.
1058 * interps.c (interp_set): Adjust to cancel the continuations.
1059 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1060 continuations rather than discarding.
1061 (free_thread): Don't clear thread inferior resources here.
1062 (delete_thread_1): Do it here instead. And do it before removing
1063 the thread from the threads list. Tag the thread as exited before
1064 clearing thread inferior resources.
1066 2011-05-30 Joel Brobecker <brobecker@adacore.com>
1068 * infcall.c (call_function_by_hand): Rephrase error message.
1070 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1072 * defs.h (struct thread_info, struct inferior): Delete forward
1074 * breakpoint.h (struct thread_info): New forward declaration.
1075 * observer.sh (struct inferior): New forward declaration.
1076 * python/python-internal.h (struct inferior): New forward
1079 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1081 * defs.h (struct continuation, continuation_ftype)
1082 (continuation_free_arg_ftype, add_continuation)
1083 (do_all_continuations, do_all_continuations_thread)
1084 (discard_all_continuations, discard_all_continuations_thread)
1085 (add_intermediate_continuation, do_all_intermediate_continuations)
1086 (do_all_intermediate_continuations_thread)
1087 (discard_all_intermediate_continuations)
1088 (discard_all_intermediate_continuations_thread)
1089 (add_inferior_continuation, do_all_inferior_continuations)
1090 (discard_all_inferior_continuations): Move to ...
1091 * continuations.h: ... this new file.
1092 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1093 infcmd.c, inferior.c, infrun.c, interps.c: Include
1096 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1097 Doug Evans <dje@google.com>
1099 Fix PR 10970, PR 12702.
1100 * linux-nat.c (linux_lwp_is_zombie): New function.
1101 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1102 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1104 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1106 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1108 (add_continuation, add_intermediate_continuation)
1109 (add_inferior_continuation): Use them.
1110 * continuations.c (struct continuation): Use them.
1111 (make_continuation_ftype): Delete.
1112 (make_continuation, add_inferior_continuation, add_continuation)
1113 (add_intermediate_continuation): Use continuation_ftype and
1114 continuation_free_arg_ftype. Rename parameters to shorter names.
1116 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1118 * continuations.c (make_continuation): Make it return void.
1119 (do_my_continuations): Rename to ...
1120 (do_my_continuations_1): ... this. Remove old_chain parameter and
1122 (do_my_continuations): New.
1123 (discard_my_continuations): Rename to ...
1124 (discard_my_continuations_1): ... this. Remove old_chain
1125 parameter and adjust.
1126 (discard_my_continuations): New.
1127 (add_inferior_continuation): Simplify.
1128 (do_all_inferior_continuations): Reimplement on top
1129 do_my_continuations.
1130 (discard_all_inferior_continuations): Simplify.
1131 (add_continuation): Simplify.
1132 (do_all_continuations_ptid): Simplify.
1133 (discard_all_continuations_thread_callback): Simplify.
1134 (add_intermediate_continuation): Simplify.
1135 (discard_all_intermediate_continuations_thread_callback):
1138 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1140 * utils.c (struct continuation, add_continuation)
1141 (add_inferior_continuation)
1142 (do_all_inferior_continuations, discard_all_inferior_continuations)
1143 (restore_thread_cleanup, do_all_continuations_ptid)
1144 (do_all_continuations_thread_callback)
1145 (do_all_continuations_thread, do_all_continuations)
1146 (discard_all_continuations_thread_callback)
1147 (discard_all_continuations_thread, discard_all_continuations)
1148 (add_intermediate_continuation)
1149 (do_all_intermediate_continuations_thread_callback)
1150 (do_all_intermediate_continuations_thread)
1151 (do_all_intermediate_continuations)
1152 (discard_all_intermediate_continuations_thread_callback)
1153 (discard_all_intermediate_continuations_thread)
1154 (discard_all_intermediate_continuations): Move to ...
1155 * continuations.c: ... this new file, and adjust to no longer
1156 implement continuations on top of cleanups.
1157 * Makefile.in (SFILES): Add continuations.c.
1158 (COMMON_OBS): Add continuations.o.
1160 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1162 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1163 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1164 Internal error on invalid values.
1165 * reverse.c: Don't handle EXEC_ERROR.
1166 * mi/mi-main.c: Don't handle EXEC_ERROR.
1168 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1170 * record.c: Include event-loop.h, inf-loop.h.
1171 (record_beneath_to_async): New global.
1172 (tmp_to_async): New global.
1173 (record_async_inferior_event_token): New global.
1174 (record_open_1): Don't error out if async is enabled.
1175 (record_open): Handle to_async. Create an async event source in
1177 (record_close): Delete the async event source.
1178 (record_resumed): New global.
1179 (record_execution_dir): New global.
1180 (record_resume, record_core_resume): Set them. Register the
1181 target on the event loop.
1182 (record_wait): Rename to ...
1183 (record_wait_1): ... this. Add more debug output. Handle
1184 TARGET_WNOHANG, and the target beneath returning
1185 TARGET_WAITKIND_IGNORE.
1186 (record_wait): Reimplement on top of record_wait_1.
1187 (record_async_mask_value): New global.
1188 (record_async, record_async_mask, record_can_async_p)
1189 (record_is_async_p, record_execution_direction): New functions.
1190 (init_record_ops, init_record_core_ops): Install new methods.
1191 * infrun.c (fetch_inferior_event): Temporarily switch the global
1192 execution direction to the direction the target was going.
1193 (execution_direction): Change type to int.
1194 * target.c (default_execution_direction): New function.
1195 (update_current_target): Inherit and de_fault
1196 to_execution_direction.
1197 * target.h (struct target_ops) <to_execution_direction>: New
1199 (target_execution_direction): New macro.
1200 * inferior.h (execution_direction): Change type to int.
1202 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1204 * infcall.c (call_function_by_hand): Don't allow calling functions
1205 in reverse execution mode.
1207 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1209 * infcmd.c (finish_command): Allow async finish in reverse.
1211 2011-05-26 Yao Qi <yao@codesourcery.com>
1213 * gdb_thread_db.h: Delete. Move to ...
1214 * common/gdb_thread_db.h: ... here.
1216 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1218 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1219 function's entry point instead of a manually managed momentary
1220 breakpoint, and only ever issue one proceed call.
1221 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1222 doing a reverse-finish, switch to stepi mode, to do another step.
1223 (insert_step_resume_breakpoint_at_sal): Make public.
1224 (normal_stop): No need to save function value return registers if
1226 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1228 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1230 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1231 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1232 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
1234 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1235 step-resume breakpoints.
1236 (print_it_typical): Handle bp_hp_step_resume.
1237 (bpstat_what): Ditto.
1238 (bptype_string): Ditto.
1239 (print_one_breakpoint_location): Ditto.
1240 (allocate_bp_location): Ditto.
1242 (breakpoint_re_set_one): Ditto.
1243 * infrun.c (handle_inferior_event): Adjust. Split
1244 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1245 BPSTAT_WHAT_HP_STEP_RESUME.
1246 (insert_step_resume_breakpoint_at_sal): Rename to ...
1247 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
1248 parameter. Handle it.
1249 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1250 insert_step_resume_breakpoint_at_sal_1.
1251 (insert_step_resume_breakpoint_at_frame): Rename to ...
1252 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
1253 set a high-priority step-resume breakpoint.
1254 (insert_step_resume_breakpoint_at_frame): Adjust comment.
1255 (insert_step_resume_breakpoint_at_caller): Ditto.
1257 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1259 * breakpoint.c (iterate_over_related_breakpoints): New.
1260 (do_map_delete_breakpoint): New.
1261 (delete_command): Pass do_map_delete_breakpoint to
1262 map_breakpoint_numbers.
1263 (do_disable_breakpoint): New.
1264 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1266 (do_enable_breakpoint): Rename to ...
1267 (enable_breakpoint_disp): ... this.
1268 (enable_breakpoint): Adjust.
1269 (do_enable_breakpoint): New.
1270 (enable_once_breakpoint): Delete.
1271 (do_map_enable_breakpoint): New.
1272 (do_map_enable_once_breakpoint): New.
1273 (enable_once_command, enable_delete_command)
1274 (delete_trace_command): Iterate over the breakpoint's related
1277 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1279 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1280 for ALPHA_ZERO_REGNUM.
1281 (alpha_supply_int_regs): Explicitly supply zero as the value for
1282 ALPHA_ZERO_REGNUM in the register cache.
1283 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1285 2011-05-26 Yao Qi <yao@codesourcery.com>
1287 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1289 2011-05-26 Tristan Gingold <gingold@adacore.com>
1291 * symfile.h (struct dwarf2_section_names): New type.
1292 (struct dwarf2_debug_sections): New type.
1293 (dwarf2_has_info): Add parameter.
1294 * dwarf2read.c (dwarf2_elf_names): New variable.
1295 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1296 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1297 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1298 (dwarf2_has_info): Add names parameter. Pass names
1299 to dwarf2_locate_sections.
1300 (section_is_p): Rewrite using the names parameter.
1301 (dwarf2_locate_sections): Use section names from the names parameter.
1302 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1303 * elfread.c (read_psyms): Ditto.
1304 * machoread.c (macho_symfile_read): Ditto.
1306 2011-05-25 Andreas Schwab <schwab@redhat.com>
1309 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1311 2011-05-24 Keith Seitz <keiths@redhat.com>
1314 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1315 (decode_compound): Unconditionally call keep_name_info.
1317 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1319 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1320 scope, clear its command list.
1321 (map_breakpoint_numbers): Don't walk the related breakpoints list
1324 2011-05-24 Tom Tromey <tromey@redhat.com>
1326 * MAINTAINERS: Move Jim Blandy to past maintainers.
1328 2011-05-24 Tristan Gingold <gingold@adacore.com>
1330 * symfile.h (enum dwarf2_section_enum): New type.
1331 (dwarf2_get_section_info): New prototype.
1332 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1333 section_name by sect. Use a switch to select the info.
1334 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1335 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1337 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1339 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1340 shared library event breakpoint if there's no execution.
1342 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
1344 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1345 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1347 2011-05-23 Tom Tromey <tromey@redhat.com>
1349 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1352 2011-05-23 Doug Evans <dje@google.com>
1354 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1355 entry for RuntimeError to doc string.
1357 2011-05-23 Jerome Guitton <guitton@adacore.com>
1359 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1360 sequence for probing loops.
1362 2011-05-23 Pedro Alves <pedro@codesourcery.com>
1364 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1367 2011-05-21 Mark Kettenis <kettenis@gnu.org>
1369 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1370 zero as the value for %g0 in the register cache.
1371 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1372 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1374 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1376 * infrun.c (proceed): Set previous_inferior_ptid here.
1377 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1378 inferior_ptid, not null_ptid.
1379 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1380 (fetch_inferior_event): Nor here.
1382 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1384 * inf-loop.c (inferior_event_handler): Only output a message if
1387 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
1389 * MAINTAINERS: Update my e-mail address.
1391 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1393 * infrun.c (proceed): Switch the inferior event loop to
1394 INF_EXEC_COMPLETE if the target refused to resume from a
1397 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1399 * infcmd.c: Include "inf-loop.h".
1400 (step_once): When stepping into an inline subroutine, pretend the
1401 target has run. If the target can async, switch the inferior
1402 event loop to INF_EXEC_COMPLETE.
1403 * inferior.h (user_visible_resume_ptid): Declare.
1404 * infrun.c (user_visible_resume_ptid): New function, factored out
1407 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1408 that the current thread is running. Merge async and sync
1411 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1413 * infcmd.c (step_1): Simplify synchronous case.
1415 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1417 * tracepoint.c: Include exceptions.h.
1418 (TFILE_PID): Move higher in file.
1419 (tfile_open): Delay pushing the tfile target until we're assured
1420 the tfile header is present in the file. Wrap reading the initial
1421 newline-terminated lines in TRY_CATCH. Pop the target if the
1422 initial setup failed. Add the tfile's thread immediately
1423 aftwards, before any non-essential setup. Don't skip
1424 post_create_inferior if there are no traceframes present in the
1426 (tfile_close): Remove redundant check for null before xfree call.
1427 (tfile_thread_alive): New function.
1428 (init_tfile_ops): Register it as to_thread_alive callback.
1430 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1432 * tracepoint.c (tfile_open): Delete #if 0'd code.
1434 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1436 Fix -readnow for -gdwarf-4 unused type units.
1437 * dwarf2read.c (struct signatured_type): Remove the field offset.
1438 (create_signatured_type_table_from_index): Remove its initialization.
1439 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1440 instead. Add a complaint call.
1441 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1442 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1443 (lookup_signatured_type_at_offset, read_signatured_type)
1444 (write_one_signatured_type): Update the field for per_cu.
1446 2011-05-19 Tom Tromey <tromey@redhat.com>
1448 * python/py-inferior.c (python_inferior_exit): Use
1450 (python_on_resume): Likewise.
1452 2011-05-19 Matt Rice <ratmice@gmail.com>
1454 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1456 2011-05-19 Hui Zhu <teawater@gmail.com>
1458 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1460 2011-05-19 Hui Zhu <teawater@gmail.com>
1462 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1464 2011-05-18 Tom Tromey <tromey@redhat.com>
1466 * dwarf2read.c (dwarf2_add_field): Constify.
1467 * value.c (value_static_field): Constify.
1468 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1470 * ax-gdb.c (gen_static_field): Constify
1472 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1474 * linux-nat.c (kill_callback): Use SIGKILL first.
1476 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1478 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1480 2011-05-18 Tom Tromey <tromey@redhat.com>
1482 * value.c (value_fn_field): Constify.
1483 * symtab.c (gdb_mangle_name): Constify.
1484 * stabsread.c (update_method_name_from_physname): Make 'physname'
1486 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1487 const. Use explicit fputc_filtered loop.
1488 (pascal_type_print_base): Constify.
1489 * p-lang.h (pascal_type_print_method_args): Update.
1490 * linespec.c (add_matching_methods): Constify.
1491 (add_constructors): Likewise.
1492 * jv-typeprint.c (java_type_print_base): Constify.
1493 * gdbtypes.h (struct cplus_struct_type)
1494 <fn_fieldlist.fn_field.physname>: Now const.
1495 * dwarf2read.c (compute_delayed_physnames): Constify.
1496 (dwarf2_add_member_fn): Likewise.
1497 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1499 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1501 * infrun.c (resume): Mention which is the current thread, and its
1502 current PC in debug output.
1503 (prepare_to_proceed): Mention the thread switching in debug
1506 2011-05-18 Tom Tromey <tromey@redhat.com>
1508 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1509 path check. Use xmalloc and cleanups.
1510 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1512 2011-05-17 Tom Tromey <tromey@redhat.com>
1514 * cp-valprint.c (cp_print_value_fields): Catch errors from
1517 2011-05-17 Tom Tromey <tromey@redhat.com>
1519 * dwarf2read.c (dwarf2_get_die_type): Call
1520 get_die_type_at_offset.
1521 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1522 get_base_type function.
1524 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1526 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1529 2011-05-16 Doug Evans <dje@google.com>
1531 * python/py-auto-load.c (source_section_scripts): Mention objfile
1534 2011-05-15 Doug Evans <dje@google.com>
1536 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1537 (try_thread_db_load_from_pdir): Call it. If unable to find
1538 libthread_db in directory of libpthread, see if we're looking at
1539 the separate-debug-info copy.
1541 * python/py-autoload.c (print_script): Print "Missing" instead of
1542 "No" for missing scripts.
1543 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1545 2011-05-13 Doug Evans <dje@google.com>
1547 * ui-file.c (stdio_file_write_async_safe): Add comment.
1549 2011-05-14 Hui Zhu <teawater@gmail.com>
1551 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1553 2011-05-13 Doug Evans <dje@google.com>
1555 Support $pdir and $sdir in libthread-db-search-path.
1556 * NEWS: Mention $sdir,$pdir.
1557 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1558 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1559 (try_thread_db_load_from_sdir): New function.
1560 (try_thread_db_load_from_dir): New function.
1561 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1562 system directories if search of libthread-db-search-path fails,
1563 that is now done via $sdir.
1564 (has_libpthread): New function.
1565 (thread_db_load): Remove search for libthread_db in directory of
1566 libpthread, that is now done via $pdir.
1568 * NEWS: Mention "info auto-load-scripts".
1569 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1570 script_not_found_warning_printed.
1571 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1572 all callers updated. Initialize script_not_found_warning_printed.
1573 (get_auto_load_pspace_data_for_loading): New function.
1574 (maybe_add_script): New function.
1575 (source_section_scripts): Simplify. Only print one warning regardless
1576 of the number of auto-load scripts not found.
1577 (clear_section_scripts): Clear script_not_found_warning_printed.
1578 (auto_load_objfile_script): Record script in hash table.
1579 (count_matching_scripts): New function.
1580 (maybe_print_script): Renamed from maybe_print_section_script, all
1581 callers updated. Rewrite to use ui_out_*.
1582 (info_auto_load_scripts): Renamed from
1583 maintenance_print_section_scripts, all callers updated.
1584 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1585 renamed as "info auto-load-scripts".
1587 2011-05-13 Tom Tromey <tromey@redhat.com>
1589 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1590 (read_sleb128): Likewise.
1592 2011-05-13 Tom Tromey <tromey@redhat.com>
1594 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1597 2011-05-13 Doug Evans <dje@google.com>
1599 * linux-nat.c (debug_linux_nat_async): Delete.
1600 Replace all references to use debug_linux_nat instead.
1601 (show_debug_linux_nat_async): Delete.
1602 (sigchld_handler): Call ui_file_write_async_safe instead of
1604 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1605 * ui-file.c (struct ui_file): New member to_write_async_safe.
1606 (null_file_write_async_safe): New function.
1607 (ui_file_write_async_safe): New function.
1608 (set_ui_file_write_async_safe): New function.
1609 (ui_file_new): Initialize to_write_async_safe.
1610 (stdio_file_write_async_safe): New function.
1611 (struct stdio_file): New member fd.
1612 (stdio_file_new): Initialize to_write_async_safe, fd.
1613 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1615 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1616 (set_ui_file_write_async_safe): Declare.
1617 (ui_file_write_async_safe): Declare.
1619 2011-05-13 Tom Tromey <tromey@redhat.com>
1621 * utils.c (do_value_free): New function.
1622 (make_cleanup_value_free): Likewise.
1623 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1625 (dwarf2_loc_desc_needs_frame): Call
1626 make_cleanup_value_free_to_mark.
1627 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1628 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1630 (new_dwarf_expr_context): Don't call value_mark.
1631 * dwarf2-frame.c (execute_stack_op): Call
1632 make_cleanup_value_free_to_mark.
1633 * defs.h (make_cleanup_value_free): Declare.
1635 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1637 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1638 prepare_execute_command.
1639 * top.c (prepare_execute_command): Return cleanup.
1640 (execute_command): Use cleanup from prepare_execute_command.
1641 * top.h (prepare_execute_command): Change prototype to return
1643 * defs.h (struct value): Add opaque declaration.
1644 (make_cleanup_value_free_to_mark): Add prototype.
1645 * utils.c (do_value_free_to_mark): New function.
1646 (make_cleanup_value_free_to_mark): Likewise.
1648 2011-05-12 Tom Tromey <tromey@redhat.com>
1650 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1651 cast left-hand-side to unsigned.
1653 2011-05-12 Tom Tromey <tromey@redhat.com>
1656 * value.h (value_from_contents): Declare.
1657 * value.c (value_from_contents): New function.
1658 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1659 (dwarf2_get_die_type): New function.
1660 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1661 (allocate_piece_closure): Acquire reference to values.
1662 (read_pieced_value): Update for value-based expressions.
1663 (write_pieced_value): Likewise.
1664 (free_pieced_value_closure): Call value_free as needed.
1665 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1666 Update for value-based expressions.
1667 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1668 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1669 <get_base_type>: New field.
1670 (struct dwarf_expr_piece) <v.value>: Change type.
1671 <v.regno>: New field.
1672 (struct dwarf_expr_context) <mark>: New field.
1673 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1674 (dwarf_expr_pop, dwarf_expr_push): Remove.
1675 (dwarf_expr_push_address): Declare.
1676 * dwarf2expr.c (dwarf_arch_cookie): New global.
1677 (struct dwarf_gdbarch_types): New.
1678 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1680 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1682 (dwarf_expr_push_address): New function.
1683 (dwarf_expr_pop): Now static.
1684 (dwarf_expr_fetch): Change return type.
1685 (dwarf_require_integral): New function.
1686 (dwarf_expr_fetch): Simplify.
1687 (add_piece): Update.
1688 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1690 (execute_stack_op) <sign_ext>: Remove.
1691 Use values for DWARF stack.
1692 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1693 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1695 (_initialize_dwarf2expr): New function.
1696 (add_piece): Update.
1697 (new_dwarf_expr_context): Set new field.
1698 (free_dwarf_expr_context): Call value_free_to_mark.
1699 * dwarf2-frame.c (no_base_type): New function.
1700 (execute_stack_op): Set get_base_type field. Update.
1702 2011-05-12 Tom Tromey <tromey@redhat.com>
1704 * dwarf2read.c (read_common_block): Fix formatting.
1706 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1708 * breakpoint.c (disable_breakpoint): Disable all locations
1709 associated with a tracepoint on target if a trace experiment is
1711 (disable_command): Disable a specific tracepoint location on target if
1712 a trace experiment is running.
1713 (do_enable_breakpoint): Enable all locations associated with a
1714 tracepoint on target if a trace experiment is running.
1715 (enable_command) Enable a specific tracepoint location on target if a
1716 trace experiment is running.
1717 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1718 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1719 to_disable_tracepoint.
1720 * target.h: Add declaration of struct bp_location.
1721 (struct target_ops): Add new functions
1722 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1723 to_disable_tracepoint to target operations.
1724 (target_supports_enable_disable_tracepoint): New macro.
1725 (target_enable_tracepoint): New macro.
1726 (target_disable_tracepoint): New macro.
1727 * remote.c (struct remote_state): Add new field.
1728 (remote_enable_disable_tracepoint_feature): New.
1729 (remote_protocol_features): Add new entry.
1730 (remote_supports_enable_disable_tracepoint): New.
1731 (remote_enable_tracepoint): New.
1732 (remote_disable_tracepoint): New.
1733 (init_remote_ops): Add remote_enable_tracepoint,
1734 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1735 to remote operations.
1736 * tracepoint.c (start_tracing): Allow tracing to start without any
1737 tracepoints enabled with just a warning if they can be re-enabled
1739 * NEWS: Add news item for the new behaviour of the enable and disable
1740 GDB commands when applied to tracepoints.
1741 Add news items for the new remote packets QTEnable and QTDisable.
1743 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1745 * config.in: Regenerate.
1746 * configure: Regenerate.
1747 * configure.ac <--with-system-readline> (for readline_echoing_p):
1749 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1750 (tui_old_rl_echoing_p): ... here.
1751 (tui_setup_io): Rename extern declaration readline_echoing_p to
1752 _rl_echoing_p. Adjust assignments for the both renames.
1754 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1756 * symtab.c (lookup_symtab): Run cleanup before returning.
1758 2011-05-11 Tom Tromey <tromey@redhat.com>
1760 * dwarf2read.c (handle_data_member_location): New function.
1761 (dwarf2_add_field): Use it.
1762 (read_common_block): Likewise.
1764 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1766 Make addrs->SECTINDEX always defined.
1767 * symfile.c (relative_addr_info_to_section_offsets): Check for
1768 SECTINDEX -1, not for zero ADDR.
1769 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1770 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1771 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1774 2011-05-10 Doug Evans <dje@google.com>
1776 * linux-thread-db.c: Whitespace cleanup.
1777 (try_thread_db_load_1): Fix comment.
1779 * linux-thread-db.c (set_libthread_db_search_path): New function.
1780 (_initialize_thread_db): Add setter for libthread-db-search-path.
1782 2011-05-09 Doug Evans <dje@google.com>
1784 * NEWS: Mention --with-iconv-bin.
1785 * configure.ac: New option --with-iconv-bin.
1786 * configure: Regenerate.
1787 * config.in: Regenerate.
1788 * defs.h (relocate_gdb_directory): Declare.
1789 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1790 removed progname parameter, and exported. All callers updated.
1791 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1793 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1794 adding missing call to restore_child_signals_mask.
1796 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1798 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1800 * infrun.c (proceed, start_remote): Adjust.
1801 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1802 and adjust to not handle it.
1803 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1804 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1805 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1806 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1807 * windows-nat.c (do_initial_windows_stuff): Adjust.
1808 * infcmd.c (attach_command): Adjust.
1809 (notice_new_inferior): Adjust.
1811 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1813 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1814 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1815 * spu-tdep.c (op_selb): Use correct value.
1817 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1819 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1820 "parent" parameter to symbol_file_add_from_bfd call.
1822 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1823 Thiago Jung Bauermann <bauerman@br.ibm.com>
1825 Implement support for PowerPC BookE masked watchpoints.
1826 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1828 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1829 method. Initialize to NULL in all existing breakpoint_ops instances.
1830 (struct breakpoint) <hw_wp_mask>: New field.
1831 * breakpoint.c (is_masked_watchpoint): Add prototype.
1832 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1833 breakpoint's breakpoint_ops.works_in_software_mode if available.
1834 (watchpoints_triggered): Handle the case of a hardware masked
1836 (watchpoint_check): Likewise.
1837 (works_in_software_mode_watchpoint): New function.
1838 (insert_masked_watchpoint, remove_masked_watchpoint)
1839 (resources_needed_masked_watchpoint)
1840 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1841 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1842 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1844 (masked_watchpoint_breakpoint_ops): New structure.
1845 (watch_command_1): Check for the existence of the `mask' parameter.
1846 Set b->ops according to the type of hardware watchpoint being created.
1847 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1848 (ppc_linux_remove_mask_watchpoint)
1849 (ppc_linux_masked_watch_num_registers): New functions.
1850 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1851 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1852 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1853 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1854 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1855 (target_masked_watch_num_registers): New functions.
1856 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1857 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1859 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1860 (target_masked_watch_num_registers): Add prototypes.
1862 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1865 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1866 (producer_is_gcc_ge_4_0): New function.
1867 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1868 symtab->language code.
1869 (var_decode_location): Set cu->has_loclist.
1870 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1871 skip. Intialize force_skip from locations_valid. Move the prologue
1872 skipping code into two passes.
1873 * symtab.h (struct symtab): Make the primary field a bitfield. New
1874 field locations_valid.
1876 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1878 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1879 (classify_inner_name): Call cp_lookup_nested_type with
1881 * cp-namespace.c (cp_lookup_nested_type): New variable
1882 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1883 type_name_no_tag_or_error with saved_parent_type.
1884 * dwarf2read.c (load_partial_dies): Read in any children of
1885 DW_TAG_typedef with complaint in such case.
1886 * gdbtypes.c (type_name_no_tag_or_error): New function.
1887 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1888 * valops.c (destructor_name_p): New comment for parameter type. Remove
1889 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1890 * value.h (destructor_name_p): Remove type const.
1892 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1894 * symtab.c (compare_symbol_name): New function.
1895 (completion_list_add_name, expand_partial_symbol_name): Call it,
1896 remove the variable ncmp.
1897 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1900 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1902 Demote to sw watchpoint only in update_watchpoint.
1903 * breakpoint.c (update_watchpoint): Change between software and
1904 hardware watchpoint for all kinds of watchpoints, not just
1905 read/write ones. Determine b->exact value here instead of
1906 in watch_command_1. Error out if there are not enough resources
1907 for a read or access hardware watchpoint.
1908 (watch_command_1): Remove logic of checking whether there are
1909 enough resources available, since update_watchpoint will do that
1910 work now. Don't set b->exact here. Catch exceptions thrown by
1911 update_watchpoint and delete the watchpoint.
1912 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1913 Use target_exact_watchpoints instead.
1914 (delete_breakpoint): Notify observers only if deleted watchpoint
1915 has a breakpoint number assigned to it.
1917 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
1919 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1921 2011-05-05 Jerome Guitton <guitton@adacore.com>
1923 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1925 (i386_stack_tramp_frame_unwind): New static global.
1926 (i386_match_pattern): New function, extracted from i386_match_insn.
1927 (i386_match_insn): Use i386_match_pattern.
1928 (i386_match_insn_block): New function.
1929 (i386_tramp_chain_in_reg_insns)
1930 (i386_tramp_chain_on_stack_insns): New static variables.
1931 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1934 2011-05-04 Joseph Myers <joseph@codesourcery.com>
1936 * configure.host (xscale*): Don't handle target.
1937 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1940 2011-05-04 Yao Qi <yao@codesourcery.com>
1942 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1944 2011-05-03 Joel Brobecker <brobecker@adacore.com>
1947 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
1948 | * elfread.c (elf_symtab_read): Stop memory leak.
1950 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1952 * nto-tdep.c (nto_target): Replace deprecated call to
1953 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1955 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1957 Fix false GCC warning.
1958 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1960 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1962 * breakpoint.c (update_watchpoint): Move code to change
1963 the enable state of breakpoint from here ...
1964 (do_enable_breakpoint): ... to here.
1966 2011-04-26 Andrew Gontarek <andrewg@cray.com>
1968 * valprint.c (val_print_array_elements): Fixed poor performance
1969 of printing very large arrays with repeat_count_threshold set
1970 to unlimited. New comment.
1972 2011-04-29 Tom Tromey <tromey@redhat.com>
1974 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
1975 (mi_parse): Likewise.
1976 * breakpoint.c (break_range_command): Use sizeof char*, not
1978 (create_breakpoint): Likewise.
1979 (parse_breakpoint_sals): Likewise.
1981 2011-04-29 Pedro Alves <pedro@codesourcery.com>
1983 * linux-nat.c (linux_child_remove_fork_catchpoint)
1984 (linux_child_remove_vfork_catchpoint)
1985 (linux_child_remove_exec_catchpoint): New functions.
1986 (linux_target_install_ops): Install them.
1988 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
1992 * varobj.c (install_default_visualizer): Do not install a
1993 visualizer if the varobj is CPLUS_FAKE_CHILD.
1994 (construct_visualizer): Likewise.
1996 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1998 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
1999 case insensitive comparison.
2001 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
2003 * infrun.c (proceed): Revert previous change.
2004 (resume): Instead, handle the case of signal delivery while stepping
2005 off a breakpoint location here, and only if software single-stepping
2006 is used. Handle nested signals.
2008 2011-04-28 Yao Qi <yao@codesourcery.com>
2010 * arm-tdep.c (copy_unmodified): Rename to ...
2011 (arm_copy_unmodified): .. this. New.
2012 (copy_preload): Move common part to ...
2013 (install_preload): .. this. New.
2014 (arm_copy_preload): New.
2015 (copy_preload_reg): Move common part to ...
2016 (install_preload_reg): ... this. New.
2017 (arm_copy_preload_reg): New.
2018 (copy_b_bl_blx): Move common part to ...
2019 (install_b_bl_blx): .. this. New.
2020 (arm_copy_b_bl_blx): New.
2021 (copy_bx_blx_reg): Move common part to ...
2022 (install_bx_blx_reg): ... this. New.
2023 (arm_copy_bx_blx_reg): New.
2024 (copy_alu_reg): Move common part to ...
2025 (install_alu_reg): ... this. New.
2026 (arm_copy_alu_reg): New.
2027 (copy_alu_shifted_reg): Move common part to ...
2028 (install_alu_shifted_reg): ... this. New.
2029 (copy_ldr_str_ldrb_strb): Move common part to ...
2030 (install_ldr_str_ldrb_strb): ... this. New.
2031 (arm_copy_ldr_str_ldrb_strb): New.
2032 (copy_copro_load_store): Move some common part to ...
2033 (install_copy_copro_load_store): ... this. New.
2034 (arm_copy_copro_load_store): New.
2036 (arm_copy_svc): Renamed from copy_svc.
2037 (copy_undef): Delete.
2038 (arm_copy_undef): Renamed from copy_undef.
2039 (decode_ext_reg_ld_st): Delete.
2040 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2041 (decode_svc_copro): Delete.
2042 (arm_decode_svc_copro): Renamed from decode_svc_copro.
2043 (copy_copro_load_store, copy_alu_imm): update callers.
2044 (copy_extra_ld_st, copy_block_xfer): Likewise.
2045 (decode_misc_memhint_neon, decode_unconditional): Likewise.
2046 (decode_miscellaneous, decode_dp_misc): Likewise.
2047 (decode_ld_st_word_ubyte, decode_media): Likewise.
2048 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
2049 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
2050 (decode_unconditional, decode_miscellaneous): Likewise.
2051 (decode_media, decode_b_bl_ldmstm): Likewise.
2052 (arm_process_displaced_insn): Likewise..
2053 (decode_misc_memhint_neon): Delete.
2054 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2055 (decode_miscellaneous): Delete.
2056 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2057 (decode_dp_misc): Delete.
2058 (arm_decode_dp_misc): Renamed from decode_dp_misc.
2059 (decode_ld_st_word_ubyte): Delete.
2060 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2061 (decode_media): Delete.
2062 (arm_decode_media): Renamed from decode_media.
2063 (decode_b_bl_ldmstm): Delete.
2064 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2065 (decode_ext_reg_ld_st): Delete.
2066 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2067 (decode_unconditional): Delete.
2068 (arm_decode_unconditional): Renamed from decode_unconditional.
2070 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2072 Case insensitive lookups implementation.
2073 * dwarf2read.c: Include ctype.h.
2074 (struct mapped_index): New field version.
2075 (mapped_index_string_hash): New parameter index_version. New comment
2076 for it. Call tolower appropriately.
2077 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2078 Choose the right index version for mapped_index_string_hash.
2079 (dwarf2_read_index): Support also the index version 5. Initialize the
2080 new struct mapped_index field version.
2081 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2082 (find_slot): Explain the version needs. Pass INT_MAX for the new
2084 (write_psymtabs_to_index): Produce version 5.
2085 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2086 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2087 * psymtab.c (lookup_partial_symbol): Find the
2088 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2090 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2092 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2093 (completion_list_add_name): New variable ncmp, initialize it, use it.
2094 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2095 * utils.c (strcmp_iw): Support case_sensitive_off.
2096 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2097 New function comment part. New variables saved_string1,
2098 saved_string2 and case_pass. Add a proper second pass.
2100 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2102 Replace re_comp/re_exec by regcomp/regexec.
2103 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2104 (search_symbols_name_matches): Use them, use regexec.
2105 (search_symbols): New variable retval_chain, adjust the use of
2106 old_chain against it. Replace re_comp by regcomp. Use the new struct
2107 search_symbols_data fields, use regexec instead of re_exec.
2109 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2111 Format the code for the next patch.
2112 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2113 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2114 New variables c1 and c2.
2116 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2118 * infrun.c (proceed): Do not single-step into signal delivery
2119 when stepping off a breakpoint location.
2120 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2121 (insert_step_resume_breakpoint_at_caller): Likewise.
2122 (insert_step_resume_breakpoint_at_sal): Likewise.
2123 (insert_longjmp_resume_breakpoint): Likewise.
2125 2011-04-27 Yao Qi <yao@codesourcery.com>
2127 * common/linux-ptrace.h: Remove include <sys/wait.h>.
2129 2011-04-27 Joel Brobecker <brobecker@adacore.com>
2131 * procfs.c (procfs_pass_signals): Fix advance declaration.
2133 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2135 * target.h (struct target_ops): Remove to_notice_signals;
2136 add to_pass_signals.
2137 (target_notice_signals): Remove.
2138 (target_pass_signals): Add prototype.
2139 * target.c (update_current_target): Remove to_notice_signals;
2140 mention to_pass_signals.
2141 (target_pass_signals): New function.
2142 (debug_to_notice_signals): Remove.
2143 (setup_target_debug): Do not install debug_to_notice_signals.
2145 * infrun.c (signal_pass): New global.
2146 (resume): Call target_pass_signals.
2147 (handle_inferior_event): Report all signals while stepping over
2148 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
2149 are re-inserted when stepping over a signal handler.
2150 (signal_cache_update): New function.
2151 (signal_stop_update): Call it.
2152 (signal_print_update): Likewise.
2153 (signal_pass_update): Likewise.
2154 (handle_command): Call signal_cache_update and target_pass_signals
2155 instead of target_notice_signals.
2156 (_initialize_infrun): Initialize signal_pass.
2158 * linux-nat.c (pass_mask): New global.
2159 (linux_nat_pass_signals): New function.
2160 (linux_nat_create_inferior): Report all signals initially.
2161 (linux_nat_attach): Likewise.
2162 (linux_nat_resume): Use pass_mask to decide whether to directly
2163 handle an inferior signal.
2164 (linux_nat_wait_1): Likewise.
2165 (linux_nat_add_target): Install to_pass_signals callback.
2167 * nto-procfs.c (notice_signals): Remove.
2168 (procfs_resume): Do not call notice_signals.
2169 (procfs_notice_signals): Remove.
2170 (procfs_pass_signals): New function.
2171 (init_procfs_ops): Install to_pass_signals callback instead of
2172 to_notice_signals callback.
2173 (_initialize_procfs): Report all signals initially.
2175 * procfs.c (procfs_notice_signals): Remove.
2176 (procfs_pass_signals): New function.
2177 (procfs_target): Install to_pass_signals callback instead of
2178 to_notice_signals callback.
2179 (register_gdb_signals): Remove.
2180 (procfs_debug_inferior): Report all signals initially.
2181 (procfs_init_inferior): Remove redundant register_gdb_signals call.
2183 * remote.c (remote_pass_signals): Add numsigs and pass_signals
2184 parameters; use them instead of calling signal_..._state routines.
2185 (remote_notice_signals): Remove.
2186 (remote_start_remote): Report all signals initially.
2187 (remote_resume): Do not call remote_pass_signals.
2188 (_initialize_remote): Install to_pass_signals callback instead of
2189 to_notice_signals callback.
2191 2011-04-27 Pedro Alves <pedro@codesourcery.com>
2193 * breakpoint.c (user_settable_breakpoint): Delete.
2194 (user_breakpoint_p): Remove check on user_settable_breakpoint.
2195 (delete_command): Check user_breakpoint_p instead of looking at
2196 the breakpoint's type.
2197 (disable_command): Ditto.
2198 (enable_command): Ditto.
2199 (delete_trace_command): Use user_breakpoint_p instead of looking
2200 at the breakpoint number directly. When checking if there are
2201 user visible tracepoints, in order to know whether to ask the user
2202 for confirmation, check whether the breakpoint is actually a
2205 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2207 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2210 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2212 MI breakpoint notifications.
2214 * annotate.c (breakpoint_changed): Adjust parameter type.
2215 * breakpoint.c (set_breakpoint_condition): Adjust to change
2216 in breakpoint_modified type.
2217 (breakpoint_set_commands): Likewise.
2218 (do_map_commands_command): Likewise.
2219 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2220 changed after bumping hit count.
2221 (bpstat_stop_status): Likewise.
2222 (print_one_breakpoint_location): Don't wrap in tuple here.
2223 (print_one_breakpoint): Always print individual locations.
2224 For locations, use unnamed tuple.
2225 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2227 (create_catchpoint, create_syscall_event_catchpoint): Call
2228 breakpoint_created obsever.
2229 (mention): Don't call breakpoint_created observer.
2230 (create_breakpoint_sal): Call breakpoint_created observer.
2231 (create_breakpoint, watch_command_1): Likewise.
2232 (create_ada_exception_breakpoint): Likewise.
2233 (delete_breakpoint): Call breakpoint_deleted breakpoint.
2234 (locations_are_equal): New.
2235 (update_breakpoint_locations): If locations were changed, notify.
2236 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2237 Call breakpoint_modified observer.
2239 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2240 (mi_cmd_break_insert): Don't set observers for modify and delete.
2241 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2242 (mi_breakpoint_created, mi_breakpoint_deleted)
2243 (mi_breakpoint_modified): New.
2244 (mi_interpreter_init): Hook the above.
2245 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2246 while -break-* commands are executing.
2247 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2248 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2250 (mi_ui_out_impl): Hook in mi_redirect.
2251 (mi_field_skip): True to the name, skip the field, don't output
2252 a field with an empty value.
2254 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2255 (gdbpy_breakpoint_deleted): Adjust.
2256 * tui/tui-hooks.c (tui_event_create_breakpoint)
2257 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2259 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
2261 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2262 (procfs_remove_hw_watchpoint): Likewise.
2264 2011-04-26 Michael Walle <michael@walle.cc>
2266 * remote.c (remote_start_remote): Ack packet after sending the
2269 2011-04-26 Yao Qi <yao@codesourcery.com>
2271 * linux-nat.c: Move common macros to ...
2272 Include linux-ptrace.h.
2273 * common/linux-ptrace.h: ... here. New.
2275 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2277 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2278 !objfile_has_partial_symbols. New comment.
2279 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2280 SYM_READ_PSYMBOLS is not present. Extend the comment.
2281 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2283 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2285 * defs.h (ENUM_BITFIELD): Remove.
2287 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2288 Eli Zaretskii <eliz@gnu.org>
2290 * NEWS: Document the new gdbserver --once option.
2292 2011-04-21 Jie Zhang <jzhang918@gmail.com>
2294 * MAINTAINERS: Update my email address.
2296 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2298 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2299 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2300 function call if __STDC_ISO_10646__ macro is defined.
2301 (intermediate_encoding): New prototype.
2302 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2303 to generate compile time error for unsupported gdb_wchar_t size.
2304 (ENDIAN_SUFFIX): New macro.
2305 (intermediate_encoding): New function.
2307 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2309 * ada-lang.c (struct add_partial_datum): Update the comment for
2310 expand_partial_symbol_name.
2311 (ada_add_partial_symbol_completions): Rename to ...
2312 (ada_expand_partial_symbol_name): ... here, change return type, update
2313 function comment, call symbol_completion_match instead of
2314 symbol_completion_add.
2315 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2316 and ada_expand_partial_symbol_name.
2317 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2319 (dw2_map_symbol_names): Remove.
2320 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2321 * psymtab.c (map_symbol_names_psymtab): Remove.
2322 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2323 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2325 (psym_functions): Unlist map_symbol_names_psymtab.
2326 (map_partial_symbol_names): Rename to ...
2327 (expand_partial_symbol_names): ... here, change the FUN type, call
2328 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2329 * psymtab.h (map_partial_symbol_names): Rename to ...
2330 (expand_partial_symbol_names): ... here, change the FUN type.
2331 * symfile.h (struct quick_symbol_functions): Update the description of
2332 expand_symtabs_matching. Remove map_symbol_names.
2333 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2334 (struct add_name_data): Update the comment for
2335 expand_partial_symbol_name.
2336 (add_partial_symbol_name): Rename to ...
2337 (expand_partial_symbol_name): ... here. Replace
2338 completion_list_add_name call by strncmp.
2339 (default_make_symbol_completion_list_break_on): Use now
2340 expand_partial_symbol_names and expand_partial_symbol_name.
2341 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2343 2011-04-20 Tom Tromey <tromey@redhat.com>
2345 * dwarf2read.c (save_gdb_index_command): Replace format
2346 documentation with a pointer to the manual.
2348 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2350 * regcache.c: Include remote.h.
2351 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2352 (regcache_dump): Handle regcache_dump_remote.
2353 (maintenance_print_remote_registers): New function.
2354 (_initialize_regcache): Install "maint print remote-registers"
2356 * remote.c (map_regcache_remote_table): New function, factored out
2358 (init_remote_state): ... here.
2359 (remote_register_number_and_offset): New.
2360 * remote.h (remote_register_number_and_offset): Declare.
2362 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2364 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2365 null_ptid, assume and allow a NULL address space, instead of
2366 asking the target for the ptid's address space.
2367 * infrun.c (ptid_is_pid): Remove assertion.
2369 2011-04-19 Tom Tromey <tromey@redhat.com>
2371 * windows-tdep.c (windows_xfer_shared_library):
2372 * windows-nat.c (get_module_name, windows_make_so):
2373 * v850-tdep.c (v850_handle_pushm):
2374 * utils.c (null_cleanup, gdb_realpath):
2375 * ui-out.c (get_next_header):
2376 * tracepoint.c (clear_traceframe_info):
2377 * symtab.c (lookup_symtab):
2378 * serial.h (struct serial_ops):
2379 * mipsread.c (read_alphacoff_dynamic_symtab):
2380 * infcmd.c (print_return_value):
2381 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2382 * f-exp.y (parse_number):
2383 * exceptions.c (catch_exceptions):
2384 * dummy-frame.c (dummy_frame_this_id):
2385 * defs.h (struct cleanup):
2386 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2387 * arm-tdep.c (arm_push_dummy_call):
2388 * amd64-tdep.h (amd64_collect_xsave):
2389 * amd64-tdep.c (amd64_collect_xsave):
2390 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2391 * README (typing): Remove duplicate words.
2392 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2393 * infrun.c (siginfo_value_read): Fix typo.
2394 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2395 * top.c (source_line_number): Add comma.
2397 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2399 * thread.c (any_live_thread_of_process): Prioritize threads
2400 that are not executing.
2401 * gdbthread.h (any_live_thread_of_process): Update comment
2402 as per above change.
2404 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2406 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2407 (scan_xcoff_symtab): Likewise.
2409 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2411 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2414 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2415 Pedro Alves <pedro@codesourcery.com>
2417 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2418 variables to simplify code and avoid == operator at end of
2419 line as this is against GNU coding standards.
2421 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2423 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2424 lm_name to name_lm to avoid conflict with lm_name function.
2426 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2428 ARI fixes: Use only lowercase function name for static functions.
2429 * nto-tdep.c (LM_ADDR): Rename to...
2430 (lm_addr): New function name.
2431 (nto_relocate_section_addresses): Adapt to change above.
2432 * solib-sunos.c (LM_ADDR): Rename to...
2433 (lm_addr): New function name.
2434 (LM_NEXT): Rename to...
2435 (lm_next): New function name.
2436 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2437 function name changes above.
2438 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2439 (lm_addr_from_link_map): New function name.
2440 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2441 (has_lm_dynamic_from_link_map): New function name.
2442 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2443 (lm_dynamic_from_link_map): New function name.
2444 (LM_ADDR_CHECK): Rename to...
2445 (lm_addr_check): New function name.
2446 (LM_NEXT): Rename to...
2447 (lm_next): New function name.
2448 (LM_PREV): Rename to...
2449 (lm_prev): New function name.
2450 (LM_NAME): Rename to...
2451 (lm_name): New function name.
2452 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2453 (ignore_first_link_map_entry): New function name.
2454 (svr4_keep_data_in_core): Adapt to function name changes above.
2455 (svr4_current_sos): Likewise.
2456 (enable_break): Likewise.
2457 (svr4_relocate_section_addresses): Likewise.
2459 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2462 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2463 sprintf. Simplify code and avoid loosing memory.
2464 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2465 (call0_frame_cache): Remove && operator from end of line.
2467 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2469 Fix libraries displacement if they change whether they were prelinked.
2470 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2471 does not match. Comment why.
2473 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2475 * corelow.c: Include wrapper.h.
2476 (core_open): Call now gdb_target_find_new_threads.
2477 * wrapper.c: Include target.h.
2478 (gdb_target_find_new_threads): New.
2479 * wrapper.h (gdb_target_find_new_threads): New declaration.
2481 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2483 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2484 even if !TARGET_HAS_EXECUTION.
2486 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2488 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2489 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2490 bfd_get_synthetic_symtab.
2491 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2492 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2493 parameter parent, remove the call to add_separate_debug_objfile.
2494 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2495 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2496 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2497 parent, new comment for it, call add_separate_debug_objfile for it.
2498 (symbol_file_add_separate): Pass objfile as the parameter parent,
2499 remove the call to add_separate_debug_objfile.
2500 (symbol_file_add_from_bfd): New parameter parent, pass it.
2501 (symbol_file_add): Pass NULL to the new parameter parent.
2502 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2504 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2506 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2509 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2511 Fix Python access to inlined frames.
2512 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2513 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2515 2011-04-15 Tom Tromey <tromey@redhat.com>
2517 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2519 2011-04-15 Gary Benson <gbenson@redhat.com>
2521 * MAINTAINERS: Add myself to write-after-approval section.
2523 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2525 * remote-sim.c (sim_command_completer): New function.
2526 (_initialize_remote_sim): Set completer to sim_command_completer.
2528 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2530 * breakpoint.c (print_exception_catchpoint): Rename to ...
2531 (print_it_exception_catchpoint): ... this.
2532 (gnu_v3_exception_catchpoint_ops): Update with new name
2533 for print_it_exception_catchpoint.
2535 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2537 * MAINTAINERS: Add myself for write after approval privileges.
2539 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2541 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2543 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2545 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2547 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2549 * breakpoint.c (save_breakpoints): Verify whether
2550 breakpoint_ops.print_recreate is defined before calling it.
2552 2011-04-11 Gary Benson <gbenson@redhat.com>
2554 Fix failure with --enable-maintainer-mode.
2555 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2557 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2560 * symtab.c (search_symbols): Reorder the KIND description in the
2561 function comment. Remove the unused 4th element of types, types2,
2562 types3 and types4. New gdb_assert on KIND.
2563 (symtab_symbol_info): Remove the unused 4th element of classnames.
2564 New gdb_assert on KIND.
2565 * symtab.h (enum search_domain): New warning in the enum comment.
2566 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2569 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2571 Fix crash of gdb save-index on a STABS file.
2572 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2575 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2577 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2578 * dwarf2read.c: Include ctype.h.
2579 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2581 (dwarf2_add_field): Fix new_field->accessibility by calling
2582 dwarf2_default_access_attribute. Restructure setting accessibility
2584 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2585 is_private and is_protected by calling
2586 dwarf2_default_access_attribute.
2588 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2590 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2591 to the initialization.
2593 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2595 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2598 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2600 Remove support for old Cygwin 1.5 versions.
2601 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2602 function on old Cygwin version.
2603 * windows-nat.c: Remove cygwin version check and always define
2604 __USEWIDE for Cygwin compilation.
2606 2011-04-07 Yao Qi <yao@codesourcery.com>
2608 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2610 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2611 (arm_copy_svc): Remove parameters INSN and TO.
2612 (decode_svc_copro): Update caller.
2613 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2614 from function pointer `copy_svc_os'.
2616 2011-04-07 Yao Qi <yao@codesourcery.com>
2618 * arm-tdep.c (cleanup_branch): Set a correct return address in
2619 LR for ARM and Thumb.
2621 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2624 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2625 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2626 in the function comment, a new note on values compatibility.
2627 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2628 * symtab.h (SYMBOL_HASH_NEXT): New.
2630 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2632 * ppc-linux-nat.c (check_condition): Add len output parameter.
2633 Set it based on the memory region referenced in the condition
2634 expression. Update all callers.
2636 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2638 Fix crash regression on systems featuring .gdb_index.
2639 * objfiles.c (free_objfile): Move the
2640 forget_cached_source_info_for_objfile call earlier. Comment it.
2641 Extend the comment for objfile_free_data.
2643 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2645 Fix regression of displaying the debug format.
2646 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2649 2011-04-04 Tom Tromey <tromey@redhat.com>
2651 * cli/cli-interp.c (struct captured_execute_command_args):
2653 (do_captured_execute_command): Remove.
2654 (safe_execute_command): Use TRY_CATCH.
2655 * cli/cli-script.c (struct wrapped_read_command_file_args):
2657 (wrapped_read_command_file): Remove.
2658 (script_from_file): Use TRY_CATCH.
2659 * exceptions.c (catch_exception): Remove.
2660 * exceptions.h (catch_exception): Remove.
2661 (deprecated_throw_reason): Update comment.
2662 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2663 argument to 'context'.
2664 (mi_execute_command): Use TRY_CATCH.
2665 * remote.c (struct start_remote_args): Remove.
2666 (remote_start_remote): Update; change arguments.
2667 (remote_open_1): Use TRY_CATCH.
2669 2011-04-04 Tom Tromey <tromey@redhat.com>
2671 * tracepoint.c (scope_info): Update.
2672 * symtab.c (decode_line_spec): Update.
2673 * python/python.c (gdbpy_decode_line): Update.
2674 * linespec.h (decode_line_1): Update.
2675 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2676 (decode_compound, find_method, symtab_from_filename)
2677 (decode_variable): Likewise.
2678 * cli/cli-cmds.c (edit_command): Update.
2679 (list_command): Update.
2680 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2682 (create_breakpoint): Update.
2683 (until_break_command): Update.
2684 (addr_string_to_sals): Update.
2685 (decode_line_spec_1): Update.
2687 2011-04-04 Tom Tromey <tromey@redhat.com>
2689 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2690 (do_captured_parse_breakpoint): Remove.
2691 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2692 Use TRY_CATCH directly.
2694 2011-04-04 Tom Tromey <tromey@redhat.com>
2696 * symtab.h (free_symtab): Remove.
2697 (forget_cached_source_info_for_objfile): Declare.
2698 * symmisc.c (free_symtab): Remove.
2699 * source.c (forget_cached_source_info_for_objfile): New function.
2700 (forget_cached_source_info): Use it.
2701 * objfiles.c (free_objfile): Simplify check before calling
2702 clear_current_source_symtab_and_line. Call
2703 forget_cached_source_info_for_objfile.
2705 2011-04-04 Tom Tromey <tromey@redhat.com>
2707 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2708 (new_symtab): Don't set `free_code' on symtab.
2709 (new_linetable): Properly handle size==0.
2710 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2711 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2713 * jv-lang.c (struct jv_per_objfile_data): New.
2714 (jv_per_objfile_free): Free the data.
2715 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2716 (get_java_class_symtab): Set the `dict' field on the
2717 jv_per_objfile_data.
2718 (free_class_block): Remove.
2719 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2722 2011-04-04 Tom Tromey <tromey@redhat.com>
2724 * symfile.c (reread_symbols): Update.
2725 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2727 * objfiles.c (allocate_objfile): Update.
2728 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2730 * cp-namespace.c (lookup_symbol_file): Don't call
2731 lookup_possible_namespace_symbol.
2732 (initialize_namespace_symtab, get_possible_namespace_block)
2733 (free_namespace_block, cp_check_possible_namespace_symbols)
2734 (check_possible_namespace_symbols_loop)
2735 (check_one_possible_namespace_symbol)
2736 (lookup_possible_namespace_symbol): Remove.
2737 (maintenance_cplus_namespace): Replace with notice.
2738 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2740 2011-04-04 Tom Tromey <tromey@redhat.com>
2742 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2743 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2744 * symmisc.c (free_symtab): Don't free debugformat.
2745 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2746 (record_debugformat, record_producer): Document.
2747 * buildsym.c (end_symtab): Don't save debugformat and producer
2749 (end_symtab): Don't free debugformat and producer fields.
2750 (record_debugformat): Don't call xstrdup.
2751 (record_producer): Likewise.
2753 2011-04-04 Tom Tromey <tromey@redhat.com>
2755 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2756 (source_line_charpos, source_charpos_line): Remove.
2758 2011-04-04 Tom Tromey <tromey@redhat.com>
2760 * symtab.h (domain_enum): Split in two...
2761 (enum search_domain): New.
2762 (search_symbols): Update.
2763 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2764 redundant declarations.
2765 (search_symbols): Change 'kind' argument to search_domain.
2767 (print_symbol_info): Likewise.
2768 (symtab_symbol_info): Likewise.
2769 * symfile.h (struct quick_symbol_functions)
2770 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2771 <expand_symtabs_matching>: Likewise.
2772 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2773 (expand_symtabs_matching_via_partial): Update.
2774 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2775 (dw2_expand_symtabs_for_function): Update.
2776 * block.h: Moved anonymous enum...
2777 * defs.h (enum block_enum): ... here. Now named.
2779 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2781 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2782 * version.in: Bump version to 7.3.50.20110403-cvs.
2784 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2786 * NEWS: Create a new section for the next release branch.
2787 Rename the section of the current branch, now that it has
2790 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2792 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2793 for "fpscr" in target description.
2795 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2797 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2798 initialize it. Delay HASH initialization. Strip the part after open
2799 parenthesis for languages with qualifiers. Call do_cleanups.
2801 2011-04-01 Tom Tromey <tromey@redhat.com>
2803 * utils.c (report_command_stats): Don't print `-' for negative
2806 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2808 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2809 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2812 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2814 * breakpoint.h (bpdisp_text): Add declaration.
2815 * breakpoint.c (bpdisp_text): Make non-static.
2816 * ada-lang.c: #include "mi/mi-common.h".
2817 (print_it_exception): Rewrite to improve GDB/MI output.
2819 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2821 * arm-tdep.h (struct address_space): Add forward declaration.
2823 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2825 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2826 * arm-tdep.c (arm_override_mode): New global.
2827 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2828 execution mode heuristics.
2829 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2830 second single-step breakpoint if needed, using
2831 arm_insert_single_step_breakpoint.
2832 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2833 ARM execution mode, do not call thumb_get_next_pc_raw.
2834 (arm_get_next_pc): Encode execution mode in return value. Call
2835 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2836 (arm_insert_single_step_breakpoint): New function.
2837 (arm_software_single_step): Call it.
2838 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2839 argument to return execution mode of sigreturn target.
2840 (arm_linux_syscall_next_pc): Use it.
2841 (arm_linux_copy_svc): Update call.
2842 (arm_linux_software_single_step): Call
2843 arm_insert_single_step_breakpoint.
2845 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2847 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2850 2011-03-31 Tom Tromey <tromey@redhat.com>
2852 * varobj.c (update_dynamic_varobj_children): Properly handle
2853 errors from iterator.
2855 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2857 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2858 struct linkage name twice.
2860 2011-03-31 Tom Tromey <tromey@redhat.com>
2862 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2863 missing ">" to message.
2865 2011-03-31 Tom Tromey <tromey@redhat.com>
2867 * varobj.c (instantiate_pretty_printer): Remove duplicate
2870 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
2872 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2873 if neither saved value nor register available (e.g. signal frame).
2875 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2877 * macroexp.c (expand): Avoid uninitialized variable
2880 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2882 * breakpoint.c (break_range_command): Fix typo in comment.
2884 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2885 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2887 Implement support for PowerPC BookE ranged breakpoints.
2888 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2889 * breakpoint.h (struct bp_target_info) <length>: New member
2891 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2892 instead of struct breakpoint as argument, and also add ASPACE
2893 and BP_ADDR arguments. Update all callers.
2894 (struct breakpoint_ops) <print_one_detail>: New method.
2895 (struct breakpoint) <addr_string_range_end>: New member variable.
2896 * breakpoint.c (breakpoint_location_address_match): Add function
2898 (insert_bp_location): Set bl->target_info.length.
2899 (breakpoint_here_p): Call breakpoint_location_address_match.
2900 (moribund_breakpoint_here_p): Likewise.
2901 (regular_breakpoint_inserted_here_p): Likewise.
2902 (breakpoint_thread_match): Likewise.
2903 (bpstat_stop_status): Likewise.
2904 (bpstat_check_location): Move call to
2905 breakpoint_ops.breakpoint_hit to the top.
2906 (print_one_breakpoint_location): Call
2907 breakpoint_ops.print_one_detail if available.
2908 (breakpoint_address_match_range): New function.
2909 (breakpoint_location_address_match): Likewise.
2910 (breakpoint_locations_match): Compare the length field of the
2912 (hw_breakpoint_used_count): Count resources used by all locations
2913 in a breakpoint, and use breakpoint_ops.resources_needed if
2915 (breakpoint_hit_ranged_breakpoint): New function.
2916 (resources_needed_ranged_breakpoint): Likewise.
2917 (print_it_ranged_breakpoint): Likewise.
2918 (print_one_ranged_breakpoint): Likewise.
2919 (print_one_detail_ranged_breakpoint): Likewise.
2920 (print_mention_ranged_breakpoint): Likewise.
2921 (print_recreate_ranged_breakpoint): Likewise.
2922 (ranged_breakpoint_ops): New structure.
2923 (find_breakpoint_range_end): New function.
2924 (break_range_command): Likewise.
2925 (delete_breakpoint): Free addr_string_range_end.
2926 (update_breakpoint_locations): Add SALS_END argument. Update
2927 all callers. Calculate breakpoint length if a non-zero SALS_END
2928 is given. Call breakpoint_locations_match instead of
2929 breakpoint_address_match.
2930 (reset_breakpoint): Find SaL of the end of the range if B is a
2932 (_initialize_breakpoint): Register break-range command.
2933 * defs.h (print_core_address): Add function prototype.
2934 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2936 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2937 (ppc_linux_remove_hw_breakpoint): Likewise.
2938 (_initialize_ppc_linux_nat): Initialize
2939 to_ranged_break_num_registers.
2940 * target.c (update_current_target): Add comment about
2941 to_ranged_break_num_registers.
2942 (target_ranged_break_num_registers): New function.
2943 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2945 (target_ranged_break_num_registers): Add function prototype.
2946 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2947 * utils.c (print_core_address): ... here.
2949 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
2951 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2952 variable compiler warning.
2954 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2956 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2958 (re_set_breakpoint): ... to here ...
2959 (addr_string_to_sals): ... and here.
2961 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2963 * Makefile.in (SFILES): Add missing C sources.
2964 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2965 Add missing headers.
2967 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2969 * .gitignore: New file.
2971 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2973 * NEWS: Mention new cfi device simulation.
2975 2011-03-29 Tom Tromey <tromey@redhat.com>
2977 * dwarf2read.c (fixup_partial_die): Handle linkage name on
2978 otherwise anonymous types.
2979 (dwarf2_name): Likewise.
2980 * valops.c (value_struct_elt_for_reference): Refine artificial
2981 type logic. Call error if j==-1.
2983 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
2985 Fix false GCC warning.
2986 * infcall.c (find_function_addr): Initialize funaddr.
2988 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2990 Fix mingw compilation with --enable-targets=all.
2991 * remote-mips.c (gdb_usleep.h): Include header.
2992 (mips_enter_debug): Use gdb_usleep instead of sleep.
2994 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2996 Support resolution of STT_GNU_IFUNC via breakpoints.
2997 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
2998 bp_gnu_ifunc_resolver_return.
2999 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
3000 the loop. Support bp_gnu_ifunc_resolver and
3001 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
3002 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
3004 (bptype_string, print_one_breakpoint_location): Support
3005 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
3006 (user_settable_breakpoint): Return true also for
3007 bp_gnu_ifunc_resolver.
3008 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
3009 bp_gnu_ifunc_resolver_return.
3010 (set_breakpoint_location_function): New parameter explicit_loc,
3011 describe it. Call find_pc_partial_function_gnu_ifunc with new
3012 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
3013 EXPLICIT_LOC is not set.
3014 (set_raw_breakpoint): Set EXPLICIT_LOC for
3015 set_breakpoint_location_function.
3016 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
3017 set_breakpoint_location_function.
3018 (mention): Support bp_gnu_ifunc_resolver and
3019 bp_gnu_ifunc_resolver_return.
3020 (add_location_to_breakpoint): Set EXPLICIT_LOC for
3021 set_breakpoint_location_function.
3022 (update_breakpoint_locations): Remove static.
3023 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
3024 bp_gnu_ifunc_resolver_return.
3025 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
3026 bp_gnu_ifunc_resolver_return.
3027 (update_breakpoint_locations): New declaration.
3028 * elfread.c: Include gdbthread.h and regcache.h.
3029 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
3031 (elf_gnu_ifunc_fns): Install them.
3032 * minsyms.c (stub_gnu_ifunc_resolver_stop)
3033 (stub_gnu_ifunc_resolver_return_stop): New functions.
3034 (stub_gnu_ifunc_fns): Install them.
3035 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
3036 and gnu_ifunc_resolver_return_stop.
3037 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
3039 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3041 STT_GNU_IFUNC reader implementation.
3042 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
3043 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
3044 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
3045 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
3046 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
3047 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
3048 (elf_gnu_ifunc_resolve_addr): New.
3049 (elf_symfile_read): Call elf_rel_plt_read.
3050 (elf_gnu_ifunc_fns): New.
3051 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
3052 Install elf_gnu_ifunc_fns.
3053 * infcall.c (find_function_return_type): New function.
3054 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3055 * minsyms.c (stub_gnu_ifunc_resolve_addr)
3056 (stub_gnu_ifunc_resolve_name): New functions.
3057 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3058 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3059 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3061 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3063 Code cleanup for later STT_GNU_IFUNC support.
3064 * infcall.c (find_function_addr): Remove variable code, use explicit
3065 dereferences for it. Move VALUE_TYPE initialization later.
3067 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3069 GDB find_pc_partial_function support for STT_GNU_IFUNC.
3070 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3071 (clear_pc_function_cache): Clear it.
3072 (find_pc_partial_function): Rename to ...
3073 (find_pc_partial_function_gnu_ifunc): ... this function. New
3074 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
3075 (find_pc_partial_function): New wrapper for this function.
3076 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3078 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3080 GDB internal type support for STT_GNU_IFUNC.
3081 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3082 (elf_symtab_read): Set mst_text_gnu_ifunc for
3083 BSF_GNU_INDIRECT_FUNCTION.
3084 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3085 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3086 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3087 nodebug_got_plt_symbol.
3088 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3089 (TYPE_GNU_IFUNC): New.
3090 (struct main_type): New field flag_gnu_ifunc.
3091 (struct builtin_type): New field builtin_func_func.
3092 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3093 nodebug_got_plt_symbol.
3094 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3095 (in_gnu_ifunc_stub): New.
3096 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3098 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3099 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3100 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3102 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3103 * symtab.c (search_symbols): Likewise.
3104 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3105 and mst_slot_got_plt.
3106 (in_gnu_ifunc_stub): New declaration.
3108 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3110 Support a ring of related breakpoints.
3111 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3112 other functions, add gdb_assert.
3113 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3114 watchpoint_del_at_next_stop.
3115 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3116 (bpstat_stop_status): Handle ring in related_breakpoint.
3117 (set_raw_breakpoint_without_location): Initialize ring in
3119 (delete_breakpoint): Handle ring in related_breakpoint, use
3120 watchpoint_del_at_next_stop.
3121 (map_breakpoint_numbers): Handle ring in related_breakpoint.
3123 2011-03-28 Tom Tromey <tromey@redhat.com>
3126 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3127 with `language_minimal'.
3129 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
3131 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3132 instead of checking for STT_ARM_TFUNC symbol type.
3134 2011-03-25 Tom Tromey <tromey@redhat.com>
3136 * linespec.c (symbol_found): Restore line-based result for
3137 non-LOC_LABEL symbols.
3139 2011-03-25 Kai Tietz <ktietz@redhat.com>
3141 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3142 instead of strcmp for comparison.
3143 (tui_source_is_displayed): Likewise.
3144 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3146 2011-03-24 Mark Wielaard <mjw@redhat.com>
3148 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3150 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3151 (find_partial_die_in_comp_unit): Likewise in comment.
3152 (read_attribute_value): Likewise.
3153 (lookup_die_type): Likewise.
3154 (dwarf_form_name): Likewise.
3155 (dump_die_shallow): Likewise.
3156 (follow_die_ref_or_sig): Likewise.
3158 2011-03-24 Tom Tromey <tromey@redhat.com>
3160 PR breakpoints/11816:
3161 * linespec.c (decode_line_1): Parse `function:label' linespecs.
3162 (decode_compound): Update.
3163 (find_function_symbol): New function.
3164 (decode_dollar): Update.
3165 (decode_label): Add 'function_symbol' parameter. Handle
3166 function-relative labels.
3167 (decode_variable): Update.
3168 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
3169 not its line. Set `special_display' and canonical name for
3172 2011-03-24 Tom Tromey <tromey@redhat.com>
3174 * linespec.h (struct linespec_result) <special_display>: New
3176 * breakpoint.h (struct breakpoint) <display_canonical>: New
3178 * breakpoint.c (print_breakpoint_location): Respect
3180 (create_breakpoint_sal): Add 'display_canonical' parameter.
3181 (create_breakpoints_sal): Update.
3182 (create_breakpoint): Update.
3184 2011-03-24 Tom Tromey <tromey@redhat.com>
3186 * symtab.c (decode_line_spec): Update.
3187 * linespec.c (build_canonical_line_spec): Change type of
3189 (decode_line_2, decode_line_1, decode_objc, decode_compound)
3190 (find_method, decode_all_digits, decode_dollar, decode_label)
3191 (symbol_found): Likewise.
3192 (init_linespec_result): New function.
3193 * breakpoint.c (struct captured_parse_breakpoint_args)
3194 <canonical_p>: New field, replaces addr_string_p.
3195 (create_breakpoints_sal): Add 'canonical' parameter, replacing
3197 (parse_breakpoint_sals): Likewise.
3198 (do_captured_parse_breakpoint): Update.
3199 (create_breakpoint): Use struct linespec_result.
3200 (until_break_command): Update.
3201 (breakpoint_re_set_one): Update.
3202 (decode_line_spec_1): Update.
3203 * linespec.h (struct linespec_result): New.
3204 (init_linespec_result): Declare.
3206 2011-03-23 Pedro Alves <pedro@codesourcery.com>
3208 * regcache.c (regcache_raw_read): If the target didn't supply a
3209 given raw register, mark it as unavailable.
3211 2011-03-23 Kai Tietz <ktietz@redhat.com>
3213 * breakpoint.c (clear_command): Use filename_cmp
3214 instead of strcmp for comparison.
3215 * buildsym.c (watch_main_source_file_lossage): Likewise.
3216 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3217 checking just for slash.
3218 * dbxread.c (read_dbx_symtab): Use lbasename instead of
3219 strrchr and filename_cmp instead of strcmp for filenames.
3220 (add_old_header_file): Use filename_cmp
3221 instead of strcmp for comparison.
3222 * exec.c (exec_set_section_address): Likewise.
3223 * macrotab.c (macro_lookup_inclusion): Likewise.
3224 (macro_lookup_inclusion): Likewise.
3225 * elfread.c (_initialize_elfread): Likewise.
3226 (elfstab_offset_sections): Likewise.
3227 (elfstab_offset_sections): Use lbasename instead of
3229 * mdebugread.c (parse_partial_symbols): Likewise.
3230 (arse_partial_symbols): Use filename_(n)cmp instead of
3231 str(n)cmp for comparison.
3232 * minsyms.c (lookup_minimal_symbol): Likewise.
3233 * psymtab.c (read_psymtabs_with_filename): Likewise.
3234 * solib.c (solib_read_symbols): Likewise.
3235 (reload_shared_libraries_1): Likewise.
3236 * symmisc.c (maintenance_print_symbols): Likewise.
3237 * symfile.c (separate_debug_file_exists): Likewise.
3238 (reread_symbols): Likewise.
3239 (find_separate_debug_file_by_debuglink): Likewise.
3240 * remote-fileio.c (remote_fileio_func_rename): Likewise.
3241 * source.c (add_path): Likewise.
3242 * symtab.c (filename_seen): Likewise.
3243 (file_matches): Likewise.
3244 (print_symbol_info): Likewise.
3245 (maybe_add_partial_symtab_filename): Likewise.
3246 (make_source_files_completion_list): Likewise.
3247 * xml-syscall.c (init_sysinfo): Likewise.
3248 * windows-nat.c (_initialize_check_for_gdb_ini): Use
3249 IS_DIR_SEPARATOR for checking for trailing path separator.
3251 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3253 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
3254 label abort_expression.
3255 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3256 DWARF_VALUE_OPTIMIZED_OUT.
3258 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3261 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3262 to linkage_name. Invert its value. Update the function comment.
3263 (c_type_print_varspec_suffix): Invert it at the caller.
3264 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3266 2011-03-22 Pedro Alves <pedro@codesourcery.com>
3268 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3269 errors when reading the `stop_pc'.
3270 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3273 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3275 * NEWS: Document gdb.Write stream keyword.
3277 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3280 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3281 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3282 (dwarf2_add_field): Fix new_field->accessibility for
3283 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3285 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3289 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3290 other error classes. Do not print stack trace.
3292 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3294 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3295 (dwarf2_add_field): Fix new_field->accessibility for
3296 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3298 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
3300 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3301 encountering a load via a non-SP register.
3303 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3305 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3306 field in returned unwinder.
3308 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3310 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3312 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3314 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3317 2012-03-18 Pedro Alves <pedro@codesourcery.com>
3319 * frame.c (frame_unwind_register): Throw an error if unwinding the
3321 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3322 an unwind stop reason.
3323 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3324 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3325 UNWIND_UNAVAILABLE>: New.
3326 * inline-frame.c (inline_frame_unwind): Install
3327 default_frame_unwind_stop_reason.
3328 * frame-unwind.c: Include "exceptions.h".
3329 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3330 (default_frame_unwind_stop_reason): New.
3331 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3332 (default_frame_unwind_stop_reason): Declare.
3333 (struct frame_unwind) <stop_reason>: New function pointer.
3335 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3336 * dwarf2-frame.c: Include exceptions.h.
3337 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3338 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3339 computing the CFA. If such an error was thrown, set
3340 unavailable_retaddr.
3341 (dwarf2_frame_unwind_stop_reason): New.
3342 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3344 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3345 (dwarf2_signal_frame_unwind): Ditto.
3347 * amd64-tdep.c: Include "exceptions.h".
3348 (struct amd64_frame_cache): New field "base_p".
3349 (amd64_init_frame_cache): Clear it.
3350 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3351 Avoid reading registers with functions that throw if the register
3352 is not necessary to compute the frame base.
3353 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3354 swallowing NOT_AVAILABLE_ERROR.
3355 (amd64_frame_unwind_stop_reason): New.
3356 (amd64_frame_this_id): Don't build a frame id if the frame base
3358 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3359 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3360 base_p if the frame base was computable.
3361 (amd64_sigtramp_frame_unwind_stop_reason): New.
3362 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3363 frame base was unavailable.
3364 (amd64_sigtramp_frame_unwind): Install
3365 amd64_sigtramp_frame_unwind_stop_reason.
3366 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3367 base_p if the frame base was computable.
3368 (amd64_epilogue_frame_unwind_stop_reason): New.
3369 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3370 frame base was unavailable.
3371 (amd64_epilogue_frame_unwind): Install
3372 amd64_epilogue_frame_unwind_stop_reason.
3373 * i386-tdep.c: Include "exceptions.h".
3374 (struct i386_frame_cache): New field "base_p".
3375 (i386_init_frame_cache): Clear it.
3376 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3377 Avoid reading registers with functions that throw if the register
3378 is not necessary to compute the frame base.
3379 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3380 swallowing NOT_AVAILABLE_ERROR.
3381 (i386_frame_unwind_stop_reason): New.
3382 (i386_frame_this_id): Don't build a frame id if the frame base was
3384 (i386_frame_prev_register): Handle unavailable SP.
3385 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3386 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3387 base_p if the frame base was computable.
3388 (i386_epilogue_frame_unwind_stop_reason): New.
3389 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3390 base was unavailable.
3391 (i386_epilogue_frame_unwind): Install
3392 i386_epilogue_frame_unwind_stop_reason.
3393 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3394 base_p if the frame base was computable.
3395 (i386_sigtramp_frame_unwind_stop_reason): New.
3396 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3397 base was unavailable.
3398 (i386_sigtramp_frame_unwind): Install
3399 i386_sigtramp_frame_unwind_stop_reason.
3400 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3401 type's size, not the register's.
3402 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3404 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3405 default_frame_unwind_stop_reason.
3406 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3407 (alpha_heuristic_frame_unwind): Ditto.
3408 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3409 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3410 * avr-tdep.c (avr_frame_unwind): Ditto.
3411 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3413 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3414 * frv-tdep.c (frv_frame_unwind): Ditto.
3415 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3416 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3417 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3418 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3419 (hppa_stub_frame_unwind): Ditto.
3420 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3421 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3422 (ia64_libunwind_frame_unwind)
3423 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3424 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3425 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3426 * m32c-tdep.c (m32c_unwind): Ditto.
3427 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3428 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3429 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3430 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3431 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3432 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3433 * mep-tdep.c (mep_frame_unwind): Ditto.
3434 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3435 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3436 (mips_stub_frame_unwind): Ditto.
3437 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3438 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3439 * mt-tdep.c (mt_frame_unwind): Ditto.
3440 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3441 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3442 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3443 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3444 (s390_sigtramp_frame_unwind): Ditto.
3445 * score-tdep.c (score_prologue_unwind): Ditto.
3446 * sh-tdep.c (sh_frame_unwind): Ditto.
3447 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3448 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3449 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3450 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3451 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3452 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3453 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3454 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3455 (sparc64obsd_trapframe_unwind): Ditto.
3456 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3457 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3458 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3459 * v850-tdep.c (v850_frame_unwind): Ditto.
3460 * vax-tdep.c (vax_frame_unwind): Ditto.
3461 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3462 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3463 * xtensa-tdep.c (xtensa_unwind): Ditto.
3465 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3467 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3468 there's always a frame. Use get_frame_pc_if_available instead of
3469 get_frame_pc, and if there's no PC available, don't look up a
3472 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3474 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3477 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3479 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3482 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3484 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3485 * frame.c (frame_unwind_caller_pc_if_available): New.
3486 * stack.c (frame_info): Handle unavailable PC.
3488 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3490 * frame.c (frame_unwind_pc): Rename to ...
3491 (frame_unwind_pc_if_available): ... this. New `pc' output
3492 parameter. Change return type to int. Gracefully handle
3493 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3494 happened, or 1 otherwise.
3495 (frame_unwind_pc): Reimplement on top of
3496 frame_unwind_pc_if_available.
3497 (get_frame_func): Rename to ...
3498 (get_frame_func_if_available): New `pc' output parameter. Change
3499 return type to int. Gracefully handle the PC not being available.
3500 (get_frame_func): Reimplement on top of
3501 get_frame_func_if_available.
3502 (select_frame): Handle the PC being unavailable.
3503 (get_prev_frame): Handle the PC being unavailable.
3504 (get_frame_pc_if_available): New.
3505 (get_frame_address_in_block_if_available): New.
3506 (find_frame_sal): Handle the frame PC not being available.
3507 * frame.h (get_frame_pc_if_available): Declare.
3508 (get_frame_address_in_block_if_available): Declare.
3509 (get_frame_func_if_available): Declare.
3510 * stack.c (print_frame_info): Handle the PC being unavailable.
3511 (find_frame_funname): Ditto.
3512 (print_frame): Handle the PC being unavailable.
3513 (get_frame_language): Ditto.
3514 * blockframe.c (get_frame_block): Ditto.
3515 * macroscope.c (default_macro_scope): Ditto.
3516 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3518 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3520 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3521 NOT_AVAILABLE_ERROR when evaluating the location expression.
3523 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3525 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3526 returning that the register piece is unavailable/optimized out.
3527 (write_pieced_value): Handle get_frame_register_bytes returning
3528 that the register piece is unavailable/optimized out when doing a
3529 read-modify write of a bitfield.
3530 * findvar.c (value_from_register): Handle get_frame_register_bytes
3531 returning that the register piece is unavailable/optimized out.
3532 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3533 and `unavailablep'. Throw error on bad debug info. Use
3534 frame_register instead of frame_register_read, to fill in the new
3536 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3538 * valops.c: (value_assign): Adjust, and handle
3539 get_frame_register_bytes failing.
3540 * spu-tdep.c: Include exceptions.h.
3541 (spu_software_single_step): Adjust, and handle
3542 get_frame_register_bytes failing.
3543 (spu_get_longjmp_target): Ditto.
3544 * gdbarch.sh (register_to_value): Change to return int. New
3545 parameters `optimizedp' and `unavailablep'.
3546 * gdbarch.h, gdbarch.c: Regenerate.
3547 * i386-tdep.c (i386_register_to_value): Adjust to new
3548 gdbarch_register_to_value interface.
3549 * i387-tdep.c (i387_register_to_value): Ditto.
3550 * i387-tdep.h (i387_register_to_value): Ditto.
3551 * alpha-tdep.c (alpha_register_to_value): Ditto.
3552 * ia64-tdep.c (ia64_register_to_value): Ditto.
3553 * m68k-tdep.c (m68k_register_to_value): Ditto.
3554 * mips-tdep.c (mips_register_to_value): Ditto.
3555 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3557 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3559 * findvar.c (value_of_register): Mark the value as unavailable, if
3560 the register is unavailable.
3561 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3562 (frame_register): New `unavailablep' parameter.
3563 (frame_register_read): Update comment.
3564 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3565 Set it if the register is unavailable. If the register is
3566 unavailable, clear the output buffer.
3567 (frame_register): New `unavailablep' parameter. Pass it down.
3568 (frame_unwind_register): Adjust.
3569 (put_frame_register): Adjust.
3570 (frame_register_read): Adjust. Also return false if the register
3572 (frame_register_unwind_location): Adjust.
3573 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3574 is unavailable, mark the value accordingly.
3575 * stack.c (frame_info): Handle unavailable registers.
3577 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3579 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3580 simplify, using regcache_cooked_read.
3582 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3584 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3585 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3586 (regcache_raw_read_unsigned, regcache_raw_read_part)
3587 (regcache_cooked_read, regcache_cooked_read_signed)
3588 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3589 (regcache_cooked_read_ftype): Change return to enum
3591 * regcache.c: Include exceptions.h
3592 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3593 (do_cooked_read): Change return to enum register_status. Always
3594 forward to regcache_cooked_read.
3595 (regcache_raw_read): Change return to enum register_status. If
3596 the register is not REG_VALID, memset the buffer. Return the
3598 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3599 return the register's status.
3600 (regcache_raw_read_unsigned): Ditto.
3601 (regcache_cooked_read): Change return to enum register_status.
3602 Assert that with read-only regcaches, the register's status must
3603 be known. If the regcache is read-only, and the register is not
3604 REG_VALID, memset the buffer. Return the register's status.
3605 (regcache_cooked_read_signed): Change return to enum
3606 register_status. Handle non-REG_VALID registers and return the
3608 (regcache_cooked_read_unsigned): Change return to enum
3609 register_status. Handle non-REG_VALID registers and return the
3611 (regcache_xfer_part, regcache_raw_read_part)
3612 (regcache_cooked_read_part): Change return to enum
3613 register_status. Return the register's status.
3614 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3616 (regcache_dump): Handle unavailable cooked registers.
3617 * frame.c (do_frame_register_read): Adjust interface to match
3618 regcache_cooked_read_ftype.
3619 * gdbarch.sh (pseudo_register_read): Change return to enum
3621 * gdbarch.h, gdbarch.c: Regenerate.
3623 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3625 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3626 register_status. If reading a raw register indicates the raw
3627 register is not valid, return the raw register's status,
3628 otherwise, return REG_VALID.
3629 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3630 register_status. Handle non-REG_VALID raw registers and return
3631 the register's status.
3632 * arm-tdep.c (arm_neon_quad_read)
3633 (arm_pseudo_read): Change return to enum register_status. Handle
3634 non-REG_VALID raw registers and return the register's status.
3635 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3636 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3637 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3638 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3639 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3641 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3642 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3643 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3644 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3645 (m32c_pseudo_register_read): Change return to enum
3646 register_status. Adjust.
3647 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3648 enum register_status. Return the register's status.
3649 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3650 register_status. Return the register's status.
3651 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3652 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3653 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3654 * rs6000-tdep.c (move_ev_register_func): New typedef.
3655 (e500_move_ev_register): Use it. Change return to enum
3656 register_status. Return the register's status.
3657 (do_regcache_raw_read): New function.
3658 (do_regcache_raw_write): New function.
3659 (e500_pseudo_register_read): Change return to enum
3660 register_status. Return the register's status. Use
3661 do_regcache_raw_read.
3662 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3663 (dfp_pseudo_register_read): Change return to enum register_status.
3664 Return the register's status.
3665 (vsx_pseudo_register_read): Ditto.
3666 (efpr_pseudo_register_read): Ditto.
3667 (rs6000_pseudo_register_read): Ditto.
3668 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3669 register_status. Return the register's status.
3670 * sh64-tdep.c (pseudo_register_read_portions): New function.
3671 (sh64_pseudo_register_read): Change return to enum
3672 register_status. Use pseudo_register_read_portions. Return the
3674 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3675 register_status. Return the register's status.
3676 * sh-tdep.c (pseudo_register_read_portions): New function.
3677 (sh_pseudo_register_read): Change return to enum register_status.
3678 Use pseudo_register_read_portions. Return the register's status.
3679 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3680 enum register_status. Return the register's status.
3681 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3682 * spu-tdep.c (spu_pseudo_register_read_spu)
3683 (spu_pseudo_register_read): Ditto.
3684 * xtensa-tdep.c (xtensa_register_read_masked)
3685 (xtensa_pseudo_register_read): Ditto.
3686 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3688 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3690 * python/py-value.c (valpy_getitem): Fix formatting of error function
3693 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3695 ARI fixes: Add missing internationalization markups throughout
3697 * darwin-nat-info.c: Ditto.
3700 * mi/mi-main.c: Ditto.
3702 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3704 ARI fixes: Add missing internationalization markups throughout
3707 * cp-name-parser.y: Ditto.
3710 * objc-exp.y: Ditto.
3713 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3715 ARI fixes: Messages should have no trailing new lines.
3716 * darwin-nat.c (mach_check_error): Remove trailing new line from
3717 warning function call message.
3718 * record.c (bfdcore_read): Idem for error call.
3720 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3722 * common/signals.c (target_signal_from_host): Add _ markup to error
3723 function call message.
3724 (target_signal_to_host): Add _ markup and remove trailing new line
3725 from warning call message.
3726 (target_signal_from_command): Add _ markup to error function call
3729 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3733 * python/python.c (gdbpy_write): Accept a stream argument and
3734 operate to the appropriate stream.
3735 (gdbpy_flush): Likewise.
3736 (_initialize_python): Add stream constants.
3737 (finish_python_initialization): Add GdbOutputErrorFile class.
3739 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3741 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3743 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3745 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3746 to store_signed_integer. Add debug message when relocating CALL
3747 instructions. Fix formatting of debug message.
3748 * i386-tdep.c (i386_relocate_instruction): Ditto.
3750 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3752 * target.h (struct target_ops): Remove to_lookup_symbol field.
3753 (target_lookup_symbol): Delete macro.
3754 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3755 (update_current_target, setup_target_debug): Remove handling
3756 of to_lookup_symbol target_ops field.
3757 * ada-tasks.c (get_known_tasks_addr): Remove use of
3758 target_lookup_symbol.
3759 * coffread.c (coff_symtab_read): Likewise.
3760 * dbxread.c (read_dbx_symtab): Ditto.
3762 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3765 * configure.ac: Add getthrds declaration check.
3766 * configure, config.in: Regenerate.
3767 * aix-thread.c (getthrds): Declare only if not already declared
3768 in procinfo.h. More declaration out of get_signaled_thread to
3771 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3773 * python/py-symtab.c: Populate symtab_object_methods,
3775 (stpy_is_valid): New function.
3776 (salpy_is_valid): Ditto.
3777 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3778 (sympy_is_valid): New function.
3779 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3780 (objfpy_is_valid): New function.
3781 * python/py-inferior.c: Populate inferior_object_methods.
3782 (infpy_is_valid): New function.
3783 * python/py-infthread.c: Populate thread_object_methods.
3784 (thpy_is_valid): New function.
3785 * python/py-block.c: Declare block_object_methods. Populate. Declare
3786 block_iterator_object_methods. Populate.
3787 (blpy_is_valid): New function.
3788 (blpy_iter_is_valid): Ditto.
3790 2011-03-16 Keith Seitz <keiths@redhat.com>
3792 * linespec.c (find_methods): Canonicalize NAME before looking
3794 (name_end): New function.
3795 (keep_name_info): New function.
3796 (decode_line_1): Use keep_name_info.
3797 (decode_compound): Likewise.
3798 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3799 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3802 * linespec.c (locate_first_half): Keep overload information, too.
3803 (decode_compound): Use a string to represent break characters
3805 If P points to a break character, do not increment it.
3806 For C++ and Java, keep overload information and relevant keywords.
3807 If we cannot find a symbol, search the minimal symbols.
3810 * linespec.c (decode_compound): Rename SAVED_ARG to
3812 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3814 Pass a valid block to lookup_symbol.
3815 (lookup_prefix_sym): Likewise.
3816 (find_method): Construct search name based on SYM_CLASS instead
3818 * psymtab.c (lookup_partial_symbol): Add language parameter.
3819 (lookup_symbol_aux_psymtabs): Likewise.
3820 Don't assume that the psymtab we found was the right one. Search
3821 for the desired symbol in the symtab to be certain.
3822 (psymtab_search_name): New function.
3823 (lookup_partial_symbol): Use psymtab_search_name.
3824 Add language parameter.
3825 (read_symtabs_for_function): Add language parameter and pass to
3826 lookup_partial_symbol.
3827 (find_symbol_file_from_partial): Likewise.
3829 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3832 * dwarf2read.c (noop_record_line): New function.
3833 (dwarf_decode_lines): Ignore line tables for GCd functions.
3835 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3837 Fix ARI warnings about new lines at the end of messages, which
3838 are unneeded as there is a new line added at the end of the message
3840 * darwin-nat.c (darwin_stop_inferior): Ditto.
3841 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3842 * dfp.c (decimal_to_number): Ditto.
3843 * exec.c (print_section_info): Ditto.
3844 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3845 * osdata.c (get_osdata): Ditto.
3846 * record.c (bfdcore_write): Ditto.
3847 * remote-mips.c (mips_readchar): Ditto.
3848 * remote.c (read_ptid): Ditto.
3849 * ser-mingw.c (ser_windows_raw): Ditto.
3850 * tracepoint.c (add_local_symbols): Ditto.
3851 * windows-nat.c (fake_create_process): Ditto.
3853 2011-03-16 Tom Tromey <tromey@redhat.com>
3855 * tracepoint.c (stop_tracing): Don't declare.
3856 * event-top.c (after_char_processing_hook): Add `(void)'.
3858 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3860 * NEWS: Add Parameter sub-classing description.
3862 2011-03-16 Kai Tietz <ktietz@redhat.com>
3864 * MAINTAINERS: Update my e-mail address.
3866 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
3868 * MAINTAINERS: Add myself for write after approval privileges.
3870 2011-03-15 Michael Snyder <msnyder@vmware.com>
3872 * frame.c (find_frame_sal): Assert sym is not null.
3874 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3876 * objc-lang.c (selectors_info): Check strchr for null result.
3878 * stabsread.c (define_symbol): Guard against bad stabstring input.
3880 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3882 Remove trailing spaces and tabulations from pascal language
3887 p-valprint.c: Ditto.
3889 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3891 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3892 than LOW. Comment it.
3893 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3894 HIGHPC not strictly higher than LOWPC.
3896 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3898 Fix formatting of function declarations returning a pointer in
3900 * varobj.c (varobj_add_child): Ditto.
3901 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3902 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3904 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3906 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3907 for the "generic" vector ABI used with GCC 4.3 and later.
3908 (ppc64_sysv_abi_return_value): Likewise.
3910 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3912 * infcall.c (call_function_by_hand): Function return value is
3913 always a non_lval, even when using struct_return.
3915 2011-03-15 Pedro Alves <pedro@codesourcery.com>
3917 * printcmd.c (ALL_DISPLAYS_SAFE): New.
3918 (map_display_numbers): New.
3919 (do_delete_display): New.
3920 (undisplay_command): Use map_display_numbers.
3921 (do_enable_disable_display): New.
3922 (enable_disable_display_command): New function.
3923 (enable_display): Delete.
3924 (enable_display_command): New.
3925 (disable_display_command): Reimplement.
3926 (_initialize_printcmd): Adjust "enable display" command to use
3927 `enable_display_command' as callback.
3929 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3931 * NEWS: Add Python breakpoint 'stop' operation.
3933 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3935 * NEWS: Delete duplicate entry. Fix typo.
3937 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3939 Fix ARI warning about function names in first column.
3940 Put prototype declaration on same line as return type.
3941 * objc-exp.y: Ditto.
3943 * python/py-stopevent.h: Ditto.
3944 For long function names, split parameters to
3945 allow function name on same line as return type.
3946 * solib-pa64.c: Ditto.
3949 For long function declaration, use single line.
3950 * hppa-tdep.h: Ditto.
3951 * inferior.h: Ditto.
3953 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3955 * python/python.h: Declare gdbpy_should_stop and
3956 gdbpy_breakpoint_has_py_cond.
3957 * python/python.c: Add python.h to includes. Remove python.h from
3958 HAVE_PYTHON definition
3959 (gdbpy_should_stop): New dummy function.
3960 (gdbpy_breakpoint_has_py_cond): New dummy function.
3961 * python/py-breakpoint.c (bppy_init): Rewrite to allow
3962 sub-classing capabilities.
3963 (gdbpy_should_stop): New function.
3964 (gdbpy_breakpoint_has_py_cond): New function.
3965 (local_setattro): New function.
3966 * breakpoint.c (condition_command): Add check for Python 'stop'
3968 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3969 operation function as part of stop/continue tests.
3971 2011-03-14 Tom Tromey <tromey@redhat.com>
3974 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
3975 (needs_frame_dwarf_call): Likewise.
3977 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3979 Fix ARI warning about functions without parameters that do not
3981 * breakpoint.c (all_tracepoints): Replace () by (void).
3982 * f-exp.y (match_string_literal): Ditto.
3984 * m2-exp.y (yylex): Ditto.
3985 * mep-tdep.c (current_me_module): Ditto.
3986 (current_options): Ditto.
3987 (current_cop_data_bus_width): Ditto.
3988 (current_cr_names): Ditto.
3989 (current_cr_is_float): Ditto.
3990 (current_ccr_names): Ditto.
3991 * objc-exp.y (yylex): Ditto.
3992 * p-exp.y (yylex): Ditto.
3993 * remote.c (send_interrupt_sequence): Ditto.
3994 * tracepoint.c (current_trace_status): Ditto.
3995 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
3996 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
3998 2011-03-11 Michael Snyder <msnyder@vmware.com>
4000 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
4001 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
4002 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
4003 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
4004 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
4006 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
4007 (delete_async_event_handler): Ditto.
4009 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
4011 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
4013 * top.c (set_verbose): Assert showcmd was found.
4015 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
4017 * xtensa-tdep.c (warning_once): Correct style issues.
4019 2011-03-11 Yao Qi <yao@codesourcery.com>
4021 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
4023 2011-03-11 Andreas Schwab <schwab@redhat.com>
4025 * common/aclocal.m4: Remove.
4027 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4029 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
4030 (xtensa_write_register, xtensa_read_register): Likewise.
4031 (xtensa_hextochar): Removed.
4032 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
4034 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4036 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
4037 (xtensa_call0_frame_cache_t): Update comments. New fields added.
4038 (xtensa_alloc_frame_cache): Add initialization for new fields.
4039 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
4040 (warning_once): New function.
4041 (xtensa_insn_kind): New item c0opc_and.
4042 (call0_classify_opcode): Add the case for AND instruction.
4043 (call0_track_op): Change arguments. New local variable litbase.
4044 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
4045 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
4047 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
4048 (call0_analyze_prologue): Update the comments. Change arguments.
4049 Add the variety of updates to handle extended prologues, which now can
4050 conduct dynamic stack adjustments.
4051 (call0_frame_cache): Likewise.
4052 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
4053 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4055 2011-03-10 Michael Snyder <msnyder@vmware.com>
4057 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4058 (cmd_qtframe): Ditto.
4059 (cmd_qtbuffer): Ditto.
4060 (cmd_bigqtbuffer): Ditto.
4062 2011-03-10 Tom Tromey <tromey@redhat.com>
4064 * tracepoint.c (trace_actions_command): Update.
4065 * thread.c (thread_apply_command): Update.
4066 * reverse.c (delete_bookmark_command): Update.
4067 (bookmarks_info): Update.
4068 * printcmd.c (undisplay_command): Update.
4069 * memattr.c (mem_enable_command): Update.
4070 (mem_disable_command): Update.
4071 (mem_delete_command): Update.
4072 * inferior.c (detach_inferior_command): Update.
4073 (kill_inferior_command): Update.
4074 (remove_inferior_command): Update.
4075 * cli/cli-utils.h (struct get_number_or_range_state): New.
4076 (init_number_or_range): Declare.
4077 (get_number_or_range): Update.
4078 * cli/cli-utils.c (init_number_or_range): New function.
4079 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
4081 (number_is_in_list): Update.
4082 * breakpoint.h (get_tracepoint_by_number): Update.
4083 * breakpoint.c (map_breakpoint_numbers): Update for change to
4084 get_number_or_range.
4085 (find_location_by_number): Use get_number, not
4086 get_number_or_range.
4087 (trace_pass_set_count): New function.
4088 (trace_pass_command): Update for change to get_number_or_range.
4090 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4093 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
4095 * python/py-param.c (add_setshow_generic): Add set/show callback
4096 parameters. Register Python object context.
4097 (get_show_value): New function.
4098 (get_set_value): New function.
4099 (call_doc_function): New function.
4100 (get_doc_string): Move behind get_show_value/get_set_value.
4102 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
4104 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4106 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
4108 * xtensa-tdep.c (xtensa_read_register): Add comment.
4109 (xtensa_write_register): Likewise.
4110 (xtensa_hextochar): Add comment and update to match coding conventions.
4111 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4112 (execute_l32e, execute_s32e, execute_code): Update comments.
4113 (xtensa_exception_handler_t): Update to match coding conventions.
4114 (xtensa_insn_kind): Likewise.
4116 2011-03-09 Michael Snyder <msnyder@vmware.com>
4118 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4120 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4122 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4124 2011-03-09 Tom Tromey <tromey@redhat.com>
4126 * thread.c (restore_selected_frame): Handle frame_level == -1.
4127 (make_cleanup_restore_current_thread): Use
4128 get_selected_frame_if_set.
4129 * frame.h (get_selected_frame_if_set): Declare.
4130 * frame.c (get_selected_frame_if_set): New function.
4132 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4134 * cli/cli-cmds.c (shell_escape): Use lbasename.
4135 * coffread.c (coff_start_symtab): Constify parameter.
4136 (complete_symtab): Constify `name' parameter.
4137 (coff_symtab_read): Constify `filestring' local.
4138 (coff_getfilename): Constify return and `result' local.
4140 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4141 * linux-fork.c (info_checkpoints_command): Use lbasename.
4142 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4143 * minsyms.c (lookup_minimal_symbol): Use lbasename.
4144 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4145 * procfs.c (procfs_make_note_section): Use lbasename.
4146 * tui/tui-io.c (printable_part): Constity return and parameter.
4148 (print_filename): Constify parameters, and local `s'.
4149 (tui_rl_display_match_list): Constify local `temp'.
4151 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4154 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4155 Fix DWARF-3+ DW_AT_accessibility default assumption.
4156 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4157 cu->header.version >= 3.
4159 2011-03-09 Yao Qi <yao@codesourcery.com>
4161 * common/Makefile.in: Remove.
4162 * common/configure: Remove.
4163 * common/configure.ac: Remove.
4165 2011-03-09 Yao Qi <yao@codesourcery.com>
4168 2011-02-11 Yao Qi <yao@codesourcery.com>
4170 * common/Makefile.in: Add copyright header.
4172 2011-02-11 Yao Qi <yao@codesourcery.com>
4174 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4176 * configure.ac: Add common to sub dir.
4177 * configure: Regenerate.
4179 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4181 * xtensa-tdep.c (call0_ret): New function.
4182 (xtensa_skip_prologue): Speed up analysis.
4184 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4186 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
4187 while executing MI command -data-list-changed-registers.
4189 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4191 * xtensa-tdep.c (xtensa_read_register): New function.
4192 (xtensa_write_register): New function.
4193 (xtensa_find_register_by_name): New function.
4194 (xtensa_windowed_frame_cache): Update comments in type description.
4195 (xtensa_frame_cache): Likewise.
4196 (xtensa_window_interrupt_insn): New function.
4197 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
4198 (xtensa_insn_kind): Add new instructions.
4199 (rwx_special_register): New function.
4200 (call0_classify_opcode): Add new instructions to the analysis.
4201 (a0_saved, a7_saved, a11_saved): New variables.
4202 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
4203 (execute_l32e): New function.
4204 (execute_s32e): New function.
4205 (xtensa_exception_handler_t): New type.
4206 (execute_code): New function.
4207 (xtensa_window_interrupt_frame_cache): New function to conduct frame
4208 analysis for Xtensa Window Exception handlers.
4210 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4212 * xtensa-tdep.c (TX_PS): New.
4213 (windowing_enabled): Update to count for Call0 ABI.
4214 (xtensa_hextochar): New.
4215 (xtensa_init_reggroups): Make algorithm generic.
4216 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4218 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4220 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4222 2011-03-08 Michael Snyder <msnyder@vmware.com>
4224 * i386-tdep.c (i386_follow_jump): Check return value of
4226 (i386_analyze_struct_return): Ditto.
4227 (i386_skip_probe): Ditto.
4228 (i386_match_insn): Ditto.
4229 (i386_skip_noop): Ditto.
4230 (i386_analyze_frame_setup): Ditto.
4231 (i386_analyze_register_saves): Ditto.
4232 (i386_skip_prologue): Ditto.
4233 (i386_skip_main_prologue): Ditto.
4235 * target.c (read_whatever_is_readable): Fix memory leak.
4237 * i386-tdep.c (i386_process_record): Document fall through.
4239 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4241 Fix DWARF-3+ DW_AT_accessibility default assumption.
4242 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4243 cu->header.version >= 3.
4245 2011-03-08 Pedro Alves <pedro@codesourcery.com>
4247 * remote.c (remote_check_symbols): Skip if the target has no
4250 2011-03-08 Joel Brobecker <brobecker@adacore.com>
4252 * target.c (read_whatever_is_readable): Reformat comment,
4253 with a minor typo fix. Minor reformatting of the code.
4255 2011-03-08 Yao Qi <yao@codesourcery.com>
4257 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4258 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4259 Use cached result instead of calling displaced_in_arm_mode again.
4260 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4261 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4262 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4263 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4264 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4265 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4266 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4267 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4268 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4269 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4270 (arm_catch_kernel_helper_return): Likewise.
4271 * gdb/arm-tdep.h : Update function declarations.
4273 2011-03-07 Michael Snyder <msnyder@vmware.com>
4275 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4277 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4279 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4281 * elfread.c (elf_symtab_read): Stop memory leak.
4283 * main.c (captured_main): Fix memory leak.
4285 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
4287 * ada-lang.c (compare_names): Call is_name_suffix with string1
4290 2011-03-07 Tom Tromey <tromey@redhat.com>
4292 * xcoffread.c (xcoff_sym_fns): Update.
4293 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4294 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4295 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4296 (symbol_file_add_with_addrs_or_offsets): Likewise.
4297 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4298 * somread.c (som_sym_fns): Update.
4299 * psymtab.h (require_partial_symbols): Declare.
4300 * psymtab.c (require_partial_symbols): New function.
4301 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4302 (ALL_OBJFILE_PSYMTABS): Undef.
4303 (ALL_PSYMTABS): Move from psympriv.h.
4304 (lookup_partial_symtab, find_pc_sect_psymtab)
4305 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4306 (find_last_source_symtab_from_partial)
4307 (forget_cached_source_info_partial)
4308 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4309 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4310 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4311 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4312 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4313 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4314 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4315 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4316 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4318 * mipsread.c (ecoff_sym_fns): Update.
4319 * machoread.c (macho_sym_fns): Update.
4320 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4321 (read_psyms): New function.
4322 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4323 (elf_sym_fns_lazy_psyms): New global.
4324 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4325 dwarf2_build_psymtabs.
4326 * dbxread.c (aout_sym_fns): Update.
4327 * coffread.c (coff_sym_fns): Update.
4329 2011-03-07 Tom Tromey <tromey@redhat.com>
4331 * infrun.c (print_exited_reason): Include inferior id and pid in
4334 2011-03-07 Tom Tromey <tromey@redhat.com>
4336 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4338 (target_has_execution_1): Update.
4339 (target_has_execution_current): Declare.
4340 (target_has_execution): Call target_has_execution_current.
4341 (default_child_has_execution): Update.
4342 * target.c (default_child_has_execution): Add 'the_ptid'
4344 (target_has_execution_1): Likewise.
4345 (target_has_execution_current): New function.
4346 (add_target): Update.
4347 (init_dummy_target): Update.
4348 * remote-m32r-sdi.c (m32r_has_execution): New function.
4349 (init_m32r_ops): Use it.
4350 * record.c (record_core_has_execution): Now static. Add
4351 'the_ptid' parameter.
4352 * inferior.c (have_live_inferiors): Don't save current thread.
4353 Use target_has_execution_1.
4355 2011-03-07 Yao Qi <yao@codesourcery.com>
4357 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4359 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4361 * elfread.c (elf_symtab_read): Minor reformatting.
4363 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4365 * objc-lang.c (selectors_info): Minor reformatting.
4367 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4369 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4371 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4372 Michael Snyder <msnyder@vmware.com>
4374 * ada-valprint.c (ada_val_print_array): Move the declaration of
4375 "byte_order" and "elttype" inside the block where these variables
4376 are actually used. Remove some special handling for the case
4377 where "elttype" and "eltlen" are null. Replace by a comment
4378 and a couple of assertion checks.
4380 2011-03-05 Michael Snyder <msnyder@vmware.com>
4382 * source.c (add_path): Replace semicolon at end of block.
4383 * dwarf2expr.c (execute_stack_op): Ditto.
4385 2011-03-05 Mike Frysinger <vapier@gentoo.org>
4387 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4388 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4389 (bfin-*-*): Likewise.
4391 2011-03-05 Michael Snyder <msnyder@vmware.com>
4393 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4394 * mdebugread.c (parse_symbol): Ditto.
4395 * parse.c (parse_exp_in_context): Ditto.
4396 * source.c (add_path): Ditto.
4397 * utils.c (gnu_debuglink_crc32): Ditto.
4398 * varobj.c (variable_language): Ditto.
4400 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4402 2011-03-04 Michael Snyder <msnyder@vmware.com>
4404 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4406 * symfile.c (simple_overlay_update): Check for null return value
4407 from lookup_minimal_symbol.
4409 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4411 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4413 * eval.c (parse_and_eval_address_1): Remove function.
4414 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4415 instead of parse_and_eval_address_1.
4416 * value.h (parse_and_eval_address_1): Remove prototype.
4418 2011-03-04 Michael Snyder <msnyder@vmware.com>
4420 * remote.c (putpkt_binary): Document that case stmt falls through.
4422 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4424 * breakpointc (print_it_typical): Move NULL check from here...
4425 (print_bp_stop_message): ... to here.
4427 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4429 * breakpoint.c (enable_command): Use break instead of continue,
4430 and fill in a missing break.
4431 (disable_command): Ditto.
4433 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4435 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4436 (terminal_save_ours): Remove misleading comment.
4437 (inflow_inferior_data_cleanup): Free ttystate.
4438 (inflow_inferior_exit): Likewise.
4439 (copy_terminal_info): Copy ttystate.
4441 * serial.c (serial_copy_tty_state): New function.
4442 * serial.h (serial_copy_tty_state): Add prototype.
4443 (struct serial_ops): Add copy_tty_state callback.
4444 * ser-base.c (ser_base_copy_tty_state): New function.
4445 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4446 * ser-go32.c (dos_copy_tty_state): New function.
4447 (dos_ops): Install copy_tty_state callback.
4448 * ser-mingw.c (_initialize_ser_windows): Likewise.
4449 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4450 * ser-unix.c (hardwire_copy_tty_state): New function.
4451 (_initialize_ser_hardwire): Install it.
4453 2011-03-04 Michael Snyder <msnyder@vmware.com>
4455 * breakpoint.c (create_breakpoint): Add missing break statement.
4457 Reverting this patch:
4458 * infcall.c (call_function_by_hand): Add break statements for lint.
4460 Reverting this patch:
4461 * cli/cli-script.c (script_from_file): Add break for lint.
4463 2011-03-04 Michael Snyder <msnyder@vmware.com>
4465 * solib.c (reload_shared_libraries_1): Close memory leak.
4467 2011-03-03 Tom Tromey <tromey@redhat.com>
4470 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4473 2011-03-03 Michael Snyder <msnyder@vmware.com>
4475 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4476 fields of struct 'st' to zero.
4478 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4479 sal.pspace before calling set_current_source_symtab_and_line.
4481 2011-03-03 Yao Qi <yao@codesourcery.com>
4483 * Makefile.in (configure-common): Remove. Let Makefile
4484 in dir common to rebuild itself.
4485 (common/Makefile): Likewise.
4487 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4489 * utils.c (parse_escape): Add i18n markup in error message.
4491 2011-03-03 Yao Qi <yao@codesourcery.com>
4493 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4495 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4496 (displaced_write_reg, displaced_read_reg): Likewise.
4497 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4498 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4499 (cleanup_branch): Replace magic number 14 and 15 with
4500 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4502 2011-03-02 Michael Snyder <msnyder@vmware.com>
4504 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4506 * cli/cli-script.c (script_from_file): Add break for lint.
4508 * mdebugread.c (parse_partial_symbols): Fix indent.
4510 * target-descriptions.c (tdesc_gdb_type): No need to call
4511 xstrdup, callee saves a copy.
4513 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4515 * infcall.c (call_function_by_hand): Add break statements for lint.
4517 * utils.c (parse_escape): Escape the escape char.
4519 * python/py-inferior.c (build_inferior_list): Error out if
4520 PyList_Append fails.
4521 (gdbpy_inferiors): Error out if build_inferior_list fails.
4523 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4526 * record.c (record_restore): Move printf to before error return.
4528 2011-03-02 Yao Qi <yao@codesourcery.com>
4530 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4531 is_thumb and insn_size.
4532 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4533 on both ARM and Thumb mode.
4534 (arm_process_displaced_insn): Set is_thumb and insn_size.
4535 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4536 (arm_displaced_step_fixup): Likewise.
4538 2011-03-01 Michael Snyder <msnyder@vmware.com>
4540 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4542 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4544 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4546 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4548 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4551 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4552 which shadows function parameter.
4554 * tracepoint.c (create_tsv_from_upload): Superfluous call
4555 to xstrdup. Callee already calls xstrdup.
4557 * linespec.c (decode_line_1): Remove unnecessary null check.
4559 * tracepoint.c (scope_info): Fix mem leak, remove underused
4562 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4563 superfluous null check.
4565 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4566 (value_of_builtin_frame_fp_reg): Ditto.
4568 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4570 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4573 * linespec.c (decode_line_1): Check for null before dereference.
4575 * reverse.c (record_restore): Move null-check to before pointer
4578 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4580 * objc-lang.c (selectors_info): Add explanitory comment.
4581 (classes_info): Ditto.
4583 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4585 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4586 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4587 versions of the trampoline. Handle Thumb vs. ARM addresses.
4588 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4589 (arm_linux_init_abi): Install it.
4590 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4591 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4593 2011-02-28 Michael Snyder <msnyder@vmware.com>
4595 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4596 a little bigger, to avoid possibility of an overflow.
4598 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4599 buffers a little bigger, to avoid possibility of an overflow.
4601 * coffread.c (coff_getfilename): Add check to avoid overflow.
4603 * objc-lang.c (selectors_info): Add a small safety margin to
4605 (classes_info): Error out on too long REGEXP.
4607 * infrun.c (handle_inferior_event): Remove unused function call.
4609 * fork-child.c (fork_inferior): Remove ifdef'd code and
4612 * linux-thread-db.c (attach_thread): Discard unused value.
4614 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4616 * remote.c (remote_get_noisy_reply): Discard unused value.
4617 (remote_vcont_resume): Ditto.
4618 (remote_stop_ns): Ditto.
4620 * linespec.c (decode_objc): Delete unused variable.
4622 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4624 * dwarf2read.c (add_partial_symbol): Discard unused values.
4625 (read_base_type): Delete unused variable.
4627 * dbxread.c (read_dbx_symtab): Discard unused value.
4629 * eval.c (evaluate_subexp_standard): Delete unused variable,
4630 and discard unused values.
4632 * infcmd.c (_initialize_infcmd): Discard unused values.
4634 * stabsread.c (rs6000_builtin_type): Missing break statement.
4636 * dbxread.c (process_one_symbol): Discard unused value.
4638 * coffread.c (coff_end_symtab): Delete unused variable.
4640 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4641 (dwarf2_add_typedef): Delete unused variable.
4642 (read_namespace): Ditto.
4643 (dwarf_decode_macros): Ditto.
4645 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4647 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4649 * p-valprint.c (pascal_val_print): Discard unused value.
4651 * utils.c (nquery): Call va_end before return;
4655 * proc-service.c (ps_plog): Call va_end before return.
4657 2011-02-28 Tom Tromey <tromey@redhat.com>
4659 * python/python.c (gdbpy_value_cst): New global.
4660 (_initialize_python): Initialize it.
4661 * python/python-internal.h (gdbpy_value_cst): Declare.
4662 * python/py-value.c (convert_value_from_python): Use
4665 2011-02-28 Michael Snyder <msnyder@vmware.com>
4667 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4669 * breakpoint.c (catch_syscall_completer): Free malloced list.
4671 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4673 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4674 (lval_func_check_synthetic_pointer): Ditto.
4675 (lval_func_free_closure): Fix use-after-free.
4677 2011-02-28 Tom Tromey <tromey@redhat.com>
4679 * psymtab.c (expand_partial_symbol_tables): Use
4680 ALL_OBJFILE_PSYMTABS.
4682 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4684 * objc-lang.c (selectors_info): Error on too long REGEXP.
4686 2011-02-28 Michael Snyder <msnyder@vmware.com>
4688 * python/py-param.c (set_parameter_value): Add missing
4691 * linux-record.c (record_linux_system_call): Add missing
4694 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4696 * breakpoint.c (print_one_breakpoint_location): Remove unused
4697 argument PRINT_ADDRESS_BITS. Update callers.
4698 (print_one_breakpoint): Likewise.
4700 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4702 * breakpoint.c (wrap_indent_at_field): New function.
4703 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4704 Allocate ui_stream locally instead of using STB argument.
4705 (print_one_breakpoint_location): Update call.
4706 * ui-out.c (ui_out_query_field): New function.
4707 * ui-out.h (ui_out_query_field): Add prototype.
4709 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4711 From Michael Snyder <msnyder@vmware.com>
4712 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4714 2011-02-27 Michael Snyder <msnyder@vmware.com>
4716 * objc-lang.c (selectors_info): Prevent string overrun.
4718 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4721 * symtab.c (rbreak_command): Move variable 'file_name' to
4724 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4725 param with a local variable of the same name.
4727 2011-02-27 Michael Snyder <msnyder@vmware.com>
4729 * value.c (value_from_history_ref): New function.
4730 * value.h (value_from_history_ref): Export.
4731 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4732 to parse value history references.
4733 * cli/cli-utils.h (get_number_trailer): Update comment.
4735 2011-02-27 Michael Snyder <msnyder@vmware.com>
4737 * inferior.c (detach_inferior_command): Use get_number_or_range.
4738 (kill_inferior_command): Ditto.
4739 (remove_inferior_command): Ditto.
4740 (initialize_inferiors): Make command names plural.
4741 Update help strings.
4743 2011-02-27 Michael Snyder <msnyder@vmware.com>
4745 * darwin-nat-info.c: Fix comment typo.
4746 * dwarf2expr.h: Ditto.
4747 * fbsd-nat.c: Ditto.
4748 * fbsd-nat.h: Ditto.
4749 * frame-unwind.h: Ditto.
4751 * hppa-hpux-tdep.c: Ditto.
4752 * i386-linux-nat.c: Ditto.
4753 * linux-nat.c: Ditto.
4754 * nbsd-nat.c: Ditto.
4755 * nbsd-nat.h: Ditto.
4756 * ppc-linux-tdep.c: Ditto.
4759 * tui/tui-winsource.c: Ditto.
4761 2011-02-26 Michael Snyder <msnyder@vmware.com>
4763 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4765 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4767 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4768 with a local variable of the same name.
4770 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4771 param with a local variable of the same name.
4772 (i387_supply_xsave): Ditto.
4774 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4775 that it does not shadow a function parameter.
4777 * i386-nat.c (i386_length_and_rw_bits): Document that case
4778 statement is meant to fall through.
4780 * expprint.c (dump_subexp_body_standard): Document that case
4781 statement is meant to fall through.
4783 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4784 dead if statement. Condition can't be false.
4786 2011-02-25 Michael Snyder <msnyder@vmware.com>
4788 * arm-tdep.c: Fix typos in comments.
4789 * bsd-uthread.c: Ditto.
4790 * completer.c: Ditto.
4792 * cp-namespace.c: Ditto.
4793 * cp-support.c: Ditto.
4794 * cris-tdep.c: Ditto.
4796 * dwarf2read.c: Ditto.
4798 * gdbtypes.h: Ditto.
4799 * inferior.h: Ditto.
4800 * mdebugread.c: Ditto.
4801 * mips-tdep.c: Ditto.
4802 * ppc-linux-nat.c: Ditto.
4803 * ppc-linux-tdep.c: Ditto.
4804 * printcmd.c: Ditto.
4805 * sol-thread.c: Ditto.
4806 * solib-frv.c: Ditto.
4808 * sparc64-tdep.c: Ditto.
4809 * spu-tdep.c: Ditto.
4810 * stabsread.c: Ditto.
4815 * python/py-block.c: Ditto.
4816 * python/py-symbol.c: Ditto.
4817 * python/py-symtab.c: Ditto.
4818 * python/py-value.c: Ditto.
4819 * tui/tui-win.c: Ditto.
4821 2011-02-25 Michael Snyder <msnyder@vmware.com>
4823 * inferior.c (print_inferior): Accept a string instead of an int
4824 for requested_inferiors, and use get_number_or_range to parse it.
4825 (info_inferiors_command): Pass args string to print_inferior.
4826 (initialize_inferiors): Change help string for info inferiors.
4827 * inferior.h (print_inferior): Export prototype change.
4829 2011-02-25 Tom Tromey <tromey@redhat.com>
4831 * common/ax.def (invalid2): Set to 0x31.
4833 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4835 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4837 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4839 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4841 2011-02-24 Michael Snyder <msnyder@vmware.com>
4843 * Makefile.in (clean): Make clean should remove generated files
4844 observer.h and observer.inc.
4846 2011-02-24 Joel Brobecker <brobecker@adacore.com>
4848 Revert the following patch (not approved yet):
4849 2011-02-21 Hui Zhu <teawater@gmail.com>
4850 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4851 * ax-gdb.c (gen_printf_expr_callback): New function.
4852 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4853 * ax-general.c (ax_memcpy): New function.
4854 (ax_print): Handle "printf".
4856 * ax.h (ax_memcpy): Forward declare.
4857 * common/ax.def (invalid2): Removed.
4858 (printf): New entry.
4859 * printcmd.c (printcmd.h): New include.
4860 (string_printf): New function.
4861 (ui_printf): Removed.
4862 (printf_command): Remove static. Call string_printf.
4863 (eval_command): Call string_printf.
4864 * printcmd.h: New file.
4865 * tracepoint.c (validate_actionline,
4866 encode_actions_1): handle printf_command.
4868 2011-02-23 Tom Tromey <tromey@redhat.com>
4870 * ax-general.c (ax_pick): Add missing newline.
4872 2011-02-23 Michael Snyder <msnyder@vmware.com>
4874 * breakpoint.c (breakpoint_1): Change first argument from an int
4875 to a char pointer, so that the function now accepts a list of
4876 breakpoints rather than just one. Use new function
4877 'number_is_in_list' to implement.
4878 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4879 (watchpoints_info): Ditto.
4880 (tracepoints_info): Ditto.
4881 (maintenance_info_breakpoints): Ditto.
4882 (_initialize_breakpoint): Update help strings to reflect the fact
4883 that these functions can now take more than one argument.
4884 * cli/cli-utils.c (number_is_in_list): New function.
4885 * cli/cli-utils.h (number_is_in_list): Export.
4887 2011-02-23 Michael Snyder <msnyder@vmware.com>
4889 * memattr.c (mem_enable_command): Use get_number_or_range.
4890 (mem_disable_command): Ditto.
4891 (mem_delete_command): Ditto.
4892 (_initialize_mem): Tweak usage message to reflect multiple
4895 2011-02-22 Doug Evans <dje@google.com>
4897 Add gdb.lookup_global_symbol python function.
4899 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4900 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4901 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4903 2011-02-22 Tom Tromey <tromey@redhat.com>
4905 * language.c (language_class_name_from_physname): Rename
4906 'curr_language' argument to 'lang'; use in body.
4908 2011-02-22 Michael Snyder <msnyder@vmware.com>
4910 * cli/cli-utils.c (number_is_in_list): Check for zero return.
4912 2011-02-22 Pedro Alves <pedro@codesourcery.com>
4914 * frame-unwind.h: Fix comment to mention the this frame, not the
4917 2011-02-22 Tom Tromey <tromey@redhat.com>
4919 * symfile.c (auto_solib_limit): Remove.
4920 * symfile.h (auto_solib_limit): Remove.
4922 2011-02-22 Joel Brobecker <brobecker@adacore.com>
4924 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4926 2011-02-21 Michael Snyder <msnyder@vmware.com>
4928 * gdbthread.h (print_thread_info): Change prototype.
4929 * thread.c (print_thread_info): Accept char* instead of int for
4930 requested_threads argument. Use new function number_is_in_list
4931 to determine which threads to list.
4932 (info_threads_command): Pass char* to print_thread_info.
4933 * cli/cli-utils.c (number_is_in_list): New function.
4934 * cli/cli-utils.h (number_is_in_list): Export.
4935 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4937 (print_one_inferior): Ditto.
4938 (mi_cmd_list_thread_groups): Ditto.
4940 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4942 * common/Makefile.in (CFLAGS): New.
4943 (COMPILE): Add $(CFLAGS).
4945 2011-02-21 Tom Tromey <tromey@redhat.com>
4947 * breakpoint.c (catch_syscall_command_1): Fix typo.
4949 2011-02-21 Tom Tromey <tromey@redhat.com>
4951 * reverse.c: Include cli-utils.h.
4952 * printcmd.c: Include cli-utils.h.
4953 (string_printf): Use skip_spaces.
4954 * cli/cli-utils.h: New file.
4955 * cli/cli-utils.c: New file.
4956 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4957 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4958 * breakpoint.h (get_number, get_number_or_range): Move to
4960 * breakpoint.c: Include cli-utils.h.
4961 (get_number_trailer, get_number, get_number_or_range)
4962 (ep_skip_leading_whitespace): Move to cli-utils.c.
4963 (create_breakpoint_sal, find_condition_and_thread)
4964 (decode_static_tracepoint_spec, watch_command_1)
4965 (watch_maybe_just_location, ep_parse_optional_if_clause)
4966 (catch_fork_command_1, catch_exec_command_1)
4967 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4968 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4969 (SUBDIR_CLI_SRCS): Add cli-utils.c.
4970 (HFILES_NO_SRCDIR): Add cli-utils.h.
4971 (cli-utils.o): New target.
4973 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4975 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
4976 before calling discard_all_inferiors.
4978 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4980 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
4981 (struct builtin_opencl_type): Remove.
4982 (builtin_opencl_type): Change return type to "struct type **".
4983 (lookup_opencl_vector_type): Update caller.
4984 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
4985 (build_opencl_types): Install plain array of "struct type *"
4986 instead of "struct builtin_opencl_type".
4988 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4989 Ulrich Weigand <uweigand@de.ibm.com>
4991 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
4992 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
4993 (struct arm_linux_hwbp_cap): New type.
4994 (arm_linux_get_hwbp_cap): New function.
4995 (arm_linux_get_hw_breakpoint_count): Likewise.
4996 (arm_linux_get_hw_watchpoint_count): Likewise.
4997 (arm_linux_can_use_hw_breakpoint): Likewise.
4998 (arm_hwbp_type): New type.
4999 (arm_hwbp_control_t): Likewise.
5000 (struct arm_linux_hw_breakpoint): Likewise.
5001 (struct arm_linux_thread_points): Likewise.
5002 (arm_threads): New global variable.
5003 (arm_linux_find_breakpoints_by_tid): New function.
5004 (arm_hwbp_control_initialize): Likewise.
5005 (arm_hwbp_control_is_enabled): Likewise.
5006 (arm_hwbp_control_disable): Likewise.
5007 (arm_linux_hw_breakpoint_initialize): Likewise.
5008 (arm_linux_get_hwbp_type): Likewise.
5009 (arm_linux_hw_watchpoint_initialize): Likewise.
5010 (arm_linux_hw_breakpoint_equal): Likewise.
5011 (arm_linux_insert_hw_breakpoint1): Likewise.
5012 (arm_linux_remove_hw_breakpoint1): Likewise.
5013 (arm_linux_insert_hw_breakpoint): Likewise.
5014 (arm_linux_remove_hw_breakpoint): Likewise.
5015 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
5016 (arm_linux_insert_watchpoint): Likewise.
5017 (arm_linux_remove_watchpoint): Likewise.
5018 (arm_linux_stopped_data_address): Likewise.
5019 (arm_linux_stopped_by_watchpoint): Likewise.
5020 (arm_linux_watchpoint_addr_within_range): Likewise.
5021 (arm_linux_new_thread): Likewise.
5022 (arm_linux_thread_exit): Likewise.
5023 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
5024 related target callbacks. Register arm_linux_new_thread and
5025 arm_linux_thread_exit.
5026 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
5027 * arm-tdep.c (arm_pc_is_thumb): Make global.
5028 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
5030 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5032 * breakpoint.c (update_watchpoint): Do not attempt to recreate
5033 per-frame locations while within a function epilogue.
5035 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5037 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
5038 to GNU coding standards.
5040 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5042 Allow use of mingw native on Windows 95 OS.
5043 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
5044 (ser_windows_close): Only call CancelIo if function exists.
5045 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
5046 to check for existence of CancelIo function in kernel32 DLL.
5048 2011-02-21 Hui Zhu <teawater@gmail.com>
5050 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5051 * ax-gdb.c (gen_printf_expr_callback): New function.
5052 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5053 * ax-general.c (ax_memcpy): New function.
5054 (ax_print): Handle "printf".
5056 * ax.h (ax_memcpy): Forward declare.
5057 * common/ax.def (invalid2): Removed.
5058 (printf): New entry.
5059 * printcmd.c (printcmd.h): New include.
5060 (string_printf): New function.
5061 (ui_printf): Removed.
5062 (printf_command): Remove static. Call string_printf.
5063 (eval_command): Call string_printf.
5064 * printcmd.h: New file.
5065 * tracepoint.c (validate_actionline,
5066 encode_actions_1): handle printf_command.
5068 2011-02-19 Michael Snyder <msnyder@vmware.com>
5070 * reverse.c (delete_one_bookmark): Argument is now bookmark
5071 id rather than pointer to bookmark struct.
5072 (delete_bookmark_command): Use get_number_or_range.
5073 (goto_bookmark_command): Parse with get_number instead of strtoul.
5074 (bookmark_1): New function. Print info for one bookmark.
5075 (bookmarks_info): Use get_number_or_range and bookmark_1.
5077 2011-02-18 Michael Snyder <msnyder@vmware.com>
5079 * thread.c (info_threads_command): Re-implement using
5080 get_number_or_range.
5081 (thread_apply_command): Ditto.
5083 2011-02-18 Tom Tromey <tromey@redhat.com>
5085 * common/ax.def: New file.
5086 * ax.h (enum agent_op): Use ax.def.
5087 * ax-general.c (aop_map): Use ax.def.
5089 2011-02-18 Tom Tromey <tromey@redhat.com>
5091 * ax-general.c (aop_map): Add pick and rot.
5092 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5093 <DW_OP_rot>: Implement.
5094 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5096 * ax-general.c (ax_pick): New function.
5098 2011-02-18 Tom Tromey <tromey@redhat.com>
5100 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5102 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5103 Tom Tromey <tromey@redhat.com>
5105 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5106 make_symbol_overload_list_block with NULL BLOCK.
5107 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5109 2011-02-18 Pedro Alves <pedro@codesourcery.com>
5111 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5112 * breakpoint.h (get_number_or_range): Declare.
5113 * printcmd.c (ALL_DISPLAYS): Declare.
5114 (delete_display): Reimplement taking a display pointer.
5115 (undisplay_command): Accept a range of displays to delete, using
5116 get_number_or_range.
5118 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5120 * c-valprint.c (c_val_print): Add embedded_offset to address
5121 for arrays of unspecified length.
5122 * p-valprint.c (pascal_val_print): Likewise.
5124 2011-02-18 Yao Qi <yao@codesourcery.com>
5126 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5127 (arm_process_displaced_insn): .. here. Remove parameter INSN.
5128 (thumb_process_displaced_insn): New.
5129 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5130 call to arm_process_displaced_insn.
5131 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5133 2011-02-17 Tom Tromey <tromey@redhat.com>
5135 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5136 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5137 compile_dwarf_to_ax. No longer static. Call
5138 dwarf2_compile_cfa_to_ax.
5139 (locexpr_tracepoint_var_ref): Update.
5140 (loclist_tracepoint_var_ref): Update.
5141 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5142 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5143 argument; add 'gdbarch' and 'pc'.
5144 (dwarf2_compile_cfa_to_ax): New function.
5145 (dwarf2_frame_cache): Update.
5147 2011-02-17 Joel Brobecker <brobecker@adacore.com>
5149 * ada-lang.c (ada_type_of_array): Fix the size of the array
5150 in the case of an unconstrained packed array.
5152 2011-02-17 Yao Qi <yao@codesourcery.com>
5154 * common/Makefile.in: Add more targets for make.
5156 2011-02-16 Tom Tromey <tromey@redhat.com>
5158 * dwarf2loc.c (unimplemented): Fix typo.
5160 2011-02-16 Tom Tromey <tromey@redhat.com>
5162 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5163 (compile_dwarf_to_ax) <default>: Use unimplemented.
5164 <DW_OP_deref>: Update.
5165 (disassemble_dwarf_expression): Update.
5166 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5167 (decode_locdesc): Update.
5168 * dwarf2expr.h (dwarf_stack_op_name): Update.
5170 2011-02-16 Tom Tromey <tromey@redhat.com>
5172 * ax.h (struct aop_map) <name>: Now const.
5174 2011-02-16 Tom Tromey <tromey@redhat.com>
5176 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5179 2011-02-16 Yao Qi <yao@codesourcery.com>
5181 * infrun.c (get_displaced_step_closure_by_addr): New.
5182 * inferior.h: Declare it.
5183 * arm-tdep.c: (arm_pc_is_thumb): Call
5184 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
5187 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5188 Jan Kratochvil <jan.kratochvil@redhat.com>
5191 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
5193 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5194 Jan Kratochvil <jan.kratochvil@redhat.com>
5196 * value.c (value_contents_copy_raw): Extend describing comment.
5197 Assert that the destination contents we're overwriting are wholly
5199 (value_contents_copy): Extend describing comment.
5201 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5202 Jan Kratochvil <jan.kratochvil@redhat.com>
5204 * value.c (value_available_contents_eq): Remove redundant local
5205 variables. Fix available contents comparision.
5206 * value.h (value_available_contents_eq): Extend describing
5209 2011-02-16 Yao Qi <yao@codesourcery.com>
5211 * thread.c (info_threads_command): Add missing i18n markup and remove
5214 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5216 * breakpoint.c (longjmp_names): New variable.
5217 (struct breakpoint_objfile_data): New type.
5218 (breakpoint_objfile_key): New variable.
5219 (msym_not_found): New variable.
5220 (msym_not_found_p): New predicate.
5221 (get_breakpoint_objfile_data): New function.
5222 (create_overlay_event_breakpoint): Check per-objfile cache for
5224 (create_longjmp_master_breakpoint): Likewise.
5225 (create_std_terminate_master_breakpoint): Likewise.
5226 (create_exception_master_breakpoint): Likewise.
5227 (_initialize_breakpoint): Register per-objfile data key.
5229 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5231 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5233 (create_longjmp_master_breakpoint): Loop over longjmp names.
5234 (create_std_terminate_master_breakpoint): Const-propagate parameter
5236 (update_breakpoints_after_exec): Adjust.
5237 (breakpoint_re_set): Adjust.
5239 2011-02-15 Michael Snyder <msnyder@vmware.com>
5241 * thread.c (info_threads_command): Process arg as thread id,
5242 or list of thread ids.
5243 (thread_find_command): New command.
5244 (_initialize_thread): Document argument for info threads.
5245 Document 'thread find' command.
5246 * NEWS: Document new command "thread find".
5248 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5250 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5251 * aclocal.m4: Regenerated with aclocal-1.11.1.
5252 * common/configure: Regenerate with autoconf-2.64.
5254 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
5256 * opencl-lang.c (build_opencl_types): Set the size of the built-in
5257 bool data type to a size of one byte.
5259 2011-02-15 Pedro Alves <pedro@codesourcery.com>
5260 Jan Kratochvil <jan.kratochvil@redhat.com>
5262 * target.c (memory_xfer_live_readonly_partial): Document where to
5263 look for interface description.
5265 2011-02-15 Yao Qi <yao@codesourcery.com>
5268 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5269 order to store PC value on stack instead of text section.
5271 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
5273 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5274 the EFP register set size.
5275 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5276 data from the VMX register.
5277 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5278 and write data from/to the VMX register.
5280 2011-02-14 Michael Snyder <msnyder@vmware.com>
5282 * command.h (enum command_class): New class 'no_set_class', for
5283 "show" commands without a corresponding "set" command.
5284 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5285 * copying.c (_initialize_copying): Ditto for "show copying" and
5287 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5289 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5290 which there is no corresponding "set" command (eg. "show copying").
5292 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5293 Jan Kratochvil <jan.kratochvil@redhat.com>
5295 * exec.c (section_table_available_memory): Change `len' parameter
5297 * exec.h (section_table_available_memory): Ditto.
5298 * value.h (read_value_memory): Rename the `offset' parameter to
5301 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5302 Jan Kratochvil <jan.kratochvil@redhat.com>
5304 * memrange.c (compare_mem_ranges): Mention sort order in
5306 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5307 * tracepoint.c (traceframe_available_memory): Extend comment to
5308 mention what happens to RESULT when the target does not support
5311 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5312 Jan Kratochvil <jan.kratochvil@redhat.com>
5314 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5317 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5319 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5320 No longer handle NULL values.
5322 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5324 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5325 * value.c: Include "exceptions.h".
5326 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5328 * cp-abi.c: Include gdb_assert.h.
5329 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5330 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5332 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5333 parameters. No longer returns -1 on error.
5334 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5336 * cp-valprint.c: Include exceptions.h.
5337 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5338 the baseclass_offset. Handle unavailable base classes. Use
5339 val_print_invalid_address.
5340 * p-valprint.c: Include exceptions.h.
5341 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5342 when fetching the baseclass_offset. No longer expect
5343 baseclass_offset returning -1. Handle unavailable base classes.
5344 Use val_print_invalid_address.
5345 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5346 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5347 `embedded_offset' and `val' parameters. Adjust.
5348 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5349 parameter, and change its type to gdb_byte pointer. Add
5350 `embedded_offset' and `val' parameters. Adjust. No longer expect
5351 baseclass_offset returning -1.
5352 (value_dynamic_cast): Use value_contents_for_printing rather than
5353 value_contents. Adjust.
5354 (search_struct_field): No longer expect baseclass_offset returning
5356 (search_struct_method): If reading memory from the target is
5357 necessary, wrap it in a new value to pass to baseclass_offset. No
5358 longer expect baseclass_offset returning -1.
5359 (find_method_list): No longer expect baseclass_offset returning
5360 -1. Use value_contents_for_printing rather than value_contents.
5361 * valprint.c (val_print_invalid_address): New function.
5362 * valprint.h (val_print_invalid_address): Declare.
5363 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5364 and `val' parameters. No longer expect baseclass_offset returning
5366 * gnu-v2-abi.c: Include "exceptions.h".
5367 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5368 parameters. Handle unavailable memory. Recurse through
5369 gnuv2_baseclass_offset directly, rather than through
5370 baseclass_offset. No longer returns -1 on not found, instead
5372 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5373 `val' parameters. Adjust.
5375 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5377 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5378 almost but not quite adjacent.
5380 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5382 * value.h (value_entirely_available): Declare.
5383 * value.c (value_entirely_available): New function.
5384 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5385 real type if the pointer is unavailable.
5387 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5389 * valops.c (value_repeat): Use read_value_memory instead of
5392 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5394 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5395 * value.c (value_contents_copy_raw, value_contents_copy): New
5397 (value_primitive_field): Use value_contents_copy_raw instead of
5399 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5401 (value_array, value_slice): Ditto.
5402 * valarith.c (value_subscripted_rvalue): Use
5403 value_contents_copy_raw instead of memcpy.
5405 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5407 <unavailable> references.
5409 * valops.c (get_value_at): Use value_from_contents_and_address,
5410 avoiding read_memory.
5412 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5414 * c-valprint.c (c_val_print): Print a string with unavailable
5415 contents as an array.
5417 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5419 * value.h (unpack_bits_as_long): Delete declaration.
5420 (unpack_value_bits_as_long): Declare.
5421 (unpack_value_field_as_long): Declare.
5422 (value_field_bitfield): Declare.
5423 * value.c (unpack_bits_as_long): Rename to...
5424 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5425 value parameters. Return the extracted result in a new output
5426 parameter. If the value contents are unavailable, return false,
5427 otherwise return true.
5428 (unpack_value_bits_as_long): New.
5429 (unpack_field_as_long): Rename to...
5430 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5431 Add embedded_offset and value parameters. Return the extracted
5432 result in a new output parameter. If the value contents are
5433 unavailable, return false, otherwise return true.
5434 (unpack_value_field_as_long): New.
5435 (unpack_field_as_long_1): New.
5436 (unpack_field_as_long): Reimplement as wrapper around
5437 unpack_value_field_as_long_1.
5438 (value_field_bitfield): New function.
5439 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5440 unpack_value_bits_as_long. Mark the value as unavailable, if it
5442 * jv-valprint.c (java_print_value_fields): Use
5443 value_field_bitfield.
5444 * p-valprint.c (pascal_object_print_value_fields): Use
5445 value_field_bitfield.
5446 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5448 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5450 * value.c (get_internalvar_integer): Also return the int value of
5451 TYPE_CODE_INT INTERNALVAR_VALUE values.
5452 (set_internalvar): Don't special case TYPE_CODE_INT.
5454 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5456 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5457 INTERNALVAR_POINTER.
5459 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5460 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5461 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5463 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5465 * value.h (value_available_contents_eq): Declare.
5466 * value.c (find_first_range_overlap): New function.
5467 (value_available_contents_eq): New function.
5468 * valprint.c (val_print_array_elements): Use
5469 value_available_contents_eq.
5470 * ada-valprint.c (val_print_packed_array_elements): Use
5471 value_available_contents_eq.
5472 * jv-valprint.c (java_value_print): Use
5473 value_available_contents_eq.
5475 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5477 * target.c (target_read_live_memory): New function.
5478 (memory_xfer_live_readonly_partial): New.
5479 (memory_xfer_partial): If reading from a traceframe, fallback to
5480 reading unavailable read-only memory from read-only regions of
5482 * tracepoint.c (disconnect_tracing): Adjust.
5483 (set_current_traceframe): New, factored out from
5484 set_traceframe_number.
5485 (set_traceframe_number): Reimplement to only change the traceframe
5486 number on the GDB side.
5487 (do_restore_current_traceframe_cleanup): Adjust.
5488 (make_cleanup_restore_traceframe_number): New.
5489 (cur_traceframe_number): New global.
5490 (tfile_open): Set cur_traceframe_number to no traceframe.
5491 (set_tfile_traceframe): New function.
5492 (tfile_trace_find): If looking up a traceframe using any method
5493 other than by number, make sure the current tfile traceframe
5494 matches gdb's current traceframe. Update the current tfile
5495 traceframe if the lookup succeeded.
5496 (tfile_fetch_registers, tfile_xfer_partial)
5497 (tfile_get_trace_state_variable_value): Make sure the remote
5498 traceframe matches gdb's current traceframe.
5499 * remote.c (remote_traceframe_number): New global.
5500 (remote_open_1): Set it to -1.
5501 (set_remote_traceframe): New function.
5502 (remote_fetch_registers, remote_store_registers)
5503 (remote_xfer_memory, remote_xfer_partial)
5504 (remote_get_trace_state_variable_value): Make sure the remote
5505 traceframe matches gdb's current traceframe.
5506 (remote_trace_find): If looking up a traceframe using any method
5507 other than by number, make sure the current remote traceframe
5508 matches gdb's current traceframe. Update the current remote
5509 traceframe if the lookup succeeded.
5510 * infrun.c (fetch_inferior_event): Adjust.
5511 * tracepoint.h (set_current_traceframe): Declare.
5512 (get_traceframe_number, set_traceframe_number): Add describing
5515 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5517 Mark pieces of values as unavailable if the corresponding memory
5520 * valops.c: Include tracepoint.h.
5521 (value_fetch_lazy): Use read_value_memory.
5522 (read_value_memory): New.
5523 * value.h (read_value_memory): Declare.
5524 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5525 * exec.c (section_table_available_memory): New function.
5526 * exec.h (section_table_available_memory): Declare.
5528 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5530 * Makefile.in (SFILES): Add memrange.c.
5531 (HFILES_NO_SRCDIR): Add memrange.h.
5532 (COMMON_OBS): Add memrange.o.
5533 * memrange.c: New file.
5534 * memrange.h: New file.
5535 * tracepoint.c: Include memrange.h.
5536 (struct mem_range): Delete.
5537 (mem_range_s): Delete.
5538 (traceframe_available_memory): New function.
5539 * tracepoint.h (traceframe_available_memory): Declare.
5541 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5543 * target.h (struct traceframe_info): Forward declare.
5544 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5545 (struct target_ops) <to_traceframe_info>: New field.
5546 (target_traceframe_info): New.
5547 * target.c (update_current_target): Inherit and default
5549 * remote.c (PACKET_qXfer_traceframe_info): New.
5550 (remote_protocol_features): Register qXfer:traceframe-info:read.
5551 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5552 (remote_traceframe_info): New.
5553 (init_remote_ops): Install it.
5554 (_initialize_remote): Install "set/show remote traceframe-info"
5556 * tracepoint.h (parse_traceframe_info): Declare.
5557 * tracepoint.c (struct mem_range): New.
5558 (mem_range_s): New typedef.
5559 (struct traceframe_info): New.
5560 (traceframe_info): New global.
5561 (free_traceframe_info): New function.
5562 (clear_traceframe_info): New function.
5563 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5565 (build_traceframe_info): New function.
5566 (tfile_traceframe_info): New function.
5567 (init_tfile_ops): Install tfile_traceframe_info.
5568 (traceframe_info_start_memory, free_result): New functions.
5569 (memory_attributes, traceframe_info_elements): New globals.
5570 (parse_traceframe_info, get_traceframe_info): New functions.
5571 * features/traceframe-info.dtd: New file.
5572 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5574 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5576 Base support for <unavailable> value contents.
5578 * value.h (value_bytes_available): Declare.
5579 (mark_value_bytes_unavailable): Declare.
5580 * value.c (struct range): New struct.
5581 (range_s): New typedef.
5582 (ranges_overlap): New function.
5583 (range_lessthan): New function.
5584 (ranges_contain_p): New function.
5585 (struct value) <unavailable>: New field.
5586 (value_bytes_available): New function.
5587 (mark_value_bytes_unavailable): New function.
5588 (require_not_optimized_out): Constify parameter.
5589 (require_available): New function.
5590 (value_contents_all, value_contents): Require all bytes be
5592 (value_free): Free `unavailable'.
5593 (value_copy): Copy `unavailable'.
5594 * valprint.h (val_print_unavailable): Declare.
5595 * valprint.c (valprint_check_validity): Rename `offset' parameter
5596 to `embedded_offset'. If printing a scalar, check whether the
5597 value chunk is available.
5598 (val_print_unavailable): New.
5599 (val_print_scalar_formatted): Check whether the value is
5601 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5602 pretty-printing unavailable values.
5604 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5606 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5607 * c-typeprint.c (c_type_print_args): Update the function comment. New
5608 variable param_type, initialize it. Remove const/volatile qualifiers
5609 for language_cplus and !show_artificial. Use param_type.
5611 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5613 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5614 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5615 * symtab.h (struct symtab) <next>: Comment extension.
5617 2011-02-12 Yao Qi <yao@codesourcery.com>
5619 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5621 2011-02-11 Yao Qi <yao@codesourcery.com>
5623 * common/Makefile.in: Add copyright header.
5625 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5627 * infrun.c (proceed): Move switching out and in of tfind mode from
5629 (fetch_inferior_event): ... to here.
5631 2011-02-11 Yao Qi <yao@codesourcery.com>
5633 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5635 * configure.ac: Add common to sub dir.
5636 * configure: Regenerate.
5638 2011-02-11 Yao Qi <yao@codesourcery.com>
5642 * common/Makefile.in: New.
5643 * common/configure.ac: New.
5644 * common/aclocal.m4: New.
5645 * common/configure: Generate.
5647 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5649 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5650 side of the parenthesis.
5653 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5654 * vec.h (VEC_block_remove): Fix comment.
5656 2011-02-08 Michael Snyder <msnyder@vmware.com>
5658 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5660 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5662 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5663 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5666 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5669 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5671 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5672 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5674 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5676 * dwarf2read.c (read_subroutine_type): Set special calling
5677 convention flag for functions compiled by IBM XL C for OpenCL.
5678 * ppc-sysv-tdep.c: Include "dwarf2.h"
5679 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5681 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5682 IBM OpenCL vector types calling convention.
5683 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5684 (ppc_sysv_abi_broken_return_value): Likewise.
5685 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5686 types calling convention.
5687 (ppc64_sysv_abi_return_value): Likewise.
5688 * spu-tdep.c: Include "dwarf2.h"
5689 (spu_return_value): Implement IBM OpenCL vector types calling
5692 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5694 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5695 correct ABI for AltiVec vector arguments.
5697 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5699 * valprint.c (val_print): Extend comment.
5700 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5701 interface explanation to val_print.
5702 (ada_val_print_array): Adjust comment to current interface.
5703 (print_field_values): Adjust comment to current interface.
5704 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5705 explanation to val_print.
5706 * f-valprint.c (f_val_print): Ditto.
5707 * jv-valprint.c (java_val_print): Ditto.
5708 * m2-valprint.c (m2_val_print): Ditto.
5709 * p-valprint.c (pascal_val_print): Ditto.
5711 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5713 * breakpoint.c (parse_breakpoint_sals): Fix description.
5715 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5716 Oguz Kayral <oguzkayral@gmail.com>
5718 * python/py-inferior.c (python_on_normal_stop): New function.
5719 (python_on_resume): New function.
5720 (python_inferior_exit): New function.
5721 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5722 inferior_exit observers.
5723 * python/py-evtregistry.c: New file.
5724 * python/py-threadevent.c : New file.
5725 * python/py-event.c: New file.
5726 * python/py-evts.c: New file.
5727 * python/py-continueevent.c: New file.
5728 * python/py-bpevent.c: New file.
5729 * python/py-signalevent.c: New file.
5730 * python/py-exetiedevent.c: New file.
5731 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5732 Move struct breakpoint_object from here...
5733 * python/python-internal.h: ... to here.
5734 * python/py-event.h: New file.
5735 * python/py-events.h: New file.
5736 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5737 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5738 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5739 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5740 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5741 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5742 Add build rules for all the above.
5744 2011-02-04 Tom Tromey <tromey@redhat.com>
5746 * dwarf2read.c (dwarf2_section_empty_p): New function.
5747 (dwarf2_read_section): Use dwarf2_section_empty_p.
5748 (dwarf2_section_size): New function.
5749 (dwarf2_get_section_info): Unconditionally read section.
5750 (dwarf2_read_index): Use dwarf2_section_empty_p.
5751 (partial_read_comp_unit_head): Use dwarf2_section_size.
5752 (dwarf2_symbol_mark_computed): Likewise.
5754 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5756 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5758 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5760 * mips-linux-tdep.c: Include xml-syscall.h.
5761 (mips_linux_get_syscall_number): New function.
5762 (mips_linux_init_abi): Add calls to
5763 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5764 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5765 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5766 * syscalls/mips-n32-linux.xml: New file.
5767 * syscalls/mips-n64-linux.xml: New file.
5768 * syscalls/mips-o32-linux.xml: New file.
5770 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5772 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5773 Complain about inverted range entries.
5774 (dwarf2_record_block_ranges): Likewise.
5776 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5779 * breakpoint.c (update_watchpoint): Fix name of the
5780 update_global_location_list function.
5781 (print_one_breakpoint): Fix typo.
5782 (_initialize_breakpoint): Remove extra space in hbreak help
5784 * breakpoint.h (struct bp_location) <length>: Fix field
5787 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5789 * regcache.c (registers_changed_ptid): Don't explictly always
5790 clear `current_regcache'. Only clear current_thread_ptid and
5791 current_thread_arch when PTID matches. Only reinit the frame
5792 cache if PTID matches the current inferior_ptid. Move alloca(0)
5794 (registers_changed): ... here.
5796 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5798 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5799 starts with __stack_chk_guard as stack guard symbol.
5801 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5803 * disasm.c (compare_lines): Handle the end of sequence markers
5804 within the line table to better support disassembling over
5805 compilation unit boundaries.
5807 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5809 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5810 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5811 implementation even if no symbols are available.
5812 (thumb_analyze_prologue): Update call to skip_prologue_function.
5813 (arm_analyze_prologue): Likewise.
5815 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5817 * arm-tdep.c: Include "observer.h".
5818 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5819 (arm_exidx_data_key): New static variable.
5820 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5821 (struct arm_exidx_data): Likewise.
5822 (arm_exidx_data_free): New function.
5823 (arm_compare_exidx_entries): Likewise.
5824 (arm_obj_section_from_vma): Likewise.
5825 (arm_exidx_new_objfile): Likewise.
5826 (arm_find_exidx_entry): Likewise.
5827 (arm_exidx_fill_cache): Likewise.
5828 (arm_exidx_unwind_sniffer): Likewise.
5829 (arm_exidx_unwind): New global variable.
5830 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5831 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5832 observer. Register arm_exidx_data_key as objfile data.
5834 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5836 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5837 due to accessing uninitialized variable. Fix indentation.
5839 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5841 * c-valprint.c (c_value_print): When doing virtual base pointer
5842 adjustment, create a new value with adjusted contents rather than
5843 changing the contents of the value being printed (and getting it
5846 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5848 * xml-support.c (xml_find_attribute): New.
5849 (xinclude_start_include): Use it.
5850 * xml-support.h (xml_find_attribute): Declare.
5851 * memory-map.c (memory_map_start_memory)
5852 (memory_map_start_property): Use xml_find_attribute.
5853 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5855 * remote.c (start_thread): Use xml_find_attribute.
5856 * solib-target.c (library_list_start_segment)
5857 (library_list_start_section, library_list_start_library)
5858 (library_list_start_list): Use xml_find_attribute.
5859 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5860 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5861 (tdesc_start_field): Use xml_find_attribute.
5863 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
5865 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5866 (BUILD_OCL_VTYPES): Update.
5868 2011-02-02 Joel Brobecker <brobecker@adacore.com>
5870 * configure.ac: Work around non-GNU sed limitation when computing
5871 python version number.
5872 * configure: Regenerate.
5874 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5876 Fix debug printing of TYPE_INSTANCE.
5877 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5878 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5880 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5882 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5883 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5884 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5885 * ada-operator.inc: Rename the file to ...
5886 * ada-operator.def: ... here, wrap all the entries by macro OP.
5887 * expprint.c (op_name_standard): Remove all the entries. Include
5888 "std-operator.def" instead.
5889 * expression.h (enum exp_opcode): Include "std-operator.def" and
5890 "ada-operator.def". Move all the entries ...
5891 * std-operator.def: ... here, wrap all the entries by macro OP.
5893 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5895 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5896 * breakpoint.c (remove_jit_event_breakpoints): New function.
5897 * jit.c (jit_descriptor_addr): Delete.
5898 (registering_code): Delete.
5899 (clear_int): Delete.
5900 (jit_inferior_data): New variable.
5901 (struct jit_inferior_data): New type.
5902 (get_jit_inferior_data): New function.
5903 (jit_inferior_data_cleanup): New function.
5904 (jit_read_descriptor): Adjust.
5905 (jit_register_code): Adjust.
5906 (jit_breakpoint_re_set_internal): New function; move code here ...
5907 (jit_inferior_init): ... from here.
5908 (jit_breakpoint_re_set): Adjust.
5909 (jit_reset_inferior_data_and_breakpoints): New function.
5910 (jit_inferior_created_observer): Adjust.
5911 (jit_inferior_exit_hook): Adjust.
5912 (jit_executable_changed_observer): New function.
5913 (jit_event_handler): Adjust.
5914 (_initialize_jit): Adjust.
5916 2011-01-31 Michael Snyder <msnyder@vmware.com>
5918 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5921 2011-01-31 Tom Tromey <tromey@redhat.com>
5924 * python/python.c (execute_gdb_command): Call
5925 prevent_dont_repeat.
5926 * top.c (suppress_dont_repeat): New global.
5927 (dont_repeat): Use it.
5928 (prevent_dont_repeat): New function.
5929 * command.h (prevent_dont_repeat): Declare.
5931 2011-01-31 Tom Tromey <tromey@redhat.com>
5933 * infcmd.c (finish_backward): Use breakpoint_set_silent.
5934 * python/py-breakpoint.c (bppy_set_silent): Use
5935 breakpoint_set_silent.
5936 (bppy_set_thread): Use breakpoint_set_thread.
5937 (bppy_set_task): Use breakpoint_set_task.
5938 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5939 (breakpoint_set_task): Declare.
5940 (make_breakpoint_silent): Remove.
5941 * breakpoint.c (breakpoint_set_silent): New function.
5942 (breakpoint_set_thread): Likewise.
5943 (breakpoint_set_task): Likewise.
5944 (make_breakpoint_silent): Remove.
5946 2011-01-31 Tom Tromey <tromey@redhat.com>
5948 * breakpoint.h (user_breakpoint_p): Declare.
5949 * breakpoint.c (user_breakpoint_p): New function.
5950 (breakpoint_1): Use it.
5951 (save_breakpoints): Likewise.
5953 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5955 * configure.ac: Add handling of Python distribution on Windows.
5956 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5957 sysconfig variables are not defined, then do not use them.
5958 On Windows, if LIBPL is not defined, then use prefix + '/libs'
5959 instead. On Windows, return all paths using forward-slashes
5960 rather than backslashes.
5962 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5964 * configure.ac: Remove fallback behavior for building
5965 against Python. Remove tweaking of Python include path.
5966 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5967 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
5968 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5969 Always restore CPPFLAGS and LIBS after linking test.
5970 * configure: Regenerated.
5971 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5972 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5973 * python/python-internal.h: Adjust includes of Python .h files.
5975 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5977 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
5980 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5982 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
5985 2011-01-31 Yao Qi <yao@codesourcery.com>
5987 * arm-linux-nat.c: Update calls to regcache_register_status
5988 instead of regcache_valid_p.
5989 * aix-thread.c: Likewise.
5990 * i386gnu-nat.c: Likewise.
5992 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5995 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
5996 touching TYPE_FIELD_ARTIFICIAL.
5998 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
6000 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
6003 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6005 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
6006 selected, don't try iterating over the traceframe's blocks.
6007 (tfile_has_stack): If there's no traceframe selected, then there's
6009 (tfile_has_registers): If there's no traceframe selected, then
6010 there's no registers.
6012 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6014 * target.c (memory_xfer_partial): No need to restore shadows if we
6015 haven't read anything.
6017 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6019 * mips-tdep.c (mips_print_register): Use get_frame_register_value
6020 and val_print_scalar_formatted.
6022 2011-01-27 Pedro Alves <pedro@codesourcery.com>
6024 * tracepoint.c (tfile_read): New.
6025 (tfile_open): Use it.
6026 (tfile_get_traceframe_address): Use it.
6027 (tfile_trace_find): Use it.
6028 (walk_blocks_callback_func): New typedef.
6029 (match_blocktype): New function.
6030 (traceframe_walk_blocks): New function.
6031 (traceframe_find_block_type): New function.
6032 (tfile_fetch_registers, tfile_xfer_partial)
6033 (tfile_get_trace_state_variable_value): Use
6034 traceframe_find_block_type and tfile_read.
6036 2011-01-26 Kevin Buettner <kevinb@redhat.com>
6038 * remote-mips.c: Add internationalization mark ups. Remove
6039 trailing \n from already marked up strings.
6041 2011-01-26 Tom Tromey <tromey@redhat.com>
6043 * python/py-prettyprint.c (print_string_repr): Clear
6044 'addressprint' option when calling val_print_string.
6045 (print_children): Handle Val_pretty_default. Clear 'addressprint'
6046 option when calling val_print_string.
6048 2011-01-26 Tom Tromey <tromey@redhat.com>
6050 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
6052 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6054 (gdb_py_longest, gdb_py_ulongest): New typedefs.
6055 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6056 (gdb_py_long_as_ulongest): New defines.
6057 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6058 (gdb_py_int_as_long): Declare.
6059 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6060 GDB_PY_LL_ARG, gdb_py_object_from_longest.
6061 (valpy_long): Add comment.
6062 * python/py-utils.c (get_addr_from_python): Use
6063 gdb_py_long_as_ulongest. Handle overflow properly.
6064 (gdb_py_object_from_longest): New function.
6065 (gdb_py_object_from_ulongest): Likewise.
6066 (gdb_py_int_as_long): Likewise.
6067 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6068 * python/py-symtab.c (salpy_get_pc): Use
6069 gdb_py_long_from_ulongest.
6070 (salpy_get_line): Use PyInt_FromLong.
6071 * python/py-param.c (set_parameter_value): Use
6073 * python/py-lazy-string.c (stpy_get_address): Use
6074 gdb_py_long_from_ulongest.
6075 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6076 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6077 * python/py-breakpoint.c (bppy_set_thread): Use
6079 (bppy_set_task): Likewise.
6080 (bppy_set_ignore_count): Likewise.
6081 (bppy_set_hit_count): Likewise.
6082 * python/py-block.c (blpy_get_start): Use
6083 gdb_py_object_from_ulongest.
6084 (blpy_get_end): Likewise.
6085 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6087 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
6090 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6091 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6092 equality test for objfile, initialize addr_low if needed.
6094 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6096 * tui/tui-regs.c (tui_register_format): Remove dead code.
6098 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6100 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6101 instead of print_scalar_formatted.
6102 (print_scalar_formatted): Don't handle 's' format strings here,
6103 and add an assertion that we never see such format here.
6104 * valprint.h (val_print_scalar_formatted): Declare.
6105 * valprint.c (val_print_scalar_formatted): New.
6106 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6107 instead of print_scalar_formatted.
6108 * jv-valprint.c (java_val_print): Ditto.
6109 * p-valprint.c (pascal_val_print): Ditto.
6110 * ada-valprint.c (ada_val_print_1): Ditto.
6111 * f-valprint.c (f_val_print): Ditto.
6112 * infcmd.c (registers_info): Ditto.
6113 * m2-valprint.c (m2_val_print): Ditto.
6115 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6117 * m2-valprint.c (print_unbounded_array): Pass
6118 value_contents_for_printing rather than value_contents, to
6119 m2_print_array_contents. Also pass in the value.
6121 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6123 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6124 (save_gdb_index_command): Switch to .gdb_index version 4.
6126 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6128 * mi/mi-main.c (get_register): Use get_frame_register_value rather
6129 than frame_register, and always pass a valid value to val_print.
6131 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6133 Centralize printing "<optimized out>".
6135 * valprint.h (val_print_optimized_out): Declare.
6136 * cp-valprint.c (cp_print_value_fields): Use
6137 val_print_optimized_out.
6138 * jv-valprint.c (java_print_value_fields): Ditto.
6139 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6140 * printcmd.c (print_formatted): Ditto.
6141 * valprint.c (valprint_check_validity): Ditto.
6142 (value_check_printable): Ditto.
6143 (val_print_optimized_out): New.
6145 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6147 * infcmd.c (default_print_registers_info): Allocate values so to
6148 never pass a NULL value to val_print.
6150 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6152 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6153 boolean. Make sure to always pass a value that matches the
6154 contents buffer to callees. Preserve `address' for following
6156 * value.c (value_contents_for_printing_const): New.
6157 (value_address): Constify value argument.
6158 * value.h (value_contents_for_printing_const): Declare.
6159 (value_address): Constify value argument.
6161 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6163 * regcache.c (struct regcache_descr): Rename
6164 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6165 and sizeof_cooked_register_valid_p to
6166 sizeof_cooked_register_status.
6167 (init_regcache_descr): Adjust.
6168 (struct regcache): Rename register_valid_p field to
6170 (regcache_xmalloc_1, regcache_xfree, regcache_save)
6171 (do_cooked_read): Adjust.
6172 (regcache_valid_p): Rename to ...
6173 (regcache_register_status): ... this. Adjust.
6174 (regcache_invalidate): Adjust.
6175 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6177 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
6178 as unavailable, not valid.
6179 (regcache_dump): Adjust.
6180 * regcache.h (enum register_status): New.
6181 (regcache_register_status): Declare.
6182 (regcache_invalidate): Delete declaration.
6183 * corelow.c (get_core_registers): Adjust.
6184 * tracepoint.c (tfile_fetch_registers): Adjust.
6185 * trad-frame.c (REG_VALUE): Rename to ...
6186 (TF_REG_VALUE): ... this.
6187 (REG_UNKNOWN): Rename to ...
6188 (TF_REG_UNKNOWN): ... this.
6189 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
6190 * mi/mi-main.c (register_changed_p): Adjust.
6192 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6194 * regcache.c (struct regcache_descr): Remove outdated comment.
6195 (init_regcache_descr): Remove sizeof_raw_register_valid_p
6197 (regcache_xmalloc): Rename to ...
6198 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
6199 Allocate the regcache type accordingly.
6200 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
6201 (regcache_xfree): Asser the source is also readonly. Copy sizeof
6202 cooked registers, not raw.
6203 (regcache_dup_no_passthrough): Delete.
6204 (get_thread_arch_regcache): Use regcache_xmalloc_1.
6205 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
6206 mention obsolete write_register_bytes.
6207 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6209 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6211 Stop remote_read_bytes from handling partial reads itself.
6213 * remote-fileio.c: Include target.h.
6214 (remote_fileio_write_bytes): Delete.
6215 (remote_fileio_func_open, remote_fileio_func_write)
6216 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6218 (remote_fileio_func_stat): Use target_read_memory and
6219 target_write_memory.
6220 (remote_fileio_func_gettimeofday): Use target_write_memory.
6221 (remote_fileio_func_system): Use target_read_memory.
6222 * remote.c (remote_write_bytes): Make it static.
6223 (remote_read_bytes): Don't handle partial reads here.
6224 * remote.h (remote_read_bytes): Delete declaration.
6226 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6228 Simplify XML parsing a bit.
6230 * xml-support.h (gdb_xml_parse_quick): Declare.
6231 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6232 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6234 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6235 gdb_xml_create_parser_and_cleanup_1.
6236 (gdb_xml_parse_quick): New.
6237 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6238 * osdata.c (osdata_parse): Ditto.
6239 * remote.c (remote_threads_info): Ditto.
6240 * solib-target.c (solib_target_parse_libraries): Ditto.
6241 * xml-syscall.c (syscall_parse_xml): Ditto.
6242 * xml-tdesc.c (tdesc_parse_xml): Ditto.
6244 2011-01-24 Kevin Buettner <kevinb@redhat.com>
6246 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6247 with remote-mips.o added to gdb_target_obs.
6248 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6250 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6252 * ada-valprint.c (val_print_packed_array_elements): Pass the
6253 correct struct value to val_print.
6254 (ada_val_print_1): Ditto.
6256 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6258 Don't lose embedded_offset in printing routines throughout.
6260 * valprint.h (val_print_array_elements): Change prototype.
6261 * valprint.c (val_print_array_elements): Add `embedded_offset'
6262 parameter, and adjust to pass it down to val_print, while passing
6263 `valaddr' or `address' unmodified. Take embedded_offset into
6264 account when checking repetitions.
6265 * c-valprint.c (c_val_print): Pass embedded_offset to
6266 val_print_array_elements instead of adjusting `valaddr' and
6268 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6269 embedded_offset to val_print_array_elements instead of adjusting
6271 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6272 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6273 val_print_array_elements and pascal_object_print_value_fields
6274 instead of adjusting `valaddr'.
6275 (pascal_object_print_value_fields): Add `offset' parameter, and
6277 (pascal_object_print_value): Add `offset' parameter, and adjust to
6279 (pascal_object_print_static_field): Use
6280 value_contents_for_printing/value_embedded_offset, rather than
6282 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6283 parameter, and adjust to use it. Use
6284 value_contents_for_printing/value_embedded_offset, rather than
6286 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6287 (ada_val_print_array): Add `offset' parameter, and adjust to use
6289 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6290 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6291 Instead work with offsets. Use
6292 value_contents_for_printing/value_embedded_offset, rather than
6293 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6294 and use value_from_pointer to extract a target pointer, rather
6295 than value_from_longest.
6296 (print_variant_part): Add `offset' parameter. Replace
6297 `outer_valaddr' parameter by a new `outer_offset' parameter.
6298 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6299 (ada_value_print): Use
6300 value_contents_for_printing/value_embedded_offset, rather than
6302 (print_record): Add `offset' parameter, and adjust to pass it
6304 (print_field_values): Add `offset' parameter. Replace
6305 `outer_valaddr' parameter by a new `outer_offset' parameter.
6306 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6307 Use value_contents_for_printing/value_embedded_offset, rather than
6309 * d-valprint.c (dynamic_array_type): Use
6310 value_contents_for_printing/value_embedded_offset, rather than
6312 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6313 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6314 (java_print_value_fields): Take `offset' into account. Don't
6315 re-adjust `valaddr'. Instead pass down adjusted offsets.
6316 (java_val_print): Take `embedded_offset' into account. Pass it to
6317 java_print_value_fields.
6318 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6319 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6320 down adjusted offsets.
6321 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6322 (f_val_print): Take `embedded_offset' into account.
6324 2011-01-21 Joel Brobecker <brobecker@adacore.com>
6326 * inflow.c: Include "gdbcmd.h".
6327 (interactive_mode): New static global, moved here from top.c.
6328 (show_interactive_mode): New function, moved here from top.c.
6329 use gdb_has_a_terminal instead of input_from_terminal_p to
6330 determine the current mode.
6331 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6333 (_initialize_inflow): Add the "set/show interactive-mode"
6334 commands. Moved here from top.c, after having adjusted slightly
6336 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6338 (input_from_terminal_p): Remove handling of "interactive-mode"
6339 setting, moved to infow.c.
6340 (init_main): Remove creation of the "set/show interactive-mode"
6341 commands, moved to inflow.c.
6343 2011-01-19 Joel Brobecker <brobecker@adacore.com>
6345 * NEWS: Add entry for native ia64-hpux support.
6347 2011-01-19 Tom Tromey <tromey@redhat.com>
6350 * thread.c (free_thread): Free 'name'.
6351 (print_thread_info): Emit thread name. Change CLI output.
6352 (thread_name_command): New function.
6353 (do_captured_thread_select): Emit newline.
6354 (_initialize_thread): Register 'thread name' command.
6355 * target.h (struct target_ops) <to_thread_name>: New field.
6356 (target_thread_name): New macro.
6357 * target.c (update_current_target): Handle to_thread_name.
6358 * python/py-infthread.c (thpy_get_name): New function.
6359 (thpy_set_name): Likewise.
6360 (thread_object_getset): Add "name".
6361 * linux-nat.c (linux_nat_thread_name): New function.
6362 (linux_nat_add_target): Set to_thread_name.
6363 * gdbthread.h (struct thread_info) <name>: New field.
6365 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6367 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6368 (ada_val_print_1): Likewise.
6370 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6372 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6373 upper limit address is not greater than the function end address
6374 when the upper limit could not be computed using the debugging
6377 2011-01-17 Tom Tromey <tromey@redhat.com>
6379 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6381 * utils.c: Include gdb_regex.h.
6382 (do_regfree_cleanup): New function.
6383 (make_regfree_cleanup): Likewise.
6384 (get_regcomp_error): Likewise.
6385 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6387 2011-01-17 Tom Tromey <tromey@redhat.com>
6389 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6392 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6394 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6395 for internal variables.
6396 (last_was_structop): New static variable.
6397 (COMPLETE): New token.
6398 (field_exp): New rule to group all '.' suffix handling.
6399 Add mark_struct_expression calls when approriate to be able
6400 to correctly find fields for completion.
6401 (yylex): Adapt to handle field completion and set INTVAR when
6404 2011-01-14 Yao Qi <yao@codesourcery.com>
6406 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6407 save_reggroup, restore_reggroup and all_reggroup.
6409 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6411 * ada-valprint. (ada_printchar): Use the correct type length
6412 in call to ada_emit_char.
6413 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6415 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6417 * solib-som.h (hpux_major_release): Declare variable here.
6418 * solib-som.c: Remove <sys/utsname.h> header.
6419 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6420 (hpux_major_release): Make global, change default value to
6421 DEFAULT_HPUX_MAJOR_RELEASE.
6422 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6423 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6424 Add "solib-som.h" header.
6425 (set_hpux_major_release): New function.
6426 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6428 2011-01-14 Mike Frysinger <vapier@gentoo.org>
6430 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6432 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6434 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6435 new-line at end of warning message.
6436 (ia64_hpux_store_register): Remove trailing new-line at end of
6438 * ia64-hpux-tdep.c: Rephrase comment.
6439 * solib-ia64-hpux.c (struct dld_info): Change type of field
6440 dld_flags from "long long" to ULONGEST.
6442 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6444 * target.h (deprecated_child_ops): Delete declaration.
6445 * target.c (deprecated_child_ops): Delete definition.
6447 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6449 * Makefile.in (hpux-thread.o): Delete rule.
6450 * configure.ac: Don't check for HPUX DCE threads support.
6451 * configure, config.in: Regenerate.
6452 * hppa-hpux-nat.c (child_suppress_run): Delete.
6453 (hppa_hpux_child_can_run): Delete.
6454 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6455 * hpux-thread.c: Delete.
6457 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6459 * hpux-thread.c (hpux_pid_to_str): Delete.
6461 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6463 * ada-valprint.c (ada_emit_char): Remove strange code.
6464 Check that c is <= UCHAR_MAX before passing it to isascii.
6465 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6467 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6469 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6470 to the case where instream is stdin.
6472 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6474 * ia64-tdep.h (struct regcache): Forward declare.
6475 (struct ia64_infcall_ops): New struct type.
6476 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6478 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6479 Renames ia64_find_global_pointer.
6480 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6481 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6482 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6484 (ia64_infcall_ops): New static global constant.
6485 (ia64_gdbarch_init): Set tdep->infcall_ops.
6486 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6487 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6488 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6489 (ia64_hpux_dummy_code): New static global constant.
6490 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6491 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6492 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6494 (ia64_hpux_infcall_ops): New static global constant.
6495 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6496 for inferior function calls to work properly on ia64-hpux.
6498 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6500 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6501 * ia64-tdep.h (struct frame_info): forward declaration.
6502 (struct gdbarch_tdep): Add field size_of_register_frame.
6503 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6504 to determine the size of the register frame.
6505 (ia64_size_of_register_frame): New function.
6506 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6507 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6508 (IA64_HPUX_UREG_REASON): New macro.
6509 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6511 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6512 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6513 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6516 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6518 Add support for ia64-hpux.
6519 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6520 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6522 * configure.host: Add handling for ia64-hpux hosts. Add associated
6524 * configure.tgt: Add handling for ia64-hpux targets.
6525 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6526 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6527 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6529 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6531 [ttrace] Compute thread list immediately after attach.
6532 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6534 (inf_ttrace_attach): Use it.
6536 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6538 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6539 if we could not determine the frame's function address. Instead,
6540 use the frame's PC, and then continue.
6542 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6544 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6545 not already defined.
6547 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6549 * ia64-tdep.c (ia64_struct_type_p): New function.
6550 (ia64_extract_return_value): Handle integral values that are
6551 less than 8 bytes long.
6552 (ia64_push_dummy_call): Likewise.
6554 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6556 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6557 floatformat_ia64_ext.
6558 (floatformat_ia64_ext_big): New static const.
6559 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6561 2011-01-12 Tom Tromey <tromey@redhat.com>
6563 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6565 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6566 (mi_cmd_thread_list_ids): Likewise.
6567 (mi_cmd_data_list_changed_registers): Likewise.
6568 (mi_cmd_data_list_register_values): Likewise.
6569 (mi_cmd_data_write_register_values): Likewise.
6570 (mi_cmd_data_evaluate_expression): Likewise.
6571 (mi_cmd_data_read_memory): Likewise.
6572 (mi_cmd_data_read_memory_bytes): Likewise.
6573 (mi_cmd_data_write_memory): Likewise.
6574 (mi_cmd_enable_timings): Likewise.
6575 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6576 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6577 (mi_cmd_var_delete): Likewise.
6578 (mi_cmd_var_set_format): Likewise.
6579 (mi_cmd_var_show_format): Likewise.
6580 (mi_cmd_var_info_num_children): Likewise.
6581 (mi_cmd_var_list_children): Likewise.
6582 (mi_cmd_var_info_type): Likewise.
6583 (mi_cmd_var_info_expression): Likewise.
6584 (mi_cmd_var_show_attributes): Likewise.
6585 (mi_cmd_var_assign): Likewise.
6586 (mi_cmd_var_update): Likewise.
6587 (mi_cmd_enable_pretty_printing): Likewise.
6588 (mi_cmd_var_set_update_range): Likewise.
6589 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6591 (mi_cmd_target_file_put): Likewise.
6592 (mi_cmd_target_file_delete): Likewise.
6593 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6595 (mi_cmd_stack_info_depth): Likewise.
6596 (mi_cmd_stack_list_locals): Likewise.
6597 (mi_cmd_stack_list_args): Likewise.
6598 (mi_cmd_stack_select_frame): Likewise.
6599 (mi_cmd_stack_select_frame): Likewise.
6600 (mi_cmd_stack_info_frame): Likewise.
6601 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6603 (mi_cmd_file_list_exec_source_files): Likewise.
6604 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6605 (mi_cmd_env_cd): Likewise.
6606 (mi_cmd_env_path): Likewise.
6607 (mi_cmd_env_dir): Likewise.
6608 (mi_cmd_inferior_tty_show): Likewise.
6609 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6610 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6611 (mi_cmd_break_watch): Likewise.
6613 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6615 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6616 (ppc_linux_insert_hw_breakpoint): Likewise.
6617 (ppc_linux_remove_hw_breakpoint): Likewise.
6618 (ppc_linux_insert_watchpoint): Likewise.
6620 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6621 Jan Kratochvil <jan.kratochvil@redhat.com>
6623 PR fortran/11104 and DWARF unbound arrays detection.
6624 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6625 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6626 unspecified upper bound.
6627 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6628 variables array_size_array, tmp_type and offset_item. New variable
6629 array. Remove call to f77_get_upperbound. New variables array_type
6630 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6631 the final call to deprecated_set_value_type.
6633 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6635 Make value allocations more lazy.
6636 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6637 instead of allocate_value and set_value_lazy when possible.
6638 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6639 instead of allocate_value and set_value_lazy.
6640 * findvar.c (value_of_register_lazy): Likewise.
6641 (read_var_value): Remove V preallocation, call just check_typedef in
6642 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6643 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6644 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6645 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6646 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6647 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6648 the end, remove set_value_lazy there.
6649 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6650 instead of allocate_value and set_value_lazy when possible.
6651 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6652 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6653 of allocate_value and set_value_lazy.
6654 (value_from_contents_and_address): Use allocate_value_lazy instead of
6655 allocate_value and set_value_lazy when possible.
6657 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6659 * disasm.c (dump_insns): Support dumping opcodes for MI.
6660 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6661 dumping of instruction opcodes.
6663 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6665 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6668 2011-01-11 Tom Tromey <tromey@redhat.com>
6670 * thread.c (do_captured_thread_select): Emit newline before
6673 2011-01-11 Michael Snyder <msnyder@vmware.com>
6675 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6676 * score-tdep.c: Ditto.
6677 * score-tdep.h: Ditto.
6678 * ser-base.c: Ditto.
6679 * ser-go32.c: Ditto.
6682 * ser-mingw.c: Ditto.
6683 * ser-pipe.c: Ditto.
6685 * ser-unix.c: Ditto.
6686 * sh64-tdep.c: Ditto.
6687 * shnbsd-nat.c: Ditto.
6691 * solib-darwin.c: Ditto.
6692 * solib-frv.c: Ditto.
6694 * solib-irix.c: Ditto.
6695 * solib-osf.c: Ditto.
6696 * solib-pa64.c: Ditto.
6697 * solib-som.c: Ditto.
6698 * solib-spu.c: Ditto.
6699 * solib-sunos.c: Ditto.
6700 * solib-svr4.c: Ditto.
6702 * sol-thread.c: Ditto.
6706 * sparc64-linux-tdep.c: Ditto.
6707 * sparc64-tdep.c: Ditto.
6708 * sparc-linux-nat.c: Ditto.
6709 * sparc-linux-tdep.c: Ditto.
6710 * sparc-sol2-nat.c: Ditto.
6711 * sparc-sol2-tdep.c: Ditto.
6712 * sparc-tdep.c: Ditto.
6713 * sparc-tdep.h: Ditto.
6714 * spu-tdep.c: Ditto.
6715 * stabsread.c: Ditto.
6716 * stabsread.h: Ditto.
6724 * target-descriptions.c: Ditto.
6725 * target-descriptions.h: Ditto.
6727 * target-memory.c: Ditto.
6728 * terminal.h: Ditto.
6731 * tracepoint.c: Ditto.
6732 * tracepoint.h: Ditto.
6733 * trad-frame.h: Ditto.
6734 * typeprint.c: Ditto.
6736 2011-01-11 Michael Snyder <msnyder@vmware.com>
6738 * ui-file.c: Comment cleanup, mostly periods and spaces.
6743 * v850-tdep.c: Ditto.
6744 * valarith.c: Ditto.
6746 * valprint.c: Ditto.
6747 * valprint.h: Ditto.
6752 * vax-tdep.c: Ditto.
6756 * windows-nat.c: Ditto.
6757 * windows-tdep.c: Ditto.
6758 * xcoffread.c: Ditto.
6759 * xcoffsolib.c: Ditto.
6760 * xml-support.c: Ditto.
6761 * xstormy16-tdep.c: Ditto.
6762 * xtensa-tdep.c: Ditto.
6763 * xtensa-tdep.h: Ditto.
6765 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6767 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6768 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6770 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6771 Thiago Jung Bauermann <bauerman@br.ibm.com>
6773 Implement support for PowerPC BookE ranged watchpoints.
6775 (struct breakpoint_ops) <resources_needed>: New method.
6776 Initialize to NULL in all existing breakpoint_ops instances.
6777 (struct breakpoint) <exact>: New field.
6778 (target_exact_watchpoints): Declare external global.
6779 * breakpoint.c (target_exact_watchpoints): New global flag.
6780 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6781 b->enable_state to bp_enabled before calling
6782 hw_watchpoint_used_count.
6783 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6784 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6786 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6787 if the watchpoint is exact.
6788 (resources_needed_watchpoint): New function.
6789 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6790 (watch_command_1): Set b->exact if the user asked for an exact
6791 watchpoint and one can be set.
6792 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6793 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6794 the user asks for an exact watchpoint and one can be set. Return
6795 number of needed debug registers to watch the expression.
6796 * gdbtypes.c (is_scalar_type): New function, based on
6797 valprint.c:scalar_type_p.
6798 (is_scalar_type_recursive): New function.
6799 * gdbtypes.h (is_scalar_type_recursive): Declare.
6800 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6801 handle regions when ranged watchpoints are available.
6802 (create_watchpoint_request): New function.
6803 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6804 create_watchpoint_request.
6805 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6806 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6807 `set powerpc' and `show powerpc' commands.
6808 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6809 Mention documentation comment in the target macro.
6810 (target_region_ok_for_hw_watchpoint): Document return value.
6812 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6814 * breakpoint.c (update_watchpoint): Decide on using a software or
6815 hardware watchpoint after the bp_locations are created.
6817 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6819 Convert hardware watchpoints to use breakpoint_ops.
6820 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6821 <insert_location>: ... this. Return int instead of void.
6822 Accept pointer to struct bp_location instead of pointer to
6823 struct breakpoint. Adapt all implementations.
6824 (breakpoint_ops) <remove>: Rename to...
6825 <remove_location>: ... this. Accept pointer to struct bp_location
6826 instead of pointer to struct breakpoint. Adapt all implementations.
6827 * breakpoint.c (insert_catchpoint): Delete function.
6828 (insert_bp_location): Call the watchpoint or catchpoint's
6829 breakpoint_ops.insert method.
6830 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6831 breakpoint_ops.remove method.
6832 (insert_watchpoint, remove_watchpoint): New functions.
6833 (watchpoint_breakpoint_ops): New structure.
6834 (watch_command_1): Initialize the OPS field.
6835 * inf-child.c (inf_child_insert_fork_catchpoint)
6836 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6837 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6838 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6840 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6841 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6842 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6843 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6844 * target.c (update_current_target): Change default implementation of
6845 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6846 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6847 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6848 to_set_syscall_catchpoint to return_one.
6849 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6850 (debug_to_insert_exec_catchpoint): Report return value.
6851 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6852 (to_insert_exec_catchpoint): Change declaration to return int instead
6855 2011-01-11 Michael Snyder <msnyder@vmware.com>
6857 * arm-tdep.c: Internationalization.
6860 * fork-child.c: Ditto.
6861 * nto-procfs.c: Ditto.
6862 * ppc-sysv-tdep.c: Ditto.
6864 * remote-mips.c: Ditto.
6866 * rs6000-nat.c: Ditto.
6867 * rs6000-tdep.c: Ditto.
6871 * xml-support.c: Ditto.
6872 * mi/mi-cmd-break.c: Ditto.
6873 * mi/mi-cmd-var.c: Ditto.
6874 * mi/mi-interp.c: Ditto.
6875 * mi/mi-main.c: Ditto.
6877 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
6879 * remote-sim.c (gdbsim_store_register): Update API to
6880 sim_store_register to check more error conditions.
6882 2011-01-10 Michael Snyder <msnyder@vmware.com>
6884 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6885 * nto-tdep.c: Ditto.
6886 * nto-tdep.h: Ditto.
6887 * objc-exp.y: Ditto.
6888 * objc-lang.c: Ditto.
6889 * objfiles.c: Ditto.
6890 * objfiles.h: Ditto.
6891 * observer.c: Ditto.
6892 * opencl-lang.c: Ditto.
6895 * parser-defs.h: Ditto.
6898 * posix-hdep.c: Ditto.
6899 * ppcbug-rom.c: Ditto.
6900 * ppc-linux-nat.c: Ditto.
6901 * ppc-linux-tdep.c: Ditto.
6902 * ppc-linux-tdep.h: Ditto.
6903 * ppcnbsd-tdep.c: Ditto.
6904 * ppcobsd-tdep.c: Ditto.
6905 * ppcobsd-tdep.h: Ditto.
6906 * ppc-sysv-tdep.c: Ditto.
6907 * ppc-tdep.h: Ditto.
6908 * printcmd.c: Ditto.
6909 * proc-abi.c: Ditto.
6910 * proc-flags.c: Ditto.
6912 * proc-utils.h: Ditto.
6913 * progspace.h: Ditto.
6914 * prologue-value.c: Ditto.
6915 * prologue-value.h: Ditto.
6916 * psympriv.h: Ditto.
6918 * p-typeprint.c: Ditto.
6919 * p-valprint.c: Ditto.
6920 * ravenscar-sparc-thread.c: Ditto.
6921 * ravenscar-thread.c: Ditto.
6922 * ravenscar-thread.h: Ditto.
6924 * regcache.c: Ditto.
6925 * regcache.h: Ditto.
6927 * remote-fileio.c: Ditto.
6928 * remote-fileio.h: Ditto.
6930 * remote-m32r-sdi.c: Ditto.
6931 * remote-mips.c: Ditto.
6932 * remote-sim.c: Ditto.
6933 * rs6000-aix-tdep.c: Ditto.
6934 * rs6000-nat.c: Ditto.
6935 * rs6000-tdep.c: Ditto.
6937 2011-01-10 Michael Snyder <msnyder@vmware.com>
6939 * charset.c (validate): Internationalization.
6940 * coffread.c (read_one_sym): Ditto.
6941 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6942 * h8300-tdep.c (H8300_extract_return_value): Ditto.
6943 * inflow.c (new_tty): Ditto.
6944 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6945 * m32c-tdep.c (m32c_return_value): Ditto.
6946 * mep-tdep.c (mep_store_return_value): Ditto.
6947 * score-tdep.c (score7_fetch_insn): Ditto.
6948 * ser-mingw.c (pipe_windows_open): Ditto.
6949 * sh64-tdep.c (sh64_extract_return_value): Ditto.
6950 * spu-tdep.c (spu_register_type): Ditto.
6951 * tracepoint.c (trace_find_command): Ditto.
6952 * valarith.c (value_pos): Ditto.
6954 2011-01-10 Joel Brobecker <brobecker@adacore.com>
6956 * ada-valprint.c (printstr): Minor comment reformatting.
6958 2011-01-08 Michael Snyder <msnyder@vmware.com>
6960 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6963 2011-01-08 Michael Snyder <msnyder@vmware.com>
6965 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6966 * hppa-hpux-tdep.c: Ditto.
6967 * hppa-linux-nat.c: Ditto.
6968 * hppa-linux-tdep.c: Ditto.
6969 * hppanbsd-tdep.c: Ditto.
6970 * hppa-tdep.c: Ditto.
6971 * hppa-tdep.h: Ditto.
6972 * hpux-thread.c: Ditto.
6973 * i386-cygwin-tdep.c: Ditto.
6974 * i386-darwin-nat.c: Ditto.
6975 * i386gnu-nat.c: Ditto.
6976 * i386-linux-nat.c: Ditto.
6977 * i386-linux-tdep.c: Ditto.
6978 * i386-nat.c: Ditto.
6979 * i386-nat.h: Ditto.
6980 * i386nbsd-tdep.c: Ditto.
6981 * i386-sol2-nat.c: Ditto.
6982 * i386-stub.c: Ditto.
6983 * i386-tdep.c: Ditto.
6984 * i386-tdep.h: Ditto.
6985 * i387-tdep.c: Ditto.
6986 * ia64-linux-nat.c: Ditto.
6987 * ia64-linux-tdep.c: Ditto.
6988 * ia64-tdep.c: Ditto.
6992 * inferior.c: Ditto.
6993 * inferior.h: Ditto.
6999 * iq2000-tdep.c: Ditto.
7000 * irix5-nat.c: Ditto.
7006 * jv-typeprint.c: Ditto.
7007 * jv-valprint.c: Ditto.
7008 * language.c: Ditto.
7009 * language.h: Ditto.
7010 * linespec.c: Ditto.
7011 * linux-fork.c: Ditto.
7012 * linux-nat.c: Ditto.
7013 * linux-thread-db.c: Ditto.
7014 * lm32-tdep.c: Ditto.
7016 2011-01-08 Michael Snyder <msnyder@vmware.com>
7018 * m2-exp.y: Comment cleanup, mostly periods and spaces.
7020 * m2-typeprint.c: Ditto.
7021 * m2-valprint.c: Ditto.
7022 * m32c-tdep.c: Ditto.
7023 * m32r-linux-nat.c: Ditto.
7024 * m32r-rom.c: Ditto.
7025 * m32r-tdep.c: Ditto.
7026 * m32r-tdep.h: Ditto.
7027 * m68hc11-tdep.c: Ditto.
7028 * m58klinux-nat.c: Ditto.
7029 * m68k-tdep.c: Ditto.
7030 * m88k-tdep.c: Ditto.
7031 * m88k-tdep.h: Ditto.
7032 * machoread.c: Ditto.
7033 * macrocmd.c: Ditto.
7034 * macroexp.c: Ditto.
7035 * macrotab.c: Ditto.
7038 * mdebugread.c: Ditto.
7039 * mdebugread.h: Ditto.
7042 * memory-map.h: Ditto.
7043 * mep-tdep.c: Ditto.
7044 * microblaze-rom.c: Ditto.
7045 * microblaze-tdep.c: Ditto.
7047 * mips-irix-tdep.c: Ditto.
7048 * mips-linux-nat.c: Ditto.
7049 * mips-linux-tdep.c: Ditto.
7050 * mips-linux-tdep.h: Ditto.
7051 * mipsnbsd-nat.c: Ditto.
7052 * mipsnbsd-tdep.c: Ditto.
7053 * mipsread.c: Ditto.
7054 * mips-tdep.c: Ditto.
7055 * mips-tdep.h: Ditto.
7056 * mn10300-linux-tdep.c: Ditto.
7057 * mn10300-tdep.c: Ditto.
7058 * mn10300-tdep.h: Ditto.
7061 * moxie-tdep.c: Ditto.
7062 * moxie-tdep.h: Ditto.
7065 2011-01-08 Mike Frysinger <vapier@gentoo.org>
7067 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7069 2011-01-08 Robert Millan <rmh@gnu.org>
7071 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7073 2011-01-07 Michael Snyder <msnyder@vmware.com>
7075 * charset.c (_initialize_charset): Fix typo in string.
7077 2011-01-07 Michael Snyder <msnyder@vmware.com>
7079 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7081 * tui/tui-layout.c (tui_set_layout_for_display_command):
7082 Split line so that operator goes to beginning of line.
7083 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7084 assignment out of if statement.
7086 2011-01-07 Michael Snyder <msnyder@vmware.com>
7088 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7089 * ada-lang.h: Ditto.
7090 * ada-tasks.c: Ditto.
7091 * ada-valprint.c: Ditto.
7092 * aix-threads.c: Ditto.
7093 * alpha-linux-nat.c: Ditto.
7094 * alpha-linux-tdep.c: Ditto.
7095 * alpha-mdebug-tdep.c: Ditto.
7096 * alpha-nat.c: Ditto.
7097 * alpha-osf1-tdep.c: Ditto.
7098 * alpha-tdep.c: Ditto.
7099 * alphabsd-nat.c: Ditto.
7100 * alphabsd-tdep.c: Ditto.
7101 * amd64-darwin-tdep.c: Ditto.
7102 * amd64-linux-nat.c: Ditto.
7103 * amd64-linux-tdep.c: Ditto.
7104 * amd64-sol2-tdep.c: Ditto.
7105 * amd64-tdep.c: Ditto.
7106 * amd64-fbsd-tdep.c: Ditto.
7107 * amd64-nbsd-tdep.c: Ditto.
7108 * amd64-obsd-tdep.c: Ditto.
7109 * amd64-linux-nat.c: Ditto.
7110 * amd64-linux-tdep.c: Ditto.
7111 * arm-tdep.c: Ditto.
7112 * arm-tdep.h: Ditto.
7113 * armnbsd-nat.c: Ditto.
7114 * avr-tdep.c: Ditto.
7115 * bfin-tdep.c: Ditto.
7117 * c-typeprintc: Ditto.
7118 * c-valprint.c: Ditto.
7119 * coff-pe-read.h: Ditto.
7120 * coffreead.c: Ditto.
7121 * cris-tdep.c: Ditto.
7123 * darwin-nat-info.c: Ditto.
7124 * darwin-nat.c: Ditto.
7125 * dbug-rom.c: Ditto.
7129 * dec-thread.c: Ditto.
7131 * demangle.c: Ditto.
7132 * dicos-tdep.c: Ditto.
7133 * dictionary.c: Ditto.
7134 * dictionary.h: Ditto.
7135 * dink32-rom.c: Ditto.
7137 * doublest.c: Ditto.
7139 * dummy-frame.c: Ditto.
7140 * dwarf2-frame.c: Ditto.
7141 * dwarf2expr.c: Ditto.
7142 * dwarf2loc.c: Ditto.
7143 * dwarf2read.c: Ditto.
7147 * event-top.h: Ditto.
7148 * exceptions.c: Ditto.
7149 * exceptions.h: Ditto.
7151 * expprint.c: Ditto.
7152 * expression.h: Ditto.
7156 * f-typeprint.c: Ditto.
7157 * f-valprint.c: Ditto.
7158 * fbsd-nat.c: Ditto.
7160 * fork-child.c: Ditto.
7163 * frv-linux-tdep.c: Ditto.
7164 * frv-tdep.c: Ditto.
7166 * gdb-stabs.h: Ditto.
7167 * gdb_assert.h: Ditto.
7168 * gdb_string.h: Ditto.
7169 * gdb_thread_db.h: Ditto.
7170 * gdb_wait.h: Ditto.
7171 * gdbarch.sh: Ditto.
7173 * gdbthread.h: Ditto.
7174 * gdbtypes.c: Ditto.
7175 * gdbtypes.h: Ditto.
7178 * gnu-v2-abi.c: Ditto.
7179 * gnu-v3-abi.c: Ditto.
7180 * go32-nat.c: Ditto.
7181 * gdbarch.c: Regenerate.
7182 * gdbarch.h: Regenerate.
7184 2011-01-07 Michael Snyder <msnyder@vmware.com>
7186 * ax-gdb.c: Adjust some long output strings.
7187 * breakpoint.c: Ditto.
7192 * linux-nat.c: Ditto.
7193 * solib-pa64.c: Ditto.
7194 * solib-som.c: Ditto.
7196 2011-01-06 Tom Tromey <tromey@redhat.com>
7200 * python/python.c (GdbMethods): Add "newest_frame" method.
7201 * python/python-internal.h (gdbpy_newest_frame): Declare.
7202 * python/py-frame.c (gdbpy_newest_frame): New function.
7204 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
7206 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
7207 * jit.c (jit_debug): New variable.
7208 (show_jit_debug): New function.
7209 (struct target_buffer): Use ULONGEST.
7210 (bfd_open_from_target_memory): Likewise.
7211 (jit_register_code, jit_inferior_init): Add debug output.
7212 (_initialize_jit): Register "debug jit" command.
7214 2011-01-06 Tom Tromey <tromey@redhat.com>
7216 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7217 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7220 2011-01-06 Tom Tromey <tromey@redhat.com>
7222 * python/py-frame.c (frapy_block): Use get_frame_block.
7224 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7226 Do not stop on SIGPRIO signals by default
7227 * infrun.c (_initialize_infrun): Unset signal_stop and
7228 signal_print for TARGET_SIGNAL_PRIO.
7230 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7232 * ada-tasks.c: Fix style violation in comment.
7234 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7236 * linespec.c (decode_compound, find_method): Remove trailing \n
7237 at end of error string.
7238 * solib-irix.c (irix_current_sos): Likewise.
7239 * varobj.c (uninstall_variable): Likewise.
7241 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7243 * copyright.py: New script.
7244 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7245 Launch emacs without exec'ing. Call copyright.py afterwards.
7247 2011-01-05 Michael Snyder <msnyder@vmware.com>
7249 * addrmap.c: Shorten lines of >= 80 columns.
7250 * arch-utils.c: Ditto.
7251 * arch-utils.h: Ditto.
7253 * ax-general.c: Ditto.
7255 * blockframe.c: Ditto.
7256 * breakpoint.c: Ditto.
7257 * buildsym.c: Ditto.
7259 * c-typeprint.c: Ditto.
7261 * coffread.c: Ditto.
7265 * cp-namespace.c: Ditto.
7266 * cp-support.c: Ditto.
7267 * dbug-rom.c: Ditto.
7272 * dictionary.c: Ditto.
7274 * doublest.c: Ditto.
7275 * dwarf2-frame.c: Ditto.
7276 * dwarf2expr.c: Ditto.
7277 * dwarf2loc.c: Ditto.
7278 * dwarf2read.c: Ditto.
7281 * event-loop.c: Ditto.
7282 * event-loop.h: Ditto.
7283 * exceptions.h: Ditto.
7285 * expprint.c: Ditto.
7286 * expression.h: Ditto.
7288 * f-valprint.c: Ditto.
7290 * frame-base.c: Ditto.
7291 * frame-unwind.c: Ditto.
7292 * frame-unwind.h: Ditto.
7296 * gdb-stabs.h: Ditto.
7297 * gdb_assert.h: Ditto.
7298 * gdb_dirent.h: Ditto.
7299 * gdb_obstack.h: Ditto.
7301 * gdbtypes.c: Ditto.
7302 * gdbtypes.h: Ditto.
7303 * inf-ttrace.c: Ditto.
7308 * inline-frame.h: Ditto.
7309 * language.c: Ditto.
7310 * language.h: Ditto.
7311 * libunwind-frame.c: Ditto.
7312 * libunwind-frame.h: Ditto.
7313 * linespec.c: Ditto.
7314 * linux-nat.c: Ditto.
7315 * linux-nat.h: Ditto.
7316 * linux-thread-db.c: Ditto.
7317 * machoread.c: Ditto.
7318 * macroexp.c: Ditto.
7319 * macrotab.c: Ditto.
7322 * mdebugread.c: Ditto.
7327 * objfiles.c: Ditto.
7328 * objfiles.h: Ditto.
7330 * p-typeprint.c: Ditto.
7331 * p-valprint.c: Ditto.
7333 * printcmd.c: Ditto.
7334 * proc-events.c: Ditto.
7336 * progspace.c: Ditto.
7337 * progspace.h: Ditto.
7338 * psympriv.h: Ditto.
7341 * regcache.c: Ditto.
7342 * regcache.h: Ditto.
7343 * remote-fileio.c: Ditto.
7345 * ser-mingw.c: Ditto.
7347 * ser-unix.c: Ditto.
7350 * solib-frv.c: Ditto.
7351 * solib-irix.c: Ditto.
7352 * solib-osf.c: Ditto.
7353 * solib-pa64.c: Ditto.
7354 * solib-som.c: Ditto.
7355 * solib-sunos.c: Ditto.
7356 * solib-svr4.c: Ditto.
7357 * solib-target.c: Ditto.
7361 * stabsread.c: Ditto.
7362 * stabsread.c: Ditto.
7365 * symfile-mem.c: Ditto.
7371 * target-descriptions.c: Ditto.
7372 * target-memory.c: Ditto.
7375 * terminal.h: Ditto.
7378 * tracepoint.c: Ditto.
7379 * tracepoint.h: Ditto.
7383 * user-regs.c: Ditto.
7384 * user-regs.h: Ditto.
7386 * valarith.c: Ditto.
7388 * valprint.c: Ditto.
7389 * valprint.h: Ditto.
7394 * xcoffread.c: Ditto.
7395 * xcoffsolib.c: Ditto.
7396 * xcoffsolib.h: Ditto.
7397 * xml-syscall.c: Ditto.
7398 * xml-tdesc.c: Ditto.
7400 2011-01-05 Michael Snyder <msnyder@vmware.com>
7402 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7403 * cli/cli-decode.c: Ditto.
7404 * cli/cli-dump.c: Ditto.
7405 * cli/cli-logging.c: Ditto.
7406 * cli/cli-script.c: Ditto.
7407 * cli/cli-setshow.c: Ditto.
7408 * common/signals.c: Ditto.
7409 * mi/mi-cmd-break.c: Ditto.
7410 * mi/mi-cmd-disas.c: Ditto.
7411 * mi/mi-cmd-stack.c: Ditto.
7412 * mi/mi-cmd-var.c: Ditto.
7413 * mi/mi-cmds.c: Ditto.
7414 * mi/mi-common.h: Ditto.
7415 * mi/mi-console.c: Ditto.
7416 * mi/mi-interp.c: Ditto.
7417 * mi/mi-main.c: Ditto.
7418 * osf-share/cma_attr.c: Ditto.
7419 * osf-share/cma_deb_core.h: Ditto.
7420 * osf-share/cma_debug_client.h: Ditto.
7421 * osf-share/cma_handle.h: Ditto.
7422 * osf-share/cma_mutex.h: Ditto.
7423 * osf-share/cma_stack_int.h: Ditto.
7424 * osf-share/cma_tcb_defs.h: Ditto.
7425 * python/py-auto-load.c: Ditto.
7426 * python/py-breakpoint.c: Ditto.
7427 * python/py-cmd.c: Ditto.
7428 * python/py-frame.c: Ditto.
7429 * python/py-objfile.c: Ditto.
7430 * python/py-param.c: Ditto.
7431 * python/py-progspace.c: Ditto.
7432 * python/py-symbol.c: Ditto.
7433 * python/py-value.c: Ditto.
7434 * python/python-internal.h: Ditto.
7435 * python/python.c: Ditto.
7436 * tui/tui-data.c: Ditto.
7437 * tui/tui-disasm.c: Ditto.
7438 * tui/tui-hooks.c: Ditto.
7439 * tui/tui-io.c: Ditto.
7440 * tui/tui-layout.c: Ditto.
7441 * tui/tui-regs.c: Ditto.
7442 * tui/tui-source.c: Ditto.
7443 * tui/tui-stack.c: Ditto.
7444 * tui/tui-win.c: Ditto.
7445 * tui/tui-windata.c: Ditto.
7446 * tui/tui-winsource.c: Ditto.
7448 2011-01-05 Joel Brobecker <brobecker@adacore.com>
7450 * configure.ac, gdb.1: Copyright year update.
7452 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7454 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7455 this_pc_in_block, morestack_msym and morestack_name. Check for
7456 "__morestack" minimal symbol there.
7458 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7460 * symfile.c (find_sym_fns): Add call to dont_repeat.
7462 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7464 Copyright year update in most files (performed by copyright.sh).
7466 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7468 * top.c (print_gdb_version): Update copyright year in version output.
7470 For older changes see ChangeLog-2010.
7476 version-control: never