1 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5 (create_longjmp_master_breakpoint): Loop over longjmp names.
6 (create_std_terminate_master_breakpoint): Const-propagate parameter
8 (update_breakpoints_after_exec): Adjust.
9 (breakpoint_re_set): Adjust.
11 2011-02-15 Michael Snyder <msnyder@vmware.com>
13 * command.h (enum command_class): New class 'no_set_class', for
14 "show" commands without a corresponding "set" command.
15 * value.c (_initialize_values): Use 'no_set_class' for "show values".
16 * copying.c (_initialize_copying): Ditto for "show copying" and
18 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
20 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
21 which there is no corresponding "set" command (eg. "show copying").
23 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
25 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
26 * aclocal.m4: Regenerated with aclocal-1.11.1.
27 * common/configure: Regenerate with autoconf-2.64.
29 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
31 * opencl-lang.c (build_opencl_types): Set the size of the built-in
32 bool data type to a size of one byte.
34 2011-02-15 Pedro Alves <pedro@codesourcery.com>
35 Jan Kratochvil <jan.kratochvil@redhat.com>
37 * target.c (memory_xfer_live_readonly_partial): Document where to
38 look for interface description.
40 2011-02-15 Yao Qi <yao@codesourcery.com>
43 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
44 order to store PC value on stack instead of text section.
46 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
48 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
49 the EFP register set size.
50 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
51 data from the VMX register.
52 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
53 and write data from/to the VMX register.
55 2011-02-14 Pedro Alves <pedro@codesourcery.com>
56 Jan Kratochvil <jan.kratochvil@redhat.com>
58 * exec.c (section_table_available_memory): Change `len' parameter
60 * exec.h (section_table_available_memory): Ditto.
61 * value.h (read_value_memory): Rename the `offset' parameter to
64 2011-02-14 Pedro Alves <pedro@codesourcery.com>
65 Jan Kratochvil <jan.kratochvil@redhat.com>
67 * memrange.c (compare_mem_ranges): Mention sort order in
69 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
70 * tracepoint.c (traceframe_available_memory): Extend comment to
71 mention what happens to RESULT when the target does not support
74 2011-02-14 Pedro Alves <pedro@codesourcery.com>
75 Jan Kratochvil <jan.kratochvil@redhat.com>
77 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
80 2011-02-14 Pedro Alves <pedro@codesourcery.com>
82 * value.c (value_bits_valid, value_bits_synthetic_pointer):
83 No longer handle NULL values.
85 2011-02-14 Pedro Alves <pedro@codesourcery.com>
87 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
88 * value.c: Include "exceptions.h".
89 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
91 * cp-abi.c: Include gdb_assert.h.
92 (baseclass_offset): Add `embedded_offset' and `val' parameters.
93 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
95 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
96 parameters. No longer returns -1 on error.
97 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
99 * cp-valprint.c: Include exceptions.h.
100 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
101 the baseclass_offset. Handle unavailable base classes. Use
102 val_print_invalid_address.
103 * p-valprint.c: Include exceptions.h.
104 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
105 when fetching the baseclass_offset. No longer expect
106 baseclass_offset returning -1. Handle unavailable base classes.
107 Use val_print_invalid_address.
108 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
109 `valaddr' parameter, and change its type to gdb_byte pointer. Add
110 `embedded_offset' and `val' parameters. Adjust.
111 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
112 parameter, and change its type to gdb_byte pointer. Add
113 `embedded_offset' and `val' parameters. Adjust. No longer expect
114 baseclass_offset returning -1.
115 (value_dynamic_cast): Use value_contents_for_printing rather than
116 value_contents. Adjust.
117 (search_struct_field): No longer expect baseclass_offset returning
119 (search_struct_method): If reading memory from the target is
120 necessary, wrap it in a new value to pass to baseclass_offset. No
121 longer expect baseclass_offset returning -1.
122 (find_method_list): No longer expect baseclass_offset returning
123 -1. Use value_contents_for_printing rather than value_contents.
124 * valprint.c (val_print_invalid_address): New function.
125 * valprint.h (val_print_invalid_address): Declare.
126 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
127 and `val' parameters. No longer expect baseclass_offset returning
129 * gnu-v2-abi.c: Include "exceptions.h".
130 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
131 parameters. Handle unavailable memory. Recurse through
132 gnuv2_baseclass_offset directly, rather than through
133 baseclass_offset. No longer returns -1 on not found, instead
135 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
136 `val' parameters. Adjust.
138 2011-02-14 Pedro Alves <pedro@codesourcery.com>
140 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
141 almost but not quite adjacent.
143 2011-02-14 Pedro Alves <pedro@codesourcery.com>
145 * value.h (value_entirely_available): Declare.
146 * value.c (value_entirely_available): New function.
147 * c-valprint.c (c_value_print): Don't try fetching the pointer's
148 real type if the pointer is unavailable.
150 2011-02-14 Pedro Alves <pedro@codesourcery.com>
152 * valops.c (value_repeat): Use read_value_memory instead of
155 2011-02-14 Pedro Alves <pedro@codesourcery.com>
157 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
158 * value.c (value_contents_copy_raw, value_contents_copy): New
160 (value_primitive_field): Use value_contents_copy_raw instead of
162 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
164 (value_array, value_slice): Ditto.
165 * valarith.c (value_subscripted_rvalue): Use
166 value_contents_copy_raw instead of memcpy.
168 2011-02-14 Pedro Alves <pedro@codesourcery.com>
170 <unavailable> references.
172 * valops.c (get_value_at): Use value_from_contents_and_address,
173 avoiding read_memory.
175 2011-02-14 Pedro Alves <pedro@codesourcery.com>
177 * c-valprint.c (c_val_print): Print a string with unavailable
178 contents as an array.
180 2011-02-14 Pedro Alves <pedro@codesourcery.com>
182 * value.h (unpack_bits_as_long): Delete declaration.
183 (unpack_value_bits_as_long): Declare.
184 (unpack_value_field_as_long): Declare.
185 (value_field_bitfield): Declare.
186 * value.c (unpack_bits_as_long): Rename to...
187 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
188 value parameters. Return the extracted result in a new output
189 parameter. If the value contents are unavailable, return false,
190 otherwise return true.
191 (unpack_value_bits_as_long): New.
192 (unpack_field_as_long): Rename to...
193 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
194 Add embedded_offset and value parameters. Return the extracted
195 result in a new output parameter. If the value contents are
196 unavailable, return false, otherwise return true.
197 (unpack_value_field_as_long): New.
198 (unpack_field_as_long_1): New.
199 (unpack_field_as_long): Reimplement as wrapper around
200 unpack_value_field_as_long_1.
201 (value_field_bitfield): New function.
202 * valops.c (value_fetch_lazy): When fetching a bitfield, use
203 unpack_value_bits_as_long. Mark the value as unavailable, if it
205 * jv-valprint.c (java_print_value_fields): Use
206 value_field_bitfield.
207 * p-valprint.c (pascal_object_print_value_fields): Use
208 value_field_bitfield.
209 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
211 2011-02-14 Pedro Alves <pedro@codesourcery.com>
213 * value.c (get_internalvar_integer): Also return the int value of
214 TYPE_CODE_INT INTERNALVAR_VALUE values.
215 (set_internalvar): Don't special case TYPE_CODE_INT.
217 2011-02-14 Pedro Alves <pedro@codesourcery.com>
219 * value.c (struct internalvar) <enum internalvar_kind>: Remove
222 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
223 (set_internalvar): Remove special TYPE_CODE_PTR handling.
224 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
226 2011-02-14 Pedro Alves <pedro@codesourcery.com>
228 * value.h (value_available_contents_eq): Declare.
229 * value.c (find_first_range_overlap): New function.
230 (value_available_contents_eq): New function.
231 * valprint.c (val_print_array_elements): Use
232 value_available_contents_eq.
233 * ada-valprint.c (val_print_packed_array_elements): Use
234 value_available_contents_eq.
235 * jv-valprint.c (java_value_print): Use
236 value_available_contents_eq.
238 2011-02-14 Pedro Alves <pedro@codesourcery.com>
240 * target.c (target_read_live_memory): New function.
241 (memory_xfer_live_readonly_partial): New.
242 (memory_xfer_partial): If reading from a traceframe, fallback to
243 reading unavailable read-only memory from read-only regions of
245 * tracepoint.c (disconnect_tracing): Adjust.
246 (set_current_traceframe): New, factored out from
247 set_traceframe_number.
248 (set_traceframe_number): Reimplement to only change the traceframe
249 number on the GDB side.
250 (do_restore_current_traceframe_cleanup): Adjust.
251 (make_cleanup_restore_traceframe_number): New.
252 (cur_traceframe_number): New global.
253 (tfile_open): Set cur_traceframe_number to no traceframe.
254 (set_tfile_traceframe): New function.
255 (tfile_trace_find): If looking up a traceframe using any method
256 other than by number, make sure the current tfile traceframe
257 matches gdb's current traceframe. Update the current tfile
258 traceframe if the lookup succeeded.
259 (tfile_fetch_registers, tfile_xfer_partial)
260 (tfile_get_trace_state_variable_value): Make sure the remote
261 traceframe matches gdb's current traceframe.
262 * remote.c (remote_traceframe_number): New global.
263 (remote_open_1): Set it to -1.
264 (set_remote_traceframe): New function.
265 (remote_fetch_registers, remote_store_registers)
266 (remote_xfer_memory, remote_xfer_partial)
267 (remote_get_trace_state_variable_value): Make sure the remote
268 traceframe matches gdb's current traceframe.
269 (remote_trace_find): If looking up a traceframe using any method
270 other than by number, make sure the current remote traceframe
271 matches gdb's current traceframe. Update the current remote
272 traceframe if the lookup succeeded.
273 * infrun.c (fetch_inferior_event): Adjust.
274 * tracepoint.h (set_current_traceframe): Declare.
275 (get_traceframe_number, set_traceframe_number): Add describing
278 2011-02-14 Pedro Alves <pedro@codesourcery.com>
280 Mark pieces of values as unavailable if the corresponding memory
283 * valops.c: Include tracepoint.h.
284 (value_fetch_lazy): Use read_value_memory.
285 (read_value_memory): New.
286 * value.h (read_value_memory): Declare.
287 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
288 * exec.c (section_table_available_memory): New function.
289 * exec.h (section_table_available_memory): Declare.
291 2011-02-14 Pedro Alves <pedro@codesourcery.com>
293 * Makefile.in (SFILES): Add memrange.c.
294 (HFILES_NO_SRCDIR): Add memrange.h.
295 (COMMON_OBS): Add memrange.o.
296 * memrange.c: New file.
297 * memrange.h: New file.
298 * tracepoint.c: Include memrange.h.
299 (struct mem_range): Delete.
300 (mem_range_s): Delete.
301 (traceframe_available_memory): New function.
302 * tracepoint.h (traceframe_available_memory): Declare.
304 2011-02-14 Pedro Alves <pedro@codesourcery.com>
306 * target.h (struct traceframe_info): Forward declare.
307 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
308 (struct target_ops) <to_traceframe_info>: New field.
309 (target_traceframe_info): New.
310 * target.c (update_current_target): Inherit and default
312 * remote.c (PACKET_qXfer_traceframe_info): New.
313 (remote_protocol_features): Register qXfer:traceframe-info:read.
314 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
315 (remote_traceframe_info): New.
316 (init_remote_ops): Install it.
317 (_initialize_remote): Install "set/show remote traceframe-info"
319 * tracepoint.h (parse_traceframe_info): Declare.
320 * tracepoint.c (struct mem_range): New.
321 (mem_range_s): New typedef.
322 (struct traceframe_info): New.
323 (traceframe_info): New global.
324 (free_traceframe_info): New function.
325 (clear_traceframe_info): New function.
326 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
328 (build_traceframe_info): New function.
329 (tfile_traceframe_info): New function.
330 (init_tfile_ops): Install tfile_traceframe_info.
331 (traceframe_info_start_memory, free_result): New functions.
332 (memory_attributes, traceframe_info_elements): New globals.
333 (parse_traceframe_info, get_traceframe_info): New functions.
334 * features/traceframe-info.dtd: New file.
335 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
337 2011-02-14 Pedro Alves <pedro@codesourcery.com>
339 Base support for <unavailable> value contents.
341 * value.h (value_bytes_available): Declare.
342 (mark_value_bytes_unavailable): Declare.
343 * value.c (struct range): New struct.
344 (range_s): New typedef.
345 (ranges_overlap): New function.
346 (range_lessthan): New function.
347 (ranges_contain_p): New function.
348 (struct value) <unavailable>: New field.
349 (value_bytes_available): New function.
350 (mark_value_bytes_unavailable): New function.
351 (require_not_optimized_out): Constify parameter.
352 (require_available): New function.
353 (value_contents_all, value_contents): Require all bytes be
355 (value_free): Free `unavailable'.
356 (value_copy): Copy `unavailable'.
357 * valprint.h (val_print_unavailable): Declare.
358 * valprint.c (valprint_check_validity): Rename `offset' parameter
359 to `embedded_offset'. If printing a scalar, check whether the
360 value chunk is available.
361 (val_print_unavailable): New.
362 (val_print_scalar_formatted): Check whether the value is
364 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
365 pretty-printing unavailable values.
367 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
369 Fix const/volatile qualifiers of C++ types, PR c++/12328.
370 * c-typeprint.c (c_type_print_args): Update the function comment. New
371 variable param_type, initialize it. Remove const/volatile qualifiers
372 for language_cplus and !show_artificial. Use param_type.
374 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
376 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
377 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
378 * symtab.h (struct symtab) <next>: Comment extension.
380 2011-02-12 Yao Qi <yao@codesourcery.com>
382 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
384 2011-02-11 Yao Qi <yao@codesourcery.com>
386 * common/Makefile.in: Add copyright header.
388 2011-02-11 Pedro Alves <pedro@codesourcery.com>
390 * infrun.c (proceed): Move switching out and in of tfind mode from
392 (fetch_inferior_event): ... to here.
394 2011-02-11 Yao Qi <yao@codesourcery.com>
396 * Makefile.in: Remove signals.o from COMMON_OBS. Link
398 * configure.ac: Add common to sub dir.
399 * configure: Regenerate.
401 2011-02-11 Yao Qi <yao@codesourcery.com>
405 * common/Makefile.in: New.
406 * common/configure.ac: New.
407 * common/aclocal.m4: New.
408 * common/configure: Generate.
410 2011-02-10 Pedro Alves <pedro@codesourcery.com>
412 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
413 side of the parenthesis.
416 2010-07-13 Jakub Jelinek <jakub@redhat.com>
417 * vec.h (VEC_block_remove): Fix comment.
419 2011-02-08 Michael Snyder <msnyder@vmware.com>
421 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
423 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
425 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
426 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
429 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
432 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
434 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
435 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
437 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
439 * dwarf2read.c (read_subroutine_type): Set special calling
440 convention flag for functions compiled by IBM XL C for OpenCL.
441 * ppc-sysv-tdep.c: Include "dwarf2.h"
442 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
444 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
445 IBM OpenCL vector types calling convention.
446 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
447 (ppc_sysv_abi_broken_return_value): Likewise.
448 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
449 types calling convention.
450 (ppc64_sysv_abi_return_value): Likewise.
451 * spu-tdep.c: Include "dwarf2.h"
452 (spu_return_value): Implement IBM OpenCL vector types calling
455 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
457 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
458 correct ABI for AltiVec vector arguments.
460 2011-02-07 Pedro Alves <pedro@codesourcery.com>
462 * valprint.c (val_print): Extend comment.
463 * ada-valprint.c (ada_valprint): Rewrite comment deferring
464 interface explanation to val_print.
465 (ada_val_print_array): Adjust comment to current interface.
466 (print_field_values): Adjust comment to current interface.
467 * c-valprint.c (c_val_print): Rewrite comment deferring interface
468 explanation to val_print.
469 * f-valprint.c (f_val_print): Ditto.
470 * jv-valprint.c (java_val_print): Ditto.
471 * m2-valprint.c (m2_val_print): Ditto.
472 * p-valprint.c (pascal_val_print): Ditto.
474 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
476 * breakpoint.c (parse_breakpoint_sals): Fix description.
478 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
479 Oguz Kayral <oguzkayral@gmail.com>
481 * python/py-inferior.c (python_on_normal_stop): New function.
482 (python_on_resume): New function.
483 (python_inferior_exit): New function.
484 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
485 inferior_exit observers.
486 * python/py-evtregistry.c: New file.
487 * python/py-threadevent.c : New file.
488 * python/py-event.c: New file.
489 * python/py-evts.c: New file.
490 * python/py-continueevent.c: New file.
491 * python/py-bpevent.c: New file.
492 * python/py-signalevent.c: New file.
493 * python/py-exetiedevent.c: New file.
494 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
495 Move struct breakpoint_object from here...
496 * python/python-internal.h: ... to here.
497 * python/py-event.h: New file.
498 * python/py-events.h: New file.
499 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
500 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
501 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
502 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
503 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
504 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
505 Add build rules for all the above.
507 2011-02-04 Tom Tromey <tromey@redhat.com>
509 * dwarf2read.c (dwarf2_section_empty_p): New function.
510 (dwarf2_read_section): Use dwarf2_section_empty_p.
511 (dwarf2_section_size): New function.
512 (dwarf2_get_section_info): Unconditionally read section.
513 (dwarf2_read_index): Use dwarf2_section_empty_p.
514 (partial_read_comp_unit_head): Use dwarf2_section_size.
515 (dwarf2_symbol_mark_computed): Likewise.
517 2011-02-04 David Daney <ddaney@caviumnetworks.com>
519 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
521 2011-02-04 David Daney <ddaney@caviumnetworks.com>
523 * mips-linux-tdep.c: Include xml-syscall.h.
524 (mips_linux_get_syscall_number): New function.
525 (mips_linux_init_abi): Add calls to
526 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
527 * data-directory/Makefile.in (SYSCALLS_FILES): Add
528 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
529 * syscalls/mips-n32-linux.xml: New file.
530 * syscalls/mips-n64-linux.xml: New file.
531 * syscalls/mips-o32-linux.xml: New file.
533 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
535 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
536 Complain about inverted range entries.
537 (dwarf2_record_block_ranges): Likewise.
539 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
542 * breakpoint.c (update_watchpoint): Fix name of the
543 update_global_location_list function.
544 (print_one_breakpoint): Fix typo.
545 (_initialize_breakpoint): Remove extra space in hbreak help
547 * breakpoint.h (struct bp_location) <length>: Fix field
550 2011-02-04 Pedro Alves <pedro@codesourcery.com>
552 * regcache.c (registers_changed_ptid): Don't explictly always
553 clear `current_regcache'. Only clear current_thread_ptid and
554 current_thread_arch when PTID matches. Only reinit the frame
555 cache if PTID matches the current inferior_ptid. Move alloca(0)
557 (registers_changed): ... here.
559 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
561 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
562 starts with __stack_chk_guard as stack guard symbol.
564 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
566 * disasm.c (compare_lines): Handle the end of sequence markers
567 within the line table to better support disassembling over
568 compilation unit boundaries.
570 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
572 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
573 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
574 implementation even if no symbols are available.
575 (thumb_analyze_prologue): Update call to skip_prologue_function.
576 (arm_analyze_prologue): Likewise.
578 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
580 * arm-tdep.c: Include "observer.h".
581 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
582 (arm_exidx_data_key): New static variable.
583 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
584 (struct arm_exidx_data): Likewise.
585 (arm_exidx_data_free): New function.
586 (arm_compare_exidx_entries): Likewise.
587 (arm_obj_section_from_vma): Likewise.
588 (arm_exidx_new_objfile): Likewise.
589 (arm_find_exidx_entry): Likewise.
590 (arm_exidx_fill_cache): Likewise.
591 (arm_exidx_unwind_sniffer): Likewise.
592 (arm_exidx_unwind): New global variable.
593 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
594 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
595 observer. Register arm_exidx_data_key as objfile data.
597 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
599 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
600 due to accessing uninitialized variable. Fix indentation.
602 2011-02-02 Pedro Alves <pedro@codesourcery.com>
604 * c-valprint.c (c_value_print): When doing virtual base pointer
605 adjustment, create a new value with adjusted contents rather than
606 changing the contents of the value being printed (and getting it
609 2011-02-02 Pedro Alves <pedro@codesourcery.com>
611 * xml-support.c (xml_find_attribute): New.
612 (xinclude_start_include): Use it.
613 * xml-support.h (xml_find_attribute): Declare.
614 * memory-map.c (memory_map_start_memory)
615 (memory_map_start_property): Use xml_find_attribute.
616 * osdata.c (osdata_start_osdata, osdata_start_column): Use
618 * remote.c (start_thread): Use xml_find_attribute.
619 * solib-target.c (library_list_start_segment)
620 (library_list_start_section, library_list_start_library)
621 (library_list_start_list): Use xml_find_attribute.
622 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
623 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
624 (tdesc_start_field): Use xml_find_attribute.
626 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
628 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
629 (BUILD_OCL_VTYPES): Update.
631 2011-02-02 Joel Brobecker <brobecker@adacore.com>
633 * configure.ac: Work around non-GNU sed limitation when computing
634 python version number.
635 * configure: Regenerate.
637 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
639 Fix debug printing of TYPE_INSTANCE.
640 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
641 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
643 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
645 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
646 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
647 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
648 * ada-operator.inc: Rename the file to ...
649 * ada-operator.def: ... here, wrap all the entries by macro OP.
650 * expprint.c (op_name_standard): Remove all the entries. Include
651 "std-operator.def" instead.
652 * expression.h (enum exp_opcode): Include "std-operator.def" and
653 "ada-operator.def". Move all the entries ...
654 * std-operator.def: ... here, wrap all the entries by macro OP.
656 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
658 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
659 * breakpoint.c (remove_jit_event_breakpoints): New function.
660 * jit.c (jit_descriptor_addr): Delete.
661 (registering_code): Delete.
663 (jit_inferior_data): New variable.
664 (struct jit_inferior_data): New type.
665 (get_jit_inferior_data): New function.
666 (jit_inferior_data_cleanup): New function.
667 (jit_read_descriptor): Adjust.
668 (jit_register_code): Adjust.
669 (jit_breakpoint_re_set_internal): New function; move code here ...
670 (jit_inferior_init): ... from here.
671 (jit_breakpoint_re_set): Adjust.
672 (jit_reset_inferior_data_and_breakpoints): New function.
673 (jit_inferior_created_observer): Adjust.
674 (jit_inferior_exit_hook): Adjust.
675 (jit_executable_changed_observer): New function.
676 (jit_event_handler): Adjust.
677 (_initialize_jit): Adjust.
679 2011-01-31 Michael Snyder <msnyder@vmware.com>
681 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
684 2011-01-31 Tom Tromey <tromey@redhat.com>
687 * python/python.c (execute_gdb_command): Call
689 * top.c (suppress_dont_repeat): New global.
690 (dont_repeat): Use it.
691 (prevent_dont_repeat): New function.
692 * command.h (prevent_dont_repeat): Declare.
694 2011-01-31 Tom Tromey <tromey@redhat.com>
696 * infcmd.c (finish_backward): Use breakpoint_set_silent.
697 * python/py-breakpoint.c (bppy_set_silent): Use
698 breakpoint_set_silent.
699 (bppy_set_thread): Use breakpoint_set_thread.
700 (bppy_set_task): Use breakpoint_set_task.
701 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
702 (breakpoint_set_task): Declare.
703 (make_breakpoint_silent): Remove.
704 * breakpoint.c (breakpoint_set_silent): New function.
705 (breakpoint_set_thread): Likewise.
706 (breakpoint_set_task): Likewise.
707 (make_breakpoint_silent): Remove.
709 2011-01-31 Tom Tromey <tromey@redhat.com>
711 * breakpoint.h (user_breakpoint_p): Declare.
712 * breakpoint.c (user_breakpoint_p): New function.
713 (breakpoint_1): Use it.
714 (save_breakpoints): Likewise.
716 2011-01-31 Joel Brobecker <brobecker@adacore.com>
718 * configure.ac: Add handling of Python distribution on Windows.
719 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
720 sysconfig variables are not defined, then do not use them.
721 On Windows, if LIBPL is not defined, then use prefix + '/libs'
722 instead. On Windows, return all paths using forward-slashes
723 rather than backslashes.
725 2011-01-31 Joel Brobecker <brobecker@adacore.com>
727 * configure.ac: Remove fallback behavior for building
728 against Python. Remove tweaking of Python include path.
729 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
730 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
731 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
732 Always restore CPPFLAGS and LIBS after linking test.
733 * configure: Regenerated.
734 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
735 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
736 * python/python-internal.h: Adjust includes of Python .h files.
738 2011-01-31 Joel Brobecker <brobecker@adacore.com>
740 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
743 2011-01-31 Joel Brobecker <brobecker@adacore.com>
745 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
748 2011-01-31 Yao Qi <yao@codesourcery.com>
750 * arm-linux-nat.c: Update calls to regcache_register_status
751 instead of regcache_valid_p.
752 * aix-thread.c: Likewise.
753 * i386gnu-nat.c: Likewise.
755 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
758 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
759 touching TYPE_FIELD_ARTIFICIAL.
761 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
763 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
766 2011-01-28 Pedro Alves <pedro@codesourcery.com>
768 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
769 selected, don't try iterating over the traceframe's blocks.
770 (tfile_has_stack): If there's no traceframe selected, then there's
772 (tfile_has_registers): If there's no traceframe selected, then
773 there's no registers.
775 2011-01-28 Pedro Alves <pedro@codesourcery.com>
777 * target.c (memory_xfer_partial): No need to restore shadows if we
778 haven't read anything.
780 2011-01-28 Pedro Alves <pedro@codesourcery.com>
782 * mips-tdep.c (mips_print_register): Use get_frame_register_value
783 and val_print_scalar_formatted.
785 2011-01-27 Pedro Alves <pedro@codesourcery.com>
787 * tracepoint.c (tfile_read): New.
788 (tfile_open): Use it.
789 (tfile_get_traceframe_address): Use it.
790 (tfile_trace_find): Use it.
791 (walk_blocks_callback_func): New typedef.
792 (match_blocktype): New function.
793 (traceframe_walk_blocks): New function.
794 (traceframe_find_block_type): New function.
795 (tfile_fetch_registers, tfile_xfer_partial)
796 (tfile_get_trace_state_variable_value): Use
797 traceframe_find_block_type and tfile_read.
799 2011-01-26 Kevin Buettner <kevinb@redhat.com>
801 * remote-mips.c: Add internationalization mark ups. Remove
802 trailing \n from already marked up strings.
804 2011-01-26 Tom Tromey <tromey@redhat.com>
806 * python/py-prettyprint.c (print_string_repr): Clear
807 'addressprint' option when calling val_print_string.
808 (print_children): Handle Val_pretty_default. Clear 'addressprint'
809 option when calling val_print_string.
811 2011-01-26 Tom Tromey <tromey@redhat.com>
813 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
815 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
817 (gdb_py_longest, gdb_py_ulongest): New typedefs.
818 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
819 (gdb_py_long_as_ulongest): New defines.
820 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
821 (gdb_py_int_as_long): Declare.
822 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
823 GDB_PY_LL_ARG, gdb_py_object_from_longest.
824 (valpy_long): Add comment.
825 * python/py-utils.c (get_addr_from_python): Use
826 gdb_py_long_as_ulongest. Handle overflow properly.
827 (gdb_py_object_from_longest): New function.
828 (gdb_py_object_from_ulongest): Likewise.
829 (gdb_py_int_as_long): Likewise.
830 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
831 * python/py-symtab.c (salpy_get_pc): Use
832 gdb_py_long_from_ulongest.
833 (salpy_get_line): Use PyInt_FromLong.
834 * python/py-param.c (set_parameter_value): Use
836 * python/py-lazy-string.c (stpy_get_address): Use
837 gdb_py_long_from_ulongest.
838 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
839 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
840 * python/py-breakpoint.c (bppy_set_thread): Use
842 (bppy_set_task): Likewise.
843 (bppy_set_ignore_count): Likewise.
844 (bppy_set_hit_count): Likewise.
845 * python/py-block.c (blpy_get_start): Use
846 gdb_py_object_from_ulongest.
847 (blpy_get_end): Likewise.
848 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
850 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
853 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
854 * gdb/solib.c (solib_read_symbols): Check for addr_low in
855 equality test for objfile, initialize addr_low if needed.
857 2011-01-25 Pedro Alves <pedro@codesourcery.com>
859 * tui/tui-regs.c (tui_register_format): Remove dead code.
861 2011-01-25 Pedro Alves <pedro@codesourcery.com>
863 * printcmd.c (print_formatted): Use val_print_scalar_formatted
864 instead of print_scalar_formatted.
865 (print_scalar_formatted): Don't handle 's' format strings here,
866 and add an assertion that we never see such format here.
867 * valprint.h (val_print_scalar_formatted): Declare.
868 * valprint.c (val_print_scalar_formatted): New.
869 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
870 instead of print_scalar_formatted.
871 * jv-valprint.c (java_val_print): Ditto.
872 * p-valprint.c (pascal_val_print): Ditto.
873 * ada-valprint.c (ada_val_print_1): Ditto.
874 * f-valprint.c (f_val_print): Ditto.
875 * infcmd.c (registers_info): Ditto.
876 * m2-valprint.c (m2_val_print): Ditto.
878 2011-01-25 Pedro Alves <pedro@codesourcery.com>
880 * m2-valprint.c (print_unbounded_array): Pass
881 value_contents_for_printing rather than value_contents, to
882 m2_print_array_contents. Also pass in the value.
884 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
886 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
887 (save_gdb_index_command): Switch to .gdb_index version 4.
889 2011-01-25 Pedro Alves <pedro@codesourcery.com>
891 * mi/mi-main.c (get_register): Use get_frame_register_value rather
892 than frame_register, and always pass a valid value to val_print.
894 2011-01-25 Pedro Alves <pedro@codesourcery.com>
896 Centralize printing "<optimized out>".
898 * valprint.h (val_print_optimized_out): Declare.
899 * cp-valprint.c (cp_print_value_fields): Use
900 val_print_optimized_out.
901 * jv-valprint.c (java_print_value_fields): Ditto.
902 * p-valprint.c (pascal_object_print_value_fields): Ditto.
903 * printcmd.c (print_formatted): Ditto.
904 * valprint.c (valprint_check_validity): Ditto.
905 (value_check_printable): Ditto.
906 (val_print_optimized_out): New.
908 2011-01-25 Pedro Alves <pedro@codesourcery.com>
910 * infcmd.c (default_print_registers_info): Allocate values so to
911 never pass a NULL value to val_print.
913 2011-01-25 Pedro Alves <pedro@codesourcery.com>
915 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
916 boolean. Make sure to always pass a value that matches the
917 contents buffer to callees. Preserve `address' for following
919 * value.c (value_contents_for_printing_const): New.
920 (value_address): Constify value argument.
921 * value.h (value_contents_for_printing_const): Declare.
922 (value_address): Constify value argument.
924 2011-01-25 Pedro Alves <pedro@codesourcery.com>
926 * regcache.c (struct regcache_descr): Rename
927 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
928 and sizeof_cooked_register_valid_p to
929 sizeof_cooked_register_status.
930 (init_regcache_descr): Adjust.
931 (struct regcache): Rename register_valid_p field to
933 (regcache_xmalloc_1, regcache_xfree, regcache_save)
934 (do_cooked_read): Adjust.
935 (regcache_valid_p): Rename to ...
936 (regcache_register_status): ... this. Adjust.
937 (regcache_invalidate): Adjust.
938 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
940 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
941 as unavailable, not valid.
942 (regcache_dump): Adjust.
943 * regcache.h (enum register_status): New.
944 (regcache_register_status): Declare.
945 (regcache_invalidate): Delete declaration.
946 * corelow.c (get_core_registers): Adjust.
947 * tracepoint.c (tfile_fetch_registers): Adjust.
948 * trad-frame.c (REG_VALUE): Rename to ...
949 (TF_REG_VALUE): ... this.
950 (REG_UNKNOWN): Rename to ...
951 (TF_REG_UNKNOWN): ... this.
952 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
953 * mi/mi-main.c (register_changed_p): Adjust.
955 2011-01-25 Pedro Alves <pedro@codesourcery.com>
957 * regcache.c (struct regcache_descr): Remove outdated comment.
958 (init_regcache_descr): Remove sizeof_raw_register_valid_p
960 (regcache_xmalloc): Rename to ...
961 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
962 Allocate the regcache type accordingly.
963 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
964 (regcache_xfree): Asser the source is also readonly. Copy sizeof
965 cooked registers, not raw.
966 (regcache_dup_no_passthrough): Delete.
967 (get_thread_arch_regcache): Use regcache_xmalloc_1.
968 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
969 mention obsolete write_register_bytes.
970 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
972 2011-01-25 Pedro Alves <pedro@codesourcery.com>
974 Stop remote_read_bytes from handling partial reads itself.
976 * remote-fileio.c: Include target.h.
977 (remote_fileio_write_bytes): Delete.
978 (remote_fileio_func_open, remote_fileio_func_write)
979 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
981 (remote_fileio_func_stat): Use target_read_memory and
983 (remote_fileio_func_gettimeofday): Use target_write_memory.
984 (remote_fileio_func_system): Use target_read_memory.
985 * remote.c (remote_write_bytes): Make it static.
986 (remote_read_bytes): Don't handle partial reads here.
987 * remote.h (remote_read_bytes): Delete declaration.
989 2011-01-25 Pedro Alves <pedro@codesourcery.com>
991 Simplify XML parsing a bit.
993 * xml-support.h (gdb_xml_parse_quick): Declare.
994 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
995 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
997 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
998 gdb_xml_create_parser_and_cleanup_1.
999 (gdb_xml_parse_quick): New.
1000 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
1001 * osdata.c (osdata_parse): Ditto.
1002 * remote.c (remote_threads_info): Ditto.
1003 * solib-target.c (solib_target_parse_libraries): Ditto.
1004 * xml-syscall.c (syscall_parse_xml): Ditto.
1005 * xml-tdesc.c (tdesc_parse_xml): Ditto.
1007 2011-01-24 Kevin Buettner <kevinb@redhat.com>
1009 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
1010 with remote-mips.o added to gdb_target_obs.
1011 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
1013 2011-01-24 Pedro Alves <pedro@codesourcery.com>
1015 * ada-valprint.c (val_print_packed_array_elements): Pass the
1016 correct struct value to val_print.
1017 (ada_val_print_1): Ditto.
1019 2011-01-24 Pedro Alves <pedro@codesourcery.com>
1021 Don't lose embedded_offset in printing routines throughout.
1023 * valprint.h (val_print_array_elements): Change prototype.
1024 * valprint.c (val_print_array_elements): Add `embedded_offset'
1025 parameter, and adjust to pass it down to val_print, while passing
1026 `valaddr' or `address' unmodified. Take embedded_offset into
1027 account when checking repetitions.
1028 * c-valprint.c (c_val_print): Pass embedded_offset to
1029 val_print_array_elements instead of adjusting `valaddr' and
1031 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
1032 embedded_offset to val_print_array_elements instead of adjusting
1034 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
1035 * p-valprint.c (pascal_val_print): Pass embedded_offset to
1036 val_print_array_elements and pascal_object_print_value_fields
1037 instead of adjusting `valaddr'.
1038 (pascal_object_print_value_fields): Add `offset' parameter, and
1040 (pascal_object_print_value): Add `offset' parameter, and adjust to
1042 (pascal_object_print_static_field): Use
1043 value_contents_for_printing/value_embedded_offset, rather than
1045 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
1046 parameter, and adjust to use it. Use
1047 value_contents_for_printing/value_embedded_offset, rather than
1049 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
1050 (ada_val_print_array): Add `offset' parameter, and adjust to use
1052 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
1053 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
1054 Instead work with offsets. Use
1055 value_contents_for_printing/value_embedded_offset, rather than
1056 value_contents. Change `defer_val_int' local type to CORE_ADDR,
1057 and use value_from_pointer to extract a target pointer, rather
1058 than value_from_longest.
1059 (print_variant_part): Add `offset' parameter. Replace
1060 `outer_valaddr' parameter by a new `outer_offset' parameter.
1061 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1062 (ada_value_print): Use
1063 value_contents_for_printing/value_embedded_offset, rather than
1065 (print_record): Add `offset' parameter, and adjust to pass it
1067 (print_field_values): Add `offset' parameter. Replace
1068 `outer_valaddr' parameter by a new `outer_offset' parameter.
1069 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1070 Use value_contents_for_printing/value_embedded_offset, rather than
1072 * d-valprint.c (dynamic_array_type): Use
1073 value_contents_for_printing/value_embedded_offset, rather than
1075 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
1076 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1077 (java_print_value_fields): Take `offset' into account. Don't
1078 re-adjust `valaddr'. Instead pass down adjusted offsets.
1079 (java_val_print): Take `embedded_offset' into account. Pass it to
1080 java_print_value_fields.
1081 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
1082 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
1083 down adjusted offsets.
1084 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
1085 (f_val_print): Take `embedded_offset' into account.
1087 2011-01-21 Joel Brobecker <brobecker@adacore.com>
1089 * inflow.c: Include "gdbcmd.h".
1090 (interactive_mode): New static global, moved here from top.c.
1091 (show_interactive_mode): New function, moved here from top.c.
1092 use gdb_has_a_terminal instead of input_from_terminal_p to
1093 determine the current mode.
1094 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
1096 (_initialize_inflow): Add the "set/show interactive-mode"
1097 commands. Moved here from top.c, after having adjusted slightly
1099 * top.c (interactive_mode, show_interactive_mode): Delete, moved
1101 (input_from_terminal_p): Remove handling of "interactive-mode"
1102 setting, moved to infow.c.
1103 (init_main): Remove creation of the "set/show interactive-mode"
1104 commands, moved to inflow.c.
1106 2011-01-19 Joel Brobecker <brobecker@adacore.com>
1108 * NEWS: Add entry for native ia64-hpux support.
1110 2011-01-19 Tom Tromey <tromey@redhat.com>
1113 * thread.c (free_thread): Free 'name'.
1114 (print_thread_info): Emit thread name. Change CLI output.
1115 (thread_name_command): New function.
1116 (do_captured_thread_select): Emit newline.
1117 (_initialize_thread): Register 'thread name' command.
1118 * target.h (struct target_ops) <to_thread_name>: New field.
1119 (target_thread_name): New macro.
1120 * target.c (update_current_target): Handle to_thread_name.
1121 * python/py-infthread.c (thpy_get_name): New function.
1122 (thpy_set_name): Likewise.
1123 (thread_object_getset): Add "name".
1124 * linux-nat.c (linux_nat_thread_name): New function.
1125 (linux_nat_add_target): Set to_thread_name.
1126 * gdbthread.h (struct thread_info) <name>: New field.
1128 2011-01-18 Joel Brobecker <brobecker@adacore.com>
1130 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
1131 (ada_val_print_1): Likewise.
1133 2011-01-18 Joel Brobecker <brobecker@adacore.com>
1135 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
1136 upper limit address is not greater than the function end address
1137 when the upper limit could not be computed using the debugging
1140 2011-01-17 Tom Tromey <tromey@redhat.com>
1142 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
1144 * utils.c: Include gdb_regex.h.
1145 (do_regfree_cleanup): New function.
1146 (make_regfree_cleanup): Likewise.
1147 (get_regcomp_error): Likewise.
1148 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
1150 2011-01-17 Tom Tromey <tromey@redhat.com>
1152 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
1155 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1157 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
1158 for internal variables.
1159 (last_was_structop): New static variable.
1160 (COMPLETE): New token.
1161 (field_exp): New rule to group all '.' suffix handling.
1162 Add mark_struct_expression calls when approriate to be able
1163 to correctly find fields for completion.
1164 (yylex): Adapt to handle field completion and set INTVAR when
1167 2011-01-14 Yao Qi <yao@codesourcery.com>
1169 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
1170 save_reggroup, restore_reggroup and all_reggroup.
1172 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1174 * ada-valprint. (ada_printchar): Use the correct type length
1175 in call to ada_emit_char.
1176 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
1178 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1180 * solib-som.h (hpux_major_release): Declare variable here.
1181 * solib-som.c: Remove <sys/utsname.h> header.
1182 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
1183 (hpux_major_release): Make global, change default value to
1184 DEFAULT_HPUX_MAJOR_RELEASE.
1185 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
1186 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
1187 Add "solib-som.h" header.
1188 (set_hpux_major_release): New function.
1189 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
1191 2011-01-14 Mike Frysinger <vapier@gentoo.org>
1193 * configure.tgt (*-*-uclinux*): Match more Linux os targets
1195 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1197 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
1198 new-line at end of warning message.
1199 (ia64_hpux_store_register): Remove trailing new-line at end of
1201 * ia64-hpux-tdep.c: Rephrase comment.
1202 * solib-ia64-hpux.c (struct dld_info): Change type of field
1203 dld_flags from "long long" to ULONGEST.
1205 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1207 * target.h (deprecated_child_ops): Delete declaration.
1208 * target.c (deprecated_child_ops): Delete definition.
1210 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1212 * Makefile.in (hpux-thread.o): Delete rule.
1213 * configure.ac: Don't check for HPUX DCE threads support.
1214 * configure, config.in: Regenerate.
1215 * hppa-hpux-nat.c (child_suppress_run): Delete.
1216 (hppa_hpux_child_can_run): Delete.
1217 (_initialize_hppa_hpux_nat): Don't override to_can_run.
1218 * hpux-thread.c: Delete.
1220 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1222 * hpux-thread.c (hpux_pid_to_str): Delete.
1224 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1226 * ada-valprint.c (ada_emit_char): Remove strange code.
1227 Check that c is <= UCHAR_MAX before passing it to isascii.
1228 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
1230 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1232 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
1233 to the case where instream is stdin.
1235 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1237 * ia64-tdep.h (struct regcache): Forward declare.
1238 (struct ia64_infcall_ops): New struct type.
1239 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
1241 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
1242 Renames ia64_find_global_pointer.
1243 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
1244 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
1245 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
1247 (ia64_infcall_ops): New static global constant.
1248 (ia64_gdbarch_init): Set tdep->infcall_ops.
1249 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
1250 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
1251 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
1252 (ia64_hpux_dummy_code): New static global constant.
1253 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
1254 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
1255 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
1257 (ia64_hpux_infcall_ops): New static global constant.
1258 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
1259 for inferior function calls to work properly on ia64-hpux.
1261 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1263 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
1264 * ia64-tdep.h (struct frame_info): forward declaration.
1265 (struct gdbarch_tdep): Add field size_of_register_frame.
1266 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
1267 to determine the size of the register frame.
1268 (ia64_size_of_register_frame): New function.
1269 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
1270 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
1271 (IA64_HPUX_UREG_REASON): New macro.
1272 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
1274 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
1275 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
1276 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
1279 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1281 Add support for ia64-hpux.
1282 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
1283 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
1285 * configure.host: Add handling for ia64-hpux hosts. Add associated
1287 * configure.tgt: Add handling for ia64-hpux targets.
1288 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
1289 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
1290 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
1292 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1294 [ttrace] Compute thread list immediately after attach.
1295 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
1297 (inf_ttrace_attach): Use it.
1299 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1301 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
1302 if we could not determine the frame's function address. Instead,
1303 use the frame's PC, and then continue.
1305 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1307 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
1308 not already defined.
1310 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1312 * ia64-tdep.c (ia64_struct_type_p): New function.
1313 (ia64_extract_return_value): Handle integral values that are
1314 less than 8 bytes long.
1315 (ia64_push_dummy_call): Likewise.
1317 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1319 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
1320 floatformat_ia64_ext.
1321 (floatformat_ia64_ext_big): New static const.
1322 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
1324 2011-01-12 Tom Tromey <tromey@redhat.com>
1326 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
1328 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
1329 (mi_cmd_thread_list_ids): Likewise.
1330 (mi_cmd_data_list_changed_registers): Likewise.
1331 (mi_cmd_data_list_register_values): Likewise.
1332 (mi_cmd_data_write_register_values): Likewise.
1333 (mi_cmd_data_evaluate_expression): Likewise.
1334 (mi_cmd_data_read_memory): Likewise.
1335 (mi_cmd_data_read_memory_bytes): Likewise.
1336 (mi_cmd_data_write_memory): Likewise.
1337 (mi_cmd_enable_timings): Likewise.
1338 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
1339 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
1340 (mi_cmd_var_delete): Likewise.
1341 (mi_cmd_var_set_format): Likewise.
1342 (mi_cmd_var_show_format): Likewise.
1343 (mi_cmd_var_info_num_children): Likewise.
1344 (mi_cmd_var_list_children): Likewise.
1345 (mi_cmd_var_info_type): Likewise.
1346 (mi_cmd_var_info_expression): Likewise.
1347 (mi_cmd_var_show_attributes): Likewise.
1348 (mi_cmd_var_assign): Likewise.
1349 (mi_cmd_var_update): Likewise.
1350 (mi_cmd_enable_pretty_printing): Likewise.
1351 (mi_cmd_var_set_update_range): Likewise.
1352 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
1354 (mi_cmd_target_file_put): Likewise.
1355 (mi_cmd_target_file_delete): Likewise.
1356 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
1358 (mi_cmd_stack_info_depth): Likewise.
1359 (mi_cmd_stack_list_locals): Likewise.
1360 (mi_cmd_stack_list_args): Likewise.
1361 (mi_cmd_stack_select_frame): Likewise.
1362 (mi_cmd_stack_select_frame): Likewise.
1363 (mi_cmd_stack_info_frame): Likewise.
1364 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
1366 (mi_cmd_file_list_exec_source_files): Likewise.
1367 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
1368 (mi_cmd_env_cd): Likewise.
1369 (mi_cmd_env_path): Likewise.
1370 (mi_cmd_env_dir): Likewise.
1371 (mi_cmd_inferior_tty_show): Likewise.
1372 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
1373 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
1374 (mi_cmd_break_watch): Likewise.
1376 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
1378 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
1379 (ppc_linux_insert_hw_breakpoint): Likewise.
1380 (ppc_linux_remove_hw_breakpoint): Likewise.
1381 (ppc_linux_insert_watchpoint): Likewise.
1383 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1384 Jan Kratochvil <jan.kratochvil@redhat.com>
1386 PR fortran/11104 and DWARF unbound arrays detection.
1387 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
1388 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
1389 unspecified upper bound.
1390 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
1391 variables array_size_array, tmp_type and offset_item. New variable
1392 array. Remove call to f77_get_upperbound. New variables array_type
1393 and index. Call value_subscripted_rvalue for each dimenasion. Remove
1394 the final call to deprecated_set_value_type.
1396 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1398 Make value allocations more lazy.
1399 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
1400 instead of allocate_value and set_value_lazy when possible.
1401 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
1402 instead of allocate_value and set_value_lazy.
1403 * findvar.c (value_of_register_lazy): Likewise.
1404 (read_var_value): Remove V preallocation, call just check_typedef in
1405 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
1406 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
1407 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
1408 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
1409 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
1410 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
1411 the end, remove set_value_lazy there.
1412 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
1413 instead of allocate_value and set_value_lazy when possible.
1414 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
1415 * value.c (allocate_computed_value): Use allocate_value_lazy instead
1416 of allocate_value and set_value_lazy.
1417 (value_from_contents_and_address): Use allocate_value_lazy instead of
1418 allocate_value and set_value_lazy when possible.
1420 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1422 * disasm.c (dump_insns): Support dumping opcodes for MI.
1423 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
1424 dumping of instruction opcodes.
1426 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
1428 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
1431 2011-01-11 Tom Tromey <tromey@redhat.com>
1433 * thread.c (do_captured_thread_select): Emit newline before
1436 2011-01-11 Michael Snyder <msnyder@vmware.com>
1438 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
1439 * score-tdep.c: Ditto.
1440 * score-tdep.h: Ditto.
1441 * ser-base.c: Ditto.
1442 * ser-go32.c: Ditto.
1445 * ser-mingw.c: Ditto.
1446 * ser-pipe.c: Ditto.
1448 * ser-unix.c: Ditto.
1449 * sh64-tdep.c: Ditto.
1450 * shnbsd-nat.c: Ditto.
1454 * solib-darwin.c: Ditto.
1455 * solib-frv.c: Ditto.
1457 * solib-irix.c: Ditto.
1458 * solib-osf.c: Ditto.
1459 * solib-pa64.c: Ditto.
1460 * solib-som.c: Ditto.
1461 * solib-spu.c: Ditto.
1462 * solib-sunos.c: Ditto.
1463 * solib-svr4.c: Ditto.
1465 * sol-thread.c: Ditto.
1469 * sparc64-linux-tdep.c: Ditto.
1470 * sparc64-tdep.c: Ditto.
1471 * sparc-linux-nat.c: Ditto.
1472 * sparc-linux-tdep.c: Ditto.
1473 * sparc-sol2-nat.c: Ditto.
1474 * sparc-sol2-tdep.c: Ditto.
1475 * sparc-tdep.c: Ditto.
1476 * sparc-tdep.h: Ditto.
1477 * spu-tdep.c: Ditto.
1478 * stabsread.c: Ditto.
1479 * stabsread.h: Ditto.
1487 * target-descriptions.c: Ditto.
1488 * target-descriptions.h: Ditto.
1490 * target-memory.c: Ditto.
1491 * terminal.h: Ditto.
1494 * tracepoint.c: Ditto.
1495 * tracepoint.h: Ditto.
1496 * trad-frame.h: Ditto.
1497 * typeprint.c: Ditto.
1499 2011-01-11 Michael Snyder <msnyder@vmware.com>
1501 * ui-file.c: Comment cleanup, mostly periods and spaces.
1506 * v850-tdep.c: Ditto.
1507 * valarith.c: Ditto.
1509 * valprint.c: Ditto.
1510 * valprint.h: Ditto.
1515 * vax-tdep.c: Ditto.
1519 * windows-nat.c: Ditto.
1520 * windows-tdep.c: Ditto.
1521 * xcoffread.c: Ditto.
1522 * xcoffsolib.c: Ditto.
1523 * xml-support.c: Ditto.
1524 * xstormy16-tdep.c: Ditto.
1525 * xtensa-tdep.c: Ditto.
1526 * xtensa-tdep.h: Ditto.
1528 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1530 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
1531 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
1533 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1534 Thiago Jung Bauermann <bauerman@br.ibm.com>
1536 Implement support for PowerPC BookE ranged watchpoints.
1538 (struct breakpoint_ops) <resources_needed>: New method.
1539 Initialize to NULL in all existing breakpoint_ops instances.
1540 (struct breakpoint) <exact>: New field.
1541 (target_exact_watchpoints): Declare external global.
1542 * breakpoint.c (target_exact_watchpoints): New global flag.
1543 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
1544 b->enable_state to bp_enabled before calling
1545 hw_watchpoint_used_count.
1546 (hw_watchpoint_used_count): Iterate over all bp_locations in a
1547 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
1549 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
1550 if the watchpoint is exact.
1551 (resources_needed_watchpoint): New function.
1552 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
1553 (watch_command_1): Set b->exact if the user asked for an exact
1554 watchpoint and one can be set.
1555 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
1556 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
1557 the user asks for an exact watchpoint and one can be set. Return
1558 number of needed debug registers to watch the expression.
1559 * gdbtypes.c (is_scalar_type): New function, based on
1560 valprint.c:scalar_type_p.
1561 (is_scalar_type_recursive): New function.
1562 * gdbtypes.h (is_scalar_type_recursive): Declare.
1563 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
1564 handle regions when ranged watchpoints are available.
1565 (create_watchpoint_request): New function.
1566 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1567 create_watchpoint_request.
1568 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
1569 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
1570 `set powerpc' and `show powerpc' commands.
1571 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1572 Mention documentation comment in the target macro.
1573 (target_region_ok_for_hw_watchpoint): Document return value.
1575 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1577 * breakpoint.c (update_watchpoint): Decide on using a software or
1578 hardware watchpoint after the bp_locations are created.
1580 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1582 Convert hardware watchpoints to use breakpoint_ops.
1583 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
1584 <insert_location>: ... this. Return int instead of void.
1585 Accept pointer to struct bp_location instead of pointer to
1586 struct breakpoint. Adapt all implementations.
1587 (breakpoint_ops) <remove>: Rename to...
1588 <remove_location>: ... this. Accept pointer to struct bp_location
1589 instead of pointer to struct breakpoint. Adapt all implementations.
1590 * breakpoint.c (insert_catchpoint): Delete function.
1591 (insert_bp_location): Call the watchpoint or catchpoint's
1592 breakpoint_ops.insert method.
1593 (remove_breakpoint_1): Call the watchpoint or catchpoint's
1594 breakpoint_ops.remove method.
1595 (insert_watchpoint, remove_watchpoint): New functions.
1596 (watchpoint_breakpoint_ops): New structure.
1597 (watch_command_1): Initialize the OPS field.
1598 * inf-child.c (inf_child_insert_fork_catchpoint)
1599 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
1600 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
1601 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
1603 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
1604 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
1605 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
1606 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
1607 * target.c (update_current_target): Change default implementation of
1608 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
1609 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
1610 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
1611 to_set_syscall_catchpoint to return_one.
1612 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
1613 (debug_to_insert_exec_catchpoint): Report return value.
1614 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
1615 (to_insert_exec_catchpoint): Change declaration to return int instead
1618 2011-01-11 Michael Snyder <msnyder@vmware.com>
1620 * arm-tdep.c: Internationalization.
1623 * fork-child.c: Ditto.
1624 * nto-procfs.c: Ditto.
1625 * ppc-sysv-tdep.c: Ditto.
1627 * remote-mips.c: Ditto.
1629 * rs6000-nat.c: Ditto.
1630 * rs6000-tdep.c: Ditto.
1634 * xml-support.c: Ditto.
1635 * mi/mi-cmd-break.c: Ditto.
1636 * mi/mi-cmd-var.c: Ditto.
1637 * mi/mi-interp.c: Ditto.
1638 * mi/mi-main.c: Ditto.
1640 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
1642 * remote-sim.c (gdbsim_store_register): Update API to
1643 sim_store_register to check more error conditions.
1645 2011-01-10 Michael Snyder <msnyder@vmware.com>
1647 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
1648 * nto-tdep.c: Ditto.
1649 * nto-tdep.h: Ditto.
1650 * objc-exp.y: Ditto.
1651 * objc-lang.c: Ditto.
1652 * objfiles.c: Ditto.
1653 * objfiles.h: Ditto.
1654 * observer.c: Ditto.
1655 * opencl-lang.c: Ditto.
1658 * parser-defs.h: Ditto.
1661 * posix-hdep.c: Ditto.
1662 * ppcbug-rom.c: Ditto.
1663 * ppc-linux-nat.c: Ditto.
1664 * ppc-linux-tdep.c: Ditto.
1665 * ppc-linux-tdep.h: Ditto.
1666 * ppcnbsd-tdep.c: Ditto.
1667 * ppcobsd-tdep.c: Ditto.
1668 * ppcobsd-tdep.h: Ditto.
1669 * ppc-sysv-tdep.c: Ditto.
1670 * ppc-tdep.h: Ditto.
1671 * printcmd.c: Ditto.
1672 * proc-abi.c: Ditto.
1673 * proc-flags.c: Ditto.
1675 * proc-utils.h: Ditto.
1676 * progspace.h: Ditto.
1677 * prologue-value.c: Ditto.
1678 * prologue-value.h: Ditto.
1679 * psympriv.h: Ditto.
1681 * p-typeprint.c: Ditto.
1682 * p-valprint.c: Ditto.
1683 * ravenscar-sparc-thread.c: Ditto.
1684 * ravenscar-thread.c: Ditto.
1685 * ravenscar-thread.h: Ditto.
1687 * regcache.c: Ditto.
1688 * regcache.h: Ditto.
1690 * remote-fileio.c: Ditto.
1691 * remote-fileio.h: Ditto.
1693 * remote-m32r-sdi.c: Ditto.
1694 * remote-mips.c: Ditto.
1695 * remote-sim.c: Ditto.
1696 * rs6000-aix-tdep.c: Ditto.
1697 * rs6000-nat.c: Ditto.
1698 * rs6000-tdep.c: Ditto.
1700 2011-01-10 Michael Snyder <msnyder@vmware.com>
1702 * charset.c (validate): Internationalization.
1703 * coffread.c (read_one_sym): Ditto.
1704 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
1705 * h8300-tdep.c (H8300_extract_return_value): Ditto.
1706 * inflow.c (new_tty): Ditto.
1707 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
1708 * m32c-tdep.c (m32c_return_value): Ditto.
1709 * mep-tdep.c (mep_store_return_value): Ditto.
1710 * score-tdep.c (score7_fetch_insn): Ditto.
1711 * ser-mingw.c (pipe_windows_open): Ditto.
1712 * sh64-tdep.c (sh64_extract_return_value): Ditto.
1713 * spu-tdep.c (spu_register_type): Ditto.
1714 * tracepoint.c (trace_find_command): Ditto.
1715 * valarith.c (value_pos): Ditto.
1717 2011-01-10 Joel Brobecker <brobecker@adacore.com>
1719 * ada-valprint.c (printstr): Minor comment reformatting.
1721 2011-01-08 Michael Snyder <msnyder@vmware.com>
1723 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
1726 2011-01-08 Michael Snyder <msnyder@vmware.com>
1728 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
1729 * hppa-hpux-tdep.c: Ditto.
1730 * hppa-linux-nat.c: Ditto.
1731 * hppa-linux-tdep.c: Ditto.
1732 * hppanbsd-tdep.c: Ditto.
1733 * hppa-tdep.c: Ditto.
1734 * hppa-tdep.h: Ditto.
1735 * hpux-thread.c: Ditto.
1736 * i386-cygwin-tdep.c: Ditto.
1737 * i386-darwin-nat.c: Ditto.
1738 * i386gnu-nat.c: Ditto.
1739 * i386-linux-nat.c: Ditto.
1740 * i386-linux-tdep.c: Ditto.
1741 * i386-nat.c: Ditto.
1742 * i386-nat.h: Ditto.
1743 * i386nbsd-tdep.c: Ditto.
1744 * i386-sol2-nat.c: Ditto.
1745 * i386-stub.c: Ditto.
1746 * i386-tdep.c: Ditto.
1747 * i386-tdep.h: Ditto.
1748 * i387-tdep.c: Ditto.
1749 * ia64-linux-nat.c: Ditto.
1750 * ia64-linux-tdep.c: Ditto.
1751 * ia64-tdep.c: Ditto.
1755 * inferior.c: Ditto.
1756 * inferior.h: Ditto.
1762 * iq2000-tdep.c: Ditto.
1763 * irix5-nat.c: Ditto.
1769 * jv-typeprint.c: Ditto.
1770 * jv-valprint.c: Ditto.
1771 * language.c: Ditto.
1772 * language.h: Ditto.
1773 * linespec.c: Ditto.
1774 * linux-fork.c: Ditto.
1775 * linux-nat.c: Ditto.
1776 * linux-thread-db.c: Ditto.
1777 * lm32-tdep.c: Ditto.
1779 2011-01-08 Michael Snyder <msnyder@vmware.com>
1781 * m2-exp.y: Comment cleanup, mostly periods and spaces.
1783 * m2-typeprint.c: Ditto.
1784 * m2-valprint.c: Ditto.
1785 * m32c-tdep.c: Ditto.
1786 * m32r-linux-nat.c: Ditto.
1787 * m32r-rom.c: Ditto.
1788 * m32r-tdep.c: Ditto.
1789 * m32r-tdep.h: Ditto.
1790 * m68hc11-tdep.c: Ditto.
1791 * m58klinux-nat.c: Ditto.
1792 * m68k-tdep.c: Ditto.
1793 * m88k-tdep.c: Ditto.
1794 * m88k-tdep.h: Ditto.
1795 * machoread.c: Ditto.
1796 * macrocmd.c: Ditto.
1797 * macroexp.c: Ditto.
1798 * macrotab.c: Ditto.
1801 * mdebugread.c: Ditto.
1802 * mdebugread.h: Ditto.
1805 * memory-map.h: Ditto.
1806 * mep-tdep.c: Ditto.
1807 * microblaze-rom.c: Ditto.
1808 * microblaze-tdep.c: Ditto.
1810 * mips-irix-tdep.c: Ditto.
1811 * mips-linux-nat.c: Ditto.
1812 * mips-linux-tdep.c: Ditto.
1813 * mips-linux-tdep.h: Ditto.
1814 * mipsnbsd-nat.c: Ditto.
1815 * mipsnbsd-tdep.c: Ditto.
1816 * mipsread.c: Ditto.
1817 * mips-tdep.c: Ditto.
1818 * mips-tdep.h: Ditto.
1819 * mn10300-linux-tdep.c: Ditto.
1820 * mn10300-tdep.c: Ditto.
1821 * mn10300-tdep.h: Ditto.
1824 * moxie-tdep.c: Ditto.
1825 * moxie-tdep.h: Ditto.
1828 2011-01-08 Mike Frysinger <vapier@gentoo.org>
1830 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
1832 2011-01-08 Robert Millan <rmh@gnu.org>
1834 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
1836 2011-01-07 Michael Snyder <msnyder@vmware.com>
1838 * charset.c (_initialize_charset): Fix typo in string.
1840 2011-01-07 Michael Snyder <msnyder@vmware.com>
1842 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
1844 * tui/tui-layout.c (tui_set_layout_for_display_command):
1845 Split line so that operator goes to beginning of line.
1846 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
1847 assignment out of if statement.
1849 2011-01-07 Michael Snyder <msnyder@vmware.com>
1851 * ada-lang.c: Comment cleanup, mostly periods and spaces.
1852 * ada-lang.h: Ditto.
1853 * ada-tasks.c: Ditto.
1854 * ada-valprint.c: Ditto.
1855 * aix-threads.c: Ditto.
1856 * alpha-linux-nat.c: Ditto.
1857 * alpha-linux-tdep.c: Ditto.
1858 * alpha-mdebug-tdep.c: Ditto.
1859 * alpha-nat.c: Ditto.
1860 * alpha-osf1-tdep.c: Ditto.
1861 * alpha-tdep.c: Ditto.
1862 * alphabsd-nat.c: Ditto.
1863 * alphabsd-tdep.c: Ditto.
1864 * amd64-darwin-tdep.c: Ditto.
1865 * amd64-linux-nat.c: Ditto.
1866 * amd64-linux-tdep.c: Ditto.
1867 * amd64-sol2-tdep.c: Ditto.
1868 * amd64-tdep.c: Ditto.
1869 * amd64-fbsd-tdep.c: Ditto.
1870 * amd64-nbsd-tdep.c: Ditto.
1871 * amd64-obsd-tdep.c: Ditto.
1872 * amd64-linux-nat.c: Ditto.
1873 * amd64-linux-tdep.c: Ditto.
1874 * arm-tdep.c: Ditto.
1875 * arm-tdep.h: Ditto.
1876 * armnbsd-nat.c: Ditto.
1877 * avr-tdep.c: Ditto.
1878 * bfin-tdep.c: Ditto.
1880 * c-typeprintc: Ditto.
1881 * c-valprint.c: Ditto.
1882 * coff-pe-read.h: Ditto.
1883 * coffreead.c: Ditto.
1884 * cris-tdep.c: Ditto.
1886 * darwin-nat-info.c: Ditto.
1887 * darwin-nat.c: Ditto.
1888 * dbug-rom.c: Ditto.
1892 * dec-thread.c: Ditto.
1894 * demangle.c: Ditto.
1895 * dicos-tdep.c: Ditto.
1896 * dictionary.c: Ditto.
1897 * dictionary.h: Ditto.
1898 * dink32-rom.c: Ditto.
1900 * doublest.c: Ditto.
1902 * dummy-frame.c: Ditto.
1903 * dwarf2-frame.c: Ditto.
1904 * dwarf2expr.c: Ditto.
1905 * dwarf2loc.c: Ditto.
1906 * dwarf2read.c: Ditto.
1910 * event-top.h: Ditto.
1911 * exceptions.c: Ditto.
1912 * exceptions.h: Ditto.
1914 * expprint.c: Ditto.
1915 * expression.h: Ditto.
1919 * f-typeprint.c: Ditto.
1920 * f-valprint.c: Ditto.
1921 * fbsd-nat.c: Ditto.
1923 * fork-child.c: Ditto.
1926 * frv-linux-tdep.c: Ditto.
1927 * frv-tdep.c: Ditto.
1929 * gdb-stabs.h: Ditto.
1930 * gdb_assert.h: Ditto.
1931 * gdb_string.h: Ditto.
1932 * gdb_thread_db.h: Ditto.
1933 * gdb_wait.h: Ditto.
1934 * gdbarch.sh: Ditto.
1936 * gdbthread.h: Ditto.
1937 * gdbtypes.c: Ditto.
1938 * gdbtypes.h: Ditto.
1941 * gnu-v2-abi.c: Ditto.
1942 * gnu-v3-abi.c: Ditto.
1943 * go32-nat.c: Ditto.
1944 * gdbarch.c: Regenerate.
1945 * gdbarch.h: Regenerate.
1947 2011-01-07 Michael Snyder <msnyder@vmware.com>
1949 * ax-gdb.c: Adjust some long output strings.
1950 * breakpoint.c: Ditto.
1955 * linux-nat.c: Ditto.
1956 * solib-pa64.c: Ditto.
1957 * solib-som.c: Ditto.
1959 2011-01-06 Tom Tromey <tromey@redhat.com>
1963 * python/python.c (GdbMethods): Add "newest_frame" method.
1964 * python/python-internal.h (gdbpy_newest_frame): Declare.
1965 * python/py-frame.c (gdbpy_newest_frame): New function.
1967 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1969 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
1970 * jit.c (jit_debug): New variable.
1971 (show_jit_debug): New function.
1972 (struct target_buffer): Use ULONGEST.
1973 (bfd_open_from_target_memory): Likewise.
1974 (jit_register_code, jit_inferior_init): Add debug output.
1975 (_initialize_jit): Register "debug jit" command.
1977 2011-01-06 Tom Tromey <tromey@redhat.com>
1979 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
1980 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
1983 2011-01-06 Tom Tromey <tromey@redhat.com>
1985 * python/py-frame.c (frapy_block): Use get_frame_block.
1987 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1989 Do not stop on SIGPRIO signals by default
1990 * infrun.c (_initialize_infrun): Unset signal_stop and
1991 signal_print for TARGET_SIGNAL_PRIO.
1993 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1995 * ada-tasks.c: Fix style violation in comment.
1997 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1999 * linespec.c (decode_compound, find_method): Remove trailing \n
2000 at end of error string.
2001 * solib-irix.c (irix_current_sos): Likewise.
2002 * varobj.c (uninstall_variable): Likewise.
2004 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2006 * copyright.py: New script.
2007 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
2008 Launch emacs without exec'ing. Call copyright.py afterwards.
2010 2011-01-05 Michael Snyder <msnyder@vmware.com>
2012 * addrmap.c: Shorten lines of >= 80 columns.
2013 * arch-utils.c: Ditto.
2014 * arch-utils.h: Ditto.
2016 * ax-general.c: Ditto.
2018 * blockframe.c: Ditto.
2019 * breakpoint.c: Ditto.
2020 * buildsym.c: Ditto.
2022 * c-typeprint.c: Ditto.
2024 * coffread.c: Ditto.
2028 * cp-namespace.c: Ditto.
2029 * cp-support.c: Ditto.
2030 * dbug-rom.c: Ditto.
2035 * dictionary.c: Ditto.
2037 * doublest.c: Ditto.
2038 * dwarf2-frame.c: Ditto.
2039 * dwarf2expr.c: Ditto.
2040 * dwarf2loc.c: Ditto.
2041 * dwarf2read.c: Ditto.
2044 * event-loop.c: Ditto.
2045 * event-loop.h: Ditto.
2046 * exceptions.h: Ditto.
2048 * expprint.c: Ditto.
2049 * expression.h: Ditto.
2051 * f-valprint.c: Ditto.
2053 * frame-base.c: Ditto.
2054 * frame-unwind.c: Ditto.
2055 * frame-unwind.h: Ditto.
2059 * gdb-stabs.h: Ditto.
2060 * gdb_assert.h: Ditto.
2061 * gdb_dirent.h: Ditto.
2062 * gdb_obstack.h: Ditto.
2064 * gdbtypes.c: Ditto.
2065 * gdbtypes.h: Ditto.
2066 * inf-ttrace.c: Ditto.
2071 * inline-frame.h: Ditto.
2072 * language.c: Ditto.
2073 * language.h: Ditto.
2074 * libunwind-frame.c: Ditto.
2075 * libunwind-frame.h: Ditto.
2076 * linespec.c: Ditto.
2077 * linux-nat.c: Ditto.
2078 * linux-nat.h: Ditto.
2079 * linux-thread-db.c: Ditto.
2080 * machoread.c: Ditto.
2081 * macroexp.c: Ditto.
2082 * macrotab.c: Ditto.
2085 * mdebugread.c: Ditto.
2090 * objfiles.c: Ditto.
2091 * objfiles.h: Ditto.
2093 * p-typeprint.c: Ditto.
2094 * p-valprint.c: Ditto.
2096 * printcmd.c: Ditto.
2097 * proc-events.c: Ditto.
2099 * progspace.c: Ditto.
2100 * progspace.h: Ditto.
2101 * psympriv.h: Ditto.
2104 * regcache.c: Ditto.
2105 * regcache.h: Ditto.
2106 * remote-fileio.c: Ditto.
2108 * ser-mingw.c: Ditto.
2110 * ser-unix.c: Ditto.
2113 * solib-frv.c: Ditto.
2114 * solib-irix.c: Ditto.
2115 * solib-osf.c: Ditto.
2116 * solib-pa64.c: Ditto.
2117 * solib-som.c: Ditto.
2118 * solib-sunos.c: Ditto.
2119 * solib-svr4.c: Ditto.
2120 * solib-target.c: Ditto.
2124 * stabsread.c: Ditto.
2125 * stabsread.c: Ditto.
2128 * symfile-mem.c: Ditto.
2134 * target-descriptions.c: Ditto.
2135 * target-memory.c: Ditto.
2138 * terminal.h: Ditto.
2141 * tracepoint.c: Ditto.
2142 * tracepoint.h: Ditto.
2146 * user-regs.c: Ditto.
2147 * user-regs.h: Ditto.
2149 * valarith.c: Ditto.
2151 * valprint.c: Ditto.
2152 * valprint.h: Ditto.
2157 * xcoffread.c: Ditto.
2158 * xcoffsolib.c: Ditto.
2159 * xcoffsolib.h: Ditto.
2160 * xml-syscall.c: Ditto.
2161 * xml-tdesc.c: Ditto.
2163 2011-01-05 Michael Snyder <msnyder@vmware.com>
2165 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
2166 * cli/cli-decode.c: Ditto.
2167 * cli/cli-dump.c: Ditto.
2168 * cli/cli-logging.c: Ditto.
2169 * cli/cli-script.c: Ditto.
2170 * cli/cli-setshow.c: Ditto.
2171 * common/signals.c: Ditto.
2172 * mi/mi-cmd-break.c: Ditto.
2173 * mi/mi-cmd-disas.c: Ditto.
2174 * mi/mi-cmd-stack.c: Ditto.
2175 * mi/mi-cmd-var.c: Ditto.
2176 * mi/mi-cmds.c: Ditto.
2177 * mi/mi-common.h: Ditto.
2178 * mi/mi-console.c: Ditto.
2179 * mi/mi-interp.c: Ditto.
2180 * mi/mi-main.c: Ditto.
2181 * osf-share/cma_attr.c: Ditto.
2182 * osf-share/cma_deb_core.h: Ditto.
2183 * osf-share/cma_debug_client.h: Ditto.
2184 * osf-share/cma_handle.h: Ditto.
2185 * osf-share/cma_mutex.h: Ditto.
2186 * osf-share/cma_stack_int.h: Ditto.
2187 * osf-share/cma_tcb_defs.h: Ditto.
2188 * python/py-auto-load.c: Ditto.
2189 * python/py-breakpoint.c: Ditto.
2190 * python/py-cmd.c: Ditto.
2191 * python/py-frame.c: Ditto.
2192 * python/py-objfile.c: Ditto.
2193 * python/py-param.c: Ditto.
2194 * python/py-progspace.c: Ditto.
2195 * python/py-symbol.c: Ditto.
2196 * python/py-value.c: Ditto.
2197 * python/python-internal.h: Ditto.
2198 * python/python.c: Ditto.
2199 * tui/tui-data.c: Ditto.
2200 * tui/tui-disasm.c: Ditto.
2201 * tui/tui-hooks.c: Ditto.
2202 * tui/tui-io.c: Ditto.
2203 * tui/tui-layout.c: Ditto.
2204 * tui/tui-regs.c: Ditto.
2205 * tui/tui-source.c: Ditto.
2206 * tui/tui-stack.c: Ditto.
2207 * tui/tui-win.c: Ditto.
2208 * tui/tui-windata.c: Ditto.
2209 * tui/tui-winsource.c: Ditto.
2211 2011-01-05 Joel Brobecker <brobecker@adacore.com>
2213 * configure.ac, gdb.1: Copyright year update.
2215 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2217 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
2218 this_pc_in_block, morestack_msym and morestack_name. Check for
2219 "__morestack" minimal symbol there.
2221 2011-01-03 Joel Brobecker <brobecker@adacore.com>
2223 * symfile.c (find_sym_fns): Add call to dont_repeat.
2225 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2227 Copyright year update in most files (performed by copyright.sh).
2229 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2231 * top.c (print_gdb_version): Update copyright year in version output.
2233 For older changes see ChangeLog-2010.
2239 version-control: never