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