1 2011-02-23 Tom Tromey <tromey@redhat.com>
3 * ax-general.c (ax_pick): Add missing newline.
5 2011-02-23 Michael Snyder <msnyder@vmware.com>
7 * breakpoint.c (breakpoint_1): Change first argument from an int
8 to a char pointer, so that the function now accepts a list of
9 breakpoints rather than just one. Use new function
10 'number_is_in_list' to implement.
11 (breakpoints_info): Pass char * instead of int to breakpoint_1.
12 (watchpoints_info): Ditto.
13 (tracepoints_info): Ditto.
14 (maintenance_info_breakpoints): Ditto.
15 (_initialize_breakpoint): Update help strings to reflect the fact
16 that these functions can now take more than one argument.
17 * cli/cli-utils.c (number_is_in_list): New function.
18 * cli/cli-utils.h (number_is_in_list): Export.
20 2011-02-23 Michael Snyder <msnyder@vmware.com>
22 * memattr.c (mem_enable_command): Use get_number_or_range.
23 (mem_disable_command): Ditto.
24 (mem_delete_command): Ditto.
25 (_initialize_mem): Tweak usage message to reflect multiple
28 2011-02-22 Doug Evans <dje@google.com>
30 Add gdb.lookup_global_symbol python function.
32 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
33 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
34 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
36 2011-02-22 Tom Tromey <tromey@redhat.com>
38 * language.c (language_class_name_from_physname): Rename
39 'curr_language' argument to 'lang'; use in body.
41 2011-02-22 Michael Snyder <msnyder@vmware.com>
43 * cli/cli-utils.c (number_is_in_list): Check for zero return.
45 2011-02-22 Pedro Alves <pedro@codesourcery.com>
47 * frame-unwind.h: Fix comment to mention the this frame, not the
50 2011-02-22 Tom Tromey <tromey@redhat.com>
52 * symfile.c (auto_solib_limit): Remove.
53 * symfile.h (auto_solib_limit): Remove.
55 2011-02-22 Joel Brobecker <brobecker@adacore.com>
57 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
59 2011-02-21 Michael Snyder <msnyder@vmware.com>
61 * gdbthread.h (print_thread_info): Change prototype.
62 * thread.c (print_thread_info): Accept char* instead of int for
63 requested_threads argument. Use new function number_is_in_list
64 to determine which threads to list.
65 (info_threads_command): Pass char* to print_thread_info.
66 * cli/cli-utils.c (number_is_in_list): New function.
67 * cli/cli-utils.h (number_is_in_list): Export.
68 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
70 (print_one_inferior): Ditto.
71 (mi_cmd_list_thread_groups): Ditto.
73 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
75 * common/Makefile.in (CFLAGS): New.
76 (COMPILE): Add $(CFLAGS).
78 2011-02-21 Tom Tromey <tromey@redhat.com>
80 * breakpoint.c (catch_syscall_command_1): Fix typo.
82 2011-02-21 Tom Tromey <tromey@redhat.com>
84 * reverse.c: Include cli-utils.h.
85 * printcmd.c: Include cli-utils.h.
86 (string_printf): Use skip_spaces.
87 * cli/cli-utils.h: New file.
88 * cli/cli-utils.c: New file.
89 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
90 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
91 * breakpoint.h (get_number, get_number_or_range): Move to
93 * breakpoint.c: Include cli-utils.h.
94 (get_number_trailer, get_number, get_number_or_range)
95 (ep_skip_leading_whitespace): Move to cli-utils.c.
96 (create_breakpoint_sal, find_condition_and_thread)
97 (decode_static_tracepoint_spec, watch_command_1)
98 (watch_maybe_just_location, ep_parse_optional_if_clause)
99 (catch_fork_command_1, catch_exec_command_1)
100 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
101 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
102 (SUBDIR_CLI_SRCS): Add cli-utils.c.
103 (HFILES_NO_SRCDIR): Add cli-utils.h.
104 (cli-utils.o): New target.
106 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
108 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
109 before calling discard_all_inferiors.
111 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
113 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
114 (struct builtin_opencl_type): Remove.
115 (builtin_opencl_type): Change return type to "struct type **".
116 (lookup_opencl_vector_type): Update caller.
117 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
118 (build_opencl_types): Install plain array of "struct type *"
119 instead of "struct builtin_opencl_type".
121 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
122 Ulrich Weigand <uweigand@de.ibm.com>
124 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
125 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
126 (struct arm_linux_hwbp_cap): New type.
127 (arm_linux_get_hwbp_cap): New function.
128 (arm_linux_get_hw_breakpoint_count): Likewise.
129 (arm_linux_get_hw_watchpoint_count): Likewise.
130 (arm_linux_can_use_hw_breakpoint): Likewise.
131 (arm_hwbp_type): New type.
132 (arm_hwbp_control_t): Likewise.
133 (struct arm_linux_hw_breakpoint): Likewise.
134 (struct arm_linux_thread_points): Likewise.
135 (arm_threads): New global variable.
136 (arm_linux_find_breakpoints_by_tid): New function.
137 (arm_hwbp_control_initialize): Likewise.
138 (arm_hwbp_control_is_enabled): Likewise.
139 (arm_hwbp_control_disable): Likewise.
140 (arm_linux_hw_breakpoint_initialize): Likewise.
141 (arm_linux_get_hwbp_type): Likewise.
142 (arm_linux_hw_watchpoint_initialize): Likewise.
143 (arm_linux_hw_breakpoint_equal): Likewise.
144 (arm_linux_insert_hw_breakpoint1): Likewise.
145 (arm_linux_remove_hw_breakpoint1): Likewise.
146 (arm_linux_insert_hw_breakpoint): Likewise.
147 (arm_linux_remove_hw_breakpoint): Likewise.
148 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
149 (arm_linux_insert_watchpoint): Likewise.
150 (arm_linux_remove_watchpoint): Likewise.
151 (arm_linux_stopped_data_address): Likewise.
152 (arm_linux_stopped_by_watchpoint): Likewise.
153 (arm_linux_watchpoint_addr_within_range): Likewise.
154 (arm_linux_new_thread): Likewise.
155 (arm_linux_thread_exit): Likewise.
156 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
157 related target callbacks. Register arm_linux_new_thread and
158 arm_linux_thread_exit.
159 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
160 * arm-tdep.c (arm_pc_is_thumb): Make global.
161 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
163 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
165 * breakpoint.c (update_watchpoint): Do not attempt to recreate
166 per-frame locations while within a function epilogue.
168 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
170 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
171 to GNU coding standards.
173 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
175 Allow use of mingw native on Windows 95 OS.
176 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
177 (ser_windows_close): Only call CancelIo if function exists.
178 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
179 to check for existence of CancelIo function in kernel32 DLL.
181 2011-02-21 Hui Zhu <teawater@gmail.com>
183 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
184 * ax-gdb.c (gen_printf_expr_callback): New function.
185 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
186 * ax-general.c (ax_memcpy): New function.
187 (ax_print): Handle "printf".
189 * ax.h (ax_memcpy): Forward declare.
190 * common/ax.def (invalid2): Removed.
192 * printcmd.c (printcmd.h): New include.
193 (string_printf): New function.
194 (ui_printf): Removed.
195 (printf_command): Remove static. Call string_printf.
196 (eval_command): Call string_printf.
197 * printcmd.h: New file.
198 * tracepoint.c (validate_actionline,
199 encode_actions_1): handle printf_command.
201 2011-02-19 Michael Snyder <msnyder@vmware.com>
203 * reverse.c (delete_one_bookmark): Argument is now bookmark
204 id rather than pointer to bookmark struct.
205 (delete_bookmark_command): Use get_number_or_range.
206 (goto_bookmark_command): Parse with get_number instead of strtoul.
207 (bookmark_1): New function. Print info for one bookmark.
208 (bookmarks_info): Use get_number_or_range and bookmark_1.
210 2011-02-18 Michael Snyder <msnyder@vmware.com>
212 * thread.c (info_threads_command): Re-implement using
214 (thread_apply_command): Ditto.
216 2011-02-18 Tom Tromey <tromey@redhat.com>
218 * common/ax.def: New file.
219 * ax.h (enum agent_op): Use ax.def.
220 * ax-general.c (aop_map): Use ax.def.
222 2011-02-18 Tom Tromey <tromey@redhat.com>
224 * ax-general.c (aop_map): Add pick and rot.
225 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
226 <DW_OP_rot>: Implement.
227 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
229 * ax-general.c (ax_pick): New function.
231 2011-02-18 Tom Tromey <tromey@redhat.com>
233 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
235 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
236 Tom Tromey <tromey@redhat.com>
238 * cp-support.c (make_symbol_overload_list_namespace): Do not call
239 make_symbol_overload_list_block with NULL BLOCK.
240 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
242 2011-02-18 Pedro Alves <pedro@codesourcery.com>
244 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
245 * breakpoint.h (get_number_or_range): Declare.
246 * printcmd.c (ALL_DISPLAYS): Declare.
247 (delete_display): Reimplement taking a display pointer.
248 (undisplay_command): Accept a range of displays to delete, using
251 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
253 * c-valprint.c (c_val_print): Add embedded_offset to address
254 for arrays of unspecified length.
255 * p-valprint.c (pascal_val_print): Likewise.
257 2011-02-18 Yao Qi <yao@codesourcery.com>
259 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
260 (arm_process_displaced_insn): .. here. Remove parameter INSN.
261 (thumb_process_displaced_insn): New.
262 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
263 call to arm_process_displaced_insn.
264 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
266 2011-02-17 Tom Tromey <tromey@redhat.com>
268 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
269 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
270 compile_dwarf_to_ax. No longer static. Call
271 dwarf2_compile_cfa_to_ax.
272 (locexpr_tracepoint_var_ref): Update.
273 (loclist_tracepoint_var_ref): Update.
274 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
275 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
276 argument; add 'gdbarch' and 'pc'.
277 (dwarf2_compile_cfa_to_ax): New function.
278 (dwarf2_frame_cache): Update.
280 2011-02-17 Joel Brobecker <brobecker@adacore.com>
282 * ada-lang.c (ada_type_of_array): Fix the size of the array
283 in the case of an unconstrained packed array.
285 2011-02-17 Yao Qi <yao@codesourcery.com>
287 * common/Makefile.in: Add more targets for make.
289 2011-02-16 Tom Tromey <tromey@redhat.com>
291 * dwarf2loc.c (unimplemented): Fix typo.
293 2011-02-16 Tom Tromey <tromey@redhat.com>
295 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
296 (compile_dwarf_to_ax) <default>: Use unimplemented.
297 <DW_OP_deref>: Update.
298 (disassemble_dwarf_expression): Update.
299 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
300 (decode_locdesc): Update.
301 * dwarf2expr.h (dwarf_stack_op_name): Update.
303 2011-02-16 Tom Tromey <tromey@redhat.com>
305 * ax.h (struct aop_map) <name>: Now const.
307 2011-02-16 Tom Tromey <tromey@redhat.com>
309 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
312 2011-02-16 Yao Qi <yao@codesourcery.com>
314 * infrun.c (get_displaced_step_closure_by_addr): New.
315 * inferior.h: Declare it.
316 * arm-tdep.c: (arm_pc_is_thumb): Call
317 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
320 2011-02-16 Pedro Alves <pedro@codesourcery.com>
321 Jan Kratochvil <jan.kratochvil@redhat.com>
324 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
326 2011-02-16 Pedro Alves <pedro@codesourcery.com>
327 Jan Kratochvil <jan.kratochvil@redhat.com>
329 * value.c (value_contents_copy_raw): Extend describing comment.
330 Assert that the destination contents we're overwriting are wholly
332 (value_contents_copy): Extend describing comment.
334 2011-02-16 Pedro Alves <pedro@codesourcery.com>
335 Jan Kratochvil <jan.kratochvil@redhat.com>
337 * value.c (value_available_contents_eq): Remove redundant local
338 variables. Fix available contents comparision.
339 * value.h (value_available_contents_eq): Extend describing
342 2011-02-16 Yao Qi <yao@codesourcery.com>
344 * thread.c (info_threads_command): Add missing i18n markup and remove
347 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
349 * breakpoint.c (longjmp_names): New variable.
350 (struct breakpoint_objfile_data): New type.
351 (breakpoint_objfile_key): New variable.
352 (msym_not_found): New variable.
353 (msym_not_found_p): New predicate.
354 (get_breakpoint_objfile_data): New function.
355 (create_overlay_event_breakpoint): Check per-objfile cache for
357 (create_longjmp_master_breakpoint): Likewise.
358 (create_std_terminate_master_breakpoint): Likewise.
359 (create_exception_master_breakpoint): Likewise.
360 (_initialize_breakpoint): Register per-objfile data key.
362 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
364 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
366 (create_longjmp_master_breakpoint): Loop over longjmp names.
367 (create_std_terminate_master_breakpoint): Const-propagate parameter
369 (update_breakpoints_after_exec): Adjust.
370 (breakpoint_re_set): Adjust.
372 2011-02-15 Michael Snyder <msnyder@vmware.com>
374 * thread.c (info_threads_command): Process arg as thread id,
375 or list of thread ids.
376 (thread_find_command): New command.
377 (_initialize_thread): Document argument for info threads.
378 Document 'thread find' command.
379 * NEWS: Document new command "thread find".
381 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
383 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
384 * aclocal.m4: Regenerated with aclocal-1.11.1.
385 * common/configure: Regenerate with autoconf-2.64.
387 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
389 * opencl-lang.c (build_opencl_types): Set the size of the built-in
390 bool data type to a size of one byte.
392 2011-02-15 Pedro Alves <pedro@codesourcery.com>
393 Jan Kratochvil <jan.kratochvil@redhat.com>
395 * target.c (memory_xfer_live_readonly_partial): Document where to
396 look for interface description.
398 2011-02-15 Yao Qi <yao@codesourcery.com>
401 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
402 order to store PC value on stack instead of text section.
404 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
406 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
407 the EFP register set size.
408 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
409 data from the VMX register.
410 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
411 and write data from/to the VMX register.
413 2011-02-14 Michael Snyder <msnyder@vmware.com>
415 * command.h (enum command_class): New class 'no_set_class', for
416 "show" commands without a corresponding "set" command.
417 * value.c (_initialize_values): Use 'no_set_class' for "show values".
418 * copying.c (_initialize_copying): Ditto for "show copying" and
420 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
422 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
423 which there is no corresponding "set" command (eg. "show copying").
425 2011-02-14 Pedro Alves <pedro@codesourcery.com>
426 Jan Kratochvil <jan.kratochvil@redhat.com>
428 * exec.c (section_table_available_memory): Change `len' parameter
430 * exec.h (section_table_available_memory): Ditto.
431 * value.h (read_value_memory): Rename the `offset' parameter to
434 2011-02-14 Pedro Alves <pedro@codesourcery.com>
435 Jan Kratochvil <jan.kratochvil@redhat.com>
437 * memrange.c (compare_mem_ranges): Mention sort order in
439 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
440 * tracepoint.c (traceframe_available_memory): Extend comment to
441 mention what happens to RESULT when the target does not support
444 2011-02-14 Pedro Alves <pedro@codesourcery.com>
445 Jan Kratochvil <jan.kratochvil@redhat.com>
447 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
450 2011-02-14 Pedro Alves <pedro@codesourcery.com>
452 * value.c (value_bits_valid, value_bits_synthetic_pointer):
453 No longer handle NULL values.
455 2011-02-14 Pedro Alves <pedro@codesourcery.com>
457 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
458 * value.c: Include "exceptions.h".
459 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
461 * cp-abi.c: Include gdb_assert.h.
462 (baseclass_offset): Add `embedded_offset' and `val' parameters.
463 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
465 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
466 parameters. No longer returns -1 on error.
467 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
469 * cp-valprint.c: Include exceptions.h.
470 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
471 the baseclass_offset. Handle unavailable base classes. Use
472 val_print_invalid_address.
473 * p-valprint.c: Include exceptions.h.
474 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
475 when fetching the baseclass_offset. No longer expect
476 baseclass_offset returning -1. Handle unavailable base classes.
477 Use val_print_invalid_address.
478 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
479 `valaddr' parameter, and change its type to gdb_byte pointer. Add
480 `embedded_offset' and `val' parameters. Adjust.
481 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
482 parameter, and change its type to gdb_byte pointer. Add
483 `embedded_offset' and `val' parameters. Adjust. No longer expect
484 baseclass_offset returning -1.
485 (value_dynamic_cast): Use value_contents_for_printing rather than
486 value_contents. Adjust.
487 (search_struct_field): No longer expect baseclass_offset returning
489 (search_struct_method): If reading memory from the target is
490 necessary, wrap it in a new value to pass to baseclass_offset. No
491 longer expect baseclass_offset returning -1.
492 (find_method_list): No longer expect baseclass_offset returning
493 -1. Use value_contents_for_printing rather than value_contents.
494 * valprint.c (val_print_invalid_address): New function.
495 * valprint.h (val_print_invalid_address): Declare.
496 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
497 and `val' parameters. No longer expect baseclass_offset returning
499 * gnu-v2-abi.c: Include "exceptions.h".
500 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
501 parameters. Handle unavailable memory. Recurse through
502 gnuv2_baseclass_offset directly, rather than through
503 baseclass_offset. No longer returns -1 on not found, instead
505 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
506 `val' parameters. Adjust.
508 2011-02-14 Pedro Alves <pedro@codesourcery.com>
510 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
511 almost but not quite adjacent.
513 2011-02-14 Pedro Alves <pedro@codesourcery.com>
515 * value.h (value_entirely_available): Declare.
516 * value.c (value_entirely_available): New function.
517 * c-valprint.c (c_value_print): Don't try fetching the pointer's
518 real type if the pointer is unavailable.
520 2011-02-14 Pedro Alves <pedro@codesourcery.com>
522 * valops.c (value_repeat): Use read_value_memory instead of
525 2011-02-14 Pedro Alves <pedro@codesourcery.com>
527 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
528 * value.c (value_contents_copy_raw, value_contents_copy): New
530 (value_primitive_field): Use value_contents_copy_raw instead of
532 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
534 (value_array, value_slice): Ditto.
535 * valarith.c (value_subscripted_rvalue): Use
536 value_contents_copy_raw instead of memcpy.
538 2011-02-14 Pedro Alves <pedro@codesourcery.com>
540 <unavailable> references.
542 * valops.c (get_value_at): Use value_from_contents_and_address,
543 avoiding read_memory.
545 2011-02-14 Pedro Alves <pedro@codesourcery.com>
547 * c-valprint.c (c_val_print): Print a string with unavailable
548 contents as an array.
550 2011-02-14 Pedro Alves <pedro@codesourcery.com>
552 * value.h (unpack_bits_as_long): Delete declaration.
553 (unpack_value_bits_as_long): Declare.
554 (unpack_value_field_as_long): Declare.
555 (value_field_bitfield): Declare.
556 * value.c (unpack_bits_as_long): Rename to...
557 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
558 value parameters. Return the extracted result in a new output
559 parameter. If the value contents are unavailable, return false,
560 otherwise return true.
561 (unpack_value_bits_as_long): New.
562 (unpack_field_as_long): Rename to...
563 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
564 Add embedded_offset and value parameters. Return the extracted
565 result in a new output parameter. If the value contents are
566 unavailable, return false, otherwise return true.
567 (unpack_value_field_as_long): New.
568 (unpack_field_as_long_1): New.
569 (unpack_field_as_long): Reimplement as wrapper around
570 unpack_value_field_as_long_1.
571 (value_field_bitfield): New function.
572 * valops.c (value_fetch_lazy): When fetching a bitfield, use
573 unpack_value_bits_as_long. Mark the value as unavailable, if it
575 * jv-valprint.c (java_print_value_fields): Use
576 value_field_bitfield.
577 * p-valprint.c (pascal_object_print_value_fields): Use
578 value_field_bitfield.
579 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
581 2011-02-14 Pedro Alves <pedro@codesourcery.com>
583 * value.c (get_internalvar_integer): Also return the int value of
584 TYPE_CODE_INT INTERNALVAR_VALUE values.
585 (set_internalvar): Don't special case TYPE_CODE_INT.
587 2011-02-14 Pedro Alves <pedro@codesourcery.com>
589 * value.c (struct internalvar) <enum internalvar_kind>: Remove
592 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
593 (set_internalvar): Remove special TYPE_CODE_PTR handling.
594 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
596 2011-02-14 Pedro Alves <pedro@codesourcery.com>
598 * value.h (value_available_contents_eq): Declare.
599 * value.c (find_first_range_overlap): New function.
600 (value_available_contents_eq): New function.
601 * valprint.c (val_print_array_elements): Use
602 value_available_contents_eq.
603 * ada-valprint.c (val_print_packed_array_elements): Use
604 value_available_contents_eq.
605 * jv-valprint.c (java_value_print): Use
606 value_available_contents_eq.
608 2011-02-14 Pedro Alves <pedro@codesourcery.com>
610 * target.c (target_read_live_memory): New function.
611 (memory_xfer_live_readonly_partial): New.
612 (memory_xfer_partial): If reading from a traceframe, fallback to
613 reading unavailable read-only memory from read-only regions of
615 * tracepoint.c (disconnect_tracing): Adjust.
616 (set_current_traceframe): New, factored out from
617 set_traceframe_number.
618 (set_traceframe_number): Reimplement to only change the traceframe
619 number on the GDB side.
620 (do_restore_current_traceframe_cleanup): Adjust.
621 (make_cleanup_restore_traceframe_number): New.
622 (cur_traceframe_number): New global.
623 (tfile_open): Set cur_traceframe_number to no traceframe.
624 (set_tfile_traceframe): New function.
625 (tfile_trace_find): If looking up a traceframe using any method
626 other than by number, make sure the current tfile traceframe
627 matches gdb's current traceframe. Update the current tfile
628 traceframe if the lookup succeeded.
629 (tfile_fetch_registers, tfile_xfer_partial)
630 (tfile_get_trace_state_variable_value): Make sure the remote
631 traceframe matches gdb's current traceframe.
632 * remote.c (remote_traceframe_number): New global.
633 (remote_open_1): Set it to -1.
634 (set_remote_traceframe): New function.
635 (remote_fetch_registers, remote_store_registers)
636 (remote_xfer_memory, remote_xfer_partial)
637 (remote_get_trace_state_variable_value): Make sure the remote
638 traceframe matches gdb's current traceframe.
639 (remote_trace_find): If looking up a traceframe using any method
640 other than by number, make sure the current remote traceframe
641 matches gdb's current traceframe. Update the current remote
642 traceframe if the lookup succeeded.
643 * infrun.c (fetch_inferior_event): Adjust.
644 * tracepoint.h (set_current_traceframe): Declare.
645 (get_traceframe_number, set_traceframe_number): Add describing
648 2011-02-14 Pedro Alves <pedro@codesourcery.com>
650 Mark pieces of values as unavailable if the corresponding memory
653 * valops.c: Include tracepoint.h.
654 (value_fetch_lazy): Use read_value_memory.
655 (read_value_memory): New.
656 * value.h (read_value_memory): Declare.
657 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
658 * exec.c (section_table_available_memory): New function.
659 * exec.h (section_table_available_memory): Declare.
661 2011-02-14 Pedro Alves <pedro@codesourcery.com>
663 * Makefile.in (SFILES): Add memrange.c.
664 (HFILES_NO_SRCDIR): Add memrange.h.
665 (COMMON_OBS): Add memrange.o.
666 * memrange.c: New file.
667 * memrange.h: New file.
668 * tracepoint.c: Include memrange.h.
669 (struct mem_range): Delete.
670 (mem_range_s): Delete.
671 (traceframe_available_memory): New function.
672 * tracepoint.h (traceframe_available_memory): Declare.
674 2011-02-14 Pedro Alves <pedro@codesourcery.com>
676 * target.h (struct traceframe_info): Forward declare.
677 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
678 (struct target_ops) <to_traceframe_info>: New field.
679 (target_traceframe_info): New.
680 * target.c (update_current_target): Inherit and default
682 * remote.c (PACKET_qXfer_traceframe_info): New.
683 (remote_protocol_features): Register qXfer:traceframe-info:read.
684 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
685 (remote_traceframe_info): New.
686 (init_remote_ops): Install it.
687 (_initialize_remote): Install "set/show remote traceframe-info"
689 * tracepoint.h (parse_traceframe_info): Declare.
690 * tracepoint.c (struct mem_range): New.
691 (mem_range_s): New typedef.
692 (struct traceframe_info): New.
693 (traceframe_info): New global.
694 (free_traceframe_info): New function.
695 (clear_traceframe_info): New function.
696 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
698 (build_traceframe_info): New function.
699 (tfile_traceframe_info): New function.
700 (init_tfile_ops): Install tfile_traceframe_info.
701 (traceframe_info_start_memory, free_result): New functions.
702 (memory_attributes, traceframe_info_elements): New globals.
703 (parse_traceframe_info, get_traceframe_info): New functions.
704 * features/traceframe-info.dtd: New file.
705 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
707 2011-02-14 Pedro Alves <pedro@codesourcery.com>
709 Base support for <unavailable> value contents.
711 * value.h (value_bytes_available): Declare.
712 (mark_value_bytes_unavailable): Declare.
713 * value.c (struct range): New struct.
714 (range_s): New typedef.
715 (ranges_overlap): New function.
716 (range_lessthan): New function.
717 (ranges_contain_p): New function.
718 (struct value) <unavailable>: New field.
719 (value_bytes_available): New function.
720 (mark_value_bytes_unavailable): New function.
721 (require_not_optimized_out): Constify parameter.
722 (require_available): New function.
723 (value_contents_all, value_contents): Require all bytes be
725 (value_free): Free `unavailable'.
726 (value_copy): Copy `unavailable'.
727 * valprint.h (val_print_unavailable): Declare.
728 * valprint.c (valprint_check_validity): Rename `offset' parameter
729 to `embedded_offset'. If printing a scalar, check whether the
730 value chunk is available.
731 (val_print_unavailable): New.
732 (val_print_scalar_formatted): Check whether the value is
734 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
735 pretty-printing unavailable values.
737 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
739 Fix const/volatile qualifiers of C++ types, PR c++/12328.
740 * c-typeprint.c (c_type_print_args): Update the function comment. New
741 variable param_type, initialize it. Remove const/volatile qualifiers
742 for language_cplus and !show_artificial. Use param_type.
744 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
746 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
747 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
748 * symtab.h (struct symtab) <next>: Comment extension.
750 2011-02-12 Yao Qi <yao@codesourcery.com>
752 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
754 2011-02-11 Yao Qi <yao@codesourcery.com>
756 * common/Makefile.in: Add copyright header.
758 2011-02-11 Pedro Alves <pedro@codesourcery.com>
760 * infrun.c (proceed): Move switching out and in of tfind mode from
762 (fetch_inferior_event): ... to here.
764 2011-02-11 Yao Qi <yao@codesourcery.com>
766 * Makefile.in: Remove signals.o from COMMON_OBS. Link
768 * configure.ac: Add common to sub dir.
769 * configure: Regenerate.
771 2011-02-11 Yao Qi <yao@codesourcery.com>
775 * common/Makefile.in: New.
776 * common/configure.ac: New.
777 * common/aclocal.m4: New.
778 * common/configure: Generate.
780 2011-02-10 Pedro Alves <pedro@codesourcery.com>
782 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
783 side of the parenthesis.
786 2010-07-13 Jakub Jelinek <jakub@redhat.com>
787 * vec.h (VEC_block_remove): Fix comment.
789 2011-02-08 Michael Snyder <msnyder@vmware.com>
791 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
793 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
795 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
796 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
799 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
802 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
804 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
805 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
807 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
809 * dwarf2read.c (read_subroutine_type): Set special calling
810 convention flag for functions compiled by IBM XL C for OpenCL.
811 * ppc-sysv-tdep.c: Include "dwarf2.h"
812 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
814 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
815 IBM OpenCL vector types calling convention.
816 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
817 (ppc_sysv_abi_broken_return_value): Likewise.
818 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
819 types calling convention.
820 (ppc64_sysv_abi_return_value): Likewise.
821 * spu-tdep.c: Include "dwarf2.h"
822 (spu_return_value): Implement IBM OpenCL vector types calling
825 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
827 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
828 correct ABI for AltiVec vector arguments.
830 2011-02-07 Pedro Alves <pedro@codesourcery.com>
832 * valprint.c (val_print): Extend comment.
833 * ada-valprint.c (ada_valprint): Rewrite comment deferring
834 interface explanation to val_print.
835 (ada_val_print_array): Adjust comment to current interface.
836 (print_field_values): Adjust comment to current interface.
837 * c-valprint.c (c_val_print): Rewrite comment deferring interface
838 explanation to val_print.
839 * f-valprint.c (f_val_print): Ditto.
840 * jv-valprint.c (java_val_print): Ditto.
841 * m2-valprint.c (m2_val_print): Ditto.
842 * p-valprint.c (pascal_val_print): Ditto.
844 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
846 * breakpoint.c (parse_breakpoint_sals): Fix description.
848 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
849 Oguz Kayral <oguzkayral@gmail.com>
851 * python/py-inferior.c (python_on_normal_stop): New function.
852 (python_on_resume): New function.
853 (python_inferior_exit): New function.
854 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
855 inferior_exit observers.
856 * python/py-evtregistry.c: New file.
857 * python/py-threadevent.c : New file.
858 * python/py-event.c: New file.
859 * python/py-evts.c: New file.
860 * python/py-continueevent.c: New file.
861 * python/py-bpevent.c: New file.
862 * python/py-signalevent.c: New file.
863 * python/py-exetiedevent.c: New file.
864 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
865 Move struct breakpoint_object from here...
866 * python/python-internal.h: ... to here.
867 * python/py-event.h: New file.
868 * python/py-events.h: New file.
869 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
870 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
871 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
872 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
873 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
874 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
875 Add build rules for all the above.
877 2011-02-04 Tom Tromey <tromey@redhat.com>
879 * dwarf2read.c (dwarf2_section_empty_p): New function.
880 (dwarf2_read_section): Use dwarf2_section_empty_p.
881 (dwarf2_section_size): New function.
882 (dwarf2_get_section_info): Unconditionally read section.
883 (dwarf2_read_index): Use dwarf2_section_empty_p.
884 (partial_read_comp_unit_head): Use dwarf2_section_size.
885 (dwarf2_symbol_mark_computed): Likewise.
887 2011-02-04 David Daney <ddaney@caviumnetworks.com>
889 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
891 2011-02-04 David Daney <ddaney@caviumnetworks.com>
893 * mips-linux-tdep.c: Include xml-syscall.h.
894 (mips_linux_get_syscall_number): New function.
895 (mips_linux_init_abi): Add calls to
896 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
897 * data-directory/Makefile.in (SYSCALLS_FILES): Add
898 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
899 * syscalls/mips-n32-linux.xml: New file.
900 * syscalls/mips-n64-linux.xml: New file.
901 * syscalls/mips-o32-linux.xml: New file.
903 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
905 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
906 Complain about inverted range entries.
907 (dwarf2_record_block_ranges): Likewise.
909 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
912 * breakpoint.c (update_watchpoint): Fix name of the
913 update_global_location_list function.
914 (print_one_breakpoint): Fix typo.
915 (_initialize_breakpoint): Remove extra space in hbreak help
917 * breakpoint.h (struct bp_location) <length>: Fix field
920 2011-02-04 Pedro Alves <pedro@codesourcery.com>
922 * regcache.c (registers_changed_ptid): Don't explictly always
923 clear `current_regcache'. Only clear current_thread_ptid and
924 current_thread_arch when PTID matches. Only reinit the frame
925 cache if PTID matches the current inferior_ptid. Move alloca(0)
927 (registers_changed): ... here.
929 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
931 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
932 starts with __stack_chk_guard as stack guard symbol.
934 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
936 * disasm.c (compare_lines): Handle the end of sequence markers
937 within the line table to better support disassembling over
938 compilation unit boundaries.
940 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
942 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
943 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
944 implementation even if no symbols are available.
945 (thumb_analyze_prologue): Update call to skip_prologue_function.
946 (arm_analyze_prologue): Likewise.
948 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
950 * arm-tdep.c: Include "observer.h".
951 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
952 (arm_exidx_data_key): New static variable.
953 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
954 (struct arm_exidx_data): Likewise.
955 (arm_exidx_data_free): New function.
956 (arm_compare_exidx_entries): Likewise.
957 (arm_obj_section_from_vma): Likewise.
958 (arm_exidx_new_objfile): Likewise.
959 (arm_find_exidx_entry): Likewise.
960 (arm_exidx_fill_cache): Likewise.
961 (arm_exidx_unwind_sniffer): Likewise.
962 (arm_exidx_unwind): New global variable.
963 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
964 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
965 observer. Register arm_exidx_data_key as objfile data.
967 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
969 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
970 due to accessing uninitialized variable. Fix indentation.
972 2011-02-02 Pedro Alves <pedro@codesourcery.com>
974 * c-valprint.c (c_value_print): When doing virtual base pointer
975 adjustment, create a new value with adjusted contents rather than
976 changing the contents of the value being printed (and getting it
979 2011-02-02 Pedro Alves <pedro@codesourcery.com>
981 * xml-support.c (xml_find_attribute): New.
982 (xinclude_start_include): Use it.
983 * xml-support.h (xml_find_attribute): Declare.
984 * memory-map.c (memory_map_start_memory)
985 (memory_map_start_property): Use xml_find_attribute.
986 * osdata.c (osdata_start_osdata, osdata_start_column): Use
988 * remote.c (start_thread): Use xml_find_attribute.
989 * solib-target.c (library_list_start_segment)
990 (library_list_start_section, library_list_start_library)
991 (library_list_start_list): Use xml_find_attribute.
992 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
993 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
994 (tdesc_start_field): Use xml_find_attribute.
996 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
998 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
999 (BUILD_OCL_VTYPES): Update.
1001 2011-02-02 Joel Brobecker <brobecker@adacore.com>
1003 * configure.ac: Work around non-GNU sed limitation when computing
1004 python version number.
1005 * configure: Regenerate.
1007 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1009 Fix debug printing of TYPE_INSTANCE.
1010 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
1011 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
1013 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1015 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
1016 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
1017 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
1018 * ada-operator.inc: Rename the file to ...
1019 * ada-operator.def: ... here, wrap all the entries by macro OP.
1020 * expprint.c (op_name_standard): Remove all the entries. Include
1021 "std-operator.def" instead.
1022 * expression.h (enum exp_opcode): Include "std-operator.def" and
1023 "ada-operator.def". Move all the entries ...
1024 * std-operator.def: ... here, wrap all the entries by macro OP.
1026 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1028 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
1029 * breakpoint.c (remove_jit_event_breakpoints): New function.
1030 * jit.c (jit_descriptor_addr): Delete.
1031 (registering_code): Delete.
1032 (clear_int): Delete.
1033 (jit_inferior_data): New variable.
1034 (struct jit_inferior_data): New type.
1035 (get_jit_inferior_data): New function.
1036 (jit_inferior_data_cleanup): New function.
1037 (jit_read_descriptor): Adjust.
1038 (jit_register_code): Adjust.
1039 (jit_breakpoint_re_set_internal): New function; move code here ...
1040 (jit_inferior_init): ... from here.
1041 (jit_breakpoint_re_set): Adjust.
1042 (jit_reset_inferior_data_and_breakpoints): New function.
1043 (jit_inferior_created_observer): Adjust.
1044 (jit_inferior_exit_hook): Adjust.
1045 (jit_executable_changed_observer): New function.
1046 (jit_event_handler): Adjust.
1047 (_initialize_jit): Adjust.
1049 2011-01-31 Michael Snyder <msnyder@vmware.com>
1051 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
1054 2011-01-31 Tom Tromey <tromey@redhat.com>
1057 * python/python.c (execute_gdb_command): Call
1058 prevent_dont_repeat.
1059 * top.c (suppress_dont_repeat): New global.
1060 (dont_repeat): Use it.
1061 (prevent_dont_repeat): New function.
1062 * command.h (prevent_dont_repeat): Declare.
1064 2011-01-31 Tom Tromey <tromey@redhat.com>
1066 * infcmd.c (finish_backward): Use breakpoint_set_silent.
1067 * python/py-breakpoint.c (bppy_set_silent): Use
1068 breakpoint_set_silent.
1069 (bppy_set_thread): Use breakpoint_set_thread.
1070 (bppy_set_task): Use breakpoint_set_task.
1071 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
1072 (breakpoint_set_task): Declare.
1073 (make_breakpoint_silent): Remove.
1074 * breakpoint.c (breakpoint_set_silent): New function.
1075 (breakpoint_set_thread): Likewise.
1076 (breakpoint_set_task): Likewise.
1077 (make_breakpoint_silent): Remove.
1079 2011-01-31 Tom Tromey <tromey@redhat.com>
1081 * breakpoint.h (user_breakpoint_p): Declare.
1082 * breakpoint.c (user_breakpoint_p): New function.
1083 (breakpoint_1): Use it.
1084 (save_breakpoints): Likewise.
1086 2011-01-31 Joel Brobecker <brobecker@adacore.com>
1088 * configure.ac: Add handling of Python distribution on Windows.
1089 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
1090 sysconfig variables are not defined, then do not use them.
1091 On Windows, if LIBPL is not defined, then use prefix + '/libs'
1092 instead. On Windows, return all paths using forward-slashes
1093 rather than backslashes.
1095 2011-01-31 Joel Brobecker <brobecker@adacore.com>
1097 * configure.ac: Remove fallback behavior for building
1098 against Python. Remove tweaking of Python include path.
1099 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
1100 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
1101 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
1102 Always restore CPPFLAGS and LIBS after linking test.
1103 * configure: Regenerated.
1104 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
1105 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
1106 * python/python-internal.h: Adjust includes of Python .h files.
1108 2011-01-31 Joel Brobecker <brobecker@adacore.com>
1110 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
1113 2011-01-31 Joel Brobecker <brobecker@adacore.com>
1115 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
1118 2011-01-31 Yao Qi <yao@codesourcery.com>
1120 * arm-linux-nat.c: Update calls to regcache_register_status
1121 instead of regcache_valid_p.
1122 * aix-thread.c: Likewise.
1123 * i386gnu-nat.c: Likewise.
1125 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1128 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
1129 touching TYPE_FIELD_ARTIFICIAL.
1131 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
1133 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
1136 2011-01-28 Pedro Alves <pedro@codesourcery.com>
1138 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
1139 selected, don't try iterating over the traceframe's blocks.
1140 (tfile_has_stack): If there's no traceframe selected, then there's
1142 (tfile_has_registers): If there's no traceframe selected, then
1143 there's no registers.
1145 2011-01-28 Pedro Alves <pedro@codesourcery.com>
1147 * target.c (memory_xfer_partial): No need to restore shadows if we
1148 haven't read anything.
1150 2011-01-28 Pedro Alves <pedro@codesourcery.com>
1152 * mips-tdep.c (mips_print_register): Use get_frame_register_value
1153 and val_print_scalar_formatted.
1155 2011-01-27 Pedro Alves <pedro@codesourcery.com>
1157 * tracepoint.c (tfile_read): New.
1158 (tfile_open): Use it.
1159 (tfile_get_traceframe_address): Use it.
1160 (tfile_trace_find): Use it.
1161 (walk_blocks_callback_func): New typedef.
1162 (match_blocktype): New function.
1163 (traceframe_walk_blocks): New function.
1164 (traceframe_find_block_type): New function.
1165 (tfile_fetch_registers, tfile_xfer_partial)
1166 (tfile_get_trace_state_variable_value): Use
1167 traceframe_find_block_type and tfile_read.
1169 2011-01-26 Kevin Buettner <kevinb@redhat.com>
1171 * remote-mips.c: Add internationalization mark ups. Remove
1172 trailing \n from already marked up strings.
1174 2011-01-26 Tom Tromey <tromey@redhat.com>
1176 * python/py-prettyprint.c (print_string_repr): Clear
1177 'addressprint' option when calling val_print_string.
1178 (print_children): Handle Val_pretty_default. Clear 'addressprint'
1179 option when calling val_print_string.
1181 2011-01-26 Tom Tromey <tromey@redhat.com>
1183 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
1185 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
1187 (gdb_py_longest, gdb_py_ulongest): New typedefs.
1188 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
1189 (gdb_py_long_as_ulongest): New defines.
1190 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
1191 (gdb_py_int_as_long): Declare.
1192 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
1193 GDB_PY_LL_ARG, gdb_py_object_from_longest.
1194 (valpy_long): Add comment.
1195 * python/py-utils.c (get_addr_from_python): Use
1196 gdb_py_long_as_ulongest. Handle overflow properly.
1197 (gdb_py_object_from_longest): New function.
1198 (gdb_py_object_from_ulongest): Likewise.
1199 (gdb_py_int_as_long): Likewise.
1200 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
1201 * python/py-symtab.c (salpy_get_pc): Use
1202 gdb_py_long_from_ulongest.
1203 (salpy_get_line): Use PyInt_FromLong.
1204 * python/py-param.c (set_parameter_value): Use
1206 * python/py-lazy-string.c (stpy_get_address): Use
1207 gdb_py_long_from_ulongest.
1208 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
1209 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
1210 * python/py-breakpoint.c (bppy_set_thread): Use
1212 (bppy_set_task): Likewise.
1213 (bppy_set_ignore_count): Likewise.
1214 (bppy_set_hit_count): Likewise.
1215 * python/py-block.c (blpy_get_start): Use
1216 gdb_py_object_from_ulongest.
1217 (blpy_get_end): Likewise.
1218 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
1220 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
1223 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
1224 * gdb/solib.c (solib_read_symbols): Check for addr_low in
1225 equality test for objfile, initialize addr_low if needed.
1227 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1229 * tui/tui-regs.c (tui_register_format): Remove dead code.
1231 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1233 * printcmd.c (print_formatted): Use val_print_scalar_formatted
1234 instead of print_scalar_formatted.
1235 (print_scalar_formatted): Don't handle 's' format strings here,
1236 and add an assertion that we never see such format here.
1237 * valprint.h (val_print_scalar_formatted): Declare.
1238 * valprint.c (val_print_scalar_formatted): New.
1239 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
1240 instead of print_scalar_formatted.
1241 * jv-valprint.c (java_val_print): Ditto.
1242 * p-valprint.c (pascal_val_print): Ditto.
1243 * ada-valprint.c (ada_val_print_1): Ditto.
1244 * f-valprint.c (f_val_print): Ditto.
1245 * infcmd.c (registers_info): Ditto.
1246 * m2-valprint.c (m2_val_print): Ditto.
1248 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1250 * m2-valprint.c (print_unbounded_array): Pass
1251 value_contents_for_printing rather than value_contents, to
1252 m2_print_array_contents. Also pass in the value.
1254 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1256 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
1257 (save_gdb_index_command): Switch to .gdb_index version 4.
1259 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1261 * mi/mi-main.c (get_register): Use get_frame_register_value rather
1262 than frame_register, and always pass a valid value to val_print.
1264 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1266 Centralize printing "<optimized out>".
1268 * valprint.h (val_print_optimized_out): Declare.
1269 * cp-valprint.c (cp_print_value_fields): Use
1270 val_print_optimized_out.
1271 * jv-valprint.c (java_print_value_fields): Ditto.
1272 * p-valprint.c (pascal_object_print_value_fields): Ditto.
1273 * printcmd.c (print_formatted): Ditto.
1274 * valprint.c (valprint_check_validity): Ditto.
1275 (value_check_printable): Ditto.
1276 (val_print_optimized_out): New.
1278 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1280 * infcmd.c (default_print_registers_info): Allocate values so to
1281 never pass a NULL value to val_print.
1283 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1285 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
1286 boolean. Make sure to always pass a value that matches the
1287 contents buffer to callees. Preserve `address' for following
1289 * value.c (value_contents_for_printing_const): New.
1290 (value_address): Constify value argument.
1291 * value.h (value_contents_for_printing_const): Declare.
1292 (value_address): Constify value argument.
1294 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1296 * regcache.c (struct regcache_descr): Rename
1297 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
1298 and sizeof_cooked_register_valid_p to
1299 sizeof_cooked_register_status.
1300 (init_regcache_descr): Adjust.
1301 (struct regcache): Rename register_valid_p field to
1303 (regcache_xmalloc_1, regcache_xfree, regcache_save)
1304 (do_cooked_read): Adjust.
1305 (regcache_valid_p): Rename to ...
1306 (regcache_register_status): ... this. Adjust.
1307 (regcache_invalidate): Adjust.
1308 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
1310 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
1311 as unavailable, not valid.
1312 (regcache_dump): Adjust.
1313 * regcache.h (enum register_status): New.
1314 (regcache_register_status): Declare.
1315 (regcache_invalidate): Delete declaration.
1316 * corelow.c (get_core_registers): Adjust.
1317 * tracepoint.c (tfile_fetch_registers): Adjust.
1318 * trad-frame.c (REG_VALUE): Rename to ...
1319 (TF_REG_VALUE): ... this.
1320 (REG_UNKNOWN): Rename to ...
1321 (TF_REG_UNKNOWN): ... this.
1322 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
1323 * mi/mi-main.c (register_changed_p): Adjust.
1325 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1327 * regcache.c (struct regcache_descr): Remove outdated comment.
1328 (init_regcache_descr): Remove sizeof_raw_register_valid_p
1330 (regcache_xmalloc): Rename to ...
1331 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
1332 Allocate the regcache type accordingly.
1333 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
1334 (regcache_xfree): Asser the source is also readonly. Copy sizeof
1335 cooked registers, not raw.
1336 (regcache_dup_no_passthrough): Delete.
1337 (get_thread_arch_regcache): Use regcache_xmalloc_1.
1338 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
1339 mention obsolete write_register_bytes.
1340 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
1342 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1344 Stop remote_read_bytes from handling partial reads itself.
1346 * remote-fileio.c: Include target.h.
1347 (remote_fileio_write_bytes): Delete.
1348 (remote_fileio_func_open, remote_fileio_func_write)
1349 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
1351 (remote_fileio_func_stat): Use target_read_memory and
1352 target_write_memory.
1353 (remote_fileio_func_gettimeofday): Use target_write_memory.
1354 (remote_fileio_func_system): Use target_read_memory.
1355 * remote.c (remote_write_bytes): Make it static.
1356 (remote_read_bytes): Don't handle partial reads here.
1357 * remote.h (remote_read_bytes): Delete declaration.
1359 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1361 Simplify XML parsing a bit.
1363 * xml-support.h (gdb_xml_parse_quick): Declare.
1364 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
1365 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
1367 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
1368 gdb_xml_create_parser_and_cleanup_1.
1369 (gdb_xml_parse_quick): New.
1370 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
1371 * osdata.c (osdata_parse): Ditto.
1372 * remote.c (remote_threads_info): Ditto.
1373 * solib-target.c (solib_target_parse_libraries): Ditto.
1374 * xml-syscall.c (syscall_parse_xml): Ditto.
1375 * xml-tdesc.c (tdesc_parse_xml): Ditto.
1377 2011-01-24 Kevin Buettner <kevinb@redhat.com>
1379 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
1380 with remote-mips.o added to gdb_target_obs.
1381 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
1383 2011-01-24 Pedro Alves <pedro@codesourcery.com>
1385 * ada-valprint.c (val_print_packed_array_elements): Pass the
1386 correct struct value to val_print.
1387 (ada_val_print_1): Ditto.
1389 2011-01-24 Pedro Alves <pedro@codesourcery.com>
1391 Don't lose embedded_offset in printing routines throughout.
1393 * valprint.h (val_print_array_elements): Change prototype.
1394 * valprint.c (val_print_array_elements): Add `embedded_offset'
1395 parameter, and adjust to pass it down to val_print, while passing
1396 `valaddr' or `address' unmodified. Take embedded_offset into
1397 account when checking repetitions.
1398 * c-valprint.c (c_val_print): Pass embedded_offset to
1399 val_print_array_elements instead of adjusting `valaddr' and
1401 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
1402 embedded_offset to val_print_array_elements instead of adjusting
1404 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
1405 * p-valprint.c (pascal_val_print): Pass embedded_offset to
1406 val_print_array_elements and pascal_object_print_value_fields
1407 instead of adjusting `valaddr'.
1408 (pascal_object_print_value_fields): Add `offset' parameter, and
1410 (pascal_object_print_value): Add `offset' parameter, and adjust to
1412 (pascal_object_print_static_field): Use
1413 value_contents_for_printing/value_embedded_offset, rather than
1415 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
1416 parameter, and adjust to use it. Use
1417 value_contents_for_printing/value_embedded_offset, rather than
1419 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
1420 (ada_val_print_array): Add `offset' parameter, and adjust to use
1422 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
1423 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
1424 Instead work with offsets. Use
1425 value_contents_for_printing/value_embedded_offset, rather than
1426 value_contents. Change `defer_val_int' local type to CORE_ADDR,
1427 and use value_from_pointer to extract a target pointer, rather
1428 than value_from_longest.
1429 (print_variant_part): Add `offset' parameter. Replace
1430 `outer_valaddr' parameter by a new `outer_offset' parameter.
1431 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1432 (ada_value_print): Use
1433 value_contents_for_printing/value_embedded_offset, rather than
1435 (print_record): Add `offset' parameter, and adjust to pass it
1437 (print_field_values): Add `offset' parameter. Replace
1438 `outer_valaddr' parameter by a new `outer_offset' parameter.
1439 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1440 Use value_contents_for_printing/value_embedded_offset, rather than
1442 * d-valprint.c (dynamic_array_type): Use
1443 value_contents_for_printing/value_embedded_offset, rather than
1445 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
1446 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1447 (java_print_value_fields): Take `offset' into account. Don't
1448 re-adjust `valaddr'. Instead pass down adjusted offsets.
1449 (java_val_print): Take `embedded_offset' into account. Pass it to
1450 java_print_value_fields.
1451 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
1452 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
1453 down adjusted offsets.
1454 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
1455 (f_val_print): Take `embedded_offset' into account.
1457 2011-01-21 Joel Brobecker <brobecker@adacore.com>
1459 * inflow.c: Include "gdbcmd.h".
1460 (interactive_mode): New static global, moved here from top.c.
1461 (show_interactive_mode): New function, moved here from top.c.
1462 use gdb_has_a_terminal instead of input_from_terminal_p to
1463 determine the current mode.
1464 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
1466 (_initialize_inflow): Add the "set/show interactive-mode"
1467 commands. Moved here from top.c, after having adjusted slightly
1469 * top.c (interactive_mode, show_interactive_mode): Delete, moved
1471 (input_from_terminal_p): Remove handling of "interactive-mode"
1472 setting, moved to infow.c.
1473 (init_main): Remove creation of the "set/show interactive-mode"
1474 commands, moved to inflow.c.
1476 2011-01-19 Joel Brobecker <brobecker@adacore.com>
1478 * NEWS: Add entry for native ia64-hpux support.
1480 2011-01-19 Tom Tromey <tromey@redhat.com>
1483 * thread.c (free_thread): Free 'name'.
1484 (print_thread_info): Emit thread name. Change CLI output.
1485 (thread_name_command): New function.
1486 (do_captured_thread_select): Emit newline.
1487 (_initialize_thread): Register 'thread name' command.
1488 * target.h (struct target_ops) <to_thread_name>: New field.
1489 (target_thread_name): New macro.
1490 * target.c (update_current_target): Handle to_thread_name.
1491 * python/py-infthread.c (thpy_get_name): New function.
1492 (thpy_set_name): Likewise.
1493 (thread_object_getset): Add "name".
1494 * linux-nat.c (linux_nat_thread_name): New function.
1495 (linux_nat_add_target): Set to_thread_name.
1496 * gdbthread.h (struct thread_info) <name>: New field.
1498 2011-01-18 Joel Brobecker <brobecker@adacore.com>
1500 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
1501 (ada_val_print_1): Likewise.
1503 2011-01-18 Joel Brobecker <brobecker@adacore.com>
1505 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
1506 upper limit address is not greater than the function end address
1507 when the upper limit could not be computed using the debugging
1510 2011-01-17 Tom Tromey <tromey@redhat.com>
1512 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
1514 * utils.c: Include gdb_regex.h.
1515 (do_regfree_cleanup): New function.
1516 (make_regfree_cleanup): Likewise.
1517 (get_regcomp_error): Likewise.
1518 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
1520 2011-01-17 Tom Tromey <tromey@redhat.com>
1522 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
1525 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1527 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
1528 for internal variables.
1529 (last_was_structop): New static variable.
1530 (COMPLETE): New token.
1531 (field_exp): New rule to group all '.' suffix handling.
1532 Add mark_struct_expression calls when approriate to be able
1533 to correctly find fields for completion.
1534 (yylex): Adapt to handle field completion and set INTVAR when
1537 2011-01-14 Yao Qi <yao@codesourcery.com>
1539 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
1540 save_reggroup, restore_reggroup and all_reggroup.
1542 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1544 * ada-valprint. (ada_printchar): Use the correct type length
1545 in call to ada_emit_char.
1546 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
1548 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1550 * solib-som.h (hpux_major_release): Declare variable here.
1551 * solib-som.c: Remove <sys/utsname.h> header.
1552 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
1553 (hpux_major_release): Make global, change default value to
1554 DEFAULT_HPUX_MAJOR_RELEASE.
1555 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
1556 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
1557 Add "solib-som.h" header.
1558 (set_hpux_major_release): New function.
1559 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
1561 2011-01-14 Mike Frysinger <vapier@gentoo.org>
1563 * configure.tgt (*-*-uclinux*): Match more Linux os targets
1565 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1567 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
1568 new-line at end of warning message.
1569 (ia64_hpux_store_register): Remove trailing new-line at end of
1571 * ia64-hpux-tdep.c: Rephrase comment.
1572 * solib-ia64-hpux.c (struct dld_info): Change type of field
1573 dld_flags from "long long" to ULONGEST.
1575 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1577 * target.h (deprecated_child_ops): Delete declaration.
1578 * target.c (deprecated_child_ops): Delete definition.
1580 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1582 * Makefile.in (hpux-thread.o): Delete rule.
1583 * configure.ac: Don't check for HPUX DCE threads support.
1584 * configure, config.in: Regenerate.
1585 * hppa-hpux-nat.c (child_suppress_run): Delete.
1586 (hppa_hpux_child_can_run): Delete.
1587 (_initialize_hppa_hpux_nat): Don't override to_can_run.
1588 * hpux-thread.c: Delete.
1590 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1592 * hpux-thread.c (hpux_pid_to_str): Delete.
1594 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1596 * ada-valprint.c (ada_emit_char): Remove strange code.
1597 Check that c is <= UCHAR_MAX before passing it to isascii.
1598 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
1600 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1602 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
1603 to the case where instream is stdin.
1605 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1607 * ia64-tdep.h (struct regcache): Forward declare.
1608 (struct ia64_infcall_ops): New struct type.
1609 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
1611 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
1612 Renames ia64_find_global_pointer.
1613 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
1614 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
1615 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
1617 (ia64_infcall_ops): New static global constant.
1618 (ia64_gdbarch_init): Set tdep->infcall_ops.
1619 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
1620 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
1621 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
1622 (ia64_hpux_dummy_code): New static global constant.
1623 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
1624 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
1625 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
1627 (ia64_hpux_infcall_ops): New static global constant.
1628 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
1629 for inferior function calls to work properly on ia64-hpux.
1631 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1633 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
1634 * ia64-tdep.h (struct frame_info): forward declaration.
1635 (struct gdbarch_tdep): Add field size_of_register_frame.
1636 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
1637 to determine the size of the register frame.
1638 (ia64_size_of_register_frame): New function.
1639 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
1640 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
1641 (IA64_HPUX_UREG_REASON): New macro.
1642 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
1644 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
1645 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
1646 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
1649 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1651 Add support for ia64-hpux.
1652 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
1653 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
1655 * configure.host: Add handling for ia64-hpux hosts. Add associated
1657 * configure.tgt: Add handling for ia64-hpux targets.
1658 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
1659 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
1660 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
1662 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1664 [ttrace] Compute thread list immediately after attach.
1665 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
1667 (inf_ttrace_attach): Use it.
1669 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1671 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
1672 if we could not determine the frame's function address. Instead,
1673 use the frame's PC, and then continue.
1675 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1677 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
1678 not already defined.
1680 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1682 * ia64-tdep.c (ia64_struct_type_p): New function.
1683 (ia64_extract_return_value): Handle integral values that are
1684 less than 8 bytes long.
1685 (ia64_push_dummy_call): Likewise.
1687 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1689 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
1690 floatformat_ia64_ext.
1691 (floatformat_ia64_ext_big): New static const.
1692 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
1694 2011-01-12 Tom Tromey <tromey@redhat.com>
1696 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
1698 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
1699 (mi_cmd_thread_list_ids): Likewise.
1700 (mi_cmd_data_list_changed_registers): Likewise.
1701 (mi_cmd_data_list_register_values): Likewise.
1702 (mi_cmd_data_write_register_values): Likewise.
1703 (mi_cmd_data_evaluate_expression): Likewise.
1704 (mi_cmd_data_read_memory): Likewise.
1705 (mi_cmd_data_read_memory_bytes): Likewise.
1706 (mi_cmd_data_write_memory): Likewise.
1707 (mi_cmd_enable_timings): Likewise.
1708 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
1709 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
1710 (mi_cmd_var_delete): Likewise.
1711 (mi_cmd_var_set_format): Likewise.
1712 (mi_cmd_var_show_format): Likewise.
1713 (mi_cmd_var_info_num_children): Likewise.
1714 (mi_cmd_var_list_children): Likewise.
1715 (mi_cmd_var_info_type): Likewise.
1716 (mi_cmd_var_info_expression): Likewise.
1717 (mi_cmd_var_show_attributes): Likewise.
1718 (mi_cmd_var_assign): Likewise.
1719 (mi_cmd_var_update): Likewise.
1720 (mi_cmd_enable_pretty_printing): Likewise.
1721 (mi_cmd_var_set_update_range): Likewise.
1722 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
1724 (mi_cmd_target_file_put): Likewise.
1725 (mi_cmd_target_file_delete): Likewise.
1726 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
1728 (mi_cmd_stack_info_depth): Likewise.
1729 (mi_cmd_stack_list_locals): Likewise.
1730 (mi_cmd_stack_list_args): Likewise.
1731 (mi_cmd_stack_select_frame): Likewise.
1732 (mi_cmd_stack_select_frame): Likewise.
1733 (mi_cmd_stack_info_frame): Likewise.
1734 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
1736 (mi_cmd_file_list_exec_source_files): Likewise.
1737 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
1738 (mi_cmd_env_cd): Likewise.
1739 (mi_cmd_env_path): Likewise.
1740 (mi_cmd_env_dir): Likewise.
1741 (mi_cmd_inferior_tty_show): Likewise.
1742 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
1743 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
1744 (mi_cmd_break_watch): Likewise.
1746 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
1748 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
1749 (ppc_linux_insert_hw_breakpoint): Likewise.
1750 (ppc_linux_remove_hw_breakpoint): Likewise.
1751 (ppc_linux_insert_watchpoint): Likewise.
1753 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1754 Jan Kratochvil <jan.kratochvil@redhat.com>
1756 PR fortran/11104 and DWARF unbound arrays detection.
1757 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
1758 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
1759 unspecified upper bound.
1760 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
1761 variables array_size_array, tmp_type and offset_item. New variable
1762 array. Remove call to f77_get_upperbound. New variables array_type
1763 and index. Call value_subscripted_rvalue for each dimenasion. Remove
1764 the final call to deprecated_set_value_type.
1766 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1768 Make value allocations more lazy.
1769 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
1770 instead of allocate_value and set_value_lazy when possible.
1771 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
1772 instead of allocate_value and set_value_lazy.
1773 * findvar.c (value_of_register_lazy): Likewise.
1774 (read_var_value): Remove V preallocation, call just check_typedef in
1775 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
1776 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
1777 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
1778 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
1779 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
1780 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
1781 the end, remove set_value_lazy there.
1782 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
1783 instead of allocate_value and set_value_lazy when possible.
1784 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
1785 * value.c (allocate_computed_value): Use allocate_value_lazy instead
1786 of allocate_value and set_value_lazy.
1787 (value_from_contents_and_address): Use allocate_value_lazy instead of
1788 allocate_value and set_value_lazy when possible.
1790 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1792 * disasm.c (dump_insns): Support dumping opcodes for MI.
1793 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
1794 dumping of instruction opcodes.
1796 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
1798 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
1801 2011-01-11 Tom Tromey <tromey@redhat.com>
1803 * thread.c (do_captured_thread_select): Emit newline before
1806 2011-01-11 Michael Snyder <msnyder@vmware.com>
1808 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
1809 * score-tdep.c: Ditto.
1810 * score-tdep.h: Ditto.
1811 * ser-base.c: Ditto.
1812 * ser-go32.c: Ditto.
1815 * ser-mingw.c: Ditto.
1816 * ser-pipe.c: Ditto.
1818 * ser-unix.c: Ditto.
1819 * sh64-tdep.c: Ditto.
1820 * shnbsd-nat.c: Ditto.
1824 * solib-darwin.c: Ditto.
1825 * solib-frv.c: Ditto.
1827 * solib-irix.c: Ditto.
1828 * solib-osf.c: Ditto.
1829 * solib-pa64.c: Ditto.
1830 * solib-som.c: Ditto.
1831 * solib-spu.c: Ditto.
1832 * solib-sunos.c: Ditto.
1833 * solib-svr4.c: Ditto.
1835 * sol-thread.c: Ditto.
1839 * sparc64-linux-tdep.c: Ditto.
1840 * sparc64-tdep.c: Ditto.
1841 * sparc-linux-nat.c: Ditto.
1842 * sparc-linux-tdep.c: Ditto.
1843 * sparc-sol2-nat.c: Ditto.
1844 * sparc-sol2-tdep.c: Ditto.
1845 * sparc-tdep.c: Ditto.
1846 * sparc-tdep.h: Ditto.
1847 * spu-tdep.c: Ditto.
1848 * stabsread.c: Ditto.
1849 * stabsread.h: Ditto.
1857 * target-descriptions.c: Ditto.
1858 * target-descriptions.h: Ditto.
1860 * target-memory.c: Ditto.
1861 * terminal.h: Ditto.
1864 * tracepoint.c: Ditto.
1865 * tracepoint.h: Ditto.
1866 * trad-frame.h: Ditto.
1867 * typeprint.c: Ditto.
1869 2011-01-11 Michael Snyder <msnyder@vmware.com>
1871 * ui-file.c: Comment cleanup, mostly periods and spaces.
1876 * v850-tdep.c: Ditto.
1877 * valarith.c: Ditto.
1879 * valprint.c: Ditto.
1880 * valprint.h: Ditto.
1885 * vax-tdep.c: Ditto.
1889 * windows-nat.c: Ditto.
1890 * windows-tdep.c: Ditto.
1891 * xcoffread.c: Ditto.
1892 * xcoffsolib.c: Ditto.
1893 * xml-support.c: Ditto.
1894 * xstormy16-tdep.c: Ditto.
1895 * xtensa-tdep.c: Ditto.
1896 * xtensa-tdep.h: Ditto.
1898 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1900 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
1901 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
1903 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1904 Thiago Jung Bauermann <bauerman@br.ibm.com>
1906 Implement support for PowerPC BookE ranged watchpoints.
1908 (struct breakpoint_ops) <resources_needed>: New method.
1909 Initialize to NULL in all existing breakpoint_ops instances.
1910 (struct breakpoint) <exact>: New field.
1911 (target_exact_watchpoints): Declare external global.
1912 * breakpoint.c (target_exact_watchpoints): New global flag.
1913 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
1914 b->enable_state to bp_enabled before calling
1915 hw_watchpoint_used_count.
1916 (hw_watchpoint_used_count): Iterate over all bp_locations in a
1917 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
1919 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
1920 if the watchpoint is exact.
1921 (resources_needed_watchpoint): New function.
1922 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
1923 (watch_command_1): Set b->exact if the user asked for an exact
1924 watchpoint and one can be set.
1925 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
1926 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
1927 the user asks for an exact watchpoint and one can be set. Return
1928 number of needed debug registers to watch the expression.
1929 * gdbtypes.c (is_scalar_type): New function, based on
1930 valprint.c:scalar_type_p.
1931 (is_scalar_type_recursive): New function.
1932 * gdbtypes.h (is_scalar_type_recursive): Declare.
1933 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
1934 handle regions when ranged watchpoints are available.
1935 (create_watchpoint_request): New function.
1936 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1937 create_watchpoint_request.
1938 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
1939 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
1940 `set powerpc' and `show powerpc' commands.
1941 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1942 Mention documentation comment in the target macro.
1943 (target_region_ok_for_hw_watchpoint): Document return value.
1945 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1947 * breakpoint.c (update_watchpoint): Decide on using a software or
1948 hardware watchpoint after the bp_locations are created.
1950 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1952 Convert hardware watchpoints to use breakpoint_ops.
1953 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
1954 <insert_location>: ... this. Return int instead of void.
1955 Accept pointer to struct bp_location instead of pointer to
1956 struct breakpoint. Adapt all implementations.
1957 (breakpoint_ops) <remove>: Rename to...
1958 <remove_location>: ... this. Accept pointer to struct bp_location
1959 instead of pointer to struct breakpoint. Adapt all implementations.
1960 * breakpoint.c (insert_catchpoint): Delete function.
1961 (insert_bp_location): Call the watchpoint or catchpoint's
1962 breakpoint_ops.insert method.
1963 (remove_breakpoint_1): Call the watchpoint or catchpoint's
1964 breakpoint_ops.remove method.
1965 (insert_watchpoint, remove_watchpoint): New functions.
1966 (watchpoint_breakpoint_ops): New structure.
1967 (watch_command_1): Initialize the OPS field.
1968 * inf-child.c (inf_child_insert_fork_catchpoint)
1969 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
1970 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
1971 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
1973 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
1974 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
1975 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
1976 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
1977 * target.c (update_current_target): Change default implementation of
1978 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
1979 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
1980 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
1981 to_set_syscall_catchpoint to return_one.
1982 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
1983 (debug_to_insert_exec_catchpoint): Report return value.
1984 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
1985 (to_insert_exec_catchpoint): Change declaration to return int instead
1988 2011-01-11 Michael Snyder <msnyder@vmware.com>
1990 * arm-tdep.c: Internationalization.
1993 * fork-child.c: Ditto.
1994 * nto-procfs.c: Ditto.
1995 * ppc-sysv-tdep.c: Ditto.
1997 * remote-mips.c: Ditto.
1999 * rs6000-nat.c: Ditto.
2000 * rs6000-tdep.c: Ditto.
2004 * xml-support.c: Ditto.
2005 * mi/mi-cmd-break.c: Ditto.
2006 * mi/mi-cmd-var.c: Ditto.
2007 * mi/mi-interp.c: Ditto.
2008 * mi/mi-main.c: Ditto.
2010 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
2012 * remote-sim.c (gdbsim_store_register): Update API to
2013 sim_store_register to check more error conditions.
2015 2011-01-10 Michael Snyder <msnyder@vmware.com>
2017 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
2018 * nto-tdep.c: Ditto.
2019 * nto-tdep.h: Ditto.
2020 * objc-exp.y: Ditto.
2021 * objc-lang.c: Ditto.
2022 * objfiles.c: Ditto.
2023 * objfiles.h: Ditto.
2024 * observer.c: Ditto.
2025 * opencl-lang.c: Ditto.
2028 * parser-defs.h: Ditto.
2031 * posix-hdep.c: Ditto.
2032 * ppcbug-rom.c: Ditto.
2033 * ppc-linux-nat.c: Ditto.
2034 * ppc-linux-tdep.c: Ditto.
2035 * ppc-linux-tdep.h: Ditto.
2036 * ppcnbsd-tdep.c: Ditto.
2037 * ppcobsd-tdep.c: Ditto.
2038 * ppcobsd-tdep.h: Ditto.
2039 * ppc-sysv-tdep.c: Ditto.
2040 * ppc-tdep.h: Ditto.
2041 * printcmd.c: Ditto.
2042 * proc-abi.c: Ditto.
2043 * proc-flags.c: Ditto.
2045 * proc-utils.h: Ditto.
2046 * progspace.h: Ditto.
2047 * prologue-value.c: Ditto.
2048 * prologue-value.h: Ditto.
2049 * psympriv.h: Ditto.
2051 * p-typeprint.c: Ditto.
2052 * p-valprint.c: Ditto.
2053 * ravenscar-sparc-thread.c: Ditto.
2054 * ravenscar-thread.c: Ditto.
2055 * ravenscar-thread.h: Ditto.
2057 * regcache.c: Ditto.
2058 * regcache.h: Ditto.
2060 * remote-fileio.c: Ditto.
2061 * remote-fileio.h: Ditto.
2063 * remote-m32r-sdi.c: Ditto.
2064 * remote-mips.c: Ditto.
2065 * remote-sim.c: Ditto.
2066 * rs6000-aix-tdep.c: Ditto.
2067 * rs6000-nat.c: Ditto.
2068 * rs6000-tdep.c: Ditto.
2070 2011-01-10 Michael Snyder <msnyder@vmware.com>
2072 * charset.c (validate): Internationalization.
2073 * coffread.c (read_one_sym): Ditto.
2074 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
2075 * h8300-tdep.c (H8300_extract_return_value): Ditto.
2076 * inflow.c (new_tty): Ditto.
2077 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
2078 * m32c-tdep.c (m32c_return_value): Ditto.
2079 * mep-tdep.c (mep_store_return_value): Ditto.
2080 * score-tdep.c (score7_fetch_insn): Ditto.
2081 * ser-mingw.c (pipe_windows_open): Ditto.
2082 * sh64-tdep.c (sh64_extract_return_value): Ditto.
2083 * spu-tdep.c (spu_register_type): Ditto.
2084 * tracepoint.c (trace_find_command): Ditto.
2085 * valarith.c (value_pos): Ditto.
2087 2011-01-10 Joel Brobecker <brobecker@adacore.com>
2089 * ada-valprint.c (printstr): Minor comment reformatting.
2091 2011-01-08 Michael Snyder <msnyder@vmware.com>
2093 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
2096 2011-01-08 Michael Snyder <msnyder@vmware.com>
2098 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
2099 * hppa-hpux-tdep.c: Ditto.
2100 * hppa-linux-nat.c: Ditto.
2101 * hppa-linux-tdep.c: Ditto.
2102 * hppanbsd-tdep.c: Ditto.
2103 * hppa-tdep.c: Ditto.
2104 * hppa-tdep.h: Ditto.
2105 * hpux-thread.c: Ditto.
2106 * i386-cygwin-tdep.c: Ditto.
2107 * i386-darwin-nat.c: Ditto.
2108 * i386gnu-nat.c: Ditto.
2109 * i386-linux-nat.c: Ditto.
2110 * i386-linux-tdep.c: Ditto.
2111 * i386-nat.c: Ditto.
2112 * i386-nat.h: Ditto.
2113 * i386nbsd-tdep.c: Ditto.
2114 * i386-sol2-nat.c: Ditto.
2115 * i386-stub.c: Ditto.
2116 * i386-tdep.c: Ditto.
2117 * i386-tdep.h: Ditto.
2118 * i387-tdep.c: Ditto.
2119 * ia64-linux-nat.c: Ditto.
2120 * ia64-linux-tdep.c: Ditto.
2121 * ia64-tdep.c: Ditto.
2125 * inferior.c: Ditto.
2126 * inferior.h: Ditto.
2132 * iq2000-tdep.c: Ditto.
2133 * irix5-nat.c: Ditto.
2139 * jv-typeprint.c: Ditto.
2140 * jv-valprint.c: Ditto.
2141 * language.c: Ditto.
2142 * language.h: Ditto.
2143 * linespec.c: Ditto.
2144 * linux-fork.c: Ditto.
2145 * linux-nat.c: Ditto.
2146 * linux-thread-db.c: Ditto.
2147 * lm32-tdep.c: Ditto.
2149 2011-01-08 Michael Snyder <msnyder@vmware.com>
2151 * m2-exp.y: Comment cleanup, mostly periods and spaces.
2153 * m2-typeprint.c: Ditto.
2154 * m2-valprint.c: Ditto.
2155 * m32c-tdep.c: Ditto.
2156 * m32r-linux-nat.c: Ditto.
2157 * m32r-rom.c: Ditto.
2158 * m32r-tdep.c: Ditto.
2159 * m32r-tdep.h: Ditto.
2160 * m68hc11-tdep.c: Ditto.
2161 * m58klinux-nat.c: Ditto.
2162 * m68k-tdep.c: Ditto.
2163 * m88k-tdep.c: Ditto.
2164 * m88k-tdep.h: Ditto.
2165 * machoread.c: Ditto.
2166 * macrocmd.c: Ditto.
2167 * macroexp.c: Ditto.
2168 * macrotab.c: Ditto.
2171 * mdebugread.c: Ditto.
2172 * mdebugread.h: Ditto.
2175 * memory-map.h: Ditto.
2176 * mep-tdep.c: Ditto.
2177 * microblaze-rom.c: Ditto.
2178 * microblaze-tdep.c: Ditto.
2180 * mips-irix-tdep.c: Ditto.
2181 * mips-linux-nat.c: Ditto.
2182 * mips-linux-tdep.c: Ditto.
2183 * mips-linux-tdep.h: Ditto.
2184 * mipsnbsd-nat.c: Ditto.
2185 * mipsnbsd-tdep.c: Ditto.
2186 * mipsread.c: Ditto.
2187 * mips-tdep.c: Ditto.
2188 * mips-tdep.h: Ditto.
2189 * mn10300-linux-tdep.c: Ditto.
2190 * mn10300-tdep.c: Ditto.
2191 * mn10300-tdep.h: Ditto.
2194 * moxie-tdep.c: Ditto.
2195 * moxie-tdep.h: Ditto.
2198 2011-01-08 Mike Frysinger <vapier@gentoo.org>
2200 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
2202 2011-01-08 Robert Millan <rmh@gnu.org>
2204 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
2206 2011-01-07 Michael Snyder <msnyder@vmware.com>
2208 * charset.c (_initialize_charset): Fix typo in string.
2210 2011-01-07 Michael Snyder <msnyder@vmware.com>
2212 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
2214 * tui/tui-layout.c (tui_set_layout_for_display_command):
2215 Split line so that operator goes to beginning of line.
2216 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
2217 assignment out of if statement.
2219 2011-01-07 Michael Snyder <msnyder@vmware.com>
2221 * ada-lang.c: Comment cleanup, mostly periods and spaces.
2222 * ada-lang.h: Ditto.
2223 * ada-tasks.c: Ditto.
2224 * ada-valprint.c: Ditto.
2225 * aix-threads.c: Ditto.
2226 * alpha-linux-nat.c: Ditto.
2227 * alpha-linux-tdep.c: Ditto.
2228 * alpha-mdebug-tdep.c: Ditto.
2229 * alpha-nat.c: Ditto.
2230 * alpha-osf1-tdep.c: Ditto.
2231 * alpha-tdep.c: Ditto.
2232 * alphabsd-nat.c: Ditto.
2233 * alphabsd-tdep.c: Ditto.
2234 * amd64-darwin-tdep.c: Ditto.
2235 * amd64-linux-nat.c: Ditto.
2236 * amd64-linux-tdep.c: Ditto.
2237 * amd64-sol2-tdep.c: Ditto.
2238 * amd64-tdep.c: Ditto.
2239 * amd64-fbsd-tdep.c: Ditto.
2240 * amd64-nbsd-tdep.c: Ditto.
2241 * amd64-obsd-tdep.c: Ditto.
2242 * amd64-linux-nat.c: Ditto.
2243 * amd64-linux-tdep.c: Ditto.
2244 * arm-tdep.c: Ditto.
2245 * arm-tdep.h: Ditto.
2246 * armnbsd-nat.c: Ditto.
2247 * avr-tdep.c: Ditto.
2248 * bfin-tdep.c: Ditto.
2250 * c-typeprintc: Ditto.
2251 * c-valprint.c: Ditto.
2252 * coff-pe-read.h: Ditto.
2253 * coffreead.c: Ditto.
2254 * cris-tdep.c: Ditto.
2256 * darwin-nat-info.c: Ditto.
2257 * darwin-nat.c: Ditto.
2258 * dbug-rom.c: Ditto.
2262 * dec-thread.c: Ditto.
2264 * demangle.c: Ditto.
2265 * dicos-tdep.c: Ditto.
2266 * dictionary.c: Ditto.
2267 * dictionary.h: Ditto.
2268 * dink32-rom.c: Ditto.
2270 * doublest.c: Ditto.
2272 * dummy-frame.c: Ditto.
2273 * dwarf2-frame.c: Ditto.
2274 * dwarf2expr.c: Ditto.
2275 * dwarf2loc.c: Ditto.
2276 * dwarf2read.c: Ditto.
2280 * event-top.h: Ditto.
2281 * exceptions.c: Ditto.
2282 * exceptions.h: Ditto.
2284 * expprint.c: Ditto.
2285 * expression.h: Ditto.
2289 * f-typeprint.c: Ditto.
2290 * f-valprint.c: Ditto.
2291 * fbsd-nat.c: Ditto.
2293 * fork-child.c: Ditto.
2296 * frv-linux-tdep.c: Ditto.
2297 * frv-tdep.c: Ditto.
2299 * gdb-stabs.h: Ditto.
2300 * gdb_assert.h: Ditto.
2301 * gdb_string.h: Ditto.
2302 * gdb_thread_db.h: Ditto.
2303 * gdb_wait.h: Ditto.
2304 * gdbarch.sh: Ditto.
2306 * gdbthread.h: Ditto.
2307 * gdbtypes.c: Ditto.
2308 * gdbtypes.h: Ditto.
2311 * gnu-v2-abi.c: Ditto.
2312 * gnu-v3-abi.c: Ditto.
2313 * go32-nat.c: Ditto.
2314 * gdbarch.c: Regenerate.
2315 * gdbarch.h: Regenerate.
2317 2011-01-07 Michael Snyder <msnyder@vmware.com>
2319 * ax-gdb.c: Adjust some long output strings.
2320 * breakpoint.c: Ditto.
2325 * linux-nat.c: Ditto.
2326 * solib-pa64.c: Ditto.
2327 * solib-som.c: Ditto.
2329 2011-01-06 Tom Tromey <tromey@redhat.com>
2333 * python/python.c (GdbMethods): Add "newest_frame" method.
2334 * python/python-internal.h (gdbpy_newest_frame): Declare.
2335 * python/py-frame.c (gdbpy_newest_frame): New function.
2337 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2339 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
2340 * jit.c (jit_debug): New variable.
2341 (show_jit_debug): New function.
2342 (struct target_buffer): Use ULONGEST.
2343 (bfd_open_from_target_memory): Likewise.
2344 (jit_register_code, jit_inferior_init): Add debug output.
2345 (_initialize_jit): Register "debug jit" command.
2347 2011-01-06 Tom Tromey <tromey@redhat.com>
2349 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
2350 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
2353 2011-01-06 Tom Tromey <tromey@redhat.com>
2355 * python/py-frame.c (frapy_block): Use get_frame_block.
2357 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2359 Do not stop on SIGPRIO signals by default
2360 * infrun.c (_initialize_infrun): Unset signal_stop and
2361 signal_print for TARGET_SIGNAL_PRIO.
2363 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2365 * ada-tasks.c: Fix style violation in comment.
2367 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2369 * linespec.c (decode_compound, find_method): Remove trailing \n
2370 at end of error string.
2371 * solib-irix.c (irix_current_sos): Likewise.
2372 * varobj.c (uninstall_variable): Likewise.
2374 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2376 * copyright.py: New script.
2377 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
2378 Launch emacs without exec'ing. Call copyright.py afterwards.
2380 2011-01-05 Michael Snyder <msnyder@vmware.com>
2382 * addrmap.c: Shorten lines of >= 80 columns.
2383 * arch-utils.c: Ditto.
2384 * arch-utils.h: Ditto.
2386 * ax-general.c: Ditto.
2388 * blockframe.c: Ditto.
2389 * breakpoint.c: Ditto.
2390 * buildsym.c: Ditto.
2392 * c-typeprint.c: Ditto.
2394 * coffread.c: Ditto.
2398 * cp-namespace.c: Ditto.
2399 * cp-support.c: Ditto.
2400 * dbug-rom.c: Ditto.
2405 * dictionary.c: Ditto.
2407 * doublest.c: Ditto.
2408 * dwarf2-frame.c: Ditto.
2409 * dwarf2expr.c: Ditto.
2410 * dwarf2loc.c: Ditto.
2411 * dwarf2read.c: Ditto.
2414 * event-loop.c: Ditto.
2415 * event-loop.h: Ditto.
2416 * exceptions.h: Ditto.
2418 * expprint.c: Ditto.
2419 * expression.h: Ditto.
2421 * f-valprint.c: Ditto.
2423 * frame-base.c: Ditto.
2424 * frame-unwind.c: Ditto.
2425 * frame-unwind.h: Ditto.
2429 * gdb-stabs.h: Ditto.
2430 * gdb_assert.h: Ditto.
2431 * gdb_dirent.h: Ditto.
2432 * gdb_obstack.h: Ditto.
2434 * gdbtypes.c: Ditto.
2435 * gdbtypes.h: Ditto.
2436 * inf-ttrace.c: Ditto.
2441 * inline-frame.h: Ditto.
2442 * language.c: Ditto.
2443 * language.h: Ditto.
2444 * libunwind-frame.c: Ditto.
2445 * libunwind-frame.h: Ditto.
2446 * linespec.c: Ditto.
2447 * linux-nat.c: Ditto.
2448 * linux-nat.h: Ditto.
2449 * linux-thread-db.c: Ditto.
2450 * machoread.c: Ditto.
2451 * macroexp.c: Ditto.
2452 * macrotab.c: Ditto.
2455 * mdebugread.c: Ditto.
2460 * objfiles.c: Ditto.
2461 * objfiles.h: Ditto.
2463 * p-typeprint.c: Ditto.
2464 * p-valprint.c: Ditto.
2466 * printcmd.c: Ditto.
2467 * proc-events.c: Ditto.
2469 * progspace.c: Ditto.
2470 * progspace.h: Ditto.
2471 * psympriv.h: Ditto.
2474 * regcache.c: Ditto.
2475 * regcache.h: Ditto.
2476 * remote-fileio.c: Ditto.
2478 * ser-mingw.c: Ditto.
2480 * ser-unix.c: Ditto.
2483 * solib-frv.c: Ditto.
2484 * solib-irix.c: Ditto.
2485 * solib-osf.c: Ditto.
2486 * solib-pa64.c: Ditto.
2487 * solib-som.c: Ditto.
2488 * solib-sunos.c: Ditto.
2489 * solib-svr4.c: Ditto.
2490 * solib-target.c: Ditto.
2494 * stabsread.c: Ditto.
2495 * stabsread.c: Ditto.
2498 * symfile-mem.c: Ditto.
2504 * target-descriptions.c: Ditto.
2505 * target-memory.c: Ditto.
2508 * terminal.h: Ditto.
2511 * tracepoint.c: Ditto.
2512 * tracepoint.h: Ditto.
2516 * user-regs.c: Ditto.
2517 * user-regs.h: Ditto.
2519 * valarith.c: Ditto.
2521 * valprint.c: Ditto.
2522 * valprint.h: Ditto.
2527 * xcoffread.c: Ditto.
2528 * xcoffsolib.c: Ditto.
2529 * xcoffsolib.h: Ditto.
2530 * xml-syscall.c: Ditto.
2531 * xml-tdesc.c: Ditto.
2533 2011-01-05 Michael Snyder <msnyder@vmware.com>
2535 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
2536 * cli/cli-decode.c: Ditto.
2537 * cli/cli-dump.c: Ditto.
2538 * cli/cli-logging.c: Ditto.
2539 * cli/cli-script.c: Ditto.
2540 * cli/cli-setshow.c: Ditto.
2541 * common/signals.c: Ditto.
2542 * mi/mi-cmd-break.c: Ditto.
2543 * mi/mi-cmd-disas.c: Ditto.
2544 * mi/mi-cmd-stack.c: Ditto.
2545 * mi/mi-cmd-var.c: Ditto.
2546 * mi/mi-cmds.c: Ditto.
2547 * mi/mi-common.h: Ditto.
2548 * mi/mi-console.c: Ditto.
2549 * mi/mi-interp.c: Ditto.
2550 * mi/mi-main.c: Ditto.
2551 * osf-share/cma_attr.c: Ditto.
2552 * osf-share/cma_deb_core.h: Ditto.
2553 * osf-share/cma_debug_client.h: Ditto.
2554 * osf-share/cma_handle.h: Ditto.
2555 * osf-share/cma_mutex.h: Ditto.
2556 * osf-share/cma_stack_int.h: Ditto.
2557 * osf-share/cma_tcb_defs.h: Ditto.
2558 * python/py-auto-load.c: Ditto.
2559 * python/py-breakpoint.c: Ditto.
2560 * python/py-cmd.c: Ditto.
2561 * python/py-frame.c: Ditto.
2562 * python/py-objfile.c: Ditto.
2563 * python/py-param.c: Ditto.
2564 * python/py-progspace.c: Ditto.
2565 * python/py-symbol.c: Ditto.
2566 * python/py-value.c: Ditto.
2567 * python/python-internal.h: Ditto.
2568 * python/python.c: Ditto.
2569 * tui/tui-data.c: Ditto.
2570 * tui/tui-disasm.c: Ditto.
2571 * tui/tui-hooks.c: Ditto.
2572 * tui/tui-io.c: Ditto.
2573 * tui/tui-layout.c: Ditto.
2574 * tui/tui-regs.c: Ditto.
2575 * tui/tui-source.c: Ditto.
2576 * tui/tui-stack.c: Ditto.
2577 * tui/tui-win.c: Ditto.
2578 * tui/tui-windata.c: Ditto.
2579 * tui/tui-winsource.c: Ditto.
2581 2011-01-05 Joel Brobecker <brobecker@adacore.com>
2583 * configure.ac, gdb.1: Copyright year update.
2585 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2587 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
2588 this_pc_in_block, morestack_msym and morestack_name. Check for
2589 "__morestack" minimal symbol there.
2591 2011-01-03 Joel Brobecker <brobecker@adacore.com>
2593 * symfile.c (find_sym_fns): Add call to dont_repeat.
2595 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2597 Copyright year update in most files (performed by copyright.sh).
2599 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2601 * top.c (print_gdb_version): Update copyright year in version output.
2603 For older changes see ChangeLog-2010.
2609 version-control: never