1 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2 Jan Kratochvil <jan.kratochvil@redhat.com>
4 * value.c (value_available_contents_eq): Remove redundant local
5 variables. Fix available contents comparision.
6 * value.h (value_available_contents_eq): Extend describing
9 2011-02-16 Yao Qi <yao@codesourcery.com>
11 * thread.c (info_threads_command): Add missing i18n markup and remove
14 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
16 * breakpoint.c (longjmp_names): New variable.
17 (struct breakpoint_objfile_data): New type.
18 (breakpoint_objfile_key): New variable.
19 (msym_not_found): New variable.
20 (msym_not_found_p): New predicate.
21 (get_breakpoint_objfile_data): New function.
22 (create_overlay_event_breakpoint): Check per-objfile cache for
24 (create_longjmp_master_breakpoint): Likewise.
25 (create_std_terminate_master_breakpoint): Likewise.
26 (create_exception_master_breakpoint): Likewise.
27 (_initialize_breakpoint): Register per-objfile data key.
29 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
31 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
33 (create_longjmp_master_breakpoint): Loop over longjmp names.
34 (create_std_terminate_master_breakpoint): Const-propagate parameter
36 (update_breakpoints_after_exec): Adjust.
37 (breakpoint_re_set): Adjust.
39 2011-02-15 Michael Snyder <msnyder@vmware.com>
41 * thread.c (info_threads_command): Process arg as thread id,
42 or list of thread ids.
43 (thread_find_command): New command.
44 (_initialize_thread): Document argument for info threads.
45 Document 'thread find' command.
46 * NEWS: Document new command "thread find".
48 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
50 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
51 * aclocal.m4: Regenerated with aclocal-1.11.1.
52 * common/configure: Regenerate with autoconf-2.64.
54 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
56 * opencl-lang.c (build_opencl_types): Set the size of the built-in
57 bool data type to a size of one byte.
59 2011-02-15 Pedro Alves <pedro@codesourcery.com>
60 Jan Kratochvil <jan.kratochvil@redhat.com>
62 * target.c (memory_xfer_live_readonly_partial): Document where to
63 look for interface description.
65 2011-02-15 Yao Qi <yao@codesourcery.com>
68 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
69 order to store PC value on stack instead of text section.
71 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
73 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
74 the EFP register set size.
75 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
76 data from the VMX register.
77 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
78 and write data from/to the VMX register.
80 2011-02-14 Michael Snyder <msnyder@vmware.com>
82 * command.h (enum command_class): New class 'no_set_class', for
83 "show" commands without a corresponding "set" command.
84 * value.c (_initialize_values): Use 'no_set_class' for "show values".
85 * copying.c (_initialize_copying): Ditto for "show copying" and
87 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
89 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
90 which there is no corresponding "set" command (eg. "show copying").
92 2011-02-14 Pedro Alves <pedro@codesourcery.com>
93 Jan Kratochvil <jan.kratochvil@redhat.com>
95 * exec.c (section_table_available_memory): Change `len' parameter
97 * exec.h (section_table_available_memory): Ditto.
98 * value.h (read_value_memory): Rename the `offset' parameter to
101 2011-02-14 Pedro Alves <pedro@codesourcery.com>
102 Jan Kratochvil <jan.kratochvil@redhat.com>
104 * memrange.c (compare_mem_ranges): Mention sort order in
106 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
107 * tracepoint.c (traceframe_available_memory): Extend comment to
108 mention what happens to RESULT when the target does not support
111 2011-02-14 Pedro Alves <pedro@codesourcery.com>
112 Jan Kratochvil <jan.kratochvil@redhat.com>
114 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
117 2011-02-14 Pedro Alves <pedro@codesourcery.com>
119 * value.c (value_bits_valid, value_bits_synthetic_pointer):
120 No longer handle NULL values.
122 2011-02-14 Pedro Alves <pedro@codesourcery.com>
124 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
125 * value.c: Include "exceptions.h".
126 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
128 * cp-abi.c: Include gdb_assert.h.
129 (baseclass_offset): Add `embedded_offset' and `val' parameters.
130 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
132 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
133 parameters. No longer returns -1 on error.
134 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
136 * cp-valprint.c: Include exceptions.h.
137 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
138 the baseclass_offset. Handle unavailable base classes. Use
139 val_print_invalid_address.
140 * p-valprint.c: Include exceptions.h.
141 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
142 when fetching the baseclass_offset. No longer expect
143 baseclass_offset returning -1. Handle unavailable base classes.
144 Use val_print_invalid_address.
145 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
146 `valaddr' parameter, and change its type to gdb_byte pointer. Add
147 `embedded_offset' and `val' parameters. Adjust.
148 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
149 parameter, and change its type to gdb_byte pointer. Add
150 `embedded_offset' and `val' parameters. Adjust. No longer expect
151 baseclass_offset returning -1.
152 (value_dynamic_cast): Use value_contents_for_printing rather than
153 value_contents. Adjust.
154 (search_struct_field): No longer expect baseclass_offset returning
156 (search_struct_method): If reading memory from the target is
157 necessary, wrap it in a new value to pass to baseclass_offset. No
158 longer expect baseclass_offset returning -1.
159 (find_method_list): No longer expect baseclass_offset returning
160 -1. Use value_contents_for_printing rather than value_contents.
161 * valprint.c (val_print_invalid_address): New function.
162 * valprint.h (val_print_invalid_address): Declare.
163 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
164 and `val' parameters. No longer expect baseclass_offset returning
166 * gnu-v2-abi.c: Include "exceptions.h".
167 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
168 parameters. Handle unavailable memory. Recurse through
169 gnuv2_baseclass_offset directly, rather than through
170 baseclass_offset. No longer returns -1 on not found, instead
172 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
173 `val' parameters. Adjust.
175 2011-02-14 Pedro Alves <pedro@codesourcery.com>
177 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
178 almost but not quite adjacent.
180 2011-02-14 Pedro Alves <pedro@codesourcery.com>
182 * value.h (value_entirely_available): Declare.
183 * value.c (value_entirely_available): New function.
184 * c-valprint.c (c_value_print): Don't try fetching the pointer's
185 real type if the pointer is unavailable.
187 2011-02-14 Pedro Alves <pedro@codesourcery.com>
189 * valops.c (value_repeat): Use read_value_memory instead of
192 2011-02-14 Pedro Alves <pedro@codesourcery.com>
194 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
195 * value.c (value_contents_copy_raw, value_contents_copy): New
197 (value_primitive_field): Use value_contents_copy_raw instead of
199 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
201 (value_array, value_slice): Ditto.
202 * valarith.c (value_subscripted_rvalue): Use
203 value_contents_copy_raw instead of memcpy.
205 2011-02-14 Pedro Alves <pedro@codesourcery.com>
207 <unavailable> references.
209 * valops.c (get_value_at): Use value_from_contents_and_address,
210 avoiding read_memory.
212 2011-02-14 Pedro Alves <pedro@codesourcery.com>
214 * c-valprint.c (c_val_print): Print a string with unavailable
215 contents as an array.
217 2011-02-14 Pedro Alves <pedro@codesourcery.com>
219 * value.h (unpack_bits_as_long): Delete declaration.
220 (unpack_value_bits_as_long): Declare.
221 (unpack_value_field_as_long): Declare.
222 (value_field_bitfield): Declare.
223 * value.c (unpack_bits_as_long): Rename to...
224 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
225 value parameters. Return the extracted result in a new output
226 parameter. If the value contents are unavailable, return false,
227 otherwise return true.
228 (unpack_value_bits_as_long): New.
229 (unpack_field_as_long): Rename to...
230 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
231 Add embedded_offset and value parameters. Return the extracted
232 result in a new output parameter. If the value contents are
233 unavailable, return false, otherwise return true.
234 (unpack_value_field_as_long): New.
235 (unpack_field_as_long_1): New.
236 (unpack_field_as_long): Reimplement as wrapper around
237 unpack_value_field_as_long_1.
238 (value_field_bitfield): New function.
239 * valops.c (value_fetch_lazy): When fetching a bitfield, use
240 unpack_value_bits_as_long. Mark the value as unavailable, if it
242 * jv-valprint.c (java_print_value_fields): Use
243 value_field_bitfield.
244 * p-valprint.c (pascal_object_print_value_fields): Use
245 value_field_bitfield.
246 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
248 2011-02-14 Pedro Alves <pedro@codesourcery.com>
250 * value.c (get_internalvar_integer): Also return the int value of
251 TYPE_CODE_INT INTERNALVAR_VALUE values.
252 (set_internalvar): Don't special case TYPE_CODE_INT.
254 2011-02-14 Pedro Alves <pedro@codesourcery.com>
256 * value.c (struct internalvar) <enum internalvar_kind>: Remove
259 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
260 (set_internalvar): Remove special TYPE_CODE_PTR handling.
261 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
263 2011-02-14 Pedro Alves <pedro@codesourcery.com>
265 * value.h (value_available_contents_eq): Declare.
266 * value.c (find_first_range_overlap): New function.
267 (value_available_contents_eq): New function.
268 * valprint.c (val_print_array_elements): Use
269 value_available_contents_eq.
270 * ada-valprint.c (val_print_packed_array_elements): Use
271 value_available_contents_eq.
272 * jv-valprint.c (java_value_print): Use
273 value_available_contents_eq.
275 2011-02-14 Pedro Alves <pedro@codesourcery.com>
277 * target.c (target_read_live_memory): New function.
278 (memory_xfer_live_readonly_partial): New.
279 (memory_xfer_partial): If reading from a traceframe, fallback to
280 reading unavailable read-only memory from read-only regions of
282 * tracepoint.c (disconnect_tracing): Adjust.
283 (set_current_traceframe): New, factored out from
284 set_traceframe_number.
285 (set_traceframe_number): Reimplement to only change the traceframe
286 number on the GDB side.
287 (do_restore_current_traceframe_cleanup): Adjust.
288 (make_cleanup_restore_traceframe_number): New.
289 (cur_traceframe_number): New global.
290 (tfile_open): Set cur_traceframe_number to no traceframe.
291 (set_tfile_traceframe): New function.
292 (tfile_trace_find): If looking up a traceframe using any method
293 other than by number, make sure the current tfile traceframe
294 matches gdb's current traceframe. Update the current tfile
295 traceframe if the lookup succeeded.
296 (tfile_fetch_registers, tfile_xfer_partial)
297 (tfile_get_trace_state_variable_value): Make sure the remote
298 traceframe matches gdb's current traceframe.
299 * remote.c (remote_traceframe_number): New global.
300 (remote_open_1): Set it to -1.
301 (set_remote_traceframe): New function.
302 (remote_fetch_registers, remote_store_registers)
303 (remote_xfer_memory, remote_xfer_partial)
304 (remote_get_trace_state_variable_value): Make sure the remote
305 traceframe matches gdb's current traceframe.
306 (remote_trace_find): If looking up a traceframe using any method
307 other than by number, make sure the current remote traceframe
308 matches gdb's current traceframe. Update the current remote
309 traceframe if the lookup succeeded.
310 * infrun.c (fetch_inferior_event): Adjust.
311 * tracepoint.h (set_current_traceframe): Declare.
312 (get_traceframe_number, set_traceframe_number): Add describing
315 2011-02-14 Pedro Alves <pedro@codesourcery.com>
317 Mark pieces of values as unavailable if the corresponding memory
320 * valops.c: Include tracepoint.h.
321 (value_fetch_lazy): Use read_value_memory.
322 (read_value_memory): New.
323 * value.h (read_value_memory): Declare.
324 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
325 * exec.c (section_table_available_memory): New function.
326 * exec.h (section_table_available_memory): Declare.
328 2011-02-14 Pedro Alves <pedro@codesourcery.com>
330 * Makefile.in (SFILES): Add memrange.c.
331 (HFILES_NO_SRCDIR): Add memrange.h.
332 (COMMON_OBS): Add memrange.o.
333 * memrange.c: New file.
334 * memrange.h: New file.
335 * tracepoint.c: Include memrange.h.
336 (struct mem_range): Delete.
337 (mem_range_s): Delete.
338 (traceframe_available_memory): New function.
339 * tracepoint.h (traceframe_available_memory): Declare.
341 2011-02-14 Pedro Alves <pedro@codesourcery.com>
343 * target.h (struct traceframe_info): Forward declare.
344 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
345 (struct target_ops) <to_traceframe_info>: New field.
346 (target_traceframe_info): New.
347 * target.c (update_current_target): Inherit and default
349 * remote.c (PACKET_qXfer_traceframe_info): New.
350 (remote_protocol_features): Register qXfer:traceframe-info:read.
351 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
352 (remote_traceframe_info): New.
353 (init_remote_ops): Install it.
354 (_initialize_remote): Install "set/show remote traceframe-info"
356 * tracepoint.h (parse_traceframe_info): Declare.
357 * tracepoint.c (struct mem_range): New.
358 (mem_range_s): New typedef.
359 (struct traceframe_info): New.
360 (traceframe_info): New global.
361 (free_traceframe_info): New function.
362 (clear_traceframe_info): New function.
363 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
365 (build_traceframe_info): New function.
366 (tfile_traceframe_info): New function.
367 (init_tfile_ops): Install tfile_traceframe_info.
368 (traceframe_info_start_memory, free_result): New functions.
369 (memory_attributes, traceframe_info_elements): New globals.
370 (parse_traceframe_info, get_traceframe_info): New functions.
371 * features/traceframe-info.dtd: New file.
372 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
374 2011-02-14 Pedro Alves <pedro@codesourcery.com>
376 Base support for <unavailable> value contents.
378 * value.h (value_bytes_available): Declare.
379 (mark_value_bytes_unavailable): Declare.
380 * value.c (struct range): New struct.
381 (range_s): New typedef.
382 (ranges_overlap): New function.
383 (range_lessthan): New function.
384 (ranges_contain_p): New function.
385 (struct value) <unavailable>: New field.
386 (value_bytes_available): New function.
387 (mark_value_bytes_unavailable): New function.
388 (require_not_optimized_out): Constify parameter.
389 (require_available): New function.
390 (value_contents_all, value_contents): Require all bytes be
392 (value_free): Free `unavailable'.
393 (value_copy): Copy `unavailable'.
394 * valprint.h (val_print_unavailable): Declare.
395 * valprint.c (valprint_check_validity): Rename `offset' parameter
396 to `embedded_offset'. If printing a scalar, check whether the
397 value chunk is available.
398 (val_print_unavailable): New.
399 (val_print_scalar_formatted): Check whether the value is
401 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
402 pretty-printing unavailable values.
404 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
406 Fix const/volatile qualifiers of C++ types, PR c++/12328.
407 * c-typeprint.c (c_type_print_args): Update the function comment. New
408 variable param_type, initialize it. Remove const/volatile qualifiers
409 for language_cplus and !show_artificial. Use param_type.
411 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
413 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
414 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
415 * symtab.h (struct symtab) <next>: Comment extension.
417 2011-02-12 Yao Qi <yao@codesourcery.com>
419 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
421 2011-02-11 Yao Qi <yao@codesourcery.com>
423 * common/Makefile.in: Add copyright header.
425 2011-02-11 Pedro Alves <pedro@codesourcery.com>
427 * infrun.c (proceed): Move switching out and in of tfind mode from
429 (fetch_inferior_event): ... to here.
431 2011-02-11 Yao Qi <yao@codesourcery.com>
433 * Makefile.in: Remove signals.o from COMMON_OBS. Link
435 * configure.ac: Add common to sub dir.
436 * configure: Regenerate.
438 2011-02-11 Yao Qi <yao@codesourcery.com>
442 * common/Makefile.in: New.
443 * common/configure.ac: New.
444 * common/aclocal.m4: New.
445 * common/configure: Generate.
447 2011-02-10 Pedro Alves <pedro@codesourcery.com>
449 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
450 side of the parenthesis.
453 2010-07-13 Jakub Jelinek <jakub@redhat.com>
454 * vec.h (VEC_block_remove): Fix comment.
456 2011-02-08 Michael Snyder <msnyder@vmware.com>
458 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
460 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
462 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
463 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
466 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
469 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
471 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
472 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
474 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
476 * dwarf2read.c (read_subroutine_type): Set special calling
477 convention flag for functions compiled by IBM XL C for OpenCL.
478 * ppc-sysv-tdep.c: Include "dwarf2.h"
479 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
481 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
482 IBM OpenCL vector types calling convention.
483 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
484 (ppc_sysv_abi_broken_return_value): Likewise.
485 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
486 types calling convention.
487 (ppc64_sysv_abi_return_value): Likewise.
488 * spu-tdep.c: Include "dwarf2.h"
489 (spu_return_value): Implement IBM OpenCL vector types calling
492 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
494 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
495 correct ABI for AltiVec vector arguments.
497 2011-02-07 Pedro Alves <pedro@codesourcery.com>
499 * valprint.c (val_print): Extend comment.
500 * ada-valprint.c (ada_valprint): Rewrite comment deferring
501 interface explanation to val_print.
502 (ada_val_print_array): Adjust comment to current interface.
503 (print_field_values): Adjust comment to current interface.
504 * c-valprint.c (c_val_print): Rewrite comment deferring interface
505 explanation to val_print.
506 * f-valprint.c (f_val_print): Ditto.
507 * jv-valprint.c (java_val_print): Ditto.
508 * m2-valprint.c (m2_val_print): Ditto.
509 * p-valprint.c (pascal_val_print): Ditto.
511 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
513 * breakpoint.c (parse_breakpoint_sals): Fix description.
515 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
516 Oguz Kayral <oguzkayral@gmail.com>
518 * python/py-inferior.c (python_on_normal_stop): New function.
519 (python_on_resume): New function.
520 (python_inferior_exit): New function.
521 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
522 inferior_exit observers.
523 * python/py-evtregistry.c: New file.
524 * python/py-threadevent.c : New file.
525 * python/py-event.c: New file.
526 * python/py-evts.c: New file.
527 * python/py-continueevent.c: New file.
528 * python/py-bpevent.c: New file.
529 * python/py-signalevent.c: New file.
530 * python/py-exetiedevent.c: New file.
531 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
532 Move struct breakpoint_object from here...
533 * python/python-internal.h: ... to here.
534 * python/py-event.h: New file.
535 * python/py-events.h: New file.
536 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
537 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
538 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
539 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
540 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
541 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
542 Add build rules for all the above.
544 2011-02-04 Tom Tromey <tromey@redhat.com>
546 * dwarf2read.c (dwarf2_section_empty_p): New function.
547 (dwarf2_read_section): Use dwarf2_section_empty_p.
548 (dwarf2_section_size): New function.
549 (dwarf2_get_section_info): Unconditionally read section.
550 (dwarf2_read_index): Use dwarf2_section_empty_p.
551 (partial_read_comp_unit_head): Use dwarf2_section_size.
552 (dwarf2_symbol_mark_computed): Likewise.
554 2011-02-04 David Daney <ddaney@caviumnetworks.com>
556 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
558 2011-02-04 David Daney <ddaney@caviumnetworks.com>
560 * mips-linux-tdep.c: Include xml-syscall.h.
561 (mips_linux_get_syscall_number): New function.
562 (mips_linux_init_abi): Add calls to
563 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
564 * data-directory/Makefile.in (SYSCALLS_FILES): Add
565 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
566 * syscalls/mips-n32-linux.xml: New file.
567 * syscalls/mips-n64-linux.xml: New file.
568 * syscalls/mips-o32-linux.xml: New file.
570 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
572 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
573 Complain about inverted range entries.
574 (dwarf2_record_block_ranges): Likewise.
576 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
579 * breakpoint.c (update_watchpoint): Fix name of the
580 update_global_location_list function.
581 (print_one_breakpoint): Fix typo.
582 (_initialize_breakpoint): Remove extra space in hbreak help
584 * breakpoint.h (struct bp_location) <length>: Fix field
587 2011-02-04 Pedro Alves <pedro@codesourcery.com>
589 * regcache.c (registers_changed_ptid): Don't explictly always
590 clear `current_regcache'. Only clear current_thread_ptid and
591 current_thread_arch when PTID matches. Only reinit the frame
592 cache if PTID matches the current inferior_ptid. Move alloca(0)
594 (registers_changed): ... here.
596 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
598 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
599 starts with __stack_chk_guard as stack guard symbol.
601 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
603 * disasm.c (compare_lines): Handle the end of sequence markers
604 within the line table to better support disassembling over
605 compilation unit boundaries.
607 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
609 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
610 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
611 implementation even if no symbols are available.
612 (thumb_analyze_prologue): Update call to skip_prologue_function.
613 (arm_analyze_prologue): Likewise.
615 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
617 * arm-tdep.c: Include "observer.h".
618 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
619 (arm_exidx_data_key): New static variable.
620 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
621 (struct arm_exidx_data): Likewise.
622 (arm_exidx_data_free): New function.
623 (arm_compare_exidx_entries): Likewise.
624 (arm_obj_section_from_vma): Likewise.
625 (arm_exidx_new_objfile): Likewise.
626 (arm_find_exidx_entry): Likewise.
627 (arm_exidx_fill_cache): Likewise.
628 (arm_exidx_unwind_sniffer): Likewise.
629 (arm_exidx_unwind): New global variable.
630 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
631 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
632 observer. Register arm_exidx_data_key as objfile data.
634 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
636 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
637 due to accessing uninitialized variable. Fix indentation.
639 2011-02-02 Pedro Alves <pedro@codesourcery.com>
641 * c-valprint.c (c_value_print): When doing virtual base pointer
642 adjustment, create a new value with adjusted contents rather than
643 changing the contents of the value being printed (and getting it
646 2011-02-02 Pedro Alves <pedro@codesourcery.com>
648 * xml-support.c (xml_find_attribute): New.
649 (xinclude_start_include): Use it.
650 * xml-support.h (xml_find_attribute): Declare.
651 * memory-map.c (memory_map_start_memory)
652 (memory_map_start_property): Use xml_find_attribute.
653 * osdata.c (osdata_start_osdata, osdata_start_column): Use
655 * remote.c (start_thread): Use xml_find_attribute.
656 * solib-target.c (library_list_start_segment)
657 (library_list_start_section, library_list_start_library)
658 (library_list_start_list): Use xml_find_attribute.
659 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
660 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
661 (tdesc_start_field): Use xml_find_attribute.
663 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
665 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
666 (BUILD_OCL_VTYPES): Update.
668 2011-02-02 Joel Brobecker <brobecker@adacore.com>
670 * configure.ac: Work around non-GNU sed limitation when computing
671 python version number.
672 * configure: Regenerate.
674 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
676 Fix debug printing of TYPE_INSTANCE.
677 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
678 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
680 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
682 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
683 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
684 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
685 * ada-operator.inc: Rename the file to ...
686 * ada-operator.def: ... here, wrap all the entries by macro OP.
687 * expprint.c (op_name_standard): Remove all the entries. Include
688 "std-operator.def" instead.
689 * expression.h (enum exp_opcode): Include "std-operator.def" and
690 "ada-operator.def". Move all the entries ...
691 * std-operator.def: ... here, wrap all the entries by macro OP.
693 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
695 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
696 * breakpoint.c (remove_jit_event_breakpoints): New function.
697 * jit.c (jit_descriptor_addr): Delete.
698 (registering_code): Delete.
700 (jit_inferior_data): New variable.
701 (struct jit_inferior_data): New type.
702 (get_jit_inferior_data): New function.
703 (jit_inferior_data_cleanup): New function.
704 (jit_read_descriptor): Adjust.
705 (jit_register_code): Adjust.
706 (jit_breakpoint_re_set_internal): New function; move code here ...
707 (jit_inferior_init): ... from here.
708 (jit_breakpoint_re_set): Adjust.
709 (jit_reset_inferior_data_and_breakpoints): New function.
710 (jit_inferior_created_observer): Adjust.
711 (jit_inferior_exit_hook): Adjust.
712 (jit_executable_changed_observer): New function.
713 (jit_event_handler): Adjust.
714 (_initialize_jit): Adjust.
716 2011-01-31 Michael Snyder <msnyder@vmware.com>
718 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
721 2011-01-31 Tom Tromey <tromey@redhat.com>
724 * python/python.c (execute_gdb_command): Call
726 * top.c (suppress_dont_repeat): New global.
727 (dont_repeat): Use it.
728 (prevent_dont_repeat): New function.
729 * command.h (prevent_dont_repeat): Declare.
731 2011-01-31 Tom Tromey <tromey@redhat.com>
733 * infcmd.c (finish_backward): Use breakpoint_set_silent.
734 * python/py-breakpoint.c (bppy_set_silent): Use
735 breakpoint_set_silent.
736 (bppy_set_thread): Use breakpoint_set_thread.
737 (bppy_set_task): Use breakpoint_set_task.
738 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
739 (breakpoint_set_task): Declare.
740 (make_breakpoint_silent): Remove.
741 * breakpoint.c (breakpoint_set_silent): New function.
742 (breakpoint_set_thread): Likewise.
743 (breakpoint_set_task): Likewise.
744 (make_breakpoint_silent): Remove.
746 2011-01-31 Tom Tromey <tromey@redhat.com>
748 * breakpoint.h (user_breakpoint_p): Declare.
749 * breakpoint.c (user_breakpoint_p): New function.
750 (breakpoint_1): Use it.
751 (save_breakpoints): Likewise.
753 2011-01-31 Joel Brobecker <brobecker@adacore.com>
755 * configure.ac: Add handling of Python distribution on Windows.
756 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
757 sysconfig variables are not defined, then do not use them.
758 On Windows, if LIBPL is not defined, then use prefix + '/libs'
759 instead. On Windows, return all paths using forward-slashes
760 rather than backslashes.
762 2011-01-31 Joel Brobecker <brobecker@adacore.com>
764 * configure.ac: Remove fallback behavior for building
765 against Python. Remove tweaking of Python include path.
766 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
767 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
768 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
769 Always restore CPPFLAGS and LIBS after linking test.
770 * configure: Regenerated.
771 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
772 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
773 * python/python-internal.h: Adjust includes of Python .h files.
775 2011-01-31 Joel Brobecker <brobecker@adacore.com>
777 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
780 2011-01-31 Joel Brobecker <brobecker@adacore.com>
782 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
785 2011-01-31 Yao Qi <yao@codesourcery.com>
787 * arm-linux-nat.c: Update calls to regcache_register_status
788 instead of regcache_valid_p.
789 * aix-thread.c: Likewise.
790 * i386gnu-nat.c: Likewise.
792 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
795 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
796 touching TYPE_FIELD_ARTIFICIAL.
798 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
800 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
803 2011-01-28 Pedro Alves <pedro@codesourcery.com>
805 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
806 selected, don't try iterating over the traceframe's blocks.
807 (tfile_has_stack): If there's no traceframe selected, then there's
809 (tfile_has_registers): If there's no traceframe selected, then
810 there's no registers.
812 2011-01-28 Pedro Alves <pedro@codesourcery.com>
814 * target.c (memory_xfer_partial): No need to restore shadows if we
815 haven't read anything.
817 2011-01-28 Pedro Alves <pedro@codesourcery.com>
819 * mips-tdep.c (mips_print_register): Use get_frame_register_value
820 and val_print_scalar_formatted.
822 2011-01-27 Pedro Alves <pedro@codesourcery.com>
824 * tracepoint.c (tfile_read): New.
825 (tfile_open): Use it.
826 (tfile_get_traceframe_address): Use it.
827 (tfile_trace_find): Use it.
828 (walk_blocks_callback_func): New typedef.
829 (match_blocktype): New function.
830 (traceframe_walk_blocks): New function.
831 (traceframe_find_block_type): New function.
832 (tfile_fetch_registers, tfile_xfer_partial)
833 (tfile_get_trace_state_variable_value): Use
834 traceframe_find_block_type and tfile_read.
836 2011-01-26 Kevin Buettner <kevinb@redhat.com>
838 * remote-mips.c: Add internationalization mark ups. Remove
839 trailing \n from already marked up strings.
841 2011-01-26 Tom Tromey <tromey@redhat.com>
843 * python/py-prettyprint.c (print_string_repr): Clear
844 'addressprint' option when calling val_print_string.
845 (print_children): Handle Val_pretty_default. Clear 'addressprint'
846 option when calling val_print_string.
848 2011-01-26 Tom Tromey <tromey@redhat.com>
850 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
852 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
854 (gdb_py_longest, gdb_py_ulongest): New typedefs.
855 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
856 (gdb_py_long_as_ulongest): New defines.
857 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
858 (gdb_py_int_as_long): Declare.
859 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
860 GDB_PY_LL_ARG, gdb_py_object_from_longest.
861 (valpy_long): Add comment.
862 * python/py-utils.c (get_addr_from_python): Use
863 gdb_py_long_as_ulongest. Handle overflow properly.
864 (gdb_py_object_from_longest): New function.
865 (gdb_py_object_from_ulongest): Likewise.
866 (gdb_py_int_as_long): Likewise.
867 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
868 * python/py-symtab.c (salpy_get_pc): Use
869 gdb_py_long_from_ulongest.
870 (salpy_get_line): Use PyInt_FromLong.
871 * python/py-param.c (set_parameter_value): Use
873 * python/py-lazy-string.c (stpy_get_address): Use
874 gdb_py_long_from_ulongest.
875 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
876 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
877 * python/py-breakpoint.c (bppy_set_thread): Use
879 (bppy_set_task): Likewise.
880 (bppy_set_ignore_count): Likewise.
881 (bppy_set_hit_count): Likewise.
882 * python/py-block.c (blpy_get_start): Use
883 gdb_py_object_from_ulongest.
884 (blpy_get_end): Likewise.
885 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
887 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
890 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
891 * gdb/solib.c (solib_read_symbols): Check for addr_low in
892 equality test for objfile, initialize addr_low if needed.
894 2011-01-25 Pedro Alves <pedro@codesourcery.com>
896 * tui/tui-regs.c (tui_register_format): Remove dead code.
898 2011-01-25 Pedro Alves <pedro@codesourcery.com>
900 * printcmd.c (print_formatted): Use val_print_scalar_formatted
901 instead of print_scalar_formatted.
902 (print_scalar_formatted): Don't handle 's' format strings here,
903 and add an assertion that we never see such format here.
904 * valprint.h (val_print_scalar_formatted): Declare.
905 * valprint.c (val_print_scalar_formatted): New.
906 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
907 instead of print_scalar_formatted.
908 * jv-valprint.c (java_val_print): Ditto.
909 * p-valprint.c (pascal_val_print): Ditto.
910 * ada-valprint.c (ada_val_print_1): Ditto.
911 * f-valprint.c (f_val_print): Ditto.
912 * infcmd.c (registers_info): Ditto.
913 * m2-valprint.c (m2_val_print): Ditto.
915 2011-01-25 Pedro Alves <pedro@codesourcery.com>
917 * m2-valprint.c (print_unbounded_array): Pass
918 value_contents_for_printing rather than value_contents, to
919 m2_print_array_contents. Also pass in the value.
921 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
923 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
924 (save_gdb_index_command): Switch to .gdb_index version 4.
926 2011-01-25 Pedro Alves <pedro@codesourcery.com>
928 * mi/mi-main.c (get_register): Use get_frame_register_value rather
929 than frame_register, and always pass a valid value to val_print.
931 2011-01-25 Pedro Alves <pedro@codesourcery.com>
933 Centralize printing "<optimized out>".
935 * valprint.h (val_print_optimized_out): Declare.
936 * cp-valprint.c (cp_print_value_fields): Use
937 val_print_optimized_out.
938 * jv-valprint.c (java_print_value_fields): Ditto.
939 * p-valprint.c (pascal_object_print_value_fields): Ditto.
940 * printcmd.c (print_formatted): Ditto.
941 * valprint.c (valprint_check_validity): Ditto.
942 (value_check_printable): Ditto.
943 (val_print_optimized_out): New.
945 2011-01-25 Pedro Alves <pedro@codesourcery.com>
947 * infcmd.c (default_print_registers_info): Allocate values so to
948 never pass a NULL value to val_print.
950 2011-01-25 Pedro Alves <pedro@codesourcery.com>
952 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
953 boolean. Make sure to always pass a value that matches the
954 contents buffer to callees. Preserve `address' for following
956 * value.c (value_contents_for_printing_const): New.
957 (value_address): Constify value argument.
958 * value.h (value_contents_for_printing_const): Declare.
959 (value_address): Constify value argument.
961 2011-01-25 Pedro Alves <pedro@codesourcery.com>
963 * regcache.c (struct regcache_descr): Rename
964 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
965 and sizeof_cooked_register_valid_p to
966 sizeof_cooked_register_status.
967 (init_regcache_descr): Adjust.
968 (struct regcache): Rename register_valid_p field to
970 (regcache_xmalloc_1, regcache_xfree, regcache_save)
971 (do_cooked_read): Adjust.
972 (regcache_valid_p): Rename to ...
973 (regcache_register_status): ... this. Adjust.
974 (regcache_invalidate): Adjust.
975 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
977 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
978 as unavailable, not valid.
979 (regcache_dump): Adjust.
980 * regcache.h (enum register_status): New.
981 (regcache_register_status): Declare.
982 (regcache_invalidate): Delete declaration.
983 * corelow.c (get_core_registers): Adjust.
984 * tracepoint.c (tfile_fetch_registers): Adjust.
985 * trad-frame.c (REG_VALUE): Rename to ...
986 (TF_REG_VALUE): ... this.
987 (REG_UNKNOWN): Rename to ...
988 (TF_REG_UNKNOWN): ... this.
989 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
990 * mi/mi-main.c (register_changed_p): Adjust.
992 2011-01-25 Pedro Alves <pedro@codesourcery.com>
994 * regcache.c (struct regcache_descr): Remove outdated comment.
995 (init_regcache_descr): Remove sizeof_raw_register_valid_p
997 (regcache_xmalloc): Rename to ...
998 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
999 Allocate the regcache type accordingly.
1000 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
1001 (regcache_xfree): Asser the source is also readonly. Copy sizeof
1002 cooked registers, not raw.
1003 (regcache_dup_no_passthrough): Delete.
1004 (get_thread_arch_regcache): Use regcache_xmalloc_1.
1005 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
1006 mention obsolete write_register_bytes.
1007 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
1009 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1011 Stop remote_read_bytes from handling partial reads itself.
1013 * remote-fileio.c: Include target.h.
1014 (remote_fileio_write_bytes): Delete.
1015 (remote_fileio_func_open, remote_fileio_func_write)
1016 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
1018 (remote_fileio_func_stat): Use target_read_memory and
1019 target_write_memory.
1020 (remote_fileio_func_gettimeofday): Use target_write_memory.
1021 (remote_fileio_func_system): Use target_read_memory.
1022 * remote.c (remote_write_bytes): Make it static.
1023 (remote_read_bytes): Don't handle partial reads here.
1024 * remote.h (remote_read_bytes): Delete declaration.
1026 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1028 Simplify XML parsing a bit.
1030 * xml-support.h (gdb_xml_parse_quick): Declare.
1031 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
1032 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
1034 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
1035 gdb_xml_create_parser_and_cleanup_1.
1036 (gdb_xml_parse_quick): New.
1037 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
1038 * osdata.c (osdata_parse): Ditto.
1039 * remote.c (remote_threads_info): Ditto.
1040 * solib-target.c (solib_target_parse_libraries): Ditto.
1041 * xml-syscall.c (syscall_parse_xml): Ditto.
1042 * xml-tdesc.c (tdesc_parse_xml): Ditto.
1044 2011-01-24 Kevin Buettner <kevinb@redhat.com>
1046 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
1047 with remote-mips.o added to gdb_target_obs.
1048 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
1050 2011-01-24 Pedro Alves <pedro@codesourcery.com>
1052 * ada-valprint.c (val_print_packed_array_elements): Pass the
1053 correct struct value to val_print.
1054 (ada_val_print_1): Ditto.
1056 2011-01-24 Pedro Alves <pedro@codesourcery.com>
1058 Don't lose embedded_offset in printing routines throughout.
1060 * valprint.h (val_print_array_elements): Change prototype.
1061 * valprint.c (val_print_array_elements): Add `embedded_offset'
1062 parameter, and adjust to pass it down to val_print, while passing
1063 `valaddr' or `address' unmodified. Take embedded_offset into
1064 account when checking repetitions.
1065 * c-valprint.c (c_val_print): Pass embedded_offset to
1066 val_print_array_elements instead of adjusting `valaddr' and
1068 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
1069 embedded_offset to val_print_array_elements instead of adjusting
1071 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
1072 * p-valprint.c (pascal_val_print): Pass embedded_offset to
1073 val_print_array_elements and pascal_object_print_value_fields
1074 instead of adjusting `valaddr'.
1075 (pascal_object_print_value_fields): Add `offset' parameter, and
1077 (pascal_object_print_value): Add `offset' parameter, and adjust to
1079 (pascal_object_print_static_field): Use
1080 value_contents_for_printing/value_embedded_offset, rather than
1082 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
1083 parameter, and adjust to use it. Use
1084 value_contents_for_printing/value_embedded_offset, rather than
1086 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
1087 (ada_val_print_array): Add `offset' parameter, and adjust to use
1089 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
1090 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
1091 Instead work with offsets. Use
1092 value_contents_for_printing/value_embedded_offset, rather than
1093 value_contents. Change `defer_val_int' local type to CORE_ADDR,
1094 and use value_from_pointer to extract a target pointer, rather
1095 than value_from_longest.
1096 (print_variant_part): Add `offset' parameter. Replace
1097 `outer_valaddr' parameter by a new `outer_offset' parameter.
1098 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1099 (ada_value_print): Use
1100 value_contents_for_printing/value_embedded_offset, rather than
1102 (print_record): Add `offset' parameter, and adjust to pass it
1104 (print_field_values): Add `offset' parameter. Replace
1105 `outer_valaddr' parameter by a new `outer_offset' parameter.
1106 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1107 Use value_contents_for_printing/value_embedded_offset, rather than
1109 * d-valprint.c (dynamic_array_type): Use
1110 value_contents_for_printing/value_embedded_offset, rather than
1112 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
1113 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1114 (java_print_value_fields): Take `offset' into account. Don't
1115 re-adjust `valaddr'. Instead pass down adjusted offsets.
1116 (java_val_print): Take `embedded_offset' into account. Pass it to
1117 java_print_value_fields.
1118 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
1119 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
1120 down adjusted offsets.
1121 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
1122 (f_val_print): Take `embedded_offset' into account.
1124 2011-01-21 Joel Brobecker <brobecker@adacore.com>
1126 * inflow.c: Include "gdbcmd.h".
1127 (interactive_mode): New static global, moved here from top.c.
1128 (show_interactive_mode): New function, moved here from top.c.
1129 use gdb_has_a_terminal instead of input_from_terminal_p to
1130 determine the current mode.
1131 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
1133 (_initialize_inflow): Add the "set/show interactive-mode"
1134 commands. Moved here from top.c, after having adjusted slightly
1136 * top.c (interactive_mode, show_interactive_mode): Delete, moved
1138 (input_from_terminal_p): Remove handling of "interactive-mode"
1139 setting, moved to infow.c.
1140 (init_main): Remove creation of the "set/show interactive-mode"
1141 commands, moved to inflow.c.
1143 2011-01-19 Joel Brobecker <brobecker@adacore.com>
1145 * NEWS: Add entry for native ia64-hpux support.
1147 2011-01-19 Tom Tromey <tromey@redhat.com>
1150 * thread.c (free_thread): Free 'name'.
1151 (print_thread_info): Emit thread name. Change CLI output.
1152 (thread_name_command): New function.
1153 (do_captured_thread_select): Emit newline.
1154 (_initialize_thread): Register 'thread name' command.
1155 * target.h (struct target_ops) <to_thread_name>: New field.
1156 (target_thread_name): New macro.
1157 * target.c (update_current_target): Handle to_thread_name.
1158 * python/py-infthread.c (thpy_get_name): New function.
1159 (thpy_set_name): Likewise.
1160 (thread_object_getset): Add "name".
1161 * linux-nat.c (linux_nat_thread_name): New function.
1162 (linux_nat_add_target): Set to_thread_name.
1163 * gdbthread.h (struct thread_info) <name>: New field.
1165 2011-01-18 Joel Brobecker <brobecker@adacore.com>
1167 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
1168 (ada_val_print_1): Likewise.
1170 2011-01-18 Joel Brobecker <brobecker@adacore.com>
1172 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
1173 upper limit address is not greater than the function end address
1174 when the upper limit could not be computed using the debugging
1177 2011-01-17 Tom Tromey <tromey@redhat.com>
1179 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
1181 * utils.c: Include gdb_regex.h.
1182 (do_regfree_cleanup): New function.
1183 (make_regfree_cleanup): Likewise.
1184 (get_regcomp_error): Likewise.
1185 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
1187 2011-01-17 Tom Tromey <tromey@redhat.com>
1189 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
1192 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1194 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
1195 for internal variables.
1196 (last_was_structop): New static variable.
1197 (COMPLETE): New token.
1198 (field_exp): New rule to group all '.' suffix handling.
1199 Add mark_struct_expression calls when approriate to be able
1200 to correctly find fields for completion.
1201 (yylex): Adapt to handle field completion and set INTVAR when
1204 2011-01-14 Yao Qi <yao@codesourcery.com>
1206 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
1207 save_reggroup, restore_reggroup and all_reggroup.
1209 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1211 * ada-valprint. (ada_printchar): Use the correct type length
1212 in call to ada_emit_char.
1213 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
1215 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1217 * solib-som.h (hpux_major_release): Declare variable here.
1218 * solib-som.c: Remove <sys/utsname.h> header.
1219 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
1220 (hpux_major_release): Make global, change default value to
1221 DEFAULT_HPUX_MAJOR_RELEASE.
1222 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
1223 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
1224 Add "solib-som.h" header.
1225 (set_hpux_major_release): New function.
1226 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
1228 2011-01-14 Mike Frysinger <vapier@gentoo.org>
1230 * configure.tgt (*-*-uclinux*): Match more Linux os targets
1232 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1234 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
1235 new-line at end of warning message.
1236 (ia64_hpux_store_register): Remove trailing new-line at end of
1238 * ia64-hpux-tdep.c: Rephrase comment.
1239 * solib-ia64-hpux.c (struct dld_info): Change type of field
1240 dld_flags from "long long" to ULONGEST.
1242 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1244 * target.h (deprecated_child_ops): Delete declaration.
1245 * target.c (deprecated_child_ops): Delete definition.
1247 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1249 * Makefile.in (hpux-thread.o): Delete rule.
1250 * configure.ac: Don't check for HPUX DCE threads support.
1251 * configure, config.in: Regenerate.
1252 * hppa-hpux-nat.c (child_suppress_run): Delete.
1253 (hppa_hpux_child_can_run): Delete.
1254 (_initialize_hppa_hpux_nat): Don't override to_can_run.
1255 * hpux-thread.c: Delete.
1257 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1259 * hpux-thread.c (hpux_pid_to_str): Delete.
1261 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1263 * ada-valprint.c (ada_emit_char): Remove strange code.
1264 Check that c is <= UCHAR_MAX before passing it to isascii.
1265 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
1267 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1269 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
1270 to the case where instream is stdin.
1272 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1274 * ia64-tdep.h (struct regcache): Forward declare.
1275 (struct ia64_infcall_ops): New struct type.
1276 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
1278 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
1279 Renames ia64_find_global_pointer.
1280 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
1281 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
1282 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
1284 (ia64_infcall_ops): New static global constant.
1285 (ia64_gdbarch_init): Set tdep->infcall_ops.
1286 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
1287 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
1288 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
1289 (ia64_hpux_dummy_code): New static global constant.
1290 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
1291 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
1292 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
1294 (ia64_hpux_infcall_ops): New static global constant.
1295 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
1296 for inferior function calls to work properly on ia64-hpux.
1298 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1300 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
1301 * ia64-tdep.h (struct frame_info): forward declaration.
1302 (struct gdbarch_tdep): Add field size_of_register_frame.
1303 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
1304 to determine the size of the register frame.
1305 (ia64_size_of_register_frame): New function.
1306 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
1307 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
1308 (IA64_HPUX_UREG_REASON): New macro.
1309 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
1311 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
1312 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
1313 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
1316 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1318 Add support for ia64-hpux.
1319 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
1320 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
1322 * configure.host: Add handling for ia64-hpux hosts. Add associated
1324 * configure.tgt: Add handling for ia64-hpux targets.
1325 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
1326 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
1327 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
1329 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1331 [ttrace] Compute thread list immediately after attach.
1332 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
1334 (inf_ttrace_attach): Use it.
1336 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1338 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
1339 if we could not determine the frame's function address. Instead,
1340 use the frame's PC, and then continue.
1342 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1344 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
1345 not already defined.
1347 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1349 * ia64-tdep.c (ia64_struct_type_p): New function.
1350 (ia64_extract_return_value): Handle integral values that are
1351 less than 8 bytes long.
1352 (ia64_push_dummy_call): Likewise.
1354 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1356 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
1357 floatformat_ia64_ext.
1358 (floatformat_ia64_ext_big): New static const.
1359 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
1361 2011-01-12 Tom Tromey <tromey@redhat.com>
1363 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
1365 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
1366 (mi_cmd_thread_list_ids): Likewise.
1367 (mi_cmd_data_list_changed_registers): Likewise.
1368 (mi_cmd_data_list_register_values): Likewise.
1369 (mi_cmd_data_write_register_values): Likewise.
1370 (mi_cmd_data_evaluate_expression): Likewise.
1371 (mi_cmd_data_read_memory): Likewise.
1372 (mi_cmd_data_read_memory_bytes): Likewise.
1373 (mi_cmd_data_write_memory): Likewise.
1374 (mi_cmd_enable_timings): Likewise.
1375 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
1376 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
1377 (mi_cmd_var_delete): Likewise.
1378 (mi_cmd_var_set_format): Likewise.
1379 (mi_cmd_var_show_format): Likewise.
1380 (mi_cmd_var_info_num_children): Likewise.
1381 (mi_cmd_var_list_children): Likewise.
1382 (mi_cmd_var_info_type): Likewise.
1383 (mi_cmd_var_info_expression): Likewise.
1384 (mi_cmd_var_show_attributes): Likewise.
1385 (mi_cmd_var_assign): Likewise.
1386 (mi_cmd_var_update): Likewise.
1387 (mi_cmd_enable_pretty_printing): Likewise.
1388 (mi_cmd_var_set_update_range): Likewise.
1389 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
1391 (mi_cmd_target_file_put): Likewise.
1392 (mi_cmd_target_file_delete): Likewise.
1393 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
1395 (mi_cmd_stack_info_depth): Likewise.
1396 (mi_cmd_stack_list_locals): Likewise.
1397 (mi_cmd_stack_list_args): Likewise.
1398 (mi_cmd_stack_select_frame): Likewise.
1399 (mi_cmd_stack_select_frame): Likewise.
1400 (mi_cmd_stack_info_frame): Likewise.
1401 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
1403 (mi_cmd_file_list_exec_source_files): Likewise.
1404 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
1405 (mi_cmd_env_cd): Likewise.
1406 (mi_cmd_env_path): Likewise.
1407 (mi_cmd_env_dir): Likewise.
1408 (mi_cmd_inferior_tty_show): Likewise.
1409 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
1410 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
1411 (mi_cmd_break_watch): Likewise.
1413 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
1415 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
1416 (ppc_linux_insert_hw_breakpoint): Likewise.
1417 (ppc_linux_remove_hw_breakpoint): Likewise.
1418 (ppc_linux_insert_watchpoint): Likewise.
1420 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1421 Jan Kratochvil <jan.kratochvil@redhat.com>
1423 PR fortran/11104 and DWARF unbound arrays detection.
1424 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
1425 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
1426 unspecified upper bound.
1427 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
1428 variables array_size_array, tmp_type and offset_item. New variable
1429 array. Remove call to f77_get_upperbound. New variables array_type
1430 and index. Call value_subscripted_rvalue for each dimenasion. Remove
1431 the final call to deprecated_set_value_type.
1433 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1435 Make value allocations more lazy.
1436 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
1437 instead of allocate_value and set_value_lazy when possible.
1438 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
1439 instead of allocate_value and set_value_lazy.
1440 * findvar.c (value_of_register_lazy): Likewise.
1441 (read_var_value): Remove V preallocation, call just check_typedef in
1442 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
1443 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
1444 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
1445 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
1446 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
1447 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
1448 the end, remove set_value_lazy there.
1449 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
1450 instead of allocate_value and set_value_lazy when possible.
1451 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
1452 * value.c (allocate_computed_value): Use allocate_value_lazy instead
1453 of allocate_value and set_value_lazy.
1454 (value_from_contents_and_address): Use allocate_value_lazy instead of
1455 allocate_value and set_value_lazy when possible.
1457 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1459 * disasm.c (dump_insns): Support dumping opcodes for MI.
1460 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
1461 dumping of instruction opcodes.
1463 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
1465 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
1468 2011-01-11 Tom Tromey <tromey@redhat.com>
1470 * thread.c (do_captured_thread_select): Emit newline before
1473 2011-01-11 Michael Snyder <msnyder@vmware.com>
1475 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
1476 * score-tdep.c: Ditto.
1477 * score-tdep.h: Ditto.
1478 * ser-base.c: Ditto.
1479 * ser-go32.c: Ditto.
1482 * ser-mingw.c: Ditto.
1483 * ser-pipe.c: Ditto.
1485 * ser-unix.c: Ditto.
1486 * sh64-tdep.c: Ditto.
1487 * shnbsd-nat.c: Ditto.
1491 * solib-darwin.c: Ditto.
1492 * solib-frv.c: Ditto.
1494 * solib-irix.c: Ditto.
1495 * solib-osf.c: Ditto.
1496 * solib-pa64.c: Ditto.
1497 * solib-som.c: Ditto.
1498 * solib-spu.c: Ditto.
1499 * solib-sunos.c: Ditto.
1500 * solib-svr4.c: Ditto.
1502 * sol-thread.c: Ditto.
1506 * sparc64-linux-tdep.c: Ditto.
1507 * sparc64-tdep.c: Ditto.
1508 * sparc-linux-nat.c: Ditto.
1509 * sparc-linux-tdep.c: Ditto.
1510 * sparc-sol2-nat.c: Ditto.
1511 * sparc-sol2-tdep.c: Ditto.
1512 * sparc-tdep.c: Ditto.
1513 * sparc-tdep.h: Ditto.
1514 * spu-tdep.c: Ditto.
1515 * stabsread.c: Ditto.
1516 * stabsread.h: Ditto.
1524 * target-descriptions.c: Ditto.
1525 * target-descriptions.h: Ditto.
1527 * target-memory.c: Ditto.
1528 * terminal.h: Ditto.
1531 * tracepoint.c: Ditto.
1532 * tracepoint.h: Ditto.
1533 * trad-frame.h: Ditto.
1534 * typeprint.c: Ditto.
1536 2011-01-11 Michael Snyder <msnyder@vmware.com>
1538 * ui-file.c: Comment cleanup, mostly periods and spaces.
1543 * v850-tdep.c: Ditto.
1544 * valarith.c: Ditto.
1546 * valprint.c: Ditto.
1547 * valprint.h: Ditto.
1552 * vax-tdep.c: Ditto.
1556 * windows-nat.c: Ditto.
1557 * windows-tdep.c: Ditto.
1558 * xcoffread.c: Ditto.
1559 * xcoffsolib.c: Ditto.
1560 * xml-support.c: Ditto.
1561 * xstormy16-tdep.c: Ditto.
1562 * xtensa-tdep.c: Ditto.
1563 * xtensa-tdep.h: Ditto.
1565 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1567 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
1568 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
1570 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1571 Thiago Jung Bauermann <bauerman@br.ibm.com>
1573 Implement support for PowerPC BookE ranged watchpoints.
1575 (struct breakpoint_ops) <resources_needed>: New method.
1576 Initialize to NULL in all existing breakpoint_ops instances.
1577 (struct breakpoint) <exact>: New field.
1578 (target_exact_watchpoints): Declare external global.
1579 * breakpoint.c (target_exact_watchpoints): New global flag.
1580 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
1581 b->enable_state to bp_enabled before calling
1582 hw_watchpoint_used_count.
1583 (hw_watchpoint_used_count): Iterate over all bp_locations in a
1584 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
1586 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
1587 if the watchpoint is exact.
1588 (resources_needed_watchpoint): New function.
1589 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
1590 (watch_command_1): Set b->exact if the user asked for an exact
1591 watchpoint and one can be set.
1592 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
1593 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
1594 the user asks for an exact watchpoint and one can be set. Return
1595 number of needed debug registers to watch the expression.
1596 * gdbtypes.c (is_scalar_type): New function, based on
1597 valprint.c:scalar_type_p.
1598 (is_scalar_type_recursive): New function.
1599 * gdbtypes.h (is_scalar_type_recursive): Declare.
1600 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
1601 handle regions when ranged watchpoints are available.
1602 (create_watchpoint_request): New function.
1603 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1604 create_watchpoint_request.
1605 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
1606 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
1607 `set powerpc' and `show powerpc' commands.
1608 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1609 Mention documentation comment in the target macro.
1610 (target_region_ok_for_hw_watchpoint): Document return value.
1612 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1614 * breakpoint.c (update_watchpoint): Decide on using a software or
1615 hardware watchpoint after the bp_locations are created.
1617 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1619 Convert hardware watchpoints to use breakpoint_ops.
1620 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
1621 <insert_location>: ... this. Return int instead of void.
1622 Accept pointer to struct bp_location instead of pointer to
1623 struct breakpoint. Adapt all implementations.
1624 (breakpoint_ops) <remove>: Rename to...
1625 <remove_location>: ... this. Accept pointer to struct bp_location
1626 instead of pointer to struct breakpoint. Adapt all implementations.
1627 * breakpoint.c (insert_catchpoint): Delete function.
1628 (insert_bp_location): Call the watchpoint or catchpoint's
1629 breakpoint_ops.insert method.
1630 (remove_breakpoint_1): Call the watchpoint or catchpoint's
1631 breakpoint_ops.remove method.
1632 (insert_watchpoint, remove_watchpoint): New functions.
1633 (watchpoint_breakpoint_ops): New structure.
1634 (watch_command_1): Initialize the OPS field.
1635 * inf-child.c (inf_child_insert_fork_catchpoint)
1636 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
1637 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
1638 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
1640 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
1641 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
1642 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
1643 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
1644 * target.c (update_current_target): Change default implementation of
1645 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
1646 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
1647 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
1648 to_set_syscall_catchpoint to return_one.
1649 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
1650 (debug_to_insert_exec_catchpoint): Report return value.
1651 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
1652 (to_insert_exec_catchpoint): Change declaration to return int instead
1655 2011-01-11 Michael Snyder <msnyder@vmware.com>
1657 * arm-tdep.c: Internationalization.
1660 * fork-child.c: Ditto.
1661 * nto-procfs.c: Ditto.
1662 * ppc-sysv-tdep.c: Ditto.
1664 * remote-mips.c: Ditto.
1666 * rs6000-nat.c: Ditto.
1667 * rs6000-tdep.c: Ditto.
1671 * xml-support.c: Ditto.
1672 * mi/mi-cmd-break.c: Ditto.
1673 * mi/mi-cmd-var.c: Ditto.
1674 * mi/mi-interp.c: Ditto.
1675 * mi/mi-main.c: Ditto.
1677 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
1679 * remote-sim.c (gdbsim_store_register): Update API to
1680 sim_store_register to check more error conditions.
1682 2011-01-10 Michael Snyder <msnyder@vmware.com>
1684 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
1685 * nto-tdep.c: Ditto.
1686 * nto-tdep.h: Ditto.
1687 * objc-exp.y: Ditto.
1688 * objc-lang.c: Ditto.
1689 * objfiles.c: Ditto.
1690 * objfiles.h: Ditto.
1691 * observer.c: Ditto.
1692 * opencl-lang.c: Ditto.
1695 * parser-defs.h: Ditto.
1698 * posix-hdep.c: Ditto.
1699 * ppcbug-rom.c: Ditto.
1700 * ppc-linux-nat.c: Ditto.
1701 * ppc-linux-tdep.c: Ditto.
1702 * ppc-linux-tdep.h: Ditto.
1703 * ppcnbsd-tdep.c: Ditto.
1704 * ppcobsd-tdep.c: Ditto.
1705 * ppcobsd-tdep.h: Ditto.
1706 * ppc-sysv-tdep.c: Ditto.
1707 * ppc-tdep.h: Ditto.
1708 * printcmd.c: Ditto.
1709 * proc-abi.c: Ditto.
1710 * proc-flags.c: Ditto.
1712 * proc-utils.h: Ditto.
1713 * progspace.h: Ditto.
1714 * prologue-value.c: Ditto.
1715 * prologue-value.h: Ditto.
1716 * psympriv.h: Ditto.
1718 * p-typeprint.c: Ditto.
1719 * p-valprint.c: Ditto.
1720 * ravenscar-sparc-thread.c: Ditto.
1721 * ravenscar-thread.c: Ditto.
1722 * ravenscar-thread.h: Ditto.
1724 * regcache.c: Ditto.
1725 * regcache.h: Ditto.
1727 * remote-fileio.c: Ditto.
1728 * remote-fileio.h: Ditto.
1730 * remote-m32r-sdi.c: Ditto.
1731 * remote-mips.c: Ditto.
1732 * remote-sim.c: Ditto.
1733 * rs6000-aix-tdep.c: Ditto.
1734 * rs6000-nat.c: Ditto.
1735 * rs6000-tdep.c: Ditto.
1737 2011-01-10 Michael Snyder <msnyder@vmware.com>
1739 * charset.c (validate): Internationalization.
1740 * coffread.c (read_one_sym): Ditto.
1741 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
1742 * h8300-tdep.c (H8300_extract_return_value): Ditto.
1743 * inflow.c (new_tty): Ditto.
1744 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
1745 * m32c-tdep.c (m32c_return_value): Ditto.
1746 * mep-tdep.c (mep_store_return_value): Ditto.
1747 * score-tdep.c (score7_fetch_insn): Ditto.
1748 * ser-mingw.c (pipe_windows_open): Ditto.
1749 * sh64-tdep.c (sh64_extract_return_value): Ditto.
1750 * spu-tdep.c (spu_register_type): Ditto.
1751 * tracepoint.c (trace_find_command): Ditto.
1752 * valarith.c (value_pos): Ditto.
1754 2011-01-10 Joel Brobecker <brobecker@adacore.com>
1756 * ada-valprint.c (printstr): Minor comment reformatting.
1758 2011-01-08 Michael Snyder <msnyder@vmware.com>
1760 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
1763 2011-01-08 Michael Snyder <msnyder@vmware.com>
1765 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
1766 * hppa-hpux-tdep.c: Ditto.
1767 * hppa-linux-nat.c: Ditto.
1768 * hppa-linux-tdep.c: Ditto.
1769 * hppanbsd-tdep.c: Ditto.
1770 * hppa-tdep.c: Ditto.
1771 * hppa-tdep.h: Ditto.
1772 * hpux-thread.c: Ditto.
1773 * i386-cygwin-tdep.c: Ditto.
1774 * i386-darwin-nat.c: Ditto.
1775 * i386gnu-nat.c: Ditto.
1776 * i386-linux-nat.c: Ditto.
1777 * i386-linux-tdep.c: Ditto.
1778 * i386-nat.c: Ditto.
1779 * i386-nat.h: Ditto.
1780 * i386nbsd-tdep.c: Ditto.
1781 * i386-sol2-nat.c: Ditto.
1782 * i386-stub.c: Ditto.
1783 * i386-tdep.c: Ditto.
1784 * i386-tdep.h: Ditto.
1785 * i387-tdep.c: Ditto.
1786 * ia64-linux-nat.c: Ditto.
1787 * ia64-linux-tdep.c: Ditto.
1788 * ia64-tdep.c: Ditto.
1792 * inferior.c: Ditto.
1793 * inferior.h: Ditto.
1799 * iq2000-tdep.c: Ditto.
1800 * irix5-nat.c: Ditto.
1806 * jv-typeprint.c: Ditto.
1807 * jv-valprint.c: Ditto.
1808 * language.c: Ditto.
1809 * language.h: Ditto.
1810 * linespec.c: Ditto.
1811 * linux-fork.c: Ditto.
1812 * linux-nat.c: Ditto.
1813 * linux-thread-db.c: Ditto.
1814 * lm32-tdep.c: Ditto.
1816 2011-01-08 Michael Snyder <msnyder@vmware.com>
1818 * m2-exp.y: Comment cleanup, mostly periods and spaces.
1820 * m2-typeprint.c: Ditto.
1821 * m2-valprint.c: Ditto.
1822 * m32c-tdep.c: Ditto.
1823 * m32r-linux-nat.c: Ditto.
1824 * m32r-rom.c: Ditto.
1825 * m32r-tdep.c: Ditto.
1826 * m32r-tdep.h: Ditto.
1827 * m68hc11-tdep.c: Ditto.
1828 * m58klinux-nat.c: Ditto.
1829 * m68k-tdep.c: Ditto.
1830 * m88k-tdep.c: Ditto.
1831 * m88k-tdep.h: Ditto.
1832 * machoread.c: Ditto.
1833 * macrocmd.c: Ditto.
1834 * macroexp.c: Ditto.
1835 * macrotab.c: Ditto.
1838 * mdebugread.c: Ditto.
1839 * mdebugread.h: Ditto.
1842 * memory-map.h: Ditto.
1843 * mep-tdep.c: Ditto.
1844 * microblaze-rom.c: Ditto.
1845 * microblaze-tdep.c: Ditto.
1847 * mips-irix-tdep.c: Ditto.
1848 * mips-linux-nat.c: Ditto.
1849 * mips-linux-tdep.c: Ditto.
1850 * mips-linux-tdep.h: Ditto.
1851 * mipsnbsd-nat.c: Ditto.
1852 * mipsnbsd-tdep.c: Ditto.
1853 * mipsread.c: Ditto.
1854 * mips-tdep.c: Ditto.
1855 * mips-tdep.h: Ditto.
1856 * mn10300-linux-tdep.c: Ditto.
1857 * mn10300-tdep.c: Ditto.
1858 * mn10300-tdep.h: Ditto.
1861 * moxie-tdep.c: Ditto.
1862 * moxie-tdep.h: Ditto.
1865 2011-01-08 Mike Frysinger <vapier@gentoo.org>
1867 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
1869 2011-01-08 Robert Millan <rmh@gnu.org>
1871 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
1873 2011-01-07 Michael Snyder <msnyder@vmware.com>
1875 * charset.c (_initialize_charset): Fix typo in string.
1877 2011-01-07 Michael Snyder <msnyder@vmware.com>
1879 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
1881 * tui/tui-layout.c (tui_set_layout_for_display_command):
1882 Split line so that operator goes to beginning of line.
1883 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
1884 assignment out of if statement.
1886 2011-01-07 Michael Snyder <msnyder@vmware.com>
1888 * ada-lang.c: Comment cleanup, mostly periods and spaces.
1889 * ada-lang.h: Ditto.
1890 * ada-tasks.c: Ditto.
1891 * ada-valprint.c: Ditto.
1892 * aix-threads.c: Ditto.
1893 * alpha-linux-nat.c: Ditto.
1894 * alpha-linux-tdep.c: Ditto.
1895 * alpha-mdebug-tdep.c: Ditto.
1896 * alpha-nat.c: Ditto.
1897 * alpha-osf1-tdep.c: Ditto.
1898 * alpha-tdep.c: Ditto.
1899 * alphabsd-nat.c: Ditto.
1900 * alphabsd-tdep.c: Ditto.
1901 * amd64-darwin-tdep.c: Ditto.
1902 * amd64-linux-nat.c: Ditto.
1903 * amd64-linux-tdep.c: Ditto.
1904 * amd64-sol2-tdep.c: Ditto.
1905 * amd64-tdep.c: Ditto.
1906 * amd64-fbsd-tdep.c: Ditto.
1907 * amd64-nbsd-tdep.c: Ditto.
1908 * amd64-obsd-tdep.c: Ditto.
1909 * amd64-linux-nat.c: Ditto.
1910 * amd64-linux-tdep.c: Ditto.
1911 * arm-tdep.c: Ditto.
1912 * arm-tdep.h: Ditto.
1913 * armnbsd-nat.c: Ditto.
1914 * avr-tdep.c: Ditto.
1915 * bfin-tdep.c: Ditto.
1917 * c-typeprintc: Ditto.
1918 * c-valprint.c: Ditto.
1919 * coff-pe-read.h: Ditto.
1920 * coffreead.c: Ditto.
1921 * cris-tdep.c: Ditto.
1923 * darwin-nat-info.c: Ditto.
1924 * darwin-nat.c: Ditto.
1925 * dbug-rom.c: Ditto.
1929 * dec-thread.c: Ditto.
1931 * demangle.c: Ditto.
1932 * dicos-tdep.c: Ditto.
1933 * dictionary.c: Ditto.
1934 * dictionary.h: Ditto.
1935 * dink32-rom.c: Ditto.
1937 * doublest.c: Ditto.
1939 * dummy-frame.c: Ditto.
1940 * dwarf2-frame.c: Ditto.
1941 * dwarf2expr.c: Ditto.
1942 * dwarf2loc.c: Ditto.
1943 * dwarf2read.c: Ditto.
1947 * event-top.h: Ditto.
1948 * exceptions.c: Ditto.
1949 * exceptions.h: Ditto.
1951 * expprint.c: Ditto.
1952 * expression.h: Ditto.
1956 * f-typeprint.c: Ditto.
1957 * f-valprint.c: Ditto.
1958 * fbsd-nat.c: Ditto.
1960 * fork-child.c: Ditto.
1963 * frv-linux-tdep.c: Ditto.
1964 * frv-tdep.c: Ditto.
1966 * gdb-stabs.h: Ditto.
1967 * gdb_assert.h: Ditto.
1968 * gdb_string.h: Ditto.
1969 * gdb_thread_db.h: Ditto.
1970 * gdb_wait.h: Ditto.
1971 * gdbarch.sh: Ditto.
1973 * gdbthread.h: Ditto.
1974 * gdbtypes.c: Ditto.
1975 * gdbtypes.h: Ditto.
1978 * gnu-v2-abi.c: Ditto.
1979 * gnu-v3-abi.c: Ditto.
1980 * go32-nat.c: Ditto.
1981 * gdbarch.c: Regenerate.
1982 * gdbarch.h: Regenerate.
1984 2011-01-07 Michael Snyder <msnyder@vmware.com>
1986 * ax-gdb.c: Adjust some long output strings.
1987 * breakpoint.c: Ditto.
1992 * linux-nat.c: Ditto.
1993 * solib-pa64.c: Ditto.
1994 * solib-som.c: Ditto.
1996 2011-01-06 Tom Tromey <tromey@redhat.com>
2000 * python/python.c (GdbMethods): Add "newest_frame" method.
2001 * python/python-internal.h (gdbpy_newest_frame): Declare.
2002 * python/py-frame.c (gdbpy_newest_frame): New function.
2004 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2006 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
2007 * jit.c (jit_debug): New variable.
2008 (show_jit_debug): New function.
2009 (struct target_buffer): Use ULONGEST.
2010 (bfd_open_from_target_memory): Likewise.
2011 (jit_register_code, jit_inferior_init): Add debug output.
2012 (_initialize_jit): Register "debug jit" command.
2014 2011-01-06 Tom Tromey <tromey@redhat.com>
2016 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
2017 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
2020 2011-01-06 Tom Tromey <tromey@redhat.com>
2022 * python/py-frame.c (frapy_block): Use get_frame_block.
2024 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2026 Do not stop on SIGPRIO signals by default
2027 * infrun.c (_initialize_infrun): Unset signal_stop and
2028 signal_print for TARGET_SIGNAL_PRIO.
2030 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2032 * ada-tasks.c: Fix style violation in comment.
2034 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2036 * linespec.c (decode_compound, find_method): Remove trailing \n
2037 at end of error string.
2038 * solib-irix.c (irix_current_sos): Likewise.
2039 * varobj.c (uninstall_variable): Likewise.
2041 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2043 * copyright.py: New script.
2044 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
2045 Launch emacs without exec'ing. Call copyright.py afterwards.
2047 2011-01-05 Michael Snyder <msnyder@vmware.com>
2049 * addrmap.c: Shorten lines of >= 80 columns.
2050 * arch-utils.c: Ditto.
2051 * arch-utils.h: Ditto.
2053 * ax-general.c: Ditto.
2055 * blockframe.c: Ditto.
2056 * breakpoint.c: Ditto.
2057 * buildsym.c: Ditto.
2059 * c-typeprint.c: Ditto.
2061 * coffread.c: Ditto.
2065 * cp-namespace.c: Ditto.
2066 * cp-support.c: Ditto.
2067 * dbug-rom.c: Ditto.
2072 * dictionary.c: Ditto.
2074 * doublest.c: Ditto.
2075 * dwarf2-frame.c: Ditto.
2076 * dwarf2expr.c: Ditto.
2077 * dwarf2loc.c: Ditto.
2078 * dwarf2read.c: Ditto.
2081 * event-loop.c: Ditto.
2082 * event-loop.h: Ditto.
2083 * exceptions.h: Ditto.
2085 * expprint.c: Ditto.
2086 * expression.h: Ditto.
2088 * f-valprint.c: Ditto.
2090 * frame-base.c: Ditto.
2091 * frame-unwind.c: Ditto.
2092 * frame-unwind.h: Ditto.
2096 * gdb-stabs.h: Ditto.
2097 * gdb_assert.h: Ditto.
2098 * gdb_dirent.h: Ditto.
2099 * gdb_obstack.h: Ditto.
2101 * gdbtypes.c: Ditto.
2102 * gdbtypes.h: Ditto.
2103 * inf-ttrace.c: Ditto.
2108 * inline-frame.h: Ditto.
2109 * language.c: Ditto.
2110 * language.h: Ditto.
2111 * libunwind-frame.c: Ditto.
2112 * libunwind-frame.h: Ditto.
2113 * linespec.c: Ditto.
2114 * linux-nat.c: Ditto.
2115 * linux-nat.h: Ditto.
2116 * linux-thread-db.c: Ditto.
2117 * machoread.c: Ditto.
2118 * macroexp.c: Ditto.
2119 * macrotab.c: Ditto.
2122 * mdebugread.c: Ditto.
2127 * objfiles.c: Ditto.
2128 * objfiles.h: Ditto.
2130 * p-typeprint.c: Ditto.
2131 * p-valprint.c: Ditto.
2133 * printcmd.c: Ditto.
2134 * proc-events.c: Ditto.
2136 * progspace.c: Ditto.
2137 * progspace.h: Ditto.
2138 * psympriv.h: Ditto.
2141 * regcache.c: Ditto.
2142 * regcache.h: Ditto.
2143 * remote-fileio.c: Ditto.
2145 * ser-mingw.c: Ditto.
2147 * ser-unix.c: Ditto.
2150 * solib-frv.c: Ditto.
2151 * solib-irix.c: Ditto.
2152 * solib-osf.c: Ditto.
2153 * solib-pa64.c: Ditto.
2154 * solib-som.c: Ditto.
2155 * solib-sunos.c: Ditto.
2156 * solib-svr4.c: Ditto.
2157 * solib-target.c: Ditto.
2161 * stabsread.c: Ditto.
2162 * stabsread.c: Ditto.
2165 * symfile-mem.c: Ditto.
2171 * target-descriptions.c: Ditto.
2172 * target-memory.c: Ditto.
2175 * terminal.h: Ditto.
2178 * tracepoint.c: Ditto.
2179 * tracepoint.h: Ditto.
2183 * user-regs.c: Ditto.
2184 * user-regs.h: Ditto.
2186 * valarith.c: Ditto.
2188 * valprint.c: Ditto.
2189 * valprint.h: Ditto.
2194 * xcoffread.c: Ditto.
2195 * xcoffsolib.c: Ditto.
2196 * xcoffsolib.h: Ditto.
2197 * xml-syscall.c: Ditto.
2198 * xml-tdesc.c: Ditto.
2200 2011-01-05 Michael Snyder <msnyder@vmware.com>
2202 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
2203 * cli/cli-decode.c: Ditto.
2204 * cli/cli-dump.c: Ditto.
2205 * cli/cli-logging.c: Ditto.
2206 * cli/cli-script.c: Ditto.
2207 * cli/cli-setshow.c: Ditto.
2208 * common/signals.c: Ditto.
2209 * mi/mi-cmd-break.c: Ditto.
2210 * mi/mi-cmd-disas.c: Ditto.
2211 * mi/mi-cmd-stack.c: Ditto.
2212 * mi/mi-cmd-var.c: Ditto.
2213 * mi/mi-cmds.c: Ditto.
2214 * mi/mi-common.h: Ditto.
2215 * mi/mi-console.c: Ditto.
2216 * mi/mi-interp.c: Ditto.
2217 * mi/mi-main.c: Ditto.
2218 * osf-share/cma_attr.c: Ditto.
2219 * osf-share/cma_deb_core.h: Ditto.
2220 * osf-share/cma_debug_client.h: Ditto.
2221 * osf-share/cma_handle.h: Ditto.
2222 * osf-share/cma_mutex.h: Ditto.
2223 * osf-share/cma_stack_int.h: Ditto.
2224 * osf-share/cma_tcb_defs.h: Ditto.
2225 * python/py-auto-load.c: Ditto.
2226 * python/py-breakpoint.c: Ditto.
2227 * python/py-cmd.c: Ditto.
2228 * python/py-frame.c: Ditto.
2229 * python/py-objfile.c: Ditto.
2230 * python/py-param.c: Ditto.
2231 * python/py-progspace.c: Ditto.
2232 * python/py-symbol.c: Ditto.
2233 * python/py-value.c: Ditto.
2234 * python/python-internal.h: Ditto.
2235 * python/python.c: Ditto.
2236 * tui/tui-data.c: Ditto.
2237 * tui/tui-disasm.c: Ditto.
2238 * tui/tui-hooks.c: Ditto.
2239 * tui/tui-io.c: Ditto.
2240 * tui/tui-layout.c: Ditto.
2241 * tui/tui-regs.c: Ditto.
2242 * tui/tui-source.c: Ditto.
2243 * tui/tui-stack.c: Ditto.
2244 * tui/tui-win.c: Ditto.
2245 * tui/tui-windata.c: Ditto.
2246 * tui/tui-winsource.c: Ditto.
2248 2011-01-05 Joel Brobecker <brobecker@adacore.com>
2250 * configure.ac, gdb.1: Copyright year update.
2252 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2254 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
2255 this_pc_in_block, morestack_msym and morestack_name. Check for
2256 "__morestack" minimal symbol there.
2258 2011-01-03 Joel Brobecker <brobecker@adacore.com>
2260 * symfile.c (find_sym_fns): Add call to dont_repeat.
2262 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2264 Copyright year update in most files (performed by copyright.sh).
2266 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2268 * top.c (print_gdb_version): Update copyright year in version output.
2270 For older changes see ChangeLog-2010.
2276 version-control: never