1 2011-07-07 Hui Zhu <teawater@gmail.com>
4 2011-07-06 Hui Zhu <teawater@gmail.com>
5 * remote.c (remote_start_remote): Add TRY_CATCH for
6 remote_get_trace_status.
7 * tracepoint.c (disconnect_tracing): Ditto.
9 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
11 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
12 variables as signed, not unsigned.
14 2011-07-06 Joel Brobecker <brobecker@adacore.com>
16 * jit.c (jit_inferior_init): Reformat forward declaration.
18 2011-07-06 Matt Rice <ratmice@gmail.com>
20 * MAINTAINERS (Write After Approval): Add myself to the list.
22 2011-07-06 Hui Zhu <teawater@gmail.com>
24 * remote.c (remote_start_remote): Add TRY_CATCH for
25 remote_get_trace_status.
26 * tracepoint.c (disconnect_tracing): Ditto.
28 2011-07-05 Tom Tromey <tromey@redhat.com>
30 * symtab.c (operator_chars): Now static.
31 * linespec.c (operator_chars): Don't declare.
33 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
35 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
37 2011-07-05 Tom Tromey <tromey@redhat.com>
39 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
40 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
41 (TYPE_CPLUS_REALLY_JAVA): New macro.
42 * dwarf2read.c (process_structure_scope): Set
43 TYPE_CPLUS_REALLY_JAVA.
45 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
47 * ada-lang.c: Fix typos.
48 * amd64-tdep.c: Likewise.
49 * breakpoint.c: Likewise.
50 * cli/cli-decode.c: Likewise.
51 * findcmd.c: Likewise.
52 * inline-frame.c: Likewise.
53 * mi/mi-main.c: Likewise.
54 * minsyms.c: Likewise.
55 * monitor.c: Likewise.
56 * monitor.h: Likewise.
57 * prologue-value.c: Likewise.
58 * reverse.c: Likewise.
59 * s390-tdep.c: Likewise.
61 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
63 * jit.c (jit_inferior_init): Forward declare.
64 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
66 2011-07-04 Joel Brobecker <brobecker@adacore.com>
68 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
70 2011-07-04 Tristan Gingold <gingold@adacore.com>
72 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
73 (tcb_fieldno): Add activation_link field.
74 (get_known_tasks_addr): Moved and rewritten.
75 (get_tcb_types_info): Set activation_link field.
76 (read_known_tasks_array): Add parameter. Rewritten.
77 (read_known_tasks_list): New function.
78 (read_known_tasks): New function.
79 (ada_build_task_list): Call read_known_tasks instead of
80 read_known_tasks_array.
81 * ravenscar-thread.c: Add first_task_name constant.
82 (has_ravenscar_runtime): Check for task list too.
84 2011-07-04 Tristan Gingold <gingold@adacore.com>
86 * ada-tasks.c: Renames fieldno to actb_fieldno.
87 (ada_get_task_number): Indentation.
88 (get_tcb_types_info): Remove all parameters. Write directly
90 (ptid_from_atcb_common): Adjust.
93 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
95 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
97 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
99 * ui-out.c (ui_out_field_core_addr): Mention that the function
100 description is in the header file.
101 * ui-out.h (ui_out_field_core_addr): Document function.
103 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
105 * ui-out.c (ui_out_get_field_separator): Remove unused function.
106 * ui-out.h (ui_out_get_field_separator): Remove prototype.
108 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
110 * symtab.c (expand_line_sal): Remove empty line.
112 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
114 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
115 same way as ELFOSABI_NONE.
116 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
118 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
120 * breakpoint.c: Fix typos in comments.
121 * linespec.c: Likewise.
122 * symtab.c: Likewise.
124 2011-07-04 Joel Brobecker <brobecker@adacore.com>
126 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
127 section in separate object files.
129 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
131 Fix false GCC warning.
132 * linespec.c (decode_line_1): Initialize values.
134 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
136 * linespec.c (find_method): Accept the function type automatically only
137 if it was specified with parameter types.
139 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
141 Stop on first linespec terminator instead of eating what we can.
142 * linespec.c (is_linespec_boundary): New function.
143 (name_end): Remove function.
144 (keep_name_info): New parameter on_boundary, replace the body.
145 (decode_line_1): Provide the parameter to keep_name_info.
146 (decode_compound): Likewise. Drop the trailing java return type
149 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
151 Fall back linespec to minimal symbols.
152 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
153 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
154 (find_method, symbol_found): Change error to cplusplus_error.
156 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
158 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
160 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
161 Tom Tromey <tromey@redhat.com>
163 * dwarf2read.c (check_physname): New variable.
164 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
165 (show_check_physname): New function.
166 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
168 2011-07-01 Joel Brobecker <brobecker@adacore.com>
170 * machoread.c (macho_symfile_read): Delete OBE comment.
172 2011-07-01 Joel Brobecker <brobecker@adacore.com>
174 * machoread.c (struct macho_oso_data): Delete.
175 (current_oso): Delete.
176 (macho_relocate_common_syms): New function, mostly extracted
178 (macho_add_oso_symfile): Call macho_relocate_common_syms.
179 Remove code that sets and unset current_oso.
180 (macho_symfile_relocate): Delete handling of common symbols,
181 now moved to macho_relocate_common_syms.
183 2011-07-01 Joel Brobecker <brobecker@adacore.com>
185 * darwin-nat.c (darwin_ptrace): Add documentation.
186 Set errno to zero before calling ptrace. If ptrace returns
187 -1 and errno is zero, then change then return zero.
188 (darwin_kill_inferior): Issue a warning instead of triggering
189 a failed assertion when the PT_KILL ptrace operations returned
192 2011-07-01 Joel Brobecker <brobecker@adacore.com>
194 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
195 only when inf->private->no_ptrace.
197 2011-07-01 Joel Brobecker <brobecker@adacore.com>
199 * ada-lang.c (print_it_exception): Print temporary catchpoints
200 as "Temporary catchpoint".
201 (print_mention_exception): Likewise.
203 2011-07-01 Tom Tromey <tromey@redhat.com>
205 * jv-lang.c (java_language_defn): Use java_printchar,
207 (java_get_encoding): New function.
208 (java_emit_char): Use generic_emit_char.
209 (java_printchar): New function.
210 (java_printstr): Likewise.
212 2011-07-01 Joel Brobecker <brobecker@adacore.com>
214 * ada-typeprint.c (print_record_type): If unable to decode
215 the name of the parent type, use the encoded name.
217 2011-07-01 Jean-Charles Delay <delay@adacore.com>
219 * ada-typeprint.c (ada_print_type): Fix both PAD type and
220 pointer to constrained packed array type output.
221 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
224 2011-07-01 Jean-Charles Delay <delay@adacore.com>
226 * ada-typeprint.c (print_array_type): removed if condition on show
227 being negative for bounds printing.
229 2011-07-01 Joel Brobecker <brobecker@adacore.com>
231 * ada-lang.c (ada_identical_enum_types_p): New function.
232 (symbols_are_identical_enums): New function.
233 (remove_extra_symbols): Do nothing if NSYMS < 2.
234 Use symbols_are_identical_enums.
236 2011-07-01 Joel Brobecker <brobecker@adacore.com>
238 * ada-valprint.c (ada_value_print): Handle typedefs.
240 2011-07-01 Joel Brobecker <brobecker@adacore.com>
242 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
244 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
246 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
247 (decode_constrained_packed_array): Likewise.
248 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
250 2011-07-01 Joel Brobecker <brobecker@adacore.com>
252 * ada-exp.y (convert_char_literal): Handle typedef types.
254 2011-07-01 Joel Brobecker <brobecker@adacore.com>
256 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
258 2011-06-30 Tom Tromey <tromey@redhat.com>
260 * varobj.c (varobj_create): Call do_cleanups on early exit path.
261 * valops.c (find_overload_match): Call do_cleanups on early exit
263 * solib.c (solib_find): Call do_cleanups on early exit path.
265 2011-06-30 Tom Tromey <tromey@redhat.com>
267 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
268 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
269 return paths. Defer final do_cleanups until last return.
270 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
273 2011-06-30 Tom Tromey <tromey@redhat.com>
275 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
277 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
279 * MAINTAINERS (Write After Approval): Add myself to the list.
281 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
283 Disable epilogue unwinders on recent GCCs.
284 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
285 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
286 * dwarf2read.c (process_full_comp_unit): Initialize
287 EPILOGUE_UNWIND_VALID.
288 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
289 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
290 * symtab.h (struct symtab): New field epilogue_unwind_valid.
292 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
294 Code cleanup - reformatting.
295 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
296 (producer_is_gcc_ge_4): ... here, change the return value.
297 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
300 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
302 Fix non-only rename list for Fortran modules import.
303 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
304 cp_add_using_directive caller.
305 (cp_add_using_directive): New parameter excludes, describe it. New
306 variables ix and param. Compare if also excludes match. Allocate NEW
307 with variable size, initialize EXCLUDES there.
308 (cp_lookup_symbol_imports): New variable excludep, test
309 current->EXCLUDES with it.
310 * cp-support.h: Include vec.h.
311 (struct using_direct): New field excludes, describe it.
312 (DEF_VEC_P (const_char_ptr)): New.
313 (cp_add_using_directive): New parameter excludes.
314 * defs.h (const_char_ptr): New typedef.
315 * dwarf2read.c (read_import_statement): New variables child_die,
316 excludes and cleanups, read in excludes.
317 (read_namespace): Adjust the cp_add_using_directive caller.
319 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
322 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
323 negative comparisons.
325 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
327 * mi/mi-main.c (mi_cmd_list_features): Emit
328 breakpoint-notifications.
330 2011-06-29 Tom Tromey <tromey@redhat.com>
333 * valprint.h (generic_emit_char, generic_printstr): Declare.
334 * valprint.c (wchar_printable, append_string_as_wide)
335 (print_wchar): Move from c-lang.c.
336 (generic_emit_char): New function; mostly taken from c_emit_char.
337 (generic_printstr): New function; mostly taken from c_printstr.
338 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
339 represented as arrays.
340 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
342 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
343 identically to TYPE_CODE_INT.
344 * f-lang.c (f_get_encoding): New function.
345 (f_emit_char): Use generic_emit_char.
346 (f_printchar): Replace comment.
347 (f_printstr): Use generic_printstr.
348 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
349 "character" types specially.
350 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
352 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
354 (c_emit_char): Call generic_emit_char.
355 (c_printstr): Call generic_printstr.
357 2011-06-29 Gary Benson <gbenson@redhat.com>
359 * breakpoint.c (bpstat_what): Removed duplicated case.
361 2011-06-28 Tom Tromey <tromey@redhat.com>
363 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
365 2011-06-27 Tom Tromey <tromey@redhat.com>
367 * valops.c (find_overload_match): Call do_cleanups before early
369 * top.c (execute_command): Call do_cleanups before early return.
370 (command_loop): Likewise.
371 * stack.c (backtrace_command): Make a null cleanup early. Don't
372 conditionally call do_cleanups.
373 * python/py-value.c (TRY_CATCH): Move cleanup handling into
375 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
376 so cleanups are always run.
377 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
378 * findcmd.c (parse_find_args): Call do_cleanups on early return
380 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
381 Don't conditionally call do_cleanups.
382 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
385 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
387 * MAINTAINERS (Write After Approval): Use default email address.
389 2011-06-27 Joel Brobecker <brobecker@adacore.com>
391 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
393 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
395 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
396 saved_regs_mask and copied_regs_mask fields.
397 (sparc_record_save_insn): New prototype.
398 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
399 (sparc_record_save_insn): New function.
400 (sparc_analyze_prologue): Add head comment. Recognize store insns
401 of call-saved registers. Use OFFSET consistently. Recognize flat
402 frames and cache their settings.
403 (sparc32_skip_prologue): Handle flat frames.
404 (sparc_frame_cache): Add frame_offset to the base address.
405 (sparc32_frame_cache): Adjust to new frame description.
406 (sparc32_frame_prev_register): Likewise.
407 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
408 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
409 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
410 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
411 frame by calling sparc_record_save_insn.
412 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
413 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
414 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
416 2011-06-27 Tristan Gingold <gingold@adacore.com>
418 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
419 field by map_addr and map_len.
420 (dwarf2_read_section): Adjust for the new bfd_mmap api.
421 (munmap_section_buffer): Likewise.
423 2011-06-24 Tom Tromey <tromey@redhat.com>
425 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
426 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
427 * python/python.c (gdbpy_parameter): Make 'arg' const.
428 (execute_gdb_command): Likewise.
429 (gdbpy_decode_line): Likewise. Copy it.
430 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
431 (gdbpy_write): Make 'arg' const.
432 * python/py-type.c (typy_lookup_typename): Make 'type_name'
434 (gdbpy_lookup_type): Likewise.
435 * python/py-prettyprint.c (print_children): Make 'name' const.
436 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
437 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
439 * python/py-function.c (fnpy_init): Make 'name' const.
440 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
441 (gdbpy_string_to_argv): Make 'input' const.
442 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
444 * gdbtypes.h (lookup_typename): Update.
445 * gdbtypes.c (lookup_typename): Make 'name' const.
446 (lookup_struct): Likewise.
447 (lookup_union): Likewise.
448 (lookup_enum): Likewise.
450 2011-06-24 Tom Tromey <tromey@redhat.com>
452 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
453 gdb_thread_db.h. Move all common/ entries to be together.
454 (TAGS): Don't depend on DEPFILES.
456 2011-06-23 Yao Qi <yao@codesourcery.com>
458 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
459 * remote.c (remote_start_remote): ... here.
460 * monitor.c (monitor_open): ... here.
462 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
464 * gdbtypes.c (append_composite_type_field_aligned): Fix
465 calculation of bit position based on alignment.
467 2011-06-22 Pedro Alves <pedro@codesourcery.com>
469 * breakpoint.c (bpstat_stop_status): Call the check_status
470 breakpoint_ops method.
471 (print_one_breakpoint_location): Also print the condition for Ada
472 exception catchpoints.
473 (allocate_bp_location): New, factored out from
474 allocate_bp_location.
475 (allocate_bp_location): Adjust. Call the owner breakpoint's
476 allocate_location method, if there is one.
477 (free_bp_location): Call the locations's dtor method, if there is
479 (init_raw_breakpoint_without_location): New breakpoint_ops
481 (set_raw_breakpoint_without_location): Adjust.
482 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
483 (set_raw_breakpoint): Adjust.
484 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
485 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
486 re_set and check_status methods.
487 (init_catchpoint): Don't memset, initialize thread, addr_string
488 and enable_state. Pass the ops down to init_raw_breakpoint.
489 (install_catchpoint): Rename to ...
490 (install_breakpoint): ... this, and make extern.
491 (create_fork_vfork_event_catchpoint): Adjust.
492 (catch_exec_breakpoint_ops): Install NULL allocate_location,
493 re_set and check_status methods.
494 (create_syscall_event_catchpoint): Adjust.
495 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
496 (masked_watchpoint_breakpoint_ops): Install NULL
497 allocate_location, re_set and check_status methods.
498 (catch_exec_command_1): Adjust.
499 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
500 re_set and check_status methods.
501 (create_ada_exception_breakpoint): Rename to ...
502 (init_ada_exception_breakpoint): ... this. Add a struct
503 breakpoint parameter, and delete the exp_string, cond_string and
504 cond parameters. Use init_raw_breakpoint, and don't install or
505 mention the breakpoint yet. Don't clear breakpoint fields that
506 init_raw_breakpoint already clears.
507 (re_set_breakpoint): Delete, split into ...
508 (breakpoint_re_set_default, prepare_re_set_context): ... these new
510 (breakpoint_re_set_one): Call the breakpoint's
511 breakpoint_ops->re_set implementation, if there's one. Adjust.
512 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
513 (struct bp_location_ops): New type.
514 (struct bp_location): New field `ops'.
515 (struct breakpoint_ops): New `allocate_location', `re_set' and
516 `check_status' fields. Make `breakpoint_hit''s description match
518 (init_bp_location): Declare.
519 (breakpoint_re_set_default): Declare.
520 (create_ada_exception_breakpoint): Rename to ...
521 (init_ada_exception_breakpoint): ... this. Add a struct
522 breakpoint parameter, and delete the exp_string, cond_string and
524 (install_breakpoint): Declare.
525 * ada-lang.c: Include exceptions.h.
526 <Ada exceptions description>: Update.
527 (struct ada_catchpoint_location): New type.
528 (ada_catchpoint_location_dtor): New function.
529 (ada_catchpoint_location_ops): New global.
530 (ada_catchpoint): New type.
531 (create_excep_cond_exprs): New function.
532 (dtor_exception, allocate_location_exception, re_set_exception)
533 (should_stop_exception, check_status_exception): New functions.
534 (print_one_exception, print_mention_exception)
535 (print_recreate_exception): Adjust.
536 (dtor_catch_exception, allocate_location_catch_exception)
537 (re_set_catch_exception, check_status_catch_exception): New
539 (catch_exception_breakpoint_ops): Install them.
540 (dtor_catch_exception_unhandled)
541 (allocate_location_catch_exception_unhandled)
542 (re_set_catch_exception_unhandled)
543 (check_status_catch_exception_unhandled): New functions.
544 (catch_exception_unhandled_breakpoint_ops): Install them.
545 (dtor_catch_assert, allocate_location_catch_assert)
546 (re_set_catch_assert, check_status_catch_assert): New functions.
547 (catch_assert_breakpoint_ops): Install them.
548 (ada_exception_catchpoint_p): Delete.
549 (catch_ada_exception_command_split)
550 (ada_exception_catchpoint_cond_string): Rename exp_string
551 parameter to excep_string. Adjust.
552 (ada_parse_catchpoint_condition): Delete.
553 (ada_exception_sal): Rename the exp_string parameter to
554 excep_string. Delete the cond_string and cond parameters.
556 (ada_decode_exception_location): Rename the exp_string parameter
557 to excep_string. Delete the cond_string and cond parameters.
559 (create_ada_exception_catchpoint): New function.
560 (catch_ada_exception_command, ada_decode_assert_location)
561 (catch_assert_command): Adjust.
562 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
564 2011-06-22 Pedro Alves <pedro@codesourcery.com>
566 * ada-lang.c: Include arch-utils.h.
567 (ada_decode_exception_location): Make static.
568 (catch_ada_exception_command): Moved here from breakpoint.c.
569 (ada_decode_assert_location): Make static.
570 (catch_assert_command): Moved here from breakpoint.c.
571 (_initialize_ada_lang): Install the exception and assert
572 catchpoint commands here.
573 * ada-lang.h (ada_decode_exception_location)
574 (ada_decode_assert_location): Delete declarations.
575 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
577 (create_ada_exception_breakpoint): Make extern.
578 (catch_ada_exception_command, catch_assert_command): Moved to
580 (add_catch_command): Make extern.
581 (_initilize_breakpoint): Don't install the exception and assert
582 catchpoint commands here.
583 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
585 (add_catch_command, create_ada_exception_breakpoint): Declare.
587 2011-06-22 Pedro Alves <pedro@codesourcery.com>
589 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
590 the breakpoint to the breakpoint chain here.
591 (set_raw_breakpoint_without_location): Add the breakpoint to the
592 breakpoint chain here.
593 (init_raw_breakpoint): Adjust comments.
594 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
596 (init_catchpoint): Don't set the catchpoint's breakpoint number
598 (install_catchpoint): New function.
599 (create_fork_vfork_event_catchpoint)
600 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
601 use install_catchpoint.
603 2011-06-22 Pedro Alves <pedro@codesourcery.com>
605 * breakpoint.c (create_catchpoint_without_mention)
606 (create_catchpoint): Delete.
608 2011-06-22 Pedro Alves <pedro@codesourcery.com>
610 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
611 * breakpoint.c (init_raw_breakpoint_without_location): Remove
612 reference to exec_pathname.
613 (struct exec_catchpoint): New type.
614 (dtor_catch_exec): New function.
615 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
616 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
617 (catch_exec_command_1): Adjust to use init_catchpoint.
618 (delete_breakpoint): Remove reference to exec_pathname.
620 2011-06-22 Pedro Alves <pedro@codesourcery.com>
622 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
623 (struct breakpoint): Delete field `syscalls_to_be_caught'.
624 * breakpoint.c (init_raw_breakpoint_without_location): Remove
625 reference to syscalls_to_be_caught.
626 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
628 (struct syscall_catchpoint): New type.
629 (dtor_catch_syscall): New function.
630 (insert_catch_syscall, remove_catch_syscall)
631 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
632 (print_recreate_catch_syscall): Adjust.
633 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
634 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
635 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
636 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
637 (masked_watchpoint_breakpoint_ops)
638 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
639 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
640 there is one. Remove references to syscalls_to_be_caught.
641 (catching_syscall_number): Adjust.
642 * ada-lang.c (catch_exception_breakpoint_ops)
643 (catch_exception_unhandled_breakpoint_ops)
644 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
646 2011-06-22 Pedro Alves <pedro@codesourcery.com>
648 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
650 * breakpoint.c (init_raw_breakpoint_without_location): Remove
651 reference to forked_inferior_pid.
652 (struct fork_catchpoint): New type.
653 (breakpoint_hit_catch_fork, print_it_catch_fork)
654 (print_one_catch_fork, breakpoint_hit_catch_vfork)
655 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
656 (create_fork_vfork_event_catchpoint): Adjust to use
659 2011-06-22 Pedro Alves <pedro@codesourcery.com>
661 * breakpoint.c (add_to_breakpoint_chain)
662 (init_raw_breakpoint_without_location): New functions, factored
664 (set_raw_breakpoint_without_location): ... this one.
665 (init_raw_breakpoint): New function, factored out from
666 set_raw_breakpoint and adjusted to use
667 init_raw_breakpoint_without_location.
668 (set_raw_breakpoint): Adjust.
669 (init_catchpoint): New function, factored out from
670 create_catchpoint_without_mention and adjusted to use
672 (create_catchpoint_without_mention): Adjust.
674 2011-06-22 Tom Tromey <tromey@redhat.com>
676 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
677 argument of 0 specially.
679 2011-06-22 Yao Qi <yao@codesourcery.com>
681 * infrun.c (handle_inferior_event): Remove write-only local variable
682 `sw_single_step_trap_p'.
684 2011-06-20 Tom Tromey <tromey@redhat.com>
686 * symtab.c (lookup_language_this): End loop if block is NULL.
688 2011-06-17 Tom Tromey <tromey@redhat.com>
690 * valops.c (value_of_this): Use lookup_language_this.
691 * symtab.h (lookup_language_this): Declare.
692 * symtab.c (lookup_language_this): New function.
693 (lookup_symbol_aux): Use lookup_language_this.
694 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
696 2011-06-17 Tom Tromey <tromey@redhat.com>
698 * value.h (value_of_this): Update.
699 (value_of_local): Remove.
700 * valops.c (value_of_this): Rename from value_of_local. Change
702 * p-exp.y (exp): Update.
703 (variable): Likewise.
704 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
706 2011-06-17 Tom Tromey <tromey@redhat.com>
708 * valops.c (value_of_local): Complain if NAME is NULL.
709 * std-operator.def (OP_OBJC_SELF): Remove.
710 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
711 * objc-exp.y (name_not_typename): Use OP_THIS.
712 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
714 <OP_OBJC_SELF>: Remove.
715 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
717 2011-06-16 Tristan Gingold <gingold@adacore.com>
719 * python/py-events.h (gdb_py_events): Make it extern.
720 * python/py-evtregistry.c (gdb_py_events): Declare.
722 2011-06-16 Hui Zhu <teawater@gmail.com>
724 * remote.c (remote_trace_set_readonly_regions): Add check for
725 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
728 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
730 * arm-linux-tdep.c: Include "auxv.h".
732 (ARM_LINUX_SIZEOF_VFP): Define.
733 (arm_linux_supply_vfp): New function.
734 (arm_linux_collect_vfp): Likewise.
735 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
736 (arm_linux_fpa_regset_sections): New variable.
737 (arm_linux_vfp_regset_sections): Likewise.
738 (arm_linux_core_read_description): New function.
739 (arm_linux_init_abi): Install arm_linux_core_read_description and
740 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
741 appropriate for the architecture.
742 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
743 (tdesc_arm_with_m): Declare.
744 (tdesc_arm_with_iwmmxt): Likewise.
745 (tdesc_arm_with_vfpv2): Likewise.
746 (tdesc_arm_with_vfpv3): Likewise.
747 (tdesc_arm_with_neon): Likewise.
748 * arm-linux-nat.c: Move features/*.c includes ...
749 * arm-tdep.c: ... here.
750 * arm-linux-nat.c (arm_linux_read_description): Move initializing
751 target description data structures ...
752 * arm-tdep.c (_initialize_arm_tdep): ... here.
753 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
754 HWCAP_VFPv3D16): Move definitions ...
755 * arm-linux-tdep.h: ... here.
757 2011-06-15 Hui Zhu <teawater@gmail.com>
759 * remote.c (remote_trace_set_readonly_regions): Add a check for
762 2011-06-14 Tom Tromey <tromey@redhat.com>
764 * coffread.c (coffread_objfile): Rename from current_objfile.
765 * dbxread.c (dbxread_objfile): Rename from current_objfile.
766 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
768 2011-06-14 Tom Tromey <tromey@redhat.com>
770 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
771 (class_symtab): Remove.
772 (jv_dynamics_progspace_key): New global.
773 (jv_per_objfile_free): Reset program space data. Update assert.
775 (get_dynamics_objfile): Use and set program space data.
776 (get_java_class_symtab): Use get_dynamics_objfile.
777 (add_class_symbol): Likewise.
778 (java_link_class_type): Likewise.
779 (java_object_type, jv_clear_object_type, set_java_object_type):
781 (get_java_object_type): Update. Don't cache result.
782 (is_object_type): Don't call set_java_object_type.
783 (_initialize_java_language): Don't set jv_type_objfile_data_key;
784 initialize jv_dynamics_progspace_key.
786 2011-06-14 Tom Tromey <tromey@redhat.com>
788 * symtab.h (current_objfile): Don't declare.
789 * objfiles.h (current_objfile): Don't declare.
790 * objfiles.c (current_objfile): Remove.
791 * mdebugread.c (current_objfile): New file-scope global.
792 * dbxread.c (current_objfile): New file-scope global.
793 * coffread.c (current_objfile): New file-scope global.
795 2011-06-13 Pedro Alves <pedro@codesourcery.com>
797 * top.h (line): Rename to ...
798 (saved_command_line): ... this.
799 (linesize): Rename to ...
800 (saved_command_line_size): ... this.
801 * top.c (line): Rename to ...
802 (saved_command_line): ... this.
803 (linesize): Rename to ...
804 (saved_command_line_size): ... this.
805 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
806 * event-top.c (command_line_handler): Adjust.
807 * main.c (captured_main): Adjust.
809 2011-06-12 Mark Kettenis <kettenis@gnu.org>
811 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
812 get_frame_func instead of get_frame_pc to determine the code
813 address used to construct the frame ID.
814 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
815 (i386_epilogue_frame_this_id): Likewise.
816 (i386_epilogue_frame_prev_register): New function.
817 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
818 (i386_stack_tramp_frame_sniffer): Fix coding style.
819 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
820 (i386_gdbarch_init): Fix comments.
822 2011-06-12 Mark Kettenis <kettenis@gnu.org>
824 * i386-tdep.c (i386_match_insn_block): Use length of the proper
825 instruction when walking back through the instruction stream.
827 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
829 * symtab.c (output_partial_symbol_filename): Exchange the filename and
830 fullname parameters order.
832 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
835 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
837 * psymtab.c (map_symbol_filenames_psymtab)
838 (map_partial_symbol_filenames): Likewise.
839 * psymtab.h: Include symfile.h.
840 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
841 * symfile.h (symbol_filename_ftype): New.
842 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
843 map_symbol_filenames, clarify more the naming in comment.
845 2011-06-07 Doug Evans <dje@google.com>
847 * cc-with-index.sh: Fix typos in comment.
848 Look for ../../gdb, for fullname.exp.
850 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
851 Pedro Alves <pedro@codesourcery.com>
853 * cli/cli-cmds.c (shell_escape): Use waitpid.
854 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
856 2011-06-07 Tristan Gingold <gingold@adacore.com>
858 * xcoffread.c (dwarf2_xcoff_names): New variable.
859 (aix_process_linenos): Add a guard.
860 (xcoff_symfile_finish): Free dwarf2.
861 (xcoff_initial_scan): Add dwarf2 support.
863 2011-06-06 Pedro Alves <pedro@codesourcery.com>
865 * infcall.c (run_inferior_call): Don't mask async. Instead force
866 a synchronous wait, if the target can async.
868 * target.h (struct target_ops): Delete to_async_mask.
869 (target_async_mask): Delete.
870 * target.c (update_current_target): Delete references to to_async_mask.
871 * linux-nat.c (linux_nat_async_mask_value): Delete.
872 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
873 to linux_nat_async_mask_value.
874 (linux_nat_async_mask): Delete.
875 (linux_nat_async, linux_nat_close): Remove references to
876 linux_nat_async_mask_value.
877 * record.c (record_async_mask_value): Delete.
878 (record_async): Remove references to record_async_mask_value.
879 (record_async_mask): Delete.
880 (record_can_async_p, record_is_async_p): Remove references to
881 record_async_mask_value.
882 (init_record_ops, init_record_core_ops): Remove references to
884 * remote.c (remote_async_mask_value): Delete.
885 (init_remote_ops): Remove reference to remote_async_mask.
886 (remote_can_async_p, remote_is_async_p): Remove references to
887 remote_async_mask_value.
888 (remote_async): Remove references to remote_async_mask_value.
889 (remote_async_mask): Delete.
891 * infrun.c (fetch_inferior_event): Don't claim registers changed
892 if the current thread is already not executing.
894 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
896 From Stephen Kitt <steve@sk2.org>
897 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
898 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
900 2011-06-03 Joel Brobecker <brobecker@adacore.com>
902 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
903 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
905 2011-06-03 Tom Tromey <tromey@redhat.com>
907 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
909 * python/py-exitedevent.c (create_exited_event_object): Change
910 type of 'exit_code'. Optionally add exit_code attribute.
911 (emit_exited_event): Change type of 'exit_code'.
912 * python/py-event.h (emit_exited_event): Update.
913 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
914 * infrun.c (handle_inferior_event): Set exit code fields on
916 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
918 * inferior.c (exit_inferior_1): Initialize new fields.
920 2011-06-03 Tom Tromey <tromey@redhat.com>
922 * dwarf2expr.c (get_signed_type): New function.
923 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
925 2011-06-02 Keith Seitz <keiths@redhat.com>
927 * objc-lang.c (find_methods): Increment objfile_csym earlier.
929 2011-06-02 Pedro Alves <pedro@codesourcery.com>
931 * top.h (simplified_command_loop): Delete declaration.
933 2011-06-01 Mike Frysinger <vapier@gentoo.org>
935 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
936 gdb_sysroot to the "len" variable. Append both to "arg_buf".
938 2011-06-01 Yao Qi <yao@codesourcery.com>
940 * objfiles.h (obj_section_addr): Update reference to objfile from
942 (obj_section_endaddr): Likewise.
944 2011-06-01 Daniel Jacobowitz <drow@false.org>
946 * MAINTAINERS: Update my email address and affiliation. Also
947 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
949 2010-05-31 Keith Seitz <keiths@redhat.com>
952 * linespec.c (get_search_block): New function.
953 (find_methods): Add FILE_SYMTATB parameter and use it and
954 get_search_block to pass an appropriate block to
955 lookup_symbol_in_namespace.
956 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
957 Check if *ARGPTR starts with a filename first.
958 If it does, call locate_first_half again to locate the next
959 "first half" of the linespec.
960 Pass FILE_SYMTATB to decode_objc and decode_compound.
961 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
962 (locate_first_half): Stop on the first colon seen.
963 (decode_compound): Add FILE_SYMTAB parameter.
964 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
965 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
966 get_search_block with lookup_symbol.
967 (find_method): Add FILE_SYMTAB parameter and pass it to
969 (decode_objc): Use get_search_block.
971 2010-05-31 Keith Seitz <keiths@redhat.com>
974 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
975 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
976 and CP_ANONYMOUS_NAMESPACE_LEN.
977 (cp_is_anonymous): Likewise.
978 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
979 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
980 * dwarf2read.c (namespace_name): Likewise.
981 (fixup_partial_die): Likewise.
982 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
983 seen in the input, keep it.
985 2011-05-30 Pedro Alves <pedro@codesourcery.com>
987 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
988 * inf-loop.h (inferior_event_handler_wrapper): Delete.
989 * inf-loop.c (inferior_event_handler_wrapper): Delete.
990 (inferior_event_handler): Don't handle INF_QUIT_REQ.
991 * remote.c (_initialize_remote): Register
992 async_remote_interrupt_twice directly as
993 sigint_remote_twice_token event.
995 2011-05-30 Pedro Alves <pedro@codesourcery.com>
997 * target.h (enum inferior_event_type): Delete INF_ERROR.
998 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
1000 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1002 * interps.c (interp_set): Don't cancel continuations.
1004 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1006 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
1008 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1010 * continuations.h (continuation_ftype): Add `err' parameter.
1011 Document parameters.
1012 (do_all_continuations, do_all_continuations_thread)
1013 (do_all_intermediate_continuations)
1014 (do_all_intermediate_continuations_thread)
1015 (do_all_inferior_continuations): Add `err' parameter.
1016 * continuations.c (do_my_continuations_1, do_my_continuations)
1017 (do_all_inferior_continuations, do_all_continuations_ptid)
1018 (do_all_continuations_thread_callback)
1019 (do_all_continuations_thread, do_all_continuations)
1020 (do_all_intermediate_continuations_thread_callback)
1021 (do_all_intermediate_continuations_thread)
1022 (do_all_intermediate_continuations): Add `err' parameter, and pass
1023 it down all the way to the continuations proper.
1024 * inf-loop.c (inferior_event_handler): If fetching an inferior
1025 event throws an error, don't pop the target, and still call the
1026 continuations, but with `err' set. Adjust all other continuation
1028 * breakpoint.c (until_break_command_continuation): Add `err'
1030 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
1031 issue another step if `err' is set.
1032 (struct until_next_continuation_args): New.
1033 (until_next_continuation): Add `err' parameter. Adjust.
1034 (until_next_command): Adjust.
1035 (struct finish_command_continuation_args): Add `thread' field.
1036 (finish_command_continuation): Add `err' parameter. Handle it.
1037 (finish_forward): Adjust.
1038 (attach_command_continuation): Add `err' parameter. Handle it.
1039 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1040 cancel the continuations.
1041 * interps.c (interp_set): Adjust to cancel the continuations.
1042 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1043 continuations rather than discarding.
1044 (free_thread): Don't clear thread inferior resources here.
1045 (delete_thread_1): Do it here instead. And do it before removing
1046 the thread from the threads list. Tag the thread as exited before
1047 clearing thread inferior resources.
1049 2011-05-30 Joel Brobecker <brobecker@adacore.com>
1051 * infcall.c (call_function_by_hand): Rephrase error message.
1053 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1055 * defs.h (struct thread_info, struct inferior): Delete forward
1057 * breakpoint.h (struct thread_info): New forward declaration.
1058 * observer.sh (struct inferior): New forward declaration.
1059 * python/python-internal.h (struct inferior): New forward
1062 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1064 * defs.h (struct continuation, continuation_ftype)
1065 (continuation_free_arg_ftype, add_continuation)
1066 (do_all_continuations, do_all_continuations_thread)
1067 (discard_all_continuations, discard_all_continuations_thread)
1068 (add_intermediate_continuation, do_all_intermediate_continuations)
1069 (do_all_intermediate_continuations_thread)
1070 (discard_all_intermediate_continuations)
1071 (discard_all_intermediate_continuations_thread)
1072 (add_inferior_continuation, do_all_inferior_continuations)
1073 (discard_all_inferior_continuations): Move to ...
1074 * continuations.h: ... this new file.
1075 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1076 infcmd.c, inferior.c, infrun.c, interps.c: Include
1079 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1080 Doug Evans <dje@google.com>
1082 Fix PR 10970, PR 12702.
1083 * linux-nat.c (linux_lwp_is_zombie): New function.
1084 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1085 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1087 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1089 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1091 (add_continuation, add_intermediate_continuation)
1092 (add_inferior_continuation): Use them.
1093 * continuations.c (struct continuation): Use them.
1094 (make_continuation_ftype): Delete.
1095 (make_continuation, add_inferior_continuation, add_continuation)
1096 (add_intermediate_continuation): Use continuation_ftype and
1097 continuation_free_arg_ftype. Rename parameters to shorter names.
1099 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1101 * continuations.c (make_continuation): Make it return void.
1102 (do_my_continuations): Rename to ...
1103 (do_my_continuations_1): ... this. Remove old_chain parameter and
1105 (do_my_continuations): New.
1106 (discard_my_continuations): Rename to ...
1107 (discard_my_continuations_1): ... this. Remove old_chain
1108 parameter and adjust.
1109 (discard_my_continuations): New.
1110 (add_inferior_continuation): Simplify.
1111 (do_all_inferior_continuations): Reimplement on top
1112 do_my_continuations.
1113 (discard_all_inferior_continuations): Simplify.
1114 (add_continuation): Simplify.
1115 (do_all_continuations_ptid): Simplify.
1116 (discard_all_continuations_thread_callback): Simplify.
1117 (add_intermediate_continuation): Simplify.
1118 (discard_all_intermediate_continuations_thread_callback):
1121 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1123 * utils.c (struct continuation, add_continuation)
1124 (add_inferior_continuation)
1125 (do_all_inferior_continuations, discard_all_inferior_continuations)
1126 (restore_thread_cleanup, do_all_continuations_ptid)
1127 (do_all_continuations_thread_callback)
1128 (do_all_continuations_thread, do_all_continuations)
1129 (discard_all_continuations_thread_callback)
1130 (discard_all_continuations_thread, discard_all_continuations)
1131 (add_intermediate_continuation)
1132 (do_all_intermediate_continuations_thread_callback)
1133 (do_all_intermediate_continuations_thread)
1134 (do_all_intermediate_continuations)
1135 (discard_all_intermediate_continuations_thread_callback)
1136 (discard_all_intermediate_continuations_thread)
1137 (discard_all_intermediate_continuations): Move to ...
1138 * continuations.c: ... this new file, and adjust to no longer
1139 implement continuations on top of cleanups.
1140 * Makefile.in (SFILES): Add continuations.c.
1141 (COMMON_OBS): Add continuations.o.
1143 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1145 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1146 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1147 Internal error on invalid values.
1148 * reverse.c: Don't handle EXEC_ERROR.
1149 * mi/mi-main.c: Don't handle EXEC_ERROR.
1151 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1153 * record.c: Include event-loop.h, inf-loop.h.
1154 (record_beneath_to_async): New global.
1155 (tmp_to_async): New global.
1156 (record_async_inferior_event_token): New global.
1157 (record_open_1): Don't error out if async is enabled.
1158 (record_open): Handle to_async. Create an async event source in
1160 (record_close): Delete the async event source.
1161 (record_resumed): New global.
1162 (record_execution_dir): New global.
1163 (record_resume, record_core_resume): Set them. Register the
1164 target on the event loop.
1165 (record_wait): Rename to ...
1166 (record_wait_1): ... this. Add more debug output. Handle
1167 TARGET_WNOHANG, and the target beneath returning
1168 TARGET_WAITKIND_IGNORE.
1169 (record_wait): Reimplement on top of record_wait_1.
1170 (record_async_mask_value): New global.
1171 (record_async, record_async_mask, record_can_async_p)
1172 (record_is_async_p, record_execution_direction): New functions.
1173 (init_record_ops, init_record_core_ops): Install new methods.
1174 * infrun.c (fetch_inferior_event): Temporarily switch the global
1175 execution direction to the direction the target was going.
1176 (execution_direction): Change type to int.
1177 * target.c (default_execution_direction): New function.
1178 (update_current_target): Inherit and de_fault
1179 to_execution_direction.
1180 * target.h (struct target_ops) <to_execution_direction>: New
1182 (target_execution_direction): New macro.
1183 * inferior.h (execution_direction): Change type to int.
1185 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1187 * infcall.c (call_function_by_hand): Don't allow calling functions
1188 in reverse execution mode.
1190 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1192 * infcmd.c (finish_command): Allow async finish in reverse.
1194 2011-05-26 Yao Qi <yao@codesourcery.com>
1196 * gdb_thread_db.h: Delete. Move to ...
1197 * common/gdb_thread_db.h: ... here.
1199 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1201 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1202 function's entry point instead of a manually managed momentary
1203 breakpoint, and only ever issue one proceed call.
1204 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1205 doing a reverse-finish, switch to stepi mode, to do another step.
1206 (insert_step_resume_breakpoint_at_sal): Make public.
1207 (normal_stop): No need to save function value return registers if
1209 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1211 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1213 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1214 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1215 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
1217 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1218 step-resume breakpoints.
1219 (print_it_typical): Handle bp_hp_step_resume.
1220 (bpstat_what): Ditto.
1221 (bptype_string): Ditto.
1222 (print_one_breakpoint_location): Ditto.
1223 (allocate_bp_location): Ditto.
1225 (breakpoint_re_set_one): Ditto.
1226 * infrun.c (handle_inferior_event): Adjust. Split
1227 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1228 BPSTAT_WHAT_HP_STEP_RESUME.
1229 (insert_step_resume_breakpoint_at_sal): Rename to ...
1230 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
1231 parameter. Handle it.
1232 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1233 insert_step_resume_breakpoint_at_sal_1.
1234 (insert_step_resume_breakpoint_at_frame): Rename to ...
1235 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
1236 set a high-priority step-resume breakpoint.
1237 (insert_step_resume_breakpoint_at_frame): Adjust comment.
1238 (insert_step_resume_breakpoint_at_caller): Ditto.
1240 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1242 * breakpoint.c (iterate_over_related_breakpoints): New.
1243 (do_map_delete_breakpoint): New.
1244 (delete_command): Pass do_map_delete_breakpoint to
1245 map_breakpoint_numbers.
1246 (do_disable_breakpoint): New.
1247 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1249 (do_enable_breakpoint): Rename to ...
1250 (enable_breakpoint_disp): ... this.
1251 (enable_breakpoint): Adjust.
1252 (do_enable_breakpoint): New.
1253 (enable_once_breakpoint): Delete.
1254 (do_map_enable_breakpoint): New.
1255 (do_map_enable_once_breakpoint): New.
1256 (enable_once_command, enable_delete_command)
1257 (delete_trace_command): Iterate over the breakpoint's related
1260 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1262 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1263 for ALPHA_ZERO_REGNUM.
1264 (alpha_supply_int_regs): Explicitly supply zero as the value for
1265 ALPHA_ZERO_REGNUM in the register cache.
1266 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1268 2011-05-26 Yao Qi <yao@codesourcery.com>
1270 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1272 2011-05-26 Tristan Gingold <gingold@adacore.com>
1274 * symfile.h (struct dwarf2_section_names): New type.
1275 (struct dwarf2_debug_sections): New type.
1276 (dwarf2_has_info): Add parameter.
1277 * dwarf2read.c (dwarf2_elf_names): New variable.
1278 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1279 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1280 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1281 (dwarf2_has_info): Add names parameter. Pass names
1282 to dwarf2_locate_sections.
1283 (section_is_p): Rewrite using the names parameter.
1284 (dwarf2_locate_sections): Use section names from the names parameter.
1285 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1286 * elfread.c (read_psyms): Ditto.
1287 * machoread.c (macho_symfile_read): Ditto.
1289 2011-05-25 Andreas Schwab <schwab@redhat.com>
1292 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1294 2011-05-24 Keith Seitz <keiths@redhat.com>
1297 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1298 (decode_compound): Unconditionally call keep_name_info.
1300 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1302 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1303 scope, clear its command list.
1304 (map_breakpoint_numbers): Don't walk the related breakpoints list
1307 2011-05-24 Tom Tromey <tromey@redhat.com>
1309 * MAINTAINERS: Move Jim Blandy to past maintainers.
1311 2011-05-24 Tristan Gingold <gingold@adacore.com>
1313 * symfile.h (enum dwarf2_section_enum): New type.
1314 (dwarf2_get_section_info): New prototype.
1315 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1316 section_name by sect. Use a switch to select the info.
1317 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1318 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1320 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1322 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1323 shared library event breakpoint if there's no execution.
1325 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
1327 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1328 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1330 2011-05-23 Tom Tromey <tromey@redhat.com>
1332 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1335 2011-05-23 Doug Evans <dje@google.com>
1337 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1338 entry for RuntimeError to doc string.
1340 2011-05-23 Jerome Guitton <guitton@adacore.com>
1342 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1343 sequence for probing loops.
1345 2011-05-23 Pedro Alves <pedro@codesourcery.com>
1347 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1350 2011-05-21 Mark Kettenis <kettenis@gnu.org>
1352 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1353 zero as the value for %g0 in the register cache.
1354 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1355 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1357 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1359 * infrun.c (proceed): Set previous_inferior_ptid here.
1360 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1361 inferior_ptid, not null_ptid.
1362 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1363 (fetch_inferior_event): Nor here.
1365 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1367 * inf-loop.c (inferior_event_handler): Only output a message if
1370 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
1372 * MAINTAINERS: Update my e-mail address.
1374 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1376 * infrun.c (proceed): Switch the inferior event loop to
1377 INF_EXEC_COMPLETE if the target refused to resume from a
1380 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1382 * infcmd.c: Include "inf-loop.h".
1383 (step_once): When stepping into an inline subroutine, pretend the
1384 target has run. If the target can async, switch the inferior
1385 event loop to INF_EXEC_COMPLETE.
1386 * inferior.h (user_visible_resume_ptid): Declare.
1387 * infrun.c (user_visible_resume_ptid): New function, factored out
1390 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1391 that the current thread is running. Merge async and sync
1394 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1396 * infcmd.c (step_1): Simplify synchronous case.
1398 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1400 * tracepoint.c: Include exceptions.h.
1401 (TFILE_PID): Move higher in file.
1402 (tfile_open): Delay pushing the tfile target until we're assured
1403 the tfile header is present in the file. Wrap reading the initial
1404 newline-terminated lines in TRY_CATCH. Pop the target if the
1405 initial setup failed. Add the tfile's thread immediately
1406 aftwards, before any non-essential setup. Don't skip
1407 post_create_inferior if there are no traceframes present in the
1409 (tfile_close): Remove redundant check for null before xfree call.
1410 (tfile_thread_alive): New function.
1411 (init_tfile_ops): Register it as to_thread_alive callback.
1413 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1415 * tracepoint.c (tfile_open): Delete #if 0'd code.
1417 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1419 Fix -readnow for -gdwarf-4 unused type units.
1420 * dwarf2read.c (struct signatured_type): Remove the field offset.
1421 (create_signatured_type_table_from_index): Remove its initialization.
1422 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1423 instead. Add a complaint call.
1424 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1425 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1426 (lookup_signatured_type_at_offset, read_signatured_type)
1427 (write_one_signatured_type): Update the field for per_cu.
1429 2011-05-19 Tom Tromey <tromey@redhat.com>
1431 * python/py-inferior.c (python_inferior_exit): Use
1433 (python_on_resume): Likewise.
1435 2011-05-19 Matt Rice <ratmice@gmail.com>
1437 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1439 2011-05-19 Hui Zhu <teawater@gmail.com>
1441 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1443 2011-05-19 Hui Zhu <teawater@gmail.com>
1445 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1447 2011-05-18 Tom Tromey <tromey@redhat.com>
1449 * dwarf2read.c (dwarf2_add_field): Constify.
1450 * value.c (value_static_field): Constify.
1451 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1453 * ax-gdb.c (gen_static_field): Constify
1455 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1457 * linux-nat.c (kill_callback): Use SIGKILL first.
1459 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1461 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1463 2011-05-18 Tom Tromey <tromey@redhat.com>
1465 * value.c (value_fn_field): Constify.
1466 * symtab.c (gdb_mangle_name): Constify.
1467 * stabsread.c (update_method_name_from_physname): Make 'physname'
1469 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1470 const. Use explicit fputc_filtered loop.
1471 (pascal_type_print_base): Constify.
1472 * p-lang.h (pascal_type_print_method_args): Update.
1473 * linespec.c (add_matching_methods): Constify.
1474 (add_constructors): Likewise.
1475 * jv-typeprint.c (java_type_print_base): Constify.
1476 * gdbtypes.h (struct cplus_struct_type)
1477 <fn_fieldlist.fn_field.physname>: Now const.
1478 * dwarf2read.c (compute_delayed_physnames): Constify.
1479 (dwarf2_add_member_fn): Likewise.
1480 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1482 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1484 * infrun.c (resume): Mention which is the current thread, and its
1485 current PC in debug output.
1486 (prepare_to_proceed): Mention the thread switching in debug
1489 2011-05-18 Tom Tromey <tromey@redhat.com>
1491 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1492 path check. Use xmalloc and cleanups.
1493 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1495 2011-05-17 Tom Tromey <tromey@redhat.com>
1497 * cp-valprint.c (cp_print_value_fields): Catch errors from
1500 2011-05-17 Tom Tromey <tromey@redhat.com>
1502 * dwarf2read.c (dwarf2_get_die_type): Call
1503 get_die_type_at_offset.
1504 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1505 get_base_type function.
1507 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1509 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1512 2011-05-16 Doug Evans <dje@google.com>
1514 * python/py-auto-load.c (source_section_scripts): Mention objfile
1517 2011-05-15 Doug Evans <dje@google.com>
1519 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1520 (try_thread_db_load_from_pdir): Call it. If unable to find
1521 libthread_db in directory of libpthread, see if we're looking at
1522 the separate-debug-info copy.
1524 * python/py-autoload.c (print_script): Print "Missing" instead of
1525 "No" for missing scripts.
1526 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1528 2011-05-13 Doug Evans <dje@google.com>
1530 * ui-file.c (stdio_file_write_async_safe): Add comment.
1532 2011-05-14 Hui Zhu <teawater@gmail.com>
1534 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1536 2011-05-13 Doug Evans <dje@google.com>
1538 Support $pdir and $sdir in libthread-db-search-path.
1539 * NEWS: Mention $sdir,$pdir.
1540 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1541 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1542 (try_thread_db_load_from_sdir): New function.
1543 (try_thread_db_load_from_dir): New function.
1544 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1545 system directories if search of libthread-db-search-path fails,
1546 that is now done via $sdir.
1547 (has_libpthread): New function.
1548 (thread_db_load): Remove search for libthread_db in directory of
1549 libpthread, that is now done via $pdir.
1551 * NEWS: Mention "info auto-load-scripts".
1552 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1553 script_not_found_warning_printed.
1554 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1555 all callers updated. Initialize script_not_found_warning_printed.
1556 (get_auto_load_pspace_data_for_loading): New function.
1557 (maybe_add_script): New function.
1558 (source_section_scripts): Simplify. Only print one warning regardless
1559 of the number of auto-load scripts not found.
1560 (clear_section_scripts): Clear script_not_found_warning_printed.
1561 (auto_load_objfile_script): Record script in hash table.
1562 (count_matching_scripts): New function.
1563 (maybe_print_script): Renamed from maybe_print_section_script, all
1564 callers updated. Rewrite to use ui_out_*.
1565 (info_auto_load_scripts): Renamed from
1566 maintenance_print_section_scripts, all callers updated.
1567 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1568 renamed as "info auto-load-scripts".
1570 2011-05-13 Tom Tromey <tromey@redhat.com>
1572 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1573 (read_sleb128): Likewise.
1575 2011-05-13 Tom Tromey <tromey@redhat.com>
1577 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1580 2011-05-13 Doug Evans <dje@google.com>
1582 * linux-nat.c (debug_linux_nat_async): Delete.
1583 Replace all references to use debug_linux_nat instead.
1584 (show_debug_linux_nat_async): Delete.
1585 (sigchld_handler): Call ui_file_write_async_safe instead of
1587 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1588 * ui-file.c (struct ui_file): New member to_write_async_safe.
1589 (null_file_write_async_safe): New function.
1590 (ui_file_write_async_safe): New function.
1591 (set_ui_file_write_async_safe): New function.
1592 (ui_file_new): Initialize to_write_async_safe.
1593 (stdio_file_write_async_safe): New function.
1594 (struct stdio_file): New member fd.
1595 (stdio_file_new): Initialize to_write_async_safe, fd.
1596 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1598 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1599 (set_ui_file_write_async_safe): Declare.
1600 (ui_file_write_async_safe): Declare.
1602 2011-05-13 Tom Tromey <tromey@redhat.com>
1604 * utils.c (do_value_free): New function.
1605 (make_cleanup_value_free): Likewise.
1606 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1608 (dwarf2_loc_desc_needs_frame): Call
1609 make_cleanup_value_free_to_mark.
1610 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1611 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1613 (new_dwarf_expr_context): Don't call value_mark.
1614 * dwarf2-frame.c (execute_stack_op): Call
1615 make_cleanup_value_free_to_mark.
1616 * defs.h (make_cleanup_value_free): Declare.
1618 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1620 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1621 prepare_execute_command.
1622 * top.c (prepare_execute_command): Return cleanup.
1623 (execute_command): Use cleanup from prepare_execute_command.
1624 * top.h (prepare_execute_command): Change prototype to return
1626 * defs.h (struct value): Add opaque declaration.
1627 (make_cleanup_value_free_to_mark): Add prototype.
1628 * utils.c (do_value_free_to_mark): New function.
1629 (make_cleanup_value_free_to_mark): Likewise.
1631 2011-05-12 Tom Tromey <tromey@redhat.com>
1633 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1634 cast left-hand-side to unsigned.
1636 2011-05-12 Tom Tromey <tromey@redhat.com>
1639 * value.h (value_from_contents): Declare.
1640 * value.c (value_from_contents): New function.
1641 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1642 (dwarf2_get_die_type): New function.
1643 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1644 (allocate_piece_closure): Acquire reference to values.
1645 (read_pieced_value): Update for value-based expressions.
1646 (write_pieced_value): Likewise.
1647 (free_pieced_value_closure): Call value_free as needed.
1648 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1649 Update for value-based expressions.
1650 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1651 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1652 <get_base_type>: New field.
1653 (struct dwarf_expr_piece) <v.value>: Change type.
1654 <v.regno>: New field.
1655 (struct dwarf_expr_context) <mark>: New field.
1656 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1657 (dwarf_expr_pop, dwarf_expr_push): Remove.
1658 (dwarf_expr_push_address): Declare.
1659 * dwarf2expr.c (dwarf_arch_cookie): New global.
1660 (struct dwarf_gdbarch_types): New.
1661 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1663 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1665 (dwarf_expr_push_address): New function.
1666 (dwarf_expr_pop): Now static.
1667 (dwarf_expr_fetch): Change return type.
1668 (dwarf_require_integral): New function.
1669 (dwarf_expr_fetch): Simplify.
1670 (add_piece): Update.
1671 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1673 (execute_stack_op) <sign_ext>: Remove.
1674 Use values for DWARF stack.
1675 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1676 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1678 (_initialize_dwarf2expr): New function.
1679 (add_piece): Update.
1680 (new_dwarf_expr_context): Set new field.
1681 (free_dwarf_expr_context): Call value_free_to_mark.
1682 * dwarf2-frame.c (no_base_type): New function.
1683 (execute_stack_op): Set get_base_type field. Update.
1685 2011-05-12 Tom Tromey <tromey@redhat.com>
1687 * dwarf2read.c (read_common_block): Fix formatting.
1689 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1691 * breakpoint.c (disable_breakpoint): Disable all locations
1692 associated with a tracepoint on target if a trace experiment is
1694 (disable_command): Disable a specific tracepoint location on target if
1695 a trace experiment is running.
1696 (do_enable_breakpoint): Enable all locations associated with a
1697 tracepoint on target if a trace experiment is running.
1698 (enable_command) Enable a specific tracepoint location on target if a
1699 trace experiment is running.
1700 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1701 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1702 to_disable_tracepoint.
1703 * target.h: Add declaration of struct bp_location.
1704 (struct target_ops): Add new functions
1705 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1706 to_disable_tracepoint to target operations.
1707 (target_supports_enable_disable_tracepoint): New macro.
1708 (target_enable_tracepoint): New macro.
1709 (target_disable_tracepoint): New macro.
1710 * remote.c (struct remote_state): Add new field.
1711 (remote_enable_disable_tracepoint_feature): New.
1712 (remote_protocol_features): Add new entry.
1713 (remote_supports_enable_disable_tracepoint): New.
1714 (remote_enable_tracepoint): New.
1715 (remote_disable_tracepoint): New.
1716 (init_remote_ops): Add remote_enable_tracepoint,
1717 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1718 to remote operations.
1719 * tracepoint.c (start_tracing): Allow tracing to start without any
1720 tracepoints enabled with just a warning if they can be re-enabled
1722 * NEWS: Add news item for the new behaviour of the enable and disable
1723 GDB commands when applied to tracepoints.
1724 Add news items for the new remote packets QTEnable and QTDisable.
1726 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1728 * config.in: Regenerate.
1729 * configure: Regenerate.
1730 * configure.ac <--with-system-readline> (for readline_echoing_p):
1732 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1733 (tui_old_rl_echoing_p): ... here.
1734 (tui_setup_io): Rename extern declaration readline_echoing_p to
1735 _rl_echoing_p. Adjust assignments for the both renames.
1737 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1739 * symtab.c (lookup_symtab): Run cleanup before returning.
1741 2011-05-11 Tom Tromey <tromey@redhat.com>
1743 * dwarf2read.c (handle_data_member_location): New function.
1744 (dwarf2_add_field): Use it.
1745 (read_common_block): Likewise.
1747 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1749 Make addrs->SECTINDEX always defined.
1750 * symfile.c (relative_addr_info_to_section_offsets): Check for
1751 SECTINDEX -1, not for zero ADDR.
1752 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1753 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1754 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1757 2011-05-10 Doug Evans <dje@google.com>
1759 * linux-thread-db.c: Whitespace cleanup.
1760 (try_thread_db_load_1): Fix comment.
1762 * linux-thread-db.c (set_libthread_db_search_path): New function.
1763 (_initialize_thread_db): Add setter for libthread-db-search-path.
1765 2011-05-09 Doug Evans <dje@google.com>
1767 * NEWS: Mention --with-iconv-bin.
1768 * configure.ac: New option --with-iconv-bin.
1769 * configure: Regenerate.
1770 * config.in: Regenerate.
1771 * defs.h (relocate_gdb_directory): Declare.
1772 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1773 removed progname parameter, and exported. All callers updated.
1774 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1776 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1777 adding missing call to restore_child_signals_mask.
1779 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1781 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1783 * infrun.c (proceed, start_remote): Adjust.
1784 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1785 and adjust to not handle it.
1786 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1787 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1788 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1789 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1790 * windows-nat.c (do_initial_windows_stuff): Adjust.
1791 * infcmd.c (attach_command): Adjust.
1792 (notice_new_inferior): Adjust.
1794 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1796 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1797 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1798 * spu-tdep.c (op_selb): Use correct value.
1800 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1802 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1803 "parent" parameter to symbol_file_add_from_bfd call.
1805 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1806 Thiago Jung Bauermann <bauerman@br.ibm.com>
1808 Implement support for PowerPC BookE masked watchpoints.
1809 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1811 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1812 method. Initialize to NULL in all existing breakpoint_ops instances.
1813 (struct breakpoint) <hw_wp_mask>: New field.
1814 * breakpoint.c (is_masked_watchpoint): Add prototype.
1815 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1816 breakpoint's breakpoint_ops.works_in_software_mode if available.
1817 (watchpoints_triggered): Handle the case of a hardware masked
1819 (watchpoint_check): Likewise.
1820 (works_in_software_mode_watchpoint): New function.
1821 (insert_masked_watchpoint, remove_masked_watchpoint)
1822 (resources_needed_masked_watchpoint)
1823 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1824 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1825 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1827 (masked_watchpoint_breakpoint_ops): New structure.
1828 (watch_command_1): Check for the existence of the `mask' parameter.
1829 Set b->ops according to the type of hardware watchpoint being created.
1830 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1831 (ppc_linux_remove_mask_watchpoint)
1832 (ppc_linux_masked_watch_num_registers): New functions.
1833 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1834 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1835 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1836 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1837 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1838 (target_masked_watch_num_registers): New functions.
1839 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1840 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1842 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1843 (target_masked_watch_num_registers): Add prototypes.
1845 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1848 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1849 (producer_is_gcc_ge_4_0): New function.
1850 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1851 symtab->language code.
1852 (var_decode_location): Set cu->has_loclist.
1853 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1854 skip. Intialize force_skip from locations_valid. Move the prologue
1855 skipping code into two passes.
1856 * symtab.h (struct symtab): Make the primary field a bitfield. New
1857 field locations_valid.
1859 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1861 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1862 (classify_inner_name): Call cp_lookup_nested_type with
1864 * cp-namespace.c (cp_lookup_nested_type): New variable
1865 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1866 type_name_no_tag_or_error with saved_parent_type.
1867 * dwarf2read.c (load_partial_dies): Read in any children of
1868 DW_TAG_typedef with complaint in such case.
1869 * gdbtypes.c (type_name_no_tag_or_error): New function.
1870 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1871 * valops.c (destructor_name_p): New comment for parameter type. Remove
1872 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1873 * value.h (destructor_name_p): Remove type const.
1875 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1877 * symtab.c (compare_symbol_name): New function.
1878 (completion_list_add_name, expand_partial_symbol_name): Call it,
1879 remove the variable ncmp.
1880 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1883 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1885 Demote to sw watchpoint only in update_watchpoint.
1886 * breakpoint.c (update_watchpoint): Change between software and
1887 hardware watchpoint for all kinds of watchpoints, not just
1888 read/write ones. Determine b->exact value here instead of
1889 in watch_command_1. Error out if there are not enough resources
1890 for a read or access hardware watchpoint.
1891 (watch_command_1): Remove logic of checking whether there are
1892 enough resources available, since update_watchpoint will do that
1893 work now. Don't set b->exact here. Catch exceptions thrown by
1894 update_watchpoint and delete the watchpoint.
1895 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1896 Use target_exact_watchpoints instead.
1897 (delete_breakpoint): Notify observers only if deleted watchpoint
1898 has a breakpoint number assigned to it.
1900 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
1902 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1904 2011-05-05 Jerome Guitton <guitton@adacore.com>
1906 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1908 (i386_stack_tramp_frame_unwind): New static global.
1909 (i386_match_pattern): New function, extracted from i386_match_insn.
1910 (i386_match_insn): Use i386_match_pattern.
1911 (i386_match_insn_block): New function.
1912 (i386_tramp_chain_in_reg_insns)
1913 (i386_tramp_chain_on_stack_insns): New static variables.
1914 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1917 2011-05-04 Joseph Myers <joseph@codesourcery.com>
1919 * configure.host (xscale*): Don't handle target.
1920 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1923 2011-05-04 Yao Qi <yao@codesourcery.com>
1925 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1927 2011-05-03 Joel Brobecker <brobecker@adacore.com>
1930 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
1931 | * elfread.c (elf_symtab_read): Stop memory leak.
1933 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1935 * nto-tdep.c (nto_target): Replace deprecated call to
1936 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1938 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1940 Fix false GCC warning.
1941 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1943 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1945 * breakpoint.c (update_watchpoint): Move code to change
1946 the enable state of breakpoint from here ...
1947 (do_enable_breakpoint): ... to here.
1949 2011-04-26 Andrew Gontarek <andrewg@cray.com>
1951 * valprint.c (val_print_array_elements): Fixed poor performance
1952 of printing very large arrays with repeat_count_threshold set
1953 to unlimited. New comment.
1955 2011-04-29 Tom Tromey <tromey@redhat.com>
1957 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
1958 (mi_parse): Likewise.
1959 * breakpoint.c (break_range_command): Use sizeof char*, not
1961 (create_breakpoint): Likewise.
1962 (parse_breakpoint_sals): Likewise.
1964 2011-04-29 Pedro Alves <pedro@codesourcery.com>
1966 * linux-nat.c (linux_child_remove_fork_catchpoint)
1967 (linux_child_remove_vfork_catchpoint)
1968 (linux_child_remove_exec_catchpoint): New functions.
1969 (linux_target_install_ops): Install them.
1971 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
1975 * varobj.c (install_default_visualizer): Do not install a
1976 visualizer if the varobj is CPLUS_FAKE_CHILD.
1977 (construct_visualizer): Likewise.
1979 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1981 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
1982 case insensitive comparison.
1984 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
1986 * infrun.c (proceed): Revert previous change.
1987 (resume): Instead, handle the case of signal delivery while stepping
1988 off a breakpoint location here, and only if software single-stepping
1989 is used. Handle nested signals.
1991 2011-04-28 Yao Qi <yao@codesourcery.com>
1993 * arm-tdep.c (copy_unmodified): Rename to ...
1994 (arm_copy_unmodified): .. this. New.
1995 (copy_preload): Move common part to ...
1996 (install_preload): .. this. New.
1997 (arm_copy_preload): New.
1998 (copy_preload_reg): Move common part to ...
1999 (install_preload_reg): ... this. New.
2000 (arm_copy_preload_reg): New.
2001 (copy_b_bl_blx): Move common part to ...
2002 (install_b_bl_blx): .. this. New.
2003 (arm_copy_b_bl_blx): New.
2004 (copy_bx_blx_reg): Move common part to ...
2005 (install_bx_blx_reg): ... this. New.
2006 (arm_copy_bx_blx_reg): New.
2007 (copy_alu_reg): Move common part to ...
2008 (install_alu_reg): ... this. New.
2009 (arm_copy_alu_reg): New.
2010 (copy_alu_shifted_reg): Move common part to ...
2011 (install_alu_shifted_reg): ... this. New.
2012 (copy_ldr_str_ldrb_strb): Move common part to ...
2013 (install_ldr_str_ldrb_strb): ... this. New.
2014 (arm_copy_ldr_str_ldrb_strb): New.
2015 (copy_copro_load_store): Move some common part to ...
2016 (install_copy_copro_load_store): ... this. New.
2017 (arm_copy_copro_load_store): New.
2019 (arm_copy_svc): Renamed from copy_svc.
2020 (copy_undef): Delete.
2021 (arm_copy_undef): Renamed from copy_undef.
2022 (decode_ext_reg_ld_st): Delete.
2023 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2024 (decode_svc_copro): Delete.
2025 (arm_decode_svc_copro): Renamed from decode_svc_copro.
2026 (copy_copro_load_store, copy_alu_imm): update callers.
2027 (copy_extra_ld_st, copy_block_xfer): Likewise.
2028 (decode_misc_memhint_neon, decode_unconditional): Likewise.
2029 (decode_miscellaneous, decode_dp_misc): Likewise.
2030 (decode_ld_st_word_ubyte, decode_media): Likewise.
2031 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
2032 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
2033 (decode_unconditional, decode_miscellaneous): Likewise.
2034 (decode_media, decode_b_bl_ldmstm): Likewise.
2035 (arm_process_displaced_insn): Likewise..
2036 (decode_misc_memhint_neon): Delete.
2037 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2038 (decode_miscellaneous): Delete.
2039 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2040 (decode_dp_misc): Delete.
2041 (arm_decode_dp_misc): Renamed from decode_dp_misc.
2042 (decode_ld_st_word_ubyte): Delete.
2043 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2044 (decode_media): Delete.
2045 (arm_decode_media): Renamed from decode_media.
2046 (decode_b_bl_ldmstm): Delete.
2047 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2048 (decode_ext_reg_ld_st): Delete.
2049 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2050 (decode_unconditional): Delete.
2051 (arm_decode_unconditional): Renamed from decode_unconditional.
2053 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2055 Case insensitive lookups implementation.
2056 * dwarf2read.c: Include ctype.h.
2057 (struct mapped_index): New field version.
2058 (mapped_index_string_hash): New parameter index_version. New comment
2059 for it. Call tolower appropriately.
2060 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2061 Choose the right index version for mapped_index_string_hash.
2062 (dwarf2_read_index): Support also the index version 5. Initialize the
2063 new struct mapped_index field version.
2064 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2065 (find_slot): Explain the version needs. Pass INT_MAX for the new
2067 (write_psymtabs_to_index): Produce version 5.
2068 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2069 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2070 * psymtab.c (lookup_partial_symbol): Find the
2071 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2073 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2075 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2076 (completion_list_add_name): New variable ncmp, initialize it, use it.
2077 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2078 * utils.c (strcmp_iw): Support case_sensitive_off.
2079 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2080 New function comment part. New variables saved_string1,
2081 saved_string2 and case_pass. Add a proper second pass.
2083 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2085 Replace re_comp/re_exec by regcomp/regexec.
2086 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2087 (search_symbols_name_matches): Use them, use regexec.
2088 (search_symbols): New variable retval_chain, adjust the use of
2089 old_chain against it. Replace re_comp by regcomp. Use the new struct
2090 search_symbols_data fields, use regexec instead of re_exec.
2092 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2094 Format the code for the next patch.
2095 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2096 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2097 New variables c1 and c2.
2099 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2101 * infrun.c (proceed): Do not single-step into signal delivery
2102 when stepping off a breakpoint location.
2103 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2104 (insert_step_resume_breakpoint_at_caller): Likewise.
2105 (insert_step_resume_breakpoint_at_sal): Likewise.
2106 (insert_longjmp_resume_breakpoint): Likewise.
2108 2011-04-27 Yao Qi <yao@codesourcery.com>
2110 * common/linux-ptrace.h: Remove include <sys/wait.h>.
2112 2011-04-27 Joel Brobecker <brobecker@adacore.com>
2114 * procfs.c (procfs_pass_signals): Fix advance declaration.
2116 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2118 * target.h (struct target_ops): Remove to_notice_signals;
2119 add to_pass_signals.
2120 (target_notice_signals): Remove.
2121 (target_pass_signals): Add prototype.
2122 * target.c (update_current_target): Remove to_notice_signals;
2123 mention to_pass_signals.
2124 (target_pass_signals): New function.
2125 (debug_to_notice_signals): Remove.
2126 (setup_target_debug): Do not install debug_to_notice_signals.
2128 * infrun.c (signal_pass): New global.
2129 (resume): Call target_pass_signals.
2130 (handle_inferior_event): Report all signals while stepping over
2131 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
2132 are re-inserted when stepping over a signal handler.
2133 (signal_cache_update): New function.
2134 (signal_stop_update): Call it.
2135 (signal_print_update): Likewise.
2136 (signal_pass_update): Likewise.
2137 (handle_command): Call signal_cache_update and target_pass_signals
2138 instead of target_notice_signals.
2139 (_initialize_infrun): Initialize signal_pass.
2141 * linux-nat.c (pass_mask): New global.
2142 (linux_nat_pass_signals): New function.
2143 (linux_nat_create_inferior): Report all signals initially.
2144 (linux_nat_attach): Likewise.
2145 (linux_nat_resume): Use pass_mask to decide whether to directly
2146 handle an inferior signal.
2147 (linux_nat_wait_1): Likewise.
2148 (linux_nat_add_target): Install to_pass_signals callback.
2150 * nto-procfs.c (notice_signals): Remove.
2151 (procfs_resume): Do not call notice_signals.
2152 (procfs_notice_signals): Remove.
2153 (procfs_pass_signals): New function.
2154 (init_procfs_ops): Install to_pass_signals callback instead of
2155 to_notice_signals callback.
2156 (_initialize_procfs): Report all signals initially.
2158 * procfs.c (procfs_notice_signals): Remove.
2159 (procfs_pass_signals): New function.
2160 (procfs_target): Install to_pass_signals callback instead of
2161 to_notice_signals callback.
2162 (register_gdb_signals): Remove.
2163 (procfs_debug_inferior): Report all signals initially.
2164 (procfs_init_inferior): Remove redundant register_gdb_signals call.
2166 * remote.c (remote_pass_signals): Add numsigs and pass_signals
2167 parameters; use them instead of calling signal_..._state routines.
2168 (remote_notice_signals): Remove.
2169 (remote_start_remote): Report all signals initially.
2170 (remote_resume): Do not call remote_pass_signals.
2171 (_initialize_remote): Install to_pass_signals callback instead of
2172 to_notice_signals callback.
2174 2011-04-27 Pedro Alves <pedro@codesourcery.com>
2176 * breakpoint.c (user_settable_breakpoint): Delete.
2177 (user_breakpoint_p): Remove check on user_settable_breakpoint.
2178 (delete_command): Check user_breakpoint_p instead of looking at
2179 the breakpoint's type.
2180 (disable_command): Ditto.
2181 (enable_command): Ditto.
2182 (delete_trace_command): Use user_breakpoint_p instead of looking
2183 at the breakpoint number directly. When checking if there are
2184 user visible tracepoints, in order to know whether to ask the user
2185 for confirmation, check whether the breakpoint is actually a
2188 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2190 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2193 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2195 MI breakpoint notifications.
2197 * annotate.c (breakpoint_changed): Adjust parameter type.
2198 * breakpoint.c (set_breakpoint_condition): Adjust to change
2199 in breakpoint_modified type.
2200 (breakpoint_set_commands): Likewise.
2201 (do_map_commands_command): Likewise.
2202 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2203 changed after bumping hit count.
2204 (bpstat_stop_status): Likewise.
2205 (print_one_breakpoint_location): Don't wrap in tuple here.
2206 (print_one_breakpoint): Always print individual locations.
2207 For locations, use unnamed tuple.
2208 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2210 (create_catchpoint, create_syscall_event_catchpoint): Call
2211 breakpoint_created obsever.
2212 (mention): Don't call breakpoint_created observer.
2213 (create_breakpoint_sal): Call breakpoint_created observer.
2214 (create_breakpoint, watch_command_1): Likewise.
2215 (create_ada_exception_breakpoint): Likewise.
2216 (delete_breakpoint): Call breakpoint_deleted breakpoint.
2217 (locations_are_equal): New.
2218 (update_breakpoint_locations): If locations were changed, notify.
2219 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2220 Call breakpoint_modified observer.
2222 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2223 (mi_cmd_break_insert): Don't set observers for modify and delete.
2224 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2225 (mi_breakpoint_created, mi_breakpoint_deleted)
2226 (mi_breakpoint_modified): New.
2227 (mi_interpreter_init): Hook the above.
2228 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2229 while -break-* commands are executing.
2230 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2231 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2233 (mi_ui_out_impl): Hook in mi_redirect.
2234 (mi_field_skip): True to the name, skip the field, don't output
2235 a field with an empty value.
2237 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2238 (gdbpy_breakpoint_deleted): Adjust.
2239 * tui/tui-hooks.c (tui_event_create_breakpoint)
2240 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2242 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
2244 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2245 (procfs_remove_hw_watchpoint): Likewise.
2247 2011-04-26 Michael Walle <michael@walle.cc>
2249 * remote.c (remote_start_remote): Ack packet after sending the
2252 2011-04-26 Yao Qi <yao@codesourcery.com>
2254 * linux-nat.c: Move common macros to ...
2255 Include linux-ptrace.h.
2256 * common/linux-ptrace.h: ... here. New.
2258 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2260 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2261 !objfile_has_partial_symbols. New comment.
2262 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2263 SYM_READ_PSYMBOLS is not present. Extend the comment.
2264 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2266 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2268 * defs.h (ENUM_BITFIELD): Remove.
2270 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2271 Eli Zaretskii <eliz@gnu.org>
2273 * NEWS: Document the new gdbserver --once option.
2275 2011-04-21 Jie Zhang <jzhang918@gmail.com>
2277 * MAINTAINERS: Update my email address.
2279 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2281 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2282 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2283 function call if __STDC_ISO_10646__ macro is defined.
2284 (intermediate_encoding): New prototype.
2285 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2286 to generate compile time error for unsupported gdb_wchar_t size.
2287 (ENDIAN_SUFFIX): New macro.
2288 (intermediate_encoding): New function.
2290 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2292 * ada-lang.c (struct add_partial_datum): Update the comment for
2293 expand_partial_symbol_name.
2294 (ada_add_partial_symbol_completions): Rename to ...
2295 (ada_expand_partial_symbol_name): ... here, change return type, update
2296 function comment, call symbol_completion_match instead of
2297 symbol_completion_add.
2298 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2299 and ada_expand_partial_symbol_name.
2300 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2302 (dw2_map_symbol_names): Remove.
2303 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2304 * psymtab.c (map_symbol_names_psymtab): Remove.
2305 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2306 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2308 (psym_functions): Unlist map_symbol_names_psymtab.
2309 (map_partial_symbol_names): Rename to ...
2310 (expand_partial_symbol_names): ... here, change the FUN type, call
2311 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2312 * psymtab.h (map_partial_symbol_names): Rename to ...
2313 (expand_partial_symbol_names): ... here, change the FUN type.
2314 * symfile.h (struct quick_symbol_functions): Update the description of
2315 expand_symtabs_matching. Remove map_symbol_names.
2316 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2317 (struct add_name_data): Update the comment for
2318 expand_partial_symbol_name.
2319 (add_partial_symbol_name): Rename to ...
2320 (expand_partial_symbol_name): ... here. Replace
2321 completion_list_add_name call by strncmp.
2322 (default_make_symbol_completion_list_break_on): Use now
2323 expand_partial_symbol_names and expand_partial_symbol_name.
2324 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2326 2011-04-20 Tom Tromey <tromey@redhat.com>
2328 * dwarf2read.c (save_gdb_index_command): Replace format
2329 documentation with a pointer to the manual.
2331 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2333 * regcache.c: Include remote.h.
2334 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2335 (regcache_dump): Handle regcache_dump_remote.
2336 (maintenance_print_remote_registers): New function.
2337 (_initialize_regcache): Install "maint print remote-registers"
2339 * remote.c (map_regcache_remote_table): New function, factored out
2341 (init_remote_state): ... here.
2342 (remote_register_number_and_offset): New.
2343 * remote.h (remote_register_number_and_offset): Declare.
2345 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2347 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2348 null_ptid, assume and allow a NULL address space, instead of
2349 asking the target for the ptid's address space.
2350 * infrun.c (ptid_is_pid): Remove assertion.
2352 2011-04-19 Tom Tromey <tromey@redhat.com>
2354 * windows-tdep.c (windows_xfer_shared_library):
2355 * windows-nat.c (get_module_name, windows_make_so):
2356 * v850-tdep.c (v850_handle_pushm):
2357 * utils.c (null_cleanup, gdb_realpath):
2358 * ui-out.c (get_next_header):
2359 * tracepoint.c (clear_traceframe_info):
2360 * symtab.c (lookup_symtab):
2361 * serial.h (struct serial_ops):
2362 * mipsread.c (read_alphacoff_dynamic_symtab):
2363 * infcmd.c (print_return_value):
2364 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2365 * f-exp.y (parse_number):
2366 * exceptions.c (catch_exceptions):
2367 * dummy-frame.c (dummy_frame_this_id):
2368 * defs.h (struct cleanup):
2369 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2370 * arm-tdep.c (arm_push_dummy_call):
2371 * amd64-tdep.h (amd64_collect_xsave):
2372 * amd64-tdep.c (amd64_collect_xsave):
2373 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2374 * README (typing): Remove duplicate words.
2375 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2376 * infrun.c (siginfo_value_read): Fix typo.
2377 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2378 * top.c (source_line_number): Add comma.
2380 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2382 * thread.c (any_live_thread_of_process): Prioritize threads
2383 that are not executing.
2384 * gdbthread.h (any_live_thread_of_process): Update comment
2385 as per above change.
2387 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2389 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2390 (scan_xcoff_symtab): Likewise.
2392 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2394 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2397 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2398 Pedro Alves <pedro@codesourcery.com>
2400 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2401 variables to simplify code and avoid == operator at end of
2402 line as this is against GNU coding standards.
2404 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2406 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2407 lm_name to name_lm to avoid conflict with lm_name function.
2409 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2411 ARI fixes: Use only lowercase function name for static functions.
2412 * nto-tdep.c (LM_ADDR): Rename to...
2413 (lm_addr): New function name.
2414 (nto_relocate_section_addresses): Adapt to change above.
2415 * solib-sunos.c (LM_ADDR): Rename to...
2416 (lm_addr): New function name.
2417 (LM_NEXT): Rename to...
2418 (lm_next): New function name.
2419 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2420 function name changes above.
2421 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2422 (lm_addr_from_link_map): New function name.
2423 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2424 (has_lm_dynamic_from_link_map): New function name.
2425 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2426 (lm_dynamic_from_link_map): New function name.
2427 (LM_ADDR_CHECK): Rename to...
2428 (lm_addr_check): New function name.
2429 (LM_NEXT): Rename to...
2430 (lm_next): New function name.
2431 (LM_PREV): Rename to...
2432 (lm_prev): New function name.
2433 (LM_NAME): Rename to...
2434 (lm_name): New function name.
2435 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2436 (ignore_first_link_map_entry): New function name.
2437 (svr4_keep_data_in_core): Adapt to function name changes above.
2438 (svr4_current_sos): Likewise.
2439 (enable_break): Likewise.
2440 (svr4_relocate_section_addresses): Likewise.
2442 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2445 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2446 sprintf. Simplify code and avoid loosing memory.
2447 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2448 (call0_frame_cache): Remove && operator from end of line.
2450 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2452 Fix libraries displacement if they change whether they were prelinked.
2453 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2454 does not match. Comment why.
2456 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2458 * corelow.c: Include wrapper.h.
2459 (core_open): Call now gdb_target_find_new_threads.
2460 * wrapper.c: Include target.h.
2461 (gdb_target_find_new_threads): New.
2462 * wrapper.h (gdb_target_find_new_threads): New declaration.
2464 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2466 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2467 even if !TARGET_HAS_EXECUTION.
2469 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2471 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2472 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2473 bfd_get_synthetic_symtab.
2474 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2475 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2476 parameter parent, remove the call to add_separate_debug_objfile.
2477 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2478 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2479 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2480 parent, new comment for it, call add_separate_debug_objfile for it.
2481 (symbol_file_add_separate): Pass objfile as the parameter parent,
2482 remove the call to add_separate_debug_objfile.
2483 (symbol_file_add_from_bfd): New parameter parent, pass it.
2484 (symbol_file_add): Pass NULL to the new parameter parent.
2485 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2487 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2489 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2492 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2494 Fix Python access to inlined frames.
2495 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2496 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2498 2011-04-15 Tom Tromey <tromey@redhat.com>
2500 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2502 2011-04-15 Gary Benson <gbenson@redhat.com>
2504 * MAINTAINERS: Add myself to write-after-approval section.
2506 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2508 * remote-sim.c (sim_command_completer): New function.
2509 (_initialize_remote_sim): Set completer to sim_command_completer.
2511 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2513 * breakpoint.c (print_exception_catchpoint): Rename to ...
2514 (print_it_exception_catchpoint): ... this.
2515 (gnu_v3_exception_catchpoint_ops): Update with new name
2516 for print_it_exception_catchpoint.
2518 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2520 * MAINTAINERS: Add myself for write after approval privileges.
2522 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2524 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2526 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2528 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2530 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2532 * breakpoint.c (save_breakpoints): Verify whether
2533 breakpoint_ops.print_recreate is defined before calling it.
2535 2011-04-11 Gary Benson <gbenson@redhat.com>
2537 Fix failure with --enable-maintainer-mode.
2538 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2540 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2543 * symtab.c (search_symbols): Reorder the KIND description in the
2544 function comment. Remove the unused 4th element of types, types2,
2545 types3 and types4. New gdb_assert on KIND.
2546 (symtab_symbol_info): Remove the unused 4th element of classnames.
2547 New gdb_assert on KIND.
2548 * symtab.h (enum search_domain): New warning in the enum comment.
2549 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2552 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2554 Fix crash of gdb save-index on a STABS file.
2555 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2558 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2560 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2561 * dwarf2read.c: Include ctype.h.
2562 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2564 (dwarf2_add_field): Fix new_field->accessibility by calling
2565 dwarf2_default_access_attribute. Restructure setting accessibility
2567 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2568 is_private and is_protected by calling
2569 dwarf2_default_access_attribute.
2571 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2573 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2574 to the initialization.
2576 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2578 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2581 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2583 Remove support for old Cygwin 1.5 versions.
2584 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2585 function on old Cygwin version.
2586 * windows-nat.c: Remove cygwin version check and always define
2587 __USEWIDE for Cygwin compilation.
2589 2011-04-07 Yao Qi <yao@codesourcery.com>
2591 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2593 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2594 (arm_copy_svc): Remove parameters INSN and TO.
2595 (decode_svc_copro): Update caller.
2596 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2597 from function pointer `copy_svc_os'.
2599 2011-04-07 Yao Qi <yao@codesourcery.com>
2601 * arm-tdep.c (cleanup_branch): Set a correct return address in
2602 LR for ARM and Thumb.
2604 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2607 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2608 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2609 in the function comment, a new note on values compatibility.
2610 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2611 * symtab.h (SYMBOL_HASH_NEXT): New.
2613 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2615 * ppc-linux-nat.c (check_condition): Add len output parameter.
2616 Set it based on the memory region referenced in the condition
2617 expression. Update all callers.
2619 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2621 Fix crash regression on systems featuring .gdb_index.
2622 * objfiles.c (free_objfile): Move the
2623 forget_cached_source_info_for_objfile call earlier. Comment it.
2624 Extend the comment for objfile_free_data.
2626 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2628 Fix regression of displaying the debug format.
2629 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2632 2011-04-04 Tom Tromey <tromey@redhat.com>
2634 * cli/cli-interp.c (struct captured_execute_command_args):
2636 (do_captured_execute_command): Remove.
2637 (safe_execute_command): Use TRY_CATCH.
2638 * cli/cli-script.c (struct wrapped_read_command_file_args):
2640 (wrapped_read_command_file): Remove.
2641 (script_from_file): Use TRY_CATCH.
2642 * exceptions.c (catch_exception): Remove.
2643 * exceptions.h (catch_exception): Remove.
2644 (deprecated_throw_reason): Update comment.
2645 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2646 argument to 'context'.
2647 (mi_execute_command): Use TRY_CATCH.
2648 * remote.c (struct start_remote_args): Remove.
2649 (remote_start_remote): Update; change arguments.
2650 (remote_open_1): Use TRY_CATCH.
2652 2011-04-04 Tom Tromey <tromey@redhat.com>
2654 * tracepoint.c (scope_info): Update.
2655 * symtab.c (decode_line_spec): Update.
2656 * python/python.c (gdbpy_decode_line): Update.
2657 * linespec.h (decode_line_1): Update.
2658 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2659 (decode_compound, find_method, symtab_from_filename)
2660 (decode_variable): Likewise.
2661 * cli/cli-cmds.c (edit_command): Update.
2662 (list_command): Update.
2663 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2665 (create_breakpoint): Update.
2666 (until_break_command): Update.
2667 (addr_string_to_sals): Update.
2668 (decode_line_spec_1): Update.
2670 2011-04-04 Tom Tromey <tromey@redhat.com>
2672 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2673 (do_captured_parse_breakpoint): Remove.
2674 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2675 Use TRY_CATCH directly.
2677 2011-04-04 Tom Tromey <tromey@redhat.com>
2679 * symtab.h (free_symtab): Remove.
2680 (forget_cached_source_info_for_objfile): Declare.
2681 * symmisc.c (free_symtab): Remove.
2682 * source.c (forget_cached_source_info_for_objfile): New function.
2683 (forget_cached_source_info): Use it.
2684 * objfiles.c (free_objfile): Simplify check before calling
2685 clear_current_source_symtab_and_line. Call
2686 forget_cached_source_info_for_objfile.
2688 2011-04-04 Tom Tromey <tromey@redhat.com>
2690 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2691 (new_symtab): Don't set `free_code' on symtab.
2692 (new_linetable): Properly handle size==0.
2693 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2694 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2696 * jv-lang.c (struct jv_per_objfile_data): New.
2697 (jv_per_objfile_free): Free the data.
2698 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2699 (get_java_class_symtab): Set the `dict' field on the
2700 jv_per_objfile_data.
2701 (free_class_block): Remove.
2702 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2705 2011-04-04 Tom Tromey <tromey@redhat.com>
2707 * symfile.c (reread_symbols): Update.
2708 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2710 * objfiles.c (allocate_objfile): Update.
2711 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2713 * cp-namespace.c (lookup_symbol_file): Don't call
2714 lookup_possible_namespace_symbol.
2715 (initialize_namespace_symtab, get_possible_namespace_block)
2716 (free_namespace_block, cp_check_possible_namespace_symbols)
2717 (check_possible_namespace_symbols_loop)
2718 (check_one_possible_namespace_symbol)
2719 (lookup_possible_namespace_symbol): Remove.
2720 (maintenance_cplus_namespace): Replace with notice.
2721 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2723 2011-04-04 Tom Tromey <tromey@redhat.com>
2725 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2726 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2727 * symmisc.c (free_symtab): Don't free debugformat.
2728 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2729 (record_debugformat, record_producer): Document.
2730 * buildsym.c (end_symtab): Don't save debugformat and producer
2732 (end_symtab): Don't free debugformat and producer fields.
2733 (record_debugformat): Don't call xstrdup.
2734 (record_producer): Likewise.
2736 2011-04-04 Tom Tromey <tromey@redhat.com>
2738 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2739 (source_line_charpos, source_charpos_line): Remove.
2741 2011-04-04 Tom Tromey <tromey@redhat.com>
2743 * symtab.h (domain_enum): Split in two...
2744 (enum search_domain): New.
2745 (search_symbols): Update.
2746 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2747 redundant declarations.
2748 (search_symbols): Change 'kind' argument to search_domain.
2750 (print_symbol_info): Likewise.
2751 (symtab_symbol_info): Likewise.
2752 * symfile.h (struct quick_symbol_functions)
2753 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2754 <expand_symtabs_matching>: Likewise.
2755 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2756 (expand_symtabs_matching_via_partial): Update.
2757 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2758 (dw2_expand_symtabs_for_function): Update.
2759 * block.h: Moved anonymous enum...
2760 * defs.h (enum block_enum): ... here. Now named.
2762 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2764 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2765 * version.in: Bump version to 7.3.50.20110403-cvs.
2767 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2769 * NEWS: Create a new section for the next release branch.
2770 Rename the section of the current branch, now that it has
2773 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2775 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2776 for "fpscr" in target description.
2778 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2780 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2781 initialize it. Delay HASH initialization. Strip the part after open
2782 parenthesis for languages with qualifiers. Call do_cleanups.
2784 2011-04-01 Tom Tromey <tromey@redhat.com>
2786 * utils.c (report_command_stats): Don't print `-' for negative
2789 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2791 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2792 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2795 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2797 * breakpoint.h (bpdisp_text): Add declaration.
2798 * breakpoint.c (bpdisp_text): Make non-static.
2799 * ada-lang.c: #include "mi/mi-common.h".
2800 (print_it_exception): Rewrite to improve GDB/MI output.
2802 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2804 * arm-tdep.h (struct address_space): Add forward declaration.
2806 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2808 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2809 * arm-tdep.c (arm_override_mode): New global.
2810 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2811 execution mode heuristics.
2812 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2813 second single-step breakpoint if needed, using
2814 arm_insert_single_step_breakpoint.
2815 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2816 ARM execution mode, do not call thumb_get_next_pc_raw.
2817 (arm_get_next_pc): Encode execution mode in return value. Call
2818 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2819 (arm_insert_single_step_breakpoint): New function.
2820 (arm_software_single_step): Call it.
2821 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2822 argument to return execution mode of sigreturn target.
2823 (arm_linux_syscall_next_pc): Use it.
2824 (arm_linux_copy_svc): Update call.
2825 (arm_linux_software_single_step): Call
2826 arm_insert_single_step_breakpoint.
2828 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2830 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2833 2011-03-31 Tom Tromey <tromey@redhat.com>
2835 * varobj.c (update_dynamic_varobj_children): Properly handle
2836 errors from iterator.
2838 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2840 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2841 struct linkage name twice.
2843 2011-03-31 Tom Tromey <tromey@redhat.com>
2845 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2846 missing ">" to message.
2848 2011-03-31 Tom Tromey <tromey@redhat.com>
2850 * varobj.c (instantiate_pretty_printer): Remove duplicate
2853 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
2855 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2856 if neither saved value nor register available (e.g. signal frame).
2858 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2860 * macroexp.c (expand): Avoid uninitialized variable
2863 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2865 * breakpoint.c (break_range_command): Fix typo in comment.
2867 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2868 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2870 Implement support for PowerPC BookE ranged breakpoints.
2871 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2872 * breakpoint.h (struct bp_target_info) <length>: New member
2874 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2875 instead of struct breakpoint as argument, and also add ASPACE
2876 and BP_ADDR arguments. Update all callers.
2877 (struct breakpoint_ops) <print_one_detail>: New method.
2878 (struct breakpoint) <addr_string_range_end>: New member variable.
2879 * breakpoint.c (breakpoint_location_address_match): Add function
2881 (insert_bp_location): Set bl->target_info.length.
2882 (breakpoint_here_p): Call breakpoint_location_address_match.
2883 (moribund_breakpoint_here_p): Likewise.
2884 (regular_breakpoint_inserted_here_p): Likewise.
2885 (breakpoint_thread_match): Likewise.
2886 (bpstat_stop_status): Likewise.
2887 (bpstat_check_location): Move call to
2888 breakpoint_ops.breakpoint_hit to the top.
2889 (print_one_breakpoint_location): Call
2890 breakpoint_ops.print_one_detail if available.
2891 (breakpoint_address_match_range): New function.
2892 (breakpoint_location_address_match): Likewise.
2893 (breakpoint_locations_match): Compare the length field of the
2895 (hw_breakpoint_used_count): Count resources used by all locations
2896 in a breakpoint, and use breakpoint_ops.resources_needed if
2898 (breakpoint_hit_ranged_breakpoint): New function.
2899 (resources_needed_ranged_breakpoint): Likewise.
2900 (print_it_ranged_breakpoint): Likewise.
2901 (print_one_ranged_breakpoint): Likewise.
2902 (print_one_detail_ranged_breakpoint): Likewise.
2903 (print_mention_ranged_breakpoint): Likewise.
2904 (print_recreate_ranged_breakpoint): Likewise.
2905 (ranged_breakpoint_ops): New structure.
2906 (find_breakpoint_range_end): New function.
2907 (break_range_command): Likewise.
2908 (delete_breakpoint): Free addr_string_range_end.
2909 (update_breakpoint_locations): Add SALS_END argument. Update
2910 all callers. Calculate breakpoint length if a non-zero SALS_END
2911 is given. Call breakpoint_locations_match instead of
2912 breakpoint_address_match.
2913 (reset_breakpoint): Find SaL of the end of the range if B is a
2915 (_initialize_breakpoint): Register break-range command.
2916 * defs.h (print_core_address): Add function prototype.
2917 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2919 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2920 (ppc_linux_remove_hw_breakpoint): Likewise.
2921 (_initialize_ppc_linux_nat): Initialize
2922 to_ranged_break_num_registers.
2923 * target.c (update_current_target): Add comment about
2924 to_ranged_break_num_registers.
2925 (target_ranged_break_num_registers): New function.
2926 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2928 (target_ranged_break_num_registers): Add function prototype.
2929 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2930 * utils.c (print_core_address): ... here.
2932 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
2934 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2935 variable compiler warning.
2937 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2939 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2941 (re_set_breakpoint): ... to here ...
2942 (addr_string_to_sals): ... and here.
2944 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2946 * Makefile.in (SFILES): Add missing C sources.
2947 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2948 Add missing headers.
2950 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2952 * .gitignore: New file.
2954 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2956 * NEWS: Mention new cfi device simulation.
2958 2011-03-29 Tom Tromey <tromey@redhat.com>
2960 * dwarf2read.c (fixup_partial_die): Handle linkage name on
2961 otherwise anonymous types.
2962 (dwarf2_name): Likewise.
2963 * valops.c (value_struct_elt_for_reference): Refine artificial
2964 type logic. Call error if j==-1.
2966 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
2968 Fix false GCC warning.
2969 * infcall.c (find_function_addr): Initialize funaddr.
2971 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2973 Fix mingw compilation with --enable-targets=all.
2974 * remote-mips.c (gdb_usleep.h): Include header.
2975 (mips_enter_debug): Use gdb_usleep instead of sleep.
2977 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2979 Support resolution of STT_GNU_IFUNC via breakpoints.
2980 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
2981 bp_gnu_ifunc_resolver_return.
2982 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
2983 the loop. Support bp_gnu_ifunc_resolver and
2984 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
2985 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
2987 (bptype_string, print_one_breakpoint_location): Support
2988 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
2989 (user_settable_breakpoint): Return true also for
2990 bp_gnu_ifunc_resolver.
2991 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
2992 bp_gnu_ifunc_resolver_return.
2993 (set_breakpoint_location_function): New parameter explicit_loc,
2994 describe it. Call find_pc_partial_function_gnu_ifunc with new
2995 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
2996 EXPLICIT_LOC is not set.
2997 (set_raw_breakpoint): Set EXPLICIT_LOC for
2998 set_breakpoint_location_function.
2999 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
3000 set_breakpoint_location_function.
3001 (mention): Support bp_gnu_ifunc_resolver and
3002 bp_gnu_ifunc_resolver_return.
3003 (add_location_to_breakpoint): Set EXPLICIT_LOC for
3004 set_breakpoint_location_function.
3005 (update_breakpoint_locations): Remove static.
3006 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
3007 bp_gnu_ifunc_resolver_return.
3008 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
3009 bp_gnu_ifunc_resolver_return.
3010 (update_breakpoint_locations): New declaration.
3011 * elfread.c: Include gdbthread.h and regcache.h.
3012 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
3014 (elf_gnu_ifunc_fns): Install them.
3015 * minsyms.c (stub_gnu_ifunc_resolver_stop)
3016 (stub_gnu_ifunc_resolver_return_stop): New functions.
3017 (stub_gnu_ifunc_fns): Install them.
3018 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
3019 and gnu_ifunc_resolver_return_stop.
3020 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
3022 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3024 STT_GNU_IFUNC reader implementation.
3025 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
3026 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
3027 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
3028 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
3029 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
3030 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
3031 (elf_gnu_ifunc_resolve_addr): New.
3032 (elf_symfile_read): Call elf_rel_plt_read.
3033 (elf_gnu_ifunc_fns): New.
3034 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
3035 Install elf_gnu_ifunc_fns.
3036 * infcall.c (find_function_return_type): New function.
3037 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3038 * minsyms.c (stub_gnu_ifunc_resolve_addr)
3039 (stub_gnu_ifunc_resolve_name): New functions.
3040 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3041 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3042 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3044 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3046 Code cleanup for later STT_GNU_IFUNC support.
3047 * infcall.c (find_function_addr): Remove variable code, use explicit
3048 dereferences for it. Move VALUE_TYPE initialization later.
3050 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3052 GDB find_pc_partial_function support for STT_GNU_IFUNC.
3053 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3054 (clear_pc_function_cache): Clear it.
3055 (find_pc_partial_function): Rename to ...
3056 (find_pc_partial_function_gnu_ifunc): ... this function. New
3057 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
3058 (find_pc_partial_function): New wrapper for this function.
3059 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3061 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3063 GDB internal type support for STT_GNU_IFUNC.
3064 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3065 (elf_symtab_read): Set mst_text_gnu_ifunc for
3066 BSF_GNU_INDIRECT_FUNCTION.
3067 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3068 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3069 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3070 nodebug_got_plt_symbol.
3071 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3072 (TYPE_GNU_IFUNC): New.
3073 (struct main_type): New field flag_gnu_ifunc.
3074 (struct builtin_type): New field builtin_func_func.
3075 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3076 nodebug_got_plt_symbol.
3077 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3078 (in_gnu_ifunc_stub): New.
3079 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3081 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3082 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3083 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3085 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3086 * symtab.c (search_symbols): Likewise.
3087 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3088 and mst_slot_got_plt.
3089 (in_gnu_ifunc_stub): New declaration.
3091 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3093 Support a ring of related breakpoints.
3094 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3095 other functions, add gdb_assert.
3096 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3097 watchpoint_del_at_next_stop.
3098 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3099 (bpstat_stop_status): Handle ring in related_breakpoint.
3100 (set_raw_breakpoint_without_location): Initialize ring in
3102 (delete_breakpoint): Handle ring in related_breakpoint, use
3103 watchpoint_del_at_next_stop.
3104 (map_breakpoint_numbers): Handle ring in related_breakpoint.
3106 2011-03-28 Tom Tromey <tromey@redhat.com>
3109 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3110 with `language_minimal'.
3112 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
3114 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3115 instead of checking for STT_ARM_TFUNC symbol type.
3117 2011-03-25 Tom Tromey <tromey@redhat.com>
3119 * linespec.c (symbol_found): Restore line-based result for
3120 non-LOC_LABEL symbols.
3122 2011-03-25 Kai Tietz <ktietz@redhat.com>
3124 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3125 instead of strcmp for comparison.
3126 (tui_source_is_displayed): Likewise.
3127 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3129 2011-03-24 Mark Wielaard <mjw@redhat.com>
3131 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3133 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3134 (find_partial_die_in_comp_unit): Likewise in comment.
3135 (read_attribute_value): Likewise.
3136 (lookup_die_type): Likewise.
3137 (dwarf_form_name): Likewise.
3138 (dump_die_shallow): Likewise.
3139 (follow_die_ref_or_sig): Likewise.
3141 2011-03-24 Tom Tromey <tromey@redhat.com>
3143 PR breakpoints/11816:
3144 * linespec.c (decode_line_1): Parse `function:label' linespecs.
3145 (decode_compound): Update.
3146 (find_function_symbol): New function.
3147 (decode_dollar): Update.
3148 (decode_label): Add 'function_symbol' parameter. Handle
3149 function-relative labels.
3150 (decode_variable): Update.
3151 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
3152 not its line. Set `special_display' and canonical name for
3155 2011-03-24 Tom Tromey <tromey@redhat.com>
3157 * linespec.h (struct linespec_result) <special_display>: New
3159 * breakpoint.h (struct breakpoint) <display_canonical>: New
3161 * breakpoint.c (print_breakpoint_location): Respect
3163 (create_breakpoint_sal): Add 'display_canonical' parameter.
3164 (create_breakpoints_sal): Update.
3165 (create_breakpoint): Update.
3167 2011-03-24 Tom Tromey <tromey@redhat.com>
3169 * symtab.c (decode_line_spec): Update.
3170 * linespec.c (build_canonical_line_spec): Change type of
3172 (decode_line_2, decode_line_1, decode_objc, decode_compound)
3173 (find_method, decode_all_digits, decode_dollar, decode_label)
3174 (symbol_found): Likewise.
3175 (init_linespec_result): New function.
3176 * breakpoint.c (struct captured_parse_breakpoint_args)
3177 <canonical_p>: New field, replaces addr_string_p.
3178 (create_breakpoints_sal): Add 'canonical' parameter, replacing
3180 (parse_breakpoint_sals): Likewise.
3181 (do_captured_parse_breakpoint): Update.
3182 (create_breakpoint): Use struct linespec_result.
3183 (until_break_command): Update.
3184 (breakpoint_re_set_one): Update.
3185 (decode_line_spec_1): Update.
3186 * linespec.h (struct linespec_result): New.
3187 (init_linespec_result): Declare.
3189 2011-03-23 Pedro Alves <pedro@codesourcery.com>
3191 * regcache.c (regcache_raw_read): If the target didn't supply a
3192 given raw register, mark it as unavailable.
3194 2011-03-23 Kai Tietz <ktietz@redhat.com>
3196 * breakpoint.c (clear_command): Use filename_cmp
3197 instead of strcmp for comparison.
3198 * buildsym.c (watch_main_source_file_lossage): Likewise.
3199 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3200 checking just for slash.
3201 * dbxread.c (read_dbx_symtab): Use lbasename instead of
3202 strrchr and filename_cmp instead of strcmp for filenames.
3203 (add_old_header_file): Use filename_cmp
3204 instead of strcmp for comparison.
3205 * exec.c (exec_set_section_address): Likewise.
3206 * macrotab.c (macro_lookup_inclusion): Likewise.
3207 (macro_lookup_inclusion): Likewise.
3208 * elfread.c (_initialize_elfread): Likewise.
3209 (elfstab_offset_sections): Likewise.
3210 (elfstab_offset_sections): Use lbasename instead of
3212 * mdebugread.c (parse_partial_symbols): Likewise.
3213 (arse_partial_symbols): Use filename_(n)cmp instead of
3214 str(n)cmp for comparison.
3215 * minsyms.c (lookup_minimal_symbol): Likewise.
3216 * psymtab.c (read_psymtabs_with_filename): Likewise.
3217 * solib.c (solib_read_symbols): Likewise.
3218 (reload_shared_libraries_1): Likewise.
3219 * symmisc.c (maintenance_print_symbols): Likewise.
3220 * symfile.c (separate_debug_file_exists): Likewise.
3221 (reread_symbols): Likewise.
3222 (find_separate_debug_file_by_debuglink): Likewise.
3223 * remote-fileio.c (remote_fileio_func_rename): Likewise.
3224 * source.c (add_path): Likewise.
3225 * symtab.c (filename_seen): Likewise.
3226 (file_matches): Likewise.
3227 (print_symbol_info): Likewise.
3228 (maybe_add_partial_symtab_filename): Likewise.
3229 (make_source_files_completion_list): Likewise.
3230 * xml-syscall.c (init_sysinfo): Likewise.
3231 * windows-nat.c (_initialize_check_for_gdb_ini): Use
3232 IS_DIR_SEPARATOR for checking for trailing path separator.
3234 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3236 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
3237 label abort_expression.
3238 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3239 DWARF_VALUE_OPTIMIZED_OUT.
3241 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3244 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3245 to linkage_name. Invert its value. Update the function comment.
3246 (c_type_print_varspec_suffix): Invert it at the caller.
3247 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3249 2011-03-22 Pedro Alves <pedro@codesourcery.com>
3251 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3252 errors when reading the `stop_pc'.
3253 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3256 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3258 * NEWS: Document gdb.Write stream keyword.
3260 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3263 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3264 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3265 (dwarf2_add_field): Fix new_field->accessibility for
3266 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3268 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3272 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3273 other error classes. Do not print stack trace.
3275 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3277 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3278 (dwarf2_add_field): Fix new_field->accessibility for
3279 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3281 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
3283 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3284 encountering a load via a non-SP register.
3286 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3288 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3289 field in returned unwinder.
3291 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3293 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3295 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3297 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3300 2012-03-18 Pedro Alves <pedro@codesourcery.com>
3302 * frame.c (frame_unwind_register): Throw an error if unwinding the
3304 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3305 an unwind stop reason.
3306 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3307 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3308 UNWIND_UNAVAILABLE>: New.
3309 * inline-frame.c (inline_frame_unwind): Install
3310 default_frame_unwind_stop_reason.
3311 * frame-unwind.c: Include "exceptions.h".
3312 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3313 (default_frame_unwind_stop_reason): New.
3314 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3315 (default_frame_unwind_stop_reason): Declare.
3316 (struct frame_unwind) <stop_reason>: New function pointer.
3318 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3319 * dwarf2-frame.c: Include exceptions.h.
3320 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3321 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3322 computing the CFA. If such an error was thrown, set
3323 unavailable_retaddr.
3324 (dwarf2_frame_unwind_stop_reason): New.
3325 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3327 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3328 (dwarf2_signal_frame_unwind): Ditto.
3330 * amd64-tdep.c: Include "exceptions.h".
3331 (struct amd64_frame_cache): New field "base_p".
3332 (amd64_init_frame_cache): Clear it.
3333 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3334 Avoid reading registers with functions that throw if the register
3335 is not necessary to compute the frame base.
3336 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3337 swallowing NOT_AVAILABLE_ERROR.
3338 (amd64_frame_unwind_stop_reason): New.
3339 (amd64_frame_this_id): Don't build a frame id if the frame base
3341 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3342 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3343 base_p if the frame base was computable.
3344 (amd64_sigtramp_frame_unwind_stop_reason): New.
3345 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3346 frame base was unavailable.
3347 (amd64_sigtramp_frame_unwind): Install
3348 amd64_sigtramp_frame_unwind_stop_reason.
3349 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3350 base_p if the frame base was computable.
3351 (amd64_epilogue_frame_unwind_stop_reason): New.
3352 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3353 frame base was unavailable.
3354 (amd64_epilogue_frame_unwind): Install
3355 amd64_epilogue_frame_unwind_stop_reason.
3356 * i386-tdep.c: Include "exceptions.h".
3357 (struct i386_frame_cache): New field "base_p".
3358 (i386_init_frame_cache): Clear it.
3359 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3360 Avoid reading registers with functions that throw if the register
3361 is not necessary to compute the frame base.
3362 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3363 swallowing NOT_AVAILABLE_ERROR.
3364 (i386_frame_unwind_stop_reason): New.
3365 (i386_frame_this_id): Don't build a frame id if the frame base was
3367 (i386_frame_prev_register): Handle unavailable SP.
3368 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3369 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3370 base_p if the frame base was computable.
3371 (i386_epilogue_frame_unwind_stop_reason): New.
3372 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3373 base was unavailable.
3374 (i386_epilogue_frame_unwind): Install
3375 i386_epilogue_frame_unwind_stop_reason.
3376 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3377 base_p if the frame base was computable.
3378 (i386_sigtramp_frame_unwind_stop_reason): New.
3379 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3380 base was unavailable.
3381 (i386_sigtramp_frame_unwind): Install
3382 i386_sigtramp_frame_unwind_stop_reason.
3383 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3384 type's size, not the register's.
3385 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3387 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3388 default_frame_unwind_stop_reason.
3389 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3390 (alpha_heuristic_frame_unwind): Ditto.
3391 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3392 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3393 * avr-tdep.c (avr_frame_unwind): Ditto.
3394 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3396 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3397 * frv-tdep.c (frv_frame_unwind): Ditto.
3398 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3399 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3400 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3401 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3402 (hppa_stub_frame_unwind): Ditto.
3403 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3404 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3405 (ia64_libunwind_frame_unwind)
3406 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3407 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3408 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3409 * m32c-tdep.c (m32c_unwind): Ditto.
3410 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3411 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3412 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3413 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3414 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3415 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3416 * mep-tdep.c (mep_frame_unwind): Ditto.
3417 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3418 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3419 (mips_stub_frame_unwind): Ditto.
3420 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3421 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3422 * mt-tdep.c (mt_frame_unwind): Ditto.
3423 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3424 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3425 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3426 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3427 (s390_sigtramp_frame_unwind): Ditto.
3428 * score-tdep.c (score_prologue_unwind): Ditto.
3429 * sh-tdep.c (sh_frame_unwind): Ditto.
3430 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3431 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3432 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3433 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3434 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3435 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3436 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3437 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3438 (sparc64obsd_trapframe_unwind): Ditto.
3439 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3440 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3441 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3442 * v850-tdep.c (v850_frame_unwind): Ditto.
3443 * vax-tdep.c (vax_frame_unwind): Ditto.
3444 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3445 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3446 * xtensa-tdep.c (xtensa_unwind): Ditto.
3448 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3450 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3451 there's always a frame. Use get_frame_pc_if_available instead of
3452 get_frame_pc, and if there's no PC available, don't look up a
3455 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3457 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3460 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3462 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3465 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3467 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3468 * frame.c (frame_unwind_caller_pc_if_available): New.
3469 * stack.c (frame_info): Handle unavailable PC.
3471 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3473 * frame.c (frame_unwind_pc): Rename to ...
3474 (frame_unwind_pc_if_available): ... this. New `pc' output
3475 parameter. Change return type to int. Gracefully handle
3476 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3477 happened, or 1 otherwise.
3478 (frame_unwind_pc): Reimplement on top of
3479 frame_unwind_pc_if_available.
3480 (get_frame_func): Rename to ...
3481 (get_frame_func_if_available): New `pc' output parameter. Change
3482 return type to int. Gracefully handle the PC not being available.
3483 (get_frame_func): Reimplement on top of
3484 get_frame_func_if_available.
3485 (select_frame): Handle the PC being unavailable.
3486 (get_prev_frame): Handle the PC being unavailable.
3487 (get_frame_pc_if_available): New.
3488 (get_frame_address_in_block_if_available): New.
3489 (find_frame_sal): Handle the frame PC not being available.
3490 * frame.h (get_frame_pc_if_available): Declare.
3491 (get_frame_address_in_block_if_available): Declare.
3492 (get_frame_func_if_available): Declare.
3493 * stack.c (print_frame_info): Handle the PC being unavailable.
3494 (find_frame_funname): Ditto.
3495 (print_frame): Handle the PC being unavailable.
3496 (get_frame_language): Ditto.
3497 * blockframe.c (get_frame_block): Ditto.
3498 * macroscope.c (default_macro_scope): Ditto.
3499 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3501 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3503 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3504 NOT_AVAILABLE_ERROR when evaluating the location expression.
3506 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3508 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3509 returning that the register piece is unavailable/optimized out.
3510 (write_pieced_value): Handle get_frame_register_bytes returning
3511 that the register piece is unavailable/optimized out when doing a
3512 read-modify write of a bitfield.
3513 * findvar.c (value_from_register): Handle get_frame_register_bytes
3514 returning that the register piece is unavailable/optimized out.
3515 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3516 and `unavailablep'. Throw error on bad debug info. Use
3517 frame_register instead of frame_register_read, to fill in the new
3519 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3521 * valops.c: (value_assign): Adjust, and handle
3522 get_frame_register_bytes failing.
3523 * spu-tdep.c: Include exceptions.h.
3524 (spu_software_single_step): Adjust, and handle
3525 get_frame_register_bytes failing.
3526 (spu_get_longjmp_target): Ditto.
3527 * gdbarch.sh (register_to_value): Change to return int. New
3528 parameters `optimizedp' and `unavailablep'.
3529 * gdbarch.h, gdbarch.c: Regenerate.
3530 * i386-tdep.c (i386_register_to_value): Adjust to new
3531 gdbarch_register_to_value interface.
3532 * i387-tdep.c (i387_register_to_value): Ditto.
3533 * i387-tdep.h (i387_register_to_value): Ditto.
3534 * alpha-tdep.c (alpha_register_to_value): Ditto.
3535 * ia64-tdep.c (ia64_register_to_value): Ditto.
3536 * m68k-tdep.c (m68k_register_to_value): Ditto.
3537 * mips-tdep.c (mips_register_to_value): Ditto.
3538 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3540 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3542 * findvar.c (value_of_register): Mark the value as unavailable, if
3543 the register is unavailable.
3544 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3545 (frame_register): New `unavailablep' parameter.
3546 (frame_register_read): Update comment.
3547 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3548 Set it if the register is unavailable. If the register is
3549 unavailable, clear the output buffer.
3550 (frame_register): New `unavailablep' parameter. Pass it down.
3551 (frame_unwind_register): Adjust.
3552 (put_frame_register): Adjust.
3553 (frame_register_read): Adjust. Also return false if the register
3555 (frame_register_unwind_location): Adjust.
3556 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3557 is unavailable, mark the value accordingly.
3558 * stack.c (frame_info): Handle unavailable registers.
3560 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3562 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3563 simplify, using regcache_cooked_read.
3565 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3567 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3568 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3569 (regcache_raw_read_unsigned, regcache_raw_read_part)
3570 (regcache_cooked_read, regcache_cooked_read_signed)
3571 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3572 (regcache_cooked_read_ftype): Change return to enum
3574 * regcache.c: Include exceptions.h
3575 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3576 (do_cooked_read): Change return to enum register_status. Always
3577 forward to regcache_cooked_read.
3578 (regcache_raw_read): Change return to enum register_status. If
3579 the register is not REG_VALID, memset the buffer. Return the
3581 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3582 return the register's status.
3583 (regcache_raw_read_unsigned): Ditto.
3584 (regcache_cooked_read): Change return to enum register_status.
3585 Assert that with read-only regcaches, the register's status must
3586 be known. If the regcache is read-only, and the register is not
3587 REG_VALID, memset the buffer. Return the register's status.
3588 (regcache_cooked_read_signed): Change return to enum
3589 register_status. Handle non-REG_VALID registers and return the
3591 (regcache_cooked_read_unsigned): Change return to enum
3592 register_status. Handle non-REG_VALID registers and return the
3594 (regcache_xfer_part, regcache_raw_read_part)
3595 (regcache_cooked_read_part): Change return to enum
3596 register_status. Return the register's status.
3597 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3599 (regcache_dump): Handle unavailable cooked registers.
3600 * frame.c (do_frame_register_read): Adjust interface to match
3601 regcache_cooked_read_ftype.
3602 * gdbarch.sh (pseudo_register_read): Change return to enum
3604 * gdbarch.h, gdbarch.c: Regenerate.
3606 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3608 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3609 register_status. If reading a raw register indicates the raw
3610 register is not valid, return the raw register's status,
3611 otherwise, return REG_VALID.
3612 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3613 register_status. Handle non-REG_VALID raw registers and return
3614 the register's status.
3615 * arm-tdep.c (arm_neon_quad_read)
3616 (arm_pseudo_read): Change return to enum register_status. Handle
3617 non-REG_VALID raw registers and return the register's status.
3618 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3619 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3620 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3621 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3622 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3624 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3625 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3626 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3627 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3628 (m32c_pseudo_register_read): Change return to enum
3629 register_status. Adjust.
3630 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3631 enum register_status. Return the register's status.
3632 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3633 register_status. Return the register's status.
3634 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3635 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3636 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3637 * rs6000-tdep.c (move_ev_register_func): New typedef.
3638 (e500_move_ev_register): Use it. Change return to enum
3639 register_status. Return the register's status.
3640 (do_regcache_raw_read): New function.
3641 (do_regcache_raw_write): New function.
3642 (e500_pseudo_register_read): Change return to enum
3643 register_status. Return the register's status. Use
3644 do_regcache_raw_read.
3645 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3646 (dfp_pseudo_register_read): Change return to enum register_status.
3647 Return the register's status.
3648 (vsx_pseudo_register_read): Ditto.
3649 (efpr_pseudo_register_read): Ditto.
3650 (rs6000_pseudo_register_read): Ditto.
3651 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3652 register_status. Return the register's status.
3653 * sh64-tdep.c (pseudo_register_read_portions): New function.
3654 (sh64_pseudo_register_read): Change return to enum
3655 register_status. Use pseudo_register_read_portions. Return the
3657 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3658 register_status. Return the register's status.
3659 * sh-tdep.c (pseudo_register_read_portions): New function.
3660 (sh_pseudo_register_read): Change return to enum register_status.
3661 Use pseudo_register_read_portions. Return the register's status.
3662 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3663 enum register_status. Return the register's status.
3664 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3665 * spu-tdep.c (spu_pseudo_register_read_spu)
3666 (spu_pseudo_register_read): Ditto.
3667 * xtensa-tdep.c (xtensa_register_read_masked)
3668 (xtensa_pseudo_register_read): Ditto.
3669 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3671 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3673 * python/py-value.c (valpy_getitem): Fix formatting of error function
3676 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3678 ARI fixes: Add missing internationalization markups throughout
3680 * darwin-nat-info.c: Ditto.
3683 * mi/mi-main.c: Ditto.
3685 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3687 ARI fixes: Add missing internationalization markups throughout
3690 * cp-name-parser.y: Ditto.
3693 * objc-exp.y: Ditto.
3696 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3698 ARI fixes: Messages should have no trailing new lines.
3699 * darwin-nat.c (mach_check_error): Remove trailing new line from
3700 warning function call message.
3701 * record.c (bfdcore_read): Idem for error call.
3703 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3705 * common/signals.c (target_signal_from_host): Add _ markup to error
3706 function call message.
3707 (target_signal_to_host): Add _ markup and remove trailing new line
3708 from warning call message.
3709 (target_signal_from_command): Add _ markup to error function call
3712 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3716 * python/python.c (gdbpy_write): Accept a stream argument and
3717 operate to the appropriate stream.
3718 (gdbpy_flush): Likewise.
3719 (_initialize_python): Add stream constants.
3720 (finish_python_initialization): Add GdbOutputErrorFile class.
3722 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3724 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3726 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3728 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3729 to store_signed_integer. Add debug message when relocating CALL
3730 instructions. Fix formatting of debug message.
3731 * i386-tdep.c (i386_relocate_instruction): Ditto.
3733 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3735 * target.h (struct target_ops): Remove to_lookup_symbol field.
3736 (target_lookup_symbol): Delete macro.
3737 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3738 (update_current_target, setup_target_debug): Remove handling
3739 of to_lookup_symbol target_ops field.
3740 * ada-tasks.c (get_known_tasks_addr): Remove use of
3741 target_lookup_symbol.
3742 * coffread.c (coff_symtab_read): Likewise.
3743 * dbxread.c (read_dbx_symtab): Ditto.
3745 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3748 * configure.ac: Add getthrds declaration check.
3749 * configure, config.in: Regenerate.
3750 * aix-thread.c (getthrds): Declare only if not already declared
3751 in procinfo.h. More declaration out of get_signaled_thread to
3754 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3756 * python/py-symtab.c: Populate symtab_object_methods,
3758 (stpy_is_valid): New function.
3759 (salpy_is_valid): Ditto.
3760 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3761 (sympy_is_valid): New function.
3762 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3763 (objfpy_is_valid): New function.
3764 * python/py-inferior.c: Populate inferior_object_methods.
3765 (infpy_is_valid): New function.
3766 * python/py-infthread.c: Populate thread_object_methods.
3767 (thpy_is_valid): New function.
3768 * python/py-block.c: Declare block_object_methods. Populate. Declare
3769 block_iterator_object_methods. Populate.
3770 (blpy_is_valid): New function.
3771 (blpy_iter_is_valid): Ditto.
3773 2011-03-16 Keith Seitz <keiths@redhat.com>
3775 * linespec.c (find_methods): Canonicalize NAME before looking
3777 (name_end): New function.
3778 (keep_name_info): New function.
3779 (decode_line_1): Use keep_name_info.
3780 (decode_compound): Likewise.
3781 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3782 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3785 * linespec.c (locate_first_half): Keep overload information, too.
3786 (decode_compound): Use a string to represent break characters
3788 If P points to a break character, do not increment it.
3789 For C++ and Java, keep overload information and relevant keywords.
3790 If we cannot find a symbol, search the minimal symbols.
3793 * linespec.c (decode_compound): Rename SAVED_ARG to
3795 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3797 Pass a valid block to lookup_symbol.
3798 (lookup_prefix_sym): Likewise.
3799 (find_method): Construct search name based on SYM_CLASS instead
3801 * psymtab.c (lookup_partial_symbol): Add language parameter.
3802 (lookup_symbol_aux_psymtabs): Likewise.
3803 Don't assume that the psymtab we found was the right one. Search
3804 for the desired symbol in the symtab to be certain.
3805 (psymtab_search_name): New function.
3806 (lookup_partial_symbol): Use psymtab_search_name.
3807 Add language parameter.
3808 (read_symtabs_for_function): Add language parameter and pass to
3809 lookup_partial_symbol.
3810 (find_symbol_file_from_partial): Likewise.
3812 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3815 * dwarf2read.c (noop_record_line): New function.
3816 (dwarf_decode_lines): Ignore line tables for GCd functions.
3818 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3820 Fix ARI warnings about new lines at the end of messages, which
3821 are unneeded as there is a new line added at the end of the message
3823 * darwin-nat.c (darwin_stop_inferior): Ditto.
3824 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3825 * dfp.c (decimal_to_number): Ditto.
3826 * exec.c (print_section_info): Ditto.
3827 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3828 * osdata.c (get_osdata): Ditto.
3829 * record.c (bfdcore_write): Ditto.
3830 * remote-mips.c (mips_readchar): Ditto.
3831 * remote.c (read_ptid): Ditto.
3832 * ser-mingw.c (ser_windows_raw): Ditto.
3833 * tracepoint.c (add_local_symbols): Ditto.
3834 * windows-nat.c (fake_create_process): Ditto.
3836 2011-03-16 Tom Tromey <tromey@redhat.com>
3838 * tracepoint.c (stop_tracing): Don't declare.
3839 * event-top.c (after_char_processing_hook): Add `(void)'.
3841 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3843 * NEWS: Add Parameter sub-classing description.
3845 2011-03-16 Kai Tietz <ktietz@redhat.com>
3847 * MAINTAINERS: Update my e-mail address.
3849 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
3851 * MAINTAINERS: Add myself for write after approval privileges.
3853 2011-03-15 Michael Snyder <msnyder@vmware.com>
3855 * frame.c (find_frame_sal): Assert sym is not null.
3857 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3859 * objc-lang.c (selectors_info): Check strchr for null result.
3861 * stabsread.c (define_symbol): Guard against bad stabstring input.
3863 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3865 Remove trailing spaces and tabulations from pascal language
3870 p-valprint.c: Ditto.
3872 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3874 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3875 than LOW. Comment it.
3876 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3877 HIGHPC not strictly higher than LOWPC.
3879 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3881 Fix formatting of function declarations returning a pointer in
3883 * varobj.c (varobj_add_child): Ditto.
3884 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3885 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3887 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3889 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3890 for the "generic" vector ABI used with GCC 4.3 and later.
3891 (ppc64_sysv_abi_return_value): Likewise.
3893 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3895 * infcall.c (call_function_by_hand): Function return value is
3896 always a non_lval, even when using struct_return.
3898 2011-03-15 Pedro Alves <pedro@codesourcery.com>
3900 * printcmd.c (ALL_DISPLAYS_SAFE): New.
3901 (map_display_numbers): New.
3902 (do_delete_display): New.
3903 (undisplay_command): Use map_display_numbers.
3904 (do_enable_disable_display): New.
3905 (enable_disable_display_command): New function.
3906 (enable_display): Delete.
3907 (enable_display_command): New.
3908 (disable_display_command): Reimplement.
3909 (_initialize_printcmd): Adjust "enable display" command to use
3910 `enable_display_command' as callback.
3912 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3914 * NEWS: Add Python breakpoint 'stop' operation.
3916 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3918 * NEWS: Delete duplicate entry. Fix typo.
3920 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3922 Fix ARI warning about function names in first column.
3923 Put prototype declaration on same line as return type.
3924 * objc-exp.y: Ditto.
3926 * python/py-stopevent.h: Ditto.
3927 For long function names, split parameters to
3928 allow function name on same line as return type.
3929 * solib-pa64.c: Ditto.
3932 For long function declaration, use single line.
3933 * hppa-tdep.h: Ditto.
3934 * inferior.h: Ditto.
3936 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3938 * python/python.h: Declare gdbpy_should_stop and
3939 gdbpy_breakpoint_has_py_cond.
3940 * python/python.c: Add python.h to includes. Remove python.h from
3941 HAVE_PYTHON definition
3942 (gdbpy_should_stop): New dummy function.
3943 (gdbpy_breakpoint_has_py_cond): New dummy function.
3944 * python/py-breakpoint.c (bppy_init): Rewrite to allow
3945 sub-classing capabilities.
3946 (gdbpy_should_stop): New function.
3947 (gdbpy_breakpoint_has_py_cond): New function.
3948 (local_setattro): New function.
3949 * breakpoint.c (condition_command): Add check for Python 'stop'
3951 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3952 operation function as part of stop/continue tests.
3954 2011-03-14 Tom Tromey <tromey@redhat.com>
3957 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
3958 (needs_frame_dwarf_call): Likewise.
3960 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3962 Fix ARI warning about functions without parameters that do not
3964 * breakpoint.c (all_tracepoints): Replace () by (void).
3965 * f-exp.y (match_string_literal): Ditto.
3967 * m2-exp.y (yylex): Ditto.
3968 * mep-tdep.c (current_me_module): Ditto.
3969 (current_options): Ditto.
3970 (current_cop_data_bus_width): Ditto.
3971 (current_cr_names): Ditto.
3972 (current_cr_is_float): Ditto.
3973 (current_ccr_names): Ditto.
3974 * objc-exp.y (yylex): Ditto.
3975 * p-exp.y (yylex): Ditto.
3976 * remote.c (send_interrupt_sequence): Ditto.
3977 * tracepoint.c (current_trace_status): Ditto.
3978 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
3979 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
3981 2011-03-11 Michael Snyder <msnyder@vmware.com>
3983 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
3984 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
3985 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
3986 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
3987 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
3989 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
3990 (delete_async_event_handler): Ditto.
3992 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
3994 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
3996 * top.c (set_verbose): Assert showcmd was found.
3998 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
4000 * xtensa-tdep.c (warning_once): Correct style issues.
4002 2011-03-11 Yao Qi <yao@codesourcery.com>
4004 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
4006 2011-03-11 Andreas Schwab <schwab@redhat.com>
4008 * common/aclocal.m4: Remove.
4010 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4012 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
4013 (xtensa_write_register, xtensa_read_register): Likewise.
4014 (xtensa_hextochar): Removed.
4015 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
4017 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4019 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
4020 (xtensa_call0_frame_cache_t): Update comments. New fields added.
4021 (xtensa_alloc_frame_cache): Add initialization for new fields.
4022 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
4023 (warning_once): New function.
4024 (xtensa_insn_kind): New item c0opc_and.
4025 (call0_classify_opcode): Add the case for AND instruction.
4026 (call0_track_op): Change arguments. New local variable litbase.
4027 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
4028 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
4030 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
4031 (call0_analyze_prologue): Update the comments. Change arguments.
4032 Add the variety of updates to handle extended prologues, which now can
4033 conduct dynamic stack adjustments.
4034 (call0_frame_cache): Likewise.
4035 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
4036 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4038 2011-03-10 Michael Snyder <msnyder@vmware.com>
4040 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4041 (cmd_qtframe): Ditto.
4042 (cmd_qtbuffer): Ditto.
4043 (cmd_bigqtbuffer): Ditto.
4045 2011-03-10 Tom Tromey <tromey@redhat.com>
4047 * tracepoint.c (trace_actions_command): Update.
4048 * thread.c (thread_apply_command): Update.
4049 * reverse.c (delete_bookmark_command): Update.
4050 (bookmarks_info): Update.
4051 * printcmd.c (undisplay_command): Update.
4052 * memattr.c (mem_enable_command): Update.
4053 (mem_disable_command): Update.
4054 (mem_delete_command): Update.
4055 * inferior.c (detach_inferior_command): Update.
4056 (kill_inferior_command): Update.
4057 (remove_inferior_command): Update.
4058 * cli/cli-utils.h (struct get_number_or_range_state): New.
4059 (init_number_or_range): Declare.
4060 (get_number_or_range): Update.
4061 * cli/cli-utils.c (init_number_or_range): New function.
4062 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
4064 (number_is_in_list): Update.
4065 * breakpoint.h (get_tracepoint_by_number): Update.
4066 * breakpoint.c (map_breakpoint_numbers): Update for change to
4067 get_number_or_range.
4068 (find_location_by_number): Use get_number, not
4069 get_number_or_range.
4070 (trace_pass_set_count): New function.
4071 (trace_pass_command): Update for change to get_number_or_range.
4073 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4076 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
4078 * python/py-param.c (add_setshow_generic): Add set/show callback
4079 parameters. Register Python object context.
4080 (get_show_value): New function.
4081 (get_set_value): New function.
4082 (call_doc_function): New function.
4083 (get_doc_string): Move behind get_show_value/get_set_value.
4085 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
4087 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4089 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
4091 * xtensa-tdep.c (xtensa_read_register): Add comment.
4092 (xtensa_write_register): Likewise.
4093 (xtensa_hextochar): Add comment and update to match coding conventions.
4094 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4095 (execute_l32e, execute_s32e, execute_code): Update comments.
4096 (xtensa_exception_handler_t): Update to match coding conventions.
4097 (xtensa_insn_kind): Likewise.
4099 2011-03-09 Michael Snyder <msnyder@vmware.com>
4101 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4103 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4105 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4107 2011-03-09 Tom Tromey <tromey@redhat.com>
4109 * thread.c (restore_selected_frame): Handle frame_level == -1.
4110 (make_cleanup_restore_current_thread): Use
4111 get_selected_frame_if_set.
4112 * frame.h (get_selected_frame_if_set): Declare.
4113 * frame.c (get_selected_frame_if_set): New function.
4115 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4117 * cli/cli-cmds.c (shell_escape): Use lbasename.
4118 * coffread.c (coff_start_symtab): Constify parameter.
4119 (complete_symtab): Constify `name' parameter.
4120 (coff_symtab_read): Constify `filestring' local.
4121 (coff_getfilename): Constify return and `result' local.
4123 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4124 * linux-fork.c (info_checkpoints_command): Use lbasename.
4125 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4126 * minsyms.c (lookup_minimal_symbol): Use lbasename.
4127 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4128 * procfs.c (procfs_make_note_section): Use lbasename.
4129 * tui/tui-io.c (printable_part): Constity return and parameter.
4131 (print_filename): Constify parameters, and local `s'.
4132 (tui_rl_display_match_list): Constify local `temp'.
4134 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4137 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4138 Fix DWARF-3+ DW_AT_accessibility default assumption.
4139 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4140 cu->header.version >= 3.
4142 2011-03-09 Yao Qi <yao@codesourcery.com>
4144 * common/Makefile.in: Remove.
4145 * common/configure: Remove.
4146 * common/configure.ac: Remove.
4148 2011-03-09 Yao Qi <yao@codesourcery.com>
4151 2011-02-11 Yao Qi <yao@codesourcery.com>
4153 * common/Makefile.in: Add copyright header.
4155 2011-02-11 Yao Qi <yao@codesourcery.com>
4157 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4159 * configure.ac: Add common to sub dir.
4160 * configure: Regenerate.
4162 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4164 * xtensa-tdep.c (call0_ret): New function.
4165 (xtensa_skip_prologue): Speed up analysis.
4167 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4169 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
4170 while executing MI command -data-list-changed-registers.
4172 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4174 * xtensa-tdep.c (xtensa_read_register): New function.
4175 (xtensa_write_register): New function.
4176 (xtensa_find_register_by_name): New function.
4177 (xtensa_windowed_frame_cache): Update comments in type description.
4178 (xtensa_frame_cache): Likewise.
4179 (xtensa_window_interrupt_insn): New function.
4180 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
4181 (xtensa_insn_kind): Add new instructions.
4182 (rwx_special_register): New function.
4183 (call0_classify_opcode): Add new instructions to the analysis.
4184 (a0_saved, a7_saved, a11_saved): New variables.
4185 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
4186 (execute_l32e): New function.
4187 (execute_s32e): New function.
4188 (xtensa_exception_handler_t): New type.
4189 (execute_code): New function.
4190 (xtensa_window_interrupt_frame_cache): New function to conduct frame
4191 analysis for Xtensa Window Exception handlers.
4193 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4195 * xtensa-tdep.c (TX_PS): New.
4196 (windowing_enabled): Update to count for Call0 ABI.
4197 (xtensa_hextochar): New.
4198 (xtensa_init_reggroups): Make algorithm generic.
4199 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4201 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4203 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4205 2011-03-08 Michael Snyder <msnyder@vmware.com>
4207 * i386-tdep.c (i386_follow_jump): Check return value of
4209 (i386_analyze_struct_return): Ditto.
4210 (i386_skip_probe): Ditto.
4211 (i386_match_insn): Ditto.
4212 (i386_skip_noop): Ditto.
4213 (i386_analyze_frame_setup): Ditto.
4214 (i386_analyze_register_saves): Ditto.
4215 (i386_skip_prologue): Ditto.
4216 (i386_skip_main_prologue): Ditto.
4218 * target.c (read_whatever_is_readable): Fix memory leak.
4220 * i386-tdep.c (i386_process_record): Document fall through.
4222 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4224 Fix DWARF-3+ DW_AT_accessibility default assumption.
4225 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4226 cu->header.version >= 3.
4228 2011-03-08 Pedro Alves <pedro@codesourcery.com>
4230 * remote.c (remote_check_symbols): Skip if the target has no
4233 2011-03-08 Joel Brobecker <brobecker@adacore.com>
4235 * target.c (read_whatever_is_readable): Reformat comment,
4236 with a minor typo fix. Minor reformatting of the code.
4238 2011-03-08 Yao Qi <yao@codesourcery.com>
4240 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4241 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4242 Use cached result instead of calling displaced_in_arm_mode again.
4243 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4244 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4245 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4246 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4247 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4248 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4249 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4250 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4251 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4252 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4253 (arm_catch_kernel_helper_return): Likewise.
4254 * gdb/arm-tdep.h : Update function declarations.
4256 2011-03-07 Michael Snyder <msnyder@vmware.com>
4258 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4260 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4262 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4264 * elfread.c (elf_symtab_read): Stop memory leak.
4266 * main.c (captured_main): Fix memory leak.
4268 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
4270 * ada-lang.c (compare_names): Call is_name_suffix with string1
4273 2011-03-07 Tom Tromey <tromey@redhat.com>
4275 * xcoffread.c (xcoff_sym_fns): Update.
4276 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4277 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4278 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4279 (symbol_file_add_with_addrs_or_offsets): Likewise.
4280 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4281 * somread.c (som_sym_fns): Update.
4282 * psymtab.h (require_partial_symbols): Declare.
4283 * psymtab.c (require_partial_symbols): New function.
4284 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4285 (ALL_OBJFILE_PSYMTABS): Undef.
4286 (ALL_PSYMTABS): Move from psympriv.h.
4287 (lookup_partial_symtab, find_pc_sect_psymtab)
4288 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4289 (find_last_source_symtab_from_partial)
4290 (forget_cached_source_info_partial)
4291 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4292 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4293 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4294 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4295 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4296 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4297 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4298 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4299 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4301 * mipsread.c (ecoff_sym_fns): Update.
4302 * machoread.c (macho_sym_fns): Update.
4303 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4304 (read_psyms): New function.
4305 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4306 (elf_sym_fns_lazy_psyms): New global.
4307 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4308 dwarf2_build_psymtabs.
4309 * dbxread.c (aout_sym_fns): Update.
4310 * coffread.c (coff_sym_fns): Update.
4312 2011-03-07 Tom Tromey <tromey@redhat.com>
4314 * infrun.c (print_exited_reason): Include inferior id and pid in
4317 2011-03-07 Tom Tromey <tromey@redhat.com>
4319 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4321 (target_has_execution_1): Update.
4322 (target_has_execution_current): Declare.
4323 (target_has_execution): Call target_has_execution_current.
4324 (default_child_has_execution): Update.
4325 * target.c (default_child_has_execution): Add 'the_ptid'
4327 (target_has_execution_1): Likewise.
4328 (target_has_execution_current): New function.
4329 (add_target): Update.
4330 (init_dummy_target): Update.
4331 * remote-m32r-sdi.c (m32r_has_execution): New function.
4332 (init_m32r_ops): Use it.
4333 * record.c (record_core_has_execution): Now static. Add
4334 'the_ptid' parameter.
4335 * inferior.c (have_live_inferiors): Don't save current thread.
4336 Use target_has_execution_1.
4338 2011-03-07 Yao Qi <yao@codesourcery.com>
4340 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4342 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4344 * elfread.c (elf_symtab_read): Minor reformatting.
4346 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4348 * objc-lang.c (selectors_info): Minor reformatting.
4350 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4352 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4354 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4355 Michael Snyder <msnyder@vmware.com>
4357 * ada-valprint.c (ada_val_print_array): Move the declaration of
4358 "byte_order" and "elttype" inside the block where these variables
4359 are actually used. Remove some special handling for the case
4360 where "elttype" and "eltlen" are null. Replace by a comment
4361 and a couple of assertion checks.
4363 2011-03-05 Michael Snyder <msnyder@vmware.com>
4365 * source.c (add_path): Replace semicolon at end of block.
4366 * dwarf2expr.c (execute_stack_op): Ditto.
4368 2011-03-05 Mike Frysinger <vapier@gentoo.org>
4370 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4371 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4372 (bfin-*-*): Likewise.
4374 2011-03-05 Michael Snyder <msnyder@vmware.com>
4376 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4377 * mdebugread.c (parse_symbol): Ditto.
4378 * parse.c (parse_exp_in_context): Ditto.
4379 * source.c (add_path): Ditto.
4380 * utils.c (gnu_debuglink_crc32): Ditto.
4381 * varobj.c (variable_language): Ditto.
4383 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4385 2011-03-04 Michael Snyder <msnyder@vmware.com>
4387 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4389 * symfile.c (simple_overlay_update): Check for null return value
4390 from lookup_minimal_symbol.
4392 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4394 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4396 * eval.c (parse_and_eval_address_1): Remove function.
4397 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4398 instead of parse_and_eval_address_1.
4399 * value.h (parse_and_eval_address_1): Remove prototype.
4401 2011-03-04 Michael Snyder <msnyder@vmware.com>
4403 * remote.c (putpkt_binary): Document that case stmt falls through.
4405 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4407 * breakpointc (print_it_typical): Move NULL check from here...
4408 (print_bp_stop_message): ... to here.
4410 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4412 * breakpoint.c (enable_command): Use break instead of continue,
4413 and fill in a missing break.
4414 (disable_command): Ditto.
4416 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4418 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4419 (terminal_save_ours): Remove misleading comment.
4420 (inflow_inferior_data_cleanup): Free ttystate.
4421 (inflow_inferior_exit): Likewise.
4422 (copy_terminal_info): Copy ttystate.
4424 * serial.c (serial_copy_tty_state): New function.
4425 * serial.h (serial_copy_tty_state): Add prototype.
4426 (struct serial_ops): Add copy_tty_state callback.
4427 * ser-base.c (ser_base_copy_tty_state): New function.
4428 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4429 * ser-go32.c (dos_copy_tty_state): New function.
4430 (dos_ops): Install copy_tty_state callback.
4431 * ser-mingw.c (_initialize_ser_windows): Likewise.
4432 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4433 * ser-unix.c (hardwire_copy_tty_state): New function.
4434 (_initialize_ser_hardwire): Install it.
4436 2011-03-04 Michael Snyder <msnyder@vmware.com>
4438 * breakpoint.c (create_breakpoint): Add missing break statement.
4440 Reverting this patch:
4441 * infcall.c (call_function_by_hand): Add break statements for lint.
4443 Reverting this patch:
4444 * cli/cli-script.c (script_from_file): Add break for lint.
4446 2011-03-04 Michael Snyder <msnyder@vmware.com>
4448 * solib.c (reload_shared_libraries_1): Close memory leak.
4450 2011-03-03 Tom Tromey <tromey@redhat.com>
4453 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4456 2011-03-03 Michael Snyder <msnyder@vmware.com>
4458 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4459 fields of struct 'st' to zero.
4461 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4462 sal.pspace before calling set_current_source_symtab_and_line.
4464 2011-03-03 Yao Qi <yao@codesourcery.com>
4466 * Makefile.in (configure-common): Remove. Let Makefile
4467 in dir common to rebuild itself.
4468 (common/Makefile): Likewise.
4470 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4472 * utils.c (parse_escape): Add i18n markup in error message.
4474 2011-03-03 Yao Qi <yao@codesourcery.com>
4476 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4478 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4479 (displaced_write_reg, displaced_read_reg): Likewise.
4480 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4481 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4482 (cleanup_branch): Replace magic number 14 and 15 with
4483 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4485 2011-03-02 Michael Snyder <msnyder@vmware.com>
4487 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4489 * cli/cli-script.c (script_from_file): Add break for lint.
4491 * mdebugread.c (parse_partial_symbols): Fix indent.
4493 * target-descriptions.c (tdesc_gdb_type): No need to call
4494 xstrdup, callee saves a copy.
4496 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4498 * infcall.c (call_function_by_hand): Add break statements for lint.
4500 * utils.c (parse_escape): Escape the escape char.
4502 * python/py-inferior.c (build_inferior_list): Error out if
4503 PyList_Append fails.
4504 (gdbpy_inferiors): Error out if build_inferior_list fails.
4506 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4509 * record.c (record_restore): Move printf to before error return.
4511 2011-03-02 Yao Qi <yao@codesourcery.com>
4513 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4514 is_thumb and insn_size.
4515 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4516 on both ARM and Thumb mode.
4517 (arm_process_displaced_insn): Set is_thumb and insn_size.
4518 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4519 (arm_displaced_step_fixup): Likewise.
4521 2011-03-01 Michael Snyder <msnyder@vmware.com>
4523 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4525 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4527 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4529 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4531 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4534 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4535 which shadows function parameter.
4537 * tracepoint.c (create_tsv_from_upload): Superfluous call
4538 to xstrdup. Callee already calls xstrdup.
4540 * linespec.c (decode_line_1): Remove unnecessary null check.
4542 * tracepoint.c (scope_info): Fix mem leak, remove underused
4545 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4546 superfluous null check.
4548 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4549 (value_of_builtin_frame_fp_reg): Ditto.
4551 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4553 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4556 * linespec.c (decode_line_1): Check for null before dereference.
4558 * reverse.c (record_restore): Move null-check to before pointer
4561 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4563 * objc-lang.c (selectors_info): Add explanitory comment.
4564 (classes_info): Ditto.
4566 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4568 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4569 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4570 versions of the trampoline. Handle Thumb vs. ARM addresses.
4571 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4572 (arm_linux_init_abi): Install it.
4573 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4574 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4576 2011-02-28 Michael Snyder <msnyder@vmware.com>
4578 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4579 a little bigger, to avoid possibility of an overflow.
4581 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4582 buffers a little bigger, to avoid possibility of an overflow.
4584 * coffread.c (coff_getfilename): Add check to avoid overflow.
4586 * objc-lang.c (selectors_info): Add a small safety margin to
4588 (classes_info): Error out on too long REGEXP.
4590 * infrun.c (handle_inferior_event): Remove unused function call.
4592 * fork-child.c (fork_inferior): Remove ifdef'd code and
4595 * linux-thread-db.c (attach_thread): Discard unused value.
4597 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4599 * remote.c (remote_get_noisy_reply): Discard unused value.
4600 (remote_vcont_resume): Ditto.
4601 (remote_stop_ns): Ditto.
4603 * linespec.c (decode_objc): Delete unused variable.
4605 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4607 * dwarf2read.c (add_partial_symbol): Discard unused values.
4608 (read_base_type): Delete unused variable.
4610 * dbxread.c (read_dbx_symtab): Discard unused value.
4612 * eval.c (evaluate_subexp_standard): Delete unused variable,
4613 and discard unused values.
4615 * infcmd.c (_initialize_infcmd): Discard unused values.
4617 * stabsread.c (rs6000_builtin_type): Missing break statement.
4619 * dbxread.c (process_one_symbol): Discard unused value.
4621 * coffread.c (coff_end_symtab): Delete unused variable.
4623 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4624 (dwarf2_add_typedef): Delete unused variable.
4625 (read_namespace): Ditto.
4626 (dwarf_decode_macros): Ditto.
4628 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4630 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4632 * p-valprint.c (pascal_val_print): Discard unused value.
4634 * utils.c (nquery): Call va_end before return;
4638 * proc-service.c (ps_plog): Call va_end before return.
4640 2011-02-28 Tom Tromey <tromey@redhat.com>
4642 * python/python.c (gdbpy_value_cst): New global.
4643 (_initialize_python): Initialize it.
4644 * python/python-internal.h (gdbpy_value_cst): Declare.
4645 * python/py-value.c (convert_value_from_python): Use
4648 2011-02-28 Michael Snyder <msnyder@vmware.com>
4650 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4652 * breakpoint.c (catch_syscall_completer): Free malloced list.
4654 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4656 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4657 (lval_func_check_synthetic_pointer): Ditto.
4658 (lval_func_free_closure): Fix use-after-free.
4660 2011-02-28 Tom Tromey <tromey@redhat.com>
4662 * psymtab.c (expand_partial_symbol_tables): Use
4663 ALL_OBJFILE_PSYMTABS.
4665 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4667 * objc-lang.c (selectors_info): Error on too long REGEXP.
4669 2011-02-28 Michael Snyder <msnyder@vmware.com>
4671 * python/py-param.c (set_parameter_value): Add missing
4674 * linux-record.c (record_linux_system_call): Add missing
4677 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4679 * breakpoint.c (print_one_breakpoint_location): Remove unused
4680 argument PRINT_ADDRESS_BITS. Update callers.
4681 (print_one_breakpoint): Likewise.
4683 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4685 * breakpoint.c (wrap_indent_at_field): New function.
4686 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4687 Allocate ui_stream locally instead of using STB argument.
4688 (print_one_breakpoint_location): Update call.
4689 * ui-out.c (ui_out_query_field): New function.
4690 * ui-out.h (ui_out_query_field): Add prototype.
4692 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4694 From Michael Snyder <msnyder@vmware.com>
4695 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4697 2011-02-27 Michael Snyder <msnyder@vmware.com>
4699 * objc-lang.c (selectors_info): Prevent string overrun.
4701 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4704 * symtab.c (rbreak_command): Move variable 'file_name' to
4707 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4708 param with a local variable of the same name.
4710 2011-02-27 Michael Snyder <msnyder@vmware.com>
4712 * value.c (value_from_history_ref): New function.
4713 * value.h (value_from_history_ref): Export.
4714 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4715 to parse value history references.
4716 * cli/cli-utils.h (get_number_trailer): Update comment.
4718 2011-02-27 Michael Snyder <msnyder@vmware.com>
4720 * inferior.c (detach_inferior_command): Use get_number_or_range.
4721 (kill_inferior_command): Ditto.
4722 (remove_inferior_command): Ditto.
4723 (initialize_inferiors): Make command names plural.
4724 Update help strings.
4726 2011-02-27 Michael Snyder <msnyder@vmware.com>
4728 * darwin-nat-info.c: Fix comment typo.
4729 * dwarf2expr.h: Ditto.
4730 * fbsd-nat.c: Ditto.
4731 * fbsd-nat.h: Ditto.
4732 * frame-unwind.h: Ditto.
4734 * hppa-hpux-tdep.c: Ditto.
4735 * i386-linux-nat.c: Ditto.
4736 * linux-nat.c: Ditto.
4737 * nbsd-nat.c: Ditto.
4738 * nbsd-nat.h: Ditto.
4739 * ppc-linux-tdep.c: Ditto.
4742 * tui/tui-winsource.c: Ditto.
4744 2011-02-26 Michael Snyder <msnyder@vmware.com>
4746 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4748 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4750 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4751 with a local variable of the same name.
4753 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4754 param with a local variable of the same name.
4755 (i387_supply_xsave): Ditto.
4757 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4758 that it does not shadow a function parameter.
4760 * i386-nat.c (i386_length_and_rw_bits): Document that case
4761 statement is meant to fall through.
4763 * expprint.c (dump_subexp_body_standard): Document that case
4764 statement is meant to fall through.
4766 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4767 dead if statement. Condition can't be false.
4769 2011-02-25 Michael Snyder <msnyder@vmware.com>
4771 * arm-tdep.c: Fix typos in comments.
4772 * bsd-uthread.c: Ditto.
4773 * completer.c: Ditto.
4775 * cp-namespace.c: Ditto.
4776 * cp-support.c: Ditto.
4777 * cris-tdep.c: Ditto.
4779 * dwarf2read.c: Ditto.
4781 * gdbtypes.h: Ditto.
4782 * inferior.h: Ditto.
4783 * mdebugread.c: Ditto.
4784 * mips-tdep.c: Ditto.
4785 * ppc-linux-nat.c: Ditto.
4786 * ppc-linux-tdep.c: Ditto.
4787 * printcmd.c: Ditto.
4788 * sol-thread.c: Ditto.
4789 * solib-frv.c: Ditto.
4791 * sparc64-tdep.c: Ditto.
4792 * spu-tdep.c: Ditto.
4793 * stabsread.c: Ditto.
4798 * python/py-block.c: Ditto.
4799 * python/py-symbol.c: Ditto.
4800 * python/py-symtab.c: Ditto.
4801 * python/py-value.c: Ditto.
4802 * tui/tui-win.c: Ditto.
4804 2011-02-25 Michael Snyder <msnyder@vmware.com>
4806 * inferior.c (print_inferior): Accept a string instead of an int
4807 for requested_inferiors, and use get_number_or_range to parse it.
4808 (info_inferiors_command): Pass args string to print_inferior.
4809 (initialize_inferiors): Change help string for info inferiors.
4810 * inferior.h (print_inferior): Export prototype change.
4812 2011-02-25 Tom Tromey <tromey@redhat.com>
4814 * common/ax.def (invalid2): Set to 0x31.
4816 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4818 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4820 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4822 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4824 2011-02-24 Michael Snyder <msnyder@vmware.com>
4826 * Makefile.in (clean): Make clean should remove generated files
4827 observer.h and observer.inc.
4829 2011-02-24 Joel Brobecker <brobecker@adacore.com>
4831 Revert the following patch (not approved yet):
4832 2011-02-21 Hui Zhu <teawater@gmail.com>
4833 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4834 * ax-gdb.c (gen_printf_expr_callback): New function.
4835 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4836 * ax-general.c (ax_memcpy): New function.
4837 (ax_print): Handle "printf".
4839 * ax.h (ax_memcpy): Forward declare.
4840 * common/ax.def (invalid2): Removed.
4841 (printf): New entry.
4842 * printcmd.c (printcmd.h): New include.
4843 (string_printf): New function.
4844 (ui_printf): Removed.
4845 (printf_command): Remove static. Call string_printf.
4846 (eval_command): Call string_printf.
4847 * printcmd.h: New file.
4848 * tracepoint.c (validate_actionline,
4849 encode_actions_1): handle printf_command.
4851 2011-02-23 Tom Tromey <tromey@redhat.com>
4853 * ax-general.c (ax_pick): Add missing newline.
4855 2011-02-23 Michael Snyder <msnyder@vmware.com>
4857 * breakpoint.c (breakpoint_1): Change first argument from an int
4858 to a char pointer, so that the function now accepts a list of
4859 breakpoints rather than just one. Use new function
4860 'number_is_in_list' to implement.
4861 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4862 (watchpoints_info): Ditto.
4863 (tracepoints_info): Ditto.
4864 (maintenance_info_breakpoints): Ditto.
4865 (_initialize_breakpoint): Update help strings to reflect the fact
4866 that these functions can now take more than one argument.
4867 * cli/cli-utils.c (number_is_in_list): New function.
4868 * cli/cli-utils.h (number_is_in_list): Export.
4870 2011-02-23 Michael Snyder <msnyder@vmware.com>
4872 * memattr.c (mem_enable_command): Use get_number_or_range.
4873 (mem_disable_command): Ditto.
4874 (mem_delete_command): Ditto.
4875 (_initialize_mem): Tweak usage message to reflect multiple
4878 2011-02-22 Doug Evans <dje@google.com>
4880 Add gdb.lookup_global_symbol python function.
4882 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4883 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4884 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4886 2011-02-22 Tom Tromey <tromey@redhat.com>
4888 * language.c (language_class_name_from_physname): Rename
4889 'curr_language' argument to 'lang'; use in body.
4891 2011-02-22 Michael Snyder <msnyder@vmware.com>
4893 * cli/cli-utils.c (number_is_in_list): Check for zero return.
4895 2011-02-22 Pedro Alves <pedro@codesourcery.com>
4897 * frame-unwind.h: Fix comment to mention the this frame, not the
4900 2011-02-22 Tom Tromey <tromey@redhat.com>
4902 * symfile.c (auto_solib_limit): Remove.
4903 * symfile.h (auto_solib_limit): Remove.
4905 2011-02-22 Joel Brobecker <brobecker@adacore.com>
4907 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4909 2011-02-21 Michael Snyder <msnyder@vmware.com>
4911 * gdbthread.h (print_thread_info): Change prototype.
4912 * thread.c (print_thread_info): Accept char* instead of int for
4913 requested_threads argument. Use new function number_is_in_list
4914 to determine which threads to list.
4915 (info_threads_command): Pass char* to print_thread_info.
4916 * cli/cli-utils.c (number_is_in_list): New function.
4917 * cli/cli-utils.h (number_is_in_list): Export.
4918 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4920 (print_one_inferior): Ditto.
4921 (mi_cmd_list_thread_groups): Ditto.
4923 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4925 * common/Makefile.in (CFLAGS): New.
4926 (COMPILE): Add $(CFLAGS).
4928 2011-02-21 Tom Tromey <tromey@redhat.com>
4930 * breakpoint.c (catch_syscall_command_1): Fix typo.
4932 2011-02-21 Tom Tromey <tromey@redhat.com>
4934 * reverse.c: Include cli-utils.h.
4935 * printcmd.c: Include cli-utils.h.
4936 (string_printf): Use skip_spaces.
4937 * cli/cli-utils.h: New file.
4938 * cli/cli-utils.c: New file.
4939 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4940 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4941 * breakpoint.h (get_number, get_number_or_range): Move to
4943 * breakpoint.c: Include cli-utils.h.
4944 (get_number_trailer, get_number, get_number_or_range)
4945 (ep_skip_leading_whitespace): Move to cli-utils.c.
4946 (create_breakpoint_sal, find_condition_and_thread)
4947 (decode_static_tracepoint_spec, watch_command_1)
4948 (watch_maybe_just_location, ep_parse_optional_if_clause)
4949 (catch_fork_command_1, catch_exec_command_1)
4950 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4951 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4952 (SUBDIR_CLI_SRCS): Add cli-utils.c.
4953 (HFILES_NO_SRCDIR): Add cli-utils.h.
4954 (cli-utils.o): New target.
4956 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4958 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
4959 before calling discard_all_inferiors.
4961 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4963 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
4964 (struct builtin_opencl_type): Remove.
4965 (builtin_opencl_type): Change return type to "struct type **".
4966 (lookup_opencl_vector_type): Update caller.
4967 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
4968 (build_opencl_types): Install plain array of "struct type *"
4969 instead of "struct builtin_opencl_type".
4971 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4972 Ulrich Weigand <uweigand@de.ibm.com>
4974 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
4975 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
4976 (struct arm_linux_hwbp_cap): New type.
4977 (arm_linux_get_hwbp_cap): New function.
4978 (arm_linux_get_hw_breakpoint_count): Likewise.
4979 (arm_linux_get_hw_watchpoint_count): Likewise.
4980 (arm_linux_can_use_hw_breakpoint): Likewise.
4981 (arm_hwbp_type): New type.
4982 (arm_hwbp_control_t): Likewise.
4983 (struct arm_linux_hw_breakpoint): Likewise.
4984 (struct arm_linux_thread_points): Likewise.
4985 (arm_threads): New global variable.
4986 (arm_linux_find_breakpoints_by_tid): New function.
4987 (arm_hwbp_control_initialize): Likewise.
4988 (arm_hwbp_control_is_enabled): Likewise.
4989 (arm_hwbp_control_disable): Likewise.
4990 (arm_linux_hw_breakpoint_initialize): Likewise.
4991 (arm_linux_get_hwbp_type): Likewise.
4992 (arm_linux_hw_watchpoint_initialize): Likewise.
4993 (arm_linux_hw_breakpoint_equal): Likewise.
4994 (arm_linux_insert_hw_breakpoint1): Likewise.
4995 (arm_linux_remove_hw_breakpoint1): Likewise.
4996 (arm_linux_insert_hw_breakpoint): Likewise.
4997 (arm_linux_remove_hw_breakpoint): Likewise.
4998 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
4999 (arm_linux_insert_watchpoint): Likewise.
5000 (arm_linux_remove_watchpoint): Likewise.
5001 (arm_linux_stopped_data_address): Likewise.
5002 (arm_linux_stopped_by_watchpoint): Likewise.
5003 (arm_linux_watchpoint_addr_within_range): Likewise.
5004 (arm_linux_new_thread): Likewise.
5005 (arm_linux_thread_exit): Likewise.
5006 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
5007 related target callbacks. Register arm_linux_new_thread and
5008 arm_linux_thread_exit.
5009 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
5010 * arm-tdep.c (arm_pc_is_thumb): Make global.
5011 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
5013 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5015 * breakpoint.c (update_watchpoint): Do not attempt to recreate
5016 per-frame locations while within a function epilogue.
5018 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5020 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
5021 to GNU coding standards.
5023 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5025 Allow use of mingw native on Windows 95 OS.
5026 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
5027 (ser_windows_close): Only call CancelIo if function exists.
5028 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
5029 to check for existence of CancelIo function in kernel32 DLL.
5031 2011-02-21 Hui Zhu <teawater@gmail.com>
5033 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5034 * ax-gdb.c (gen_printf_expr_callback): New function.
5035 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5036 * ax-general.c (ax_memcpy): New function.
5037 (ax_print): Handle "printf".
5039 * ax.h (ax_memcpy): Forward declare.
5040 * common/ax.def (invalid2): Removed.
5041 (printf): New entry.
5042 * printcmd.c (printcmd.h): New include.
5043 (string_printf): New function.
5044 (ui_printf): Removed.
5045 (printf_command): Remove static. Call string_printf.
5046 (eval_command): Call string_printf.
5047 * printcmd.h: New file.
5048 * tracepoint.c (validate_actionline,
5049 encode_actions_1): handle printf_command.
5051 2011-02-19 Michael Snyder <msnyder@vmware.com>
5053 * reverse.c (delete_one_bookmark): Argument is now bookmark
5054 id rather than pointer to bookmark struct.
5055 (delete_bookmark_command): Use get_number_or_range.
5056 (goto_bookmark_command): Parse with get_number instead of strtoul.
5057 (bookmark_1): New function. Print info for one bookmark.
5058 (bookmarks_info): Use get_number_or_range and bookmark_1.
5060 2011-02-18 Michael Snyder <msnyder@vmware.com>
5062 * thread.c (info_threads_command): Re-implement using
5063 get_number_or_range.
5064 (thread_apply_command): Ditto.
5066 2011-02-18 Tom Tromey <tromey@redhat.com>
5068 * common/ax.def: New file.
5069 * ax.h (enum agent_op): Use ax.def.
5070 * ax-general.c (aop_map): Use ax.def.
5072 2011-02-18 Tom Tromey <tromey@redhat.com>
5074 * ax-general.c (aop_map): Add pick and rot.
5075 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5076 <DW_OP_rot>: Implement.
5077 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5079 * ax-general.c (ax_pick): New function.
5081 2011-02-18 Tom Tromey <tromey@redhat.com>
5083 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5085 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5086 Tom Tromey <tromey@redhat.com>
5088 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5089 make_symbol_overload_list_block with NULL BLOCK.
5090 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5092 2011-02-18 Pedro Alves <pedro@codesourcery.com>
5094 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5095 * breakpoint.h (get_number_or_range): Declare.
5096 * printcmd.c (ALL_DISPLAYS): Declare.
5097 (delete_display): Reimplement taking a display pointer.
5098 (undisplay_command): Accept a range of displays to delete, using
5099 get_number_or_range.
5101 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5103 * c-valprint.c (c_val_print): Add embedded_offset to address
5104 for arrays of unspecified length.
5105 * p-valprint.c (pascal_val_print): Likewise.
5107 2011-02-18 Yao Qi <yao@codesourcery.com>
5109 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5110 (arm_process_displaced_insn): .. here. Remove parameter INSN.
5111 (thumb_process_displaced_insn): New.
5112 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5113 call to arm_process_displaced_insn.
5114 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5116 2011-02-17 Tom Tromey <tromey@redhat.com>
5118 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5119 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5120 compile_dwarf_to_ax. No longer static. Call
5121 dwarf2_compile_cfa_to_ax.
5122 (locexpr_tracepoint_var_ref): Update.
5123 (loclist_tracepoint_var_ref): Update.
5124 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5125 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5126 argument; add 'gdbarch' and 'pc'.
5127 (dwarf2_compile_cfa_to_ax): New function.
5128 (dwarf2_frame_cache): Update.
5130 2011-02-17 Joel Brobecker <brobecker@adacore.com>
5132 * ada-lang.c (ada_type_of_array): Fix the size of the array
5133 in the case of an unconstrained packed array.
5135 2011-02-17 Yao Qi <yao@codesourcery.com>
5137 * common/Makefile.in: Add more targets for make.
5139 2011-02-16 Tom Tromey <tromey@redhat.com>
5141 * dwarf2loc.c (unimplemented): Fix typo.
5143 2011-02-16 Tom Tromey <tromey@redhat.com>
5145 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5146 (compile_dwarf_to_ax) <default>: Use unimplemented.
5147 <DW_OP_deref>: Update.
5148 (disassemble_dwarf_expression): Update.
5149 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5150 (decode_locdesc): Update.
5151 * dwarf2expr.h (dwarf_stack_op_name): Update.
5153 2011-02-16 Tom Tromey <tromey@redhat.com>
5155 * ax.h (struct aop_map) <name>: Now const.
5157 2011-02-16 Tom Tromey <tromey@redhat.com>
5159 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5162 2011-02-16 Yao Qi <yao@codesourcery.com>
5164 * infrun.c (get_displaced_step_closure_by_addr): New.
5165 * inferior.h: Declare it.
5166 * arm-tdep.c: (arm_pc_is_thumb): Call
5167 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
5170 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5171 Jan Kratochvil <jan.kratochvil@redhat.com>
5174 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
5176 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5177 Jan Kratochvil <jan.kratochvil@redhat.com>
5179 * value.c (value_contents_copy_raw): Extend describing comment.
5180 Assert that the destination contents we're overwriting are wholly
5182 (value_contents_copy): Extend describing comment.
5184 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5185 Jan Kratochvil <jan.kratochvil@redhat.com>
5187 * value.c (value_available_contents_eq): Remove redundant local
5188 variables. Fix available contents comparision.
5189 * value.h (value_available_contents_eq): Extend describing
5192 2011-02-16 Yao Qi <yao@codesourcery.com>
5194 * thread.c (info_threads_command): Add missing i18n markup and remove
5197 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5199 * breakpoint.c (longjmp_names): New variable.
5200 (struct breakpoint_objfile_data): New type.
5201 (breakpoint_objfile_key): New variable.
5202 (msym_not_found): New variable.
5203 (msym_not_found_p): New predicate.
5204 (get_breakpoint_objfile_data): New function.
5205 (create_overlay_event_breakpoint): Check per-objfile cache for
5207 (create_longjmp_master_breakpoint): Likewise.
5208 (create_std_terminate_master_breakpoint): Likewise.
5209 (create_exception_master_breakpoint): Likewise.
5210 (_initialize_breakpoint): Register per-objfile data key.
5212 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5214 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5216 (create_longjmp_master_breakpoint): Loop over longjmp names.
5217 (create_std_terminate_master_breakpoint): Const-propagate parameter
5219 (update_breakpoints_after_exec): Adjust.
5220 (breakpoint_re_set): Adjust.
5222 2011-02-15 Michael Snyder <msnyder@vmware.com>
5224 * thread.c (info_threads_command): Process arg as thread id,
5225 or list of thread ids.
5226 (thread_find_command): New command.
5227 (_initialize_thread): Document argument for info threads.
5228 Document 'thread find' command.
5229 * NEWS: Document new command "thread find".
5231 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5233 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5234 * aclocal.m4: Regenerated with aclocal-1.11.1.
5235 * common/configure: Regenerate with autoconf-2.64.
5237 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
5239 * opencl-lang.c (build_opencl_types): Set the size of the built-in
5240 bool data type to a size of one byte.
5242 2011-02-15 Pedro Alves <pedro@codesourcery.com>
5243 Jan Kratochvil <jan.kratochvil@redhat.com>
5245 * target.c (memory_xfer_live_readonly_partial): Document where to
5246 look for interface description.
5248 2011-02-15 Yao Qi <yao@codesourcery.com>
5251 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5252 order to store PC value on stack instead of text section.
5254 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
5256 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5257 the EFP register set size.
5258 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5259 data from the VMX register.
5260 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5261 and write data from/to the VMX register.
5263 2011-02-14 Michael Snyder <msnyder@vmware.com>
5265 * command.h (enum command_class): New class 'no_set_class', for
5266 "show" commands without a corresponding "set" command.
5267 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5268 * copying.c (_initialize_copying): Ditto for "show copying" and
5270 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5272 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5273 which there is no corresponding "set" command (eg. "show copying").
5275 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5276 Jan Kratochvil <jan.kratochvil@redhat.com>
5278 * exec.c (section_table_available_memory): Change `len' parameter
5280 * exec.h (section_table_available_memory): Ditto.
5281 * value.h (read_value_memory): Rename the `offset' parameter to
5284 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5285 Jan Kratochvil <jan.kratochvil@redhat.com>
5287 * memrange.c (compare_mem_ranges): Mention sort order in
5289 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5290 * tracepoint.c (traceframe_available_memory): Extend comment to
5291 mention what happens to RESULT when the target does not support
5294 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5295 Jan Kratochvil <jan.kratochvil@redhat.com>
5297 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5300 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5302 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5303 No longer handle NULL values.
5305 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5307 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5308 * value.c: Include "exceptions.h".
5309 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5311 * cp-abi.c: Include gdb_assert.h.
5312 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5313 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5315 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5316 parameters. No longer returns -1 on error.
5317 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5319 * cp-valprint.c: Include exceptions.h.
5320 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5321 the baseclass_offset. Handle unavailable base classes. Use
5322 val_print_invalid_address.
5323 * p-valprint.c: Include exceptions.h.
5324 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5325 when fetching the baseclass_offset. No longer expect
5326 baseclass_offset returning -1. Handle unavailable base classes.
5327 Use val_print_invalid_address.
5328 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5329 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5330 `embedded_offset' and `val' parameters. Adjust.
5331 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5332 parameter, and change its type to gdb_byte pointer. Add
5333 `embedded_offset' and `val' parameters. Adjust. No longer expect
5334 baseclass_offset returning -1.
5335 (value_dynamic_cast): Use value_contents_for_printing rather than
5336 value_contents. Adjust.
5337 (search_struct_field): No longer expect baseclass_offset returning
5339 (search_struct_method): If reading memory from the target is
5340 necessary, wrap it in a new value to pass to baseclass_offset. No
5341 longer expect baseclass_offset returning -1.
5342 (find_method_list): No longer expect baseclass_offset returning
5343 -1. Use value_contents_for_printing rather than value_contents.
5344 * valprint.c (val_print_invalid_address): New function.
5345 * valprint.h (val_print_invalid_address): Declare.
5346 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5347 and `val' parameters. No longer expect baseclass_offset returning
5349 * gnu-v2-abi.c: Include "exceptions.h".
5350 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5351 parameters. Handle unavailable memory. Recurse through
5352 gnuv2_baseclass_offset directly, rather than through
5353 baseclass_offset. No longer returns -1 on not found, instead
5355 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5356 `val' parameters. Adjust.
5358 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5360 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5361 almost but not quite adjacent.
5363 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5365 * value.h (value_entirely_available): Declare.
5366 * value.c (value_entirely_available): New function.
5367 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5368 real type if the pointer is unavailable.
5370 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5372 * valops.c (value_repeat): Use read_value_memory instead of
5375 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5377 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5378 * value.c (value_contents_copy_raw, value_contents_copy): New
5380 (value_primitive_field): Use value_contents_copy_raw instead of
5382 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5384 (value_array, value_slice): Ditto.
5385 * valarith.c (value_subscripted_rvalue): Use
5386 value_contents_copy_raw instead of memcpy.
5388 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5390 <unavailable> references.
5392 * valops.c (get_value_at): Use value_from_contents_and_address,
5393 avoiding read_memory.
5395 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5397 * c-valprint.c (c_val_print): Print a string with unavailable
5398 contents as an array.
5400 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5402 * value.h (unpack_bits_as_long): Delete declaration.
5403 (unpack_value_bits_as_long): Declare.
5404 (unpack_value_field_as_long): Declare.
5405 (value_field_bitfield): Declare.
5406 * value.c (unpack_bits_as_long): Rename to...
5407 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5408 value parameters. Return the extracted result in a new output
5409 parameter. If the value contents are unavailable, return false,
5410 otherwise return true.
5411 (unpack_value_bits_as_long): New.
5412 (unpack_field_as_long): Rename to...
5413 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5414 Add embedded_offset and value parameters. Return the extracted
5415 result in a new output parameter. If the value contents are
5416 unavailable, return false, otherwise return true.
5417 (unpack_value_field_as_long): New.
5418 (unpack_field_as_long_1): New.
5419 (unpack_field_as_long): Reimplement as wrapper around
5420 unpack_value_field_as_long_1.
5421 (value_field_bitfield): New function.
5422 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5423 unpack_value_bits_as_long. Mark the value as unavailable, if it
5425 * jv-valprint.c (java_print_value_fields): Use
5426 value_field_bitfield.
5427 * p-valprint.c (pascal_object_print_value_fields): Use
5428 value_field_bitfield.
5429 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5431 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5433 * value.c (get_internalvar_integer): Also return the int value of
5434 TYPE_CODE_INT INTERNALVAR_VALUE values.
5435 (set_internalvar): Don't special case TYPE_CODE_INT.
5437 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5439 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5440 INTERNALVAR_POINTER.
5442 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5443 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5444 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5446 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5448 * value.h (value_available_contents_eq): Declare.
5449 * value.c (find_first_range_overlap): New function.
5450 (value_available_contents_eq): New function.
5451 * valprint.c (val_print_array_elements): Use
5452 value_available_contents_eq.
5453 * ada-valprint.c (val_print_packed_array_elements): Use
5454 value_available_contents_eq.
5455 * jv-valprint.c (java_value_print): Use
5456 value_available_contents_eq.
5458 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5460 * target.c (target_read_live_memory): New function.
5461 (memory_xfer_live_readonly_partial): New.
5462 (memory_xfer_partial): If reading from a traceframe, fallback to
5463 reading unavailable read-only memory from read-only regions of
5465 * tracepoint.c (disconnect_tracing): Adjust.
5466 (set_current_traceframe): New, factored out from
5467 set_traceframe_number.
5468 (set_traceframe_number): Reimplement to only change the traceframe
5469 number on the GDB side.
5470 (do_restore_current_traceframe_cleanup): Adjust.
5471 (make_cleanup_restore_traceframe_number): New.
5472 (cur_traceframe_number): New global.
5473 (tfile_open): Set cur_traceframe_number to no traceframe.
5474 (set_tfile_traceframe): New function.
5475 (tfile_trace_find): If looking up a traceframe using any method
5476 other than by number, make sure the current tfile traceframe
5477 matches gdb's current traceframe. Update the current tfile
5478 traceframe if the lookup succeeded.
5479 (tfile_fetch_registers, tfile_xfer_partial)
5480 (tfile_get_trace_state_variable_value): Make sure the remote
5481 traceframe matches gdb's current traceframe.
5482 * remote.c (remote_traceframe_number): New global.
5483 (remote_open_1): Set it to -1.
5484 (set_remote_traceframe): New function.
5485 (remote_fetch_registers, remote_store_registers)
5486 (remote_xfer_memory, remote_xfer_partial)
5487 (remote_get_trace_state_variable_value): Make sure the remote
5488 traceframe matches gdb's current traceframe.
5489 (remote_trace_find): If looking up a traceframe using any method
5490 other than by number, make sure the current remote traceframe
5491 matches gdb's current traceframe. Update the current remote
5492 traceframe if the lookup succeeded.
5493 * infrun.c (fetch_inferior_event): Adjust.
5494 * tracepoint.h (set_current_traceframe): Declare.
5495 (get_traceframe_number, set_traceframe_number): Add describing
5498 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5500 Mark pieces of values as unavailable if the corresponding memory
5503 * valops.c: Include tracepoint.h.
5504 (value_fetch_lazy): Use read_value_memory.
5505 (read_value_memory): New.
5506 * value.h (read_value_memory): Declare.
5507 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5508 * exec.c (section_table_available_memory): New function.
5509 * exec.h (section_table_available_memory): Declare.
5511 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5513 * Makefile.in (SFILES): Add memrange.c.
5514 (HFILES_NO_SRCDIR): Add memrange.h.
5515 (COMMON_OBS): Add memrange.o.
5516 * memrange.c: New file.
5517 * memrange.h: New file.
5518 * tracepoint.c: Include memrange.h.
5519 (struct mem_range): Delete.
5520 (mem_range_s): Delete.
5521 (traceframe_available_memory): New function.
5522 * tracepoint.h (traceframe_available_memory): Declare.
5524 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5526 * target.h (struct traceframe_info): Forward declare.
5527 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5528 (struct target_ops) <to_traceframe_info>: New field.
5529 (target_traceframe_info): New.
5530 * target.c (update_current_target): Inherit and default
5532 * remote.c (PACKET_qXfer_traceframe_info): New.
5533 (remote_protocol_features): Register qXfer:traceframe-info:read.
5534 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5535 (remote_traceframe_info): New.
5536 (init_remote_ops): Install it.
5537 (_initialize_remote): Install "set/show remote traceframe-info"
5539 * tracepoint.h (parse_traceframe_info): Declare.
5540 * tracepoint.c (struct mem_range): New.
5541 (mem_range_s): New typedef.
5542 (struct traceframe_info): New.
5543 (traceframe_info): New global.
5544 (free_traceframe_info): New function.
5545 (clear_traceframe_info): New function.
5546 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5548 (build_traceframe_info): New function.
5549 (tfile_traceframe_info): New function.
5550 (init_tfile_ops): Install tfile_traceframe_info.
5551 (traceframe_info_start_memory, free_result): New functions.
5552 (memory_attributes, traceframe_info_elements): New globals.
5553 (parse_traceframe_info, get_traceframe_info): New functions.
5554 * features/traceframe-info.dtd: New file.
5555 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5557 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5559 Base support for <unavailable> value contents.
5561 * value.h (value_bytes_available): Declare.
5562 (mark_value_bytes_unavailable): Declare.
5563 * value.c (struct range): New struct.
5564 (range_s): New typedef.
5565 (ranges_overlap): New function.
5566 (range_lessthan): New function.
5567 (ranges_contain_p): New function.
5568 (struct value) <unavailable>: New field.
5569 (value_bytes_available): New function.
5570 (mark_value_bytes_unavailable): New function.
5571 (require_not_optimized_out): Constify parameter.
5572 (require_available): New function.
5573 (value_contents_all, value_contents): Require all bytes be
5575 (value_free): Free `unavailable'.
5576 (value_copy): Copy `unavailable'.
5577 * valprint.h (val_print_unavailable): Declare.
5578 * valprint.c (valprint_check_validity): Rename `offset' parameter
5579 to `embedded_offset'. If printing a scalar, check whether the
5580 value chunk is available.
5581 (val_print_unavailable): New.
5582 (val_print_scalar_formatted): Check whether the value is
5584 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5585 pretty-printing unavailable values.
5587 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5589 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5590 * c-typeprint.c (c_type_print_args): Update the function comment. New
5591 variable param_type, initialize it. Remove const/volatile qualifiers
5592 for language_cplus and !show_artificial. Use param_type.
5594 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5596 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5597 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5598 * symtab.h (struct symtab) <next>: Comment extension.
5600 2011-02-12 Yao Qi <yao@codesourcery.com>
5602 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5604 2011-02-11 Yao Qi <yao@codesourcery.com>
5606 * common/Makefile.in: Add copyright header.
5608 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5610 * infrun.c (proceed): Move switching out and in of tfind mode from
5612 (fetch_inferior_event): ... to here.
5614 2011-02-11 Yao Qi <yao@codesourcery.com>
5616 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5618 * configure.ac: Add common to sub dir.
5619 * configure: Regenerate.
5621 2011-02-11 Yao Qi <yao@codesourcery.com>
5625 * common/Makefile.in: New.
5626 * common/configure.ac: New.
5627 * common/aclocal.m4: New.
5628 * common/configure: Generate.
5630 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5632 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5633 side of the parenthesis.
5636 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5637 * vec.h (VEC_block_remove): Fix comment.
5639 2011-02-08 Michael Snyder <msnyder@vmware.com>
5641 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5643 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5645 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5646 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5649 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5652 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5654 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5655 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5657 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5659 * dwarf2read.c (read_subroutine_type): Set special calling
5660 convention flag for functions compiled by IBM XL C for OpenCL.
5661 * ppc-sysv-tdep.c: Include "dwarf2.h"
5662 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5664 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5665 IBM OpenCL vector types calling convention.
5666 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5667 (ppc_sysv_abi_broken_return_value): Likewise.
5668 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5669 types calling convention.
5670 (ppc64_sysv_abi_return_value): Likewise.
5671 * spu-tdep.c: Include "dwarf2.h"
5672 (spu_return_value): Implement IBM OpenCL vector types calling
5675 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5677 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5678 correct ABI for AltiVec vector arguments.
5680 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5682 * valprint.c (val_print): Extend comment.
5683 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5684 interface explanation to val_print.
5685 (ada_val_print_array): Adjust comment to current interface.
5686 (print_field_values): Adjust comment to current interface.
5687 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5688 explanation to val_print.
5689 * f-valprint.c (f_val_print): Ditto.
5690 * jv-valprint.c (java_val_print): Ditto.
5691 * m2-valprint.c (m2_val_print): Ditto.
5692 * p-valprint.c (pascal_val_print): Ditto.
5694 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5696 * breakpoint.c (parse_breakpoint_sals): Fix description.
5698 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5699 Oguz Kayral <oguzkayral@gmail.com>
5701 * python/py-inferior.c (python_on_normal_stop): New function.
5702 (python_on_resume): New function.
5703 (python_inferior_exit): New function.
5704 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5705 inferior_exit observers.
5706 * python/py-evtregistry.c: New file.
5707 * python/py-threadevent.c : New file.
5708 * python/py-event.c: New file.
5709 * python/py-evts.c: New file.
5710 * python/py-continueevent.c: New file.
5711 * python/py-bpevent.c: New file.
5712 * python/py-signalevent.c: New file.
5713 * python/py-exetiedevent.c: New file.
5714 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5715 Move struct breakpoint_object from here...
5716 * python/python-internal.h: ... to here.
5717 * python/py-event.h: New file.
5718 * python/py-events.h: New file.
5719 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5720 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5721 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5722 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5723 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5724 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5725 Add build rules for all the above.
5727 2011-02-04 Tom Tromey <tromey@redhat.com>
5729 * dwarf2read.c (dwarf2_section_empty_p): New function.
5730 (dwarf2_read_section): Use dwarf2_section_empty_p.
5731 (dwarf2_section_size): New function.
5732 (dwarf2_get_section_info): Unconditionally read section.
5733 (dwarf2_read_index): Use dwarf2_section_empty_p.
5734 (partial_read_comp_unit_head): Use dwarf2_section_size.
5735 (dwarf2_symbol_mark_computed): Likewise.
5737 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5739 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5741 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5743 * mips-linux-tdep.c: Include xml-syscall.h.
5744 (mips_linux_get_syscall_number): New function.
5745 (mips_linux_init_abi): Add calls to
5746 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5747 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5748 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5749 * syscalls/mips-n32-linux.xml: New file.
5750 * syscalls/mips-n64-linux.xml: New file.
5751 * syscalls/mips-o32-linux.xml: New file.
5753 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5755 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5756 Complain about inverted range entries.
5757 (dwarf2_record_block_ranges): Likewise.
5759 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5762 * breakpoint.c (update_watchpoint): Fix name of the
5763 update_global_location_list function.
5764 (print_one_breakpoint): Fix typo.
5765 (_initialize_breakpoint): Remove extra space in hbreak help
5767 * breakpoint.h (struct bp_location) <length>: Fix field
5770 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5772 * regcache.c (registers_changed_ptid): Don't explictly always
5773 clear `current_regcache'. Only clear current_thread_ptid and
5774 current_thread_arch when PTID matches. Only reinit the frame
5775 cache if PTID matches the current inferior_ptid. Move alloca(0)
5777 (registers_changed): ... here.
5779 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5781 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5782 starts with __stack_chk_guard as stack guard symbol.
5784 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5786 * disasm.c (compare_lines): Handle the end of sequence markers
5787 within the line table to better support disassembling over
5788 compilation unit boundaries.
5790 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5792 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5793 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5794 implementation even if no symbols are available.
5795 (thumb_analyze_prologue): Update call to skip_prologue_function.
5796 (arm_analyze_prologue): Likewise.
5798 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5800 * arm-tdep.c: Include "observer.h".
5801 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5802 (arm_exidx_data_key): New static variable.
5803 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5804 (struct arm_exidx_data): Likewise.
5805 (arm_exidx_data_free): New function.
5806 (arm_compare_exidx_entries): Likewise.
5807 (arm_obj_section_from_vma): Likewise.
5808 (arm_exidx_new_objfile): Likewise.
5809 (arm_find_exidx_entry): Likewise.
5810 (arm_exidx_fill_cache): Likewise.
5811 (arm_exidx_unwind_sniffer): Likewise.
5812 (arm_exidx_unwind): New global variable.
5813 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5814 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5815 observer. Register arm_exidx_data_key as objfile data.
5817 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5819 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5820 due to accessing uninitialized variable. Fix indentation.
5822 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5824 * c-valprint.c (c_value_print): When doing virtual base pointer
5825 adjustment, create a new value with adjusted contents rather than
5826 changing the contents of the value being printed (and getting it
5829 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5831 * xml-support.c (xml_find_attribute): New.
5832 (xinclude_start_include): Use it.
5833 * xml-support.h (xml_find_attribute): Declare.
5834 * memory-map.c (memory_map_start_memory)
5835 (memory_map_start_property): Use xml_find_attribute.
5836 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5838 * remote.c (start_thread): Use xml_find_attribute.
5839 * solib-target.c (library_list_start_segment)
5840 (library_list_start_section, library_list_start_library)
5841 (library_list_start_list): Use xml_find_attribute.
5842 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5843 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5844 (tdesc_start_field): Use xml_find_attribute.
5846 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
5848 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5849 (BUILD_OCL_VTYPES): Update.
5851 2011-02-02 Joel Brobecker <brobecker@adacore.com>
5853 * configure.ac: Work around non-GNU sed limitation when computing
5854 python version number.
5855 * configure: Regenerate.
5857 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5859 Fix debug printing of TYPE_INSTANCE.
5860 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5861 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5863 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5865 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5866 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5867 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5868 * ada-operator.inc: Rename the file to ...
5869 * ada-operator.def: ... here, wrap all the entries by macro OP.
5870 * expprint.c (op_name_standard): Remove all the entries. Include
5871 "std-operator.def" instead.
5872 * expression.h (enum exp_opcode): Include "std-operator.def" and
5873 "ada-operator.def". Move all the entries ...
5874 * std-operator.def: ... here, wrap all the entries by macro OP.
5876 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5878 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5879 * breakpoint.c (remove_jit_event_breakpoints): New function.
5880 * jit.c (jit_descriptor_addr): Delete.
5881 (registering_code): Delete.
5882 (clear_int): Delete.
5883 (jit_inferior_data): New variable.
5884 (struct jit_inferior_data): New type.
5885 (get_jit_inferior_data): New function.
5886 (jit_inferior_data_cleanup): New function.
5887 (jit_read_descriptor): Adjust.
5888 (jit_register_code): Adjust.
5889 (jit_breakpoint_re_set_internal): New function; move code here ...
5890 (jit_inferior_init): ... from here.
5891 (jit_breakpoint_re_set): Adjust.
5892 (jit_reset_inferior_data_and_breakpoints): New function.
5893 (jit_inferior_created_observer): Adjust.
5894 (jit_inferior_exit_hook): Adjust.
5895 (jit_executable_changed_observer): New function.
5896 (jit_event_handler): Adjust.
5897 (_initialize_jit): Adjust.
5899 2011-01-31 Michael Snyder <msnyder@vmware.com>
5901 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5904 2011-01-31 Tom Tromey <tromey@redhat.com>
5907 * python/python.c (execute_gdb_command): Call
5908 prevent_dont_repeat.
5909 * top.c (suppress_dont_repeat): New global.
5910 (dont_repeat): Use it.
5911 (prevent_dont_repeat): New function.
5912 * command.h (prevent_dont_repeat): Declare.
5914 2011-01-31 Tom Tromey <tromey@redhat.com>
5916 * infcmd.c (finish_backward): Use breakpoint_set_silent.
5917 * python/py-breakpoint.c (bppy_set_silent): Use
5918 breakpoint_set_silent.
5919 (bppy_set_thread): Use breakpoint_set_thread.
5920 (bppy_set_task): Use breakpoint_set_task.
5921 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5922 (breakpoint_set_task): Declare.
5923 (make_breakpoint_silent): Remove.
5924 * breakpoint.c (breakpoint_set_silent): New function.
5925 (breakpoint_set_thread): Likewise.
5926 (breakpoint_set_task): Likewise.
5927 (make_breakpoint_silent): Remove.
5929 2011-01-31 Tom Tromey <tromey@redhat.com>
5931 * breakpoint.h (user_breakpoint_p): Declare.
5932 * breakpoint.c (user_breakpoint_p): New function.
5933 (breakpoint_1): Use it.
5934 (save_breakpoints): Likewise.
5936 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5938 * configure.ac: Add handling of Python distribution on Windows.
5939 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5940 sysconfig variables are not defined, then do not use them.
5941 On Windows, if LIBPL is not defined, then use prefix + '/libs'
5942 instead. On Windows, return all paths using forward-slashes
5943 rather than backslashes.
5945 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5947 * configure.ac: Remove fallback behavior for building
5948 against Python. Remove tweaking of Python include path.
5949 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5950 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
5951 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5952 Always restore CPPFLAGS and LIBS after linking test.
5953 * configure: Regenerated.
5954 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5955 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5956 * python/python-internal.h: Adjust includes of Python .h files.
5958 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5960 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
5963 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5965 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
5968 2011-01-31 Yao Qi <yao@codesourcery.com>
5970 * arm-linux-nat.c: Update calls to regcache_register_status
5971 instead of regcache_valid_p.
5972 * aix-thread.c: Likewise.
5973 * i386gnu-nat.c: Likewise.
5975 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5978 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
5979 touching TYPE_FIELD_ARTIFICIAL.
5981 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
5983 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
5986 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5988 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
5989 selected, don't try iterating over the traceframe's blocks.
5990 (tfile_has_stack): If there's no traceframe selected, then there's
5992 (tfile_has_registers): If there's no traceframe selected, then
5993 there's no registers.
5995 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5997 * target.c (memory_xfer_partial): No need to restore shadows if we
5998 haven't read anything.
6000 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6002 * mips-tdep.c (mips_print_register): Use get_frame_register_value
6003 and val_print_scalar_formatted.
6005 2011-01-27 Pedro Alves <pedro@codesourcery.com>
6007 * tracepoint.c (tfile_read): New.
6008 (tfile_open): Use it.
6009 (tfile_get_traceframe_address): Use it.
6010 (tfile_trace_find): Use it.
6011 (walk_blocks_callback_func): New typedef.
6012 (match_blocktype): New function.
6013 (traceframe_walk_blocks): New function.
6014 (traceframe_find_block_type): New function.
6015 (tfile_fetch_registers, tfile_xfer_partial)
6016 (tfile_get_trace_state_variable_value): Use
6017 traceframe_find_block_type and tfile_read.
6019 2011-01-26 Kevin Buettner <kevinb@redhat.com>
6021 * remote-mips.c: Add internationalization mark ups. Remove
6022 trailing \n from already marked up strings.
6024 2011-01-26 Tom Tromey <tromey@redhat.com>
6026 * python/py-prettyprint.c (print_string_repr): Clear
6027 'addressprint' option when calling val_print_string.
6028 (print_children): Handle Val_pretty_default. Clear 'addressprint'
6029 option when calling val_print_string.
6031 2011-01-26 Tom Tromey <tromey@redhat.com>
6033 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
6035 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6037 (gdb_py_longest, gdb_py_ulongest): New typedefs.
6038 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6039 (gdb_py_long_as_ulongest): New defines.
6040 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6041 (gdb_py_int_as_long): Declare.
6042 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6043 GDB_PY_LL_ARG, gdb_py_object_from_longest.
6044 (valpy_long): Add comment.
6045 * python/py-utils.c (get_addr_from_python): Use
6046 gdb_py_long_as_ulongest. Handle overflow properly.
6047 (gdb_py_object_from_longest): New function.
6048 (gdb_py_object_from_ulongest): Likewise.
6049 (gdb_py_int_as_long): Likewise.
6050 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6051 * python/py-symtab.c (salpy_get_pc): Use
6052 gdb_py_long_from_ulongest.
6053 (salpy_get_line): Use PyInt_FromLong.
6054 * python/py-param.c (set_parameter_value): Use
6056 * python/py-lazy-string.c (stpy_get_address): Use
6057 gdb_py_long_from_ulongest.
6058 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6059 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6060 * python/py-breakpoint.c (bppy_set_thread): Use
6062 (bppy_set_task): Likewise.
6063 (bppy_set_ignore_count): Likewise.
6064 (bppy_set_hit_count): Likewise.
6065 * python/py-block.c (blpy_get_start): Use
6066 gdb_py_object_from_ulongest.
6067 (blpy_get_end): Likewise.
6068 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6070 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
6073 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6074 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6075 equality test for objfile, initialize addr_low if needed.
6077 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6079 * tui/tui-regs.c (tui_register_format): Remove dead code.
6081 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6083 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6084 instead of print_scalar_formatted.
6085 (print_scalar_formatted): Don't handle 's' format strings here,
6086 and add an assertion that we never see such format here.
6087 * valprint.h (val_print_scalar_formatted): Declare.
6088 * valprint.c (val_print_scalar_formatted): New.
6089 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6090 instead of print_scalar_formatted.
6091 * jv-valprint.c (java_val_print): Ditto.
6092 * p-valprint.c (pascal_val_print): Ditto.
6093 * ada-valprint.c (ada_val_print_1): Ditto.
6094 * f-valprint.c (f_val_print): Ditto.
6095 * infcmd.c (registers_info): Ditto.
6096 * m2-valprint.c (m2_val_print): Ditto.
6098 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6100 * m2-valprint.c (print_unbounded_array): Pass
6101 value_contents_for_printing rather than value_contents, to
6102 m2_print_array_contents. Also pass in the value.
6104 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6106 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6107 (save_gdb_index_command): Switch to .gdb_index version 4.
6109 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6111 * mi/mi-main.c (get_register): Use get_frame_register_value rather
6112 than frame_register, and always pass a valid value to val_print.
6114 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6116 Centralize printing "<optimized out>".
6118 * valprint.h (val_print_optimized_out): Declare.
6119 * cp-valprint.c (cp_print_value_fields): Use
6120 val_print_optimized_out.
6121 * jv-valprint.c (java_print_value_fields): Ditto.
6122 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6123 * printcmd.c (print_formatted): Ditto.
6124 * valprint.c (valprint_check_validity): Ditto.
6125 (value_check_printable): Ditto.
6126 (val_print_optimized_out): New.
6128 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6130 * infcmd.c (default_print_registers_info): Allocate values so to
6131 never pass a NULL value to val_print.
6133 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6135 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6136 boolean. Make sure to always pass a value that matches the
6137 contents buffer to callees. Preserve `address' for following
6139 * value.c (value_contents_for_printing_const): New.
6140 (value_address): Constify value argument.
6141 * value.h (value_contents_for_printing_const): Declare.
6142 (value_address): Constify value argument.
6144 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6146 * regcache.c (struct regcache_descr): Rename
6147 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6148 and sizeof_cooked_register_valid_p to
6149 sizeof_cooked_register_status.
6150 (init_regcache_descr): Adjust.
6151 (struct regcache): Rename register_valid_p field to
6153 (regcache_xmalloc_1, regcache_xfree, regcache_save)
6154 (do_cooked_read): Adjust.
6155 (regcache_valid_p): Rename to ...
6156 (regcache_register_status): ... this. Adjust.
6157 (regcache_invalidate): Adjust.
6158 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6160 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
6161 as unavailable, not valid.
6162 (regcache_dump): Adjust.
6163 * regcache.h (enum register_status): New.
6164 (regcache_register_status): Declare.
6165 (regcache_invalidate): Delete declaration.
6166 * corelow.c (get_core_registers): Adjust.
6167 * tracepoint.c (tfile_fetch_registers): Adjust.
6168 * trad-frame.c (REG_VALUE): Rename to ...
6169 (TF_REG_VALUE): ... this.
6170 (REG_UNKNOWN): Rename to ...
6171 (TF_REG_UNKNOWN): ... this.
6172 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
6173 * mi/mi-main.c (register_changed_p): Adjust.
6175 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6177 * regcache.c (struct regcache_descr): Remove outdated comment.
6178 (init_regcache_descr): Remove sizeof_raw_register_valid_p
6180 (regcache_xmalloc): Rename to ...
6181 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
6182 Allocate the regcache type accordingly.
6183 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
6184 (regcache_xfree): Asser the source is also readonly. Copy sizeof
6185 cooked registers, not raw.
6186 (regcache_dup_no_passthrough): Delete.
6187 (get_thread_arch_regcache): Use regcache_xmalloc_1.
6188 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
6189 mention obsolete write_register_bytes.
6190 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6192 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6194 Stop remote_read_bytes from handling partial reads itself.
6196 * remote-fileio.c: Include target.h.
6197 (remote_fileio_write_bytes): Delete.
6198 (remote_fileio_func_open, remote_fileio_func_write)
6199 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6201 (remote_fileio_func_stat): Use target_read_memory and
6202 target_write_memory.
6203 (remote_fileio_func_gettimeofday): Use target_write_memory.
6204 (remote_fileio_func_system): Use target_read_memory.
6205 * remote.c (remote_write_bytes): Make it static.
6206 (remote_read_bytes): Don't handle partial reads here.
6207 * remote.h (remote_read_bytes): Delete declaration.
6209 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6211 Simplify XML parsing a bit.
6213 * xml-support.h (gdb_xml_parse_quick): Declare.
6214 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6215 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6217 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6218 gdb_xml_create_parser_and_cleanup_1.
6219 (gdb_xml_parse_quick): New.
6220 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6221 * osdata.c (osdata_parse): Ditto.
6222 * remote.c (remote_threads_info): Ditto.
6223 * solib-target.c (solib_target_parse_libraries): Ditto.
6224 * xml-syscall.c (syscall_parse_xml): Ditto.
6225 * xml-tdesc.c (tdesc_parse_xml): Ditto.
6227 2011-01-24 Kevin Buettner <kevinb@redhat.com>
6229 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6230 with remote-mips.o added to gdb_target_obs.
6231 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6233 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6235 * ada-valprint.c (val_print_packed_array_elements): Pass the
6236 correct struct value to val_print.
6237 (ada_val_print_1): Ditto.
6239 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6241 Don't lose embedded_offset in printing routines throughout.
6243 * valprint.h (val_print_array_elements): Change prototype.
6244 * valprint.c (val_print_array_elements): Add `embedded_offset'
6245 parameter, and adjust to pass it down to val_print, while passing
6246 `valaddr' or `address' unmodified. Take embedded_offset into
6247 account when checking repetitions.
6248 * c-valprint.c (c_val_print): Pass embedded_offset to
6249 val_print_array_elements instead of adjusting `valaddr' and
6251 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6252 embedded_offset to val_print_array_elements instead of adjusting
6254 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6255 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6256 val_print_array_elements and pascal_object_print_value_fields
6257 instead of adjusting `valaddr'.
6258 (pascal_object_print_value_fields): Add `offset' parameter, and
6260 (pascal_object_print_value): Add `offset' parameter, and adjust to
6262 (pascal_object_print_static_field): Use
6263 value_contents_for_printing/value_embedded_offset, rather than
6265 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6266 parameter, and adjust to use it. Use
6267 value_contents_for_printing/value_embedded_offset, rather than
6269 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6270 (ada_val_print_array): Add `offset' parameter, and adjust to use
6272 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6273 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6274 Instead work with offsets. Use
6275 value_contents_for_printing/value_embedded_offset, rather than
6276 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6277 and use value_from_pointer to extract a target pointer, rather
6278 than value_from_longest.
6279 (print_variant_part): Add `offset' parameter. Replace
6280 `outer_valaddr' parameter by a new `outer_offset' parameter.
6281 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6282 (ada_value_print): Use
6283 value_contents_for_printing/value_embedded_offset, rather than
6285 (print_record): Add `offset' parameter, and adjust to pass it
6287 (print_field_values): Add `offset' parameter. Replace
6288 `outer_valaddr' parameter by a new `outer_offset' parameter.
6289 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6290 Use value_contents_for_printing/value_embedded_offset, rather than
6292 * d-valprint.c (dynamic_array_type): Use
6293 value_contents_for_printing/value_embedded_offset, rather than
6295 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6296 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6297 (java_print_value_fields): Take `offset' into account. Don't
6298 re-adjust `valaddr'. Instead pass down adjusted offsets.
6299 (java_val_print): Take `embedded_offset' into account. Pass it to
6300 java_print_value_fields.
6301 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6302 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6303 down adjusted offsets.
6304 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6305 (f_val_print): Take `embedded_offset' into account.
6307 2011-01-21 Joel Brobecker <brobecker@adacore.com>
6309 * inflow.c: Include "gdbcmd.h".
6310 (interactive_mode): New static global, moved here from top.c.
6311 (show_interactive_mode): New function, moved here from top.c.
6312 use gdb_has_a_terminal instead of input_from_terminal_p to
6313 determine the current mode.
6314 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6316 (_initialize_inflow): Add the "set/show interactive-mode"
6317 commands. Moved here from top.c, after having adjusted slightly
6319 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6321 (input_from_terminal_p): Remove handling of "interactive-mode"
6322 setting, moved to infow.c.
6323 (init_main): Remove creation of the "set/show interactive-mode"
6324 commands, moved to inflow.c.
6326 2011-01-19 Joel Brobecker <brobecker@adacore.com>
6328 * NEWS: Add entry for native ia64-hpux support.
6330 2011-01-19 Tom Tromey <tromey@redhat.com>
6333 * thread.c (free_thread): Free 'name'.
6334 (print_thread_info): Emit thread name. Change CLI output.
6335 (thread_name_command): New function.
6336 (do_captured_thread_select): Emit newline.
6337 (_initialize_thread): Register 'thread name' command.
6338 * target.h (struct target_ops) <to_thread_name>: New field.
6339 (target_thread_name): New macro.
6340 * target.c (update_current_target): Handle to_thread_name.
6341 * python/py-infthread.c (thpy_get_name): New function.
6342 (thpy_set_name): Likewise.
6343 (thread_object_getset): Add "name".
6344 * linux-nat.c (linux_nat_thread_name): New function.
6345 (linux_nat_add_target): Set to_thread_name.
6346 * gdbthread.h (struct thread_info) <name>: New field.
6348 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6350 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6351 (ada_val_print_1): Likewise.
6353 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6355 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6356 upper limit address is not greater than the function end address
6357 when the upper limit could not be computed using the debugging
6360 2011-01-17 Tom Tromey <tromey@redhat.com>
6362 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6364 * utils.c: Include gdb_regex.h.
6365 (do_regfree_cleanup): New function.
6366 (make_regfree_cleanup): Likewise.
6367 (get_regcomp_error): Likewise.
6368 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6370 2011-01-17 Tom Tromey <tromey@redhat.com>
6372 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6375 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6377 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6378 for internal variables.
6379 (last_was_structop): New static variable.
6380 (COMPLETE): New token.
6381 (field_exp): New rule to group all '.' suffix handling.
6382 Add mark_struct_expression calls when approriate to be able
6383 to correctly find fields for completion.
6384 (yylex): Adapt to handle field completion and set INTVAR when
6387 2011-01-14 Yao Qi <yao@codesourcery.com>
6389 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6390 save_reggroup, restore_reggroup and all_reggroup.
6392 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6394 * ada-valprint. (ada_printchar): Use the correct type length
6395 in call to ada_emit_char.
6396 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6398 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6400 * solib-som.h (hpux_major_release): Declare variable here.
6401 * solib-som.c: Remove <sys/utsname.h> header.
6402 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6403 (hpux_major_release): Make global, change default value to
6404 DEFAULT_HPUX_MAJOR_RELEASE.
6405 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6406 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6407 Add "solib-som.h" header.
6408 (set_hpux_major_release): New function.
6409 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6411 2011-01-14 Mike Frysinger <vapier@gentoo.org>
6413 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6415 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6417 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6418 new-line at end of warning message.
6419 (ia64_hpux_store_register): Remove trailing new-line at end of
6421 * ia64-hpux-tdep.c: Rephrase comment.
6422 * solib-ia64-hpux.c (struct dld_info): Change type of field
6423 dld_flags from "long long" to ULONGEST.
6425 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6427 * target.h (deprecated_child_ops): Delete declaration.
6428 * target.c (deprecated_child_ops): Delete definition.
6430 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6432 * Makefile.in (hpux-thread.o): Delete rule.
6433 * configure.ac: Don't check for HPUX DCE threads support.
6434 * configure, config.in: Regenerate.
6435 * hppa-hpux-nat.c (child_suppress_run): Delete.
6436 (hppa_hpux_child_can_run): Delete.
6437 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6438 * hpux-thread.c: Delete.
6440 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6442 * hpux-thread.c (hpux_pid_to_str): Delete.
6444 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6446 * ada-valprint.c (ada_emit_char): Remove strange code.
6447 Check that c is <= UCHAR_MAX before passing it to isascii.
6448 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6450 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6452 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6453 to the case where instream is stdin.
6455 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6457 * ia64-tdep.h (struct regcache): Forward declare.
6458 (struct ia64_infcall_ops): New struct type.
6459 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6461 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6462 Renames ia64_find_global_pointer.
6463 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6464 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6465 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6467 (ia64_infcall_ops): New static global constant.
6468 (ia64_gdbarch_init): Set tdep->infcall_ops.
6469 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6470 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6471 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6472 (ia64_hpux_dummy_code): New static global constant.
6473 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6474 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6475 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6477 (ia64_hpux_infcall_ops): New static global constant.
6478 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6479 for inferior function calls to work properly on ia64-hpux.
6481 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6483 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6484 * ia64-tdep.h (struct frame_info): forward declaration.
6485 (struct gdbarch_tdep): Add field size_of_register_frame.
6486 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6487 to determine the size of the register frame.
6488 (ia64_size_of_register_frame): New function.
6489 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6490 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6491 (IA64_HPUX_UREG_REASON): New macro.
6492 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6494 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6495 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6496 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6499 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6501 Add support for ia64-hpux.
6502 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6503 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6505 * configure.host: Add handling for ia64-hpux hosts. Add associated
6507 * configure.tgt: Add handling for ia64-hpux targets.
6508 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6509 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6510 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6512 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6514 [ttrace] Compute thread list immediately after attach.
6515 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6517 (inf_ttrace_attach): Use it.
6519 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6521 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6522 if we could not determine the frame's function address. Instead,
6523 use the frame's PC, and then continue.
6525 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6527 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6528 not already defined.
6530 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6532 * ia64-tdep.c (ia64_struct_type_p): New function.
6533 (ia64_extract_return_value): Handle integral values that are
6534 less than 8 bytes long.
6535 (ia64_push_dummy_call): Likewise.
6537 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6539 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6540 floatformat_ia64_ext.
6541 (floatformat_ia64_ext_big): New static const.
6542 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6544 2011-01-12 Tom Tromey <tromey@redhat.com>
6546 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6548 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6549 (mi_cmd_thread_list_ids): Likewise.
6550 (mi_cmd_data_list_changed_registers): Likewise.
6551 (mi_cmd_data_list_register_values): Likewise.
6552 (mi_cmd_data_write_register_values): Likewise.
6553 (mi_cmd_data_evaluate_expression): Likewise.
6554 (mi_cmd_data_read_memory): Likewise.
6555 (mi_cmd_data_read_memory_bytes): Likewise.
6556 (mi_cmd_data_write_memory): Likewise.
6557 (mi_cmd_enable_timings): Likewise.
6558 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6559 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6560 (mi_cmd_var_delete): Likewise.
6561 (mi_cmd_var_set_format): Likewise.
6562 (mi_cmd_var_show_format): Likewise.
6563 (mi_cmd_var_info_num_children): Likewise.
6564 (mi_cmd_var_list_children): Likewise.
6565 (mi_cmd_var_info_type): Likewise.
6566 (mi_cmd_var_info_expression): Likewise.
6567 (mi_cmd_var_show_attributes): Likewise.
6568 (mi_cmd_var_assign): Likewise.
6569 (mi_cmd_var_update): Likewise.
6570 (mi_cmd_enable_pretty_printing): Likewise.
6571 (mi_cmd_var_set_update_range): Likewise.
6572 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6574 (mi_cmd_target_file_put): Likewise.
6575 (mi_cmd_target_file_delete): Likewise.
6576 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6578 (mi_cmd_stack_info_depth): Likewise.
6579 (mi_cmd_stack_list_locals): Likewise.
6580 (mi_cmd_stack_list_args): Likewise.
6581 (mi_cmd_stack_select_frame): Likewise.
6582 (mi_cmd_stack_select_frame): Likewise.
6583 (mi_cmd_stack_info_frame): Likewise.
6584 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6586 (mi_cmd_file_list_exec_source_files): Likewise.
6587 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6588 (mi_cmd_env_cd): Likewise.
6589 (mi_cmd_env_path): Likewise.
6590 (mi_cmd_env_dir): Likewise.
6591 (mi_cmd_inferior_tty_show): Likewise.
6592 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6593 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6594 (mi_cmd_break_watch): Likewise.
6596 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6598 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6599 (ppc_linux_insert_hw_breakpoint): Likewise.
6600 (ppc_linux_remove_hw_breakpoint): Likewise.
6601 (ppc_linux_insert_watchpoint): Likewise.
6603 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6604 Jan Kratochvil <jan.kratochvil@redhat.com>
6606 PR fortran/11104 and DWARF unbound arrays detection.
6607 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6608 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6609 unspecified upper bound.
6610 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6611 variables array_size_array, tmp_type and offset_item. New variable
6612 array. Remove call to f77_get_upperbound. New variables array_type
6613 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6614 the final call to deprecated_set_value_type.
6616 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6618 Make value allocations more lazy.
6619 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6620 instead of allocate_value and set_value_lazy when possible.
6621 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6622 instead of allocate_value and set_value_lazy.
6623 * findvar.c (value_of_register_lazy): Likewise.
6624 (read_var_value): Remove V preallocation, call just check_typedef in
6625 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6626 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6627 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6628 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6629 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6630 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6631 the end, remove set_value_lazy there.
6632 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6633 instead of allocate_value and set_value_lazy when possible.
6634 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6635 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6636 of allocate_value and set_value_lazy.
6637 (value_from_contents_and_address): Use allocate_value_lazy instead of
6638 allocate_value and set_value_lazy when possible.
6640 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6642 * disasm.c (dump_insns): Support dumping opcodes for MI.
6643 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6644 dumping of instruction opcodes.
6646 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6648 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6651 2011-01-11 Tom Tromey <tromey@redhat.com>
6653 * thread.c (do_captured_thread_select): Emit newline before
6656 2011-01-11 Michael Snyder <msnyder@vmware.com>
6658 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6659 * score-tdep.c: Ditto.
6660 * score-tdep.h: Ditto.
6661 * ser-base.c: Ditto.
6662 * ser-go32.c: Ditto.
6665 * ser-mingw.c: Ditto.
6666 * ser-pipe.c: Ditto.
6668 * ser-unix.c: Ditto.
6669 * sh64-tdep.c: Ditto.
6670 * shnbsd-nat.c: Ditto.
6674 * solib-darwin.c: Ditto.
6675 * solib-frv.c: Ditto.
6677 * solib-irix.c: Ditto.
6678 * solib-osf.c: Ditto.
6679 * solib-pa64.c: Ditto.
6680 * solib-som.c: Ditto.
6681 * solib-spu.c: Ditto.
6682 * solib-sunos.c: Ditto.
6683 * solib-svr4.c: Ditto.
6685 * sol-thread.c: Ditto.
6689 * sparc64-linux-tdep.c: Ditto.
6690 * sparc64-tdep.c: Ditto.
6691 * sparc-linux-nat.c: Ditto.
6692 * sparc-linux-tdep.c: Ditto.
6693 * sparc-sol2-nat.c: Ditto.
6694 * sparc-sol2-tdep.c: Ditto.
6695 * sparc-tdep.c: Ditto.
6696 * sparc-tdep.h: Ditto.
6697 * spu-tdep.c: Ditto.
6698 * stabsread.c: Ditto.
6699 * stabsread.h: Ditto.
6707 * target-descriptions.c: Ditto.
6708 * target-descriptions.h: Ditto.
6710 * target-memory.c: Ditto.
6711 * terminal.h: Ditto.
6714 * tracepoint.c: Ditto.
6715 * tracepoint.h: Ditto.
6716 * trad-frame.h: Ditto.
6717 * typeprint.c: Ditto.
6719 2011-01-11 Michael Snyder <msnyder@vmware.com>
6721 * ui-file.c: Comment cleanup, mostly periods and spaces.
6726 * v850-tdep.c: Ditto.
6727 * valarith.c: Ditto.
6729 * valprint.c: Ditto.
6730 * valprint.h: Ditto.
6735 * vax-tdep.c: Ditto.
6739 * windows-nat.c: Ditto.
6740 * windows-tdep.c: Ditto.
6741 * xcoffread.c: Ditto.
6742 * xcoffsolib.c: Ditto.
6743 * xml-support.c: Ditto.
6744 * xstormy16-tdep.c: Ditto.
6745 * xtensa-tdep.c: Ditto.
6746 * xtensa-tdep.h: Ditto.
6748 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6750 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6751 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6753 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6754 Thiago Jung Bauermann <bauerman@br.ibm.com>
6756 Implement support for PowerPC BookE ranged watchpoints.
6758 (struct breakpoint_ops) <resources_needed>: New method.
6759 Initialize to NULL in all existing breakpoint_ops instances.
6760 (struct breakpoint) <exact>: New field.
6761 (target_exact_watchpoints): Declare external global.
6762 * breakpoint.c (target_exact_watchpoints): New global flag.
6763 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6764 b->enable_state to bp_enabled before calling
6765 hw_watchpoint_used_count.
6766 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6767 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6769 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6770 if the watchpoint is exact.
6771 (resources_needed_watchpoint): New function.
6772 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6773 (watch_command_1): Set b->exact if the user asked for an exact
6774 watchpoint and one can be set.
6775 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6776 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6777 the user asks for an exact watchpoint and one can be set. Return
6778 number of needed debug registers to watch the expression.
6779 * gdbtypes.c (is_scalar_type): New function, based on
6780 valprint.c:scalar_type_p.
6781 (is_scalar_type_recursive): New function.
6782 * gdbtypes.h (is_scalar_type_recursive): Declare.
6783 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6784 handle regions when ranged watchpoints are available.
6785 (create_watchpoint_request): New function.
6786 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6787 create_watchpoint_request.
6788 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6789 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6790 `set powerpc' and `show powerpc' commands.
6791 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6792 Mention documentation comment in the target macro.
6793 (target_region_ok_for_hw_watchpoint): Document return value.
6795 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6797 * breakpoint.c (update_watchpoint): Decide on using a software or
6798 hardware watchpoint after the bp_locations are created.
6800 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6802 Convert hardware watchpoints to use breakpoint_ops.
6803 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6804 <insert_location>: ... this. Return int instead of void.
6805 Accept pointer to struct bp_location instead of pointer to
6806 struct breakpoint. Adapt all implementations.
6807 (breakpoint_ops) <remove>: Rename to...
6808 <remove_location>: ... this. Accept pointer to struct bp_location
6809 instead of pointer to struct breakpoint. Adapt all implementations.
6810 * breakpoint.c (insert_catchpoint): Delete function.
6811 (insert_bp_location): Call the watchpoint or catchpoint's
6812 breakpoint_ops.insert method.
6813 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6814 breakpoint_ops.remove method.
6815 (insert_watchpoint, remove_watchpoint): New functions.
6816 (watchpoint_breakpoint_ops): New structure.
6817 (watch_command_1): Initialize the OPS field.
6818 * inf-child.c (inf_child_insert_fork_catchpoint)
6819 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6820 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6821 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6823 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6824 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6825 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6826 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6827 * target.c (update_current_target): Change default implementation of
6828 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6829 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6830 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6831 to_set_syscall_catchpoint to return_one.
6832 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6833 (debug_to_insert_exec_catchpoint): Report return value.
6834 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6835 (to_insert_exec_catchpoint): Change declaration to return int instead
6838 2011-01-11 Michael Snyder <msnyder@vmware.com>
6840 * arm-tdep.c: Internationalization.
6843 * fork-child.c: Ditto.
6844 * nto-procfs.c: Ditto.
6845 * ppc-sysv-tdep.c: Ditto.
6847 * remote-mips.c: Ditto.
6849 * rs6000-nat.c: Ditto.
6850 * rs6000-tdep.c: Ditto.
6854 * xml-support.c: Ditto.
6855 * mi/mi-cmd-break.c: Ditto.
6856 * mi/mi-cmd-var.c: Ditto.
6857 * mi/mi-interp.c: Ditto.
6858 * mi/mi-main.c: Ditto.
6860 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
6862 * remote-sim.c (gdbsim_store_register): Update API to
6863 sim_store_register to check more error conditions.
6865 2011-01-10 Michael Snyder <msnyder@vmware.com>
6867 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6868 * nto-tdep.c: Ditto.
6869 * nto-tdep.h: Ditto.
6870 * objc-exp.y: Ditto.
6871 * objc-lang.c: Ditto.
6872 * objfiles.c: Ditto.
6873 * objfiles.h: Ditto.
6874 * observer.c: Ditto.
6875 * opencl-lang.c: Ditto.
6878 * parser-defs.h: Ditto.
6881 * posix-hdep.c: Ditto.
6882 * ppcbug-rom.c: Ditto.
6883 * ppc-linux-nat.c: Ditto.
6884 * ppc-linux-tdep.c: Ditto.
6885 * ppc-linux-tdep.h: Ditto.
6886 * ppcnbsd-tdep.c: Ditto.
6887 * ppcobsd-tdep.c: Ditto.
6888 * ppcobsd-tdep.h: Ditto.
6889 * ppc-sysv-tdep.c: Ditto.
6890 * ppc-tdep.h: Ditto.
6891 * printcmd.c: Ditto.
6892 * proc-abi.c: Ditto.
6893 * proc-flags.c: Ditto.
6895 * proc-utils.h: Ditto.
6896 * progspace.h: Ditto.
6897 * prologue-value.c: Ditto.
6898 * prologue-value.h: Ditto.
6899 * psympriv.h: Ditto.
6901 * p-typeprint.c: Ditto.
6902 * p-valprint.c: Ditto.
6903 * ravenscar-sparc-thread.c: Ditto.
6904 * ravenscar-thread.c: Ditto.
6905 * ravenscar-thread.h: Ditto.
6907 * regcache.c: Ditto.
6908 * regcache.h: Ditto.
6910 * remote-fileio.c: Ditto.
6911 * remote-fileio.h: Ditto.
6913 * remote-m32r-sdi.c: Ditto.
6914 * remote-mips.c: Ditto.
6915 * remote-sim.c: Ditto.
6916 * rs6000-aix-tdep.c: Ditto.
6917 * rs6000-nat.c: Ditto.
6918 * rs6000-tdep.c: Ditto.
6920 2011-01-10 Michael Snyder <msnyder@vmware.com>
6922 * charset.c (validate): Internationalization.
6923 * coffread.c (read_one_sym): Ditto.
6924 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6925 * h8300-tdep.c (H8300_extract_return_value): Ditto.
6926 * inflow.c (new_tty): Ditto.
6927 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6928 * m32c-tdep.c (m32c_return_value): Ditto.
6929 * mep-tdep.c (mep_store_return_value): Ditto.
6930 * score-tdep.c (score7_fetch_insn): Ditto.
6931 * ser-mingw.c (pipe_windows_open): Ditto.
6932 * sh64-tdep.c (sh64_extract_return_value): Ditto.
6933 * spu-tdep.c (spu_register_type): Ditto.
6934 * tracepoint.c (trace_find_command): Ditto.
6935 * valarith.c (value_pos): Ditto.
6937 2011-01-10 Joel Brobecker <brobecker@adacore.com>
6939 * ada-valprint.c (printstr): Minor comment reformatting.
6941 2011-01-08 Michael Snyder <msnyder@vmware.com>
6943 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6946 2011-01-08 Michael Snyder <msnyder@vmware.com>
6948 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6949 * hppa-hpux-tdep.c: Ditto.
6950 * hppa-linux-nat.c: Ditto.
6951 * hppa-linux-tdep.c: Ditto.
6952 * hppanbsd-tdep.c: Ditto.
6953 * hppa-tdep.c: Ditto.
6954 * hppa-tdep.h: Ditto.
6955 * hpux-thread.c: Ditto.
6956 * i386-cygwin-tdep.c: Ditto.
6957 * i386-darwin-nat.c: Ditto.
6958 * i386gnu-nat.c: Ditto.
6959 * i386-linux-nat.c: Ditto.
6960 * i386-linux-tdep.c: Ditto.
6961 * i386-nat.c: Ditto.
6962 * i386-nat.h: Ditto.
6963 * i386nbsd-tdep.c: Ditto.
6964 * i386-sol2-nat.c: Ditto.
6965 * i386-stub.c: Ditto.
6966 * i386-tdep.c: Ditto.
6967 * i386-tdep.h: Ditto.
6968 * i387-tdep.c: Ditto.
6969 * ia64-linux-nat.c: Ditto.
6970 * ia64-linux-tdep.c: Ditto.
6971 * ia64-tdep.c: Ditto.
6975 * inferior.c: Ditto.
6976 * inferior.h: Ditto.
6982 * iq2000-tdep.c: Ditto.
6983 * irix5-nat.c: Ditto.
6989 * jv-typeprint.c: Ditto.
6990 * jv-valprint.c: Ditto.
6991 * language.c: Ditto.
6992 * language.h: Ditto.
6993 * linespec.c: Ditto.
6994 * linux-fork.c: Ditto.
6995 * linux-nat.c: Ditto.
6996 * linux-thread-db.c: Ditto.
6997 * lm32-tdep.c: Ditto.
6999 2011-01-08 Michael Snyder <msnyder@vmware.com>
7001 * m2-exp.y: Comment cleanup, mostly periods and spaces.
7003 * m2-typeprint.c: Ditto.
7004 * m2-valprint.c: Ditto.
7005 * m32c-tdep.c: Ditto.
7006 * m32r-linux-nat.c: Ditto.
7007 * m32r-rom.c: Ditto.
7008 * m32r-tdep.c: Ditto.
7009 * m32r-tdep.h: Ditto.
7010 * m68hc11-tdep.c: Ditto.
7011 * m58klinux-nat.c: Ditto.
7012 * m68k-tdep.c: Ditto.
7013 * m88k-tdep.c: Ditto.
7014 * m88k-tdep.h: Ditto.
7015 * machoread.c: Ditto.
7016 * macrocmd.c: Ditto.
7017 * macroexp.c: Ditto.
7018 * macrotab.c: Ditto.
7021 * mdebugread.c: Ditto.
7022 * mdebugread.h: Ditto.
7025 * memory-map.h: Ditto.
7026 * mep-tdep.c: Ditto.
7027 * microblaze-rom.c: Ditto.
7028 * microblaze-tdep.c: Ditto.
7030 * mips-irix-tdep.c: Ditto.
7031 * mips-linux-nat.c: Ditto.
7032 * mips-linux-tdep.c: Ditto.
7033 * mips-linux-tdep.h: Ditto.
7034 * mipsnbsd-nat.c: Ditto.
7035 * mipsnbsd-tdep.c: Ditto.
7036 * mipsread.c: Ditto.
7037 * mips-tdep.c: Ditto.
7038 * mips-tdep.h: Ditto.
7039 * mn10300-linux-tdep.c: Ditto.
7040 * mn10300-tdep.c: Ditto.
7041 * mn10300-tdep.h: Ditto.
7044 * moxie-tdep.c: Ditto.
7045 * moxie-tdep.h: Ditto.
7048 2011-01-08 Mike Frysinger <vapier@gentoo.org>
7050 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7052 2011-01-08 Robert Millan <rmh@gnu.org>
7054 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7056 2011-01-07 Michael Snyder <msnyder@vmware.com>
7058 * charset.c (_initialize_charset): Fix typo in string.
7060 2011-01-07 Michael Snyder <msnyder@vmware.com>
7062 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7064 * tui/tui-layout.c (tui_set_layout_for_display_command):
7065 Split line so that operator goes to beginning of line.
7066 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7067 assignment out of if statement.
7069 2011-01-07 Michael Snyder <msnyder@vmware.com>
7071 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7072 * ada-lang.h: Ditto.
7073 * ada-tasks.c: Ditto.
7074 * ada-valprint.c: Ditto.
7075 * aix-threads.c: Ditto.
7076 * alpha-linux-nat.c: Ditto.
7077 * alpha-linux-tdep.c: Ditto.
7078 * alpha-mdebug-tdep.c: Ditto.
7079 * alpha-nat.c: Ditto.
7080 * alpha-osf1-tdep.c: Ditto.
7081 * alpha-tdep.c: Ditto.
7082 * alphabsd-nat.c: Ditto.
7083 * alphabsd-tdep.c: Ditto.
7084 * amd64-darwin-tdep.c: Ditto.
7085 * amd64-linux-nat.c: Ditto.
7086 * amd64-linux-tdep.c: Ditto.
7087 * amd64-sol2-tdep.c: Ditto.
7088 * amd64-tdep.c: Ditto.
7089 * amd64-fbsd-tdep.c: Ditto.
7090 * amd64-nbsd-tdep.c: Ditto.
7091 * amd64-obsd-tdep.c: Ditto.
7092 * amd64-linux-nat.c: Ditto.
7093 * amd64-linux-tdep.c: Ditto.
7094 * arm-tdep.c: Ditto.
7095 * arm-tdep.h: Ditto.
7096 * armnbsd-nat.c: Ditto.
7097 * avr-tdep.c: Ditto.
7098 * bfin-tdep.c: Ditto.
7100 * c-typeprintc: Ditto.
7101 * c-valprint.c: Ditto.
7102 * coff-pe-read.h: Ditto.
7103 * coffreead.c: Ditto.
7104 * cris-tdep.c: Ditto.
7106 * darwin-nat-info.c: Ditto.
7107 * darwin-nat.c: Ditto.
7108 * dbug-rom.c: Ditto.
7112 * dec-thread.c: Ditto.
7114 * demangle.c: Ditto.
7115 * dicos-tdep.c: Ditto.
7116 * dictionary.c: Ditto.
7117 * dictionary.h: Ditto.
7118 * dink32-rom.c: Ditto.
7120 * doublest.c: Ditto.
7122 * dummy-frame.c: Ditto.
7123 * dwarf2-frame.c: Ditto.
7124 * dwarf2expr.c: Ditto.
7125 * dwarf2loc.c: Ditto.
7126 * dwarf2read.c: Ditto.
7130 * event-top.h: Ditto.
7131 * exceptions.c: Ditto.
7132 * exceptions.h: Ditto.
7134 * expprint.c: Ditto.
7135 * expression.h: Ditto.
7139 * f-typeprint.c: Ditto.
7140 * f-valprint.c: Ditto.
7141 * fbsd-nat.c: Ditto.
7143 * fork-child.c: Ditto.
7146 * frv-linux-tdep.c: Ditto.
7147 * frv-tdep.c: Ditto.
7149 * gdb-stabs.h: Ditto.
7150 * gdb_assert.h: Ditto.
7151 * gdb_string.h: Ditto.
7152 * gdb_thread_db.h: Ditto.
7153 * gdb_wait.h: Ditto.
7154 * gdbarch.sh: Ditto.
7156 * gdbthread.h: Ditto.
7157 * gdbtypes.c: Ditto.
7158 * gdbtypes.h: Ditto.
7161 * gnu-v2-abi.c: Ditto.
7162 * gnu-v3-abi.c: Ditto.
7163 * go32-nat.c: Ditto.
7164 * gdbarch.c: Regenerate.
7165 * gdbarch.h: Regenerate.
7167 2011-01-07 Michael Snyder <msnyder@vmware.com>
7169 * ax-gdb.c: Adjust some long output strings.
7170 * breakpoint.c: Ditto.
7175 * linux-nat.c: Ditto.
7176 * solib-pa64.c: Ditto.
7177 * solib-som.c: Ditto.
7179 2011-01-06 Tom Tromey <tromey@redhat.com>
7183 * python/python.c (GdbMethods): Add "newest_frame" method.
7184 * python/python-internal.h (gdbpy_newest_frame): Declare.
7185 * python/py-frame.c (gdbpy_newest_frame): New function.
7187 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
7189 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
7190 * jit.c (jit_debug): New variable.
7191 (show_jit_debug): New function.
7192 (struct target_buffer): Use ULONGEST.
7193 (bfd_open_from_target_memory): Likewise.
7194 (jit_register_code, jit_inferior_init): Add debug output.
7195 (_initialize_jit): Register "debug jit" command.
7197 2011-01-06 Tom Tromey <tromey@redhat.com>
7199 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7200 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7203 2011-01-06 Tom Tromey <tromey@redhat.com>
7205 * python/py-frame.c (frapy_block): Use get_frame_block.
7207 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7209 Do not stop on SIGPRIO signals by default
7210 * infrun.c (_initialize_infrun): Unset signal_stop and
7211 signal_print for TARGET_SIGNAL_PRIO.
7213 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7215 * ada-tasks.c: Fix style violation in comment.
7217 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7219 * linespec.c (decode_compound, find_method): Remove trailing \n
7220 at end of error string.
7221 * solib-irix.c (irix_current_sos): Likewise.
7222 * varobj.c (uninstall_variable): Likewise.
7224 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7226 * copyright.py: New script.
7227 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7228 Launch emacs without exec'ing. Call copyright.py afterwards.
7230 2011-01-05 Michael Snyder <msnyder@vmware.com>
7232 * addrmap.c: Shorten lines of >= 80 columns.
7233 * arch-utils.c: Ditto.
7234 * arch-utils.h: Ditto.
7236 * ax-general.c: Ditto.
7238 * blockframe.c: Ditto.
7239 * breakpoint.c: Ditto.
7240 * buildsym.c: Ditto.
7242 * c-typeprint.c: Ditto.
7244 * coffread.c: Ditto.
7248 * cp-namespace.c: Ditto.
7249 * cp-support.c: Ditto.
7250 * dbug-rom.c: Ditto.
7255 * dictionary.c: Ditto.
7257 * doublest.c: Ditto.
7258 * dwarf2-frame.c: Ditto.
7259 * dwarf2expr.c: Ditto.
7260 * dwarf2loc.c: Ditto.
7261 * dwarf2read.c: Ditto.
7264 * event-loop.c: Ditto.
7265 * event-loop.h: Ditto.
7266 * exceptions.h: Ditto.
7268 * expprint.c: Ditto.
7269 * expression.h: Ditto.
7271 * f-valprint.c: Ditto.
7273 * frame-base.c: Ditto.
7274 * frame-unwind.c: Ditto.
7275 * frame-unwind.h: Ditto.
7279 * gdb-stabs.h: Ditto.
7280 * gdb_assert.h: Ditto.
7281 * gdb_dirent.h: Ditto.
7282 * gdb_obstack.h: Ditto.
7284 * gdbtypes.c: Ditto.
7285 * gdbtypes.h: Ditto.
7286 * inf-ttrace.c: Ditto.
7291 * inline-frame.h: Ditto.
7292 * language.c: Ditto.
7293 * language.h: Ditto.
7294 * libunwind-frame.c: Ditto.
7295 * libunwind-frame.h: Ditto.
7296 * linespec.c: Ditto.
7297 * linux-nat.c: Ditto.
7298 * linux-nat.h: Ditto.
7299 * linux-thread-db.c: Ditto.
7300 * machoread.c: Ditto.
7301 * macroexp.c: Ditto.
7302 * macrotab.c: Ditto.
7305 * mdebugread.c: Ditto.
7310 * objfiles.c: Ditto.
7311 * objfiles.h: Ditto.
7313 * p-typeprint.c: Ditto.
7314 * p-valprint.c: Ditto.
7316 * printcmd.c: Ditto.
7317 * proc-events.c: Ditto.
7319 * progspace.c: Ditto.
7320 * progspace.h: Ditto.
7321 * psympriv.h: Ditto.
7324 * regcache.c: Ditto.
7325 * regcache.h: Ditto.
7326 * remote-fileio.c: Ditto.
7328 * ser-mingw.c: Ditto.
7330 * ser-unix.c: Ditto.
7333 * solib-frv.c: Ditto.
7334 * solib-irix.c: Ditto.
7335 * solib-osf.c: Ditto.
7336 * solib-pa64.c: Ditto.
7337 * solib-som.c: Ditto.
7338 * solib-sunos.c: Ditto.
7339 * solib-svr4.c: Ditto.
7340 * solib-target.c: Ditto.
7344 * stabsread.c: Ditto.
7345 * stabsread.c: Ditto.
7348 * symfile-mem.c: Ditto.
7354 * target-descriptions.c: Ditto.
7355 * target-memory.c: Ditto.
7358 * terminal.h: Ditto.
7361 * tracepoint.c: Ditto.
7362 * tracepoint.h: Ditto.
7366 * user-regs.c: Ditto.
7367 * user-regs.h: Ditto.
7369 * valarith.c: Ditto.
7371 * valprint.c: Ditto.
7372 * valprint.h: Ditto.
7377 * xcoffread.c: Ditto.
7378 * xcoffsolib.c: Ditto.
7379 * xcoffsolib.h: Ditto.
7380 * xml-syscall.c: Ditto.
7381 * xml-tdesc.c: Ditto.
7383 2011-01-05 Michael Snyder <msnyder@vmware.com>
7385 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7386 * cli/cli-decode.c: Ditto.
7387 * cli/cli-dump.c: Ditto.
7388 * cli/cli-logging.c: Ditto.
7389 * cli/cli-script.c: Ditto.
7390 * cli/cli-setshow.c: Ditto.
7391 * common/signals.c: Ditto.
7392 * mi/mi-cmd-break.c: Ditto.
7393 * mi/mi-cmd-disas.c: Ditto.
7394 * mi/mi-cmd-stack.c: Ditto.
7395 * mi/mi-cmd-var.c: Ditto.
7396 * mi/mi-cmds.c: Ditto.
7397 * mi/mi-common.h: Ditto.
7398 * mi/mi-console.c: Ditto.
7399 * mi/mi-interp.c: Ditto.
7400 * mi/mi-main.c: Ditto.
7401 * osf-share/cma_attr.c: Ditto.
7402 * osf-share/cma_deb_core.h: Ditto.
7403 * osf-share/cma_debug_client.h: Ditto.
7404 * osf-share/cma_handle.h: Ditto.
7405 * osf-share/cma_mutex.h: Ditto.
7406 * osf-share/cma_stack_int.h: Ditto.
7407 * osf-share/cma_tcb_defs.h: Ditto.
7408 * python/py-auto-load.c: Ditto.
7409 * python/py-breakpoint.c: Ditto.
7410 * python/py-cmd.c: Ditto.
7411 * python/py-frame.c: Ditto.
7412 * python/py-objfile.c: Ditto.
7413 * python/py-param.c: Ditto.
7414 * python/py-progspace.c: Ditto.
7415 * python/py-symbol.c: Ditto.
7416 * python/py-value.c: Ditto.
7417 * python/python-internal.h: Ditto.
7418 * python/python.c: Ditto.
7419 * tui/tui-data.c: Ditto.
7420 * tui/tui-disasm.c: Ditto.
7421 * tui/tui-hooks.c: Ditto.
7422 * tui/tui-io.c: Ditto.
7423 * tui/tui-layout.c: Ditto.
7424 * tui/tui-regs.c: Ditto.
7425 * tui/tui-source.c: Ditto.
7426 * tui/tui-stack.c: Ditto.
7427 * tui/tui-win.c: Ditto.
7428 * tui/tui-windata.c: Ditto.
7429 * tui/tui-winsource.c: Ditto.
7431 2011-01-05 Joel Brobecker <brobecker@adacore.com>
7433 * configure.ac, gdb.1: Copyright year update.
7435 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7437 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7438 this_pc_in_block, morestack_msym and morestack_name. Check for
7439 "__morestack" minimal symbol there.
7441 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7443 * symfile.c (find_sym_fns): Add call to dont_repeat.
7445 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7447 Copyright year update in most files (performed by copyright.sh).
7449 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7451 * top.c (print_gdb_version): Update copyright year in version output.
7453 For older changes see ChangeLog-2010.
7459 version-control: never