1 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2 Jan Kratochvil <jan.kratochvil@redhat.com>
4 * value.c (value_contents_copy_raw): Extend describing comment.
5 Assert that the destination contents we're overwriting are wholly
7 (value_contents_copy): Extend describing comment.
9 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10 Jan Kratochvil <jan.kratochvil@redhat.com>
12 * value.c (value_available_contents_eq): Remove redundant local
13 variables. Fix available contents comparision.
14 * value.h (value_available_contents_eq): Extend describing
17 2011-02-16 Yao Qi <yao@codesourcery.com>
19 * thread.c (info_threads_command): Add missing i18n markup and remove
22 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
24 * breakpoint.c (longjmp_names): New variable.
25 (struct breakpoint_objfile_data): New type.
26 (breakpoint_objfile_key): New variable.
27 (msym_not_found): New variable.
28 (msym_not_found_p): New predicate.
29 (get_breakpoint_objfile_data): New function.
30 (create_overlay_event_breakpoint): Check per-objfile cache for
32 (create_longjmp_master_breakpoint): Likewise.
33 (create_std_terminate_master_breakpoint): Likewise.
34 (create_exception_master_breakpoint): Likewise.
35 (_initialize_breakpoint): Register per-objfile data key.
37 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
39 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
41 (create_longjmp_master_breakpoint): Loop over longjmp names.
42 (create_std_terminate_master_breakpoint): Const-propagate parameter
44 (update_breakpoints_after_exec): Adjust.
45 (breakpoint_re_set): Adjust.
47 2011-02-15 Michael Snyder <msnyder@vmware.com>
49 * thread.c (info_threads_command): Process arg as thread id,
50 or list of thread ids.
51 (thread_find_command): New command.
52 (_initialize_thread): Document argument for info threads.
53 Document 'thread find' command.
54 * NEWS: Document new command "thread find".
56 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
58 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
59 * aclocal.m4: Regenerated with aclocal-1.11.1.
60 * common/configure: Regenerate with autoconf-2.64.
62 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
64 * opencl-lang.c (build_opencl_types): Set the size of the built-in
65 bool data type to a size of one byte.
67 2011-02-15 Pedro Alves <pedro@codesourcery.com>
68 Jan Kratochvil <jan.kratochvil@redhat.com>
70 * target.c (memory_xfer_live_readonly_partial): Document where to
71 look for interface description.
73 2011-02-15 Yao Qi <yao@codesourcery.com>
76 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
77 order to store PC value on stack instead of text section.
79 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
81 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
82 the EFP register set size.
83 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
84 data from the VMX register.
85 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
86 and write data from/to the VMX register.
88 2011-02-14 Michael Snyder <msnyder@vmware.com>
90 * command.h (enum command_class): New class 'no_set_class', for
91 "show" commands without a corresponding "set" command.
92 * value.c (_initialize_values): Use 'no_set_class' for "show values".
93 * copying.c (_initialize_copying): Ditto for "show copying" and
95 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
97 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
98 which there is no corresponding "set" command (eg. "show copying").
100 2011-02-14 Pedro Alves <pedro@codesourcery.com>
101 Jan Kratochvil <jan.kratochvil@redhat.com>
103 * exec.c (section_table_available_memory): Change `len' parameter
105 * exec.h (section_table_available_memory): Ditto.
106 * value.h (read_value_memory): Rename the `offset' parameter to
109 2011-02-14 Pedro Alves <pedro@codesourcery.com>
110 Jan Kratochvil <jan.kratochvil@redhat.com>
112 * memrange.c (compare_mem_ranges): Mention sort order in
114 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
115 * tracepoint.c (traceframe_available_memory): Extend comment to
116 mention what happens to RESULT when the target does not support
119 2011-02-14 Pedro Alves <pedro@codesourcery.com>
120 Jan Kratochvil <jan.kratochvil@redhat.com>
122 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
125 2011-02-14 Pedro Alves <pedro@codesourcery.com>
127 * value.c (value_bits_valid, value_bits_synthetic_pointer):
128 No longer handle NULL values.
130 2011-02-14 Pedro Alves <pedro@codesourcery.com>
132 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
133 * value.c: Include "exceptions.h".
134 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
136 * cp-abi.c: Include gdb_assert.h.
137 (baseclass_offset): Add `embedded_offset' and `val' parameters.
138 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
140 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
141 parameters. No longer returns -1 on error.
142 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
144 * cp-valprint.c: Include exceptions.h.
145 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
146 the baseclass_offset. Handle unavailable base classes. Use
147 val_print_invalid_address.
148 * p-valprint.c: Include exceptions.h.
149 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
150 when fetching the baseclass_offset. No longer expect
151 baseclass_offset returning -1. Handle unavailable base classes.
152 Use val_print_invalid_address.
153 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
154 `valaddr' parameter, and change its type to gdb_byte pointer. Add
155 `embedded_offset' and `val' parameters. Adjust.
156 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
157 parameter, and change its type to gdb_byte pointer. Add
158 `embedded_offset' and `val' parameters. Adjust. No longer expect
159 baseclass_offset returning -1.
160 (value_dynamic_cast): Use value_contents_for_printing rather than
161 value_contents. Adjust.
162 (search_struct_field): No longer expect baseclass_offset returning
164 (search_struct_method): If reading memory from the target is
165 necessary, wrap it in a new value to pass to baseclass_offset. No
166 longer expect baseclass_offset returning -1.
167 (find_method_list): No longer expect baseclass_offset returning
168 -1. Use value_contents_for_printing rather than value_contents.
169 * valprint.c (val_print_invalid_address): New function.
170 * valprint.h (val_print_invalid_address): Declare.
171 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
172 and `val' parameters. No longer expect baseclass_offset returning
174 * gnu-v2-abi.c: Include "exceptions.h".
175 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
176 parameters. Handle unavailable memory. Recurse through
177 gnuv2_baseclass_offset directly, rather than through
178 baseclass_offset. No longer returns -1 on not found, instead
180 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
181 `val' parameters. Adjust.
183 2011-02-14 Pedro Alves <pedro@codesourcery.com>
185 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
186 almost but not quite adjacent.
188 2011-02-14 Pedro Alves <pedro@codesourcery.com>
190 * value.h (value_entirely_available): Declare.
191 * value.c (value_entirely_available): New function.
192 * c-valprint.c (c_value_print): Don't try fetching the pointer's
193 real type if the pointer is unavailable.
195 2011-02-14 Pedro Alves <pedro@codesourcery.com>
197 * valops.c (value_repeat): Use read_value_memory instead of
200 2011-02-14 Pedro Alves <pedro@codesourcery.com>
202 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
203 * value.c (value_contents_copy_raw, value_contents_copy): New
205 (value_primitive_field): Use value_contents_copy_raw instead of
207 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
209 (value_array, value_slice): Ditto.
210 * valarith.c (value_subscripted_rvalue): Use
211 value_contents_copy_raw instead of memcpy.
213 2011-02-14 Pedro Alves <pedro@codesourcery.com>
215 <unavailable> references.
217 * valops.c (get_value_at): Use value_from_contents_and_address,
218 avoiding read_memory.
220 2011-02-14 Pedro Alves <pedro@codesourcery.com>
222 * c-valprint.c (c_val_print): Print a string with unavailable
223 contents as an array.
225 2011-02-14 Pedro Alves <pedro@codesourcery.com>
227 * value.h (unpack_bits_as_long): Delete declaration.
228 (unpack_value_bits_as_long): Declare.
229 (unpack_value_field_as_long): Declare.
230 (value_field_bitfield): Declare.
231 * value.c (unpack_bits_as_long): Rename to...
232 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
233 value parameters. Return the extracted result in a new output
234 parameter. If the value contents are unavailable, return false,
235 otherwise return true.
236 (unpack_value_bits_as_long): New.
237 (unpack_field_as_long): Rename to...
238 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
239 Add embedded_offset and value parameters. Return the extracted
240 result in a new output parameter. If the value contents are
241 unavailable, return false, otherwise return true.
242 (unpack_value_field_as_long): New.
243 (unpack_field_as_long_1): New.
244 (unpack_field_as_long): Reimplement as wrapper around
245 unpack_value_field_as_long_1.
246 (value_field_bitfield): New function.
247 * valops.c (value_fetch_lazy): When fetching a bitfield, use
248 unpack_value_bits_as_long. Mark the value as unavailable, if it
250 * jv-valprint.c (java_print_value_fields): Use
251 value_field_bitfield.
252 * p-valprint.c (pascal_object_print_value_fields): Use
253 value_field_bitfield.
254 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
256 2011-02-14 Pedro Alves <pedro@codesourcery.com>
258 * value.c (get_internalvar_integer): Also return the int value of
259 TYPE_CODE_INT INTERNALVAR_VALUE values.
260 (set_internalvar): Don't special case TYPE_CODE_INT.
262 2011-02-14 Pedro Alves <pedro@codesourcery.com>
264 * value.c (struct internalvar) <enum internalvar_kind>: Remove
267 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
268 (set_internalvar): Remove special TYPE_CODE_PTR handling.
269 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
271 2011-02-14 Pedro Alves <pedro@codesourcery.com>
273 * value.h (value_available_contents_eq): Declare.
274 * value.c (find_first_range_overlap): New function.
275 (value_available_contents_eq): New function.
276 * valprint.c (val_print_array_elements): Use
277 value_available_contents_eq.
278 * ada-valprint.c (val_print_packed_array_elements): Use
279 value_available_contents_eq.
280 * jv-valprint.c (java_value_print): Use
281 value_available_contents_eq.
283 2011-02-14 Pedro Alves <pedro@codesourcery.com>
285 * target.c (target_read_live_memory): New function.
286 (memory_xfer_live_readonly_partial): New.
287 (memory_xfer_partial): If reading from a traceframe, fallback to
288 reading unavailable read-only memory from read-only regions of
290 * tracepoint.c (disconnect_tracing): Adjust.
291 (set_current_traceframe): New, factored out from
292 set_traceframe_number.
293 (set_traceframe_number): Reimplement to only change the traceframe
294 number on the GDB side.
295 (do_restore_current_traceframe_cleanup): Adjust.
296 (make_cleanup_restore_traceframe_number): New.
297 (cur_traceframe_number): New global.
298 (tfile_open): Set cur_traceframe_number to no traceframe.
299 (set_tfile_traceframe): New function.
300 (tfile_trace_find): If looking up a traceframe using any method
301 other than by number, make sure the current tfile traceframe
302 matches gdb's current traceframe. Update the current tfile
303 traceframe if the lookup succeeded.
304 (tfile_fetch_registers, tfile_xfer_partial)
305 (tfile_get_trace_state_variable_value): Make sure the remote
306 traceframe matches gdb's current traceframe.
307 * remote.c (remote_traceframe_number): New global.
308 (remote_open_1): Set it to -1.
309 (set_remote_traceframe): New function.
310 (remote_fetch_registers, remote_store_registers)
311 (remote_xfer_memory, remote_xfer_partial)
312 (remote_get_trace_state_variable_value): Make sure the remote
313 traceframe matches gdb's current traceframe.
314 (remote_trace_find): If looking up a traceframe using any method
315 other than by number, make sure the current remote traceframe
316 matches gdb's current traceframe. Update the current remote
317 traceframe if the lookup succeeded.
318 * infrun.c (fetch_inferior_event): Adjust.
319 * tracepoint.h (set_current_traceframe): Declare.
320 (get_traceframe_number, set_traceframe_number): Add describing
323 2011-02-14 Pedro Alves <pedro@codesourcery.com>
325 Mark pieces of values as unavailable if the corresponding memory
328 * valops.c: Include tracepoint.h.
329 (value_fetch_lazy): Use read_value_memory.
330 (read_value_memory): New.
331 * value.h (read_value_memory): Declare.
332 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
333 * exec.c (section_table_available_memory): New function.
334 * exec.h (section_table_available_memory): Declare.
336 2011-02-14 Pedro Alves <pedro@codesourcery.com>
338 * Makefile.in (SFILES): Add memrange.c.
339 (HFILES_NO_SRCDIR): Add memrange.h.
340 (COMMON_OBS): Add memrange.o.
341 * memrange.c: New file.
342 * memrange.h: New file.
343 * tracepoint.c: Include memrange.h.
344 (struct mem_range): Delete.
345 (mem_range_s): Delete.
346 (traceframe_available_memory): New function.
347 * tracepoint.h (traceframe_available_memory): Declare.
349 2011-02-14 Pedro Alves <pedro@codesourcery.com>
351 * target.h (struct traceframe_info): Forward declare.
352 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
353 (struct target_ops) <to_traceframe_info>: New field.
354 (target_traceframe_info): New.
355 * target.c (update_current_target): Inherit and default
357 * remote.c (PACKET_qXfer_traceframe_info): New.
358 (remote_protocol_features): Register qXfer:traceframe-info:read.
359 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
360 (remote_traceframe_info): New.
361 (init_remote_ops): Install it.
362 (_initialize_remote): Install "set/show remote traceframe-info"
364 * tracepoint.h (parse_traceframe_info): Declare.
365 * tracepoint.c (struct mem_range): New.
366 (mem_range_s): New typedef.
367 (struct traceframe_info): New.
368 (traceframe_info): New global.
369 (free_traceframe_info): New function.
370 (clear_traceframe_info): New function.
371 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
373 (build_traceframe_info): New function.
374 (tfile_traceframe_info): New function.
375 (init_tfile_ops): Install tfile_traceframe_info.
376 (traceframe_info_start_memory, free_result): New functions.
377 (memory_attributes, traceframe_info_elements): New globals.
378 (parse_traceframe_info, get_traceframe_info): New functions.
379 * features/traceframe-info.dtd: New file.
380 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
382 2011-02-14 Pedro Alves <pedro@codesourcery.com>
384 Base support for <unavailable> value contents.
386 * value.h (value_bytes_available): Declare.
387 (mark_value_bytes_unavailable): Declare.
388 * value.c (struct range): New struct.
389 (range_s): New typedef.
390 (ranges_overlap): New function.
391 (range_lessthan): New function.
392 (ranges_contain_p): New function.
393 (struct value) <unavailable>: New field.
394 (value_bytes_available): New function.
395 (mark_value_bytes_unavailable): New function.
396 (require_not_optimized_out): Constify parameter.
397 (require_available): New function.
398 (value_contents_all, value_contents): Require all bytes be
400 (value_free): Free `unavailable'.
401 (value_copy): Copy `unavailable'.
402 * valprint.h (val_print_unavailable): Declare.
403 * valprint.c (valprint_check_validity): Rename `offset' parameter
404 to `embedded_offset'. If printing a scalar, check whether the
405 value chunk is available.
406 (val_print_unavailable): New.
407 (val_print_scalar_formatted): Check whether the value is
409 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
410 pretty-printing unavailable values.
412 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
414 Fix const/volatile qualifiers of C++ types, PR c++/12328.
415 * c-typeprint.c (c_type_print_args): Update the function comment. New
416 variable param_type, initialize it. Remove const/volatile qualifiers
417 for language_cplus and !show_artificial. Use param_type.
419 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
421 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
422 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
423 * symtab.h (struct symtab) <next>: Comment extension.
425 2011-02-12 Yao Qi <yao@codesourcery.com>
427 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
429 2011-02-11 Yao Qi <yao@codesourcery.com>
431 * common/Makefile.in: Add copyright header.
433 2011-02-11 Pedro Alves <pedro@codesourcery.com>
435 * infrun.c (proceed): Move switching out and in of tfind mode from
437 (fetch_inferior_event): ... to here.
439 2011-02-11 Yao Qi <yao@codesourcery.com>
441 * Makefile.in: Remove signals.o from COMMON_OBS. Link
443 * configure.ac: Add common to sub dir.
444 * configure: Regenerate.
446 2011-02-11 Yao Qi <yao@codesourcery.com>
450 * common/Makefile.in: New.
451 * common/configure.ac: New.
452 * common/aclocal.m4: New.
453 * common/configure: Generate.
455 2011-02-10 Pedro Alves <pedro@codesourcery.com>
457 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
458 side of the parenthesis.
461 2010-07-13 Jakub Jelinek <jakub@redhat.com>
462 * vec.h (VEC_block_remove): Fix comment.
464 2011-02-08 Michael Snyder <msnyder@vmware.com>
466 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
468 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
470 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
471 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
474 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
477 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
479 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
480 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
482 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
484 * dwarf2read.c (read_subroutine_type): Set special calling
485 convention flag for functions compiled by IBM XL C for OpenCL.
486 * ppc-sysv-tdep.c: Include "dwarf2.h"
487 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
489 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
490 IBM OpenCL vector types calling convention.
491 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
492 (ppc_sysv_abi_broken_return_value): Likewise.
493 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
494 types calling convention.
495 (ppc64_sysv_abi_return_value): Likewise.
496 * spu-tdep.c: Include "dwarf2.h"
497 (spu_return_value): Implement IBM OpenCL vector types calling
500 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
502 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
503 correct ABI for AltiVec vector arguments.
505 2011-02-07 Pedro Alves <pedro@codesourcery.com>
507 * valprint.c (val_print): Extend comment.
508 * ada-valprint.c (ada_valprint): Rewrite comment deferring
509 interface explanation to val_print.
510 (ada_val_print_array): Adjust comment to current interface.
511 (print_field_values): Adjust comment to current interface.
512 * c-valprint.c (c_val_print): Rewrite comment deferring interface
513 explanation to val_print.
514 * f-valprint.c (f_val_print): Ditto.
515 * jv-valprint.c (java_val_print): Ditto.
516 * m2-valprint.c (m2_val_print): Ditto.
517 * p-valprint.c (pascal_val_print): Ditto.
519 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
521 * breakpoint.c (parse_breakpoint_sals): Fix description.
523 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
524 Oguz Kayral <oguzkayral@gmail.com>
526 * python/py-inferior.c (python_on_normal_stop): New function.
527 (python_on_resume): New function.
528 (python_inferior_exit): New function.
529 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
530 inferior_exit observers.
531 * python/py-evtregistry.c: New file.
532 * python/py-threadevent.c : New file.
533 * python/py-event.c: New file.
534 * python/py-evts.c: New file.
535 * python/py-continueevent.c: New file.
536 * python/py-bpevent.c: New file.
537 * python/py-signalevent.c: New file.
538 * python/py-exetiedevent.c: New file.
539 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
540 Move struct breakpoint_object from here...
541 * python/python-internal.h: ... to here.
542 * python/py-event.h: New file.
543 * python/py-events.h: New file.
544 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
545 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
546 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
547 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
548 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
549 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
550 Add build rules for all the above.
552 2011-02-04 Tom Tromey <tromey@redhat.com>
554 * dwarf2read.c (dwarf2_section_empty_p): New function.
555 (dwarf2_read_section): Use dwarf2_section_empty_p.
556 (dwarf2_section_size): New function.
557 (dwarf2_get_section_info): Unconditionally read section.
558 (dwarf2_read_index): Use dwarf2_section_empty_p.
559 (partial_read_comp_unit_head): Use dwarf2_section_size.
560 (dwarf2_symbol_mark_computed): Likewise.
562 2011-02-04 David Daney <ddaney@caviumnetworks.com>
564 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
566 2011-02-04 David Daney <ddaney@caviumnetworks.com>
568 * mips-linux-tdep.c: Include xml-syscall.h.
569 (mips_linux_get_syscall_number): New function.
570 (mips_linux_init_abi): Add calls to
571 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
572 * data-directory/Makefile.in (SYSCALLS_FILES): Add
573 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
574 * syscalls/mips-n32-linux.xml: New file.
575 * syscalls/mips-n64-linux.xml: New file.
576 * syscalls/mips-o32-linux.xml: New file.
578 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
580 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
581 Complain about inverted range entries.
582 (dwarf2_record_block_ranges): Likewise.
584 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
587 * breakpoint.c (update_watchpoint): Fix name of the
588 update_global_location_list function.
589 (print_one_breakpoint): Fix typo.
590 (_initialize_breakpoint): Remove extra space in hbreak help
592 * breakpoint.h (struct bp_location) <length>: Fix field
595 2011-02-04 Pedro Alves <pedro@codesourcery.com>
597 * regcache.c (registers_changed_ptid): Don't explictly always
598 clear `current_regcache'. Only clear current_thread_ptid and
599 current_thread_arch when PTID matches. Only reinit the frame
600 cache if PTID matches the current inferior_ptid. Move alloca(0)
602 (registers_changed): ... here.
604 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
606 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
607 starts with __stack_chk_guard as stack guard symbol.
609 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
611 * disasm.c (compare_lines): Handle the end of sequence markers
612 within the line table to better support disassembling over
613 compilation unit boundaries.
615 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
617 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
618 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
619 implementation even if no symbols are available.
620 (thumb_analyze_prologue): Update call to skip_prologue_function.
621 (arm_analyze_prologue): Likewise.
623 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
625 * arm-tdep.c: Include "observer.h".
626 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
627 (arm_exidx_data_key): New static variable.
628 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
629 (struct arm_exidx_data): Likewise.
630 (arm_exidx_data_free): New function.
631 (arm_compare_exidx_entries): Likewise.
632 (arm_obj_section_from_vma): Likewise.
633 (arm_exidx_new_objfile): Likewise.
634 (arm_find_exidx_entry): Likewise.
635 (arm_exidx_fill_cache): Likewise.
636 (arm_exidx_unwind_sniffer): Likewise.
637 (arm_exidx_unwind): New global variable.
638 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
639 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
640 observer. Register arm_exidx_data_key as objfile data.
642 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
644 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
645 due to accessing uninitialized variable. Fix indentation.
647 2011-02-02 Pedro Alves <pedro@codesourcery.com>
649 * c-valprint.c (c_value_print): When doing virtual base pointer
650 adjustment, create a new value with adjusted contents rather than
651 changing the contents of the value being printed (and getting it
654 2011-02-02 Pedro Alves <pedro@codesourcery.com>
656 * xml-support.c (xml_find_attribute): New.
657 (xinclude_start_include): Use it.
658 * xml-support.h (xml_find_attribute): Declare.
659 * memory-map.c (memory_map_start_memory)
660 (memory_map_start_property): Use xml_find_attribute.
661 * osdata.c (osdata_start_osdata, osdata_start_column): Use
663 * remote.c (start_thread): Use xml_find_attribute.
664 * solib-target.c (library_list_start_segment)
665 (library_list_start_section, library_list_start_library)
666 (library_list_start_list): Use xml_find_attribute.
667 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
668 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
669 (tdesc_start_field): Use xml_find_attribute.
671 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
673 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
674 (BUILD_OCL_VTYPES): Update.
676 2011-02-02 Joel Brobecker <brobecker@adacore.com>
678 * configure.ac: Work around non-GNU sed limitation when computing
679 python version number.
680 * configure: Regenerate.
682 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
684 Fix debug printing of TYPE_INSTANCE.
685 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
686 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
688 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
690 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
691 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
692 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
693 * ada-operator.inc: Rename the file to ...
694 * ada-operator.def: ... here, wrap all the entries by macro OP.
695 * expprint.c (op_name_standard): Remove all the entries. Include
696 "std-operator.def" instead.
697 * expression.h (enum exp_opcode): Include "std-operator.def" and
698 "ada-operator.def". Move all the entries ...
699 * std-operator.def: ... here, wrap all the entries by macro OP.
701 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
703 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
704 * breakpoint.c (remove_jit_event_breakpoints): New function.
705 * jit.c (jit_descriptor_addr): Delete.
706 (registering_code): Delete.
708 (jit_inferior_data): New variable.
709 (struct jit_inferior_data): New type.
710 (get_jit_inferior_data): New function.
711 (jit_inferior_data_cleanup): New function.
712 (jit_read_descriptor): Adjust.
713 (jit_register_code): Adjust.
714 (jit_breakpoint_re_set_internal): New function; move code here ...
715 (jit_inferior_init): ... from here.
716 (jit_breakpoint_re_set): Adjust.
717 (jit_reset_inferior_data_and_breakpoints): New function.
718 (jit_inferior_created_observer): Adjust.
719 (jit_inferior_exit_hook): Adjust.
720 (jit_executable_changed_observer): New function.
721 (jit_event_handler): Adjust.
722 (_initialize_jit): Adjust.
724 2011-01-31 Michael Snyder <msnyder@vmware.com>
726 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
729 2011-01-31 Tom Tromey <tromey@redhat.com>
732 * python/python.c (execute_gdb_command): Call
734 * top.c (suppress_dont_repeat): New global.
735 (dont_repeat): Use it.
736 (prevent_dont_repeat): New function.
737 * command.h (prevent_dont_repeat): Declare.
739 2011-01-31 Tom Tromey <tromey@redhat.com>
741 * infcmd.c (finish_backward): Use breakpoint_set_silent.
742 * python/py-breakpoint.c (bppy_set_silent): Use
743 breakpoint_set_silent.
744 (bppy_set_thread): Use breakpoint_set_thread.
745 (bppy_set_task): Use breakpoint_set_task.
746 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
747 (breakpoint_set_task): Declare.
748 (make_breakpoint_silent): Remove.
749 * breakpoint.c (breakpoint_set_silent): New function.
750 (breakpoint_set_thread): Likewise.
751 (breakpoint_set_task): Likewise.
752 (make_breakpoint_silent): Remove.
754 2011-01-31 Tom Tromey <tromey@redhat.com>
756 * breakpoint.h (user_breakpoint_p): Declare.
757 * breakpoint.c (user_breakpoint_p): New function.
758 (breakpoint_1): Use it.
759 (save_breakpoints): Likewise.
761 2011-01-31 Joel Brobecker <brobecker@adacore.com>
763 * configure.ac: Add handling of Python distribution on Windows.
764 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
765 sysconfig variables are not defined, then do not use them.
766 On Windows, if LIBPL is not defined, then use prefix + '/libs'
767 instead. On Windows, return all paths using forward-slashes
768 rather than backslashes.
770 2011-01-31 Joel Brobecker <brobecker@adacore.com>
772 * configure.ac: Remove fallback behavior for building
773 against Python. Remove tweaking of Python include path.
774 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
775 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
776 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
777 Always restore CPPFLAGS and LIBS after linking test.
778 * configure: Regenerated.
779 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
780 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
781 * python/python-internal.h: Adjust includes of Python .h files.
783 2011-01-31 Joel Brobecker <brobecker@adacore.com>
785 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
788 2011-01-31 Joel Brobecker <brobecker@adacore.com>
790 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
793 2011-01-31 Yao Qi <yao@codesourcery.com>
795 * arm-linux-nat.c: Update calls to regcache_register_status
796 instead of regcache_valid_p.
797 * aix-thread.c: Likewise.
798 * i386gnu-nat.c: Likewise.
800 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
803 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
804 touching TYPE_FIELD_ARTIFICIAL.
806 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
808 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
811 2011-01-28 Pedro Alves <pedro@codesourcery.com>
813 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
814 selected, don't try iterating over the traceframe's blocks.
815 (tfile_has_stack): If there's no traceframe selected, then there's
817 (tfile_has_registers): If there's no traceframe selected, then
818 there's no registers.
820 2011-01-28 Pedro Alves <pedro@codesourcery.com>
822 * target.c (memory_xfer_partial): No need to restore shadows if we
823 haven't read anything.
825 2011-01-28 Pedro Alves <pedro@codesourcery.com>
827 * mips-tdep.c (mips_print_register): Use get_frame_register_value
828 and val_print_scalar_formatted.
830 2011-01-27 Pedro Alves <pedro@codesourcery.com>
832 * tracepoint.c (tfile_read): New.
833 (tfile_open): Use it.
834 (tfile_get_traceframe_address): Use it.
835 (tfile_trace_find): Use it.
836 (walk_blocks_callback_func): New typedef.
837 (match_blocktype): New function.
838 (traceframe_walk_blocks): New function.
839 (traceframe_find_block_type): New function.
840 (tfile_fetch_registers, tfile_xfer_partial)
841 (tfile_get_trace_state_variable_value): Use
842 traceframe_find_block_type and tfile_read.
844 2011-01-26 Kevin Buettner <kevinb@redhat.com>
846 * remote-mips.c: Add internationalization mark ups. Remove
847 trailing \n from already marked up strings.
849 2011-01-26 Tom Tromey <tromey@redhat.com>
851 * python/py-prettyprint.c (print_string_repr): Clear
852 'addressprint' option when calling val_print_string.
853 (print_children): Handle Val_pretty_default. Clear 'addressprint'
854 option when calling val_print_string.
856 2011-01-26 Tom Tromey <tromey@redhat.com>
858 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
860 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
862 (gdb_py_longest, gdb_py_ulongest): New typedefs.
863 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
864 (gdb_py_long_as_ulongest): New defines.
865 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
866 (gdb_py_int_as_long): Declare.
867 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
868 GDB_PY_LL_ARG, gdb_py_object_from_longest.
869 (valpy_long): Add comment.
870 * python/py-utils.c (get_addr_from_python): Use
871 gdb_py_long_as_ulongest. Handle overflow properly.
872 (gdb_py_object_from_longest): New function.
873 (gdb_py_object_from_ulongest): Likewise.
874 (gdb_py_int_as_long): Likewise.
875 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
876 * python/py-symtab.c (salpy_get_pc): Use
877 gdb_py_long_from_ulongest.
878 (salpy_get_line): Use PyInt_FromLong.
879 * python/py-param.c (set_parameter_value): Use
881 * python/py-lazy-string.c (stpy_get_address): Use
882 gdb_py_long_from_ulongest.
883 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
884 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
885 * python/py-breakpoint.c (bppy_set_thread): Use
887 (bppy_set_task): Likewise.
888 (bppy_set_ignore_count): Likewise.
889 (bppy_set_hit_count): Likewise.
890 * python/py-block.c (blpy_get_start): Use
891 gdb_py_object_from_ulongest.
892 (blpy_get_end): Likewise.
893 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
895 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
898 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
899 * gdb/solib.c (solib_read_symbols): Check for addr_low in
900 equality test for objfile, initialize addr_low if needed.
902 2011-01-25 Pedro Alves <pedro@codesourcery.com>
904 * tui/tui-regs.c (tui_register_format): Remove dead code.
906 2011-01-25 Pedro Alves <pedro@codesourcery.com>
908 * printcmd.c (print_formatted): Use val_print_scalar_formatted
909 instead of print_scalar_formatted.
910 (print_scalar_formatted): Don't handle 's' format strings here,
911 and add an assertion that we never see such format here.
912 * valprint.h (val_print_scalar_formatted): Declare.
913 * valprint.c (val_print_scalar_formatted): New.
914 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
915 instead of print_scalar_formatted.
916 * jv-valprint.c (java_val_print): Ditto.
917 * p-valprint.c (pascal_val_print): Ditto.
918 * ada-valprint.c (ada_val_print_1): Ditto.
919 * f-valprint.c (f_val_print): Ditto.
920 * infcmd.c (registers_info): Ditto.
921 * m2-valprint.c (m2_val_print): Ditto.
923 2011-01-25 Pedro Alves <pedro@codesourcery.com>
925 * m2-valprint.c (print_unbounded_array): Pass
926 value_contents_for_printing rather than value_contents, to
927 m2_print_array_contents. Also pass in the value.
929 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
931 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
932 (save_gdb_index_command): Switch to .gdb_index version 4.
934 2011-01-25 Pedro Alves <pedro@codesourcery.com>
936 * mi/mi-main.c (get_register): Use get_frame_register_value rather
937 than frame_register, and always pass a valid value to val_print.
939 2011-01-25 Pedro Alves <pedro@codesourcery.com>
941 Centralize printing "<optimized out>".
943 * valprint.h (val_print_optimized_out): Declare.
944 * cp-valprint.c (cp_print_value_fields): Use
945 val_print_optimized_out.
946 * jv-valprint.c (java_print_value_fields): Ditto.
947 * p-valprint.c (pascal_object_print_value_fields): Ditto.
948 * printcmd.c (print_formatted): Ditto.
949 * valprint.c (valprint_check_validity): Ditto.
950 (value_check_printable): Ditto.
951 (val_print_optimized_out): New.
953 2011-01-25 Pedro Alves <pedro@codesourcery.com>
955 * infcmd.c (default_print_registers_info): Allocate values so to
956 never pass a NULL value to val_print.
958 2011-01-25 Pedro Alves <pedro@codesourcery.com>
960 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
961 boolean. Make sure to always pass a value that matches the
962 contents buffer to callees. Preserve `address' for following
964 * value.c (value_contents_for_printing_const): New.
965 (value_address): Constify value argument.
966 * value.h (value_contents_for_printing_const): Declare.
967 (value_address): Constify value argument.
969 2011-01-25 Pedro Alves <pedro@codesourcery.com>
971 * regcache.c (struct regcache_descr): Rename
972 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
973 and sizeof_cooked_register_valid_p to
974 sizeof_cooked_register_status.
975 (init_regcache_descr): Adjust.
976 (struct regcache): Rename register_valid_p field to
978 (regcache_xmalloc_1, regcache_xfree, regcache_save)
979 (do_cooked_read): Adjust.
980 (regcache_valid_p): Rename to ...
981 (regcache_register_status): ... this. Adjust.
982 (regcache_invalidate): Adjust.
983 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
985 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
986 as unavailable, not valid.
987 (regcache_dump): Adjust.
988 * regcache.h (enum register_status): New.
989 (regcache_register_status): Declare.
990 (regcache_invalidate): Delete declaration.
991 * corelow.c (get_core_registers): Adjust.
992 * tracepoint.c (tfile_fetch_registers): Adjust.
993 * trad-frame.c (REG_VALUE): Rename to ...
994 (TF_REG_VALUE): ... this.
995 (REG_UNKNOWN): Rename to ...
996 (TF_REG_UNKNOWN): ... this.
997 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
998 * mi/mi-main.c (register_changed_p): Adjust.
1000 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1002 * regcache.c (struct regcache_descr): Remove outdated comment.
1003 (init_regcache_descr): Remove sizeof_raw_register_valid_p
1005 (regcache_xmalloc): Rename to ...
1006 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
1007 Allocate the regcache type accordingly.
1008 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
1009 (regcache_xfree): Asser the source is also readonly. Copy sizeof
1010 cooked registers, not raw.
1011 (regcache_dup_no_passthrough): Delete.
1012 (get_thread_arch_regcache): Use regcache_xmalloc_1.
1013 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
1014 mention obsolete write_register_bytes.
1015 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
1017 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1019 Stop remote_read_bytes from handling partial reads itself.
1021 * remote-fileio.c: Include target.h.
1022 (remote_fileio_write_bytes): Delete.
1023 (remote_fileio_func_open, remote_fileio_func_write)
1024 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
1026 (remote_fileio_func_stat): Use target_read_memory and
1027 target_write_memory.
1028 (remote_fileio_func_gettimeofday): Use target_write_memory.
1029 (remote_fileio_func_system): Use target_read_memory.
1030 * remote.c (remote_write_bytes): Make it static.
1031 (remote_read_bytes): Don't handle partial reads here.
1032 * remote.h (remote_read_bytes): Delete declaration.
1034 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1036 Simplify XML parsing a bit.
1038 * xml-support.h (gdb_xml_parse_quick): Declare.
1039 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
1040 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
1042 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
1043 gdb_xml_create_parser_and_cleanup_1.
1044 (gdb_xml_parse_quick): New.
1045 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
1046 * osdata.c (osdata_parse): Ditto.
1047 * remote.c (remote_threads_info): Ditto.
1048 * solib-target.c (solib_target_parse_libraries): Ditto.
1049 * xml-syscall.c (syscall_parse_xml): Ditto.
1050 * xml-tdesc.c (tdesc_parse_xml): Ditto.
1052 2011-01-24 Kevin Buettner <kevinb@redhat.com>
1054 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
1055 with remote-mips.o added to gdb_target_obs.
1056 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
1058 2011-01-24 Pedro Alves <pedro@codesourcery.com>
1060 * ada-valprint.c (val_print_packed_array_elements): Pass the
1061 correct struct value to val_print.
1062 (ada_val_print_1): Ditto.
1064 2011-01-24 Pedro Alves <pedro@codesourcery.com>
1066 Don't lose embedded_offset in printing routines throughout.
1068 * valprint.h (val_print_array_elements): Change prototype.
1069 * valprint.c (val_print_array_elements): Add `embedded_offset'
1070 parameter, and adjust to pass it down to val_print, while passing
1071 `valaddr' or `address' unmodified. Take embedded_offset into
1072 account when checking repetitions.
1073 * c-valprint.c (c_val_print): Pass embedded_offset to
1074 val_print_array_elements instead of adjusting `valaddr' and
1076 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
1077 embedded_offset to val_print_array_elements instead of adjusting
1079 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
1080 * p-valprint.c (pascal_val_print): Pass embedded_offset to
1081 val_print_array_elements and pascal_object_print_value_fields
1082 instead of adjusting `valaddr'.
1083 (pascal_object_print_value_fields): Add `offset' parameter, and
1085 (pascal_object_print_value): Add `offset' parameter, and adjust to
1087 (pascal_object_print_static_field): Use
1088 value_contents_for_printing/value_embedded_offset, rather than
1090 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
1091 parameter, and adjust to use it. Use
1092 value_contents_for_printing/value_embedded_offset, rather than
1094 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
1095 (ada_val_print_array): Add `offset' parameter, and adjust to use
1097 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
1098 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
1099 Instead work with offsets. Use
1100 value_contents_for_printing/value_embedded_offset, rather than
1101 value_contents. Change `defer_val_int' local type to CORE_ADDR,
1102 and use value_from_pointer to extract a target pointer, rather
1103 than value_from_longest.
1104 (print_variant_part): 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 (ada_value_print): Use
1108 value_contents_for_printing/value_embedded_offset, rather than
1110 (print_record): Add `offset' parameter, and adjust to pass it
1112 (print_field_values): Add `offset' parameter. Replace
1113 `outer_valaddr' parameter by a new `outer_offset' parameter.
1114 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1115 Use value_contents_for_printing/value_embedded_offset, rather than
1117 * d-valprint.c (dynamic_array_type): Use
1118 value_contents_for_printing/value_embedded_offset, rather than
1120 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
1121 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1122 (java_print_value_fields): Take `offset' into account. Don't
1123 re-adjust `valaddr'. Instead pass down adjusted offsets.
1124 (java_val_print): Take `embedded_offset' into account. Pass it to
1125 java_print_value_fields.
1126 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
1127 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
1128 down adjusted offsets.
1129 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
1130 (f_val_print): Take `embedded_offset' into account.
1132 2011-01-21 Joel Brobecker <brobecker@adacore.com>
1134 * inflow.c: Include "gdbcmd.h".
1135 (interactive_mode): New static global, moved here from top.c.
1136 (show_interactive_mode): New function, moved here from top.c.
1137 use gdb_has_a_terminal instead of input_from_terminal_p to
1138 determine the current mode.
1139 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
1141 (_initialize_inflow): Add the "set/show interactive-mode"
1142 commands. Moved here from top.c, after having adjusted slightly
1144 * top.c (interactive_mode, show_interactive_mode): Delete, moved
1146 (input_from_terminal_p): Remove handling of "interactive-mode"
1147 setting, moved to infow.c.
1148 (init_main): Remove creation of the "set/show interactive-mode"
1149 commands, moved to inflow.c.
1151 2011-01-19 Joel Brobecker <brobecker@adacore.com>
1153 * NEWS: Add entry for native ia64-hpux support.
1155 2011-01-19 Tom Tromey <tromey@redhat.com>
1158 * thread.c (free_thread): Free 'name'.
1159 (print_thread_info): Emit thread name. Change CLI output.
1160 (thread_name_command): New function.
1161 (do_captured_thread_select): Emit newline.
1162 (_initialize_thread): Register 'thread name' command.
1163 * target.h (struct target_ops) <to_thread_name>: New field.
1164 (target_thread_name): New macro.
1165 * target.c (update_current_target): Handle to_thread_name.
1166 * python/py-infthread.c (thpy_get_name): New function.
1167 (thpy_set_name): Likewise.
1168 (thread_object_getset): Add "name".
1169 * linux-nat.c (linux_nat_thread_name): New function.
1170 (linux_nat_add_target): Set to_thread_name.
1171 * gdbthread.h (struct thread_info) <name>: New field.
1173 2011-01-18 Joel Brobecker <brobecker@adacore.com>
1175 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
1176 (ada_val_print_1): Likewise.
1178 2011-01-18 Joel Brobecker <brobecker@adacore.com>
1180 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
1181 upper limit address is not greater than the function end address
1182 when the upper limit could not be computed using the debugging
1185 2011-01-17 Tom Tromey <tromey@redhat.com>
1187 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
1189 * utils.c: Include gdb_regex.h.
1190 (do_regfree_cleanup): New function.
1191 (make_regfree_cleanup): Likewise.
1192 (get_regcomp_error): Likewise.
1193 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
1195 2011-01-17 Tom Tromey <tromey@redhat.com>
1197 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
1200 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1202 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
1203 for internal variables.
1204 (last_was_structop): New static variable.
1205 (COMPLETE): New token.
1206 (field_exp): New rule to group all '.' suffix handling.
1207 Add mark_struct_expression calls when approriate to be able
1208 to correctly find fields for completion.
1209 (yylex): Adapt to handle field completion and set INTVAR when
1212 2011-01-14 Yao Qi <yao@codesourcery.com>
1214 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
1215 save_reggroup, restore_reggroup and all_reggroup.
1217 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1219 * ada-valprint. (ada_printchar): Use the correct type length
1220 in call to ada_emit_char.
1221 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
1223 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1225 * solib-som.h (hpux_major_release): Declare variable here.
1226 * solib-som.c: Remove <sys/utsname.h> header.
1227 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
1228 (hpux_major_release): Make global, change default value to
1229 DEFAULT_HPUX_MAJOR_RELEASE.
1230 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
1231 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
1232 Add "solib-som.h" header.
1233 (set_hpux_major_release): New function.
1234 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
1236 2011-01-14 Mike Frysinger <vapier@gentoo.org>
1238 * configure.tgt (*-*-uclinux*): Match more Linux os targets
1240 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1242 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
1243 new-line at end of warning message.
1244 (ia64_hpux_store_register): Remove trailing new-line at end of
1246 * ia64-hpux-tdep.c: Rephrase comment.
1247 * solib-ia64-hpux.c (struct dld_info): Change type of field
1248 dld_flags from "long long" to ULONGEST.
1250 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1252 * target.h (deprecated_child_ops): Delete declaration.
1253 * target.c (deprecated_child_ops): Delete definition.
1255 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1257 * Makefile.in (hpux-thread.o): Delete rule.
1258 * configure.ac: Don't check for HPUX DCE threads support.
1259 * configure, config.in: Regenerate.
1260 * hppa-hpux-nat.c (child_suppress_run): Delete.
1261 (hppa_hpux_child_can_run): Delete.
1262 (_initialize_hppa_hpux_nat): Don't override to_can_run.
1263 * hpux-thread.c: Delete.
1265 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1267 * hpux-thread.c (hpux_pid_to_str): Delete.
1269 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1271 * ada-valprint.c (ada_emit_char): Remove strange code.
1272 Check that c is <= UCHAR_MAX before passing it to isascii.
1273 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
1275 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1277 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
1278 to the case where instream is stdin.
1280 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1282 * ia64-tdep.h (struct regcache): Forward declare.
1283 (struct ia64_infcall_ops): New struct type.
1284 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
1286 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
1287 Renames ia64_find_global_pointer.
1288 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
1289 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
1290 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
1292 (ia64_infcall_ops): New static global constant.
1293 (ia64_gdbarch_init): Set tdep->infcall_ops.
1294 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
1295 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
1296 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
1297 (ia64_hpux_dummy_code): New static global constant.
1298 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
1299 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
1300 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
1302 (ia64_hpux_infcall_ops): New static global constant.
1303 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
1304 for inferior function calls to work properly on ia64-hpux.
1306 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1308 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
1309 * ia64-tdep.h (struct frame_info): forward declaration.
1310 (struct gdbarch_tdep): Add field size_of_register_frame.
1311 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
1312 to determine the size of the register frame.
1313 (ia64_size_of_register_frame): New function.
1314 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
1315 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
1316 (IA64_HPUX_UREG_REASON): New macro.
1317 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
1319 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
1320 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
1321 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
1324 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1326 Add support for ia64-hpux.
1327 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
1328 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
1330 * configure.host: Add handling for ia64-hpux hosts. Add associated
1332 * configure.tgt: Add handling for ia64-hpux targets.
1333 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
1334 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
1335 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
1337 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1339 [ttrace] Compute thread list immediately after attach.
1340 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
1342 (inf_ttrace_attach): Use it.
1344 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1346 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
1347 if we could not determine the frame's function address. Instead,
1348 use the frame's PC, and then continue.
1350 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1352 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
1353 not already defined.
1355 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1357 * ia64-tdep.c (ia64_struct_type_p): New function.
1358 (ia64_extract_return_value): Handle integral values that are
1359 less than 8 bytes long.
1360 (ia64_push_dummy_call): Likewise.
1362 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1364 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
1365 floatformat_ia64_ext.
1366 (floatformat_ia64_ext_big): New static const.
1367 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
1369 2011-01-12 Tom Tromey <tromey@redhat.com>
1371 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
1373 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
1374 (mi_cmd_thread_list_ids): Likewise.
1375 (mi_cmd_data_list_changed_registers): Likewise.
1376 (mi_cmd_data_list_register_values): Likewise.
1377 (mi_cmd_data_write_register_values): Likewise.
1378 (mi_cmd_data_evaluate_expression): Likewise.
1379 (mi_cmd_data_read_memory): Likewise.
1380 (mi_cmd_data_read_memory_bytes): Likewise.
1381 (mi_cmd_data_write_memory): Likewise.
1382 (mi_cmd_enable_timings): Likewise.
1383 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
1384 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
1385 (mi_cmd_var_delete): Likewise.
1386 (mi_cmd_var_set_format): Likewise.
1387 (mi_cmd_var_show_format): Likewise.
1388 (mi_cmd_var_info_num_children): Likewise.
1389 (mi_cmd_var_list_children): Likewise.
1390 (mi_cmd_var_info_type): Likewise.
1391 (mi_cmd_var_info_expression): Likewise.
1392 (mi_cmd_var_show_attributes): Likewise.
1393 (mi_cmd_var_assign): Likewise.
1394 (mi_cmd_var_update): Likewise.
1395 (mi_cmd_enable_pretty_printing): Likewise.
1396 (mi_cmd_var_set_update_range): Likewise.
1397 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
1399 (mi_cmd_target_file_put): Likewise.
1400 (mi_cmd_target_file_delete): Likewise.
1401 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
1403 (mi_cmd_stack_info_depth): Likewise.
1404 (mi_cmd_stack_list_locals): Likewise.
1405 (mi_cmd_stack_list_args): Likewise.
1406 (mi_cmd_stack_select_frame): Likewise.
1407 (mi_cmd_stack_select_frame): Likewise.
1408 (mi_cmd_stack_info_frame): Likewise.
1409 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
1411 (mi_cmd_file_list_exec_source_files): Likewise.
1412 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
1413 (mi_cmd_env_cd): Likewise.
1414 (mi_cmd_env_path): Likewise.
1415 (mi_cmd_env_dir): Likewise.
1416 (mi_cmd_inferior_tty_show): Likewise.
1417 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
1418 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
1419 (mi_cmd_break_watch): Likewise.
1421 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
1423 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
1424 (ppc_linux_insert_hw_breakpoint): Likewise.
1425 (ppc_linux_remove_hw_breakpoint): Likewise.
1426 (ppc_linux_insert_watchpoint): Likewise.
1428 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1429 Jan Kratochvil <jan.kratochvil@redhat.com>
1431 PR fortran/11104 and DWARF unbound arrays detection.
1432 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
1433 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
1434 unspecified upper bound.
1435 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
1436 variables array_size_array, tmp_type and offset_item. New variable
1437 array. Remove call to f77_get_upperbound. New variables array_type
1438 and index. Call value_subscripted_rvalue for each dimenasion. Remove
1439 the final call to deprecated_set_value_type.
1441 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1443 Make value allocations more lazy.
1444 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
1445 instead of allocate_value and set_value_lazy when possible.
1446 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
1447 instead of allocate_value and set_value_lazy.
1448 * findvar.c (value_of_register_lazy): Likewise.
1449 (read_var_value): Remove V preallocation, call just check_typedef in
1450 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
1451 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
1452 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
1453 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
1454 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
1455 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
1456 the end, remove set_value_lazy there.
1457 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
1458 instead of allocate_value and set_value_lazy when possible.
1459 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
1460 * value.c (allocate_computed_value): Use allocate_value_lazy instead
1461 of allocate_value and set_value_lazy.
1462 (value_from_contents_and_address): Use allocate_value_lazy instead of
1463 allocate_value and set_value_lazy when possible.
1465 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1467 * disasm.c (dump_insns): Support dumping opcodes for MI.
1468 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
1469 dumping of instruction opcodes.
1471 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
1473 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
1476 2011-01-11 Tom Tromey <tromey@redhat.com>
1478 * thread.c (do_captured_thread_select): Emit newline before
1481 2011-01-11 Michael Snyder <msnyder@vmware.com>
1483 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
1484 * score-tdep.c: Ditto.
1485 * score-tdep.h: Ditto.
1486 * ser-base.c: Ditto.
1487 * ser-go32.c: Ditto.
1490 * ser-mingw.c: Ditto.
1491 * ser-pipe.c: Ditto.
1493 * ser-unix.c: Ditto.
1494 * sh64-tdep.c: Ditto.
1495 * shnbsd-nat.c: Ditto.
1499 * solib-darwin.c: Ditto.
1500 * solib-frv.c: Ditto.
1502 * solib-irix.c: Ditto.
1503 * solib-osf.c: Ditto.
1504 * solib-pa64.c: Ditto.
1505 * solib-som.c: Ditto.
1506 * solib-spu.c: Ditto.
1507 * solib-sunos.c: Ditto.
1508 * solib-svr4.c: Ditto.
1510 * sol-thread.c: Ditto.
1514 * sparc64-linux-tdep.c: Ditto.
1515 * sparc64-tdep.c: Ditto.
1516 * sparc-linux-nat.c: Ditto.
1517 * sparc-linux-tdep.c: Ditto.
1518 * sparc-sol2-nat.c: Ditto.
1519 * sparc-sol2-tdep.c: Ditto.
1520 * sparc-tdep.c: Ditto.
1521 * sparc-tdep.h: Ditto.
1522 * spu-tdep.c: Ditto.
1523 * stabsread.c: Ditto.
1524 * stabsread.h: Ditto.
1532 * target-descriptions.c: Ditto.
1533 * target-descriptions.h: Ditto.
1535 * target-memory.c: Ditto.
1536 * terminal.h: Ditto.
1539 * tracepoint.c: Ditto.
1540 * tracepoint.h: Ditto.
1541 * trad-frame.h: Ditto.
1542 * typeprint.c: Ditto.
1544 2011-01-11 Michael Snyder <msnyder@vmware.com>
1546 * ui-file.c: Comment cleanup, mostly periods and spaces.
1551 * v850-tdep.c: Ditto.
1552 * valarith.c: Ditto.
1554 * valprint.c: Ditto.
1555 * valprint.h: Ditto.
1560 * vax-tdep.c: Ditto.
1564 * windows-nat.c: Ditto.
1565 * windows-tdep.c: Ditto.
1566 * xcoffread.c: Ditto.
1567 * xcoffsolib.c: Ditto.
1568 * xml-support.c: Ditto.
1569 * xstormy16-tdep.c: Ditto.
1570 * xtensa-tdep.c: Ditto.
1571 * xtensa-tdep.h: Ditto.
1573 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1575 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
1576 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
1578 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1579 Thiago Jung Bauermann <bauerman@br.ibm.com>
1581 Implement support for PowerPC BookE ranged watchpoints.
1583 (struct breakpoint_ops) <resources_needed>: New method.
1584 Initialize to NULL in all existing breakpoint_ops instances.
1585 (struct breakpoint) <exact>: New field.
1586 (target_exact_watchpoints): Declare external global.
1587 * breakpoint.c (target_exact_watchpoints): New global flag.
1588 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
1589 b->enable_state to bp_enabled before calling
1590 hw_watchpoint_used_count.
1591 (hw_watchpoint_used_count): Iterate over all bp_locations in a
1592 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
1594 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
1595 if the watchpoint is exact.
1596 (resources_needed_watchpoint): New function.
1597 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
1598 (watch_command_1): Set b->exact if the user asked for an exact
1599 watchpoint and one can be set.
1600 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
1601 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
1602 the user asks for an exact watchpoint and one can be set. Return
1603 number of needed debug registers to watch the expression.
1604 * gdbtypes.c (is_scalar_type): New function, based on
1605 valprint.c:scalar_type_p.
1606 (is_scalar_type_recursive): New function.
1607 * gdbtypes.h (is_scalar_type_recursive): Declare.
1608 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
1609 handle regions when ranged watchpoints are available.
1610 (create_watchpoint_request): New function.
1611 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1612 create_watchpoint_request.
1613 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
1614 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
1615 `set powerpc' and `show powerpc' commands.
1616 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1617 Mention documentation comment in the target macro.
1618 (target_region_ok_for_hw_watchpoint): Document return value.
1620 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1622 * breakpoint.c (update_watchpoint): Decide on using a software or
1623 hardware watchpoint after the bp_locations are created.
1625 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1627 Convert hardware watchpoints to use breakpoint_ops.
1628 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
1629 <insert_location>: ... this. Return int instead of void.
1630 Accept pointer to struct bp_location instead of pointer to
1631 struct breakpoint. Adapt all implementations.
1632 (breakpoint_ops) <remove>: Rename to...
1633 <remove_location>: ... this. Accept pointer to struct bp_location
1634 instead of pointer to struct breakpoint. Adapt all implementations.
1635 * breakpoint.c (insert_catchpoint): Delete function.
1636 (insert_bp_location): Call the watchpoint or catchpoint's
1637 breakpoint_ops.insert method.
1638 (remove_breakpoint_1): Call the watchpoint or catchpoint's
1639 breakpoint_ops.remove method.
1640 (insert_watchpoint, remove_watchpoint): New functions.
1641 (watchpoint_breakpoint_ops): New structure.
1642 (watch_command_1): Initialize the OPS field.
1643 * inf-child.c (inf_child_insert_fork_catchpoint)
1644 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
1645 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
1646 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
1648 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
1649 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
1650 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
1651 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
1652 * target.c (update_current_target): Change default implementation of
1653 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
1654 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
1655 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
1656 to_set_syscall_catchpoint to return_one.
1657 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
1658 (debug_to_insert_exec_catchpoint): Report return value.
1659 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
1660 (to_insert_exec_catchpoint): Change declaration to return int instead
1663 2011-01-11 Michael Snyder <msnyder@vmware.com>
1665 * arm-tdep.c: Internationalization.
1668 * fork-child.c: Ditto.
1669 * nto-procfs.c: Ditto.
1670 * ppc-sysv-tdep.c: Ditto.
1672 * remote-mips.c: Ditto.
1674 * rs6000-nat.c: Ditto.
1675 * rs6000-tdep.c: Ditto.
1679 * xml-support.c: Ditto.
1680 * mi/mi-cmd-break.c: Ditto.
1681 * mi/mi-cmd-var.c: Ditto.
1682 * mi/mi-interp.c: Ditto.
1683 * mi/mi-main.c: Ditto.
1685 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
1687 * remote-sim.c (gdbsim_store_register): Update API to
1688 sim_store_register to check more error conditions.
1690 2011-01-10 Michael Snyder <msnyder@vmware.com>
1692 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
1693 * nto-tdep.c: Ditto.
1694 * nto-tdep.h: Ditto.
1695 * objc-exp.y: Ditto.
1696 * objc-lang.c: Ditto.
1697 * objfiles.c: Ditto.
1698 * objfiles.h: Ditto.
1699 * observer.c: Ditto.
1700 * opencl-lang.c: Ditto.
1703 * parser-defs.h: Ditto.
1706 * posix-hdep.c: Ditto.
1707 * ppcbug-rom.c: Ditto.
1708 * ppc-linux-nat.c: Ditto.
1709 * ppc-linux-tdep.c: Ditto.
1710 * ppc-linux-tdep.h: Ditto.
1711 * ppcnbsd-tdep.c: Ditto.
1712 * ppcobsd-tdep.c: Ditto.
1713 * ppcobsd-tdep.h: Ditto.
1714 * ppc-sysv-tdep.c: Ditto.
1715 * ppc-tdep.h: Ditto.
1716 * printcmd.c: Ditto.
1717 * proc-abi.c: Ditto.
1718 * proc-flags.c: Ditto.
1720 * proc-utils.h: Ditto.
1721 * progspace.h: Ditto.
1722 * prologue-value.c: Ditto.
1723 * prologue-value.h: Ditto.
1724 * psympriv.h: Ditto.
1726 * p-typeprint.c: Ditto.
1727 * p-valprint.c: Ditto.
1728 * ravenscar-sparc-thread.c: Ditto.
1729 * ravenscar-thread.c: Ditto.
1730 * ravenscar-thread.h: Ditto.
1732 * regcache.c: Ditto.
1733 * regcache.h: Ditto.
1735 * remote-fileio.c: Ditto.
1736 * remote-fileio.h: Ditto.
1738 * remote-m32r-sdi.c: Ditto.
1739 * remote-mips.c: Ditto.
1740 * remote-sim.c: Ditto.
1741 * rs6000-aix-tdep.c: Ditto.
1742 * rs6000-nat.c: Ditto.
1743 * rs6000-tdep.c: Ditto.
1745 2011-01-10 Michael Snyder <msnyder@vmware.com>
1747 * charset.c (validate): Internationalization.
1748 * coffread.c (read_one_sym): Ditto.
1749 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
1750 * h8300-tdep.c (H8300_extract_return_value): Ditto.
1751 * inflow.c (new_tty): Ditto.
1752 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
1753 * m32c-tdep.c (m32c_return_value): Ditto.
1754 * mep-tdep.c (mep_store_return_value): Ditto.
1755 * score-tdep.c (score7_fetch_insn): Ditto.
1756 * ser-mingw.c (pipe_windows_open): Ditto.
1757 * sh64-tdep.c (sh64_extract_return_value): Ditto.
1758 * spu-tdep.c (spu_register_type): Ditto.
1759 * tracepoint.c (trace_find_command): Ditto.
1760 * valarith.c (value_pos): Ditto.
1762 2011-01-10 Joel Brobecker <brobecker@adacore.com>
1764 * ada-valprint.c (printstr): Minor comment reformatting.
1766 2011-01-08 Michael Snyder <msnyder@vmware.com>
1768 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
1771 2011-01-08 Michael Snyder <msnyder@vmware.com>
1773 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
1774 * hppa-hpux-tdep.c: Ditto.
1775 * hppa-linux-nat.c: Ditto.
1776 * hppa-linux-tdep.c: Ditto.
1777 * hppanbsd-tdep.c: Ditto.
1778 * hppa-tdep.c: Ditto.
1779 * hppa-tdep.h: Ditto.
1780 * hpux-thread.c: Ditto.
1781 * i386-cygwin-tdep.c: Ditto.
1782 * i386-darwin-nat.c: Ditto.
1783 * i386gnu-nat.c: Ditto.
1784 * i386-linux-nat.c: Ditto.
1785 * i386-linux-tdep.c: Ditto.
1786 * i386-nat.c: Ditto.
1787 * i386-nat.h: Ditto.
1788 * i386nbsd-tdep.c: Ditto.
1789 * i386-sol2-nat.c: Ditto.
1790 * i386-stub.c: Ditto.
1791 * i386-tdep.c: Ditto.
1792 * i386-tdep.h: Ditto.
1793 * i387-tdep.c: Ditto.
1794 * ia64-linux-nat.c: Ditto.
1795 * ia64-linux-tdep.c: Ditto.
1796 * ia64-tdep.c: Ditto.
1800 * inferior.c: Ditto.
1801 * inferior.h: Ditto.
1807 * iq2000-tdep.c: Ditto.
1808 * irix5-nat.c: Ditto.
1814 * jv-typeprint.c: Ditto.
1815 * jv-valprint.c: Ditto.
1816 * language.c: Ditto.
1817 * language.h: Ditto.
1818 * linespec.c: Ditto.
1819 * linux-fork.c: Ditto.
1820 * linux-nat.c: Ditto.
1821 * linux-thread-db.c: Ditto.
1822 * lm32-tdep.c: Ditto.
1824 2011-01-08 Michael Snyder <msnyder@vmware.com>
1826 * m2-exp.y: Comment cleanup, mostly periods and spaces.
1828 * m2-typeprint.c: Ditto.
1829 * m2-valprint.c: Ditto.
1830 * m32c-tdep.c: Ditto.
1831 * m32r-linux-nat.c: Ditto.
1832 * m32r-rom.c: Ditto.
1833 * m32r-tdep.c: Ditto.
1834 * m32r-tdep.h: Ditto.
1835 * m68hc11-tdep.c: Ditto.
1836 * m58klinux-nat.c: Ditto.
1837 * m68k-tdep.c: Ditto.
1838 * m88k-tdep.c: Ditto.
1839 * m88k-tdep.h: Ditto.
1840 * machoread.c: Ditto.
1841 * macrocmd.c: Ditto.
1842 * macroexp.c: Ditto.
1843 * macrotab.c: Ditto.
1846 * mdebugread.c: Ditto.
1847 * mdebugread.h: Ditto.
1850 * memory-map.h: Ditto.
1851 * mep-tdep.c: Ditto.
1852 * microblaze-rom.c: Ditto.
1853 * microblaze-tdep.c: Ditto.
1855 * mips-irix-tdep.c: Ditto.
1856 * mips-linux-nat.c: Ditto.
1857 * mips-linux-tdep.c: Ditto.
1858 * mips-linux-tdep.h: Ditto.
1859 * mipsnbsd-nat.c: Ditto.
1860 * mipsnbsd-tdep.c: Ditto.
1861 * mipsread.c: Ditto.
1862 * mips-tdep.c: Ditto.
1863 * mips-tdep.h: Ditto.
1864 * mn10300-linux-tdep.c: Ditto.
1865 * mn10300-tdep.c: Ditto.
1866 * mn10300-tdep.h: Ditto.
1869 * moxie-tdep.c: Ditto.
1870 * moxie-tdep.h: Ditto.
1873 2011-01-08 Mike Frysinger <vapier@gentoo.org>
1875 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
1877 2011-01-08 Robert Millan <rmh@gnu.org>
1879 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
1881 2011-01-07 Michael Snyder <msnyder@vmware.com>
1883 * charset.c (_initialize_charset): Fix typo in string.
1885 2011-01-07 Michael Snyder <msnyder@vmware.com>
1887 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
1889 * tui/tui-layout.c (tui_set_layout_for_display_command):
1890 Split line so that operator goes to beginning of line.
1891 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
1892 assignment out of if statement.
1894 2011-01-07 Michael Snyder <msnyder@vmware.com>
1896 * ada-lang.c: Comment cleanup, mostly periods and spaces.
1897 * ada-lang.h: Ditto.
1898 * ada-tasks.c: Ditto.
1899 * ada-valprint.c: Ditto.
1900 * aix-threads.c: Ditto.
1901 * alpha-linux-nat.c: Ditto.
1902 * alpha-linux-tdep.c: Ditto.
1903 * alpha-mdebug-tdep.c: Ditto.
1904 * alpha-nat.c: Ditto.
1905 * alpha-osf1-tdep.c: Ditto.
1906 * alpha-tdep.c: Ditto.
1907 * alphabsd-nat.c: Ditto.
1908 * alphabsd-tdep.c: Ditto.
1909 * amd64-darwin-tdep.c: Ditto.
1910 * amd64-linux-nat.c: Ditto.
1911 * amd64-linux-tdep.c: Ditto.
1912 * amd64-sol2-tdep.c: Ditto.
1913 * amd64-tdep.c: Ditto.
1914 * amd64-fbsd-tdep.c: Ditto.
1915 * amd64-nbsd-tdep.c: Ditto.
1916 * amd64-obsd-tdep.c: Ditto.
1917 * amd64-linux-nat.c: Ditto.
1918 * amd64-linux-tdep.c: Ditto.
1919 * arm-tdep.c: Ditto.
1920 * arm-tdep.h: Ditto.
1921 * armnbsd-nat.c: Ditto.
1922 * avr-tdep.c: Ditto.
1923 * bfin-tdep.c: Ditto.
1925 * c-typeprintc: Ditto.
1926 * c-valprint.c: Ditto.
1927 * coff-pe-read.h: Ditto.
1928 * coffreead.c: Ditto.
1929 * cris-tdep.c: Ditto.
1931 * darwin-nat-info.c: Ditto.
1932 * darwin-nat.c: Ditto.
1933 * dbug-rom.c: Ditto.
1937 * dec-thread.c: Ditto.
1939 * demangle.c: Ditto.
1940 * dicos-tdep.c: Ditto.
1941 * dictionary.c: Ditto.
1942 * dictionary.h: Ditto.
1943 * dink32-rom.c: Ditto.
1945 * doublest.c: Ditto.
1947 * dummy-frame.c: Ditto.
1948 * dwarf2-frame.c: Ditto.
1949 * dwarf2expr.c: Ditto.
1950 * dwarf2loc.c: Ditto.
1951 * dwarf2read.c: Ditto.
1955 * event-top.h: Ditto.
1956 * exceptions.c: Ditto.
1957 * exceptions.h: Ditto.
1959 * expprint.c: Ditto.
1960 * expression.h: Ditto.
1964 * f-typeprint.c: Ditto.
1965 * f-valprint.c: Ditto.
1966 * fbsd-nat.c: Ditto.
1968 * fork-child.c: Ditto.
1971 * frv-linux-tdep.c: Ditto.
1972 * frv-tdep.c: Ditto.
1974 * gdb-stabs.h: Ditto.
1975 * gdb_assert.h: Ditto.
1976 * gdb_string.h: Ditto.
1977 * gdb_thread_db.h: Ditto.
1978 * gdb_wait.h: Ditto.
1979 * gdbarch.sh: Ditto.
1981 * gdbthread.h: Ditto.
1982 * gdbtypes.c: Ditto.
1983 * gdbtypes.h: Ditto.
1986 * gnu-v2-abi.c: Ditto.
1987 * gnu-v3-abi.c: Ditto.
1988 * go32-nat.c: Ditto.
1989 * gdbarch.c: Regenerate.
1990 * gdbarch.h: Regenerate.
1992 2011-01-07 Michael Snyder <msnyder@vmware.com>
1994 * ax-gdb.c: Adjust some long output strings.
1995 * breakpoint.c: Ditto.
2000 * linux-nat.c: Ditto.
2001 * solib-pa64.c: Ditto.
2002 * solib-som.c: Ditto.
2004 2011-01-06 Tom Tromey <tromey@redhat.com>
2008 * python/python.c (GdbMethods): Add "newest_frame" method.
2009 * python/python-internal.h (gdbpy_newest_frame): Declare.
2010 * python/py-frame.c (gdbpy_newest_frame): New function.
2012 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2014 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
2015 * jit.c (jit_debug): New variable.
2016 (show_jit_debug): New function.
2017 (struct target_buffer): Use ULONGEST.
2018 (bfd_open_from_target_memory): Likewise.
2019 (jit_register_code, jit_inferior_init): Add debug output.
2020 (_initialize_jit): Register "debug jit" command.
2022 2011-01-06 Tom Tromey <tromey@redhat.com>
2024 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
2025 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
2028 2011-01-06 Tom Tromey <tromey@redhat.com>
2030 * python/py-frame.c (frapy_block): Use get_frame_block.
2032 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2034 Do not stop on SIGPRIO signals by default
2035 * infrun.c (_initialize_infrun): Unset signal_stop and
2036 signal_print for TARGET_SIGNAL_PRIO.
2038 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2040 * ada-tasks.c: Fix style violation in comment.
2042 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2044 * linespec.c (decode_compound, find_method): Remove trailing \n
2045 at end of error string.
2046 * solib-irix.c (irix_current_sos): Likewise.
2047 * varobj.c (uninstall_variable): Likewise.
2049 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2051 * copyright.py: New script.
2052 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
2053 Launch emacs without exec'ing. Call copyright.py afterwards.
2055 2011-01-05 Michael Snyder <msnyder@vmware.com>
2057 * addrmap.c: Shorten lines of >= 80 columns.
2058 * arch-utils.c: Ditto.
2059 * arch-utils.h: Ditto.
2061 * ax-general.c: Ditto.
2063 * blockframe.c: Ditto.
2064 * breakpoint.c: Ditto.
2065 * buildsym.c: Ditto.
2067 * c-typeprint.c: Ditto.
2069 * coffread.c: Ditto.
2073 * cp-namespace.c: Ditto.
2074 * cp-support.c: Ditto.
2075 * dbug-rom.c: Ditto.
2080 * dictionary.c: Ditto.
2082 * doublest.c: Ditto.
2083 * dwarf2-frame.c: Ditto.
2084 * dwarf2expr.c: Ditto.
2085 * dwarf2loc.c: Ditto.
2086 * dwarf2read.c: Ditto.
2089 * event-loop.c: Ditto.
2090 * event-loop.h: Ditto.
2091 * exceptions.h: Ditto.
2093 * expprint.c: Ditto.
2094 * expression.h: Ditto.
2096 * f-valprint.c: Ditto.
2098 * frame-base.c: Ditto.
2099 * frame-unwind.c: Ditto.
2100 * frame-unwind.h: Ditto.
2104 * gdb-stabs.h: Ditto.
2105 * gdb_assert.h: Ditto.
2106 * gdb_dirent.h: Ditto.
2107 * gdb_obstack.h: Ditto.
2109 * gdbtypes.c: Ditto.
2110 * gdbtypes.h: Ditto.
2111 * inf-ttrace.c: Ditto.
2116 * inline-frame.h: Ditto.
2117 * language.c: Ditto.
2118 * language.h: Ditto.
2119 * libunwind-frame.c: Ditto.
2120 * libunwind-frame.h: Ditto.
2121 * linespec.c: Ditto.
2122 * linux-nat.c: Ditto.
2123 * linux-nat.h: Ditto.
2124 * linux-thread-db.c: Ditto.
2125 * machoread.c: Ditto.
2126 * macroexp.c: Ditto.
2127 * macrotab.c: Ditto.
2130 * mdebugread.c: Ditto.
2135 * objfiles.c: Ditto.
2136 * objfiles.h: Ditto.
2138 * p-typeprint.c: Ditto.
2139 * p-valprint.c: Ditto.
2141 * printcmd.c: Ditto.
2142 * proc-events.c: Ditto.
2144 * progspace.c: Ditto.
2145 * progspace.h: Ditto.
2146 * psympriv.h: Ditto.
2149 * regcache.c: Ditto.
2150 * regcache.h: Ditto.
2151 * remote-fileio.c: Ditto.
2153 * ser-mingw.c: Ditto.
2155 * ser-unix.c: Ditto.
2158 * solib-frv.c: Ditto.
2159 * solib-irix.c: Ditto.
2160 * solib-osf.c: Ditto.
2161 * solib-pa64.c: Ditto.
2162 * solib-som.c: Ditto.
2163 * solib-sunos.c: Ditto.
2164 * solib-svr4.c: Ditto.
2165 * solib-target.c: Ditto.
2169 * stabsread.c: Ditto.
2170 * stabsread.c: Ditto.
2173 * symfile-mem.c: Ditto.
2179 * target-descriptions.c: Ditto.
2180 * target-memory.c: Ditto.
2183 * terminal.h: Ditto.
2186 * tracepoint.c: Ditto.
2187 * tracepoint.h: Ditto.
2191 * user-regs.c: Ditto.
2192 * user-regs.h: Ditto.
2194 * valarith.c: Ditto.
2196 * valprint.c: Ditto.
2197 * valprint.h: Ditto.
2202 * xcoffread.c: Ditto.
2203 * xcoffsolib.c: Ditto.
2204 * xcoffsolib.h: Ditto.
2205 * xml-syscall.c: Ditto.
2206 * xml-tdesc.c: Ditto.
2208 2011-01-05 Michael Snyder <msnyder@vmware.com>
2210 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
2211 * cli/cli-decode.c: Ditto.
2212 * cli/cli-dump.c: Ditto.
2213 * cli/cli-logging.c: Ditto.
2214 * cli/cli-script.c: Ditto.
2215 * cli/cli-setshow.c: Ditto.
2216 * common/signals.c: Ditto.
2217 * mi/mi-cmd-break.c: Ditto.
2218 * mi/mi-cmd-disas.c: Ditto.
2219 * mi/mi-cmd-stack.c: Ditto.
2220 * mi/mi-cmd-var.c: Ditto.
2221 * mi/mi-cmds.c: Ditto.
2222 * mi/mi-common.h: Ditto.
2223 * mi/mi-console.c: Ditto.
2224 * mi/mi-interp.c: Ditto.
2225 * mi/mi-main.c: Ditto.
2226 * osf-share/cma_attr.c: Ditto.
2227 * osf-share/cma_deb_core.h: Ditto.
2228 * osf-share/cma_debug_client.h: Ditto.
2229 * osf-share/cma_handle.h: Ditto.
2230 * osf-share/cma_mutex.h: Ditto.
2231 * osf-share/cma_stack_int.h: Ditto.
2232 * osf-share/cma_tcb_defs.h: Ditto.
2233 * python/py-auto-load.c: Ditto.
2234 * python/py-breakpoint.c: Ditto.
2235 * python/py-cmd.c: Ditto.
2236 * python/py-frame.c: Ditto.
2237 * python/py-objfile.c: Ditto.
2238 * python/py-param.c: Ditto.
2239 * python/py-progspace.c: Ditto.
2240 * python/py-symbol.c: Ditto.
2241 * python/py-value.c: Ditto.
2242 * python/python-internal.h: Ditto.
2243 * python/python.c: Ditto.
2244 * tui/tui-data.c: Ditto.
2245 * tui/tui-disasm.c: Ditto.
2246 * tui/tui-hooks.c: Ditto.
2247 * tui/tui-io.c: Ditto.
2248 * tui/tui-layout.c: Ditto.
2249 * tui/tui-regs.c: Ditto.
2250 * tui/tui-source.c: Ditto.
2251 * tui/tui-stack.c: Ditto.
2252 * tui/tui-win.c: Ditto.
2253 * tui/tui-windata.c: Ditto.
2254 * tui/tui-winsource.c: Ditto.
2256 2011-01-05 Joel Brobecker <brobecker@adacore.com>
2258 * configure.ac, gdb.1: Copyright year update.
2260 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2262 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
2263 this_pc_in_block, morestack_msym and morestack_name. Check for
2264 "__morestack" minimal symbol there.
2266 2011-01-03 Joel Brobecker <brobecker@adacore.com>
2268 * symfile.c (find_sym_fns): Add call to dont_repeat.
2270 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2272 Copyright year update in most files (performed by copyright.sh).
2274 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2276 * top.c (print_gdb_version): Update copyright year in version output.
2278 For older changes see ChangeLog-2010.
2284 version-control: never