1 2011-07-04 Tristan Gingold <gingold@adacore.com>
3 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4 (tcb_fieldno): Add activation_link field.
5 (get_known_tasks_addr): Moved and rewritten.
6 (get_tcb_types_info): Set activation_link field.
7 (read_known_tasks_array): Add parameter. Rewritten.
8 (read_known_tasks_list): New function.
9 (read_known_tasks): New function.
10 (ada_build_task_list): Call read_known_tasks instead of
11 read_known_tasks_array.
12 * ravenscar-thread.c: Add first_task_name constant.
13 (has_ravenscar_runtime): Check for task list too.
15 2011-07-04 Tristan Gingold <gingold@adacore.com>
17 * ada-tasks.c: Renames fieldno to actb_fieldno.
18 (ada_get_task_number): Indentation.
19 (get_tcb_types_info): Remove all parameters. Write directly
21 (ptid_from_atcb_common): Adjust.
24 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
26 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
28 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
30 * ui-out.c (ui_out_field_core_addr): Mention that the function
31 description is in the header file.
32 * ui-out.h (ui_out_field_core_addr): Document function.
34 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
36 * ui-out.c (ui_out_get_field_separator): Remove unused function.
37 * ui-out.h (ui_out_get_field_separator): Remove prototype.
39 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
41 * symtab.c (expand_line_sal): Remove empty line.
43 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
45 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
46 same way as ELFOSABI_NONE.
47 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
49 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
51 * breakpoint.c: Fix typos in comments.
52 * linespec.c: Likewise.
55 2011-07-04 Joel Brobecker <brobecker@adacore.com>
57 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
58 section in separate object files.
60 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
62 Fix false GCC warning.
63 * linespec.c (decode_line_1): Initialize values.
65 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
67 * linespec.c (find_method): Accept the function type automatically only
68 if it was specified with parameter types.
70 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
72 Stop on first linespec terminator instead of eating what we can.
73 * linespec.c (is_linespec_boundary): New function.
74 (name_end): Remove function.
75 (keep_name_info): New parameter on_boundary, replace the body.
76 (decode_line_1): Provide the parameter to keep_name_info.
77 (decode_compound): Likewise. Drop the trailing java return type
80 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
82 Fall back linespec to minimal symbols.
83 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
84 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
85 (find_method, symbol_found): Change error to cplusplus_error.
87 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
89 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
91 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
92 Tom Tromey <tromey@redhat.com>
94 * dwarf2read.c (check_physname): New variable.
95 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
96 (show_check_physname): New function.
97 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
99 2011-07-01 Joel Brobecker <brobecker@adacore.com>
101 * machoread.c (macho_symfile_read): Delete OBE comment.
103 2011-07-01 Joel Brobecker <brobecker@adacore.com>
105 * machoread.c (struct macho_oso_data): Delete.
106 (current_oso): Delete.
107 (macho_relocate_common_syms): New function, mostly extracted
109 (macho_add_oso_symfile): Call macho_relocate_common_syms.
110 Remove code that sets and unset current_oso.
111 (macho_symfile_relocate): Delete handling of common symbols,
112 now moved to macho_relocate_common_syms.
114 2011-07-01 Joel Brobecker <brobecker@adacore.com>
116 * darwin-nat.c (darwin_ptrace): Add documentation.
117 Set errno to zero before calling ptrace. If ptrace returns
118 -1 and errno is zero, then change then return zero.
119 (darwin_kill_inferior): Issue a warning instead of triggering
120 a failed assertion when the PT_KILL ptrace operations returned
123 2011-07-01 Joel Brobecker <brobecker@adacore.com>
125 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
126 only when inf->private->no_ptrace.
128 2011-07-01 Joel Brobecker <brobecker@adacore.com>
130 * ada-lang.c (print_it_exception): Print temporary catchpoints
131 as "Temporary catchpoint".
132 (print_mention_exception): Likewise.
134 2011-07-01 Tom Tromey <tromey@redhat.com>
136 * jv-lang.c (java_language_defn): Use java_printchar,
138 (java_get_encoding): New function.
139 (java_emit_char): Use generic_emit_char.
140 (java_printchar): New function.
141 (java_printstr): Likewise.
143 2011-07-01 Joel Brobecker <brobecker@adacore.com>
145 * ada-typeprint.c (print_record_type): If unable to decode
146 the name of the parent type, use the encoded name.
148 2011-07-01 Jean-Charles Delay <delay@adacore.com>
150 * ada-typeprint.c (ada_print_type): Fix both PAD type and
151 pointer to constrained packed array type output.
152 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
155 2011-07-01 Jean-Charles Delay <delay@adacore.com>
157 * ada-typeprint.c (print_array_type): removed if condition on show
158 being negative for bounds printing.
160 2011-07-01 Joel Brobecker <brobecker@adacore.com>
162 * ada-lang.c (ada_identical_enum_types_p): New function.
163 (symbols_are_identical_enums): New function.
164 (remove_extra_symbols): Do nothing if NSYMS < 2.
165 Use symbols_are_identical_enums.
167 2011-07-01 Joel Brobecker <brobecker@adacore.com>
169 * ada-valprint.c (ada_value_print): Handle typedefs.
171 2011-07-01 Joel Brobecker <brobecker@adacore.com>
173 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
175 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
177 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
178 (decode_constrained_packed_array): Likewise.
179 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
181 2011-07-01 Joel Brobecker <brobecker@adacore.com>
183 * ada-exp.y (convert_char_literal): Handle typedef types.
185 2011-07-01 Joel Brobecker <brobecker@adacore.com>
187 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
189 2011-06-30 Tom Tromey <tromey@redhat.com>
191 * varobj.c (varobj_create): Call do_cleanups on early exit path.
192 * valops.c (find_overload_match): Call do_cleanups on early exit
194 * solib.c (solib_find): Call do_cleanups on early exit path.
196 2011-06-30 Tom Tromey <tromey@redhat.com>
198 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
199 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
200 return paths. Defer final do_cleanups until last return.
201 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
204 2011-06-30 Tom Tromey <tromey@redhat.com>
206 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
208 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
210 * MAINTAINERS (Write After Approval): Add myself to the list.
212 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
214 Disable epilogue unwinders on recent GCCs.
215 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
216 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
217 * dwarf2read.c (process_full_comp_unit): Initialize
218 EPILOGUE_UNWIND_VALID.
219 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
220 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
221 * symtab.h (struct symtab): New field epilogue_unwind_valid.
223 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
225 Code cleanup - reformatting.
226 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
227 (producer_is_gcc_ge_4): ... here, change the return value.
228 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
231 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
233 Fix non-only rename list for Fortran modules import.
234 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
235 cp_add_using_directive caller.
236 (cp_add_using_directive): New parameter excludes, describe it. New
237 variables ix and param. Compare if also excludes match. Allocate NEW
238 with variable size, initialize EXCLUDES there.
239 (cp_lookup_symbol_imports): New variable excludep, test
240 current->EXCLUDES with it.
241 * cp-support.h: Include vec.h.
242 (struct using_direct): New field excludes, describe it.
243 (DEF_VEC_P (const_char_ptr)): New.
244 (cp_add_using_directive): New parameter excludes.
245 * defs.h (const_char_ptr): New typedef.
246 * dwarf2read.c (read_import_statement): New variables child_die,
247 excludes and cleanups, read in excludes.
248 (read_namespace): Adjust the cp_add_using_directive caller.
250 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
253 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
254 negative comparisons.
256 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
258 * mi/mi-main.c (mi_cmd_list_features): Emit
259 breakpoint-notifications.
261 2011-06-29 Tom Tromey <tromey@redhat.com>
264 * valprint.h (generic_emit_char, generic_printstr): Declare.
265 * valprint.c (wchar_printable, append_string_as_wide)
266 (print_wchar): Move from c-lang.c.
267 (generic_emit_char): New function; mostly taken from c_emit_char.
268 (generic_printstr): New function; mostly taken from c_printstr.
269 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
270 represented as arrays.
271 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
273 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
274 identically to TYPE_CODE_INT.
275 * f-lang.c (f_get_encoding): New function.
276 (f_emit_char): Use generic_emit_char.
277 (f_printchar): Replace comment.
278 (f_printstr): Use generic_printstr.
279 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
280 "character" types specially.
281 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
283 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
285 (c_emit_char): Call generic_emit_char.
286 (c_printstr): Call generic_printstr.
288 2011-06-29 Gary Benson <gbenson@redhat.com>
290 * breakpoint.c (bpstat_what): Removed duplicated case.
292 2011-06-28 Tom Tromey <tromey@redhat.com>
294 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
296 2011-06-27 Tom Tromey <tromey@redhat.com>
298 * valops.c (find_overload_match): Call do_cleanups before early
300 * top.c (execute_command): Call do_cleanups before early return.
301 (command_loop): Likewise.
302 * stack.c (backtrace_command): Make a null cleanup early. Don't
303 conditionally call do_cleanups.
304 * python/py-value.c (TRY_CATCH): Move cleanup handling into
306 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
307 so cleanups are always run.
308 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
309 * findcmd.c (parse_find_args): Call do_cleanups on early return
311 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
312 Don't conditionally call do_cleanups.
313 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
316 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
318 * MAINTAINERS (Write After Approval): Use default email address.
320 2011-06-27 Joel Brobecker <brobecker@adacore.com>
322 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
324 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
326 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
327 saved_regs_mask and copied_regs_mask fields.
328 (sparc_record_save_insn): New prototype.
329 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
330 (sparc_record_save_insn): New function.
331 (sparc_analyze_prologue): Add head comment. Recognize store insns
332 of call-saved registers. Use OFFSET consistently. Recognize flat
333 frames and cache their settings.
334 (sparc32_skip_prologue): Handle flat frames.
335 (sparc_frame_cache): Add frame_offset to the base address.
336 (sparc32_frame_cache): Adjust to new frame description.
337 (sparc32_frame_prev_register): Likewise.
338 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
339 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
340 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
341 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
342 frame by calling sparc_record_save_insn.
343 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
344 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
345 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
347 2011-06-27 Tristan Gingold <gingold@adacore.com>
349 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
350 field by map_addr and map_len.
351 (dwarf2_read_section): Adjust for the new bfd_mmap api.
352 (munmap_section_buffer): Likewise.
354 2011-06-24 Tom Tromey <tromey@redhat.com>
356 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
357 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
358 * python/python.c (gdbpy_parameter): Make 'arg' const.
359 (execute_gdb_command): Likewise.
360 (gdbpy_decode_line): Likewise. Copy it.
361 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
362 (gdbpy_write): Make 'arg' const.
363 * python/py-type.c (typy_lookup_typename): Make 'type_name'
365 (gdbpy_lookup_type): Likewise.
366 * python/py-prettyprint.c (print_children): Make 'name' const.
367 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
368 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
370 * python/py-function.c (fnpy_init): Make 'name' const.
371 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
372 (gdbpy_string_to_argv): Make 'input' const.
373 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
375 * gdbtypes.h (lookup_typename): Update.
376 * gdbtypes.c (lookup_typename): Make 'name' const.
377 (lookup_struct): Likewise.
378 (lookup_union): Likewise.
379 (lookup_enum): Likewise.
381 2011-06-24 Tom Tromey <tromey@redhat.com>
383 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
384 gdb_thread_db.h. Move all common/ entries to be together.
385 (TAGS): Don't depend on DEPFILES.
387 2011-06-23 Yao Qi <yao@codesourcery.com>
389 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
390 * remote.c (remote_start_remote): ... here.
391 * monitor.c (monitor_open): ... here.
393 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
395 * gdbtypes.c (append_composite_type_field_aligned): Fix
396 calculation of bit position based on alignment.
398 2011-06-22 Pedro Alves <pedro@codesourcery.com>
400 * breakpoint.c (bpstat_stop_status): Call the check_status
401 breakpoint_ops method.
402 (print_one_breakpoint_location): Also print the condition for Ada
403 exception catchpoints.
404 (allocate_bp_location): New, factored out from
405 allocate_bp_location.
406 (allocate_bp_location): Adjust. Call the owner breakpoint's
407 allocate_location method, if there is one.
408 (free_bp_location): Call the locations's dtor method, if there is
410 (init_raw_breakpoint_without_location): New breakpoint_ops
412 (set_raw_breakpoint_without_location): Adjust.
413 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
414 (set_raw_breakpoint): Adjust.
415 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
416 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
417 re_set and check_status methods.
418 (init_catchpoint): Don't memset, initialize thread, addr_string
419 and enable_state. Pass the ops down to init_raw_breakpoint.
420 (install_catchpoint): Rename to ...
421 (install_breakpoint): ... this, and make extern.
422 (create_fork_vfork_event_catchpoint): Adjust.
423 (catch_exec_breakpoint_ops): Install NULL allocate_location,
424 re_set and check_status methods.
425 (create_syscall_event_catchpoint): Adjust.
426 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
427 (masked_watchpoint_breakpoint_ops): Install NULL
428 allocate_location, re_set and check_status methods.
429 (catch_exec_command_1): Adjust.
430 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
431 re_set and check_status methods.
432 (create_ada_exception_breakpoint): Rename to ...
433 (init_ada_exception_breakpoint): ... this. Add a struct
434 breakpoint parameter, and delete the exp_string, cond_string and
435 cond parameters. Use init_raw_breakpoint, and don't install or
436 mention the breakpoint yet. Don't clear breakpoint fields that
437 init_raw_breakpoint already clears.
438 (re_set_breakpoint): Delete, split into ...
439 (breakpoint_re_set_default, prepare_re_set_context): ... these new
441 (breakpoint_re_set_one): Call the breakpoint's
442 breakpoint_ops->re_set implementation, if there's one. Adjust.
443 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
444 (struct bp_location_ops): New type.
445 (struct bp_location): New field `ops'.
446 (struct breakpoint_ops): New `allocate_location', `re_set' and
447 `check_status' fields. Make `breakpoint_hit''s description match
449 (init_bp_location): Declare.
450 (breakpoint_re_set_default): Declare.
451 (create_ada_exception_breakpoint): Rename to ...
452 (init_ada_exception_breakpoint): ... this. Add a struct
453 breakpoint parameter, and delete the exp_string, cond_string and
455 (install_breakpoint): Declare.
456 * ada-lang.c: Include exceptions.h.
457 <Ada exceptions description>: Update.
458 (struct ada_catchpoint_location): New type.
459 (ada_catchpoint_location_dtor): New function.
460 (ada_catchpoint_location_ops): New global.
461 (ada_catchpoint): New type.
462 (create_excep_cond_exprs): New function.
463 (dtor_exception, allocate_location_exception, re_set_exception)
464 (should_stop_exception, check_status_exception): New functions.
465 (print_one_exception, print_mention_exception)
466 (print_recreate_exception): Adjust.
467 (dtor_catch_exception, allocate_location_catch_exception)
468 (re_set_catch_exception, check_status_catch_exception): New
470 (catch_exception_breakpoint_ops): Install them.
471 (dtor_catch_exception_unhandled)
472 (allocate_location_catch_exception_unhandled)
473 (re_set_catch_exception_unhandled)
474 (check_status_catch_exception_unhandled): New functions.
475 (catch_exception_unhandled_breakpoint_ops): Install them.
476 (dtor_catch_assert, allocate_location_catch_assert)
477 (re_set_catch_assert, check_status_catch_assert): New functions.
478 (catch_assert_breakpoint_ops): Install them.
479 (ada_exception_catchpoint_p): Delete.
480 (catch_ada_exception_command_split)
481 (ada_exception_catchpoint_cond_string): Rename exp_string
482 parameter to excep_string. Adjust.
483 (ada_parse_catchpoint_condition): Delete.
484 (ada_exception_sal): Rename the exp_string parameter to
485 excep_string. Delete the cond_string and cond parameters.
487 (ada_decode_exception_location): Rename the exp_string parameter
488 to excep_string. Delete the cond_string and cond parameters.
490 (create_ada_exception_catchpoint): New function.
491 (catch_ada_exception_command, ada_decode_assert_location)
492 (catch_assert_command): Adjust.
493 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
495 2011-06-22 Pedro Alves <pedro@codesourcery.com>
497 * ada-lang.c: Include arch-utils.h.
498 (ada_decode_exception_location): Make static.
499 (catch_ada_exception_command): Moved here from breakpoint.c.
500 (ada_decode_assert_location): Make static.
501 (catch_assert_command): Moved here from breakpoint.c.
502 (_initialize_ada_lang): Install the exception and assert
503 catchpoint commands here.
504 * ada-lang.h (ada_decode_exception_location)
505 (ada_decode_assert_location): Delete declarations.
506 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
508 (create_ada_exception_breakpoint): Make extern.
509 (catch_ada_exception_command, catch_assert_command): Moved to
511 (add_catch_command): Make extern.
512 (_initilize_breakpoint): Don't install the exception and assert
513 catchpoint commands here.
514 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
516 (add_catch_command, create_ada_exception_breakpoint): Declare.
518 2011-06-22 Pedro Alves <pedro@codesourcery.com>
520 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
521 the breakpoint to the breakpoint chain here.
522 (set_raw_breakpoint_without_location): Add the breakpoint to the
523 breakpoint chain here.
524 (init_raw_breakpoint): Adjust comments.
525 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
527 (init_catchpoint): Don't set the catchpoint's breakpoint number
529 (install_catchpoint): New function.
530 (create_fork_vfork_event_catchpoint)
531 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
532 use install_catchpoint.
534 2011-06-22 Pedro Alves <pedro@codesourcery.com>
536 * breakpoint.c (create_catchpoint_without_mention)
537 (create_catchpoint): Delete.
539 2011-06-22 Pedro Alves <pedro@codesourcery.com>
541 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
542 * breakpoint.c (init_raw_breakpoint_without_location): Remove
543 reference to exec_pathname.
544 (struct exec_catchpoint): New type.
545 (dtor_catch_exec): New function.
546 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
547 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
548 (catch_exec_command_1): Adjust to use init_catchpoint.
549 (delete_breakpoint): Remove reference to exec_pathname.
551 2011-06-22 Pedro Alves <pedro@codesourcery.com>
553 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
554 (struct breakpoint): Delete field `syscalls_to_be_caught'.
555 * breakpoint.c (init_raw_breakpoint_without_location): Remove
556 reference to syscalls_to_be_caught.
557 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
559 (struct syscall_catchpoint): New type.
560 (dtor_catch_syscall): New function.
561 (insert_catch_syscall, remove_catch_syscall)
562 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
563 (print_recreate_catch_syscall): Adjust.
564 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
565 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
566 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
567 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
568 (masked_watchpoint_breakpoint_ops)
569 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
570 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
571 there is one. Remove references to syscalls_to_be_caught.
572 (catching_syscall_number): Adjust.
573 * ada-lang.c (catch_exception_breakpoint_ops)
574 (catch_exception_unhandled_breakpoint_ops)
575 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
577 2011-06-22 Pedro Alves <pedro@codesourcery.com>
579 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
581 * breakpoint.c (init_raw_breakpoint_without_location): Remove
582 reference to forked_inferior_pid.
583 (struct fork_catchpoint): New type.
584 (breakpoint_hit_catch_fork, print_it_catch_fork)
585 (print_one_catch_fork, breakpoint_hit_catch_vfork)
586 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
587 (create_fork_vfork_event_catchpoint): Adjust to use
590 2011-06-22 Pedro Alves <pedro@codesourcery.com>
592 * breakpoint.c (add_to_breakpoint_chain)
593 (init_raw_breakpoint_without_location): New functions, factored
595 (set_raw_breakpoint_without_location): ... this one.
596 (init_raw_breakpoint): New function, factored out from
597 set_raw_breakpoint and adjusted to use
598 init_raw_breakpoint_without_location.
599 (set_raw_breakpoint): Adjust.
600 (init_catchpoint): New function, factored out from
601 create_catchpoint_without_mention and adjusted to use
603 (create_catchpoint_without_mention): Adjust.
605 2011-06-22 Tom Tromey <tromey@redhat.com>
607 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
608 argument of 0 specially.
610 2011-06-22 Yao Qi <yao@codesourcery.com>
612 * infrun.c (handle_inferior_event): Remove write-only local variable
613 `sw_single_step_trap_p'.
615 2011-06-20 Tom Tromey <tromey@redhat.com>
617 * symtab.c (lookup_language_this): End loop if block is NULL.
619 2011-06-17 Tom Tromey <tromey@redhat.com>
621 * valops.c (value_of_this): Use lookup_language_this.
622 * symtab.h (lookup_language_this): Declare.
623 * symtab.c (lookup_language_this): New function.
624 (lookup_symbol_aux): Use lookup_language_this.
625 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
627 2011-06-17 Tom Tromey <tromey@redhat.com>
629 * value.h (value_of_this): Update.
630 (value_of_local): Remove.
631 * valops.c (value_of_this): Rename from value_of_local. Change
633 * p-exp.y (exp): Update.
634 (variable): Likewise.
635 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
637 2011-06-17 Tom Tromey <tromey@redhat.com>
639 * valops.c (value_of_local): Complain if NAME is NULL.
640 * std-operator.def (OP_OBJC_SELF): Remove.
641 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
642 * objc-exp.y (name_not_typename): Use OP_THIS.
643 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
645 <OP_OBJC_SELF>: Remove.
646 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
648 2011-06-16 Tristan Gingold <gingold@adacore.com>
650 * python/py-events.h (gdb_py_events): Make it extern.
651 * python/py-evtregistry.c (gdb_py_events): Declare.
653 2011-06-16 Hui Zhu <teawater@gmail.com>
655 * remote.c (remote_trace_set_readonly_regions): Add check for
656 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
659 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
661 * arm-linux-tdep.c: Include "auxv.h".
663 (ARM_LINUX_SIZEOF_VFP): Define.
664 (arm_linux_supply_vfp): New function.
665 (arm_linux_collect_vfp): Likewise.
666 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
667 (arm_linux_fpa_regset_sections): New variable.
668 (arm_linux_vfp_regset_sections): Likewise.
669 (arm_linux_core_read_description): New function.
670 (arm_linux_init_abi): Install arm_linux_core_read_description and
671 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
672 appropriate for the architecture.
673 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
674 (tdesc_arm_with_m): Declare.
675 (tdesc_arm_with_iwmmxt): Likewise.
676 (tdesc_arm_with_vfpv2): Likewise.
677 (tdesc_arm_with_vfpv3): Likewise.
678 (tdesc_arm_with_neon): Likewise.
679 * arm-linux-nat.c: Move features/*.c includes ...
680 * arm-tdep.c: ... here.
681 * arm-linux-nat.c (arm_linux_read_description): Move initializing
682 target description data structures ...
683 * arm-tdep.c (_initialize_arm_tdep): ... here.
684 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
685 HWCAP_VFPv3D16): Move definitions ...
686 * arm-linux-tdep.h: ... here.
688 2011-06-15 Hui Zhu <teawater@gmail.com>
690 * remote.c (remote_trace_set_readonly_regions): Add a check for
693 2011-06-14 Tom Tromey <tromey@redhat.com>
695 * coffread.c (coffread_objfile): Rename from current_objfile.
696 * dbxread.c (dbxread_objfile): Rename from current_objfile.
697 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
699 2011-06-14 Tom Tromey <tromey@redhat.com>
701 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
702 (class_symtab): Remove.
703 (jv_dynamics_progspace_key): New global.
704 (jv_per_objfile_free): Reset program space data. Update assert.
706 (get_dynamics_objfile): Use and set program space data.
707 (get_java_class_symtab): Use get_dynamics_objfile.
708 (add_class_symbol): Likewise.
709 (java_link_class_type): Likewise.
710 (java_object_type, jv_clear_object_type, set_java_object_type):
712 (get_java_object_type): Update. Don't cache result.
713 (is_object_type): Don't call set_java_object_type.
714 (_initialize_java_language): Don't set jv_type_objfile_data_key;
715 initialize jv_dynamics_progspace_key.
717 2011-06-14 Tom Tromey <tromey@redhat.com>
719 * symtab.h (current_objfile): Don't declare.
720 * objfiles.h (current_objfile): Don't declare.
721 * objfiles.c (current_objfile): Remove.
722 * mdebugread.c (current_objfile): New file-scope global.
723 * dbxread.c (current_objfile): New file-scope global.
724 * coffread.c (current_objfile): New file-scope global.
726 2011-06-13 Pedro Alves <pedro@codesourcery.com>
728 * top.h (line): Rename to ...
729 (saved_command_line): ... this.
730 (linesize): Rename to ...
731 (saved_command_line_size): ... this.
732 * top.c (line): Rename to ...
733 (saved_command_line): ... this.
734 (linesize): Rename to ...
735 (saved_command_line_size): ... this.
736 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
737 * event-top.c (command_line_handler): Adjust.
738 * main.c (captured_main): Adjust.
740 2011-06-12 Mark Kettenis <kettenis@gnu.org>
742 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
743 get_frame_func instead of get_frame_pc to determine the code
744 address used to construct the frame ID.
745 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
746 (i386_epilogue_frame_this_id): Likewise.
747 (i386_epilogue_frame_prev_register): New function.
748 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
749 (i386_stack_tramp_frame_sniffer): Fix coding style.
750 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
751 (i386_gdbarch_init): Fix comments.
753 2011-06-12 Mark Kettenis <kettenis@gnu.org>
755 * i386-tdep.c (i386_match_insn_block): Use length of the proper
756 instruction when walking back through the instruction stream.
758 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
760 * symtab.c (output_partial_symbol_filename): Exchange the filename and
761 fullname parameters order.
763 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
766 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
768 * psymtab.c (map_symbol_filenames_psymtab)
769 (map_partial_symbol_filenames): Likewise.
770 * psymtab.h: Include symfile.h.
771 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
772 * symfile.h (symbol_filename_ftype): New.
773 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
774 map_symbol_filenames, clarify more the naming in comment.
776 2011-06-07 Doug Evans <dje@google.com>
778 * cc-with-index.sh: Fix typos in comment.
779 Look for ../../gdb, for fullname.exp.
781 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
782 Pedro Alves <pedro@codesourcery.com>
784 * cli/cli-cmds.c (shell_escape): Use waitpid.
785 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
787 2011-06-07 Tristan Gingold <gingold@adacore.com>
789 * xcoffread.c (dwarf2_xcoff_names): New variable.
790 (aix_process_linenos): Add a guard.
791 (xcoff_symfile_finish): Free dwarf2.
792 (xcoff_initial_scan): Add dwarf2 support.
794 2011-06-06 Pedro Alves <pedro@codesourcery.com>
796 * infcall.c (run_inferior_call): Don't mask async. Instead force
797 a synchronous wait, if the target can async.
799 * target.h (struct target_ops): Delete to_async_mask.
800 (target_async_mask): Delete.
801 * target.c (update_current_target): Delete references to to_async_mask.
802 * linux-nat.c (linux_nat_async_mask_value): Delete.
803 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
804 to linux_nat_async_mask_value.
805 (linux_nat_async_mask): Delete.
806 (linux_nat_async, linux_nat_close): Remove references to
807 linux_nat_async_mask_value.
808 * record.c (record_async_mask_value): Delete.
809 (record_async): Remove references to record_async_mask_value.
810 (record_async_mask): Delete.
811 (record_can_async_p, record_is_async_p): Remove references to
812 record_async_mask_value.
813 (init_record_ops, init_record_core_ops): Remove references to
815 * remote.c (remote_async_mask_value): Delete.
816 (init_remote_ops): Remove reference to remote_async_mask.
817 (remote_can_async_p, remote_is_async_p): Remove references to
818 remote_async_mask_value.
819 (remote_async): Remove references to remote_async_mask_value.
820 (remote_async_mask): Delete.
822 * infrun.c (fetch_inferior_event): Don't claim registers changed
823 if the current thread is already not executing.
825 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
827 From Stephen Kitt <steve@sk2.org>
828 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
829 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
831 2011-06-03 Joel Brobecker <brobecker@adacore.com>
833 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
834 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
836 2011-06-03 Tom Tromey <tromey@redhat.com>
838 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
840 * python/py-exitedevent.c (create_exited_event_object): Change
841 type of 'exit_code'. Optionally add exit_code attribute.
842 (emit_exited_event): Change type of 'exit_code'.
843 * python/py-event.h (emit_exited_event): Update.
844 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
845 * infrun.c (handle_inferior_event): Set exit code fields on
847 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
849 * inferior.c (exit_inferior_1): Initialize new fields.
851 2011-06-03 Tom Tromey <tromey@redhat.com>
853 * dwarf2expr.c (get_signed_type): New function.
854 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
856 2011-06-02 Keith Seitz <keiths@redhat.com>
858 * objc-lang.c (find_methods): Increment objfile_csym earlier.
860 2011-06-02 Pedro Alves <pedro@codesourcery.com>
862 * top.h (simplified_command_loop): Delete declaration.
864 2011-06-01 Mike Frysinger <vapier@gentoo.org>
866 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
867 gdb_sysroot to the "len" variable. Append both to "arg_buf".
869 2011-06-01 Yao Qi <yao@codesourcery.com>
871 * objfiles.h (obj_section_addr): Update reference to objfile from
873 (obj_section_endaddr): Likewise.
875 2011-06-01 Daniel Jacobowitz <drow@false.org>
877 * MAINTAINERS: Update my email address and affiliation. Also
878 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
880 2010-05-31 Keith Seitz <keiths@redhat.com>
883 * linespec.c (get_search_block): New function.
884 (find_methods): Add FILE_SYMTATB parameter and use it and
885 get_search_block to pass an appropriate block to
886 lookup_symbol_in_namespace.
887 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
888 Check if *ARGPTR starts with a filename first.
889 If it does, call locate_first_half again to locate the next
890 "first half" of the linespec.
891 Pass FILE_SYMTATB to decode_objc and decode_compound.
892 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
893 (locate_first_half): Stop on the first colon seen.
894 (decode_compound): Add FILE_SYMTAB parameter.
895 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
896 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
897 get_search_block with lookup_symbol.
898 (find_method): Add FILE_SYMTAB parameter and pass it to
900 (decode_objc): Use get_search_block.
902 2010-05-31 Keith Seitz <keiths@redhat.com>
905 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
906 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
907 and CP_ANONYMOUS_NAMESPACE_LEN.
908 (cp_is_anonymous): Likewise.
909 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
910 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
911 * dwarf2read.c (namespace_name): Likewise.
912 (fixup_partial_die): Likewise.
913 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
914 seen in the input, keep it.
916 2011-05-30 Pedro Alves <pedro@codesourcery.com>
918 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
919 * inf-loop.h (inferior_event_handler_wrapper): Delete.
920 * inf-loop.c (inferior_event_handler_wrapper): Delete.
921 (inferior_event_handler): Don't handle INF_QUIT_REQ.
922 * remote.c (_initialize_remote): Register
923 async_remote_interrupt_twice directly as
924 sigint_remote_twice_token event.
926 2011-05-30 Pedro Alves <pedro@codesourcery.com>
928 * target.h (enum inferior_event_type): Delete INF_ERROR.
929 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
931 2011-05-30 Pedro Alves <pedro@codesourcery.com>
933 * interps.c (interp_set): Don't cancel continuations.
935 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
937 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
939 2011-05-30 Pedro Alves <pedro@codesourcery.com>
941 * continuations.h (continuation_ftype): Add `err' parameter.
943 (do_all_continuations, do_all_continuations_thread)
944 (do_all_intermediate_continuations)
945 (do_all_intermediate_continuations_thread)
946 (do_all_inferior_continuations): Add `err' parameter.
947 * continuations.c (do_my_continuations_1, do_my_continuations)
948 (do_all_inferior_continuations, do_all_continuations_ptid)
949 (do_all_continuations_thread_callback)
950 (do_all_continuations_thread, do_all_continuations)
951 (do_all_intermediate_continuations_thread_callback)
952 (do_all_intermediate_continuations_thread)
953 (do_all_intermediate_continuations): Add `err' parameter, and pass
954 it down all the way to the continuations proper.
955 * inf-loop.c (inferior_event_handler): If fetching an inferior
956 event throws an error, don't pop the target, and still call the
957 continuations, but with `err' set. Adjust all other continuation
959 * breakpoint.c (until_break_command_continuation): Add `err'
961 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
962 issue another step if `err' is set.
963 (struct until_next_continuation_args): New.
964 (until_next_continuation): Add `err' parameter. Adjust.
965 (until_next_command): Adjust.
966 (struct finish_command_continuation_args): Add `thread' field.
967 (finish_command_continuation): Add `err' parameter. Handle it.
968 (finish_forward): Adjust.
969 (attach_command_continuation): Add `err' parameter. Handle it.
970 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
971 cancel the continuations.
972 * interps.c (interp_set): Adjust to cancel the continuations.
973 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
974 continuations rather than discarding.
975 (free_thread): Don't clear thread inferior resources here.
976 (delete_thread_1): Do it here instead. And do it before removing
977 the thread from the threads list. Tag the thread as exited before
978 clearing thread inferior resources.
980 2011-05-30 Joel Brobecker <brobecker@adacore.com>
982 * infcall.c (call_function_by_hand): Rephrase error message.
984 2011-05-27 Pedro Alves <pedro@codesourcery.com>
986 * defs.h (struct thread_info, struct inferior): Delete forward
988 * breakpoint.h (struct thread_info): New forward declaration.
989 * observer.sh (struct inferior): New forward declaration.
990 * python/python-internal.h (struct inferior): New forward
993 2011-05-27 Pedro Alves <pedro@codesourcery.com>
995 * defs.h (struct continuation, continuation_ftype)
996 (continuation_free_arg_ftype, add_continuation)
997 (do_all_continuations, do_all_continuations_thread)
998 (discard_all_continuations, discard_all_continuations_thread)
999 (add_intermediate_continuation, do_all_intermediate_continuations)
1000 (do_all_intermediate_continuations_thread)
1001 (discard_all_intermediate_continuations)
1002 (discard_all_intermediate_continuations_thread)
1003 (add_inferior_continuation, do_all_inferior_continuations)
1004 (discard_all_inferior_continuations): Move to ...
1005 * continuations.h: ... this new file.
1006 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1007 infcmd.c, inferior.c, infrun.c, interps.c: Include
1010 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1011 Doug Evans <dje@google.com>
1013 Fix PR 10970, PR 12702.
1014 * linux-nat.c (linux_lwp_is_zombie): New function.
1015 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1016 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1018 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1020 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1022 (add_continuation, add_intermediate_continuation)
1023 (add_inferior_continuation): Use them.
1024 * continuations.c (struct continuation): Use them.
1025 (make_continuation_ftype): Delete.
1026 (make_continuation, add_inferior_continuation, add_continuation)
1027 (add_intermediate_continuation): Use continuation_ftype and
1028 continuation_free_arg_ftype. Rename parameters to shorter names.
1030 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1032 * continuations.c (make_continuation): Make it return void.
1033 (do_my_continuations): Rename to ...
1034 (do_my_continuations_1): ... this. Remove old_chain parameter and
1036 (do_my_continuations): New.
1037 (discard_my_continuations): Rename to ...
1038 (discard_my_continuations_1): ... this. Remove old_chain
1039 parameter and adjust.
1040 (discard_my_continuations): New.
1041 (add_inferior_continuation): Simplify.
1042 (do_all_inferior_continuations): Reimplement on top
1043 do_my_continuations.
1044 (discard_all_inferior_continuations): Simplify.
1045 (add_continuation): Simplify.
1046 (do_all_continuations_ptid): Simplify.
1047 (discard_all_continuations_thread_callback): Simplify.
1048 (add_intermediate_continuation): Simplify.
1049 (discard_all_intermediate_continuations_thread_callback):
1052 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1054 * utils.c (struct continuation, add_continuation)
1055 (add_inferior_continuation)
1056 (do_all_inferior_continuations, discard_all_inferior_continuations)
1057 (restore_thread_cleanup, do_all_continuations_ptid)
1058 (do_all_continuations_thread_callback)
1059 (do_all_continuations_thread, do_all_continuations)
1060 (discard_all_continuations_thread_callback)
1061 (discard_all_continuations_thread, discard_all_continuations)
1062 (add_intermediate_continuation)
1063 (do_all_intermediate_continuations_thread_callback)
1064 (do_all_intermediate_continuations_thread)
1065 (do_all_intermediate_continuations)
1066 (discard_all_intermediate_continuations_thread_callback)
1067 (discard_all_intermediate_continuations_thread)
1068 (discard_all_intermediate_continuations): Move to ...
1069 * continuations.c: ... this new file, and adjust to no longer
1070 implement continuations on top of cleanups.
1071 * Makefile.in (SFILES): Add continuations.c.
1072 (COMMON_OBS): Add continuations.o.
1074 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1076 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1077 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1078 Internal error on invalid values.
1079 * reverse.c: Don't handle EXEC_ERROR.
1080 * mi/mi-main.c: Don't handle EXEC_ERROR.
1082 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1084 * record.c: Include event-loop.h, inf-loop.h.
1085 (record_beneath_to_async): New global.
1086 (tmp_to_async): New global.
1087 (record_async_inferior_event_token): New global.
1088 (record_open_1): Don't error out if async is enabled.
1089 (record_open): Handle to_async. Create an async event source in
1091 (record_close): Delete the async event source.
1092 (record_resumed): New global.
1093 (record_execution_dir): New global.
1094 (record_resume, record_core_resume): Set them. Register the
1095 target on the event loop.
1096 (record_wait): Rename to ...
1097 (record_wait_1): ... this. Add more debug output. Handle
1098 TARGET_WNOHANG, and the target beneath returning
1099 TARGET_WAITKIND_IGNORE.
1100 (record_wait): Reimplement on top of record_wait_1.
1101 (record_async_mask_value): New global.
1102 (record_async, record_async_mask, record_can_async_p)
1103 (record_is_async_p, record_execution_direction): New functions.
1104 (init_record_ops, init_record_core_ops): Install new methods.
1105 * infrun.c (fetch_inferior_event): Temporarily switch the global
1106 execution direction to the direction the target was going.
1107 (execution_direction): Change type to int.
1108 * target.c (default_execution_direction): New function.
1109 (update_current_target): Inherit and de_fault
1110 to_execution_direction.
1111 * target.h (struct target_ops) <to_execution_direction>: New
1113 (target_execution_direction): New macro.
1114 * inferior.h (execution_direction): Change type to int.
1116 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1118 * infcall.c (call_function_by_hand): Don't allow calling functions
1119 in reverse execution mode.
1121 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1123 * infcmd.c (finish_command): Allow async finish in reverse.
1125 2011-05-26 Yao Qi <yao@codesourcery.com>
1127 * gdb_thread_db.h: Delete. Move to ...
1128 * common/gdb_thread_db.h: ... here.
1130 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1132 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1133 function's entry point instead of a manually managed momentary
1134 breakpoint, and only ever issue one proceed call.
1135 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1136 doing a reverse-finish, switch to stepi mode, to do another step.
1137 (insert_step_resume_breakpoint_at_sal): Make public.
1138 (normal_stop): No need to save function value return registers if
1140 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1142 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1144 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1145 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1146 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
1148 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1149 step-resume breakpoints.
1150 (print_it_typical): Handle bp_hp_step_resume.
1151 (bpstat_what): Ditto.
1152 (bptype_string): Ditto.
1153 (print_one_breakpoint_location): Ditto.
1154 (allocate_bp_location): Ditto.
1156 (breakpoint_re_set_one): Ditto.
1157 * infrun.c (handle_inferior_event): Adjust. Split
1158 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1159 BPSTAT_WHAT_HP_STEP_RESUME.
1160 (insert_step_resume_breakpoint_at_sal): Rename to ...
1161 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
1162 parameter. Handle it.
1163 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1164 insert_step_resume_breakpoint_at_sal_1.
1165 (insert_step_resume_breakpoint_at_frame): Rename to ...
1166 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
1167 set a high-priority step-resume breakpoint.
1168 (insert_step_resume_breakpoint_at_frame): Adjust comment.
1169 (insert_step_resume_breakpoint_at_caller): Ditto.
1171 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1173 * breakpoint.c (iterate_over_related_breakpoints): New.
1174 (do_map_delete_breakpoint): New.
1175 (delete_command): Pass do_map_delete_breakpoint to
1176 map_breakpoint_numbers.
1177 (do_disable_breakpoint): New.
1178 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1180 (do_enable_breakpoint): Rename to ...
1181 (enable_breakpoint_disp): ... this.
1182 (enable_breakpoint): Adjust.
1183 (do_enable_breakpoint): New.
1184 (enable_once_breakpoint): Delete.
1185 (do_map_enable_breakpoint): New.
1186 (do_map_enable_once_breakpoint): New.
1187 (enable_once_command, enable_delete_command)
1188 (delete_trace_command): Iterate over the breakpoint's related
1191 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1193 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1194 for ALPHA_ZERO_REGNUM.
1195 (alpha_supply_int_regs): Explicitly supply zero as the value for
1196 ALPHA_ZERO_REGNUM in the register cache.
1197 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1199 2011-05-26 Yao Qi <yao@codesourcery.com>
1201 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1203 2011-05-26 Tristan Gingold <gingold@adacore.com>
1205 * symfile.h (struct dwarf2_section_names): New type.
1206 (struct dwarf2_debug_sections): New type.
1207 (dwarf2_has_info): Add parameter.
1208 * dwarf2read.c (dwarf2_elf_names): New variable.
1209 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1210 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1211 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1212 (dwarf2_has_info): Add names parameter. Pass names
1213 to dwarf2_locate_sections.
1214 (section_is_p): Rewrite using the names parameter.
1215 (dwarf2_locate_sections): Use section names from the names parameter.
1216 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1217 * elfread.c (read_psyms): Ditto.
1218 * machoread.c (macho_symfile_read): Ditto.
1220 2011-05-25 Andreas Schwab <schwab@redhat.com>
1223 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1225 2011-05-24 Keith Seitz <keiths@redhat.com>
1228 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1229 (decode_compound): Unconditionally call keep_name_info.
1231 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1233 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1234 scope, clear its command list.
1235 (map_breakpoint_numbers): Don't walk the related breakpoints list
1238 2011-05-24 Tom Tromey <tromey@redhat.com>
1240 * MAINTAINERS: Move Jim Blandy to past maintainers.
1242 2011-05-24 Tristan Gingold <gingold@adacore.com>
1244 * symfile.h (enum dwarf2_section_enum): New type.
1245 (dwarf2_get_section_info): New prototype.
1246 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1247 section_name by sect. Use a switch to select the info.
1248 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1249 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1251 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1253 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1254 shared library event breakpoint if there's no execution.
1256 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
1258 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1259 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1261 2011-05-23 Tom Tromey <tromey@redhat.com>
1263 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1266 2011-05-23 Doug Evans <dje@google.com>
1268 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1269 entry for RuntimeError to doc string.
1271 2011-05-23 Jerome Guitton <guitton@adacore.com>
1273 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1274 sequence for probing loops.
1276 2011-05-23 Pedro Alves <pedro@codesourcery.com>
1278 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1281 2011-05-21 Mark Kettenis <kettenis@gnu.org>
1283 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1284 zero as the value for %g0 in the register cache.
1285 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1286 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1288 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1290 * infrun.c (proceed): Set previous_inferior_ptid here.
1291 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1292 inferior_ptid, not null_ptid.
1293 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1294 (fetch_inferior_event): Nor here.
1296 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1298 * inf-loop.c (inferior_event_handler): Only output a message if
1301 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
1303 * MAINTAINERS: Update my e-mail address.
1305 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1307 * infrun.c (proceed): Switch the inferior event loop to
1308 INF_EXEC_COMPLETE if the target refused to resume from a
1311 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1313 * infcmd.c: Include "inf-loop.h".
1314 (step_once): When stepping into an inline subroutine, pretend the
1315 target has run. If the target can async, switch the inferior
1316 event loop to INF_EXEC_COMPLETE.
1317 * inferior.h (user_visible_resume_ptid): Declare.
1318 * infrun.c (user_visible_resume_ptid): New function, factored out
1321 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1322 that the current thread is running. Merge async and sync
1325 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1327 * infcmd.c (step_1): Simplify synchronous case.
1329 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1331 * tracepoint.c: Include exceptions.h.
1332 (TFILE_PID): Move higher in file.
1333 (tfile_open): Delay pushing the tfile target until we're assured
1334 the tfile header is present in the file. Wrap reading the initial
1335 newline-terminated lines in TRY_CATCH. Pop the target if the
1336 initial setup failed. Add the tfile's thread immediately
1337 aftwards, before any non-essential setup. Don't skip
1338 post_create_inferior if there are no traceframes present in the
1340 (tfile_close): Remove redundant check for null before xfree call.
1341 (tfile_thread_alive): New function.
1342 (init_tfile_ops): Register it as to_thread_alive callback.
1344 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1346 * tracepoint.c (tfile_open): Delete #if 0'd code.
1348 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1350 Fix -readnow for -gdwarf-4 unused type units.
1351 * dwarf2read.c (struct signatured_type): Remove the field offset.
1352 (create_signatured_type_table_from_index): Remove its initialization.
1353 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1354 instead. Add a complaint call.
1355 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1356 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1357 (lookup_signatured_type_at_offset, read_signatured_type)
1358 (write_one_signatured_type): Update the field for per_cu.
1360 2011-05-19 Tom Tromey <tromey@redhat.com>
1362 * python/py-inferior.c (python_inferior_exit): Use
1364 (python_on_resume): Likewise.
1366 2011-05-19 Matt Rice <ratmice@gmail.com>
1368 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1370 2011-05-19 Hui Zhu <teawater@gmail.com>
1372 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1374 2011-05-19 Hui Zhu <teawater@gmail.com>
1376 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1378 2011-05-18 Tom Tromey <tromey@redhat.com>
1380 * dwarf2read.c (dwarf2_add_field): Constify.
1381 * value.c (value_static_field): Constify.
1382 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1384 * ax-gdb.c (gen_static_field): Constify
1386 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1388 * linux-nat.c (kill_callback): Use SIGKILL first.
1390 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1392 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1394 2011-05-18 Tom Tromey <tromey@redhat.com>
1396 * value.c (value_fn_field): Constify.
1397 * symtab.c (gdb_mangle_name): Constify.
1398 * stabsread.c (update_method_name_from_physname): Make 'physname'
1400 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1401 const. Use explicit fputc_filtered loop.
1402 (pascal_type_print_base): Constify.
1403 * p-lang.h (pascal_type_print_method_args): Update.
1404 * linespec.c (add_matching_methods): Constify.
1405 (add_constructors): Likewise.
1406 * jv-typeprint.c (java_type_print_base): Constify.
1407 * gdbtypes.h (struct cplus_struct_type)
1408 <fn_fieldlist.fn_field.physname>: Now const.
1409 * dwarf2read.c (compute_delayed_physnames): Constify.
1410 (dwarf2_add_member_fn): Likewise.
1411 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1413 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1415 * infrun.c (resume): Mention which is the current thread, and its
1416 current PC in debug output.
1417 (prepare_to_proceed): Mention the thread switching in debug
1420 2011-05-18 Tom Tromey <tromey@redhat.com>
1422 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1423 path check. Use xmalloc and cleanups.
1424 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1426 2011-05-17 Tom Tromey <tromey@redhat.com>
1428 * cp-valprint.c (cp_print_value_fields): Catch errors from
1431 2011-05-17 Tom Tromey <tromey@redhat.com>
1433 * dwarf2read.c (dwarf2_get_die_type): Call
1434 get_die_type_at_offset.
1435 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1436 get_base_type function.
1438 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1440 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1443 2011-05-16 Doug Evans <dje@google.com>
1445 * python/py-auto-load.c (source_section_scripts): Mention objfile
1448 2011-05-15 Doug Evans <dje@google.com>
1450 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1451 (try_thread_db_load_from_pdir): Call it. If unable to find
1452 libthread_db in directory of libpthread, see if we're looking at
1453 the separate-debug-info copy.
1455 * python/py-autoload.c (print_script): Print "Missing" instead of
1456 "No" for missing scripts.
1457 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1459 2011-05-13 Doug Evans <dje@google.com>
1461 * ui-file.c (stdio_file_write_async_safe): Add comment.
1463 2011-05-14 Hui Zhu <teawater@gmail.com>
1465 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1467 2011-05-13 Doug Evans <dje@google.com>
1469 Support $pdir and $sdir in libthread-db-search-path.
1470 * NEWS: Mention $sdir,$pdir.
1471 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1472 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1473 (try_thread_db_load_from_sdir): New function.
1474 (try_thread_db_load_from_dir): New function.
1475 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1476 system directories if search of libthread-db-search-path fails,
1477 that is now done via $sdir.
1478 (has_libpthread): New function.
1479 (thread_db_load): Remove search for libthread_db in directory of
1480 libpthread, that is now done via $pdir.
1482 * NEWS: Mention "info auto-load-scripts".
1483 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1484 script_not_found_warning_printed.
1485 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1486 all callers updated. Initialize script_not_found_warning_printed.
1487 (get_auto_load_pspace_data_for_loading): New function.
1488 (maybe_add_script): New function.
1489 (source_section_scripts): Simplify. Only print one warning regardless
1490 of the number of auto-load scripts not found.
1491 (clear_section_scripts): Clear script_not_found_warning_printed.
1492 (auto_load_objfile_script): Record script in hash table.
1493 (count_matching_scripts): New function.
1494 (maybe_print_script): Renamed from maybe_print_section_script, all
1495 callers updated. Rewrite to use ui_out_*.
1496 (info_auto_load_scripts): Renamed from
1497 maintenance_print_section_scripts, all callers updated.
1498 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1499 renamed as "info auto-load-scripts".
1501 2011-05-13 Tom Tromey <tromey@redhat.com>
1503 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1504 (read_sleb128): Likewise.
1506 2011-05-13 Tom Tromey <tromey@redhat.com>
1508 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1511 2011-05-13 Doug Evans <dje@google.com>
1513 * linux-nat.c (debug_linux_nat_async): Delete.
1514 Replace all references to use debug_linux_nat instead.
1515 (show_debug_linux_nat_async): Delete.
1516 (sigchld_handler): Call ui_file_write_async_safe instead of
1518 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1519 * ui-file.c (struct ui_file): New member to_write_async_safe.
1520 (null_file_write_async_safe): New function.
1521 (ui_file_write_async_safe): New function.
1522 (set_ui_file_write_async_safe): New function.
1523 (ui_file_new): Initialize to_write_async_safe.
1524 (stdio_file_write_async_safe): New function.
1525 (struct stdio_file): New member fd.
1526 (stdio_file_new): Initialize to_write_async_safe, fd.
1527 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1529 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1530 (set_ui_file_write_async_safe): Declare.
1531 (ui_file_write_async_safe): Declare.
1533 2011-05-13 Tom Tromey <tromey@redhat.com>
1535 * utils.c (do_value_free): New function.
1536 (make_cleanup_value_free): Likewise.
1537 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1539 (dwarf2_loc_desc_needs_frame): Call
1540 make_cleanup_value_free_to_mark.
1541 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1542 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1544 (new_dwarf_expr_context): Don't call value_mark.
1545 * dwarf2-frame.c (execute_stack_op): Call
1546 make_cleanup_value_free_to_mark.
1547 * defs.h (make_cleanup_value_free): Declare.
1549 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1551 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1552 prepare_execute_command.
1553 * top.c (prepare_execute_command): Return cleanup.
1554 (execute_command): Use cleanup from prepare_execute_command.
1555 * top.h (prepare_execute_command): Change prototype to return
1557 * defs.h (struct value): Add opaque declaration.
1558 (make_cleanup_value_free_to_mark): Add prototype.
1559 * utils.c (do_value_free_to_mark): New function.
1560 (make_cleanup_value_free_to_mark): Likewise.
1562 2011-05-12 Tom Tromey <tromey@redhat.com>
1564 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1565 cast left-hand-side to unsigned.
1567 2011-05-12 Tom Tromey <tromey@redhat.com>
1570 * value.h (value_from_contents): Declare.
1571 * value.c (value_from_contents): New function.
1572 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1573 (dwarf2_get_die_type): New function.
1574 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1575 (allocate_piece_closure): Acquire reference to values.
1576 (read_pieced_value): Update for value-based expressions.
1577 (write_pieced_value): Likewise.
1578 (free_pieced_value_closure): Call value_free as needed.
1579 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1580 Update for value-based expressions.
1581 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1582 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1583 <get_base_type>: New field.
1584 (struct dwarf_expr_piece) <v.value>: Change type.
1585 <v.regno>: New field.
1586 (struct dwarf_expr_context) <mark>: New field.
1587 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1588 (dwarf_expr_pop, dwarf_expr_push): Remove.
1589 (dwarf_expr_push_address): Declare.
1590 * dwarf2expr.c (dwarf_arch_cookie): New global.
1591 (struct dwarf_gdbarch_types): New.
1592 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1594 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1596 (dwarf_expr_push_address): New function.
1597 (dwarf_expr_pop): Now static.
1598 (dwarf_expr_fetch): Change return type.
1599 (dwarf_require_integral): New function.
1600 (dwarf_expr_fetch): Simplify.
1601 (add_piece): Update.
1602 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1604 (execute_stack_op) <sign_ext>: Remove.
1605 Use values for DWARF stack.
1606 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1607 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1609 (_initialize_dwarf2expr): New function.
1610 (add_piece): Update.
1611 (new_dwarf_expr_context): Set new field.
1612 (free_dwarf_expr_context): Call value_free_to_mark.
1613 * dwarf2-frame.c (no_base_type): New function.
1614 (execute_stack_op): Set get_base_type field. Update.
1616 2011-05-12 Tom Tromey <tromey@redhat.com>
1618 * dwarf2read.c (read_common_block): Fix formatting.
1620 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1622 * breakpoint.c (disable_breakpoint): Disable all locations
1623 associated with a tracepoint on target if a trace experiment is
1625 (disable_command): Disable a specific tracepoint location on target if
1626 a trace experiment is running.
1627 (do_enable_breakpoint): Enable all locations associated with a
1628 tracepoint on target if a trace experiment is running.
1629 (enable_command) Enable a specific tracepoint location on target if a
1630 trace experiment is running.
1631 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1632 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1633 to_disable_tracepoint.
1634 * target.h: Add declaration of struct bp_location.
1635 (struct target_ops): Add new functions
1636 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1637 to_disable_tracepoint to target operations.
1638 (target_supports_enable_disable_tracepoint): New macro.
1639 (target_enable_tracepoint): New macro.
1640 (target_disable_tracepoint): New macro.
1641 * remote.c (struct remote_state): Add new field.
1642 (remote_enable_disable_tracepoint_feature): New.
1643 (remote_protocol_features): Add new entry.
1644 (remote_supports_enable_disable_tracepoint): New.
1645 (remote_enable_tracepoint): New.
1646 (remote_disable_tracepoint): New.
1647 (init_remote_ops): Add remote_enable_tracepoint,
1648 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1649 to remote operations.
1650 * tracepoint.c (start_tracing): Allow tracing to start without any
1651 tracepoints enabled with just a warning if they can be re-enabled
1653 * NEWS: Add news item for the new behaviour of the enable and disable
1654 GDB commands when applied to tracepoints.
1655 Add news items for the new remote packets QTEnable and QTDisable.
1657 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1659 * config.in: Regenerate.
1660 * configure: Regenerate.
1661 * configure.ac <--with-system-readline> (for readline_echoing_p):
1663 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1664 (tui_old_rl_echoing_p): ... here.
1665 (tui_setup_io): Rename extern declaration readline_echoing_p to
1666 _rl_echoing_p. Adjust assignments for the both renames.
1668 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1670 * symtab.c (lookup_symtab): Run cleanup before returning.
1672 2011-05-11 Tom Tromey <tromey@redhat.com>
1674 * dwarf2read.c (handle_data_member_location): New function.
1675 (dwarf2_add_field): Use it.
1676 (read_common_block): Likewise.
1678 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1680 Make addrs->SECTINDEX always defined.
1681 * symfile.c (relative_addr_info_to_section_offsets): Check for
1682 SECTINDEX -1, not for zero ADDR.
1683 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1684 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1685 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1688 2011-05-10 Doug Evans <dje@google.com>
1690 * linux-thread-db.c: Whitespace cleanup.
1691 (try_thread_db_load_1): Fix comment.
1693 * linux-thread-db.c (set_libthread_db_search_path): New function.
1694 (_initialize_thread_db): Add setter for libthread-db-search-path.
1696 2011-05-09 Doug Evans <dje@google.com>
1698 * NEWS: Mention --with-iconv-bin.
1699 * configure.ac: New option --with-iconv-bin.
1700 * configure: Regenerate.
1701 * config.in: Regenerate.
1702 * defs.h (relocate_gdb_directory): Declare.
1703 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1704 removed progname parameter, and exported. All callers updated.
1705 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1707 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1708 adding missing call to restore_child_signals_mask.
1710 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1712 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1714 * infrun.c (proceed, start_remote): Adjust.
1715 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1716 and adjust to not handle it.
1717 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1718 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1719 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1720 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1721 * windows-nat.c (do_initial_windows_stuff): Adjust.
1722 * infcmd.c (attach_command): Adjust.
1723 (notice_new_inferior): Adjust.
1725 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1727 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1728 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1729 * spu-tdep.c (op_selb): Use correct value.
1731 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1733 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1734 "parent" parameter to symbol_file_add_from_bfd call.
1736 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1737 Thiago Jung Bauermann <bauerman@br.ibm.com>
1739 Implement support for PowerPC BookE masked watchpoints.
1740 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1742 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1743 method. Initialize to NULL in all existing breakpoint_ops instances.
1744 (struct breakpoint) <hw_wp_mask>: New field.
1745 * breakpoint.c (is_masked_watchpoint): Add prototype.
1746 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1747 breakpoint's breakpoint_ops.works_in_software_mode if available.
1748 (watchpoints_triggered): Handle the case of a hardware masked
1750 (watchpoint_check): Likewise.
1751 (works_in_software_mode_watchpoint): New function.
1752 (insert_masked_watchpoint, remove_masked_watchpoint)
1753 (resources_needed_masked_watchpoint)
1754 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1755 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1756 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1758 (masked_watchpoint_breakpoint_ops): New structure.
1759 (watch_command_1): Check for the existence of the `mask' parameter.
1760 Set b->ops according to the type of hardware watchpoint being created.
1761 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1762 (ppc_linux_remove_mask_watchpoint)
1763 (ppc_linux_masked_watch_num_registers): New functions.
1764 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1765 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1766 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1767 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1768 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1769 (target_masked_watch_num_registers): New functions.
1770 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1771 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1773 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1774 (target_masked_watch_num_registers): Add prototypes.
1776 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1779 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1780 (producer_is_gcc_ge_4_0): New function.
1781 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1782 symtab->language code.
1783 (var_decode_location): Set cu->has_loclist.
1784 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1785 skip. Intialize force_skip from locations_valid. Move the prologue
1786 skipping code into two passes.
1787 * symtab.h (struct symtab): Make the primary field a bitfield. New
1788 field locations_valid.
1790 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1792 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1793 (classify_inner_name): Call cp_lookup_nested_type with
1795 * cp-namespace.c (cp_lookup_nested_type): New variable
1796 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1797 type_name_no_tag_or_error with saved_parent_type.
1798 * dwarf2read.c (load_partial_dies): Read in any children of
1799 DW_TAG_typedef with complaint in such case.
1800 * gdbtypes.c (type_name_no_tag_or_error): New function.
1801 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1802 * valops.c (destructor_name_p): New comment for parameter type. Remove
1803 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1804 * value.h (destructor_name_p): Remove type const.
1806 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1808 * symtab.c (compare_symbol_name): New function.
1809 (completion_list_add_name, expand_partial_symbol_name): Call it,
1810 remove the variable ncmp.
1811 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1814 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1816 Demote to sw watchpoint only in update_watchpoint.
1817 * breakpoint.c (update_watchpoint): Change between software and
1818 hardware watchpoint for all kinds of watchpoints, not just
1819 read/write ones. Determine b->exact value here instead of
1820 in watch_command_1. Error out if there are not enough resources
1821 for a read or access hardware watchpoint.
1822 (watch_command_1): Remove logic of checking whether there are
1823 enough resources available, since update_watchpoint will do that
1824 work now. Don't set b->exact here. Catch exceptions thrown by
1825 update_watchpoint and delete the watchpoint.
1826 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1827 Use target_exact_watchpoints instead.
1828 (delete_breakpoint): Notify observers only if deleted watchpoint
1829 has a breakpoint number assigned to it.
1831 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
1833 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1835 2011-05-05 Jerome Guitton <guitton@adacore.com>
1837 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1839 (i386_stack_tramp_frame_unwind): New static global.
1840 (i386_match_pattern): New function, extracted from i386_match_insn.
1841 (i386_match_insn): Use i386_match_pattern.
1842 (i386_match_insn_block): New function.
1843 (i386_tramp_chain_in_reg_insns)
1844 (i386_tramp_chain_on_stack_insns): New static variables.
1845 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1848 2011-05-04 Joseph Myers <joseph@codesourcery.com>
1850 * configure.host (xscale*): Don't handle target.
1851 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1854 2011-05-04 Yao Qi <yao@codesourcery.com>
1856 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1858 2011-05-03 Joel Brobecker <brobecker@adacore.com>
1861 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
1862 | * elfread.c (elf_symtab_read): Stop memory leak.
1864 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1866 * nto-tdep.c (nto_target): Replace deprecated call to
1867 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1869 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1871 Fix false GCC warning.
1872 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1874 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1876 * breakpoint.c (update_watchpoint): Move code to change
1877 the enable state of breakpoint from here ...
1878 (do_enable_breakpoint): ... to here.
1880 2011-04-26 Andrew Gontarek <andrewg@cray.com>
1882 * valprint.c (val_print_array_elements): Fixed poor performance
1883 of printing very large arrays with repeat_count_threshold set
1884 to unlimited. New comment.
1886 2011-04-29 Tom Tromey <tromey@redhat.com>
1888 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
1889 (mi_parse): Likewise.
1890 * breakpoint.c (break_range_command): Use sizeof char*, not
1892 (create_breakpoint): Likewise.
1893 (parse_breakpoint_sals): Likewise.
1895 2011-04-29 Pedro Alves <pedro@codesourcery.com>
1897 * linux-nat.c (linux_child_remove_fork_catchpoint)
1898 (linux_child_remove_vfork_catchpoint)
1899 (linux_child_remove_exec_catchpoint): New functions.
1900 (linux_target_install_ops): Install them.
1902 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
1906 * varobj.c (install_default_visualizer): Do not install a
1907 visualizer if the varobj is CPLUS_FAKE_CHILD.
1908 (construct_visualizer): Likewise.
1910 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1912 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
1913 case insensitive comparison.
1915 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
1917 * infrun.c (proceed): Revert previous change.
1918 (resume): Instead, handle the case of signal delivery while stepping
1919 off a breakpoint location here, and only if software single-stepping
1920 is used. Handle nested signals.
1922 2011-04-28 Yao Qi <yao@codesourcery.com>
1924 * arm-tdep.c (copy_unmodified): Rename to ...
1925 (arm_copy_unmodified): .. this. New.
1926 (copy_preload): Move common part to ...
1927 (install_preload): .. this. New.
1928 (arm_copy_preload): New.
1929 (copy_preload_reg): Move common part to ...
1930 (install_preload_reg): ... this. New.
1931 (arm_copy_preload_reg): New.
1932 (copy_b_bl_blx): Move common part to ...
1933 (install_b_bl_blx): .. this. New.
1934 (arm_copy_b_bl_blx): New.
1935 (copy_bx_blx_reg): Move common part to ...
1936 (install_bx_blx_reg): ... this. New.
1937 (arm_copy_bx_blx_reg): New.
1938 (copy_alu_reg): Move common part to ...
1939 (install_alu_reg): ... this. New.
1940 (arm_copy_alu_reg): New.
1941 (copy_alu_shifted_reg): Move common part to ...
1942 (install_alu_shifted_reg): ... this. New.
1943 (copy_ldr_str_ldrb_strb): Move common part to ...
1944 (install_ldr_str_ldrb_strb): ... this. New.
1945 (arm_copy_ldr_str_ldrb_strb): New.
1946 (copy_copro_load_store): Move some common part to ...
1947 (install_copy_copro_load_store): ... this. New.
1948 (arm_copy_copro_load_store): New.
1950 (arm_copy_svc): Renamed from copy_svc.
1951 (copy_undef): Delete.
1952 (arm_copy_undef): Renamed from copy_undef.
1953 (decode_ext_reg_ld_st): Delete.
1954 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1955 (decode_svc_copro): Delete.
1956 (arm_decode_svc_copro): Renamed from decode_svc_copro.
1957 (copy_copro_load_store, copy_alu_imm): update callers.
1958 (copy_extra_ld_st, copy_block_xfer): Likewise.
1959 (decode_misc_memhint_neon, decode_unconditional): Likewise.
1960 (decode_miscellaneous, decode_dp_misc): Likewise.
1961 (decode_ld_st_word_ubyte, decode_media): Likewise.
1962 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
1963 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
1964 (decode_unconditional, decode_miscellaneous): Likewise.
1965 (decode_media, decode_b_bl_ldmstm): Likewise.
1966 (arm_process_displaced_insn): Likewise..
1967 (decode_misc_memhint_neon): Delete.
1968 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
1969 (decode_miscellaneous): Delete.
1970 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
1971 (decode_dp_misc): Delete.
1972 (arm_decode_dp_misc): Renamed from decode_dp_misc.
1973 (decode_ld_st_word_ubyte): Delete.
1974 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
1975 (decode_media): Delete.
1976 (arm_decode_media): Renamed from decode_media.
1977 (decode_b_bl_ldmstm): Delete.
1978 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
1979 (decode_ext_reg_ld_st): Delete.
1980 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1981 (decode_unconditional): Delete.
1982 (arm_decode_unconditional): Renamed from decode_unconditional.
1984 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1986 Case insensitive lookups implementation.
1987 * dwarf2read.c: Include ctype.h.
1988 (struct mapped_index): New field version.
1989 (mapped_index_string_hash): New parameter index_version. New comment
1990 for it. Call tolower appropriately.
1991 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
1992 Choose the right index version for mapped_index_string_hash.
1993 (dwarf2_read_index): Support also the index version 5. Initialize the
1994 new struct mapped_index field version.
1995 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
1996 (find_slot): Explain the version needs. Pass INT_MAX for the new
1998 (write_psymtabs_to_index): Produce version 5.
1999 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2000 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2001 * psymtab.c (lookup_partial_symbol): Find the
2002 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2004 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2006 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2007 (completion_list_add_name): New variable ncmp, initialize it, use it.
2008 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2009 * utils.c (strcmp_iw): Support case_sensitive_off.
2010 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2011 New function comment part. New variables saved_string1,
2012 saved_string2 and case_pass. Add a proper second pass.
2014 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2016 Replace re_comp/re_exec by regcomp/regexec.
2017 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2018 (search_symbols_name_matches): Use them, use regexec.
2019 (search_symbols): New variable retval_chain, adjust the use of
2020 old_chain against it. Replace re_comp by regcomp. Use the new struct
2021 search_symbols_data fields, use regexec instead of re_exec.
2023 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2025 Format the code for the next patch.
2026 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2027 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2028 New variables c1 and c2.
2030 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2032 * infrun.c (proceed): Do not single-step into signal delivery
2033 when stepping off a breakpoint location.
2034 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2035 (insert_step_resume_breakpoint_at_caller): Likewise.
2036 (insert_step_resume_breakpoint_at_sal): Likewise.
2037 (insert_longjmp_resume_breakpoint): Likewise.
2039 2011-04-27 Yao Qi <yao@codesourcery.com>
2041 * common/linux-ptrace.h: Remove include <sys/wait.h>.
2043 2011-04-27 Joel Brobecker <brobecker@adacore.com>
2045 * procfs.c (procfs_pass_signals): Fix advance declaration.
2047 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2049 * target.h (struct target_ops): Remove to_notice_signals;
2050 add to_pass_signals.
2051 (target_notice_signals): Remove.
2052 (target_pass_signals): Add prototype.
2053 * target.c (update_current_target): Remove to_notice_signals;
2054 mention to_pass_signals.
2055 (target_pass_signals): New function.
2056 (debug_to_notice_signals): Remove.
2057 (setup_target_debug): Do not install debug_to_notice_signals.
2059 * infrun.c (signal_pass): New global.
2060 (resume): Call target_pass_signals.
2061 (handle_inferior_event): Report all signals while stepping over
2062 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
2063 are re-inserted when stepping over a signal handler.
2064 (signal_cache_update): New function.
2065 (signal_stop_update): Call it.
2066 (signal_print_update): Likewise.
2067 (signal_pass_update): Likewise.
2068 (handle_command): Call signal_cache_update and target_pass_signals
2069 instead of target_notice_signals.
2070 (_initialize_infrun): Initialize signal_pass.
2072 * linux-nat.c (pass_mask): New global.
2073 (linux_nat_pass_signals): New function.
2074 (linux_nat_create_inferior): Report all signals initially.
2075 (linux_nat_attach): Likewise.
2076 (linux_nat_resume): Use pass_mask to decide whether to directly
2077 handle an inferior signal.
2078 (linux_nat_wait_1): Likewise.
2079 (linux_nat_add_target): Install to_pass_signals callback.
2081 * nto-procfs.c (notice_signals): Remove.
2082 (procfs_resume): Do not call notice_signals.
2083 (procfs_notice_signals): Remove.
2084 (procfs_pass_signals): New function.
2085 (init_procfs_ops): Install to_pass_signals callback instead of
2086 to_notice_signals callback.
2087 (_initialize_procfs): Report all signals initially.
2089 * procfs.c (procfs_notice_signals): Remove.
2090 (procfs_pass_signals): New function.
2091 (procfs_target): Install to_pass_signals callback instead of
2092 to_notice_signals callback.
2093 (register_gdb_signals): Remove.
2094 (procfs_debug_inferior): Report all signals initially.
2095 (procfs_init_inferior): Remove redundant register_gdb_signals call.
2097 * remote.c (remote_pass_signals): Add numsigs and pass_signals
2098 parameters; use them instead of calling signal_..._state routines.
2099 (remote_notice_signals): Remove.
2100 (remote_start_remote): Report all signals initially.
2101 (remote_resume): Do not call remote_pass_signals.
2102 (_initialize_remote): Install to_pass_signals callback instead of
2103 to_notice_signals callback.
2105 2011-04-27 Pedro Alves <pedro@codesourcery.com>
2107 * breakpoint.c (user_settable_breakpoint): Delete.
2108 (user_breakpoint_p): Remove check on user_settable_breakpoint.
2109 (delete_command): Check user_breakpoint_p instead of looking at
2110 the breakpoint's type.
2111 (disable_command): Ditto.
2112 (enable_command): Ditto.
2113 (delete_trace_command): Use user_breakpoint_p instead of looking
2114 at the breakpoint number directly. When checking if there are
2115 user visible tracepoints, in order to know whether to ask the user
2116 for confirmation, check whether the breakpoint is actually a
2119 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2121 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2124 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2126 MI breakpoint notifications.
2128 * annotate.c (breakpoint_changed): Adjust parameter type.
2129 * breakpoint.c (set_breakpoint_condition): Adjust to change
2130 in breakpoint_modified type.
2131 (breakpoint_set_commands): Likewise.
2132 (do_map_commands_command): Likewise.
2133 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2134 changed after bumping hit count.
2135 (bpstat_stop_status): Likewise.
2136 (print_one_breakpoint_location): Don't wrap in tuple here.
2137 (print_one_breakpoint): Always print individual locations.
2138 For locations, use unnamed tuple.
2139 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2141 (create_catchpoint, create_syscall_event_catchpoint): Call
2142 breakpoint_created obsever.
2143 (mention): Don't call breakpoint_created observer.
2144 (create_breakpoint_sal): Call breakpoint_created observer.
2145 (create_breakpoint, watch_command_1): Likewise.
2146 (create_ada_exception_breakpoint): Likewise.
2147 (delete_breakpoint): Call breakpoint_deleted breakpoint.
2148 (locations_are_equal): New.
2149 (update_breakpoint_locations): If locations were changed, notify.
2150 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2151 Call breakpoint_modified observer.
2153 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2154 (mi_cmd_break_insert): Don't set observers for modify and delete.
2155 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2156 (mi_breakpoint_created, mi_breakpoint_deleted)
2157 (mi_breakpoint_modified): New.
2158 (mi_interpreter_init): Hook the above.
2159 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2160 while -break-* commands are executing.
2161 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2162 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2164 (mi_ui_out_impl): Hook in mi_redirect.
2165 (mi_field_skip): True to the name, skip the field, don't output
2166 a field with an empty value.
2168 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2169 (gdbpy_breakpoint_deleted): Adjust.
2170 * tui/tui-hooks.c (tui_event_create_breakpoint)
2171 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2173 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
2175 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2176 (procfs_remove_hw_watchpoint): Likewise.
2178 2011-04-26 Michael Walle <michael@walle.cc>
2180 * remote.c (remote_start_remote): Ack packet after sending the
2183 2011-04-26 Yao Qi <yao@codesourcery.com>
2185 * linux-nat.c: Move common macros to ...
2186 Include linux-ptrace.h.
2187 * common/linux-ptrace.h: ... here. New.
2189 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2191 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2192 !objfile_has_partial_symbols. New comment.
2193 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2194 SYM_READ_PSYMBOLS is not present. Extend the comment.
2195 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2197 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2199 * defs.h (ENUM_BITFIELD): Remove.
2201 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2202 Eli Zaretskii <eliz@gnu.org>
2204 * NEWS: Document the new gdbserver --once option.
2206 2011-04-21 Jie Zhang <jzhang918@gmail.com>
2208 * MAINTAINERS: Update my email address.
2210 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2212 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2213 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2214 function call if __STDC_ISO_10646__ macro is defined.
2215 (intermediate_encoding): New prototype.
2216 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2217 to generate compile time error for unsupported gdb_wchar_t size.
2218 (ENDIAN_SUFFIX): New macro.
2219 (intermediate_encoding): New function.
2221 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2223 * ada-lang.c (struct add_partial_datum): Update the comment for
2224 expand_partial_symbol_name.
2225 (ada_add_partial_symbol_completions): Rename to ...
2226 (ada_expand_partial_symbol_name): ... here, change return type, update
2227 function comment, call symbol_completion_match instead of
2228 symbol_completion_add.
2229 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2230 and ada_expand_partial_symbol_name.
2231 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2233 (dw2_map_symbol_names): Remove.
2234 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2235 * psymtab.c (map_symbol_names_psymtab): Remove.
2236 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2237 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2239 (psym_functions): Unlist map_symbol_names_psymtab.
2240 (map_partial_symbol_names): Rename to ...
2241 (expand_partial_symbol_names): ... here, change the FUN type, call
2242 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2243 * psymtab.h (map_partial_symbol_names): Rename to ...
2244 (expand_partial_symbol_names): ... here, change the FUN type.
2245 * symfile.h (struct quick_symbol_functions): Update the description of
2246 expand_symtabs_matching. Remove map_symbol_names.
2247 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2248 (struct add_name_data): Update the comment for
2249 expand_partial_symbol_name.
2250 (add_partial_symbol_name): Rename to ...
2251 (expand_partial_symbol_name): ... here. Replace
2252 completion_list_add_name call by strncmp.
2253 (default_make_symbol_completion_list_break_on): Use now
2254 expand_partial_symbol_names and expand_partial_symbol_name.
2255 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2257 2011-04-20 Tom Tromey <tromey@redhat.com>
2259 * dwarf2read.c (save_gdb_index_command): Replace format
2260 documentation with a pointer to the manual.
2262 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2264 * regcache.c: Include remote.h.
2265 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2266 (regcache_dump): Handle regcache_dump_remote.
2267 (maintenance_print_remote_registers): New function.
2268 (_initialize_regcache): Install "maint print remote-registers"
2270 * remote.c (map_regcache_remote_table): New function, factored out
2272 (init_remote_state): ... here.
2273 (remote_register_number_and_offset): New.
2274 * remote.h (remote_register_number_and_offset): Declare.
2276 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2278 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2279 null_ptid, assume and allow a NULL address space, instead of
2280 asking the target for the ptid's address space.
2281 * infrun.c (ptid_is_pid): Remove assertion.
2283 2011-04-19 Tom Tromey <tromey@redhat.com>
2285 * windows-tdep.c (windows_xfer_shared_library):
2286 * windows-nat.c (get_module_name, windows_make_so):
2287 * v850-tdep.c (v850_handle_pushm):
2288 * utils.c (null_cleanup, gdb_realpath):
2289 * ui-out.c (get_next_header):
2290 * tracepoint.c (clear_traceframe_info):
2291 * symtab.c (lookup_symtab):
2292 * serial.h (struct serial_ops):
2293 * mipsread.c (read_alphacoff_dynamic_symtab):
2294 * infcmd.c (print_return_value):
2295 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2296 * f-exp.y (parse_number):
2297 * exceptions.c (catch_exceptions):
2298 * dummy-frame.c (dummy_frame_this_id):
2299 * defs.h (struct cleanup):
2300 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2301 * arm-tdep.c (arm_push_dummy_call):
2302 * amd64-tdep.h (amd64_collect_xsave):
2303 * amd64-tdep.c (amd64_collect_xsave):
2304 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2305 * README (typing): Remove duplicate words.
2306 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2307 * infrun.c (siginfo_value_read): Fix typo.
2308 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2309 * top.c (source_line_number): Add comma.
2311 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2313 * thread.c (any_live_thread_of_process): Prioritize threads
2314 that are not executing.
2315 * gdbthread.h (any_live_thread_of_process): Update comment
2316 as per above change.
2318 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2320 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2321 (scan_xcoff_symtab): Likewise.
2323 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2325 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2328 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2329 Pedro Alves <pedro@codesourcery.com>
2331 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2332 variables to simplify code and avoid == operator at end of
2333 line as this is against GNU coding standards.
2335 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2337 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2338 lm_name to name_lm to avoid conflict with lm_name function.
2340 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2342 ARI fixes: Use only lowercase function name for static functions.
2343 * nto-tdep.c (LM_ADDR): Rename to...
2344 (lm_addr): New function name.
2345 (nto_relocate_section_addresses): Adapt to change above.
2346 * solib-sunos.c (LM_ADDR): Rename to...
2347 (lm_addr): New function name.
2348 (LM_NEXT): Rename to...
2349 (lm_next): New function name.
2350 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2351 function name changes above.
2352 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2353 (lm_addr_from_link_map): New function name.
2354 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2355 (has_lm_dynamic_from_link_map): New function name.
2356 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2357 (lm_dynamic_from_link_map): New function name.
2358 (LM_ADDR_CHECK): Rename to...
2359 (lm_addr_check): New function name.
2360 (LM_NEXT): Rename to...
2361 (lm_next): New function name.
2362 (LM_PREV): Rename to...
2363 (lm_prev): New function name.
2364 (LM_NAME): Rename to...
2365 (lm_name): New function name.
2366 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2367 (ignore_first_link_map_entry): New function name.
2368 (svr4_keep_data_in_core): Adapt to function name changes above.
2369 (svr4_current_sos): Likewise.
2370 (enable_break): Likewise.
2371 (svr4_relocate_section_addresses): Likewise.
2373 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2376 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2377 sprintf. Simplify code and avoid loosing memory.
2378 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2379 (call0_frame_cache): Remove && operator from end of line.
2381 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2383 Fix libraries displacement if they change whether they were prelinked.
2384 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2385 does not match. Comment why.
2387 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2389 * corelow.c: Include wrapper.h.
2390 (core_open): Call now gdb_target_find_new_threads.
2391 * wrapper.c: Include target.h.
2392 (gdb_target_find_new_threads): New.
2393 * wrapper.h (gdb_target_find_new_threads): New declaration.
2395 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2397 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2398 even if !TARGET_HAS_EXECUTION.
2400 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2402 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2403 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2404 bfd_get_synthetic_symtab.
2405 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2406 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2407 parameter parent, remove the call to add_separate_debug_objfile.
2408 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2409 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2410 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2411 parent, new comment for it, call add_separate_debug_objfile for it.
2412 (symbol_file_add_separate): Pass objfile as the parameter parent,
2413 remove the call to add_separate_debug_objfile.
2414 (symbol_file_add_from_bfd): New parameter parent, pass it.
2415 (symbol_file_add): Pass NULL to the new parameter parent.
2416 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2418 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2420 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2423 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2425 Fix Python access to inlined frames.
2426 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2427 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2429 2011-04-15 Tom Tromey <tromey@redhat.com>
2431 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2433 2011-04-15 Gary Benson <gbenson@redhat.com>
2435 * MAINTAINERS: Add myself to write-after-approval section.
2437 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2439 * remote-sim.c (sim_command_completer): New function.
2440 (_initialize_remote_sim): Set completer to sim_command_completer.
2442 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2444 * breakpoint.c (print_exception_catchpoint): Rename to ...
2445 (print_it_exception_catchpoint): ... this.
2446 (gnu_v3_exception_catchpoint_ops): Update with new name
2447 for print_it_exception_catchpoint.
2449 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2451 * MAINTAINERS: Add myself for write after approval privileges.
2453 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2455 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2457 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2459 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2461 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2463 * breakpoint.c (save_breakpoints): Verify whether
2464 breakpoint_ops.print_recreate is defined before calling it.
2466 2011-04-11 Gary Benson <gbenson@redhat.com>
2468 Fix failure with --enable-maintainer-mode.
2469 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2471 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2474 * symtab.c (search_symbols): Reorder the KIND description in the
2475 function comment. Remove the unused 4th element of types, types2,
2476 types3 and types4. New gdb_assert on KIND.
2477 (symtab_symbol_info): Remove the unused 4th element of classnames.
2478 New gdb_assert on KIND.
2479 * symtab.h (enum search_domain): New warning in the enum comment.
2480 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2483 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2485 Fix crash of gdb save-index on a STABS file.
2486 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2489 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2491 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2492 * dwarf2read.c: Include ctype.h.
2493 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2495 (dwarf2_add_field): Fix new_field->accessibility by calling
2496 dwarf2_default_access_attribute. Restructure setting accessibility
2498 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2499 is_private and is_protected by calling
2500 dwarf2_default_access_attribute.
2502 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2504 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2505 to the initialization.
2507 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2509 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2512 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2514 Remove support for old Cygwin 1.5 versions.
2515 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2516 function on old Cygwin version.
2517 * windows-nat.c: Remove cygwin version check and always define
2518 __USEWIDE for Cygwin compilation.
2520 2011-04-07 Yao Qi <yao@codesourcery.com>
2522 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2524 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2525 (arm_copy_svc): Remove parameters INSN and TO.
2526 (decode_svc_copro): Update caller.
2527 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2528 from function pointer `copy_svc_os'.
2530 2011-04-07 Yao Qi <yao@codesourcery.com>
2532 * arm-tdep.c (cleanup_branch): Set a correct return address in
2533 LR for ARM and Thumb.
2535 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2538 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2539 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2540 in the function comment, a new note on values compatibility.
2541 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2542 * symtab.h (SYMBOL_HASH_NEXT): New.
2544 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2546 * ppc-linux-nat.c (check_condition): Add len output parameter.
2547 Set it based on the memory region referenced in the condition
2548 expression. Update all callers.
2550 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2552 Fix crash regression on systems featuring .gdb_index.
2553 * objfiles.c (free_objfile): Move the
2554 forget_cached_source_info_for_objfile call earlier. Comment it.
2555 Extend the comment for objfile_free_data.
2557 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2559 Fix regression of displaying the debug format.
2560 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2563 2011-04-04 Tom Tromey <tromey@redhat.com>
2565 * cli/cli-interp.c (struct captured_execute_command_args):
2567 (do_captured_execute_command): Remove.
2568 (safe_execute_command): Use TRY_CATCH.
2569 * cli/cli-script.c (struct wrapped_read_command_file_args):
2571 (wrapped_read_command_file): Remove.
2572 (script_from_file): Use TRY_CATCH.
2573 * exceptions.c (catch_exception): Remove.
2574 * exceptions.h (catch_exception): Remove.
2575 (deprecated_throw_reason): Update comment.
2576 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2577 argument to 'context'.
2578 (mi_execute_command): Use TRY_CATCH.
2579 * remote.c (struct start_remote_args): Remove.
2580 (remote_start_remote): Update; change arguments.
2581 (remote_open_1): Use TRY_CATCH.
2583 2011-04-04 Tom Tromey <tromey@redhat.com>
2585 * tracepoint.c (scope_info): Update.
2586 * symtab.c (decode_line_spec): Update.
2587 * python/python.c (gdbpy_decode_line): Update.
2588 * linespec.h (decode_line_1): Update.
2589 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2590 (decode_compound, find_method, symtab_from_filename)
2591 (decode_variable): Likewise.
2592 * cli/cli-cmds.c (edit_command): Update.
2593 (list_command): Update.
2594 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2596 (create_breakpoint): Update.
2597 (until_break_command): Update.
2598 (addr_string_to_sals): Update.
2599 (decode_line_spec_1): Update.
2601 2011-04-04 Tom Tromey <tromey@redhat.com>
2603 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2604 (do_captured_parse_breakpoint): Remove.
2605 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2606 Use TRY_CATCH directly.
2608 2011-04-04 Tom Tromey <tromey@redhat.com>
2610 * symtab.h (free_symtab): Remove.
2611 (forget_cached_source_info_for_objfile): Declare.
2612 * symmisc.c (free_symtab): Remove.
2613 * source.c (forget_cached_source_info_for_objfile): New function.
2614 (forget_cached_source_info): Use it.
2615 * objfiles.c (free_objfile): Simplify check before calling
2616 clear_current_source_symtab_and_line. Call
2617 forget_cached_source_info_for_objfile.
2619 2011-04-04 Tom Tromey <tromey@redhat.com>
2621 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2622 (new_symtab): Don't set `free_code' on symtab.
2623 (new_linetable): Properly handle size==0.
2624 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2625 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2627 * jv-lang.c (struct jv_per_objfile_data): New.
2628 (jv_per_objfile_free): Free the data.
2629 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2630 (get_java_class_symtab): Set the `dict' field on the
2631 jv_per_objfile_data.
2632 (free_class_block): Remove.
2633 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2636 2011-04-04 Tom Tromey <tromey@redhat.com>
2638 * symfile.c (reread_symbols): Update.
2639 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2641 * objfiles.c (allocate_objfile): Update.
2642 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2644 * cp-namespace.c (lookup_symbol_file): Don't call
2645 lookup_possible_namespace_symbol.
2646 (initialize_namespace_symtab, get_possible_namespace_block)
2647 (free_namespace_block, cp_check_possible_namespace_symbols)
2648 (check_possible_namespace_symbols_loop)
2649 (check_one_possible_namespace_symbol)
2650 (lookup_possible_namespace_symbol): Remove.
2651 (maintenance_cplus_namespace): Replace with notice.
2652 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2654 2011-04-04 Tom Tromey <tromey@redhat.com>
2656 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2657 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2658 * symmisc.c (free_symtab): Don't free debugformat.
2659 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2660 (record_debugformat, record_producer): Document.
2661 * buildsym.c (end_symtab): Don't save debugformat and producer
2663 (end_symtab): Don't free debugformat and producer fields.
2664 (record_debugformat): Don't call xstrdup.
2665 (record_producer): Likewise.
2667 2011-04-04 Tom Tromey <tromey@redhat.com>
2669 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2670 (source_line_charpos, source_charpos_line): Remove.
2672 2011-04-04 Tom Tromey <tromey@redhat.com>
2674 * symtab.h (domain_enum): Split in two...
2675 (enum search_domain): New.
2676 (search_symbols): Update.
2677 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2678 redundant declarations.
2679 (search_symbols): Change 'kind' argument to search_domain.
2681 (print_symbol_info): Likewise.
2682 (symtab_symbol_info): Likewise.
2683 * symfile.h (struct quick_symbol_functions)
2684 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2685 <expand_symtabs_matching>: Likewise.
2686 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2687 (expand_symtabs_matching_via_partial): Update.
2688 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2689 (dw2_expand_symtabs_for_function): Update.
2690 * block.h: Moved anonymous enum...
2691 * defs.h (enum block_enum): ... here. Now named.
2693 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2695 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2696 * version.in: Bump version to 7.3.50.20110403-cvs.
2698 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2700 * NEWS: Create a new section for the next release branch.
2701 Rename the section of the current branch, now that it has
2704 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2706 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2707 for "fpscr" in target description.
2709 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2711 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2712 initialize it. Delay HASH initialization. Strip the part after open
2713 parenthesis for languages with qualifiers. Call do_cleanups.
2715 2011-04-01 Tom Tromey <tromey@redhat.com>
2717 * utils.c (report_command_stats): Don't print `-' for negative
2720 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2722 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2723 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2726 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2728 * breakpoint.h (bpdisp_text): Add declaration.
2729 * breakpoint.c (bpdisp_text): Make non-static.
2730 * ada-lang.c: #include "mi/mi-common.h".
2731 (print_it_exception): Rewrite to improve GDB/MI output.
2733 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2735 * arm-tdep.h (struct address_space): Add forward declaration.
2737 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2739 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2740 * arm-tdep.c (arm_override_mode): New global.
2741 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2742 execution mode heuristics.
2743 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2744 second single-step breakpoint if needed, using
2745 arm_insert_single_step_breakpoint.
2746 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2747 ARM execution mode, do not call thumb_get_next_pc_raw.
2748 (arm_get_next_pc): Encode execution mode in return value. Call
2749 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2750 (arm_insert_single_step_breakpoint): New function.
2751 (arm_software_single_step): Call it.
2752 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2753 argument to return execution mode of sigreturn target.
2754 (arm_linux_syscall_next_pc): Use it.
2755 (arm_linux_copy_svc): Update call.
2756 (arm_linux_software_single_step): Call
2757 arm_insert_single_step_breakpoint.
2759 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2761 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2764 2011-03-31 Tom Tromey <tromey@redhat.com>
2766 * varobj.c (update_dynamic_varobj_children): Properly handle
2767 errors from iterator.
2769 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2771 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2772 struct linkage name twice.
2774 2011-03-31 Tom Tromey <tromey@redhat.com>
2776 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2777 missing ">" to message.
2779 2011-03-31 Tom Tromey <tromey@redhat.com>
2781 * varobj.c (instantiate_pretty_printer): Remove duplicate
2784 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
2786 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2787 if neither saved value nor register available (e.g. signal frame).
2789 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2791 * macroexp.c (expand): Avoid uninitialized variable
2794 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2796 * breakpoint.c (break_range_command): Fix typo in comment.
2798 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2799 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2801 Implement support for PowerPC BookE ranged breakpoints.
2802 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2803 * breakpoint.h (struct bp_target_info) <length>: New member
2805 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2806 instead of struct breakpoint as argument, and also add ASPACE
2807 and BP_ADDR arguments. Update all callers.
2808 (struct breakpoint_ops) <print_one_detail>: New method.
2809 (struct breakpoint) <addr_string_range_end>: New member variable.
2810 * breakpoint.c (breakpoint_location_address_match): Add function
2812 (insert_bp_location): Set bl->target_info.length.
2813 (breakpoint_here_p): Call breakpoint_location_address_match.
2814 (moribund_breakpoint_here_p): Likewise.
2815 (regular_breakpoint_inserted_here_p): Likewise.
2816 (breakpoint_thread_match): Likewise.
2817 (bpstat_stop_status): Likewise.
2818 (bpstat_check_location): Move call to
2819 breakpoint_ops.breakpoint_hit to the top.
2820 (print_one_breakpoint_location): Call
2821 breakpoint_ops.print_one_detail if available.
2822 (breakpoint_address_match_range): New function.
2823 (breakpoint_location_address_match): Likewise.
2824 (breakpoint_locations_match): Compare the length field of the
2826 (hw_breakpoint_used_count): Count resources used by all locations
2827 in a breakpoint, and use breakpoint_ops.resources_needed if
2829 (breakpoint_hit_ranged_breakpoint): New function.
2830 (resources_needed_ranged_breakpoint): Likewise.
2831 (print_it_ranged_breakpoint): Likewise.
2832 (print_one_ranged_breakpoint): Likewise.
2833 (print_one_detail_ranged_breakpoint): Likewise.
2834 (print_mention_ranged_breakpoint): Likewise.
2835 (print_recreate_ranged_breakpoint): Likewise.
2836 (ranged_breakpoint_ops): New structure.
2837 (find_breakpoint_range_end): New function.
2838 (break_range_command): Likewise.
2839 (delete_breakpoint): Free addr_string_range_end.
2840 (update_breakpoint_locations): Add SALS_END argument. Update
2841 all callers. Calculate breakpoint length if a non-zero SALS_END
2842 is given. Call breakpoint_locations_match instead of
2843 breakpoint_address_match.
2844 (reset_breakpoint): Find SaL of the end of the range if B is a
2846 (_initialize_breakpoint): Register break-range command.
2847 * defs.h (print_core_address): Add function prototype.
2848 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2850 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2851 (ppc_linux_remove_hw_breakpoint): Likewise.
2852 (_initialize_ppc_linux_nat): Initialize
2853 to_ranged_break_num_registers.
2854 * target.c (update_current_target): Add comment about
2855 to_ranged_break_num_registers.
2856 (target_ranged_break_num_registers): New function.
2857 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2859 (target_ranged_break_num_registers): Add function prototype.
2860 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2861 * utils.c (print_core_address): ... here.
2863 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
2865 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2866 variable compiler warning.
2868 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2870 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2872 (re_set_breakpoint): ... to here ...
2873 (addr_string_to_sals): ... and here.
2875 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2877 * Makefile.in (SFILES): Add missing C sources.
2878 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2879 Add missing headers.
2881 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2883 * .gitignore: New file.
2885 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2887 * NEWS: Mention new cfi device simulation.
2889 2011-03-29 Tom Tromey <tromey@redhat.com>
2891 * dwarf2read.c (fixup_partial_die): Handle linkage name on
2892 otherwise anonymous types.
2893 (dwarf2_name): Likewise.
2894 * valops.c (value_struct_elt_for_reference): Refine artificial
2895 type logic. Call error if j==-1.
2897 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
2899 Fix false GCC warning.
2900 * infcall.c (find_function_addr): Initialize funaddr.
2902 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2904 Fix mingw compilation with --enable-targets=all.
2905 * remote-mips.c (gdb_usleep.h): Include header.
2906 (mips_enter_debug): Use gdb_usleep instead of sleep.
2908 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2910 Support resolution of STT_GNU_IFUNC via breakpoints.
2911 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
2912 bp_gnu_ifunc_resolver_return.
2913 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
2914 the loop. Support bp_gnu_ifunc_resolver and
2915 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
2916 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
2918 (bptype_string, print_one_breakpoint_location): Support
2919 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
2920 (user_settable_breakpoint): Return true also for
2921 bp_gnu_ifunc_resolver.
2922 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
2923 bp_gnu_ifunc_resolver_return.
2924 (set_breakpoint_location_function): New parameter explicit_loc,
2925 describe it. Call find_pc_partial_function_gnu_ifunc with new
2926 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
2927 EXPLICIT_LOC is not set.
2928 (set_raw_breakpoint): Set EXPLICIT_LOC for
2929 set_breakpoint_location_function.
2930 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
2931 set_breakpoint_location_function.
2932 (mention): Support bp_gnu_ifunc_resolver and
2933 bp_gnu_ifunc_resolver_return.
2934 (add_location_to_breakpoint): Set EXPLICIT_LOC for
2935 set_breakpoint_location_function.
2936 (update_breakpoint_locations): Remove static.
2937 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
2938 bp_gnu_ifunc_resolver_return.
2939 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
2940 bp_gnu_ifunc_resolver_return.
2941 (update_breakpoint_locations): New declaration.
2942 * elfread.c: Include gdbthread.h and regcache.h.
2943 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
2945 (elf_gnu_ifunc_fns): Install them.
2946 * minsyms.c (stub_gnu_ifunc_resolver_stop)
2947 (stub_gnu_ifunc_resolver_return_stop): New functions.
2948 (stub_gnu_ifunc_fns): Install them.
2949 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
2950 and gnu_ifunc_resolver_return_stop.
2951 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
2953 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2955 STT_GNU_IFUNC reader implementation.
2956 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
2957 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
2958 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
2959 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
2960 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
2961 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
2962 (elf_gnu_ifunc_resolve_addr): New.
2963 (elf_symfile_read): Call elf_rel_plt_read.
2964 (elf_gnu_ifunc_fns): New.
2965 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
2966 Install elf_gnu_ifunc_fns.
2967 * infcall.c (find_function_return_type): New function.
2968 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
2969 * minsyms.c (stub_gnu_ifunc_resolve_addr)
2970 (stub_gnu_ifunc_resolve_name): New functions.
2971 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
2972 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
2973 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
2975 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2977 Code cleanup for later STT_GNU_IFUNC support.
2978 * infcall.c (find_function_addr): Remove variable code, use explicit
2979 dereferences for it. Move VALUE_TYPE initialization later.
2981 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2983 GDB find_pc_partial_function support for STT_GNU_IFUNC.
2984 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
2985 (clear_pc_function_cache): Clear it.
2986 (find_pc_partial_function): Rename to ...
2987 (find_pc_partial_function_gnu_ifunc): ... this function. New
2988 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
2989 (find_pc_partial_function): New wrapper for this function.
2990 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
2992 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2994 GDB internal type support for STT_GNU_IFUNC.
2995 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
2996 (elf_symtab_read): Set mst_text_gnu_ifunc for
2997 BSF_GNU_INDIRECT_FUNCTION.
2998 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
2999 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3000 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3001 nodebug_got_plt_symbol.
3002 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3003 (TYPE_GNU_IFUNC): New.
3004 (struct main_type): New field flag_gnu_ifunc.
3005 (struct builtin_type): New field builtin_func_func.
3006 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3007 nodebug_got_plt_symbol.
3008 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3009 (in_gnu_ifunc_stub): New.
3010 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3012 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3013 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3014 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3016 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3017 * symtab.c (search_symbols): Likewise.
3018 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3019 and mst_slot_got_plt.
3020 (in_gnu_ifunc_stub): New declaration.
3022 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3024 Support a ring of related breakpoints.
3025 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3026 other functions, add gdb_assert.
3027 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3028 watchpoint_del_at_next_stop.
3029 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3030 (bpstat_stop_status): Handle ring in related_breakpoint.
3031 (set_raw_breakpoint_without_location): Initialize ring in
3033 (delete_breakpoint): Handle ring in related_breakpoint, use
3034 watchpoint_del_at_next_stop.
3035 (map_breakpoint_numbers): Handle ring in related_breakpoint.
3037 2011-03-28 Tom Tromey <tromey@redhat.com>
3040 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3041 with `language_minimal'.
3043 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
3045 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3046 instead of checking for STT_ARM_TFUNC symbol type.
3048 2011-03-25 Tom Tromey <tromey@redhat.com>
3050 * linespec.c (symbol_found): Restore line-based result for
3051 non-LOC_LABEL symbols.
3053 2011-03-25 Kai Tietz <ktietz@redhat.com>
3055 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3056 instead of strcmp for comparison.
3057 (tui_source_is_displayed): Likewise.
3058 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3060 2011-03-24 Mark Wielaard <mjw@redhat.com>
3062 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3064 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3065 (find_partial_die_in_comp_unit): Likewise in comment.
3066 (read_attribute_value): Likewise.
3067 (lookup_die_type): Likewise.
3068 (dwarf_form_name): Likewise.
3069 (dump_die_shallow): Likewise.
3070 (follow_die_ref_or_sig): Likewise.
3072 2011-03-24 Tom Tromey <tromey@redhat.com>
3074 PR breakpoints/11816:
3075 * linespec.c (decode_line_1): Parse `function:label' linespecs.
3076 (decode_compound): Update.
3077 (find_function_symbol): New function.
3078 (decode_dollar): Update.
3079 (decode_label): Add 'function_symbol' parameter. Handle
3080 function-relative labels.
3081 (decode_variable): Update.
3082 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
3083 not its line. Set `special_display' and canonical name for
3086 2011-03-24 Tom Tromey <tromey@redhat.com>
3088 * linespec.h (struct linespec_result) <special_display>: New
3090 * breakpoint.h (struct breakpoint) <display_canonical>: New
3092 * breakpoint.c (print_breakpoint_location): Respect
3094 (create_breakpoint_sal): Add 'display_canonical' parameter.
3095 (create_breakpoints_sal): Update.
3096 (create_breakpoint): Update.
3098 2011-03-24 Tom Tromey <tromey@redhat.com>
3100 * symtab.c (decode_line_spec): Update.
3101 * linespec.c (build_canonical_line_spec): Change type of
3103 (decode_line_2, decode_line_1, decode_objc, decode_compound)
3104 (find_method, decode_all_digits, decode_dollar, decode_label)
3105 (symbol_found): Likewise.
3106 (init_linespec_result): New function.
3107 * breakpoint.c (struct captured_parse_breakpoint_args)
3108 <canonical_p>: New field, replaces addr_string_p.
3109 (create_breakpoints_sal): Add 'canonical' parameter, replacing
3111 (parse_breakpoint_sals): Likewise.
3112 (do_captured_parse_breakpoint): Update.
3113 (create_breakpoint): Use struct linespec_result.
3114 (until_break_command): Update.
3115 (breakpoint_re_set_one): Update.
3116 (decode_line_spec_1): Update.
3117 * linespec.h (struct linespec_result): New.
3118 (init_linespec_result): Declare.
3120 2011-03-23 Pedro Alves <pedro@codesourcery.com>
3122 * regcache.c (regcache_raw_read): If the target didn't supply a
3123 given raw register, mark it as unavailable.
3125 2011-03-23 Kai Tietz <ktietz@redhat.com>
3127 * breakpoint.c (clear_command): Use filename_cmp
3128 instead of strcmp for comparison.
3129 * buildsym.c (watch_main_source_file_lossage): Likewise.
3130 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3131 checking just for slash.
3132 * dbxread.c (read_dbx_symtab): Use lbasename instead of
3133 strrchr and filename_cmp instead of strcmp for filenames.
3134 (add_old_header_file): Use filename_cmp
3135 instead of strcmp for comparison.
3136 * exec.c (exec_set_section_address): Likewise.
3137 * macrotab.c (macro_lookup_inclusion): Likewise.
3138 (macro_lookup_inclusion): Likewise.
3139 * elfread.c (_initialize_elfread): Likewise.
3140 (elfstab_offset_sections): Likewise.
3141 (elfstab_offset_sections): Use lbasename instead of
3143 * mdebugread.c (parse_partial_symbols): Likewise.
3144 (arse_partial_symbols): Use filename_(n)cmp instead of
3145 str(n)cmp for comparison.
3146 * minsyms.c (lookup_minimal_symbol): Likewise.
3147 * psymtab.c (read_psymtabs_with_filename): Likewise.
3148 * solib.c (solib_read_symbols): Likewise.
3149 (reload_shared_libraries_1): Likewise.
3150 * symmisc.c (maintenance_print_symbols): Likewise.
3151 * symfile.c (separate_debug_file_exists): Likewise.
3152 (reread_symbols): Likewise.
3153 (find_separate_debug_file_by_debuglink): Likewise.
3154 * remote-fileio.c (remote_fileio_func_rename): Likewise.
3155 * source.c (add_path): Likewise.
3156 * symtab.c (filename_seen): Likewise.
3157 (file_matches): Likewise.
3158 (print_symbol_info): Likewise.
3159 (maybe_add_partial_symtab_filename): Likewise.
3160 (make_source_files_completion_list): Likewise.
3161 * xml-syscall.c (init_sysinfo): Likewise.
3162 * windows-nat.c (_initialize_check_for_gdb_ini): Use
3163 IS_DIR_SEPARATOR for checking for trailing path separator.
3165 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3167 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
3168 label abort_expression.
3169 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3170 DWARF_VALUE_OPTIMIZED_OUT.
3172 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3175 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3176 to linkage_name. Invert its value. Update the function comment.
3177 (c_type_print_varspec_suffix): Invert it at the caller.
3178 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3180 2011-03-22 Pedro Alves <pedro@codesourcery.com>
3182 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3183 errors when reading the `stop_pc'.
3184 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3187 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3189 * NEWS: Document gdb.Write stream keyword.
3191 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3194 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3195 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3196 (dwarf2_add_field): Fix new_field->accessibility for
3197 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3199 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3203 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3204 other error classes. Do not print stack trace.
3206 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3208 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3209 (dwarf2_add_field): Fix new_field->accessibility for
3210 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3212 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
3214 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3215 encountering a load via a non-SP register.
3217 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3219 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3220 field in returned unwinder.
3222 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3224 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3226 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3228 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3231 2012-03-18 Pedro Alves <pedro@codesourcery.com>
3233 * frame.c (frame_unwind_register): Throw an error if unwinding the
3235 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3236 an unwind stop reason.
3237 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3238 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3239 UNWIND_UNAVAILABLE>: New.
3240 * inline-frame.c (inline_frame_unwind): Install
3241 default_frame_unwind_stop_reason.
3242 * frame-unwind.c: Include "exceptions.h".
3243 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3244 (default_frame_unwind_stop_reason): New.
3245 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3246 (default_frame_unwind_stop_reason): Declare.
3247 (struct frame_unwind) <stop_reason>: New function pointer.
3249 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3250 * dwarf2-frame.c: Include exceptions.h.
3251 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3252 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3253 computing the CFA. If such an error was thrown, set
3254 unavailable_retaddr.
3255 (dwarf2_frame_unwind_stop_reason): New.
3256 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3258 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3259 (dwarf2_signal_frame_unwind): Ditto.
3261 * amd64-tdep.c: Include "exceptions.h".
3262 (struct amd64_frame_cache): New field "base_p".
3263 (amd64_init_frame_cache): Clear it.
3264 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3265 Avoid reading registers with functions that throw if the register
3266 is not necessary to compute the frame base.
3267 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3268 swallowing NOT_AVAILABLE_ERROR.
3269 (amd64_frame_unwind_stop_reason): New.
3270 (amd64_frame_this_id): Don't build a frame id if the frame base
3272 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3273 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3274 base_p if the frame base was computable.
3275 (amd64_sigtramp_frame_unwind_stop_reason): New.
3276 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3277 frame base was unavailable.
3278 (amd64_sigtramp_frame_unwind): Install
3279 amd64_sigtramp_frame_unwind_stop_reason.
3280 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3281 base_p if the frame base was computable.
3282 (amd64_epilogue_frame_unwind_stop_reason): New.
3283 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3284 frame base was unavailable.
3285 (amd64_epilogue_frame_unwind): Install
3286 amd64_epilogue_frame_unwind_stop_reason.
3287 * i386-tdep.c: Include "exceptions.h".
3288 (struct i386_frame_cache): New field "base_p".
3289 (i386_init_frame_cache): Clear it.
3290 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3291 Avoid reading registers with functions that throw if the register
3292 is not necessary to compute the frame base.
3293 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3294 swallowing NOT_AVAILABLE_ERROR.
3295 (i386_frame_unwind_stop_reason): New.
3296 (i386_frame_this_id): Don't build a frame id if the frame base was
3298 (i386_frame_prev_register): Handle unavailable SP.
3299 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3300 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3301 base_p if the frame base was computable.
3302 (i386_epilogue_frame_unwind_stop_reason): New.
3303 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3304 base was unavailable.
3305 (i386_epilogue_frame_unwind): Install
3306 i386_epilogue_frame_unwind_stop_reason.
3307 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3308 base_p if the frame base was computable.
3309 (i386_sigtramp_frame_unwind_stop_reason): New.
3310 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3311 base was unavailable.
3312 (i386_sigtramp_frame_unwind): Install
3313 i386_sigtramp_frame_unwind_stop_reason.
3314 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3315 type's size, not the register's.
3316 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3318 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3319 default_frame_unwind_stop_reason.
3320 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3321 (alpha_heuristic_frame_unwind): Ditto.
3322 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3323 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3324 * avr-tdep.c (avr_frame_unwind): Ditto.
3325 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3327 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3328 * frv-tdep.c (frv_frame_unwind): Ditto.
3329 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3330 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3331 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3332 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3333 (hppa_stub_frame_unwind): Ditto.
3334 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3335 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3336 (ia64_libunwind_frame_unwind)
3337 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3338 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3339 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3340 * m32c-tdep.c (m32c_unwind): Ditto.
3341 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3342 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3343 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3344 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3345 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3346 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3347 * mep-tdep.c (mep_frame_unwind): Ditto.
3348 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3349 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3350 (mips_stub_frame_unwind): Ditto.
3351 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3352 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3353 * mt-tdep.c (mt_frame_unwind): Ditto.
3354 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3355 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3356 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3357 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3358 (s390_sigtramp_frame_unwind): Ditto.
3359 * score-tdep.c (score_prologue_unwind): Ditto.
3360 * sh-tdep.c (sh_frame_unwind): Ditto.
3361 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3362 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3363 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3364 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3365 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3366 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3367 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3368 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3369 (sparc64obsd_trapframe_unwind): Ditto.
3370 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3371 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3372 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3373 * v850-tdep.c (v850_frame_unwind): Ditto.
3374 * vax-tdep.c (vax_frame_unwind): Ditto.
3375 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3376 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3377 * xtensa-tdep.c (xtensa_unwind): Ditto.
3379 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3381 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3382 there's always a frame. Use get_frame_pc_if_available instead of
3383 get_frame_pc, and if there's no PC available, don't look up a
3386 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3388 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3391 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3393 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3396 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3398 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3399 * frame.c (frame_unwind_caller_pc_if_available): New.
3400 * stack.c (frame_info): Handle unavailable PC.
3402 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3404 * frame.c (frame_unwind_pc): Rename to ...
3405 (frame_unwind_pc_if_available): ... this. New `pc' output
3406 parameter. Change return type to int. Gracefully handle
3407 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3408 happened, or 1 otherwise.
3409 (frame_unwind_pc): Reimplement on top of
3410 frame_unwind_pc_if_available.
3411 (get_frame_func): Rename to ...
3412 (get_frame_func_if_available): New `pc' output parameter. Change
3413 return type to int. Gracefully handle the PC not being available.
3414 (get_frame_func): Reimplement on top of
3415 get_frame_func_if_available.
3416 (select_frame): Handle the PC being unavailable.
3417 (get_prev_frame): Handle the PC being unavailable.
3418 (get_frame_pc_if_available): New.
3419 (get_frame_address_in_block_if_available): New.
3420 (find_frame_sal): Handle the frame PC not being available.
3421 * frame.h (get_frame_pc_if_available): Declare.
3422 (get_frame_address_in_block_if_available): Declare.
3423 (get_frame_func_if_available): Declare.
3424 * stack.c (print_frame_info): Handle the PC being unavailable.
3425 (find_frame_funname): Ditto.
3426 (print_frame): Handle the PC being unavailable.
3427 (get_frame_language): Ditto.
3428 * blockframe.c (get_frame_block): Ditto.
3429 * macroscope.c (default_macro_scope): Ditto.
3430 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3432 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3434 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3435 NOT_AVAILABLE_ERROR when evaluating the location expression.
3437 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3439 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3440 returning that the register piece is unavailable/optimized out.
3441 (write_pieced_value): Handle get_frame_register_bytes returning
3442 that the register piece is unavailable/optimized out when doing a
3443 read-modify write of a bitfield.
3444 * findvar.c (value_from_register): Handle get_frame_register_bytes
3445 returning that the register piece is unavailable/optimized out.
3446 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3447 and `unavailablep'. Throw error on bad debug info. Use
3448 frame_register instead of frame_register_read, to fill in the new
3450 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3452 * valops.c: (value_assign): Adjust, and handle
3453 get_frame_register_bytes failing.
3454 * spu-tdep.c: Include exceptions.h.
3455 (spu_software_single_step): Adjust, and handle
3456 get_frame_register_bytes failing.
3457 (spu_get_longjmp_target): Ditto.
3458 * gdbarch.sh (register_to_value): Change to return int. New
3459 parameters `optimizedp' and `unavailablep'.
3460 * gdbarch.h, gdbarch.c: Regenerate.
3461 * i386-tdep.c (i386_register_to_value): Adjust to new
3462 gdbarch_register_to_value interface.
3463 * i387-tdep.c (i387_register_to_value): Ditto.
3464 * i387-tdep.h (i387_register_to_value): Ditto.
3465 * alpha-tdep.c (alpha_register_to_value): Ditto.
3466 * ia64-tdep.c (ia64_register_to_value): Ditto.
3467 * m68k-tdep.c (m68k_register_to_value): Ditto.
3468 * mips-tdep.c (mips_register_to_value): Ditto.
3469 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3471 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3473 * findvar.c (value_of_register): Mark the value as unavailable, if
3474 the register is unavailable.
3475 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3476 (frame_register): New `unavailablep' parameter.
3477 (frame_register_read): Update comment.
3478 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3479 Set it if the register is unavailable. If the register is
3480 unavailable, clear the output buffer.
3481 (frame_register): New `unavailablep' parameter. Pass it down.
3482 (frame_unwind_register): Adjust.
3483 (put_frame_register): Adjust.
3484 (frame_register_read): Adjust. Also return false if the register
3486 (frame_register_unwind_location): Adjust.
3487 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3488 is unavailable, mark the value accordingly.
3489 * stack.c (frame_info): Handle unavailable registers.
3491 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3493 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3494 simplify, using regcache_cooked_read.
3496 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3498 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3499 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3500 (regcache_raw_read_unsigned, regcache_raw_read_part)
3501 (regcache_cooked_read, regcache_cooked_read_signed)
3502 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3503 (regcache_cooked_read_ftype): Change return to enum
3505 * regcache.c: Include exceptions.h
3506 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3507 (do_cooked_read): Change return to enum register_status. Always
3508 forward to regcache_cooked_read.
3509 (regcache_raw_read): Change return to enum register_status. If
3510 the register is not REG_VALID, memset the buffer. Return the
3512 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3513 return the register's status.
3514 (regcache_raw_read_unsigned): Ditto.
3515 (regcache_cooked_read): Change return to enum register_status.
3516 Assert that with read-only regcaches, the register's status must
3517 be known. If the regcache is read-only, and the register is not
3518 REG_VALID, memset the buffer. Return the register's status.
3519 (regcache_cooked_read_signed): Change return to enum
3520 register_status. Handle non-REG_VALID registers and return the
3522 (regcache_cooked_read_unsigned): Change return to enum
3523 register_status. Handle non-REG_VALID registers and return the
3525 (regcache_xfer_part, regcache_raw_read_part)
3526 (regcache_cooked_read_part): Change return to enum
3527 register_status. Return the register's status.
3528 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3530 (regcache_dump): Handle unavailable cooked registers.
3531 * frame.c (do_frame_register_read): Adjust interface to match
3532 regcache_cooked_read_ftype.
3533 * gdbarch.sh (pseudo_register_read): Change return to enum
3535 * gdbarch.h, gdbarch.c: Regenerate.
3537 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3539 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3540 register_status. If reading a raw register indicates the raw
3541 register is not valid, return the raw register's status,
3542 otherwise, return REG_VALID.
3543 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3544 register_status. Handle non-REG_VALID raw registers and return
3545 the register's status.
3546 * arm-tdep.c (arm_neon_quad_read)
3547 (arm_pseudo_read): Change return to enum register_status. Handle
3548 non-REG_VALID raw registers and return the register's status.
3549 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3550 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3551 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3552 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3553 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3555 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3556 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3557 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3558 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3559 (m32c_pseudo_register_read): Change return to enum
3560 register_status. Adjust.
3561 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3562 enum register_status. Return the register's status.
3563 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3564 register_status. Return the register's status.
3565 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3566 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3567 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3568 * rs6000-tdep.c (move_ev_register_func): New typedef.
3569 (e500_move_ev_register): Use it. Change return to enum
3570 register_status. Return the register's status.
3571 (do_regcache_raw_read): New function.
3572 (do_regcache_raw_write): New function.
3573 (e500_pseudo_register_read): Change return to enum
3574 register_status. Return the register's status. Use
3575 do_regcache_raw_read.
3576 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3577 (dfp_pseudo_register_read): Change return to enum register_status.
3578 Return the register's status.
3579 (vsx_pseudo_register_read): Ditto.
3580 (efpr_pseudo_register_read): Ditto.
3581 (rs6000_pseudo_register_read): Ditto.
3582 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3583 register_status. Return the register's status.
3584 * sh64-tdep.c (pseudo_register_read_portions): New function.
3585 (sh64_pseudo_register_read): Change return to enum
3586 register_status. Use pseudo_register_read_portions. Return the
3588 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3589 register_status. Return the register's status.
3590 * sh-tdep.c (pseudo_register_read_portions): New function.
3591 (sh_pseudo_register_read): Change return to enum register_status.
3592 Use pseudo_register_read_portions. Return the register's status.
3593 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3594 enum register_status. Return the register's status.
3595 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3596 * spu-tdep.c (spu_pseudo_register_read_spu)
3597 (spu_pseudo_register_read): Ditto.
3598 * xtensa-tdep.c (xtensa_register_read_masked)
3599 (xtensa_pseudo_register_read): Ditto.
3600 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3602 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3604 * python/py-value.c (valpy_getitem): Fix formatting of error function
3607 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3609 ARI fixes: Add missing internationalization markups throughout
3611 * darwin-nat-info.c: Ditto.
3614 * mi/mi-main.c: Ditto.
3616 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3618 ARI fixes: Add missing internationalization markups throughout
3621 * cp-name-parser.y: Ditto.
3624 * objc-exp.y: Ditto.
3627 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3629 ARI fixes: Messages should have no trailing new lines.
3630 * darwin-nat.c (mach_check_error): Remove trailing new line from
3631 warning function call message.
3632 * record.c (bfdcore_read): Idem for error call.
3634 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3636 * common/signals.c (target_signal_from_host): Add _ markup to error
3637 function call message.
3638 (target_signal_to_host): Add _ markup and remove trailing new line
3639 from warning call message.
3640 (target_signal_from_command): Add _ markup to error function call
3643 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3647 * python/python.c (gdbpy_write): Accept a stream argument and
3648 operate to the appropriate stream.
3649 (gdbpy_flush): Likewise.
3650 (_initialize_python): Add stream constants.
3651 (finish_python_initialization): Add GdbOutputErrorFile class.
3653 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3655 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3657 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3659 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3660 to store_signed_integer. Add debug message when relocating CALL
3661 instructions. Fix formatting of debug message.
3662 * i386-tdep.c (i386_relocate_instruction): Ditto.
3664 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3666 * target.h (struct target_ops): Remove to_lookup_symbol field.
3667 (target_lookup_symbol): Delete macro.
3668 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3669 (update_current_target, setup_target_debug): Remove handling
3670 of to_lookup_symbol target_ops field.
3671 * ada-tasks.c (get_known_tasks_addr): Remove use of
3672 target_lookup_symbol.
3673 * coffread.c (coff_symtab_read): Likewise.
3674 * dbxread.c (read_dbx_symtab): Ditto.
3676 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3679 * configure.ac: Add getthrds declaration check.
3680 * configure, config.in: Regenerate.
3681 * aix-thread.c (getthrds): Declare only if not already declared
3682 in procinfo.h. More declaration out of get_signaled_thread to
3685 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3687 * python/py-symtab.c: Populate symtab_object_methods,
3689 (stpy_is_valid): New function.
3690 (salpy_is_valid): Ditto.
3691 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3692 (sympy_is_valid): New function.
3693 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3694 (objfpy_is_valid): New function.
3695 * python/py-inferior.c: Populate inferior_object_methods.
3696 (infpy_is_valid): New function.
3697 * python/py-infthread.c: Populate thread_object_methods.
3698 (thpy_is_valid): New function.
3699 * python/py-block.c: Declare block_object_methods. Populate. Declare
3700 block_iterator_object_methods. Populate.
3701 (blpy_is_valid): New function.
3702 (blpy_iter_is_valid): Ditto.
3704 2011-03-16 Keith Seitz <keiths@redhat.com>
3706 * linespec.c (find_methods): Canonicalize NAME before looking
3708 (name_end): New function.
3709 (keep_name_info): New function.
3710 (decode_line_1): Use keep_name_info.
3711 (decode_compound): Likewise.
3712 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3713 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3716 * linespec.c (locate_first_half): Keep overload information, too.
3717 (decode_compound): Use a string to represent break characters
3719 If P points to a break character, do not increment it.
3720 For C++ and Java, keep overload information and relevant keywords.
3721 If we cannot find a symbol, search the minimal symbols.
3724 * linespec.c (decode_compound): Rename SAVED_ARG to
3726 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3728 Pass a valid block to lookup_symbol.
3729 (lookup_prefix_sym): Likewise.
3730 (find_method): Construct search name based on SYM_CLASS instead
3732 * psymtab.c (lookup_partial_symbol): Add language parameter.
3733 (lookup_symbol_aux_psymtabs): Likewise.
3734 Don't assume that the psymtab we found was the right one. Search
3735 for the desired symbol in the symtab to be certain.
3736 (psymtab_search_name): New function.
3737 (lookup_partial_symbol): Use psymtab_search_name.
3738 Add language parameter.
3739 (read_symtabs_for_function): Add language parameter and pass to
3740 lookup_partial_symbol.
3741 (find_symbol_file_from_partial): Likewise.
3743 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3746 * dwarf2read.c (noop_record_line): New function.
3747 (dwarf_decode_lines): Ignore line tables for GCd functions.
3749 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3751 Fix ARI warnings about new lines at the end of messages, which
3752 are unneeded as there is a new line added at the end of the message
3754 * darwin-nat.c (darwin_stop_inferior): Ditto.
3755 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3756 * dfp.c (decimal_to_number): Ditto.
3757 * exec.c (print_section_info): Ditto.
3758 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3759 * osdata.c (get_osdata): Ditto.
3760 * record.c (bfdcore_write): Ditto.
3761 * remote-mips.c (mips_readchar): Ditto.
3762 * remote.c (read_ptid): Ditto.
3763 * ser-mingw.c (ser_windows_raw): Ditto.
3764 * tracepoint.c (add_local_symbols): Ditto.
3765 * windows-nat.c (fake_create_process): Ditto.
3767 2011-03-16 Tom Tromey <tromey@redhat.com>
3769 * tracepoint.c (stop_tracing): Don't declare.
3770 * event-top.c (after_char_processing_hook): Add `(void)'.
3772 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3774 * NEWS: Add Parameter sub-classing description.
3776 2011-03-16 Kai Tietz <ktietz@redhat.com>
3778 * MAINTAINERS: Update my e-mail address.
3780 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
3782 * MAINTAINERS: Add myself for write after approval privileges.
3784 2011-03-15 Michael Snyder <msnyder@vmware.com>
3786 * frame.c (find_frame_sal): Assert sym is not null.
3788 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3790 * objc-lang.c (selectors_info): Check strchr for null result.
3792 * stabsread.c (define_symbol): Guard against bad stabstring input.
3794 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3796 Remove trailing spaces and tabulations from pascal language
3801 p-valprint.c: Ditto.
3803 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3805 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3806 than LOW. Comment it.
3807 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3808 HIGHPC not strictly higher than LOWPC.
3810 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3812 Fix formatting of function declarations returning a pointer in
3814 * varobj.c (varobj_add_child): Ditto.
3815 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3816 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3818 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3820 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3821 for the "generic" vector ABI used with GCC 4.3 and later.
3822 (ppc64_sysv_abi_return_value): Likewise.
3824 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3826 * infcall.c (call_function_by_hand): Function return value is
3827 always a non_lval, even when using struct_return.
3829 2011-03-15 Pedro Alves <pedro@codesourcery.com>
3831 * printcmd.c (ALL_DISPLAYS_SAFE): New.
3832 (map_display_numbers): New.
3833 (do_delete_display): New.
3834 (undisplay_command): Use map_display_numbers.
3835 (do_enable_disable_display): New.
3836 (enable_disable_display_command): New function.
3837 (enable_display): Delete.
3838 (enable_display_command): New.
3839 (disable_display_command): Reimplement.
3840 (_initialize_printcmd): Adjust "enable display" command to use
3841 `enable_display_command' as callback.
3843 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3845 * NEWS: Add Python breakpoint 'stop' operation.
3847 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3849 * NEWS: Delete duplicate entry. Fix typo.
3851 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3853 Fix ARI warning about function names in first column.
3854 Put prototype declaration on same line as return type.
3855 * objc-exp.y: Ditto.
3857 * python/py-stopevent.h: Ditto.
3858 For long function names, split parameters to
3859 allow function name on same line as return type.
3860 * solib-pa64.c: Ditto.
3863 For long function declaration, use single line.
3864 * hppa-tdep.h: Ditto.
3865 * inferior.h: Ditto.
3867 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3869 * python/python.h: Declare gdbpy_should_stop and
3870 gdbpy_breakpoint_has_py_cond.
3871 * python/python.c: Add python.h to includes. Remove python.h from
3872 HAVE_PYTHON definition
3873 (gdbpy_should_stop): New dummy function.
3874 (gdbpy_breakpoint_has_py_cond): New dummy function.
3875 * python/py-breakpoint.c (bppy_init): Rewrite to allow
3876 sub-classing capabilities.
3877 (gdbpy_should_stop): New function.
3878 (gdbpy_breakpoint_has_py_cond): New function.
3879 (local_setattro): New function.
3880 * breakpoint.c (condition_command): Add check for Python 'stop'
3882 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3883 operation function as part of stop/continue tests.
3885 2011-03-14 Tom Tromey <tromey@redhat.com>
3888 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
3889 (needs_frame_dwarf_call): Likewise.
3891 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3893 Fix ARI warning about functions without parameters that do not
3895 * breakpoint.c (all_tracepoints): Replace () by (void).
3896 * f-exp.y (match_string_literal): Ditto.
3898 * m2-exp.y (yylex): Ditto.
3899 * mep-tdep.c (current_me_module): Ditto.
3900 (current_options): Ditto.
3901 (current_cop_data_bus_width): Ditto.
3902 (current_cr_names): Ditto.
3903 (current_cr_is_float): Ditto.
3904 (current_ccr_names): Ditto.
3905 * objc-exp.y (yylex): Ditto.
3906 * p-exp.y (yylex): Ditto.
3907 * remote.c (send_interrupt_sequence): Ditto.
3908 * tracepoint.c (current_trace_status): Ditto.
3909 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
3910 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
3912 2011-03-11 Michael Snyder <msnyder@vmware.com>
3914 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
3915 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
3916 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
3917 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
3918 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
3920 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
3921 (delete_async_event_handler): Ditto.
3923 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
3925 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
3927 * top.c (set_verbose): Assert showcmd was found.
3929 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
3931 * xtensa-tdep.c (warning_once): Correct style issues.
3933 2011-03-11 Yao Qi <yao@codesourcery.com>
3935 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
3937 2011-03-11 Andreas Schwab <schwab@redhat.com>
3939 * common/aclocal.m4: Remove.
3941 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3943 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
3944 (xtensa_write_register, xtensa_read_register): Likewise.
3945 (xtensa_hextochar): Removed.
3946 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
3948 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3950 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
3951 (xtensa_call0_frame_cache_t): Update comments. New fields added.
3952 (xtensa_alloc_frame_cache): Add initialization for new fields.
3953 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
3954 (warning_once): New function.
3955 (xtensa_insn_kind): New item c0opc_and.
3956 (call0_classify_opcode): Add the case for AND instruction.
3957 (call0_track_op): Change arguments. New local variable litbase.
3958 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
3959 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
3961 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
3962 (call0_analyze_prologue): Update the comments. Change arguments.
3963 Add the variety of updates to handle extended prologues, which now can
3964 conduct dynamic stack adjustments.
3965 (call0_frame_cache): Likewise.
3966 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
3967 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
3969 2011-03-10 Michael Snyder <msnyder@vmware.com>
3971 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
3972 (cmd_qtframe): Ditto.
3973 (cmd_qtbuffer): Ditto.
3974 (cmd_bigqtbuffer): Ditto.
3976 2011-03-10 Tom Tromey <tromey@redhat.com>
3978 * tracepoint.c (trace_actions_command): Update.
3979 * thread.c (thread_apply_command): Update.
3980 * reverse.c (delete_bookmark_command): Update.
3981 (bookmarks_info): Update.
3982 * printcmd.c (undisplay_command): Update.
3983 * memattr.c (mem_enable_command): Update.
3984 (mem_disable_command): Update.
3985 (mem_delete_command): Update.
3986 * inferior.c (detach_inferior_command): Update.
3987 (kill_inferior_command): Update.
3988 (remove_inferior_command): Update.
3989 * cli/cli-utils.h (struct get_number_or_range_state): New.
3990 (init_number_or_range): Declare.
3991 (get_number_or_range): Update.
3992 * cli/cli-utils.c (init_number_or_range): New function.
3993 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
3995 (number_is_in_list): Update.
3996 * breakpoint.h (get_tracepoint_by_number): Update.
3997 * breakpoint.c (map_breakpoint_numbers): Update for change to
3998 get_number_or_range.
3999 (find_location_by_number): Use get_number, not
4000 get_number_or_range.
4001 (trace_pass_set_count): New function.
4002 (trace_pass_command): Update for change to get_number_or_range.
4004 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4007 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
4009 * python/py-param.c (add_setshow_generic): Add set/show callback
4010 parameters. Register Python object context.
4011 (get_show_value): New function.
4012 (get_set_value): New function.
4013 (call_doc_function): New function.
4014 (get_doc_string): Move behind get_show_value/get_set_value.
4016 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
4018 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4020 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
4022 * xtensa-tdep.c (xtensa_read_register): Add comment.
4023 (xtensa_write_register): Likewise.
4024 (xtensa_hextochar): Add comment and update to match coding conventions.
4025 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4026 (execute_l32e, execute_s32e, execute_code): Update comments.
4027 (xtensa_exception_handler_t): Update to match coding conventions.
4028 (xtensa_insn_kind): Likewise.
4030 2011-03-09 Michael Snyder <msnyder@vmware.com>
4032 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4034 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4036 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4038 2011-03-09 Tom Tromey <tromey@redhat.com>
4040 * thread.c (restore_selected_frame): Handle frame_level == -1.
4041 (make_cleanup_restore_current_thread): Use
4042 get_selected_frame_if_set.
4043 * frame.h (get_selected_frame_if_set): Declare.
4044 * frame.c (get_selected_frame_if_set): New function.
4046 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4048 * cli/cli-cmds.c (shell_escape): Use lbasename.
4049 * coffread.c (coff_start_symtab): Constify parameter.
4050 (complete_symtab): Constify `name' parameter.
4051 (coff_symtab_read): Constify `filestring' local.
4052 (coff_getfilename): Constify return and `result' local.
4054 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4055 * linux-fork.c (info_checkpoints_command): Use lbasename.
4056 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4057 * minsyms.c (lookup_minimal_symbol): Use lbasename.
4058 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4059 * procfs.c (procfs_make_note_section): Use lbasename.
4060 * tui/tui-io.c (printable_part): Constity return and parameter.
4062 (print_filename): Constify parameters, and local `s'.
4063 (tui_rl_display_match_list): Constify local `temp'.
4065 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4068 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4069 Fix DWARF-3+ DW_AT_accessibility default assumption.
4070 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4071 cu->header.version >= 3.
4073 2011-03-09 Yao Qi <yao@codesourcery.com>
4075 * common/Makefile.in: Remove.
4076 * common/configure: Remove.
4077 * common/configure.ac: Remove.
4079 2011-03-09 Yao Qi <yao@codesourcery.com>
4082 2011-02-11 Yao Qi <yao@codesourcery.com>
4084 * common/Makefile.in: Add copyright header.
4086 2011-02-11 Yao Qi <yao@codesourcery.com>
4088 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4090 * configure.ac: Add common to sub dir.
4091 * configure: Regenerate.
4093 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4095 * xtensa-tdep.c (call0_ret): New function.
4096 (xtensa_skip_prologue): Speed up analysis.
4098 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4100 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
4101 while executing MI command -data-list-changed-registers.
4103 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4105 * xtensa-tdep.c (xtensa_read_register): New function.
4106 (xtensa_write_register): New function.
4107 (xtensa_find_register_by_name): New function.
4108 (xtensa_windowed_frame_cache): Update comments in type description.
4109 (xtensa_frame_cache): Likewise.
4110 (xtensa_window_interrupt_insn): New function.
4111 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
4112 (xtensa_insn_kind): Add new instructions.
4113 (rwx_special_register): New function.
4114 (call0_classify_opcode): Add new instructions to the analysis.
4115 (a0_saved, a7_saved, a11_saved): New variables.
4116 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
4117 (execute_l32e): New function.
4118 (execute_s32e): New function.
4119 (xtensa_exception_handler_t): New type.
4120 (execute_code): New function.
4121 (xtensa_window_interrupt_frame_cache): New function to conduct frame
4122 analysis for Xtensa Window Exception handlers.
4124 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4126 * xtensa-tdep.c (TX_PS): New.
4127 (windowing_enabled): Update to count for Call0 ABI.
4128 (xtensa_hextochar): New.
4129 (xtensa_init_reggroups): Make algorithm generic.
4130 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4132 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4134 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4136 2011-03-08 Michael Snyder <msnyder@vmware.com>
4138 * i386-tdep.c (i386_follow_jump): Check return value of
4140 (i386_analyze_struct_return): Ditto.
4141 (i386_skip_probe): Ditto.
4142 (i386_match_insn): Ditto.
4143 (i386_skip_noop): Ditto.
4144 (i386_analyze_frame_setup): Ditto.
4145 (i386_analyze_register_saves): Ditto.
4146 (i386_skip_prologue): Ditto.
4147 (i386_skip_main_prologue): Ditto.
4149 * target.c (read_whatever_is_readable): Fix memory leak.
4151 * i386-tdep.c (i386_process_record): Document fall through.
4153 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4155 Fix DWARF-3+ DW_AT_accessibility default assumption.
4156 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4157 cu->header.version >= 3.
4159 2011-03-08 Pedro Alves <pedro@codesourcery.com>
4161 * remote.c (remote_check_symbols): Skip if the target has no
4164 2011-03-08 Joel Brobecker <brobecker@adacore.com>
4166 * target.c (read_whatever_is_readable): Reformat comment,
4167 with a minor typo fix. Minor reformatting of the code.
4169 2011-03-08 Yao Qi <yao@codesourcery.com>
4171 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4172 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4173 Use cached result instead of calling displaced_in_arm_mode again.
4174 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4175 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4176 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4177 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4178 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4179 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4180 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4181 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4182 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4183 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4184 (arm_catch_kernel_helper_return): Likewise.
4185 * gdb/arm-tdep.h : Update function declarations.
4187 2011-03-07 Michael Snyder <msnyder@vmware.com>
4189 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4191 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4193 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4195 * elfread.c (elf_symtab_read): Stop memory leak.
4197 * main.c (captured_main): Fix memory leak.
4199 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
4201 * ada-lang.c (compare_names): Call is_name_suffix with string1
4204 2011-03-07 Tom Tromey <tromey@redhat.com>
4206 * xcoffread.c (xcoff_sym_fns): Update.
4207 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4208 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4209 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4210 (symbol_file_add_with_addrs_or_offsets): Likewise.
4211 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4212 * somread.c (som_sym_fns): Update.
4213 * psymtab.h (require_partial_symbols): Declare.
4214 * psymtab.c (require_partial_symbols): New function.
4215 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4216 (ALL_OBJFILE_PSYMTABS): Undef.
4217 (ALL_PSYMTABS): Move from psympriv.h.
4218 (lookup_partial_symtab, find_pc_sect_psymtab)
4219 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4220 (find_last_source_symtab_from_partial)
4221 (forget_cached_source_info_partial)
4222 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4223 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4224 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4225 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4226 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4227 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4228 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4229 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4230 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4232 * mipsread.c (ecoff_sym_fns): Update.
4233 * machoread.c (macho_sym_fns): Update.
4234 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4235 (read_psyms): New function.
4236 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4237 (elf_sym_fns_lazy_psyms): New global.
4238 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4239 dwarf2_build_psymtabs.
4240 * dbxread.c (aout_sym_fns): Update.
4241 * coffread.c (coff_sym_fns): Update.
4243 2011-03-07 Tom Tromey <tromey@redhat.com>
4245 * infrun.c (print_exited_reason): Include inferior id and pid in
4248 2011-03-07 Tom Tromey <tromey@redhat.com>
4250 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4252 (target_has_execution_1): Update.
4253 (target_has_execution_current): Declare.
4254 (target_has_execution): Call target_has_execution_current.
4255 (default_child_has_execution): Update.
4256 * target.c (default_child_has_execution): Add 'the_ptid'
4258 (target_has_execution_1): Likewise.
4259 (target_has_execution_current): New function.
4260 (add_target): Update.
4261 (init_dummy_target): Update.
4262 * remote-m32r-sdi.c (m32r_has_execution): New function.
4263 (init_m32r_ops): Use it.
4264 * record.c (record_core_has_execution): Now static. Add
4265 'the_ptid' parameter.
4266 * inferior.c (have_live_inferiors): Don't save current thread.
4267 Use target_has_execution_1.
4269 2011-03-07 Yao Qi <yao@codesourcery.com>
4271 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4273 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4275 * elfread.c (elf_symtab_read): Minor reformatting.
4277 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4279 * objc-lang.c (selectors_info): Minor reformatting.
4281 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4283 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4285 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4286 Michael Snyder <msnyder@vmware.com>
4288 * ada-valprint.c (ada_val_print_array): Move the declaration of
4289 "byte_order" and "elttype" inside the block where these variables
4290 are actually used. Remove some special handling for the case
4291 where "elttype" and "eltlen" are null. Replace by a comment
4292 and a couple of assertion checks.
4294 2011-03-05 Michael Snyder <msnyder@vmware.com>
4296 * source.c (add_path): Replace semicolon at end of block.
4297 * dwarf2expr.c (execute_stack_op): Ditto.
4299 2011-03-05 Mike Frysinger <vapier@gentoo.org>
4301 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4302 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4303 (bfin-*-*): Likewise.
4305 2011-03-05 Michael Snyder <msnyder@vmware.com>
4307 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4308 * mdebugread.c (parse_symbol): Ditto.
4309 * parse.c (parse_exp_in_context): Ditto.
4310 * source.c (add_path): Ditto.
4311 * utils.c (gnu_debuglink_crc32): Ditto.
4312 * varobj.c (variable_language): Ditto.
4314 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4316 2011-03-04 Michael Snyder <msnyder@vmware.com>
4318 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4320 * symfile.c (simple_overlay_update): Check for null return value
4321 from lookup_minimal_symbol.
4323 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4325 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4327 * eval.c (parse_and_eval_address_1): Remove function.
4328 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4329 instead of parse_and_eval_address_1.
4330 * value.h (parse_and_eval_address_1): Remove prototype.
4332 2011-03-04 Michael Snyder <msnyder@vmware.com>
4334 * remote.c (putpkt_binary): Document that case stmt falls through.
4336 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4338 * breakpointc (print_it_typical): Move NULL check from here...
4339 (print_bp_stop_message): ... to here.
4341 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4343 * breakpoint.c (enable_command): Use break instead of continue,
4344 and fill in a missing break.
4345 (disable_command): Ditto.
4347 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4349 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4350 (terminal_save_ours): Remove misleading comment.
4351 (inflow_inferior_data_cleanup): Free ttystate.
4352 (inflow_inferior_exit): Likewise.
4353 (copy_terminal_info): Copy ttystate.
4355 * serial.c (serial_copy_tty_state): New function.
4356 * serial.h (serial_copy_tty_state): Add prototype.
4357 (struct serial_ops): Add copy_tty_state callback.
4358 * ser-base.c (ser_base_copy_tty_state): New function.
4359 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4360 * ser-go32.c (dos_copy_tty_state): New function.
4361 (dos_ops): Install copy_tty_state callback.
4362 * ser-mingw.c (_initialize_ser_windows): Likewise.
4363 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4364 * ser-unix.c (hardwire_copy_tty_state): New function.
4365 (_initialize_ser_hardwire): Install it.
4367 2011-03-04 Michael Snyder <msnyder@vmware.com>
4369 * breakpoint.c (create_breakpoint): Add missing break statement.
4371 Reverting this patch:
4372 * infcall.c (call_function_by_hand): Add break statements for lint.
4374 Reverting this patch:
4375 * cli/cli-script.c (script_from_file): Add break for lint.
4377 2011-03-04 Michael Snyder <msnyder@vmware.com>
4379 * solib.c (reload_shared_libraries_1): Close memory leak.
4381 2011-03-03 Tom Tromey <tromey@redhat.com>
4384 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4387 2011-03-03 Michael Snyder <msnyder@vmware.com>
4389 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4390 fields of struct 'st' to zero.
4392 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4393 sal.pspace before calling set_current_source_symtab_and_line.
4395 2011-03-03 Yao Qi <yao@codesourcery.com>
4397 * Makefile.in (configure-common): Remove. Let Makefile
4398 in dir common to rebuild itself.
4399 (common/Makefile): Likewise.
4401 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4403 * utils.c (parse_escape): Add i18n markup in error message.
4405 2011-03-03 Yao Qi <yao@codesourcery.com>
4407 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4409 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4410 (displaced_write_reg, displaced_read_reg): Likewise.
4411 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4412 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4413 (cleanup_branch): Replace magic number 14 and 15 with
4414 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4416 2011-03-02 Michael Snyder <msnyder@vmware.com>
4418 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4420 * cli/cli-script.c (script_from_file): Add break for lint.
4422 * mdebugread.c (parse_partial_symbols): Fix indent.
4424 * target-descriptions.c (tdesc_gdb_type): No need to call
4425 xstrdup, callee saves a copy.
4427 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4429 * infcall.c (call_function_by_hand): Add break statements for lint.
4431 * utils.c (parse_escape): Escape the escape char.
4433 * python/py-inferior.c (build_inferior_list): Error out if
4434 PyList_Append fails.
4435 (gdbpy_inferiors): Error out if build_inferior_list fails.
4437 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4440 * record.c (record_restore): Move printf to before error return.
4442 2011-03-02 Yao Qi <yao@codesourcery.com>
4444 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4445 is_thumb and insn_size.
4446 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4447 on both ARM and Thumb mode.
4448 (arm_process_displaced_insn): Set is_thumb and insn_size.
4449 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4450 (arm_displaced_step_fixup): Likewise.
4452 2011-03-01 Michael Snyder <msnyder@vmware.com>
4454 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4456 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4458 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4460 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4462 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4465 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4466 which shadows function parameter.
4468 * tracepoint.c (create_tsv_from_upload): Superfluous call
4469 to xstrdup. Callee already calls xstrdup.
4471 * linespec.c (decode_line_1): Remove unnecessary null check.
4473 * tracepoint.c (scope_info): Fix mem leak, remove underused
4476 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4477 superfluous null check.
4479 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4480 (value_of_builtin_frame_fp_reg): Ditto.
4482 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4484 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4487 * linespec.c (decode_line_1): Check for null before dereference.
4489 * reverse.c (record_restore): Move null-check to before pointer
4492 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4494 * objc-lang.c (selectors_info): Add explanitory comment.
4495 (classes_info): Ditto.
4497 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4499 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4500 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4501 versions of the trampoline. Handle Thumb vs. ARM addresses.
4502 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4503 (arm_linux_init_abi): Install it.
4504 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4505 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4507 2011-02-28 Michael Snyder <msnyder@vmware.com>
4509 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4510 a little bigger, to avoid possibility of an overflow.
4512 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4513 buffers a little bigger, to avoid possibility of an overflow.
4515 * coffread.c (coff_getfilename): Add check to avoid overflow.
4517 * objc-lang.c (selectors_info): Add a small safety margin to
4519 (classes_info): Error out on too long REGEXP.
4521 * infrun.c (handle_inferior_event): Remove unused function call.
4523 * fork-child.c (fork_inferior): Remove ifdef'd code and
4526 * linux-thread-db.c (attach_thread): Discard unused value.
4528 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4530 * remote.c (remote_get_noisy_reply): Discard unused value.
4531 (remote_vcont_resume): Ditto.
4532 (remote_stop_ns): Ditto.
4534 * linespec.c (decode_objc): Delete unused variable.
4536 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4538 * dwarf2read.c (add_partial_symbol): Discard unused values.
4539 (read_base_type): Delete unused variable.
4541 * dbxread.c (read_dbx_symtab): Discard unused value.
4543 * eval.c (evaluate_subexp_standard): Delete unused variable,
4544 and discard unused values.
4546 * infcmd.c (_initialize_infcmd): Discard unused values.
4548 * stabsread.c (rs6000_builtin_type): Missing break statement.
4550 * dbxread.c (process_one_symbol): Discard unused value.
4552 * coffread.c (coff_end_symtab): Delete unused variable.
4554 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4555 (dwarf2_add_typedef): Delete unused variable.
4556 (read_namespace): Ditto.
4557 (dwarf_decode_macros): Ditto.
4559 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4561 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4563 * p-valprint.c (pascal_val_print): Discard unused value.
4565 * utils.c (nquery): Call va_end before return;
4569 * proc-service.c (ps_plog): Call va_end before return.
4571 2011-02-28 Tom Tromey <tromey@redhat.com>
4573 * python/python.c (gdbpy_value_cst): New global.
4574 (_initialize_python): Initialize it.
4575 * python/python-internal.h (gdbpy_value_cst): Declare.
4576 * python/py-value.c (convert_value_from_python): Use
4579 2011-02-28 Michael Snyder <msnyder@vmware.com>
4581 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4583 * breakpoint.c (catch_syscall_completer): Free malloced list.
4585 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4587 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4588 (lval_func_check_synthetic_pointer): Ditto.
4589 (lval_func_free_closure): Fix use-after-free.
4591 2011-02-28 Tom Tromey <tromey@redhat.com>
4593 * psymtab.c (expand_partial_symbol_tables): Use
4594 ALL_OBJFILE_PSYMTABS.
4596 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4598 * objc-lang.c (selectors_info): Error on too long REGEXP.
4600 2011-02-28 Michael Snyder <msnyder@vmware.com>
4602 * python/py-param.c (set_parameter_value): Add missing
4605 * linux-record.c (record_linux_system_call): Add missing
4608 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4610 * breakpoint.c (print_one_breakpoint_location): Remove unused
4611 argument PRINT_ADDRESS_BITS. Update callers.
4612 (print_one_breakpoint): Likewise.
4614 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4616 * breakpoint.c (wrap_indent_at_field): New function.
4617 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4618 Allocate ui_stream locally instead of using STB argument.
4619 (print_one_breakpoint_location): Update call.
4620 * ui-out.c (ui_out_query_field): New function.
4621 * ui-out.h (ui_out_query_field): Add prototype.
4623 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4625 From Michael Snyder <msnyder@vmware.com>
4626 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4628 2011-02-27 Michael Snyder <msnyder@vmware.com>
4630 * objc-lang.c (selectors_info): Prevent string overrun.
4632 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4635 * symtab.c (rbreak_command): Move variable 'file_name' to
4638 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4639 param with a local variable of the same name.
4641 2011-02-27 Michael Snyder <msnyder@vmware.com>
4643 * value.c (value_from_history_ref): New function.
4644 * value.h (value_from_history_ref): Export.
4645 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4646 to parse value history references.
4647 * cli/cli-utils.h (get_number_trailer): Update comment.
4649 2011-02-27 Michael Snyder <msnyder@vmware.com>
4651 * inferior.c (detach_inferior_command): Use get_number_or_range.
4652 (kill_inferior_command): Ditto.
4653 (remove_inferior_command): Ditto.
4654 (initialize_inferiors): Make command names plural.
4655 Update help strings.
4657 2011-02-27 Michael Snyder <msnyder@vmware.com>
4659 * darwin-nat-info.c: Fix comment typo.
4660 * dwarf2expr.h: Ditto.
4661 * fbsd-nat.c: Ditto.
4662 * fbsd-nat.h: Ditto.
4663 * frame-unwind.h: Ditto.
4665 * hppa-hpux-tdep.c: Ditto.
4666 * i386-linux-nat.c: Ditto.
4667 * linux-nat.c: Ditto.
4668 * nbsd-nat.c: Ditto.
4669 * nbsd-nat.h: Ditto.
4670 * ppc-linux-tdep.c: Ditto.
4673 * tui/tui-winsource.c: Ditto.
4675 2011-02-26 Michael Snyder <msnyder@vmware.com>
4677 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4679 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4681 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4682 with a local variable of the same name.
4684 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4685 param with a local variable of the same name.
4686 (i387_supply_xsave): Ditto.
4688 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4689 that it does not shadow a function parameter.
4691 * i386-nat.c (i386_length_and_rw_bits): Document that case
4692 statement is meant to fall through.
4694 * expprint.c (dump_subexp_body_standard): Document that case
4695 statement is meant to fall through.
4697 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4698 dead if statement. Condition can't be false.
4700 2011-02-25 Michael Snyder <msnyder@vmware.com>
4702 * arm-tdep.c: Fix typos in comments.
4703 * bsd-uthread.c: Ditto.
4704 * completer.c: Ditto.
4706 * cp-namespace.c: Ditto.
4707 * cp-support.c: Ditto.
4708 * cris-tdep.c: Ditto.
4710 * dwarf2read.c: Ditto.
4712 * gdbtypes.h: Ditto.
4713 * inferior.h: Ditto.
4714 * mdebugread.c: Ditto.
4715 * mips-tdep.c: Ditto.
4716 * ppc-linux-nat.c: Ditto.
4717 * ppc-linux-tdep.c: Ditto.
4718 * printcmd.c: Ditto.
4719 * sol-thread.c: Ditto.
4720 * solib-frv.c: Ditto.
4722 * sparc64-tdep.c: Ditto.
4723 * spu-tdep.c: Ditto.
4724 * stabsread.c: Ditto.
4729 * python/py-block.c: Ditto.
4730 * python/py-symbol.c: Ditto.
4731 * python/py-symtab.c: Ditto.
4732 * python/py-value.c: Ditto.
4733 * tui/tui-win.c: Ditto.
4735 2011-02-25 Michael Snyder <msnyder@vmware.com>
4737 * inferior.c (print_inferior): Accept a string instead of an int
4738 for requested_inferiors, and use get_number_or_range to parse it.
4739 (info_inferiors_command): Pass args string to print_inferior.
4740 (initialize_inferiors): Change help string for info inferiors.
4741 * inferior.h (print_inferior): Export prototype change.
4743 2011-02-25 Tom Tromey <tromey@redhat.com>
4745 * common/ax.def (invalid2): Set to 0x31.
4747 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4749 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4751 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4753 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4755 2011-02-24 Michael Snyder <msnyder@vmware.com>
4757 * Makefile.in (clean): Make clean should remove generated files
4758 observer.h and observer.inc.
4760 2011-02-24 Joel Brobecker <brobecker@adacore.com>
4762 Revert the following patch (not approved yet):
4763 2011-02-21 Hui Zhu <teawater@gmail.com>
4764 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4765 * ax-gdb.c (gen_printf_expr_callback): New function.
4766 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4767 * ax-general.c (ax_memcpy): New function.
4768 (ax_print): Handle "printf".
4770 * ax.h (ax_memcpy): Forward declare.
4771 * common/ax.def (invalid2): Removed.
4772 (printf): New entry.
4773 * printcmd.c (printcmd.h): New include.
4774 (string_printf): New function.
4775 (ui_printf): Removed.
4776 (printf_command): Remove static. Call string_printf.
4777 (eval_command): Call string_printf.
4778 * printcmd.h: New file.
4779 * tracepoint.c (validate_actionline,
4780 encode_actions_1): handle printf_command.
4782 2011-02-23 Tom Tromey <tromey@redhat.com>
4784 * ax-general.c (ax_pick): Add missing newline.
4786 2011-02-23 Michael Snyder <msnyder@vmware.com>
4788 * breakpoint.c (breakpoint_1): Change first argument from an int
4789 to a char pointer, so that the function now accepts a list of
4790 breakpoints rather than just one. Use new function
4791 'number_is_in_list' to implement.
4792 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4793 (watchpoints_info): Ditto.
4794 (tracepoints_info): Ditto.
4795 (maintenance_info_breakpoints): Ditto.
4796 (_initialize_breakpoint): Update help strings to reflect the fact
4797 that these functions can now take more than one argument.
4798 * cli/cli-utils.c (number_is_in_list): New function.
4799 * cli/cli-utils.h (number_is_in_list): Export.
4801 2011-02-23 Michael Snyder <msnyder@vmware.com>
4803 * memattr.c (mem_enable_command): Use get_number_or_range.
4804 (mem_disable_command): Ditto.
4805 (mem_delete_command): Ditto.
4806 (_initialize_mem): Tweak usage message to reflect multiple
4809 2011-02-22 Doug Evans <dje@google.com>
4811 Add gdb.lookup_global_symbol python function.
4813 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4814 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4815 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4817 2011-02-22 Tom Tromey <tromey@redhat.com>
4819 * language.c (language_class_name_from_physname): Rename
4820 'curr_language' argument to 'lang'; use in body.
4822 2011-02-22 Michael Snyder <msnyder@vmware.com>
4824 * cli/cli-utils.c (number_is_in_list): Check for zero return.
4826 2011-02-22 Pedro Alves <pedro@codesourcery.com>
4828 * frame-unwind.h: Fix comment to mention the this frame, not the
4831 2011-02-22 Tom Tromey <tromey@redhat.com>
4833 * symfile.c (auto_solib_limit): Remove.
4834 * symfile.h (auto_solib_limit): Remove.
4836 2011-02-22 Joel Brobecker <brobecker@adacore.com>
4838 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4840 2011-02-21 Michael Snyder <msnyder@vmware.com>
4842 * gdbthread.h (print_thread_info): Change prototype.
4843 * thread.c (print_thread_info): Accept char* instead of int for
4844 requested_threads argument. Use new function number_is_in_list
4845 to determine which threads to list.
4846 (info_threads_command): Pass char* to print_thread_info.
4847 * cli/cli-utils.c (number_is_in_list): New function.
4848 * cli/cli-utils.h (number_is_in_list): Export.
4849 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4851 (print_one_inferior): Ditto.
4852 (mi_cmd_list_thread_groups): Ditto.
4854 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4856 * common/Makefile.in (CFLAGS): New.
4857 (COMPILE): Add $(CFLAGS).
4859 2011-02-21 Tom Tromey <tromey@redhat.com>
4861 * breakpoint.c (catch_syscall_command_1): Fix typo.
4863 2011-02-21 Tom Tromey <tromey@redhat.com>
4865 * reverse.c: Include cli-utils.h.
4866 * printcmd.c: Include cli-utils.h.
4867 (string_printf): Use skip_spaces.
4868 * cli/cli-utils.h: New file.
4869 * cli/cli-utils.c: New file.
4870 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4871 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4872 * breakpoint.h (get_number, get_number_or_range): Move to
4874 * breakpoint.c: Include cli-utils.h.
4875 (get_number_trailer, get_number, get_number_or_range)
4876 (ep_skip_leading_whitespace): Move to cli-utils.c.
4877 (create_breakpoint_sal, find_condition_and_thread)
4878 (decode_static_tracepoint_spec, watch_command_1)
4879 (watch_maybe_just_location, ep_parse_optional_if_clause)
4880 (catch_fork_command_1, catch_exec_command_1)
4881 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4882 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4883 (SUBDIR_CLI_SRCS): Add cli-utils.c.
4884 (HFILES_NO_SRCDIR): Add cli-utils.h.
4885 (cli-utils.o): New target.
4887 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4889 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
4890 before calling discard_all_inferiors.
4892 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4894 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
4895 (struct builtin_opencl_type): Remove.
4896 (builtin_opencl_type): Change return type to "struct type **".
4897 (lookup_opencl_vector_type): Update caller.
4898 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
4899 (build_opencl_types): Install plain array of "struct type *"
4900 instead of "struct builtin_opencl_type".
4902 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4903 Ulrich Weigand <uweigand@de.ibm.com>
4905 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
4906 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
4907 (struct arm_linux_hwbp_cap): New type.
4908 (arm_linux_get_hwbp_cap): New function.
4909 (arm_linux_get_hw_breakpoint_count): Likewise.
4910 (arm_linux_get_hw_watchpoint_count): Likewise.
4911 (arm_linux_can_use_hw_breakpoint): Likewise.
4912 (arm_hwbp_type): New type.
4913 (arm_hwbp_control_t): Likewise.
4914 (struct arm_linux_hw_breakpoint): Likewise.
4915 (struct arm_linux_thread_points): Likewise.
4916 (arm_threads): New global variable.
4917 (arm_linux_find_breakpoints_by_tid): New function.
4918 (arm_hwbp_control_initialize): Likewise.
4919 (arm_hwbp_control_is_enabled): Likewise.
4920 (arm_hwbp_control_disable): Likewise.
4921 (arm_linux_hw_breakpoint_initialize): Likewise.
4922 (arm_linux_get_hwbp_type): Likewise.
4923 (arm_linux_hw_watchpoint_initialize): Likewise.
4924 (arm_linux_hw_breakpoint_equal): Likewise.
4925 (arm_linux_insert_hw_breakpoint1): Likewise.
4926 (arm_linux_remove_hw_breakpoint1): Likewise.
4927 (arm_linux_insert_hw_breakpoint): Likewise.
4928 (arm_linux_remove_hw_breakpoint): Likewise.
4929 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
4930 (arm_linux_insert_watchpoint): Likewise.
4931 (arm_linux_remove_watchpoint): Likewise.
4932 (arm_linux_stopped_data_address): Likewise.
4933 (arm_linux_stopped_by_watchpoint): Likewise.
4934 (arm_linux_watchpoint_addr_within_range): Likewise.
4935 (arm_linux_new_thread): Likewise.
4936 (arm_linux_thread_exit): Likewise.
4937 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
4938 related target callbacks. Register arm_linux_new_thread and
4939 arm_linux_thread_exit.
4940 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
4941 * arm-tdep.c (arm_pc_is_thumb): Make global.
4942 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
4944 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4946 * breakpoint.c (update_watchpoint): Do not attempt to recreate
4947 per-frame locations while within a function epilogue.
4949 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4951 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
4952 to GNU coding standards.
4954 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4956 Allow use of mingw native on Windows 95 OS.
4957 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4958 (ser_windows_close): Only call CancelIo if function exists.
4959 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
4960 to check for existence of CancelIo function in kernel32 DLL.
4962 2011-02-21 Hui Zhu <teawater@gmail.com>
4964 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4965 * ax-gdb.c (gen_printf_expr_callback): New function.
4966 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4967 * ax-general.c (ax_memcpy): New function.
4968 (ax_print): Handle "printf".
4970 * ax.h (ax_memcpy): Forward declare.
4971 * common/ax.def (invalid2): Removed.
4972 (printf): New entry.
4973 * printcmd.c (printcmd.h): New include.
4974 (string_printf): New function.
4975 (ui_printf): Removed.
4976 (printf_command): Remove static. Call string_printf.
4977 (eval_command): Call string_printf.
4978 * printcmd.h: New file.
4979 * tracepoint.c (validate_actionline,
4980 encode_actions_1): handle printf_command.
4982 2011-02-19 Michael Snyder <msnyder@vmware.com>
4984 * reverse.c (delete_one_bookmark): Argument is now bookmark
4985 id rather than pointer to bookmark struct.
4986 (delete_bookmark_command): Use get_number_or_range.
4987 (goto_bookmark_command): Parse with get_number instead of strtoul.
4988 (bookmark_1): New function. Print info for one bookmark.
4989 (bookmarks_info): Use get_number_or_range and bookmark_1.
4991 2011-02-18 Michael Snyder <msnyder@vmware.com>
4993 * thread.c (info_threads_command): Re-implement using
4994 get_number_or_range.
4995 (thread_apply_command): Ditto.
4997 2011-02-18 Tom Tromey <tromey@redhat.com>
4999 * common/ax.def: New file.
5000 * ax.h (enum agent_op): Use ax.def.
5001 * ax-general.c (aop_map): Use ax.def.
5003 2011-02-18 Tom Tromey <tromey@redhat.com>
5005 * ax-general.c (aop_map): Add pick and rot.
5006 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5007 <DW_OP_rot>: Implement.
5008 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5010 * ax-general.c (ax_pick): New function.
5012 2011-02-18 Tom Tromey <tromey@redhat.com>
5014 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5016 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5017 Tom Tromey <tromey@redhat.com>
5019 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5020 make_symbol_overload_list_block with NULL BLOCK.
5021 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5023 2011-02-18 Pedro Alves <pedro@codesourcery.com>
5025 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5026 * breakpoint.h (get_number_or_range): Declare.
5027 * printcmd.c (ALL_DISPLAYS): Declare.
5028 (delete_display): Reimplement taking a display pointer.
5029 (undisplay_command): Accept a range of displays to delete, using
5030 get_number_or_range.
5032 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5034 * c-valprint.c (c_val_print): Add embedded_offset to address
5035 for arrays of unspecified length.
5036 * p-valprint.c (pascal_val_print): Likewise.
5038 2011-02-18 Yao Qi <yao@codesourcery.com>
5040 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5041 (arm_process_displaced_insn): .. here. Remove parameter INSN.
5042 (thumb_process_displaced_insn): New.
5043 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5044 call to arm_process_displaced_insn.
5045 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5047 2011-02-17 Tom Tromey <tromey@redhat.com>
5049 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5050 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5051 compile_dwarf_to_ax. No longer static. Call
5052 dwarf2_compile_cfa_to_ax.
5053 (locexpr_tracepoint_var_ref): Update.
5054 (loclist_tracepoint_var_ref): Update.
5055 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5056 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5057 argument; add 'gdbarch' and 'pc'.
5058 (dwarf2_compile_cfa_to_ax): New function.
5059 (dwarf2_frame_cache): Update.
5061 2011-02-17 Joel Brobecker <brobecker@adacore.com>
5063 * ada-lang.c (ada_type_of_array): Fix the size of the array
5064 in the case of an unconstrained packed array.
5066 2011-02-17 Yao Qi <yao@codesourcery.com>
5068 * common/Makefile.in: Add more targets for make.
5070 2011-02-16 Tom Tromey <tromey@redhat.com>
5072 * dwarf2loc.c (unimplemented): Fix typo.
5074 2011-02-16 Tom Tromey <tromey@redhat.com>
5076 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5077 (compile_dwarf_to_ax) <default>: Use unimplemented.
5078 <DW_OP_deref>: Update.
5079 (disassemble_dwarf_expression): Update.
5080 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5081 (decode_locdesc): Update.
5082 * dwarf2expr.h (dwarf_stack_op_name): Update.
5084 2011-02-16 Tom Tromey <tromey@redhat.com>
5086 * ax.h (struct aop_map) <name>: Now const.
5088 2011-02-16 Tom Tromey <tromey@redhat.com>
5090 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5093 2011-02-16 Yao Qi <yao@codesourcery.com>
5095 * infrun.c (get_displaced_step_closure_by_addr): New.
5096 * inferior.h: Declare it.
5097 * arm-tdep.c: (arm_pc_is_thumb): Call
5098 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
5101 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5102 Jan Kratochvil <jan.kratochvil@redhat.com>
5105 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
5107 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5108 Jan Kratochvil <jan.kratochvil@redhat.com>
5110 * value.c (value_contents_copy_raw): Extend describing comment.
5111 Assert that the destination contents we're overwriting are wholly
5113 (value_contents_copy): Extend describing comment.
5115 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5116 Jan Kratochvil <jan.kratochvil@redhat.com>
5118 * value.c (value_available_contents_eq): Remove redundant local
5119 variables. Fix available contents comparision.
5120 * value.h (value_available_contents_eq): Extend describing
5123 2011-02-16 Yao Qi <yao@codesourcery.com>
5125 * thread.c (info_threads_command): Add missing i18n markup and remove
5128 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5130 * breakpoint.c (longjmp_names): New variable.
5131 (struct breakpoint_objfile_data): New type.
5132 (breakpoint_objfile_key): New variable.
5133 (msym_not_found): New variable.
5134 (msym_not_found_p): New predicate.
5135 (get_breakpoint_objfile_data): New function.
5136 (create_overlay_event_breakpoint): Check per-objfile cache for
5138 (create_longjmp_master_breakpoint): Likewise.
5139 (create_std_terminate_master_breakpoint): Likewise.
5140 (create_exception_master_breakpoint): Likewise.
5141 (_initialize_breakpoint): Register per-objfile data key.
5143 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5145 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5147 (create_longjmp_master_breakpoint): Loop over longjmp names.
5148 (create_std_terminate_master_breakpoint): Const-propagate parameter
5150 (update_breakpoints_after_exec): Adjust.
5151 (breakpoint_re_set): Adjust.
5153 2011-02-15 Michael Snyder <msnyder@vmware.com>
5155 * thread.c (info_threads_command): Process arg as thread id,
5156 or list of thread ids.
5157 (thread_find_command): New command.
5158 (_initialize_thread): Document argument for info threads.
5159 Document 'thread find' command.
5160 * NEWS: Document new command "thread find".
5162 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5164 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5165 * aclocal.m4: Regenerated with aclocal-1.11.1.
5166 * common/configure: Regenerate with autoconf-2.64.
5168 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
5170 * opencl-lang.c (build_opencl_types): Set the size of the built-in
5171 bool data type to a size of one byte.
5173 2011-02-15 Pedro Alves <pedro@codesourcery.com>
5174 Jan Kratochvil <jan.kratochvil@redhat.com>
5176 * target.c (memory_xfer_live_readonly_partial): Document where to
5177 look for interface description.
5179 2011-02-15 Yao Qi <yao@codesourcery.com>
5182 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5183 order to store PC value on stack instead of text section.
5185 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
5187 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5188 the EFP register set size.
5189 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5190 data from the VMX register.
5191 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5192 and write data from/to the VMX register.
5194 2011-02-14 Michael Snyder <msnyder@vmware.com>
5196 * command.h (enum command_class): New class 'no_set_class', for
5197 "show" commands without a corresponding "set" command.
5198 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5199 * copying.c (_initialize_copying): Ditto for "show copying" and
5201 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5203 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5204 which there is no corresponding "set" command (eg. "show copying").
5206 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5207 Jan Kratochvil <jan.kratochvil@redhat.com>
5209 * exec.c (section_table_available_memory): Change `len' parameter
5211 * exec.h (section_table_available_memory): Ditto.
5212 * value.h (read_value_memory): Rename the `offset' parameter to
5215 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5216 Jan Kratochvil <jan.kratochvil@redhat.com>
5218 * memrange.c (compare_mem_ranges): Mention sort order in
5220 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5221 * tracepoint.c (traceframe_available_memory): Extend comment to
5222 mention what happens to RESULT when the target does not support
5225 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5226 Jan Kratochvil <jan.kratochvil@redhat.com>
5228 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5231 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5233 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5234 No longer handle NULL values.
5236 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5238 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5239 * value.c: Include "exceptions.h".
5240 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5242 * cp-abi.c: Include gdb_assert.h.
5243 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5244 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5246 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5247 parameters. No longer returns -1 on error.
5248 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5250 * cp-valprint.c: Include exceptions.h.
5251 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5252 the baseclass_offset. Handle unavailable base classes. Use
5253 val_print_invalid_address.
5254 * p-valprint.c: Include exceptions.h.
5255 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5256 when fetching the baseclass_offset. No longer expect
5257 baseclass_offset returning -1. Handle unavailable base classes.
5258 Use val_print_invalid_address.
5259 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5260 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5261 `embedded_offset' and `val' parameters. Adjust.
5262 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5263 parameter, and change its type to gdb_byte pointer. Add
5264 `embedded_offset' and `val' parameters. Adjust. No longer expect
5265 baseclass_offset returning -1.
5266 (value_dynamic_cast): Use value_contents_for_printing rather than
5267 value_contents. Adjust.
5268 (search_struct_field): No longer expect baseclass_offset returning
5270 (search_struct_method): If reading memory from the target is
5271 necessary, wrap it in a new value to pass to baseclass_offset. No
5272 longer expect baseclass_offset returning -1.
5273 (find_method_list): No longer expect baseclass_offset returning
5274 -1. Use value_contents_for_printing rather than value_contents.
5275 * valprint.c (val_print_invalid_address): New function.
5276 * valprint.h (val_print_invalid_address): Declare.
5277 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5278 and `val' parameters. No longer expect baseclass_offset returning
5280 * gnu-v2-abi.c: Include "exceptions.h".
5281 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5282 parameters. Handle unavailable memory. Recurse through
5283 gnuv2_baseclass_offset directly, rather than through
5284 baseclass_offset. No longer returns -1 on not found, instead
5286 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5287 `val' parameters. Adjust.
5289 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5291 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5292 almost but not quite adjacent.
5294 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5296 * value.h (value_entirely_available): Declare.
5297 * value.c (value_entirely_available): New function.
5298 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5299 real type if the pointer is unavailable.
5301 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5303 * valops.c (value_repeat): Use read_value_memory instead of
5306 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5308 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5309 * value.c (value_contents_copy_raw, value_contents_copy): New
5311 (value_primitive_field): Use value_contents_copy_raw instead of
5313 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5315 (value_array, value_slice): Ditto.
5316 * valarith.c (value_subscripted_rvalue): Use
5317 value_contents_copy_raw instead of memcpy.
5319 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5321 <unavailable> references.
5323 * valops.c (get_value_at): Use value_from_contents_and_address,
5324 avoiding read_memory.
5326 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5328 * c-valprint.c (c_val_print): Print a string with unavailable
5329 contents as an array.
5331 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5333 * value.h (unpack_bits_as_long): Delete declaration.
5334 (unpack_value_bits_as_long): Declare.
5335 (unpack_value_field_as_long): Declare.
5336 (value_field_bitfield): Declare.
5337 * value.c (unpack_bits_as_long): Rename to...
5338 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5339 value parameters. Return the extracted result in a new output
5340 parameter. If the value contents are unavailable, return false,
5341 otherwise return true.
5342 (unpack_value_bits_as_long): New.
5343 (unpack_field_as_long): Rename to...
5344 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5345 Add embedded_offset and value parameters. Return the extracted
5346 result in a new output parameter. If the value contents are
5347 unavailable, return false, otherwise return true.
5348 (unpack_value_field_as_long): New.
5349 (unpack_field_as_long_1): New.
5350 (unpack_field_as_long): Reimplement as wrapper around
5351 unpack_value_field_as_long_1.
5352 (value_field_bitfield): New function.
5353 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5354 unpack_value_bits_as_long. Mark the value as unavailable, if it
5356 * jv-valprint.c (java_print_value_fields): Use
5357 value_field_bitfield.
5358 * p-valprint.c (pascal_object_print_value_fields): Use
5359 value_field_bitfield.
5360 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5362 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5364 * value.c (get_internalvar_integer): Also return the int value of
5365 TYPE_CODE_INT INTERNALVAR_VALUE values.
5366 (set_internalvar): Don't special case TYPE_CODE_INT.
5368 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5370 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5371 INTERNALVAR_POINTER.
5373 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5374 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5375 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5377 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5379 * value.h (value_available_contents_eq): Declare.
5380 * value.c (find_first_range_overlap): New function.
5381 (value_available_contents_eq): New function.
5382 * valprint.c (val_print_array_elements): Use
5383 value_available_contents_eq.
5384 * ada-valprint.c (val_print_packed_array_elements): Use
5385 value_available_contents_eq.
5386 * jv-valprint.c (java_value_print): Use
5387 value_available_contents_eq.
5389 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5391 * target.c (target_read_live_memory): New function.
5392 (memory_xfer_live_readonly_partial): New.
5393 (memory_xfer_partial): If reading from a traceframe, fallback to
5394 reading unavailable read-only memory from read-only regions of
5396 * tracepoint.c (disconnect_tracing): Adjust.
5397 (set_current_traceframe): New, factored out from
5398 set_traceframe_number.
5399 (set_traceframe_number): Reimplement to only change the traceframe
5400 number on the GDB side.
5401 (do_restore_current_traceframe_cleanup): Adjust.
5402 (make_cleanup_restore_traceframe_number): New.
5403 (cur_traceframe_number): New global.
5404 (tfile_open): Set cur_traceframe_number to no traceframe.
5405 (set_tfile_traceframe): New function.
5406 (tfile_trace_find): If looking up a traceframe using any method
5407 other than by number, make sure the current tfile traceframe
5408 matches gdb's current traceframe. Update the current tfile
5409 traceframe if the lookup succeeded.
5410 (tfile_fetch_registers, tfile_xfer_partial)
5411 (tfile_get_trace_state_variable_value): Make sure the remote
5412 traceframe matches gdb's current traceframe.
5413 * remote.c (remote_traceframe_number): New global.
5414 (remote_open_1): Set it to -1.
5415 (set_remote_traceframe): New function.
5416 (remote_fetch_registers, remote_store_registers)
5417 (remote_xfer_memory, remote_xfer_partial)
5418 (remote_get_trace_state_variable_value): Make sure the remote
5419 traceframe matches gdb's current traceframe.
5420 (remote_trace_find): If looking up a traceframe using any method
5421 other than by number, make sure the current remote traceframe
5422 matches gdb's current traceframe. Update the current remote
5423 traceframe if the lookup succeeded.
5424 * infrun.c (fetch_inferior_event): Adjust.
5425 * tracepoint.h (set_current_traceframe): Declare.
5426 (get_traceframe_number, set_traceframe_number): Add describing
5429 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5431 Mark pieces of values as unavailable if the corresponding memory
5434 * valops.c: Include tracepoint.h.
5435 (value_fetch_lazy): Use read_value_memory.
5436 (read_value_memory): New.
5437 * value.h (read_value_memory): Declare.
5438 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5439 * exec.c (section_table_available_memory): New function.
5440 * exec.h (section_table_available_memory): Declare.
5442 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5444 * Makefile.in (SFILES): Add memrange.c.
5445 (HFILES_NO_SRCDIR): Add memrange.h.
5446 (COMMON_OBS): Add memrange.o.
5447 * memrange.c: New file.
5448 * memrange.h: New file.
5449 * tracepoint.c: Include memrange.h.
5450 (struct mem_range): Delete.
5451 (mem_range_s): Delete.
5452 (traceframe_available_memory): New function.
5453 * tracepoint.h (traceframe_available_memory): Declare.
5455 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5457 * target.h (struct traceframe_info): Forward declare.
5458 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5459 (struct target_ops) <to_traceframe_info>: New field.
5460 (target_traceframe_info): New.
5461 * target.c (update_current_target): Inherit and default
5463 * remote.c (PACKET_qXfer_traceframe_info): New.
5464 (remote_protocol_features): Register qXfer:traceframe-info:read.
5465 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5466 (remote_traceframe_info): New.
5467 (init_remote_ops): Install it.
5468 (_initialize_remote): Install "set/show remote traceframe-info"
5470 * tracepoint.h (parse_traceframe_info): Declare.
5471 * tracepoint.c (struct mem_range): New.
5472 (mem_range_s): New typedef.
5473 (struct traceframe_info): New.
5474 (traceframe_info): New global.
5475 (free_traceframe_info): New function.
5476 (clear_traceframe_info): New function.
5477 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5479 (build_traceframe_info): New function.
5480 (tfile_traceframe_info): New function.
5481 (init_tfile_ops): Install tfile_traceframe_info.
5482 (traceframe_info_start_memory, free_result): New functions.
5483 (memory_attributes, traceframe_info_elements): New globals.
5484 (parse_traceframe_info, get_traceframe_info): New functions.
5485 * features/traceframe-info.dtd: New file.
5486 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5488 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5490 Base support for <unavailable> value contents.
5492 * value.h (value_bytes_available): Declare.
5493 (mark_value_bytes_unavailable): Declare.
5494 * value.c (struct range): New struct.
5495 (range_s): New typedef.
5496 (ranges_overlap): New function.
5497 (range_lessthan): New function.
5498 (ranges_contain_p): New function.
5499 (struct value) <unavailable>: New field.
5500 (value_bytes_available): New function.
5501 (mark_value_bytes_unavailable): New function.
5502 (require_not_optimized_out): Constify parameter.
5503 (require_available): New function.
5504 (value_contents_all, value_contents): Require all bytes be
5506 (value_free): Free `unavailable'.
5507 (value_copy): Copy `unavailable'.
5508 * valprint.h (val_print_unavailable): Declare.
5509 * valprint.c (valprint_check_validity): Rename `offset' parameter
5510 to `embedded_offset'. If printing a scalar, check whether the
5511 value chunk is available.
5512 (val_print_unavailable): New.
5513 (val_print_scalar_formatted): Check whether the value is
5515 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5516 pretty-printing unavailable values.
5518 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5520 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5521 * c-typeprint.c (c_type_print_args): Update the function comment. New
5522 variable param_type, initialize it. Remove const/volatile qualifiers
5523 for language_cplus and !show_artificial. Use param_type.
5525 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5527 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5528 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5529 * symtab.h (struct symtab) <next>: Comment extension.
5531 2011-02-12 Yao Qi <yao@codesourcery.com>
5533 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5535 2011-02-11 Yao Qi <yao@codesourcery.com>
5537 * common/Makefile.in: Add copyright header.
5539 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5541 * infrun.c (proceed): Move switching out and in of tfind mode from
5543 (fetch_inferior_event): ... to here.
5545 2011-02-11 Yao Qi <yao@codesourcery.com>
5547 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5549 * configure.ac: Add common to sub dir.
5550 * configure: Regenerate.
5552 2011-02-11 Yao Qi <yao@codesourcery.com>
5556 * common/Makefile.in: New.
5557 * common/configure.ac: New.
5558 * common/aclocal.m4: New.
5559 * common/configure: Generate.
5561 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5563 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5564 side of the parenthesis.
5567 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5568 * vec.h (VEC_block_remove): Fix comment.
5570 2011-02-08 Michael Snyder <msnyder@vmware.com>
5572 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5574 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5576 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5577 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5580 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5583 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5585 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5586 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5588 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5590 * dwarf2read.c (read_subroutine_type): Set special calling
5591 convention flag for functions compiled by IBM XL C for OpenCL.
5592 * ppc-sysv-tdep.c: Include "dwarf2.h"
5593 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5595 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5596 IBM OpenCL vector types calling convention.
5597 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5598 (ppc_sysv_abi_broken_return_value): Likewise.
5599 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5600 types calling convention.
5601 (ppc64_sysv_abi_return_value): Likewise.
5602 * spu-tdep.c: Include "dwarf2.h"
5603 (spu_return_value): Implement IBM OpenCL vector types calling
5606 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5608 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5609 correct ABI for AltiVec vector arguments.
5611 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5613 * valprint.c (val_print): Extend comment.
5614 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5615 interface explanation to val_print.
5616 (ada_val_print_array): Adjust comment to current interface.
5617 (print_field_values): Adjust comment to current interface.
5618 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5619 explanation to val_print.
5620 * f-valprint.c (f_val_print): Ditto.
5621 * jv-valprint.c (java_val_print): Ditto.
5622 * m2-valprint.c (m2_val_print): Ditto.
5623 * p-valprint.c (pascal_val_print): Ditto.
5625 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5627 * breakpoint.c (parse_breakpoint_sals): Fix description.
5629 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5630 Oguz Kayral <oguzkayral@gmail.com>
5632 * python/py-inferior.c (python_on_normal_stop): New function.
5633 (python_on_resume): New function.
5634 (python_inferior_exit): New function.
5635 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5636 inferior_exit observers.
5637 * python/py-evtregistry.c: New file.
5638 * python/py-threadevent.c : New file.
5639 * python/py-event.c: New file.
5640 * python/py-evts.c: New file.
5641 * python/py-continueevent.c: New file.
5642 * python/py-bpevent.c: New file.
5643 * python/py-signalevent.c: New file.
5644 * python/py-exetiedevent.c: New file.
5645 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5646 Move struct breakpoint_object from here...
5647 * python/python-internal.h: ... to here.
5648 * python/py-event.h: New file.
5649 * python/py-events.h: New file.
5650 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5651 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5652 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5653 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5654 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5655 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5656 Add build rules for all the above.
5658 2011-02-04 Tom Tromey <tromey@redhat.com>
5660 * dwarf2read.c (dwarf2_section_empty_p): New function.
5661 (dwarf2_read_section): Use dwarf2_section_empty_p.
5662 (dwarf2_section_size): New function.
5663 (dwarf2_get_section_info): Unconditionally read section.
5664 (dwarf2_read_index): Use dwarf2_section_empty_p.
5665 (partial_read_comp_unit_head): Use dwarf2_section_size.
5666 (dwarf2_symbol_mark_computed): Likewise.
5668 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5670 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5672 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5674 * mips-linux-tdep.c: Include xml-syscall.h.
5675 (mips_linux_get_syscall_number): New function.
5676 (mips_linux_init_abi): Add calls to
5677 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5678 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5679 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5680 * syscalls/mips-n32-linux.xml: New file.
5681 * syscalls/mips-n64-linux.xml: New file.
5682 * syscalls/mips-o32-linux.xml: New file.
5684 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5686 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5687 Complain about inverted range entries.
5688 (dwarf2_record_block_ranges): Likewise.
5690 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5693 * breakpoint.c (update_watchpoint): Fix name of the
5694 update_global_location_list function.
5695 (print_one_breakpoint): Fix typo.
5696 (_initialize_breakpoint): Remove extra space in hbreak help
5698 * breakpoint.h (struct bp_location) <length>: Fix field
5701 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5703 * regcache.c (registers_changed_ptid): Don't explictly always
5704 clear `current_regcache'. Only clear current_thread_ptid and
5705 current_thread_arch when PTID matches. Only reinit the frame
5706 cache if PTID matches the current inferior_ptid. Move alloca(0)
5708 (registers_changed): ... here.
5710 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5712 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5713 starts with __stack_chk_guard as stack guard symbol.
5715 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5717 * disasm.c (compare_lines): Handle the end of sequence markers
5718 within the line table to better support disassembling over
5719 compilation unit boundaries.
5721 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5723 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5724 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5725 implementation even if no symbols are available.
5726 (thumb_analyze_prologue): Update call to skip_prologue_function.
5727 (arm_analyze_prologue): Likewise.
5729 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5731 * arm-tdep.c: Include "observer.h".
5732 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5733 (arm_exidx_data_key): New static variable.
5734 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5735 (struct arm_exidx_data): Likewise.
5736 (arm_exidx_data_free): New function.
5737 (arm_compare_exidx_entries): Likewise.
5738 (arm_obj_section_from_vma): Likewise.
5739 (arm_exidx_new_objfile): Likewise.
5740 (arm_find_exidx_entry): Likewise.
5741 (arm_exidx_fill_cache): Likewise.
5742 (arm_exidx_unwind_sniffer): Likewise.
5743 (arm_exidx_unwind): New global variable.
5744 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5745 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5746 observer. Register arm_exidx_data_key as objfile data.
5748 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5750 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5751 due to accessing uninitialized variable. Fix indentation.
5753 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5755 * c-valprint.c (c_value_print): When doing virtual base pointer
5756 adjustment, create a new value with adjusted contents rather than
5757 changing the contents of the value being printed (and getting it
5760 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5762 * xml-support.c (xml_find_attribute): New.
5763 (xinclude_start_include): Use it.
5764 * xml-support.h (xml_find_attribute): Declare.
5765 * memory-map.c (memory_map_start_memory)
5766 (memory_map_start_property): Use xml_find_attribute.
5767 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5769 * remote.c (start_thread): Use xml_find_attribute.
5770 * solib-target.c (library_list_start_segment)
5771 (library_list_start_section, library_list_start_library)
5772 (library_list_start_list): Use xml_find_attribute.
5773 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5774 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5775 (tdesc_start_field): Use xml_find_attribute.
5777 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
5779 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5780 (BUILD_OCL_VTYPES): Update.
5782 2011-02-02 Joel Brobecker <brobecker@adacore.com>
5784 * configure.ac: Work around non-GNU sed limitation when computing
5785 python version number.
5786 * configure: Regenerate.
5788 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5790 Fix debug printing of TYPE_INSTANCE.
5791 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5792 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5794 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5796 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5797 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5798 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5799 * ada-operator.inc: Rename the file to ...
5800 * ada-operator.def: ... here, wrap all the entries by macro OP.
5801 * expprint.c (op_name_standard): Remove all the entries. Include
5802 "std-operator.def" instead.
5803 * expression.h (enum exp_opcode): Include "std-operator.def" and
5804 "ada-operator.def". Move all the entries ...
5805 * std-operator.def: ... here, wrap all the entries by macro OP.
5807 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5809 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5810 * breakpoint.c (remove_jit_event_breakpoints): New function.
5811 * jit.c (jit_descriptor_addr): Delete.
5812 (registering_code): Delete.
5813 (clear_int): Delete.
5814 (jit_inferior_data): New variable.
5815 (struct jit_inferior_data): New type.
5816 (get_jit_inferior_data): New function.
5817 (jit_inferior_data_cleanup): New function.
5818 (jit_read_descriptor): Adjust.
5819 (jit_register_code): Adjust.
5820 (jit_breakpoint_re_set_internal): New function; move code here ...
5821 (jit_inferior_init): ... from here.
5822 (jit_breakpoint_re_set): Adjust.
5823 (jit_reset_inferior_data_and_breakpoints): New function.
5824 (jit_inferior_created_observer): Adjust.
5825 (jit_inferior_exit_hook): Adjust.
5826 (jit_executable_changed_observer): New function.
5827 (jit_event_handler): Adjust.
5828 (_initialize_jit): Adjust.
5830 2011-01-31 Michael Snyder <msnyder@vmware.com>
5832 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5835 2011-01-31 Tom Tromey <tromey@redhat.com>
5838 * python/python.c (execute_gdb_command): Call
5839 prevent_dont_repeat.
5840 * top.c (suppress_dont_repeat): New global.
5841 (dont_repeat): Use it.
5842 (prevent_dont_repeat): New function.
5843 * command.h (prevent_dont_repeat): Declare.
5845 2011-01-31 Tom Tromey <tromey@redhat.com>
5847 * infcmd.c (finish_backward): Use breakpoint_set_silent.
5848 * python/py-breakpoint.c (bppy_set_silent): Use
5849 breakpoint_set_silent.
5850 (bppy_set_thread): Use breakpoint_set_thread.
5851 (bppy_set_task): Use breakpoint_set_task.
5852 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5853 (breakpoint_set_task): Declare.
5854 (make_breakpoint_silent): Remove.
5855 * breakpoint.c (breakpoint_set_silent): New function.
5856 (breakpoint_set_thread): Likewise.
5857 (breakpoint_set_task): Likewise.
5858 (make_breakpoint_silent): Remove.
5860 2011-01-31 Tom Tromey <tromey@redhat.com>
5862 * breakpoint.h (user_breakpoint_p): Declare.
5863 * breakpoint.c (user_breakpoint_p): New function.
5864 (breakpoint_1): Use it.
5865 (save_breakpoints): Likewise.
5867 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5869 * configure.ac: Add handling of Python distribution on Windows.
5870 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5871 sysconfig variables are not defined, then do not use them.
5872 On Windows, if LIBPL is not defined, then use prefix + '/libs'
5873 instead. On Windows, return all paths using forward-slashes
5874 rather than backslashes.
5876 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5878 * configure.ac: Remove fallback behavior for building
5879 against Python. Remove tweaking of Python include path.
5880 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5881 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
5882 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5883 Always restore CPPFLAGS and LIBS after linking test.
5884 * configure: Regenerated.
5885 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5886 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5887 * python/python-internal.h: Adjust includes of Python .h files.
5889 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5891 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
5894 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5896 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
5899 2011-01-31 Yao Qi <yao@codesourcery.com>
5901 * arm-linux-nat.c: Update calls to regcache_register_status
5902 instead of regcache_valid_p.
5903 * aix-thread.c: Likewise.
5904 * i386gnu-nat.c: Likewise.
5906 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5909 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
5910 touching TYPE_FIELD_ARTIFICIAL.
5912 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
5914 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
5917 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5919 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
5920 selected, don't try iterating over the traceframe's blocks.
5921 (tfile_has_stack): If there's no traceframe selected, then there's
5923 (tfile_has_registers): If there's no traceframe selected, then
5924 there's no registers.
5926 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5928 * target.c (memory_xfer_partial): No need to restore shadows if we
5929 haven't read anything.
5931 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5933 * mips-tdep.c (mips_print_register): Use get_frame_register_value
5934 and val_print_scalar_formatted.
5936 2011-01-27 Pedro Alves <pedro@codesourcery.com>
5938 * tracepoint.c (tfile_read): New.
5939 (tfile_open): Use it.
5940 (tfile_get_traceframe_address): Use it.
5941 (tfile_trace_find): Use it.
5942 (walk_blocks_callback_func): New typedef.
5943 (match_blocktype): New function.
5944 (traceframe_walk_blocks): New function.
5945 (traceframe_find_block_type): New function.
5946 (tfile_fetch_registers, tfile_xfer_partial)
5947 (tfile_get_trace_state_variable_value): Use
5948 traceframe_find_block_type and tfile_read.
5950 2011-01-26 Kevin Buettner <kevinb@redhat.com>
5952 * remote-mips.c: Add internationalization mark ups. Remove
5953 trailing \n from already marked up strings.
5955 2011-01-26 Tom Tromey <tromey@redhat.com>
5957 * python/py-prettyprint.c (print_string_repr): Clear
5958 'addressprint' option when calling val_print_string.
5959 (print_children): Handle Val_pretty_default. Clear 'addressprint'
5960 option when calling val_print_string.
5962 2011-01-26 Tom Tromey <tromey@redhat.com>
5964 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
5966 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
5968 (gdb_py_longest, gdb_py_ulongest): New typedefs.
5969 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
5970 (gdb_py_long_as_ulongest): New defines.
5971 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
5972 (gdb_py_int_as_long): Declare.
5973 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
5974 GDB_PY_LL_ARG, gdb_py_object_from_longest.
5975 (valpy_long): Add comment.
5976 * python/py-utils.c (get_addr_from_python): Use
5977 gdb_py_long_as_ulongest. Handle overflow properly.
5978 (gdb_py_object_from_longest): New function.
5979 (gdb_py_object_from_ulongest): Likewise.
5980 (gdb_py_int_as_long): Likewise.
5981 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
5982 * python/py-symtab.c (salpy_get_pc): Use
5983 gdb_py_long_from_ulongest.
5984 (salpy_get_line): Use PyInt_FromLong.
5985 * python/py-param.c (set_parameter_value): Use
5987 * python/py-lazy-string.c (stpy_get_address): Use
5988 gdb_py_long_from_ulongest.
5989 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
5990 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
5991 * python/py-breakpoint.c (bppy_set_thread): Use
5993 (bppy_set_task): Likewise.
5994 (bppy_set_ignore_count): Likewise.
5995 (bppy_set_hit_count): Likewise.
5996 * python/py-block.c (blpy_get_start): Use
5997 gdb_py_object_from_ulongest.
5998 (blpy_get_end): Likewise.
5999 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6001 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
6004 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6005 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6006 equality test for objfile, initialize addr_low if needed.
6008 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6010 * tui/tui-regs.c (tui_register_format): Remove dead code.
6012 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6014 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6015 instead of print_scalar_formatted.
6016 (print_scalar_formatted): Don't handle 's' format strings here,
6017 and add an assertion that we never see such format here.
6018 * valprint.h (val_print_scalar_formatted): Declare.
6019 * valprint.c (val_print_scalar_formatted): New.
6020 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6021 instead of print_scalar_formatted.
6022 * jv-valprint.c (java_val_print): Ditto.
6023 * p-valprint.c (pascal_val_print): Ditto.
6024 * ada-valprint.c (ada_val_print_1): Ditto.
6025 * f-valprint.c (f_val_print): Ditto.
6026 * infcmd.c (registers_info): Ditto.
6027 * m2-valprint.c (m2_val_print): Ditto.
6029 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6031 * m2-valprint.c (print_unbounded_array): Pass
6032 value_contents_for_printing rather than value_contents, to
6033 m2_print_array_contents. Also pass in the value.
6035 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6037 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6038 (save_gdb_index_command): Switch to .gdb_index version 4.
6040 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6042 * mi/mi-main.c (get_register): Use get_frame_register_value rather
6043 than frame_register, and always pass a valid value to val_print.
6045 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6047 Centralize printing "<optimized out>".
6049 * valprint.h (val_print_optimized_out): Declare.
6050 * cp-valprint.c (cp_print_value_fields): Use
6051 val_print_optimized_out.
6052 * jv-valprint.c (java_print_value_fields): Ditto.
6053 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6054 * printcmd.c (print_formatted): Ditto.
6055 * valprint.c (valprint_check_validity): Ditto.
6056 (value_check_printable): Ditto.
6057 (val_print_optimized_out): New.
6059 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6061 * infcmd.c (default_print_registers_info): Allocate values so to
6062 never pass a NULL value to val_print.
6064 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6066 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6067 boolean. Make sure to always pass a value that matches the
6068 contents buffer to callees. Preserve `address' for following
6070 * value.c (value_contents_for_printing_const): New.
6071 (value_address): Constify value argument.
6072 * value.h (value_contents_for_printing_const): Declare.
6073 (value_address): Constify value argument.
6075 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6077 * regcache.c (struct regcache_descr): Rename
6078 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6079 and sizeof_cooked_register_valid_p to
6080 sizeof_cooked_register_status.
6081 (init_regcache_descr): Adjust.
6082 (struct regcache): Rename register_valid_p field to
6084 (regcache_xmalloc_1, regcache_xfree, regcache_save)
6085 (do_cooked_read): Adjust.
6086 (regcache_valid_p): Rename to ...
6087 (regcache_register_status): ... this. Adjust.
6088 (regcache_invalidate): Adjust.
6089 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6091 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
6092 as unavailable, not valid.
6093 (regcache_dump): Adjust.
6094 * regcache.h (enum register_status): New.
6095 (regcache_register_status): Declare.
6096 (regcache_invalidate): Delete declaration.
6097 * corelow.c (get_core_registers): Adjust.
6098 * tracepoint.c (tfile_fetch_registers): Adjust.
6099 * trad-frame.c (REG_VALUE): Rename to ...
6100 (TF_REG_VALUE): ... this.
6101 (REG_UNKNOWN): Rename to ...
6102 (TF_REG_UNKNOWN): ... this.
6103 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
6104 * mi/mi-main.c (register_changed_p): Adjust.
6106 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6108 * regcache.c (struct regcache_descr): Remove outdated comment.
6109 (init_regcache_descr): Remove sizeof_raw_register_valid_p
6111 (regcache_xmalloc): Rename to ...
6112 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
6113 Allocate the regcache type accordingly.
6114 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
6115 (regcache_xfree): Asser the source is also readonly. Copy sizeof
6116 cooked registers, not raw.
6117 (regcache_dup_no_passthrough): Delete.
6118 (get_thread_arch_regcache): Use regcache_xmalloc_1.
6119 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
6120 mention obsolete write_register_bytes.
6121 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6123 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6125 Stop remote_read_bytes from handling partial reads itself.
6127 * remote-fileio.c: Include target.h.
6128 (remote_fileio_write_bytes): Delete.
6129 (remote_fileio_func_open, remote_fileio_func_write)
6130 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6132 (remote_fileio_func_stat): Use target_read_memory and
6133 target_write_memory.
6134 (remote_fileio_func_gettimeofday): Use target_write_memory.
6135 (remote_fileio_func_system): Use target_read_memory.
6136 * remote.c (remote_write_bytes): Make it static.
6137 (remote_read_bytes): Don't handle partial reads here.
6138 * remote.h (remote_read_bytes): Delete declaration.
6140 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6142 Simplify XML parsing a bit.
6144 * xml-support.h (gdb_xml_parse_quick): Declare.
6145 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6146 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6148 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6149 gdb_xml_create_parser_and_cleanup_1.
6150 (gdb_xml_parse_quick): New.
6151 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6152 * osdata.c (osdata_parse): Ditto.
6153 * remote.c (remote_threads_info): Ditto.
6154 * solib-target.c (solib_target_parse_libraries): Ditto.
6155 * xml-syscall.c (syscall_parse_xml): Ditto.
6156 * xml-tdesc.c (tdesc_parse_xml): Ditto.
6158 2011-01-24 Kevin Buettner <kevinb@redhat.com>
6160 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6161 with remote-mips.o added to gdb_target_obs.
6162 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6164 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6166 * ada-valprint.c (val_print_packed_array_elements): Pass the
6167 correct struct value to val_print.
6168 (ada_val_print_1): Ditto.
6170 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6172 Don't lose embedded_offset in printing routines throughout.
6174 * valprint.h (val_print_array_elements): Change prototype.
6175 * valprint.c (val_print_array_elements): Add `embedded_offset'
6176 parameter, and adjust to pass it down to val_print, while passing
6177 `valaddr' or `address' unmodified. Take embedded_offset into
6178 account when checking repetitions.
6179 * c-valprint.c (c_val_print): Pass embedded_offset to
6180 val_print_array_elements instead of adjusting `valaddr' and
6182 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6183 embedded_offset to val_print_array_elements instead of adjusting
6185 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6186 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6187 val_print_array_elements and pascal_object_print_value_fields
6188 instead of adjusting `valaddr'.
6189 (pascal_object_print_value_fields): Add `offset' parameter, and
6191 (pascal_object_print_value): Add `offset' parameter, and adjust to
6193 (pascal_object_print_static_field): Use
6194 value_contents_for_printing/value_embedded_offset, rather than
6196 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6197 parameter, and adjust to use it. Use
6198 value_contents_for_printing/value_embedded_offset, rather than
6200 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6201 (ada_val_print_array): Add `offset' parameter, and adjust to use
6203 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6204 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6205 Instead work with offsets. Use
6206 value_contents_for_printing/value_embedded_offset, rather than
6207 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6208 and use value_from_pointer to extract a target pointer, rather
6209 than value_from_longest.
6210 (print_variant_part): Add `offset' parameter. Replace
6211 `outer_valaddr' parameter by a new `outer_offset' parameter.
6212 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6213 (ada_value_print): Use
6214 value_contents_for_printing/value_embedded_offset, rather than
6216 (print_record): Add `offset' parameter, and adjust to pass it
6218 (print_field_values): Add `offset' parameter. Replace
6219 `outer_valaddr' parameter by a new `outer_offset' parameter.
6220 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6221 Use value_contents_for_printing/value_embedded_offset, rather than
6223 * d-valprint.c (dynamic_array_type): Use
6224 value_contents_for_printing/value_embedded_offset, rather than
6226 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6227 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6228 (java_print_value_fields): Take `offset' into account. Don't
6229 re-adjust `valaddr'. Instead pass down adjusted offsets.
6230 (java_val_print): Take `embedded_offset' into account. Pass it to
6231 java_print_value_fields.
6232 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6233 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6234 down adjusted offsets.
6235 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6236 (f_val_print): Take `embedded_offset' into account.
6238 2011-01-21 Joel Brobecker <brobecker@adacore.com>
6240 * inflow.c: Include "gdbcmd.h".
6241 (interactive_mode): New static global, moved here from top.c.
6242 (show_interactive_mode): New function, moved here from top.c.
6243 use gdb_has_a_terminal instead of input_from_terminal_p to
6244 determine the current mode.
6245 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6247 (_initialize_inflow): Add the "set/show interactive-mode"
6248 commands. Moved here from top.c, after having adjusted slightly
6250 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6252 (input_from_terminal_p): Remove handling of "interactive-mode"
6253 setting, moved to infow.c.
6254 (init_main): Remove creation of the "set/show interactive-mode"
6255 commands, moved to inflow.c.
6257 2011-01-19 Joel Brobecker <brobecker@adacore.com>
6259 * NEWS: Add entry for native ia64-hpux support.
6261 2011-01-19 Tom Tromey <tromey@redhat.com>
6264 * thread.c (free_thread): Free 'name'.
6265 (print_thread_info): Emit thread name. Change CLI output.
6266 (thread_name_command): New function.
6267 (do_captured_thread_select): Emit newline.
6268 (_initialize_thread): Register 'thread name' command.
6269 * target.h (struct target_ops) <to_thread_name>: New field.
6270 (target_thread_name): New macro.
6271 * target.c (update_current_target): Handle to_thread_name.
6272 * python/py-infthread.c (thpy_get_name): New function.
6273 (thpy_set_name): Likewise.
6274 (thread_object_getset): Add "name".
6275 * linux-nat.c (linux_nat_thread_name): New function.
6276 (linux_nat_add_target): Set to_thread_name.
6277 * gdbthread.h (struct thread_info) <name>: New field.
6279 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6281 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6282 (ada_val_print_1): Likewise.
6284 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6286 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6287 upper limit address is not greater than the function end address
6288 when the upper limit could not be computed using the debugging
6291 2011-01-17 Tom Tromey <tromey@redhat.com>
6293 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6295 * utils.c: Include gdb_regex.h.
6296 (do_regfree_cleanup): New function.
6297 (make_regfree_cleanup): Likewise.
6298 (get_regcomp_error): Likewise.
6299 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6301 2011-01-17 Tom Tromey <tromey@redhat.com>
6303 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6306 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6308 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6309 for internal variables.
6310 (last_was_structop): New static variable.
6311 (COMPLETE): New token.
6312 (field_exp): New rule to group all '.' suffix handling.
6313 Add mark_struct_expression calls when approriate to be able
6314 to correctly find fields for completion.
6315 (yylex): Adapt to handle field completion and set INTVAR when
6318 2011-01-14 Yao Qi <yao@codesourcery.com>
6320 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6321 save_reggroup, restore_reggroup and all_reggroup.
6323 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6325 * ada-valprint. (ada_printchar): Use the correct type length
6326 in call to ada_emit_char.
6327 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6329 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6331 * solib-som.h (hpux_major_release): Declare variable here.
6332 * solib-som.c: Remove <sys/utsname.h> header.
6333 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6334 (hpux_major_release): Make global, change default value to
6335 DEFAULT_HPUX_MAJOR_RELEASE.
6336 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6337 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6338 Add "solib-som.h" header.
6339 (set_hpux_major_release): New function.
6340 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6342 2011-01-14 Mike Frysinger <vapier@gentoo.org>
6344 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6346 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6348 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6349 new-line at end of warning message.
6350 (ia64_hpux_store_register): Remove trailing new-line at end of
6352 * ia64-hpux-tdep.c: Rephrase comment.
6353 * solib-ia64-hpux.c (struct dld_info): Change type of field
6354 dld_flags from "long long" to ULONGEST.
6356 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6358 * target.h (deprecated_child_ops): Delete declaration.
6359 * target.c (deprecated_child_ops): Delete definition.
6361 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6363 * Makefile.in (hpux-thread.o): Delete rule.
6364 * configure.ac: Don't check for HPUX DCE threads support.
6365 * configure, config.in: Regenerate.
6366 * hppa-hpux-nat.c (child_suppress_run): Delete.
6367 (hppa_hpux_child_can_run): Delete.
6368 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6369 * hpux-thread.c: Delete.
6371 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6373 * hpux-thread.c (hpux_pid_to_str): Delete.
6375 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6377 * ada-valprint.c (ada_emit_char): Remove strange code.
6378 Check that c is <= UCHAR_MAX before passing it to isascii.
6379 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6381 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6383 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6384 to the case where instream is stdin.
6386 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6388 * ia64-tdep.h (struct regcache): Forward declare.
6389 (struct ia64_infcall_ops): New struct type.
6390 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6392 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6393 Renames ia64_find_global_pointer.
6394 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6395 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6396 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6398 (ia64_infcall_ops): New static global constant.
6399 (ia64_gdbarch_init): Set tdep->infcall_ops.
6400 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6401 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6402 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6403 (ia64_hpux_dummy_code): New static global constant.
6404 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6405 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6406 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6408 (ia64_hpux_infcall_ops): New static global constant.
6409 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6410 for inferior function calls to work properly on ia64-hpux.
6412 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6414 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6415 * ia64-tdep.h (struct frame_info): forward declaration.
6416 (struct gdbarch_tdep): Add field size_of_register_frame.
6417 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6418 to determine the size of the register frame.
6419 (ia64_size_of_register_frame): New function.
6420 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6421 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6422 (IA64_HPUX_UREG_REASON): New macro.
6423 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6425 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6426 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6427 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6430 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6432 Add support for ia64-hpux.
6433 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6434 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6436 * configure.host: Add handling for ia64-hpux hosts. Add associated
6438 * configure.tgt: Add handling for ia64-hpux targets.
6439 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6440 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6441 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6443 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6445 [ttrace] Compute thread list immediately after attach.
6446 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6448 (inf_ttrace_attach): Use it.
6450 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6452 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6453 if we could not determine the frame's function address. Instead,
6454 use the frame's PC, and then continue.
6456 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6458 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6459 not already defined.
6461 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6463 * ia64-tdep.c (ia64_struct_type_p): New function.
6464 (ia64_extract_return_value): Handle integral values that are
6465 less than 8 bytes long.
6466 (ia64_push_dummy_call): Likewise.
6468 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6470 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6471 floatformat_ia64_ext.
6472 (floatformat_ia64_ext_big): New static const.
6473 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6475 2011-01-12 Tom Tromey <tromey@redhat.com>
6477 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6479 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6480 (mi_cmd_thread_list_ids): Likewise.
6481 (mi_cmd_data_list_changed_registers): Likewise.
6482 (mi_cmd_data_list_register_values): Likewise.
6483 (mi_cmd_data_write_register_values): Likewise.
6484 (mi_cmd_data_evaluate_expression): Likewise.
6485 (mi_cmd_data_read_memory): Likewise.
6486 (mi_cmd_data_read_memory_bytes): Likewise.
6487 (mi_cmd_data_write_memory): Likewise.
6488 (mi_cmd_enable_timings): Likewise.
6489 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6490 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6491 (mi_cmd_var_delete): Likewise.
6492 (mi_cmd_var_set_format): Likewise.
6493 (mi_cmd_var_show_format): Likewise.
6494 (mi_cmd_var_info_num_children): Likewise.
6495 (mi_cmd_var_list_children): Likewise.
6496 (mi_cmd_var_info_type): Likewise.
6497 (mi_cmd_var_info_expression): Likewise.
6498 (mi_cmd_var_show_attributes): Likewise.
6499 (mi_cmd_var_assign): Likewise.
6500 (mi_cmd_var_update): Likewise.
6501 (mi_cmd_enable_pretty_printing): Likewise.
6502 (mi_cmd_var_set_update_range): Likewise.
6503 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6505 (mi_cmd_target_file_put): Likewise.
6506 (mi_cmd_target_file_delete): Likewise.
6507 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6509 (mi_cmd_stack_info_depth): Likewise.
6510 (mi_cmd_stack_list_locals): Likewise.
6511 (mi_cmd_stack_list_args): Likewise.
6512 (mi_cmd_stack_select_frame): Likewise.
6513 (mi_cmd_stack_select_frame): Likewise.
6514 (mi_cmd_stack_info_frame): Likewise.
6515 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6517 (mi_cmd_file_list_exec_source_files): Likewise.
6518 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6519 (mi_cmd_env_cd): Likewise.
6520 (mi_cmd_env_path): Likewise.
6521 (mi_cmd_env_dir): Likewise.
6522 (mi_cmd_inferior_tty_show): Likewise.
6523 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6524 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6525 (mi_cmd_break_watch): Likewise.
6527 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6529 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6530 (ppc_linux_insert_hw_breakpoint): Likewise.
6531 (ppc_linux_remove_hw_breakpoint): Likewise.
6532 (ppc_linux_insert_watchpoint): Likewise.
6534 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6535 Jan Kratochvil <jan.kratochvil@redhat.com>
6537 PR fortran/11104 and DWARF unbound arrays detection.
6538 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6539 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6540 unspecified upper bound.
6541 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6542 variables array_size_array, tmp_type and offset_item. New variable
6543 array. Remove call to f77_get_upperbound. New variables array_type
6544 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6545 the final call to deprecated_set_value_type.
6547 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6549 Make value allocations more lazy.
6550 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6551 instead of allocate_value and set_value_lazy when possible.
6552 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6553 instead of allocate_value and set_value_lazy.
6554 * findvar.c (value_of_register_lazy): Likewise.
6555 (read_var_value): Remove V preallocation, call just check_typedef in
6556 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6557 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6558 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6559 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6560 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6561 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6562 the end, remove set_value_lazy there.
6563 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6564 instead of allocate_value and set_value_lazy when possible.
6565 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6566 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6567 of allocate_value and set_value_lazy.
6568 (value_from_contents_and_address): Use allocate_value_lazy instead of
6569 allocate_value and set_value_lazy when possible.
6571 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6573 * disasm.c (dump_insns): Support dumping opcodes for MI.
6574 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6575 dumping of instruction opcodes.
6577 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6579 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6582 2011-01-11 Tom Tromey <tromey@redhat.com>
6584 * thread.c (do_captured_thread_select): Emit newline before
6587 2011-01-11 Michael Snyder <msnyder@vmware.com>
6589 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6590 * score-tdep.c: Ditto.
6591 * score-tdep.h: Ditto.
6592 * ser-base.c: Ditto.
6593 * ser-go32.c: Ditto.
6596 * ser-mingw.c: Ditto.
6597 * ser-pipe.c: Ditto.
6599 * ser-unix.c: Ditto.
6600 * sh64-tdep.c: Ditto.
6601 * shnbsd-nat.c: Ditto.
6605 * solib-darwin.c: Ditto.
6606 * solib-frv.c: Ditto.
6608 * solib-irix.c: Ditto.
6609 * solib-osf.c: Ditto.
6610 * solib-pa64.c: Ditto.
6611 * solib-som.c: Ditto.
6612 * solib-spu.c: Ditto.
6613 * solib-sunos.c: Ditto.
6614 * solib-svr4.c: Ditto.
6616 * sol-thread.c: Ditto.
6620 * sparc64-linux-tdep.c: Ditto.
6621 * sparc64-tdep.c: Ditto.
6622 * sparc-linux-nat.c: Ditto.
6623 * sparc-linux-tdep.c: Ditto.
6624 * sparc-sol2-nat.c: Ditto.
6625 * sparc-sol2-tdep.c: Ditto.
6626 * sparc-tdep.c: Ditto.
6627 * sparc-tdep.h: Ditto.
6628 * spu-tdep.c: Ditto.
6629 * stabsread.c: Ditto.
6630 * stabsread.h: Ditto.
6638 * target-descriptions.c: Ditto.
6639 * target-descriptions.h: Ditto.
6641 * target-memory.c: Ditto.
6642 * terminal.h: Ditto.
6645 * tracepoint.c: Ditto.
6646 * tracepoint.h: Ditto.
6647 * trad-frame.h: Ditto.
6648 * typeprint.c: Ditto.
6650 2011-01-11 Michael Snyder <msnyder@vmware.com>
6652 * ui-file.c: Comment cleanup, mostly periods and spaces.
6657 * v850-tdep.c: Ditto.
6658 * valarith.c: Ditto.
6660 * valprint.c: Ditto.
6661 * valprint.h: Ditto.
6666 * vax-tdep.c: Ditto.
6670 * windows-nat.c: Ditto.
6671 * windows-tdep.c: Ditto.
6672 * xcoffread.c: Ditto.
6673 * xcoffsolib.c: Ditto.
6674 * xml-support.c: Ditto.
6675 * xstormy16-tdep.c: Ditto.
6676 * xtensa-tdep.c: Ditto.
6677 * xtensa-tdep.h: Ditto.
6679 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6681 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6682 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6684 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6685 Thiago Jung Bauermann <bauerman@br.ibm.com>
6687 Implement support for PowerPC BookE ranged watchpoints.
6689 (struct breakpoint_ops) <resources_needed>: New method.
6690 Initialize to NULL in all existing breakpoint_ops instances.
6691 (struct breakpoint) <exact>: New field.
6692 (target_exact_watchpoints): Declare external global.
6693 * breakpoint.c (target_exact_watchpoints): New global flag.
6694 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6695 b->enable_state to bp_enabled before calling
6696 hw_watchpoint_used_count.
6697 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6698 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6700 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6701 if the watchpoint is exact.
6702 (resources_needed_watchpoint): New function.
6703 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6704 (watch_command_1): Set b->exact if the user asked for an exact
6705 watchpoint and one can be set.
6706 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6707 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6708 the user asks for an exact watchpoint and one can be set. Return
6709 number of needed debug registers to watch the expression.
6710 * gdbtypes.c (is_scalar_type): New function, based on
6711 valprint.c:scalar_type_p.
6712 (is_scalar_type_recursive): New function.
6713 * gdbtypes.h (is_scalar_type_recursive): Declare.
6714 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6715 handle regions when ranged watchpoints are available.
6716 (create_watchpoint_request): New function.
6717 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6718 create_watchpoint_request.
6719 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6720 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6721 `set powerpc' and `show powerpc' commands.
6722 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6723 Mention documentation comment in the target macro.
6724 (target_region_ok_for_hw_watchpoint): Document return value.
6726 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6728 * breakpoint.c (update_watchpoint): Decide on using a software or
6729 hardware watchpoint after the bp_locations are created.
6731 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6733 Convert hardware watchpoints to use breakpoint_ops.
6734 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6735 <insert_location>: ... this. Return int instead of void.
6736 Accept pointer to struct bp_location instead of pointer to
6737 struct breakpoint. Adapt all implementations.
6738 (breakpoint_ops) <remove>: Rename to...
6739 <remove_location>: ... this. Accept pointer to struct bp_location
6740 instead of pointer to struct breakpoint. Adapt all implementations.
6741 * breakpoint.c (insert_catchpoint): Delete function.
6742 (insert_bp_location): Call the watchpoint or catchpoint's
6743 breakpoint_ops.insert method.
6744 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6745 breakpoint_ops.remove method.
6746 (insert_watchpoint, remove_watchpoint): New functions.
6747 (watchpoint_breakpoint_ops): New structure.
6748 (watch_command_1): Initialize the OPS field.
6749 * inf-child.c (inf_child_insert_fork_catchpoint)
6750 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6751 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6752 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6754 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6755 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6756 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6757 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6758 * target.c (update_current_target): Change default implementation of
6759 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6760 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6761 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6762 to_set_syscall_catchpoint to return_one.
6763 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6764 (debug_to_insert_exec_catchpoint): Report return value.
6765 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6766 (to_insert_exec_catchpoint): Change declaration to return int instead
6769 2011-01-11 Michael Snyder <msnyder@vmware.com>
6771 * arm-tdep.c: Internationalization.
6774 * fork-child.c: Ditto.
6775 * nto-procfs.c: Ditto.
6776 * ppc-sysv-tdep.c: Ditto.
6778 * remote-mips.c: Ditto.
6780 * rs6000-nat.c: Ditto.
6781 * rs6000-tdep.c: Ditto.
6785 * xml-support.c: Ditto.
6786 * mi/mi-cmd-break.c: Ditto.
6787 * mi/mi-cmd-var.c: Ditto.
6788 * mi/mi-interp.c: Ditto.
6789 * mi/mi-main.c: Ditto.
6791 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
6793 * remote-sim.c (gdbsim_store_register): Update API to
6794 sim_store_register to check more error conditions.
6796 2011-01-10 Michael Snyder <msnyder@vmware.com>
6798 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6799 * nto-tdep.c: Ditto.
6800 * nto-tdep.h: Ditto.
6801 * objc-exp.y: Ditto.
6802 * objc-lang.c: Ditto.
6803 * objfiles.c: Ditto.
6804 * objfiles.h: Ditto.
6805 * observer.c: Ditto.
6806 * opencl-lang.c: Ditto.
6809 * parser-defs.h: Ditto.
6812 * posix-hdep.c: Ditto.
6813 * ppcbug-rom.c: Ditto.
6814 * ppc-linux-nat.c: Ditto.
6815 * ppc-linux-tdep.c: Ditto.
6816 * ppc-linux-tdep.h: Ditto.
6817 * ppcnbsd-tdep.c: Ditto.
6818 * ppcobsd-tdep.c: Ditto.
6819 * ppcobsd-tdep.h: Ditto.
6820 * ppc-sysv-tdep.c: Ditto.
6821 * ppc-tdep.h: Ditto.
6822 * printcmd.c: Ditto.
6823 * proc-abi.c: Ditto.
6824 * proc-flags.c: Ditto.
6826 * proc-utils.h: Ditto.
6827 * progspace.h: Ditto.
6828 * prologue-value.c: Ditto.
6829 * prologue-value.h: Ditto.
6830 * psympriv.h: Ditto.
6832 * p-typeprint.c: Ditto.
6833 * p-valprint.c: Ditto.
6834 * ravenscar-sparc-thread.c: Ditto.
6835 * ravenscar-thread.c: Ditto.
6836 * ravenscar-thread.h: Ditto.
6838 * regcache.c: Ditto.
6839 * regcache.h: Ditto.
6841 * remote-fileio.c: Ditto.
6842 * remote-fileio.h: Ditto.
6844 * remote-m32r-sdi.c: Ditto.
6845 * remote-mips.c: Ditto.
6846 * remote-sim.c: Ditto.
6847 * rs6000-aix-tdep.c: Ditto.
6848 * rs6000-nat.c: Ditto.
6849 * rs6000-tdep.c: Ditto.
6851 2011-01-10 Michael Snyder <msnyder@vmware.com>
6853 * charset.c (validate): Internationalization.
6854 * coffread.c (read_one_sym): Ditto.
6855 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6856 * h8300-tdep.c (H8300_extract_return_value): Ditto.
6857 * inflow.c (new_tty): Ditto.
6858 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6859 * m32c-tdep.c (m32c_return_value): Ditto.
6860 * mep-tdep.c (mep_store_return_value): Ditto.
6861 * score-tdep.c (score7_fetch_insn): Ditto.
6862 * ser-mingw.c (pipe_windows_open): Ditto.
6863 * sh64-tdep.c (sh64_extract_return_value): Ditto.
6864 * spu-tdep.c (spu_register_type): Ditto.
6865 * tracepoint.c (trace_find_command): Ditto.
6866 * valarith.c (value_pos): Ditto.
6868 2011-01-10 Joel Brobecker <brobecker@adacore.com>
6870 * ada-valprint.c (printstr): Minor comment reformatting.
6872 2011-01-08 Michael Snyder <msnyder@vmware.com>
6874 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6877 2011-01-08 Michael Snyder <msnyder@vmware.com>
6879 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6880 * hppa-hpux-tdep.c: Ditto.
6881 * hppa-linux-nat.c: Ditto.
6882 * hppa-linux-tdep.c: Ditto.
6883 * hppanbsd-tdep.c: Ditto.
6884 * hppa-tdep.c: Ditto.
6885 * hppa-tdep.h: Ditto.
6886 * hpux-thread.c: Ditto.
6887 * i386-cygwin-tdep.c: Ditto.
6888 * i386-darwin-nat.c: Ditto.
6889 * i386gnu-nat.c: Ditto.
6890 * i386-linux-nat.c: Ditto.
6891 * i386-linux-tdep.c: Ditto.
6892 * i386-nat.c: Ditto.
6893 * i386-nat.h: Ditto.
6894 * i386nbsd-tdep.c: Ditto.
6895 * i386-sol2-nat.c: Ditto.
6896 * i386-stub.c: Ditto.
6897 * i386-tdep.c: Ditto.
6898 * i386-tdep.h: Ditto.
6899 * i387-tdep.c: Ditto.
6900 * ia64-linux-nat.c: Ditto.
6901 * ia64-linux-tdep.c: Ditto.
6902 * ia64-tdep.c: Ditto.
6906 * inferior.c: Ditto.
6907 * inferior.h: Ditto.
6913 * iq2000-tdep.c: Ditto.
6914 * irix5-nat.c: Ditto.
6920 * jv-typeprint.c: Ditto.
6921 * jv-valprint.c: Ditto.
6922 * language.c: Ditto.
6923 * language.h: Ditto.
6924 * linespec.c: Ditto.
6925 * linux-fork.c: Ditto.
6926 * linux-nat.c: Ditto.
6927 * linux-thread-db.c: Ditto.
6928 * lm32-tdep.c: Ditto.
6930 2011-01-08 Michael Snyder <msnyder@vmware.com>
6932 * m2-exp.y: Comment cleanup, mostly periods and spaces.
6934 * m2-typeprint.c: Ditto.
6935 * m2-valprint.c: Ditto.
6936 * m32c-tdep.c: Ditto.
6937 * m32r-linux-nat.c: Ditto.
6938 * m32r-rom.c: Ditto.
6939 * m32r-tdep.c: Ditto.
6940 * m32r-tdep.h: Ditto.
6941 * m68hc11-tdep.c: Ditto.
6942 * m58klinux-nat.c: Ditto.
6943 * m68k-tdep.c: Ditto.
6944 * m88k-tdep.c: Ditto.
6945 * m88k-tdep.h: Ditto.
6946 * machoread.c: Ditto.
6947 * macrocmd.c: Ditto.
6948 * macroexp.c: Ditto.
6949 * macrotab.c: Ditto.
6952 * mdebugread.c: Ditto.
6953 * mdebugread.h: Ditto.
6956 * memory-map.h: Ditto.
6957 * mep-tdep.c: Ditto.
6958 * microblaze-rom.c: Ditto.
6959 * microblaze-tdep.c: Ditto.
6961 * mips-irix-tdep.c: Ditto.
6962 * mips-linux-nat.c: Ditto.
6963 * mips-linux-tdep.c: Ditto.
6964 * mips-linux-tdep.h: Ditto.
6965 * mipsnbsd-nat.c: Ditto.
6966 * mipsnbsd-tdep.c: Ditto.
6967 * mipsread.c: Ditto.
6968 * mips-tdep.c: Ditto.
6969 * mips-tdep.h: Ditto.
6970 * mn10300-linux-tdep.c: Ditto.
6971 * mn10300-tdep.c: Ditto.
6972 * mn10300-tdep.h: Ditto.
6975 * moxie-tdep.c: Ditto.
6976 * moxie-tdep.h: Ditto.
6979 2011-01-08 Mike Frysinger <vapier@gentoo.org>
6981 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
6983 2011-01-08 Robert Millan <rmh@gnu.org>
6985 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
6987 2011-01-07 Michael Snyder <msnyder@vmware.com>
6989 * charset.c (_initialize_charset): Fix typo in string.
6991 2011-01-07 Michael Snyder <msnyder@vmware.com>
6993 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
6995 * tui/tui-layout.c (tui_set_layout_for_display_command):
6996 Split line so that operator goes to beginning of line.
6997 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
6998 assignment out of if statement.
7000 2011-01-07 Michael Snyder <msnyder@vmware.com>
7002 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7003 * ada-lang.h: Ditto.
7004 * ada-tasks.c: Ditto.
7005 * ada-valprint.c: Ditto.
7006 * aix-threads.c: Ditto.
7007 * alpha-linux-nat.c: Ditto.
7008 * alpha-linux-tdep.c: Ditto.
7009 * alpha-mdebug-tdep.c: Ditto.
7010 * alpha-nat.c: Ditto.
7011 * alpha-osf1-tdep.c: Ditto.
7012 * alpha-tdep.c: Ditto.
7013 * alphabsd-nat.c: Ditto.
7014 * alphabsd-tdep.c: Ditto.
7015 * amd64-darwin-tdep.c: Ditto.
7016 * amd64-linux-nat.c: Ditto.
7017 * amd64-linux-tdep.c: Ditto.
7018 * amd64-sol2-tdep.c: Ditto.
7019 * amd64-tdep.c: Ditto.
7020 * amd64-fbsd-tdep.c: Ditto.
7021 * amd64-nbsd-tdep.c: Ditto.
7022 * amd64-obsd-tdep.c: Ditto.
7023 * amd64-linux-nat.c: Ditto.
7024 * amd64-linux-tdep.c: Ditto.
7025 * arm-tdep.c: Ditto.
7026 * arm-tdep.h: Ditto.
7027 * armnbsd-nat.c: Ditto.
7028 * avr-tdep.c: Ditto.
7029 * bfin-tdep.c: Ditto.
7031 * c-typeprintc: Ditto.
7032 * c-valprint.c: Ditto.
7033 * coff-pe-read.h: Ditto.
7034 * coffreead.c: Ditto.
7035 * cris-tdep.c: Ditto.
7037 * darwin-nat-info.c: Ditto.
7038 * darwin-nat.c: Ditto.
7039 * dbug-rom.c: Ditto.
7043 * dec-thread.c: Ditto.
7045 * demangle.c: Ditto.
7046 * dicos-tdep.c: Ditto.
7047 * dictionary.c: Ditto.
7048 * dictionary.h: Ditto.
7049 * dink32-rom.c: Ditto.
7051 * doublest.c: Ditto.
7053 * dummy-frame.c: Ditto.
7054 * dwarf2-frame.c: Ditto.
7055 * dwarf2expr.c: Ditto.
7056 * dwarf2loc.c: Ditto.
7057 * dwarf2read.c: Ditto.
7061 * event-top.h: Ditto.
7062 * exceptions.c: Ditto.
7063 * exceptions.h: Ditto.
7065 * expprint.c: Ditto.
7066 * expression.h: Ditto.
7070 * f-typeprint.c: Ditto.
7071 * f-valprint.c: Ditto.
7072 * fbsd-nat.c: Ditto.
7074 * fork-child.c: Ditto.
7077 * frv-linux-tdep.c: Ditto.
7078 * frv-tdep.c: Ditto.
7080 * gdb-stabs.h: Ditto.
7081 * gdb_assert.h: Ditto.
7082 * gdb_string.h: Ditto.
7083 * gdb_thread_db.h: Ditto.
7084 * gdb_wait.h: Ditto.
7085 * gdbarch.sh: Ditto.
7087 * gdbthread.h: Ditto.
7088 * gdbtypes.c: Ditto.
7089 * gdbtypes.h: Ditto.
7092 * gnu-v2-abi.c: Ditto.
7093 * gnu-v3-abi.c: Ditto.
7094 * go32-nat.c: Ditto.
7095 * gdbarch.c: Regenerate.
7096 * gdbarch.h: Regenerate.
7098 2011-01-07 Michael Snyder <msnyder@vmware.com>
7100 * ax-gdb.c: Adjust some long output strings.
7101 * breakpoint.c: Ditto.
7106 * linux-nat.c: Ditto.
7107 * solib-pa64.c: Ditto.
7108 * solib-som.c: Ditto.
7110 2011-01-06 Tom Tromey <tromey@redhat.com>
7114 * python/python.c (GdbMethods): Add "newest_frame" method.
7115 * python/python-internal.h (gdbpy_newest_frame): Declare.
7116 * python/py-frame.c (gdbpy_newest_frame): New function.
7118 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
7120 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
7121 * jit.c (jit_debug): New variable.
7122 (show_jit_debug): New function.
7123 (struct target_buffer): Use ULONGEST.
7124 (bfd_open_from_target_memory): Likewise.
7125 (jit_register_code, jit_inferior_init): Add debug output.
7126 (_initialize_jit): Register "debug jit" command.
7128 2011-01-06 Tom Tromey <tromey@redhat.com>
7130 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7131 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7134 2011-01-06 Tom Tromey <tromey@redhat.com>
7136 * python/py-frame.c (frapy_block): Use get_frame_block.
7138 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7140 Do not stop on SIGPRIO signals by default
7141 * infrun.c (_initialize_infrun): Unset signal_stop and
7142 signal_print for TARGET_SIGNAL_PRIO.
7144 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7146 * ada-tasks.c: Fix style violation in comment.
7148 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7150 * linespec.c (decode_compound, find_method): Remove trailing \n
7151 at end of error string.
7152 * solib-irix.c (irix_current_sos): Likewise.
7153 * varobj.c (uninstall_variable): Likewise.
7155 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7157 * copyright.py: New script.
7158 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7159 Launch emacs without exec'ing. Call copyright.py afterwards.
7161 2011-01-05 Michael Snyder <msnyder@vmware.com>
7163 * addrmap.c: Shorten lines of >= 80 columns.
7164 * arch-utils.c: Ditto.
7165 * arch-utils.h: Ditto.
7167 * ax-general.c: Ditto.
7169 * blockframe.c: Ditto.
7170 * breakpoint.c: Ditto.
7171 * buildsym.c: Ditto.
7173 * c-typeprint.c: Ditto.
7175 * coffread.c: Ditto.
7179 * cp-namespace.c: Ditto.
7180 * cp-support.c: Ditto.
7181 * dbug-rom.c: Ditto.
7186 * dictionary.c: Ditto.
7188 * doublest.c: Ditto.
7189 * dwarf2-frame.c: Ditto.
7190 * dwarf2expr.c: Ditto.
7191 * dwarf2loc.c: Ditto.
7192 * dwarf2read.c: Ditto.
7195 * event-loop.c: Ditto.
7196 * event-loop.h: Ditto.
7197 * exceptions.h: Ditto.
7199 * expprint.c: Ditto.
7200 * expression.h: Ditto.
7202 * f-valprint.c: Ditto.
7204 * frame-base.c: Ditto.
7205 * frame-unwind.c: Ditto.
7206 * frame-unwind.h: Ditto.
7210 * gdb-stabs.h: Ditto.
7211 * gdb_assert.h: Ditto.
7212 * gdb_dirent.h: Ditto.
7213 * gdb_obstack.h: Ditto.
7215 * gdbtypes.c: Ditto.
7216 * gdbtypes.h: Ditto.
7217 * inf-ttrace.c: Ditto.
7222 * inline-frame.h: Ditto.
7223 * language.c: Ditto.
7224 * language.h: Ditto.
7225 * libunwind-frame.c: Ditto.
7226 * libunwind-frame.h: Ditto.
7227 * linespec.c: Ditto.
7228 * linux-nat.c: Ditto.
7229 * linux-nat.h: Ditto.
7230 * linux-thread-db.c: Ditto.
7231 * machoread.c: Ditto.
7232 * macroexp.c: Ditto.
7233 * macrotab.c: Ditto.
7236 * mdebugread.c: Ditto.
7241 * objfiles.c: Ditto.
7242 * objfiles.h: Ditto.
7244 * p-typeprint.c: Ditto.
7245 * p-valprint.c: Ditto.
7247 * printcmd.c: Ditto.
7248 * proc-events.c: Ditto.
7250 * progspace.c: Ditto.
7251 * progspace.h: Ditto.
7252 * psympriv.h: Ditto.
7255 * regcache.c: Ditto.
7256 * regcache.h: Ditto.
7257 * remote-fileio.c: Ditto.
7259 * ser-mingw.c: Ditto.
7261 * ser-unix.c: Ditto.
7264 * solib-frv.c: Ditto.
7265 * solib-irix.c: Ditto.
7266 * solib-osf.c: Ditto.
7267 * solib-pa64.c: Ditto.
7268 * solib-som.c: Ditto.
7269 * solib-sunos.c: Ditto.
7270 * solib-svr4.c: Ditto.
7271 * solib-target.c: Ditto.
7275 * stabsread.c: Ditto.
7276 * stabsread.c: Ditto.
7279 * symfile-mem.c: Ditto.
7285 * target-descriptions.c: Ditto.
7286 * target-memory.c: Ditto.
7289 * terminal.h: Ditto.
7292 * tracepoint.c: Ditto.
7293 * tracepoint.h: Ditto.
7297 * user-regs.c: Ditto.
7298 * user-regs.h: Ditto.
7300 * valarith.c: Ditto.
7302 * valprint.c: Ditto.
7303 * valprint.h: Ditto.
7308 * xcoffread.c: Ditto.
7309 * xcoffsolib.c: Ditto.
7310 * xcoffsolib.h: Ditto.
7311 * xml-syscall.c: Ditto.
7312 * xml-tdesc.c: Ditto.
7314 2011-01-05 Michael Snyder <msnyder@vmware.com>
7316 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7317 * cli/cli-decode.c: Ditto.
7318 * cli/cli-dump.c: Ditto.
7319 * cli/cli-logging.c: Ditto.
7320 * cli/cli-script.c: Ditto.
7321 * cli/cli-setshow.c: Ditto.
7322 * common/signals.c: Ditto.
7323 * mi/mi-cmd-break.c: Ditto.
7324 * mi/mi-cmd-disas.c: Ditto.
7325 * mi/mi-cmd-stack.c: Ditto.
7326 * mi/mi-cmd-var.c: Ditto.
7327 * mi/mi-cmds.c: Ditto.
7328 * mi/mi-common.h: Ditto.
7329 * mi/mi-console.c: Ditto.
7330 * mi/mi-interp.c: Ditto.
7331 * mi/mi-main.c: Ditto.
7332 * osf-share/cma_attr.c: Ditto.
7333 * osf-share/cma_deb_core.h: Ditto.
7334 * osf-share/cma_debug_client.h: Ditto.
7335 * osf-share/cma_handle.h: Ditto.
7336 * osf-share/cma_mutex.h: Ditto.
7337 * osf-share/cma_stack_int.h: Ditto.
7338 * osf-share/cma_tcb_defs.h: Ditto.
7339 * python/py-auto-load.c: Ditto.
7340 * python/py-breakpoint.c: Ditto.
7341 * python/py-cmd.c: Ditto.
7342 * python/py-frame.c: Ditto.
7343 * python/py-objfile.c: Ditto.
7344 * python/py-param.c: Ditto.
7345 * python/py-progspace.c: Ditto.
7346 * python/py-symbol.c: Ditto.
7347 * python/py-value.c: Ditto.
7348 * python/python-internal.h: Ditto.
7349 * python/python.c: Ditto.
7350 * tui/tui-data.c: Ditto.
7351 * tui/tui-disasm.c: Ditto.
7352 * tui/tui-hooks.c: Ditto.
7353 * tui/tui-io.c: Ditto.
7354 * tui/tui-layout.c: Ditto.
7355 * tui/tui-regs.c: Ditto.
7356 * tui/tui-source.c: Ditto.
7357 * tui/tui-stack.c: Ditto.
7358 * tui/tui-win.c: Ditto.
7359 * tui/tui-windata.c: Ditto.
7360 * tui/tui-winsource.c: Ditto.
7362 2011-01-05 Joel Brobecker <brobecker@adacore.com>
7364 * configure.ac, gdb.1: Copyright year update.
7366 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7368 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7369 this_pc_in_block, morestack_msym and morestack_name. Check for
7370 "__morestack" minimal symbol there.
7372 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7374 * symfile.c (find_sym_fns): Add call to dont_repeat.
7376 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7378 Copyright year update in most files (performed by copyright.sh).
7380 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7382 * top.c (print_gdb_version): Update copyright year in version output.
7384 For older changes see ChangeLog-2010.
7390 version-control: never