1 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3 * breakpoint.c (longjmp_names): New variable.
4 (struct breakpoint_objfile_data): New type.
5 (breakpoint_objfile_key): New variable.
6 (msym_not_found): New variable.
7 (msym_not_found_p): New predicate.
8 (get_breakpoint_objfile_data): New function.
9 (create_overlay_event_breakpoint): Check per-objfile cache for
11 (create_longjmp_master_breakpoint): Likewise.
12 (create_std_terminate_master_breakpoint): Likewise.
13 (create_exception_master_breakpoint): Likewise.
14 (_initialize_breakpoint): Register per-objfile data key.
16 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
18 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
20 (create_longjmp_master_breakpoint): Loop over longjmp names.
21 (create_std_terminate_master_breakpoint): Const-propagate parameter
23 (update_breakpoints_after_exec): Adjust.
24 (breakpoint_re_set): Adjust.
26 2011-02-15 Michael Snyder <msnyder@vmware.com>
28 * thread.c (info_threads_command): Process arg as thread id,
29 or list of thread ids.
30 (thread_find_command): New command.
31 (_initialize_thread): Document argument for info threads.
32 Document 'thread find' command.
33 * NEWS: Document new command "thread find".
35 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
37 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
38 * aclocal.m4: Regenerated with aclocal-1.11.1.
39 * common/configure: Regenerate with autoconf-2.64.
41 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
43 * opencl-lang.c (build_opencl_types): Set the size of the built-in
44 bool data type to a size of one byte.
46 2011-02-15 Pedro Alves <pedro@codesourcery.com>
47 Jan Kratochvil <jan.kratochvil@redhat.com>
49 * target.c (memory_xfer_live_readonly_partial): Document where to
50 look for interface description.
52 2011-02-15 Yao Qi <yao@codesourcery.com>
55 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
56 order to store PC value on stack instead of text section.
58 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
60 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
61 the EFP register set size.
62 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
63 data from the VMX register.
64 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
65 and write data from/to the VMX register.
67 2011-02-14 Michael Snyder <msnyder@vmware.com>
69 * command.h (enum command_class): New class 'no_set_class', for
70 "show" commands without a corresponding "set" command.
71 * value.c (_initialize_values): Use 'no_set_class' for "show values".
72 * copying.c (_initialize_copying): Ditto for "show copying" and
74 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
76 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
77 which there is no corresponding "set" command (eg. "show copying").
79 2011-02-14 Pedro Alves <pedro@codesourcery.com>
80 Jan Kratochvil <jan.kratochvil@redhat.com>
82 * exec.c (section_table_available_memory): Change `len' parameter
84 * exec.h (section_table_available_memory): Ditto.
85 * value.h (read_value_memory): Rename the `offset' parameter to
88 2011-02-14 Pedro Alves <pedro@codesourcery.com>
89 Jan Kratochvil <jan.kratochvil@redhat.com>
91 * memrange.c (compare_mem_ranges): Mention sort order in
93 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
94 * tracepoint.c (traceframe_available_memory): Extend comment to
95 mention what happens to RESULT when the target does not support
98 2011-02-14 Pedro Alves <pedro@codesourcery.com>
99 Jan Kratochvil <jan.kratochvil@redhat.com>
101 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
104 2011-02-14 Pedro Alves <pedro@codesourcery.com>
106 * value.c (value_bits_valid, value_bits_synthetic_pointer):
107 No longer handle NULL values.
109 2011-02-14 Pedro Alves <pedro@codesourcery.com>
111 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
112 * value.c: Include "exceptions.h".
113 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
115 * cp-abi.c: Include gdb_assert.h.
116 (baseclass_offset): Add `embedded_offset' and `val' parameters.
117 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
119 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
120 parameters. No longer returns -1 on error.
121 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
123 * cp-valprint.c: Include exceptions.h.
124 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
125 the baseclass_offset. Handle unavailable base classes. Use
126 val_print_invalid_address.
127 * p-valprint.c: Include exceptions.h.
128 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
129 when fetching the baseclass_offset. No longer expect
130 baseclass_offset returning -1. Handle unavailable base classes.
131 Use val_print_invalid_address.
132 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
133 `valaddr' parameter, and change its type to gdb_byte pointer. Add
134 `embedded_offset' and `val' parameters. Adjust.
135 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
136 parameter, and change its type to gdb_byte pointer. Add
137 `embedded_offset' and `val' parameters. Adjust. No longer expect
138 baseclass_offset returning -1.
139 (value_dynamic_cast): Use value_contents_for_printing rather than
140 value_contents. Adjust.
141 (search_struct_field): No longer expect baseclass_offset returning
143 (search_struct_method): If reading memory from the target is
144 necessary, wrap it in a new value to pass to baseclass_offset. No
145 longer expect baseclass_offset returning -1.
146 (find_method_list): No longer expect baseclass_offset returning
147 -1. Use value_contents_for_printing rather than value_contents.
148 * valprint.c (val_print_invalid_address): New function.
149 * valprint.h (val_print_invalid_address): Declare.
150 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
151 and `val' parameters. No longer expect baseclass_offset returning
153 * gnu-v2-abi.c: Include "exceptions.h".
154 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
155 parameters. Handle unavailable memory. Recurse through
156 gnuv2_baseclass_offset directly, rather than through
157 baseclass_offset. No longer returns -1 on not found, instead
159 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
160 `val' parameters. Adjust.
162 2011-02-14 Pedro Alves <pedro@codesourcery.com>
164 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
165 almost but not quite adjacent.
167 2011-02-14 Pedro Alves <pedro@codesourcery.com>
169 * value.h (value_entirely_available): Declare.
170 * value.c (value_entirely_available): New function.
171 * c-valprint.c (c_value_print): Don't try fetching the pointer's
172 real type if the pointer is unavailable.
174 2011-02-14 Pedro Alves <pedro@codesourcery.com>
176 * valops.c (value_repeat): Use read_value_memory instead of
179 2011-02-14 Pedro Alves <pedro@codesourcery.com>
181 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
182 * value.c (value_contents_copy_raw, value_contents_copy): New
184 (value_primitive_field): Use value_contents_copy_raw instead of
186 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
188 (value_array, value_slice): Ditto.
189 * valarith.c (value_subscripted_rvalue): Use
190 value_contents_copy_raw instead of memcpy.
192 2011-02-14 Pedro Alves <pedro@codesourcery.com>
194 <unavailable> references.
196 * valops.c (get_value_at): Use value_from_contents_and_address,
197 avoiding read_memory.
199 2011-02-14 Pedro Alves <pedro@codesourcery.com>
201 * c-valprint.c (c_val_print): Print a string with unavailable
202 contents as an array.
204 2011-02-14 Pedro Alves <pedro@codesourcery.com>
206 * value.h (unpack_bits_as_long): Delete declaration.
207 (unpack_value_bits_as_long): Declare.
208 (unpack_value_field_as_long): Declare.
209 (value_field_bitfield): Declare.
210 * value.c (unpack_bits_as_long): Rename to...
211 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
212 value parameters. Return the extracted result in a new output
213 parameter. If the value contents are unavailable, return false,
214 otherwise return true.
215 (unpack_value_bits_as_long): New.
216 (unpack_field_as_long): Rename to...
217 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
218 Add embedded_offset and value parameters. Return the extracted
219 result in a new output parameter. If the value contents are
220 unavailable, return false, otherwise return true.
221 (unpack_value_field_as_long): New.
222 (unpack_field_as_long_1): New.
223 (unpack_field_as_long): Reimplement as wrapper around
224 unpack_value_field_as_long_1.
225 (value_field_bitfield): New function.
226 * valops.c (value_fetch_lazy): When fetching a bitfield, use
227 unpack_value_bits_as_long. Mark the value as unavailable, if it
229 * jv-valprint.c (java_print_value_fields): Use
230 value_field_bitfield.
231 * p-valprint.c (pascal_object_print_value_fields): Use
232 value_field_bitfield.
233 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
235 2011-02-14 Pedro Alves <pedro@codesourcery.com>
237 * value.c (get_internalvar_integer): Also return the int value of
238 TYPE_CODE_INT INTERNALVAR_VALUE values.
239 (set_internalvar): Don't special case TYPE_CODE_INT.
241 2011-02-14 Pedro Alves <pedro@codesourcery.com>
243 * value.c (struct internalvar) <enum internalvar_kind>: Remove
246 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
247 (set_internalvar): Remove special TYPE_CODE_PTR handling.
248 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
250 2011-02-14 Pedro Alves <pedro@codesourcery.com>
252 * value.h (value_available_contents_eq): Declare.
253 * value.c (find_first_range_overlap): New function.
254 (value_available_contents_eq): New function.
255 * valprint.c (val_print_array_elements): Use
256 value_available_contents_eq.
257 * ada-valprint.c (val_print_packed_array_elements): Use
258 value_available_contents_eq.
259 * jv-valprint.c (java_value_print): Use
260 value_available_contents_eq.
262 2011-02-14 Pedro Alves <pedro@codesourcery.com>
264 * target.c (target_read_live_memory): New function.
265 (memory_xfer_live_readonly_partial): New.
266 (memory_xfer_partial): If reading from a traceframe, fallback to
267 reading unavailable read-only memory from read-only regions of
269 * tracepoint.c (disconnect_tracing): Adjust.
270 (set_current_traceframe): New, factored out from
271 set_traceframe_number.
272 (set_traceframe_number): Reimplement to only change the traceframe
273 number on the GDB side.
274 (do_restore_current_traceframe_cleanup): Adjust.
275 (make_cleanup_restore_traceframe_number): New.
276 (cur_traceframe_number): New global.
277 (tfile_open): Set cur_traceframe_number to no traceframe.
278 (set_tfile_traceframe): New function.
279 (tfile_trace_find): If looking up a traceframe using any method
280 other than by number, make sure the current tfile traceframe
281 matches gdb's current traceframe. Update the current tfile
282 traceframe if the lookup succeeded.
283 (tfile_fetch_registers, tfile_xfer_partial)
284 (tfile_get_trace_state_variable_value): Make sure the remote
285 traceframe matches gdb's current traceframe.
286 * remote.c (remote_traceframe_number): New global.
287 (remote_open_1): Set it to -1.
288 (set_remote_traceframe): New function.
289 (remote_fetch_registers, remote_store_registers)
290 (remote_xfer_memory, remote_xfer_partial)
291 (remote_get_trace_state_variable_value): Make sure the remote
292 traceframe matches gdb's current traceframe.
293 (remote_trace_find): If looking up a traceframe using any method
294 other than by number, make sure the current remote traceframe
295 matches gdb's current traceframe. Update the current remote
296 traceframe if the lookup succeeded.
297 * infrun.c (fetch_inferior_event): Adjust.
298 * tracepoint.h (set_current_traceframe): Declare.
299 (get_traceframe_number, set_traceframe_number): Add describing
302 2011-02-14 Pedro Alves <pedro@codesourcery.com>
304 Mark pieces of values as unavailable if the corresponding memory
307 * valops.c: Include tracepoint.h.
308 (value_fetch_lazy): Use read_value_memory.
309 (read_value_memory): New.
310 * value.h (read_value_memory): Declare.
311 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
312 * exec.c (section_table_available_memory): New function.
313 * exec.h (section_table_available_memory): Declare.
315 2011-02-14 Pedro Alves <pedro@codesourcery.com>
317 * Makefile.in (SFILES): Add memrange.c.
318 (HFILES_NO_SRCDIR): Add memrange.h.
319 (COMMON_OBS): Add memrange.o.
320 * memrange.c: New file.
321 * memrange.h: New file.
322 * tracepoint.c: Include memrange.h.
323 (struct mem_range): Delete.
324 (mem_range_s): Delete.
325 (traceframe_available_memory): New function.
326 * tracepoint.h (traceframe_available_memory): Declare.
328 2011-02-14 Pedro Alves <pedro@codesourcery.com>
330 * target.h (struct traceframe_info): Forward declare.
331 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
332 (struct target_ops) <to_traceframe_info>: New field.
333 (target_traceframe_info): New.
334 * target.c (update_current_target): Inherit and default
336 * remote.c (PACKET_qXfer_traceframe_info): New.
337 (remote_protocol_features): Register qXfer:traceframe-info:read.
338 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
339 (remote_traceframe_info): New.
340 (init_remote_ops): Install it.
341 (_initialize_remote): Install "set/show remote traceframe-info"
343 * tracepoint.h (parse_traceframe_info): Declare.
344 * tracepoint.c (struct mem_range): New.
345 (mem_range_s): New typedef.
346 (struct traceframe_info): New.
347 (traceframe_info): New global.
348 (free_traceframe_info): New function.
349 (clear_traceframe_info): New function.
350 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
352 (build_traceframe_info): New function.
353 (tfile_traceframe_info): New function.
354 (init_tfile_ops): Install tfile_traceframe_info.
355 (traceframe_info_start_memory, free_result): New functions.
356 (memory_attributes, traceframe_info_elements): New globals.
357 (parse_traceframe_info, get_traceframe_info): New functions.
358 * features/traceframe-info.dtd: New file.
359 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
361 2011-02-14 Pedro Alves <pedro@codesourcery.com>
363 Base support for <unavailable> value contents.
365 * value.h (value_bytes_available): Declare.
366 (mark_value_bytes_unavailable): Declare.
367 * value.c (struct range): New struct.
368 (range_s): New typedef.
369 (ranges_overlap): New function.
370 (range_lessthan): New function.
371 (ranges_contain_p): New function.
372 (struct value) <unavailable>: New field.
373 (value_bytes_available): New function.
374 (mark_value_bytes_unavailable): New function.
375 (require_not_optimized_out): Constify parameter.
376 (require_available): New function.
377 (value_contents_all, value_contents): Require all bytes be
379 (value_free): Free `unavailable'.
380 (value_copy): Copy `unavailable'.
381 * valprint.h (val_print_unavailable): Declare.
382 * valprint.c (valprint_check_validity): Rename `offset' parameter
383 to `embedded_offset'. If printing a scalar, check whether the
384 value chunk is available.
385 (val_print_unavailable): New.
386 (val_print_scalar_formatted): Check whether the value is
388 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
389 pretty-printing unavailable values.
391 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
393 Fix const/volatile qualifiers of C++ types, PR c++/12328.
394 * c-typeprint.c (c_type_print_args): Update the function comment. New
395 variable param_type, initialize it. Remove const/volatile qualifiers
396 for language_cplus and !show_artificial. Use param_type.
398 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
400 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
401 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
402 * symtab.h (struct symtab) <next>: Comment extension.
404 2011-02-12 Yao Qi <yao@codesourcery.com>
406 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
408 2011-02-11 Yao Qi <yao@codesourcery.com>
410 * common/Makefile.in: Add copyright header.
412 2011-02-11 Pedro Alves <pedro@codesourcery.com>
414 * infrun.c (proceed): Move switching out and in of tfind mode from
416 (fetch_inferior_event): ... to here.
418 2011-02-11 Yao Qi <yao@codesourcery.com>
420 * Makefile.in: Remove signals.o from COMMON_OBS. Link
422 * configure.ac: Add common to sub dir.
423 * configure: Regenerate.
425 2011-02-11 Yao Qi <yao@codesourcery.com>
429 * common/Makefile.in: New.
430 * common/configure.ac: New.
431 * common/aclocal.m4: New.
432 * common/configure: Generate.
434 2011-02-10 Pedro Alves <pedro@codesourcery.com>
436 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
437 side of the parenthesis.
440 2010-07-13 Jakub Jelinek <jakub@redhat.com>
441 * vec.h (VEC_block_remove): Fix comment.
443 2011-02-08 Michael Snyder <msnyder@vmware.com>
445 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
447 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
449 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
450 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
453 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
456 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
458 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
459 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
461 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
463 * dwarf2read.c (read_subroutine_type): Set special calling
464 convention flag for functions compiled by IBM XL C for OpenCL.
465 * ppc-sysv-tdep.c: Include "dwarf2.h"
466 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
468 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
469 IBM OpenCL vector types calling convention.
470 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
471 (ppc_sysv_abi_broken_return_value): Likewise.
472 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
473 types calling convention.
474 (ppc64_sysv_abi_return_value): Likewise.
475 * spu-tdep.c: Include "dwarf2.h"
476 (spu_return_value): Implement IBM OpenCL vector types calling
479 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
481 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
482 correct ABI for AltiVec vector arguments.
484 2011-02-07 Pedro Alves <pedro@codesourcery.com>
486 * valprint.c (val_print): Extend comment.
487 * ada-valprint.c (ada_valprint): Rewrite comment deferring
488 interface explanation to val_print.
489 (ada_val_print_array): Adjust comment to current interface.
490 (print_field_values): Adjust comment to current interface.
491 * c-valprint.c (c_val_print): Rewrite comment deferring interface
492 explanation to val_print.
493 * f-valprint.c (f_val_print): Ditto.
494 * jv-valprint.c (java_val_print): Ditto.
495 * m2-valprint.c (m2_val_print): Ditto.
496 * p-valprint.c (pascal_val_print): Ditto.
498 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
500 * breakpoint.c (parse_breakpoint_sals): Fix description.
502 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
503 Oguz Kayral <oguzkayral@gmail.com>
505 * python/py-inferior.c (python_on_normal_stop): New function.
506 (python_on_resume): New function.
507 (python_inferior_exit): New function.
508 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
509 inferior_exit observers.
510 * python/py-evtregistry.c: New file.
511 * python/py-threadevent.c : New file.
512 * python/py-event.c: New file.
513 * python/py-evts.c: New file.
514 * python/py-continueevent.c: New file.
515 * python/py-bpevent.c: New file.
516 * python/py-signalevent.c: New file.
517 * python/py-exetiedevent.c: New file.
518 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
519 Move struct breakpoint_object from here...
520 * python/python-internal.h: ... to here.
521 * python/py-event.h: New file.
522 * python/py-events.h: New file.
523 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
524 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
525 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
526 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
527 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
528 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
529 Add build rules for all the above.
531 2011-02-04 Tom Tromey <tromey@redhat.com>
533 * dwarf2read.c (dwarf2_section_empty_p): New function.
534 (dwarf2_read_section): Use dwarf2_section_empty_p.
535 (dwarf2_section_size): New function.
536 (dwarf2_get_section_info): Unconditionally read section.
537 (dwarf2_read_index): Use dwarf2_section_empty_p.
538 (partial_read_comp_unit_head): Use dwarf2_section_size.
539 (dwarf2_symbol_mark_computed): Likewise.
541 2011-02-04 David Daney <ddaney@caviumnetworks.com>
543 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
545 2011-02-04 David Daney <ddaney@caviumnetworks.com>
547 * mips-linux-tdep.c: Include xml-syscall.h.
548 (mips_linux_get_syscall_number): New function.
549 (mips_linux_init_abi): Add calls to
550 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
551 * data-directory/Makefile.in (SYSCALLS_FILES): Add
552 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
553 * syscalls/mips-n32-linux.xml: New file.
554 * syscalls/mips-n64-linux.xml: New file.
555 * syscalls/mips-o32-linux.xml: New file.
557 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
559 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
560 Complain about inverted range entries.
561 (dwarf2_record_block_ranges): Likewise.
563 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
566 * breakpoint.c (update_watchpoint): Fix name of the
567 update_global_location_list function.
568 (print_one_breakpoint): Fix typo.
569 (_initialize_breakpoint): Remove extra space in hbreak help
571 * breakpoint.h (struct bp_location) <length>: Fix field
574 2011-02-04 Pedro Alves <pedro@codesourcery.com>
576 * regcache.c (registers_changed_ptid): Don't explictly always
577 clear `current_regcache'. Only clear current_thread_ptid and
578 current_thread_arch when PTID matches. Only reinit the frame
579 cache if PTID matches the current inferior_ptid. Move alloca(0)
581 (registers_changed): ... here.
583 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
585 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
586 starts with __stack_chk_guard as stack guard symbol.
588 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
590 * disasm.c (compare_lines): Handle the end of sequence markers
591 within the line table to better support disassembling over
592 compilation unit boundaries.
594 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
596 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
597 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
598 implementation even if no symbols are available.
599 (thumb_analyze_prologue): Update call to skip_prologue_function.
600 (arm_analyze_prologue): Likewise.
602 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
604 * arm-tdep.c: Include "observer.h".
605 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
606 (arm_exidx_data_key): New static variable.
607 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
608 (struct arm_exidx_data): Likewise.
609 (arm_exidx_data_free): New function.
610 (arm_compare_exidx_entries): Likewise.
611 (arm_obj_section_from_vma): Likewise.
612 (arm_exidx_new_objfile): Likewise.
613 (arm_find_exidx_entry): Likewise.
614 (arm_exidx_fill_cache): Likewise.
615 (arm_exidx_unwind_sniffer): Likewise.
616 (arm_exidx_unwind): New global variable.
617 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
618 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
619 observer. Register arm_exidx_data_key as objfile data.
621 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
623 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
624 due to accessing uninitialized variable. Fix indentation.
626 2011-02-02 Pedro Alves <pedro@codesourcery.com>
628 * c-valprint.c (c_value_print): When doing virtual base pointer
629 adjustment, create a new value with adjusted contents rather than
630 changing the contents of the value being printed (and getting it
633 2011-02-02 Pedro Alves <pedro@codesourcery.com>
635 * xml-support.c (xml_find_attribute): New.
636 (xinclude_start_include): Use it.
637 * xml-support.h (xml_find_attribute): Declare.
638 * memory-map.c (memory_map_start_memory)
639 (memory_map_start_property): Use xml_find_attribute.
640 * osdata.c (osdata_start_osdata, osdata_start_column): Use
642 * remote.c (start_thread): Use xml_find_attribute.
643 * solib-target.c (library_list_start_segment)
644 (library_list_start_section, library_list_start_library)
645 (library_list_start_list): Use xml_find_attribute.
646 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
647 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
648 (tdesc_start_field): Use xml_find_attribute.
650 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
652 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
653 (BUILD_OCL_VTYPES): Update.
655 2011-02-02 Joel Brobecker <brobecker@adacore.com>
657 * configure.ac: Work around non-GNU sed limitation when computing
658 python version number.
659 * configure: Regenerate.
661 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
663 Fix debug printing of TYPE_INSTANCE.
664 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
665 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
667 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
669 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
670 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
671 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
672 * ada-operator.inc: Rename the file to ...
673 * ada-operator.def: ... here, wrap all the entries by macro OP.
674 * expprint.c (op_name_standard): Remove all the entries. Include
675 "std-operator.def" instead.
676 * expression.h (enum exp_opcode): Include "std-operator.def" and
677 "ada-operator.def". Move all the entries ...
678 * std-operator.def: ... here, wrap all the entries by macro OP.
680 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
682 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
683 * breakpoint.c (remove_jit_event_breakpoints): New function.
684 * jit.c (jit_descriptor_addr): Delete.
685 (registering_code): Delete.
687 (jit_inferior_data): New variable.
688 (struct jit_inferior_data): New type.
689 (get_jit_inferior_data): New function.
690 (jit_inferior_data_cleanup): New function.
691 (jit_read_descriptor): Adjust.
692 (jit_register_code): Adjust.
693 (jit_breakpoint_re_set_internal): New function; move code here ...
694 (jit_inferior_init): ... from here.
695 (jit_breakpoint_re_set): Adjust.
696 (jit_reset_inferior_data_and_breakpoints): New function.
697 (jit_inferior_created_observer): Adjust.
698 (jit_inferior_exit_hook): Adjust.
699 (jit_executable_changed_observer): New function.
700 (jit_event_handler): Adjust.
701 (_initialize_jit): Adjust.
703 2011-01-31 Michael Snyder <msnyder@vmware.com>
705 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
708 2011-01-31 Tom Tromey <tromey@redhat.com>
711 * python/python.c (execute_gdb_command): Call
713 * top.c (suppress_dont_repeat): New global.
714 (dont_repeat): Use it.
715 (prevent_dont_repeat): New function.
716 * command.h (prevent_dont_repeat): Declare.
718 2011-01-31 Tom Tromey <tromey@redhat.com>
720 * infcmd.c (finish_backward): Use breakpoint_set_silent.
721 * python/py-breakpoint.c (bppy_set_silent): Use
722 breakpoint_set_silent.
723 (bppy_set_thread): Use breakpoint_set_thread.
724 (bppy_set_task): Use breakpoint_set_task.
725 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
726 (breakpoint_set_task): Declare.
727 (make_breakpoint_silent): Remove.
728 * breakpoint.c (breakpoint_set_silent): New function.
729 (breakpoint_set_thread): Likewise.
730 (breakpoint_set_task): Likewise.
731 (make_breakpoint_silent): Remove.
733 2011-01-31 Tom Tromey <tromey@redhat.com>
735 * breakpoint.h (user_breakpoint_p): Declare.
736 * breakpoint.c (user_breakpoint_p): New function.
737 (breakpoint_1): Use it.
738 (save_breakpoints): Likewise.
740 2011-01-31 Joel Brobecker <brobecker@adacore.com>
742 * configure.ac: Add handling of Python distribution on Windows.
743 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
744 sysconfig variables are not defined, then do not use them.
745 On Windows, if LIBPL is not defined, then use prefix + '/libs'
746 instead. On Windows, return all paths using forward-slashes
747 rather than backslashes.
749 2011-01-31 Joel Brobecker <brobecker@adacore.com>
751 * configure.ac: Remove fallback behavior for building
752 against Python. Remove tweaking of Python include path.
753 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
754 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
755 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
756 Always restore CPPFLAGS and LIBS after linking test.
757 * configure: Regenerated.
758 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
759 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
760 * python/python-internal.h: Adjust includes of Python .h files.
762 2011-01-31 Joel Brobecker <brobecker@adacore.com>
764 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
767 2011-01-31 Joel Brobecker <brobecker@adacore.com>
769 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
772 2011-01-31 Yao Qi <yao@codesourcery.com>
774 * arm-linux-nat.c: Update calls to regcache_register_status
775 instead of regcache_valid_p.
776 * aix-thread.c: Likewise.
777 * i386gnu-nat.c: Likewise.
779 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
782 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
783 touching TYPE_FIELD_ARTIFICIAL.
785 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
787 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
790 2011-01-28 Pedro Alves <pedro@codesourcery.com>
792 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
793 selected, don't try iterating over the traceframe's blocks.
794 (tfile_has_stack): If there's no traceframe selected, then there's
796 (tfile_has_registers): If there's no traceframe selected, then
797 there's no registers.
799 2011-01-28 Pedro Alves <pedro@codesourcery.com>
801 * target.c (memory_xfer_partial): No need to restore shadows if we
802 haven't read anything.
804 2011-01-28 Pedro Alves <pedro@codesourcery.com>
806 * mips-tdep.c (mips_print_register): Use get_frame_register_value
807 and val_print_scalar_formatted.
809 2011-01-27 Pedro Alves <pedro@codesourcery.com>
811 * tracepoint.c (tfile_read): New.
812 (tfile_open): Use it.
813 (tfile_get_traceframe_address): Use it.
814 (tfile_trace_find): Use it.
815 (walk_blocks_callback_func): New typedef.
816 (match_blocktype): New function.
817 (traceframe_walk_blocks): New function.
818 (traceframe_find_block_type): New function.
819 (tfile_fetch_registers, tfile_xfer_partial)
820 (tfile_get_trace_state_variable_value): Use
821 traceframe_find_block_type and tfile_read.
823 2011-01-26 Kevin Buettner <kevinb@redhat.com>
825 * remote-mips.c: Add internationalization mark ups. Remove
826 trailing \n from already marked up strings.
828 2011-01-26 Tom Tromey <tromey@redhat.com>
830 * python/py-prettyprint.c (print_string_repr): Clear
831 'addressprint' option when calling val_print_string.
832 (print_children): Handle Val_pretty_default. Clear 'addressprint'
833 option when calling val_print_string.
835 2011-01-26 Tom Tromey <tromey@redhat.com>
837 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
839 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
841 (gdb_py_longest, gdb_py_ulongest): New typedefs.
842 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
843 (gdb_py_long_as_ulongest): New defines.
844 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
845 (gdb_py_int_as_long): Declare.
846 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
847 GDB_PY_LL_ARG, gdb_py_object_from_longest.
848 (valpy_long): Add comment.
849 * python/py-utils.c (get_addr_from_python): Use
850 gdb_py_long_as_ulongest. Handle overflow properly.
851 (gdb_py_object_from_longest): New function.
852 (gdb_py_object_from_ulongest): Likewise.
853 (gdb_py_int_as_long): Likewise.
854 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
855 * python/py-symtab.c (salpy_get_pc): Use
856 gdb_py_long_from_ulongest.
857 (salpy_get_line): Use PyInt_FromLong.
858 * python/py-param.c (set_parameter_value): Use
860 * python/py-lazy-string.c (stpy_get_address): Use
861 gdb_py_long_from_ulongest.
862 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
863 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
864 * python/py-breakpoint.c (bppy_set_thread): Use
866 (bppy_set_task): Likewise.
867 (bppy_set_ignore_count): Likewise.
868 (bppy_set_hit_count): Likewise.
869 * python/py-block.c (blpy_get_start): Use
870 gdb_py_object_from_ulongest.
871 (blpy_get_end): Likewise.
872 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
874 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
877 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
878 * gdb/solib.c (solib_read_symbols): Check for addr_low in
879 equality test for objfile, initialize addr_low if needed.
881 2011-01-25 Pedro Alves <pedro@codesourcery.com>
883 * tui/tui-regs.c (tui_register_format): Remove dead code.
885 2011-01-25 Pedro Alves <pedro@codesourcery.com>
887 * printcmd.c (print_formatted): Use val_print_scalar_formatted
888 instead of print_scalar_formatted.
889 (print_scalar_formatted): Don't handle 's' format strings here,
890 and add an assertion that we never see such format here.
891 * valprint.h (val_print_scalar_formatted): Declare.
892 * valprint.c (val_print_scalar_formatted): New.
893 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
894 instead of print_scalar_formatted.
895 * jv-valprint.c (java_val_print): Ditto.
896 * p-valprint.c (pascal_val_print): Ditto.
897 * ada-valprint.c (ada_val_print_1): Ditto.
898 * f-valprint.c (f_val_print): Ditto.
899 * infcmd.c (registers_info): Ditto.
900 * m2-valprint.c (m2_val_print): Ditto.
902 2011-01-25 Pedro Alves <pedro@codesourcery.com>
904 * m2-valprint.c (print_unbounded_array): Pass
905 value_contents_for_printing rather than value_contents, to
906 m2_print_array_contents. Also pass in the value.
908 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
910 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
911 (save_gdb_index_command): Switch to .gdb_index version 4.
913 2011-01-25 Pedro Alves <pedro@codesourcery.com>
915 * mi/mi-main.c (get_register): Use get_frame_register_value rather
916 than frame_register, and always pass a valid value to val_print.
918 2011-01-25 Pedro Alves <pedro@codesourcery.com>
920 Centralize printing "<optimized out>".
922 * valprint.h (val_print_optimized_out): Declare.
923 * cp-valprint.c (cp_print_value_fields): Use
924 val_print_optimized_out.
925 * jv-valprint.c (java_print_value_fields): Ditto.
926 * p-valprint.c (pascal_object_print_value_fields): Ditto.
927 * printcmd.c (print_formatted): Ditto.
928 * valprint.c (valprint_check_validity): Ditto.
929 (value_check_printable): Ditto.
930 (val_print_optimized_out): New.
932 2011-01-25 Pedro Alves <pedro@codesourcery.com>
934 * infcmd.c (default_print_registers_info): Allocate values so to
935 never pass a NULL value to val_print.
937 2011-01-25 Pedro Alves <pedro@codesourcery.com>
939 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
940 boolean. Make sure to always pass a value that matches the
941 contents buffer to callees. Preserve `address' for following
943 * value.c (value_contents_for_printing_const): New.
944 (value_address): Constify value argument.
945 * value.h (value_contents_for_printing_const): Declare.
946 (value_address): Constify value argument.
948 2011-01-25 Pedro Alves <pedro@codesourcery.com>
950 * regcache.c (struct regcache_descr): Rename
951 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
952 and sizeof_cooked_register_valid_p to
953 sizeof_cooked_register_status.
954 (init_regcache_descr): Adjust.
955 (struct regcache): Rename register_valid_p field to
957 (regcache_xmalloc_1, regcache_xfree, regcache_save)
958 (do_cooked_read): Adjust.
959 (regcache_valid_p): Rename to ...
960 (regcache_register_status): ... this. Adjust.
961 (regcache_invalidate): Adjust.
962 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
964 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
965 as unavailable, not valid.
966 (regcache_dump): Adjust.
967 * regcache.h (enum register_status): New.
968 (regcache_register_status): Declare.
969 (regcache_invalidate): Delete declaration.
970 * corelow.c (get_core_registers): Adjust.
971 * tracepoint.c (tfile_fetch_registers): Adjust.
972 * trad-frame.c (REG_VALUE): Rename to ...
973 (TF_REG_VALUE): ... this.
974 (REG_UNKNOWN): Rename to ...
975 (TF_REG_UNKNOWN): ... this.
976 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
977 * mi/mi-main.c (register_changed_p): Adjust.
979 2011-01-25 Pedro Alves <pedro@codesourcery.com>
981 * regcache.c (struct regcache_descr): Remove outdated comment.
982 (init_regcache_descr): Remove sizeof_raw_register_valid_p
984 (regcache_xmalloc): Rename to ...
985 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
986 Allocate the regcache type accordingly.
987 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
988 (regcache_xfree): Asser the source is also readonly. Copy sizeof
989 cooked registers, not raw.
990 (regcache_dup_no_passthrough): Delete.
991 (get_thread_arch_regcache): Use regcache_xmalloc_1.
992 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
993 mention obsolete write_register_bytes.
994 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
996 2011-01-25 Pedro Alves <pedro@codesourcery.com>
998 Stop remote_read_bytes from handling partial reads itself.
1000 * remote-fileio.c: Include target.h.
1001 (remote_fileio_write_bytes): Delete.
1002 (remote_fileio_func_open, remote_fileio_func_write)
1003 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
1005 (remote_fileio_func_stat): Use target_read_memory and
1006 target_write_memory.
1007 (remote_fileio_func_gettimeofday): Use target_write_memory.
1008 (remote_fileio_func_system): Use target_read_memory.
1009 * remote.c (remote_write_bytes): Make it static.
1010 (remote_read_bytes): Don't handle partial reads here.
1011 * remote.h (remote_read_bytes): Delete declaration.
1013 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1015 Simplify XML parsing a bit.
1017 * xml-support.h (gdb_xml_parse_quick): Declare.
1018 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
1019 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
1021 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
1022 gdb_xml_create_parser_and_cleanup_1.
1023 (gdb_xml_parse_quick): New.
1024 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
1025 * osdata.c (osdata_parse): Ditto.
1026 * remote.c (remote_threads_info): Ditto.
1027 * solib-target.c (solib_target_parse_libraries): Ditto.
1028 * xml-syscall.c (syscall_parse_xml): Ditto.
1029 * xml-tdesc.c (tdesc_parse_xml): Ditto.
1031 2011-01-24 Kevin Buettner <kevinb@redhat.com>
1033 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
1034 with remote-mips.o added to gdb_target_obs.
1035 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
1037 2011-01-24 Pedro Alves <pedro@codesourcery.com>
1039 * ada-valprint.c (val_print_packed_array_elements): Pass the
1040 correct struct value to val_print.
1041 (ada_val_print_1): Ditto.
1043 2011-01-24 Pedro Alves <pedro@codesourcery.com>
1045 Don't lose embedded_offset in printing routines throughout.
1047 * valprint.h (val_print_array_elements): Change prototype.
1048 * valprint.c (val_print_array_elements): Add `embedded_offset'
1049 parameter, and adjust to pass it down to val_print, while passing
1050 `valaddr' or `address' unmodified. Take embedded_offset into
1051 account when checking repetitions.
1052 * c-valprint.c (c_val_print): Pass embedded_offset to
1053 val_print_array_elements instead of adjusting `valaddr' and
1055 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
1056 embedded_offset to val_print_array_elements instead of adjusting
1058 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
1059 * p-valprint.c (pascal_val_print): Pass embedded_offset to
1060 val_print_array_elements and pascal_object_print_value_fields
1061 instead of adjusting `valaddr'.
1062 (pascal_object_print_value_fields): Add `offset' parameter, and
1064 (pascal_object_print_value): Add `offset' parameter, and adjust to
1066 (pascal_object_print_static_field): Use
1067 value_contents_for_printing/value_embedded_offset, rather than
1069 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
1070 parameter, and adjust to use it. Use
1071 value_contents_for_printing/value_embedded_offset, rather than
1073 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
1074 (ada_val_print_array): Add `offset' parameter, and adjust to use
1076 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
1077 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
1078 Instead work with offsets. Use
1079 value_contents_for_printing/value_embedded_offset, rather than
1080 value_contents. Change `defer_val_int' local type to CORE_ADDR,
1081 and use value_from_pointer to extract a target pointer, rather
1082 than value_from_longest.
1083 (print_variant_part): Add `offset' parameter. Replace
1084 `outer_valaddr' parameter by a new `outer_offset' parameter.
1085 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1086 (ada_value_print): Use
1087 value_contents_for_printing/value_embedded_offset, rather than
1089 (print_record): Add `offset' parameter, and adjust to pass it
1091 (print_field_values): Add `offset' parameter. Replace
1092 `outer_valaddr' parameter by a new `outer_offset' parameter.
1093 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1094 Use value_contents_for_printing/value_embedded_offset, rather than
1096 * d-valprint.c (dynamic_array_type): Use
1097 value_contents_for_printing/value_embedded_offset, rather than
1099 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
1100 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1101 (java_print_value_fields): Take `offset' into account. Don't
1102 re-adjust `valaddr'. Instead pass down adjusted offsets.
1103 (java_val_print): Take `embedded_offset' into account. Pass it to
1104 java_print_value_fields.
1105 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
1106 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
1107 down adjusted offsets.
1108 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
1109 (f_val_print): Take `embedded_offset' into account.
1111 2011-01-21 Joel Brobecker <brobecker@adacore.com>
1113 * inflow.c: Include "gdbcmd.h".
1114 (interactive_mode): New static global, moved here from top.c.
1115 (show_interactive_mode): New function, moved here from top.c.
1116 use gdb_has_a_terminal instead of input_from_terminal_p to
1117 determine the current mode.
1118 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
1120 (_initialize_inflow): Add the "set/show interactive-mode"
1121 commands. Moved here from top.c, after having adjusted slightly
1123 * top.c (interactive_mode, show_interactive_mode): Delete, moved
1125 (input_from_terminal_p): Remove handling of "interactive-mode"
1126 setting, moved to infow.c.
1127 (init_main): Remove creation of the "set/show interactive-mode"
1128 commands, moved to inflow.c.
1130 2011-01-19 Joel Brobecker <brobecker@adacore.com>
1132 * NEWS: Add entry for native ia64-hpux support.
1134 2011-01-19 Tom Tromey <tromey@redhat.com>
1137 * thread.c (free_thread): Free 'name'.
1138 (print_thread_info): Emit thread name. Change CLI output.
1139 (thread_name_command): New function.
1140 (do_captured_thread_select): Emit newline.
1141 (_initialize_thread): Register 'thread name' command.
1142 * target.h (struct target_ops) <to_thread_name>: New field.
1143 (target_thread_name): New macro.
1144 * target.c (update_current_target): Handle to_thread_name.
1145 * python/py-infthread.c (thpy_get_name): New function.
1146 (thpy_set_name): Likewise.
1147 (thread_object_getset): Add "name".
1148 * linux-nat.c (linux_nat_thread_name): New function.
1149 (linux_nat_add_target): Set to_thread_name.
1150 * gdbthread.h (struct thread_info) <name>: New field.
1152 2011-01-18 Joel Brobecker <brobecker@adacore.com>
1154 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
1155 (ada_val_print_1): Likewise.
1157 2011-01-18 Joel Brobecker <brobecker@adacore.com>
1159 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
1160 upper limit address is not greater than the function end address
1161 when the upper limit could not be computed using the debugging
1164 2011-01-17 Tom Tromey <tromey@redhat.com>
1166 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
1168 * utils.c: Include gdb_regex.h.
1169 (do_regfree_cleanup): New function.
1170 (make_regfree_cleanup): Likewise.
1171 (get_regcomp_error): Likewise.
1172 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
1174 2011-01-17 Tom Tromey <tromey@redhat.com>
1176 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
1179 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1181 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
1182 for internal variables.
1183 (last_was_structop): New static variable.
1184 (COMPLETE): New token.
1185 (field_exp): New rule to group all '.' suffix handling.
1186 Add mark_struct_expression calls when approriate to be able
1187 to correctly find fields for completion.
1188 (yylex): Adapt to handle field completion and set INTVAR when
1191 2011-01-14 Yao Qi <yao@codesourcery.com>
1193 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
1194 save_reggroup, restore_reggroup and all_reggroup.
1196 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1198 * ada-valprint. (ada_printchar): Use the correct type length
1199 in call to ada_emit_char.
1200 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
1202 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1204 * solib-som.h (hpux_major_release): Declare variable here.
1205 * solib-som.c: Remove <sys/utsname.h> header.
1206 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
1207 (hpux_major_release): Make global, change default value to
1208 DEFAULT_HPUX_MAJOR_RELEASE.
1209 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
1210 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
1211 Add "solib-som.h" header.
1212 (set_hpux_major_release): New function.
1213 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
1215 2011-01-14 Mike Frysinger <vapier@gentoo.org>
1217 * configure.tgt (*-*-uclinux*): Match more Linux os targets
1219 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1221 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
1222 new-line at end of warning message.
1223 (ia64_hpux_store_register): Remove trailing new-line at end of
1225 * ia64-hpux-tdep.c: Rephrase comment.
1226 * solib-ia64-hpux.c (struct dld_info): Change type of field
1227 dld_flags from "long long" to ULONGEST.
1229 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1231 * target.h (deprecated_child_ops): Delete declaration.
1232 * target.c (deprecated_child_ops): Delete definition.
1234 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1236 * Makefile.in (hpux-thread.o): Delete rule.
1237 * configure.ac: Don't check for HPUX DCE threads support.
1238 * configure, config.in: Regenerate.
1239 * hppa-hpux-nat.c (child_suppress_run): Delete.
1240 (hppa_hpux_child_can_run): Delete.
1241 (_initialize_hppa_hpux_nat): Don't override to_can_run.
1242 * hpux-thread.c: Delete.
1244 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1246 * hpux-thread.c (hpux_pid_to_str): Delete.
1248 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1250 * ada-valprint.c (ada_emit_char): Remove strange code.
1251 Check that c is <= UCHAR_MAX before passing it to isascii.
1252 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
1254 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1256 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
1257 to the case where instream is stdin.
1259 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1261 * ia64-tdep.h (struct regcache): Forward declare.
1262 (struct ia64_infcall_ops): New struct type.
1263 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
1265 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
1266 Renames ia64_find_global_pointer.
1267 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
1268 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
1269 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
1271 (ia64_infcall_ops): New static global constant.
1272 (ia64_gdbarch_init): Set tdep->infcall_ops.
1273 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
1274 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
1275 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
1276 (ia64_hpux_dummy_code): New static global constant.
1277 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
1278 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
1279 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
1281 (ia64_hpux_infcall_ops): New static global constant.
1282 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
1283 for inferior function calls to work properly on ia64-hpux.
1285 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1287 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
1288 * ia64-tdep.h (struct frame_info): forward declaration.
1289 (struct gdbarch_tdep): Add field size_of_register_frame.
1290 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
1291 to determine the size of the register frame.
1292 (ia64_size_of_register_frame): New function.
1293 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
1294 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
1295 (IA64_HPUX_UREG_REASON): New macro.
1296 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
1298 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
1299 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
1300 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
1303 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1305 Add support for ia64-hpux.
1306 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
1307 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
1309 * configure.host: Add handling for ia64-hpux hosts. Add associated
1311 * configure.tgt: Add handling for ia64-hpux targets.
1312 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
1313 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
1314 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
1316 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1318 [ttrace] Compute thread list immediately after attach.
1319 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
1321 (inf_ttrace_attach): Use it.
1323 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1325 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
1326 if we could not determine the frame's function address. Instead,
1327 use the frame's PC, and then continue.
1329 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1331 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
1332 not already defined.
1334 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1336 * ia64-tdep.c (ia64_struct_type_p): New function.
1337 (ia64_extract_return_value): Handle integral values that are
1338 less than 8 bytes long.
1339 (ia64_push_dummy_call): Likewise.
1341 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1343 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
1344 floatformat_ia64_ext.
1345 (floatformat_ia64_ext_big): New static const.
1346 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
1348 2011-01-12 Tom Tromey <tromey@redhat.com>
1350 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
1352 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
1353 (mi_cmd_thread_list_ids): Likewise.
1354 (mi_cmd_data_list_changed_registers): Likewise.
1355 (mi_cmd_data_list_register_values): Likewise.
1356 (mi_cmd_data_write_register_values): Likewise.
1357 (mi_cmd_data_evaluate_expression): Likewise.
1358 (mi_cmd_data_read_memory): Likewise.
1359 (mi_cmd_data_read_memory_bytes): Likewise.
1360 (mi_cmd_data_write_memory): Likewise.
1361 (mi_cmd_enable_timings): Likewise.
1362 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
1363 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
1364 (mi_cmd_var_delete): Likewise.
1365 (mi_cmd_var_set_format): Likewise.
1366 (mi_cmd_var_show_format): Likewise.
1367 (mi_cmd_var_info_num_children): Likewise.
1368 (mi_cmd_var_list_children): Likewise.
1369 (mi_cmd_var_info_type): Likewise.
1370 (mi_cmd_var_info_expression): Likewise.
1371 (mi_cmd_var_show_attributes): Likewise.
1372 (mi_cmd_var_assign): Likewise.
1373 (mi_cmd_var_update): Likewise.
1374 (mi_cmd_enable_pretty_printing): Likewise.
1375 (mi_cmd_var_set_update_range): Likewise.
1376 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
1378 (mi_cmd_target_file_put): Likewise.
1379 (mi_cmd_target_file_delete): Likewise.
1380 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
1382 (mi_cmd_stack_info_depth): Likewise.
1383 (mi_cmd_stack_list_locals): Likewise.
1384 (mi_cmd_stack_list_args): Likewise.
1385 (mi_cmd_stack_select_frame): Likewise.
1386 (mi_cmd_stack_select_frame): Likewise.
1387 (mi_cmd_stack_info_frame): Likewise.
1388 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
1390 (mi_cmd_file_list_exec_source_files): Likewise.
1391 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
1392 (mi_cmd_env_cd): Likewise.
1393 (mi_cmd_env_path): Likewise.
1394 (mi_cmd_env_dir): Likewise.
1395 (mi_cmd_inferior_tty_show): Likewise.
1396 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
1397 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
1398 (mi_cmd_break_watch): Likewise.
1400 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
1402 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
1403 (ppc_linux_insert_hw_breakpoint): Likewise.
1404 (ppc_linux_remove_hw_breakpoint): Likewise.
1405 (ppc_linux_insert_watchpoint): Likewise.
1407 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1408 Jan Kratochvil <jan.kratochvil@redhat.com>
1410 PR fortran/11104 and DWARF unbound arrays detection.
1411 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
1412 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
1413 unspecified upper bound.
1414 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
1415 variables array_size_array, tmp_type and offset_item. New variable
1416 array. Remove call to f77_get_upperbound. New variables array_type
1417 and index. Call value_subscripted_rvalue for each dimenasion. Remove
1418 the final call to deprecated_set_value_type.
1420 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1422 Make value allocations more lazy.
1423 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
1424 instead of allocate_value and set_value_lazy when possible.
1425 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
1426 instead of allocate_value and set_value_lazy.
1427 * findvar.c (value_of_register_lazy): Likewise.
1428 (read_var_value): Remove V preallocation, call just check_typedef in
1429 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
1430 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
1431 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
1432 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
1433 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
1434 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
1435 the end, remove set_value_lazy there.
1436 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
1437 instead of allocate_value and set_value_lazy when possible.
1438 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
1439 * value.c (allocate_computed_value): Use allocate_value_lazy instead
1440 of allocate_value and set_value_lazy.
1441 (value_from_contents_and_address): Use allocate_value_lazy instead of
1442 allocate_value and set_value_lazy when possible.
1444 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1446 * disasm.c (dump_insns): Support dumping opcodes for MI.
1447 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
1448 dumping of instruction opcodes.
1450 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
1452 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
1455 2011-01-11 Tom Tromey <tromey@redhat.com>
1457 * thread.c (do_captured_thread_select): Emit newline before
1460 2011-01-11 Michael Snyder <msnyder@vmware.com>
1462 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
1463 * score-tdep.c: Ditto.
1464 * score-tdep.h: Ditto.
1465 * ser-base.c: Ditto.
1466 * ser-go32.c: Ditto.
1469 * ser-mingw.c: Ditto.
1470 * ser-pipe.c: Ditto.
1472 * ser-unix.c: Ditto.
1473 * sh64-tdep.c: Ditto.
1474 * shnbsd-nat.c: Ditto.
1478 * solib-darwin.c: Ditto.
1479 * solib-frv.c: Ditto.
1481 * solib-irix.c: Ditto.
1482 * solib-osf.c: Ditto.
1483 * solib-pa64.c: Ditto.
1484 * solib-som.c: Ditto.
1485 * solib-spu.c: Ditto.
1486 * solib-sunos.c: Ditto.
1487 * solib-svr4.c: Ditto.
1489 * sol-thread.c: Ditto.
1493 * sparc64-linux-tdep.c: Ditto.
1494 * sparc64-tdep.c: Ditto.
1495 * sparc-linux-nat.c: Ditto.
1496 * sparc-linux-tdep.c: Ditto.
1497 * sparc-sol2-nat.c: Ditto.
1498 * sparc-sol2-tdep.c: Ditto.
1499 * sparc-tdep.c: Ditto.
1500 * sparc-tdep.h: Ditto.
1501 * spu-tdep.c: Ditto.
1502 * stabsread.c: Ditto.
1503 * stabsread.h: Ditto.
1511 * target-descriptions.c: Ditto.
1512 * target-descriptions.h: Ditto.
1514 * target-memory.c: Ditto.
1515 * terminal.h: Ditto.
1518 * tracepoint.c: Ditto.
1519 * tracepoint.h: Ditto.
1520 * trad-frame.h: Ditto.
1521 * typeprint.c: Ditto.
1523 2011-01-11 Michael Snyder <msnyder@vmware.com>
1525 * ui-file.c: Comment cleanup, mostly periods and spaces.
1530 * v850-tdep.c: Ditto.
1531 * valarith.c: Ditto.
1533 * valprint.c: Ditto.
1534 * valprint.h: Ditto.
1539 * vax-tdep.c: Ditto.
1543 * windows-nat.c: Ditto.
1544 * windows-tdep.c: Ditto.
1545 * xcoffread.c: Ditto.
1546 * xcoffsolib.c: Ditto.
1547 * xml-support.c: Ditto.
1548 * xstormy16-tdep.c: Ditto.
1549 * xtensa-tdep.c: Ditto.
1550 * xtensa-tdep.h: Ditto.
1552 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1554 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
1555 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
1557 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1558 Thiago Jung Bauermann <bauerman@br.ibm.com>
1560 Implement support for PowerPC BookE ranged watchpoints.
1562 (struct breakpoint_ops) <resources_needed>: New method.
1563 Initialize to NULL in all existing breakpoint_ops instances.
1564 (struct breakpoint) <exact>: New field.
1565 (target_exact_watchpoints): Declare external global.
1566 * breakpoint.c (target_exact_watchpoints): New global flag.
1567 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
1568 b->enable_state to bp_enabled before calling
1569 hw_watchpoint_used_count.
1570 (hw_watchpoint_used_count): Iterate over all bp_locations in a
1571 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
1573 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
1574 if the watchpoint is exact.
1575 (resources_needed_watchpoint): New function.
1576 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
1577 (watch_command_1): Set b->exact if the user asked for an exact
1578 watchpoint and one can be set.
1579 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
1580 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
1581 the user asks for an exact watchpoint and one can be set. Return
1582 number of needed debug registers to watch the expression.
1583 * gdbtypes.c (is_scalar_type): New function, based on
1584 valprint.c:scalar_type_p.
1585 (is_scalar_type_recursive): New function.
1586 * gdbtypes.h (is_scalar_type_recursive): Declare.
1587 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
1588 handle regions when ranged watchpoints are available.
1589 (create_watchpoint_request): New function.
1590 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1591 create_watchpoint_request.
1592 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
1593 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
1594 `set powerpc' and `show powerpc' commands.
1595 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1596 Mention documentation comment in the target macro.
1597 (target_region_ok_for_hw_watchpoint): Document return value.
1599 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1601 * breakpoint.c (update_watchpoint): Decide on using a software or
1602 hardware watchpoint after the bp_locations are created.
1604 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1606 Convert hardware watchpoints to use breakpoint_ops.
1607 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
1608 <insert_location>: ... this. Return int instead of void.
1609 Accept pointer to struct bp_location instead of pointer to
1610 struct breakpoint. Adapt all implementations.
1611 (breakpoint_ops) <remove>: Rename to...
1612 <remove_location>: ... this. Accept pointer to struct bp_location
1613 instead of pointer to struct breakpoint. Adapt all implementations.
1614 * breakpoint.c (insert_catchpoint): Delete function.
1615 (insert_bp_location): Call the watchpoint or catchpoint's
1616 breakpoint_ops.insert method.
1617 (remove_breakpoint_1): Call the watchpoint or catchpoint's
1618 breakpoint_ops.remove method.
1619 (insert_watchpoint, remove_watchpoint): New functions.
1620 (watchpoint_breakpoint_ops): New structure.
1621 (watch_command_1): Initialize the OPS field.
1622 * inf-child.c (inf_child_insert_fork_catchpoint)
1623 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
1624 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
1625 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
1627 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
1628 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
1629 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
1630 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
1631 * target.c (update_current_target): Change default implementation of
1632 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
1633 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
1634 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
1635 to_set_syscall_catchpoint to return_one.
1636 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
1637 (debug_to_insert_exec_catchpoint): Report return value.
1638 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
1639 (to_insert_exec_catchpoint): Change declaration to return int instead
1642 2011-01-11 Michael Snyder <msnyder@vmware.com>
1644 * arm-tdep.c: Internationalization.
1647 * fork-child.c: Ditto.
1648 * nto-procfs.c: Ditto.
1649 * ppc-sysv-tdep.c: Ditto.
1651 * remote-mips.c: Ditto.
1653 * rs6000-nat.c: Ditto.
1654 * rs6000-tdep.c: Ditto.
1658 * xml-support.c: Ditto.
1659 * mi/mi-cmd-break.c: Ditto.
1660 * mi/mi-cmd-var.c: Ditto.
1661 * mi/mi-interp.c: Ditto.
1662 * mi/mi-main.c: Ditto.
1664 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
1666 * remote-sim.c (gdbsim_store_register): Update API to
1667 sim_store_register to check more error conditions.
1669 2011-01-10 Michael Snyder <msnyder@vmware.com>
1671 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
1672 * nto-tdep.c: Ditto.
1673 * nto-tdep.h: Ditto.
1674 * objc-exp.y: Ditto.
1675 * objc-lang.c: Ditto.
1676 * objfiles.c: Ditto.
1677 * objfiles.h: Ditto.
1678 * observer.c: Ditto.
1679 * opencl-lang.c: Ditto.
1682 * parser-defs.h: Ditto.
1685 * posix-hdep.c: Ditto.
1686 * ppcbug-rom.c: Ditto.
1687 * ppc-linux-nat.c: Ditto.
1688 * ppc-linux-tdep.c: Ditto.
1689 * ppc-linux-tdep.h: Ditto.
1690 * ppcnbsd-tdep.c: Ditto.
1691 * ppcobsd-tdep.c: Ditto.
1692 * ppcobsd-tdep.h: Ditto.
1693 * ppc-sysv-tdep.c: Ditto.
1694 * ppc-tdep.h: Ditto.
1695 * printcmd.c: Ditto.
1696 * proc-abi.c: Ditto.
1697 * proc-flags.c: Ditto.
1699 * proc-utils.h: Ditto.
1700 * progspace.h: Ditto.
1701 * prologue-value.c: Ditto.
1702 * prologue-value.h: Ditto.
1703 * psympriv.h: Ditto.
1705 * p-typeprint.c: Ditto.
1706 * p-valprint.c: Ditto.
1707 * ravenscar-sparc-thread.c: Ditto.
1708 * ravenscar-thread.c: Ditto.
1709 * ravenscar-thread.h: Ditto.
1711 * regcache.c: Ditto.
1712 * regcache.h: Ditto.
1714 * remote-fileio.c: Ditto.
1715 * remote-fileio.h: Ditto.
1717 * remote-m32r-sdi.c: Ditto.
1718 * remote-mips.c: Ditto.
1719 * remote-sim.c: Ditto.
1720 * rs6000-aix-tdep.c: Ditto.
1721 * rs6000-nat.c: Ditto.
1722 * rs6000-tdep.c: Ditto.
1724 2011-01-10 Michael Snyder <msnyder@vmware.com>
1726 * charset.c (validate): Internationalization.
1727 * coffread.c (read_one_sym): Ditto.
1728 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
1729 * h8300-tdep.c (H8300_extract_return_value): Ditto.
1730 * inflow.c (new_tty): Ditto.
1731 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
1732 * m32c-tdep.c (m32c_return_value): Ditto.
1733 * mep-tdep.c (mep_store_return_value): Ditto.
1734 * score-tdep.c (score7_fetch_insn): Ditto.
1735 * ser-mingw.c (pipe_windows_open): Ditto.
1736 * sh64-tdep.c (sh64_extract_return_value): Ditto.
1737 * spu-tdep.c (spu_register_type): Ditto.
1738 * tracepoint.c (trace_find_command): Ditto.
1739 * valarith.c (value_pos): Ditto.
1741 2011-01-10 Joel Brobecker <brobecker@adacore.com>
1743 * ada-valprint.c (printstr): Minor comment reformatting.
1745 2011-01-08 Michael Snyder <msnyder@vmware.com>
1747 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
1750 2011-01-08 Michael Snyder <msnyder@vmware.com>
1752 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
1753 * hppa-hpux-tdep.c: Ditto.
1754 * hppa-linux-nat.c: Ditto.
1755 * hppa-linux-tdep.c: Ditto.
1756 * hppanbsd-tdep.c: Ditto.
1757 * hppa-tdep.c: Ditto.
1758 * hppa-tdep.h: Ditto.
1759 * hpux-thread.c: Ditto.
1760 * i386-cygwin-tdep.c: Ditto.
1761 * i386-darwin-nat.c: Ditto.
1762 * i386gnu-nat.c: Ditto.
1763 * i386-linux-nat.c: Ditto.
1764 * i386-linux-tdep.c: Ditto.
1765 * i386-nat.c: Ditto.
1766 * i386-nat.h: Ditto.
1767 * i386nbsd-tdep.c: Ditto.
1768 * i386-sol2-nat.c: Ditto.
1769 * i386-stub.c: Ditto.
1770 * i386-tdep.c: Ditto.
1771 * i386-tdep.h: Ditto.
1772 * i387-tdep.c: Ditto.
1773 * ia64-linux-nat.c: Ditto.
1774 * ia64-linux-tdep.c: Ditto.
1775 * ia64-tdep.c: Ditto.
1779 * inferior.c: Ditto.
1780 * inferior.h: Ditto.
1786 * iq2000-tdep.c: Ditto.
1787 * irix5-nat.c: Ditto.
1793 * jv-typeprint.c: Ditto.
1794 * jv-valprint.c: Ditto.
1795 * language.c: Ditto.
1796 * language.h: Ditto.
1797 * linespec.c: Ditto.
1798 * linux-fork.c: Ditto.
1799 * linux-nat.c: Ditto.
1800 * linux-thread-db.c: Ditto.
1801 * lm32-tdep.c: Ditto.
1803 2011-01-08 Michael Snyder <msnyder@vmware.com>
1805 * m2-exp.y: Comment cleanup, mostly periods and spaces.
1807 * m2-typeprint.c: Ditto.
1808 * m2-valprint.c: Ditto.
1809 * m32c-tdep.c: Ditto.
1810 * m32r-linux-nat.c: Ditto.
1811 * m32r-rom.c: Ditto.
1812 * m32r-tdep.c: Ditto.
1813 * m32r-tdep.h: Ditto.
1814 * m68hc11-tdep.c: Ditto.
1815 * m58klinux-nat.c: Ditto.
1816 * m68k-tdep.c: Ditto.
1817 * m88k-tdep.c: Ditto.
1818 * m88k-tdep.h: Ditto.
1819 * machoread.c: Ditto.
1820 * macrocmd.c: Ditto.
1821 * macroexp.c: Ditto.
1822 * macrotab.c: Ditto.
1825 * mdebugread.c: Ditto.
1826 * mdebugread.h: Ditto.
1829 * memory-map.h: Ditto.
1830 * mep-tdep.c: Ditto.
1831 * microblaze-rom.c: Ditto.
1832 * microblaze-tdep.c: Ditto.
1834 * mips-irix-tdep.c: Ditto.
1835 * mips-linux-nat.c: Ditto.
1836 * mips-linux-tdep.c: Ditto.
1837 * mips-linux-tdep.h: Ditto.
1838 * mipsnbsd-nat.c: Ditto.
1839 * mipsnbsd-tdep.c: Ditto.
1840 * mipsread.c: Ditto.
1841 * mips-tdep.c: Ditto.
1842 * mips-tdep.h: Ditto.
1843 * mn10300-linux-tdep.c: Ditto.
1844 * mn10300-tdep.c: Ditto.
1845 * mn10300-tdep.h: Ditto.
1848 * moxie-tdep.c: Ditto.
1849 * moxie-tdep.h: Ditto.
1852 2011-01-08 Mike Frysinger <vapier@gentoo.org>
1854 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
1856 2011-01-08 Robert Millan <rmh@gnu.org>
1858 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
1860 2011-01-07 Michael Snyder <msnyder@vmware.com>
1862 * charset.c (_initialize_charset): Fix typo in string.
1864 2011-01-07 Michael Snyder <msnyder@vmware.com>
1866 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
1868 * tui/tui-layout.c (tui_set_layout_for_display_command):
1869 Split line so that operator goes to beginning of line.
1870 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
1871 assignment out of if statement.
1873 2011-01-07 Michael Snyder <msnyder@vmware.com>
1875 * ada-lang.c: Comment cleanup, mostly periods and spaces.
1876 * ada-lang.h: Ditto.
1877 * ada-tasks.c: Ditto.
1878 * ada-valprint.c: Ditto.
1879 * aix-threads.c: Ditto.
1880 * alpha-linux-nat.c: Ditto.
1881 * alpha-linux-tdep.c: Ditto.
1882 * alpha-mdebug-tdep.c: Ditto.
1883 * alpha-nat.c: Ditto.
1884 * alpha-osf1-tdep.c: Ditto.
1885 * alpha-tdep.c: Ditto.
1886 * alphabsd-nat.c: Ditto.
1887 * alphabsd-tdep.c: Ditto.
1888 * amd64-darwin-tdep.c: Ditto.
1889 * amd64-linux-nat.c: Ditto.
1890 * amd64-linux-tdep.c: Ditto.
1891 * amd64-sol2-tdep.c: Ditto.
1892 * amd64-tdep.c: Ditto.
1893 * amd64-fbsd-tdep.c: Ditto.
1894 * amd64-nbsd-tdep.c: Ditto.
1895 * amd64-obsd-tdep.c: Ditto.
1896 * amd64-linux-nat.c: Ditto.
1897 * amd64-linux-tdep.c: Ditto.
1898 * arm-tdep.c: Ditto.
1899 * arm-tdep.h: Ditto.
1900 * armnbsd-nat.c: Ditto.
1901 * avr-tdep.c: Ditto.
1902 * bfin-tdep.c: Ditto.
1904 * c-typeprintc: Ditto.
1905 * c-valprint.c: Ditto.
1906 * coff-pe-read.h: Ditto.
1907 * coffreead.c: Ditto.
1908 * cris-tdep.c: Ditto.
1910 * darwin-nat-info.c: Ditto.
1911 * darwin-nat.c: Ditto.
1912 * dbug-rom.c: Ditto.
1916 * dec-thread.c: Ditto.
1918 * demangle.c: Ditto.
1919 * dicos-tdep.c: Ditto.
1920 * dictionary.c: Ditto.
1921 * dictionary.h: Ditto.
1922 * dink32-rom.c: Ditto.
1924 * doublest.c: Ditto.
1926 * dummy-frame.c: Ditto.
1927 * dwarf2-frame.c: Ditto.
1928 * dwarf2expr.c: Ditto.
1929 * dwarf2loc.c: Ditto.
1930 * dwarf2read.c: Ditto.
1934 * event-top.h: Ditto.
1935 * exceptions.c: Ditto.
1936 * exceptions.h: Ditto.
1938 * expprint.c: Ditto.
1939 * expression.h: Ditto.
1943 * f-typeprint.c: Ditto.
1944 * f-valprint.c: Ditto.
1945 * fbsd-nat.c: Ditto.
1947 * fork-child.c: Ditto.
1950 * frv-linux-tdep.c: Ditto.
1951 * frv-tdep.c: Ditto.
1953 * gdb-stabs.h: Ditto.
1954 * gdb_assert.h: Ditto.
1955 * gdb_string.h: Ditto.
1956 * gdb_thread_db.h: Ditto.
1957 * gdb_wait.h: Ditto.
1958 * gdbarch.sh: Ditto.
1960 * gdbthread.h: Ditto.
1961 * gdbtypes.c: Ditto.
1962 * gdbtypes.h: Ditto.
1965 * gnu-v2-abi.c: Ditto.
1966 * gnu-v3-abi.c: Ditto.
1967 * go32-nat.c: Ditto.
1968 * gdbarch.c: Regenerate.
1969 * gdbarch.h: Regenerate.
1971 2011-01-07 Michael Snyder <msnyder@vmware.com>
1973 * ax-gdb.c: Adjust some long output strings.
1974 * breakpoint.c: Ditto.
1979 * linux-nat.c: Ditto.
1980 * solib-pa64.c: Ditto.
1981 * solib-som.c: Ditto.
1983 2011-01-06 Tom Tromey <tromey@redhat.com>
1987 * python/python.c (GdbMethods): Add "newest_frame" method.
1988 * python/python-internal.h (gdbpy_newest_frame): Declare.
1989 * python/py-frame.c (gdbpy_newest_frame): New function.
1991 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1993 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
1994 * jit.c (jit_debug): New variable.
1995 (show_jit_debug): New function.
1996 (struct target_buffer): Use ULONGEST.
1997 (bfd_open_from_target_memory): Likewise.
1998 (jit_register_code, jit_inferior_init): Add debug output.
1999 (_initialize_jit): Register "debug jit" command.
2001 2011-01-06 Tom Tromey <tromey@redhat.com>
2003 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
2004 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
2007 2011-01-06 Tom Tromey <tromey@redhat.com>
2009 * python/py-frame.c (frapy_block): Use get_frame_block.
2011 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2013 Do not stop on SIGPRIO signals by default
2014 * infrun.c (_initialize_infrun): Unset signal_stop and
2015 signal_print for TARGET_SIGNAL_PRIO.
2017 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2019 * ada-tasks.c: Fix style violation in comment.
2021 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2023 * linespec.c (decode_compound, find_method): Remove trailing \n
2024 at end of error string.
2025 * solib-irix.c (irix_current_sos): Likewise.
2026 * varobj.c (uninstall_variable): Likewise.
2028 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2030 * copyright.py: New script.
2031 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
2032 Launch emacs without exec'ing. Call copyright.py afterwards.
2034 2011-01-05 Michael Snyder <msnyder@vmware.com>
2036 * addrmap.c: Shorten lines of >= 80 columns.
2037 * arch-utils.c: Ditto.
2038 * arch-utils.h: Ditto.
2040 * ax-general.c: Ditto.
2042 * blockframe.c: Ditto.
2043 * breakpoint.c: Ditto.
2044 * buildsym.c: Ditto.
2046 * c-typeprint.c: Ditto.
2048 * coffread.c: Ditto.
2052 * cp-namespace.c: Ditto.
2053 * cp-support.c: Ditto.
2054 * dbug-rom.c: Ditto.
2059 * dictionary.c: Ditto.
2061 * doublest.c: Ditto.
2062 * dwarf2-frame.c: Ditto.
2063 * dwarf2expr.c: Ditto.
2064 * dwarf2loc.c: Ditto.
2065 * dwarf2read.c: Ditto.
2068 * event-loop.c: Ditto.
2069 * event-loop.h: Ditto.
2070 * exceptions.h: Ditto.
2072 * expprint.c: Ditto.
2073 * expression.h: Ditto.
2075 * f-valprint.c: Ditto.
2077 * frame-base.c: Ditto.
2078 * frame-unwind.c: Ditto.
2079 * frame-unwind.h: Ditto.
2083 * gdb-stabs.h: Ditto.
2084 * gdb_assert.h: Ditto.
2085 * gdb_dirent.h: Ditto.
2086 * gdb_obstack.h: Ditto.
2088 * gdbtypes.c: Ditto.
2089 * gdbtypes.h: Ditto.
2090 * inf-ttrace.c: Ditto.
2095 * inline-frame.h: Ditto.
2096 * language.c: Ditto.
2097 * language.h: Ditto.
2098 * libunwind-frame.c: Ditto.
2099 * libunwind-frame.h: Ditto.
2100 * linespec.c: Ditto.
2101 * linux-nat.c: Ditto.
2102 * linux-nat.h: Ditto.
2103 * linux-thread-db.c: Ditto.
2104 * machoread.c: Ditto.
2105 * macroexp.c: Ditto.
2106 * macrotab.c: Ditto.
2109 * mdebugread.c: Ditto.
2114 * objfiles.c: Ditto.
2115 * objfiles.h: Ditto.
2117 * p-typeprint.c: Ditto.
2118 * p-valprint.c: Ditto.
2120 * printcmd.c: Ditto.
2121 * proc-events.c: Ditto.
2123 * progspace.c: Ditto.
2124 * progspace.h: Ditto.
2125 * psympriv.h: Ditto.
2128 * regcache.c: Ditto.
2129 * regcache.h: Ditto.
2130 * remote-fileio.c: Ditto.
2132 * ser-mingw.c: Ditto.
2134 * ser-unix.c: Ditto.
2137 * solib-frv.c: Ditto.
2138 * solib-irix.c: Ditto.
2139 * solib-osf.c: Ditto.
2140 * solib-pa64.c: Ditto.
2141 * solib-som.c: Ditto.
2142 * solib-sunos.c: Ditto.
2143 * solib-svr4.c: Ditto.
2144 * solib-target.c: Ditto.
2148 * stabsread.c: Ditto.
2149 * stabsread.c: Ditto.
2152 * symfile-mem.c: Ditto.
2158 * target-descriptions.c: Ditto.
2159 * target-memory.c: Ditto.
2162 * terminal.h: Ditto.
2165 * tracepoint.c: Ditto.
2166 * tracepoint.h: Ditto.
2170 * user-regs.c: Ditto.
2171 * user-regs.h: Ditto.
2173 * valarith.c: Ditto.
2175 * valprint.c: Ditto.
2176 * valprint.h: Ditto.
2181 * xcoffread.c: Ditto.
2182 * xcoffsolib.c: Ditto.
2183 * xcoffsolib.h: Ditto.
2184 * xml-syscall.c: Ditto.
2185 * xml-tdesc.c: Ditto.
2187 2011-01-05 Michael Snyder <msnyder@vmware.com>
2189 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
2190 * cli/cli-decode.c: Ditto.
2191 * cli/cli-dump.c: Ditto.
2192 * cli/cli-logging.c: Ditto.
2193 * cli/cli-script.c: Ditto.
2194 * cli/cli-setshow.c: Ditto.
2195 * common/signals.c: Ditto.
2196 * mi/mi-cmd-break.c: Ditto.
2197 * mi/mi-cmd-disas.c: Ditto.
2198 * mi/mi-cmd-stack.c: Ditto.
2199 * mi/mi-cmd-var.c: Ditto.
2200 * mi/mi-cmds.c: Ditto.
2201 * mi/mi-common.h: Ditto.
2202 * mi/mi-console.c: Ditto.
2203 * mi/mi-interp.c: Ditto.
2204 * mi/mi-main.c: Ditto.
2205 * osf-share/cma_attr.c: Ditto.
2206 * osf-share/cma_deb_core.h: Ditto.
2207 * osf-share/cma_debug_client.h: Ditto.
2208 * osf-share/cma_handle.h: Ditto.
2209 * osf-share/cma_mutex.h: Ditto.
2210 * osf-share/cma_stack_int.h: Ditto.
2211 * osf-share/cma_tcb_defs.h: Ditto.
2212 * python/py-auto-load.c: Ditto.
2213 * python/py-breakpoint.c: Ditto.
2214 * python/py-cmd.c: Ditto.
2215 * python/py-frame.c: Ditto.
2216 * python/py-objfile.c: Ditto.
2217 * python/py-param.c: Ditto.
2218 * python/py-progspace.c: Ditto.
2219 * python/py-symbol.c: Ditto.
2220 * python/py-value.c: Ditto.
2221 * python/python-internal.h: Ditto.
2222 * python/python.c: Ditto.
2223 * tui/tui-data.c: Ditto.
2224 * tui/tui-disasm.c: Ditto.
2225 * tui/tui-hooks.c: Ditto.
2226 * tui/tui-io.c: Ditto.
2227 * tui/tui-layout.c: Ditto.
2228 * tui/tui-regs.c: Ditto.
2229 * tui/tui-source.c: Ditto.
2230 * tui/tui-stack.c: Ditto.
2231 * tui/tui-win.c: Ditto.
2232 * tui/tui-windata.c: Ditto.
2233 * tui/tui-winsource.c: Ditto.
2235 2011-01-05 Joel Brobecker <brobecker@adacore.com>
2237 * configure.ac, gdb.1: Copyright year update.
2239 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2241 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
2242 this_pc_in_block, morestack_msym and morestack_name. Check for
2243 "__morestack" minimal symbol there.
2245 2011-01-03 Joel Brobecker <brobecker@adacore.com>
2247 * symfile.c (find_sym_fns): Add call to dont_repeat.
2249 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2251 Copyright year update in most files (performed by copyright.sh).
2253 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2255 * top.c (print_gdb_version): Update copyright year in version output.
2257 For older changes see ChangeLog-2010.
2263 version-control: never