1 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2 Jan Kratochvil <jan.kratochvil@redhat.com>
4 * memrange.c (compare_mem_ranges): Mention sort order in
6 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
7 * tracepoint.c (traceframe_available_memory): Extend comment to
8 mention what happens to RESULT when the target does not support
11 2011-02-14 Pedro Alves <pedro@codesourcery.com>
12 Jan Kratochvil <jan.kratochvil@redhat.com>
14 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
17 2011-02-14 Pedro Alves <pedro@codesourcery.com>
19 * value.c (value_bits_valid, value_bits_synthetic_pointer):
20 No longer handle NULL values.
22 2011-02-14 Pedro Alves <pedro@codesourcery.com>
24 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
25 * value.c: Include "exceptions.h".
26 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
28 * cp-abi.c: Include gdb_assert.h.
29 (baseclass_offset): Add `embedded_offset' and `val' parameters.
30 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
32 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
33 parameters. No longer returns -1 on error.
34 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
36 * cp-valprint.c: Include exceptions.h.
37 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
38 the baseclass_offset. Handle unavailable base classes. Use
39 val_print_invalid_address.
40 * p-valprint.c: Include exceptions.h.
41 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
42 when fetching the baseclass_offset. No longer expect
43 baseclass_offset returning -1. Handle unavailable base classes.
44 Use val_print_invalid_address.
45 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
46 `valaddr' parameter, and change its type to gdb_byte pointer. Add
47 `embedded_offset' and `val' parameters. Adjust.
48 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
49 parameter, and change its type to gdb_byte pointer. Add
50 `embedded_offset' and `val' parameters. Adjust. No longer expect
51 baseclass_offset returning -1.
52 (value_dynamic_cast): Use value_contents_for_printing rather than
53 value_contents. Adjust.
54 (search_struct_field): No longer expect baseclass_offset returning
56 (search_struct_method): If reading memory from the target is
57 necessary, wrap it in a new value to pass to baseclass_offset. No
58 longer expect baseclass_offset returning -1.
59 (find_method_list): No longer expect baseclass_offset returning
60 -1. Use value_contents_for_printing rather than value_contents.
61 * valprint.c (val_print_invalid_address): New function.
62 * valprint.h (val_print_invalid_address): Declare.
63 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
64 and `val' parameters. No longer expect baseclass_offset returning
66 * gnu-v2-abi.c: Include "exceptions.h".
67 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
68 parameters. Handle unavailable memory. Recurse through
69 gnuv2_baseclass_offset directly, rather than through
70 baseclass_offset. No longer returns -1 on not found, instead
72 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
73 `val' parameters. Adjust.
75 2011-02-14 Pedro Alves <pedro@codesourcery.com>
77 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
78 almost but not quite adjacent.
80 2011-02-14 Pedro Alves <pedro@codesourcery.com>
82 * value.h (value_entirely_available): Declare.
83 * value.c (value_entirely_available): New function.
84 * c-valprint.c (c_value_print): Don't try fetching the pointer's
85 real type if the pointer is unavailable.
87 2011-02-14 Pedro Alves <pedro@codesourcery.com>
89 * valops.c (value_repeat): Use read_value_memory instead of
92 2011-02-14 Pedro Alves <pedro@codesourcery.com>
94 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
95 * value.c (value_contents_copy_raw, value_contents_copy): New
97 (value_primitive_field): Use value_contents_copy_raw instead of
99 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
101 (value_array, value_slice): Ditto.
102 * valarith.c (value_subscripted_rvalue): Use
103 value_contents_copy_raw instead of memcpy.
105 2011-02-14 Pedro Alves <pedro@codesourcery.com>
107 <unavailable> references.
109 * valops.c (get_value_at): Use value_from_contents_and_address,
110 avoiding read_memory.
112 2011-02-14 Pedro Alves <pedro@codesourcery.com>
114 * c-valprint.c (c_val_print): Print a string with unavailable
115 contents as an array.
117 2011-02-14 Pedro Alves <pedro@codesourcery.com>
119 * value.h (unpack_bits_as_long): Delete declaration.
120 (unpack_value_bits_as_long): Declare.
121 (unpack_value_field_as_long): Declare.
122 (value_field_bitfield): Declare.
123 * value.c (unpack_bits_as_long): Rename to...
124 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
125 value parameters. Return the extracted result in a new output
126 parameter. If the value contents are unavailable, return false,
127 otherwise return true.
128 (unpack_value_bits_as_long): New.
129 (unpack_field_as_long): Rename to...
130 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
131 Add embedded_offset and value parameters. Return the extracted
132 result in a new output parameter. If the value contents are
133 unavailable, return false, otherwise return true.
134 (unpack_value_field_as_long): New.
135 (unpack_field_as_long_1): New.
136 (unpack_field_as_long): Reimplement as wrapper around
137 unpack_value_field_as_long_1.
138 (value_field_bitfield): New function.
139 * valops.c (value_fetch_lazy): When fetching a bitfield, use
140 unpack_value_bits_as_long. Mark the value as unavailable, if it
142 * jv-valprint.c (java_print_value_fields): Use
143 value_field_bitfield.
144 * p-valprint.c (pascal_object_print_value_fields): Use
145 value_field_bitfield.
146 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
148 2011-02-14 Pedro Alves <pedro@codesourcery.com>
150 * value.c (get_internalvar_integer): Also return the int value of
151 TYPE_CODE_INT INTERNALVAR_VALUE values.
152 (set_internalvar): Don't special case TYPE_CODE_INT.
154 2011-02-14 Pedro Alves <pedro@codesourcery.com>
156 * value.c (struct internalvar) <enum internalvar_kind>: Remove
159 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
160 (set_internalvar): Remove special TYPE_CODE_PTR handling.
161 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
163 2011-02-14 Pedro Alves <pedro@codesourcery.com>
165 * value.h (value_available_contents_eq): Declare.
166 * value.c (find_first_range_overlap): New function.
167 (value_available_contents_eq): New function.
168 * valprint.c (val_print_array_elements): Use
169 value_available_contents_eq.
170 * ada-valprint.c (val_print_packed_array_elements): Use
171 value_available_contents_eq.
172 * jv-valprint.c (java_value_print): Use
173 value_available_contents_eq.
175 2011-02-14 Pedro Alves <pedro@codesourcery.com>
177 * target.c (target_read_live_memory): New function.
178 (memory_xfer_live_readonly_partial): New.
179 (memory_xfer_partial): If reading from a traceframe, fallback to
180 reading unavailable read-only memory from read-only regions of
182 * tracepoint.c (disconnect_tracing): Adjust.
183 (set_current_traceframe): New, factored out from
184 set_traceframe_number.
185 (set_traceframe_number): Reimplement to only change the traceframe
186 number on the GDB side.
187 (do_restore_current_traceframe_cleanup): Adjust.
188 (make_cleanup_restore_traceframe_number): New.
189 (cur_traceframe_number): New global.
190 (tfile_open): Set cur_traceframe_number to no traceframe.
191 (set_tfile_traceframe): New function.
192 (tfile_trace_find): If looking up a traceframe using any method
193 other than by number, make sure the current tfile traceframe
194 matches gdb's current traceframe. Update the current tfile
195 traceframe if the lookup succeeded.
196 (tfile_fetch_registers, tfile_xfer_partial)
197 (tfile_get_trace_state_variable_value): Make sure the remote
198 traceframe matches gdb's current traceframe.
199 * remote.c (remote_traceframe_number): New global.
200 (remote_open_1): Set it to -1.
201 (set_remote_traceframe): New function.
202 (remote_fetch_registers, remote_store_registers)
203 (remote_xfer_memory, remote_xfer_partial)
204 (remote_get_trace_state_variable_value): Make sure the remote
205 traceframe matches gdb's current traceframe.
206 (remote_trace_find): If looking up a traceframe using any method
207 other than by number, make sure the current remote traceframe
208 matches gdb's current traceframe. Update the current remote
209 traceframe if the lookup succeeded.
210 * infrun.c (fetch_inferior_event): Adjust.
211 * tracepoint.h (set_current_traceframe): Declare.
212 (get_traceframe_number, set_traceframe_number): Add describing
215 2011-02-14 Pedro Alves <pedro@codesourcery.com>
217 Mark pieces of values as unavailable if the corresponding memory
220 * valops.c: Include tracepoint.h.
221 (value_fetch_lazy): Use read_value_memory.
222 (read_value_memory): New.
223 * value.h (read_value_memory): Declare.
224 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
225 * exec.c (section_table_available_memory): New function.
226 * exec.h (section_table_available_memory): Declare.
228 2011-02-14 Pedro Alves <pedro@codesourcery.com>
230 * Makefile.in (SFILES): Add memrange.c.
231 (HFILES_NO_SRCDIR): Add memrange.h.
232 (COMMON_OBS): Add memrange.o.
233 * memrange.c: New file.
234 * memrange.h: New file.
235 * tracepoint.c: Include memrange.h.
236 (struct mem_range): Delete.
237 (mem_range_s): Delete.
238 (traceframe_available_memory): New function.
239 * tracepoint.h (traceframe_available_memory): Declare.
241 2011-02-14 Pedro Alves <pedro@codesourcery.com>
243 * target.h (struct traceframe_info): Forward declare.
244 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
245 (struct target_ops) <to_traceframe_info>: New field.
246 (target_traceframe_info): New.
247 * target.c (update_current_target): Inherit and default
249 * remote.c (PACKET_qXfer_traceframe_info): New.
250 (remote_protocol_features): Register qXfer:traceframe-info:read.
251 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
252 (remote_traceframe_info): New.
253 (init_remote_ops): Install it.
254 (_initialize_remote): Install "set/show remote traceframe-info"
256 * tracepoint.h (parse_traceframe_info): Declare.
257 * tracepoint.c (struct mem_range): New.
258 (mem_range_s): New typedef.
259 (struct traceframe_info): New.
260 (traceframe_info): New global.
261 (free_traceframe_info): New function.
262 (clear_traceframe_info): New function.
263 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
265 (build_traceframe_info): New function.
266 (tfile_traceframe_info): New function.
267 (init_tfile_ops): Install tfile_traceframe_info.
268 (traceframe_info_start_memory, free_result): New functions.
269 (memory_attributes, traceframe_info_elements): New globals.
270 (parse_traceframe_info, get_traceframe_info): New functions.
271 * features/traceframe-info.dtd: New file.
272 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
274 2011-02-14 Pedro Alves <pedro@codesourcery.com>
276 Base support for <unavailable> value contents.
278 * value.h (value_bytes_available): Declare.
279 (mark_value_bytes_unavailable): Declare.
280 * value.c (struct range): New struct.
281 (range_s): New typedef.
282 (ranges_overlap): New function.
283 (range_lessthan): New function.
284 (ranges_contain_p): New function.
285 (struct value) <unavailable>: New field.
286 (value_bytes_available): New function.
287 (mark_value_bytes_unavailable): New function.
288 (require_not_optimized_out): Constify parameter.
289 (require_available): New function.
290 (value_contents_all, value_contents): Require all bytes be
292 (value_free): Free `unavailable'.
293 (value_copy): Copy `unavailable'.
294 * valprint.h (val_print_unavailable): Declare.
295 * valprint.c (valprint_check_validity): Rename `offset' parameter
296 to `embedded_offset'. If printing a scalar, check whether the
297 value chunk is available.
298 (val_print_unavailable): New.
299 (val_print_scalar_formatted): Check whether the value is
301 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
302 pretty-printing unavailable values.
304 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
306 Fix const/volatile qualifiers of C++ types, PR c++/12328.
307 * c-typeprint.c (c_type_print_args): Update the function comment. New
308 variable param_type, initialize it. Remove const/volatile qualifiers
309 for language_cplus and !show_artificial. Use param_type.
311 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
313 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
314 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
315 * symtab.h (struct symtab) <next>: Comment extension.
317 2011-02-12 Yao Qi <yao@codesourcery.com>
319 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
321 2011-02-11 Pedro Alves <pedro@codesourcery.com>
323 * infrun.c (proceed): Move switching out and in of tfind mode from
325 (fetch_inferior_event): ... to here.
327 2011-02-11 Yao Qi <yao@codesourcery.com>
329 * Makefile.in: Remove signals.o from COMMON_OBS. Link
331 * configure.ac: Add common to sub dir.
332 * configure: Regenerate.
334 2011-02-10 Pedro Alves <pedro@codesourcery.com>
336 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
337 side of the parenthesis.
340 2010-07-13 Jakub Jelinek <jakub@redhat.com>
341 * vec.h (VEC_block_remove): Fix comment.
343 2011-02-08 Michael Snyder <msnyder@vmware.com>
345 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
347 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
349 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
350 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
353 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
356 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
358 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
359 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
361 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
363 * dwarf2read.c (read_subroutine_type): Set special calling
364 convention flag for functions compiled by IBM XL C for OpenCL.
365 * ppc-sysv-tdep.c: Include "dwarf2.h"
366 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
368 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
369 IBM OpenCL vector types calling convention.
370 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
371 (ppc_sysv_abi_broken_return_value): Likewise.
372 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
373 types calling convention.
374 (ppc64_sysv_abi_return_value): Likewise.
375 * spu-tdep.c: Include "dwarf2.h"
376 (spu_return_value): Implement IBM OpenCL vector types calling
379 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
381 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
382 correct ABI for AltiVec vector arguments.
384 2011-02-07 Pedro Alves <pedro@codesourcery.com>
386 * valprint.c (val_print): Extend comment.
387 * ada-valprint.c (ada_valprint): Rewrite comment deferring
388 interface explanation to val_print.
389 (ada_val_print_array): Adjust comment to current interface.
390 (print_field_values): Adjust comment to current interface.
391 * c-valprint.c (c_val_print): Rewrite comment deferring interface
392 explanation to val_print.
393 * f-valprint.c (f_val_print): Ditto.
394 * jv-valprint.c (java_val_print): Ditto.
395 * m2-valprint.c (m2_val_print): Ditto.
396 * p-valprint.c (pascal_val_print): Ditto.
398 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
400 * breakpoint.c (parse_breakpoint_sals): Fix description.
402 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
403 Oguz Kayral <oguzkayral@gmail.com>
405 * python/py-inferior.c (python_on_normal_stop): New function.
406 (python_on_resume): New function.
407 (python_inferior_exit): New function.
408 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
409 inferior_exit observers.
410 * python/py-evtregistry.c: New file.
411 * python/py-threadevent.c : New file.
412 * python/py-event.c: New file.
413 * python/py-evts.c: New file.
414 * python/py-continueevent.c: New file.
415 * python/py-bpevent.c: New file.
416 * python/py-signalevent.c: New file.
417 * python/py-exetiedevent.c: New file.
418 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
419 Move struct breakpoint_object from here...
420 * python/python-internal.h: ... to here.
421 * python/py-event.h: New file.
422 * python/py-events.h: New file.
423 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
424 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
425 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
426 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
427 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
428 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
429 Add build rules for all the above.
431 2011-02-04 Tom Tromey <tromey@redhat.com>
433 * dwarf2read.c (dwarf2_section_empty_p): New function.
434 (dwarf2_read_section): Use dwarf2_section_empty_p.
435 (dwarf2_section_size): New function.
436 (dwarf2_get_section_info): Unconditionally read section.
437 (dwarf2_read_index): Use dwarf2_section_empty_p.
438 (partial_read_comp_unit_head): Use dwarf2_section_size.
439 (dwarf2_symbol_mark_computed): Likewise.
441 2011-02-04 David Daney <ddaney@caviumnetworks.com>
443 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
445 2011-02-04 David Daney <ddaney@caviumnetworks.com>
447 * mips-linux-tdep.c: Include xml-syscall.h.
448 (mips_linux_get_syscall_number): New function.
449 (mips_linux_init_abi): Add calls to
450 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
451 * data-directory/Makefile.in (SYSCALLS_FILES): Add
452 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
453 * syscalls/mips-n32-linux.xml: New file.
454 * syscalls/mips-n64-linux.xml: New file.
455 * syscalls/mips-o32-linux.xml: New file.
457 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
459 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
460 Complain about inverted range entries.
461 (dwarf2_record_block_ranges): Likewise.
463 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
466 * breakpoint.c (update_watchpoint): Fix name of the
467 update_global_location_list function.
468 (print_one_breakpoint): Fix typo.
469 (_initialize_breakpoint): Remove extra space in hbreak help
471 * breakpoint.h (struct bp_location) <length>: Fix field
474 2011-02-04 Pedro Alves <pedro@codesourcery.com>
476 * regcache.c (registers_changed_ptid): Don't explictly always
477 clear `current_regcache'. Only clear current_thread_ptid and
478 current_thread_arch when PTID matches. Only reinit the frame
479 cache if PTID matches the current inferior_ptid. Move alloca(0)
481 (registers_changed): ... here.
483 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
485 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
486 starts with __stack_chk_guard as stack guard symbol.
488 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
490 * disasm.c (compare_lines): Handle the end of sequence markers
491 within the line table to better support disassembling over
492 compilation unit boundaries.
494 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
496 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
497 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
498 implementation even if no symbols are available.
499 (thumb_analyze_prologue): Update call to skip_prologue_function.
500 (arm_analyze_prologue): Likewise.
502 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
504 * arm-tdep.c: Include "observer.h".
505 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
506 (arm_exidx_data_key): New static variable.
507 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
508 (struct arm_exidx_data): Likewise.
509 (arm_exidx_data_free): New function.
510 (arm_compare_exidx_entries): Likewise.
511 (arm_obj_section_from_vma): Likewise.
512 (arm_exidx_new_objfile): Likewise.
513 (arm_find_exidx_entry): Likewise.
514 (arm_exidx_fill_cache): Likewise.
515 (arm_exidx_unwind_sniffer): Likewise.
516 (arm_exidx_unwind): New global variable.
517 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
518 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
519 observer. Register arm_exidx_data_key as objfile data.
521 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
523 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
524 due to accessing uninitialized variable. Fix indentation.
526 2011-02-02 Pedro Alves <pedro@codesourcery.com>
528 * c-valprint.c (c_value_print): When doing virtual base pointer
529 adjustment, create a new value with adjusted contents rather than
530 changing the contents of the value being printed (and getting it
533 2011-02-02 Pedro Alves <pedro@codesourcery.com>
535 * xml-support.c (xml_find_attribute): New.
536 (xinclude_start_include): Use it.
537 * xml-support.h (xml_find_attribute): Declare.
538 * memory-map.c (memory_map_start_memory)
539 (memory_map_start_property): Use xml_find_attribute.
540 * osdata.c (osdata_start_osdata, osdata_start_column): Use
542 * remote.c (start_thread): Use xml_find_attribute.
543 * solib-target.c (library_list_start_segment)
544 (library_list_start_section, library_list_start_library)
545 (library_list_start_list): Use xml_find_attribute.
546 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
547 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
548 (tdesc_start_field): Use xml_find_attribute.
550 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
552 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
553 (BUILD_OCL_VTYPES): Update.
555 2011-02-02 Joel Brobecker <brobecker@adacore.com>
557 * configure.ac: Work around non-GNU sed limitation when computing
558 python version number.
559 * configure: Regenerate.
561 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
563 Fix debug printing of TYPE_INSTANCE.
564 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
565 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
567 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
569 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
570 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
571 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
572 * ada-operator.inc: Rename the file to ...
573 * ada-operator.def: ... here, wrap all the entries by macro OP.
574 * expprint.c (op_name_standard): Remove all the entries. Include
575 "std-operator.def" instead.
576 * expression.h (enum exp_opcode): Include "std-operator.def" and
577 "ada-operator.def". Move all the entries ...
578 * std-operator.def: ... here, wrap all the entries by macro OP.
580 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
582 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
583 * breakpoint.c (remove_jit_event_breakpoints): New function.
584 * jit.c (jit_descriptor_addr): Delete.
585 (registering_code): Delete.
587 (jit_inferior_data): New variable.
588 (struct jit_inferior_data): New type.
589 (get_jit_inferior_data): New function.
590 (jit_inferior_data_cleanup): New function.
591 (jit_read_descriptor): Adjust.
592 (jit_register_code): Adjust.
593 (jit_breakpoint_re_set_internal): New function; move code here ...
594 (jit_inferior_init): ... from here.
595 (jit_breakpoint_re_set): Adjust.
596 (jit_reset_inferior_data_and_breakpoints): New function.
597 (jit_inferior_created_observer): Adjust.
598 (jit_inferior_exit_hook): Adjust.
599 (jit_executable_changed_observer): New function.
600 (jit_event_handler): Adjust.
601 (_initialize_jit): Adjust.
603 2011-01-31 Michael Snyder <msnyder@vmware.com>
605 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
608 2011-01-31 Tom Tromey <tromey@redhat.com>
611 * python/python.c (execute_gdb_command): Call
613 * top.c (suppress_dont_repeat): New global.
614 (dont_repeat): Use it.
615 (prevent_dont_repeat): New function.
616 * command.h (prevent_dont_repeat): Declare.
618 2011-01-31 Tom Tromey <tromey@redhat.com>
620 * infcmd.c (finish_backward): Use breakpoint_set_silent.
621 * python/py-breakpoint.c (bppy_set_silent): Use
622 breakpoint_set_silent.
623 (bppy_set_thread): Use breakpoint_set_thread.
624 (bppy_set_task): Use breakpoint_set_task.
625 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
626 (breakpoint_set_task): Declare.
627 (make_breakpoint_silent): Remove.
628 * breakpoint.c (breakpoint_set_silent): New function.
629 (breakpoint_set_thread): Likewise.
630 (breakpoint_set_task): Likewise.
631 (make_breakpoint_silent): Remove.
633 2011-01-31 Tom Tromey <tromey@redhat.com>
635 * breakpoint.h (user_breakpoint_p): Declare.
636 * breakpoint.c (user_breakpoint_p): New function.
637 (breakpoint_1): Use it.
638 (save_breakpoints): Likewise.
640 2011-01-31 Joel Brobecker <brobecker@adacore.com>
642 * configure.ac: Add handling of Python distribution on Windows.
643 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
644 sysconfig variables are not defined, then do not use them.
645 On Windows, if LIBPL is not defined, then use prefix + '/libs'
646 instead. On Windows, return all paths using forward-slashes
647 rather than backslashes.
649 2011-01-31 Joel Brobecker <brobecker@adacore.com>
651 * configure.ac: Remove fallback behavior for building
652 against Python. Remove tweaking of Python include path.
653 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
654 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
655 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
656 Always restore CPPFLAGS and LIBS after linking test.
657 * configure: Regenerated.
658 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
659 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
660 * python/python-internal.h: Adjust includes of Python .h files.
662 2011-01-31 Joel Brobecker <brobecker@adacore.com>
664 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
667 2011-01-31 Joel Brobecker <brobecker@adacore.com>
669 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
672 2011-01-31 Yao Qi <yao@codesourcery.com>
674 * arm-linux-nat.c: Update calls to regcache_register_status
675 instead of regcache_valid_p.
676 * aix-thread.c: Likewise.
677 * i386gnu-nat.c: Likewise.
679 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
682 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
683 touching TYPE_FIELD_ARTIFICIAL.
685 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
687 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
690 2011-01-28 Pedro Alves <pedro@codesourcery.com>
692 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
693 selected, don't try iterating over the traceframe's blocks.
694 (tfile_has_stack): If there's no traceframe selected, then there's
696 (tfile_has_registers): If there's no traceframe selected, then
697 there's no registers.
699 2011-01-28 Pedro Alves <pedro@codesourcery.com>
701 * target.c (memory_xfer_partial): No need to restore shadows if we
702 haven't read anything.
704 2011-01-28 Pedro Alves <pedro@codesourcery.com>
706 * mips-tdep.c (mips_print_register): Use get_frame_register_value
707 and val_print_scalar_formatted.
709 2011-01-27 Pedro Alves <pedro@codesourcery.com>
711 * tracepoint.c (tfile_read): New.
712 (tfile_open): Use it.
713 (tfile_get_traceframe_address): Use it.
714 (tfile_trace_find): Use it.
715 (walk_blocks_callback_func): New typedef.
716 (match_blocktype): New function.
717 (traceframe_walk_blocks): New function.
718 (traceframe_find_block_type): New function.
719 (tfile_fetch_registers, tfile_xfer_partial)
720 (tfile_get_trace_state_variable_value): Use
721 traceframe_find_block_type and tfile_read.
723 2011-01-26 Kevin Buettner <kevinb@redhat.com>
725 * remote-mips.c: Add internationalization mark ups. Remove
726 trailing \n from already marked up strings.
728 2011-01-26 Tom Tromey <tromey@redhat.com>
730 * python/py-prettyprint.c (print_string_repr): Clear
731 'addressprint' option when calling val_print_string.
732 (print_children): Handle Val_pretty_default. Clear 'addressprint'
733 option when calling val_print_string.
735 2011-01-26 Tom Tromey <tromey@redhat.com>
737 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
739 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
741 (gdb_py_longest, gdb_py_ulongest): New typedefs.
742 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
743 (gdb_py_long_as_ulongest): New defines.
744 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
745 (gdb_py_int_as_long): Declare.
746 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
747 GDB_PY_LL_ARG, gdb_py_object_from_longest.
748 (valpy_long): Add comment.
749 * python/py-utils.c (get_addr_from_python): Use
750 gdb_py_long_as_ulongest. Handle overflow properly.
751 (gdb_py_object_from_longest): New function.
752 (gdb_py_object_from_ulongest): Likewise.
753 (gdb_py_int_as_long): Likewise.
754 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
755 * python/py-symtab.c (salpy_get_pc): Use
756 gdb_py_long_from_ulongest.
757 (salpy_get_line): Use PyInt_FromLong.
758 * python/py-param.c (set_parameter_value): Use
760 * python/py-lazy-string.c (stpy_get_address): Use
761 gdb_py_long_from_ulongest.
762 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
763 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
764 * python/py-breakpoint.c (bppy_set_thread): Use
766 (bppy_set_task): Likewise.
767 (bppy_set_ignore_count): Likewise.
768 (bppy_set_hit_count): Likewise.
769 * python/py-block.c (blpy_get_start): Use
770 gdb_py_object_from_ulongest.
771 (blpy_get_end): Likewise.
772 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
774 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
777 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
778 * gdb/solib.c (solib_read_symbols): Check for addr_low in
779 equality test for objfile, initialize addr_low if needed.
781 2011-01-25 Pedro Alves <pedro@codesourcery.com>
783 * tui/tui-regs.c (tui_register_format): Remove dead code.
785 2011-01-25 Pedro Alves <pedro@codesourcery.com>
787 * printcmd.c (print_formatted): Use val_print_scalar_formatted
788 instead of print_scalar_formatted.
789 (print_scalar_formatted): Don't handle 's' format strings here,
790 and add an assertion that we never see such format here.
791 * valprint.h (val_print_scalar_formatted): Declare.
792 * valprint.c (val_print_scalar_formatted): New.
793 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
794 instead of print_scalar_formatted.
795 * jv-valprint.c (java_val_print): Ditto.
796 * p-valprint.c (pascal_val_print): Ditto.
797 * ada-valprint.c (ada_val_print_1): Ditto.
798 * f-valprint.c (f_val_print): Ditto.
799 * infcmd.c (registers_info): Ditto.
800 * m2-valprint.c (m2_val_print): Ditto.
802 2011-01-25 Pedro Alves <pedro@codesourcery.com>
804 * m2-valprint.c (print_unbounded_array): Pass
805 value_contents_for_printing rather than value_contents, to
806 m2_print_array_contents. Also pass in the value.
808 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
810 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
811 (save_gdb_index_command): Switch to .gdb_index version 4.
813 2011-01-25 Pedro Alves <pedro@codesourcery.com>
815 * mi/mi-main.c (get_register): Use get_frame_register_value rather
816 than frame_register, and always pass a valid value to val_print.
818 2011-01-25 Pedro Alves <pedro@codesourcery.com>
820 Centralize printing "<optimized out>".
822 * valprint.h (val_print_optimized_out): Declare.
823 * cp-valprint.c (cp_print_value_fields): Use
824 val_print_optimized_out.
825 * jv-valprint.c (java_print_value_fields): Ditto.
826 * p-valprint.c (pascal_object_print_value_fields): Ditto.
827 * printcmd.c (print_formatted): Ditto.
828 * valprint.c (valprint_check_validity): Ditto.
829 (value_check_printable): Ditto.
830 (val_print_optimized_out): New.
832 2011-01-25 Pedro Alves <pedro@codesourcery.com>
834 * infcmd.c (default_print_registers_info): Allocate values so to
835 never pass a NULL value to val_print.
837 2011-01-25 Pedro Alves <pedro@codesourcery.com>
839 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
840 boolean. Make sure to always pass a value that matches the
841 contents buffer to callees. Preserve `address' for following
843 * value.c (value_contents_for_printing_const): New.
844 (value_address): Constify value argument.
845 * value.h (value_contents_for_printing_const): Declare.
846 (value_address): Constify value argument.
848 2011-01-25 Pedro Alves <pedro@codesourcery.com>
850 * regcache.c (struct regcache_descr): Rename
851 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
852 and sizeof_cooked_register_valid_p to
853 sizeof_cooked_register_status.
854 (init_regcache_descr): Adjust.
855 (struct regcache): Rename register_valid_p field to
857 (regcache_xmalloc_1, regcache_xfree, regcache_save)
858 (do_cooked_read): Adjust.
859 (regcache_valid_p): Rename to ...
860 (regcache_register_status): ... this. Adjust.
861 (regcache_invalidate): Adjust.
862 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
864 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
865 as unavailable, not valid.
866 (regcache_dump): Adjust.
867 * regcache.h (enum register_status): New.
868 (regcache_register_status): Declare.
869 (regcache_invalidate): Delete declaration.
870 * corelow.c (get_core_registers): Adjust.
871 * tracepoint.c (tfile_fetch_registers): Adjust.
872 * trad-frame.c (REG_VALUE): Rename to ...
873 (TF_REG_VALUE): ... this.
874 (REG_UNKNOWN): Rename to ...
875 (TF_REG_UNKNOWN): ... this.
876 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
877 * mi/mi-main.c (register_changed_p): Adjust.
879 2011-01-25 Pedro Alves <pedro@codesourcery.com>
881 * regcache.c (struct regcache_descr): Remove outdated comment.
882 (init_regcache_descr): Remove sizeof_raw_register_valid_p
884 (regcache_xmalloc): Rename to ...
885 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
886 Allocate the regcache type accordingly.
887 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
888 (regcache_xfree): Asser the source is also readonly. Copy sizeof
889 cooked registers, not raw.
890 (regcache_dup_no_passthrough): Delete.
891 (get_thread_arch_regcache): Use regcache_xmalloc_1.
892 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
893 mention obsolete write_register_bytes.
894 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
896 2011-01-25 Pedro Alves <pedro@codesourcery.com>
898 Stop remote_read_bytes from handling partial reads itself.
900 * remote-fileio.c: Include target.h.
901 (remote_fileio_write_bytes): Delete.
902 (remote_fileio_func_open, remote_fileio_func_write)
903 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
905 (remote_fileio_func_stat): Use target_read_memory and
907 (remote_fileio_func_gettimeofday): Use target_write_memory.
908 (remote_fileio_func_system): Use target_read_memory.
909 * remote.c (remote_write_bytes): Make it static.
910 (remote_read_bytes): Don't handle partial reads here.
911 * remote.h (remote_read_bytes): Delete declaration.
913 2011-01-25 Pedro Alves <pedro@codesourcery.com>
915 Simplify XML parsing a bit.
917 * xml-support.h (gdb_xml_parse_quick): Declare.
918 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
919 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
921 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
922 gdb_xml_create_parser_and_cleanup_1.
923 (gdb_xml_parse_quick): New.
924 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
925 * osdata.c (osdata_parse): Ditto.
926 * remote.c (remote_threads_info): Ditto.
927 * solib-target.c (solib_target_parse_libraries): Ditto.
928 * xml-syscall.c (syscall_parse_xml): Ditto.
929 * xml-tdesc.c (tdesc_parse_xml): Ditto.
931 2011-01-24 Kevin Buettner <kevinb@redhat.com>
933 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
934 with remote-mips.o added to gdb_target_obs.
935 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
937 2011-01-24 Pedro Alves <pedro@codesourcery.com>
939 * ada-valprint.c (val_print_packed_array_elements): Pass the
940 correct struct value to val_print.
941 (ada_val_print_1): Ditto.
943 2011-01-24 Pedro Alves <pedro@codesourcery.com>
945 Don't lose embedded_offset in printing routines throughout.
947 * valprint.h (val_print_array_elements): Change prototype.
948 * valprint.c (val_print_array_elements): Add `embedded_offset'
949 parameter, and adjust to pass it down to val_print, while passing
950 `valaddr' or `address' unmodified. Take embedded_offset into
951 account when checking repetitions.
952 * c-valprint.c (c_val_print): Pass embedded_offset to
953 val_print_array_elements instead of adjusting `valaddr' and
955 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
956 embedded_offset to val_print_array_elements instead of adjusting
958 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
959 * p-valprint.c (pascal_val_print): Pass embedded_offset to
960 val_print_array_elements and pascal_object_print_value_fields
961 instead of adjusting `valaddr'.
962 (pascal_object_print_value_fields): Add `offset' parameter, and
964 (pascal_object_print_value): Add `offset' parameter, and adjust to
966 (pascal_object_print_static_field): Use
967 value_contents_for_printing/value_embedded_offset, rather than
969 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
970 parameter, and adjust to use it. Use
971 value_contents_for_printing/value_embedded_offset, rather than
973 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
974 (ada_val_print_array): Add `offset' parameter, and adjust to use
976 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
977 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
978 Instead work with offsets. Use
979 value_contents_for_printing/value_embedded_offset, rather than
980 value_contents. Change `defer_val_int' local type to CORE_ADDR,
981 and use value_from_pointer to extract a target pointer, rather
982 than value_from_longest.
983 (print_variant_part): Add `offset' parameter. Replace
984 `outer_valaddr' parameter by a new `outer_offset' parameter.
985 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
986 (ada_value_print): Use
987 value_contents_for_printing/value_embedded_offset, rather than
989 (print_record): Add `offset' parameter, and adjust to pass it
991 (print_field_values): Add `offset' parameter. Replace
992 `outer_valaddr' parameter by a new `outer_offset' parameter.
993 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
994 Use value_contents_for_printing/value_embedded_offset, rather than
996 * d-valprint.c (dynamic_array_type): Use
997 value_contents_for_printing/value_embedded_offset, rather than
999 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
1000 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1001 (java_print_value_fields): Take `offset' into account. Don't
1002 re-adjust `valaddr'. Instead pass down adjusted offsets.
1003 (java_val_print): Take `embedded_offset' into account. Pass it to
1004 java_print_value_fields.
1005 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
1006 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
1007 down adjusted offsets.
1008 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
1009 (f_val_print): Take `embedded_offset' into account.
1011 2011-01-21 Joel Brobecker <brobecker@adacore.com>
1013 * inflow.c: Include "gdbcmd.h".
1014 (interactive_mode): New static global, moved here from top.c.
1015 (show_interactive_mode): New function, moved here from top.c.
1016 use gdb_has_a_terminal instead of input_from_terminal_p to
1017 determine the current mode.
1018 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
1020 (_initialize_inflow): Add the "set/show interactive-mode"
1021 commands. Moved here from top.c, after having adjusted slightly
1023 * top.c (interactive_mode, show_interactive_mode): Delete, moved
1025 (input_from_terminal_p): Remove handling of "interactive-mode"
1026 setting, moved to infow.c.
1027 (init_main): Remove creation of the "set/show interactive-mode"
1028 commands, moved to inflow.c.
1030 2011-01-19 Joel Brobecker <brobecker@adacore.com>
1032 * NEWS: Add entry for native ia64-hpux support.
1034 2011-01-19 Tom Tromey <tromey@redhat.com>
1037 * thread.c (free_thread): Free 'name'.
1038 (print_thread_info): Emit thread name. Change CLI output.
1039 (thread_name_command): New function.
1040 (do_captured_thread_select): Emit newline.
1041 (_initialize_thread): Register 'thread name' command.
1042 * target.h (struct target_ops) <to_thread_name>: New field.
1043 (target_thread_name): New macro.
1044 * target.c (update_current_target): Handle to_thread_name.
1045 * python/py-infthread.c (thpy_get_name): New function.
1046 (thpy_set_name): Likewise.
1047 (thread_object_getset): Add "name".
1048 * linux-nat.c (linux_nat_thread_name): New function.
1049 (linux_nat_add_target): Set to_thread_name.
1050 * gdbthread.h (struct thread_info) <name>: New field.
1052 2011-01-18 Joel Brobecker <brobecker@adacore.com>
1054 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
1055 (ada_val_print_1): Likewise.
1057 2011-01-18 Joel Brobecker <brobecker@adacore.com>
1059 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
1060 upper limit address is not greater than the function end address
1061 when the upper limit could not be computed using the debugging
1064 2011-01-17 Tom Tromey <tromey@redhat.com>
1066 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
1068 * utils.c: Include gdb_regex.h.
1069 (do_regfree_cleanup): New function.
1070 (make_regfree_cleanup): Likewise.
1071 (get_regcomp_error): Likewise.
1072 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
1074 2011-01-17 Tom Tromey <tromey@redhat.com>
1076 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
1079 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1081 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
1082 for internal variables.
1083 (last_was_structop): New static variable.
1084 (COMPLETE): New token.
1085 (field_exp): New rule to group all '.' suffix handling.
1086 Add mark_struct_expression calls when approriate to be able
1087 to correctly find fields for completion.
1088 (yylex): Adapt to handle field completion and set INTVAR when
1091 2011-01-14 Yao Qi <yao@codesourcery.com>
1093 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
1094 save_reggroup, restore_reggroup and all_reggroup.
1096 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1098 * ada-valprint. (ada_printchar): Use the correct type length
1099 in call to ada_emit_char.
1100 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
1102 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1104 * solib-som.h (hpux_major_release): Declare variable here.
1105 * solib-som.c: Remove <sys/utsname.h> header.
1106 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
1107 (hpux_major_release): Make global, change default value to
1108 DEFAULT_HPUX_MAJOR_RELEASE.
1109 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
1110 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
1111 Add "solib-som.h" header.
1112 (set_hpux_major_release): New function.
1113 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
1115 2011-01-14 Mike Frysinger <vapier@gentoo.org>
1117 * configure.tgt (*-*-uclinux*): Match more Linux os targets
1119 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1121 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
1122 new-line at end of warning message.
1123 (ia64_hpux_store_register): Remove trailing new-line at end of
1125 * ia64-hpux-tdep.c: Rephrase comment.
1126 * solib-ia64-hpux.c (struct dld_info): Change type of field
1127 dld_flags from "long long" to ULONGEST.
1129 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1131 * target.h (deprecated_child_ops): Delete declaration.
1132 * target.c (deprecated_child_ops): Delete definition.
1134 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1136 * Makefile.in (hpux-thread.o): Delete rule.
1137 * configure.ac: Don't check for HPUX DCE threads support.
1138 * configure, config.in: Regenerate.
1139 * hppa-hpux-nat.c (child_suppress_run): Delete.
1140 (hppa_hpux_child_can_run): Delete.
1141 (_initialize_hppa_hpux_nat): Don't override to_can_run.
1142 * hpux-thread.c: Delete.
1144 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1146 * hpux-thread.c (hpux_pid_to_str): Delete.
1148 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1150 * ada-valprint.c (ada_emit_char): Remove strange code.
1151 Check that c is <= UCHAR_MAX before passing it to isascii.
1152 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
1154 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1156 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
1157 to the case where instream is stdin.
1159 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1161 * ia64-tdep.h (struct regcache): Forward declare.
1162 (struct ia64_infcall_ops): New struct type.
1163 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
1165 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
1166 Renames ia64_find_global_pointer.
1167 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
1168 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
1169 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
1171 (ia64_infcall_ops): New static global constant.
1172 (ia64_gdbarch_init): Set tdep->infcall_ops.
1173 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
1174 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
1175 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
1176 (ia64_hpux_dummy_code): New static global constant.
1177 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
1178 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
1179 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
1181 (ia64_hpux_infcall_ops): New static global constant.
1182 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
1183 for inferior function calls to work properly on ia64-hpux.
1185 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1187 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
1188 * ia64-tdep.h (struct frame_info): forward declaration.
1189 (struct gdbarch_tdep): Add field size_of_register_frame.
1190 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
1191 to determine the size of the register frame.
1192 (ia64_size_of_register_frame): New function.
1193 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
1194 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
1195 (IA64_HPUX_UREG_REASON): New macro.
1196 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
1198 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
1199 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
1200 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
1203 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1205 Add support for ia64-hpux.
1206 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
1207 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
1209 * configure.host: Add handling for ia64-hpux hosts. Add associated
1211 * configure.tgt: Add handling for ia64-hpux targets.
1212 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
1213 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
1214 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
1216 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1218 [ttrace] Compute thread list immediately after attach.
1219 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
1221 (inf_ttrace_attach): Use it.
1223 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1225 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
1226 if we could not determine the frame's function address. Instead,
1227 use the frame's PC, and then continue.
1229 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1231 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
1232 not already defined.
1234 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1236 * ia64-tdep.c (ia64_struct_type_p): New function.
1237 (ia64_extract_return_value): Handle integral values that are
1238 less than 8 bytes long.
1239 (ia64_push_dummy_call): Likewise.
1241 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1243 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
1244 floatformat_ia64_ext.
1245 (floatformat_ia64_ext_big): New static const.
1246 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
1248 2011-01-12 Tom Tromey <tromey@redhat.com>
1250 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
1252 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
1253 (mi_cmd_thread_list_ids): Likewise.
1254 (mi_cmd_data_list_changed_registers): Likewise.
1255 (mi_cmd_data_list_register_values): Likewise.
1256 (mi_cmd_data_write_register_values): Likewise.
1257 (mi_cmd_data_evaluate_expression): Likewise.
1258 (mi_cmd_data_read_memory): Likewise.
1259 (mi_cmd_data_read_memory_bytes): Likewise.
1260 (mi_cmd_data_write_memory): Likewise.
1261 (mi_cmd_enable_timings): Likewise.
1262 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
1263 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
1264 (mi_cmd_var_delete): Likewise.
1265 (mi_cmd_var_set_format): Likewise.
1266 (mi_cmd_var_show_format): Likewise.
1267 (mi_cmd_var_info_num_children): Likewise.
1268 (mi_cmd_var_list_children): Likewise.
1269 (mi_cmd_var_info_type): Likewise.
1270 (mi_cmd_var_info_expression): Likewise.
1271 (mi_cmd_var_show_attributes): Likewise.
1272 (mi_cmd_var_assign): Likewise.
1273 (mi_cmd_var_update): Likewise.
1274 (mi_cmd_enable_pretty_printing): Likewise.
1275 (mi_cmd_var_set_update_range): Likewise.
1276 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
1278 (mi_cmd_target_file_put): Likewise.
1279 (mi_cmd_target_file_delete): Likewise.
1280 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
1282 (mi_cmd_stack_info_depth): Likewise.
1283 (mi_cmd_stack_list_locals): Likewise.
1284 (mi_cmd_stack_list_args): Likewise.
1285 (mi_cmd_stack_select_frame): Likewise.
1286 (mi_cmd_stack_select_frame): Likewise.
1287 (mi_cmd_stack_info_frame): Likewise.
1288 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
1290 (mi_cmd_file_list_exec_source_files): Likewise.
1291 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
1292 (mi_cmd_env_cd): Likewise.
1293 (mi_cmd_env_path): Likewise.
1294 (mi_cmd_env_dir): Likewise.
1295 (mi_cmd_inferior_tty_show): Likewise.
1296 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
1297 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
1298 (mi_cmd_break_watch): Likewise.
1300 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
1302 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
1303 (ppc_linux_insert_hw_breakpoint): Likewise.
1304 (ppc_linux_remove_hw_breakpoint): Likewise.
1305 (ppc_linux_insert_watchpoint): Likewise.
1307 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1308 Jan Kratochvil <jan.kratochvil@redhat.com>
1310 PR fortran/11104 and DWARF unbound arrays detection.
1311 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
1312 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
1313 unspecified upper bound.
1314 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
1315 variables array_size_array, tmp_type and offset_item. New variable
1316 array. Remove call to f77_get_upperbound. New variables array_type
1317 and index. Call value_subscripted_rvalue for each dimenasion. Remove
1318 the final call to deprecated_set_value_type.
1320 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1322 Make value allocations more lazy.
1323 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
1324 instead of allocate_value and set_value_lazy when possible.
1325 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
1326 instead of allocate_value and set_value_lazy.
1327 * findvar.c (value_of_register_lazy): Likewise.
1328 (read_var_value): Remove V preallocation, call just check_typedef in
1329 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
1330 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
1331 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
1332 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
1333 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
1334 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
1335 the end, remove set_value_lazy there.
1336 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
1337 instead of allocate_value and set_value_lazy when possible.
1338 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
1339 * value.c (allocate_computed_value): Use allocate_value_lazy instead
1340 of allocate_value and set_value_lazy.
1341 (value_from_contents_and_address): Use allocate_value_lazy instead of
1342 allocate_value and set_value_lazy when possible.
1344 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1346 * disasm.c (dump_insns): Support dumping opcodes for MI.
1347 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
1348 dumping of instruction opcodes.
1350 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
1352 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
1355 2011-01-11 Tom Tromey <tromey@redhat.com>
1357 * thread.c (do_captured_thread_select): Emit newline before
1360 2011-01-11 Michael Snyder <msnyder@vmware.com>
1362 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
1363 * score-tdep.c: Ditto.
1364 * score-tdep.h: Ditto.
1365 * ser-base.c: Ditto.
1366 * ser-go32.c: Ditto.
1369 * ser-mingw.c: Ditto.
1370 * ser-pipe.c: Ditto.
1372 * ser-unix.c: Ditto.
1373 * sh64-tdep.c: Ditto.
1374 * shnbsd-nat.c: Ditto.
1378 * solib-darwin.c: Ditto.
1379 * solib-frv.c: Ditto.
1381 * solib-irix.c: Ditto.
1382 * solib-osf.c: Ditto.
1383 * solib-pa64.c: Ditto.
1384 * solib-som.c: Ditto.
1385 * solib-spu.c: Ditto.
1386 * solib-sunos.c: Ditto.
1387 * solib-svr4.c: Ditto.
1389 * sol-thread.c: Ditto.
1393 * sparc64-linux-tdep.c: Ditto.
1394 * sparc64-tdep.c: Ditto.
1395 * sparc-linux-nat.c: Ditto.
1396 * sparc-linux-tdep.c: Ditto.
1397 * sparc-sol2-nat.c: Ditto.
1398 * sparc-sol2-tdep.c: Ditto.
1399 * sparc-tdep.c: Ditto.
1400 * sparc-tdep.h: Ditto.
1401 * spu-tdep.c: Ditto.
1402 * stabsread.c: Ditto.
1403 * stabsread.h: Ditto.
1411 * target-descriptions.c: Ditto.
1412 * target-descriptions.h: Ditto.
1414 * target-memory.c: Ditto.
1415 * terminal.h: Ditto.
1418 * tracepoint.c: Ditto.
1419 * tracepoint.h: Ditto.
1420 * trad-frame.h: Ditto.
1421 * typeprint.c: Ditto.
1423 2011-01-11 Michael Snyder <msnyder@vmware.com>
1425 * ui-file.c: Comment cleanup, mostly periods and spaces.
1430 * v850-tdep.c: Ditto.
1431 * valarith.c: Ditto.
1433 * valprint.c: Ditto.
1434 * valprint.h: Ditto.
1439 * vax-tdep.c: Ditto.
1443 * windows-nat.c: Ditto.
1444 * windows-tdep.c: Ditto.
1445 * xcoffread.c: Ditto.
1446 * xcoffsolib.c: Ditto.
1447 * xml-support.c: Ditto.
1448 * xstormy16-tdep.c: Ditto.
1449 * xtensa-tdep.c: Ditto.
1450 * xtensa-tdep.h: Ditto.
1452 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1454 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
1455 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
1457 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1458 Thiago Jung Bauermann <bauerman@br.ibm.com>
1460 Implement support for PowerPC BookE ranged watchpoints.
1462 (struct breakpoint_ops) <resources_needed>: New method.
1463 Initialize to NULL in all existing breakpoint_ops instances.
1464 (struct breakpoint) <exact>: New field.
1465 (target_exact_watchpoints): Declare external global.
1466 * breakpoint.c (target_exact_watchpoints): New global flag.
1467 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
1468 b->enable_state to bp_enabled before calling
1469 hw_watchpoint_used_count.
1470 (hw_watchpoint_used_count): Iterate over all bp_locations in a
1471 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
1473 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
1474 if the watchpoint is exact.
1475 (resources_needed_watchpoint): New function.
1476 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
1477 (watch_command_1): Set b->exact if the user asked for an exact
1478 watchpoint and one can be set.
1479 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
1480 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
1481 the user asks for an exact watchpoint and one can be set. Return
1482 number of needed debug registers to watch the expression.
1483 * gdbtypes.c (is_scalar_type): New function, based on
1484 valprint.c:scalar_type_p.
1485 (is_scalar_type_recursive): New function.
1486 * gdbtypes.h (is_scalar_type_recursive): Declare.
1487 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
1488 handle regions when ranged watchpoints are available.
1489 (create_watchpoint_request): New function.
1490 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1491 create_watchpoint_request.
1492 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
1493 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
1494 `set powerpc' and `show powerpc' commands.
1495 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1496 Mention documentation comment in the target macro.
1497 (target_region_ok_for_hw_watchpoint): Document return value.
1499 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1501 * breakpoint.c (update_watchpoint): Decide on using a software or
1502 hardware watchpoint after the bp_locations are created.
1504 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1506 Convert hardware watchpoints to use breakpoint_ops.
1507 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
1508 <insert_location>: ... this. Return int instead of void.
1509 Accept pointer to struct bp_location instead of pointer to
1510 struct breakpoint. Adapt all implementations.
1511 (breakpoint_ops) <remove>: Rename to...
1512 <remove_location>: ... this. Accept pointer to struct bp_location
1513 instead of pointer to struct breakpoint. Adapt all implementations.
1514 * breakpoint.c (insert_catchpoint): Delete function.
1515 (insert_bp_location): Call the watchpoint or catchpoint's
1516 breakpoint_ops.insert method.
1517 (remove_breakpoint_1): Call the watchpoint or catchpoint's
1518 breakpoint_ops.remove method.
1519 (insert_watchpoint, remove_watchpoint): New functions.
1520 (watchpoint_breakpoint_ops): New structure.
1521 (watch_command_1): Initialize the OPS field.
1522 * inf-child.c (inf_child_insert_fork_catchpoint)
1523 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
1524 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
1525 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
1527 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
1528 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
1529 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
1530 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
1531 * target.c (update_current_target): Change default implementation of
1532 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
1533 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
1534 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
1535 to_set_syscall_catchpoint to return_one.
1536 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
1537 (debug_to_insert_exec_catchpoint): Report return value.
1538 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
1539 (to_insert_exec_catchpoint): Change declaration to return int instead
1542 2011-01-11 Michael Snyder <msnyder@vmware.com>
1544 * arm-tdep.c: Internationalization.
1547 * fork-child.c: Ditto.
1548 * nto-procfs.c: Ditto.
1549 * ppc-sysv-tdep.c: Ditto.
1551 * remote-mips.c: Ditto.
1553 * rs6000-nat.c: Ditto.
1554 * rs6000-tdep.c: Ditto.
1558 * xml-support.c: Ditto.
1559 * mi/mi-cmd-break.c: Ditto.
1560 * mi/mi-cmd-var.c: Ditto.
1561 * mi/mi-interp.c: Ditto.
1562 * mi/mi-main.c: Ditto.
1564 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
1566 * remote-sim.c (gdbsim_store_register): Update API to
1567 sim_store_register to check more error conditions.
1569 2011-01-10 Michael Snyder <msnyder@vmware.com>
1571 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
1572 * nto-tdep.c: Ditto.
1573 * nto-tdep.h: Ditto.
1574 * objc-exp.y: Ditto.
1575 * objc-lang.c: Ditto.
1576 * objfiles.c: Ditto.
1577 * objfiles.h: Ditto.
1578 * observer.c: Ditto.
1579 * opencl-lang.c: Ditto.
1582 * parser-defs.h: Ditto.
1585 * posix-hdep.c: Ditto.
1586 * ppcbug-rom.c: Ditto.
1587 * ppc-linux-nat.c: Ditto.
1588 * ppc-linux-tdep.c: Ditto.
1589 * ppc-linux-tdep.h: Ditto.
1590 * ppcnbsd-tdep.c: Ditto.
1591 * ppcobsd-tdep.c: Ditto.
1592 * ppcobsd-tdep.h: Ditto.
1593 * ppc-sysv-tdep.c: Ditto.
1594 * ppc-tdep.h: Ditto.
1595 * printcmd.c: Ditto.
1596 * proc-abi.c: Ditto.
1597 * proc-flags.c: Ditto.
1599 * proc-utils.h: Ditto.
1600 * progspace.h: Ditto.
1601 * prologue-value.c: Ditto.
1602 * prologue-value.h: Ditto.
1603 * psympriv.h: Ditto.
1605 * p-typeprint.c: Ditto.
1606 * p-valprint.c: Ditto.
1607 * ravenscar-sparc-thread.c: Ditto.
1608 * ravenscar-thread.c: Ditto.
1609 * ravenscar-thread.h: Ditto.
1611 * regcache.c: Ditto.
1612 * regcache.h: Ditto.
1614 * remote-fileio.c: Ditto.
1615 * remote-fileio.h: Ditto.
1617 * remote-m32r-sdi.c: Ditto.
1618 * remote-mips.c: Ditto.
1619 * remote-sim.c: Ditto.
1620 * rs6000-aix-tdep.c: Ditto.
1621 * rs6000-nat.c: Ditto.
1622 * rs6000-tdep.c: Ditto.
1624 2011-01-10 Michael Snyder <msnyder@vmware.com>
1626 * charset.c (validate): Internationalization.
1627 * coffread.c (read_one_sym): Ditto.
1628 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
1629 * h8300-tdep.c (H8300_extract_return_value): Ditto.
1630 * inflow.c (new_tty): Ditto.
1631 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
1632 * m32c-tdep.c (m32c_return_value): Ditto.
1633 * mep-tdep.c (mep_store_return_value): Ditto.
1634 * score-tdep.c (score7_fetch_insn): Ditto.
1635 * ser-mingw.c (pipe_windows_open): Ditto.
1636 * sh64-tdep.c (sh64_extract_return_value): Ditto.
1637 * spu-tdep.c (spu_register_type): Ditto.
1638 * tracepoint.c (trace_find_command): Ditto.
1639 * valarith.c (value_pos): Ditto.
1641 2011-01-10 Joel Brobecker <brobecker@adacore.com>
1643 * ada-valprint.c (printstr): Minor comment reformatting.
1645 2011-01-08 Michael Snyder <msnyder@vmware.com>
1647 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
1650 2011-01-08 Michael Snyder <msnyder@vmware.com>
1652 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
1653 * hppa-hpux-tdep.c: Ditto.
1654 * hppa-linux-nat.c: Ditto.
1655 * hppa-linux-tdep.c: Ditto.
1656 * hppanbsd-tdep.c: Ditto.
1657 * hppa-tdep.c: Ditto.
1658 * hppa-tdep.h: Ditto.
1659 * hpux-thread.c: Ditto.
1660 * i386-cygwin-tdep.c: Ditto.
1661 * i386-darwin-nat.c: Ditto.
1662 * i386gnu-nat.c: Ditto.
1663 * i386-linux-nat.c: Ditto.
1664 * i386-linux-tdep.c: Ditto.
1665 * i386-nat.c: Ditto.
1666 * i386-nat.h: Ditto.
1667 * i386nbsd-tdep.c: Ditto.
1668 * i386-sol2-nat.c: Ditto.
1669 * i386-stub.c: Ditto.
1670 * i386-tdep.c: Ditto.
1671 * i386-tdep.h: Ditto.
1672 * i387-tdep.c: Ditto.
1673 * ia64-linux-nat.c: Ditto.
1674 * ia64-linux-tdep.c: Ditto.
1675 * ia64-tdep.c: Ditto.
1679 * inferior.c: Ditto.
1680 * inferior.h: Ditto.
1686 * iq2000-tdep.c: Ditto.
1687 * irix5-nat.c: Ditto.
1693 * jv-typeprint.c: Ditto.
1694 * jv-valprint.c: Ditto.
1695 * language.c: Ditto.
1696 * language.h: Ditto.
1697 * linespec.c: Ditto.
1698 * linux-fork.c: Ditto.
1699 * linux-nat.c: Ditto.
1700 * linux-thread-db.c: Ditto.
1701 * lm32-tdep.c: Ditto.
1703 2011-01-08 Michael Snyder <msnyder@vmware.com>
1705 * m2-exp.y: Comment cleanup, mostly periods and spaces.
1707 * m2-typeprint.c: Ditto.
1708 * m2-valprint.c: Ditto.
1709 * m32c-tdep.c: Ditto.
1710 * m32r-linux-nat.c: Ditto.
1711 * m32r-rom.c: Ditto.
1712 * m32r-tdep.c: Ditto.
1713 * m32r-tdep.h: Ditto.
1714 * m68hc11-tdep.c: Ditto.
1715 * m58klinux-nat.c: Ditto.
1716 * m68k-tdep.c: Ditto.
1717 * m88k-tdep.c: Ditto.
1718 * m88k-tdep.h: Ditto.
1719 * machoread.c: Ditto.
1720 * macrocmd.c: Ditto.
1721 * macroexp.c: Ditto.
1722 * macrotab.c: Ditto.
1725 * mdebugread.c: Ditto.
1726 * mdebugread.h: Ditto.
1729 * memory-map.h: Ditto.
1730 * mep-tdep.c: Ditto.
1731 * microblaze-rom.c: Ditto.
1732 * microblaze-tdep.c: Ditto.
1734 * mips-irix-tdep.c: Ditto.
1735 * mips-linux-nat.c: Ditto.
1736 * mips-linux-tdep.c: Ditto.
1737 * mips-linux-tdep.h: Ditto.
1738 * mipsnbsd-nat.c: Ditto.
1739 * mipsnbsd-tdep.c: Ditto.
1740 * mipsread.c: Ditto.
1741 * mips-tdep.c: Ditto.
1742 * mips-tdep.h: Ditto.
1743 * mn10300-linux-tdep.c: Ditto.
1744 * mn10300-tdep.c: Ditto.
1745 * mn10300-tdep.h: Ditto.
1748 * moxie-tdep.c: Ditto.
1749 * moxie-tdep.h: Ditto.
1752 2011-01-08 Mike Frysinger <vapier@gentoo.org>
1754 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
1756 2011-01-08 Robert Millan <rmh@gnu.org>
1758 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
1760 2011-01-07 Michael Snyder <msnyder@vmware.com>
1762 * charset.c (_initialize_charset): Fix typo in string.
1764 2011-01-07 Michael Snyder <msnyder@vmware.com>
1766 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
1768 * tui/tui-layout.c (tui_set_layout_for_display_command):
1769 Split line so that operator goes to beginning of line.
1770 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
1771 assignment out of if statement.
1773 2011-01-07 Michael Snyder <msnyder@vmware.com>
1775 * ada-lang.c: Comment cleanup, mostly periods and spaces.
1776 * ada-lang.h: Ditto.
1777 * ada-tasks.c: Ditto.
1778 * ada-valprint.c: Ditto.
1779 * aix-threads.c: Ditto.
1780 * alpha-linux-nat.c: Ditto.
1781 * alpha-linux-tdep.c: Ditto.
1782 * alpha-mdebug-tdep.c: Ditto.
1783 * alpha-nat.c: Ditto.
1784 * alpha-osf1-tdep.c: Ditto.
1785 * alpha-tdep.c: Ditto.
1786 * alphabsd-nat.c: Ditto.
1787 * alphabsd-tdep.c: Ditto.
1788 * amd64-darwin-tdep.c: Ditto.
1789 * amd64-linux-nat.c: Ditto.
1790 * amd64-linux-tdep.c: Ditto.
1791 * amd64-sol2-tdep.c: Ditto.
1792 * amd64-tdep.c: Ditto.
1793 * amd64-fbsd-tdep.c: Ditto.
1794 * amd64-nbsd-tdep.c: Ditto.
1795 * amd64-obsd-tdep.c: Ditto.
1796 * amd64-linux-nat.c: Ditto.
1797 * amd64-linux-tdep.c: Ditto.
1798 * arm-tdep.c: Ditto.
1799 * arm-tdep.h: Ditto.
1800 * armnbsd-nat.c: Ditto.
1801 * avr-tdep.c: Ditto.
1802 * bfin-tdep.c: Ditto.
1804 * c-typeprintc: Ditto.
1805 * c-valprint.c: Ditto.
1806 * coff-pe-read.h: Ditto.
1807 * coffreead.c: Ditto.
1808 * cris-tdep.c: Ditto.
1810 * darwin-nat-info.c: Ditto.
1811 * darwin-nat.c: Ditto.
1812 * dbug-rom.c: Ditto.
1816 * dec-thread.c: Ditto.
1818 * demangle.c: Ditto.
1819 * dicos-tdep.c: Ditto.
1820 * dictionary.c: Ditto.
1821 * dictionary.h: Ditto.
1822 * dink32-rom.c: Ditto.
1824 * doublest.c: Ditto.
1826 * dummy-frame.c: Ditto.
1827 * dwarf2-frame.c: Ditto.
1828 * dwarf2expr.c: Ditto.
1829 * dwarf2loc.c: Ditto.
1830 * dwarf2read.c: Ditto.
1834 * event-top.h: Ditto.
1835 * exceptions.c: Ditto.
1836 * exceptions.h: Ditto.
1838 * expprint.c: Ditto.
1839 * expression.h: Ditto.
1843 * f-typeprint.c: Ditto.
1844 * f-valprint.c: Ditto.
1845 * fbsd-nat.c: Ditto.
1847 * fork-child.c: Ditto.
1850 * frv-linux-tdep.c: Ditto.
1851 * frv-tdep.c: Ditto.
1853 * gdb-stabs.h: Ditto.
1854 * gdb_assert.h: Ditto.
1855 * gdb_string.h: Ditto.
1856 * gdb_thread_db.h: Ditto.
1857 * gdb_wait.h: Ditto.
1858 * gdbarch.sh: Ditto.
1860 * gdbthread.h: Ditto.
1861 * gdbtypes.c: Ditto.
1862 * gdbtypes.h: Ditto.
1865 * gnu-v2-abi.c: Ditto.
1866 * gnu-v3-abi.c: Ditto.
1867 * go32-nat.c: Ditto.
1868 * gdbarch.c: Regenerate.
1869 * gdbarch.h: Regenerate.
1871 2011-01-07 Michael Snyder <msnyder@vmware.com>
1873 * ax-gdb.c: Adjust some long output strings.
1874 * breakpoint.c: Ditto.
1879 * linux-nat.c: Ditto.
1880 * solib-pa64.c: Ditto.
1881 * solib-som.c: Ditto.
1883 2011-01-06 Tom Tromey <tromey@redhat.com>
1887 * python/python.c (GdbMethods): Add "newest_frame" method.
1888 * python/python-internal.h (gdbpy_newest_frame): Declare.
1889 * python/py-frame.c (gdbpy_newest_frame): New function.
1891 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1893 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
1894 * jit.c (jit_debug): New variable.
1895 (show_jit_debug): New function.
1896 (struct target_buffer): Use ULONGEST.
1897 (bfd_open_from_target_memory): Likewise.
1898 (jit_register_code, jit_inferior_init): Add debug output.
1899 (_initialize_jit): Register "debug jit" command.
1901 2011-01-06 Tom Tromey <tromey@redhat.com>
1903 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
1904 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
1907 2011-01-06 Tom Tromey <tromey@redhat.com>
1909 * python/py-frame.c (frapy_block): Use get_frame_block.
1911 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1913 Do not stop on SIGPRIO signals by default
1914 * infrun.c (_initialize_infrun): Unset signal_stop and
1915 signal_print for TARGET_SIGNAL_PRIO.
1917 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1919 * ada-tasks.c: Fix style violation in comment.
1921 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1923 * linespec.c (decode_compound, find_method): Remove trailing \n
1924 at end of error string.
1925 * solib-irix.c (irix_current_sos): Likewise.
1926 * varobj.c (uninstall_variable): Likewise.
1928 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1930 * copyright.py: New script.
1931 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
1932 Launch emacs without exec'ing. Call copyright.py afterwards.
1934 2011-01-05 Michael Snyder <msnyder@vmware.com>
1936 * addrmap.c: Shorten lines of >= 80 columns.
1937 * arch-utils.c: Ditto.
1938 * arch-utils.h: Ditto.
1940 * ax-general.c: Ditto.
1942 * blockframe.c: Ditto.
1943 * breakpoint.c: Ditto.
1944 * buildsym.c: Ditto.
1946 * c-typeprint.c: Ditto.
1948 * coffread.c: Ditto.
1952 * cp-namespace.c: Ditto.
1953 * cp-support.c: Ditto.
1954 * dbug-rom.c: Ditto.
1959 * dictionary.c: Ditto.
1961 * doublest.c: Ditto.
1962 * dwarf2-frame.c: Ditto.
1963 * dwarf2expr.c: Ditto.
1964 * dwarf2loc.c: Ditto.
1965 * dwarf2read.c: Ditto.
1968 * event-loop.c: Ditto.
1969 * event-loop.h: Ditto.
1970 * exceptions.h: Ditto.
1972 * expprint.c: Ditto.
1973 * expression.h: Ditto.
1975 * f-valprint.c: Ditto.
1977 * frame-base.c: Ditto.
1978 * frame-unwind.c: Ditto.
1979 * frame-unwind.h: Ditto.
1983 * gdb-stabs.h: Ditto.
1984 * gdb_assert.h: Ditto.
1985 * gdb_dirent.h: Ditto.
1986 * gdb_obstack.h: Ditto.
1988 * gdbtypes.c: Ditto.
1989 * gdbtypes.h: Ditto.
1990 * inf-ttrace.c: Ditto.
1995 * inline-frame.h: Ditto.
1996 * language.c: Ditto.
1997 * language.h: Ditto.
1998 * libunwind-frame.c: Ditto.
1999 * libunwind-frame.h: Ditto.
2000 * linespec.c: Ditto.
2001 * linux-nat.c: Ditto.
2002 * linux-nat.h: Ditto.
2003 * linux-thread-db.c: Ditto.
2004 * machoread.c: Ditto.
2005 * macroexp.c: Ditto.
2006 * macrotab.c: Ditto.
2009 * mdebugread.c: Ditto.
2014 * objfiles.c: Ditto.
2015 * objfiles.h: Ditto.
2017 * p-typeprint.c: Ditto.
2018 * p-valprint.c: Ditto.
2020 * printcmd.c: Ditto.
2021 * proc-events.c: Ditto.
2023 * progspace.c: Ditto.
2024 * progspace.h: Ditto.
2025 * psympriv.h: Ditto.
2028 * regcache.c: Ditto.
2029 * regcache.h: Ditto.
2030 * remote-fileio.c: Ditto.
2032 * ser-mingw.c: Ditto.
2034 * ser-unix.c: Ditto.
2037 * solib-frv.c: Ditto.
2038 * solib-irix.c: Ditto.
2039 * solib-osf.c: Ditto.
2040 * solib-pa64.c: Ditto.
2041 * solib-som.c: Ditto.
2042 * solib-sunos.c: Ditto.
2043 * solib-svr4.c: Ditto.
2044 * solib-target.c: Ditto.
2048 * stabsread.c: Ditto.
2049 * stabsread.c: Ditto.
2052 * symfile-mem.c: Ditto.
2058 * target-descriptions.c: Ditto.
2059 * target-memory.c: Ditto.
2062 * terminal.h: Ditto.
2065 * tracepoint.c: Ditto.
2066 * tracepoint.h: Ditto.
2070 * user-regs.c: Ditto.
2071 * user-regs.h: Ditto.
2073 * valarith.c: Ditto.
2075 * valprint.c: Ditto.
2076 * valprint.h: Ditto.
2081 * xcoffread.c: Ditto.
2082 * xcoffsolib.c: Ditto.
2083 * xcoffsolib.h: Ditto.
2084 * xml-syscall.c: Ditto.
2085 * xml-tdesc.c: Ditto.
2087 2011-01-05 Michael Snyder <msnyder@vmware.com>
2089 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
2090 * cli/cli-decode.c: Ditto.
2091 * cli/cli-dump.c: Ditto.
2092 * cli/cli-logging.c: Ditto.
2093 * cli/cli-script.c: Ditto.
2094 * cli/cli-setshow.c: Ditto.
2095 * common/signals.c: Ditto.
2096 * mi/mi-cmd-break.c: Ditto.
2097 * mi/mi-cmd-disas.c: Ditto.
2098 * mi/mi-cmd-stack.c: Ditto.
2099 * mi/mi-cmd-var.c: Ditto.
2100 * mi/mi-cmds.c: Ditto.
2101 * mi/mi-common.h: Ditto.
2102 * mi/mi-console.c: Ditto.
2103 * mi/mi-interp.c: Ditto.
2104 * mi/mi-main.c: Ditto.
2105 * osf-share/cma_attr.c: Ditto.
2106 * osf-share/cma_deb_core.h: Ditto.
2107 * osf-share/cma_debug_client.h: Ditto.
2108 * osf-share/cma_handle.h: Ditto.
2109 * osf-share/cma_mutex.h: Ditto.
2110 * osf-share/cma_stack_int.h: Ditto.
2111 * osf-share/cma_tcb_defs.h: Ditto.
2112 * python/py-auto-load.c: Ditto.
2113 * python/py-breakpoint.c: Ditto.
2114 * python/py-cmd.c: Ditto.
2115 * python/py-frame.c: Ditto.
2116 * python/py-objfile.c: Ditto.
2117 * python/py-param.c: Ditto.
2118 * python/py-progspace.c: Ditto.
2119 * python/py-symbol.c: Ditto.
2120 * python/py-value.c: Ditto.
2121 * python/python-internal.h: Ditto.
2122 * python/python.c: Ditto.
2123 * tui/tui-data.c: Ditto.
2124 * tui/tui-disasm.c: Ditto.
2125 * tui/tui-hooks.c: Ditto.
2126 * tui/tui-io.c: Ditto.
2127 * tui/tui-layout.c: Ditto.
2128 * tui/tui-regs.c: Ditto.
2129 * tui/tui-source.c: Ditto.
2130 * tui/tui-stack.c: Ditto.
2131 * tui/tui-win.c: Ditto.
2132 * tui/tui-windata.c: Ditto.
2133 * tui/tui-winsource.c: Ditto.
2135 2011-01-05 Joel Brobecker <brobecker@adacore.com>
2137 * configure.ac, gdb.1: Copyright year update.
2139 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2141 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
2142 this_pc_in_block, morestack_msym and morestack_name. Check for
2143 "__morestack" minimal symbol there.
2145 2011-01-03 Joel Brobecker <brobecker@adacore.com>
2147 * symfile.c (find_sym_fns): Add call to dont_repeat.
2149 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2151 Copyright year update in most files (performed by copyright.sh).
2153 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2155 * top.c (print_gdb_version): Update copyright year in version output.
2157 For older changes see ChangeLog-2010.
2163 version-control: never