1 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4 * value.c (value_contents_copy_raw, value_contents_copy): New
6 (value_primitive_field): Use value_contents_copy_raw instead of
8 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10 (value_array, value_slice): Ditto.
11 * valarith.c (value_subscripted_rvalue): Use
12 value_contents_copy_raw instead of memcpy.
14 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16 <unavailable> references.
18 * valops.c (get_value_at): Use value_from_contents_and_address,
21 2011-02-14 Pedro Alves <pedro@codesourcery.com>
23 * c-valprint.c (c_val_print): Print a string with unavailable
26 2011-02-14 Pedro Alves <pedro@codesourcery.com>
28 * value.h (unpack_bits_as_long): Delete declaration.
29 (unpack_value_bits_as_long): Declare.
30 (unpack_value_field_as_long): Declare.
31 (value_field_bitfield): Declare.
32 * value.c (unpack_bits_as_long): Rename to...
33 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
34 value parameters. Return the extracted result in a new output
35 parameter. If the value contents are unavailable, return false,
36 otherwise return true.
37 (unpack_value_bits_as_long): New.
38 (unpack_field_as_long): Rename to...
39 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
40 Add embedded_offset and value parameters. Return the extracted
41 result in a new output parameter. If the value contents are
42 unavailable, return false, otherwise return true.
43 (unpack_value_field_as_long): New.
44 (unpack_field_as_long_1): New.
45 (unpack_field_as_long): Reimplement as wrapper around
46 unpack_value_field_as_long_1.
47 (value_field_bitfield): New function.
48 * valops.c (value_fetch_lazy): When fetching a bitfield, use
49 unpack_value_bits_as_long. Mark the value as unavailable, if it
51 * jv-valprint.c (java_print_value_fields): Use
53 * p-valprint.c (pascal_object_print_value_fields): Use
55 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
57 2011-02-14 Pedro Alves <pedro@codesourcery.com>
59 * value.c (get_internalvar_integer): Also return the int value of
60 TYPE_CODE_INT INTERNALVAR_VALUE values.
61 (set_internalvar): Don't special case TYPE_CODE_INT.
63 2011-02-14 Pedro Alves <pedro@codesourcery.com>
65 * value.c (struct internalvar) <enum internalvar_kind>: Remove
68 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
69 (set_internalvar): Remove special TYPE_CODE_PTR handling.
70 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
72 2011-02-14 Pedro Alves <pedro@codesourcery.com>
74 * value.h (value_available_contents_eq): Declare.
75 * value.c (find_first_range_overlap): New function.
76 (value_available_contents_eq): New function.
77 * valprint.c (val_print_array_elements): Use
78 value_available_contents_eq.
79 * ada-valprint.c (val_print_packed_array_elements): Use
80 value_available_contents_eq.
81 * jv-valprint.c (java_value_print): Use
82 value_available_contents_eq.
84 2011-02-14 Pedro Alves <pedro@codesourcery.com>
86 * target.c (target_read_live_memory): New function.
87 (memory_xfer_live_readonly_partial): New.
88 (memory_xfer_partial): If reading from a traceframe, fallback to
89 reading unavailable read-only memory from read-only regions of
91 * tracepoint.c (disconnect_tracing): Adjust.
92 (set_current_traceframe): New, factored out from
93 set_traceframe_number.
94 (set_traceframe_number): Reimplement to only change the traceframe
95 number on the GDB side.
96 (do_restore_current_traceframe_cleanup): Adjust.
97 (make_cleanup_restore_traceframe_number): New.
98 (cur_traceframe_number): New global.
99 (tfile_open): Set cur_traceframe_number to no traceframe.
100 (set_tfile_traceframe): New function.
101 (tfile_trace_find): If looking up a traceframe using any method
102 other than by number, make sure the current tfile traceframe
103 matches gdb's current traceframe. Update the current tfile
104 traceframe if the lookup succeeded.
105 (tfile_fetch_registers, tfile_xfer_partial)
106 (tfile_get_trace_state_variable_value): Make sure the remote
107 traceframe matches gdb's current traceframe.
108 * remote.c (remote_traceframe_number): New global.
109 (remote_open_1): Set it to -1.
110 (set_remote_traceframe): New function.
111 (remote_fetch_registers, remote_store_registers)
112 (remote_xfer_memory, remote_xfer_partial)
113 (remote_get_trace_state_variable_value): Make sure the remote
114 traceframe matches gdb's current traceframe.
115 (remote_trace_find): If looking up a traceframe using any method
116 other than by number, make sure the current remote traceframe
117 matches gdb's current traceframe. Update the current remote
118 traceframe if the lookup succeeded.
119 * infrun.c (fetch_inferior_event): Adjust.
120 * tracepoint.h (set_current_traceframe): Declare.
121 (get_traceframe_number, set_traceframe_number): Add describing
124 2011-02-14 Pedro Alves <pedro@codesourcery.com>
126 Mark pieces of values as unavailable if the corresponding memory
129 * valops.c: Include tracepoint.h.
130 (value_fetch_lazy): Use read_value_memory.
131 (read_value_memory): New.
132 * value.h (read_value_memory): Declare.
133 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
134 * exec.c (section_table_available_memory): New function.
135 * exec.h (section_table_available_memory): Declare.
137 2011-02-14 Pedro Alves <pedro@codesourcery.com>
139 * Makefile.in (SFILES): Add memrange.c.
140 (HFILES_NO_SRCDIR): Add memrange.h.
141 (COMMON_OBS): Add memrange.o.
142 * memrange.c: New file.
143 * memrange.h: New file.
144 * tracepoint.c: Include memrange.h.
145 (struct mem_range): Delete.
146 (mem_range_s): Delete.
147 (traceframe_available_memory): New function.
148 * tracepoint.h (traceframe_available_memory): Declare.
150 2011-02-14 Pedro Alves <pedro@codesourcery.com>
152 * target.h (struct traceframe_info): Forward declare.
153 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
154 (struct target_ops) <to_traceframe_info>: New field.
155 (target_traceframe_info): New.
156 * target.c (update_current_target): Inherit and default
158 * remote.c (PACKET_qXfer_traceframe_info): New.
159 (remote_protocol_features): Register qXfer:traceframe-info:read.
160 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
161 (remote_traceframe_info): New.
162 (init_remote_ops): Install it.
163 (_initialize_remote): Install "set/show remote traceframe-info"
165 * tracepoint.h (parse_traceframe_info): Declare.
166 * tracepoint.c (struct mem_range): New.
167 (mem_range_s): New typedef.
168 (struct traceframe_info): New.
169 (traceframe_info): New global.
170 (free_traceframe_info): New function.
171 (clear_traceframe_info): New function.
172 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
174 (build_traceframe_info): New function.
175 (tfile_traceframe_info): New function.
176 (init_tfile_ops): Install tfile_traceframe_info.
177 (traceframe_info_start_memory, free_result): New functions.
178 (memory_attributes, traceframe_info_elements): New globals.
179 (parse_traceframe_info, get_traceframe_info): New functions.
180 * features/traceframe-info.dtd: New file.
181 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
183 2011-02-14 Pedro Alves <pedro@codesourcery.com>
185 Base support for <unavailable> value contents.
187 * value.h (value_bytes_available): Declare.
188 (mark_value_bytes_unavailable): Declare.
189 * value.c (struct range): New struct.
190 (range_s): New typedef.
191 (ranges_overlap): New function.
192 (range_lessthan): New function.
193 (ranges_contain_p): New function.
194 (struct value) <unavailable>: New field.
195 (value_bytes_available): New function.
196 (mark_value_bytes_unavailable): New function.
197 (require_not_optimized_out): Constify parameter.
198 (require_available): New function.
199 (value_contents_all, value_contents): Require all bytes be
201 (value_free): Free `unavailable'.
202 (value_copy): Copy `unavailable'.
203 * valprint.h (val_print_unavailable): Declare.
204 * valprint.c (valprint_check_validity): Rename `offset' parameter
205 to `embedded_offset'. If printing a scalar, check whether the
206 value chunk is available.
207 (val_print_unavailable): New.
208 (val_print_scalar_formatted): Check whether the value is
210 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
211 pretty-printing unavailable values.
213 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
215 Fix const/volatile qualifiers of C++ types, PR c++/12328.
216 * c-typeprint.c (c_type_print_args): Update the function comment. New
217 variable param_type, initialize it. Remove const/volatile qualifiers
218 for language_cplus and !show_artificial. Use param_type.
220 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
222 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
223 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
224 * symtab.h (struct symtab) <next>: Comment extension.
226 2011-02-12 Yao Qi <yao@codesourcery.com>
228 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
230 2011-02-11 Pedro Alves <pedro@codesourcery.com>
232 * infrun.c (proceed): Move switching out and in of tfind mode from
234 (fetch_inferior_event): ... to here.
236 2011-02-11 Yao Qi <yao@codesourcery.com>
238 * Makefile.in: Remove signals.o from COMMON_OBS. Link
240 * configure.ac: Add common to sub dir.
241 * configure: Regenerate.
243 2011-02-10 Pedro Alves <pedro@codesourcery.com>
245 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
246 side of the parenthesis.
249 2010-07-13 Jakub Jelinek <jakub@redhat.com>
250 * vec.h (VEC_block_remove): Fix comment.
252 2011-02-08 Michael Snyder <msnyder@vmware.com>
254 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
256 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
258 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
259 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
262 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
265 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
267 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
268 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
270 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
272 * dwarf2read.c (read_subroutine_type): Set special calling
273 convention flag for functions compiled by IBM XL C for OpenCL.
274 * ppc-sysv-tdep.c: Include "dwarf2.h"
275 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
277 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
278 IBM OpenCL vector types calling convention.
279 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
280 (ppc_sysv_abi_broken_return_value): Likewise.
281 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
282 types calling convention.
283 (ppc64_sysv_abi_return_value): Likewise.
284 * spu-tdep.c: Include "dwarf2.h"
285 (spu_return_value): Implement IBM OpenCL vector types calling
288 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
290 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
291 correct ABI for AltiVec vector arguments.
293 2011-02-07 Pedro Alves <pedro@codesourcery.com>
295 * valprint.c (val_print): Extend comment.
296 * ada-valprint.c (ada_valprint): Rewrite comment deferring
297 interface explanation to val_print.
298 (ada_val_print_array): Adjust comment to current interface.
299 (print_field_values): Adjust comment to current interface.
300 * c-valprint.c (c_val_print): Rewrite comment deferring interface
301 explanation to val_print.
302 * f-valprint.c (f_val_print): Ditto.
303 * jv-valprint.c (java_val_print): Ditto.
304 * m2-valprint.c (m2_val_print): Ditto.
305 * p-valprint.c (pascal_val_print): Ditto.
307 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
309 * breakpoint.c (parse_breakpoint_sals): Fix description.
311 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
312 Oguz Kayral <oguzkayral@gmail.com>
314 * python/py-inferior.c (python_on_normal_stop): New function.
315 (python_on_resume): New function.
316 (python_inferior_exit): New function.
317 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
318 inferior_exit observers.
319 * python/py-evtregistry.c: New file.
320 * python/py-threadevent.c : New file.
321 * python/py-event.c: New file.
322 * python/py-evts.c: New file.
323 * python/py-continueevent.c: New file.
324 * python/py-bpevent.c: New file.
325 * python/py-signalevent.c: New file.
326 * python/py-exetiedevent.c: New file.
327 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
328 Move struct breakpoint_object from here...
329 * python/python-internal.h: ... to here.
330 * python/py-event.h: New file.
331 * python/py-events.h: New file.
332 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
333 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
334 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
335 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
336 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
337 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
338 Add build rules for all the above.
340 2011-02-04 Tom Tromey <tromey@redhat.com>
342 * dwarf2read.c (dwarf2_section_empty_p): New function.
343 (dwarf2_read_section): Use dwarf2_section_empty_p.
344 (dwarf2_section_size): New function.
345 (dwarf2_get_section_info): Unconditionally read section.
346 (dwarf2_read_index): Use dwarf2_section_empty_p.
347 (partial_read_comp_unit_head): Use dwarf2_section_size.
348 (dwarf2_symbol_mark_computed): Likewise.
350 2011-02-04 David Daney <ddaney@caviumnetworks.com>
352 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
354 2011-02-04 David Daney <ddaney@caviumnetworks.com>
356 * mips-linux-tdep.c: Include xml-syscall.h.
357 (mips_linux_get_syscall_number): New function.
358 (mips_linux_init_abi): Add calls to
359 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
360 * data-directory/Makefile.in (SYSCALLS_FILES): Add
361 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
362 * syscalls/mips-n32-linux.xml: New file.
363 * syscalls/mips-n64-linux.xml: New file.
364 * syscalls/mips-o32-linux.xml: New file.
366 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
368 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
369 Complain about inverted range entries.
370 (dwarf2_record_block_ranges): Likewise.
372 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
375 * breakpoint.c (update_watchpoint): Fix name of the
376 update_global_location_list function.
377 (print_one_breakpoint): Fix typo.
378 (_initialize_breakpoint): Remove extra space in hbreak help
380 * breakpoint.h (struct bp_location) <length>: Fix field
383 2011-02-04 Pedro Alves <pedro@codesourcery.com>
385 * regcache.c (registers_changed_ptid): Don't explictly always
386 clear `current_regcache'. Only clear current_thread_ptid and
387 current_thread_arch when PTID matches. Only reinit the frame
388 cache if PTID matches the current inferior_ptid. Move alloca(0)
390 (registers_changed): ... here.
392 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
394 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
395 starts with __stack_chk_guard as stack guard symbol.
397 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
399 * disasm.c (compare_lines): Handle the end of sequence markers
400 within the line table to better support disassembling over
401 compilation unit boundaries.
403 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
405 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
406 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
407 implementation even if no symbols are available.
408 (thumb_analyze_prologue): Update call to skip_prologue_function.
409 (arm_analyze_prologue): Likewise.
411 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
413 * arm-tdep.c: Include "observer.h".
414 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
415 (arm_exidx_data_key): New static variable.
416 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
417 (struct arm_exidx_data): Likewise.
418 (arm_exidx_data_free): New function.
419 (arm_compare_exidx_entries): Likewise.
420 (arm_obj_section_from_vma): Likewise.
421 (arm_exidx_new_objfile): Likewise.
422 (arm_find_exidx_entry): Likewise.
423 (arm_exidx_fill_cache): Likewise.
424 (arm_exidx_unwind_sniffer): Likewise.
425 (arm_exidx_unwind): New global variable.
426 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
427 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
428 observer. Register arm_exidx_data_key as objfile data.
430 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
432 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
433 due to accessing uninitialized variable. Fix indentation.
435 2011-02-02 Pedro Alves <pedro@codesourcery.com>
437 * c-valprint.c (c_value_print): When doing virtual base pointer
438 adjustment, create a new value with adjusted contents rather than
439 changing the contents of the value being printed (and getting it
442 2011-02-02 Pedro Alves <pedro@codesourcery.com>
444 * xml-support.c (xml_find_attribute): New.
445 (xinclude_start_include): Use it.
446 * xml-support.h (xml_find_attribute): Declare.
447 * memory-map.c (memory_map_start_memory)
448 (memory_map_start_property): Use xml_find_attribute.
449 * osdata.c (osdata_start_osdata, osdata_start_column): Use
451 * remote.c (start_thread): Use xml_find_attribute.
452 * solib-target.c (library_list_start_segment)
453 (library_list_start_section, library_list_start_library)
454 (library_list_start_list): Use xml_find_attribute.
455 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
456 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
457 (tdesc_start_field): Use xml_find_attribute.
459 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
461 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
462 (BUILD_OCL_VTYPES): Update.
464 2011-02-02 Joel Brobecker <brobecker@adacore.com>
466 * configure.ac: Work around non-GNU sed limitation when computing
467 python version number.
468 * configure: Regenerate.
470 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
472 Fix debug printing of TYPE_INSTANCE.
473 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
474 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
476 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
478 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
479 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
480 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
481 * ada-operator.inc: Rename the file to ...
482 * ada-operator.def: ... here, wrap all the entries by macro OP.
483 * expprint.c (op_name_standard): Remove all the entries. Include
484 "std-operator.def" instead.
485 * expression.h (enum exp_opcode): Include "std-operator.def" and
486 "ada-operator.def". Move all the entries ...
487 * std-operator.def: ... here, wrap all the entries by macro OP.
489 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
491 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
492 * breakpoint.c (remove_jit_event_breakpoints): New function.
493 * jit.c (jit_descriptor_addr): Delete.
494 (registering_code): Delete.
496 (jit_inferior_data): New variable.
497 (struct jit_inferior_data): New type.
498 (get_jit_inferior_data): New function.
499 (jit_inferior_data_cleanup): New function.
500 (jit_read_descriptor): Adjust.
501 (jit_register_code): Adjust.
502 (jit_breakpoint_re_set_internal): New function; move code here ...
503 (jit_inferior_init): ... from here.
504 (jit_breakpoint_re_set): Adjust.
505 (jit_reset_inferior_data_and_breakpoints): New function.
506 (jit_inferior_created_observer): Adjust.
507 (jit_inferior_exit_hook): Adjust.
508 (jit_executable_changed_observer): New function.
509 (jit_event_handler): Adjust.
510 (_initialize_jit): Adjust.
512 2011-01-31 Michael Snyder <msnyder@vmware.com>
514 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
517 2011-01-31 Tom Tromey <tromey@redhat.com>
520 * python/python.c (execute_gdb_command): Call
522 * top.c (suppress_dont_repeat): New global.
523 (dont_repeat): Use it.
524 (prevent_dont_repeat): New function.
525 * command.h (prevent_dont_repeat): Declare.
527 2011-01-31 Tom Tromey <tromey@redhat.com>
529 * infcmd.c (finish_backward): Use breakpoint_set_silent.
530 * python/py-breakpoint.c (bppy_set_silent): Use
531 breakpoint_set_silent.
532 (bppy_set_thread): Use breakpoint_set_thread.
533 (bppy_set_task): Use breakpoint_set_task.
534 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
535 (breakpoint_set_task): Declare.
536 (make_breakpoint_silent): Remove.
537 * breakpoint.c (breakpoint_set_silent): New function.
538 (breakpoint_set_thread): Likewise.
539 (breakpoint_set_task): Likewise.
540 (make_breakpoint_silent): Remove.
542 2011-01-31 Tom Tromey <tromey@redhat.com>
544 * breakpoint.h (user_breakpoint_p): Declare.
545 * breakpoint.c (user_breakpoint_p): New function.
546 (breakpoint_1): Use it.
547 (save_breakpoints): Likewise.
549 2011-01-31 Joel Brobecker <brobecker@adacore.com>
551 * configure.ac: Add handling of Python distribution on Windows.
552 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
553 sysconfig variables are not defined, then do not use them.
554 On Windows, if LIBPL is not defined, then use prefix + '/libs'
555 instead. On Windows, return all paths using forward-slashes
556 rather than backslashes.
558 2011-01-31 Joel Brobecker <brobecker@adacore.com>
560 * configure.ac: Remove fallback behavior for building
561 against Python. Remove tweaking of Python include path.
562 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
563 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
564 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
565 Always restore CPPFLAGS and LIBS after linking test.
566 * configure: Regenerated.
567 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
568 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
569 * python/python-internal.h: Adjust includes of Python .h files.
571 2011-01-31 Joel Brobecker <brobecker@adacore.com>
573 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
576 2011-01-31 Joel Brobecker <brobecker@adacore.com>
578 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
581 2011-01-31 Yao Qi <yao@codesourcery.com>
583 * arm-linux-nat.c: Update calls to regcache_register_status
584 instead of regcache_valid_p.
585 * aix-thread.c: Likewise.
586 * i386gnu-nat.c: Likewise.
588 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
591 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
592 touching TYPE_FIELD_ARTIFICIAL.
594 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
596 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
599 2011-01-28 Pedro Alves <pedro@codesourcery.com>
601 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
602 selected, don't try iterating over the traceframe's blocks.
603 (tfile_has_stack): If there's no traceframe selected, then there's
605 (tfile_has_registers): If there's no traceframe selected, then
606 there's no registers.
608 2011-01-28 Pedro Alves <pedro@codesourcery.com>
610 * target.c (memory_xfer_partial): No need to restore shadows if we
611 haven't read anything.
613 2011-01-28 Pedro Alves <pedro@codesourcery.com>
615 * mips-tdep.c (mips_print_register): Use get_frame_register_value
616 and val_print_scalar_formatted.
618 2011-01-27 Pedro Alves <pedro@codesourcery.com>
620 * tracepoint.c (tfile_read): New.
621 (tfile_open): Use it.
622 (tfile_get_traceframe_address): Use it.
623 (tfile_trace_find): Use it.
624 (walk_blocks_callback_func): New typedef.
625 (match_blocktype): New function.
626 (traceframe_walk_blocks): New function.
627 (traceframe_find_block_type): New function.
628 (tfile_fetch_registers, tfile_xfer_partial)
629 (tfile_get_trace_state_variable_value): Use
630 traceframe_find_block_type and tfile_read.
632 2011-01-26 Kevin Buettner <kevinb@redhat.com>
634 * remote-mips.c: Add internationalization mark ups. Remove
635 trailing \n from already marked up strings.
637 2011-01-26 Tom Tromey <tromey@redhat.com>
639 * python/py-prettyprint.c (print_string_repr): Clear
640 'addressprint' option when calling val_print_string.
641 (print_children): Handle Val_pretty_default. Clear 'addressprint'
642 option when calling val_print_string.
644 2011-01-26 Tom Tromey <tromey@redhat.com>
646 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
648 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
650 (gdb_py_longest, gdb_py_ulongest): New typedefs.
651 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
652 (gdb_py_long_as_ulongest): New defines.
653 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
654 (gdb_py_int_as_long): Declare.
655 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
656 GDB_PY_LL_ARG, gdb_py_object_from_longest.
657 (valpy_long): Add comment.
658 * python/py-utils.c (get_addr_from_python): Use
659 gdb_py_long_as_ulongest. Handle overflow properly.
660 (gdb_py_object_from_longest): New function.
661 (gdb_py_object_from_ulongest): Likewise.
662 (gdb_py_int_as_long): Likewise.
663 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
664 * python/py-symtab.c (salpy_get_pc): Use
665 gdb_py_long_from_ulongest.
666 (salpy_get_line): Use PyInt_FromLong.
667 * python/py-param.c (set_parameter_value): Use
669 * python/py-lazy-string.c (stpy_get_address): Use
670 gdb_py_long_from_ulongest.
671 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
672 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
673 * python/py-breakpoint.c (bppy_set_thread): Use
675 (bppy_set_task): Likewise.
676 (bppy_set_ignore_count): Likewise.
677 (bppy_set_hit_count): Likewise.
678 * python/py-block.c (blpy_get_start): Use
679 gdb_py_object_from_ulongest.
680 (blpy_get_end): Likewise.
681 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
683 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
686 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
687 * gdb/solib.c (solib_read_symbols): Check for addr_low in
688 equality test for objfile, initialize addr_low if needed.
690 2011-01-25 Pedro Alves <pedro@codesourcery.com>
692 * tui/tui-regs.c (tui_register_format): Remove dead code.
694 2011-01-25 Pedro Alves <pedro@codesourcery.com>
696 * printcmd.c (print_formatted): Use val_print_scalar_formatted
697 instead of print_scalar_formatted.
698 (print_scalar_formatted): Don't handle 's' format strings here,
699 and add an assertion that we never see such format here.
700 * valprint.h (val_print_scalar_formatted): Declare.
701 * valprint.c (val_print_scalar_formatted): New.
702 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
703 instead of print_scalar_formatted.
704 * jv-valprint.c (java_val_print): Ditto.
705 * p-valprint.c (pascal_val_print): Ditto.
706 * ada-valprint.c (ada_val_print_1): Ditto.
707 * f-valprint.c (f_val_print): Ditto.
708 * infcmd.c (registers_info): Ditto.
709 * m2-valprint.c (m2_val_print): Ditto.
711 2011-01-25 Pedro Alves <pedro@codesourcery.com>
713 * m2-valprint.c (print_unbounded_array): Pass
714 value_contents_for_printing rather than value_contents, to
715 m2_print_array_contents. Also pass in the value.
717 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
719 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
720 (save_gdb_index_command): Switch to .gdb_index version 4.
722 2011-01-25 Pedro Alves <pedro@codesourcery.com>
724 * mi/mi-main.c (get_register): Use get_frame_register_value rather
725 than frame_register, and always pass a valid value to val_print.
727 2011-01-25 Pedro Alves <pedro@codesourcery.com>
729 Centralize printing "<optimized out>".
731 * valprint.h (val_print_optimized_out): Declare.
732 * cp-valprint.c (cp_print_value_fields): Use
733 val_print_optimized_out.
734 * jv-valprint.c (java_print_value_fields): Ditto.
735 * p-valprint.c (pascal_object_print_value_fields): Ditto.
736 * printcmd.c (print_formatted): Ditto.
737 * valprint.c (valprint_check_validity): Ditto.
738 (value_check_printable): Ditto.
739 (val_print_optimized_out): New.
741 2011-01-25 Pedro Alves <pedro@codesourcery.com>
743 * infcmd.c (default_print_registers_info): Allocate values so to
744 never pass a NULL value to val_print.
746 2011-01-25 Pedro Alves <pedro@codesourcery.com>
748 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
749 boolean. Make sure to always pass a value that matches the
750 contents buffer to callees. Preserve `address' for following
752 * value.c (value_contents_for_printing_const): New.
753 (value_address): Constify value argument.
754 * value.h (value_contents_for_printing_const): Declare.
755 (value_address): Constify value argument.
757 2011-01-25 Pedro Alves <pedro@codesourcery.com>
759 * regcache.c (struct regcache_descr): Rename
760 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
761 and sizeof_cooked_register_valid_p to
762 sizeof_cooked_register_status.
763 (init_regcache_descr): Adjust.
764 (struct regcache): Rename register_valid_p field to
766 (regcache_xmalloc_1, regcache_xfree, regcache_save)
767 (do_cooked_read): Adjust.
768 (regcache_valid_p): Rename to ...
769 (regcache_register_status): ... this. Adjust.
770 (regcache_invalidate): Adjust.
771 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
773 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
774 as unavailable, not valid.
775 (regcache_dump): Adjust.
776 * regcache.h (enum register_status): New.
777 (regcache_register_status): Declare.
778 (regcache_invalidate): Delete declaration.
779 * corelow.c (get_core_registers): Adjust.
780 * tracepoint.c (tfile_fetch_registers): Adjust.
781 * trad-frame.c (REG_VALUE): Rename to ...
782 (TF_REG_VALUE): ... this.
783 (REG_UNKNOWN): Rename to ...
784 (TF_REG_UNKNOWN): ... this.
785 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
786 * mi/mi-main.c (register_changed_p): Adjust.
788 2011-01-25 Pedro Alves <pedro@codesourcery.com>
790 * regcache.c (struct regcache_descr): Remove outdated comment.
791 (init_regcache_descr): Remove sizeof_raw_register_valid_p
793 (regcache_xmalloc): Rename to ...
794 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
795 Allocate the regcache type accordingly.
796 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
797 (regcache_xfree): Asser the source is also readonly. Copy sizeof
798 cooked registers, not raw.
799 (regcache_dup_no_passthrough): Delete.
800 (get_thread_arch_regcache): Use regcache_xmalloc_1.
801 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
802 mention obsolete write_register_bytes.
803 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
805 2011-01-25 Pedro Alves <pedro@codesourcery.com>
807 Stop remote_read_bytes from handling partial reads itself.
809 * remote-fileio.c: Include target.h.
810 (remote_fileio_write_bytes): Delete.
811 (remote_fileio_func_open, remote_fileio_func_write)
812 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
814 (remote_fileio_func_stat): Use target_read_memory and
816 (remote_fileio_func_gettimeofday): Use target_write_memory.
817 (remote_fileio_func_system): Use target_read_memory.
818 * remote.c (remote_write_bytes): Make it static.
819 (remote_read_bytes): Don't handle partial reads here.
820 * remote.h (remote_read_bytes): Delete declaration.
822 2011-01-25 Pedro Alves <pedro@codesourcery.com>
824 Simplify XML parsing a bit.
826 * xml-support.h (gdb_xml_parse_quick): Declare.
827 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
828 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
830 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
831 gdb_xml_create_parser_and_cleanup_1.
832 (gdb_xml_parse_quick): New.
833 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
834 * osdata.c (osdata_parse): Ditto.
835 * remote.c (remote_threads_info): Ditto.
836 * solib-target.c (solib_target_parse_libraries): Ditto.
837 * xml-syscall.c (syscall_parse_xml): Ditto.
838 * xml-tdesc.c (tdesc_parse_xml): Ditto.
840 2011-01-24 Kevin Buettner <kevinb@redhat.com>
842 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
843 with remote-mips.o added to gdb_target_obs.
844 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
846 2011-01-24 Pedro Alves <pedro@codesourcery.com>
848 * ada-valprint.c (val_print_packed_array_elements): Pass the
849 correct struct value to val_print.
850 (ada_val_print_1): Ditto.
852 2011-01-24 Pedro Alves <pedro@codesourcery.com>
854 Don't lose embedded_offset in printing routines throughout.
856 * valprint.h (val_print_array_elements): Change prototype.
857 * valprint.c (val_print_array_elements): Add `embedded_offset'
858 parameter, and adjust to pass it down to val_print, while passing
859 `valaddr' or `address' unmodified. Take embedded_offset into
860 account when checking repetitions.
861 * c-valprint.c (c_val_print): Pass embedded_offset to
862 val_print_array_elements instead of adjusting `valaddr' and
864 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
865 embedded_offset to val_print_array_elements instead of adjusting
867 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
868 * p-valprint.c (pascal_val_print): Pass embedded_offset to
869 val_print_array_elements and pascal_object_print_value_fields
870 instead of adjusting `valaddr'.
871 (pascal_object_print_value_fields): Add `offset' parameter, and
873 (pascal_object_print_value): Add `offset' parameter, and adjust to
875 (pascal_object_print_static_field): Use
876 value_contents_for_printing/value_embedded_offset, rather than
878 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
879 parameter, and adjust to use it. Use
880 value_contents_for_printing/value_embedded_offset, rather than
882 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
883 (ada_val_print_array): Add `offset' parameter, and adjust to use
885 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
886 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
887 Instead work with offsets. Use
888 value_contents_for_printing/value_embedded_offset, rather than
889 value_contents. Change `defer_val_int' local type to CORE_ADDR,
890 and use value_from_pointer to extract a target pointer, rather
891 than value_from_longest.
892 (print_variant_part): Add `offset' parameter. Replace
893 `outer_valaddr' parameter by a new `outer_offset' parameter.
894 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
895 (ada_value_print): Use
896 value_contents_for_printing/value_embedded_offset, rather than
898 (print_record): Add `offset' parameter, and adjust to pass it
900 (print_field_values): Add `offset' parameter. Replace
901 `outer_valaddr' parameter by a new `outer_offset' parameter.
902 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
903 Use value_contents_for_printing/value_embedded_offset, rather than
905 * d-valprint.c (dynamic_array_type): Use
906 value_contents_for_printing/value_embedded_offset, rather than
908 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
909 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
910 (java_print_value_fields): Take `offset' into account. Don't
911 re-adjust `valaddr'. Instead pass down adjusted offsets.
912 (java_val_print): Take `embedded_offset' into account. Pass it to
913 java_print_value_fields.
914 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
915 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
916 down adjusted offsets.
917 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
918 (f_val_print): Take `embedded_offset' into account.
920 2011-01-21 Joel Brobecker <brobecker@adacore.com>
922 * inflow.c: Include "gdbcmd.h".
923 (interactive_mode): New static global, moved here from top.c.
924 (show_interactive_mode): New function, moved here from top.c.
925 use gdb_has_a_terminal instead of input_from_terminal_p to
926 determine the current mode.
927 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
929 (_initialize_inflow): Add the "set/show interactive-mode"
930 commands. Moved here from top.c, after having adjusted slightly
932 * top.c (interactive_mode, show_interactive_mode): Delete, moved
934 (input_from_terminal_p): Remove handling of "interactive-mode"
935 setting, moved to infow.c.
936 (init_main): Remove creation of the "set/show interactive-mode"
937 commands, moved to inflow.c.
939 2011-01-19 Joel Brobecker <brobecker@adacore.com>
941 * NEWS: Add entry for native ia64-hpux support.
943 2011-01-19 Tom Tromey <tromey@redhat.com>
946 * thread.c (free_thread): Free 'name'.
947 (print_thread_info): Emit thread name. Change CLI output.
948 (thread_name_command): New function.
949 (do_captured_thread_select): Emit newline.
950 (_initialize_thread): Register 'thread name' command.
951 * target.h (struct target_ops) <to_thread_name>: New field.
952 (target_thread_name): New macro.
953 * target.c (update_current_target): Handle to_thread_name.
954 * python/py-infthread.c (thpy_get_name): New function.
955 (thpy_set_name): Likewise.
956 (thread_object_getset): Add "name".
957 * linux-nat.c (linux_nat_thread_name): New function.
958 (linux_nat_add_target): Set to_thread_name.
959 * gdbthread.h (struct thread_info) <name>: New field.
961 2011-01-18 Joel Brobecker <brobecker@adacore.com>
963 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
964 (ada_val_print_1): Likewise.
966 2011-01-18 Joel Brobecker <brobecker@adacore.com>
968 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
969 upper limit address is not greater than the function end address
970 when the upper limit could not be computed using the debugging
973 2011-01-17 Tom Tromey <tromey@redhat.com>
975 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
977 * utils.c: Include gdb_regex.h.
978 (do_regfree_cleanup): New function.
979 (make_regfree_cleanup): Likewise.
980 (get_regcomp_error): Likewise.
981 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
983 2011-01-17 Tom Tromey <tromey@redhat.com>
985 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
988 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
990 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
991 for internal variables.
992 (last_was_structop): New static variable.
993 (COMPLETE): New token.
994 (field_exp): New rule to group all '.' suffix handling.
995 Add mark_struct_expression calls when approriate to be able
996 to correctly find fields for completion.
997 (yylex): Adapt to handle field completion and set INTVAR when
1000 2011-01-14 Yao Qi <yao@codesourcery.com>
1002 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
1003 save_reggroup, restore_reggroup and all_reggroup.
1005 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1007 * ada-valprint. (ada_printchar): Use the correct type length
1008 in call to ada_emit_char.
1009 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
1011 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1013 * solib-som.h (hpux_major_release): Declare variable here.
1014 * solib-som.c: Remove <sys/utsname.h> header.
1015 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
1016 (hpux_major_release): Make global, change default value to
1017 DEFAULT_HPUX_MAJOR_RELEASE.
1018 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
1019 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
1020 Add "solib-som.h" header.
1021 (set_hpux_major_release): New function.
1022 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
1024 2011-01-14 Mike Frysinger <vapier@gentoo.org>
1026 * configure.tgt (*-*-uclinux*): Match more Linux os targets
1028 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1030 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
1031 new-line at end of warning message.
1032 (ia64_hpux_store_register): Remove trailing new-line at end of
1034 * ia64-hpux-tdep.c: Rephrase comment.
1035 * solib-ia64-hpux.c (struct dld_info): Change type of field
1036 dld_flags from "long long" to ULONGEST.
1038 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1040 * target.h (deprecated_child_ops): Delete declaration.
1041 * target.c (deprecated_child_ops): Delete definition.
1043 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1045 * Makefile.in (hpux-thread.o): Delete rule.
1046 * configure.ac: Don't check for HPUX DCE threads support.
1047 * configure, config.in: Regenerate.
1048 * hppa-hpux-nat.c (child_suppress_run): Delete.
1049 (hppa_hpux_child_can_run): Delete.
1050 (_initialize_hppa_hpux_nat): Don't override to_can_run.
1051 * hpux-thread.c: Delete.
1053 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1055 * hpux-thread.c (hpux_pid_to_str): Delete.
1057 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1059 * ada-valprint.c (ada_emit_char): Remove strange code.
1060 Check that c is <= UCHAR_MAX before passing it to isascii.
1061 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
1063 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1065 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
1066 to the case where instream is stdin.
1068 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1070 * ia64-tdep.h (struct regcache): Forward declare.
1071 (struct ia64_infcall_ops): New struct type.
1072 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
1074 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
1075 Renames ia64_find_global_pointer.
1076 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
1077 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
1078 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
1080 (ia64_infcall_ops): New static global constant.
1081 (ia64_gdbarch_init): Set tdep->infcall_ops.
1082 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
1083 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
1084 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
1085 (ia64_hpux_dummy_code): New static global constant.
1086 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
1087 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
1088 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
1090 (ia64_hpux_infcall_ops): New static global constant.
1091 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
1092 for inferior function calls to work properly on ia64-hpux.
1094 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1096 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
1097 * ia64-tdep.h (struct frame_info): forward declaration.
1098 (struct gdbarch_tdep): Add field size_of_register_frame.
1099 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
1100 to determine the size of the register frame.
1101 (ia64_size_of_register_frame): New function.
1102 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
1103 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
1104 (IA64_HPUX_UREG_REASON): New macro.
1105 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
1107 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
1108 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
1109 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
1112 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1114 Add support for ia64-hpux.
1115 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
1116 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
1118 * configure.host: Add handling for ia64-hpux hosts. Add associated
1120 * configure.tgt: Add handling for ia64-hpux targets.
1121 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
1122 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
1123 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
1125 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1127 [ttrace] Compute thread list immediately after attach.
1128 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
1130 (inf_ttrace_attach): Use it.
1132 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1134 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
1135 if we could not determine the frame's function address. Instead,
1136 use the frame's PC, and then continue.
1138 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1140 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
1141 not already defined.
1143 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1145 * ia64-tdep.c (ia64_struct_type_p): New function.
1146 (ia64_extract_return_value): Handle integral values that are
1147 less than 8 bytes long.
1148 (ia64_push_dummy_call): Likewise.
1150 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1152 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
1153 floatformat_ia64_ext.
1154 (floatformat_ia64_ext_big): New static const.
1155 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
1157 2011-01-12 Tom Tromey <tromey@redhat.com>
1159 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
1161 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
1162 (mi_cmd_thread_list_ids): Likewise.
1163 (mi_cmd_data_list_changed_registers): Likewise.
1164 (mi_cmd_data_list_register_values): Likewise.
1165 (mi_cmd_data_write_register_values): Likewise.
1166 (mi_cmd_data_evaluate_expression): Likewise.
1167 (mi_cmd_data_read_memory): Likewise.
1168 (mi_cmd_data_read_memory_bytes): Likewise.
1169 (mi_cmd_data_write_memory): Likewise.
1170 (mi_cmd_enable_timings): Likewise.
1171 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
1172 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
1173 (mi_cmd_var_delete): Likewise.
1174 (mi_cmd_var_set_format): Likewise.
1175 (mi_cmd_var_show_format): Likewise.
1176 (mi_cmd_var_info_num_children): Likewise.
1177 (mi_cmd_var_list_children): Likewise.
1178 (mi_cmd_var_info_type): Likewise.
1179 (mi_cmd_var_info_expression): Likewise.
1180 (mi_cmd_var_show_attributes): Likewise.
1181 (mi_cmd_var_assign): Likewise.
1182 (mi_cmd_var_update): Likewise.
1183 (mi_cmd_enable_pretty_printing): Likewise.
1184 (mi_cmd_var_set_update_range): Likewise.
1185 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
1187 (mi_cmd_target_file_put): Likewise.
1188 (mi_cmd_target_file_delete): Likewise.
1189 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
1191 (mi_cmd_stack_info_depth): Likewise.
1192 (mi_cmd_stack_list_locals): Likewise.
1193 (mi_cmd_stack_list_args): Likewise.
1194 (mi_cmd_stack_select_frame): Likewise.
1195 (mi_cmd_stack_select_frame): Likewise.
1196 (mi_cmd_stack_info_frame): Likewise.
1197 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
1199 (mi_cmd_file_list_exec_source_files): Likewise.
1200 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
1201 (mi_cmd_env_cd): Likewise.
1202 (mi_cmd_env_path): Likewise.
1203 (mi_cmd_env_dir): Likewise.
1204 (mi_cmd_inferior_tty_show): Likewise.
1205 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
1206 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
1207 (mi_cmd_break_watch): Likewise.
1209 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
1211 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
1212 (ppc_linux_insert_hw_breakpoint): Likewise.
1213 (ppc_linux_remove_hw_breakpoint): Likewise.
1214 (ppc_linux_insert_watchpoint): Likewise.
1216 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1217 Jan Kratochvil <jan.kratochvil@redhat.com>
1219 PR fortran/11104 and DWARF unbound arrays detection.
1220 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
1221 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
1222 unspecified upper bound.
1223 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
1224 variables array_size_array, tmp_type and offset_item. New variable
1225 array. Remove call to f77_get_upperbound. New variables array_type
1226 and index. Call value_subscripted_rvalue for each dimenasion. Remove
1227 the final call to deprecated_set_value_type.
1229 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1231 Make value allocations more lazy.
1232 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
1233 instead of allocate_value and set_value_lazy when possible.
1234 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
1235 instead of allocate_value and set_value_lazy.
1236 * findvar.c (value_of_register_lazy): Likewise.
1237 (read_var_value): Remove V preallocation, call just check_typedef in
1238 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
1239 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
1240 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
1241 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
1242 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
1243 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
1244 the end, remove set_value_lazy there.
1245 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
1246 instead of allocate_value and set_value_lazy when possible.
1247 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
1248 * value.c (allocate_computed_value): Use allocate_value_lazy instead
1249 of allocate_value and set_value_lazy.
1250 (value_from_contents_and_address): Use allocate_value_lazy instead of
1251 allocate_value and set_value_lazy when possible.
1253 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1255 * disasm.c (dump_insns): Support dumping opcodes for MI.
1256 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
1257 dumping of instruction opcodes.
1259 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
1261 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
1264 2011-01-11 Tom Tromey <tromey@redhat.com>
1266 * thread.c (do_captured_thread_select): Emit newline before
1269 2011-01-11 Michael Snyder <msnyder@vmware.com>
1271 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
1272 * score-tdep.c: Ditto.
1273 * score-tdep.h: Ditto.
1274 * ser-base.c: Ditto.
1275 * ser-go32.c: Ditto.
1278 * ser-mingw.c: Ditto.
1279 * ser-pipe.c: Ditto.
1281 * ser-unix.c: Ditto.
1282 * sh64-tdep.c: Ditto.
1283 * shnbsd-nat.c: Ditto.
1287 * solib-darwin.c: Ditto.
1288 * solib-frv.c: Ditto.
1290 * solib-irix.c: Ditto.
1291 * solib-osf.c: Ditto.
1292 * solib-pa64.c: Ditto.
1293 * solib-som.c: Ditto.
1294 * solib-spu.c: Ditto.
1295 * solib-sunos.c: Ditto.
1296 * solib-svr4.c: Ditto.
1298 * sol-thread.c: Ditto.
1302 * sparc64-linux-tdep.c: Ditto.
1303 * sparc64-tdep.c: Ditto.
1304 * sparc-linux-nat.c: Ditto.
1305 * sparc-linux-tdep.c: Ditto.
1306 * sparc-sol2-nat.c: Ditto.
1307 * sparc-sol2-tdep.c: Ditto.
1308 * sparc-tdep.c: Ditto.
1309 * sparc-tdep.h: Ditto.
1310 * spu-tdep.c: Ditto.
1311 * stabsread.c: Ditto.
1312 * stabsread.h: Ditto.
1320 * target-descriptions.c: Ditto.
1321 * target-descriptions.h: Ditto.
1323 * target-memory.c: Ditto.
1324 * terminal.h: Ditto.
1327 * tracepoint.c: Ditto.
1328 * tracepoint.h: Ditto.
1329 * trad-frame.h: Ditto.
1330 * typeprint.c: Ditto.
1332 2011-01-11 Michael Snyder <msnyder@vmware.com>
1334 * ui-file.c: Comment cleanup, mostly periods and spaces.
1339 * v850-tdep.c: Ditto.
1340 * valarith.c: Ditto.
1342 * valprint.c: Ditto.
1343 * valprint.h: Ditto.
1348 * vax-tdep.c: Ditto.
1352 * windows-nat.c: Ditto.
1353 * windows-tdep.c: Ditto.
1354 * xcoffread.c: Ditto.
1355 * xcoffsolib.c: Ditto.
1356 * xml-support.c: Ditto.
1357 * xstormy16-tdep.c: Ditto.
1358 * xtensa-tdep.c: Ditto.
1359 * xtensa-tdep.h: Ditto.
1361 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1363 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
1364 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
1366 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1367 Thiago Jung Bauermann <bauerman@br.ibm.com>
1369 Implement support for PowerPC BookE ranged watchpoints.
1371 (struct breakpoint_ops) <resources_needed>: New method.
1372 Initialize to NULL in all existing breakpoint_ops instances.
1373 (struct breakpoint) <exact>: New field.
1374 (target_exact_watchpoints): Declare external global.
1375 * breakpoint.c (target_exact_watchpoints): New global flag.
1376 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
1377 b->enable_state to bp_enabled before calling
1378 hw_watchpoint_used_count.
1379 (hw_watchpoint_used_count): Iterate over all bp_locations in a
1380 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
1382 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
1383 if the watchpoint is exact.
1384 (resources_needed_watchpoint): New function.
1385 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
1386 (watch_command_1): Set b->exact if the user asked for an exact
1387 watchpoint and one can be set.
1388 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
1389 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
1390 the user asks for an exact watchpoint and one can be set. Return
1391 number of needed debug registers to watch the expression.
1392 * gdbtypes.c (is_scalar_type): New function, based on
1393 valprint.c:scalar_type_p.
1394 (is_scalar_type_recursive): New function.
1395 * gdbtypes.h (is_scalar_type_recursive): Declare.
1396 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
1397 handle regions when ranged watchpoints are available.
1398 (create_watchpoint_request): New function.
1399 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1400 create_watchpoint_request.
1401 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
1402 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
1403 `set powerpc' and `show powerpc' commands.
1404 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1405 Mention documentation comment in the target macro.
1406 (target_region_ok_for_hw_watchpoint): Document return value.
1408 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1410 * breakpoint.c (update_watchpoint): Decide on using a software or
1411 hardware watchpoint after the bp_locations are created.
1413 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1415 Convert hardware watchpoints to use breakpoint_ops.
1416 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
1417 <insert_location>: ... this. Return int instead of void.
1418 Accept pointer to struct bp_location instead of pointer to
1419 struct breakpoint. Adapt all implementations.
1420 (breakpoint_ops) <remove>: Rename to...
1421 <remove_location>: ... this. Accept pointer to struct bp_location
1422 instead of pointer to struct breakpoint. Adapt all implementations.
1423 * breakpoint.c (insert_catchpoint): Delete function.
1424 (insert_bp_location): Call the watchpoint or catchpoint's
1425 breakpoint_ops.insert method.
1426 (remove_breakpoint_1): Call the watchpoint or catchpoint's
1427 breakpoint_ops.remove method.
1428 (insert_watchpoint, remove_watchpoint): New functions.
1429 (watchpoint_breakpoint_ops): New structure.
1430 (watch_command_1): Initialize the OPS field.
1431 * inf-child.c (inf_child_insert_fork_catchpoint)
1432 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
1433 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
1434 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
1436 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
1437 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
1438 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
1439 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
1440 * target.c (update_current_target): Change default implementation of
1441 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
1442 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
1443 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
1444 to_set_syscall_catchpoint to return_one.
1445 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
1446 (debug_to_insert_exec_catchpoint): Report return value.
1447 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
1448 (to_insert_exec_catchpoint): Change declaration to return int instead
1451 2011-01-11 Michael Snyder <msnyder@vmware.com>
1453 * arm-tdep.c: Internationalization.
1456 * fork-child.c: Ditto.
1457 * nto-procfs.c: Ditto.
1458 * ppc-sysv-tdep.c: Ditto.
1460 * remote-mips.c: Ditto.
1462 * rs6000-nat.c: Ditto.
1463 * rs6000-tdep.c: Ditto.
1467 * xml-support.c: Ditto.
1468 * mi/mi-cmd-break.c: Ditto.
1469 * mi/mi-cmd-var.c: Ditto.
1470 * mi/mi-interp.c: Ditto.
1471 * mi/mi-main.c: Ditto.
1473 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
1475 * remote-sim.c (gdbsim_store_register): Update API to
1476 sim_store_register to check more error conditions.
1478 2011-01-10 Michael Snyder <msnyder@vmware.com>
1480 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
1481 * nto-tdep.c: Ditto.
1482 * nto-tdep.h: Ditto.
1483 * objc-exp.y: Ditto.
1484 * objc-lang.c: Ditto.
1485 * objfiles.c: Ditto.
1486 * objfiles.h: Ditto.
1487 * observer.c: Ditto.
1488 * opencl-lang.c: Ditto.
1491 * parser-defs.h: Ditto.
1494 * posix-hdep.c: Ditto.
1495 * ppcbug-rom.c: Ditto.
1496 * ppc-linux-nat.c: Ditto.
1497 * ppc-linux-tdep.c: Ditto.
1498 * ppc-linux-tdep.h: Ditto.
1499 * ppcnbsd-tdep.c: Ditto.
1500 * ppcobsd-tdep.c: Ditto.
1501 * ppcobsd-tdep.h: Ditto.
1502 * ppc-sysv-tdep.c: Ditto.
1503 * ppc-tdep.h: Ditto.
1504 * printcmd.c: Ditto.
1505 * proc-abi.c: Ditto.
1506 * proc-flags.c: Ditto.
1508 * proc-utils.h: Ditto.
1509 * progspace.h: Ditto.
1510 * prologue-value.c: Ditto.
1511 * prologue-value.h: Ditto.
1512 * psympriv.h: Ditto.
1514 * p-typeprint.c: Ditto.
1515 * p-valprint.c: Ditto.
1516 * ravenscar-sparc-thread.c: Ditto.
1517 * ravenscar-thread.c: Ditto.
1518 * ravenscar-thread.h: Ditto.
1520 * regcache.c: Ditto.
1521 * regcache.h: Ditto.
1523 * remote-fileio.c: Ditto.
1524 * remote-fileio.h: Ditto.
1526 * remote-m32r-sdi.c: Ditto.
1527 * remote-mips.c: Ditto.
1528 * remote-sim.c: Ditto.
1529 * rs6000-aix-tdep.c: Ditto.
1530 * rs6000-nat.c: Ditto.
1531 * rs6000-tdep.c: Ditto.
1533 2011-01-10 Michael Snyder <msnyder@vmware.com>
1535 * charset.c (validate): Internationalization.
1536 * coffread.c (read_one_sym): Ditto.
1537 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
1538 * h8300-tdep.c (H8300_extract_return_value): Ditto.
1539 * inflow.c (new_tty): Ditto.
1540 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
1541 * m32c-tdep.c (m32c_return_value): Ditto.
1542 * mep-tdep.c (mep_store_return_value): Ditto.
1543 * score-tdep.c (score7_fetch_insn): Ditto.
1544 * ser-mingw.c (pipe_windows_open): Ditto.
1545 * sh64-tdep.c (sh64_extract_return_value): Ditto.
1546 * spu-tdep.c (spu_register_type): Ditto.
1547 * tracepoint.c (trace_find_command): Ditto.
1548 * valarith.c (value_pos): Ditto.
1550 2011-01-10 Joel Brobecker <brobecker@adacore.com>
1552 * ada-valprint.c (printstr): Minor comment reformatting.
1554 2011-01-08 Michael Snyder <msnyder@vmware.com>
1556 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
1559 2011-01-08 Michael Snyder <msnyder@vmware.com>
1561 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
1562 * hppa-hpux-tdep.c: Ditto.
1563 * hppa-linux-nat.c: Ditto.
1564 * hppa-linux-tdep.c: Ditto.
1565 * hppanbsd-tdep.c: Ditto.
1566 * hppa-tdep.c: Ditto.
1567 * hppa-tdep.h: Ditto.
1568 * hpux-thread.c: Ditto.
1569 * i386-cygwin-tdep.c: Ditto.
1570 * i386-darwin-nat.c: Ditto.
1571 * i386gnu-nat.c: Ditto.
1572 * i386-linux-nat.c: Ditto.
1573 * i386-linux-tdep.c: Ditto.
1574 * i386-nat.c: Ditto.
1575 * i386-nat.h: Ditto.
1576 * i386nbsd-tdep.c: Ditto.
1577 * i386-sol2-nat.c: Ditto.
1578 * i386-stub.c: Ditto.
1579 * i386-tdep.c: Ditto.
1580 * i386-tdep.h: Ditto.
1581 * i387-tdep.c: Ditto.
1582 * ia64-linux-nat.c: Ditto.
1583 * ia64-linux-tdep.c: Ditto.
1584 * ia64-tdep.c: Ditto.
1588 * inferior.c: Ditto.
1589 * inferior.h: Ditto.
1595 * iq2000-tdep.c: Ditto.
1596 * irix5-nat.c: Ditto.
1602 * jv-typeprint.c: Ditto.
1603 * jv-valprint.c: Ditto.
1604 * language.c: Ditto.
1605 * language.h: Ditto.
1606 * linespec.c: Ditto.
1607 * linux-fork.c: Ditto.
1608 * linux-nat.c: Ditto.
1609 * linux-thread-db.c: Ditto.
1610 * lm32-tdep.c: Ditto.
1612 2011-01-08 Michael Snyder <msnyder@vmware.com>
1614 * m2-exp.y: Comment cleanup, mostly periods and spaces.
1616 * m2-typeprint.c: Ditto.
1617 * m2-valprint.c: Ditto.
1618 * m32c-tdep.c: Ditto.
1619 * m32r-linux-nat.c: Ditto.
1620 * m32r-rom.c: Ditto.
1621 * m32r-tdep.c: Ditto.
1622 * m32r-tdep.h: Ditto.
1623 * m68hc11-tdep.c: Ditto.
1624 * m58klinux-nat.c: Ditto.
1625 * m68k-tdep.c: Ditto.
1626 * m88k-tdep.c: Ditto.
1627 * m88k-tdep.h: Ditto.
1628 * machoread.c: Ditto.
1629 * macrocmd.c: Ditto.
1630 * macroexp.c: Ditto.
1631 * macrotab.c: Ditto.
1634 * mdebugread.c: Ditto.
1635 * mdebugread.h: Ditto.
1638 * memory-map.h: Ditto.
1639 * mep-tdep.c: Ditto.
1640 * microblaze-rom.c: Ditto.
1641 * microblaze-tdep.c: Ditto.
1643 * mips-irix-tdep.c: Ditto.
1644 * mips-linux-nat.c: Ditto.
1645 * mips-linux-tdep.c: Ditto.
1646 * mips-linux-tdep.h: Ditto.
1647 * mipsnbsd-nat.c: Ditto.
1648 * mipsnbsd-tdep.c: Ditto.
1649 * mipsread.c: Ditto.
1650 * mips-tdep.c: Ditto.
1651 * mips-tdep.h: Ditto.
1652 * mn10300-linux-tdep.c: Ditto.
1653 * mn10300-tdep.c: Ditto.
1654 * mn10300-tdep.h: Ditto.
1657 * moxie-tdep.c: Ditto.
1658 * moxie-tdep.h: Ditto.
1661 2011-01-08 Mike Frysinger <vapier@gentoo.org>
1663 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
1665 2011-01-08 Robert Millan <rmh@gnu.org>
1667 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
1669 2011-01-07 Michael Snyder <msnyder@vmware.com>
1671 * charset.c (_initialize_charset): Fix typo in string.
1673 2011-01-07 Michael Snyder <msnyder@vmware.com>
1675 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
1677 * tui/tui-layout.c (tui_set_layout_for_display_command):
1678 Split line so that operator goes to beginning of line.
1679 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
1680 assignment out of if statement.
1682 2011-01-07 Michael Snyder <msnyder@vmware.com>
1684 * ada-lang.c: Comment cleanup, mostly periods and spaces.
1685 * ada-lang.h: Ditto.
1686 * ada-tasks.c: Ditto.
1687 * ada-valprint.c: Ditto.
1688 * aix-threads.c: Ditto.
1689 * alpha-linux-nat.c: Ditto.
1690 * alpha-linux-tdep.c: Ditto.
1691 * alpha-mdebug-tdep.c: Ditto.
1692 * alpha-nat.c: Ditto.
1693 * alpha-osf1-tdep.c: Ditto.
1694 * alpha-tdep.c: Ditto.
1695 * alphabsd-nat.c: Ditto.
1696 * alphabsd-tdep.c: Ditto.
1697 * amd64-darwin-tdep.c: Ditto.
1698 * amd64-linux-nat.c: Ditto.
1699 * amd64-linux-tdep.c: Ditto.
1700 * amd64-sol2-tdep.c: Ditto.
1701 * amd64-tdep.c: Ditto.
1702 * amd64-fbsd-tdep.c: Ditto.
1703 * amd64-nbsd-tdep.c: Ditto.
1704 * amd64-obsd-tdep.c: Ditto.
1705 * amd64-linux-nat.c: Ditto.
1706 * amd64-linux-tdep.c: Ditto.
1707 * arm-tdep.c: Ditto.
1708 * arm-tdep.h: Ditto.
1709 * armnbsd-nat.c: Ditto.
1710 * avr-tdep.c: Ditto.
1711 * bfin-tdep.c: Ditto.
1713 * c-typeprintc: Ditto.
1714 * c-valprint.c: Ditto.
1715 * coff-pe-read.h: Ditto.
1716 * coffreead.c: Ditto.
1717 * cris-tdep.c: Ditto.
1719 * darwin-nat-info.c: Ditto.
1720 * darwin-nat.c: Ditto.
1721 * dbug-rom.c: Ditto.
1725 * dec-thread.c: Ditto.
1727 * demangle.c: Ditto.
1728 * dicos-tdep.c: Ditto.
1729 * dictionary.c: Ditto.
1730 * dictionary.h: Ditto.
1731 * dink32-rom.c: Ditto.
1733 * doublest.c: Ditto.
1735 * dummy-frame.c: Ditto.
1736 * dwarf2-frame.c: Ditto.
1737 * dwarf2expr.c: Ditto.
1738 * dwarf2loc.c: Ditto.
1739 * dwarf2read.c: Ditto.
1743 * event-top.h: Ditto.
1744 * exceptions.c: Ditto.
1745 * exceptions.h: Ditto.
1747 * expprint.c: Ditto.
1748 * expression.h: Ditto.
1752 * f-typeprint.c: Ditto.
1753 * f-valprint.c: Ditto.
1754 * fbsd-nat.c: Ditto.
1756 * fork-child.c: Ditto.
1759 * frv-linux-tdep.c: Ditto.
1760 * frv-tdep.c: Ditto.
1762 * gdb-stabs.h: Ditto.
1763 * gdb_assert.h: Ditto.
1764 * gdb_string.h: Ditto.
1765 * gdb_thread_db.h: Ditto.
1766 * gdb_wait.h: Ditto.
1767 * gdbarch.sh: Ditto.
1769 * gdbthread.h: Ditto.
1770 * gdbtypes.c: Ditto.
1771 * gdbtypes.h: Ditto.
1774 * gnu-v2-abi.c: Ditto.
1775 * gnu-v3-abi.c: Ditto.
1776 * go32-nat.c: Ditto.
1777 * gdbarch.c: Regenerate.
1778 * gdbarch.h: Regenerate.
1780 2011-01-07 Michael Snyder <msnyder@vmware.com>
1782 * ax-gdb.c: Adjust some long output strings.
1783 * breakpoint.c: Ditto.
1788 * linux-nat.c: Ditto.
1789 * solib-pa64.c: Ditto.
1790 * solib-som.c: Ditto.
1792 2011-01-06 Tom Tromey <tromey@redhat.com>
1796 * python/python.c (GdbMethods): Add "newest_frame" method.
1797 * python/python-internal.h (gdbpy_newest_frame): Declare.
1798 * python/py-frame.c (gdbpy_newest_frame): New function.
1800 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1802 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
1803 * jit.c (jit_debug): New variable.
1804 (show_jit_debug): New function.
1805 (struct target_buffer): Use ULONGEST.
1806 (bfd_open_from_target_memory): Likewise.
1807 (jit_register_code, jit_inferior_init): Add debug output.
1808 (_initialize_jit): Register "debug jit" command.
1810 2011-01-06 Tom Tromey <tromey@redhat.com>
1812 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
1813 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
1816 2011-01-06 Tom Tromey <tromey@redhat.com>
1818 * python/py-frame.c (frapy_block): Use get_frame_block.
1820 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1822 Do not stop on SIGPRIO signals by default
1823 * infrun.c (_initialize_infrun): Unset signal_stop and
1824 signal_print for TARGET_SIGNAL_PRIO.
1826 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1828 * ada-tasks.c: Fix style violation in comment.
1830 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1832 * linespec.c (decode_compound, find_method): Remove trailing \n
1833 at end of error string.
1834 * solib-irix.c (irix_current_sos): Likewise.
1835 * varobj.c (uninstall_variable): Likewise.
1837 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1839 * copyright.py: New script.
1840 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
1841 Launch emacs without exec'ing. Call copyright.py afterwards.
1843 2011-01-05 Michael Snyder <msnyder@vmware.com>
1845 * addrmap.c: Shorten lines of >= 80 columns.
1846 * arch-utils.c: Ditto.
1847 * arch-utils.h: Ditto.
1849 * ax-general.c: Ditto.
1851 * blockframe.c: Ditto.
1852 * breakpoint.c: Ditto.
1853 * buildsym.c: Ditto.
1855 * c-typeprint.c: Ditto.
1857 * coffread.c: Ditto.
1861 * cp-namespace.c: Ditto.
1862 * cp-support.c: Ditto.
1863 * dbug-rom.c: Ditto.
1868 * dictionary.c: Ditto.
1870 * doublest.c: Ditto.
1871 * dwarf2-frame.c: Ditto.
1872 * dwarf2expr.c: Ditto.
1873 * dwarf2loc.c: Ditto.
1874 * dwarf2read.c: Ditto.
1877 * event-loop.c: Ditto.
1878 * event-loop.h: Ditto.
1879 * exceptions.h: Ditto.
1881 * expprint.c: Ditto.
1882 * expression.h: Ditto.
1884 * f-valprint.c: Ditto.
1886 * frame-base.c: Ditto.
1887 * frame-unwind.c: Ditto.
1888 * frame-unwind.h: Ditto.
1892 * gdb-stabs.h: Ditto.
1893 * gdb_assert.h: Ditto.
1894 * gdb_dirent.h: Ditto.
1895 * gdb_obstack.h: Ditto.
1897 * gdbtypes.c: Ditto.
1898 * gdbtypes.h: Ditto.
1899 * inf-ttrace.c: Ditto.
1904 * inline-frame.h: Ditto.
1905 * language.c: Ditto.
1906 * language.h: Ditto.
1907 * libunwind-frame.c: Ditto.
1908 * libunwind-frame.h: Ditto.
1909 * linespec.c: Ditto.
1910 * linux-nat.c: Ditto.
1911 * linux-nat.h: Ditto.
1912 * linux-thread-db.c: Ditto.
1913 * machoread.c: Ditto.
1914 * macroexp.c: Ditto.
1915 * macrotab.c: Ditto.
1918 * mdebugread.c: Ditto.
1923 * objfiles.c: Ditto.
1924 * objfiles.h: Ditto.
1926 * p-typeprint.c: Ditto.
1927 * p-valprint.c: Ditto.
1929 * printcmd.c: Ditto.
1930 * proc-events.c: Ditto.
1932 * progspace.c: Ditto.
1933 * progspace.h: Ditto.
1934 * psympriv.h: Ditto.
1937 * regcache.c: Ditto.
1938 * regcache.h: Ditto.
1939 * remote-fileio.c: Ditto.
1941 * ser-mingw.c: Ditto.
1943 * ser-unix.c: Ditto.
1946 * solib-frv.c: Ditto.
1947 * solib-irix.c: Ditto.
1948 * solib-osf.c: Ditto.
1949 * solib-pa64.c: Ditto.
1950 * solib-som.c: Ditto.
1951 * solib-sunos.c: Ditto.
1952 * solib-svr4.c: Ditto.
1953 * solib-target.c: Ditto.
1957 * stabsread.c: Ditto.
1958 * stabsread.c: Ditto.
1961 * symfile-mem.c: Ditto.
1967 * target-descriptions.c: Ditto.
1968 * target-memory.c: Ditto.
1971 * terminal.h: Ditto.
1974 * tracepoint.c: Ditto.
1975 * tracepoint.h: Ditto.
1979 * user-regs.c: Ditto.
1980 * user-regs.h: Ditto.
1982 * valarith.c: Ditto.
1984 * valprint.c: Ditto.
1985 * valprint.h: Ditto.
1990 * xcoffread.c: Ditto.
1991 * xcoffsolib.c: Ditto.
1992 * xcoffsolib.h: Ditto.
1993 * xml-syscall.c: Ditto.
1994 * xml-tdesc.c: Ditto.
1996 2011-01-05 Michael Snyder <msnyder@vmware.com>
1998 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
1999 * cli/cli-decode.c: Ditto.
2000 * cli/cli-dump.c: Ditto.
2001 * cli/cli-logging.c: Ditto.
2002 * cli/cli-script.c: Ditto.
2003 * cli/cli-setshow.c: Ditto.
2004 * common/signals.c: Ditto.
2005 * mi/mi-cmd-break.c: Ditto.
2006 * mi/mi-cmd-disas.c: Ditto.
2007 * mi/mi-cmd-stack.c: Ditto.
2008 * mi/mi-cmd-var.c: Ditto.
2009 * mi/mi-cmds.c: Ditto.
2010 * mi/mi-common.h: Ditto.
2011 * mi/mi-console.c: Ditto.
2012 * mi/mi-interp.c: Ditto.
2013 * mi/mi-main.c: Ditto.
2014 * osf-share/cma_attr.c: Ditto.
2015 * osf-share/cma_deb_core.h: Ditto.
2016 * osf-share/cma_debug_client.h: Ditto.
2017 * osf-share/cma_handle.h: Ditto.
2018 * osf-share/cma_mutex.h: Ditto.
2019 * osf-share/cma_stack_int.h: Ditto.
2020 * osf-share/cma_tcb_defs.h: Ditto.
2021 * python/py-auto-load.c: Ditto.
2022 * python/py-breakpoint.c: Ditto.
2023 * python/py-cmd.c: Ditto.
2024 * python/py-frame.c: Ditto.
2025 * python/py-objfile.c: Ditto.
2026 * python/py-param.c: Ditto.
2027 * python/py-progspace.c: Ditto.
2028 * python/py-symbol.c: Ditto.
2029 * python/py-value.c: Ditto.
2030 * python/python-internal.h: Ditto.
2031 * python/python.c: Ditto.
2032 * tui/tui-data.c: Ditto.
2033 * tui/tui-disasm.c: Ditto.
2034 * tui/tui-hooks.c: Ditto.
2035 * tui/tui-io.c: Ditto.
2036 * tui/tui-layout.c: Ditto.
2037 * tui/tui-regs.c: Ditto.
2038 * tui/tui-source.c: Ditto.
2039 * tui/tui-stack.c: Ditto.
2040 * tui/tui-win.c: Ditto.
2041 * tui/tui-windata.c: Ditto.
2042 * tui/tui-winsource.c: Ditto.
2044 2011-01-05 Joel Brobecker <brobecker@adacore.com>
2046 * configure.ac, gdb.1: Copyright year update.
2048 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2050 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
2051 this_pc_in_block, morestack_msym and morestack_name. Check for
2052 "__morestack" minimal symbol there.
2054 2011-01-03 Joel Brobecker <brobecker@adacore.com>
2056 * symfile.c (find_sym_fns): Add call to dont_repeat.
2058 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2060 Copyright year update in most files (performed by copyright.sh).
2062 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2064 * top.c (print_gdb_version): Update copyright year in version output.
2066 For older changes see ChangeLog-2010.
2072 version-control: never