add xfail for "print u_var" test in gdb.ada/packed_array.exp
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-02-21 Hui Zhu <teawater@gmail.com>
2
3 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4 * ax-gdb.c (gen_printf_expr_callback): New function.
5 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6 * ax-general.c (ax_memcpy): New function.
7 (ax_print): Handle "printf".
8 (ax_reqs): Ditto.
9 * ax.h (ax_memcpy): Forward declare.
10 * common/ax.def (invalid2): Removed.
11 (printf): New entry.
12 * printcmd.c (printcmd.h): New include.
13 (string_printf): New function.
14 (ui_printf): Removed.
15 (printf_command): Remove static. Call string_printf.
16 (eval_command): Call string_printf.
17 * printcmd.h: New file.
18 * tracepoint.c (validate_actionline,
19 encode_actions_1): handle printf_command.
20
21 2011-02-19 Michael Snyder <msnyder@vmware.com>
22
23 * reverse.c (delete_one_bookmark): Argument is now bookmark
24 id rather than pointer to bookmark struct.
25 (delete_bookmark_command): Use get_number_or_range.
26 (goto_bookmark_command): Parse with get_number instead of strtoul.
27 (bookmark_1): New function. Print info for one bookmark.
28 (bookmarks_info): Use get_number_or_range and bookmark_1.
29
30 2011-02-18 Michael Snyder <msnyder@vmware.com>
31
32 * thread.c (info_threads_command): Re-implement using
33 get_number_or_range.
34 (thread_apply_command): Ditto.
35
36 2011-02-18 Tom Tromey <tromey@redhat.com>
37
38 * common/ax.def: New file.
39 * ax.h (enum agent_op): Use ax.def.
40 * ax-general.c (aop_map): Use ax.def.
41
42 2011-02-18 Tom Tromey <tromey@redhat.com>
43
44 * ax-general.c (aop_map): Add pick and rot.
45 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
46 <DW_OP_rot>: Implement.
47 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
48 (ax_pick): Declare.
49 * ax-general.c (ax_pick): New function.
50
51 2011-02-18 Tom Tromey <tromey@redhat.com>
52
53 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
54
55 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
56 Tom Tromey <tromey@redhat.com>
57
58 * cp-support.c (make_symbol_overload_list_namespace): Do not call
59 make_symbol_overload_list_block with NULL BLOCK.
60 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
61
62 2011-02-18 Pedro Alves <pedro@codesourcery.com>
63
64 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
65 * breakpoint.h (get_number_or_range): Declare.
66 * printcmd.c (ALL_DISPLAYS): Declare.
67 (delete_display): Reimplement taking a display pointer.
68 (undisplay_command): Accept a range of displays to delete, using
69 get_number_or_range.
70
71 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
72
73 * c-valprint.c (c_val_print): Add embedded_offset to address
74 for arrays of unspecified length.
75 * p-valprint.c (pascal_val_print): Likewise.
76
77 2011-02-18 Yao Qi <yao@codesourcery.com>
78
79 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
80 (arm_process_displaced_insn): .. here. Remove parameter INSN.
81 (thumb_process_displaced_insn): New.
82 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
83 call to arm_process_displaced_insn.
84 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
85
86 2011-02-17 Tom Tromey <tromey@redhat.com>
87
88 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
89 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
90 compile_dwarf_to_ax. No longer static. Call
91 dwarf2_compile_cfa_to_ax.
92 (locexpr_tracepoint_var_ref): Update.
93 (loclist_tracepoint_var_ref): Update.
94 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
95 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
96 argument; add 'gdbarch' and 'pc'.
97 (dwarf2_compile_cfa_to_ax): New function.
98 (dwarf2_frame_cache): Update.
99
100 2011-02-17 Joel Brobecker <brobecker@adacore.com>
101
102 * ada-lang.c (ada_type_of_array): Fix the size of the array
103 in the case of an unconstrained packed array.
104
105 2011-02-17 Yao Qi <yao@codesourcery.com>
106
107 * common/Makefile.in: Add more targets for make.
108
109 2011-02-16 Tom Tromey <tromey@redhat.com>
110
111 * dwarf2loc.c (unimplemented): Fix typo.
112
113 2011-02-16 Tom Tromey <tromey@redhat.com>
114
115 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
116 (compile_dwarf_to_ax) <default>: Use unimplemented.
117 <DW_OP_deref>: Update.
118 (disassemble_dwarf_expression): Update.
119 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
120 (decode_locdesc): Update.
121 * dwarf2expr.h (dwarf_stack_op_name): Update.
122
123 2011-02-16 Tom Tromey <tromey@redhat.com>
124
125 * ax.h (struct aop_map) <name>: Now const.
126
127 2011-02-16 Tom Tromey <tromey@redhat.com>
128
129 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
130 than axs_rvalue.
131
132 2011-02-16 Yao Qi <yao@codesourcery.com>
133
134 * infrun.c (get_displaced_step_closure_by_addr): New.
135 * inferior.h: Declare it.
136 * arm-tdep.c: (arm_pc_is_thumb): Call
137 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
138 returns non-NULL.
139
140 2011-02-16 Pedro Alves <pedro@codesourcery.com>
141 Jan Kratochvil <jan.kratochvil@redhat.com>
142
143 gdb/
144 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
145
146 2011-02-16 Pedro Alves <pedro@codesourcery.com>
147 Jan Kratochvil <jan.kratochvil@redhat.com>
148
149 * value.c (value_contents_copy_raw): Extend describing comment.
150 Assert that the destination contents we're overwriting are wholly
151 available.
152 (value_contents_copy): Extend describing comment.
153
154 2011-02-16 Pedro Alves <pedro@codesourcery.com>
155 Jan Kratochvil <jan.kratochvil@redhat.com>
156
157 * value.c (value_available_contents_eq): Remove redundant local
158 variables. Fix available contents comparision.
159 * value.h (value_available_contents_eq): Extend describing
160 comment.
161
162 2011-02-16 Yao Qi <yao@codesourcery.com>
163
164 * thread.c (info_threads_command): Add missing i18n markup and remove
165 trailing newline.
166
167 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
168
169 * breakpoint.c (longjmp_names): New variable.
170 (struct breakpoint_objfile_data): New type.
171 (breakpoint_objfile_key): New variable.
172 (msym_not_found): New variable.
173 (msym_not_found_p): New predicate.
174 (get_breakpoint_objfile_data): New function.
175 (create_overlay_event_breakpoint): Check per-objfile cache for
176 symbols first.
177 (create_longjmp_master_breakpoint): Likewise.
178 (create_std_terminate_master_breakpoint): Likewise.
179 (create_exception_master_breakpoint): Likewise.
180 (_initialize_breakpoint): Register per-objfile data key.
181
182 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
183
184 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
185 parameter value.
186 (create_longjmp_master_breakpoint): Loop over longjmp names.
187 (create_std_terminate_master_breakpoint): Const-propagate parameter
188 value.
189 (update_breakpoints_after_exec): Adjust.
190 (breakpoint_re_set): Adjust.
191
192 2011-02-15 Michael Snyder <msnyder@vmware.com>
193
194 * thread.c (info_threads_command): Process arg as thread id,
195 or list of thread ids.
196 (thread_find_command): New command.
197 (_initialize_thread): Document argument for info threads.
198 Document 'thread find' command.
199 * NEWS: Document new command "thread find".
200
201 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
202
203 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
204 * aclocal.m4: Regenerated with aclocal-1.11.1.
205 * common/configure: Regenerate with autoconf-2.64.
206
207 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
208
209 * opencl-lang.c (build_opencl_types): Set the size of the built-in
210 bool data type to a size of one byte.
211
212 2011-02-15 Pedro Alves <pedro@codesourcery.com>
213 Jan Kratochvil <jan.kratochvil@redhat.com>
214
215 * target.c (memory_xfer_live_readonly_partial): Document where to
216 look for interface description.
217
218 2011-02-15 Yao Qi <yao@codesourcery.com>
219
220 PR tdep/12352
221 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
222 order to store PC value on stack instead of text section.
223
224 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
225
226 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
227 the EFP register set size.
228 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
229 data from the VMX register.
230 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
231 and write data from/to the VMX register.
232
233 2011-02-14 Michael Snyder <msnyder@vmware.com>
234
235 * command.h (enum command_class): New class 'no_set_class', for
236 "show" commands without a corresponding "set" command.
237 * value.c (_initialize_values): Use 'no_set_class' for "show values".
238 * copying.c (_initialize_copying): Ditto for "show copying" and
239 "show warranty".
240 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
241 "show version".
242 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
243 which there is no corresponding "set" command (eg. "show copying").
244
245 2011-02-14 Pedro Alves <pedro@codesourcery.com>
246 Jan Kratochvil <jan.kratochvil@redhat.com>
247
248 * exec.c (section_table_available_memory): Change `len' parameter
249 type to ULONGEST.
250 * exec.h (section_table_available_memory): Ditto.
251 * value.h (read_value_memory): Rename the `offset' parameter to
252 `embedded_offset'.
253
254 2011-02-14 Pedro Alves <pedro@codesourcery.com>
255 Jan Kratochvil <jan.kratochvil@redhat.com>
256
257 * memrange.c (compare_mem_ranges): Mention sort order in
258 describing comment.
259 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
260 * tracepoint.c (traceframe_available_memory): Extend comment to
261 mention what happens to RESULT when the target does not support
262 the query.
263
264 2011-02-14 Pedro Alves <pedro@codesourcery.com>
265 Jan Kratochvil <jan.kratochvil@redhat.com>
266
267 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
268 range.
269
270 2011-02-14 Pedro Alves <pedro@codesourcery.com>
271
272 * value.c (value_bits_valid, value_bits_synthetic_pointer):
273 No longer handle NULL values.
274
275 2011-02-14 Pedro Alves <pedro@codesourcery.com>
276
277 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
278 * value.c: Include "exceptions.h".
279 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
280 generic error.
281 * cp-abi.c: Include gdb_assert.h.
282 (baseclass_offset): Add `embedded_offset' and `val' parameters.
283 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
284 errors.
285 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
286 parameters. No longer returns -1 on error.
287 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
288 `val' parameters.
289 * cp-valprint.c: Include exceptions.h.
290 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
291 the baseclass_offset. Handle unavailable base classes. Use
292 val_print_invalid_address.
293 * p-valprint.c: Include exceptions.h.
294 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
295 when fetching the baseclass_offset. No longer expect
296 baseclass_offset returning -1. Handle unavailable base classes.
297 Use val_print_invalid_address.
298 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
299 `valaddr' parameter, and change its type to gdb_byte pointer. Add
300 `embedded_offset' and `val' parameters. Adjust.
301 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
302 parameter, and change its type to gdb_byte pointer. Add
303 `embedded_offset' and `val' parameters. Adjust. No longer expect
304 baseclass_offset returning -1.
305 (value_dynamic_cast): Use value_contents_for_printing rather than
306 value_contents. Adjust.
307 (search_struct_field): No longer expect baseclass_offset returning
308 -1.
309 (search_struct_method): If reading memory from the target is
310 necessary, wrap it in a new value to pass to baseclass_offset. No
311 longer expect baseclass_offset returning -1.
312 (find_method_list): No longer expect baseclass_offset returning
313 -1. Use value_contents_for_printing rather than value_contents.
314 * valprint.c (val_print_invalid_address): New function.
315 * valprint.h (val_print_invalid_address): Declare.
316 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
317 and `val' parameters. No longer expect baseclass_offset returning
318 -1. Adjust.
319 * gnu-v2-abi.c: Include "exceptions.h".
320 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
321 parameters. Handle unavailable memory. Recurse through
322 gnuv2_baseclass_offset directly, rather than through
323 baseclass_offset. No longer returns -1 on not found, instead
324 throw an error.
325 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
326 `val' parameters. Adjust.
327
328 2011-02-14 Pedro Alves <pedro@codesourcery.com>
329
330 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
331 almost but not quite adjacent.
332
333 2011-02-14 Pedro Alves <pedro@codesourcery.com>
334
335 * value.h (value_entirely_available): Declare.
336 * value.c (value_entirely_available): New function.
337 * c-valprint.c (c_value_print): Don't try fetching the pointer's
338 real type if the pointer is unavailable.
339
340 2011-02-14 Pedro Alves <pedro@codesourcery.com>
341
342 * valops.c (value_repeat): Use read_value_memory instead of
343 read_memory.
344
345 2011-02-14 Pedro Alves <pedro@codesourcery.com>
346
347 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
348 * value.c (value_contents_copy_raw, value_contents_copy): New
349 functions.
350 (value_primitive_field): Use value_contents_copy_raw instead of
351 memcpy.
352 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
353 memcpy.
354 (value_array, value_slice): Ditto.
355 * valarith.c (value_subscripted_rvalue): Use
356 value_contents_copy_raw instead of memcpy.
357
358 2011-02-14 Pedro Alves <pedro@codesourcery.com>
359
360 <unavailable> references.
361
362 * valops.c (get_value_at): Use value_from_contents_and_address,
363 avoiding read_memory.
364
365 2011-02-14 Pedro Alves <pedro@codesourcery.com>
366
367 * c-valprint.c (c_val_print): Print a string with unavailable
368 contents as an array.
369
370 2011-02-14 Pedro Alves <pedro@codesourcery.com>
371
372 * value.h (unpack_bits_as_long): Delete declaration.
373 (unpack_value_bits_as_long): Declare.
374 (unpack_value_field_as_long): Declare.
375 (value_field_bitfield): Declare.
376 * value.c (unpack_bits_as_long): Rename to...
377 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
378 value parameters. Return the extracted result in a new output
379 parameter. If the value contents are unavailable, return false,
380 otherwise return true.
381 (unpack_value_bits_as_long): New.
382 (unpack_field_as_long): Rename to...
383 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
384 Add embedded_offset and value parameters. Return the extracted
385 result in a new output parameter. If the value contents are
386 unavailable, return false, otherwise return true.
387 (unpack_value_field_as_long): New.
388 (unpack_field_as_long_1): New.
389 (unpack_field_as_long): Reimplement as wrapper around
390 unpack_value_field_as_long_1.
391 (value_field_bitfield): New function.
392 * valops.c (value_fetch_lazy): When fetching a bitfield, use
393 unpack_value_bits_as_long. Mark the value as unavailable, if it
394 is unavailable.
395 * jv-valprint.c (java_print_value_fields): Use
396 value_field_bitfield.
397 * p-valprint.c (pascal_object_print_value_fields): Use
398 value_field_bitfield.
399 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
400
401 2011-02-14 Pedro Alves <pedro@codesourcery.com>
402
403 * value.c (get_internalvar_integer): Also return the int value of
404 TYPE_CODE_INT INTERNALVAR_VALUE values.
405 (set_internalvar): Don't special case TYPE_CODE_INT.
406
407 2011-02-14 Pedro Alves <pedro@codesourcery.com>
408
409 * value.c (struct internalvar) <enum internalvar_kind>: Remove
410 INTERNALVAR_POINTER.
411 <pointer>: Delete.
412 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
413 (set_internalvar): Remove special TYPE_CODE_PTR handling.
414 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
415
416 2011-02-14 Pedro Alves <pedro@codesourcery.com>
417
418 * value.h (value_available_contents_eq): Declare.
419 * value.c (find_first_range_overlap): New function.
420 (value_available_contents_eq): New function.
421 * valprint.c (val_print_array_elements): Use
422 value_available_contents_eq.
423 * ada-valprint.c (val_print_packed_array_elements): Use
424 value_available_contents_eq.
425 * jv-valprint.c (java_value_print): Use
426 value_available_contents_eq.
427
428 2011-02-14 Pedro Alves <pedro@codesourcery.com>
429
430 * target.c (target_read_live_memory): New function.
431 (memory_xfer_live_readonly_partial): New.
432 (memory_xfer_partial): If reading from a traceframe, fallback to
433 reading unavailable read-only memory from read-only regions of
434 live target memory.
435 * tracepoint.c (disconnect_tracing): Adjust.
436 (set_current_traceframe): New, factored out from
437 set_traceframe_number.
438 (set_traceframe_number): Reimplement to only change the traceframe
439 number on the GDB side.
440 (do_restore_current_traceframe_cleanup): Adjust.
441 (make_cleanup_restore_traceframe_number): New.
442 (cur_traceframe_number): New global.
443 (tfile_open): Set cur_traceframe_number to no traceframe.
444 (set_tfile_traceframe): New function.
445 (tfile_trace_find): If looking up a traceframe using any method
446 other than by number, make sure the current tfile traceframe
447 matches gdb's current traceframe. Update the current tfile
448 traceframe if the lookup succeeded.
449 (tfile_fetch_registers, tfile_xfer_partial)
450 (tfile_get_trace_state_variable_value): Make sure the remote
451 traceframe matches gdb's current traceframe.
452 * remote.c (remote_traceframe_number): New global.
453 (remote_open_1): Set it to -1.
454 (set_remote_traceframe): New function.
455 (remote_fetch_registers, remote_store_registers)
456 (remote_xfer_memory, remote_xfer_partial)
457 (remote_get_trace_state_variable_value): Make sure the remote
458 traceframe matches gdb's current traceframe.
459 (remote_trace_find): If looking up a traceframe using any method
460 other than by number, make sure the current remote traceframe
461 matches gdb's current traceframe. Update the current remote
462 traceframe if the lookup succeeded.
463 * infrun.c (fetch_inferior_event): Adjust.
464 * tracepoint.h (set_current_traceframe): Declare.
465 (get_traceframe_number, set_traceframe_number): Add describing
466 comments.
467
468 2011-02-14 Pedro Alves <pedro@codesourcery.com>
469
470 Mark pieces of values as unavailable if the corresponding memory
471 is unavailable.
472
473 * valops.c: Include tracepoint.h.
474 (value_fetch_lazy): Use read_value_memory.
475 (read_value_memory): New.
476 * value.h (read_value_memory): Declare.
477 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
478 * exec.c (section_table_available_memory): New function.
479 * exec.h (section_table_available_memory): Declare.
480
481 2011-02-14 Pedro Alves <pedro@codesourcery.com>
482
483 * Makefile.in (SFILES): Add memrange.c.
484 (HFILES_NO_SRCDIR): Add memrange.h.
485 (COMMON_OBS): Add memrange.o.
486 * memrange.c: New file.
487 * memrange.h: New file.
488 * tracepoint.c: Include memrange.h.
489 (struct mem_range): Delete.
490 (mem_range_s): Delete.
491 (traceframe_available_memory): New function.
492 * tracepoint.h (traceframe_available_memory): Declare.
493
494 2011-02-14 Pedro Alves <pedro@codesourcery.com>
495
496 * target.h (struct traceframe_info): Forward declare.
497 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
498 (struct target_ops) <to_traceframe_info>: New field.
499 (target_traceframe_info): New.
500 * target.c (update_current_target): Inherit and default
501 to_traceframe_info.
502 * remote.c (PACKET_qXfer_traceframe_info): New.
503 (remote_protocol_features): Register qXfer:traceframe-info:read.
504 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
505 (remote_traceframe_info): New.
506 (init_remote_ops): Install it.
507 (_initialize_remote): Install "set/show remote traceframe-info"
508 commands.
509 * tracepoint.h (parse_traceframe_info): Declare.
510 * tracepoint.c (struct mem_range): New.
511 (mem_range_s): New typedef.
512 (struct traceframe_info): New.
513 (traceframe_info): New global.
514 (free_traceframe_info): New function.
515 (clear_traceframe_info): New function.
516 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
517 info.
518 (build_traceframe_info): New function.
519 (tfile_traceframe_info): New function.
520 (init_tfile_ops): Install tfile_traceframe_info.
521 (traceframe_info_start_memory, free_result): New functions.
522 (memory_attributes, traceframe_info_elements): New globals.
523 (parse_traceframe_info, get_traceframe_info): New functions.
524 * features/traceframe-info.dtd: New file.
525 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
526
527 2011-02-14 Pedro Alves <pedro@codesourcery.com>
528
529 Base support for <unavailable> value contents.
530
531 * value.h (value_bytes_available): Declare.
532 (mark_value_bytes_unavailable): Declare.
533 * value.c (struct range): New struct.
534 (range_s): New typedef.
535 (ranges_overlap): New function.
536 (range_lessthan): New function.
537 (ranges_contain_p): New function.
538 (struct value) <unavailable>: New field.
539 (value_bytes_available): New function.
540 (mark_value_bytes_unavailable): New function.
541 (require_not_optimized_out): Constify parameter.
542 (require_available): New function.
543 (value_contents_all, value_contents): Require all bytes be
544 available.
545 (value_free): Free `unavailable'.
546 (value_copy): Copy `unavailable'.
547 * valprint.h (val_print_unavailable): Declare.
548 * valprint.c (valprint_check_validity): Rename `offset' parameter
549 to `embedded_offset'. If printing a scalar, check whether the
550 value chunk is available.
551 (val_print_unavailable): New.
552 (val_print_scalar_formatted): Check whether the value is
553 available.
554 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
555 pretty-printing unavailable values.
556
557 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558
559 Fix const/volatile qualifiers of C++ types, PR c++/12328.
560 * c-typeprint.c (c_type_print_args): Update the function comment. New
561 variable param_type, initialize it. Remove const/volatile qualifiers
562 for language_cplus and !show_artificial. Use param_type.
563
564 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
565
566 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
567 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
568 * symtab.h (struct symtab) <next>: Comment extension.
569
570 2011-02-12 Yao Qi <yao@codesourcery.com>
571
572 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
573
574 2011-02-11 Yao Qi <yao@codesourcery.com>
575
576 * common/Makefile.in: Add copyright header.
577
578 2011-02-11 Pedro Alves <pedro@codesourcery.com>
579
580 * infrun.c (proceed): Move switching out and in of tfind mode from
581 here ...
582 (fetch_inferior_event): ... to here.
583
584 2011-02-11 Yao Qi <yao@codesourcery.com>
585
586 * Makefile.in: Remove signals.o from COMMON_OBS. Link
587 libcommon.a.
588 * configure.ac: Add common to sub dir.
589 * configure: Regenerate.
590
591 2011-02-11 Yao Qi <yao@codesourcery.com>
592
593 Build libcommon.a.
594
595 * common/Makefile.in: New.
596 * common/configure.ac: New.
597 * common/aclocal.m4: New.
598 * common/configure: Generate.
599
600 2011-02-10 Pedro Alves <pedro@codesourcery.com>
601
602 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
603 side of the parenthesis.
604
605 Merge from GCC:
606 2010-07-13 Jakub Jelinek <jakub@redhat.com>
607 * vec.h (VEC_block_remove): Fix comment.
608
609 2011-02-08 Michael Snyder <msnyder@vmware.com>
610
611 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
612
613 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
614
615 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
616 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
617 psubd and paddd.
618
619 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
620
621 PR 12361.
622 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
623 phsubsw.
624 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
625 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
626
627 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
628
629 * dwarf2read.c (read_subroutine_type): Set special calling
630 convention flag for functions compiled by IBM XL C for OpenCL.
631 * ppc-sysv-tdep.c: Include "dwarf2.h"
632 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
633 calling convention.
634 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
635 IBM OpenCL vector types calling convention.
636 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
637 (ppc_sysv_abi_broken_return_value): Likewise.
638 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
639 types calling convention.
640 (ppc64_sysv_abi_return_value): Likewise.
641 * spu-tdep.c: Include "dwarf2.h"
642 (spu_return_value): Implement IBM OpenCL vector types calling
643 convention.
644
645 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
646
647 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
648 correct ABI for AltiVec vector arguments.
649
650 2011-02-07 Pedro Alves <pedro@codesourcery.com>
651
652 * valprint.c (val_print): Extend comment.
653 * ada-valprint.c (ada_valprint): Rewrite comment deferring
654 interface explanation to val_print.
655 (ada_val_print_array): Adjust comment to current interface.
656 (print_field_values): Adjust comment to current interface.
657 * c-valprint.c (c_val_print): Rewrite comment deferring interface
658 explanation to val_print.
659 * f-valprint.c (f_val_print): Ditto.
660 * jv-valprint.c (java_val_print): Ditto.
661 * m2-valprint.c (m2_val_print): Ditto.
662 * p-valprint.c (pascal_val_print): Ditto.
663
664 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
665
666 * breakpoint.c (parse_breakpoint_sals): Fix description.
667
668 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
669 Oguz Kayral <oguzkayral@gmail.com>
670
671 * python/py-inferior.c (python_on_normal_stop): New function.
672 (python_on_resume): New function.
673 (python_inferior_exit): New function.
674 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
675 inferior_exit observers.
676 * python/py-evtregistry.c: New file.
677 * python/py-threadevent.c : New file.
678 * python/py-event.c: New file.
679 * python/py-evts.c: New file.
680 * python/py-continueevent.c: New file.
681 * python/py-bpevent.c: New file.
682 * python/py-signalevent.c: New file.
683 * python/py-exetiedevent.c: New file.
684 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
685 Move struct breakpoint_object from here...
686 * python/python-internal.h: ... to here.
687 * python/py-event.h: New file.
688 * python/py-events.h: New file.
689 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
690 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
691 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
692 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
693 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
694 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
695 Add build rules for all the above.
696
697 2011-02-04 Tom Tromey <tromey@redhat.com>
698
699 * dwarf2read.c (dwarf2_section_empty_p): New function.
700 (dwarf2_read_section): Use dwarf2_section_empty_p.
701 (dwarf2_section_size): New function.
702 (dwarf2_get_section_info): Unconditionally read section.
703 (dwarf2_read_index): Use dwarf2_section_empty_p.
704 (partial_read_comp_unit_head): Use dwarf2_section_size.
705 (dwarf2_symbol_mark_computed): Likewise.
706
707 2011-02-04 David Daney <ddaney@caviumnetworks.com>
708
709 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
710
711 2011-02-04 David Daney <ddaney@caviumnetworks.com>
712
713 * mips-linux-tdep.c: Include xml-syscall.h.
714 (mips_linux_get_syscall_number): New function.
715 (mips_linux_init_abi): Add calls to
716 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
717 * data-directory/Makefile.in (SYSCALLS_FILES): Add
718 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
719 * syscalls/mips-n32-linux.xml: New file.
720 * syscalls/mips-n64-linux.xml: New file.
721 * syscalls/mips-o32-linux.xml: New file.
722
723 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
724
725 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
726 Complain about inverted range entries.
727 (dwarf2_record_block_ranges): Likewise.
728
729 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
730
731 Fix some typos.
732 * breakpoint.c (update_watchpoint): Fix name of the
733 update_global_location_list function.
734 (print_one_breakpoint): Fix typo.
735 (_initialize_breakpoint): Remove extra space in hbreak help
736 string.
737 * breakpoint.h (struct bp_location) <length>: Fix field
738 description.
739
740 2011-02-04 Pedro Alves <pedro@codesourcery.com>
741
742 * regcache.c (registers_changed_ptid): Don't explictly always
743 clear `current_regcache'. Only clear current_thread_ptid and
744 current_thread_arch when PTID matches. Only reinit the frame
745 cache if PTID matches the current inferior_ptid. Move alloca(0)
746 call to ...
747 (registers_changed): ... here.
748
749 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
750
751 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
752 starts with __stack_chk_guard as stack guard symbol.
753
754 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
755
756 * disasm.c (compare_lines): Handle the end of sequence markers
757 within the line table to better support disassembling over
758 compilation unit boundaries.
759
760 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
761
762 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
763 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
764 implementation even if no symbols are available.
765 (thumb_analyze_prologue): Update call to skip_prologue_function.
766 (arm_analyze_prologue): Likewise.
767
768 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
769
770 * arm-tdep.c: Include "observer.h".
771 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
772 (arm_exidx_data_key): New static variable.
773 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
774 (struct arm_exidx_data): Likewise.
775 (arm_exidx_data_free): New function.
776 (arm_compare_exidx_entries): Likewise.
777 (arm_obj_section_from_vma): Likewise.
778 (arm_exidx_new_objfile): Likewise.
779 (arm_find_exidx_entry): Likewise.
780 (arm_exidx_fill_cache): Likewise.
781 (arm_exidx_unwind_sniffer): Likewise.
782 (arm_exidx_unwind): New global variable.
783 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
784 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
785 observer. Register arm_exidx_data_key as objfile data.
786
787 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
788
789 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
790 due to accessing uninitialized variable. Fix indentation.
791
792 2011-02-02 Pedro Alves <pedro@codesourcery.com>
793
794 * c-valprint.c (c_value_print): When doing virtual base pointer
795 adjustment, create a new value with adjusted contents rather than
796 changing the contents of the value being printed (and getting it
797 wrong).
798
799 2011-02-02 Pedro Alves <pedro@codesourcery.com>
800
801 * xml-support.c (xml_find_attribute): New.
802 (xinclude_start_include): Use it.
803 * xml-support.h (xml_find_attribute): Declare.
804 * memory-map.c (memory_map_start_memory)
805 (memory_map_start_property): Use xml_find_attribute.
806 * osdata.c (osdata_start_osdata, osdata_start_column): Use
807 xml_find_attribute.
808 * remote.c (start_thread): Use xml_find_attribute.
809 * solib-target.c (library_list_start_segment)
810 (library_list_start_section, library_list_start_library)
811 (library_list_start_list): Use xml_find_attribute.
812 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
813 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
814 (tdesc_start_field): Use xml_find_attribute.
815
816 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
817
818 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
819 (BUILD_OCL_VTYPES): Update.
820
821 2011-02-02 Joel Brobecker <brobecker@adacore.com>
822
823 * configure.ac: Work around non-GNU sed limitation when computing
824 python version number.
825 * configure: Regenerate.
826
827 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
828
829 Fix debug printing of TYPE_INSTANCE.
830 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
831 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
832
833 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
834
835 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
836 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
837 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
838 * ada-operator.inc: Rename the file to ...
839 * ada-operator.def: ... here, wrap all the entries by macro OP.
840 * expprint.c (op_name_standard): Remove all the entries. Include
841 "std-operator.def" instead.
842 * expression.h (enum exp_opcode): Include "std-operator.def" and
843 "ada-operator.def". Move all the entries ...
844 * std-operator.def: ... here, wrap all the entries by macro OP.
845
846 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
847
848 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
849 * breakpoint.c (remove_jit_event_breakpoints): New function.
850 * jit.c (jit_descriptor_addr): Delete.
851 (registering_code): Delete.
852 (clear_int): Delete.
853 (jit_inferior_data): New variable.
854 (struct jit_inferior_data): New type.
855 (get_jit_inferior_data): New function.
856 (jit_inferior_data_cleanup): New function.
857 (jit_read_descriptor): Adjust.
858 (jit_register_code): Adjust.
859 (jit_breakpoint_re_set_internal): New function; move code here ...
860 (jit_inferior_init): ... from here.
861 (jit_breakpoint_re_set): Adjust.
862 (jit_reset_inferior_data_and_breakpoints): New function.
863 (jit_inferior_created_observer): Adjust.
864 (jit_inferior_exit_hook): Adjust.
865 (jit_executable_changed_observer): New function.
866 (jit_event_handler): Adjust.
867 (_initialize_jit): Adjust.
868
869 2011-01-31 Michael Snyder <msnyder@vmware.com>
870
871 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
872 line.
873
874 2011-01-31 Tom Tromey <tromey@redhat.com>
875
876 PR python/12216:
877 * python/python.c (execute_gdb_command): Call
878 prevent_dont_repeat.
879 * top.c (suppress_dont_repeat): New global.
880 (dont_repeat): Use it.
881 (prevent_dont_repeat): New function.
882 * command.h (prevent_dont_repeat): Declare.
883
884 2011-01-31 Tom Tromey <tromey@redhat.com>
885
886 * infcmd.c (finish_backward): Use breakpoint_set_silent.
887 * python/py-breakpoint.c (bppy_set_silent): Use
888 breakpoint_set_silent.
889 (bppy_set_thread): Use breakpoint_set_thread.
890 (bppy_set_task): Use breakpoint_set_task.
891 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
892 (breakpoint_set_task): Declare.
893 (make_breakpoint_silent): Remove.
894 * breakpoint.c (breakpoint_set_silent): New function.
895 (breakpoint_set_thread): Likewise.
896 (breakpoint_set_task): Likewise.
897 (make_breakpoint_silent): Remove.
898
899 2011-01-31 Tom Tromey <tromey@redhat.com>
900
901 * breakpoint.h (user_breakpoint_p): Declare.
902 * breakpoint.c (user_breakpoint_p): New function.
903 (breakpoint_1): Use it.
904 (save_breakpoints): Likewise.
905
906 2011-01-31 Joel Brobecker <brobecker@adacore.com>
907
908 * configure.ac: Add handling of Python distribution on Windows.
909 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
910 sysconfig variables are not defined, then do not use them.
911 On Windows, if LIBPL is not defined, then use prefix + '/libs'
912 instead. On Windows, return all paths using forward-slashes
913 rather than backslashes.
914
915 2011-01-31 Joel Brobecker <brobecker@adacore.com>
916
917 * configure.ac: Remove fallback behavior for building
918 against Python. Remove tweaking of Python include path.
919 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
920 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
921 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
922 Always restore CPPFLAGS and LIBS after linking test.
923 * configure: Regenerated.
924 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
925 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
926 * python/python-internal.h: Adjust includes of Python .h files.
927
928 2011-01-31 Joel Brobecker <brobecker@adacore.com>
929
930 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
931 in error message.
932
933 2011-01-31 Joel Brobecker <brobecker@adacore.com>
934
935 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
936 value test.
937
938 2011-01-31 Yao Qi <yao@codesourcery.com>
939
940 * arm-linux-nat.c: Update calls to regcache_register_status
941 instead of regcache_valid_p.
942 * aix-thread.c: Likewise.
943 * i386gnu-nat.c: Likewise.
944
945 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
946
947 Fix crash.
948 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
949 touching TYPE_FIELD_ARTIFICIAL.
950
951 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
952
953 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
954 Committers.
955
956 2011-01-28 Pedro Alves <pedro@codesourcery.com>
957
958 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
959 selected, don't try iterating over the traceframe's blocks.
960 (tfile_has_stack): If there's no traceframe selected, then there's
961 no stack.
962 (tfile_has_registers): If there's no traceframe selected, then
963 there's no registers.
964
965 2011-01-28 Pedro Alves <pedro@codesourcery.com>
966
967 * target.c (memory_xfer_partial): No need to restore shadows if we
968 haven't read anything.
969
970 2011-01-28 Pedro Alves <pedro@codesourcery.com>
971
972 * mips-tdep.c (mips_print_register): Use get_frame_register_value
973 and val_print_scalar_formatted.
974
975 2011-01-27 Pedro Alves <pedro@codesourcery.com>
976
977 * tracepoint.c (tfile_read): New.
978 (tfile_open): Use it.
979 (tfile_get_traceframe_address): Use it.
980 (tfile_trace_find): Use it.
981 (walk_blocks_callback_func): New typedef.
982 (match_blocktype): New function.
983 (traceframe_walk_blocks): New function.
984 (traceframe_find_block_type): New function.
985 (tfile_fetch_registers, tfile_xfer_partial)
986 (tfile_get_trace_state_variable_value): Use
987 traceframe_find_block_type and tfile_read.
988
989 2011-01-26 Kevin Buettner <kevinb@redhat.com>
990
991 * remote-mips.c: Add internationalization mark ups. Remove
992 trailing \n from already marked up strings.
993
994 2011-01-26 Tom Tromey <tromey@redhat.com>
995
996 * python/py-prettyprint.c (print_string_repr): Clear
997 'addressprint' option when calling val_print_string.
998 (print_children): Handle Val_pretty_default. Clear 'addressprint'
999 option when calling val_print_string.
1000
1001 2011-01-26 Tom Tromey <tromey@redhat.com>
1002
1003 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
1004 GDB_PY_LL_ARG.
1005 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
1006 macros.
1007 (gdb_py_longest, gdb_py_ulongest): New typedefs.
1008 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
1009 (gdb_py_long_as_ulongest): New defines.
1010 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
1011 (gdb_py_int_as_long): Declare.
1012 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
1013 GDB_PY_LL_ARG, gdb_py_object_from_longest.
1014 (valpy_long): Add comment.
1015 * python/py-utils.c (get_addr_from_python): Use
1016 gdb_py_long_as_ulongest. Handle overflow properly.
1017 (gdb_py_object_from_longest): New function.
1018 (gdb_py_object_from_ulongest): Likewise.
1019 (gdb_py_int_as_long): Likewise.
1020 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
1021 * python/py-symtab.c (salpy_get_pc): Use
1022 gdb_py_long_from_ulongest.
1023 (salpy_get_line): Use PyInt_FromLong.
1024 * python/py-param.c (set_parameter_value): Use
1025 gdb_py_int_as_long.
1026 * python/py-lazy-string.c (stpy_get_address): Use
1027 gdb_py_long_from_ulongest.
1028 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
1029 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
1030 * python/py-breakpoint.c (bppy_set_thread): Use
1031 gdb_py_int_as_long.
1032 (bppy_set_task): Likewise.
1033 (bppy_set_ignore_count): Likewise.
1034 (bppy_set_hit_count): Likewise.
1035 * python/py-block.c (blpy_get_start): Use
1036 gdb_py_object_from_ulongest.
1037 (blpy_get_end): Likewise.
1038 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
1039
1040 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
1041
1042 PR/symtab 11766:
1043 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
1044 * gdb/solib.c (solib_read_symbols): Check for addr_low in
1045 equality test for objfile, initialize addr_low if needed.
1046
1047 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1048
1049 * tui/tui-regs.c (tui_register_format): Remove dead code.
1050
1051 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1052
1053 * printcmd.c (print_formatted): Use val_print_scalar_formatted
1054 instead of print_scalar_formatted.
1055 (print_scalar_formatted): Don't handle 's' format strings here,
1056 and add an assertion that we never see such format here.
1057 * valprint.h (val_print_scalar_formatted): Declare.
1058 * valprint.c (val_print_scalar_formatted): New.
1059 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
1060 instead of print_scalar_formatted.
1061 * jv-valprint.c (java_val_print): Ditto.
1062 * p-valprint.c (pascal_val_print): Ditto.
1063 * ada-valprint.c (ada_val_print_1): Ditto.
1064 * f-valprint.c (f_val_print): Ditto.
1065 * infcmd.c (registers_info): Ditto.
1066 * m2-valprint.c (m2_val_print): Ditto.
1067
1068 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1069
1070 * m2-valprint.c (print_unbounded_array): Pass
1071 value_contents_for_printing rather than value_contents, to
1072 m2_print_array_contents. Also pass in the value.
1073
1074 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1075
1076 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
1077 (save_gdb_index_command): Switch to .gdb_index version 4.
1078
1079 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1080
1081 * mi/mi-main.c (get_register): Use get_frame_register_value rather
1082 than frame_register, and always pass a valid value to val_print.
1083
1084 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1085
1086 Centralize printing "<optimized out>".
1087
1088 * valprint.h (val_print_optimized_out): Declare.
1089 * cp-valprint.c (cp_print_value_fields): Use
1090 val_print_optimized_out.
1091 * jv-valprint.c (java_print_value_fields): Ditto.
1092 * p-valprint.c (pascal_object_print_value_fields): Ditto.
1093 * printcmd.c (print_formatted): Ditto.
1094 * valprint.c (valprint_check_validity): Ditto.
1095 (value_check_printable): Ditto.
1096 (val_print_optimized_out): New.
1097
1098 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1099
1100 * infcmd.c (default_print_registers_info): Allocate values so to
1101 never pass a NULL value to val_print.
1102
1103 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1104
1105 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
1106 boolean. Make sure to always pass a value that matches the
1107 contents buffer to callees. Preserve `address' for following
1108 iterations.
1109 * value.c (value_contents_for_printing_const): New.
1110 (value_address): Constify value argument.
1111 * value.h (value_contents_for_printing_const): Declare.
1112 (value_address): Constify value argument.
1113
1114 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1115
1116 * regcache.c (struct regcache_descr): Rename
1117 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
1118 and sizeof_cooked_register_valid_p to
1119 sizeof_cooked_register_status.
1120 (init_regcache_descr): Adjust.
1121 (struct regcache): Rename register_valid_p field to
1122 register_status.
1123 (regcache_xmalloc_1, regcache_xfree, regcache_save)
1124 (do_cooked_read): Adjust.
1125 (regcache_valid_p): Rename to ...
1126 (regcache_register_status): ... this. Adjust.
1127 (regcache_invalidate): Adjust.
1128 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
1129 Adjust.
1130 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
1131 as unavailable, not valid.
1132 (regcache_dump): Adjust.
1133 * regcache.h (enum register_status): New.
1134 (regcache_register_status): Declare.
1135 (regcache_invalidate): Delete declaration.
1136 * corelow.c (get_core_registers): Adjust.
1137 * tracepoint.c (tfile_fetch_registers): Adjust.
1138 * trad-frame.c (REG_VALUE): Rename to ...
1139 (TF_REG_VALUE): ... this.
1140 (REG_UNKNOWN): Rename to ...
1141 (TF_REG_UNKNOWN): ... this.
1142 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
1143 * mi/mi-main.c (register_changed_p): Adjust.
1144
1145 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1146
1147 * regcache.c (struct regcache_descr): Remove outdated comment.
1148 (init_regcache_descr): Remove sizeof_raw_register_valid_p
1149 overallocate hack.
1150 (regcache_xmalloc): Rename to ...
1151 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
1152 Allocate the regcache type accordingly.
1153 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
1154 (regcache_xfree): Asser the source is also readonly. Copy sizeof
1155 cooked registers, not raw.
1156 (regcache_dup_no_passthrough): Delete.
1157 (get_thread_arch_regcache): Use regcache_xmalloc_1.
1158 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
1159 mention obsolete write_register_bytes.
1160 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
1161
1162 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1163
1164 Stop remote_read_bytes from handling partial reads itself.
1165
1166 * remote-fileio.c: Include target.h.
1167 (remote_fileio_write_bytes): Delete.
1168 (remote_fileio_func_open, remote_fileio_func_write)
1169 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
1170 target_read_memory.
1171 (remote_fileio_func_stat): Use target_read_memory and
1172 target_write_memory.
1173 (remote_fileio_func_gettimeofday): Use target_write_memory.
1174 (remote_fileio_func_system): Use target_read_memory.
1175 * remote.c (remote_write_bytes): Make it static.
1176 (remote_read_bytes): Don't handle partial reads here.
1177 * remote.h (remote_read_bytes): Delete declaration.
1178
1179 2011-01-25 Pedro Alves <pedro@codesourcery.com>
1180
1181 Simplify XML parsing a bit.
1182
1183 * xml-support.h (gdb_xml_parse_quick): Declare.
1184 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
1185 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
1186 parameter.
1187 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
1188 gdb_xml_create_parser_and_cleanup_1.
1189 (gdb_xml_parse_quick): New.
1190 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
1191 * osdata.c (osdata_parse): Ditto.
1192 * remote.c (remote_threads_info): Ditto.
1193 * solib-target.c (solib_target_parse_libraries): Ditto.
1194 * xml-syscall.c (syscall_parse_xml): Ditto.
1195 * xml-tdesc.c (tdesc_parse_xml): Ditto.
1196
1197 2011-01-24 Kevin Buettner <kevinb@redhat.com>
1198
1199 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
1200 with remote-mips.o added to gdb_target_obs.
1201 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
1202
1203 2011-01-24 Pedro Alves <pedro@codesourcery.com>
1204
1205 * ada-valprint.c (val_print_packed_array_elements): Pass the
1206 correct struct value to val_print.
1207 (ada_val_print_1): Ditto.
1208
1209 2011-01-24 Pedro Alves <pedro@codesourcery.com>
1210
1211 Don't lose embedded_offset in printing routines throughout.
1212
1213 * valprint.h (val_print_array_elements): Change prototype.
1214 * valprint.c (val_print_array_elements): Add `embedded_offset'
1215 parameter, and adjust to pass it down to val_print, while passing
1216 `valaddr' or `address' unmodified. Take embedded_offset into
1217 account when checking repetitions.
1218 * c-valprint.c (c_val_print): Pass embedded_offset to
1219 val_print_array_elements instead of adjusting `valaddr' and
1220 `address'.
1221 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
1222 embedded_offset to val_print_array_elements instead of adjusting
1223 `valaddr'.
1224 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
1225 * p-valprint.c (pascal_val_print): Pass embedded_offset to
1226 val_print_array_elements and pascal_object_print_value_fields
1227 instead of adjusting `valaddr'.
1228 (pascal_object_print_value_fields): Add `offset' parameter, and
1229 adjust to use it.
1230 (pascal_object_print_value): Add `offset' parameter, and adjust to
1231 use it.
1232 (pascal_object_print_static_field): Use
1233 value_contents_for_printing/value_embedded_offset, rather than
1234 value_contents.
1235 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
1236 parameter, and adjust to use it. Use
1237 value_contents_for_printing/value_embedded_offset, rather than
1238 value_contents.
1239 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
1240 (ada_val_print_array): Add `offset' parameter, and adjust to use
1241 it.
1242 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
1243 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
1244 Instead work with offsets. Use
1245 value_contents_for_printing/value_embedded_offset, rather than
1246 value_contents. Change `defer_val_int' local type to CORE_ADDR,
1247 and use value_from_pointer to extract a target pointer, rather
1248 than value_from_longest.
1249 (print_variant_part): Add `offset' parameter. Replace
1250 `outer_valaddr' parameter by a new `outer_offset' parameter.
1251 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1252 (ada_value_print): Use
1253 value_contents_for_printing/value_embedded_offset, rather than
1254 value_contents.
1255 (print_record): Add `offset' parameter, and adjust to pass it
1256 down.
1257 (print_field_values): Add `offset' parameter. Replace
1258 `outer_valaddr' parameter by a new `outer_offset' parameter.
1259 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1260 Use value_contents_for_printing/value_embedded_offset, rather than
1261 value_contents.
1262 * d-valprint.c (dynamic_array_type): Use
1263 value_contents_for_printing/value_embedded_offset, rather than
1264 value_contents.
1265 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
1266 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1267 (java_print_value_fields): Take `offset' into account. Don't
1268 re-adjust `valaddr'. Instead pass down adjusted offsets.
1269 (java_val_print): Take `embedded_offset' into account. Pass it to
1270 java_print_value_fields.
1271 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
1272 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
1273 down adjusted offsets.
1274 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
1275 (f_val_print): Take `embedded_offset' into account.
1276
1277 2011-01-21 Joel Brobecker <brobecker@adacore.com>
1278
1279 * inflow.c: Include "gdbcmd.h".
1280 (interactive_mode): New static global, moved here from top.c.
1281 (show_interactive_mode): New function, moved here from top.c.
1282 use gdb_has_a_terminal instead of input_from_terminal_p to
1283 determine the current mode.
1284 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
1285 setting.
1286 (_initialize_inflow): Add the "set/show interactive-mode"
1287 commands. Moved here from top.c, after having adjusted slightly
1288 the help text.
1289 * top.c (interactive_mode, show_interactive_mode): Delete, moved
1290 to inflow.c.
1291 (input_from_terminal_p): Remove handling of "interactive-mode"
1292 setting, moved to infow.c.
1293 (init_main): Remove creation of the "set/show interactive-mode"
1294 commands, moved to inflow.c.
1295
1296 2011-01-19 Joel Brobecker <brobecker@adacore.com>
1297
1298 * NEWS: Add entry for native ia64-hpux support.
1299
1300 2011-01-19 Tom Tromey <tromey@redhat.com>
1301
1302 PR mi/8618:
1303 * thread.c (free_thread): Free 'name'.
1304 (print_thread_info): Emit thread name. Change CLI output.
1305 (thread_name_command): New function.
1306 (do_captured_thread_select): Emit newline.
1307 (_initialize_thread): Register 'thread name' command.
1308 * target.h (struct target_ops) <to_thread_name>: New field.
1309 (target_thread_name): New macro.
1310 * target.c (update_current_target): Handle to_thread_name.
1311 * python/py-infthread.c (thpy_get_name): New function.
1312 (thpy_set_name): Likewise.
1313 (thread_object_getset): Add "name".
1314 * linux-nat.c (linux_nat_thread_name): New function.
1315 (linux_nat_add_target): Set to_thread_name.
1316 * gdbthread.h (struct thread_info) <name>: New field.
1317
1318 2011-01-18 Joel Brobecker <brobecker@adacore.com>
1319
1320 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
1321 (ada_val_print_1): Likewise.
1322
1323 2011-01-18 Joel Brobecker <brobecker@adacore.com>
1324
1325 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
1326 upper limit address is not greater than the function end address
1327 when the upper limit could not be computed using the debugging
1328 info.
1329
1330 2011-01-17 Tom Tromey <tromey@redhat.com>
1331
1332 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
1333 get_regcomp_error.
1334 * utils.c: Include gdb_regex.h.
1335 (do_regfree_cleanup): New function.
1336 (make_regfree_cleanup): Likewise.
1337 (get_regcomp_error): Likewise.
1338 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
1339
1340 2011-01-17 Tom Tromey <tromey@redhat.com>
1341
1342 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
1343 re_compile_fastmap.
1344
1345 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1346
1347 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
1348 for internal variables.
1349 (last_was_structop): New static variable.
1350 (COMPLETE): New token.
1351 (field_exp): New rule to group all '.' suffix handling.
1352 Add mark_struct_expression calls when approriate to be able
1353 to correctly find fields for completion.
1354 (yylex): Adapt to handle field completion and set INTVAR when
1355 required.
1356
1357 2011-01-14 Yao Qi <yao@codesourcery.com>
1358
1359 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
1360 save_reggroup, restore_reggroup and all_reggroup.
1361
1362 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1363
1364 * ada-valprint. (ada_printchar): Use the correct type length
1365 in call to ada_emit_char.
1366 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
1367
1368 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1369
1370 * solib-som.h (hpux_major_release): Declare variable here.
1371 * solib-som.c: Remove <sys/utsname.h> header.
1372 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
1373 (hpux_major_release): Make global, change default value to
1374 DEFAULT_HPUX_MAJOR_RELEASE.
1375 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
1376 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
1377 Add "solib-som.h" header.
1378 (set_hpux_major_release): New function.
1379 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
1380
1381 2011-01-14 Mike Frysinger <vapier@gentoo.org>
1382
1383 * configure.tgt (*-*-uclinux*): Match more Linux os targets
1384
1385 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1386
1387 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
1388 new-line at end of warning message.
1389 (ia64_hpux_store_register): Remove trailing new-line at end of
1390 error message.
1391 * ia64-hpux-tdep.c: Rephrase comment.
1392 * solib-ia64-hpux.c (struct dld_info): Change type of field
1393 dld_flags from "long long" to ULONGEST.
1394
1395 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1396
1397 * target.h (deprecated_child_ops): Delete declaration.
1398 * target.c (deprecated_child_ops): Delete definition.
1399
1400 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1401
1402 * Makefile.in (hpux-thread.o): Delete rule.
1403 * configure.ac: Don't check for HPUX DCE threads support.
1404 * configure, config.in: Regenerate.
1405 * hppa-hpux-nat.c (child_suppress_run): Delete.
1406 (hppa_hpux_child_can_run): Delete.
1407 (_initialize_hppa_hpux_nat): Don't override to_can_run.
1408 * hpux-thread.c: Delete.
1409
1410 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1411
1412 * hpux-thread.c (hpux_pid_to_str): Delete.
1413
1414 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1415
1416 * ada-valprint.c (ada_emit_char): Remove strange code.
1417 Check that c is <= UCHAR_MAX before passing it to isascii.
1418 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
1419
1420 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1421
1422 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
1423 to the case where instream is stdin.
1424
1425 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1426
1427 * ia64-tdep.h (struct regcache): Forward declare.
1428 (struct ia64_infcall_ops): New struct type.
1429 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
1430 and "infcall_ops".
1431 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
1432 Renames ia64_find_global_pointer.
1433 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
1434 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
1435 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
1436 methods.
1437 (ia64_infcall_ops): New static global constant.
1438 (ia64_gdbarch_init): Set tdep->infcall_ops.
1439 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
1440 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
1441 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
1442 (ia64_hpux_dummy_code): New static global constant.
1443 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
1444 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
1445 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
1446 New function.
1447 (ia64_hpux_infcall_ops): New static global constant.
1448 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
1449 for inferior function calls to work properly on ia64-hpux.
1450
1451 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1452
1453 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
1454 * ia64-tdep.h (struct frame_info): forward declaration.
1455 (struct gdbarch_tdep): Add field size_of_register_frame.
1456 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
1457 to determine the size of the register frame.
1458 (ia64_size_of_register_frame): New function.
1459 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
1460 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
1461 (IA64_HPUX_UREG_REASON): New macro.
1462 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
1463 New functions.
1464 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
1465 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
1466 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
1467 objects.
1468
1469 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1470
1471 Add support for ia64-hpux.
1472 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
1473 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
1474
1475 * configure.host: Add handling for ia64-hpux hosts. Add associated
1476 floatformats.
1477 * configure.tgt: Add handling for ia64-hpux targets.
1478 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
1479 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
1480 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
1481
1482 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1483
1484 [ttrace] Compute thread list immediately after attach.
1485 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
1486 New subprogram.
1487 (inf_ttrace_attach): Use it.
1488
1489 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1490
1491 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
1492 if we could not determine the frame's function address. Instead,
1493 use the frame's PC, and then continue.
1494
1495 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1496
1497 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
1498 not already defined.
1499
1500 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1501
1502 * ia64-tdep.c (ia64_struct_type_p): New function.
1503 (ia64_extract_return_value): Handle integral values that are
1504 less than 8 bytes long.
1505 (ia64_push_dummy_call): Likewise.
1506
1507 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1508
1509 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
1510 floatformat_ia64_ext.
1511 (floatformat_ia64_ext_big): New static const.
1512 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
1513
1514 2011-01-12 Tom Tromey <tromey@redhat.com>
1515
1516 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
1517 messages.
1518 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
1519 (mi_cmd_thread_list_ids): Likewise.
1520 (mi_cmd_data_list_changed_registers): Likewise.
1521 (mi_cmd_data_list_register_values): Likewise.
1522 (mi_cmd_data_write_register_values): Likewise.
1523 (mi_cmd_data_evaluate_expression): Likewise.
1524 (mi_cmd_data_read_memory): Likewise.
1525 (mi_cmd_data_read_memory_bytes): Likewise.
1526 (mi_cmd_data_write_memory): Likewise.
1527 (mi_cmd_enable_timings): Likewise.
1528 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
1529 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
1530 (mi_cmd_var_delete): Likewise.
1531 (mi_cmd_var_set_format): Likewise.
1532 (mi_cmd_var_show_format): Likewise.
1533 (mi_cmd_var_info_num_children): Likewise.
1534 (mi_cmd_var_list_children): Likewise.
1535 (mi_cmd_var_info_type): Likewise.
1536 (mi_cmd_var_info_expression): Likewise.
1537 (mi_cmd_var_show_attributes): Likewise.
1538 (mi_cmd_var_assign): Likewise.
1539 (mi_cmd_var_update): Likewise.
1540 (mi_cmd_enable_pretty_printing): Likewise.
1541 (mi_cmd_var_set_update_range): Likewise.
1542 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
1543 messages.
1544 (mi_cmd_target_file_put): Likewise.
1545 (mi_cmd_target_file_delete): Likewise.
1546 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
1547 messages.
1548 (mi_cmd_stack_info_depth): Likewise.
1549 (mi_cmd_stack_list_locals): Likewise.
1550 (mi_cmd_stack_list_args): Likewise.
1551 (mi_cmd_stack_select_frame): Likewise.
1552 (mi_cmd_stack_select_frame): Likewise.
1553 (mi_cmd_stack_info_frame): Likewise.
1554 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
1555 messages.
1556 (mi_cmd_file_list_exec_source_files): Likewise.
1557 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
1558 (mi_cmd_env_cd): Likewise.
1559 (mi_cmd_env_path): Likewise.
1560 (mi_cmd_env_dir): Likewise.
1561 (mi_cmd_inferior_tty_show): Likewise.
1562 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
1563 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
1564 (mi_cmd_break_watch): Likewise.
1565
1566 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
1567
1568 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
1569 (ppc_linux_insert_hw_breakpoint): Likewise.
1570 (ppc_linux_remove_hw_breakpoint): Likewise.
1571 (ppc_linux_insert_watchpoint): Likewise.
1572
1573 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1574 Jan Kratochvil <jan.kratochvil@redhat.com>
1575
1576 PR fortran/11104 and DWARF unbound arrays detection.
1577 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
1578 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
1579 unspecified upper bound.
1580 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
1581 variables array_size_array, tmp_type and offset_item. New variable
1582 array. Remove call to f77_get_upperbound. New variables array_type
1583 and index. Call value_subscripted_rvalue for each dimenasion. Remove
1584 the final call to deprecated_set_value_type.
1585
1586 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1587
1588 Make value allocations more lazy.
1589 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
1590 instead of allocate_value and set_value_lazy when possible.
1591 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
1592 instead of allocate_value and set_value_lazy.
1593 * findvar.c (value_of_register_lazy): Likewise.
1594 (read_var_value): Remove V preallocation, call just check_typedef in
1595 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
1596 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
1597 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
1598 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
1599 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
1600 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
1601 the end, remove set_value_lazy there.
1602 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
1603 instead of allocate_value and set_value_lazy when possible.
1604 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
1605 * value.c (allocate_computed_value): Use allocate_value_lazy instead
1606 of allocate_value and set_value_lazy.
1607 (value_from_contents_and_address): Use allocate_value_lazy instead of
1608 allocate_value and set_value_lazy when possible.
1609
1610 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1611
1612 * disasm.c (dump_insns): Support dumping opcodes for MI.
1613 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
1614 dumping of instruction opcodes.
1615
1616 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
1617
1618 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
1619 appropiately.
1620
1621 2011-01-11 Tom Tromey <tromey@redhat.com>
1622
1623 * thread.c (do_captured_thread_select): Emit newline before
1624 printing frame.
1625
1626 2011-01-11 Michael Snyder <msnyder@vmware.com>
1627
1628 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
1629 * score-tdep.c: Ditto.
1630 * score-tdep.h: Ditto.
1631 * ser-base.c: Ditto.
1632 * ser-go32.c: Ditto.
1633 * serial.c: Ditto.
1634 * serial.h: Ditto.
1635 * ser-mingw.c: Ditto.
1636 * ser-pipe.c: Ditto.
1637 * ser-tcp.c: Ditto.
1638 * ser-unix.c: Ditto.
1639 * sh64-tdep.c: Ditto.
1640 * shnbsd-nat.c: Ditto.
1641 * sh-tdep.c: Ditto.
1642 * sh-tdep.h: Ditto.
1643 * solib.c: Ditto.
1644 * solib-darwin.c: Ditto.
1645 * solib-frv.c: Ditto.
1646 * solib.h: Ditto.
1647 * solib-irix.c: Ditto.
1648 * solib-osf.c: Ditto.
1649 * solib-pa64.c: Ditto.
1650 * solib-som.c: Ditto.
1651 * solib-spu.c: Ditto.
1652 * solib-sunos.c: Ditto.
1653 * solib-svr4.c: Ditto.
1654 * solist.h: Ditto.
1655 * sol-thread.c: Ditto.
1656 * somread.c: Ditto.
1657 * source.c: Ditto.
1658 * source.h: Ditto.
1659 * sparc64-linux-tdep.c: Ditto.
1660 * sparc64-tdep.c: Ditto.
1661 * sparc-linux-nat.c: Ditto.
1662 * sparc-linux-tdep.c: Ditto.
1663 * sparc-sol2-nat.c: Ditto.
1664 * sparc-sol2-tdep.c: Ditto.
1665 * sparc-tdep.c: Ditto.
1666 * sparc-tdep.h: Ditto.
1667 * spu-tdep.c: Ditto.
1668 * stabsread.c: Ditto.
1669 * stabsread.h: Ditto.
1670 * stack.c: Ditto.
1671 * symfile.c: Ditto.
1672 * symfile.h: Ditto.
1673 * symmisc.c: Ditto.
1674 * symtab.c: Ditto.
1675 * symtab.h: Ditto.
1676 * target.c: Ditto.
1677 * target-descriptions.c: Ditto.
1678 * target-descriptions.h: Ditto.
1679 * target.h: Ditto.
1680 * target-memory.c: Ditto.
1681 * terminal.h: Ditto.
1682 * thread.c: Ditto.
1683 * top.c: Ditto.
1684 * tracepoint.c: Ditto.
1685 * tracepoint.h: Ditto.
1686 * trad-frame.h: Ditto.
1687 * typeprint.c: Ditto.
1688
1689 2011-01-11 Michael Snyder <msnyder@vmware.com>
1690
1691 * ui-file.c: Comment cleanup, mostly periods and spaces.
1692 * ui-file.h: Ditto.
1693 * ui-out.c: Ditto.
1694 * ui-out.h: Ditto.
1695 * utils.c: Ditto.
1696 * v850-tdep.c: Ditto.
1697 * valarith.c: Ditto.
1698 * valops.c: Ditto.
1699 * valprint.c: Ditto.
1700 * valprint.h: Ditto.
1701 * value.c: Ditto.
1702 * value.h: Ditto.
1703 * varobj.c: Ditto.
1704 * varobj.h: Ditto.
1705 * vax-tdep.c: Ditto.
1706 * vec.c: Ditto.
1707 * vec.h: Ditto.
1708 * version.h: Ditto.
1709 * windows-nat.c: Ditto.
1710 * windows-tdep.c: Ditto.
1711 * xcoffread.c: Ditto.
1712 * xcoffsolib.c: Ditto.
1713 * xml-support.c: Ditto.
1714 * xstormy16-tdep.c: Ditto.
1715 * xtensa-tdep.c: Ditto.
1716 * xtensa-tdep.h: Ditto.
1717
1718 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1719
1720 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
1721 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
1722
1723 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1724 Thiago Jung Bauermann <bauerman@br.ibm.com>
1725
1726 Implement support for PowerPC BookE ranged watchpoints.
1727 * breakpoint.h
1728 (struct breakpoint_ops) <resources_needed>: New method.
1729 Initialize to NULL in all existing breakpoint_ops instances.
1730 (struct breakpoint) <exact>: New field.
1731 (target_exact_watchpoints): Declare external global.
1732 * breakpoint.c (target_exact_watchpoints): New global flag.
1733 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
1734 b->enable_state to bp_enabled before calling
1735 hw_watchpoint_used_count.
1736 (hw_watchpoint_used_count): Iterate over all bp_locations in a
1737 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
1738 if available.
1739 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
1740 if the watchpoint is exact.
1741 (resources_needed_watchpoint): New function.
1742 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
1743 (watch_command_1): Set b->exact if the user asked for an exact
1744 watchpoint and one can be set.
1745 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
1746 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
1747 the user asks for an exact watchpoint and one can be set. Return
1748 number of needed debug registers to watch the expression.
1749 * gdbtypes.c (is_scalar_type): New function, based on
1750 valprint.c:scalar_type_p.
1751 (is_scalar_type_recursive): New function.
1752 * gdbtypes.h (is_scalar_type_recursive): Declare.
1753 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
1754 handle regions when ranged watchpoints are available.
1755 (create_watchpoint_request): New function.
1756 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1757 create_watchpoint_request.
1758 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
1759 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
1760 `set powerpc' and `show powerpc' commands.
1761 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1762 Mention documentation comment in the target macro.
1763 (target_region_ok_for_hw_watchpoint): Document return value.
1764
1765 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1766
1767 * breakpoint.c (update_watchpoint): Decide on using a software or
1768 hardware watchpoint after the bp_locations are created.
1769
1770 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1771
1772 Convert hardware watchpoints to use breakpoint_ops.
1773 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
1774 <insert_location>: ... this. Return int instead of void.
1775 Accept pointer to struct bp_location instead of pointer to
1776 struct breakpoint. Adapt all implementations.
1777 (breakpoint_ops) <remove>: Rename to...
1778 <remove_location>: ... this. Accept pointer to struct bp_location
1779 instead of pointer to struct breakpoint. Adapt all implementations.
1780 * breakpoint.c (insert_catchpoint): Delete function.
1781 (insert_bp_location): Call the watchpoint or catchpoint's
1782 breakpoint_ops.insert method.
1783 (remove_breakpoint_1): Call the watchpoint or catchpoint's
1784 breakpoint_ops.remove method.
1785 (insert_watchpoint, remove_watchpoint): New functions.
1786 (watchpoint_breakpoint_ops): New structure.
1787 (watch_command_1): Initialize the OPS field.
1788 * inf-child.c (inf_child_insert_fork_catchpoint)
1789 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
1790 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
1791 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
1792 Delete functions.
1793 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
1794 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
1795 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
1796 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
1797 * target.c (update_current_target): Change default implementation of
1798 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
1799 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
1800 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
1801 to_set_syscall_catchpoint to return_one.
1802 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
1803 (debug_to_insert_exec_catchpoint): Report return value.
1804 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
1805 (to_insert_exec_catchpoint): Change declaration to return int instead
1806 of void.
1807
1808 2011-01-11 Michael Snyder <msnyder@vmware.com>
1809
1810 * arm-tdep.c: Internationalization.
1811 * c-lang.c: Ditto.
1812 * charset.c: Ditto.
1813 * fork-child.c: Ditto.
1814 * nto-procfs.c: Ditto.
1815 * ppc-sysv-tdep.c: Ditto.
1816 * procfs.c: Ditto.
1817 * remote-mips.c: Ditto.
1818 * remote.c: Ditto.
1819 * rs6000-nat.c: Ditto.
1820 * rs6000-tdep.c: Ditto.
1821 * target.c: Ditto.
1822 * valops.c: Ditto.
1823 * value.c: Ditto.
1824 * xml-support.c: Ditto.
1825 * mi/mi-cmd-break.c: Ditto.
1826 * mi/mi-cmd-var.c: Ditto.
1827 * mi/mi-interp.c: Ditto.
1828 * mi/mi-main.c: Ditto.
1829
1830 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
1831
1832 * remote-sim.c (gdbsim_store_register): Update API to
1833 sim_store_register to check more error conditions.
1834
1835 2011-01-10 Michael Snyder <msnyder@vmware.com>
1836
1837 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
1838 * nto-tdep.c: Ditto.
1839 * nto-tdep.h: Ditto.
1840 * objc-exp.y: Ditto.
1841 * objc-lang.c: Ditto.
1842 * objfiles.c: Ditto.
1843 * objfiles.h: Ditto.
1844 * observer.c: Ditto.
1845 * opencl-lang.c: Ditto.
1846 * osabi.c: Ditto.
1847 * parse.c: Ditto.
1848 * parser-defs.h: Ditto.
1849 * p-exp.y: Ditto.
1850 * p-lang.c: Ditto.
1851 * posix-hdep.c: Ditto.
1852 * ppcbug-rom.c: Ditto.
1853 * ppc-linux-nat.c: Ditto.
1854 * ppc-linux-tdep.c: Ditto.
1855 * ppc-linux-tdep.h: Ditto.
1856 * ppcnbsd-tdep.c: Ditto.
1857 * ppcobsd-tdep.c: Ditto.
1858 * ppcobsd-tdep.h: Ditto.
1859 * ppc-sysv-tdep.c: Ditto.
1860 * ppc-tdep.h: Ditto.
1861 * printcmd.c: Ditto.
1862 * proc-abi.c: Ditto.
1863 * proc-flags.c: Ditto.
1864 * procfs.c: Ditto.
1865 * proc-utils.h: Ditto.
1866 * progspace.h: Ditto.
1867 * prologue-value.c: Ditto.
1868 * prologue-value.h: Ditto.
1869 * psympriv.h: Ditto.
1870 * psymtab.c: Ditto.
1871 * p-typeprint.c: Ditto.
1872 * p-valprint.c: Ditto.
1873 * ravenscar-sparc-thread.c: Ditto.
1874 * ravenscar-thread.c: Ditto.
1875 * ravenscar-thread.h: Ditto.
1876 * record.c: Ditto.
1877 * regcache.c: Ditto.
1878 * regcache.h: Ditto.
1879 * remote.c: Ditto.
1880 * remote-fileio.c: Ditto.
1881 * remote-fileio.h: Ditto.
1882 * remote.h: Ditto.
1883 * remote-m32r-sdi.c: Ditto.
1884 * remote-mips.c: Ditto.
1885 * remote-sim.c: Ditto.
1886 * rs6000-aix-tdep.c: Ditto.
1887 * rs6000-nat.c: Ditto.
1888 * rs6000-tdep.c: Ditto.
1889
1890 2011-01-10 Michael Snyder <msnyder@vmware.com>
1891
1892 * charset.c (validate): Internationalization.
1893 * coffread.c (read_one_sym): Ditto.
1894 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
1895 * h8300-tdep.c (H8300_extract_return_value): Ditto.
1896 * inflow.c (new_tty): Ditto.
1897 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
1898 * m32c-tdep.c (m32c_return_value): Ditto.
1899 * mep-tdep.c (mep_store_return_value): Ditto.
1900 * score-tdep.c (score7_fetch_insn): Ditto.
1901 * ser-mingw.c (pipe_windows_open): Ditto.
1902 * sh64-tdep.c (sh64_extract_return_value): Ditto.
1903 * spu-tdep.c (spu_register_type): Ditto.
1904 * tracepoint.c (trace_find_command): Ditto.
1905 * valarith.c (value_pos): Ditto.
1906
1907 2011-01-10 Joel Brobecker <brobecker@adacore.com>
1908
1909 * ada-valprint.c (printstr): Minor comment reformatting.
1910
1911 2011-01-08 Michael Snyder <msnyder@vmware.com>
1912
1913 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
1914 markup.
1915
1916 2011-01-08 Michael Snyder <msnyder@vmware.com>
1917
1918 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
1919 * hppa-hpux-tdep.c: Ditto.
1920 * hppa-linux-nat.c: Ditto.
1921 * hppa-linux-tdep.c: Ditto.
1922 * hppanbsd-tdep.c: Ditto.
1923 * hppa-tdep.c: Ditto.
1924 * hppa-tdep.h: Ditto.
1925 * hpux-thread.c: Ditto.
1926 * i386-cygwin-tdep.c: Ditto.
1927 * i386-darwin-nat.c: Ditto.
1928 * i386gnu-nat.c: Ditto.
1929 * i386-linux-nat.c: Ditto.
1930 * i386-linux-tdep.c: Ditto.
1931 * i386-nat.c: Ditto.
1932 * i386-nat.h: Ditto.
1933 * i386nbsd-tdep.c: Ditto.
1934 * i386-sol2-nat.c: Ditto.
1935 * i386-stub.c: Ditto.
1936 * i386-tdep.c: Ditto.
1937 * i386-tdep.h: Ditto.
1938 * i387-tdep.c: Ditto.
1939 * ia64-linux-nat.c: Ditto.
1940 * ia64-linux-tdep.c: Ditto.
1941 * ia64-tdep.c: Ditto.
1942 * infcall.c: Ditto.
1943 * infcall.h: Ditto.
1944 * infcmd.c: Ditto.
1945 * inferior.c: Ditto.
1946 * inferior.h: Ditto.
1947 * infloop.c: Ditto.
1948 * inflow.c: Ditto.
1949 * infrun.c: Ditto.
1950 * interps.c: Ditto.
1951 * interps.h: Ditto.
1952 * iq2000-tdep.c: Ditto.
1953 * irix5-nat.c: Ditto.
1954 * jit.c: Ditto.
1955 * jit.h: Ditto.
1956 * jv-exp.y: Ditto.
1957 * jv-lang.c: Ditto.
1958 * jv-lang.h: Ditto.
1959 * jv-typeprint.c: Ditto.
1960 * jv-valprint.c: Ditto.
1961 * language.c: Ditto.
1962 * language.h: Ditto.
1963 * linespec.c: Ditto.
1964 * linux-fork.c: Ditto.
1965 * linux-nat.c: Ditto.
1966 * linux-thread-db.c: Ditto.
1967 * lm32-tdep.c: Ditto.
1968
1969 2011-01-08 Michael Snyder <msnyder@vmware.com>
1970
1971 * m2-exp.y: Comment cleanup, mostly periods and spaces.
1972 * m2-lang.c: Ditto.
1973 * m2-typeprint.c: Ditto.
1974 * m2-valprint.c: Ditto.
1975 * m32c-tdep.c: Ditto.
1976 * m32r-linux-nat.c: Ditto.
1977 * m32r-rom.c: Ditto.
1978 * m32r-tdep.c: Ditto.
1979 * m32r-tdep.h: Ditto.
1980 * m68hc11-tdep.c: Ditto.
1981 * m58klinux-nat.c: Ditto.
1982 * m68k-tdep.c: Ditto.
1983 * m88k-tdep.c: Ditto.
1984 * m88k-tdep.h: Ditto.
1985 * machoread.c: Ditto.
1986 * macrocmd.c: Ditto.
1987 * macroexp.c: Ditto.
1988 * macrotab.c: Ditto.
1989 * main.c: Ditto.
1990 * maint.c: Ditto.
1991 * mdebugread.c: Ditto.
1992 * mdebugread.h: Ditto.
1993 * memattr.c: Ditto.
1994 * memattr.h: Ditto.
1995 * memory-map.h: Ditto.
1996 * mep-tdep.c: Ditto.
1997 * microblaze-rom.c: Ditto.
1998 * microblaze-tdep.c: Ditto.
1999 * minsyms.c: Ditto.
2000 * mips-irix-tdep.c: Ditto.
2001 * mips-linux-nat.c: Ditto.
2002 * mips-linux-tdep.c: Ditto.
2003 * mips-linux-tdep.h: Ditto.
2004 * mipsnbsd-nat.c: Ditto.
2005 * mipsnbsd-tdep.c: Ditto.
2006 * mipsread.c: Ditto.
2007 * mips-tdep.c: Ditto.
2008 * mips-tdep.h: Ditto.
2009 * mn10300-linux-tdep.c: Ditto.
2010 * mn10300-tdep.c: Ditto.
2011 * mn10300-tdep.h: Ditto.
2012 * monitor.c: Ditto.
2013 * monitor.h: Ditto.
2014 * moxie-tdep.c: Ditto.
2015 * moxie-tdep.h: Ditto.
2016 * mt-tdep.c: Ditto.
2017
2018 2011-01-08 Mike Frysinger <vapier@gentoo.org>
2019
2020 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
2021
2022 2011-01-08 Robert Millan <rmh@gnu.org>
2023
2024 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
2025
2026 2011-01-07 Michael Snyder <msnyder@vmware.com>
2027
2028 * charset.c (_initialize_charset): Fix typo in string.
2029
2030 2011-01-07 Michael Snyder <msnyder@vmware.com>
2031
2032 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
2033 for i18n.
2034 * tui/tui-layout.c (tui_set_layout_for_display_command):
2035 Split line so that operator goes to beginning of line.
2036 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
2037 assignment out of if statement.
2038
2039 2011-01-07 Michael Snyder <msnyder@vmware.com>
2040
2041 * ada-lang.c: Comment cleanup, mostly periods and spaces.
2042 * ada-lang.h: Ditto.
2043 * ada-tasks.c: Ditto.
2044 * ada-valprint.c: Ditto.
2045 * aix-threads.c: Ditto.
2046 * alpha-linux-nat.c: Ditto.
2047 * alpha-linux-tdep.c: Ditto.
2048 * alpha-mdebug-tdep.c: Ditto.
2049 * alpha-nat.c: Ditto.
2050 * alpha-osf1-tdep.c: Ditto.
2051 * alpha-tdep.c: Ditto.
2052 * alphabsd-nat.c: Ditto.
2053 * alphabsd-tdep.c: Ditto.
2054 * amd64-darwin-tdep.c: Ditto.
2055 * amd64-linux-nat.c: Ditto.
2056 * amd64-linux-tdep.c: Ditto.
2057 * amd64-sol2-tdep.c: Ditto.
2058 * amd64-tdep.c: Ditto.
2059 * amd64-fbsd-tdep.c: Ditto.
2060 * amd64-nbsd-tdep.c: Ditto.
2061 * amd64-obsd-tdep.c: Ditto.
2062 * amd64-linux-nat.c: Ditto.
2063 * amd64-linux-tdep.c: Ditto.
2064 * arm-tdep.c: Ditto.
2065 * arm-tdep.h: Ditto.
2066 * armnbsd-nat.c: Ditto.
2067 * avr-tdep.c: Ditto.
2068 * bfin-tdep.c: Ditto.
2069 * bsd-kvm.c: Ditto.
2070 * c-typeprintc: Ditto.
2071 * c-valprint.c: Ditto.
2072 * coff-pe-read.h: Ditto.
2073 * coffreead.c: Ditto.
2074 * cris-tdep.c: Ditto.
2075 * d-lang.c: Ditto.
2076 * darwin-nat-info.c: Ditto.
2077 * darwin-nat.c: Ditto.
2078 * dbug-rom.c: Ditto.
2079 * dbxread.c: Ditto.
2080 * dcache.c: Ditto.
2081 * dcache.h: Ditto.
2082 * dec-thread.c: Ditto.
2083 * defs.h: Ditto.
2084 * demangle.c: Ditto.
2085 * dicos-tdep.c: Ditto.
2086 * dictionary.c: Ditto.
2087 * dictionary.h: Ditto.
2088 * dink32-rom.c: Ditto.
2089 * disasm.c: Ditto.
2090 * doublest.c: Ditto.
2091 * dsrec.c: Ditto.
2092 * dummy-frame.c: Ditto.
2093 * dwarf2-frame.c: Ditto.
2094 * dwarf2expr.c: Ditto.
2095 * dwarf2loc.c: Ditto.
2096 * dwarf2read.c: Ditto.
2097 * elfread.c: Ditto.
2098 * environ.c: Ditto.
2099 * eval.c: Ditto.
2100 * event-top.h: Ditto.
2101 * exceptions.c: Ditto.
2102 * exceptions.h: Ditto.
2103 * exec.c: Ditto.
2104 * expprint.c: Ditto.
2105 * expression.h: Ditto.
2106 * f-exp.y: Ditto.
2107 * f-lang.c: Ditto.
2108 * f-lang.h: Ditto.
2109 * f-typeprint.c: Ditto.
2110 * f-valprint.c: Ditto.
2111 * fbsd-nat.c: Ditto.
2112 * findvar.c: Ditto.
2113 * fork-child.c: Ditto.
2114 * frame.c: Ditto.
2115 * frame.h: Ditto.
2116 * frv-linux-tdep.c: Ditto.
2117 * frv-tdep.c: Ditto.
2118 * gcore.c: Ditto.
2119 * gdb-stabs.h: Ditto.
2120 * gdb_assert.h: Ditto.
2121 * gdb_string.h: Ditto.
2122 * gdb_thread_db.h: Ditto.
2123 * gdb_wait.h: Ditto.
2124 * gdbarch.sh: Ditto.
2125 * gdbcore.h: Ditto.
2126 * gdbthread.h: Ditto.
2127 * gdbtypes.c: Ditto.
2128 * gdbtypes.h: Ditto.
2129 * gnu-nat.c: Ditto.
2130 * gnu-nat.h: Ditto.
2131 * gnu-v2-abi.c: Ditto.
2132 * gnu-v3-abi.c: Ditto.
2133 * go32-nat.c: Ditto.
2134 * gdbarch.c: Regenerate.
2135 * gdbarch.h: Regenerate.
2136
2137 2011-01-07 Michael Snyder <msnyder@vmware.com>
2138
2139 * ax-gdb.c: Adjust some long output strings.
2140 * breakpoint.c: Ditto.
2141 * charset.c: Ditto.
2142 * cp-abi.c: Ditto.
2143 * infcall.c: Ditto.
2144 * infrun.c: Ditto.
2145 * linux-nat.c: Ditto.
2146 * solib-pa64.c: Ditto.
2147 * solib-som.c: Ditto.
2148
2149 2011-01-06 Tom Tromey <tromey@redhat.com>
2150
2151 PR python/12367:
2152 * NEWS: Add item.
2153 * python/python.c (GdbMethods): Add "newest_frame" method.
2154 * python/python-internal.h (gdbpy_newest_frame): Declare.
2155 * python/py-frame.c (gdbpy_newest_frame): New function.
2156
2157 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2158
2159 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
2160 * jit.c (jit_debug): New variable.
2161 (show_jit_debug): New function.
2162 (struct target_buffer): Use ULONGEST.
2163 (bfd_open_from_target_memory): Likewise.
2164 (jit_register_code, jit_inferior_init): Add debug output.
2165 (_initialize_jit): Register "debug jit" command.
2166
2167 2011-01-06 Tom Tromey <tromey@redhat.com>
2168
2169 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
2170 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
2171 and ARCH_FRAME.
2172
2173 2011-01-06 Tom Tromey <tromey@redhat.com>
2174
2175 * python/py-frame.c (frapy_block): Use get_frame_block.
2176
2177 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2178
2179 Do not stop on SIGPRIO signals by default
2180 * infrun.c (_initialize_infrun): Unset signal_stop and
2181 signal_print for TARGET_SIGNAL_PRIO.
2182
2183 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2184
2185 * ada-tasks.c: Fix style violation in comment.
2186
2187 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2188
2189 * linespec.c (decode_compound, find_method): Remove trailing \n
2190 at end of error string.
2191 * solib-irix.c (irix_current_sos): Likewise.
2192 * varobj.c (uninstall_variable): Likewise.
2193
2194 2011-01-06 Joel Brobecker <brobecker@adacore.com>
2195
2196 * copyright.py: New script.
2197 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
2198 Launch emacs without exec'ing. Call copyright.py afterwards.
2199
2200 2011-01-05 Michael Snyder <msnyder@vmware.com>
2201
2202 * addrmap.c: Shorten lines of >= 80 columns.
2203 * arch-utils.c: Ditto.
2204 * arch-utils.h: Ditto.
2205 * ax-gdb.c: Ditto.
2206 * ax-general.c: Ditto.
2207 * bcache.c: Ditto.
2208 * blockframe.c: Ditto.
2209 * breakpoint.c: Ditto.
2210 * buildsym.c: Ditto.
2211 * c-lang.c: Ditto.
2212 * c-typeprint.c: Ditto.
2213 * charset.c: Ditto.
2214 * coffread.c: Ditto.
2215 * command.h: Ditto.
2216 * corelow.c: Ditto.
2217 * cp-abi.c: Ditto.
2218 * cp-namespace.c: Ditto.
2219 * cp-support.c: Ditto.
2220 * dbug-rom.c: Ditto.
2221 * dbxread.c: Ditto.
2222 * defs.h: Ditto.
2223 * dfp.c: Ditto.
2224 * dfp.h: Ditto.
2225 * dictionary.c: Ditto.
2226 * disasm.c: Ditto.
2227 * doublest.c: Ditto.
2228 * dwarf2-frame.c: Ditto.
2229 * dwarf2expr.c: Ditto.
2230 * dwarf2loc.c: Ditto.
2231 * dwarf2read.c: Ditto.
2232 * elfread.c: Ditto.
2233 * eval.c: Ditto.
2234 * event-loop.c: Ditto.
2235 * event-loop.h: Ditto.
2236 * exceptions.h: Ditto.
2237 * exec.c: Ditto.
2238 * expprint.c: Ditto.
2239 * expression.h: Ditto.
2240 * f-lang.c: Ditto.
2241 * f-valprint.c: Ditto.
2242 * findcmd.c: Ditto.
2243 * frame-base.c: Ditto.
2244 * frame-unwind.c: Ditto.
2245 * frame-unwind.h: Ditto.
2246 * frame.c: Ditto.
2247 * frame.h: Ditto.
2248 * gcore.c: Ditto.
2249 * gdb-stabs.h: Ditto.
2250 * gdb_assert.h: Ditto.
2251 * gdb_dirent.h: Ditto.
2252 * gdb_obstack.h: Ditto.
2253 * gdbcore.h: Ditto.
2254 * gdbtypes.c: Ditto.
2255 * gdbtypes.h: Ditto.
2256 * inf-ttrace.c: Ditto.
2257 * infcall.c: Ditto.
2258 * infcmd.c: Ditto.
2259 * inflow.c: Ditto.
2260 * infrun.c: Ditto.
2261 * inline-frame.h: Ditto.
2262 * language.c: Ditto.
2263 * language.h: Ditto.
2264 * libunwind-frame.c: Ditto.
2265 * libunwind-frame.h: Ditto.
2266 * linespec.c: Ditto.
2267 * linux-nat.c: Ditto.
2268 * linux-nat.h: Ditto.
2269 * linux-thread-db.c: Ditto.
2270 * machoread.c: Ditto.
2271 * macroexp.c: Ditto.
2272 * macrotab.c: Ditto.
2273 * main.c: Ditto.
2274 * maint.c: Ditto.
2275 * mdebugread.c: Ditto.
2276 * memattr.c: Ditto.
2277 * minsyms.c: Ditto.
2278 * monitor.c: Ditto.
2279 * monitor.h: Ditto.
2280 * objfiles.c: Ditto.
2281 * objfiles.h: Ditto.
2282 * osabi.c: Ditto.
2283 * p-typeprint.c: Ditto.
2284 * p-valprint.c: Ditto.
2285 * parse.c: Ditto.
2286 * printcmd.c: Ditto.
2287 * proc-events.c: Ditto.
2288 * procfs.c: Ditto.
2289 * progspace.c: Ditto.
2290 * progspace.h: Ditto.
2291 * psympriv.h: Ditto.
2292 * psymtab.c: Ditto.
2293 * record.c: Ditto.
2294 * regcache.c: Ditto.
2295 * regcache.h: Ditto.
2296 * remote-fileio.c: Ditto.
2297 * remote.c: Ditto.
2298 * ser-mingw.c: Ditto.
2299 * ser-tcp.c: Ditto.
2300 * ser-unix.c: Ditto.
2301 * serial.c: Ditto.
2302 * serial.h: Ditto.
2303 * solib-frv.c: Ditto.
2304 * solib-irix.c: Ditto.
2305 * solib-osf.c: Ditto.
2306 * solib-pa64.c: Ditto.
2307 * solib-som.c: Ditto.
2308 * solib-sunos.c: Ditto.
2309 * solib-svr4.c: Ditto.
2310 * solib-target.c: Ditto.
2311 * solib.c: Ditto.
2312 * somread.c: Ditto.
2313 * source.c: Ditto.
2314 * stabsread.c: Ditto.
2315 * stabsread.c: Ditto.
2316 * stack.c: Ditto.
2317 * stack.h: Ditto.
2318 * symfile-mem.c: Ditto.
2319 * symfile.c: Ditto.
2320 * symfile.h: Ditto.
2321 * symmisc.c: Ditto.
2322 * symtab.c: Ditto.
2323 * symtab.h: Ditto.
2324 * target-descriptions.c: Ditto.
2325 * target-memory.c: Ditto.
2326 * target.c: Ditto.
2327 * target.h: Ditto.
2328 * terminal.h: Ditto.
2329 * thread.c: Ditto.
2330 * top.c: Ditto.
2331 * tracepoint.c: Ditto.
2332 * tracepoint.h: Ditto.
2333 * ui-file.c: Ditto.
2334 * ui-file.h: Ditto.
2335 * ui-out.h: Ditto.
2336 * user-regs.c: Ditto.
2337 * user-regs.h: Ditto.
2338 * utils.c: Ditto.
2339 * valarith.c: Ditto.
2340 * valops.c: Ditto.
2341 * valprint.c: Ditto.
2342 * valprint.h: Ditto.
2343 * value.c: Ditto.
2344 * varobj.c: Ditto.
2345 * varobj.h: Ditto.
2346 * vec.h: Ditto.
2347 * xcoffread.c: Ditto.
2348 * xcoffsolib.c: Ditto.
2349 * xcoffsolib.h: Ditto.
2350 * xml-syscall.c: Ditto.
2351 * xml-tdesc.c: Ditto.
2352
2353 2011-01-05 Michael Snyder <msnyder@vmware.com>
2354
2355 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
2356 * cli/cli-decode.c: Ditto.
2357 * cli/cli-dump.c: Ditto.
2358 * cli/cli-logging.c: Ditto.
2359 * cli/cli-script.c: Ditto.
2360 * cli/cli-setshow.c: Ditto.
2361 * common/signals.c: Ditto.
2362 * mi/mi-cmd-break.c: Ditto.
2363 * mi/mi-cmd-disas.c: Ditto.
2364 * mi/mi-cmd-stack.c: Ditto.
2365 * mi/mi-cmd-var.c: Ditto.
2366 * mi/mi-cmds.c: Ditto.
2367 * mi/mi-common.h: Ditto.
2368 * mi/mi-console.c: Ditto.
2369 * mi/mi-interp.c: Ditto.
2370 * mi/mi-main.c: Ditto.
2371 * osf-share/cma_attr.c: Ditto.
2372 * osf-share/cma_deb_core.h: Ditto.
2373 * osf-share/cma_debug_client.h: Ditto.
2374 * osf-share/cma_handle.h: Ditto.
2375 * osf-share/cma_mutex.h: Ditto.
2376 * osf-share/cma_stack_int.h: Ditto.
2377 * osf-share/cma_tcb_defs.h: Ditto.
2378 * python/py-auto-load.c: Ditto.
2379 * python/py-breakpoint.c: Ditto.
2380 * python/py-cmd.c: Ditto.
2381 * python/py-frame.c: Ditto.
2382 * python/py-objfile.c: Ditto.
2383 * python/py-param.c: Ditto.
2384 * python/py-progspace.c: Ditto.
2385 * python/py-symbol.c: Ditto.
2386 * python/py-value.c: Ditto.
2387 * python/python-internal.h: Ditto.
2388 * python/python.c: Ditto.
2389 * tui/tui-data.c: Ditto.
2390 * tui/tui-disasm.c: Ditto.
2391 * tui/tui-hooks.c: Ditto.
2392 * tui/tui-io.c: Ditto.
2393 * tui/tui-layout.c: Ditto.
2394 * tui/tui-regs.c: Ditto.
2395 * tui/tui-source.c: Ditto.
2396 * tui/tui-stack.c: Ditto.
2397 * tui/tui-win.c: Ditto.
2398 * tui/tui-windata.c: Ditto.
2399 * tui/tui-winsource.c: Ditto.
2400
2401 2011-01-05 Joel Brobecker <brobecker@adacore.com>
2402
2403 * configure.ac, gdb.1: Copyright year update.
2404
2405 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2406
2407 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
2408 this_pc_in_block, morestack_msym and morestack_name. Check for
2409 "__morestack" minimal symbol there.
2410
2411 2011-01-03 Joel Brobecker <brobecker@adacore.com>
2412
2413 * symfile.c (find_sym_fns): Add call to dont_repeat.
2414
2415 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2416
2417 Copyright year update in most files (performed by copyright.sh).
2418
2419 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2420
2421 * top.c (print_gdb_version): Update copyright year in version output.
2422
2423 For older changes see ChangeLog-2010.
2424 \f
2425 Local Variables:
2426 mode: change-log
2427 left-margin: 8
2428 fill-column: 74
2429 version-control: never
2430 coding: utf-8
2431 End:
This page took 0.083638 seconds and 4 git commands to generate.