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