1 2011-02-27 Michael Snyder <msnyder@vmware.com>
3 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4 param with a local variable of the same name.
6 2011-02-27 Michael Snyder <msnyder@vmware.com>
8 * value.c (value_from_history_ref): New function.
9 * value.h (value_from_history_ref): Export.
10 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
11 to parse value history references.
12 * cli/cli-utils.h (get_number_trailer): Update comment.
14 2011-02-27 Michael Snyder <msnyder@vmware.com>
16 * inferior.c (detach_inferior_command): Use get_number_or_range.
17 (kill_inferior_command): Ditto.
18 (remove_inferior_command): Ditto.
19 (initialize_inferiors): Make command names plural.
22 2011-02-27 Michael Snyder <msnyder@vmware.com>
24 * darwin-nat-info.c: Fix comment typo.
25 * dwarf2expr.h: Ditto.
28 * frame-unwind.h: Ditto.
30 * hppa-hpux-tdep.c: Ditto.
31 * i386-linux-nat.c: Ditto.
35 * ppc-linux-tdep.c: Ditto.
38 * tui/tui-winsource.c: Ditto.
40 2011-02-26 Michael Snyder <msnyder@vmware.com>
42 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
44 * maint.c (maintenance_do_deprecate): Plug a memory leak.
46 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
47 with a local variable of the same name.
49 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
50 param with a local variable of the same name.
51 (i387_supply_xsave): Ditto.
53 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
54 that it does not shadow a function parameter.
56 * i386-nat.c (i386_length_and_rw_bits): Document that case
57 statement is meant to fall through.
59 * expprint.c (dump_subexp_body_standard): Document that case
60 statement is meant to fall through.
62 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
63 dead if statement. Condition can't be false.
65 2011-02-25 Michael Snyder <msnyder@vmware.com>
67 * arm-tdep.c: Fix typos in comments.
68 * bsd-uthread.c: Ditto.
71 * cp-namespace.c: Ditto.
72 * cp-support.c: Ditto.
75 * dwarf2read.c: Ditto.
79 * mdebugread.c: Ditto.
81 * ppc-linux-nat.c: Ditto.
82 * ppc-linux-tdep.c: Ditto.
84 * sol-thread.c: Ditto.
87 * sparc64-tdep.c: Ditto.
94 * python/py-block.c: Ditto.
95 * python/py-symbol.c: Ditto.
96 * python/py-symtab.c: Ditto.
97 * python/py-value.c: Ditto.
98 * tui/tui-win.c: Ditto.
100 2011-02-25 Michael Snyder <msnyder@vmware.com>
102 * inferior.c (print_inferior): Accept a string instead of an int
103 for requested_inferiors, and use get_number_or_range to parse it.
104 (info_inferiors_command): Pass args string to print_inferior.
105 (initialize_inferiors): Change help string for info inferiors.
106 * inferior.h (print_inferior): Export prototype change.
108 2011-02-25 Tom Tromey <tromey@redhat.com>
110 * common/ax.def (invalid2): Set to 0x31.
112 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
114 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
116 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
118 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
120 2011-02-24 Michael Snyder <msnyder@vmware.com>
122 * Makefile.in (clean): Make clean should remove generated files
123 observer.h and observer.inc.
125 2011-02-24 Joel Brobecker <brobecker@adacore.com>
127 Revert the following patch (not approved yet):
128 2011-02-21 Hui Zhu <teawater@gmail.com>
129 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
130 * ax-gdb.c (gen_printf_expr_callback): New function.
131 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
132 * ax-general.c (ax_memcpy): New function.
133 (ax_print): Handle "printf".
135 * ax.h (ax_memcpy): Forward declare.
136 * common/ax.def (invalid2): Removed.
138 * printcmd.c (printcmd.h): New include.
139 (string_printf): New function.
140 (ui_printf): Removed.
141 (printf_command): Remove static. Call string_printf.
142 (eval_command): Call string_printf.
143 * printcmd.h: New file.
144 * tracepoint.c (validate_actionline,
145 encode_actions_1): handle printf_command.
147 2011-02-23 Tom Tromey <tromey@redhat.com>
149 * ax-general.c (ax_pick): Add missing newline.
151 2011-02-23 Michael Snyder <msnyder@vmware.com>
153 * breakpoint.c (breakpoint_1): Change first argument from an int
154 to a char pointer, so that the function now accepts a list of
155 breakpoints rather than just one. Use new function
156 'number_is_in_list' to implement.
157 (breakpoints_info): Pass char * instead of int to breakpoint_1.
158 (watchpoints_info): Ditto.
159 (tracepoints_info): Ditto.
160 (maintenance_info_breakpoints): Ditto.
161 (_initialize_breakpoint): Update help strings to reflect the fact
162 that these functions can now take more than one argument.
163 * cli/cli-utils.c (number_is_in_list): New function.
164 * cli/cli-utils.h (number_is_in_list): Export.
166 2011-02-23 Michael Snyder <msnyder@vmware.com>
168 * memattr.c (mem_enable_command): Use get_number_or_range.
169 (mem_disable_command): Ditto.
170 (mem_delete_command): Ditto.
171 (_initialize_mem): Tweak usage message to reflect multiple
174 2011-02-22 Doug Evans <dje@google.com>
176 Add gdb.lookup_global_symbol python function.
178 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
179 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
180 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
182 2011-02-22 Tom Tromey <tromey@redhat.com>
184 * language.c (language_class_name_from_physname): Rename
185 'curr_language' argument to 'lang'; use in body.
187 2011-02-22 Michael Snyder <msnyder@vmware.com>
189 * cli/cli-utils.c (number_is_in_list): Check for zero return.
191 2011-02-22 Pedro Alves <pedro@codesourcery.com>
193 * frame-unwind.h: Fix comment to mention the this frame, not the
196 2011-02-22 Tom Tromey <tromey@redhat.com>
198 * symfile.c (auto_solib_limit): Remove.
199 * symfile.h (auto_solib_limit): Remove.
201 2011-02-22 Joel Brobecker <brobecker@adacore.com>
203 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
205 2011-02-21 Michael Snyder <msnyder@vmware.com>
207 * gdbthread.h (print_thread_info): Change prototype.
208 * thread.c (print_thread_info): Accept char* instead of int for
209 requested_threads argument. Use new function number_is_in_list
210 to determine which threads to list.
211 (info_threads_command): Pass char* to print_thread_info.
212 * cli/cli-utils.c (number_is_in_list): New function.
213 * cli/cli-utils.h (number_is_in_list): Export.
214 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
216 (print_one_inferior): Ditto.
217 (mi_cmd_list_thread_groups): Ditto.
219 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
221 * common/Makefile.in (CFLAGS): New.
222 (COMPILE): Add $(CFLAGS).
224 2011-02-21 Tom Tromey <tromey@redhat.com>
226 * breakpoint.c (catch_syscall_command_1): Fix typo.
228 2011-02-21 Tom Tromey <tromey@redhat.com>
230 * reverse.c: Include cli-utils.h.
231 * printcmd.c: Include cli-utils.h.
232 (string_printf): Use skip_spaces.
233 * cli/cli-utils.h: New file.
234 * cli/cli-utils.c: New file.
235 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
236 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
237 * breakpoint.h (get_number, get_number_or_range): Move to
239 * breakpoint.c: Include cli-utils.h.
240 (get_number_trailer, get_number, get_number_or_range)
241 (ep_skip_leading_whitespace): Move to cli-utils.c.
242 (create_breakpoint_sal, find_condition_and_thread)
243 (decode_static_tracepoint_spec, watch_command_1)
244 (watch_maybe_just_location, ep_parse_optional_if_clause)
245 (catch_fork_command_1, catch_exec_command_1)
246 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
247 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
248 (SUBDIR_CLI_SRCS): Add cli-utils.c.
249 (HFILES_NO_SRCDIR): Add cli-utils.h.
250 (cli-utils.o): New target.
252 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
254 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
255 before calling discard_all_inferiors.
257 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
259 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
260 (struct builtin_opencl_type): Remove.
261 (builtin_opencl_type): Change return type to "struct type **".
262 (lookup_opencl_vector_type): Update caller.
263 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
264 (build_opencl_types): Install plain array of "struct type *"
265 instead of "struct builtin_opencl_type".
267 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
268 Ulrich Weigand <uweigand@de.ibm.com>
270 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
271 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
272 (struct arm_linux_hwbp_cap): New type.
273 (arm_linux_get_hwbp_cap): New function.
274 (arm_linux_get_hw_breakpoint_count): Likewise.
275 (arm_linux_get_hw_watchpoint_count): Likewise.
276 (arm_linux_can_use_hw_breakpoint): Likewise.
277 (arm_hwbp_type): New type.
278 (arm_hwbp_control_t): Likewise.
279 (struct arm_linux_hw_breakpoint): Likewise.
280 (struct arm_linux_thread_points): Likewise.
281 (arm_threads): New global variable.
282 (arm_linux_find_breakpoints_by_tid): New function.
283 (arm_hwbp_control_initialize): Likewise.
284 (arm_hwbp_control_is_enabled): Likewise.
285 (arm_hwbp_control_disable): Likewise.
286 (arm_linux_hw_breakpoint_initialize): Likewise.
287 (arm_linux_get_hwbp_type): Likewise.
288 (arm_linux_hw_watchpoint_initialize): Likewise.
289 (arm_linux_hw_breakpoint_equal): Likewise.
290 (arm_linux_insert_hw_breakpoint1): Likewise.
291 (arm_linux_remove_hw_breakpoint1): Likewise.
292 (arm_linux_insert_hw_breakpoint): Likewise.
293 (arm_linux_remove_hw_breakpoint): Likewise.
294 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
295 (arm_linux_insert_watchpoint): Likewise.
296 (arm_linux_remove_watchpoint): Likewise.
297 (arm_linux_stopped_data_address): Likewise.
298 (arm_linux_stopped_by_watchpoint): Likewise.
299 (arm_linux_watchpoint_addr_within_range): Likewise.
300 (arm_linux_new_thread): Likewise.
301 (arm_linux_thread_exit): Likewise.
302 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
303 related target callbacks. Register arm_linux_new_thread and
304 arm_linux_thread_exit.
305 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
306 * arm-tdep.c (arm_pc_is_thumb): Make global.
307 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
309 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
311 * breakpoint.c (update_watchpoint): Do not attempt to recreate
312 per-frame locations while within a function epilogue.
314 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
316 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
317 to GNU coding standards.
319 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
321 Allow use of mingw native on Windows 95 OS.
322 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
323 (ser_windows_close): Only call CancelIo if function exists.
324 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
325 to check for existence of CancelIo function in kernel32 DLL.
327 2011-02-21 Hui Zhu <teawater@gmail.com>
329 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
330 * ax-gdb.c (gen_printf_expr_callback): New function.
331 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
332 * ax-general.c (ax_memcpy): New function.
333 (ax_print): Handle "printf".
335 * ax.h (ax_memcpy): Forward declare.
336 * common/ax.def (invalid2): Removed.
338 * printcmd.c (printcmd.h): New include.
339 (string_printf): New function.
340 (ui_printf): Removed.
341 (printf_command): Remove static. Call string_printf.
342 (eval_command): Call string_printf.
343 * printcmd.h: New file.
344 * tracepoint.c (validate_actionline,
345 encode_actions_1): handle printf_command.
347 2011-02-19 Michael Snyder <msnyder@vmware.com>
349 * reverse.c (delete_one_bookmark): Argument is now bookmark
350 id rather than pointer to bookmark struct.
351 (delete_bookmark_command): Use get_number_or_range.
352 (goto_bookmark_command): Parse with get_number instead of strtoul.
353 (bookmark_1): New function. Print info for one bookmark.
354 (bookmarks_info): Use get_number_or_range and bookmark_1.
356 2011-02-18 Michael Snyder <msnyder@vmware.com>
358 * thread.c (info_threads_command): Re-implement using
360 (thread_apply_command): Ditto.
362 2011-02-18 Tom Tromey <tromey@redhat.com>
364 * common/ax.def: New file.
365 * ax.h (enum agent_op): Use ax.def.
366 * ax-general.c (aop_map): Use ax.def.
368 2011-02-18 Tom Tromey <tromey@redhat.com>
370 * ax-general.c (aop_map): Add pick and rot.
371 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
372 <DW_OP_rot>: Implement.
373 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
375 * ax-general.c (ax_pick): New function.
377 2011-02-18 Tom Tromey <tromey@redhat.com>
379 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
381 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
382 Tom Tromey <tromey@redhat.com>
384 * cp-support.c (make_symbol_overload_list_namespace): Do not call
385 make_symbol_overload_list_block with NULL BLOCK.
386 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
388 2011-02-18 Pedro Alves <pedro@codesourcery.com>
390 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
391 * breakpoint.h (get_number_or_range): Declare.
392 * printcmd.c (ALL_DISPLAYS): Declare.
393 (delete_display): Reimplement taking a display pointer.
394 (undisplay_command): Accept a range of displays to delete, using
397 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
399 * c-valprint.c (c_val_print): Add embedded_offset to address
400 for arrays of unspecified length.
401 * p-valprint.c (pascal_val_print): Likewise.
403 2011-02-18 Yao Qi <yao@codesourcery.com>
405 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
406 (arm_process_displaced_insn): .. here. Remove parameter INSN.
407 (thumb_process_displaced_insn): New.
408 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
409 call to arm_process_displaced_insn.
410 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
412 2011-02-17 Tom Tromey <tromey@redhat.com>
414 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
415 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
416 compile_dwarf_to_ax. No longer static. Call
417 dwarf2_compile_cfa_to_ax.
418 (locexpr_tracepoint_var_ref): Update.
419 (loclist_tracepoint_var_ref): Update.
420 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
421 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
422 argument; add 'gdbarch' and 'pc'.
423 (dwarf2_compile_cfa_to_ax): New function.
424 (dwarf2_frame_cache): Update.
426 2011-02-17 Joel Brobecker <brobecker@adacore.com>
428 * ada-lang.c (ada_type_of_array): Fix the size of the array
429 in the case of an unconstrained packed array.
431 2011-02-17 Yao Qi <yao@codesourcery.com>
433 * common/Makefile.in: Add more targets for make.
435 2011-02-16 Tom Tromey <tromey@redhat.com>
437 * dwarf2loc.c (unimplemented): Fix typo.
439 2011-02-16 Tom Tromey <tromey@redhat.com>
441 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
442 (compile_dwarf_to_ax) <default>: Use unimplemented.
443 <DW_OP_deref>: Update.
444 (disassemble_dwarf_expression): Update.
445 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
446 (decode_locdesc): Update.
447 * dwarf2expr.h (dwarf_stack_op_name): Update.
449 2011-02-16 Tom Tromey <tromey@redhat.com>
451 * ax.h (struct aop_map) <name>: Now const.
453 2011-02-16 Tom Tromey <tromey@redhat.com>
455 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
458 2011-02-16 Yao Qi <yao@codesourcery.com>
460 * infrun.c (get_displaced_step_closure_by_addr): New.
461 * inferior.h: Declare it.
462 * arm-tdep.c: (arm_pc_is_thumb): Call
463 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
466 2011-02-16 Pedro Alves <pedro@codesourcery.com>
467 Jan Kratochvil <jan.kratochvil@redhat.com>
470 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
472 2011-02-16 Pedro Alves <pedro@codesourcery.com>
473 Jan Kratochvil <jan.kratochvil@redhat.com>
475 * value.c (value_contents_copy_raw): Extend describing comment.
476 Assert that the destination contents we're overwriting are wholly
478 (value_contents_copy): Extend describing comment.
480 2011-02-16 Pedro Alves <pedro@codesourcery.com>
481 Jan Kratochvil <jan.kratochvil@redhat.com>
483 * value.c (value_available_contents_eq): Remove redundant local
484 variables. Fix available contents comparision.
485 * value.h (value_available_contents_eq): Extend describing
488 2011-02-16 Yao Qi <yao@codesourcery.com>
490 * thread.c (info_threads_command): Add missing i18n markup and remove
493 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
495 * breakpoint.c (longjmp_names): New variable.
496 (struct breakpoint_objfile_data): New type.
497 (breakpoint_objfile_key): New variable.
498 (msym_not_found): New variable.
499 (msym_not_found_p): New predicate.
500 (get_breakpoint_objfile_data): New function.
501 (create_overlay_event_breakpoint): Check per-objfile cache for
503 (create_longjmp_master_breakpoint): Likewise.
504 (create_std_terminate_master_breakpoint): Likewise.
505 (create_exception_master_breakpoint): Likewise.
506 (_initialize_breakpoint): Register per-objfile data key.
508 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
510 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
512 (create_longjmp_master_breakpoint): Loop over longjmp names.
513 (create_std_terminate_master_breakpoint): Const-propagate parameter
515 (update_breakpoints_after_exec): Adjust.
516 (breakpoint_re_set): Adjust.
518 2011-02-15 Michael Snyder <msnyder@vmware.com>
520 * thread.c (info_threads_command): Process arg as thread id,
521 or list of thread ids.
522 (thread_find_command): New command.
523 (_initialize_thread): Document argument for info threads.
524 Document 'thread find' command.
525 * NEWS: Document new command "thread find".
527 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
529 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
530 * aclocal.m4: Regenerated with aclocal-1.11.1.
531 * common/configure: Regenerate with autoconf-2.64.
533 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
535 * opencl-lang.c (build_opencl_types): Set the size of the built-in
536 bool data type to a size of one byte.
538 2011-02-15 Pedro Alves <pedro@codesourcery.com>
539 Jan Kratochvil <jan.kratochvil@redhat.com>
541 * target.c (memory_xfer_live_readonly_partial): Document where to
542 look for interface description.
544 2011-02-15 Yao Qi <yao@codesourcery.com>
547 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
548 order to store PC value on stack instead of text section.
550 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
552 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
553 the EFP register set size.
554 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
555 data from the VMX register.
556 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
557 and write data from/to the VMX register.
559 2011-02-14 Michael Snyder <msnyder@vmware.com>
561 * command.h (enum command_class): New class 'no_set_class', for
562 "show" commands without a corresponding "set" command.
563 * value.c (_initialize_values): Use 'no_set_class' for "show values".
564 * copying.c (_initialize_copying): Ditto for "show copying" and
566 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
568 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
569 which there is no corresponding "set" command (eg. "show copying").
571 2011-02-14 Pedro Alves <pedro@codesourcery.com>
572 Jan Kratochvil <jan.kratochvil@redhat.com>
574 * exec.c (section_table_available_memory): Change `len' parameter
576 * exec.h (section_table_available_memory): Ditto.
577 * value.h (read_value_memory): Rename the `offset' parameter to
580 2011-02-14 Pedro Alves <pedro@codesourcery.com>
581 Jan Kratochvil <jan.kratochvil@redhat.com>
583 * memrange.c (compare_mem_ranges): Mention sort order in
585 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
586 * tracepoint.c (traceframe_available_memory): Extend comment to
587 mention what happens to RESULT when the target does not support
590 2011-02-14 Pedro Alves <pedro@codesourcery.com>
591 Jan Kratochvil <jan.kratochvil@redhat.com>
593 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
596 2011-02-14 Pedro Alves <pedro@codesourcery.com>
598 * value.c (value_bits_valid, value_bits_synthetic_pointer):
599 No longer handle NULL values.
601 2011-02-14 Pedro Alves <pedro@codesourcery.com>
603 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
604 * value.c: Include "exceptions.h".
605 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
607 * cp-abi.c: Include gdb_assert.h.
608 (baseclass_offset): Add `embedded_offset' and `val' parameters.
609 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
611 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
612 parameters. No longer returns -1 on error.
613 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
615 * cp-valprint.c: Include exceptions.h.
616 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
617 the baseclass_offset. Handle unavailable base classes. Use
618 val_print_invalid_address.
619 * p-valprint.c: Include exceptions.h.
620 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
621 when fetching the baseclass_offset. No longer expect
622 baseclass_offset returning -1. Handle unavailable base classes.
623 Use val_print_invalid_address.
624 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
625 `valaddr' parameter, and change its type to gdb_byte pointer. Add
626 `embedded_offset' and `val' parameters. Adjust.
627 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
628 parameter, and change its type to gdb_byte pointer. Add
629 `embedded_offset' and `val' parameters. Adjust. No longer expect
630 baseclass_offset returning -1.
631 (value_dynamic_cast): Use value_contents_for_printing rather than
632 value_contents. Adjust.
633 (search_struct_field): No longer expect baseclass_offset returning
635 (search_struct_method): If reading memory from the target is
636 necessary, wrap it in a new value to pass to baseclass_offset. No
637 longer expect baseclass_offset returning -1.
638 (find_method_list): No longer expect baseclass_offset returning
639 -1. Use value_contents_for_printing rather than value_contents.
640 * valprint.c (val_print_invalid_address): New function.
641 * valprint.h (val_print_invalid_address): Declare.
642 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
643 and `val' parameters. No longer expect baseclass_offset returning
645 * gnu-v2-abi.c: Include "exceptions.h".
646 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
647 parameters. Handle unavailable memory. Recurse through
648 gnuv2_baseclass_offset directly, rather than through
649 baseclass_offset. No longer returns -1 on not found, instead
651 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
652 `val' parameters. Adjust.
654 2011-02-14 Pedro Alves <pedro@codesourcery.com>
656 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
657 almost but not quite adjacent.
659 2011-02-14 Pedro Alves <pedro@codesourcery.com>
661 * value.h (value_entirely_available): Declare.
662 * value.c (value_entirely_available): New function.
663 * c-valprint.c (c_value_print): Don't try fetching the pointer's
664 real type if the pointer is unavailable.
666 2011-02-14 Pedro Alves <pedro@codesourcery.com>
668 * valops.c (value_repeat): Use read_value_memory instead of
671 2011-02-14 Pedro Alves <pedro@codesourcery.com>
673 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
674 * value.c (value_contents_copy_raw, value_contents_copy): New
676 (value_primitive_field): Use value_contents_copy_raw instead of
678 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
680 (value_array, value_slice): Ditto.
681 * valarith.c (value_subscripted_rvalue): Use
682 value_contents_copy_raw instead of memcpy.
684 2011-02-14 Pedro Alves <pedro@codesourcery.com>
686 <unavailable> references.
688 * valops.c (get_value_at): Use value_from_contents_and_address,
689 avoiding read_memory.
691 2011-02-14 Pedro Alves <pedro@codesourcery.com>
693 * c-valprint.c (c_val_print): Print a string with unavailable
694 contents as an array.
696 2011-02-14 Pedro Alves <pedro@codesourcery.com>
698 * value.h (unpack_bits_as_long): Delete declaration.
699 (unpack_value_bits_as_long): Declare.
700 (unpack_value_field_as_long): Declare.
701 (value_field_bitfield): Declare.
702 * value.c (unpack_bits_as_long): Rename to...
703 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
704 value parameters. Return the extracted result in a new output
705 parameter. If the value contents are unavailable, return false,
706 otherwise return true.
707 (unpack_value_bits_as_long): New.
708 (unpack_field_as_long): Rename to...
709 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
710 Add embedded_offset and value parameters. Return the extracted
711 result in a new output parameter. If the value contents are
712 unavailable, return false, otherwise return true.
713 (unpack_value_field_as_long): New.
714 (unpack_field_as_long_1): New.
715 (unpack_field_as_long): Reimplement as wrapper around
716 unpack_value_field_as_long_1.
717 (value_field_bitfield): New function.
718 * valops.c (value_fetch_lazy): When fetching a bitfield, use
719 unpack_value_bits_as_long. Mark the value as unavailable, if it
721 * jv-valprint.c (java_print_value_fields): Use
722 value_field_bitfield.
723 * p-valprint.c (pascal_object_print_value_fields): Use
724 value_field_bitfield.
725 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
727 2011-02-14 Pedro Alves <pedro@codesourcery.com>
729 * value.c (get_internalvar_integer): Also return the int value of
730 TYPE_CODE_INT INTERNALVAR_VALUE values.
731 (set_internalvar): Don't special case TYPE_CODE_INT.
733 2011-02-14 Pedro Alves <pedro@codesourcery.com>
735 * value.c (struct internalvar) <enum internalvar_kind>: Remove
738 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
739 (set_internalvar): Remove special TYPE_CODE_PTR handling.
740 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
742 2011-02-14 Pedro Alves <pedro@codesourcery.com>
744 * value.h (value_available_contents_eq): Declare.
745 * value.c (find_first_range_overlap): New function.
746 (value_available_contents_eq): New function.
747 * valprint.c (val_print_array_elements): Use
748 value_available_contents_eq.
749 * ada-valprint.c (val_print_packed_array_elements): Use
750 value_available_contents_eq.
751 * jv-valprint.c (java_value_print): Use
752 value_available_contents_eq.
754 2011-02-14 Pedro Alves <pedro@codesourcery.com>
756 * target.c (target_read_live_memory): New function.
757 (memory_xfer_live_readonly_partial): New.
758 (memory_xfer_partial): If reading from a traceframe, fallback to
759 reading unavailable read-only memory from read-only regions of
761 * tracepoint.c (disconnect_tracing): Adjust.
762 (set_current_traceframe): New, factored out from
763 set_traceframe_number.
764 (set_traceframe_number): Reimplement to only change the traceframe
765 number on the GDB side.
766 (do_restore_current_traceframe_cleanup): Adjust.
767 (make_cleanup_restore_traceframe_number): New.
768 (cur_traceframe_number): New global.
769 (tfile_open): Set cur_traceframe_number to no traceframe.
770 (set_tfile_traceframe): New function.
771 (tfile_trace_find): If looking up a traceframe using any method
772 other than by number, make sure the current tfile traceframe
773 matches gdb's current traceframe. Update the current tfile
774 traceframe if the lookup succeeded.
775 (tfile_fetch_registers, tfile_xfer_partial)
776 (tfile_get_trace_state_variable_value): Make sure the remote
777 traceframe matches gdb's current traceframe.
778 * remote.c (remote_traceframe_number): New global.
779 (remote_open_1): Set it to -1.
780 (set_remote_traceframe): New function.
781 (remote_fetch_registers, remote_store_registers)
782 (remote_xfer_memory, remote_xfer_partial)
783 (remote_get_trace_state_variable_value): Make sure the remote
784 traceframe matches gdb's current traceframe.
785 (remote_trace_find): If looking up a traceframe using any method
786 other than by number, make sure the current remote traceframe
787 matches gdb's current traceframe. Update the current remote
788 traceframe if the lookup succeeded.
789 * infrun.c (fetch_inferior_event): Adjust.
790 * tracepoint.h (set_current_traceframe): Declare.
791 (get_traceframe_number, set_traceframe_number): Add describing
794 2011-02-14 Pedro Alves <pedro@codesourcery.com>
796 Mark pieces of values as unavailable if the corresponding memory
799 * valops.c: Include tracepoint.h.
800 (value_fetch_lazy): Use read_value_memory.
801 (read_value_memory): New.
802 * value.h (read_value_memory): Declare.
803 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
804 * exec.c (section_table_available_memory): New function.
805 * exec.h (section_table_available_memory): Declare.
807 2011-02-14 Pedro Alves <pedro@codesourcery.com>
809 * Makefile.in (SFILES): Add memrange.c.
810 (HFILES_NO_SRCDIR): Add memrange.h.
811 (COMMON_OBS): Add memrange.o.
812 * memrange.c: New file.
813 * memrange.h: New file.
814 * tracepoint.c: Include memrange.h.
815 (struct mem_range): Delete.
816 (mem_range_s): Delete.
817 (traceframe_available_memory): New function.
818 * tracepoint.h (traceframe_available_memory): Declare.
820 2011-02-14 Pedro Alves <pedro@codesourcery.com>
822 * target.h (struct traceframe_info): Forward declare.
823 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
824 (struct target_ops) <to_traceframe_info>: New field.
825 (target_traceframe_info): New.
826 * target.c (update_current_target): Inherit and default
828 * remote.c (PACKET_qXfer_traceframe_info): New.
829 (remote_protocol_features): Register qXfer:traceframe-info:read.
830 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
831 (remote_traceframe_info): New.
832 (init_remote_ops): Install it.
833 (_initialize_remote): Install "set/show remote traceframe-info"
835 * tracepoint.h (parse_traceframe_info): Declare.
836 * tracepoint.c (struct mem_range): New.
837 (mem_range_s): New typedef.
838 (struct traceframe_info): New.
839 (traceframe_info): New global.
840 (free_traceframe_info): New function.
841 (clear_traceframe_info): New function.
842 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
844 (build_traceframe_info): New function.
845 (tfile_traceframe_info): New function.
846 (init_tfile_ops): Install tfile_traceframe_info.
847 (traceframe_info_start_memory, free_result): New functions.
848 (memory_attributes, traceframe_info_elements): New globals.
849 (parse_traceframe_info, get_traceframe_info): New functions.
850 * features/traceframe-info.dtd: New file.
851 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
853 2011-02-14 Pedro Alves <pedro@codesourcery.com>
855 Base support for <unavailable> value contents.
857 * value.h (value_bytes_available): Declare.
858 (mark_value_bytes_unavailable): Declare.
859 * value.c (struct range): New struct.
860 (range_s): New typedef.
861 (ranges_overlap): New function.
862 (range_lessthan): New function.
863 (ranges_contain_p): New function.
864 (struct value) <unavailable>: New field.
865 (value_bytes_available): New function.
866 (mark_value_bytes_unavailable): New function.
867 (require_not_optimized_out): Constify parameter.
868 (require_available): New function.
869 (value_contents_all, value_contents): Require all bytes be
871 (value_free): Free `unavailable'.
872 (value_copy): Copy `unavailable'.
873 * valprint.h (val_print_unavailable): Declare.
874 * valprint.c (valprint_check_validity): Rename `offset' parameter
875 to `embedded_offset'. If printing a scalar, check whether the
876 value chunk is available.
877 (val_print_unavailable): New.
878 (val_print_scalar_formatted): Check whether the value is
880 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
881 pretty-printing unavailable values.
883 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
885 Fix const/volatile qualifiers of C++ types, PR c++/12328.
886 * c-typeprint.c (c_type_print_args): Update the function comment. New
887 variable param_type, initialize it. Remove const/volatile qualifiers
888 for language_cplus and !show_artificial. Use param_type.
890 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
892 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
893 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
894 * symtab.h (struct symtab) <next>: Comment extension.
896 2011-02-12 Yao Qi <yao@codesourcery.com>
898 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
900 2011-02-11 Yao Qi <yao@codesourcery.com>
902 * common/Makefile.in: Add copyright header.
904 2011-02-11 Pedro Alves <pedro@codesourcery.com>
906 * infrun.c (proceed): Move switching out and in of tfind mode from
908 (fetch_inferior_event): ... to here.
910 2011-02-11 Yao Qi <yao@codesourcery.com>
912 * Makefile.in: Remove signals.o from COMMON_OBS. Link
914 * configure.ac: Add common to sub dir.
915 * configure: Regenerate.
917 2011-02-11 Yao Qi <yao@codesourcery.com>
921 * common/Makefile.in: New.
922 * common/configure.ac: New.
923 * common/aclocal.m4: New.
924 * common/configure: Generate.
926 2011-02-10 Pedro Alves <pedro@codesourcery.com>
928 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
929 side of the parenthesis.
932 2010-07-13 Jakub Jelinek <jakub@redhat.com>
933 * vec.h (VEC_block_remove): Fix comment.
935 2011-02-08 Michael Snyder <msnyder@vmware.com>
937 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
939 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
941 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
942 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
945 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
948 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
950 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
951 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
953 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
955 * dwarf2read.c (read_subroutine_type): Set special calling
956 convention flag for functions compiled by IBM XL C for OpenCL.
957 * ppc-sysv-tdep.c: Include "dwarf2.h"
958 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
960 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
961 IBM OpenCL vector types calling convention.
962 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
963 (ppc_sysv_abi_broken_return_value): Likewise.
964 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
965 types calling convention.
966 (ppc64_sysv_abi_return_value): Likewise.
967 * spu-tdep.c: Include "dwarf2.h"
968 (spu_return_value): Implement IBM OpenCL vector types calling
971 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
973 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
974 correct ABI for AltiVec vector arguments.
976 2011-02-07 Pedro Alves <pedro@codesourcery.com>
978 * valprint.c (val_print): Extend comment.
979 * ada-valprint.c (ada_valprint): Rewrite comment deferring
980 interface explanation to val_print.
981 (ada_val_print_array): Adjust comment to current interface.
982 (print_field_values): Adjust comment to current interface.
983 * c-valprint.c (c_val_print): Rewrite comment deferring interface
984 explanation to val_print.
985 * f-valprint.c (f_val_print): Ditto.
986 * jv-valprint.c (java_val_print): Ditto.
987 * m2-valprint.c (m2_val_print): Ditto.
988 * p-valprint.c (pascal_val_print): Ditto.
990 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
992 * breakpoint.c (parse_breakpoint_sals): Fix description.
994 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
995 Oguz Kayral <oguzkayral@gmail.com>
997 * python/py-inferior.c (python_on_normal_stop): New function.
998 (python_on_resume): New function.
999 (python_inferior_exit): New function.
1000 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
1001 inferior_exit observers.
1002 * python/py-evtregistry.c: New file.
1003 * python/py-threadevent.c : New file.
1004 * python/py-event.c: New file.
1005 * python/py-evts.c: New file.
1006 * python/py-continueevent.c: New file.
1007 * python/py-bpevent.c: New file.
1008 * python/py-signalevent.c: New file.
1009 * python/py-exetiedevent.c: New file.
1010 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
1011 Move struct breakpoint_object from here...
1012 * python/python-internal.h: ... to here.
1013 * python/py-event.h: New file.
1014 * python/py-events.h: New file.
1015 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
1016 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
1017 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
1018 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
1019 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
1020 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
1021 Add build rules for all the above.
1023 2011-02-04 Tom Tromey <tromey@redhat.com>
1025 * dwarf2read.c (dwarf2_section_empty_p): New function.
1026 (dwarf2_read_section): Use dwarf2_section_empty_p.
1027 (dwarf2_section_size): New function.
1028 (dwarf2_get_section_info): Unconditionally read section.
1029 (dwarf2_read_index): Use dwarf2_section_empty_p.
1030 (partial_read_comp_unit_head): Use dwarf2_section_size.
1031 (dwarf2_symbol_mark_computed): Likewise.
1033 2011-02-04 David Daney <ddaney@caviumnetworks.com>
1035 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
1037 2011-02-04 David Daney <ddaney@caviumnetworks.com>
1039 * mips-linux-tdep.c: Include xml-syscall.h.
1040 (mips_linux_get_syscall_number): New function.
1041 (mips_linux_init_abi): Add calls to
1042 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
1043 * data-directory/Makefile.in (SYSCALLS_FILES): Add
1044 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
1045 * syscalls/mips-n32-linux.xml: New file.
1046 * syscalls/mips-n64-linux.xml: New file.
1047 * syscalls/mips-o32-linux.xml: New file.
1049 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1051 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
1052 Complain about inverted range entries.
1053 (dwarf2_record_block_ranges): Likewise.
1055 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1058 * breakpoint.c (update_watchpoint): Fix name of the
1059 update_global_location_list function.
1060 (print_one_breakpoint): Fix typo.
1061 (_initialize_breakpoint): Remove extra space in hbreak help
1063 * breakpoint.h (struct bp_location) <length>: Fix field
1066 2011-02-04 Pedro Alves <pedro@codesourcery.com>
1068 * regcache.c (registers_changed_ptid): Don't explictly always
1069 clear `current_regcache'. Only clear current_thread_ptid and
1070 current_thread_arch when PTID matches. Only reinit the frame
1071 cache if PTID matches the current inferior_ptid. Move alloca(0)
1073 (registers_changed): ... here.
1075 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
1077 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
1078 starts with __stack_chk_guard as stack guard symbol.
1080 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
1082 * disasm.c (compare_lines): Handle the end of sequence markers
1083 within the line table to better support disassembling over
1084 compilation unit boundaries.
1086 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1088 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
1089 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
1090 implementation even if no symbols are available.
1091 (thumb_analyze_prologue): Update call to skip_prologue_function.
1092 (arm_analyze_prologue): Likewise.
1094 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1096 * arm-tdep.c: Include "observer.h".
1097 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
1098 (arm_exidx_data_key): New static variable.
1099 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
1100 (struct arm_exidx_data): Likewise.
1101 (arm_exidx_data_free): New function.
1102 (arm_compare_exidx_entries): Likewise.
1103 (arm_obj_section_from_vma): Likewise.
1104 (arm_exidx_new_objfile): Likewise.
1105 (arm_find_exidx_entry): Likewise.
1106 (arm_exidx_fill_cache): Likewise.
1107 (arm_exidx_unwind_sniffer): Likewise.
1108 (arm_exidx_unwind): New global variable.
1109 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
1110 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
1111 observer. Register arm_exidx_data_key as objfile data.
1113 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1115 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
1116 due to accessing uninitialized variable. Fix indentation.
1118 2011-02-02 Pedro Alves <pedro@codesourcery.com>
1120 * c-valprint.c (c_value_print): When doing virtual base pointer
1121 adjustment, create a new value with adjusted contents rather than
1122 changing the contents of the value being printed (and getting it
1125 2011-02-02 Pedro Alves <pedro@codesourcery.com>
1127 * xml-support.c (xml_find_attribute): New.
1128 (xinclude_start_include): Use it.
1129 * xml-support.h (xml_find_attribute): Declare.
1130 * memory-map.c (memory_map_start_memory)
1131 (memory_map_start_property): Use xml_find_attribute.
1132 * osdata.c (osdata_start_osdata, osdata_start_column): Use
1134 * remote.c (start_thread): Use xml_find_attribute.
1135 * solib-target.c (library_list_start_segment)
1136 (library_list_start_section, library_list_start_library)
1137 (library_list_start_list): Use xml_find_attribute.
1138 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
1139 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
1140 (tdesc_start_field): Use xml_find_attribute.
1142 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
1144 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
1145 (BUILD_OCL_VTYPES): Update.
1147 2011-02-02 Joel Brobecker <brobecker@adacore.com>
1149 * configure.ac: Work around non-GNU sed limitation when computing
1150 python version number.
1151 * configure: Regenerate.
1153 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1155 Fix debug printing of TYPE_INSTANCE.
1156 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
1157 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
1159 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1161 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
1162 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
1163 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
1164 * ada-operator.inc: Rename the file to ...
1165 * ada-operator.def: ... here, wrap all the entries by macro OP.
1166 * expprint.c (op_name_standard): Remove all the entries. Include
1167 "std-operator.def" instead.
1168 * expression.h (enum exp_opcode): Include "std-operator.def" and
1169 "ada-operator.def". Move all the entries ...
1170 * std-operator.def: ... here, wrap all the entries by macro OP.
1172 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1174 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
1175 * breakpoint.c (remove_jit_event_breakpoints): New function.
1176 * jit.c (jit_descriptor_addr): Delete.
1177 (registering_code): Delete.
1178 (clear_int): Delete.
1179 (jit_inferior_data): New variable.
1180 (struct jit_inferior_data): New type.
1181 (get_jit_inferior_data): New function.
1182 (jit_inferior_data_cleanup): New function.
1183 (jit_read_descriptor): Adjust.
1184 (jit_register_code): Adjust.
1185 (jit_breakpoint_re_set_internal): New function; move code here ...
1186 (jit_inferior_init): ... from here.
1187 (jit_breakpoint_re_set): Adjust.
1188 (jit_reset_inferior_data_and_breakpoints): New function.
1189 (jit_inferior_created_observer): Adjust.
1190 (jit_inferior_exit_hook): Adjust.
1191 (jit_executable_changed_observer): New function.
1192 (jit_event_handler): Adjust.
1193 (_initialize_jit): Adjust.
1195 2011-01-31 Michael Snyder <msnyder@vmware.com>
1197 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
1200 2011-01-31 Tom Tromey <tromey@redhat.com>
1203 * python/python.c (execute_gdb_command): Call
1204 prevent_dont_repeat.
1205 * top.c (suppress_dont_repeat): New global.
1206 (dont_repeat): Use it.
1207 (prevent_dont_repeat): New function.
1208 * command.h (prevent_dont_repeat): Declare.
1210 2011-01-31 Tom Tromey <tromey@redhat.com>
1212 * infcmd.c (finish_backward): Use breakpoint_set_silent.
1213 * python/py-breakpoint.c (bppy_set_silent): Use
1214 breakpoint_set_silent.
1215 (bppy_set_thread): Use breakpoint_set_thread.
1216 (bppy_set_task): Use breakpoint_set_task.
1217 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
1218 (breakpoint_set_task): Declare.
1219 (make_breakpoint_silent): Remove.
1220 * breakpoint.c (breakpoint_set_silent): New function.
1221 (breakpoint_set_thread): Likewise.
1222 (breakpoint_set_task): Likewise.
1223 (make_breakpoint_silent): Remove.
1225 2011-01-31 Tom Tromey <tromey@redhat.com>
1227 * breakpoint.h (user_breakpoint_p): Declare.
1228 * breakpoint.c (user_breakpoint_p): New function.
1229 (breakpoint_1): Use it.
1230 (save_breakpoints): Likewise.
1232 2011-01-31 Joel Brobecker <brobecker@adacore.com>
1234 * configure.ac: Add handling of Python distribution on Windows.
1235 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
1236 sysconfig variables are not defined, then do not use them.
1237 On Windows, if LIBPL is not defined, then use prefix + '/libs'
1238 instead. On Windows, return all paths using forward-slashes
1239 rather than backslashes.
1241 2011-01-31 Joel Brobecker <brobecker@adacore.com>
1243 * configure.ac: Remove fallback behavior for building
1244 against Python. Remove tweaking of Python include path.
1245 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
1246 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
1247 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
1248 Always restore CPPFLAGS and LIBS after linking test.
1249 * configure: Regenerated.
1250 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
1251 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
1252 * python/python-internal.h: Adjust includes of Python .h files.
1254 2011-01-31 Joel Brobecker <brobecker@adacore.com>
1256 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
1259 2011-01-31 Joel Brobecker <brobecker@adacore.com>
1261 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
1264 2011-01-31 Yao Qi <yao@codesourcery.com>
1266 * arm-linux-nat.c: Update calls to regcache_register_status
1267 instead of regcache_valid_p.
1268 * aix-thread.c: Likewise.
1269 * i386gnu-nat.c: Likewise.
1271 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1274 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
1275 touching TYPE_FIELD_ARTIFICIAL.
1277 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
1279 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
1282 2011-01-28 Pedro Alves <pedro@codesourcery.com>
1284 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
1285 selected, don't try iterating over the traceframe's blocks.
1286 (tfile_has_stack): If there's no traceframe selected, then there's
1288 (tfile_has_registers): If there's no traceframe selected, then
1289 there's no registers.
1291 2011-01-28 Pedro Alves <pedro@codesourcery.com>
1293 * target.c (memory_xfer_partial): No need to restore shadows if we
1294 haven't read anything.
1296 2011-01-28 Pedro Alves <pedro@codesourcery.com>
1298 * mips-tdep.c (mips_print_register): Use get_frame_register_value
1299 and val_print_scalar_formatted.
1301 2011-01-27 Pedro Alves <pedro@codesourcery.com>
1303 * tracepoint.c (tfile_read): New.
1304 (tfile_open): Use it.
1305 (tfile_get_traceframe_address): Use it.
1306 (tfile_trace_find): Use it.
1307 (walk_blocks_callback_func): New typedef.
1308 (match_blocktype): New function.
1309 (traceframe_walk_blocks): New function.
1310 (traceframe_find_block_type): New function.
1311 (tfile_fetch_registers, tfile_xfer_partial)
1312 (tfile_get_trace_state_variable_value): Use
1313 traceframe_find_block_type and tfile_read.
1315 2011-01-26 Kevin Buettner <kevinb@redhat.com>
1317 * remote-mips.c: Add internationalization mark ups. Remove
1318 trailing \n from already marked up strings.
1320 2011-01-26 Tom Tromey <tromey@redhat.com>
1322 * python/py-prettyprint.c (print_string_repr): Clear
1323 'addressprint' option when calling val_print_string.
1324 (print_children): Handle Val_pretty_default. Clear 'addressprint'
1325 option when calling val_print_string.
1327 2011-01-26 Tom Tromey <tromey@redhat.com>
1329 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
1331 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
1333 (gdb_py_longest, gdb_py_ulongest): New typedefs.
1334 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
1335 (gdb_py_long_as_ulongest): New defines.
1336 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
1337 (gdb_py_int_as_long): Declare.
1338 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
1339 GDB_PY_LL_ARG, gdb_py_object_from_longest.
1340 (valpy_long): Add comment.
1341 * python/py-utils.c (get_addr_from_python): Use
1342 gdb_py_long_as_ulongest. Handle overflow properly.
1343 (gdb_py_object_from_longest): New function.
1344 (gdb_py_object_from_ulongest): Likewise.
1345 (gdb_py_int_as_long): Likewise.
1346 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
1347 * python/py-symtab.c (salpy_get_pc): Use
1348 gdb_py_long_from_ulongest.
1349 (salpy_get_line): Use PyInt_FromLong.
1350 * python/py-param.c (set_parameter_value): Use
1352 * python/py-lazy-string.c (stpy_get_address): Use
1353 gdb_py_long_from_ulongest.
1354 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
1355 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
1356 * python/py-breakpoint.c (bppy_set_thread): Use
1358 (bppy_set_task): Likewise.
1359 (bppy_set_ignore_count): Likewise.
1360 (bppy_set_hit_count): Likewise.
1361 * python/py-block.c (blpy_get_start): Use
1362 gdb_py_object_from_ulongest.
1363 (blpy_get_end): Likewise.
1364 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
1366 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
1369 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
1370 * gdb/solib.c (solib_read_symbols): Check for addr_low in
1371 equality test for objfile, initialize addr_low if needed.
1373 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1375 * tui/tui-regs.c (tui_register_format): Remove dead code.
1377 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1379 * printcmd.c (print_formatted): Use val_print_scalar_formatted
1380 instead of print_scalar_formatted.
1381 (print_scalar_formatted): Don't handle 's' format strings here,
1382 and add an assertion that we never see such format here.
1383 * valprint.h (val_print_scalar_formatted): Declare.
1384 * valprint.c (val_print_scalar_formatted): New.
1385 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
1386 instead of print_scalar_formatted.
1387 * jv-valprint.c (java_val_print): Ditto.
1388 * p-valprint.c (pascal_val_print): Ditto.
1389 * ada-valprint.c (ada_val_print_1): Ditto.
1390 * f-valprint.c (f_val_print): Ditto.
1391 * infcmd.c (registers_info): Ditto.
1392 * m2-valprint.c (m2_val_print): Ditto.
1394 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1396 * m2-valprint.c (print_unbounded_array): Pass
1397 value_contents_for_printing rather than value_contents, to
1398 m2_print_array_contents. Also pass in the value.
1400 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1402 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
1403 (save_gdb_index_command): Switch to .gdb_index version 4.
1405 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1407 * mi/mi-main.c (get_register): Use get_frame_register_value rather
1408 than frame_register, and always pass a valid value to val_print.
1410 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1412 Centralize printing "<optimized out>".
1414 * valprint.h (val_print_optimized_out): Declare.
1415 * cp-valprint.c (cp_print_value_fields): Use
1416 val_print_optimized_out.
1417 * jv-valprint.c (java_print_value_fields): Ditto.
1418 * p-valprint.c (pascal_object_print_value_fields): Ditto.
1419 * printcmd.c (print_formatted): Ditto.
1420 * valprint.c (valprint_check_validity): Ditto.
1421 (value_check_printable): Ditto.
1422 (val_print_optimized_out): New.
1424 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1426 * infcmd.c (default_print_registers_info): Allocate values so to
1427 never pass a NULL value to val_print.
1429 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1431 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
1432 boolean. Make sure to always pass a value that matches the
1433 contents buffer to callees. Preserve `address' for following
1435 * value.c (value_contents_for_printing_const): New.
1436 (value_address): Constify value argument.
1437 * value.h (value_contents_for_printing_const): Declare.
1438 (value_address): Constify value argument.
1440 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1442 * regcache.c (struct regcache_descr): Rename
1443 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
1444 and sizeof_cooked_register_valid_p to
1445 sizeof_cooked_register_status.
1446 (init_regcache_descr): Adjust.
1447 (struct regcache): Rename register_valid_p field to
1449 (regcache_xmalloc_1, regcache_xfree, regcache_save)
1450 (do_cooked_read): Adjust.
1451 (regcache_valid_p): Rename to ...
1452 (regcache_register_status): ... this. Adjust.
1453 (regcache_invalidate): Adjust.
1454 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
1456 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
1457 as unavailable, not valid.
1458 (regcache_dump): Adjust.
1459 * regcache.h (enum register_status): New.
1460 (regcache_register_status): Declare.
1461 (regcache_invalidate): Delete declaration.
1462 * corelow.c (get_core_registers): Adjust.
1463 * tracepoint.c (tfile_fetch_registers): Adjust.
1464 * trad-frame.c (REG_VALUE): Rename to ...
1465 (TF_REG_VALUE): ... this.
1466 (REG_UNKNOWN): Rename to ...
1467 (TF_REG_UNKNOWN): ... this.
1468 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
1469 * mi/mi-main.c (register_changed_p): Adjust.
1471 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1473 * regcache.c (struct regcache_descr): Remove outdated comment.
1474 (init_regcache_descr): Remove sizeof_raw_register_valid_p
1476 (regcache_xmalloc): Rename to ...
1477 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
1478 Allocate the regcache type accordingly.
1479 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
1480 (regcache_xfree): Asser the source is also readonly. Copy sizeof
1481 cooked registers, not raw.
1482 (regcache_dup_no_passthrough): Delete.
1483 (get_thread_arch_regcache): Use regcache_xmalloc_1.
1484 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
1485 mention obsolete write_register_bytes.
1486 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
1488 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1490 Stop remote_read_bytes from handling partial reads itself.
1492 * remote-fileio.c: Include target.h.
1493 (remote_fileio_write_bytes): Delete.
1494 (remote_fileio_func_open, remote_fileio_func_write)
1495 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
1497 (remote_fileio_func_stat): Use target_read_memory and
1498 target_write_memory.
1499 (remote_fileio_func_gettimeofday): Use target_write_memory.
1500 (remote_fileio_func_system): Use target_read_memory.
1501 * remote.c (remote_write_bytes): Make it static.
1502 (remote_read_bytes): Don't handle partial reads here.
1503 * remote.h (remote_read_bytes): Delete declaration.
1505 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1507 Simplify XML parsing a bit.
1509 * xml-support.h (gdb_xml_parse_quick): Declare.
1510 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
1511 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
1513 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
1514 gdb_xml_create_parser_and_cleanup_1.
1515 (gdb_xml_parse_quick): New.
1516 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
1517 * osdata.c (osdata_parse): Ditto.
1518 * remote.c (remote_threads_info): Ditto.
1519 * solib-target.c (solib_target_parse_libraries): Ditto.
1520 * xml-syscall.c (syscall_parse_xml): Ditto.
1521 * xml-tdesc.c (tdesc_parse_xml): Ditto.
1523 2011-01-24 Kevin Buettner <kevinb@redhat.com>
1525 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
1526 with remote-mips.o added to gdb_target_obs.
1527 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
1529 2011-01-24 Pedro Alves <pedro@codesourcery.com>
1531 * ada-valprint.c (val_print_packed_array_elements): Pass the
1532 correct struct value to val_print.
1533 (ada_val_print_1): Ditto.
1535 2011-01-24 Pedro Alves <pedro@codesourcery.com>
1537 Don't lose embedded_offset in printing routines throughout.
1539 * valprint.h (val_print_array_elements): Change prototype.
1540 * valprint.c (val_print_array_elements): Add `embedded_offset'
1541 parameter, and adjust to pass it down to val_print, while passing
1542 `valaddr' or `address' unmodified. Take embedded_offset into
1543 account when checking repetitions.
1544 * c-valprint.c (c_val_print): Pass embedded_offset to
1545 val_print_array_elements instead of adjusting `valaddr' and
1547 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
1548 embedded_offset to val_print_array_elements instead of adjusting
1550 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
1551 * p-valprint.c (pascal_val_print): Pass embedded_offset to
1552 val_print_array_elements and pascal_object_print_value_fields
1553 instead of adjusting `valaddr'.
1554 (pascal_object_print_value_fields): Add `offset' parameter, and
1556 (pascal_object_print_value): Add `offset' parameter, and adjust to
1558 (pascal_object_print_static_field): Use
1559 value_contents_for_printing/value_embedded_offset, rather than
1561 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
1562 parameter, and adjust to use it. Use
1563 value_contents_for_printing/value_embedded_offset, rather than
1565 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
1566 (ada_val_print_array): Add `offset' parameter, and adjust to use
1568 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
1569 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
1570 Instead work with offsets. Use
1571 value_contents_for_printing/value_embedded_offset, rather than
1572 value_contents. Change `defer_val_int' local type to CORE_ADDR,
1573 and use value_from_pointer to extract a target pointer, rather
1574 than value_from_longest.
1575 (print_variant_part): Add `offset' parameter. Replace
1576 `outer_valaddr' parameter by a new `outer_offset' parameter.
1577 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1578 (ada_value_print): Use
1579 value_contents_for_printing/value_embedded_offset, rather than
1581 (print_record): Add `offset' parameter, and adjust to pass it
1583 (print_field_values): Add `offset' parameter. Replace
1584 `outer_valaddr' parameter by a new `outer_offset' parameter.
1585 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1586 Use value_contents_for_printing/value_embedded_offset, rather than
1588 * d-valprint.c (dynamic_array_type): Use
1589 value_contents_for_printing/value_embedded_offset, rather than
1591 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
1592 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1593 (java_print_value_fields): Take `offset' into account. Don't
1594 re-adjust `valaddr'. Instead pass down adjusted offsets.
1595 (java_val_print): Take `embedded_offset' into account. Pass it to
1596 java_print_value_fields.
1597 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
1598 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
1599 down adjusted offsets.
1600 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
1601 (f_val_print): Take `embedded_offset' into account.
1603 2011-01-21 Joel Brobecker <brobecker@adacore.com>
1605 * inflow.c: Include "gdbcmd.h".
1606 (interactive_mode): New static global, moved here from top.c.
1607 (show_interactive_mode): New function, moved here from top.c.
1608 use gdb_has_a_terminal instead of input_from_terminal_p to
1609 determine the current mode.
1610 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
1612 (_initialize_inflow): Add the "set/show interactive-mode"
1613 commands. Moved here from top.c, after having adjusted slightly
1615 * top.c (interactive_mode, show_interactive_mode): Delete, moved
1617 (input_from_terminal_p): Remove handling of "interactive-mode"
1618 setting, moved to infow.c.
1619 (init_main): Remove creation of the "set/show interactive-mode"
1620 commands, moved to inflow.c.
1622 2011-01-19 Joel Brobecker <brobecker@adacore.com>
1624 * NEWS: Add entry for native ia64-hpux support.
1626 2011-01-19 Tom Tromey <tromey@redhat.com>
1629 * thread.c (free_thread): Free 'name'.
1630 (print_thread_info): Emit thread name. Change CLI output.
1631 (thread_name_command): New function.
1632 (do_captured_thread_select): Emit newline.
1633 (_initialize_thread): Register 'thread name' command.
1634 * target.h (struct target_ops) <to_thread_name>: New field.
1635 (target_thread_name): New macro.
1636 * target.c (update_current_target): Handle to_thread_name.
1637 * python/py-infthread.c (thpy_get_name): New function.
1638 (thpy_set_name): Likewise.
1639 (thread_object_getset): Add "name".
1640 * linux-nat.c (linux_nat_thread_name): New function.
1641 (linux_nat_add_target): Set to_thread_name.
1642 * gdbthread.h (struct thread_info) <name>: New field.
1644 2011-01-18 Joel Brobecker <brobecker@adacore.com>
1646 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
1647 (ada_val_print_1): Likewise.
1649 2011-01-18 Joel Brobecker <brobecker@adacore.com>
1651 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
1652 upper limit address is not greater than the function end address
1653 when the upper limit could not be computed using the debugging
1656 2011-01-17 Tom Tromey <tromey@redhat.com>
1658 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
1660 * utils.c: Include gdb_regex.h.
1661 (do_regfree_cleanup): New function.
1662 (make_regfree_cleanup): Likewise.
1663 (get_regcomp_error): Likewise.
1664 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
1666 2011-01-17 Tom Tromey <tromey@redhat.com>
1668 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
1671 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1673 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
1674 for internal variables.
1675 (last_was_structop): New static variable.
1676 (COMPLETE): New token.
1677 (field_exp): New rule to group all '.' suffix handling.
1678 Add mark_struct_expression calls when approriate to be able
1679 to correctly find fields for completion.
1680 (yylex): Adapt to handle field completion and set INTVAR when
1683 2011-01-14 Yao Qi <yao@codesourcery.com>
1685 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
1686 save_reggroup, restore_reggroup and all_reggroup.
1688 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1690 * ada-valprint. (ada_printchar): Use the correct type length
1691 in call to ada_emit_char.
1692 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
1694 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1696 * solib-som.h (hpux_major_release): Declare variable here.
1697 * solib-som.c: Remove <sys/utsname.h> header.
1698 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
1699 (hpux_major_release): Make global, change default value to
1700 DEFAULT_HPUX_MAJOR_RELEASE.
1701 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
1702 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
1703 Add "solib-som.h" header.
1704 (set_hpux_major_release): New function.
1705 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
1707 2011-01-14 Mike Frysinger <vapier@gentoo.org>
1709 * configure.tgt (*-*-uclinux*): Match more Linux os targets
1711 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1713 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
1714 new-line at end of warning message.
1715 (ia64_hpux_store_register): Remove trailing new-line at end of
1717 * ia64-hpux-tdep.c: Rephrase comment.
1718 * solib-ia64-hpux.c (struct dld_info): Change type of field
1719 dld_flags from "long long" to ULONGEST.
1721 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1723 * target.h (deprecated_child_ops): Delete declaration.
1724 * target.c (deprecated_child_ops): Delete definition.
1726 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1728 * Makefile.in (hpux-thread.o): Delete rule.
1729 * configure.ac: Don't check for HPUX DCE threads support.
1730 * configure, config.in: Regenerate.
1731 * hppa-hpux-nat.c (child_suppress_run): Delete.
1732 (hppa_hpux_child_can_run): Delete.
1733 (_initialize_hppa_hpux_nat): Don't override to_can_run.
1734 * hpux-thread.c: Delete.
1736 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1738 * hpux-thread.c (hpux_pid_to_str): Delete.
1740 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1742 * ada-valprint.c (ada_emit_char): Remove strange code.
1743 Check that c is <= UCHAR_MAX before passing it to isascii.
1744 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
1746 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1748 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
1749 to the case where instream is stdin.
1751 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1753 * ia64-tdep.h (struct regcache): Forward declare.
1754 (struct ia64_infcall_ops): New struct type.
1755 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
1757 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
1758 Renames ia64_find_global_pointer.
1759 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
1760 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
1761 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
1763 (ia64_infcall_ops): New static global constant.
1764 (ia64_gdbarch_init): Set tdep->infcall_ops.
1765 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
1766 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
1767 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
1768 (ia64_hpux_dummy_code): New static global constant.
1769 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
1770 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
1771 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
1773 (ia64_hpux_infcall_ops): New static global constant.
1774 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
1775 for inferior function calls to work properly on ia64-hpux.
1777 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1779 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
1780 * ia64-tdep.h (struct frame_info): forward declaration.
1781 (struct gdbarch_tdep): Add field size_of_register_frame.
1782 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
1783 to determine the size of the register frame.
1784 (ia64_size_of_register_frame): New function.
1785 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
1786 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
1787 (IA64_HPUX_UREG_REASON): New macro.
1788 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
1790 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
1791 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
1792 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
1795 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1797 Add support for ia64-hpux.
1798 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
1799 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
1801 * configure.host: Add handling for ia64-hpux hosts. Add associated
1803 * configure.tgt: Add handling for ia64-hpux targets.
1804 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
1805 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
1806 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
1808 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1810 [ttrace] Compute thread list immediately after attach.
1811 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
1813 (inf_ttrace_attach): Use it.
1815 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1817 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
1818 if we could not determine the frame's function address. Instead,
1819 use the frame's PC, and then continue.
1821 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1823 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
1824 not already defined.
1826 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1828 * ia64-tdep.c (ia64_struct_type_p): New function.
1829 (ia64_extract_return_value): Handle integral values that are
1830 less than 8 bytes long.
1831 (ia64_push_dummy_call): Likewise.
1833 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1835 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
1836 floatformat_ia64_ext.
1837 (floatformat_ia64_ext_big): New static const.
1838 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
1840 2011-01-12 Tom Tromey <tromey@redhat.com>
1842 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
1844 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
1845 (mi_cmd_thread_list_ids): Likewise.
1846 (mi_cmd_data_list_changed_registers): Likewise.
1847 (mi_cmd_data_list_register_values): Likewise.
1848 (mi_cmd_data_write_register_values): Likewise.
1849 (mi_cmd_data_evaluate_expression): Likewise.
1850 (mi_cmd_data_read_memory): Likewise.
1851 (mi_cmd_data_read_memory_bytes): Likewise.
1852 (mi_cmd_data_write_memory): Likewise.
1853 (mi_cmd_enable_timings): Likewise.
1854 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
1855 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
1856 (mi_cmd_var_delete): Likewise.
1857 (mi_cmd_var_set_format): Likewise.
1858 (mi_cmd_var_show_format): Likewise.
1859 (mi_cmd_var_info_num_children): Likewise.
1860 (mi_cmd_var_list_children): Likewise.
1861 (mi_cmd_var_info_type): Likewise.
1862 (mi_cmd_var_info_expression): Likewise.
1863 (mi_cmd_var_show_attributes): Likewise.
1864 (mi_cmd_var_assign): Likewise.
1865 (mi_cmd_var_update): Likewise.
1866 (mi_cmd_enable_pretty_printing): Likewise.
1867 (mi_cmd_var_set_update_range): Likewise.
1868 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
1870 (mi_cmd_target_file_put): Likewise.
1871 (mi_cmd_target_file_delete): Likewise.
1872 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
1874 (mi_cmd_stack_info_depth): Likewise.
1875 (mi_cmd_stack_list_locals): Likewise.
1876 (mi_cmd_stack_list_args): Likewise.
1877 (mi_cmd_stack_select_frame): Likewise.
1878 (mi_cmd_stack_select_frame): Likewise.
1879 (mi_cmd_stack_info_frame): Likewise.
1880 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
1882 (mi_cmd_file_list_exec_source_files): Likewise.
1883 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
1884 (mi_cmd_env_cd): Likewise.
1885 (mi_cmd_env_path): Likewise.
1886 (mi_cmd_env_dir): Likewise.
1887 (mi_cmd_inferior_tty_show): Likewise.
1888 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
1889 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
1890 (mi_cmd_break_watch): Likewise.
1892 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
1894 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
1895 (ppc_linux_insert_hw_breakpoint): Likewise.
1896 (ppc_linux_remove_hw_breakpoint): Likewise.
1897 (ppc_linux_insert_watchpoint): Likewise.
1899 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1900 Jan Kratochvil <jan.kratochvil@redhat.com>
1902 PR fortran/11104 and DWARF unbound arrays detection.
1903 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
1904 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
1905 unspecified upper bound.
1906 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
1907 variables array_size_array, tmp_type and offset_item. New variable
1908 array. Remove call to f77_get_upperbound. New variables array_type
1909 and index. Call value_subscripted_rvalue for each dimenasion. Remove
1910 the final call to deprecated_set_value_type.
1912 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1914 Make value allocations more lazy.
1915 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
1916 instead of allocate_value and set_value_lazy when possible.
1917 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
1918 instead of allocate_value and set_value_lazy.
1919 * findvar.c (value_of_register_lazy): Likewise.
1920 (read_var_value): Remove V preallocation, call just check_typedef in
1921 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
1922 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
1923 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
1924 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
1925 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
1926 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
1927 the end, remove set_value_lazy there.
1928 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
1929 instead of allocate_value and set_value_lazy when possible.
1930 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
1931 * value.c (allocate_computed_value): Use allocate_value_lazy instead
1932 of allocate_value and set_value_lazy.
1933 (value_from_contents_and_address): Use allocate_value_lazy instead of
1934 allocate_value and set_value_lazy when possible.
1936 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1938 * disasm.c (dump_insns): Support dumping opcodes for MI.
1939 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
1940 dumping of instruction opcodes.
1942 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
1944 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
1947 2011-01-11 Tom Tromey <tromey@redhat.com>
1949 * thread.c (do_captured_thread_select): Emit newline before
1952 2011-01-11 Michael Snyder <msnyder@vmware.com>
1954 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
1955 * score-tdep.c: Ditto.
1956 * score-tdep.h: Ditto.
1957 * ser-base.c: Ditto.
1958 * ser-go32.c: Ditto.
1961 * ser-mingw.c: Ditto.
1962 * ser-pipe.c: Ditto.
1964 * ser-unix.c: Ditto.
1965 * sh64-tdep.c: Ditto.
1966 * shnbsd-nat.c: Ditto.
1970 * solib-darwin.c: Ditto.
1971 * solib-frv.c: Ditto.
1973 * solib-irix.c: Ditto.
1974 * solib-osf.c: Ditto.
1975 * solib-pa64.c: Ditto.
1976 * solib-som.c: Ditto.
1977 * solib-spu.c: Ditto.
1978 * solib-sunos.c: Ditto.
1979 * solib-svr4.c: Ditto.
1981 * sol-thread.c: Ditto.
1985 * sparc64-linux-tdep.c: Ditto.
1986 * sparc64-tdep.c: Ditto.
1987 * sparc-linux-nat.c: Ditto.
1988 * sparc-linux-tdep.c: Ditto.
1989 * sparc-sol2-nat.c: Ditto.
1990 * sparc-sol2-tdep.c: Ditto.
1991 * sparc-tdep.c: Ditto.
1992 * sparc-tdep.h: Ditto.
1993 * spu-tdep.c: Ditto.
1994 * stabsread.c: Ditto.
1995 * stabsread.h: Ditto.
2003 * target-descriptions.c: Ditto.
2004 * target-descriptions.h: Ditto.
2006 * target-memory.c: Ditto.
2007 * terminal.h: Ditto.
2010 * tracepoint.c: Ditto.
2011 * tracepoint.h: Ditto.
2012 * trad-frame.h: Ditto.
2013 * typeprint.c: Ditto.
2015 2011-01-11 Michael Snyder <msnyder@vmware.com>
2017 * ui-file.c: Comment cleanup, mostly periods and spaces.
2022 * v850-tdep.c: Ditto.
2023 * valarith.c: Ditto.
2025 * valprint.c: Ditto.
2026 * valprint.h: Ditto.
2031 * vax-tdep.c: Ditto.
2035 * windows-nat.c: Ditto.
2036 * windows-tdep.c: Ditto.
2037 * xcoffread.c: Ditto.
2038 * xcoffsolib.c: Ditto.
2039 * xml-support.c: Ditto.
2040 * xstormy16-tdep.c: Ditto.
2041 * xtensa-tdep.c: Ditto.
2042 * xtensa-tdep.h: Ditto.
2044 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2046 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
2047 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
2049 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2050 Thiago Jung Bauermann <bauerman@br.ibm.com>
2052 Implement support for PowerPC BookE ranged watchpoints.
2054 (struct breakpoint_ops) <resources_needed>: New method.
2055 Initialize to NULL in all existing breakpoint_ops instances.
2056 (struct breakpoint) <exact>: New field.
2057 (target_exact_watchpoints): Declare external global.
2058 * breakpoint.c (target_exact_watchpoints): New global flag.
2059 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
2060 b->enable_state to bp_enabled before calling
2061 hw_watchpoint_used_count.
2062 (hw_watchpoint_used_count): Iterate over all bp_locations in a
2063 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
2065 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
2066 if the watchpoint is exact.
2067 (resources_needed_watchpoint): New function.
2068 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
2069 (watch_command_1): Set b->exact if the user asked for an exact
2070 watchpoint and one can be set.
2071 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
2072 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
2073 the user asks for an exact watchpoint and one can be set. Return
2074 number of needed debug registers to watch the expression.
2075 * gdbtypes.c (is_scalar_type): New function, based on
2076 valprint.c:scalar_type_p.
2077 (is_scalar_type_recursive): New function.
2078 * gdbtypes.h (is_scalar_type_recursive): Declare.
2079 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
2080 handle regions when ranged watchpoints are available.
2081 (create_watchpoint_request): New function.
2082 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2083 create_watchpoint_request.
2084 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
2085 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
2086 `set powerpc' and `show powerpc' commands.
2087 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
2088 Mention documentation comment in the target macro.
2089 (target_region_ok_for_hw_watchpoint): Document return value.
2091 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2093 * breakpoint.c (update_watchpoint): Decide on using a software or
2094 hardware watchpoint after the bp_locations are created.
2096 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2098 Convert hardware watchpoints to use breakpoint_ops.
2099 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
2100 <insert_location>: ... this. Return int instead of void.
2101 Accept pointer to struct bp_location instead of pointer to
2102 struct breakpoint. Adapt all implementations.
2103 (breakpoint_ops) <remove>: Rename to...
2104 <remove_location>: ... this. Accept pointer to struct bp_location
2105 instead of pointer to struct breakpoint. Adapt all implementations.
2106 * breakpoint.c (insert_catchpoint): Delete function.
2107 (insert_bp_location): Call the watchpoint or catchpoint's
2108 breakpoint_ops.insert method.
2109 (remove_breakpoint_1): Call the watchpoint or catchpoint's
2110 breakpoint_ops.remove method.
2111 (insert_watchpoint, remove_watchpoint): New functions.
2112 (watchpoint_breakpoint_ops): New structure.
2113 (watch_command_1): Initialize the OPS field.
2114 * inf-child.c (inf_child_insert_fork_catchpoint)
2115 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
2116 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
2117 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
2119 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
2120 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
2121 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
2122 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
2123 * target.c (update_current_target): Change default implementation of
2124 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
2125 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
2126 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
2127 to_set_syscall_catchpoint to return_one.
2128 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
2129 (debug_to_insert_exec_catchpoint): Report return value.
2130 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
2131 (to_insert_exec_catchpoint): Change declaration to return int instead
2134 2011-01-11 Michael Snyder <msnyder@vmware.com>
2136 * arm-tdep.c: Internationalization.
2139 * fork-child.c: Ditto.
2140 * nto-procfs.c: Ditto.
2141 * ppc-sysv-tdep.c: Ditto.
2143 * remote-mips.c: Ditto.
2145 * rs6000-nat.c: Ditto.
2146 * rs6000-tdep.c: Ditto.
2150 * xml-support.c: Ditto.
2151 * mi/mi-cmd-break.c: Ditto.
2152 * mi/mi-cmd-var.c: Ditto.
2153 * mi/mi-interp.c: Ditto.
2154 * mi/mi-main.c: Ditto.
2156 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
2158 * remote-sim.c (gdbsim_store_register): Update API to
2159 sim_store_register to check more error conditions.
2161 2011-01-10 Michael Snyder <msnyder@vmware.com>
2163 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
2164 * nto-tdep.c: Ditto.
2165 * nto-tdep.h: Ditto.
2166 * objc-exp.y: Ditto.
2167 * objc-lang.c: Ditto.
2168 * objfiles.c: Ditto.
2169 * objfiles.h: Ditto.
2170 * observer.c: Ditto.
2171 * opencl-lang.c: Ditto.
2174 * parser-defs.h: Ditto.
2177 * posix-hdep.c: Ditto.
2178 * ppcbug-rom.c: Ditto.
2179 * ppc-linux-nat.c: Ditto.
2180 * ppc-linux-tdep.c: Ditto.
2181 * ppc-linux-tdep.h: Ditto.
2182 * ppcnbsd-tdep.c: Ditto.
2183 * ppcobsd-tdep.c: Ditto.
2184 * ppcobsd-tdep.h: Ditto.
2185 * ppc-sysv-tdep.c: Ditto.
2186 * ppc-tdep.h: Ditto.
2187 * printcmd.c: Ditto.
2188 * proc-abi.c: Ditto.
2189 * proc-flags.c: Ditto.
2191 * proc-utils.h: Ditto.
2192 * progspace.h: Ditto.
2193 * prologue-value.c: Ditto.
2194 * prologue-value.h: Ditto.
2195 * psympriv.h: Ditto.
2197 * p-typeprint.c: Ditto.
2198 * p-valprint.c: Ditto.
2199 * ravenscar-sparc-thread.c: Ditto.
2200 * ravenscar-thread.c: Ditto.
2201 * ravenscar-thread.h: Ditto.
2203 * regcache.c: Ditto.
2204 * regcache.h: Ditto.
2206 * remote-fileio.c: Ditto.
2207 * remote-fileio.h: Ditto.
2209 * remote-m32r-sdi.c: Ditto.
2210 * remote-mips.c: Ditto.
2211 * remote-sim.c: Ditto.
2212 * rs6000-aix-tdep.c: Ditto.
2213 * rs6000-nat.c: Ditto.
2214 * rs6000-tdep.c: Ditto.
2216 2011-01-10 Michael Snyder <msnyder@vmware.com>
2218 * charset.c (validate): Internationalization.
2219 * coffread.c (read_one_sym): Ditto.
2220 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
2221 * h8300-tdep.c (H8300_extract_return_value): Ditto.
2222 * inflow.c (new_tty): Ditto.
2223 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
2224 * m32c-tdep.c (m32c_return_value): Ditto.
2225 * mep-tdep.c (mep_store_return_value): Ditto.
2226 * score-tdep.c (score7_fetch_insn): Ditto.
2227 * ser-mingw.c (pipe_windows_open): Ditto.
2228 * sh64-tdep.c (sh64_extract_return_value): Ditto.
2229 * spu-tdep.c (spu_register_type): Ditto.
2230 * tracepoint.c (trace_find_command): Ditto.
2231 * valarith.c (value_pos): Ditto.
2233 2011-01-10 Joel Brobecker <brobecker@adacore.com>
2235 * ada-valprint.c (printstr): Minor comment reformatting.
2237 2011-01-08 Michael Snyder <msnyder@vmware.com>
2239 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
2242 2011-01-08 Michael Snyder <msnyder@vmware.com>
2244 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
2245 * hppa-hpux-tdep.c: Ditto.
2246 * hppa-linux-nat.c: Ditto.
2247 * hppa-linux-tdep.c: Ditto.
2248 * hppanbsd-tdep.c: Ditto.
2249 * hppa-tdep.c: Ditto.
2250 * hppa-tdep.h: Ditto.
2251 * hpux-thread.c: Ditto.
2252 * i386-cygwin-tdep.c: Ditto.
2253 * i386-darwin-nat.c: Ditto.
2254 * i386gnu-nat.c: Ditto.
2255 * i386-linux-nat.c: Ditto.
2256 * i386-linux-tdep.c: Ditto.
2257 * i386-nat.c: Ditto.
2258 * i386-nat.h: Ditto.
2259 * i386nbsd-tdep.c: Ditto.
2260 * i386-sol2-nat.c: Ditto.
2261 * i386-stub.c: Ditto.
2262 * i386-tdep.c: Ditto.
2263 * i386-tdep.h: Ditto.
2264 * i387-tdep.c: Ditto.
2265 * ia64-linux-nat.c: Ditto.
2266 * ia64-linux-tdep.c: Ditto.
2267 * ia64-tdep.c: Ditto.
2271 * inferior.c: Ditto.
2272 * inferior.h: Ditto.
2278 * iq2000-tdep.c: Ditto.
2279 * irix5-nat.c: Ditto.
2285 * jv-typeprint.c: Ditto.
2286 * jv-valprint.c: Ditto.
2287 * language.c: Ditto.
2288 * language.h: Ditto.
2289 * linespec.c: Ditto.
2290 * linux-fork.c: Ditto.
2291 * linux-nat.c: Ditto.
2292 * linux-thread-db.c: Ditto.
2293 * lm32-tdep.c: Ditto.
2295 2011-01-08 Michael Snyder <msnyder@vmware.com>
2297 * m2-exp.y: Comment cleanup, mostly periods and spaces.
2299 * m2-typeprint.c: Ditto.
2300 * m2-valprint.c: Ditto.
2301 * m32c-tdep.c: Ditto.
2302 * m32r-linux-nat.c: Ditto.
2303 * m32r-rom.c: Ditto.
2304 * m32r-tdep.c: Ditto.
2305 * m32r-tdep.h: Ditto.
2306 * m68hc11-tdep.c: Ditto.
2307 * m58klinux-nat.c: Ditto.
2308 * m68k-tdep.c: Ditto.
2309 * m88k-tdep.c: Ditto.
2310 * m88k-tdep.h: Ditto.
2311 * machoread.c: Ditto.
2312 * macrocmd.c: Ditto.
2313 * macroexp.c: Ditto.
2314 * macrotab.c: Ditto.
2317 * mdebugread.c: Ditto.
2318 * mdebugread.h: Ditto.
2321 * memory-map.h: Ditto.
2322 * mep-tdep.c: Ditto.
2323 * microblaze-rom.c: Ditto.
2324 * microblaze-tdep.c: Ditto.
2326 * mips-irix-tdep.c: Ditto.
2327 * mips-linux-nat.c: Ditto.
2328 * mips-linux-tdep.c: Ditto.
2329 * mips-linux-tdep.h: Ditto.
2330 * mipsnbsd-nat.c: Ditto.
2331 * mipsnbsd-tdep.c: Ditto.
2332 * mipsread.c: Ditto.
2333 * mips-tdep.c: Ditto.
2334 * mips-tdep.h: Ditto.
2335 * mn10300-linux-tdep.c: Ditto.
2336 * mn10300-tdep.c: Ditto.
2337 * mn10300-tdep.h: Ditto.
2340 * moxie-tdep.c: Ditto.
2341 * moxie-tdep.h: Ditto.
2344 2011-01-08 Mike Frysinger <vapier@gentoo.org>
2346 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
2348 2011-01-08 Robert Millan <rmh@gnu.org>
2350 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
2352 2011-01-07 Michael Snyder <msnyder@vmware.com>
2354 * charset.c (_initialize_charset): Fix typo in string.
2356 2011-01-07 Michael Snyder <msnyder@vmware.com>
2358 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
2360 * tui/tui-layout.c (tui_set_layout_for_display_command):
2361 Split line so that operator goes to beginning of line.
2362 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
2363 assignment out of if statement.
2365 2011-01-07 Michael Snyder <msnyder@vmware.com>
2367 * ada-lang.c: Comment cleanup, mostly periods and spaces.
2368 * ada-lang.h: Ditto.
2369 * ada-tasks.c: Ditto.
2370 * ada-valprint.c: Ditto.
2371 * aix-threads.c: Ditto.
2372 * alpha-linux-nat.c: Ditto.
2373 * alpha-linux-tdep.c: Ditto.
2374 * alpha-mdebug-tdep.c: Ditto.
2375 * alpha-nat.c: Ditto.
2376 * alpha-osf1-tdep.c: Ditto.
2377 * alpha-tdep.c: Ditto.
2378 * alphabsd-nat.c: Ditto.
2379 * alphabsd-tdep.c: Ditto.
2380 * amd64-darwin-tdep.c: Ditto.
2381 * amd64-linux-nat.c: Ditto.
2382 * amd64-linux-tdep.c: Ditto.
2383 * amd64-sol2-tdep.c: Ditto.
2384 * amd64-tdep.c: Ditto.
2385 * amd64-fbsd-tdep.c: Ditto.
2386 * amd64-nbsd-tdep.c: Ditto.
2387 * amd64-obsd-tdep.c: Ditto.
2388 * amd64-linux-nat.c: Ditto.
2389 * amd64-linux-tdep.c: Ditto.
2390 * arm-tdep.c: Ditto.
2391 * arm-tdep.h: Ditto.
2392 * armnbsd-nat.c: Ditto.
2393 * avr-tdep.c: Ditto.
2394 * bfin-tdep.c: Ditto.
2396 * c-typeprintc: Ditto.
2397 * c-valprint.c: Ditto.
2398 * coff-pe-read.h: Ditto.
2399 * coffreead.c: Ditto.
2400 * cris-tdep.c: Ditto.
2402 * darwin-nat-info.c: Ditto.
2403 * darwin-nat.c: Ditto.
2404 * dbug-rom.c: Ditto.
2408 * dec-thread.c: Ditto.
2410 * demangle.c: Ditto.
2411 * dicos-tdep.c: Ditto.
2412 * dictionary.c: Ditto.
2413 * dictionary.h: Ditto.
2414 * dink32-rom.c: Ditto.
2416 * doublest.c: Ditto.
2418 * dummy-frame.c: Ditto.
2419 * dwarf2-frame.c: Ditto.
2420 * dwarf2expr.c: Ditto.
2421 * dwarf2loc.c: Ditto.
2422 * dwarf2read.c: Ditto.
2426 * event-top.h: Ditto.
2427 * exceptions.c: Ditto.
2428 * exceptions.h: Ditto.
2430 * expprint.c: Ditto.
2431 * expression.h: Ditto.
2435 * f-typeprint.c: Ditto.
2436 * f-valprint.c: Ditto.
2437 * fbsd-nat.c: Ditto.
2439 * fork-child.c: Ditto.
2442 * frv-linux-tdep.c: Ditto.
2443 * frv-tdep.c: Ditto.
2445 * gdb-stabs.h: Ditto.
2446 * gdb_assert.h: Ditto.
2447 * gdb_string.h: Ditto.
2448 * gdb_thread_db.h: Ditto.
2449 * gdb_wait.h: Ditto.
2450 * gdbarch.sh: Ditto.
2452 * gdbthread.h: Ditto.
2453 * gdbtypes.c: Ditto.
2454 * gdbtypes.h: Ditto.
2457 * gnu-v2-abi.c: Ditto.
2458 * gnu-v3-abi.c: Ditto.
2459 * go32-nat.c: Ditto.
2460 * gdbarch.c: Regenerate.
2461 * gdbarch.h: Regenerate.
2463 2011-01-07 Michael Snyder <msnyder@vmware.com>
2465 * ax-gdb.c: Adjust some long output strings.
2466 * breakpoint.c: Ditto.
2471 * linux-nat.c: Ditto.
2472 * solib-pa64.c: Ditto.
2473 * solib-som.c: Ditto.
2475 2011-01-06 Tom Tromey <tromey@redhat.com>
2479 * python/python.c (GdbMethods): Add "newest_frame" method.
2480 * python/python-internal.h (gdbpy_newest_frame): Declare.
2481 * python/py-frame.c (gdbpy_newest_frame): New function.
2483 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2485 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
2486 * jit.c (jit_debug): New variable.
2487 (show_jit_debug): New function.
2488 (struct target_buffer): Use ULONGEST.
2489 (bfd_open_from_target_memory): Likewise.
2490 (jit_register_code, jit_inferior_init): Add debug output.
2491 (_initialize_jit): Register "debug jit" command.
2493 2011-01-06 Tom Tromey <tromey@redhat.com>
2495 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
2496 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
2499 2011-01-06 Tom Tromey <tromey@redhat.com>
2501 * python/py-frame.c (frapy_block): Use get_frame_block.
2503 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2505 Do not stop on SIGPRIO signals by default
2506 * infrun.c (_initialize_infrun): Unset signal_stop and
2507 signal_print for TARGET_SIGNAL_PRIO.
2509 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2511 * ada-tasks.c: Fix style violation in comment.
2513 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2515 * linespec.c (decode_compound, find_method): Remove trailing \n
2516 at end of error string.
2517 * solib-irix.c (irix_current_sos): Likewise.
2518 * varobj.c (uninstall_variable): Likewise.
2520 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2522 * copyright.py: New script.
2523 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
2524 Launch emacs without exec'ing. Call copyright.py afterwards.
2526 2011-01-05 Michael Snyder <msnyder@vmware.com>
2528 * addrmap.c: Shorten lines of >= 80 columns.
2529 * arch-utils.c: Ditto.
2530 * arch-utils.h: Ditto.
2532 * ax-general.c: Ditto.
2534 * blockframe.c: Ditto.
2535 * breakpoint.c: Ditto.
2536 * buildsym.c: Ditto.
2538 * c-typeprint.c: Ditto.
2540 * coffread.c: Ditto.
2544 * cp-namespace.c: Ditto.
2545 * cp-support.c: Ditto.
2546 * dbug-rom.c: Ditto.
2551 * dictionary.c: Ditto.
2553 * doublest.c: Ditto.
2554 * dwarf2-frame.c: Ditto.
2555 * dwarf2expr.c: Ditto.
2556 * dwarf2loc.c: Ditto.
2557 * dwarf2read.c: Ditto.
2560 * event-loop.c: Ditto.
2561 * event-loop.h: Ditto.
2562 * exceptions.h: Ditto.
2564 * expprint.c: Ditto.
2565 * expression.h: Ditto.
2567 * f-valprint.c: Ditto.
2569 * frame-base.c: Ditto.
2570 * frame-unwind.c: Ditto.
2571 * frame-unwind.h: Ditto.
2575 * gdb-stabs.h: Ditto.
2576 * gdb_assert.h: Ditto.
2577 * gdb_dirent.h: Ditto.
2578 * gdb_obstack.h: Ditto.
2580 * gdbtypes.c: Ditto.
2581 * gdbtypes.h: Ditto.
2582 * inf-ttrace.c: Ditto.
2587 * inline-frame.h: Ditto.
2588 * language.c: Ditto.
2589 * language.h: Ditto.
2590 * libunwind-frame.c: Ditto.
2591 * libunwind-frame.h: Ditto.
2592 * linespec.c: Ditto.
2593 * linux-nat.c: Ditto.
2594 * linux-nat.h: Ditto.
2595 * linux-thread-db.c: Ditto.
2596 * machoread.c: Ditto.
2597 * macroexp.c: Ditto.
2598 * macrotab.c: Ditto.
2601 * mdebugread.c: Ditto.
2606 * objfiles.c: Ditto.
2607 * objfiles.h: Ditto.
2609 * p-typeprint.c: Ditto.
2610 * p-valprint.c: Ditto.
2612 * printcmd.c: Ditto.
2613 * proc-events.c: Ditto.
2615 * progspace.c: Ditto.
2616 * progspace.h: Ditto.
2617 * psympriv.h: Ditto.
2620 * regcache.c: Ditto.
2621 * regcache.h: Ditto.
2622 * remote-fileio.c: Ditto.
2624 * ser-mingw.c: Ditto.
2626 * ser-unix.c: Ditto.
2629 * solib-frv.c: Ditto.
2630 * solib-irix.c: Ditto.
2631 * solib-osf.c: Ditto.
2632 * solib-pa64.c: Ditto.
2633 * solib-som.c: Ditto.
2634 * solib-sunos.c: Ditto.
2635 * solib-svr4.c: Ditto.
2636 * solib-target.c: Ditto.
2640 * stabsread.c: Ditto.
2641 * stabsread.c: Ditto.
2644 * symfile-mem.c: Ditto.
2650 * target-descriptions.c: Ditto.
2651 * target-memory.c: Ditto.
2654 * terminal.h: Ditto.
2657 * tracepoint.c: Ditto.
2658 * tracepoint.h: Ditto.
2662 * user-regs.c: Ditto.
2663 * user-regs.h: Ditto.
2665 * valarith.c: Ditto.
2667 * valprint.c: Ditto.
2668 * valprint.h: Ditto.
2673 * xcoffread.c: Ditto.
2674 * xcoffsolib.c: Ditto.
2675 * xcoffsolib.h: Ditto.
2676 * xml-syscall.c: Ditto.
2677 * xml-tdesc.c: Ditto.
2679 2011-01-05 Michael Snyder <msnyder@vmware.com>
2681 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
2682 * cli/cli-decode.c: Ditto.
2683 * cli/cli-dump.c: Ditto.
2684 * cli/cli-logging.c: Ditto.
2685 * cli/cli-script.c: Ditto.
2686 * cli/cli-setshow.c: Ditto.
2687 * common/signals.c: Ditto.
2688 * mi/mi-cmd-break.c: Ditto.
2689 * mi/mi-cmd-disas.c: Ditto.
2690 * mi/mi-cmd-stack.c: Ditto.
2691 * mi/mi-cmd-var.c: Ditto.
2692 * mi/mi-cmds.c: Ditto.
2693 * mi/mi-common.h: Ditto.
2694 * mi/mi-console.c: Ditto.
2695 * mi/mi-interp.c: Ditto.
2696 * mi/mi-main.c: Ditto.
2697 * osf-share/cma_attr.c: Ditto.
2698 * osf-share/cma_deb_core.h: Ditto.
2699 * osf-share/cma_debug_client.h: Ditto.
2700 * osf-share/cma_handle.h: Ditto.
2701 * osf-share/cma_mutex.h: Ditto.
2702 * osf-share/cma_stack_int.h: Ditto.
2703 * osf-share/cma_tcb_defs.h: Ditto.
2704 * python/py-auto-load.c: Ditto.
2705 * python/py-breakpoint.c: Ditto.
2706 * python/py-cmd.c: Ditto.
2707 * python/py-frame.c: Ditto.
2708 * python/py-objfile.c: Ditto.
2709 * python/py-param.c: Ditto.
2710 * python/py-progspace.c: Ditto.
2711 * python/py-symbol.c: Ditto.
2712 * python/py-value.c: Ditto.
2713 * python/python-internal.h: Ditto.
2714 * python/python.c: Ditto.
2715 * tui/tui-data.c: Ditto.
2716 * tui/tui-disasm.c: Ditto.
2717 * tui/tui-hooks.c: Ditto.
2718 * tui/tui-io.c: Ditto.
2719 * tui/tui-layout.c: Ditto.
2720 * tui/tui-regs.c: Ditto.
2721 * tui/tui-source.c: Ditto.
2722 * tui/tui-stack.c: Ditto.
2723 * tui/tui-win.c: Ditto.
2724 * tui/tui-windata.c: Ditto.
2725 * tui/tui-winsource.c: Ditto.
2727 2011-01-05 Joel Brobecker <brobecker@adacore.com>
2729 * configure.ac, gdb.1: Copyright year update.
2731 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2733 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
2734 this_pc_in_block, morestack_msym and morestack_name. Check for
2735 "__morestack" minimal symbol there.
2737 2011-01-03 Joel Brobecker <brobecker@adacore.com>
2739 * symfile.c (find_sym_fns): Add call to dont_repeat.
2741 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2743 Copyright year update in most files (performed by copyright.sh).
2745 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2747 * top.c (print_gdb_version): Update copyright year in version output.
2749 For older changes see ChangeLog-2010.
2755 version-control: never