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