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