Fix typo in ada-lang.c comment.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2010-12-29  Joel Brobecker  <brobecker@adacore.com>
2
3         * ada-lang.c: Fix typo in comment.
4
5 2010-12-29  Joel Brobecker  <brobecker@adacore.com>
6
7         * ada-valprint.c (ada_val_print_1): Print null array pointers as
8         `0x0' rather than `(null)'.  Add assertion.
9
10 2010-12-29  Joel Brobecker  <brobecker@adacore.com>
11
12         * ada-lang.h (ada_coerce_to_simple_array): Add declaration.
13         * ada-lang.c (ada_typedef_target_type): New function.
14         (desc_base_type): Add handling of fat pointer typedefs.
15         (ada_coerce_to_simple_array): Make non-static.
16         (decode_packed_array_bitsize): Add handling of fat pointer typedefs.
17         Add assertion.
18         (ada_template_to_fixed_record_type_1, ada_to_fixed_type)
19         (ada_check_typedef): Add handling of fat pointer typedefs.
20         (ada_evaluate_subexp) [OP_FUNCALL]: Likewise.
21         * ada-typeprint.c (ada_print_type): Add handling of fat pointer
22         typedefs.
23         * ada-valprint.c (ada_val_print_1): Convert fat pointers that are not
24         array accesses to simple arrays rather than simple array pointers.
25         (ada_value_print): In the case of array descriptors, do not print
26         the value type description unless it is an array access.
27
28 2010-12-29  Joel Brobecker  <brobecker@adacore.com>
29
30         * target.h (enum target_object): Expand the documentation of
31         TARGET_OBJECT_OSDATA a bit.
32
33 2010-12-28  Michael Snyder  <msnyder@vmware.com>
34
35         * command.h: Comment clean-up.
36         * cli/cli-cmds.c: Ditto.
37         * cli/cli-cmds.h: Ditto.
38         * cli/cli-decode.c: Ditto.
39         * cli/cli-decode.h: Ditto.
40         * cli/cli-dump.c: Ditto.
41         * cli/cli-interp.c: Ditto.
42         * cli/cli-logging.c: Ditto.
43         * cli/cli-script.c: Ditto.
44         * cli/cli-setshow.c: Ditto.
45         * cli/cli-setshow.h: Ditto.
46
47 2010-12-28  Michael Snyder  <msnyder@vmware.com>
48
49         * event-loop.c: Comment clean-up.
50         * event-loop.h: Ditto.
51         * event-top.c: Ditto.
52         * gdb.c: Ditto.
53         * gdb.h: Ditto.
54         * main.c: Ditto.
55         * top.c: Ditto.
56         * top.h: Ditto. 
57
58 2010-12-28  Pedro Alves  <pedro@codesourcery.com>
59
60         * ax-gdb.c (gen_expr) <OP_REGISTER>: Error out if trying to
61         collect a user register.
62
63 2010-12-28  Hui Zhu  <teawater@gmail.com>
64
65         * gdbarch.sh (ax_pseudo_register_collect,
66         ax_pseudo_register_push_stack): new callbacks.
67         (agent_expr): Forward declare.
68         * gdbarch.h, gdbarch.c: Regenerate.
69         * ax-gdb.c (gen_expr): Remove pseudo-register check code.
70         * ax-general.c (user-regs.h): New include.
71         (ax_reg): Call gdbarch_ax_pseudo_register_push_stack.
72         (ax_reg_mask): Call gdbarch_ax_pseudo_register_collect.
73         * mips-tdep.c (ax.h): New include.
74         (mips_ax_pseudo_register_collect,
75         mips_ax_pseudo_register_push_stack): New functions.
76         (mips_gdbarch_init): Set mips_ax_pseudo_register_collect and
77         mips_ax_pseudo_register_push_stack.
78
79 2010-12-28  Yao Qi  <yao@codesourcery.com>
80
81         * arm-tdep.c (arm_register_aliases): Remove sp, pc, and fp.
82
83 2010-12-28  Joel Brobecker  <brobecker@adacore.com>
84
85         * inf-child.c (inf_child_acknowledge_created_inferior): Delete.
86         (inf_child_target): Do not set t->to_acknowledge_created_inferior.
87         * inf-ptrace.c (inf_ptrace_create_inferior): Remove call to
88         target_acknowledge_created_inferior.
89         * inf-ttrace.c (inf_ttrace_him): Likewise.
90         * target.h (struct target_ops): Delete to_acknowledge_created_inferior
91         field.
92         (target_acknowledge_created_inferior): Delete.
93         * target.c (update_current_target): Remove setting of
94         to_acknowledge_created_inferior field. Do default value for that
95         field either.
96         (debug_to_acknowledge_created_inferior): Delete.
97         (setup_target_debug): Remove setting of
98         current_target.to_acknowledge_created_inferior.
99
100 2010-12-27  Pedro Alves  <pedro@codesourcery.com>
101
102         gdb/
103         * breakpoint.c (breakpoint_restore_shadows): When looking for the
104         location with the lowest address that overlaps the memory range we
105         want to restore shadows for, account for multiple locations at the
106         same address.
107
108 2010-12-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
109
110         Code cleanup - renaming.
111         * breakpoint.c: Use bl for `*bp_location' variables, blp_tmp for
112         `**bp_location' helper variables, b_tmp for `*breakpoint' helper
113         variables.
114
115 2010-12-27  Kevin Buettner  <kevinb@redhat.com>
116             Hui Zhu  <teawater@gmail.com>
117
118         * mips-tedp.c (mips_register_name): Add comments.
119
120 2010-12-23  Yao Qi  <yao@codesourcery.com>
121
122         * arm-tdep.c (thumb_analyze_prologue): Move some code ...
123         (EXTRACT_MOVW_MOVT_IMM_T): ... here.  New macro.
124         (EXTRACT_MOVW_MOVT_IMM_A): New macro.
125         (arm_analyze_load_stack_chk_guard): New.
126         (arm_skip_stack_protector): New.
127         (arm_skip_prologue): Adjust post_prologue_pc by
128         arm_skip_stack_protector.
129
130
131 2010-12-23  Yao Qi  <yao@codesourcery.com>
132
133         * arm-tdep.c (arm_gdbarch_init): Remove invoke to
134         set_gdbarch_deprecated_fp_regnum.
135
136 2010-12-22  Marc Khouzam  <marc.khouzam@ericsson.com>
137
138         * inferior.c (remove_inferior_command): Don't remove an active inferior.
139         * mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
140
141 2010-12-21  Tom Tromey  <tromey@redhat.com>
142
143         * thread.c (print_thread_info): Make a ui-out table in CLI mode.
144
145 2010-12-20  Yao Qi  <yao@codesourcery.com>
146
147         * arm-tdep.c (arm_register_reggroup_p): New.
148         (arm_gdbarch_init): Set arm_register_reggroup_p for hook
149         register_reggroup_p.
150
151 2010-12-20  Yao Qi  <yao@codesourcery.com>
152
153         * features/arm-core.xml:  Add attribute type to reg from r0 to r12.
154         * features/arm-with-iwmmxt.c: Regenerate.
155         * features/arm-with-neon.c: Regenerate.
156         * features/arm-with-vfpv2.c: Regenerate.
157         * features/arm-with-vfpv3.c: Regenerate.
158
159 2010-12-17  Marc Khouzam  <marc.khouzam@ericsson.com>
160
161         * mi/mi-main.c (mi_cmd_remove_inferior): Don't delete current inferior.
162         (get_other_inferior): New.
163
164 2010-12-17  Marc Khouzam  <marc.khouzam@ericsson.com>
165
166         * python/py-progspace.c (py_free_pspace): Obtain arch another
167         way to avoid dereferencing a null pointer.
168
169 2010-12-17  Michael Snyder  <msnyder@vmware.com>
170
171         * utils.c (do_my_cleanups): Comment fix-up.
172
173 2010-12-17  Kevin Buettner  <kevinb@redhat.com>
174
175         * mips-tdep.c (make_mips16_addr): New function.
176         (mips_elf_make_msymbol_special): Don't set the low bit in the
177         symbol's address.
178         (mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
179         indicating mips16 address, if present.
180         (mips_write_pc): Set bit indicating mips16 address when in a mips16
181         function.
182         (mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
183         but for each function pointer argument to inferior function call.
184
185 2010-12-17  Tom Tromey  <tromey@redhat.com>
186
187         * psympriv.h (struct partial_symtab) <readin>: Move field
188         earlier.
189
190 2010-12-16  Kevin Buettner  <kevinb@redhat.com>
191
192         * mips-tdep.c (mips_convert_register_float_case_p)
193         (mips_convert_register_gpreg_case_p): New functions.
194         (mips_convert_register_p): Invoke new functions above.
195         (mips_register_to_value): Add case for fetching value shorter
196         than 64 bits from a 64-bit register.
197         (mips_value_to_register): Add case for storing value shorter
198         than 64 bits into a 64-bit register.
199
200 2010-12-16  Joel BorggrĂ©n-Franck  <joel.borggren.franck@gmail.com>
201
202         * python/py-value.c (value_object_type) <tp_flags>: Add
203         Py_TPFLAGS_BASETYPE.
204
205 2010-12-16  Mike Frysinger  <vapier@gentoo.org>
206
207         * NEWS: Mention new sim --map-info flag.
208
209 2010-12-15  Doug Evans  <dje@google.com>
210
211         * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
212         "save gdb-index" command.
213
214 2010-12-15  Tom Tromey  <tromey@redhat.com>
215
216         * infrun.c (save_infcall_control_state): Handle the
217         exception-resume breakpoint.
218         (restore_infcall_control_state): Likewise.
219         (discard_infcall_control_state): Likewise.
220
221 2010-12-15  Kevin Buettner  <kevinb@redhat.com>
222
223         * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
224         cooked values that are being transferred to 64-bit raw registers.
225         (mips_pseudo_register_read): Revise to preserve symmetry with
226         mips_pseudo_register_write().
227
228 2010-12-15  Greg Watson  <g.watson@computer.org>
229
230         * f-exp.y (yylex): Check entire token against keywords.
231
232 2010-12-15  Doug Evans  <dje@google.com>
233
234         Rename "maint set python auto-load" to "set auto-load-scripts".
235         * NEWS: Mention it.
236         * python/py-auto-load.c (auto_load_scripts): Renamed from
237         gdbpy_auto_load.
238         (load_auto_scripts_for_objfile): Update.
239         (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
240         "set auto-load-scripts".
241
242 2010-12-14  Kevin Buettner  <kevinb@redhat.com>
243
244         * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
245         than unsigned, values in registers.
246
247 2010-12-14  Ken Werner  <ken.werner@de.ibm.com>
248
249         * valops.c (value_one): Use get_array_bounds to compute the number
250         of array elements instead of dividing the length of the array by the
251         length of the element types.
252         * valarith.c (value_complement, value_neg): Likewise.
253
254 2010-12-14  Joel Brobecker  <brobecker@adacore.com>
255
256         * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
257         and __fp_scr respectively throughout.
258         * configure.ac: Compile with -Dsiginfo=__siginfo if building with
259         Python using GCC on IRIX.
260         * configure: Regenerate.
261
262 2010-12-13  Kevin Buettner  <kevinb@redhat.com>
263
264         * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
265         when attaching, on the names in bkpt_names: _start, __start, and
266         main.
267
268 2010-12-12  Stan Shebs  <stan@codesourcery.com>
269
270         * value.c (value_of_internalvar): Add case for trace state
271         variables.
272
273 2010-12-12  Doug Evans  <dje@google.com>
274
275         * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
276         (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
277         section.  Delete members lines full_names.  Rename read_lines to
278         no_file_data.
279         (quick_file_names): New struct.
280         (hash_file_name_entry, eq_file_name_entry): New functions.
281         (delete_file_name_entry, create_quick_file_names_table): New functions.
282         (dwarf2_read_index): Initialize quick_file_names_table.
283         (dw2_get_file_names): Renamed from dw2_require_line_header.
284         Return pointer to quick_file_names entry.  All callers updated.
285         (dw2_get_real_path): Renamed from dw2_require_full_path.
286         Replace per_cu arg with pointer to quick_file_names entry.
287         All callers updated.
288         (dw2_free_cached_file_names): New function.
289         (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
290         (dwarf2_initialize_objfile): Initialize quick_file_names_table in
291         the OBJF_READNOW case.
292         (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
293
294 2010-12-12  Mark Kettenis  <kettenis@gnu.org>
295
296         * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
297         (mips64obsd_init_abi): Set long_double_bit and long_double_format.
298
299 2010-12-12  Mark Kettenis  <kettenis@gnu.org>
300
301         * sparc-tdep.c: Fix typo in comment.
302
303 2010-12-10  Doug Evans  <dje@google.com>
304
305         * dwarf2read.c: Whitespace cleanup, plus comment additions.
306         No code changes.
307
308 2010-12-10  Tom Tromey  <tromey@redhat.com>
309
310         * NEWS: Document exception-handling change.
311
312 2010-12-09  Marc Khouzam  <marc.khouzam@ericsson.com>
313
314         * mi/mi-parse.c (mi_parse): Wrong error message.
315
316 2010-12-09  Doug Evans  <dje@google.com>
317
318         * symfile.h (quick_symbol_functions): Clarify usage of
319         map_symbol_filenames.
320
321 2010-12-09  Tom Tromey  <tromey@redhat.com>
322
323         * mi/mi-parse.h (mi_parse): Update.
324         * mi/mi-parse.c (mi_parse_cleanup): New function.
325         (mi_parse): Add 'token' argument.  Throw exception on error.
326         * mi/mi-main.c (mi_print_exception): New function.
327         (mi_execute_command): Use mi_print_exception.  Catch exceptions
328         from mi_parse.
329
330 2010-12-09  Tom Tromey  <tromey@redhat.com>
331
332         PR c++/9593:
333         * thread.c (clear_thread_inferior_resources): Call
334         delete_longjmp_breakpoint.
335         * infrun.c (handle_inferior_event): Handle exception breakpoints.
336         (handle_inferior_event): Likewise.
337         (insert_exception_resume_breakpoint): New function.
338         (check_exception_resume): Likewise.
339         * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
340         * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
341         (step_1): Set thread's initiating frame.
342         (until_next_continuation): New function.
343         (until_next_command): Support exception breakpoints.
344         (finish_command_continuation): Delete longjmp breakpoint.
345         (finish_forward): Support exception breakpoints.
346         * gdbthread.h (struct thread_info) <initiating_frame>: New field.
347         * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
348         bp_exception_master>: New constants.
349         (struct bpstat_what) <is_longjmp>: New field.
350         (set_longjmp_breakpoint): Update.
351         * breakpoint.c (create_exception_master_breakpoint): New function.
352         (update_breakpoints_after_exec): Handle bp_exception_master.  Call
353         create_exception_master_breakpoint.
354         (print_it_typical): Handle bp_exception_master, bp_exception.
355         (bpstat_stop_status): Handle bp_exception_master.
356         (bpstat_what): Handle bp_exception_master, bp_exception,
357         bp_exception_resume.
358         (bptype_string): Likewise.
359         (print_one_breakpoint_location): Likewise.
360         (allocate_bp_location): Likewise.
361         (set_longjmp_breakpoint): Handle exception breakpoints.  Change
362         interface.
363         (delete_longjmp_breakpoint): Handle exception breakpoints.
364         (mention): Likewise.
365         (struct until_break_command_continuation_args) <thread_num>: New
366         field.
367         (until_break_command_continuation): Call
368         delete_longjmp_breakpoint.
369         (until_break_command): Support exception breakpoints.
370         (delete_command): Likewise.
371         (breakpoint_re_set_one): Likewise.
372         (breakpoint_re_set): Likewise.
373
374 2010-12-08  Doug Evans  <dje@google.com>
375
376         * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
377
378         * gdbtypes.c (check_typedef): Tweak comment.
379
380         PR symtab/12302
381         * dwarf2read.c (struct psymtab_cu_index_map): New struct.
382         (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
383         (struct addrmap_index_data): New struct.
384         (add_address_entry): Remove arg `pst', new args `start', `end'.
385         (add_address_entry_worker, write_address_map): New functions.
386         (write_psymtabs_to_index): Address table generation moved to
387         write_address_map.  Build a table mapping psymtab to CU index
388         to pass to it.
389
390         * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
391         name to perror.
392
393         * symfile.h (quick_symbol_functions): Clarify usage of
394         expand_symtabs_with_filename.
395         * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
396         comp units, ignore type units.
397
398         * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
399
400 2010-12-07  Doug Evans  <dje@google.com>
401
402         * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
403         gdb_realpath.
404
405         PR python/12227
406         * NEWS: Mention -data-directory.
407         * main.c (captured_main): Recognize -data-directory.
408
409 2010-12-06  Marc Khouzam  <marc.khouzam@ericsson.com>
410
411         * mi/mi-parse.c (mi_parse): Missing else.
412
413 2010-12-04  Masaki Muranaka  <monaka@monami-software.com>
414
415         * configure.tgt: Accept microblaze*-*-linux* for linux target
416         and microblaze*-*-* for  as target.
417
418 2010-12-02  Keith Seitz  <keiths@redhat.com>
419
420         * linespec.c (find_method): Move name canonicalization outside
421         the loop.
422         Be paranoid and use a cleanup.
423
424 2010-12-01  Doug Evans  <dje@google.com>
425
426         * dwarf2read.c (save_gdb_index_command): Add comment.
427
428 2010-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
429
430         * valops.c (value_assign): Returned value is never lazy.  If a
431         C++ class type is returned, fix incorrect enclosing type / embedded
432         offset.  If internal variable is returned, allocate new internalvar
433         value using value_of_internalvar.
434
435         * NEWS: Document changes in behavior of "print x = 0" and similar
436         expressions.
437
438 2010-11-29  Doug Evans  <dje@google.com>
439
440         * python/lib/gdb/printing.py (register_pretty_printer): Change
441         printer-name:subprinter-name to printer-name;subprinter-name.
442         * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
443         Ditto.
444         (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
445
446 2010-11-29  Tom Tromey  <tromey@redhat.com>
447
448         * opencl-lang.c (lval_func_check_synthetic_pointer): New
449         function.
450         * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
451         New fields.
452         (value_bits_synthetic_pointer): Declare.
453         * value.c (value_bits_synthetic_pointer): New function.
454         * valprint.c (valprint_check_validity): Handle synthetic
455         pointers.
456         * valops.c (value_ind): Use new 'indirect' lval_funcs method.
457         * valarith.c (value_ptradd): Use set_value_component_location.
458         * p-valprint.c (pascal_object_print_value_fields): Handle
459         synthetic pointers.
460         * jv-valprint.c (java_print_value_fields): Handle synthetic
461         pointers.
462         * dwarf2read.c (dwarf_stack_op_name): Add
463         DW_OP_GNU_implicit_pointer.
464         (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
465         arguments.  Handle location lists.
466         (fill_in_loclist_baton): New function.
467         (dwarf2_symbol_mark_computed): Use it.
468         * dwarf2loc.h (dwarf2_find_location_expression): Declare.
469         (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
470         arguments.
471         * dwarf2loc.c (dwarf2_find_location_expression): Rename from
472         find_location_expression.  No longer static.  Update all callers.
473         (dwarf_expr_frame_pc): New function.
474         (per_cu_dwarf_call): Add get_frame_pc, baton arguments.  Update
475         all callers.
476         (struct piece_closure) <per_cu>: New field.
477         (allocate_piece_closure): Add per_cu argument.
478         (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
479         (check_pieced_value_bits): Remove validity argument, add check_for
480         argument.  Handle DWARF_VALUE_IMPLICIT_POINTER.
481         (check_pieced_value_validity, check_pieced_value_invalid):
482         Update.
483         (check_pieced_synthetic_pointer): New function.
484         (get_frame_address_in_block_wrapper): New function.
485         (indirect_pieced_value): New function.
486         (pieced_value_funcs): Update.
487         (invalid_synthetic_pointer): New function.
488         (dwarf2_evaluate_loc_desc_full): Rename from
489         dwarf2_evaluate_loc_desc.  Add byte_offset argument.
490         (dwarf2_evaluate_loc_desc): Rewrite.
491         (dwarf2_loc_desc_needs_frame): Set new field on context.
492         (get_ax_pc): New function.
493         (disassemble_dwarf_expression): Handle
494         DW_OP_GNU_implicit_pointer.
495         * dwarf2expr.h (enum dwarf_value_location)
496         <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
497         (struct dwarf_expr_context) <get_frame_pc>: New field.
498         (struct dwarf_expr_piece) <v.ptr>: New field.
499         * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
500         (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
501         * dwarf2-frame.c (no_get_frame_pc): New function.
502         (execute_stack_op): Set new field on context.
503         * cp-valprint.c (cp_print_value_fields): Handle synthetic
504         pointers.
505
506 2010-11-29  Phil Muldoon  <pmuldoon@redhat.com>
507
508         PR python/12199
509
510         * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
511
512 2010-11-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
513
514         Fix step_resume_breakpoint unsaved during an infcall.
515         * gdbthread.h (struct thread_control_state): Move here field
516         step_resume_breakpoint ...
517         (struct thread_info): ... from here.
518         * infrun.c (save_infcall_control_state): Reset
519         control.step_resume_breakpoint to NULL.
520         (restore_infcall_control_state, discard_infcall_control_state): Delete
521         control.step_resume_breakpoint.
522         * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
523         the moved field.
524
525 2010-11-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
526
527         Rename and move inferior_thread_state and inferior_status.
528         * gdbthread.h (struct thread_control_state): New struct, move fields
529         step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
530         trap_expected, proceed_to_finish, in_infcall, step_over_calls,
531         stop_step and stop_bpstat here from struct thread_info.
532         (struct thread_suspend_state): New struct, move field stop_signal here
533         from struct thread_info.
534         (struct thread_info): Move the fields above from this struct.
535         * inferior.h: Move the inferior_thread_state and inferior_status
536         declarations comment to their definitions at infrun.c.
537         (struct inferior_control_state): New struct, move field stop_soon from
538         struct inferior here.
539         (struct inferior_suspend_state): New empty struct.
540         (struct inferior): New fields control and suspend.  Move out field
541         stop_soon.
542         * infrun.c (struct inferior_thread_state): Rename to ...
543         (infcall_suspend_state): ... here.  Replace field stop_signal by
544         fields thread_suspend and inferior_suspend.
545         (save_inferior_thread_state): Rename to ...
546         (save_infcall_suspend_state): ... here.  New variable inf.  Update the
547         code for new fields.
548         (restore_inferior_thread_state): Rename to ...
549         (restore_infcall_suspend_state): ... here.  New variable inf.  Update
550         the code for new fields.
551         (do_restore_inferior_thread_state_cleanup): Rename to ...
552         (do_restore_infcall_suspend_state_cleanup): ... here.
553         (make_cleanup_restore_inferior_thread_state): Rename to ...
554         (make_cleanup_restore_infcall_suspend_state): ... here.
555         (discard_inferior_thread_state): Rename to ...
556         (discard_infcall_suspend_state): ... here.
557         (get_inferior_thread_state_regcache): Rename to ...
558         (get_infcall_suspend_state_regcache): ... here.
559         (struct inferior_status): Rename to ...
560         (struct infcall_control_state): ... here.  Replace fields
561         step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
562         trap_expected, proceed_to_finish, in_infcall, step_over_calls,
563         stop_step, stop_bpstat and stop_soon by fields thread_control and
564         inferior_control.
565         (save_inferior_status): Rename to ...
566         (save_infcall_control_state): ... here.  Update the code for new
567         fields.
568         (restore_inferior_status): Rename to ...
569         (restore_infcall_control_state): ... here.  Update the code for new
570         fields.
571         (do_restore_inferior_status_cleanup): Rename to ...
572         (do_restore_infcall_control_state_cleanup): ... here.
573         (make_cleanup_restore_inferior_status): Rename to ...
574         (make_cleanup_restore_infcall_control_state): ... here.
575         (discard_inferior_status): Rename to ...
576         (discard_infcall_control_state): ... here.
577         * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
578         exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
579         inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
580         mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
581         solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
582         references to the moved fields and renamed functions.
583
584 2010-11-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
585
586         * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
587         the comment.
588         (save_inferior_thread_state): Reset tp->stop_signal.
589
590 2010-11-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
591
592         * infcall.c (call_function_by_hand): Remove variable
593         caller_state_cleanup.
594
595 2010-11-25  Marc Khouzam  <marc.khouzam@ericsson.com>
596
597         PR breakpoints/12217
598
599         * breakpoint.c (is_marker_spec): Check for NULL.
600
601 2010-11-25  Pedro Alves  <pedro@codesourcery.com>
602
603         * breakpoint.h: No longer include python.h or python-internal.h.
604         (struct breakpoint_object): Forward declare.
605         * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
606         * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
607         * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
608         PyObject pointer.
609         (gdbpy_breakpoint_created): Remove casts around py_bp_object
610         accesses.
611
612 2010-11-24  Joel Brobecker  <brobecker@adacore.com>
613
614         * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
615         only if HAVE_ELF is defined.
616
617 2010-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
618
619         Code cleanup.
620         * infrun.c (struct inferior_status) <stepping_over_breakpoint>
621         (save_inferior_status) <stepping_over_breakpoint>
622         (restore_inferior_status) <stepping_over_breakpoint>: Rename to
623         trap_expected.
624         (struct inferior_status) <step_resume_break_address>: Remove.
625
626 2010-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
627
628         Code cleanup.
629         * infrun.c (struct inferior_status, save_inferior_status)
630         (restore_inferior_status): Group and reorder the fields, comment their
631         groups.
632
633 2010-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
634
635         Code cleanup.
636         * dictionary.c
637         (struct dict_vector) <iter_match_first, iter_match_next>
638         (iter_match_first_hashed, iter_match_next_hashed)
639         (iter_match_first_linear, iter_match_next_linear)
640         (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
641         (iter_match_next_hashed, iter_match_first_linear)
642         (iter_match_next_linear): Use symbol_compare_ftype.
643         * dictionary.h: Include symfile.h.
644         (dict_iter_match_first, dict_iter_match_next): Use
645         symbol_compare_ftype.
646         * dwarf2read.c (dw2_map_matching_symbols): Likewise.
647         * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
648         (map_matching_symbols_psymtab): Likewise.
649         * symfile.h (symbol_compare_ftype): New typedef.
650         (struct quick_symbol_functions) <map_matching_symbols): Use
651         symbol_compare_ftype.
652
653 2010-11-23  Tom Tromey  <tromey@redhat.com>
654
655         * configure: Rebuild.
656         * configure.ac (READLINE_TEXI_INCFLAG): New subst.
657
658 2010-11-19  Tom Tromey  <tromey@redhat.com>
659
660         * Makefile.in (SUBDIRS): Add doc.
661         * configure: Rebuild.
662         * configure.ac: Don't configure in doc.  Create doc/Makefile.
663
664 2010-11-23  Phil Muldoon  <pmuldoon@redhat.com>
665
666         PR python/12212
667
668         * python/py-inferior.c (find_thread_object): Check if PIDGET
669         returns 0.
670
671 010-11-22  Joel Brobecker  <brobecker@adacore.com>
672
673         * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
674
675 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
676
677         * ada-lang.c (ada_to_fixed_type): Expand function documentation.
678         Return the original type if the main type portions match rather
679         than when the type themselves match.
680
681 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
682
683         * ada-lang.c (ada_template_to_fixed_record_type_1):
684         For dynamic fields, check the field size against the maximum
685         object size.
686
687 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
688
689         * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
690         function.
691         (mips_irix_n32_stack_tramp_frame): New static global.
692         (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
693         list of unwinder.
694
695 2010-11-22  Jerome Guitton  <guitton@adacore.com>
696
697         * ada-tasks.c (get_tcb_types_info): Use C lookups to get
698         ATCB symbols.
699
700 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
701
702         * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
703         if type1 is a typedef.
704
705 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
706
707         * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
708         "_finalizer" to the list.
709
710 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
711
712         * symfile.c: Remove all "#if 0"/"#endif" blocks.
713
714 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
715
716         * symfile.c: Add missing second space after period in various comments.
717
718 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
719
720         * ada-typeprint.c (print_array_type): Fix formatting in comment.
721         (print_selected_record_field_types): Fix formatting in function
722         documentation.
723
724 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
725
726         * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
727         in name of "show ravenscar" prefix command name.
728
729 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
730
731         * ravenscar-thread.c (show_ravenscar_task_switching_command):
732         Add missing '\n' in output.
733
734 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
735
736         * ravenscar-thread.c (running_thread_name): Change value.
737         (read_thread_id): Remove advance declaration.
738         (get_running_thread_msymbol): New function.
739         (has_ravenscar_runtime): Use get_running_thread_msymbol to
740         compute msym_running_thread.
741         (get_running_thread_id): Renames read_thread_id. Slight modifications
742         to not take any argument anymore, using get_running_thread_msymbol
743         to determine which symbol to use instead.
744         (ravenscar_running_thread): Use get_running_thread_id instead of
745         read_thread_id.
746
747 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
748
749         * ravenscar-sparc-thread.c (supply_register_at_address):
750         Fix passing of buf in call to regcache_raw_supply.
751
752 2010-11-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
753
754         * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
755
756 2010-11-22  Tom Tromey  <tromey@redhat.com>
757
758         * Makefile.in (.PRECIOUS): Reference ada-lex.c.
759
760 2010-11-19  Keith Seitz  <keiths@redhat.com>
761
762         * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
763         Remove extraneous '/' after $(DESTDIR).
764         (PYTHON_INSTALL_DIR): Likewise.
765
766 2010-11-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
767
768         Fix stale memory references.
769         * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
770         xfree, new comment.
771
772 2010-11-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
773             Tom Tromey  <tromey@redhat.com>
774
775         * Makefile.in (.y.c): Directly create $@ from YLWRAP.
776         (.PHONY): Remove for .y outputs.
777
778 2010-11-19  Will Drewry  <wad@google.com>
779             Tavis Ormandy  <taviso@google.com>
780             Jan Kratochvil  <jan.kratochvil@redhat.com>
781
782         * dwarf2read.c (decode_locdesc): Enforce location description stack
783         boundaries.
784
785 2010-11-18  Pierre Muller  <muller@ics.u-strasbg.fr>
786
787         * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
788         instruction is found.
789
790 2010-11-17  Tom Tromey  <tromey@redhat.com>
791
792         * value.c (value_entirely_optimized_out): Check the
793         'check_any_valid' field.
794
795 2010-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
796
797         * ada-lang.c (modify_general_field): Remove.
798         (make_array_descriptor): Replace all modify_general_field calls by
799         modify_field.
800         * value.c (modify_field): Update comment.  New variable bytesize.
801         Normalize BITPOS.  Initialize BYTESIZE, use it.
802
803 2010-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
804
805         * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
806         elements after xfree.
807
808 2010-11-16  Tom Tromey  <tromey@redhat.com>
809
810         * gdb-add-index.sh: Really remove.
811
812 2010-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
813
814         Code cleanup.
815         * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
816         (init_one_comp_unit): ... this one.
817         (prepare_one_comp_unit): New prototype.
818         (dw2_require_line_header, process_psymtab_comp_unit): Use
819         init_one_comp_unit.
820         (process_psymtab_comp_unit): Use prepare_one_comp_unit.
821         (load_partial_comp_unit): Remove variable attr.  Use
822         init_one_comp_unit with xmalloc.  Use prepare_one_comp_unit.
823         (load_full_comp_unit): Use init_one_comp_unit with xmalloc.  Use
824         prepare_one_comp_unit.
825         (read_signatured_type): Remove variable attr.  Use init_one_comp_unit.
826         Use prepare_one_comp_unit.
827         (alloc_one_comp_unit): Rename to ...
828         (init_one_comp_unit): ... here and remove there calloc, new parameter
829         cu.
830         (prepare_one_comp_unit): New function.
831
832 2010-11-14  Pierre Muller  <muller@ics.u-strasbg.fr>
833
834         * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
835         possible used of uninitialized variable.
836
837 2010-11-12  Nathan Froyd  <froydnj@codesourcery.com>
838
839         * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
840         (rs6000_gdbarch_init): Call it.
841
842 2010-11-12  Nathan Froyd  <froydnj@codesourcery.com>
843
844         * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
845         instructions if debugging an E500 binary.
846
847 2010-11-12  Tom Tromey  <tromey@redhat.com>
848
849         * varobj.c (value_get_print_value): Rearrange.  Pass stream to
850         apply_varobj_pretty_printer.
851         * c-lang.c: Include exceptions.h.
852         (c_get_string): Throw MEMORY_ERROR when appropriate.
853         * python/py-prettyprint.c (enum string_repr_result): New.
854         (print_stack_unless_memory_error): New function.
855         (print_string_repr): Change return type.  Use
856         print_stack_unless_memory_error.
857         (print_children): Use print_stack_unless_memory_error.
858         (apply_val_pretty_printer): Update.  Don't print children if
859         string representation threw an exception.
860         (apply_varobj_pretty_printer): Add 'stream' argument.  Use
861         print_stack_unless_memory_error.
862         * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
863         globals.
864         (_initialize_python): Initialize them.
865         * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
866         gdbpy_convert_exception.
867         (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
868         (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
869         (gdbpy_convert_exception): Declare.
870         (apply_varobj_pretty_printer): Update.
871         * python/py-utils.c (gdbpy_convert_exception): New function.
872
873 2010-11-12  Marc Khouzam  <marc.khouzam@ericsson.com>
874
875         * mi/mi-main.c (mi_cmd_target_detach): Accept new
876         thread-group id format.
877
878 2010-11-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
879
880         * spu-tdep.c (spu_catch_start): Fix compilation error typo.
881
882 2010-11-11  Phil Muldoon  <pmuldoon@redhat.com>
883
884         * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
885         NULL.
886         (BPPY_SET_REQUIRE_VALID): Ditto.
887         (bpnum_is_valid): Delete function.
888         (bppy_get_visibility): New function.
889         (bppy_new): Parse for, and validate internal keyword.  Pass
890         internal keyword to breakpoint or watchpoint functions.
891         (build_bp_list): New function.
892         (gdbpy_breakpoints): Rewrite.  Use build_bp_list and
893         iterate_over_breakpoints.
894         (gdbpy_breakpoint_created): Rewrite.  Do not store breakpoints in a
895         look-aside vector.
896         (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
897         to internal breakpoint chain.
898
899         * breakpoint.c (set_breakpoint_number): New function.
900         (breakpoint_1): Check if breakpoint number is more than zero.
901         (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
902         (create_breakpoint_sal): Take a new parameter called internal.
903         Call set_breakpoint_number with internal parameter.  Do not
904         mention internal breakpoints.  All callers updated.
905         (create_breakpoint): Ditto.
906         (create_breakpoints_sal): Ditto.
907         (watch_command_1): Ditto.
908         (watch_command_wrapper): Take a new parameter called internal.
909         All callers updated.
910         (rwatch_command_wrapper): Ditto.
911         (awatch_command_wrapper): Ditto.
912         (save_breakpoints): Update breakpoint save condition check.
913         (iterate_over_breakpoints): New function.
914         * breakpoint.h: Add conditional python includes.  Add py_bp_object
915         and comment to struct breakpoint.  Update all callers.
916         * defs.h: Add PyObject definition for GDB builds without Python.
917
918 2010-11-10  Doug Evans  <dje@google.com>
919
920         * python/lib/gdb/command/pretty_printers.py
921         (do_enable_pretty_printer_1): Handle printer.subprinters is None.
922
923         * value.c (set_value_enclosing_type): Renamed from
924         value_change_enclosing_type.  All callers updated.
925         * value.h (set_value_enclosing_type): Update.
926         * valops.c (value_full_object): Always return a copy if we need to
927         make changes to the input value.
928
929 2010-11-09  Pedro Alves  <pedro@codesourcery.com>
930
931         * breakpoint.c (watch_command_1): Get a pointer of the lazy
932         version of the expression's value, even if reading the value from
933         memory fails.  When creating a -location watchpoint, get the
934         value's address from the lazy value pointer.
935
936 2010-11-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
937
938         * infrun.c (restore_inferior_thread_state): Use
939         discard_inferior_thread_state to free the data.
940         (discard_inferior_thread_state): xfree also siginfo_data.
941
942 2010-11-05  Doug Evans  <dje@google.com>
943
944         Make gdb.parameter("directories") work.
945         New command "set directories".
946         * NEWS: Document them.
947         * source.c (set_directories_command): New function.
948         (show_directories_1): Renamed from show_directories.
949         All callers updated.
950         (show_directories_command): New function.
951         (_initialize_source): Install "directories" as a set/show
952         variable instead of just a show command.
953
954 2010-11-05  Ken Werner  <ken.werner@de.ibm.com>
955
956         * NEWS: Mention OpenCL C language support.
957         * Makefile.in (SFILES): Add opencl-lang.c.
958         (COMMON_OBS): Add opencl-lang.o.
959         * opencl-lang.c: New File
960         * defs.h (enum language): Add language_opencl.
961         * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
962         IBM XL C OpenCL compiler.
963         * c-lang.h: Include "parser-defs.h".
964         (evaluate_subexp_c): Declare.
965         * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
966         (c_op_print_tab): Add declaration.
967         * eval.c (binop_promote): Handle language_opencl.
968         * c-exp.y: Lookup the primitive types instead of referring to the
969         builtins.
970
971 2010-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
972
973         Fix configure --enable-plugins --without-python.
974         * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
975         * configure: Regenerate.
976
977 2010-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
978
979         * solib.c (solib_read_symbols): Call exception_fprintf even without
980         FROM_TTY.  Print also so->so_name.
981
982 2010-11-04  Sami Wagiaalla  <swagiaal@redhat.com>
983
984         * gdbtypes.h (struct rank): Created subrank.
985         * gdbtypes.c: Initialized subrank for all
986         'BADNESS' constants.
987         (distance_to_ancestor): New function.
988         (is_ancestor): Use distance_to_ancestor.
989         (is_public_ancestor): Ditto.
990         (sum_ranks): Handle subrank.
991         (compare_ranks): Ditto.
992         (rank_one_type): Subrank base conversions.
993
994 2010-11-04  Sami Wagiaalla  <swagiaal@redhat.com>
995
996         * gdbtypes.h: Create struct rank.
997         Convert all 'BADNESS' macros to const struct rank declarations.
998         (sum_ranks): New function.
999         (compare_ranks): New function.
1000         * valops.c (find_oload_champ): Updated.
1001         (classify_oload_match): Use compare_ranks.
1002         Improved comments.
1003         (compare_parameters): Use compare_ranks.
1004         * gdbtypes.c: Initialize 'BADNESS' constants.
1005         (sum_ranks): New function.
1006         (compare_ranks): New function.
1007         (compare_badness): Use compare_ranks.
1008         (rank_function): Use global constants instead of literals.
1009         (rank_one_type): Ditto.
1010         Return struct rank.
1011         Use sum_ranks.
1012
1013 2010-11-04  Doug Evans  <dje@google.com>
1014
1015         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
1016         (find_pretty_printer): Fix comments.
1017
1018 2010-11-04  Hui Zhu  <teawater@gmail.com>
1019
1020         * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
1021
1022 2010-11-03  Joel Brobecker  <brobecker@adacore.com>
1023
1024         * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
1025         and `len' declaration and computation inside block where they
1026         are being used.
1027
1028 2010-11-03  Joel Brobecker  <brobecker@adacore.com>
1029
1030         * valprint.c (val_print_array_elements): Put back handling of
1031         empty arrays.
1032
1033 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
1034
1035         * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
1036         DIE and set the length of the type.
1037         * gdbtypes.h (get_array_bounds): Move here from valprint.h.
1038         * gdbtypes.c (get_array_bounds): Move here from valprint.c and
1039         return 0 if the corresponding bounds of the type are undefined.
1040         * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
1041         * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
1042         (val_print_array_elements): Use get_array_bounds to compute the number
1043         of array elements instead of dividing the length of the array by the
1044         length of the element types.
1045         * valarith.c (vector_binop): Likewise.
1046         * valops.c (value_cast): Likewise.
1047         * c-valprint.c (c_val_print): Likewise.
1048         * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1049
1050 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
1051
1052         * valarith.c (value_pos, value_neg, value_complement): Handle
1053         vector types.
1054         * valops.c (value_one): Likewise.
1055
1056 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
1057
1058         * value.h (value_non_lval): Declare.
1059         * value.c (value_non_lval): New function.
1060         * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
1061         UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
1062         non-lvalue.
1063
1064 2010-11-02  Doug Evans  <dje@google.com>
1065
1066         New python module gdb.printing, and new commands info pretty-printer,
1067         enable pretty-printer, disable pretty-printer.
1068         * NEWS: Mention them.
1069         * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
1070         gdb/command/__init__.py, gdb/command/pretty_printers.py.
1071         * python/lib/gdb/__init__.py: Install pretty-printer commands.
1072         * python/lib/gdb/printing.py: New file.
1073         * python/lib/gdb/command/__init__.py: New file.
1074         * python/lib/gdb/command/pretty_printers.py: New file.
1075
1076 2010-11-02  Tom Tromey  <tromey@redhat.com>
1077
1078         * NEWS: Mention Guile removal.
1079         * defs.h (enum language) <language_scm>: Remove.
1080         * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
1081         scm-valprint.c.
1082         (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
1083         (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
1084         * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
1085         Remove.
1086
1087 2010-11-02  Doug Evans  <dje@google.com>
1088
1089         * top.c: #include "python/python.h".
1090         (gdb_init): Add a comment regarding initialize_all_files.
1091         Call finish_python_initialization at the end.
1092         * python/python.h (finish_python_initialization): Declare.
1093         * python/python.c (finish_python_initialization): New function.
1094         (_initialize_python): Move python-implemented initialization there
1095         and call it.
1096         (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
1097
1098 2010-11-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1099
1100         Revert:
1101         2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1102                     Pedro Alves  <pedro@codesourcery.com>
1103         * gdbthread.h (currently_stepping): New declaration.
1104         * infrun.c (currently_stepping): Remove the forward declaration.
1105         (currently_stepping): Make it global.
1106         * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1107         variables tp and step, initialized them.  Pass STEP to to_resume.
1108         Print also possibly "PTRACE_SINGLESTEP" if STEP.  Initialize LP->STEP.
1109         * remote.c (currently_stepping_callback): New.
1110         (remote_vcont_resume)
1111         <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1112         New variable tp.  Call currently_stepping_callback and step such
1113         thread.
1114
1115 2010-11-01  Hui Zhu  <teawater@gmail.com>
1116
1117         * tracepoint.c (tfile_xfer_partial): Change lma to vma.
1118
1119 2010-10-28  Hui Zhu  <teawater@gmail.com>
1120
1121         * tracepoint.c (trace_save): Change utp->actions to
1122         utp->step_actions.
1123
1124 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
1125
1126         * (_FILE_OFFSET_BITS): Fix typo in comment.
1127
1128 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
1129
1130         * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
1131         (PyEval_InitThreads): Remove duplicate. Define as nothing.
1132         (PyEval_ReleaseLock): Define as nothing.
1133
1134 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
1135
1136         * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
1137         by call to FILENAME_CMP.
1138
1139 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
1140
1141         * dictionary.c (dict_hash): Move assignment out of if condition.
1142
1143 2010-10-22  Jie Zhang  <jie@codesourcery.com>
1144
1145         * Makefile.in (install): Remove dependency of install-only and
1146         recursively invoke make for install-only.
1147         * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
1148         (install): Pass FLAGS_TO_PASS when recursively make install-only.
1149
1150 2010-10-20  Hui Zhu  <teawater@gmail.com>
1151
1152         * tracepoint.c (tfile_get_traceframe_address): Call
1153         extract_signed_integer.
1154         (tfile_trace_find): Call extract_signed_integer and
1155         extract_unsigned_integer.  Change data_size to unsigned int.
1156         (tfile_fetch_registers): Call extract_unsigned_integer.
1157         (tfile_xfer_partial): Ditto.
1158         (tfile_get_trace_state_variable_value): Call
1159         extract_signed_integer and extract_unsigned_integer.
1160
1161 2010-10-20  Vladimir Prus  <vladimir@codesourcery.com>
1162
1163         * remote.c (remote_get_threadlist): If we got empty
1164         response, bail out immediately, and don't emit any
1165         warnings.
1166
1167 2010-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
1168
1169         * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
1170         for "mov pc, REG" as well.
1171         (thumb_instruction_changes_pc): Likewise.
1172
1173 2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>
1174
1175          PR C++/11500:
1176         * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
1177         * eval.c (evaluate_subexp_standard): Check for overload of
1178         'operator->'.
1179         * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
1180         (value_x_unop): Ditto.
1181         * valops.c: Include "exceptions.h".
1182         (find_overload_match): Throw NOT_FOUND_ERROR.
1183         (value_struct_elt): Ditto.
1184
1185 2010-10-19  Tom Tromey  <tromey@redhat.com>
1186
1187         * python/py-cmd.c (cmdpy_function): Unreference exception state.
1188
1189 2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>
1190
1191         * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
1192         * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
1193         for conversion.
1194         Make all other conversions illegal.
1195
1196 2010-10-18  Doug Evans  <dje@google.com>
1197
1198         * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
1199         assumptions of when this case happens.  Print "<unnamed typedef>".
1200
1201 2010-10-18  Tom Tromey  <tromey@redhat.com>
1202
1203         * valprint.c (val_print_string): Pass 'encoding' to
1204         LA_PRINT_STRING.
1205
1206 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1207
1208         Fix the `stopped language detection' testcase for gcc-4.5.
1209         * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
1210         * symfile.c (set_initial_language): Move variable filename to a more
1211         inner block.  Prefer LANGUAGE_OF_MAIN.
1212         * symtab.c (language_of_main): New variable.
1213         (set_main_name): Always reset LANGUAGE_OF_MAIN.
1214         * symtab.h (language_of_main): New declaration.
1215
1216 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1217             Pedro Alves  <pedro@codesourcery.com>
1218
1219         * gdbthread.h (currently_stepping): New declaration.
1220         * infrun.c (currently_stepping): Remove the forward declaration.
1221         (currently_stepping): Make it global.
1222         * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1223         variables tp and step, initialized them.  Pass STEP to to_resume.
1224         Print also possibly "PTRACE_SINGLESTEP" if STEP.  Initialize LP->STEP.
1225         * remote.c (currently_stepping_callback): New.
1226         (remote_vcont_resume)
1227         <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1228         New variable tp.  Call currently_stepping_callback and step such
1229         thread.
1230
1231 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1232
1233         * infrun.c (follow_exec): Replace symbol_file_add_main by
1234         symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1235         breakpoint_re_set.
1236         * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1237         clear_symtab_users.
1238         * objfiles.c (free_all_objfiles): Likewise.
1239         * remote-m32r-sdi.c (m32r_load): Likewise.
1240         * solib-som.c (som_solib_create_inferior_hook): Likewise.
1241         * symfile.c (new_symfile_objfile): New comment for add_flags.  Call
1242         clear_symtab_users with ADD_FLAGS.
1243         (reread_symbols): Use parameter 0 for clear_symtab_users.
1244         (clear_symtab_users): New parameter add_flags.  Do not call
1245         breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1246         (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1247         * symtab.h (clear_symtab_users): New parameter add_flags.
1248
1249 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1250
1251         Fix GCC false warning.
1252         * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1253
1254 2010-10-16  Pierre Muller  <muller@ics.u-strasbg.fr>
1255
1256         * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1257         display of type of method arguments.
1258
1259 2010-10-15  Tom Tromey  <tromey@redhat.com>
1260
1261         PR python/11948:
1262         * varobj.c (value_get_print_value): Use val_print_string to print
1263         lazy strings.
1264         * python/py-prettyprint.c (print_string_repr): Use
1265         val_print_string to print lazy strings.  Fix cleanup logic.
1266         (print_children): Likewise.
1267         * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1268         * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1269         Change return type to 'void', add 'addr' argument.
1270         * value.h (val_print_string): Update.
1271         * valprint.c (val_print_string): Add 'encoding' argument.
1272         * printcmd.c (print_formatted): Update.
1273         * p-valprint.c (pascal_val_print): Update.
1274         * m2-valprint.c (print_unpacked_pointer): Update.
1275         (m2_print_array_contents): Likewise.
1276         * jv-valprint.c (java_value_print): Update.
1277         * f-valprint.c (f_val_print): Update.
1278         * c-valprint.c (c_val_print): Update.
1279         * auxv.c (fprint_target_auxv): Update.
1280
1281 2010-10-15  Doug Evans  <dje@google.com>
1282             Jan Kratochvil  <jan.kratochvil@redhat.com>
1283
1284         PR exp/12117
1285         * gdbtypes.c (check_typedef): Clean up function comment.
1286         Keep track of instance flags as we strip typedefs and create a new
1287         type to preserve them if necessary.
1288         * gdbtypes.h (type) <instance_flags>: Extend the comment.
1289
1290 2010-10-15  Pierre Muller  <muller@ics.u-strasbg.fr>
1291
1292         * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1293
1294 2010-10-14  Sami Wagiaalla  <swagiaal@redhat.com>
1295
1296         * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1297         * gdbtypes.c (rank_one_type): Move type comparison code out of here
1298         to...
1299         (types_equal): ...here. And changed it as follows:
1300         Outside of typedefs type must be of the same TYPE_CODE.
1301         When compairing two pointers or references they are equal if their
1302         targets are equal.
1303         Correct pointer conversions.
1304
1305 2010-10-14  Pierre Muller  <muller@ics.u-strasbg.fr>
1306
1307         * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1308         having fields without names.
1309
1310 2010-10-13  Tom Tromey  <tromey@redhat.com>
1311
1312         * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1313
1314 2010-10-13  Doug Evans  <dje@google.com>
1315
1316         New python module gdb.types.
1317         * NEWS: Document it.
1318         * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1319         * python/lib/gdb/types.py: New file.
1320
1321         * c-typeprint.c: Whitespace cleanup.
1322         (cp_type_print_method_args): Remove unnecessary forward decl.
1323         (cp_type_print_derivation_info): Ditto.
1324         (c_type_print_varspec_prefix): Mark as static at definition.
1325         (c_type_print_modifier): Fix arg descriptions.
1326
1327 2010-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1328
1329         * python/py-breakpoint.c (bppy_set_condition): New comment.
1330         * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1331         failed PyUnicode_Decode.
1332         (cmdpy_completer): Skip element for failed
1333         python_string_to_host_string.
1334         (cmdpy_init): Return -1 on failed python_string_to_host_string.
1335         * python/py-frame.c (frapy_read_var): Extend the function comment.
1336         * python/py-function.c (fnpy_init): Return -1 on failed
1337         python_string_to_host_string.
1338         * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1339         the function comment.
1340         (infpy_search_memory): Extend the function comment.  Remove the
1341         PyErr_SetString call on already set error state.
1342         * python/py-param.c (set_parameter_value): Extend the function
1343         comment.  Return -1 on failed python_string_to_host_string, twice.
1344         (set_attr): Extend the function comment.
1345         (compute_enum_values): Extend the function comment.  New variable
1346         back_to.  Protect self->enumeration by BACK_TO cleanups.  Return 0 on
1347         failed python_string_to_host_string.
1348         (get_doc_string): Call gdbpy_print_stack on failed
1349         python_string_to_host_string.
1350         (parmpy_init): Extend the function comment.
1351         * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1352         (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1353         failed python_string_to_host_string.
1354         * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1355         (valpy_binop, valpy_richcompare): Extend the function comment.
1356         * python/python.c
1357         (struct python_env) <error_type, error_value, error_traceback>: New
1358         fields.
1359         (restore_python_env): Handle PyErr_Occurred.  Call PyErr_Restore.
1360         (ensure_python_env): Call PyErr_Fetch.
1361         * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1362         failed convert_value_from_python.
1363         (value_get_print_value): Call gdbpy_print_stack on failed
1364         python_string_to_target_python_string.
1365
1366 2010-10-12  Tom Tromey  <tromey@redhat.com>
1367
1368         * python/py-prettyprint.c (search_pp_list): Fix error checking.
1369
1370 2010-10-12  Sami Wagiaalla  <swagiaal@redhat.com>
1371
1372         * gdbtypes.c (do_is_ancestor): New function.
1373         (is_ancestor): Use do_is_ancestor.
1374         (is_public_ancestor): Use do_is_ancestor.
1375
1376 2010-10-12  Pierre Muller  <muller@ics.u-strasbg.fr>
1377
1378         * ser-go32.c (struct dos_ops): Add missing fdopen field.
1379
1380 2010-10-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1381
1382         * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1383
1384 2010-10-11  Doug Evans  <dje@google.com>
1385
1386         * c-typeprint.c (c_type_print_modifier): Add note that this prints
1387         the address space id too.
1388
1389 2010-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1390
1391         Fix attaching to re-prelinked executables on ppc64.
1392         * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1393         initialize it, try to adjust FILESZ field by it.
1394
1395 2010-10-08  Daniel Jacobowitz  <dan@codesourcery.com>
1396
1397         * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1398         messages if info_verbose.
1399
1400 2010-10-08  Ken Werner  <ken.werner@de.ibm.com>
1401
1402         * valops.c (value_cast): Handle vector types.
1403         * valarith.c (value_binop): Widen scalar to vector if appropriate.
1404
1405 2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
1406
1407         * arm-tdep.c (thumb_expand_immediate): New function.
1408         (thumb_instruction_changes_pc): Likewise.
1409         (thumb2_instruction_changes_pc): Likewise.
1410         (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1411         prologue parsing.  Improved support for optimized code.
1412         (thumb_scan_prologue): Do not reply on line-number information,
1413         use same heuristics as arm_scan_prologue insead.
1414         (skip_prologue_function): Accept functions
1415         "__tls_get_addr" and "__aeabi_read_tp".
1416
1417 2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
1418             Daniel Jacobowitz  <dan@codesourcery.com>
1419
1420         * arm-tdep.c (thumb_in_function_epilogue_p)
1421         (arm_in_function_epilogue_p): New.
1422         (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1423         gdbarch_in_function_epilogue_p callback.
1424
1425 2010-10-07  Doug Evans  <dje@google.com>
1426
1427         * cc-with-index.sh (output_file): Default to a.out.
1428
1429         * dwarf2read.c (mapped_index): Rename member index_table to
1430         symbol_table and index_table_slots to symbol_table_slots.
1431         All uses updated.
1432         (create_symbol_hash_table): Renamed from create_index_table.
1433         All callers updated.
1434         (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1435         (write_hash_table): Rename local index_table to symbol_hash_table.
1436
1437         * addrmap.h (addrmap_foreach_fn): New typedef.
1438         (addrmap_foreach): Declare.
1439         * addrmap.c (struct addrmap_funcs): New member foreach.
1440         (addrmap_foreach): New function.
1441         (addrmap_fixed_foreach): New function.
1442         (addrmap_fixed_funcs): Update.
1443         (struct mutable_foreach_data): New struct.
1444         (addrmap_mutable_foreach_worker): New function.
1445         (addrmap_mutable_foreach): New function.
1446         (addrmap_mutable_funcs): Update.
1447
1448 2010-10-07  Paul Hilfinger  <hilfinger@adacore.com>
1449
1450         * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1451         more cases.
1452
1453 2010-10-07  Paul Hilfinger  <hilfinger@adacore.com>
1454
1455         * ada-lang.c (full_match): Declare.
1456         (ada_match_name): Rename to match_name (we should avoid prefixing static
1457         symbols with "ada_").
1458         (match_name): New name for ada_match_name.
1459         (struct ada_psym_data): Remove and replace with...
1460         (struct match_data): User data for map_matching_symbols.
1461         (ada_add_psyms): Remove.
1462         (aux_add_nonlocal_symbols): New function, used as callback for
1463         map_matching_symbols.
1464         (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1465         symbols.
1466         (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1467         (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1468         Rework to use map_matching_symbols instead of map_ada_symtabs.
1469         (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1470         * psymtab.c: Include dependency on dictionary.h.
1471         (match_partial_symbol): New function.
1472         (ada_lookup_partial_symbol): Remove.
1473         (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1474         (map_matching_symbols_psymtab): New function.
1475         (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1476         * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1477
1478 2010-10-06  Paul Hilfinger  <hilfinger@adacore.com>
1479
1480         * ada-lang.c (ada_match_name): Use new API for wild_match.
1481         (wild_match): Change API to be consistent with that of strcmp_iw;
1482         return 0 for a match, and switch operand order.
1483         (full_match): New function.
1484         (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1485         matching to allow use of hashing.
1486         * dictionary.c (struct dict_vector): Generalize iter_name_first,
1487         iter_name_next ot iter_match_first, iter_match_next.
1488         (iter_name_first_hashed): Replace with iter_match_first_hashed.
1489         (iter_name_next_hashed): Replace with iter_match_next_hashed.
1490         (iter_name_first_linear): Replace with iter_match_first_linear.
1491         (iter_name_next_linear): Replace with iter_match_next_linear.
1492         (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1493         (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1494         (dict_iter_match_first): New function.
1495         (dict_iter_match_next): New function.
1496         (dict_hash): New function.
1497         * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1498         * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
1499
1500 2010-10-06  Doug Evans  <dje@google.com>
1501
1502         * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1503
1504 2010-10-06  Ken Werner  <ken.werner@de.ibm.com>
1505
1506         * dwarf2read.c (read_tag_const_type): Handle const arrays.
1507
1508 2010-10-06  Doug Evans  <dje@google.com>
1509
1510         * Makefile.in (REQUIRED_SUBDIRS): New var.
1511         (subdir_do): Verify required subdir Makefiles exist.
1512
1513         Create subdir data-directory.
1514         * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1515         data-directory/Makefile.in.
1516         (SUBDIRS): Add data-directory.
1517         (all): Remove xml-syscall-copy dependency.
1518         (xml-syscall-copy): Moved to data-directory/Makefile.in as
1519         stamp-syscalls.
1520         (xml-syscall-install): Moved to data-directory/Makefile.in as
1521         install-syscalls.
1522         (install-only): Remove xml-syscall-install dependency.
1523         (all-data-directory): New rule.
1524         (data-directory/Makefile): New rule.
1525         * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1526         * configure: Regenerate.
1527         * data-directory/Makefile.in: New file.
1528         * python/lib/gdb/__init__.py: New file.
1529
1530 2010-10-06  Joel Brobecker  <brobecker@adacore.com>
1531
1532         Fix ARI warnings in advance_wild_match.
1533         * ada-lang.c (advance_wild_match): Delete local variable t2.
1534         Adjust code accordingly.  Minor reformatting.
1535
1536 2010-10-06  Ken Werner  <ken.werner@de.ibm.com>
1537
1538         * gdbtypes.h (struct main_type): Remove flag_nottext.
1539         (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1540         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1541         (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1542         * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1543         of TYPE_FLAG_NOTTEXT.
1544         (init_type): Remove the initialization of the flag_nottext field.
1545         (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1546         TYPE_FLAG_NOTTEXT.
1547         * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1548
1549 2010-10-04  Doug Evans  <dje@google.com>
1550
1551         * cc-with-index.sh: New file.
1552
1553         * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1554         function comment.
1555         (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1556         (create_cus_from_index, create_addrmap_from_index): Ditto.
1557         (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1558         (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1559         (dw2_do_expand_symtabs_matching): Ditto.
1560         (eq_strtab_entry, create_strtab, add_string): Ditto.
1561         (hash_strtab_entry): Ditto.
1562         (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1563         (create_index_table, create_mapped_symtab, find_slot): Ditto.
1564         (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1565         (write_hash_table, add_address_entry, write_psymbols): Ditto.
1566         (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1567         (write_psymtabs_to_index): Ditto.
1568
1569 2010-10-04  Joel Brobecker  <brobecker@adacore.com>
1570
1571         * ada-lang.c: #include "value.h".
1572         (ensure_lval): Delete advance declaration.  Remove gdbarch and sp
1573         arguments.  Implement using value_allocate_space_in_inferior
1574         instead of allocating memory from the stack.
1575         (make_array_descriptor): Remove gdbarch and sp parameters.  Update
1576         calls to ensure_lval.
1577         (ada_convert_actual): Remove gdbarch and sp parameters.  Update
1578         calls to make_array_descriptor and ensure_lval.
1579         * ada-lang.h (ada_convert_actual): Update declaration.
1580         * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1581
1582 2010-10-04  Doug Evans  <dje@google.com>
1583
1584         * python/python.c (_initialize_python): Define new function
1585         GdbSetPythonDirectory in python.  Use it to update sys.path and
1586         gdb.__path__.
1587
1588 2010-10-03  Paul Hilfinger  <hilfinger@adacore.com>
1589
1590         * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1591         incorporating and generalizing print_record_field_types.
1592         (print_record_field_types): Change return value and update comment.
1593         Re-implement using print_selected_record_field_types.
1594         (print_choices): Print "=>" here.
1595         Handle case of unencoded variant branch.
1596         (print_variant_clauses): Reformat comment.
1597         Special-case unencoded variant branch.
1598
1599 2010-10-03  Paul Hilfinger  <hilfinger@adacore.com>
1600
1601         * ada-lang.c (wild_match): Reimplement.
1602         Change API to eliminate unused length argument, reverse arguments and
1603         make 0 the 'true' return value.
1604         (advance_wild_match): New auxiliary function for wild_match to improve
1605         readability.
1606         (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1607         * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1608         API for wild_match.
1609         * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1610         wild_match.
1611         * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1612
1613 2010-10-01  Doug Evans  <dje@google.com>
1614
1615         * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1616         for `save gdb-index' command.
1617
1618 2010-10-01  Tom Tromey  <tromey@redhat.com>
1619
1620         * symfile.h (allocate_symtab): Update.
1621         * symfile.c (allocate_symtab): Make 'filename' const.
1622         * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1623         (add_psymbol_to_list): Likewise.
1624         * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1625         const.
1626         (add_psymbol_to_list): Update.
1627         * mdebugread.c (new_symtab): Make 'name' const.
1628         (psymtab_to_symtab_1): Make 'filename' const.
1629         * elfread.c (elfstab_offset_sections): Update.
1630         * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1631         (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1632         (psymtab_include_file_name): Update.
1633         * dbxread.c (find_stab_function_addr): Make 'filename' const.
1634         * buildsym.h (start_subfile): Update.
1635         * buildsym.c (start_subfile): Make arguments const.
1636
1637 2010-09-30  Ali Lakhia  <lakhia@alumni.utexas.net>
1638
1639         * fork-child.c (breakup_args): Fix crash if shell forking is
1640         disabled at compile time.
1641
1642 2010-10-01  Joel Brobecker  <brobecker@adacore.com>
1643
1644         * ada-lang.c (desc_bounds): Add handling of the case where
1645         the P_BOUNDS field is a pointer to a stub.
1646         (desc_data_target_type): Same for P_ARRAY field.
1647         (ada_check_typedef): Strip the typedef layers from the type
1648         found by ada_find_any_type.
1649
1650 2010-10-01  Joel Brobecker  <brobecker@adacore.com>
1651
1652         * sparc-tdep.c (sparc32_frame_align): New function.
1653         (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1654         * sparc64-tdep.c (sparc64_frame_align): New function.
1655         (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1656
1657 2010-09-30  H.J. Lu  <hongjiu.lu@intel.com>
1658
1659         * defs.h (MAX_REGISTER_SIZE): Set to 64.
1660
1661 2010-09-30  Tom Tromey  <tromey@redhat.com>
1662
1663         * symfile.h (struct sym_fns) <next>: Remove.
1664         (add_symtab_fns): Update.
1665         * symfile.c (sym_fns_ptr): New typedef.
1666         (symtab_fns): Now a VEC.
1667         (add_symtab_fns): Update.  Change argument type.
1668         (find_sym_fns): Update.  Change return type.
1669         (get_symfile_segment_data): Update.
1670         * objfiles.h (struct objfile) <sf>: Now const.
1671         * somread.c (som_sym_fns): Now const.  Update.
1672         * xcoffread.c (xcoff_sym_fns): Now const.  Update.
1673         * mipsread.c (ecoff_sym_fns): Now const.  Update.
1674         * machoread.c (macho_sym_fns): Now const.  Update.
1675         * elfread.c (elf_sym_fns): Now const.  Update.
1676         (elf_sym_fns_gdb_index): Likewise.
1677         * dbxread.c (aout_sym_fns): Now const.  Update.
1678         * coffread.c (coff_sym_fns): Now const.  Update.
1679
1680 2010-09-30  Tom Tromey  <tromey@redhat.com>
1681
1682         * value.c (value_primitive_field): Take 'offset' into account for
1683         packed field.
1684
1685 2010-09-30  Tom Tromey  <tromey@redhat.com>
1686
1687         * completer.c (count_struct_fields): Handle anonymous structs and
1688         unions.
1689         (add_struct_fields): Likewise.
1690
1691 2010-09-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
1692
1693         Fix printing parameters of inlined functions.
1694         * ada-lang.c (is_known_support_routine)
1695         (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1696         for find_frame_funname.
1697         * python/py-frame.c (frapy_name): Likewise.
1698         * stack.c (find_frame_funname): New parameter funcp.  Update the
1699         function comment.  Fill it in.
1700         (print_frame): New variable func.  Initialize it by
1701         find_frame_funname.  Print arguments only if FUNC is not NULL.  Use
1702         FUNC as the parameter of print_args_stub.
1703         * stack.h (find_frame_funname): New parameter funcp.  Remove the
1704         function declaration comment.
1705
1706 2010-09-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
1707
1708         PR corefiles/12071.
1709         * inferior.c (have_live_inferiors): New variables old_chain, inf and
1710         tp.  Iterate INFERIOR_LIST and call target_has_execution.
1711
1712 2010-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1713
1714         Fix GDB crash on inferior calls with self-referencing classes.
1715         * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1716         member fields.
1717
1718 2010-09-29  Doug Evans  <dje@google.com>
1719
1720         Workaround for gcc/45682.
1721         * dwarf2read.c (partial_die_info): New fields fixup_called,
1722         linkage_name.
1723         (guess_partial_die_structure_name): Renamed from guess_structure_name.
1724         Move definition next to use.  Use linkage_name to determine if class
1725         is in a namespace.  All callers updated.
1726         (fixup_partial_die): Return early if already called.
1727         Set fixup_called when done.
1728         (guess_full_die_structure_name): New function.
1729         (determine_prefix): Call it for class/struct/union dies if c++ and
1730         .debug_types section is present and parent is DW_TAG_compile_unit.
1731
1732 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1733
1734         * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1735         (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1736
1737 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1738
1739         * NEWS: Announce Ravenscar Profile support.
1740
1741 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1742             Jerome Guitton  <guitton@adacore.com>
1743
1744         * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1745         New files.
1746         * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1747         ravenscar-sparc-thread.o to gdb_target_obs.
1748
1749 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1750
1751         * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1752         * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1753
1754 2010-09-27  Pierre Muller  <muller@ics.u-strasbg.fr>
1755
1756         * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1757         (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1758         skip_main_prologue method.
1759
1760 2010-09-27  Tom Tromey  <tromey@redhat.com>
1761
1762         * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1763         (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1764         Only emit a given psymbol once.
1765         (struct signatured_type_index_data) <psyms_seen>: New field.
1766         (write_one_signatured_type): Update.
1767         (cleanup_htab): New function.
1768         (write_psymtabs_to_index): Update.  Create psyms_seen hash.  Bump
1769         version to 3.
1770         (save_gdb_index_command): Update index documentation.
1771
1772 2010-09-27  Tom Tromey  <tromey@redhat.com>
1773
1774         * bcache.c (expand_hash_table): Use hash_function, not hash.
1775
1776 2010-09-27  Tom Tromey  <tromey@redhat.com>
1777
1778         * gdb_wchar.h: Change minimum libiconv to 0x108.
1779
1780 2010-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1781
1782         Fix lost siginfo_t for inferior calls.
1783         * infrun.c
1784         (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1785         (save_inferior_thread_state): New variables regcache, gdbarch and
1786         siginfo_data.  Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1787         Move INF_STATE allocation later, pre-clear it.  Initialize REGISTERS
1788         using REGCACHE.
1789         (restore_inferior_thread_state): New variables regcache and gdbarch.
1790         Restore SIGINFO_DATA for matching GDBARCH.  Restore REGISTERS using
1791         REGCACHE.  Free also SIGINFO_DATA.
1792
1793 2010-09-24  Tom Tromey  <tromey@redhat.com>
1794
1795         * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1796         MAYBE_SWAPs.
1797         (dw2_map_symbol_names): Likewise.
1798
1799 2010-09-24  Sami Wagiaalla  <swagiaal@redhat.com>
1800
1801         * valops.c (find_oload_champ_namespace_loop): replace incorrect
1802         discard_cleanups do_cleanups.
1803
1804 2010-09-24  Pedro Alves  <pedro@codesourcery.com>
1805
1806         PR gdb/11842
1807
1808         * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1809         (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1810         si_code is < 0.  Check for si_code == SI_TIMER before checking for
1811         si_code < 0.
1812
1813 2010-09-24  Pedro Alves  <pedro@codesourcery.com>
1814
1815         * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1816
1817 2010-09-22  Joel Brobecker  <brobecker@adacore.com>
1818
1819         * ada-tasks.c (read_atcb): Do not compute the task ptid when
1820         debugging a core file.
1821
1822 2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1823
1824         Code cleanup.
1825         * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1826         (free_objfile) <objfile->name != NULL>: Remove the conditional around
1827         xfree.
1828         * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1829         * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1830         Remove.
1831         * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1832         Remove the conditional.
1833         * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1834
1835 2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1836
1837         * main.c: Include objfiles.h.
1838         (captured_main): New variable objfile.  Call
1839         load_auto_scripts_for_objfile for ALL_OBJFILES.
1840
1841 2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1842
1843         * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1844         DW_TAG_constant.
1845
1846 2010-09-22  Joel Brobecker  <brobecker@adacore.com>
1847
1848         * dwarf2read.c (scan_partial_symbols): Add handling of
1849         DW_TAG_constant DIEs.
1850         (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1851
1852 2010-09-22  Joel Brobecker  <brobecker@adacore.com>
1853
1854         * configure.ac: Add support for --enable-gdbserver.
1855         * configure: Regenerate.
1856
1857 2010-09-22  Sami Wagiaalla  <swagiaal@redhat.com>
1858
1859         PR C++/12028
1860         * valops.c (find_oload_champ_namespace_loop): removed incorrect
1861         'old_cleanups' reassignment.
1862
1863 2010-09-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1864
1865         * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1866         characters.
1867
1868 2010-09-16  Phil Muldoon  <pmuldoon@redhat.com>
1869
1870         PR mi/11407
1871         * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1872         read_var_value and common_val_print and print a warning.
1873
1874 2010-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1875
1876         * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1877         keep the list in alphabetical order.  Use longer e-mail address.
1878
1879 2010-09-15  Tom Tromey  <tromey@redhat.com>
1880
1881         * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1882
1883 2010-09-15  Tom Tromey  <tromey@redhat.com>
1884
1885         * charset.c (iconv_open): New define.
1886         (iconv): Likewise.
1887         (iconv_close): Likewise.
1888         (phony_iconv_open): Add "phony_" prefix.
1889         (phony_iconv_close): Likewise.
1890         (phony_iconv): Likewise.
1891         * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1892         Change how INTERMEDIATE_ENCODING is defined.
1893
1894 2010-09-15  Doug Evans  <dje@google.com>
1895
1896         * dwarf2read.c (struct die_info): Fix comment.
1897
1898 2010-09-15  Alan Modra  <amodra@gmail.com>
1899
1900         PR 4606
1901         * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1902         than setting SEC_NEVER_LOAD on sections that need not be copied.
1903
1904 2010-09-14  Tom Tromey  <tromey@redhat.com>
1905
1906         * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1907         (start_psymtab_common, allocate_psymtab, discard_psymtab):
1908         Declare.
1909         * symfile.h (extend_psymbol_list): Remove.
1910         (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1911         (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1912         * psymtab.c (extend_psymbol_list): Move earlier.  Now static.
1913
1914 2010-09-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
1915
1916         * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1917         Update the comment.
1918
1919 2010-09-14  Tom Tromey  <tromey@redhat.com>
1920
1921         PR symtab/8399:
1922         * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1923         for unrecognized frame base expression.
1924
1925 2010-09-14  Tom Tromey  <tromey@redhat.com>
1926
1927         PR exp/11803:
1928         * value.c (value_static_field): Use value_of_variable.
1929
1930 2010-09-14  Pierre Muller  <muller@ics.u-strasbg.fr>
1931
1932         * m32r-rom.c: Replace winsock.h with winsock2.h header.
1933         * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1934
1935 2010-09-13  Sami Wagiaalla  <swagiaal@redhat.com>
1936
1937         PR symtab/11992:
1938         * c-exp.y (classify_name): Check is_a_member_of_this before returning
1939         UNKNOWN_CPP_NAME.
1940
1941 2010-09-13  Joel Brobecker  <brobecker@adacore.com>
1942
1943         * NEWS: Add x86-lynxos to the list of platforms supported by
1944         gdbserver.
1945
1946 2010-09-13  Joel Brobecker  <brobecker@adacore.com>
1947
1948         * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1949
1950 2010-09-13  Tom Tromey  <tromey@redhat.com>
1951
1952         * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1953
1954 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1955
1956         * i386-tdep.c (i386_ymm_type): Set type name to
1957         builtin_type_vec256i.
1958
1959 2010-09-12  Michael Snyder  <msnyder@vmware.com>
1960
1961         * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1962
1963 2010-09-12  H.J. Lu  <hongjiu.lu@intel.com>
1964
1965         * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1966
1967 2010-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1968
1969         * amd64-tdep.c (amd64_register_name): Removed.
1970         (amd64_init_abi): Don't call set_gdbarch_register_name.
1971
1972         * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1973
1974         * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1975
1976 2010-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1977             Paul Bolle  <pebolle@tiscali.nl>
1978
1979         Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1980         * cli-logging.c (struct saved_output_files) <targerr>: New.
1981         (set_logging_redirect, pop_output_files, handle_redirections):
1982         Redirect also gdb_stdtargerr.
1983         * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1984         declarations.
1985         * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1986         also gdb_stdtargerr.
1987         * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1988         to the top.  Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1989         Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1990         * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1991         * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1992         New functions.
1993
1994 2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
1995
1996         * hppa-tdep.c (unwind_command): Use host_address_to_string function
1997         to display a host address.
1998         * monitor.c (monitor_read_memory): Likewise.
1999         * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
2000
2001 2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
2002
2003         * coffread.c (struct coff_symbol): Change c_value type from `long' to
2004         `CORE_ADDRESS' as it might contain target addresses.
2005
2006 2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
2007
2008         * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
2009         before cast to pointer to avoid warning.
2010
2011 2010-09-09  Kevin Buettner  <kevinb@redhat.com>
2012
2013         * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
2014         type to be signed.
2015
2016 2010-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
2017
2018         * dwarf2read.c (fixup_partial_die): Do not set dummy name for
2019         anonymous class partial DIEs.
2020
2021 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
2022
2023         * dwarf2read.c (dwarf2_compute_name): Check that the first
2024         argument is a pointer.
2025
2026 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
2027
2028         * dwarf2read.c (read_func_scope, read_structure_type)
2029         (read_common_block): Check for a NULL return from new_symbol.
2030
2031 2010-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2032
2033         * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
2034
2035 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
2036
2037         * dwarf2read.c (read_structure_type): Move processing of
2038         fields and member functions from here...
2039         (process_structure_scope): ... to here.
2040
2041 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
2042
2043         * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
2044         the domain type.
2045         (gnuv3_make_method_ptr): Likewise.
2046
2047 2010-09-08  Tom Tromey  <tromey@redhat.com>
2048
2049         * breakpoint.c (create_breakpoint): Add missing _().
2050
2051 2010-09-08  Doug Evans  <dje@google.com>
2052
2053         * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
2054
2055 2010-09-08  Tom Tromey  <tromey@redhat.com>
2056
2057         Revert:
2058         2010-09-01  Tom Tromey  <tromey@redhat.com>
2059         * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
2060         symtab.h: Revert earlier change.
2061
2062 2010-09-09  Sami Wagiaalla  <swagiaal@redhat.com>
2063
2064         * psymtab.c (add_psymbol_to_bcache): Initialize
2065         obj_section.
2066         memset psymbol.ginfo.value to 0.
2067
2068 2010-09-06  Pedro Alves  <pedro@codesourcery.com>
2069
2070         * infrun.c (resume): Extend comment on ignoring single-step
2071         requests on vfork parents waiting for a vfork-done.
2072
2073 2010-09-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2074             Pedro Alves  <pedro@codesourcery.com>
2075
2076         * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
2077         is NULL.
2078         * fork-child.c (startup_inferior) <resume_signal>: Use enum
2079         target_signal type.
2080         * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
2081         calling strsignal.  Use enum target_signal type for saved_signo.
2082         (linux_handle_extended_wait) <signo>: Use enum target_signal type.
2083         (linux_nat_wait_1): Use enum target_signal type for signo.  Use
2084         target_signal_to_host before calling strsignal.
2085         * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
2086         TARGET_SIGNAL_0.
2087
2088 2010-09-06  Pedro Alves  <pedro@codesourcery.com>
2089             Jan Kratochvil  <jan.kratochvil@redhat.com>
2090
2091         * common/signals.c (ANY): Remove.
2092         (SET): No longer use ANY.
2093
2094 2010-09-06  Yao Qi  <yao@codesourcery.com>
2095
2096         * infrunc(resume): When inferior is waiting_for_vfork_done,
2097         clear step and don't use displaced stepping.
2098
2099 2010-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
2100
2101         * breakpoint.c (can_use_hardware_watchpoint): Handle the first
2102         value specially.
2103
2104 2010-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2105
2106         Code cleanup - split print_stop_reason.
2107         * infrun.c (enum inferior_stop_reason): Remove.
2108         (print_stop_reason): Remove by splitting into ...
2109         (print_exited_reason, print_signal_exited_reason)
2110         (print_no_history_reason, print_signal_received_reason)
2111         (print_end_stepping_range_reason): ... these new functions.  Update
2112         the preceding comment.
2113         (handle_inferior_event): Change the calls to print_exited_reason,
2114         print_signal_exited_reason, print_no_history_reason,
2115         print_signal_received_reason, print_end_stepping_range_reason.
2116         (handle_step_into_function, handle_step_into_function_backward):
2117         Change the calls to print_end_stepping_range_reason.
2118
2119 2010-09-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2120
2121         * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
2122         * cli-out.c: Include vec.h.
2123         (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
2124         variable stream, initialize it, use it.
2125         (cli_redirect): New function comment.  Replace the stream and
2126         original_stream fields by the new streams field.  Remove the
2127         original_stream != NULL conditional, assert error on NULL instead.
2128         (out_field_fmt, field_separator): New variable stream, initialize it, use it.
2129         (cli_out_data_ctor): Assert non-NULL stream.  Replace the stream and
2130         original_stream fields by the new streams field.
2131         (cli_out_set_stream): Replace the stream field by the new streams
2132         field.
2133         * cli-out.h: Include vec.h.
2134         (ui_filep): New typedef, call DEF_VEC_P for it.
2135         (struct cli_ui_out_data): Replace the stream and original_stream
2136         fields by the new streams field.
2137         * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
2138         NULL first.  Extend the comment.
2139         (handle_redirections): Call ui_out_redirect with output.
2140         * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
2141         calls outside of the TRY_CATCH block.
2142
2143 2010-09-03  Joel Brobecker  <brobecker@adacore.com>
2144
2145         GDB 7.2 released.
2146
2147 2010-09-02  Joel Brobecker  <brobecker@adacore.com>
2148
2149         Back out the following change:
2150         | 2010-06-29  Hui Zhu  <teawater@gmail.com>
2151         | * record.c (set_record_pic_cmdlist,
2152         | show_record_pic_cmdlist): New variables.
2153         | (set_record_pic_command,
2154         | show_record_pic_command): New functions.
2155         | (record_pic_function, record_pic_line, record_pic_enum,
2156         | set_record_pic_type, record_pic_hide_nofunction,
2157         | record_pic_hide_nosource, record_pic_hide_same): New variables.
2158         | (record_pic_fputs): New function.
2159         | (function_list, node_list, edge_list): New struct.
2160         | (function_list, node_list, edge_list): New variables.
2161         | (record_pic_cleanups, record_pic_node,
2162         | record_pic_edge, cmd_record_pic): New functions.
2163         | (_initialize_record): Add new commands for record pic.
2164
2165 2010-09-02  Daniel Jacobowitz  <dan@codesourcery.com>
2166
2167         * config.in, configure: Regenerated.
2168         * configure.ac: Check for waitpid.
2169         * ser-pipe.c (pipe_close): Wait for the program to exit.
2170
2171 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2172
2173         * cli/cli-logging.c: Include gdb_assert.h.
2174         (set_logging_overwrite): New function.
2175         (logging_redirect): New comment.
2176         (logging_no_redirect_file, set_logging_redirect)
2177         (pop_output_files) <logging_no_redirect_file>: New.
2178         (handle_redirections) <!logging_redirect>: New variable
2179         no_redirect_file.  Remove file autoclose for tee_file_new.  No longer
2180         discard cleanup for the close of former OUTPUT.  Set
2181         LOGGING_NO_REDIRECT_FILE.
2182         (handle_redirections) <logging_redirect>: gdb_assert
2183         LOGGING_NO_REDIRECT_FILE.
2184         (show_logging_command) <logging_redirect handling>: Adjust messages
2185         for SAVED_FILENAME not NULL.
2186         (_initialize_cli_logging): Install set_logging_overwrite and
2187         set_logging_redirect.
2188
2189 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2190
2191         * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
2192
2193 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2194
2195         * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
2196         (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
2197         add $(GDB_WARN_CFLAGS_NO_FORMAT).
2198         (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
2199
2200 2010-09-02  Yao Qi  <yao@codesourcery.com>
2201
2202         * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
2203         number from a WIFSIGNALED status.
2204
2205 2010-09-01  Tom Tromey  <tromey@redhat.com>
2206
2207         * symtab.h (lookup_type_symbol): Declare.
2208         * symtab.c (lookup_symbol_in_language_full): Rename from
2209         lookup_symbol_in_language.  Add 'for_type' argument.
2210         (lookup_symbol_in_language): New function.
2211         (lookup_type_symbol): Likewise.
2212         (lookup_symbol_aux): Add 'for_type' argument.
2213         (match_symbol_aux): New function.
2214         (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
2215         (match_transparent_type): New function.
2216         (basic_lookup_transparent_type): Use expand_one_symtab_matching.
2217         * symfile.h (struct quick_symbol_functions)
2218         <pre_expand_symtabs_matching>: Remove.
2219         <expand_one_symtab_matching>: New field.
2220         * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2221         (pre_expand_symtabs_matching_psymtabs): Remove.
2222         (psym_functions): Update.
2223         * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2224         * dwarf2read.c (dw2_lookup_symbol): Update comment.
2225         (dw2_pre_expand_symtabs_matching): Remove.
2226         (dw2_expand_one_symtab_matching): New function.
2227         (dwarf2_gdb_index_functions): Update.
2228
2229 2010-09-01  Joel Brobecker  <brobecker@adacore.com>
2230
2231         * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2232
2233 2010-09-01  Marc Khouzam  <marc.khouzam@ericsson.com>
2234
2235         * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2236         as a feature reported by -list-target-features.
2237
2238 2010-09-01  Joel Brobecker  <brobecker@adacore.com>
2239
2240         * features/Makefile (WHICH): Add rs6000/powerpc-32.
2241         (powerpc-32.o, powerpc-32.c): New rules.
2242         (clean): Also remove powerpc-32.c.
2243         * regformats/rs6000/powerpc-32.dat: Generate.
2244
2245 2010-08-31  Sami Wagiaalla  <swagiaal@redhat.com>
2246
2247         * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2248         psymbol_bcache_init.
2249         * psymtab.h (psymbol_bcache_init): New function prototype.
2250         (psymbol_bcache_free): New function prototype.
2251         (psymbol_bcache_get_bcache): New function prototype.
2252         * psymtab.c (psymbol_bcache_init): New function.
2253         (psymbol_bcache_free): New function.
2254         (psymbol_bcache_full): New function.
2255         (psymbol_bcache_get_bcache): New function.
2256         (add_psymbol_to_bcache): use psymbol_bcache_full.
2257         * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2258         psymbol_bcache.
2259         * symmisc.c (print_symbol_bcache_statistics): Updated.
2260         (print_objfile_statistics): Updated.
2261         * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2262         psymbol_cache.
2263         (free_objfile): Use psymbol_bcache_free.
2264
2265 2010-08-31  Tom Tromey  <tromey@redhat.com>
2266
2267         PR c++/11961:
2268         * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2269         Don't set TYPE_NAME on the type.
2270
2271 2010-08-31  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
2272
2273         * infrun.c (set_exec_direction_func): Error out if target does not
2274         support reverse execution.
2275
2276 2010-08-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2277
2278         Make linux_get_siginfo_type `type *' unique.
2279         * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2280         (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2281         (linux_get_siginfo_type): New variable linux_gdbarch_data.  Initialize
2282         it.  Use linux_gdbarch_data->siginfo_type as a persistent storage.
2283         (_initialize_linux_tdep): New.
2284
2285 2010-08-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2286
2287         Code cleanup.
2288         * defs.h (find_memory_region_ftype): New typedef.
2289         (exec_set_find_memory_regions): Use it.
2290         * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2291         * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2292         * gcore.c (objfile_find_memory_regions): Likewise.
2293         * gnu-nat.c (gnu_find_memory_regions): Likewise.
2294         * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2295         * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2296         (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2297         find_memory_region_ftype.
2298         (insert_dbx_link_bpt_in_region): Likewise.
2299         (iterate_over_mappings): Likewise.  Drop the comment part about the
2300         function prototype.
2301         (find_memory_regions_callback): Use find_memory_region_ftype.
2302         (proc_find_memory_regions): Likewise.
2303         (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2304         find_memory_region_ftype.
2305         * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2306         * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2307
2308 2010-08-31  Sami Wagiaalla  <swagiaal@redhat.com>
2309
2310         * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2311         'static partial_symbol psymbol'.
2312         (psymbol_hash): New function.
2313         (psymbol_compare): New function.
2314         * bcache.c (hash_continue): New.
2315         (hash): Use hash_continue.
2316         * bcache.c: Add hash_function and compare_function
2317         pointers to bcache struct.
2318         (bcache_full): Use bcache->hash_function, and
2319         bcache->compare_function.
2320         (bcache_compare): New function.
2321         (bcache_xmalloc): Take hash_function and
2322         compare_function arguments and initialize the
2323         bcach's pointers.
2324         Updated comment.
2325         * objfiles.c (allocate_objfile): Updated.
2326         * symfile.c (reread_symbols): Updated.
2327         * python/py-type.c (typy_richcompare): Updated.
2328
2329 2010-08-30  Andre Poenitz  <andre.poenitz@nokia.com>
2330             Tom Tromey  <tromey@redhat.com>
2331
2332         PR python/11792:
2333         * python/py-value.c (valpy_get_dynamic_type): New function.
2334         (value_object_getset): Add "dynamic_type".
2335         (valpy_get_type): Fail on error.
2336
2337 2010-08-30  Yao Qi  <yao@codesourcery.com>
2338
2339         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2340         (arm_linux_syscall_next_pc): New.
2341         (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead. 
2342         (arm_linux_init_abi): Initialize syscall_next_pc.
2343         * arm-tdep.c (thumb_get_next_pc_raw):  Get next pc of SWI in Thumb mode.
2344         (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2345         * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc. 
2346         Declare arm_frame_is_thumb.
2347
2348 2010-08-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
2349
2350         Code cleanup.
2351         * breakpoint.c (bpstat_alloc): Remove unused prototype.
2352         (bpstat_alloc): Change parameters cbs to bs_link_pointer.  Adjust the
2353         code.
2354         (bpstat_stop_status): Change root_bs into bs_head and bs_link.  Adjust
2355         calls of bpstat_alloc.  Remove explicit bs chain termination.
2356
2357 2010-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2358
2359         Code cleanup.
2360         * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2361         (my_waitpid): Likewise.
2362
2363 2010-08-27  Doug Evans  <dje@google.com>
2364
2365         * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2366         as appropriate.
2367
2368 2010-08-27  Tom Tromey  <tromey@redhat.com>
2369
2370         * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2371         TYPE_FIELD_IGNORE_BITS.
2372
2373 2010-08-27  Doug Evans  <dje@google.com>
2374
2375         * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2376         the order they're defined in.  munmap .debug_types buffer.
2377
2378 2010-08-26  Doug Evans  <dje@google.com>
2379
2380         * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2381         (dw2_forget_cached_source_info): Rename local cu to per_cu.
2382         (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2383         (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2384         (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2385         (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2386         (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2387         (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2388         (write_psymtabs_to_index): Ditto.
2389
2390 2010-08-26  Pedro Alves  <pedro@codesourcery.com>
2391
2392         * NEWS: Mention libthread_db debugging with core files.
2393
2394 2010-08-26  Doug Evans  <dje@google.com>
2395
2396         * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2397         forward decl.  Pass pst->dirname to dwarf_decode_lines.
2398         (psymtab_include_file_name): New function.
2399         (dwarf_decode_lines): Call it.  Update comments.
2400
2401 2010-08-25  Pedro Alves  <pedro@codesourcery.com>
2402
2403         * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2404         compilation unit being different from target die's.
2405
2406 2010-08-24  Doug Evans  <dje@google.com>
2407
2408         PR symtab/11942
2409         * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2410         debug_types_type_hash.
2411         (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2412         All uses updated.
2413         (lookup_die_type): Renamed from tag_type_to_tag.  First look in
2414         appropriate type_hash table.  All callers updated.
2415         (allocate_signatured_type_table): Renamed from
2416         allocate_signatured_type_hash_table.  All callers updated.
2417         (create_signatured_type_table_from_index): Renamed from
2418         create_signatured_type_hash_from_index.  All callers updated.
2419         (read_die_type): Add comment.  Move actual reading to ...
2420         (read_die_type_1): ... here.  New function.
2421         (follow_die_ref_or_sig): Tweak comment.
2422         (set_die_type): Rewrite to use appropriate choice of
2423         debug_info_type_hash or debug_types_type_hash.
2424         (get_die_type_at_offset): New function.
2425         (get_die_type): Call it.
2426
2427 2010-08-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2428
2429         * python/py-type.c (typy_richcompare): Initialize worklist.
2430
2431 2010-08-24  Daniel Jacobowitz  <dan@codesourcery.com>
2432             Kazu Hirata  <kazu@codesourcery.com>
2433             Jonathan Larmour  <jifl@eCosCentric.com>
2434
2435         * arm-tdep.c: Include features/arm-with-m.c.
2436         (arm_psr_thumb_bit): New.  Update all uses of CPSR_T to
2437         call this function.
2438         (arm_pc_is_thumb): Add a gdbarch argument.  Update all callers.
2439         Check is_m after force-mode.
2440         (arm_gdbarch_init): Check the binary before the target description.
2441         Add check for M profile attribute.  If we have an M-profile device,
2442         but no target register description, use arm-with-m.  Recognize the
2443         new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2444         (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2445         * arm-tdep.h (XPSR_T): Define.
2446         (struct gdbarch_tdep): Add is_m member.
2447         * features/arm-m-profile.xml, features/arm-with-m.c,
2448         features/arm-with-m.xml: New files.
2449
2450 2010-08-23  Doug Evans  <dje@google.com>
2451
2452         * dwarf2read.c (read_structure_type): Add comment.
2453         (read_enumeration_type): Add comment.
2454         (process_enumeration_scope): Move definition of some locals
2455         closer to their use.
2456         (read_namespace_type): Add comment.
2457         (set_die_type): Fix typo in comment.
2458
2459 2010-08-23  Tom Tromey  <tromey@redhat.com>
2460
2461         PR python/11145:
2462         * python/py-value.c: Include expression.h.
2463         (valpy_do_cast): New function.
2464         (valpy_cast): Use it.
2465         (valpy_dynamic_cast): New function.
2466         (valpy_reinterpret_cast): Likewise.
2467         (value_object_methods): Add dynamic_cast, reinterpret_cast.
2468
2469 2010-08-23  Tom Tromey  <tromey@redhat.com>
2470
2471         PR python/11391:
2472         * python/py-value.c (valpy_nonzero): Don't throw error for other
2473         Value types.
2474
2475 2010-08-23  Tom Tromey  <tromey@redhat.com>
2476
2477         PR python/10676:
2478         * python/py-type.c: Include bcache.h, vec.h.
2479         (struct type_equality_entry): New.
2480         (compare_strings): New function.
2481         (check_types_equal): Likewise.
2482         (check_types_worklist): Likewise.
2483         (typy_richcompare): Likewise.
2484         (type_object_type): Set tp_richcompare field.
2485
2486 2010-08-23  Tom Tromey  <tromey@redhat.com>
2487
2488         PR python/10953:
2489         * python/py-type.c (typy_fields): Call check_typedef.
2490         (typy_template_argument): Add TRY_CATCH.
2491
2492 2010-08-23  Tom Tromey  <tromey@redhat.com>
2493
2494         PR python/11915:
2495         * python/py-type.c (typy_array): New function.
2496         (type_object_methods): Add "array".
2497
2498 2010-08-20  Pedro Alves  <pedro@codesourcery.com>
2499
2500         * python/python.c: Include "serial.h".
2501         (gdbpy_event_fds): Change type to `struct serial *' a array from
2502         int array.
2503         (gdbpy_run_events): Change parameters.  Use serial_readchar in
2504         place of read.
2505         (gdbpy_post_event): Use serial_write in place of write.
2506         (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2507         serial_async in place of add_file_handler.
2508
2509 2010-08-20  Pedro Alves  <pedro@codesourcery.com>
2510
2511         * serial.h (gdb_pipe, serial_pipe): Declare.
2512         * serial.c (serial_interface_lookup): Take a const char pointer.
2513         (serial_fdopen): Rename to ...
2514         (serial_fdopen_ops): ... this.  Add an OPS parameter and use it.
2515         Call the OPS' fdopen function if there is one.
2516         (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2517         (serial_pipe): New.
2518         (struct serial_ops) <fdopen>: New field.
2519
2520         * ser-mingw.c (free_pipe_state):
2521         (free_pipe_state): Close output on non-pex pipes.
2522         (pipe_windows_fdopen): New.
2523         (gdb_pipe): New.
2524         (_initialize_ser_windows): Register pipe_windows_fdopen.
2525         * ser-go32.c (gdb_pipe): New.
2526         * ser-pipe.c (pipe_close): Close file descriptor even if there's
2527         no state pointer.
2528         (pipe_ops): Delete.
2529         (gdb_pipe): New.
2530
2531 2010-08-20  Keith Seitz  <keiths@redhat.com>
2532
2533         PR symtab/11465:
2534         * dwarf2read.c (struct delayed_method_info): New struct.
2535         (struct dwarf2_cu): Add vector method_list.
2536         (scan_partial_symbols): Count methods for union, class, structure,
2537         and interface types.
2538         (add_to_method_list): New function.
2539         (free_delayed_list): New function.
2540         (compute_delayed_physnames): New function.
2541         (process_full_comp_unit): Make a cleanup for the CU's delayed
2542         physname list, compute the delayed physnames, and free the
2543         the list.
2544         (dwarf2_add_member_fn): For C++ and Java, delay the computation
2545         of the physname until after the CU is read.
2546
2547         * dwarf2read.c (read_structure_type): Check if the current
2548         DIE's type was already completed after dwarf2_full_name
2549         was called.
2550
2551 2010-08-19  Stan Shebs  <stan@codesourcery.com>
2552
2553         * NEWS: Mention some additional changes.
2554
2555 2010-08-19  Tom Tromey  <tromey@redhat.com>
2556
2557         * Makefile.in (install-python): Add DESTDIR.
2558
2559 2010-08-19  Doug Evans  <dje@google.com>
2560
2561         PR exp/11926
2562         * parser-defs.h (parse_float, parse_c_float): Declare.
2563         * parse.c (parse_float, parse_c_float): New function.
2564         * c-exp.y (parse_number): Call parse_c_float.
2565         * objc-exp.y (parse_number): Ditto.
2566         * p-exp.y (parse_number): Ditto.  Use ANSI/ISO-style definition.
2567         * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2568
2569 2010-08-19  Joel Brobecker  <brobecker@adacore.com>
2570
2571         * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2572         the arguments in the correct order.
2573         * symtab.c (maybe_add_partial_symtab_filename): Declare
2574         the arguments in the correct order.
2575
2576 2010-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2577
2578         * varobj.c (varobj_create): Replace variable old_fi with old_id,
2579         initialize it by null_frame_id, wrap its usage by get_frame_id,
2580         frame_id_p and frame_find_by_id.
2581
2582 2010-08-18  Tom Tromey  <tromey@redhat.com>
2583
2584         PR python/11900:
2585         * configure: Rebuild.
2586         * configure.ac: Add install-python to CONFIG_INSTALL.
2587         * Makefile.in (install-python): New.
2588
2589 2010-08-18  Doug Evans  <dje@google.com>
2590
2591         * gdb_assert.h (gdb_assert_not_reached): New macro.
2592         (gdb_assert_fail): Fix typo in comment.
2593         * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2594         gdb_assert (0).
2595         * darwin-nat.c (darwin_check_new_threads): Ditto.
2596         * dwarf2read.c (dwarf2_get_section_info): Ditto.
2597         (munmap_section_buffer): Ditto.
2598         * m32c-tdep.c (make_types): Ditto.
2599         (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2600         * macroexp.c (get_character_constant): Ditto.
2601         (get_string_literal): Ditto.
2602         * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2603         (mep_pseudo_cr_index, mep_register_type): Ditto.
2604         (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2605         (mep_get_insn, mep_analyze_prologue): Ditto.
2606         * objfiles.c (qsort_cmp): Ditto.
2607         * prologue-value.c (pv_is_identical): Ditto.
2608         * record.c (record_get_loc): Ditto.
2609         * value.c (value_static_field): Ditto.
2610         * xtensa-tdep.c (call0_track_op): Ditto.
2611
2612 2010-08-18  Tom Tromey  <tromey@redhat.com>
2613
2614         PR symtab/11919:
2615         * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2616         * parse.c (parse_field_expression): Use RETURN_MASK_ERROR.  Move
2617         name-copying lower.  Document exception behavior.
2618         * completer.c (expression_completer): Catch exceptions from
2619         parse_field_expression.
2620
2621 2010-08-18  Pedro Alves  <pedro@codesourcery.com>
2622
2623         PR corefile/8210
2624
2625         * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2626         workaround on core files.
2627         (try_thread_db_load_1): Don't try enabling thread event reporting
2628         on core files.
2629         (thread_db_load): Allow thread_db on core files.
2630         (attach_thread): Don't check thread signals on core files, nor try
2631         really attaching to the thread, nor enabling thread event event
2632         reporting.
2633         (thread_db_detach): Don't try disabing thread event reporting or
2634         removing thread event breakpoints when debugging a core file.
2635         (find_new_threads_callback): Don't try enabling thread event
2636         reporting on core files.
2637         (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2638         debugging a core file.
2639         (thread_db_find_new_threads): Don't update thread
2640         cores (processors) when debugging a core (dump).
2641
2642 2010-08-18  Pedro Alves  <pedro@codesourcery.com>
2643
2644         PR corefile/8210
2645
2646         * corelow.c (add_to_thread_list): Don't use
2647         gdbarch_core_reg_section_encodes_pid.  Use bfd_core_file_pid.
2648         (get_core_register_section): Don't use
2649         gdbarch_core_reg_section_encodes_pid.
2650
2651         * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2652         * gdbarch.h, gdbarch.c: Regenerate.
2653         * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2654         gdbarch_core_reg_section_encodes_pid.
2655         * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2656         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2657         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2658
2659 2010-08-18  Yao Qi  <yao@codesourcery.com>
2660
2661         * MAINTAINERS : Add myself under Write After Approval.
2662
2663 2010-08-17  Tom Tromey  <tromey@redhat.com>
2664
2665         * NEWS: Mention template parameter support.
2666
2667 2010-08-17  Pedro Alves  <pedro@codesourcery.com>
2668
2669         PR breakpoints/11371
2670
2671         * breakpoint.c (decref_bp_location): Assert the reference count is
2672         sane.
2673
2674 2010-08-17  Pedro Alves  <pedro@codesourcery.com>
2675
2676         PR breakpoints/11371
2677
2678         * breakpoint.c (breakpoint_init_inferior): Decrement the
2679         location's reference count instead of deleting right away.
2680         (bpstat_free): Decrement the location's reference count.  Make
2681         static.
2682         (bpstat_copy): Increment the location's reference count.
2683         (bpstat_find_breakpoint): Adjust.
2684         (bpstat_num): Adjust.
2685         (print_it_typical): Adjust.  Use the breakpoint pointer in the
2686         bpstat instead of the location's owner.
2687         (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2688         Adjust to record the location's owner in the bpstat.
2689         (watchpoint_check): Use the breakpoint pointer in the bpstat
2690         instead of the location's owner.
2691         (bpstat_check_breakpoint_conditions): Don't handle
2692         bp_watchpoint_scope here.  Use the breakpoint pointer in the
2693         bpstat instead of the location's owner.
2694         (bpstat_stop_status): Defer inferior function calls to after
2695         building the bpstat list.  Handle bp_watchpoint_scope here.  Use
2696         the breakpoint pointer in the bpstat instead of the location's
2697         owner.
2698         (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2699         the location's owner.
2700         (free_bp_location): Don't walk bpstats clearing locations.
2701         (incref_bp_location): New.
2702         (decref_bp_location): New.
2703         (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2704         instead of the location's owner.
2705         (update_global_location_list): Clear the location's owner, and
2706         decrement the location's reference count instead of deleting it
2707         right away.
2708         (breakpoint_retire_moribund): Decrement the location's reference
2709         count instead of deleting it right away.
2710         (bpstat_remove_bp_location): Delete.
2711         (bpstat_remove_breakpoint): New.
2712         (bpstat_remove_bp_location_callback): Delete.
2713         (bpstat_remove_breakpoint_callback): New.
2714         (delete_breakpoint): Iterate over all threads' stop_bpstat's
2715         clearing references to the breakpoint that is being deleted.
2716
2717         * breakpoint.h (struct bp_location) <refc>: New field.
2718         <owner>: Update comments.
2719         (bpstat_free): Delete declaration.
2720         (struct bpstats): Change the type of the breakpoint_at field to
2721         struct breakpoint point, from struct bp_location pointer.  Add new
2722         field bp_location_at.
2723
2724 2010-08-16  Tom Tromey  <tromey@redhat.com>
2725
2726         * NEWS: Fix typo.
2727
2728 2010-08-16  Tom Tromey  <tromey@redhat.com>
2729
2730         * NEWS: Mention watch -location.
2731
2732 2010-08-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2733
2734         * breakpoint.c (update_watchpoint): Add source empty line.  Prefer
2735         EXP_STRING_REPARSE to EXP_STRING.
2736         (watch_command_1): Set also EXP_STRING_REPARSE.
2737         (delete_breakpoint): Free also EXP_STRING_REPARSE.
2738         * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2739         Update comment for exp_string.
2740
2741 2010-08-16  Tom Tromey  <tromey@redhat.com>
2742
2743         * value.c (release_value): Clear 'next' pointer.
2744         * breakpoint.c (watch_command_1): Add 'just_location' argument.
2745         (watch_command_wrapper): Update.
2746         (watch_maybe_just_location): New function.
2747         (watch_command): Update.
2748         (rwatch_command_wrapper): Update.
2749         (rwatch_command): Update.
2750         (awatch_command_wrapper): Update.
2751         (awatch_command): Update.
2752         (check_for_argument): New function.
2753         (_initialize_breakpoint): Update help text.
2754
2755 2010-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
2756
2757         * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2758         typedef'ed function types correctly.
2759
2760 2010-08-13  Tom Tromey  <tromey@redhat.com>
2761
2762         * python/python-internal.h (gdbpy_get_hook_function): Don't
2763         declare.
2764
2765 2010-08-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2766
2767         * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2768         static.
2769
2770 2010-08-13  Ken Werner  <ken.werner@de.ibm.com>
2771
2772         * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2773         the format strings to be compatible with Python 2.4.
2774
2775 2010-08-13  Vladimir Prus  <vladimir@codesourcery.com>
2776
2777         Easier and more stubborn MI memory read commands.
2778
2779         * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2780         and data-write-memory-bytes.
2781         * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2782         (mi_cmd_data_write_memory_bytes): New.
2783         * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2784         (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2785         New.
2786         (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2787         * target.c (target_read_until_error): Remove.
2788         (read_whatever_is_readable, free_memory_read_result_vector)
2789         (read_memory_robust): New.
2790         * target.h (target_read_until_error): Remove.
2791         (struct memory_read_result, free_memory_read_result_vector)
2792         (read_memory_robust): New.
2793
2794 2010-08-13  Hui Zhu  <teawater@gmail.com>
2795
2796         * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2797         (read_comp_unit): Initialize back_to.
2798
2799 2010-08-12  Daniel Jacobowitz  <dan@codesourcery.com>
2800             Pedro Alves  <pedro@codesourcery.com>
2801
2802         * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2803         (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2804         (struct partial_die_info) <has_template_arguments>: New field.
2805         <num_attrs>: Change type to unsigned char.
2806         <building_fullname>: New field.
2807         (dwarf2_build_psymtabs_hard): Set reading_partial_symbols.  Only
2808         allocate a CU if we don't have one already.  Add a cleanup for the
2809         CU.
2810         (partial_die_full_name): Handle template arguments not in
2811         DW_AT_name.
2812         (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2813         (load_full_comp_unit): Only allocate a CU if we don't have one
2814         already.
2815         (do_ui_file_peek_last): New.
2816         (dwarf2_compute_name): Handle template parameters not in
2817         DW_AT_name.
2818         (read_comp_unit): Read and free abbrevs if not read yet.
2819         (load_partial_dies): Handle template arguments not in DW_AT_name.
2820         (find_partial_die): If we have a CU, but no a partial dies yet,
2821         also read in the CU.
2822         (dwarf2_const_value_attr): New, abstracted out from
2823         dwarf2_const_value.
2824         (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2825         dwarf2_const_value_attr.
2826         (determine_prefix): Detect and break loops created by RCVT's debug
2827         info.
2828         (maybe_queue_comp_unit): Bail out early if reading partial
2829         symbols.
2830         (follow_die_offset): Load full CU if we have no dies.
2831         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2832         * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2833
2834 2010-08-11  Tom Tromey  <tromey@redhat.com>
2835             Phil Muldoon  <pmuldoon@redhat.com>
2836
2837         * python/python.c (gdbpy_run_events): New function.
2838         (gdbpy_post_event): Likewise.
2839         (gdbpy_initialize_events): Likewise.
2840         (_initialize_python): Call gdbpy_initialize_events.
2841
2842 2010-08-11  Ken Werner  <ken.werner@de.ibm.com>
2843
2844         * gdb/valarith.c (vector_binop): New function.
2845         (scalar_binop): Likewise.
2846         (value_binop): Call scalar_binop or vector_binop depending on the types.
2847         * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2848         (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2849         to pointers.
2850         * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2851
2852 2010-08-11  Brad Roberts  <braddr@puremagic.com>
2853
2854         * d-lang.c (extract_identifiers): Handle multiple digits.
2855
2856 2010-08-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2857
2858         Code cleanup.
2859         * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2860         Rename to dummy_frame_unwind.
2861         (dummy_frame_unwind): Remove.
2862         * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2863         * frame-unwind.c (frame_unwind_init): Use address of
2864         dummy_frame_unwind and inline_frame_unwind.
2865         * frame.c (create_sentinel_frame): Use address of
2866         sentinel_frame_unwind.
2867         * inline-frame.c (inline_frame_unwinder): Rename to
2868         inline_frame_unwind.
2869         (inline_frame_unwind): Remove.
2870         * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2871         * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2872         sentinel_frame_unwind.
2873         (sentinel_frame_unwind): Remove.
2874         * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2875         struct.
2876
2877 2010-08-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2878
2879         Code cleanup.
2880         * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2881         and returned value.  New comment from frame-unwind.h.
2882         * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2883         Extend the comment.
2884         * frame.c (get_frame_id, frame_unwind_register_value)
2885         (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2886         (get_frame_type, frame_unwind_arch): Do not use the return value of
2887         frame_unwind_find_by_frame.
2888
2889 2010-08-11  Phil Muldoon  <pmuldoon@redhat.com>
2890             Thiago Jung Bauermann  <bauerman@br.ibm.com>
2891             Tom Tromey  <tromey@redhat.com>
2892
2893         * python/python.c (gdbpy_solib_address):  New function.
2894         (gdbpy_decode_line): Likewise.
2895
2896 2010-08-10  Tom Tromey  <tromey@redhat.com>
2897
2898         Revert gdb-add-index addition:
2899         * Makefile.in (install-only): Don't install gdb-add-index.
2900         * gdb-add-index.sh: Remove.
2901
2902 2010-08-09  Kevin Buettner  <kevinb@redhat.com>
2903
2904         * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2905         `target_has_execution' check with `to_has_memory' check.
2906         (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2907         (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2908         with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2909
2910 2010-08-09  Kevin Buettner  <kevinb@redhat.com>
2911
2912         * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2913         (resume_siggnal, resume_step): Move these static globals...
2914         (struct sim_inferior_data): ...into this new struct.
2915         (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2916         New static globals.
2917         (gdb_callback, callbacks_initialized): Move these globals to
2918         a point earlier in the file.
2919         (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2920         (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2921         (gdbsim_close_inferior, gdbsim_resume_inferior)
2922         (gdbsim_stop_inferior): New functions.
2923         (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2924         New constants.
2925         (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2926         (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2927         (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2928         (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2929         (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2930         (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2931         new local variable `sim_data' in each of these functions.  Use
2932         `sim_data' to reference former globals `program_loaded',
2933         `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2934         `resume_step'.
2935         (gdbsim_open): Remove local variable `argv'.  Put results of call
2936         to `gdb_buildargv' in `sim_argv' rather than in `argv'.  Don't
2937         make a cleanup for it.  Free it though when a sim instance cannot
2938         be obtained.
2939         (gdbsim_close): Free sim_argv and null it out as appropriate.
2940         Close sim instances in all inferiors.
2941         (gdbsim_cntrl_c): Stop all inferiors.
2942         (gdbsim_wait): 
2943         (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2944
2945 2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>
2946
2947         * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2948         function after symbol construction is complete.
2949         Do the same for template symbol addition to template_symbols list.
2950
2951 2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>
2952
2953         * symtab.c (symbol_get_demangled_name): Remove assertion and
2954         return NULL when language_specific.cplus_specific is not initialized.
2955         * stabsread.c (define_symbol): Set the name before calling
2956         cp_scan_for_anonymous_namespaces.
2957
2958 2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>
2959
2960         * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2961         SYMBOL_SET_LANGUAGE.
2962         (symbol_init_language_specific): Renamed to symbol_set_language.
2963         * symtab.c (symbol_init_language_specific): Removed redundant check
2964         for language_cplus.
2965         Renamed to symbol_set_language.
2966         * stabsread.c (define_symbol): Updated.
2967         (read_enum_type): Updated
2968         * psymtab.c (add_psymbol_to_bcache): Updated.
2969         * minsyms.c (install_minimal_symbols): Updated.
2970         * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2971         SYMBOL_LANGUAGE to set the language.
2972         * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2973         * mdebugread.c (new_symbol): Ditto.
2974         * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2975         * dwarf2read.c (new_symbol_full): Ditto.
2976         * jv-lang.c (add_class_symbol): Ditto.
2977
2978 2010-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2979
2980         * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2981         (make_cleanup_restore_page_info)
2982         (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2983         * gdbcmd.h (execute_command_to_string): New declaration.
2984         * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2985         (make_cleanup_restore_ui_file): Move to utils.c
2986         (execute_gdb_command) <to_string>: Move ...
2987         * top.c (execute_command_to_string): ... here.  Call
2988         set_batch_flag_and_make_cleanup_restore_page_info.
2989         * utils.c (make_cleanup_restore_integer): New source file blank line.
2990         (make_cleanup_restore_uinteger): New.
2991         (struct restore_ui_file_closure, do_restore_ui_file)
2992         (make_cleanup_restore_ui_file): Move here from python/python.c.
2993         (init_page_info) <batch_flag>
2994         (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2995         (set_batch_flag_and_make_cleanup_restore_page_info): New.
2996
2997 2010-08-06  Maciej W. Rozycki  <macro@codesourcery.com>
2998
2999         * thread.c (add_thread_silent): Use null_ptid instead of
3000         minus_one_ptid while getting rid of stale inferior_ptid.
3001
3002 2010-08-06  Corinna Vinschen  <vinschen@redhat.com>
3003
3004         * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
3005         Throughout, call read_encoded_value with ptr_size rather than addr_size.
3006         (decode_frame_entry_1): Remove redundant setting of
3007         addr_size.  Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
3008         to determine addr_size in Dwarf versions < 4.  Set ptr_size dependent
3009         on examined frame section.  Add comment to explain why.
3010         * gdbarch.sh (dwarf2_addr_size): Define as variable.  Add lengthy
3011         comment to explain usage.
3012         * gdbarch.c: Regenerate.
3013         * gdbarch.h: Regenerate.
3014
3015         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
3016
3017 2010-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3018
3019         Code cleanup.
3020         * varobj.c (varobj_create): Move variables fi, old_fi and block to
3021         a more inner block.
3022
3023 2010-08-05  Pedro Alves  <pedro@codesourcery.com>
3024
3025         * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
3026         (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
3027         (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
3028         (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
3029         linux-tdep.o to gdb_target_obs.
3030
3031 2010-08-05  Marc Khouzam  <marc.khouzam@ericsson.com>
3032
3033         * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
3034         argument.
3035
3036 2010-08-05  Hui Zhu  <teawater@gmail.com>
3037
3038         * mips-linux-tdep.c(regset.h): New include.
3039         (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
3040         mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
3041         mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
3042         mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
3043         mips_linux_regset_from_core_section): New functions.
3044         (fetch_core_registers, regset_core_fns): Deleted.
3045         (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
3046         Deleted regset_core_fns.
3047         * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
3048         tdep->gregset64, tdep->fpregset and tdep->fpregset64.
3049         * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
3050         and fpregset64.
3051
3052 2010-08-04  Pedro Alves  <pedro@codesourcery.com>
3053
3054         * s390-tdep.c: Include linux-tdep.h.
3055         (s390_gdbarch_init): Call linux_init_abi.
3056
3057 2010-08-04  Pedro Alves  <pedro@codesourcery.com>
3058
3059         * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
3060         instead of printing "Thread" here.
3061         * linux-tdep.c: Include inferior.h.
3062         (linux_core_pid_to_str): New.
3063         (linux_init_abi): New.
3064         * linux-tdep.h (linux_init_abi): Declare.
3065         * alpha-linux-tdep.c: Include linux-tdep.h.
3066         (alpha_linux_init_abi): Call linux_init_abi.
3067         * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
3068         * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
3069         * frv-linux-tdep.c: Include linux-tdep.h
3070         (frv_linux_init_abi): Call linux_init_abi.
3071         * hppa-linux-tdep.c: Include linux-tdep.h
3072         (hppa_linux_init_abi): Call linux_init_abi.
3073         * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
3074         * ia64-linux-tdep.c: Include linux-tdep.h.
3075         (ia64_linux_init_abi): Call linux_init_abi.
3076         * m32r-linux-tdep.c: Include linux-tdep.h.
3077         (m32r_linux_init_abi): Call linux_init_abi.
3078         * m68klinux-tdep.c: Include linux-tdep.h.
3079         (m68k_linux_init_abi): Call linux_init_abi.
3080         * microblaze-linux-tdep.c: Include linux-tdep.h.
3081         (microblaze_linux_init_abi): Call linux_init_abi.
3082         * mips-linux-tdep.c: Include linux-tdep.h.
3083         (mips_linux_init_abi): Call linux_init_abi.
3084         * mn10300-linux-tdep.c: Include linux-tdep.h.
3085         (am33_linux_init_osabi): Call linux_init_abi.  Rename the
3086         'gdbinfo' parameter to 'info'.
3087         * ppc-linux-tdep.c: Include linux-tdep.h.
3088         (ppc_linux_init_abi): Call linux_init_abi.
3089         * sh-linux-tdep.c: Include linux-tdep.h.
3090         (sh_linux_init_abi): Call linux_init_abi.
3091         * sparc-linux-tdep.c: Include linux-tdep.h.
3092         (sparc32_linux_init_abi): Call linux_init_abi.
3093         * sparc64-linux-tdep.c: Include linux-tdep.h.
3094         (sparc64_linux_init_abi): Call linux_init_abi.
3095         * xtensa-linux-tdep.c: Include linux-tdep.h.
3096         (xtensa_linux_init_abi): Call linux_init_abi.
3097         * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
3098         (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
3099         callback.
3100
3101 2010-08-03  Doug Evans  <dje@google.com>
3102
3103         * breakpoint.c (bpdisp_text): Constify bpdisps.
3104         * solib-svr4.c (solib_break_names): Constify.
3105         (bkpt_names, main_name_list): Constify.
3106         (match_main): Constify soname arg.
3107         (bfd_lookup_symbol): Remove unnecessary forward decl.
3108         Constify symname arg.
3109         (enable_break): Constify bkpt_namep.
3110         * symtab.c (search_symbols): Constify types, types2, types3, types4.
3111         (symtab_symbol_info): Constify classnames.
3112
3113 2010-08-03  Phil Muldoon  <pmuldoon@redhat.com>
3114
3115         * NEWS: Document Python value inferior function calls.
3116
3117 2010-08-02  Doug Evans  <dje@google.com>
3118
3119         * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
3120
3121 2010-07-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
3122
3123         * linux-thread-db.c (libthread_db_debug): New variable.
3124         (thread_db_find_new_threads_silently): Control verbosity with it.
3125         (try_thread_db_load_1, try_thread_db_load): Likewise.
3126         (find_new_threads_once): Likewise.
3127         (_initialize_thread_db): Set/show it.
3128
3129 2010-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
3130
3131         * common/signals.c (signals): Move the content to signals.def.
3132         Include it.  Remove the INDENT comments.
3133
3134 2010-07-30  Tom Tromey  <tromey@redhat.com>
3135
3136         * Makefile.in (install-only): Install gdb-add-index.
3137         * gdb-add-index.sh: New file.
3138
3139 2010-07-31  Renquan Cheng  <crq@gcc.gnu.org>
3140
3141         * MAINTAINERS: Add myself for write after approval privileges.
3142
3143 2010-07-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
3144
3145         * symfile.c (addr_section_name): New function.
3146         (addrs_section_compar): Use it.
3147         (addr_info_make_relative): Use it.  Move variable sect_name into a more
3148         inner block.  Make ".dynbss" and ".sdynbss" checks more strict.
3149
3150 2010-07-30  Tom Tromey  <tromey@redhat.com>
3151
3152         * configure: Rebuild.
3153         * configure.ac: Add missing case for Python 2.7.
3154
3155 2010-07-29  DJ Delorie  <dj@redhat.com>
3156
3157         * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
3158         conditions.
3159
3160 2010-07-29  Pedro Alves  <pedro@codesourcery.com>
3161
3162         * PROBLEMS: Remove mention of all problems.
3163
3164 2010-07-28  Pedro Alves  <pedro@codesourcery.com>
3165
3166         PR build/11848
3167         * configure.ac: Check for wresize.
3168         * configure, config.in: Regenerate.
3169         * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
3170         with HAVE_WRESIZE.
3171
3172 2010-07-28  Tom Tromey  <tromey@redhat.com>
3173
3174         PR python/11060:
3175         * python/py-type.c (typy_legacy_template_argument): New function,
3176         extracted from typy_template_argument.
3177         (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT.  Return a
3178         value when needed.
3179
3180 2010-07-28  Oleg Nesterov  <oleg@redhat.com>
3181
3182         * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
3183
3184 2010-07-27  Tom Tromey  <tromey@redhat.com>
3185
3186         * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
3187
3188 2010-07-28  Daniel Jacobowitz  <dan@codesourcery.com>
3189
3190         * dwarf2read.c (read_subroutine_type): Improve THIS detection,
3191         handling DW_AT_object_pointer, and workaround GCC PR 43053.
3192
3193 2010-07-28  Tom Tromey  <tromey@redhat.com>
3194
3195         * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
3196
3197 2010-07-28  Joel Brobecker  <brobecker@adacore.com>
3198
3199         * remote.c (remote_download_tracepoint): Add missing gettext markup.
3200         * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
3201
3202 2010-07-28  Joel Brobecker  <brobecker@adacore.com>
3203
3204         * breakpoint.c (breakpoint_re_set_one): Move call to set_language
3205         down, just before the block that parse the breakpoint addr_string.
3206
3207 2010-07-28  Tom Tromey  <tromey@redhat.com>
3208
3209         PR c++/9946:
3210         * symfile.c (reread_symbols): Clear template_symbols.
3211         * symtab.h (struct symbol) <is_cplus_template_function>: New
3212         field.
3213         (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
3214         (struct template_symbol): New.
3215         * symtab.c (lookup_symbol_aux_local): Use
3216         cp_lookup_symbol_imports_or_template.
3217         * objfiles.h (struct objfile) <template_symbols>: New field.
3218         * objfiles.c (relocate_one_symbol): New function.
3219         (objfile_relocate1): Use it.  Relocate isolated symbols.
3220         * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3221         template_arguments>: New fields.
3222         (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3223         (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3224         (TYPE_TEMPLATE_ARGUMENT): Likewise.
3225         (lookup_typename): Update.
3226         * gdbtypes.c (lookup_typename): Constify "block" argument.
3227         * dwarf2read.c: Include vec.h.
3228         (symbolp): New typedef.
3229         (read_func_scope): Read template arguments.  Allocate a
3230         template_symbol when needed.
3231         (read_structure_type): Read template arguments.
3232         (new_symbol_full): New function, from new_symbol.  Handle
3233         DW_TAG_template_type_param and DW_TAG_template_value_param.
3234         (new_symbol): Rewrite as wrapper.
3235         * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3236         * cp-namespace.c: Include language.h.
3237         (search_symbol_list): New function.
3238         (cp_lookup_symbol_imports_or_template): Likewise.
3239
3240 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
3241
3242         * tui/tui-win.c (make_visible_with_new_height): Resize and move
3243         the command window to the new size and position.
3244
3245 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
3246
3247         * tui/tui-win.c (tui_resize_all): Update the locator's origin's
3248         coordinates.
3249
3250 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
3251
3252         * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
3253         after a detecting a resize.
3254         * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
3255         call.
3256
3257 2010-07-28  Pedro Alves  <pedro@codesourcery.com>
3258
3259         * configure.ac: Check for resize_term.
3260         * configure, config.in: Regenerate.
3261
3262 2010-07-27  Joel Brobecker  <brobecker@adacore.com>
3263
3264         * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3265
3266 2010-07-27  Daniel Jacobowitz  <dan@codesourcery.com>
3267
3268         * dwarf2read.c (read_string): Rename to ...
3269         (read_direct_string): ... this.
3270         (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3271         (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3272
3273 2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3274
3275         * linux-nat.c (linux_nat_lp_status_is_event): New function.
3276         (count_events_callback, select_event_lwp_callback)
3277         (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3278
3279 2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3280
3281         * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3282         (_initialize_ia64_linux_nat): Install it.
3283         * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3284         (linux_nat_set_status_is_event): New.
3285         (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3286         cancel_breakpoints_callback, linux_nat_filter_event)
3287         (linux_nat_wait_1): Use linux_nat_status_is_event.
3288         * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3289
3290 2010-07-27  Tom Tromey  <tromey@redhat.com>
3291
3292         * NEWS: Mention labels, .gdb_index.
3293
3294 2010-07-28  CHENG Renquan  <rqcheng@smu.edu.sg>
3295
3296         * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3297         "start,+length" form of arguments.
3298         * NEWS: Add "Changed commands" (disassemble) section for "Changes
3299         since GDB 7.1"; and merge two separated paragraphs of disassemble
3300         description in "Changes in GDB 7.0".
3301
3302 2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3303
3304         * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3305         * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3306         (fputs_maybe_filtered): Do not do filtering also on
3307         ! INPUT_FROM_TERMINAL_P.
3308
3309 2010-07-27  Joel Brobecker  <brobecker@adacore.com>
3310
3311         * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3312         in warning message.
3313
3314 2010-07-27  Phil Muldoon  <pmuldoon@redhat.com>
3315
3316         * python/py-value.c (valpy_call): New Function.
3317
3318 2010-07-27  Ken Werner  <ken.werner@de.ibm.com>
3319
3320         * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
3321         types_list_elements variables.
3322
3323 2010-07-26  Tom Tromey  <tromey@redhat.com>
3324
3325         * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3326         TLS with DW_OP_const4u or DW_OP_const8u.
3327
3328 2010-07-26  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3329
3330         * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3331         VSX registers contents.
3332
3333 2010-07-26  Jerome Guitton  <guitton@adacore.com>
3334
3335         * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3336         its adress is null. Add comment to explain why.
3337         (new_symbol): Ditto.
3338
3339 2010-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3340
3341         * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3342         the host signal first.
3343
3344 2010-07-23  Tom Tromey  <tromey@redhat.com>
3345
3346         * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3347         type_comp_units>: New fields.
3348         (dw2_get_cu): New function.
3349         (create_cus_from_index): Remove unused argument.
3350         (create_signatured_type_hash_from_index): New function.
3351         (create_addrmap_from_index): Update.
3352         (dwarf2_read_index): Handle version 2.
3353         (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3354         (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3355         (dw2_print_stats, dw2_expand_all_symtabs)
3356         (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3357         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3358         (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3359         (allocate_signatured_type_hash_table): New function.
3360         (add_signatured_type_cu_to_list): Likewise.
3361         (create_debug_types_hash_table): Use them.  Set type_comp_units.
3362         (read_signatured_type): Ensure section data is available.
3363         (add_address_entry): Don't record empty ranges.
3364         (struct signatured_type_index_data): New.
3365         (write_one_signatured_type): New function.
3366         (write_psymtabs_to_index): Write type CUs.
3367         (save_gdb_index_command): Update comment.
3368         (process_type_comp_unit): Move inititalization of
3369         from_debug_types...
3370         (create_debug_types_hash_table): ... here.
3371
3372 2010-07-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
3373
3374         * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3375         cleanup and generating of gdb script to it.
3376         (gdb): Use redirection from /dev/null.  Use --nx.  Turn off pagination
3377         and terminal size.  Convert $tmpfile to a series of -ex-es.
3378
3379 2010-07-23  Keith Seitz  <keiths@redhat.com>
3380
3381         * symtab.c (basic_lookup_transparent_type): Call pre-expand
3382         hook for STATIC_BLOCK types, too.
3383
3384 2010-07-23  Keith Seitz  <keiths@redhat.com>
3385
3386         * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3387         and vector definition.
3388
3389 2010-07-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
3390
3391         * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3392
3393 2010-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3394
3395         * dwarf2read.c: Include completer.h.
3396         (save_gdb_index_command): Use matching usage command name.
3397         (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3398         Set filename_completer for it.
3399
3400 2010-07-22  Tom Tromey  <tromey@redhat.com>
3401
3402         * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3403         type signature's per-CU data.
3404
3405 2010-07-22  Pedro Alves  <pedro@codesourcery.com>
3406
3407         * NEWS: Mention target reported shared libraries support by
3408         default.
3409
3410 2010-07-21  Pedro Alves  <pedro@codesourcery.com>
3411
3412         PR symtab/11827
3413
3414         Revert:
3415         2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3416         * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3417         and DW_TAG_volatile_type.
3418         (new_symbol): Likewise.
3419
3420 2010-07-21  Sami Wagiaalla  <swagiaal@redhat.com>
3421
3422         * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3423         function symbols before overload resolution.
3424
3425 2010-07-21  Pedro Alves  <pedro@codesourcery.com>
3426
3427         * breakpoint.c (bptype_string): New, abstracted out from
3428         print_one_breakpoint_location.
3429         (print_one_breakpoint_location): Adjust.
3430         (breakpoint_1): Adjust the type column width dynamically.
3431
3432 2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3433
3434         * symfile.c (find_separate_debug_file_by_debuglink): Remove
3435         a gdb_assert call, new comment.
3436
3437 2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3438
3439         * linux-nat.c (linux_handle_extended_wait): Handle case when
3440         event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3441
3442 2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3443
3444         Code cleanup.
3445         * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3446         linux_nat_wait_1.  Use always LP->STATUS afterwards.
3447
3448 2010-07-20  Hui Zhu  <teawater@gmail.com>
3449
3450         * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3451         (inf_ptrace_attach): Ditto.
3452
3453 2010-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3454
3455         Make core files the process_stratum.
3456         * corefile.c (core_target): New variable.
3457         (core_file_command): Remove variable t, use core_target.
3458         * corelow.c (core_ops): Make it static.
3459         (init_core_ops): Change to process_stratum.  Initialize CORE_TARGET.
3460         * defs.h (make_cleanup_unpush_target): New prototype.
3461         * gdbarch.h: Regenerate.
3462         * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3463         * gdbcore.h (core_target): New declaration.
3464         * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3465         variables ops_already_pushed and back_to.  Use push_target,
3466         make_cleanup_unpush_target and discard_cleanups calls.
3467         * record.c (record_open): Replace core_stratum by a core_bfd check.
3468         * target.c (target_is_pushed): New function.
3469         (find_core_target): Remove.
3470         * target.h (enum strata) <core_stratum>: Remove.
3471         (target_is_pushed): New declaration.
3472         (find_core_target): Remove declaration.
3473         * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3474         * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3475
3476 2010-07-19  Hui Zhu  <teawater@gmail.com>
3477
3478         * breakpoint.c (single_step_breakpoints_inserted): New
3479         function.
3480         * breakpoint.h (single_step_breakpoints_inserted): Extern.
3481         * infrun.c (maybe_software_singlestep): Add check code.
3482         * record.c (record_resume): Add code for software single step.
3483         (record_wait): Ditto.
3484
3485 2010-07-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3486
3487         * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3488         a more inner block.  Remove its unused declaration initializer.
3489
3490 2010-07-16  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3491
3492         * NEWS: Mention support for the new ptrace interface and hardware
3493         accelerated watchpoint conditions on powerpc-linux.
3494
3495 2010-07-16  Ozkan Sezer  <sezeroz@gmail.com>
3496
3497         * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3498         long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3499         and host_address_to_string() and %s for pointers.
3500         (debug_to_remove_breakpoint): Likewise.
3501         (debug_to_region_ok_for_hw_watchpoint): Likewise.
3502         (debug_to_can_accel_watchpoint_condition): Likewise.
3503         (debug_to_stopped_data_address): Likewise.
3504         (debug_to_watchpoint_addr_within_range): Likewise.
3505         (debug_to_insert_hw_breakpoint): Likewise.
3506         (debug_to_remove_hw_breakpoint): Likewise.
3507         (debug_to_insert_watchpoint): Likewise.
3508         (debug_to_remove_watchpoint): Likewise.
3509
3510 2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
3511
3512         * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3513         argument.
3514         (cplus_specific): New struct.
3515         * symtab.c (symbol_set_demangled_name): Updated.
3516         Use cplus_specific for cplus symbols.
3517         (symbol_get_demangled_name): Retrive the name from the cplus_specific
3518         struct for cplus symbols.
3519         (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3520         (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3521         * symtab.c (symbol_init_cplus_specific): New function.
3522
3523 2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
3524
3525         * symtab.h (symbol_set_demangled_name): New function.
3526         (symbol_get_demangled_name): New function.
3527         * symtab.c (symbol_set_demangled_name): New function.
3528         (symbol_get_demangled_name): New function.
3529         (symbol_init_language_specific): Use demangled_name setter and getter.
3530         (symbol_set_names): Ditto.
3531         (symbol_natural_name): Ditto.
3532         (symbol_demangled_name): Ditto.
3533         * dwarf2read.c (new_symbol): Ditto.
3534
3535 2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
3536
3537         * symtab.h: Renamed cplus_specific to mangled_lang.
3538         * symtab.c (symbol_init_language_specific): Updated.
3539         (symbol_set_names): Updated.
3540         (symbol_natural_name): Updated.
3541         (symbol_demangled_name): Updated.
3542         * ada-lang.c (ada_decode_symbol): Updated.
3543         * dwarf2read.c (new_symbol): Updated.
3544
3545 2010-07-14  Ken Werner  <ken.werner@de.ibm.com>
3546
3547         * valops.c (value_assign): Do not call to value_coerce_to_target.
3548         (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3549
3550 2010-07-14  Ken Werner  <ken.werner@de.ibm.com>
3551
3552         * MAINTAINERS: Add myself for write after approval privileges.
3553
3554 2010-07-13  Emmanuel ThomĂ©  <Emmanuel.Thome@gmail.com>
3555
3556         * c-valprint.c (c_val_print): Add embedded_offset to address in
3557         call to val_print_array_elements.
3558
3559 2010-07-13  Tom Tromey  <tromey@redhat.com>
3560
3561         * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3562
3563 2010-07-13  Tom Tromey  <tromey@redhat.com>
3564
3565         * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3566         objfile.
3567
3568 2010-07-13  Tom Tromey  <tromey@redhat.com>
3569
3570         * symfile.c (set_initial_language): Update.
3571         (deduce_language_from_filename): Argument type now const.
3572         * symtab.h (find_main_filename): Update.
3573         (deduce_language_from_filename): Update.
3574         * symtab.c (find_main_filename): Make result const.
3575         * dwarf2read.c (dw2_find_symbol_file): Change return type.
3576         * psymtab.c (find_symbol_file_from_partial): Change return type.
3577         * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3578         Make result const.
3579
3580 2010-07-13  Tom Tromey  <tromey@redhat.com>
3581
3582         * breakpoint.c (save_cmdlist): No longer static.
3583         * gdbcmd.h (save_cmdlist): Declare.
3584         * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3585         OBJF_READNOW on objfile if readnow_symbol_files.
3586         * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3587         (elf_sym_fns_gdb_index): New global.
3588         * dwarf2read.c: Include exceptions.h.
3589         (offset_type): New.
3590         (struct mapped_index): New.
3591         (dwarf2_per_cu_data_ptr): New typedef.
3592         (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3593         New fields.
3594         (GDB_INDEX_SECTION): New define.
3595         (struct dwarf2_per_cu_quick_data): New.
3596         (struct dwarf2_per_cu_data) <objfile>: New field.
3597         <psymtab>: Removed.
3598         <v>: New field.
3599         (byte_swap): New function.
3600         (MAYBE_SWAP): New macro.
3601         (INDEX_SUFFIX): New macro.
3602         (dw2_do_instantiate_symtab): New function.
3603         (dw2_instantiate_symtab): Likewise.
3604         (create_cus_from_index): Likewise.
3605         (create_addrmap_from_index): Likewise.
3606         (mapped_index_string_hash): Likewise.
3607         (find_slot_in_mapped_hash): Likewise.
3608         (dwarf2_read_index): Likewise.
3609         (dw2_setup): Likewise.
3610         (dw2_require_line_header): Likewise.
3611         (dw2_require_full_path): Likewise.
3612         (dw2_find_last_source_symtab): Likewise.
3613         (dw2_forget_cached_source_info): Likewise.
3614         (dw2_lookup_symtab): Likewise.
3615         (dw2_lookup_symbol): Likewise.
3616         (dw2_do_expand_symtabs_matching): Likewise.
3617         (dw2_pre_expand_symtabs_matching): Likewise.
3618         (dw2_print_stats): Likewise.
3619         (dw2_dump): Likewise.
3620         (dw2_relocate): Likewise.
3621         (dw2_expand_symtabs_for_function): Likewise.
3622         (dw2_expand_all_symtabs): Likewise.
3623         (dw2_expand_symtabs_with_filename): Likewise.
3624         (dw2_find_symbol_file): Likewise.
3625         (dw2_map_ada_symtabs): Likewise.
3626         (dw2_expand_symtabs_matching): Likewise.
3627         (dw2_find_pc_sect_symtab): Likewise.
3628         (dw2_map_symbol_names): Likewise.
3629         (dw2_map_symbol_filenames): Likewise.
3630         (dw2_has_symbols): Likewise.
3631         (dwarf2_gdb_index_functions): New global.
3632         (dwarf2_initialize_objfile): New function.
3633         (process_psymtab_comp_unit): Update.
3634         (add_partial_subprogram): Likewise.
3635         (dwarf2_psymtab_to_symtab): Likewise.
3636         (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3637         (process_full_comp_unit): Update.
3638         (find_file_and_directory): New function.
3639         (read_file_scope): Use find_file_and_directory.
3640         (dwarf2_per_cu_objfile): Update.
3641         (dwarf2_per_cu_addr_size): Update.
3642         (dwarf2_per_cu_offset_size): Update.
3643         (dwarf2_free_objfile): Free the index, if needed.
3644         (dwarf2_per_objfile_free): Unmap the index, if needed.
3645         (struct strtab_entry): New.
3646         (hash_strtab_entry): New function.
3647         (eq_strtab_entry): Likewise.
3648         (create_strtab): Likewise.
3649         (add_string): Likewise.
3650         (struct symtab_index_entry): New.
3651         (struct mapped_symtab): New.
3652         (hash_symtab_entry): New function.
3653         (eq_symtab_entry): Likewise.
3654         (delete_symtab_entry): Likewise.
3655         (create_index_table): Likewise.
3656         (create_mapped_symtab): Likewise.
3657         (cleanup_mapped_symtab): Likewise.
3658         (find_slot): Likewise.
3659         (hash_expand): Likewise.
3660         (add_index_entry): Likewise.
3661         (add_indices_to_cpool): Likewise.
3662         (write_hash_table): Likewise.
3663         (add_address_entry): Likewise.
3664         (write_psymbols): Likewise.
3665         (write_obstack): Likewise.
3666         (unlink_if_set): Likewise.
3667         (write_psymtabs_to_index): Likewise.
3668         (save_gdb_index_command): Likewise.
3669         (_initialize_dwarf2_read): Install "save gdb-index"
3670         command.
3671         (create_all_comp_units): Initialize 'objfile' field of CU.
3672         (dwarf2_locate_sections): Check for .gdb_index.
3673         * psymtab.h (dwarf2_gdb_index_functions): Declare.
3674         * symfile.h (dwarf2_initialize_objfile): Declare.
3675
3676 2010-07-13  Tom Tromey  <tromey@redhat.com>
3677
3678         * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3679         (basic_lookup_transparent_type): Likewise.
3680         * symfile.h (struct quick_symbol_functions)
3681         <pre_expand_symtabs_matching>: New field.
3682         * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3683         (psym_functions): Update.
3684
3685 2010-07-13  Tom Tromey  <tromey@redhat.com>
3686
3687         PR breakpoints/8357:
3688         * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3689         * linespec.c (decode_line_1): Update comment.  Call decode_label.
3690         (decode_label): New function.
3691         (symbol_found): Handle LOC_LABEL.
3692         * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3693         domain.  Call add_symbol_to_list.
3694
3695 2010-07-13  Tom Tromey  <tromey@redhat.com>
3696
3697         * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3698         * dwarf2loc.c (find_location_expression): Use
3699         dwarf2_per_cu_text_offset.
3700         (dwarf2_evaluate_loc_desc): Likewise.
3701         (dwarf2_loc_desc_needs_frame): Likewise.
3702         (compile_dwarf_to_ax): Likewise.
3703         (loclist_describe_location): Likewise.
3704         * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3705         (dwarf2_per_cu_objfile): Update comment.
3706
3707 2010-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
3708
3709         * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3710         * p-lang.c (pascal_printstr): Likewise.
3711
3712 2010-07-09  Tom Tromey  <tromey@redhat.com>
3713
3714         * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3715         'hint' if it is NULL.
3716
3717 2010-07-09  Hui Zhu  <teawater@gmail.com>
3718
3719         * source.c (print_source_lines_base): Add check for noprint.
3720
3721 2010-07-08  Joel Brobecker  <brobecker@adacore.com>
3722
3723         * python/python-config.py: Resync with Python 2.7 version of this
3724         script.
3725
3726 2010-07-08  Joel Brobecker  <brobecker@adacore.com>
3727
3728         * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3729
3730 2010-07-07  Joel Brobecker  <brobecker@adacore.com>
3731
3732         * NEWS: Create a new section for the next release branch.
3733         Rename the section of the current branch, now that it has
3734         been cut.
3735
3736 2010-07-07  Joel Brobecker  <brobecker@adacore.com>
3737
3738         GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3739         * version.in: Bump version to 7.2.50.20100707-cvs.
3740
3741 2010-07-07  Tom Tromey  <tromey@redhat.com>
3742
3743         * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3744         LOC_COMPUTED symbol.
3745         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3746         (dwarf2_loc_desc_needs_frame): Likewise.
3747         (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3748         * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3749         * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3750         * dwarf2-frame.c (execute_stack_op): Set 'offset' field.  Add
3751         'offset' argument.
3752         (struct dwarf2_frame_cache) <text_offset>: New field.
3753         (dwarf2_frame_cache): Set new field.
3754         (dwarf2_frame_prev_register): Update.
3755         (dwarf2_frame_sniffer): Update.
3756         (dwarf2_frame_base_sniffer): Update.
3757         (dwarf2_frame_find_fde): Add 'out_offset' argument.
3758
3759 2010-07-07  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
3760             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3761
3762         Support for hw accelerated condition watchpoints in booke powerpc.
3763
3764         * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3765         and move to eval.c.  Change callers.
3766         (insert_bp_location): Pass watchpoint condition in
3767         target_insert_watchpoint.
3768         (remove_breakpoint_1) Pass watchpoint condition in
3769         target_remove_watchpoint.
3770         (watchpoint_locations_match): Call
3771         target_can_accel_watchpoint_condition.
3772         * eval.c: Include wrapper.h.
3773         (fetch_subexp_value): Moved from breakpoint.c.
3774         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3775         Formatting fix.
3776         (can_use_watchpoint_cond_accel): New function.
3777         (calculate_dvc): Likewise.
3778         (num_memory_accesses): Likewise.
3779         (check_condition): Likewise.
3780         (ppc_linux_can_accel_watchpoint_condition): Likewise
3781         (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3782         check_condition and calculate_dvc.
3783         (ppc_linux_remove_watchpoint): Likewise.
3784         (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3785         ppc_linux_can_accel_watchpoint_condition
3786         * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3787         condition.
3788         (debug_to_remove_watchpoint): Likewise.
3789         (debug_to_can_accel_watchpoint_condition): New function.
3790         (update_current_target): Set to_can_accel_watchpoint_condition.
3791         (setup_target_debug): Set to_can_accel_watchpoint_condition.
3792         * target.h: Add opaque declaration for struct expression.
3793         (struct target_ops) <to_insert_watchpoint>,
3794         <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3795         <to_can_accel_watchpoint_condition>: New member.
3796         condition.  Update all callers and implementations.
3797         (target_can_accel_watchpoint_condition): New macro.
3798         * value.c (free_value_chain): New function.
3799         * value.h (fetch_subexp_value): New prototype.
3800         (free_value_chain): Likewise.
3801
3802 2010-07-07  Ulrich Weigand  <uweigand@de.ibm.com>
3803
3804         * linux-nat.c (linux_nat_do_thread_registers): Use section size
3805         from gdbarch_core_regset_sections also for .reg if present.
3806
3807         * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3808         section size for .reg.
3809         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3810         (ppc_linux_vmx_regset_sections): Likewise.
3811         (ppc_linux_fp_regset_sections): Likewise.
3812         (ppc64_linux_vsx_regset_sections): New variable.
3813         (ppc64_linux_vmx_regset_sections): Likewise.
3814         (ppc64_linux_fp_regset_sections): Likewise.
3815         (ppc_linux_init_abi): Install core_regset_section lists appropriate
3816         for current word size.
3817
3818 2010-07-06  Joel Brobecker  <brobecker@adacore.com>
3819
3820         * server.c (myresume): Make static.
3821
3822 2010-07-06  Tom Tromey  <tromey@redhat.com>
3823
3824         * configure, config.in: Rebuild.
3825         * configure.ac (HAVE_LIBPYTHON2_7): New define.
3826         * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3827
3828 2010-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3829
3830         * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3831         "clear".
3832
3833 2010-07-06  Ken Werner  <ken.werner@de.ibm.com>
3834
3835         * gdbtypes.h (floatformats_ieee_half): Add declaration.
3836         * gdbtypes.c (floatformats_ieee_half): New variable.
3837         * doublest.c (floatformat_from_length): Set format to
3838         gdbarch_half_format if length matches.
3839         * gdbarch.sh (half_bit): New architecture method.
3840         (half_format): Likewise.
3841         * gdbarch.h: Regenerate.
3842         * gdbarch.c: Likewise.
3843
3844 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3845             Joel Brobecker  <brobecker@adacore.com>
3846
3847         Fix re-run of PIE executable, PR shlibs/11776.
3848         * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3849         the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3850
3851 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3852             Joel Brobecker  <brobecker@adacore.com>
3853
3854         * auxv.c (memory_xfer_auxv): Update attach comment.
3855         * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3856         svr4_relocate_main_executable.
3857         (svr4_solib_create_inferior_hook): Make the call to
3858         svr4_relocate_main_executable unconditional.
3859
3860 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3861             Joel Brobecker  <brobecker@adacore.com>
3862
3863         * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3864
3865 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3866             Joel Brobecker  <brobecker@adacore.com>
3867
3868         Fix attaching to PIEs prelinked on the disk after the process was
3869         started.
3870         * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3871         Verify it against bfd_get_arch_size.  Try to match arbitrary
3872         displacement for the phdrs comparison.
3873
3874 2010-07-02  Tom Tromey  <tromey@redhat.com>
3875
3876         PR exp/11780:
3877         * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3878         value as optimized-out.
3879
3880 2010-07-02  Ulrich Weigand  <uweigand@de.ibm.com>
3881             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3882
3883         * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3884         represent?" question in comment.  Change comment to a proper sentence.
3885
3886 2010-07-02  Ken Werner  <ken.werner@de.ibm.com>
3887
3888         * c-valprint.c (c_val_print): Fix printing of character vectors.
3889
3890 2010-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3891
3892         * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3893         create_breakpoint prototype.
3894
3895 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3896
3897         * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3898         usefulness suggestion of multiple breakpoints at same location.
3899
3900 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3901
3902         * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3903
3904 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3905
3906         * dwarf2loc.c (locexpr_tracepoint_var_ref)
3907         (loclist_tracepoint_var_ref): Handle optimized out values.
3908
3909 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3910
3911         * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3912         unnecessary space in string.
3913         * filesystem.c (_initialize_filesystem): Ditto.
3914         * frame.c (_initialize_frame): Ditto.
3915         * infcmd.c (step_once): Ditto.
3916         * infrun.c (_initialize_infrun): Ditto.
3917         * linux-nat.c (linux_child_follow_fork): Ditto.
3918         * maint.c (maintenance_deprecate): Ditto.
3919         * memattr.c (_initialize_mem): Ditto.
3920         * mips-tdep.c (_initialize_mips_tdep): Ditto.
3921         * monitor.c (monitor_open): Ditto.
3922         * procfs.c (procfs_xfer_memory): Ditto.
3923         * reverse.c (bookmarks_info): Ditto.
3924         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3925         * stack.c (_initialize_stack): Ditto.
3926         * tracepoint.c (_initialize_tracepoint): Ditto.
3927         * xtensa-tdep.c (xtensa_supply_gregset,
3928         xtensa_regset_from_core_section): Ditto.
3929
3930 2010-07-01  Tom Tromey  <tromey@redhat.com>
3931
3932         * value.h (struct lval_funcs) <check_any_valid>: Rename from
3933         check_all_valid.
3934         * value.c (value_entirely_optimized_out): Invert result.  Update
3935         for new function name.
3936
3937 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3938
3939         Static tracepoints support.
3940
3941         * NEWS: Mention new support for static tracepoints.
3942         (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3943         qXfer:statictrace:read.
3944         (New features in the GDB remote stub, GDBserver): Mention static
3945         tracepoints support using an UST based backend.
3946         (New commands): Mention "info static-tracepoint-markers" and
3947         "strace".
3948         * breakpoint.c (is_marker_spec): New.
3949         (is_tracepoint): Handle static tracepoints.
3950         (validate_commands_for_breakpoint): Static tracepoints can't do
3951         while-stepping.
3952         (static_tracepoints_here): New.
3953         (bpstat_what): Handle static tracepoints.
3954         (print_one_breakpoint_location, allocate_bp_location, mention):
3955         Ditto.
3956         (create_breakpoint_sal): Ditto.
3957         (decode_static_tracepoint_spec): New.
3958         (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3959         `type_wanted'.  Adjust.  Handle static tracepoint marker
3960         locations.
3961         (break_command_1): Adjust.
3962         (update_static_tracepoint): New.
3963         (update_breakpoint_locations): Handle static tracepoints.
3964         (breakpoint_re_set_one): Handle static tracepoint marker
3965         locations.
3966         (disable_command, enable_command): Handle static tracepoints.
3967         (trace_command, ftrace_command): Adjust.
3968         (strace_command): New.
3969         (create_tracepoint_from_upload): Adjust.
3970         (save_breakpoints): Handle static tracepoints.
3971         (_initialize_breakpoint): Install the "strace" command.
3972         * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3973         (struct breakpoint): New fields static_trace_marker_id and
3974         static_trace_marker_id_idx.
3975         (breakpoints_here_p): Declare.
3976         (create_breakpoint): Adjust.
3977         (static_tracepoints_here): Declare.
3978         * remote.c (struct remote_state) <static_tracepoints>: New field.
3979         (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3980         (remote_static_tracepoint_marker_at): New.
3981         (remote_static_tracepoint_markers_by_strid): New.
3982         (remote_static_tracepoint_feature): New.
3983         (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3984         (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3985         (remote_supports_static_tracepoints): New.
3986         (remote_download_tracepoint): Download static tracepoints.
3987         (init_remote_ops): Install remote_static_tracepoint_marker_at and
3988         remote_static_tracepoint_markers_by_strid.
3989         (_initialize_remote): Install set|show remote static-tracepoints,
3990         and set|show remote read-sdata-object commands.
3991         * target.c (update_current_target): Inherit and default
3992         to_static_tracepoint_marker_at, and
3993         to_static_tracepoint_markers_by_strid.
3994         * target.h (static_tracepoint_marker): Forward declare.
3995         (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3996         (static_tracepoint_marker_p): New typedef.
3997         (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3998         (struct target_ops): New fields to_static_tracepoint_marker_at and
3999         to_static_tracepoint_markers_by_strid.
4000         (target_static_tracepoint_marker_at)
4001         (target_static_tracepoint_markers_by_strid): New.
4002         * tracepoint.c: Include source.h.
4003         (validate_actionline): Handle $_sdata.
4004         (struct collection_list): New field strace_data.
4005         (add_static_trace_data): New.
4006         (clear_collection_list): Clear strace_data.
4007         (stringify_collection_list): Account for a possible static trace
4008         data collection.
4009         (encode_actions_1): Encode an $_sdata collection.
4010         (parse_tracepoint_definition): Handle static tracepoints.
4011         (parse_static_tracepoint_marker_definition): New.
4012         (release_static_tracepoint_marker): New.
4013         (print_one_static_tracepoint_marker): New.
4014         (info_static_tracepoint_markers_command): New.
4015         (sdata_make_value): New.
4016         (_initialize_tracepoint): Create the $_sdata convenience variable.
4017         Add the "info static-tracepoint-markers" command.
4018         Mention $_sdata in the "collect" command's help output.
4019         * tracepoint.h (struct static_tracepoint_marker): New.
4020         (parse_static_tracepoint_marker_definition)
4021         (release_static_tracepoint_marker): Declare.
4022         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4023         * python/py-breakpoint.c (bppy_new): Adjust.
4024
4025 2010-06-30  Joel Brobecker  <brobecker@adacore.com>
4026
4027         * python/python-internal.h (_XOPEN_SOURCE): Undefine before
4028         including Python.h.
4029
4030 2010-06-29  Doug Evans  <dje@google.com>
4031
4032         PR gdb/11702
4033         * dwarf2read.c (dwarf2_add_field): Only create a symbol if
4034         DW_AT_external is present.
4035
4036         PR gdb/11702
4037         * NEWS: Add entry.
4038         * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
4039         create a symbol for the field and record the value.
4040         (new_symbol): Handle DW_TAG_member.
4041         * gdbtypes.c (field_is_static): Remove FIXME.
4042         * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
4043         only ignore LOC_CONST symbols that are enums.
4044
4045         * dwarf2read.c: Remove trailing whitespace.
4046
4047         Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
4048         * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
4049         (struct main_type, field loc): Delete dwarf_block.
4050         (FIELD_DWARF_BLOCK): Delete.
4051         (SET_FIELD_DWARF_BLOCK): Delete.
4052         (TYPE_FIELD_DWARF_BLOCK): Delete.
4053         * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
4054         Update.
4055
4056 2010-06-29  Hui Zhu  <teawater@gmail.com>
4057
4058         * record.c (set_record_pic_cmdlist,
4059         show_record_pic_cmdlist): New variables.
4060         (set_record_pic_command,
4061         show_record_pic_command): New functions.
4062         (record_pic_function, record_pic_line, record_pic_enum,
4063         set_record_pic_type, record_pic_hide_nofunction,
4064         record_pic_hide_nosource, record_pic_hide_same): New variables.
4065         (record_pic_fputs): New function.
4066         (function_list, node_list, edge_list): New struct.
4067         (function_list, node_list, edge_list): New variables.
4068         (record_pic_cleanups, record_pic_node,
4069         record_pic_edge, cmd_record_pic): New functions.
4070         (_initialize_record): Add new commands for record pic.
4071
4072 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4073
4074         * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
4075         ALLOCATE_CPLUS_STRUCT_TYPE.
4076
4077 2010-06-28  Phil Muldoon  <pmuldoon@redhat.com>
4078             Tom Tromey  <tromey@redhat.com>
4079             Thiago Jung Bauermann  <bauerman@br.ibm.com>
4080
4081         * value.c (pack_unsigned_long): New function.
4082         (value_from_ulongest): New function.
4083         * value.h (value_from_ulongest): Declare.
4084         * python/python.c (_initialize_python): Call
4085         gdbpy_initialize_thread and gdbpy_initialize_inferior.
4086         * python/python-internal.h: Define thread_object.
4087         (gdbpy_inferiors, gdbpy_selected_thread)
4088         (frame_info_to_frame_object, create_thread_object)
4089         (find_thread_object, find_inferior_object)
4090         (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
4091         (gdbpy_is_value_object, get_addr_from_python): Declare.
4092         * python/py-value.c (builtin_type_upylong): Define.
4093         (convert_value_from_python): Add logic for ulongest.
4094         (gdbpy_is_value_object): New function.
4095         * python/py-utils.c (get_addr_from_python): New function.
4096         * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
4097         (gdbpy_selected_frame): Use PyObject over frame_info.
4098         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
4099         py-infthread.
4100         (SUBDIR_PYTHON_SRCS): Likewise.
4101         (py-inferior.o): New Rule.
4102         (py-infthread.o): New Rule.
4103         * python/py-inferior.c: New File.
4104         * python/py-infthread.c: New File.
4105
4106 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4107
4108         * c-typeprint.c (c_type_print_base): For no fields check include also
4109         TYPE_TYPEDEF_FIELD_COUNT.  Print new typedefs section.
4110         * dwarf2read.c (struct typedef_field_list)
4111         (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
4112         (dwarf2_add_typedef): New.
4113         (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
4114         Copy also FI.TYPEDEF_FIELD_LIST.
4115         * gdbtypes.h (struct typedef_field)
4116         (struct cplus_struct_type) <typedef_field, typedef_field_count>
4117         (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
4118         (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
4119
4120 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4121
4122         * cp-namespace.c (cp_lookup_nested_type): New variable
4123         concatenated_name.  Turn the current return condition into a reverse
4124         one.  Call also lookup_static_symbol_aux on the constructed qualified
4125         name.
4126         * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
4127         other files into a called ...
4128         (lookup_static_symbol_aux): ... new function here.
4129         * symtab.h (lookup_static_symbol_aux): New prototype.
4130         * valops.c (value_maybe_namespace_elt): Call also
4131         lookup_static_symbol_aux if we failed otherwise.
4132
4133 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4134
4135         Fix PR c++/11703 and PR gdb/1448.
4136         * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
4137         FIRST_ITER check.
4138
4139 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4140
4141         Fix modification of cplus_struct_default.
4142         * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
4143         Call ALLOCATE_CPLUS_STRUCT_TYPE.
4144         * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
4145
4146 2010-06-28  Joel Brobecker  <brobecker@adacore.com>
4147
4148         * NEWS: Add entry announcing the python directory.
4149
4150 2010-06-28  Tom Tromey  <tromey@redhat.com>
4151
4152         * dwarf2read.c (read_structure_type): Allocate null cleanup later.
4153
4154 2010-06-28  Doug Evans  <dje@google.com>
4155
4156         * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
4157         All callers updated.
4158
4159 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4160
4161         * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
4162         obstack_begin after each obstack_free.
4163
4164 2010-06-27  Doug Evans  <dje@google.com>
4165
4166         * value.c (value_static_field): Use `switch' instead of `if'.
4167         Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
4168
4169         * valops.c (search_struct_field): Fix typo in error message.
4170
4171 2010-06-26  Ulrich Weigand  <uweigand@de.ibm.com>
4172
4173         * dwarf2expr.c (execute_stack_op): Place preprocessor
4174         directives at the start of the source line.
4175
4176 2010-06-25  Paul Hilfinger  <hilfinger@adacore.com>
4177
4178         * defs.h (make_command_stats_cleanup): Declare.
4179         (set_display_time): Declare.
4180         (set_display_space): Declare.
4181         * event-top.c (command_handler): Use make_command_stats_cleanup.
4182         * main.c (display_time, display_space): Move definitions to utils.c.
4183         (captured_main): Use make_command_stats_cleanup to get start-up
4184         statistics.
4185         Use set_display_time and set_display_space for processing OPT_STATISTICS
4186         case.
4187         * maint.c (maintenance_time_display): Use set_display_time.
4188         (maintenance_space_display): Use set_display_space.
4189         * top.c (execute_command): Remove obsolete 'maint time' code.
4190         (command_loop): Use make_command_stats_cleanup.
4191         * utils.c (struct cmd_stats): Structure for storing initial time
4192         and space usage.
4193         (display_time, display_space): Move definitions here from utils.c.
4194         (set_display_time): New function.
4195         (set_display_space): New function.
4196         (make_command_stats_cleanup): New function.
4197         (report_command_stats): New auxiliary function for
4198         make_command_stats_cleanup.
4199
4200 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
4201
4202         * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4203         hosts where CORE_ADDR is long long.
4204
4205 2010-06-25  Tom Tromey  <tromey@redhat.com>
4206
4207         PR python/10808:
4208         * python/python.c (execute_gdb_command): Add keywords.  Accept
4209         "to_string" argument.
4210         (struct restore_ui_file_closure): New.
4211         (restore_ui_file): New function.
4212         (make_cleanup_restore_ui_file): Likewise.
4213         (GdbMethods) <execute>: Update.
4214
4215 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
4216
4217         * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
4218         during inferior call stack frame setup.
4219
4220 2010-06-25  Ken Werner  <ken.werner@de.ibm.com>
4221
4222         * solib-spu.c: Include "exception.h".
4223         (ocl_program_data_key): New variable.
4224         (append_ocl_sos): New function.
4225         (ocl_enable_break): Likewise.
4226         (spu_current_sos): Call append_ocl_sos.
4227         (spu_solib_loaded): Call ocl_enable_break.
4228         (_initialize_spu_solib): Register ocl_program_data_key.
4229
4230 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
4231
4232         * cp-support.c (reset_directive_searched): New function.
4233         (make_symbol_overload_list_using): Prevent recursive calls.
4234
4235 2010-06-25  Phil Muldoon  <pmuldoon@redhat.com>
4236
4237         * printcmd.c (print_variable_and_value): Print error message on
4238         caught exception.
4239
4240 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
4241
4242         * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4243         of stack values.
4244         (struct dwarf_expr_piece): Rename "expr" member to "mem".  Add new
4245         "value" member.
4246         (dwarf_expr_push): Change input type to ULONGEST.
4247         (dwarf_expr_fetch): Change return type to ULONGEST.
4248         (dwarf_expr_fetch_address): Add prototype.
4249         (dwarf2_read_address): Remove prototype.
4250         * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4251         Truncate stack values to ctx->addr_size bytes.
4252         (dwarf_expr_fetch): Change return value to ULONGEST.
4253         (dwarf_expr_fetch_address): New function.
4254         (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4255         when appropriate.  Update for struct dwarf_expr_piece changes.
4256         (dwarf2_read_address): Remove.
4257         (unsigned_address_type): Remove.
4258         (signed_address_type): Remove.
4259         (execute_stack_op): Use dwarf_expr_fetch_address instead of
4260         dwarf_expr_fetch when appropriate.  Use ULONGEST as type of stack
4261         values.  Perform operations on ULONGEST instead of on GDB values,
4262         sign-extending from ctx->addr_size bytes as needed.  Read DW_OP_addr
4263         values and DW_OP_deref results as unsigned integers.
4264         * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4265         changes.
4266         (write_pieced_value): Likewise.
4267         (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4268         dwarf_expr_fetch when appropriate.
4269         (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4270         * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4271         instead of dwarf_expr_fetch when appropriate.
4272
4273 2010-06-25  Pierre Muller  <muller@ics.u-strasbg.fr>
4274
4275         * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4276
4277 2010-06-24  Joel Brobecker  <brobecker@adacore.com>
4278
4279         * python/python.c (_initialize_python): Add new "constant"
4280         PYTHONDIR in gdb module.  Insert this path at the head of
4281         sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4282         exec its __init__.py script if it exists in that directory.
4283
4284 2010-06-24  Kevin Buettner  <kevinb@redhat.com>
4285
4286         * rx-tdep.c (RX_ACC_REGNUM): Define.
4287         (RX_NUM_REGS): Redefine to 26.
4288         (rx_register_name): Add register "acc".  Change order of several
4289         registers.  Change name of "vct" register to "fintv" to match RX
4290         documentation.
4291         (rx_register_type): Add case for RX_ACC_REGNUM.
4292
4293 2010-06-24  Tom Tromey  <tromey@redhat.com>
4294
4295         * psymtab.c (lookup_partial_symbol): Mark definition as static.
4296
4297 2010-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4298             Tom Tromey  <tromey@redhat.com>
4299
4300         Fix GDB startup on readonly filesystem.
4301         * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4302
4303 2010-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4304             Pedro Alves  <pedro@codesourcery.com>
4305
4306         Fix PR 9436.
4307         * breakpoint.c (handle_jit_event): New function.
4308         (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4309         jit, err, table and bs_class.  New variables shlib_event, jit_event,
4310         this_action and bptype.  Change bs_class assignments to this_action
4311         assignments.  new unhandled bptype internal error.  Move here
4312         shlib_event and jit_event handling from handle_inferior_event.
4313         * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4314         Reorder items.  Remove BPSTAT_WHAT_CHECK_SHLIBS and
4315         BPSTAT_WHAT_CHECK_JIT.
4316         * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4317         * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4318         (handle_inferior_event): Reinitialize frame and gdbarch after
4319         bpstat_what call.  Move BPSTAT_WHAT_CHECK_SHLIBS and
4320         BPSTAT_WHAT_CHECK_JIT handling to bpstat_what.  Reinitialize even
4321         gdbarch when frame gets reinitialized.
4322
4323 2010-06-24  Hui Zhu  <teawater@gmail.com>
4324
4325        * printcmd.c (ui_printf): New function.
4326        (printf_command): Call ui_printf.
4327        (_initialize_printcmd): New command "eval".
4328
4329 2010-06-23  Ulrich Weigand  <uweigand@de.ibm.com>
4330
4331         * infrun.c (handle_inferior_event): Handle presence of single-step
4332         breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4333         Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4334         TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4335         * breakpoint.c (detach_single_step_breakpoints): New function.
4336         (detach_breakpoints): Call it.
4337         (cancel_single_step_breakpoints): New function.
4338         * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4339
4340         * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4341         (spu_gdbarch_init): Install it.
4342
4343 2010-06-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
4344
4345         * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4346         * configure: Regenerate.
4347
4348 2010-06-22  Hui Zhu  <teawater@gmail.com>
4349
4350         * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4351         (i386_process_record): Ditto.
4352         * record.c (record_memory_query): New variable.
4353         (_initialize_record): New command "set record memory-query".
4354         * record.h (record_memory_query): New extern.
4355
4356 2010-06-21  Doug Evans  <dje@google.com>
4357
4358         * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4359         * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4360         (i386_syscall_p): Change type of lengthp to int.
4361         (i386_displaced_step_fixup): Handle kernels that run one past a
4362         syscall insn.
4363         * i386-linux-tdep.c (i386_linux_init_abi): Use
4364         i386_displaced_step_copy_insn instead of
4365         simple_displaced_step_copy_insn.
4366
4367 2010-06-21  Tom Tromey  <tromey@redhat.com>
4368
4369         * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4370         (dwarf_type_encoding_name): Likewise.
4371
4372 2010-06-21  Tom Tromey  <tromey@redhat.com>
4373
4374         * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4375         * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4376         * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4377         * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4378         * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4379         * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4380         * dwarf2read.c (tag_type_to_type): Create a new error type on
4381         failure.
4382         * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4383         * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4384
4385 2010-06-21  Michael Snyder  <msnyder@vmware.com>
4386
4387         * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
4388         not add_abbrev_prefix_cmd, for "enable breakpoints".
4389
4390 2010-06-21  Ulrich Weigand  <uweigand@de.ibm.com>
4391
4392         * dwarf2loc.c (find_location_expression): Add relocation offset
4393         to base-address-selection entry base addresses.  Read addresses
4394         (and offsets) as signed/unsigned integers, depending on the
4395         BFD's sign_extend_vma flag.  Do not call dwarf2_read_address.
4396         (loclist_describe_location): Likewise.
4397         (disassemble_dwarf_expression): Read DW_OP_addr operand as
4398         unsigned integer.  Do not call dwarf2_read_address.
4399         (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4400
4401 2010-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
4402
4403         * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4404         value instead of hard-coded SPU_LS_SIZE.
4405         (spu_software_single_step): Likewise.
4406         * spu-tdep.h (SPU_LS_SIZE): Remove.
4407
4408 2010-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
4409
4410         * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4411         limit on local store memory accesses.
4412         * spu-linux-nat.c (spu_xfer_partial): Likewise.
4413         * spu-tdep.c (spu_lslr): Remove.
4414         (spu_pointer_to_address): Do not truncate addresses.
4415         (spu_integer_to_address): Likewise.
4416         (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4417         * spu-tdep.h: Add comments.
4418         (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4419         (SPU_OVERLAY_LMA): Define.
4420
4421 2010-06-18  Stan Shebs  <stan@codesourcery.com>
4422
4423         * osdata.c (get_osdata): Warn separately if target does not report
4424         type list.
4425         (info_osdata_command): Allow empty type, report error if target
4426         does not return available types of OS data.
4427         * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4428         types if no annex supplied.
4429
4430         * thread.c (thread_id_make_value): Make a value representing the
4431         current thread.
4432         (_initialize_thread): Create $_thread.
4433
4434 2010-06-17  Joel Brobecker  <brobecker@adacore.com>
4435
4436         * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4437         last local variable declaration.  No real code change.
4438
4439 2010-06-17  Tom Tromey  <tromey@redhat.com>
4440
4441         * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4442         (dwarf2_build_psymtabs_hard): Use it.  Create addrmap on a
4443         temporary obstack.
4444
4445 2010-06-16  Sergio Durigan Junior  <sergiodj@redhat.com>
4446             Jan Kratochvil  <jan.kratochvil@redhat.com>
4447
4448         * breakpoint.c: Include parser-defs.h.
4449         (watchpoint_exp_is_const): New function.
4450         (watch_command_1): Call watchpoint_exp_is_const to check
4451         if the expression is constant.
4452
4453 2010-06-15  Andreas Schwab  <schwab@linux-m68k.org>
4454
4455         * configure.ac: Check for RDYNAMIC also for cross builds.
4456         * configure: Regenerate.
4457
4458 2010-06-15  Pedro Alves  <pedro@codesourcery.com>
4459
4460         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4461         (SFILES): Remove solib-null.c, add solib-target.c.
4462         (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4463         (ALLDEPFILES): Remove solib-target.c.
4464         * solib-target.c (_initialize_solib_target): Set
4465         current_target_so_ops to solib_target_so_ops if not already set.
4466         * solib-null.c: Delete.
4467
4468 2010-06-14  Pedro Alves  <pedro@codesourcery.com>
4469
4470         * NEWS: Mention GDBserver's JIT compilation of tracepoint
4471         bytecode.
4472
4473 2010-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
4474
4475         * cp-valprint.c (cp_print_static_field): Members of
4476         dont_print_stat_array_obstack are of type "struct type *".
4477         (_initialize_cp_valprint): Likewise.
4478
4479 2010-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
4480
4481         * frame.c (frame_register_unwind): Do not access contents
4482         of "optimized out" unwound register value.
4483
4484 2010-06-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4485
4486         * ada-lang.h (ada_print_type): Make varstring const.
4487         * ada-typeprint.c (print_func_type): Make name const.
4488         (ada_print_type): Make varstring const.
4489         * c-lang.h (c_print_type): Make varstring const.
4490         * c-typeprint.c (c_print_type): Likewise.
4491         * f-lang.h (f_print_type): Likewise.
4492         * f-typeprint.c (f_print_type): Likewise.
4493         * jv-lang.h (java_print_type): Likewise.
4494         * jv-typeprint.c (java_print_type): Likewise.
4495         * language.c (unk_lang_print_type): Likewise.
4496         * language.h (struct language_defn) <la_print_type>: Likewise.
4497         * m2-lang.h (m2_print_type): Likewise.
4498         * m2-typeprint.c (m2_print_type): Likewise.
4499         * p-lang.h (pascal_print_type): Likewise.
4500         * p-typeprint.c (pascal_print_type): Likewise.
4501
4502 2010-06-11  Stan Shebs  <stan@codesourcery.com>
4503
4504         Add per-operation permission flags.
4505
4506         * target.h (struct target_ops): New method to_set_permissions.
4507         (target_set_permissions): New macro.
4508         (target_insert_breakpoint): Change macro to function.
4509         (target_remove_breakpoint): Ditto.
4510         (target_stop): Ditto.
4511         (may_write_registers): Declare.
4512         (may_write_memory): Declare.
4513         (may_insert_breakpoints): Declare.
4514         (may_insert_tracepoints): Declare.
4515         (may_insert_fast_tracepoints): Declare.
4516         (may_stop): Declare.
4517         * target.c (may_write_registers, may_write_registers_1): New globals.
4518         (may_write_memory, may_write_memory_1): New globals.
4519         (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4520         (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4521         (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4522         globals.
4523         (may_stop, may_stop_1): New global.
4524         (target_xfer_partial): Test for write permission.
4525         (target_store_registers): Ditto.
4526         (target_insert_breakpoint): New function.
4527         (target_remove_breakpoint): New function.
4528         (target_stop): New function.
4529         (_initialize_targets): Add new set/show variables.
4530         (set_write_memory_permission): New function.
4531         (update_target_permissions): New function.
4532         (set_target_permissions): New function.
4533         (update_current_target): Default to_set_permissions.
4534         (_initialize_targets): Use new globals and setter function.
4535         * tracepoint.c (start_tracing): Test for permission.
4536         * inferior.h (update_observer_mode): Declare.
4537         * infrun.c (non_stop_1): Define earlier.
4538         (observer_mode, observer_mode_1): New globals.
4539         (set_observer_mode, show_observer_mode): New functions.
4540         (update_observer_mode): New function.
4541         (_initialize_infrun): Define "set observer" command.
4542         * remote.c (PACKET_QAllow): New optional packet.
4543         (remote_protocol_features): Add QAllow.
4544         (remote_set_permissions): New function.
4545         (remote_start_remote): Call it.
4546         (init_remote_ops): Add it to target vector.
4547         (_initialize_remote): Add config command for QAllow.
4548
4549 2010-06-11  Tom Tromey  <tromey@redhat.com>
4550
4551         * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4552         DW_AT_vtable_elem_location even when GCC extension is seen.
4553
4554 2010-06-11  Tom Tromey  <tromey@redhat.com>
4555
4556         PR gdb/9977, PR exp/11636:
4557         * value.h (value_offset): Update.
4558         (struct lval_funcs) <check_validity>: New field.
4559         <copy_closure>: Make argument const.
4560         (value_computed_closure): Update.
4561         (value_contents_for_printing): Declare.
4562         (value_bits_valid): Likewise.
4563         (val_print): Likewise.
4564         (set_value_component_location): Update.
4565         (value_entirely_optimized_out): Declare.
4566         * value.c (value_offset): Argument now const.
4567         (require_not_optimized_out): New function.
4568         (value_contents_for_printing): New function.
4569         (value_contents_all): Call require_not_optimized_out.
4570         (value_contents): Likewise.
4571         (value_bits_valid): New function.
4572         (value_computed_closure): Argument now const.
4573         (set_value_component_location): Make 'whole' argument const.
4574         (value_entirely_optimized_out): New function.
4575         (value_bitsize): Argument now 'const'.
4576         (value_bitpos): Likewise.
4577         (value_type): Likewise.
4578         * valprint.h (val_print_array_elements): Update.
4579         * valprint.c (val_print): Add 'val' argument.  Use
4580         valprint_check_validity.
4581         (valprint_check_validity): New function.
4582         (value_check_printable): Use value_entirely_optimized_out.
4583         (common_val_print): Update.
4584         (value_print): Likewise.
4585         (val_print_array_elements): Add 'val' argument.
4586         * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4587         value_bits_valid.  Reinit frame cache for lval_computed.
4588         * sh64-tdep.c (sh64_do_register): Update.
4589         * scm-valprint.c (scm_val_print): Add 'val' argument.
4590         * scm-lang.h (scm_val_print): Update.
4591         * python/python.h (apply_val_pretty_printer): Update.
4592         * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4593         argument.  Call set_value_component_location.
4594         * printcmd.c (print_scalar_formatted): Update.
4595         * p-valprint.c (pascal_val_print): Add 'val' argument.
4596         (pascal_object_print_value_fields): Likewise.
4597         (pascal_object_print_value): Likewise.
4598         (pascal_object_print_static_field): Update.
4599         * p-lang.h (pascal_val_print): Update.
4600         (pascal_object_print_value_fields): Update.
4601         * mt-tdep.c (mt_registers_info): Update.
4602         * mi/mi-main.c (get_register): Update.
4603         (mi_cmd_data_evaluate_expression): Use common_val_print.
4604         * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4605         (m2_print_unbounded_array): Likewise.
4606         (m2_val_print): Likewise.
4607         * m2-lang.h (m2_val_print): Update.
4608         * language.h (struct language_defn) <la_val_print>: Add 'val'
4609         argument.
4610         (LA_VAL_PRINT): Likewise.
4611         * language.c (unk_lang_val_print): Add 'val' argument.
4612         * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4613         (java_val_print): Likewise.
4614         * jv-lang.h (java_val_print): Add 'val' argument.
4615         * infcmd.c (default_print_registers_info): Update.
4616         * f-valprint.c (f77_print_array_1): Add 'val' argument.
4617         (f77_print_array): Likewise.
4618         (f_val_print): Likewise.
4619         * f-lang.h (f_val_print): Add 'val' argument.
4620         * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4621         value_bitpos.
4622         <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning.  Call
4623         set_value_optimized_out.
4624         (write_pieced_value): Use value_bitsize and value_bitpos.
4625         <default>: Don't exit loop.
4626         (check_pieced_value_validity): New function.
4627         (pieced_value_funcs): Reference check_pieced_value_validity,
4628         check_pieced_value_invalid.
4629         (copy_pieced_value_closure): Update.
4630         (check_pieced_value_bits): New function.
4631         (check_pieced_value_invalid): New function.
4632         * d-valprint.c (dynamic_array_type): Add 'val' argument.
4633         (d_val_print): Likewise.
4634         * d-lang.h (d_val_print): Update.
4635         * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4636         (cp_print_value_fields_rtti): Likewise.
4637         (cp_print_value): Likewise.
4638         (cp_print_static_field): Update.
4639         * c-valprint.c (c_val_print): Add 'val' argument.
4640         (c_value_print): Update.
4641         * c-lang.h (c_val_print): Update.
4642         (cp_print_value_fields): Likewise.
4643         (cp_print_value_fields_rtti): Likewise.
4644         * ada-valprint.c (struct ada_val_print_args): Remove.
4645         (val_print_packed_array_elements): Add 'val' argument.
4646         (ada_val_print): Likewise.  Rewrite.
4647         (ada_val_print_stub): Remove.
4648         (ada_val_print_array): Add 'val' argument.
4649         (ada_val_print_1): Likewise.
4650         (print_variant_part): Likewise.
4651         (ada_value_print): Update.
4652         (print_record): Add 'val' argument.
4653         (print_field_values): Likewise.
4654         * ada-lang.h (ada_val_print): Update.
4655
4656 2010-06-11  Tom Tromey  <tromey@redhat.com>
4657
4658         * vec.h (VEC_cleanup): New macro.
4659         (DEF_VEC_ALLOC_FUNC_I): Update.
4660         (DEF_VEC_ALLOC_FUNC_P): Likewise.
4661         (DEF_VEC_ALLOC_FUNC_O): Likewise.
4662         * dwarf2loc.c (struct axs_var_loc): Remove.
4663         (unimplemented): New function.
4664         (translate_register): Likewise.
4665         (access_memory): Likewise.
4666         (compile_dwarf_to_ax): Likewise.
4667         (dwarf2_tracepoint_var_loc): Remove.
4668         (dwarf2_tracepoint_var_access): Likewise.
4669         (dwarf2_tracepoint_var_ref): Likewise.
4670         (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4671         (loclist_tracepoint_var_ref): Likewise.
4672         * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4673         * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4674         require_composition.  No longer static.
4675         (execute_stack_op): Update.
4676         * ax-gdb.h (trace_kludge): Declare.
4677
4678 2010-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4679
4680         * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4681         (should_be_inserted): Return zero also on NULL OWNER.
4682         (breakpoint_program_space_exit): New OWNER comment.
4683         (insert_breakpoint_locations): Extend comment for OWNER.
4684         (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4685         (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4686         New OWNER comment.
4687         (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4688         (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4689         (bpstat_check_location): New assert on OWNER.
4690         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4691         and B initializations to the code block.  New assert on them.
4692         (print_one_breakpoint_location): New OWNER comment.
4693         (watchpoint_locations_match): Assert on OWNER.
4694         (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4695         initializations to the code block.  New assert on OWNER.
4696         (set_breakpoint_location_function): New assert on OWNER.
4697         (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4698         (bp_location_compare, update_global_location_list)
4699         (update_global_location_list): New OWNER comment.
4700
4701 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
4702
4703         * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4704
4705 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
4706
4707         * config/nm-linux.h (struct target_ops): Remove forward declaration.
4708         (lin_thread_get_thread_signals): Remove prototype.
4709         (GET_THREAD_SIGNALS): Remove.
4710         * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4711         * linux-thread-db.c (check_thread_signals): Directly call
4712         lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4713
4714 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
4715
4716         * gregset.h (GDB_FPXREGSET_T): Remove.
4717         (gdb_fpxregset_t): Likewise.
4718         (supply_fpxregset): Remove prototype.
4719         (fill_fpxregset): Likewise.
4720         * i386-linux-nat.c (supply_fpxregset): Remove.
4721         (fill_fpxregset): Likewise.
4722         (fetch_fpxregs): Inline supply_fpxregset call.
4723         (store_fpxregs): Inline fill_fpxregset call.
4724
4725         * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4726         * config/i386/nm-linux.h: Remove file.
4727
4728 2010-06-09  Michael Snyder  <msnyder@vmware.com>
4729
4730         * target.c (update_current_target): Fix spelling error in comment.
4731         (target_mourn_inferior): Fix spelling error in error message.
4732
4733 2010-06-08  Paul Hilfinger  <hilfingr@adacore.com>
4734
4735       * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4736       SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4737
4738 2010-06-08  Michael Snyder  <msnyder@vmware.com>
4739
4740         * remote.c (remote_close): Set inferior_ptid to null_ptid.
4741
4742 2010-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4743
4744         * configure.ac <"${have_libpython}" != no>: New workaround of
4745         python#4434.
4746         * configure: Regenerate.
4747
4748 2010-06-08  Hui Zhu  <teawater@gmail.com>
4749
4750         * record.c (record_wait): Move signal out of replay code.
4751
4752 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4753
4754         Fix PR 10640.
4755         * dwarf2-frame.c (no_dwarf_call): New function.
4756         (execute_stack_op): Set CTX->DWARF_CALL.
4757         * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4758         * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4759         (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4760         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4761         (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4762         (needs_frame_dwarf_call): New function.
4763         (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4764         * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4765         Update the comment.  Move variables die, offset and error call to ...
4766         (follow_die_ref): ... a new function.
4767         (dwarf2_fetch_die_location_block): New function.
4768         * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4769
4770 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4771
4772         * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4773         (dwarf_expr_tls_address): Use per_cu instead of objfile.
4774         (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4775         Initialize new BATON.PER_CU.  Adjust CTX->GDBARCH initialization for
4776         this change.
4777         (struct needs_frame_baton): New field per_cu.
4778         (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4779         * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4780
4781 2010-06-07  Sami Wagiaalla  <swagiaal@redhat.com>
4782
4783         * cp-support.c (make_symbol_overload_list_namespace): Only search
4784         static and global blocks.
4785         (make_symbol_overload_list_block): New function.
4786         (make_symbol_overload_list): Separate namespace search from block
4787         search.
4788         (make_symbol_overload_list_qualified): Use
4789         make_symbol_overload_list_block.
4790
4791 2010-06-07  Sami Wagiaalla  <swagiaal@redhat.com>
4792
4793         * value.h: Created oload_search_type enum.
4794         (find_overload_match): Use oload_search_type enum.
4795         * valops.c (find_overload_match): Support combined member and
4796         non-member search.
4797         * eval.c (evaluate_subexp_standard): Calls to
4798         find_overload_match now use oload_search_type enum.
4799         (oload_method_static): Verify index is a proper value.
4800         * valarith.c (value_user_defined_cpp_op): Search for and handle
4801         both member and non-member operators.
4802         (value_user_defined_cpp_op): New function.
4803         (value_user_defined_op): New function.
4804         (value_x_unop): Use value_user_defined_op.
4805         (value_x_binop): Ditto.
4806         * cp-support.c (make_symbol_overload_list_using): Added block
4807         iteration.
4808         Add check for namespace aliases and imported declarations.
4809
4810 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4811
4812         * breakpoint.h (owner): Extend the comment.
4813
4814 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4815
4816         Clear stale specific bp_location from former whole breakpoint.
4817         * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4818         code ...
4819         (free_bp_location): ... here.  Rename there the called function to
4820         bpstat_remove_bp_location_callback.
4821         (bpstat_remove_breakpoint_callback): Rename to ...
4822         (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4823         to struct bp_location.  Change the called function to
4824         bpstat_remove_bp_location.  Create new declaration for the function.
4825         (bpstat_remove_breakpoint): Rename to ...
4826         (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4827         code for the new parameter type.
4828
4829 2010-06-07  Nathan Sidwell  <nathan@codesourcery.com>
4830
4831         * README: Make version-agnostic.
4832
4833 2010-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4834
4835         Fix duplicate types for single DIE.
4836         * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4837         set_die_type.
4838         (read_array_type): Remove type initialization.  Recheck get_die_type
4839         after initial die_type.  Move set_die_type before set_descriptive_type.
4840         (read_set_type): New variable domain_type.  Recheck get_die_type after
4841         initial die_type.  Move attr initialization later.
4842         (read_tag_pointer_type, read_tag_reference_type): New variable
4843         target_type.  Recheck get_die_type after initial die_type.
4844         (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4845         die_type and die_containing_type.
4846         (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4847         Recheck get_die_type after initial die_type.
4848         (read_subrange_type): Recheck get_die_type after initial die_type.
4849         Move set_die_type before set_descriptive_type.
4850         (set_die_type): Extend the function comment.  Call complaint if DIE has
4851         some type already set.
4852
4853 2010-06-05  Vladimir Prus  <vladimir@codesourcery.com>
4854
4855         * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4856         for current naming of thread groups (iN, not N).
4857
4858 2010-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
4859
4860         * ada-lang.c (ada_operator_length): Constify `struct expression'.
4861         * parse.c (operator_length): Likewise.
4862         (operator_length_standard): Likewise.
4863         * parser-defs.h (operator_length): Likewise.
4864         (operator_length_standard): Likewise.
4865         (struct exp_descriptor <operator_length>): Likewise.
4866
4867 2010-06-04  Doug Evans  <dje@google.com>
4868
4869         Add support for enabling/disabling individual pretty-printers.
4870         * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4871         * python/python-internal.h (gdbpy_enabled_cst): Declare.
4872         * python/python.c (gdbpy_enabled_cst): Define.
4873         (_initialize_python): Initialize gdbpy_enabled_cst.
4874         * NEWS: Add entry.
4875
4876 2010-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4877
4878         * breakpoint.c (update_global_location_list): Fix comment typo.
4879
4880 2010-06-04  Hui Zhu  <teawater@gmail.com>
4881
4882         * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4883
4884 2010-06-03  Doug Evans  <dje@google.com>
4885
4886         * configure.ac: Don't fail if python is unusable when
4887         configured with --with-python=auto.
4888         * configure: Regenerate.
4889
4890 2010-06-03  Sami Wagiaalla  <swagiaal@redhat.com>
4891
4892         * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4893
4894 2010-06-03  Pierre Muller  <muller@ics.u-strasbg.fr>
4895
4896         * valprint.h (get_array_bounds): Change low and high parameter types
4897         to LONGEST *.
4898         * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4899         compute bounds.
4900         (val_print_array_elements): Adapt to change above.
4901         * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4902         * p-valprint.c (pascal_val_print): Likewise.
4903
4904 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4905
4906         * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4907         .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4908         .F08.
4909
4910 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4911
4912         Support DW_TAG_module as separate namespaces.
4913         * dwarf2read.c (typename_concat): New parameter physname.
4914         (read_module_type): New function and declaration.
4915         (scan_partial_symbols): Scan also DW_TAG_module children.
4916         (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4917         to typename_concat backward compatible physname value 0.
4918         (partial_die_full_name, read_namespace_type): Pass to typename_concat
4919         backward compatible physname value 0.
4920         (add_partial_module, read_module): Remove FIXME comment.
4921         (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4922         (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4923         DIEs under DW_TAG_module.
4924         (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4925         DW_AT_MIPS_linkage_name first, extend it for language_fortran
4926         && physname and return there instead of just setting NAME.  Extend
4927         the main block for language_fortran.  Pass physname parameter to the
4928         typename_concat call.
4929         (read_import_statement, read_func_scope, get_scope_pc_bounds)
4930         (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4931         (new_symbol): Fill in cplus_specific.demangled_name if it is still
4932         missing from SYMBOL_SET_NAMES in the language_fortran case.
4933         (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4934         variables.
4935         (read_type_die) <DW_TAG_module>: New.
4936         (MAX_SEP_LEN): Increase to 7.
4937         (typename_concat): New parameter physname.  New variable lead.  Support
4938         also language_fortran.
4939         * f-exp.y (yylex): Consider : also as a symbol name character class.
4940         * f-lang.c: Include cp-support.h.
4941         (f_word_break_characters, f_make_symbol_completion_list): New functions.
4942         (f_language_defn): Use cp_lookup_symbol_nonlocal,
4943         f_word_break_characters and f_make_symbol_completion_list.
4944         * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4945         * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4946         * symtab.c (symbol_init_language_specific): Support language_fortran.
4947         (symbol_find_demangled_name): New comment on language_fortran.
4948         (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4949         for language_fortran.
4950         (lookup_symbol_aux_local): Check imports also for language_fortran.
4951         (default_make_symbol_completion_list): Rename to ...
4952         (default_make_symbol_completion_list_break_on): ... this name.  New
4953         parameter break_on, use it.
4954         (default_make_symbol_completion_list): New stub.
4955         * symtab.h (default_make_symbol_completion_list_break_on): New
4956         prototype.
4957
4958 2010-06-02  Joel Brobecker  <brobecker@adacore.com>
4959
4960         * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4961         to error.
4962
4963 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4964
4965         * dwarf2read.c (typename_concat): Add const to the variable sep.
4966
4967 2010-06-02  Tom Tromey  <tromey@redhat.com>
4968
4969         * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4970         * dwarf2read.c (dwarf_stack_op_name): No longer static.  Return
4971         type is const.  Add 'def' argument.  Add missing operators, remove
4972         unhandled ones.
4973         (decode_locdesc): Update.
4974         (dwarf2_always_disassemble): New global.
4975         (show_dwarf2_always_disassemble): New function.
4976         (_initialize_dwarf2_read): Add always-disassemble.
4977         (dwarf2_per_cu_offset_size): New function.
4978         * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4979         (piece_end_p): New function.
4980         (locexpr_describe_location_piece): Replace 'size' argument with
4981         'end'.  Use piece_end_p.  Rewrite recognition of TLS.  Recognize
4982         some constants.  Remove errors.
4983         (disassemble_dwarf_expression): New function.
4984         (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4985         Add 'offset_size' argument.
4986         (loclist_describe_location): Change output formatting.
4987         * dwarf2expr.h (dwarf_stack_op_name): Declare.
4988
4989 2010-06-02  Sami Wagiaalla  <swagiaal@redhat.com>
4990
4991         * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4992         anonymous type case.
4993
4994 2010-06-02  Pierre Muller  <muller@ics.u-strasbg.fr>
4995
4996         * dwarf2read.c (read_subrange_type): Handle missing base type
4997         according to Dwarf-2 specifications.
4998
4999 2010-06-01  Sergio Durigan Junior  <sergiodj@redhat.com>
5000
5001         * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
5002         BINOP_EXCL.
5003         (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
5004         UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
5005         (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
5006         BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
5007         UNOP_CHMAX, UNOP_CHMIN.
5008         * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
5009         UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
5010         UNOP_CHMIN>: Remove opcodes.
5011
5012 2010-06-01  Pierre Muller  <muller@ics.u-strasbg.fr>
5013
5014         * dwarf2read.c (read_func_scope): Do not complain for
5015         external function if bounds are not found.
5016
5017 2010-06-01  Pedro Alves  <pedro@codesourcery.com>
5018
5019         * NEWS: Mention gdbserver fast tracepoints support.
5020
5021 2010-05-31  Pierre Muller  <muller@ics.u-strasbg.fr>
5022
5023         * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
5024         New macros.
5025         (windows_set_console_info): New function.
5026         (windows_create_inferior): Call windows_set_console_info
5027         if NEW_CONSOLE is true.
5028         (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
5029         (_initialize_loadable): Initialize GetConsoleFontSize and
5030         GetCurrentConsoleFont.
5031
5032 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5033
5034         * Makefile.in (RDYNAMIC): New.
5035         (SFILES): Add proc-service.list.
5036         * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
5037         (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
5038         * config/arm/linux.mh: Likewise.
5039         * config/i386/linux.mh: Likewise.
5040         * config/i386/linux64.mh: Likewise.
5041         * config/ia64/linux.mh: Likewise.
5042         * config/m32r/linux.mh: Likewise.
5043         * config/m68k/linux.mh: Likewise.
5044         * config/mips/linux.mh: Likewise.
5045         * config/pa/linux.mh: Likewise.
5046         * config/powerpc/linux.mh: Likewise.
5047         * config/powerpc/ppc64-linux.mh: Likewise.
5048         * config/s390/s390.mh: Likewise.
5049         * config/sparc/linux.mh: Likewise.
5050         * config/sparc/linux64.mh: Likewise.
5051         * config/xtensa/linux.mh: Likewise.
5052         * configure.ac: New RDYNAMIC on native host and GCC.
5053         (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
5054         * configure: Regenerate.
5055         * proc-service.list: New.
5056
5057 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5058
5059         * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
5060         CONTENT.
5061
5062 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5063
5064         * linux-nat.c (linux_nat_wait_1): Do not call
5065         linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
5066         TARGET_WAITKIND_SIGNALLED.
5067
5068 2010-05-27  Joel Brobecker  <brobecker@adacore.com>
5069
5070         * ada-lang.c (ada_inferior_data): New struct.
5071         (ada_inferior_data): New static global.
5072         (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
5073         (ada_get_tsd_type): New functions.
5074         (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
5075         to look the tsd type up.
5076         (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
5077         event.  Set ada_inferior_data.
5078
5079 2010-05-27  Pedro Alves  <pedro@codesourcery.com>
5080
5081         * remote.c (unpack_varlen_hex): Remove forward declaration.
5082         (remote_console_output): Make static, and add forward declaration.
5083         * remote.h: Drop FIXME comment.
5084         (unpack_varlen_hex): Declare.
5085         (remote_console_output, remote_cisco_objfile_relocate)
5086         (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
5087         Delete declarations.
5088         * tracepoint.c: Include "remote.h".
5089         (unpack_varlen_hex): Delete declaration.
5090
5091 2010-05-27  Tom Tromey  <tromey@redhat.com>
5092
5093         * dwarf2loc.c (struct piece_closure) <refc>: New field.
5094         (allocate_piece_closure): Initialize refc.
5095         (copy_pieced_value_closure): Use refc.
5096         (free_pieced_value_closure): Likewise.
5097
5098 2010-05-27  Tom Tromey  <tromey@redhat.com>
5099
5100         * arm-tdep.c (push_stack_item): 'contents' now const.
5101         (arm_push_dummy_call): Make 'val' const.  Use value_contents, not
5102         value_contents_writeable.  Introduce new temporary.
5103
5104 2010-05-27  Tom Tromey  <tromey@redhat.com>
5105
5106         * findcmd.c (parse_find_args): Use value_contents, not
5107         value_contents_raw.
5108
5109 2010-05-27  Tom Tromey  <tromey@redhat.com>
5110
5111         * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
5112         const.  Use value_contents, not value_contents_writeable.
5113
5114 2010-05-27  Joel Brobecker  <brobecker@adacore.com>
5115
5116         * ada-lang.c (ensure_lval): Replace call to value_contents_raw
5117         by call to value_contents.
5118
5119 2010-05-27  Ozkan Sezer  <sezeroz@gmail.com>
5120
5121         * MAINTAINERS: Add myself for write after approval privileges.
5122
5123 2010-05-26  Doug Evans  <dje@google.com>
5124
5125         Allow python to find its files if moved from original location.
5126         * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
5127         (GDB_AC_WITH_DIR): Call it.
5128         * configure.ac: Define WITH_PYTHON_PATH if we can find the
5129         python installation directory.
5130         * config.in: Regenerate.
5131         * configure: Regenerate.
5132         * defs.h (python_libdir): Declare.
5133         * main.c (python_libdir): Define.
5134         (captured_main): Initialize python_libdir.
5135         * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
5136         call Py_SetProgramName to make sure python can find its libraries
5137         and modules.
5138
5139         * configure.ac: Try to use python's distutils to fetch compilation
5140         parameters.
5141         * configure: Regenerate.
5142         * python/python-config.py: New file.
5143
5144 2010-05-26  Ozkan Sezer  <sezeroz@gmail.com>
5145
5146         * ser-tcp.c (net_open): Check error return from socket() call by its
5147         equality to -1 not by it being negative.
5148         (net_close): Likewise.
5149
5150 2010-05-26  Pedro Alves  <pedro@codesourcery.com>
5151
5152         * NEWS: Mention the `qRelocInsn' feature.
5153         * gdbarch.sh (relocate_instruction): New.
5154         * amd64-tdep.c (rip_relative_offset): New.
5155         (append_insns): New.
5156         (amd64_relocate_instruction): New.
5157         (amd64_init_abi): Install it.
5158         * i386-tdep.c (append_insns): New.
5159         (i386_relocate_instruction): New.
5160         (i386_gdbarch_init): Install it.
5161         * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
5162         * gdbarch.h, gdbarch.c: Regenerate.
5163
5164 2010-05-26  Tom Tromey  <tromey@redhat.com>
5165
5166         * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
5167         (struct dwarf2_loclist_baton) <data>: Likewise.
5168         * dwarf2loc.c (find_location_expression): Constify return type.
5169         (dwarf2_evaluate_loc_desc): Make 'data' argument const.
5170         (dwarf2_loc_desc_needs_frame): Likewise.
5171         (loclist_read_variable): Constify.
5172         (loclist_describe_location): Likewise.
5173         (loclist_tracepoint_var_ref): Likewise.
5174
5175 2010-05-25  Tom Tromey  <tromey@redhat.com>
5176
5177         * dwarf2loc.c (dwarf_expr_frame_base): Constify.
5178         (dwarf_expr_frame_base_1): Likewise.
5179         (read_pieced_value): Update.
5180         (needs_frame_frame_base): Constify.
5181         (dwarf2_tracepoint_var_loc): Likewise.
5182         (dwarf2_tracepoint_var_access): Likewise.
5183         (locexpr_describe_location_piece): Likewise.
5184         (locexpr_describe_location_1): Likewise.
5185         * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
5186         Constify.
5187         (data): Now const.
5188         (struct dwarf_expr_piece) <v.literal.data>: Likewise.
5189         (dwarf_expr_eval, read_uleb128, read_sleb128)
5190         (dwarf2_read_address): Update.
5191         * dwarf2expr.c (dwarf_expr_eval): Constify.
5192         (read_uleb128): Likewise.
5193         (read_sleb128): Likewise.
5194         (dwarf2_read_address): Likewise.
5195         (require_composition): Likewise.
5196         (execute_stack_op): Likewise.
5197         * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
5198         "const gdb_byte *".
5199         * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
5200         Now const.
5201         (no_get_frame_base): Constify.
5202         (execute_stack_op): Likewise.
5203         (execute_cfa_program): Likewise.
5204         (read_encoded_value): Likewise.
5205
5206 2010-05-25  Doug Evans  <dje@google.com>
5207
5208         * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
5209
5210         * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
5211         * event-loop.c: ... here.
5212         * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
5213         `error' for clarity.
5214         (tui_getc): Pass correct value for `error' parameter to
5215         tui_readline_output.
5216
5217         Add python gdb.GdbError and gdb.string_to_argv.
5218         * NEWS: Document them.
5219         * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5220         the exception is gdb.GdbError.  Print a second traceback if there's
5221         an error computing the error message.
5222         (gdbpy_string_to_argv): New function.
5223         * python/py-utils.c (gdbpy_obj_to_string): New function.
5224         (gdbpy_exception_to_string): New function.
5225         * python/python-internal.h (gdbpy_string_to_argv): Declare.
5226         (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5227         (gdbpy_gdberror_exc): Declare.
5228         * python/python.c (gdbpy_gdberror_exc): New global.
5229         (_initialize_python): Initialize gdbpy_gdberror_exc and create
5230         gdb.GdbError.
5231         (GdbMethods): Add string_to_argv.
5232
5233 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
5234
5235         * windows-nat.c (display_selector): Call GetLastError to give better
5236         failure explanation.
5237
5238 2010-05-24  Pedro Alves  <pedro@codesourcery.com>
5239
5240         * config.in: Regenerate.
5241
5242 2010-05-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
5243
5244         Code cleanup.
5245         * target.c (push_target): Return only void.  Remove the return value
5246         comment.
5247         * target.h (push_target): Return only void.
5248
5249 2010-05-23  Pedro Alves  <pedro@codesourcery.com>
5250
5251         Update gnulib from latest git.
5252         (250b80067c1e1d8faa0c42fb572f721975b929c5)
5253
5254         * gnulib/memcmp.c: Removed.
5255         * gnulib/memchr.valgrind: New.
5256         * gnulib/stddef.in.h: New.
5257         * gnulib/Makefile.am: Updated.
5258         * gnulib/memchr.c: Updated.
5259         * gnulib/memmem.c: Updated.
5260         * gnulib/stdint.in.h: Updated.
5261         * gnulib/str-two-way.h: Updated.
5262         * gnulib/string.in.h: Updated.
5263         * gnulib/wchar.in.h: Updated.
5264
5265         * gnulib/extra/link-warning.h: Removed.
5266         * gnulib/extra/c++defs.h: New.
5267         * gnulib/extra/warn-on-use.h: New.
5268         * gnulib/extra/arg-nonnull.h: Updated.
5269
5270         * gnulib/m4/extensions.m4: Updated.
5271         * gnulib/m4/gnulib-cache.m4: Updated.
5272         * gnulib/m4/gnulib-common.m4: Updated.
5273         * gnulib/m4/gnulib-comp.m4: Updated.
5274         * gnulib/m4/gnulib-tool.m4: Updated.
5275         * gnulib/m4/include_next.m4: Updated.
5276         * gnulib/m4/longlong.m4: Updated.
5277         * gnulib/m4/memchr.m4: Updated.
5278         * gnulib/m4/memmem.m4: Updated.
5279         * gnulib/m4/stdint.m4: Updated.
5280         * gnulib/m4/string_h.m4: Updated.
5281         * gnulib/m4/memcmp.m4: Removed.
5282         * gnulib/m4/onceonly_2_57.m4: Removed.
5283         * gnulib/m4/00gnulib.m4: New.
5284         * gnulib/m4/mmap-anon.m4: New.
5285         * gnulib/m4/multiarch.m4: New.
5286         * gnulib/m4/onceonly.m4: New.
5287         * gnulib/m4/stddef_h.m4: New.
5288         * gnulib/m4/warn-on-use.m4: New.
5289         * gnulib/m4/wchar.m4: Removed.
5290         * gnulib/m4/wchar_h.m4: New.
5291         * gnulib/m4/wchar_t.m4: New.
5292         * gnulib/m4/wint_t.m4: New.
5293
5294         * aclocal.m4: Regenerate.
5295         * config.in: Likewise.
5296         * configure: Likewise.
5297         * gnulib/Makefile.in: Likewise.
5298
5299 2010-05-21  Tom Tromey  <tromey@redhat.com>
5300
5301         * dwarf2loc.c (extract_bits_primitive): New function.
5302         (extract_bits): Likewise.
5303         (insert_bits): Likewise.
5304         (copy_bitwise): Likewise.
5305         (read_pieced_value): Do all operations in bits.
5306         (write_pieced_value): Likewise.
5307         * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5308         * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5309         Always use xrealloc to resize piece array.
5310         (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5311         <DW_OP_piece>: Update.
5312         <DW_OP_bit_piece>: New case.
5313
5314 2010-05-21  Tom Tromey  <tromey@redhat.com>
5315
5316         * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5317         <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5318         * dwarf2expr.h (enum dwarf_value_location)
5319         <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5320         * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5321         (add_piece): Handle empty piece.
5322         (execute_stack_op) <DW_OP_piece>: Handle
5323         DWARF_VALUE_OPTIMIZED_OUT.
5324
5325 2010-05-21  Tom Tromey  <tromey@redhat.com>
5326
5327         * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5328         evaluate_subexp, not evaluate_subexp_with_coercion.
5329
5330 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
5331
5332         * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5333         attribute.
5334
5335 2010-05-21  Tom Tromey  <tromey@redhat.com>
5336
5337         * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5338         offset.
5339         (write_pieced_value): Likewise.
5340
5341 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
5342
5343         * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5344         and DW_TAG_volatile_type.
5345         (new_symbol): Likewise.
5346
5347 2010-05-20  Pierre Muller  <muller@ics.u-strasbg.fr>
5348
5349         * p-valprint.c (pascal_val_print): Call get_array_bounds
5350         to obtain the number of elements in an array.
5351
5352 2010-05-19  Doug Evans  <dje@google.com>
5353
5354         * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5355
5356         * python.c (source_python_script): Add comment.
5357         (source_python_script_for_objfile): Remove unnecessary call to
5358         gdbpy_print_stack.
5359
5360 2010-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5361             Sergio Durigan Junior  <sergiodj@redhat.com>
5362
5363         Code cleanup.
5364         * parse.c (exp_iterate): Use operator_length wrapper function.
5365
5366 2010-05-18  Michael Snyder  <msnyder@vmware.com>
5367
5368         * ada-lang.c: White space.
5369         * ada-typeprint.c: White space.
5370         * ada-valprint.c: White space.
5371         * addrmap.c: White space.
5372         * auxv.c: White space.
5373         * ax-gdb.c: White space.
5374
5375 2010-05-18  Hui Zhu  <teawater@gmail.com>
5376
5377         * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5378         for oldfp.
5379         (inferior_call_waitpid): Move make_cleanup out of check.
5380         Check the return of waitpid.
5381         (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5382
5383 2010-05-17  Michael Snyder  <msnyder@vmware.com>
5384
5385         * tui/tui.c: White space.
5386         * tui/tui-data.c: White space.
5387         * tui/tui-disasm.c: White space.
5388         * tui/tui-file.c: White space.
5389         * tui/tui-interp.c: White space.
5390         * tui/tui-main.c: White space.
5391         * tui/tui-out.c: White space.
5392         * tui/tui-regs.c: White space.
5393         * tui/tui-source.c: White space.
5394         * tui/tui-stack.c: White space.
5395         * tui/tui-win.c: White space.
5396         * tui/tui-winsource.c: White space.
5397
5398         * procfs.c: White space.
5399
5400         * python/py-auto-load.c: White space.
5401         * python/py-block.c: White space.
5402         * python/py-breakpoint.c: White space.
5403         * python/py-cmd.c: White space.
5404         * python/py-function.c: White space.
5405         * python/py-lazy-string.c: White space.
5406         * python/py-objfile.c: White space.
5407         * python/py-param.c: White space.
5408         * python/py-prettyprint.c: White space.
5409         * python/py-progspace.c: White space.
5410         * python/py-symtab.c: White space.
5411         * python/python.c: White space.
5412         * python/py-type.c: White space.
5413         * python/py-utils.c: White space.
5414         * python/py-value.c: White space.
5415
5416         * mi/mi-cmd-break.c: White space.
5417         * mi/mi-cmd-env.c: White space.
5418         * mi/mi-cmds.c: White space.
5419         * mi/mi-cmd-stack.c: White space.
5420         * mi/mi-cmd-var.c: White space.
5421         * mi/mi-console.c: White space.
5422         * mi/mi-getopt.c: White space.
5423         * mi/mi-interp.c: White space.
5424         * mi/mi-main.c: White space.
5425         * mi/mi-out.c: White space.
5426         * mi/mi-parse.c: White space.
5427
5428         * cli/cli-cmds.c: White space.
5429         * cli/cli-decode.c: White space.
5430         * cli/cli-dump.c: White space.
5431         * cli/cli-interp.c: White space.
5432         * cli/cli-logging.c: White space.
5433         * cli/cli-script.c: White space.
5434         * cli/cli-setshow.c: White space.
5435
5436         * valarith.c: White space.
5437         * valops.c: White space.
5438         * valprint.c: White space.
5439         * value.c: White space.
5440         * varobj.c: White space.
5441         * xcoffread.c: White space.
5442         * xml-support.c: White space.
5443         * xml-tdesc.c: White space.
5444
5445 2010-05-17  Andreas Schwab  <schwab@redhat.com>
5446
5447         PR gdb/11092
5448         * c-lang.c (c_printstr): Compute real length of NUL terminated
5449         string at first.
5450
5451 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
5452
5453         * parse.c (parse_exp_in_context): When block is not NULL, use
5454         its associated language to parse the expression instead of
5455         the current_language.
5456
5457 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
5458
5459         * jv-lang.c (java_lookup_class): Remove commented out code.
5460         (type_from_class): Likewise.
5461         (java_op_print_tab): Remove commented-out elements.
5462
5463 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
5464
5465         * ada-lang.c (to_fixed_range_type): The the raw index type as
5466         argument instead of the raw type name.  Remove orig_type parameter.
5467         Update calls throughout.
5468         (ada_fixup_array_indexes_type): New function.
5469         (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5470         * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5471         * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5472         Remove name parameter.
5473         (print_array_type): Add call to ada_fixup_array_indexes_type.
5474         Update calls to print_range_type.
5475         (ada_print_type): Update calls to print_range_type.
5476
5477 2010-05-17  Pierre Muller  <muller@ics.u-strasbg.fr>
5478
5479         * dwarf2read.c (read_set_type): Set type length if
5480         DW_AT_byte_size attribute is present.
5481
5482 2010-05-17  Pierre Muller  <muller@ics.u-strasbg.fr>
5483
5484         * p-valprint.c (pascal_val_print): Handle set type if range limits
5485         are undefined but size is known.
5486
5487 2010-05-17  Pedro Alves  <pedro@codesourcery.com>
5488
5489         * procfs.c: Reformat.
5490
5491 2010-05-16  Michael Snyder  <msnyder@vmware.com>
5492
5493         * target.c: White space.
5494         * target-descriptions.c: White space.
5495         * target-memory.c: White space.
5496         * thread.c: White space.
5497         * top.c: White space.
5498         * tracepoint.c: White space.
5499         * trad-frame.c: White space.
5500         * tramp-frame.c: White space.
5501         * ui-file.c: White space.
5502         * ui-out.c: White space.
5503         * user-regs.c: White space.
5504         * utils.c: White space.
5505
5506         * scm-exp.c: White space.
5507         * scm-lang.c: White space.
5508         * scm-valprint.c: White space.
5509         * sentinel-frame.c: White space.
5510         * ser-base.c: White space.
5511         * ser-go32.c: White space.
5512         * serial.c: White space.
5513         * ser-mingw.c: White space.
5514         * ser-pipe.c: White space.
5515         * ser-tcp.c: White space.
5516         * ser-unix.c: White space.
5517         * solib.c: White space.
5518         * solib-darwin.c: White space.
5519         * solib-frv.c: White space.
5520         * solib-irix.c: White space.
5521         * solib-osf.c: White space.
5522         * solib-pa64.c: White space.
5523         * solib-som.c: White space.
5524         * solib-spu.c: White space.
5525         * solib-svr4.c: White space.
5526         * solib-target.c: White space.
5527         * source.c: White space.
5528         * stabsread.c: White space.
5529         * stack.c: White space.
5530         * std-regs.c: White space.
5531         * symfile.c: White space.
5532         * symmisc.c: White space.
5533         * symtab.c: White space.
5534
5535 2010-05-16  Michael Snyder  <msnyder@vmware.com>
5536
5537         * source.c (_initialize_source): Add "rev" as an abbreviation
5538         for the "reverse-search" command.
5539
5540 2010-05-16  Michael Snyder  <msnyder@vmware.com>
5541
5542         * record.c: White space.
5543         * regcache.c: White space.
5544         * reggroups.c: White space.
5545         * remote-fileio.c: White space.
5546         * remote-m32r-sdi.c: White space.
5547         * remote-mips.c: White space.
5548         * remote-sim.c: White space.
5549         * remote.c: White space.
5550         (process_g_packet): Remove orphan braces.
5551
5552 2010-05-15  Michael Snyder  <msnyder@vmware.com>
5553
5554         * parse.c: White space.
5555         * p-lang.c: White space.
5556         * posix-hdep.c: White space.
5557         * printcmd.c: White space.
5558         * progspace.c: White space.
5559         * prologue-value.c: White space.
5560         * psymtab.c: White space.
5561         * p-typeprint.c: White space.
5562         * p-valprint.c: White space.
5563
5564         * objc-lang.c: White space.
5565         * objfiles.c: White space.
5566         * observer.c: White space.
5567         * osabi.c: White space.
5568         * osdata.c: White space.
5569
5570         * m2-lang.c: White space.
5571         * m2-valprint.c: White space.
5572         * macrocmd.c: White space.
5573         * macroexp.c: White space.
5574         * macroscope.c: White space.
5575         * macrotab.c: White space.
5576         * main.c: White space.
5577         * maint.c: White space.
5578         * mdebugread.c: White space.
5579         * memattr.c: White space.
5580         * minsyms.c: White space.
5581         * monitor.c: White space.
5582
5583 2010-05-14  Michael Snyder  <msnyder@vmware.com>
5584
5585         * jv-lang.c: White space.
5586         * jv-typeprint.c: White space.
5587         * jv-valprint.c: White space.
5588         * language.c: White space.
5589         * libunwind-frame.c: White space.
5590         * linespec.c: White space.
5591         * linux-nat.c: White space.
5592         * linux-record.c: White space.
5593         * linux-thread-db.c: White space.
5594
5595         * infcall.c: White space.
5596         * inf-child.c: White space.
5597         * infcmd.c: White space.
5598         * inferior.c: White space.
5599         * inf-loop.c: White space.
5600         * inflow.c: White space.
5601         * inline-frame.c: White space.
5602         * interps.c: White space.
5603
5604         * gcore.c: White space.
5605         * gdb.c: White space.
5606         * gdbtypes.c: White space.
5607         * gnu-nat.c: White space.
5608         * gnu-v2-abi.c: White space.
5609         * gnu-v3-abi.c: White space.
5610
5611         * findcmd.c: White space.
5612         * findvar.c: White space.
5613         * fork-child.c: White space.
5614         * frame-base.c: White space.
5615         * frame.c: White space.
5616         * frame-unwind.c: White space.
5617         * f-valprint.c: White space.
5618
5619         * elfread.c: White space.
5620         * environ.c: White space.
5621         * eval.c: White space.
5622         * event-loop.c: White space.
5623         * event-top.c: White space.
5624         * exceptions.c: White space.
5625         * exec.c: White space.
5626         * expprint.c: White space.
5627
5628         * dbxread.c: White space.
5629         * dcache.c: White space.
5630         * disasm.c: White space.
5631         * doublest.c: White space.
5632         * dsrec.c: White space.
5633         * dummy-frame.c: White space.
5634         * dwarf2expr.c: White space.
5635         * dwarf2-frame.c: White space.
5636         * dwarf2loc.c: White space.
5637         * dwarf2read.c: White space.
5638
5639 2010-05-14  Phil Muldoon  <pmuldoon@redhat.com>
5640
5641         PR python/11482
5642
5643         * python/py-value.c (valpy_hash): New function.
5644         (value_object_type): Register valpy_hash.
5645
5646 2010-05-14  Hui Zhu  <teawater@gmail.com>
5647             Michael Snyder  <msnyder@vmware.com>
5648
5649         * linux-fork.c (gdbthread.h): New include.
5650         (fork_info): Add parent_ptid.
5651         (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5652         functions.
5653         (delete_checkpoint_command): Call inferior_call_waitpid.
5654         (checkpoint_command): Set parent_ptid.
5655
5656 2010-05-13  Michael Snyder  <msnyder@vmware.com>
5657
5658         * dictionary.c: Re-indent to GNU coding standard.
5659
5660         * charset.c: White space.
5661         * c-lang.c: White space.
5662         * cli-out.c: White space.
5663         * coffread.c: White space.
5664         * complaints.c: White space.
5665         * completer.c: White space.
5666         * corefile.c: White space.
5667         * corelow.c: White space.
5668         * cp-abi.c: White space.
5669         * cp-namespace.c: White space.
5670         * cp-support.c: White space.
5671         * cp-valprint.c: White space.
5672         * c-typeprint.c: White space.
5673         * c-valprint.c: White space.
5674         * blockframe.c: White space.
5675         * breakpoint.c: White space.
5676         * buildsym.c: White space.
5677         * blockframe.c: White space.
5678         * bcache.c: White space.
5679         * gdbarch.sh: White space, add blank lines.
5680         * arch-utils.c: Ditto.
5681         * gdbarch.c: Regenerate.
5682         * frame.c: White space, add blank lines.
5683         * stack.c: White space, add blank lines.
5684         (initialize_stack): Remove long-dead code.
5685
5686 2010-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5687
5688         Code cleanup.
5689         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5690         (locexpr_read_variable, loclist_read_variable): Update the callers.
5691
5692 2010-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5693
5694         Code cleanup.
5695         * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5696         Remove check of NULL returned by tag_type_to_type.
5697         (die_containing_type): Remove variable type.  Remove type_die variable
5698         initialization.  Remove check of NULL returned by tag_type_to_type.
5699
5700 2010-05-11  Pierre Muller  <muller@ics.u-strasbg.fr>
5701
5702         PR exp/11530.
5703         * gdbtypes.c (lookup_struct_elt_type): Also lookup
5704         names of unnamed structures or unions.
5705
5706 2010-05-11  Pierre Muller  <muller@ics.u-strasbg.fr>
5707
5708         * procfs.c (proc_watchpoint_address): New function.
5709         (procfs_stopped_by_watchpoint): Remove useless check after
5710         find_procinfo_or_die call.
5711         (procfs_stopped_data_address): New function.
5712         (procfs_use_watchpoints): Register new watchpoint related function.
5713
5714 2010-05-11  Tom Tromey  <tromey@redhat.com>
5715
5716         * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5717
5718 2010-05-10  Michael Snyder  <msnyder@vmware.com>
5719
5720         * utils.c: White space cleanup.
5721
5722 2010-05-10  Tom Tromey  <tromey@redhat.com>
5723
5724         * eval.c (ptrmath_type_p): Add 'lang' argument.
5725         (evaluate_subexp_standard): Update.
5726         (evaluate_subexp_with_coercion): Update.
5727         * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5728
5729 2010-05-10  Michael Snyder  <msnyder@vmware.com>
5730
5731         * utils.c (do_fclose_cleanup) Restore local variable.
5732
5733 2010-05-09  Doug Evans  <dje@google.com>
5734
5735         * record.c (init_record_core_ops): Rename record_core to record-core.
5736
5737 2010-05-08  Joel Brobecker  <brobecker@adacore.com>
5738
5739         Implement task switching on pa-hpux.
5740         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5741         (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5742
5743 2010-05-08  Pierre Muller  <muller@ics.u-strasbg.fr>
5744
5745         * valops.c (find_overload_match): Add missing i18n markup.
5746
5747 2010-05-08  Pierre Muller  <muller@ics.u-strasbg.fr>
5748
5749         * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5750
5751 2010-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
5752
5753         * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5754         list for the obconcat call.
5755         * mdebugread.c (parse_symbol): Likewise.
5756         * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5757         Likewise.
5758         * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5759         New variable ap.  Remove variables len and val.
5760         * symfile.h (obconcat): Likewise for the prototype.
5761
5762 2010-05-07  Michael Snyder  <msnyder@vmware.com>
5763
5764         * python/python.c (execute_gdb_command): Remove unused variables.
5765         * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5766         * python/py-breakpoint.c (gdbpy_breakpoint_created):
5767         Remove unused variable.
5768         * python/py-cmd.c (cmdpy_function): Remove unused variable.
5769         (cmdpy_completer): Remove unused variable.
5770         * python/py-frame.c (frapy_find_sal): Remove unused variable.
5771         * python/py-function.c (fnpy_call): Remove unused variable.
5772         * python/py-objfile.c (objfile_to_objfile_object):
5773         Remove unused variable.
5774         * python/py-param.c (parmpy_init): Remove unused variable.
5775         * python/py-prettyprint.c (apply_varobj_pretty_printer):
5776         Remove unused variable.
5777         (gdbpy_default_visualizer): Remove unused variable.
5778         * python/py-progspace.c (pspace_to_pspace_object):
5779         Remove unused variable.
5780         * python/py-symtab.c (symtab_and_line_to_sal_object):
5781         Remove unused variable.
5782         * python/py-type.c (typy_template_argument):
5783         Remove unused variable.
5784         * python/py-value.c (valpy_string): Remove unused variable.
5785         (convert_value_from_python): Remove unused variables.
5786
5787 2010-05-07  Michael Snyder  <msnyder@vmware.com>
5788
5789         * valops.c (value_cast_pointers): Restore unused variable 'type1',
5790         and use it to compute variable 't1'.
5791
5792 2010-05-07  Joel Brobecker  <brobecker@adacore.com>
5793
5794         * ada-lang.c (assign_aggregate): Remove unused variable.
5795
5796 2010-05-07  Sami Wagiaalla  <swagiaal@redhat.com>
5797
5798         PR C++/7943:
5799         * valops.c (find_overload_match): Handle fsym == NULL case.
5800         Add int no_adl argument.
5801         (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5802         when appropriate.
5803         Add int no_adl argument.
5804         (find_oload_champ_namespace):   Add int no_adl argument.
5805         * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5806         expression.
5807         * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5808         * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5809         Evaluate arguments and use them to perform ADL lookup.
5810         Pass no_adl argument to find_overload_match.
5811         Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5812         * cp-support.h: Added prototype for
5813         make_symbol_overload_list_namespace.
5814         * cp-support.c (make_symbol_overload_list_namespace): New function.
5815         (make_symbol_overload_list_adl_namespace): New function.
5816         (make_symbol_overload_list_adl): New function.
5817         (make_symbol_overload_list_using): Moved code to add function to
5818         overload set to make_symbol_overload_list_namespace.
5819         * c-exp.y: create UNKNOWN_CPP_NAME token.
5820         Add parse rule for ADL functions.
5821         (classify_name): Recognize an UNKNOWN_CPP_NAME.
5822
5823 2010-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5824
5825         * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5826         sentinel.
5827
5828 2010-05-07  Joel Brobecker  <brobecker@adacore.com>
5829
5830         Implement task switching on solaris targets.
5831         * sol-thread.c (thread_db_find_thread_from_tid)
5832         (sol_get_ada_task_ptid): New functions.
5833         (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5834
5835 2010-05-07  Pedro Alves  <pedro@codesourcery.com>
5836
5837         * remote.c (remote_query_supported_append): Use reconcat.
5838         (remote_query_supported): Install a cleanup.  Use reconcat.
5839
5840 2010-05-07  Pedro Alves  <pedro@codesourcery.com>
5841
5842         * gdbarch.sh (qsupported): Delete.
5843         * gdbarch.h, gdbarch.c: Regenerate.
5844         * remote.c (remote_query_supported): Remove use of
5845         gdbarch_qsupported.
5846
5847 2010-05-06  Sergio Durigan Junior  <sergiodj@redhat.com>
5848
5849         * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5850         function.
5851
5852 2010-05-06  Michael Snyder  <msnyder@vmware.com>
5853
5854         * xml-support.c (xinclude_start_include): Delete unused variable.
5855         (xml_process_xincludes): Delete unused variable.
5856         * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5857         * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5858         (tdesc_find_arch_register): Delete unused variable.
5859         (tdesc_use_registers): Delete unused variable.
5860         * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5861         * inferior.c (print_inferior): Delete unused variable.
5862         * record.c (record_open_1): Delete unused variable.
5863         (record_restore): Delete unused variable.
5864         (cmd_record_save): Delete unused variable.
5865         * gcore.c (derive_heap_segment): Delete unused variable.
5866         (objfile_find_memory_regions): Use unused variable.
5867         * jit.c (jit_inferior_init): Delete unused variable.
5868         * progspace.c (clone_program_space): Delete unused variable.
5869         (pspace_empty_p): Delete unused variable.
5870
5871         * frame-unwind.c (frame_unwind_find_by_frame):
5872         Delete unused variable.
5873         * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5874         * cp-support.c (mangled_name_to_comp): Delete unused variable.
5875         (method_name_from_physname): Delete unused variable.
5876         (cp_func_name): Delete unused variable.
5877         (cp_validate_operator): Delete unused variable.
5878         * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5879         Delete unused variable.
5880         * trad-frame.c (trad_frame_get_prev_register):
5881         Delete unused variable.
5882         * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5883
5884         * serial.c (serial_for_fd): Delete unused variable.
5885         * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5886         * top.c (execute_command): Delete unused variable.
5887         (init_main): Delete unused variable.
5888         * utils.c (do_fclose_cleanup): Delete unused variable.
5889         (do_all_inferior_continuations): Delete unused variable.
5890         (initialize_utils): Delete unused variable.
5891         (internal_problem_mode): Delete unused global.
5892         * frame.c (get_prev_frame): Delete unused global.
5893         (get_frame_locals_address): Delete unused global.
5894         (get_frame_args_address): Delete unused global.
5895
5896         * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5897         (pascal_type_print_varspec_prefix): Delete unused variable.
5898         * f-typeprint.c (f_type_print_base): Delete unused variable.
5899         (f_type_print_varspec_suffix): Delete unused variable.
5900         * m2-typeprint.c (m2_print_type): Delete unused variable.
5901         (m2_long_set): Delete unused variable.
5902         * ada-valprint.c (ada_val_print_1): Delete unused variable.
5903         * d-valprint.c (dynamic_array_type): Delete unused variable.
5904         * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5905         Delete unused variable.
5906         (f77_create_arrayprint_offset_tbl): Delete unused variable.
5907         * m2-valprint.c (m2_val_print): Delete unused variable.
5908
5909         * ui-out.c (ui_out_field_int): Delete unused variable.
5910         (ui_out_field_fmt_int): Delete unused variable.
5911         * varobj.c (varobj_list_children): Delete unused variable.
5912         (varobj_set_value): Delete unused variable.
5913         (install_new_value_visualizer): Delete unused variable.
5914         (varobj_set_visualizer): Delete unused variable.
5915         (varobj_update): Delete unused variable.
5916         (varobj_editable_p): Delete unused variable.
5917         (c_value_of_root): Delete unused variable.
5918         (cplus_describe_child): Delete unused variable.
5919
5920         * ada-lang.c (add_defn_to_vec): Delete unused variable.
5921         (decode_constrained_packed_array_type): Delete unused variable.
5922         (add_defn_to_vec): Delete unused variable.
5923         (symbol_completion_match): Delete unused variable.
5924         (value_tag_from_contents_and_address): Delete unused variable.
5925         (ada_evaluate_subexp): Delete unused variable.
5926         * c-lang.c (classify_type): Delete unused variable.
5927         * f-lang.c (f_printstr): Delete unused variable.
5928         * objc-lang.c (objc_printstr): Delete unused variable.
5929         * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5930         * jv-lang.c (type_from_class): ifdef unused variable.
5931         (java_class_name_from_physname): Delete unused variable.
5932         * m2-lang.c (m2_printstr): Delete unused variable.
5933
5934         * objfiles.c (objfile_relocate): Delete unused variable.
5935         * maint.c (_initialize_maint_cmds): Delete unused variable.
5936         * demangle.c (_initialize_demangler): Delete unused variable.
5937         * corefile.c (reopen_exec_file): Delete unused variable.
5938         * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5939         * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5940
5941         * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5942         * memattr.c (mem_delete): Delete unused variable.
5943         (invalidate_target_mem_regions): Delete unused variable.
5944         * mem-break.c (default_memory_insert_breakpoint):
5945         Delete unused variable.
5946         * target.c (target_get_osdata): Delete unused variable.
5947         * parse.c (length_of_subexp): Delete unused variable.
5948         (prefixify_subexp): Delete unused variable.
5949         (exp_iterate): Delete unused variable.
5950         * reverse.c (delete_bookmark_command): Delete unused variable.
5951
5952         * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5953         * macroexp.c (gather_arguments): Delete unused variable.
5954         (substitute_args): Delete unused variable.
5955         * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5956         * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5957         (_initialize_gdbarch): Delete unused variable.
5958         * gdbarch.c, gdbarch.h: Regenerate.
5959         * arch-utils.c (initialize_current_architecture):
5960         Delete unused variable.
5961         (_initialize_gdbarch_utils): Delete unused variable.
5962         * gdbtypes.c (make_cv_type): Delete unused variable.
5963         (make_type_with_address_space): Delete unused variable.
5964
5965         * linespec.c (decode_compound): Delete unused variable.
5966         * dictionary.c (iterator_next_hashed): Delete unused variable.
5967         * infcall.c (call_function_by_hand): Delete unused variable.
5968         * infcmd.c (step_1): Delete unused variable.
5969         (registers_info): Delete unused variable.
5970         (attach_command): Delete unused variable.
5971         * infrun.c (follow_exec): Delete unused variable.
5972         (handle_step_into_function_backwards): Delete unused variable.
5973         (_initialize_infrun): Delete unused variable.
5974         * stack.c (parse_frame_specification_1): Delete unused variable.
5975         (frame_info): Delete unused variable.
5976         (backtrace_command_1): Delete unused variable.
5977         (catch_info): Delete unused variable.
5978
5979         * eval.c (evaluate_subexp_standard): Delete unused variable.
5980         * valops.c (value_cast_pointers): Delete unused variable.
5981         (value_dynamic_cast): Delete unused variable.
5982         (value_array): Delete unused variable.
5983         (find_overload_match): Delete unused variable.
5984         * valarith.c (value_subscript): Delete unused variable.
5985         (value_binop): Delete unused variable.
5986         * valprint.c (_initialize_valprint): Delete unused variable.
5987         * printcmd.c (print_command_1): Delete unused variable.
5988         (address_info): Delete unused variable.
5989         (printf_command): Delete unused variable.
5990
5991         * auxv.c (target_auxv_search): Delete unused variable.
5992         * blockframe.c (get_frame_block): Delete unused variable.
5993         * regcache.c (regcache_cpy): Delete unused variable.
5994         (regcache_cpy_no_passthrough): Delete unused variable.
5995         * charset.c (wchar_iterate): Delete unused variable.
5996         (find_charset_names): Delete unused variable.
5997         (_initialize_charset): Delete unused variable.
5998         * disasm.c (do_mixed_source_and_assembly):
5999         Delete unused variable.
6000         * source.c (set_default_source_symtab_and_line):
6001         Delete unused variable.
6002         (set_substitute_path_command): Delete unused variable.
6003         * value.c (preserve_values): Delete unused variable.
6004         (value_from_double): Delete unused variable.
6005
6006 2010-05-05  Michael Snyder  <msnyder@vmware.com>
6007
6008         * psymtab.c (lookup_partial_symbol): Delete unused variable.
6009         (find_last_source_symtab_from_partial): Delete unused variable.
6010         * symfile.c (place_section): Delete unused variable.
6011         (default_symfile_offsets): Delete unused variable.
6012         (get_debug_link_info): Delete unused variable.
6013         (find_separate_debug_file_by_debuglink): Delete unused variable.
6014         (add_symbol_file_command): Delete unused variable.
6015         (symfile_find_segment_sections): Delete unused variable.
6016         * symmisc.c (free_symtab): Delete unused variable.
6017         (dump_symtab_1): Delete unused variable.
6018         * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
6019         (find_pc_sect_symtab): Delete unused variable.
6020         (skip_prologue_using_lineinfo): Delete unused variable.
6021         (sources_info): Delete unused variable.
6022         (completion_list_add_name): Delete unused variable.
6023         (expand_line_sal): Delete unused variable.
6024
6025         * breakpoint.c (validate_commands_for_breakpoint):
6026         Delete unused variables.
6027         (insert_catchpoint): Delete unused variable.
6028         (update_watchpoint): Delete unused variable.
6029         (insert_bp_location): Delete unused variable.
6030         (insert_breakpoint_locations): Delete unused variable.
6031         (remove_breakpoint_1): Delete unused variable.
6032         (software_breakpoint_inserted_here_p): Delete unused variable.
6033         (watchpoints_triggered): Delete unused variable.
6034         (bpstat_check_watchpoint): Delete unused variable.
6035         (bpstat_stop_status): Delete unused variable.
6036         (print_one_breakpoint_location): Delete unused variable.
6037         (allocate_bp_location): Delete unused variable.
6038         (create_breakpoint): Delete unused variable.
6039         (watch_command_1): Delete unused variable.
6040         (catch_exception_command_1): Delete unused variable.
6041         (catch_ada_exception_command): Delete unused variable.
6042         (delete_breakpoint): Delete unused variable.
6043         (breakpoint_re_set_one): Delete unused variable.
6044         (do_enable_breakpoint): Delete unused variable.
6045
6046 2010-05-06  Pedro Alves  <pedro@codesourcery.com>
6047
6048         * amd64-tdep.c: Include disasm.h.
6049         (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
6050         (amd64_insn_length): Moved to disasm.c and renamed.
6051         (fixup_riprel): Adjust.
6052         * disasm.c (do_ui_file_delete): New.
6053         (gdb_insn_length): New.
6054         (gdb_buffered_insn_length_fprintf)
6055         (gdb_buffered_insn_length_init_dis)
6056         (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
6057         renamed.
6058         * disasm.h (gdb_insn_length): Declare.
6059         (gdb_buffered_insn_length): Declare.
6060
6061 2010-05-06  Pedro Alves  <pedro@codesourcery.com>
6062
6063         * remote.c (clear_threads_parsing_context): New.
6064         (remote_threads_info): Delete unused null_cleanup.  Install a
6065         cleanup to clear the threads_parsing_context in case parsing
6066         throws.
6067
6068 2010-05-05  Michael Snyder  <msnyder@vmware.com>
6069
6070         * c-exp.y (parse_string_or_char): Delete unused variable.
6071         (c_lex): Delete unused variable.
6072         * cp-name-parser.y (cpname_lex): Delete unused variable.
6073         * ada-exp.y (find_primitive_type): Delete unused variable.
6074         (write_var_or_type): Delete unused variable.
6075         * jv-exp.y (java_parse): Delete unused variable.
6076         (push_expression_name): Delete unused variable.
6077         * p-exp.y (pascal_lex): Delete unused variable.
6078
6079 2010-05-05  Pedro Alves  <pedro@codesourcery.com>
6080
6081         * remote.c (remote_threads_info): Really revert previous previous
6082         change.
6083
6084 2010-05-05  Michael Snyder  <msnyder@vmware.com>
6085
6086         * elfread.c (elf_symtab_read): Delete unused variable.
6087         (find_separate_debug_file_by_buildid): Delete unused variables.
6088         (elf_symfile_read): Delete unused variable.
6089
6090         * coffread.c (coff_symfile_read): Delete unused variables.
6091
6092         * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
6093         (read_pe_exported_syms): Delete unused variable.
6094
6095         * stabsread.c (define_symbol): Delete unused variable.
6096
6097         * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
6098         (process_psymtab_comp_unit): Delete unused variable.
6099         (dwarf2_build_psymtabs_hard): Delete unused variable.
6100         (load_partial_comp_unit): Delete unused variable.
6101         (create_all_comp_units): Delete unused variable.
6102         (scan_partial_symbols): Delete unused variable.
6103         (add_partial_symbol): Delete unused variable.
6104         (add_partial_namespace): Delete unused variable.
6105         (add_partial_enumeration): Delete unused variable.
6106         (load_full_comp_unit): Delete unused variable.
6107         (process_full_comp_unit): Delete unused variable.
6108         (read_file_scope): Delete unused variable.
6109         (read_type_unit_scope): Delete unused variable.
6110         (process_structure_scope): Delete unused variable.
6111         (process_enumeration_scope): Delete unused variable.
6112         (read_tag_ptr_to_member_type): Delete unused variable.
6113         (read_typedef): Delete unused variable.
6114         (read_partial_die): Delete unused variable.
6115         (decode_locdesc): Delete unused variable.
6116         (zeroed_partial_die): Delete unused global variable.
6117
6118         * tui/tui-interp.c (_initialize_tui_interp):
6119         Delete unused variable.
6120         * tui/tui-regs.c tui_display_registers_from):
6121         Delete unused variable.
6122         (tui_check_register_values): Delete unused variable.
6123         (tui_register_format): Delete unused variable.
6124         * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
6125         * tui/tui-windata.c (tui_display_data_from_line):
6126         Delete unused variables.
6127         (tui_vertical_data_scroll): Delete unused variables.
6128
6129 2010-05-05  Michael Snyder  <msnyder@vmware.com>
6130
6131         * remote.c (remote_threads_info): Revert questionable part of
6132         the previous change.
6133
6134 2010-05-05  Michael Snyder  <msnyder@vmware.com>
6135
6136         * mi/mi-out.c (mi_table_begin): Delete unused variable.
6137         * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
6138         (mi_cmd_var_list_children): Delete unused variable.
6139         (varobj_update_one): Delete unused variable.
6140         * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
6141         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
6142         Delete unused variable.
6143         (mi_cmd_stack_list_variables): Delete unused variable.
6144         (list_args_or_locals): Delete unused variable.
6145         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
6146         Delete unused variables.
6147         (mi_cmd_file_list_exec_source_files): Delete unused variable.
6148         * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
6149         Delete unused variable.
6150         * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
6151         (mi_cmd_interpreter_exec): Delete unused variable.
6152         (mi_on_normal_stop): Delete unused variable.
6153         * mi/mi-main.c (run_one_inferior): Delete unused variable.
6154         (print_one_inferior): Delete unused variables.
6155         (mi_execute_command): Delete unused variable.
6156         (mi_cmd_execute): Delete unused variable.
6157         (timestamp): Delete unused variable.
6158
6159         * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
6160         (restore_binary_file): Delete unused variable.
6161         * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
6162         * cli/cli-script.c (define_command): Delete unused variables.
6163         (recurse_read_control_structure): Delete unused variable.
6164         (script_from_file): Delete unused variable.
6165         * cli/cli-cmds.c (complete_command): Delete unused variable.
6166         (disassemble_command): Delete unused variable.
6167
6168         * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
6169         * tracepoint.c (delete_trace_variable_command):
6170         Delete unused variables.
6171         (encode_actions_1): Delete unused variables.
6172         (start_tracing): Delete unused variable.
6173         (trace_status_mi): Delete unused variable.
6174         (tfind_1): Delete unused variable.
6175         (trace_find_pc_command): Delete unused variable.
6176         (trace_find_line_command): Delete unused variables.
6177         (trace_find_range_command): Delete unused variables.
6178         (trace_find_outside_command): Delete unused variables.
6179         (parse_tracepoint_definition): Delete unused variables.
6180         (tfile_fetch_registers): Delete unused variable.
6181
6182         * dcache.c (dcache_init): Delete unused variable.
6183         (dcache_info): Delete unused variable.
6184
6185         * remote.c (remote_threads_info): Delete unused variable.
6186         (process_stop_reply) :Delete unused variable.
6187         (remote_get_trace_status): Delete unused variables.
6188
6189         * linux-thread-db.c (add_thread_db_info): Delete unused variable.
6190         (thread_from_lwp): Delete unused variable.
6191         (enable_thread_event_reporting): Delete unused variable.
6192         (check_for_thread_db): Delete unused variables.
6193         (thread_db_find_new_threads_2): Delete unused variable.
6194
6195         * linux-fork.c (info_checkpoints_command): Delete unused variables.
6196         (checkpoint_command): Delete unused variable.
6197         (linux_fork_context): Delete unused variables.
6198
6199         * linux-nat.c (linux_parent_pid): Delete unused global variable.
6200         (linux_tracefork_child): Delete unused variable.
6201         (linux_child_follow_fork): Delete unused variable.
6202         (linux_nat_detach): Delete unused variable.
6203         (linux_handle_extended_wait): Delete unused variable.
6204         (linux_nat_has_pending_sigint): Delete unused variable.
6205         (linux_nat_find_memory_regions): Delete unused variable.
6206         (linux_nat_make_corefile_notes): Delete unused variables.
6207         (linux_nat_info_proc_cmd): Delete unused variable.
6208         (linux_proc_pending_signals): Delete unused variable.
6209         (linux_nat_stop_lwp): Delete unused variables.
6210         (_initialize_linux_nat): Delete unused variable.
6211
6212         * ser-pipe.c (pipe_ops): Delete unused global variable.
6213
6214         * linux-record.c (record_linux_system_call):
6215         Delete unused variables.
6216
6217         * corelow.c (core_xfer_partial): Delete unused variables.
6218
6219         * solib-svr4.c (find_program_interpreter): Delete unused variable.
6220         (svr4_solib_create_inferior_hook): Add ifdef around
6221         conditionally-used variable declarations.
6222
6223         * solib.c (solib_find): Delete unused variable.
6224         (free_so_symbols): Delete unused variable.
6225         (info_sharedlibrary_command): Delete unused variable.
6226         (reload_shared_libraries_1): Delete unused variable.
6227         (_initialize_solib): Delete unused variable.
6228
6229         * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6230         (i386_collect_xstateregset): Delete unused variable.
6231         * i387-tdep.c (i387_print_float_info): Delete unused variable.
6232
6233         * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6234         Delete unused variable 'type'.
6235
6236 2010-05-05  Joel Brobecker  <brobecker@adacore.com>
6237
6238         * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros.  *
6239         ada-lang.c: Remove comment mentioning these macros.
6240         * m2-exp.y: Delete commented out code.
6241
6242 2010-05-05  Joel Brobecker  <brobecker@adacore.com>
6243
6244         * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6245         for array types.
6246         * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6247
6248 2010-05-04  Pierre Muller  <muller@ics.u-strasbg.fr>
6249
6250         ARI fix: Remove ATTRIBUTE_UNUSED throughout.
6251         * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6252         ATTRIBUTE_UNUSED.
6253         (cleanup_kernel_helper_return): Likewise.
6254         * arm-tdep.c (copy_unmodified): Likewise.
6255         (copy_preload): Likewise.
6256         (copy_copro_load_store): Likewise.
6257         (cleanup_branch): Likewise.
6258         (copy_b_bl_blx): Likewise.
6259         (copy_bx_blx_reg): Likewise.
6260         (copy_alu_imm): Likewise.
6261         (copy_alu_reg): Likewise.
6262         (copy_alu_shifted_reg): Likewise.
6263         (cleanup_load): Likewise.
6264         (cleanup_store): Likewise.
6265         (cleanup_block_load_pc): Likewise.
6266         (cleanup_svc): Likewise.
6267         (copy_undef): Likewise.
6268         (copy_unpred): Likewise.
6269         * remote.c (register_remote_support_xml): Likewise.
6270
6271 2010-05-05  Hui Zhu  <teawater@gmail.com>
6272
6273         * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6274
6275 2010-05-04  Mark Kettenis  <kettenis@gnu.org>
6276
6277         * remote.c (register_remote_support_xml)
6278         (remote_query_supported_append, remote_query_supported): Add cast
6279         to NULL used as sentinel.
6280         * tracepoint.c (tvariables_info_1): Likewise.
6281         * utils.c (add_internal_problem_command): Likewise.
6282
6283 2010-05-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6284
6285         * dwarf2loc.c (read_pieced_value, write_pieced_value,
6286         dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6287         registers gracefully.
6288
6289 2010-05-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6290
6291         * exec.c (print_section_info): Display entry point without arch
6292         specific parts.
6293
6294 2010-05-04  Pierre Muller  <muller@ics.u-strasbg.fr>
6295
6296         PR exp/11349.
6297         * printcmd.c (x_command): Only dereference once implicitly for
6298         TYPE_CODE_REF.
6299
6300 2010-05-03  Doug Evans  <dje@google.com>
6301
6302         * event-loop.c (gdb_timer): Delete unused global.
6303         (create_timer): Update.
6304
6305 2010-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6306
6307         * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6308         CURRENT->DECLARATION case.
6309         * cp-support.h (struct using_direct): Provide extended comment.
6310
6311 2010-05-03  Mark Kettenis  <kettenis@gnu.org>
6312
6313         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6314         HPPABSD_SIZEOF_GREGS.
6315         (HPPAOBSD_SIZEOF_FPREGS): New define.
6316         (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6317         (hppaobsd_supply_fpregset): New function.
6318         (hppaobsd_gregset): Renamed from hppabsd_gregset.
6319         (hppaobsd_fpregset): New variable.
6320         (hppaobsd_regset_from_core_section): Handle floating-point registers.
6321         (_initialize_hppabsd_tdep): Remove spurious blank line.
6322
6323 2010-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
6324
6325         PR pascal/11349.
6326         * p-valprint.c (pascal_value_print): Always dereference a value with
6327         type code TYPE_CODE_REF.
6328
6329 2010-05-03  Pedro Alves  <pedro@codesourcery.com>
6330
6331         * remote.c (remote_notice_signals): New.
6332         (remote_start_remote): In non-stop mode, update the remote end on
6333         which signals it can silently pass.
6334         (init_remote_ops): Install remote_notice_signals.
6335
6336 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6337
6338         * cli/cli-cmds.h (error_no_arg): Remove.  Move the comment ...
6339         * command.h (error_no_arg): ... here.  Remove NORETURN, change
6340         ATTR_NORETURN to ATTRIBUTE_NORETURN.
6341         * defs.h (NORETURN, ATTR_NORETURN): Remove.
6342         (perror_with_name, verror, error, error_stream, vfatal, fatal)
6343         (internal_verror, internal_error, nomem): Remove NORETURN, change
6344         ATTR_NORETURN to ATTRIBUTE_NORETURN.
6345         * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6346         (throw_vfatal, throw_error): Remove NORETURN.
6347         (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6348         * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6349         (throw_error, deprecated_throw_reason): Remove NORETURN, change
6350         ATTR_NORETURN to ATTRIBUTE_NORETURN.
6351         * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6352         to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6353         NORETURN.
6354         * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6355         * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6356         ATTRIBUTE_NORETURN.
6357         * target.c (tcomplain): Likewise.
6358         * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6359         ATTRIBUTE_NORETURN.
6360         * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6361         (internal_error, perror_with_name, nomem): Remove NORETURN.
6362         * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6363         ATTRIBUTE_NORETURN.
6364
6365 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6366
6367         * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6368         * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6369         * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6370         (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6371         * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6372         (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6373         * complaints.h (complaint, internal_complaint): Likewise.
6374         * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6375         (ATTR_FORMAT): Remove.
6376         (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6377         (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6378         (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6379         (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6380         (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6381         (internal_error, internal_vwarning, internal_warning, warning)
6382         (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6383         * disasm.c (fprintf_disasm): Likewise.
6384         * exceptions.c (throw_it): Likewise.
6385         * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6386         (throw_error): Likewise.
6387         * language.h (type_error, range_error): Likewise.
6388         * linespec.c (cplusplus_error): Likewise.
6389         * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6390         * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6391         * monitor.c (monitor_debug): Likewise.
6392         * parser-defs.h (parser_fprintf): Likewise.
6393         * serial.h (serial_printf): Likewise.
6394         * tui/tui-hooks.c (tui_query_hook): Likewise.
6395         * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6396         (uo_message): Likewise.
6397         * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6398         * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6399         Likewise.
6400         * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6401
6402 2010-05-02  Pedro Alves  <pedro@codesourcery.com>
6403
6404         * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6405         (cli_table_header, cli_begin, cli_end, cli_field_int)
6406         (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6407         (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6408         Delete forward declarations.
6409         (cli_ui_out_impl): Move below the callbacks.
6410         (_initialize_cli_out): Delete.
6411
6412 2010-05-02  Pedro Alves  <pedro@codesourcery.com>
6413
6414         * README: Use consistent `GDB' and `GDBserver' spellings.
6415
6416 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6417
6418         * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6419
6420 2010-05-01  Pedro Alves  <pedro@codesourcery.com>
6421
6422         * infrun.c (prepare_for_detach): In non-stop, context switch to
6423         the thread that got the event before handling the event.
6424
6425 2010-04-30  Tom Tromey  <tromey@redhat.com>
6426
6427         * symtab.c (symbol_set_names): Fix typo.
6428
6429 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
6430
6431         * python/py-param.c (parm_constants): Avoid ARI warning
6432         by adding ARI comment.
6433         (parmpy_init): Likewise.
6434
6435 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
6436
6437         * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6438         and created type for re-use.
6439
6440 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
6441
6442         * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6443
6444 2010-04-29  Doug Evans  <dje@google.com>
6445
6446         * ser-base.h (reschedule): Delete prototype.
6447         * ser-base.c (reschedule): Make static.
6448
6449 2010-04-29  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6450
6451         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6452         (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
6453         (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
6454         EABI.
6455         (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
6456         use.
6457
6458 2010-04-29  Pedro Alves  <pedro@codesourcery.com>
6459
6460         PR gdb/11557
6461
6462         * regcache.c (registers_changed): Rename to ...
6463         (registers_changed_ptid): ... this, and only delete register cache
6464         entries matching the ptid filter argument.
6465         (registers_changed): Reimplement on top of registers_changed_ptid.
6466         * regcache.h (registers_changed_ptid): Declare.
6467         * target.c (target_resume): Flush register caches.
6468
6469 2010-04-29  Phil Muldoon  <pmuldoon@redhat.com>
6470             Tom Tromey  <tromey@redhat.com>
6471             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6472
6473         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6474         (SUBDIR_PYTHON_SRCS): Likewise.
6475         (py-parameter.o): New rule.
6476         * python/py-parameter.c: New file.
6477         * python/python-internal.h (gdbpy_initialize_parameter)
6478         (gdbpy_parameter, gdbpy_parameter_value)
6479         (gdbpy_parse_command_name): Declare.
6480         * python/py-cmd.c (parse_command_name): Rename to
6481         gdbpy_parse_command_name.
6482         (gdbpy_parse_command_name): Accept a starting list parameter and
6483         use over cmdlist.
6484         (cmdpy_init): Use gdbpy_parse_command_name.
6485         * python/python.c (parameter_to_python): Rename to
6486         gdbpy_parameter_to_python.  Accept enum var_types and value.
6487         (gdbpy_parameter): Use gdbpy_parameter_value.
6488         (_initialize_python): Call gdbpy_initialize_parameters.
6489
6490 2010-04-29  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6491
6492         * MAINTAINERS: Add myself for write after approval privileges.
6493
6494 2010-04-29  Mihail Zenkov  <mihail.zenkov@gmail.com>
6495
6496         D language support.
6497         * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6498         (COMMON_OBS): Add d-lang.o d-valprint.o.
6499         (HFILES_NO_SRCDIR): Add d-lang.h.
6500         * NEWS: Mention D language support.
6501         * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6502         * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6503         * d-lang.c: New file.
6504         * d-lang.h: New file.
6505         * d-valprint.c: New file.
6506         * defs.h (enum language): Add language_d.
6507         * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6508         * language.c (binop_result_type, integral_type, character_type)
6509         (string_type, boolean_type, structured_type): Add language_d.
6510         * symfile.c (init_filename_language_table): Add language_d.
6511         * symtab.c: Include d-lang.h.
6512         (symbol_init_language_specific, symbol_find_demangled_name)
6513         (symbol_natural_name, lookup_symbol_in_language)
6514         (symbol_demangled_name, symbol_matches_domain): Add language_d.
6515
6516 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6517
6518         * solib-svr4.c (solib_svr4_r_map): Expand function description.
6519
6520 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6521
6522         * symfile.c (init_filename_language_table): Register .dg files
6523         with language_ada.
6524
6525 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6526
6527         * gdbtypes.h (struct main_type): Expand comment about target_type
6528         field.
6529
6530 2010-04-27  Pedro Alves  <pedro@codesourcery.com>
6531             Tristan Gingold  <gingold@adacore.com>
6532
6533         * symfile.c (reread_symbols): Also search for file in libraries.
6534         Update comment.
6535
6536 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6537
6538         * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6539         in terms of configuration.
6540
6541 2010-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6542
6543         * objfiles.c: Include solist.h.
6544         (free_all_objfiles): New variable so.  Check stale solist objfiles.
6545         * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6546         and no_shared_libraries.
6547
6548 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6549
6550         ARI warning fix.
6551         * python/py-auto-load.c (source_section_scripts): Remove trailing
6552         new-line in i18n string.
6553
6554 2010-04-26  Doug Evans  <dje@google.com>
6555
6556         * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6557
6558 2010-04-26  Tom Tromey  <tromey@redhat.com>
6559
6560         * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6561         command list.
6562
6563 2010-04-26  Pierre Muller  <muller@ics.u-strasbg.fr>
6564
6565         Removal of config/i386/nm-i386sol2.h native configuration file.
6566         * config/i386/nm-i386sol2.h: Remove file.
6567         * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6568         * config/i386/sol2-64.mh: Idem.
6569         * config/djgpp/fnchange.lst: Remove reference to that file.
6570         * Makefile.in (HFILES_NO_SRCDIR): Idem.
6571
6572 2010-04-26  Pierre Muller  <muller@ics.u-strasbg.fr>
6573
6574         PR breakpoints/11531.
6575         * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6576         macro definition and related comment.
6577         * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6578         (resume): Remove code and comment related to this macro.
6579
6580 2010-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6581
6582         * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6583         Fix whitespace.
6584
6585 2010-04-24  Pedro Alves  <pedro@codesourcery.com>
6586
6587         * defs.h: Adjust comment.
6588         * filesystem.h, filesystem.c: New files.
6589         * Makefile.in (SFILES): Add filesystem.c.
6590         (COMMON_OBS): Add filesystem.o.
6591         * solib.c (solib_find): Handle DOS-based filesystems.  Handle
6592         different target and host path flavours.
6593         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6594         has_dos_based_file_system on the gdbarch.
6595         * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6596         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6597         * i386-tdep.c (i386_go32_init_abi): Ditto.
6598         * gdbarch.sh (has_dos_based_file_system): New.
6599         * gdbarch.h, gdbarch.c: Regenerate.
6600         * NEWS: Mention improved support for remote targets with DOS-based
6601         filesystems.  Mention new `set/show target-file-system-kind'
6602         commands.
6603
6604 2010-04-23  Stan Shebs  <stan@codesourcery.com>
6605
6606         * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6607         comments.
6608         (struct agent_reqs): Remove.
6609         (ax_reg_mask): Declare.
6610         * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6611         (free_agent_expr): Free reg_mask.
6612         (ax_print): Add scope and register mask info.
6613         (ax_reqs): Remove agent_reqs argument, use agent expression
6614         fields, and move part of register mask computation to...
6615         (ax_reg_mask): New function.
6616         * ax-gdb.c (gen_trace_static_fields): Call it.
6617         (gen_traced_pop): Ditto.
6618         (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6619         (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6620         (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6621         (gen_eval_for_expr): Ditto, and require an rvalue.
6622         (agent_command): Call ax_reqs.
6623         (agent_eval_command): Ditto.
6624         * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6625         (validate_action_line): Ditto.
6626         (collect_symbol): Ditto.
6627         (encode_actions_1): Ditto.
6628
6629 2010-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
6630             Paul Pluzhnikov  <ppluzhnikov@google.com>
6631             Jan Kratochvil  <jan.kratochvil@redhat.com>
6632
6633         Fix deadlock on looped list of loaded shared objects.
6634         * solib-svr4.c (LM_PREV): New function.
6635         (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6636         (svr4_current_sos): Check for correct l_prev.  New variables prev_lm
6637         and next_lm.  Clear prev_lm for solib_svr4_r_ldsomap.
6638         * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6639
6640 2010-04-23  Doug Evans  <dje@google.com>
6641
6642         * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6643         python.
6644         * configure: Regenerate.
6645         * main.c: #include "python/python.h".
6646         (captured_main): Defer loading auto-loaded scripts until after
6647         local_gdbinit has been sourced.
6648         * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6649         (load_auto_scripts_for_objfile): New function.
6650         (auto_load_new_objfile): Call it.
6651         * python/python.h (gdbpy_global_auto_load): Declare.
6652         (load_auto_scripts_for_objfile): Declare.
6653
6654         Add support for auto-loading scripts from .debug_gdb_scripts section.
6655         * NEWS: Add entry for .debug_gdb_scripts.
6656         * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6657         (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6658         (py-auto-load.o): New rule.
6659         * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6660         * cli/cli-cmds.h (find_and_open_script): Update prototype.
6661         * python/py-auto-load.c: New file.
6662         * python/python-internal.h: #include <stdio.h>.
6663         (set_python_list, show_python_list): Declare.
6664         (gdbpy_initialize_auto_load): Declare.
6665         (source_python_script_for_objfile): Declare.
6666         * python/python.c: Remove #include of observer.h.
6667         (gdbpy_auto_load): Moved to py-auto-load.c.
6668         (GDBPY_AUTO_FILENAME): Ditto.
6669         (gdbpy_new_objfile): Delete.
6670         (source_python_script_for_objfile): New function.
6671         (set_python_list, show_python_list): Make externally visible.
6672         (_initialize_python): Move "auto-load" command to py-auto-load.c
6673         and observer_attach_new_objfile to py-auto-load.c.
6674
6675 2010-04-23  Jerome Guitton  <guitton@adacore.com>
6676
6677         * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6678         (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6679         (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6680         New constants.
6681         (alpha_heuristic_analyze_probing_loop): New function.
6682         (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6683         and handle cases when a stack probe loop is generated.
6684         * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6685         (alpha_mdebug_max_frame_size_exceeded): New function.
6686         (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6687         (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6688         Return 0 when the maximum debuggable frame size has been exceeded.
6689
6690 2010-04-23  Joel Brobecker  <brobecker@adacore.com>
6691
6692         Fix ARI warning.
6693         * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6694
6695 2010-04-20  Chris Moller  <cmoller@redhat.com>
6696
6697         PR 10179
6698
6699         * symtab.c (rbreak_command): Added code to include a filename
6700         specification in the rbreak argument.
6701         * NEWS: Added a brief description of filename-qualified rbreak.
6702
6703 2010-04-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
6704
6705         Fix crashes on dangling display expressions.
6706         * ada-lang.c (ada_operator_check): New function.
6707         (ada_exp_descriptor): Fill-in the field operator_check.
6708         * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6709         * jv-lang.c (exp_descriptor_java): Likewise.
6710         * m2-lang.c (exp_descriptor_modula2): Likewise.
6711         * scm-lang.c (exp_descriptor_scm): Likewise.
6712         * parse.c (exp_descriptor_standard): Likewise.
6713         (operator_check_standard): New function.
6714         (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6715         * parser-defs.h (struct exp_descriptor): New field operator_check.
6716         (operator_check_standard, exp_uses_objfile): New declarations.
6717         * printcmd.c: Remove the inclusion of solib.h.
6718         (display_uses_solib_p): Remove the function.
6719         (clear_dangling_display_expressions): Call lookup_objfile_from_block
6720         and exp_uses_objfile instead of display_uses_solib_p.
6721         * solist.h (struct so_list) <objfile>: New comment.
6722         * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6723         * symtab.h (lookup_objfile_from_block): New declaration.
6724         (struct general_symbol_info) <obj_section>: Extend the comment.
6725
6726 2010-04-22  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
6727             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6728
6729         * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6730         (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6731         ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6732         PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6733         PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6734         PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6735         PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6736         PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6737         PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6738         PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6739         PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6740         PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6741         PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6742         Define, in case <ptrace.h> doesn't provide it.
6743         (booke_debug_info): New variable.
6744         (max_slots_number): Ditto.
6745         (hw_break_tuple): New struct.
6746         (thread_points): Ditto.
6747         (ppc_threads): New variable.
6748         (PPC_DEBUG_CURRENT_VERSION): New define.
6749         (have_ptrace_new_debug_booke): New function.
6750         (ppc_linux_check_watch_resources): Renamed to ...
6751         (ppc_linux_can_use_hw_breakpoint): ... this.  Handle BookE processors.
6752         (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6753         (booke_cmp_hw_point): New function.
6754         (booke_find_thread_points_by_tid): Ditto.
6755         (booke_insert_point): Ditto.
6756         (booke_remove_point): Ditto.
6757         (ppc_linux_insert_hw_breakpoint): Ditto.
6758         (ppc_linux_remove_hw_breakpoint): Ditto.
6759         (get_trigger_type): Ditto.
6760         (ppc_linux_insert_watchpoint): Handle BookE processors.
6761         (ppc_linux_remove_watchpoint): Ditto.
6762         (ppc_linux_new_thread): Ditto.
6763         (ppc_linux_thread_exit): New function..
6764         (ppc_linux_stopped_data_address): Handle BookE processors.
6765         (ppc_linux_watchpoint_addr_within_range): Ditto.
6766         (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6767         to_remove_hw_breakpoint fields of the target operations struct.
6768         Add observe for the thread_exit event.
6769
6770 2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>
6771
6772         * i386-linux-nat.c (regmap): Removed.
6773         (fetch_register): Replace regmap with
6774         i386_linux_gregset_reg_offset.
6775         (store_register): Likewise.
6776         (supply_gregset): Likewise.
6777         (fill_gregset): Likewise.
6778
6779         * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6780         global.
6781
6782         * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6783
6784 2010-04-22  Chris Moller  <cmoller@redhat.com>
6785
6786         * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6787         method of popping recursion-detection stack with a method based on
6788         obstack_object_size().  (Similar to the PR9167 patch below, but for
6789         the static array obstack rather than the static member obstack.)
6790
6791 2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>
6792
6793         * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6794         (_initialize_amd64_linux_nat): Replace
6795         amd64_linux_gregset64_reg_offset with
6796         amd64_linux_gregset_reg_offset.
6797
6798         * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6799         global.
6800
6801         * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6802
6803 2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
6804
6805         PR stabs/11479.
6806         * stabsread.c (set_length_in_type_chain): New function.
6807         (read_struct_type): Call set_length_in_type_chain function.
6808         (read_enum_type): Idem.
6809
6810 2010-04-21  Stan Shebs  <stan@codesourcery.com>
6811             Nathan Sidwell  <nathan@codesourcery.com>
6812
6813         * tracepoint.c (trace_save): Open in binary mode.
6814
6815 2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
6816
6817         * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6818         fields.
6819         * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6820         builtin_char32 fields.
6821         * printcmd.c (decode_format): Set char size to '\0'
6822         for strings unless explicit size is given.
6823         (print_formatted): Correct calculation of NEXT_ADDRESS
6824         for 16 or 32 bit strings.
6825         (do_examine): Do not force byte size for strings.
6826         Use builtin_char16 and builtin_char32 types to display
6827         16 or 32 bit-wide strings.
6828         (x_command): Set LAST_SIZE to 'b' for string type.
6829
6830 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
6831
6832         PR corefiles/11523
6833         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6834         XCR0 first.
6835
6836         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6837         there is no .reg-xstate section.
6838         (i386_linux_core_read_description): Check XCR0 first.
6839
6840 2010-04-21  Mike Frysinger  <vapier@gentoo.org>
6841
6842         * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6843         for len <= 8.
6844
6845 2010-04-21  Chris Moller  <cmoller@redhat.com>
6846
6847         PR 9167
6848         * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6849         method of popping recursion-detection stack with a method based on
6850         obstack_object_size().
6851
6852 2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6853
6854         PR pascal/11492.
6855         * p-valprint.c (pascal_val_print): Fix default printing of integer
6856         arrays.
6857
6858 2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6859
6860         Fix compilation warning on gcc-4.1.2.
6861         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6862         local variable`pc' to zero.
6863
6864 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6865
6866         Implement thread support with core files on alpha-tru64.
6867         * dec-thread.c (dec_thread_find_new_threads): New function,
6868         extracted from resync_thread_list.
6869         (resync_thread_list): Add OPS parameter.  Replace extracted-out
6870         code by call to dec_thread_find_new_threads.
6871         (dec_thread_wait): Update call to resync_thread_list.
6872         (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6873
6874 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6875
6876         * ada-lang.c (value_pointer): New function.
6877         (make_array_descriptor): Call value_pointer to convert addresses to
6878         pointers.
6879
6880 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6881
6882         * rs6000-aix-tdep.c: #include exceptions.h.
6883         (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6884         while reading the memory at ADDR, then ADDR cannot be a function
6885         descriptor.
6886
6887 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6888
6889         * ada-typeprint.c (ada_print_typedef): New function.
6890         * ada-lang.h (ada_print_typedef): Add declaration.
6891         * ada-lang.c (ada_language_defn): set la_print_typdef field
6892         to ada_print_typedef.
6893
6894 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6895
6896         * procfs.c (procfs_address_to_host_pointer): Only define when used.
6897
6898 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6899
6900         * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6901         (iterate_over_mappings): Adjust function profile. Add declaration.
6902         (insert_dbx_link_bpt_in_region, info_mappings_callback):
6903         Adjust accordingly.
6904
6905 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6906
6907         * procfs.c (solib_mappings_callback): Move function up to avoid
6908         a compiler warning.
6909
6910 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6911
6912         * procfs.c (find_signalled_thread, find_stop_signal): Move
6913         these functions down to define them only when used.
6914
6915 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6916
6917         * valprint.c (common_val_print): Fix the value before extracting
6918         its contents.
6919         * ada-lang.c (ada_to_fixed_value): Make this function extern.
6920         * ada-lang.h (ada_to_fixed_value): New function declaration.
6921         * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6922         to avoid code duplication and fix a bug in the handling of
6923         fixed types contents.
6924
6925 2010-04-20  Tom Tromey  <tromey@redhat.com>
6926
6927         * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6928         (read_partial_die): Likewise.
6929         (dwarf_attr_name): Likewise.
6930
6931 2010-04-20  Chris Moller  <cmoller@redhat.com>
6932
6933         PR 10867
6934
6935         * cp-valprint.c (global): Adding new static array recursion
6936         detection obstack.
6937         (cp_print_value_fields, cp_print_static_field): Added new static
6938         array recursion detection code.
6939
6940 2010-04-20  Mark Kettenis  <kettenis@gnu.org>
6941
6942         * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6943         general-purpose register set should be 68 instead of 144.
6944         (i386_linux_sse_regset_sections): Likewise.
6945         (i386_linux_avx_regset_sections): Likewise.
6946
6947 2010-04-20  Stan Shebs  <stan@codesourcery.com>
6948             Nathan Sidwell  <nathan@codesourcery.com>
6949
6950         * dwarf2loc.c (struct axs_var_loc): New struct.
6951         (dwarf2_tracepoint_var_loc): New function.
6952         (dwarf2_tracepoint_var_access): New function.
6953         (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6954         with DW_OP_piece.
6955         (locexpr_describe_location_piece): New function.
6956         (locexpr_describe_location_1): New function.
6957         (locexpr_describe_location): Call it, update signature.
6958         (loclist_describe_location): Rewrite to loop over locations,
6959         update signature.
6960         * symtab.h (struct symbol_computed_ops): Add address to
6961         describe_location arguments, return void.
6962         * printcmd.c (address_info): Get context PC, pass to computed
6963         location description.
6964         * tracepoint.c (scope_info): Ditto.
6965         * ax-gdb.c (trace_kludge): Export.
6966
6967 2010-04-20  Tom Tromey  <tromey@redhat.com>
6968
6969         * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6970         (struct dwarf2_cie) <segment_size>: New field.
6971         * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6972         (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6973         DW_FORM_exprloc.
6974         (read_attribute_value): Handle DW_FORM_flag_present,
6975         DW_FORM_sec_offset, DW_FORM_exprloc.
6976         (dump_die_shallow): Likewise.
6977         (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6978         (dwarf2_const_value): Handle DW_FORM_exprloc.
6979         (attr_form_is_block): Likewise.
6980         (struct line_header) <maximum_ops_per_instruction>: New field.
6981         (dwarf_decode_line_header): Set new field.
6982         (dwarf_decode_lines): Handle new field.
6983
6984 2010-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6985
6986         * f-exp.y: Add new production to recognize the `logical*8' type.
6987         (LOGICAL_S8_KEYWORD): New token.
6988         * f-lang.c (enum f_primitive_types)
6989         <f_primitive_type_logical_s8>: New field.
6990         (f_language_arch_info): Handling `logical*8' type.
6991         (build_fortran_types): Building `logical*8' type.
6992         * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6993
6994 2010-04-19  Doug Evans  <dje@google.com>
6995
6996         * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6997         * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6998         (pipe_close): Ditto.
6999
7000 2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7001
7002         * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
7003
7004 2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7005
7006         * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
7007         type to void function.
7008
7009 2010-04-19  Stan Shebs  <stan@codesourcery.com>
7010             Vladimir Prus  <vladimir@codesourcery.com>
7011
7012         * tracepoint.c (tfind_1): Add missing newline, report exit from
7013         tfind mode as such.
7014         * target.c (update_current_target): Make default
7015         to_trace_find return -1.
7016
7017 2010-04-19  Mike Frysinger  <vapier@gentoo.org>
7018
7019         * objc-lang.c (find_methods): Move symname check up.
7020
7021 2010-04-19  Pedro Alves  <pedro@codesourcery.com>
7022
7023         * ada-lang.c (print_recreate_exception)
7024         <ex_catch_exception_unhandled>: It's "catch exception unhandled",
7025         not "catch unhandled".
7026
7027 2010-04-19  Pedro Alves  <pedro@codesourcery.com>
7028
7029         PR breakpoints/8554.
7030
7031         Implement `save-breakpoints'.
7032
7033         * breakpoint.c (save_cmdlist): New.
7034         (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
7035         to save_cmdlist.
7036         (print_recreate_catch_fork): New.
7037         (catch_fork_breakpoint_ops): Install it.
7038         (print_recreate_catch_vfork): New.
7039         (catch_vfork_breakpoint_ops): Install it.
7040         (print_recreate_catch_syscall): New.
7041         (catch_syscall_breakpoint_ops): Install it.
7042         (print_recreate_catch_exec): New.
7043         (catch_exec_breakpoint_ops): Install it.
7044         (print_recreate_exception_catchpoint): New.
7045         (gnu_v3_exception_catchpoint_ops): Install it.
7046         (save_breakpoints): New, based on tracepoint_save_command, but
7047         handle all breakpoint types.
7048         (save_breakpoints_command): New.
7049         (tracepoint_save_command): Rename to...
7050         (save_tracepoints_command): ... this, and reimplement using
7051         save_breakpoints.
7052         (save_command): New.
7053         (_initialize_breakpoints): Install the "save" command prefix.
7054         Install the "save breakpoints" command.  Make "save-tracepoints" a
7055         deprecated alias for "save tracepoints".
7056         * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
7057         * ada-lang.c (print_recreate_exception): New.
7058         (print_recreate_catch_exception): New.
7059         (catch_exception_breakpoint_ops): Install it.
7060         (print_recreate_catch_exception_unhandled): New.
7061         (catch_exception_unhandled_breakpoint_ops): Install it.
7062         (print_recreate_catch_assert): New.
7063         (catch_assert_breakpoint_ops): Install it.
7064
7065         * NEWS: Mention the new `save breakpoints' command.  Mention the
7066         new `save tracepoints' alias and that `save-tracepoints' is now
7067         deprecated.
7068
7069 2010-04-18  Pedro Alves  <pedro@codesourcery.com>
7070
7071         PR tui/9217
7072
7073         * tui/tui-out.c: Include cli-out.h.
7074         (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7075         (tui_begin, tui_end, tui_field_int, tui_field_skip)
7076         (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
7077         (tui_message, tui_wrap_hint, tui_flush): Delete forward
7078         declarations.
7079         (struct ui_out_data): Rename to...
7080         (struct tui_ui_out_data): ... this.  Remove `stream' and
7081         `suppress_output' fields, and inherit cli_ui_out_data.
7082         (tui_out_data): New typedef.
7083         (tui_ui_out_impl): Don't initialize fields staticaly.
7084         (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7085         (tui_begin, tui_end): Delete.
7086         (tui_field_int): Adjust to delegate most work to the base type.
7087         (tui_field_skip): Delete.
7088         (tui_field_string, tui_field_fmt): Adjust comment.  Adjust to
7089         delegate most work to the base type.
7090         (tui_spaces): Delete.
7091         (tui_text): Adjust to delegate most work to the base type.
7092         (tui_message): Delete.
7093         (tui_wrap_hint): Delete.
7094         (tui_flush): Delete.
7095         (out_field_fmt): Delete.
7096         (field_separator): Delete.
7097         (tui_out_new): Adjust to initialize the base type.
7098         (_initialize_tui_out): Initialize tui_ui_out_impl.
7099         * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
7100         cli_ui_out_data.
7101         (cli_out_data): Adjust.
7102         (cli_ui_out_impl): Make extern.
7103         (cli_table_header, cli_field_int, cli_field_skip): Use
7104         uo_field_string instead of cli_field_string.
7105         (cli_redirect): Adjust to use cli_out_data.
7106         (cli_out_data_ctor): New.
7107         (cli_out_new): Use it.
7108         * cli-out.h (struct ui_file): Remove forward declaration.
7109         (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
7110         (cli_ui_out_impl): Declare.
7111         (cli_out_data_ctor): Declare.
7112         * ui-out.c (struct ui_out) <data>: Change type to void pointer.
7113         (uo_field_string): No longer static.
7114         (ui_out_data): Change return type to void pointer.
7115         (ui_out_new): Change `data' parameter type to void pointer.
7116         * ui-out.h (struct ui_out_data): Don't forward declare.
7117         (ui_out_data): Change return type to void pointer.
7118         (ui_out_new): Change `data' parameter type to void pointer.
7119         (uo_field_string): Declare.
7120
7121 2010-04-17  Pedro Alves  <pedro@codesourcery.com>
7122
7123         * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
7124         instead of always false.
7125
7126 2010-04-17  H.J. Lu  <hongjiu.lu@intel.com>
7127
7128         PR corefiles/11511
7129         * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
7130         orig_rax.
7131
7132 2010-04-17  Pedro Alves  <pedro@codesourcery.com>
7133
7134         * breakpoint.c (watchpoints_triggered): Use
7135         is_hardware_watchpoint.
7136         (watchpoints_triggered): Ditto.
7137         (bpstat_check_location): Use is_watchpoint and
7138         is_hardware_watchpoint.
7139         (bpstat_check_watchpoint): Use is_watchpoint and
7140         is_hardware_watchpoint.
7141         (bpstat_stop_status): Fix comment.
7142         (user_settable_breakpoint): Use is_watchpoint.
7143         (hw_watchpoint_used_count): Use is_hardware_watchpoint.
7144         (disable_watchpoints_before_interactive_call_start): Use
7145         is_watchpoint.
7146         (enable_watchpoints_after_interactive_call_stop): Use
7147         is_watchpoint.
7148         (clear_command): Use is_watchpoint.
7149         (do_enable_breakpoint): Use is_watchpoint.
7150
7151 2010-04-16  Mike Frysinger  <vapier@gentoo.org>
7152
7153         * solib-frv.c (enable_break1_done): Delete.
7154         (enable_break2): Do not check enable_break1_done.  Move the
7155         enable_break2_done setting and call to
7156         remove_solib_event_breakpoints() to the end.  Return without
7157         warning when the contents of _dl_debug_addr are 0.
7158         (enable_break): Do not set enable_break1_done.
7159         (frv_clear_solib): Likewise.
7160
7161 2010-04-16  Kevin Buettner  <kevinb@redhat.com>
7162
7163         * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
7164         instead of an error if no PLT entry is found.  Return a
7165         potentially useful result.
7166         (m32c_m16c_pointer_to_address): Add code to search for function
7167         address when no .plt entry is found.
7168
7169 2010-04-16  Stan Shebs  <stan@codesourcery.com>
7170
7171         * tracepoint.c (trace_variable_command): Run a cleanup.
7172
7173 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7174
7175         * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
7176
7177 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7178
7179         Support for Windows OS Thread Information Block.
7180         * NEWS: Document new feature.
7181         * remote.c (PACKET_qGetTIBAddr): New enum element.
7182         (remote_get_tib_address): New function.
7183         (init_remote_ops): Set to_get_tib_address field
7184         to remote_get_tib_address.
7185         (_initialize_remote): Add add_packet_config_cmd
7186         for PACKET_qGetTIBAddr.
7187         * target.c (update_current_target): Set default value for
7188         new to_get_tib_address field.
7189         * target.h (target_ops): New field to_get_tib_address.
7190         (target_get_tib_address): New macro.
7191         * windows-nat.c (thread_info): Add thread_local_base field.
7192         (windows_add_thread): Add tlb argument of type 'void *'.
7193         (fake_create_process): Adapt windows_add_thread call.
7194         (get_windows_debug_event): Idem.
7195         (windows_get_tib_address): New function.
7196         (init_windows_ops): Set to_get_tib_address field
7197         to remote_get_tib_address.
7198         (_initialize_windows_nat): Replace info_w32_cmdlist
7199         initialization by a call to init_w32_command_list.
7200         (info_w32_command, info_w32_cmdlist): Removed from here...
7201         to windows-tdep.c file.
7202         * windows-tdep.h (info_w32_cmdlist): Declare.
7203         (init_w32_command_list): New external function
7204         declaration.
7205         * windows-tdep.c: Add several headers.
7206         (info_w32_cmdlist): to here, made global.
7207         (thread_information_32): New struct.
7208         (thread_information_64): New struct.
7209         (TIB_NAME): New char array.
7210         (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
7211         (maint_display_all_tib): New static variable.
7212         (windows_get_tlb_type): New function.
7213         (tlb_value_read, tlb_value_write): New functions.
7214         (tlb_value_funcs): New static struct.
7215         (tlb_make_value): New function.
7216         (display_one_tib): New function.
7217         (display_tib): New function.
7218         (show_maint_show_all_tib):New function.
7219         (info_w32_command): Moved from windows-nat.c.
7220         (init_w32_command_list): New function.
7221         (_initialize_windows_tdep): New function.
7222         New "maint set/show show-all-tib" command
7223         New "$_tlb" internal variable.
7224
7225 2010-04-16  Joel Brobecker  <brobecker@adacore.com>
7226
7227         * tui/tui-regs.c (tui_display_register): Add comment about
7228         a couple of casts.
7229         * tui/tui-stack.c (tui_show_locator_content): Ditto.
7230
7231 2010-04-15  Stan Shebs  <stan@codesourcery.com>
7232
7233         * frame.c: Include tracepoint.h.
7234         (get_current_frame): Allow a trace frame to be an alternate source
7235         of stack frame data.
7236         * tracepoint.c (tfind_1): Don't try to get current stack frame if
7237         it won't succeed.
7238
7239 2010-04-15  Pedro Alves  <pedro@codesourcery.com>
7240
7241         * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7242         flags.
7243         * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7244
7245 2010-04-15  Doug Evans  <dje@google.com>
7246
7247         * NEWS: Add entry for python program space support.
7248         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7249         (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7250         (py-progspace.o): New rule.
7251         * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7252         function.
7253         (find_pretty_printer_from_progspace): New function.
7254         (find_pretty_printer_from_gdb): New function.
7255         (find_pretty_printer): Rewrite.
7256         * python/py-progspace.c: New file.
7257         * python/python-internal.h (program_space): Add forward decl.
7258         (pspace_to_pspace_object, pspy_get_printers): Declare.
7259         (gdbpy_initialize_pspace): Declare.
7260         * python/python.c: #include "progspace.h".
7261         (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7262         (_initialize_python): Call gdbpy_initialize_pspace.
7263         (GdbMethods): Add current_progspace, progspaces.
7264
7265         Add -s option to source command.
7266         * NEWS: Document new option.
7267         * cli/cli-cmds.c (find_and_open_script): Add function comment.
7268         Delete from_tty and cleanupp args.  Split filep arg into file and
7269         full_pathp.  New arg search_path.
7270         (source_script_from_stream): New function.
7271         (source_script_with_search): New function.
7272         (source_script): Rewrite.
7273         (source_command): Parse "-s" option.
7274         (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7275         * python/python.c (source_python_script): Make file arg a const char *.
7276         Don't call fclose, leave for caller.
7277         * python/python.h (source_python_script): Update.
7278
7279 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
7280             Pedro Alves  <pedro@codesourcery.com>
7281
7282         Avoid rereading shared libraries that haven't changed.
7283
7284         * solib.c (free_so_symbols): New function, from ...
7285         (free_so): ... here.  Call it.
7286         (solib_read_symbols): Don't warn here if symbols have already been
7287         loaded.
7288         (solib_add): Warn here instead, if a pattern was specified.
7289         (reload_shared_libraries_1): New.
7290         (reload_shared_libraries): Rewrite to not fetch the library list.
7291
7292 2010-04-14  Doug Evans  <dje@google.com>
7293
7294         * source.c (openp): Strip DOS drive letter if present before
7295         concatenating string to search path.
7296
7297 2010-04-14  Pedro Alves  <pedro@codesourcery.com>
7298
7299         * objfiles.h (gdb_bfd_close_or_warn): Declare.
7300         * objfiles.c (gdb_bfd_close_or_warn): New.
7301         * corelow.c: Include objfiles.h
7302         (core_close): Use gdb_bfd_close_or_warn.
7303         * elfread.c (build_id_verify): Ditto.
7304         * exec.c (exec_close, exec_close_1): Ditto.
7305
7306 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
7307             Pedro Alves  <pedro@codesourcery.com>
7308
7309         Group errors for many missing shared libraries.
7310
7311         * solist.h (struct so_list): Remove from_tty.
7312         * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7313         (solib_map_sections): Take so_list argument.  Return 0 if we
7314         failed to open a BFD.  Add target sections here.
7315         (symbol_add_stub): Delete.
7316         (solib_read_symbols): Inline symbol_add_stub.  Use current flags,
7317         not from_tty copied from the so_list.  Don't warn a second time
7318         for a missing library.
7319         (update_solib_list): Don't save from_tty.  Use TRY_CATCH.  Do not
7320         add to the section table here.  Print out a single warning for all
7321         missing libraries.
7322         * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7323         flags.
7324
7325 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
7326
7327         * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7328         error/warning messages.  Capitalize and use complete sentences.
7329         (blpy_block_syms_iternext): Likewise.
7330         * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7331         * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7332         (frame_info_to_frame_object, frapy_read_var)
7333         (gdbpy_frame_stop_reason_string): Likewise.
7334         * python/py-lazy-string.c (stpy_convert_to_value)
7335         (gdbpy_create_lazy_string_object): Likewise.
7336         * python/py-objfile.c (objfpy_set_printers): Likewise.
7337         * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7338         * python/python.c (parameter_to_python): Likewise.
7339         * python/py-type.c (typy_range, typy_target): Likewise.
7340         * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7341         (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7342
7343
7344 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
7345
7346         PR python/11381
7347
7348         * python/py-prettyprint.c (pretty_print_one_value): Test for
7349         Py_None.
7350         (print_string_repr): Test for Py_None.  Set flags accordingly.
7351         Return value depending on return type.
7352         (print_children): Take a value indicating whether data was printed
7353         before this function was called.  Alter output accordingly.
7354         (apply_val_pretty_printer): Capture return value from
7355         print_string_repr and pass to print_children.
7356
7357 2010-04-13  Mark Kettenis  <kettenis@gnu.org>
7358
7359         PR corefiles/11481
7360         * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7361         register note sections.
7362         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7363         New variables.
7364         (i386_linux_init_abi): Install list of supported register note
7365         sections that matches the target description.
7366
7367 2010-04-13  Pedro Alves  <pedro@codesourcery.com>
7368
7369         * remote.c (remote_get_noisy_reply): Don't error out on empty
7370         replies.
7371         (remote_start_remote): Update and merge tracepoints and trace
7372         state variables as long as the target supports tracepoints.
7373         (remote_trace_init): Fix prototype.
7374         (remote_download_trace_state_variable): Validate reply.
7375         (remote_trace_set_readonly_regions): Fix prototype.
7376         (remote_trace_start): Fix prototype.  Check for empty reply.
7377         (remote_get_trace_status): Small cleanup.
7378         (remote_trace_stop): Fix prototype.  Check for empty reply.
7379         (remote_trace_find): Check for empty reply.
7380         (remote_save_trace_data): Validate reply.
7381         (remote_set_disconnected_tracing): Check for empty reply, and
7382         validate reply.
7383         (remote_set_circular_trace_buffer): Ditto.
7384
7385 2010-04-13  Pierre Muller  <muller@ics.u-strasbg.fr>
7386
7387         Suppress unused value warning during compilation.
7388         * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7389         calls to void.
7390         * tui/tui-stack.c (tui_show_locator_content): Likewise.
7391
7392 2010-04-12  Stan Shebs  <stan@codesourcery.com>
7393
7394         * tracepoint.c (tfile_xfer_partial): Check read result.
7395
7396 2010-04-12  Mike Frysinger  <vapier@gentoo.org>
7397
7398         * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7399         * remote-sim.c (gdbsim_files_info): Likewise.
7400
7401 2010-04-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
7402
7403         * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7404         * arm-linux-nat.c (arm_linux_vfp_register_count): New
7405         variable.
7406         (fetch_vfp_registers): New function to fetch VFP registers.
7407         (store_vfp_registers): New function to store VFP registers.
7408         (arm_linux_fetch_inferior_registers): Add support for VFP
7409         registers.
7410         (arm_linux_store_inferior_registers): Likewise.
7411         (arm_linux_read_description): Likewise.
7412         (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7413         until we need it.
7414
7415 2010-04-11  H.J. Lu  <hongjiu.lu@intel.com>
7416
7417         * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7418         tdep.
7419         (amd64_collect_xstateregset): Likewise.
7420
7421 2010-04-09  Stan Shebs  <stan@codesourcery.com>
7422
7423         * tracepoint.c (trace_status_mi): Report frames created.
7424
7425         * tracepoint.c (trace_dump_command): Include default-collect
7426         expressions.
7427
7428 2010-04-09  Ulrich Weigand  <uweigand@de.ibm.com>
7429
7430         * symtab.c (find_function_start_sal): Never return SAL pointing
7431         before function start address, even if line info is missing.
7432
7433 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
7434
7435         * NEWS: Mention tracepoints support.
7436
7437 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
7438
7439         * tracepoint.c (trace_status_mi): Report disconnected tracing and
7440         circular trace buffer statuses.
7441
7442 2010-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7443
7444         * config/djgpp/fnchange.lst: Fix typo in translations for
7445         symbol-without-target_section.exp and symbol-without-target_section.c.
7446
7447 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
7448
7449         * breakpoint.c (condition_command): Pass condition expression to
7450         set_breakpoint_condition stripped from breakpoint number.
7451
7452 2010-04-09  Phil Muldoon  <pmuldoon@redhat.com>
7453             Thiago Jung Bauermann  <bauerman@br.ibm.com>
7454             Tom Tromey  <tromey@redhat.com>
7455
7456         * breakpoint.c (condition_command): Simplify.  Move condition
7457         setting code to ...
7458         (set_breakpoint_condition): ... here.  New function.
7459         * breakpoint.h  (set_breakpoint_condition): Declare.
7460         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7461         (SUBDIR_PYTHON_SRCS): Likewise.
7462         (py-breakpoint.o): New rule.
7463         * python/py-breakpoint.c: New file.
7464         * python/python-internal.h (gdbpy_breakpoints)
7465         (gdbpy_initialize_breakpoints): Declare.
7466         (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7467
7468 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
7469
7470         * regformats/regdat.sh: Include server.h.  Don't include
7471         regcache.h.
7472
7473 2010-04-08  Stan Shebs  <stan@codesourcery.com>
7474             Pedro Alves  <pedro@codesourcery.com>
7475
7476         * tracepoint.h (struct trace_status): New fields disconnected_tracing
7477         and circular_buffer.
7478         (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7479         * tracepoint.c (trace_status_command): Display target's status for
7480         disconnected tracing and circular buffer.
7481         (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7482         query for non-disconnected-tracing case, remove the stop_tracing
7483         call.
7484         (tfile_open): Clear disconnected and circular buffer status.
7485         (trace_save): Save disconnected and circular buffer status.
7486         (parse_trace_status): Parse disconnected and circular buffer status,
7487         also recognize disconnected as a stop reason.
7488         * remote.c (remote_set_disconnected_tracing): Only set
7489         QTDisconnected if the remote end supports disconnected tracing.
7490         Warn otherwise, if trying to enable disconnected tracing.
7491         * infcmd.c (detach_command): Update disconnect_tracing call.
7492         * cli/cli-cmds.c (quit_command): Ditto.
7493
7494 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
7495
7496         * i387-tdep.c (i387_collect_xsave): Replace abort with
7497         internal_error.
7498
7499 2010-04-08  Stan Shebs  <stan@codesourcery.com>
7500
7501         * breakpoint.c (default_collect_info): New function.
7502         (breakpoints_info): Call it.
7503         (maintenance_info_breakpoints): Ditto.
7504         (tracepoints_info): Ditto.
7505
7506 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
7507
7508         * i387-tdep.c (i387_collect_xsave): Re-indent.
7509
7510 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
7511
7512         * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7513         if HAVE_PTRACE_GETFPXREGS is defined.
7514         (i386_linux_read_description): Set have_ptrace_getfpxregs and
7515         have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7516
7517         * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7518         (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7519         if .reg-xfp section doesn't exist.
7520         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7521
7522         * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7523
7524         * i386-tdep.c: Include "features/i386/i386-mmx.c".
7525         (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7526         (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional.  Set
7527         xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7528         (i386_gdbarch_init): Update comments.
7529         (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7530
7531         * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7532
7533         * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7534
7535         * features/Makefile (i386/i386-mmx-expedite): New.
7536         (i386/i386-mmx-linux-expedite): Likewise.
7537         ($(outdir)/i386/i386-mmx.dat): Likewise.
7538         ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7539
7540         * features/i386/i386-mmx-linux.c: New.
7541         * features/i386/i386-mmx-linux.xml: Likewise.
7542         * features/i386/i386-mmx.c: Likewise.
7543         * features/i386/i386-mmx.xml: Likewise.
7544         * regformats/i386/i386-mmx-linux.dat: Likewise.
7545         * regformats/i386/i386-mmx.dat: Likewise.
7546
7547         * features/Makefile (WHICH): Add i386/i386-mmx and
7548         i386/i386-mmx-linux.
7549
7550 2010-04-08  Doug Evans  <dje@google.com>
7551
7552         * source.c (openp): Skip $cdir in PATH.
7553
7554 2010-04-08  Phil Muldoon  <pmuldoon@redhat.com>
7555
7556         PR python/11417
7557         * python/py-lazy-string.c (stpy_convert_to_value): Check for
7558         a NULL address.
7559         (gdbpy_create_lazy_string_object): Allow strings with a NULL
7560         address and a zero length.
7561
7562 2010-04-08  Hui Zhu  <teawater@gmail.com>
7563
7564         * i386-tdep.c (i386_process_record): Add support for insn
7565         rdtsc.
7566
7567 2010-04-07  Doug Evans  <dje@google.com>
7568
7569         * python/python.c (source_python_script): Use ensure_python_env
7570         to prepare environment for script.
7571
7572 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7573
7574         * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7575         <sys/uio.h> and "i386-xstate.h".
7576         (PTRACE_GETREGSET): New.
7577         (PTRACE_SETREGSET): Likewise.
7578         (have_ptrace_getregset): Likewise.
7579         (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7580         registers.
7581         (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7582         registers.
7583         (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7584         (amd64_linux_store_inferior_registers): Likewise.
7585         (amd64_linux_read_description): Check and enable AVX target
7586         descriptions.
7587
7588         * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7589         and "features/i386/amd64-avx-linux.c".
7590         (amd64_linux_regset_sections): New.
7591         (amd64_linux_core_read_description): Check and enable AVX
7592         target description.
7593         (amd64_linux_init_abi): Set xsave_xcr0_offset.  Call
7594         set_gdbarch_core_regset_sections.
7595         (_initialize_amd64_linux_tdep): Call
7596         initialize_tdesc_amd64_avx_linux.
7597
7598         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7599         AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7600         (tdesc_amd64_avx_linux): New.
7601         (amd64_linux_update_xstateregset): Likewise.
7602
7603         * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7604         (amd64_ymm_names): New.
7605         (amd64_ymmh_names): Likewise.
7606         (amd64_register_name): Likewise.
7607         (amd64_supply_xstateregset): Likewise.
7608         (amd64_collect_xstateregset): Likewise.
7609         (amd64_supply_xsave): Likewise.
7610         (amd64_collect_xsave): Likewise.
7611         (AMD64_NUM_REGS): Removed.
7612         (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7613         %xmmN if AVX is available.
7614         (amd64_pseudo_register_name): Support pseudo YMM registers.
7615         (amd64_regset_from_core_section): Support .reg-xstate section.
7616         (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7617         and ymm0h_regnum.  Call set_gdbarch_register_name.
7618         (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7619
7620         * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7621         AMD64_YMM15H_REGNUM.
7622         (AMD64_NUM_REGS): New.
7623         (amd64_supply_xsave): Likewise.
7624         (amd64_collect_xsave): Likewise.
7625         (amd64_register_name): Removed.
7626         (amd64_register_type): Likewise.
7627
7628 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7629
7630         * i387-tdep.c: Include "i386-xstate.h".
7631         (XSAVE_XSTATE_BV_ADDR): New.
7632         (xsave_avxh_offset): Likewise.
7633         (XSAVE_AVXH_ADDR): Likewise.
7634         (i387_supply_xsave): Likewise.
7635         (i387_collect_xsave): Likewise.
7636
7637         * i387-tdep.h (I387_NUM_YMM_REGS): New.
7638         (I387_YMM0H_REGNUM): Likewise.
7639         (I387_YMMENDH_REGNUM): Likewise.
7640         (i387_supply_xsave): Likewise.
7641         (i387_collect_xsave): Likewise.
7642
7643 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7644
7645         * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7646         <sys/uio.h> and "i386-xstate.h".
7647         (PTRACE_GETREGSET): New.
7648         (PTRACE_SETREGSET): Likewise.
7649         (fetch_xstateregs): Likewise.
7650         (store_xstateregs): Likewise.
7651         (GETXSTATEREGS_SUPPLIES): Likewise.
7652         (regmap): Include 8 upper YMM registers.
7653         (i386_linux_fetch_inferior_registers): Support XSAVE extended
7654         state.
7655         (i386_linux_store_inferior_registers): Likewise.
7656         (i386_linux_read_description): Check and enable AVX target
7657         descriptions.
7658
7659         * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7660         "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7661         (i386_linux_regset_sections): Add ".reg-xstate".
7662         (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7663         (i386_linux_core_read_xcr0): New.
7664         (i386_linux_core_read_description): Check and enable AVX target
7665         description.
7666         (i386_linux_init_abi): Set xsave_xcr0_offset.
7667         (_initialize_i386_linux_tdep): Call
7668         initialize_tdesc_i386_avx_linux.
7669
7670         * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7671         I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7672         (i386_linux_core_read_xcr0): New.
7673         (tdesc_i386_avx_linux): Likewise.
7674         (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7675
7676         * i386-tdep.c: Include "i386-xstate.h" and
7677         "features/i386/i386-avx.c".
7678         (i386_ymm_names): New.
7679         (i386_ymmh_names): Likewise.
7680         (i386_ymmh_regnum_p): Likewise.
7681         (i386_ymm_regnum_p): Likewise.
7682         (i386_xmm_regnum_p): Likewise.
7683         (i386_register_name): Likewise.
7684         (i386_ymm_type): Likewise.
7685         (i386_supply_xstateregset): Likewise.
7686         (i386_collect_xstateregset): Likewise.
7687         (i386_sse_regnum_p): Removed.
7688         (i386_pseudo_register_name): Support pseudo YMM registers.
7689         (i386_pseudo_register_type): Likewise.
7690         (i386_pseudo_register_read): Likewise.
7691         (i386_pseudo_register_write): Likewise.
7692         (i386_dbx_reg_to_regnum): Return %ymmN register number for
7693         %xmmN if AVX is available.
7694         (i386_regset_from_core_section): Support .reg-xstate section.
7695         (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7696         (i386_process_record): Replace i386_sse_regnum_p with
7697         i386_xmm_regnum_p.
7698         (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7699         Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7700         (i386_gdbarch_init): Set xstateregset.  Set xsave_xcr0_offset.
7701         Call set_gdbarch_register_name.  Replace I386_SSE_NUM_REGS with
7702         I386_AVX_NUM_REGS.  Set ymmh_register_names, ymm0h_regnum and
7703         num_ymm_regs.  Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7704         Set ymm0_regnum.
7705         (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7706
7707         * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7708         xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7709         i386_ymm_type.
7710         (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7711         (I386_AVX_NUM_REGS): New.
7712         (i386_xmm_regnum_p): Likewise.
7713         (i386_ymm_regnum_p): Likewise.
7714         (i386_ymmh_regnum_p): Likewise.
7715
7716         * common/i386-xstate.h: New.
7717
7718 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7719
7720         * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7721
7722         * features/Makefile (WHICH): Add i386/i386-avx,
7723         i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7724         (i386/i386-avx-expedite): New.
7725         (i386/i386-avx-linux-expedite): Likewise.
7726         (i386/x86-64-avx-expedite):Likewise.
7727         (i386/x86-64-avx-linux-expedite): Likewise.
7728         ($(outdir)/i386/i386-avx.dat): New dependency.
7729         ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7730         ($(outdir)/i386/x86-avx-64.dat): Likewise.
7731         ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7732
7733         * features/i386/32bit-avx.xml: New.
7734         * features/i386/64bit-avx.xml: Likewise.
7735         * features/i386/i386-avx-linux.c: Likewise.
7736         * features/i386/i386-avx-linux.xml: Likewise.
7737         * features/i386/i386-avx.c: Likewise.
7738         * features/i386/i386-avx.xml: Likewise.
7739         * features/i386/x86-64-avx-linux.c: Likewise.
7740         * features/i386/x86-64-avx-linux.xml: Likewise.
7741         * features/i386/x86-64-avx.c: Likewise.
7742         * features/i386/x86-64-avx.xml: Likewise.
7743         * regformats/i386/i386-avx-linux.dat: Likewise.
7744         * regformats/i386/i386-avx.dat: Likewise.
7745         * regformats/i386/x86-64-avx-linux.dat: Likewise.
7746         * regformats/i386/x86-64-avx.dat: Likewise.
7747
7748 2010-04-07  Doug Evans  <dje@google.com>
7749
7750         * top.c (source_file_name): Make const char *.
7751         * top.h (source_file_name): Update.
7752         * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7753         const char *.
7754         (script_from_file): Change `file' arg to const char *.
7755         * cli/cli-script.h (script_from_file): Update.
7756
7757 2010-04-06  Doug Evans  <dje@google.com>
7758
7759         * cli/cli-cmds.c (source_command): Run cleanups.
7760
7761 2010-04-06  Stan Shebs  <stan@codesourcery.com>
7762
7763         * defs.h (char_ptr): Move typedef here from...
7764         * ada-lang.c (char_ptr): Remove.
7765         * charset.c (char_ptr): Remove.
7766         * tracepoint.h (struct uploaded_string): Remove.
7767         (struct uploaded_tp): Use vectors for string arrays.
7768         * tracepoint.c (trace_save): Use vectors of actions.
7769         (parse_tracepoint_definition): Ditto.
7770         (get_uploaded_tp): Clear vectors.
7771         * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7772         (next_cmd): Change to an int.
7773         (read_next_cmd): Use vector of command strings.
7774
7775 2010-04-06  Doug Evans  <dje@google.com>
7776
7777         * top.h (source_script, cd_command): Delete.
7778         * main.c: #include "cli/cli-cmds.h"
7779
7780 2010-04-06  Kevin Buettner  <kevinb@redhat.com>
7781
7782         * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7783         type in bytes, not bits.
7784
7785 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
7786
7787         * stabsread.c (define_symbol): Add support for char
7788         and string constants.
7789
7790 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
7791
7792         Remove remaining "%ll" uses.
7793         * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7794         hex_string call.
7795         * rs6000-nat.c (rs6000_ptrace64): Idem.
7796         * solib-pa64.c (pa64_current_sos): Idem.
7797         * solib-spu.c (spu_current_sos): Idem.
7798         * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7799         plongest call.
7800         * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7801         phex (VAR, 8) call.
7802         * sh64-tdep.c (sh64_show_media_regs): Idem.
7803
7804 2010-04-05  Stan Shebs  <stan@codesourcery.com>
7805
7806         * tracepoint.c: Include gdbcore.h.
7807         (tfile_xfer_partial): Return partial results, also try reading
7808         from executable.
7809         (tfile_has_all_memory): New function.
7810         (init_tfile_ops): Use it.
7811
7812 2010-04-05  Sergio Durigan Junior  <sergiodj@redhat.com>
7813
7814         PR gdb/10736:
7815         * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7816         the changes in data-directory.
7817         (init_sysinfo): Reload the syscall XML file if the data-directory
7818         has changed.
7819
7820 2010-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7821
7822         Code cleanup.
7823         * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7824
7825 2010-04-04  Stan Shebs  <stan@codesourcery.com>
7826             Nathan Sidwell  <nathan@codesourcery.com>
7827
7828         * breakpoint.c (breakpoint_1): Add filter argument, return number of
7829         breakpoints printed.
7830         (is_hardware_watchpoint): Make argument const.
7831         (is_watchpoint): Ditto.
7832         (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7833         use it everywhere.
7834         (breakpoints_info): Pass NULL to breakpoint_1.
7835         (maintenance_info_breakpoints): Ditto.
7836         (watchpoints_info): New function.
7837         (tracepoints_info): Use breakpoint_1 filter.
7838         (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7839         (_initialize_breakpoint): Make "info watchpoints" its own command.
7840         * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7841         * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7842
7843 2010-04-04  Stan Shebs  <stan@codesourcery.com>
7844
7845         * tracepoint.c (tfile_fetch_registers): Add fallback case.
7846
7847 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
7848
7849         * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7850         * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7851
7852 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
7853
7854         * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7855         * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7856
7857 2010-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7858
7859         * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7860         code form.
7861
7862 2010-04-02  Hui Zhu  <teawater@gmail.com>
7863
7864         * i386-tdep.c (OT_DQUAD): New enum.
7865         (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7866         SSE3, SSSE3 and SSE4.
7867
7868 2010-04-02  Hui Zhu  <teawater@gmail.com>
7869
7870         * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7871         "*addr = 0".
7872
7873 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
7874
7875         * tracepoint.c (trace_dump_actions): New, factored out from
7876         trace_dump_command, and adjusted to recurse into while-stepping's
7877         action list.
7878         (trace_dump_command): Use it.
7879
7880 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
7881
7882         * breakpoint.h (struct counted_command_line): Moved definition to
7883         breakpoint.c, and forward declare.
7884         (breakpoint_commands): Declare.
7885         * breakpoint.c (struct counted_command_line): Moved here.
7886         (breakpoint_commands): New.
7887         * tracepoint.c (encode_actions): Use breakpoint_commands.
7888         * remote.c (remote_download_tracepoint): Ditto.
7889
7890 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
7891
7892         * remote.c (remote_parse_stop_reply): Use hex_string instead
7893         of phex_nz for error.
7894
7895 2010-04-01  Stan Shebs  <stan@codesourcery.com>
7896             Nathan Sidwell  <nathan@codesourcery.com>
7897
7898         * tracepoint.h (enum actionline_type): Remove.
7899         (validate_actionline): Change return to void.
7900         * tracepoint.c (report_agent_reqs_errors): New function.
7901         (validate_actionline): Call it, change return to void, report errors
7902         more consistently.
7903         (collect_symbol): Call report_agent_reqs_errors.
7904         (encode_actions_1): Ditto.
7905         (encode_actions): Don't expect a result from validate_actionline.
7906
7907 2010-04-01  Stan Shebs  <stan@codesourcery.com>
7908
7909         * tracepoint.c (trace_start_command): Confirm if trace is running.
7910         (trace_stop_command): Error if trace not running.
7911
7912 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
7913
7914         * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7915         (AMD64_NUM_LOWER_BYTE_REGS): New.
7916         (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7917         (amd64_pseudo_register_write): Likewise.
7918         (amd64_init_abi): Set num_byte_regs to 20.
7919
7920 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
7921
7922         * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7923         (prev_breakpoint_count): New.
7924         (set_breakpoint_count): Adjust.
7925         (rbreak_start_breakpoint_count): New.
7926         (start_rbreak_breakpoints): Adjust.
7927         (end_rbreak_breakpoints): Adjust.
7928         (struct commands_info) <arg>: New field.
7929         (do_map_commands_command): Tweak output to include breakpoint spec
7930         range.
7931         (commands_command_1): Adjust.  Avoid setting an xfree cleanup if
7932         ARG was empty on entry.  Set INFO's arg.
7933         (create_breakpoint): Adjust.
7934
7935         * NEWS: Clarify `commands' changes.
7936
7937 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
7938
7939         * tracepoint.c: Include stack.h.
7940         (struct add_local_symbols_data): New.
7941         (do_collect_symbol): New.
7942         (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7943         iterate_over_block_local_vars.
7944         * stack.c (print_block_frame_locals): Rewrite as ...
7945         (iterate_over_block_locals): ... this.  Take a callback function
7946         pointer and generic data pointer, and call that instead of
7947         print_variable_and_value.
7948         (struct print_variable_and_value_data): New.
7949         (do_print_variable_and_value): New.
7950         (iterate_over_block_local_vars): New, abstracted out from
7951         print_frame_local_vars.
7952         (print_frame_local_vars): Rewrite using
7953         iterate_over_block_local_vars.
7954         (iterate_over_block_arg_vars): New, abstracted out from
7955         print_frame_arg_vars.
7956         (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7957         * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7958         (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7959
7960 2010-03-31  Richard Earnshaw  <rearnsha@arm.com>
7961
7962         * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7963         instructions.  Use the PC+4 if the base of the TBB or TBH is the
7964         PC register.
7965
7966 2010-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
7967
7968         Fix crash on reading wrong function declaration DWARF.
7969         * dwarf2read.c (read_subroutine_type): New variable void_type.
7970         Pre-fill all TYPE_FIELD_TYPEs.  Move nparams and iparams initialization
7971         more close to their use.
7972
7973 2010-03-31  Stan Shebs  <stan@codesourcery.com>
7974
7975         * breakpoint.c (tracepoint_save_command): Include variables,
7976         conditionals, tracepoint types, and default-collect.
7977         * tracepoint.c (save_trace_state_variables): New function.
7978         * tracepoint.h (save_trace_state_variables): Declare it.
7979
7980 2010-03-31  Pierre Muller  <muller@ics.u-strasbg.fr>
7981
7982         * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7983
7984 2010-03-30  Keith Seitz  <keiths@redhat.com>
7985
7986         * c-typeprint.c (c_type_print_args): Don't print "void"
7987         for java, regardless of whether it is TYPE_PROTOTYPED.
7988         Use the passed-in language instead of current_language.
7989         (c_type_print_varspec_suffix): Use current_language instead
7990         of assuming language_c.
7991         * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7992         any return type specifier from the physname.
7993
7994 2010-03-30  Pedro Alves  <pedro@codesourcery.com>
7995
7996         * tui/tui-interp.c (tui_is_toplevel): New.
7997         (tui_init): Set it.
7998         (tui_allowed_p): New.
7999         * tui/tui.c (tui_enable): Check if the TUI is allowed before
8000         enabling it.
8001         * tui/tui.h (tui_allowed_p): Declare.
8002
8003 2010-03-30  Ozkan Sezer  <sezeroz@gmail.com>
8004
8005         * serial.h: Include winsock2.h before windows.h.
8006
8007 2010-03-30  H.J. Lu  <hongjiu.lu@intel.com>
8008
8009         * NEWS: Mention xmlRegisters= in qSupported packet.
8010
8011         * i386-tdep.c: Include "remote.h".
8012         (_initialize_i386_tdep): Call register_remote_support_xml.
8013
8014         * remote.c (remote_support_xml): New.
8015         (register_remote_support_xml): Likewise.
8016         (remote_query_supported_append): Likewise.
8017         (remote_query_supported): Support remote_support_xml.
8018
8019         * remote.h (register_remote_support_xml): New.
8020
8021 2010-03-29  Stan Shebs  <stan@codesourcery.com>
8022
8023         * tracepoint.c (trace_find_line_command): Remove dead code.
8024
8025         * tracepoint.h (struct uploaded_string): New struct.
8026         (struct uploaded_tp): New fields for source strings.
8027         * breakpoint.c (this_utp, next_cmd): New globals.
8028         (read_uploaded_action): New function.
8029         (create_tracepoint_from_upload): Fill in more parts
8030         of a tracepoint.
8031         * tracepoint.c (encode_source_string): New function.
8032         (trace_save): Write out source strings, fix error checks.
8033         (parse_tracepoint_definition): Add source string parsing.
8034         * remote.c (PACKET_TracepointSource): New packet type.
8035         (remote_download_command_source): New function.
8036         (remote_download_tracepoint): Download source pieces also.
8037         (_initialize_remote): Add packet config command.
8038
8039         * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
8040         expression handler.
8041
8042         * tracepoint.c (start_tracing): Check tracepoints before sending
8043         commands to target, don't start if all tracepoints disabled.
8044
8045 2010-03-28  Pedro Alves  <pedro@codesourcery.com>
8046
8047         * cli/cli-script.c (process_next_line): Handle 'stepping'.
8048
8049 2010-03-26  Stan Shebs  <stan@codesourcery.com>
8050
8051         * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
8052
8053 2010-03-26  Tom Tromey  <tromey@redhat.com>
8054
8055         * breakpoint.c (commands_command_1): Duplicate 'arg'.
8056
8057 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
8058
8059         * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
8060         (skip_prologue_sal): Remove local definition.
8061         (resolve_sal_pc): Remove now unnecessary code.
8062         * linespec.c (minsym_found): Call skip_prologue_sal.
8063         * symtab.c (find_function_start_pc): Remove.
8064         (find_function_start_sal): Extract prologue skipping into ...
8065         (skip_prologue_sal): ... this new function.  Handle code both
8066         with and without debug info.  Respect SAL's explicit_pc and
8067         explicit_line flags.  Inline old find_function_start_pc.
8068         * symtab.h (find_function_start_pc): Remove.
8069         (skip_prologue_sal): Add prototype.
8070
8071 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
8072
8073         * dwarf2read.c (read_func_scope): Also scan specification DIEs
8074         for DW_TAG_imported_module children.
8075
8076 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
8077
8078         * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
8079         ignoring spurious DW_AT_name attributes for unnamed structs or unions.
8080         * completer.c (add_struct_fields): Fix inverted logic.
8081
8082 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
8083
8084         * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
8085
8086 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
8087
8088         * tracepoint.c (current_trace_status): Don't make sure error_desc
8089         is non-NULL here.
8090         (parse_trace_status): Release a previous error_desc string, and
8091         set it to NULL by default.  If stop reason is tracepoint_error,
8092         make sure error_desc is not left NULL.
8093
8094 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
8095
8096         * tracepoint.c (trace_save): Remove X from tracepoint error
8097         description.
8098
8099 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
8100
8101         * tracepoint.c (parse_trace_status): Don't allow plain strings in
8102         the terror description.  Don't expect an X prefix.
8103
8104 2010-03-25  Stan Shebs  <stan@codesourcery.com>
8105
8106         * tracepoint.h (trace_stop_reason): Add tracepoint_error.
8107         (struct trace_status): New field error_desc.
8108         * tracepoint.c (stop_reason_names): Add terror.
8109         (current_trace_status): Ensure non-NULL error description.
8110         (trace_status_command): Add error report.
8111         (trace_status_mi): Ditto.
8112         (trace_save): Add special case for error description.
8113         (parse_trace_status): Add case for errors.
8114
8115 2010-03-25  Keith Seitz  <keiths@redhat.com>
8116
8117         * dwarf2read.c (read_subroutine_type): If the compilation unit
8118         language is Java, mark any formal parameter named "this" as
8119         artificial (GCC/43521).
8120         (dwarf2_name): Add special handling for Java constructors.
8121
8122 2010-03-25  Tom Tromey  <tromey@redhat.com>
8123
8124         PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
8125         * infrun.c (handle_inferior_event): Change initialization of
8126         stop_stack_dummy.
8127         (handle_inferior_event): Change assignment to stop_stack_dummy.
8128         (normal_stop): Update use of stop_stack_dummy.
8129         (struct inferior_status) <stop_stack_dummy>: Change type.
8130         * inferior.h (stop_stack_dummy): Update.
8131         * infcmd.c (stop_stack_dummy): Change type.
8132         * infcall.c (cleanup_delete_std_terminate_breakpoint): New
8133         function.
8134         (call_function_by_hand): Call set_std_terminate_breakpoint.
8135         Rewrite std::terminate handling.
8136         * breakpoint.h (enum bptype) <bp_std_terminate,
8137         bp_std_terminate_master>: New.
8138         (enum stop_stack_kind): New.
8139         (struct bpstat_what) <call_dummy>: Change type.
8140         (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
8141         Declare.
8142         * breakpoint.c (create_std_terminate_master_breakpoint): New
8143         function.
8144         (update_breakpoints_after_exec): Handle bp_std_terminate_master.
8145         Call create_std_terminate_master_breakpoint.
8146         (print_it_typical): Handle new breakpoint kinds.
8147         (bpstat_stop_status): Handle bp_std_terminate_master.
8148         (bpstat_what): Correctly set call_dummy field.  Handle
8149         bp_std_terminate_master and bp_std_terminate.
8150         (print_one_breakpoint_location): Update.
8151         (allocate_bp_location): Update.
8152         (set_std_terminate_breakpoint): New function.
8153         (delete_std_terminate_breakpoint): Likewise.
8154         (create_thread_event_breakpoint): Update.
8155         (delete_command): Update.
8156         (breakpoint_re_set_one): Update.
8157         (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
8158
8159 2010-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8160
8161         * symfile.c (build_section_addr_info_from_bfd): New.
8162         (build_section_addr_info_from_objfile): Base it on
8163         build_section_addr_info_from_bfd.
8164         (addrs_section_compar, addrs_section_sort): New.
8165         (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
8166         addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs.  Build
8167         addrs_to_abfd_addrs.  Use it for recalculating ADDRS.
8168
8169 2010-03-24  Michael Snyder  <msnyder@localhost.localdomain>
8170
8171         * elfread.c (find_separate_debug_file_by_buildid):
8172         Remove unused local variable.
8173
8174 2010-03-24  Tom Tromey  <tromey@redhat.com>
8175
8176         PR breakpoints/9352:
8177         * NEWS: Mention changes to `commands' and `rbreak'.
8178         * symtab.c (do_end_rbreak_breakpoints): New function.
8179         (rbreak_command): Call start_rbreak_breakpoints; arrange to call
8180         end_rbreak_breakpoints.
8181         * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
8182         (set_breakpoint_count): Likewise.  Clear last_was_multi.
8183         (multi_start, multi_end, last_was_multi): New globals.
8184         (start_rbreak_breakpoints, end_rbreak_breakpoints): New
8185         functions.
8186         (struct commands_info): New
8187         (do_map_commands_command): New function.
8188         (commands_command_1): New function.
8189         (commands_command): Use it.
8190         (commands_from_control_command): Likewise.
8191         (do_delete_breakpoint): New function.
8192         (delete_command): Use it.
8193         (map_breakpoint_numbers): Add 'data' argument.  Pass to callback.
8194         (do_map_disable_breakpoint): New function.
8195         (disable_command): Use it.
8196         (do_map_enable_breakpoint): New function.
8197         (enable_command): Use it.
8198         (enable_once_breakpoint): Add argument.
8199         (enable_once_command): Update.
8200         (enable_delete_breakpoint): Add argument.
8201         (enable_delete_command): Update.
8202         (break_command_really): Set last_was_multi when needed.
8203         (check_tracepoint_command): Fix formatting.
8204         (validate_commands_for_breakpoint): New function.
8205         (breakpoint_set_commands): Use it.
8206         (tracepoint_save_command): Update.
8207         * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
8208         Declare.
8209
8210 2010-03-24  Tom Tromey  <tromey@redhat.com>
8211
8212         * breakpoint.h (struct counted_command_line): New struct.
8213         (struct breakpoint) <commands>: Change type.
8214         (struct bpstats) <commands>: Change type.
8215         <commands_left>: New field.
8216         * breakpoint.c (alloc_counted_command_line): New function.
8217         (incref_counted_command_line): Likewise.
8218         (decref_counted_command_line): Likewise.
8219         (do_cleanup_counted_command_line): Likewise.
8220         (make_cleanup_decref_counted_command_line): Likewise.
8221         (breakpoint_set_commands): Use decref_counted_command_line and
8222         alloc_counted_command_line.
8223         (commands_command): Don't error if breakpoint commands are
8224         executing.
8225         (commands_from_control_command): Likewise.
8226         (bpstat_free): Update.
8227         (bpstat_copy): Likewise.
8228         (bpstat_clear_actions): Likewise.
8229         (bpstat_do_actions_1): Likewise.
8230         (bpstat_stop_status): Likewise.
8231         (print_one_breakpoint_location): Likewise.
8232         (delete_breakpoint): Likewise.
8233         (bpstat_alloc): Initialize new field.
8234         (tracepoint_save_command): Update.
8235         * tracepoint.c (encode_actions): Update.
8236         (trace_dump_command): Update.
8237
8238 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
8239
8240         * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8241         * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8242         (read_structure_type): For RealView, set TYPE_STUB on structures with
8243         no byte size and no children.
8244         (read_subroutine_type): Mark functions as prototyped by default.
8245         * symtab.c (producer_is_realview): New function.
8246         * symtab.h (expand_line_sal): Fix declaration formatting.
8247         (producer_is_realview): Declare.
8248
8249 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
8250
8251         * arm-tdep.c (skip_prologue_function): New function.
8252         (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8253         (thumb_analyze_prologue): Document return value.  Recognize more
8254         Thumb instructions, skippable calls, and some Thumb-2 instructions.
8255         Add debug output.
8256         (arm_skip_prologue): Remove call dummy check.  Check the prologue
8257         for non-GNU compilers.
8258         (arm_instruction_changes_pc): New function.
8259         (arm_analyze_prologue): New function, broken out from
8260         arm_scan_prologue.  Recognize more ARM instructions and skippable
8261         calls.  Update comments.  Handle NULL cache.  Return the address
8262         of the first unrecognized instruction.  Do not skip past other
8263         instructions which change control flow.  Add debug output.
8264         (arm_scan_prologue): Use arm_analyze_prologue.
8265         (ARM_PC_32): Delete.
8266         (shifted_reg_val): Simplify ARM_PC_32 check.
8267
8268 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8269
8270         * tracepoint.c (tvariables_info_1): Actually compute
8271         the number of rows in the result.
8272
8273 2010-03-24  Pedro Alves  <pedro@codesourcery.com>
8274
8275         * remote.c (crc32): Constify `buf' parameter.
8276         (remote_verify_memory): New, abstracted out from...
8277         (compare_sections_command): ... this.  Remove hardcoded target
8278         checks.
8279         (init_remote_ops): Install remote_verify_memory.
8280         * target.c (target_verify_memory): New.
8281         * target.h (struct target_ops) <to_verify_memory>: New field.
8282         (target_verify_memory): Declare.
8283
8284 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8285
8286         Implement -trace-save.
8287
8288         * mi-cmds.h (mi_cmds_trace_save): Declare.
8289         * mi-cmds.c (mi_cmds): Register -trace-save.
8290         * mi/mi-main.c (mi_cmd_trace_save): New.
8291         * remote.c (remote_save_trace_data): Take const parameter.
8292         * target.h (struct target_ops::to_save_trace_data): Take
8293         const parameter.
8294         * target.c (update_current_target): Adjust to the above.
8295         * tracepoint.c (trave_save): New, extracted from
8296         (trace_save_command): ...this.
8297         (tfile_trace_find): Remove message that is unnecessary now
8298         that 'tfind' reports found frame.
8299         * tracepoint.h (trace_save): Declare.
8300
8301 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8302
8303         Implement -trace-find.
8304
8305         * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8306         * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8307         * mi/mi-main.c (mi_cmd_trace_find): New.
8308         * target.h (struct target_ops): Document to_trace_find.
8309         * tracepoint.h (tfind_1): Declare.
8310         * tracepoint.c (finish_tfind_command): Rename to...
8311         (tfind_1): ...this.
8312         * remote.c (remote_trace_find): Return -1 if target say
8313         there's no frame.  Improve error diagnostics.
8314
8315 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8316
8317         -trace-define-variable and -trace-list-variables.
8318
8319         * tracepoint.c (create_trace_state_variable): Make
8320         private copy of name, as opposed to assuming the
8321         pointer lives forever.
8322         (tvariables_info_1): New.
8323         (tvariables_info): Use the above.
8324         * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8325         Declare.
8326         * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8327         and -trace-list-variables.
8328         * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8329         (mi_cmd_trace_list_variables): New.
8330         * mi/mi-main.c (mi_cmd_trace_define_variable)
8331         (mi_cmd_trace_list_variables): New.
8332
8333 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8334
8335         Implement -break-passcount.
8336
8337         * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8338         * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8339         * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8340
8341 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8342
8343         -trace-start/-trace-end/-trace-status.
8344
8345         * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8346         and -trace-stop.
8347         * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8348         (mi_cmd_trace_stop): Declare.
8349         * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8350         (mi_cmd_trace_stop): New.
8351         * tracepoint.c (start_tracing): New, extracted from...
8352         (trace_start_command): ...this.
8353         (trace_status_mi): New.
8354         * tracepoint.h (struct trace_status): Document
8355         stopping_tracepoint.
8356         (start_tracing, stop_tracing, trace_status_mi): Declare.
8357
8358 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8359
8360         Implement creating tracepoints with -break-insert.
8361
8362         * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8363         to mean that tracepoint should be created.
8364
8365 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8366
8367         * breakpoint.c (check_no_tracepoint_commands): Use
8368         current spelling of 'teval'.
8369
8370 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8371
8372         Unify actions and commands
8373
8374         * defs.h (read_command_lines, read_command_lines_1): New
8375         parameters validator and closure.
8376         * tracepoint.h (struct action_line): Remove.
8377         * breakpoint.h (struct breakpoint): Remove the 'actions'
8378         field.
8379         * defs.h (enum command_control_type): New value
8380         while_stepping_control.
8381         (struct command_line): Add comments.
8382         * breakpoint.c (breakoint_is_tracepoint): New.
8383         (breakpoint_set_commands): For tracepoints,
8384         verify the commands are permissible.
8385         (check_tracepoint_commands): New.
8386         (commands_command): Require that each new line is validated using
8387         check_tracepoint_command, if we set commands for a tracepoint.
8388         (create_tracepoint_from_upload): Likewise.
8389         (print_one_breakpoint_location): Remove the code to print
8390         actions specifically.
8391         (tracepoint_save_command): Relay to print_command_lines.
8392         * cli/cli-script.c (process_next_line): New parameters validator
8393         and closure. Handle 'while-stepping'. Call validator if not null.
8394         (read_command_lines, read_command_lines1): Likewise.
8395         (recurse_read_control_structure): New parameters validator and
8396         closure. Handle while_stepping_control.
8397         (print_command_lines): Handle while-stepping.
8398         (get_command_line, define_command, document_command): Adjust.
8399         * remote.c (remote_download_tracepoint): Adjust.
8400         * tracepoint.c (make_cleanup_free_actions, read_actions)
8401         (free_actions, do_free_actions_cleanup): Remove.
8402         (trace_actions_command): Use read_command_lines.
8403         (validate_actionline): Use error in one place.
8404         (encode_actions_1): New, extracted from...
8405         (encode_actions): ...this. Also use cleanups for exception
8406         safety.
8407         (trace_dump_command): Adjust.
8408         * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8409         it's tracepoint.
8410
8411 2010-03-23  Mike Frysinger  <vapier@gentoo.org>
8412
8413         * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8414
8415 2010-03-22  Stan Shebs  <stan@codesourcery.com>
8416
8417         * value.c (value_static_field): Be lazy about the field's value.
8418
8419 2010-03-22  Reid Kleckner  <reid@kleckner.net>
8420
8421         PR gdb/11094
8422         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8423         bp_jit_event.
8424         (disable_breakpoints_in_shlibs): Likewise.
8425
8426 2010-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
8427
8428         * dwarf2read.c (partial_die_parent_scope): Work around buggy
8429         GCC 4.1 debug info generation (GCC PR c++/28460).
8430         (determine_prefix): Likewise.
8431
8432 2010-03-20  Daniel Jacobowitz  <dan@codesourcery.com>
8433
8434         * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8435         get_current_arch.
8436         * tui/tui-layout.c (extract_display_start_addr): Likewise.
8437
8438 2010-03-19  Stan Shebs  <stan@codesourcery.com>
8439
8440         * ax-gdb.c (gen_fetch): Handle bool.
8441         (gen_usual_unary): Ditto.
8442         (gen_cast): Ditto.
8443         (gen_equal): New function.
8444         (gen_less): New function.
8445         (gen_expr_binop_rest): Call them, also return integer type from
8446         logical operations.
8447         (gen_expr): Ditto.
8448
8449 2010-03-19  Tom Tromey  <tromey@redhat.com>
8450
8451         * jv-lang.c (jv_dynamics_objfile_data_key)
8452         (jv_type_objfile_data_key): New globals.
8453         (class_symtab): Move earlier.
8454         (jv_per_objfile_free): New function.
8455         (get_dynamics_objfile): Call set_objfile_data.  Add 'gdbarch'
8456         parameter.
8457         Remove ancient #if 1.
8458         (add_class_symbol): Remove redundant declaration.
8459         (java_lookup_class): Use alloc_type, not alloc_type_arch.
8460         (java_link_class_type): Mark as static.  Update.
8461         (jv_clear_object_type): New function.
8462         (set_java_object_type): Likewise.
8463         (get_java_object_type): Use set_java_object_type.
8464         (is_object_type): Likewise.
8465         (_initialize_java_language): Register new objfile keys.
8466         (get_java_class_symtab): Add 'gdbarch' parameter.
8467         (add_class_symtab_symbol): Update.
8468         (type_from_class): Update.
8469
8470 2010-03-19  Stan Shebs  <stan@codesourcery.com>
8471
8472         * ax-general.c (ax_const_l): Fix a sizing bug.
8473
8474 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
8475
8476         GDB 7.1 released.
8477
8478 2010-03-18  Stan Shebs  <stan@codesourcery.com>
8479             Pedro Alves  <pedro@codesourcery.com>
8480
8481         * target.h (struct target_ops): New method
8482         to_set_circular_trace_buffer.
8483         (target_set_circular_trace_buffer): New macro.
8484         * target.c (update_current_target): Add
8485         to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8486         default behavior.
8487         * remote.c (remote_set_circular_trace_buffer): New function.
8488         (init_remote_ops): Add it to vector.
8489         * tracepoint.h (struct trace_status): New field traceframes_created,
8490         change buffer_size and buffer_free to int.
8491         * tracepoint.c (circular_trace_buffer): New global.
8492         (start_tracing): Send values of disconnected tracing and circular
8493         trace buffer settings.
8494         (set_circular_trace_buffer): New function.
8495         (parse_trace_state): Handle total space and frames created.
8496         (trace_status_command): Display total space and total frames
8497         created.
8498         (trace_save): Write out new status values.
8499         (parse_trace_status): Set traceframe_count, traceframes_created,
8500         buffer_free and buffer_size to -1 by default.
8501         (_initialize_tracepoint): New setshow for circular-trace-buffer.
8502         * NEWS: Mention the circular trace buffer option.
8503
8504 2010-03-18  Tom Tromey  <tromey@redhat.com>
8505
8506         * infcmd.c (finish_command_continuation): Wrap print_return_value
8507         in TRY_CATCH.
8508
8509 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
8510
8511         * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8512         DIE has a name before creating the associated partial symbol.
8513         (read_func_scope): Emit a complaint if the subprogram does not
8514         have a name or when we can't extract the subprogram PC bounds.
8515
8516 2010-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
8517
8518         * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8519         instead of selected frame architecture.
8520
8521 2010-03-18  Pedro Alves  <pedro@codesourcery.com>
8522
8523         * infcmd.c (until_command): Use ERROR_NO_INFERIOR.  Ensure there's
8524         a valid selected thread, and that it is not running.
8525         (advance_command): Ditto.
8526         (finish_command): Ditto.
8527
8528 2010-03-17 Stan Shebs  <stan@codesourcery.com>
8529
8530         * ax-gdb.c (require_rvalue): Disallow non-scalars.
8531
8532         * infcall.c: Include tracepoint.h.
8533         (call_function_by_hand): Disallow calls in tfind mode.
8534         * infcmd.c: Include tracepoint.h.
8535         (ensure_not_tfind_mode): New function.
8536         (continue_1): Call it.
8537         (step_1) Ditto.
8538         (jump_command): Ditto.
8539         (signal_command): Ditto.
8540         (advance_command): Ditto.
8541         (until_command): Ditto.
8542         (finish_command): Ditto.
8543         * tracepoint.h (disconnect_or_stop_tracing): Declare.
8544
8545         * ax-gdb.h (struct axs_value): New field optimized_out.
8546         (gen_trace_for_var): Add gdbarch argument.
8547         * ax-gdb.c (gen_trace_static_fields): New function.
8548         (gen_traced_pop): Call it, add gdbarch argument.
8549         (gen_trace_for_expr): Update call to it.
8550         (gen_trace_for_var): Ditto, and report optimized-out variables.
8551         (gen_struct_ref_recursive): Check for optimized-out value.
8552         (gen_struct_elt_for_reference): Ditto.
8553         (gen_static_field): Pass gdbarch instead of expression, assume
8554         optimization if field not found.
8555         (gen_var_ref): Set the optimized_out flag.
8556         (gen_expr): Error on optimized-out variable.
8557         * tracepoint.c (collect_symbol): Handle struct-valued vars as
8558         expressions, skip optimized-out variables with computed locations.
8559         * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8560         erroring out if location expression missing.
8561         (loclist_tracepoint_var_ref): Don't error out here.
8562
8563 2010-03-17  Tom Tromey  <tromey@redhat.com>
8564
8565         * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8566         DWARF data is available.
8567
8568 2010-03-17  Daniel Jacobowitz  <dan@codesourcery.com>
8569
8570         * symfile.c (generic_load): Reset breakpoints after loading.
8571
8572 2010-03-17  Tom Tromey  <tromey@redhat.com>
8573
8574         * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8575
8576 2010-03-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8577
8578         * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8579         create_breakpoint call, adjust the parameters.
8580
8581 2010-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8582             Chandru <chandru@in.ibm.com>
8583
8584         * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8585         * valarith.c (value_subscripted_rvalue): Suppress error if
8586         TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8587
8588 2010-03-16  Holger Hans Peter Freyther  <zecke@selfish.org>
8589
8590         * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8591
8592 2010-03-16  Joel Brobecker  <brobecker@adacore.com>
8593
8594         * ada-tasks.c (task_command_1): Check that the task ptid is valid
8595         before doing the associated thread switch.
8596
8597 2010-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
8598
8599         * MAINTAINERS: Update my email address.
8600
8601 2010-03-16  Vladimir Prus  <vladimir@codesourcery.com>
8602
8603         Simplify MI breakpoint setting.
8604
8605         * breakpoint.c (break_command_really): Make nonstatic and
8606         rename to...
8607         (create_breakpoint): ...this. Rename prior function by this name
8608         to...
8609         (create_breakpoint_sal): ...this.
8610         (create_breakpoints): Rename to...
8611         (create_breakpoints_sal): ...this.
8612         (set_breakpoint): Remove.
8613         * breakpoint.h: Adjust to above changes.
8614         * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8615
8616 2010-03-15 Stan Shebs  <stan@codesourcery.com>
8617
8618         * ax-gdb.c: Include cp-support.h.
8619         (find_field): Remove.
8620         (gen_primitive_field): New function.
8621         (gen_struct_ref_recursive): New function.
8622         (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8623         of find_field.
8624         (gen_static_field): New function.
8625         (gen_struct_elt_for_reference): New.
8626         (gen_namespace_elt): New.
8627         (gen_maybe_namespace_elt): New.
8628         (gen_aggregate_elt_ref): New.
8629         (gen_expr): Add OP_SCOPE, display opcode name in error message.
8630
8631 2010-03-15  Tom Tromey  <tromey@redhat.com>
8632
8633         * dwarf2read.c (die_needs_namespace): Also return 0 for
8634         DW_TAG_subprogram.
8635
8636 2010-03-15  Sami Wagiaalla  <swagiaal@redhat.com>
8637
8638         PR c++/7936:
8639         * cp-support.h: Added char *declaration element to using_direct
8640         data struct.
8641         (cp_add_using): Added char *declaration argument.
8642         (cp_add_using_directive): Ditto.
8643         (cp_lookup_symbol_imports): made extern.
8644         * cp-namespace.c: Updated with the above changes.
8645         * dwarf2read.c (read_import_statement): Ditto.
8646         (read_namespace): Ditto.
8647         (read_import_statement): Support import declarations.
8648         * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8649         declarations.
8650         Added support for 'declaration_only' search.
8651         (cp_lookup_symbol_namespace): Attempt to search for the name as
8652         is before consideration of imports.
8653         * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8654         search at every block level search.
8655         Now takes language argument.
8656         (lookup_symbol_aux): Updated.
8657
8658 2010-03-15  Tom Tromey  <tromey@redhat.com>
8659
8660         * c-exp.y (name_not_typename): Add 'operator' clause.
8661
8662 2010-03-15  Ralf Corsepius  <ralf.corsepius@rtems.org>  (tiny change)
8663
8664         * configure.ac: Exit if ${gdb_target_obs}" is not set.
8665         * configure: Regenerate.
8666
8667 2010-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
8668
8669         * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8670         and ".sdynbss".  Update the comment.
8671
8672 2010-03-15  Jie Zhang  <jie@codesourcery.com>
8673
8674         * MAINTAINERS: Update my email address.
8675
8676 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
8677
8678         * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8679
8680 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
8681
8682         * charset.c [USE_WIN32API]: Include <windows.h>.
8683          (_initialize_charset): Correct type of w32_host_default_charset.
8684
8685 2010-03-14  Pedro Alves  <pedro@codesourcery.com>
8686
8687         * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8688
8689 2010-03-12  Tom Tromey  <tromey@redhat.com>
8690
8691         PR c++/9708:
8692         * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8693         in a lexical block does not need a namespace.
8694         (new_symbol) <DW_TAG_variable>: Put extern variables on
8695         list_in_scope in all cases.
8696
8697 2010-03-12 Stan Shebs  <stan@codesourcery.com>
8698
8699         * ax-gdb.c (gen_expr): Add shift expressions.
8700         (gen_expr_binop_rest): Ditto.
8701
8702 2010-03-12  Sami Wagiaalla  <swagiaal@redhat.com>
8703
8704         * buildsym.c (finish_block): Reset using_directives pointer
8705         after block initialization.
8706
8707 2010-03-12  H.J. Lu  <hongjiu.lu@intel.com>
8708
8709         * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8710         * i386-tdep.c (i386_word_names): Likewise.
8711
8712 2010-03-12  Pedro Alves  <pedro@codesourcery.com>
8713
8714         * target.c (memory_xfer_partial): Don't use the stack cache if
8715         inspecting trace frames.
8716         * tracepoint.c (finish_tfind_command): Invalidate the target
8717         dcache.
8718
8719 2010-03-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8720
8721         * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8722         for the PIC displacement, print also the displacement value.
8723         (svr4_exec_displacement):  Print DISPLACEMENT if INFO_VERBOSE.
8724
8725 2010-03-10  Kevin Buettner  <kevinb@redhat.com>
8726
8727         * remote-mips.c (close_ports, mips_initialize_cleanups)
8728         (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8729         (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8730         (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8731         (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8732         (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8733         (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8734         comments describing each of these functions.
8735         (mips_enter_debug, mips_exit_debug, common_open)
8736         (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8737         blank line after the comment describing the function.
8738
8739 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8740
8741         * solib-svr4.c (svr4_exec_displacement): Return now success, new
8742         parameter displacementp.  Update comment.
8743         (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8744         element exists.  Return if svr4_exec_displacement was not successful.
8745         Update comment.
8746
8747 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8748             Daniel Jacobowitz  <dan@codesourcery.com>
8749
8750         * solib-svr4.c (read_program_header): Support type == -1 to read
8751         all program headers.
8752         (read_program_headers_from_bfd): New function.
8753         (svr4_static_exec_displacement): Remove and move the comment ...
8754         (svr4_exec_displacement): ... here.  Remove variable found.  New
8755         variable displacement.  Check also DYNAMIC.  Verify DISPLACEMENT
8756         alignment for ELF targets.  Compare target vs. exec_bfd PHDRs for ELF
8757         targets using read_program_headers_from_bfd.  Remove the call of
8758         svr4_static_exec_displacement.
8759
8760 2010-03-10  Tom Tromey  <tromey@redhat.com>
8761
8762         * dwarf2read.c (struct pubnames_header): Remove.
8763         (_PUBNAMES_HEADER): Remove.
8764         (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8765         (struct aranges_header): Remove.
8766         (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8767         (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8768         (PUBNAMES_SECTION): Remove.
8769         (ARANGES_SECTION): Remove.
8770         (dwarf2_locate_sections): Don't handle pubnames or aranges.
8771         (dwarf2_build_psymtabs): Remove dead code.
8772         (dwarf2_build_psymtabs_easy): Remove.
8773
8774 2010-03-10  Tom Tromey  <tromey@redhat.com>
8775
8776         * elfread.c (elf_symfile_read): Don't call
8777         dwarf2_build_frame_info.
8778         * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8779         (struct dwarf2_per_objfile) <objfile>: New field.
8780         (dwarf2_has_info): Now idempotent.  Set objfile field.
8781         (dwarf2_read_section): Check and set readin field.  Call
8782         posix_madvise.
8783         (dwarf2_build_psymtabs): Don't read all sections.
8784         (read_type_comp_unit_head): Read types section.
8785         (create_debug_types_hash_table): Likewise.
8786         (init_cu_die_reader): Add asserts.
8787         (process_type_comp_unit): Add assert.
8788         (dwarf2_build_psymtabs_hard): Read info section.
8789         (load_partial_comp_unit): Add assert.
8790         (create_all_comp_units): Read info section.
8791         (load_full_comp_unit): Likewise.
8792         (dwarf2_ranges_read): Read ranges section.
8793         (dwarf2_record_block_ranges): Add assert.
8794         (dwarf2_read_abbrevs): Read abbrev section.
8795         (read_indirect_string): Read str section.
8796         (dwarf_decode_line_header): Read line section.
8797         (read_signatured_type_at_offset): Read types section.
8798         (dwarf_decode_macros): Read macinfo section.
8799         (dwarf2_symbol_mark_computed): Read loc section.
8800         * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8801         dwarf2_build_frame_info.
8802         (dwarf2_build_frame_info): Unconditionally set
8803         dwarf2_frame_objfile_data on the objfile.
8804         * configure.ac: Check for posix_madvise.
8805         * config.in, configure: Rebuild.
8806
8807 2010-03-10  Tom Tromey  <tromey@redhat.com>
8808
8809         * xcoffread.c (xcoff_start_psymtab): Update.
8810         (xcoff_end_psymtab): Update.
8811         * psymtab.c (allocate_psymtab): Remove dead code.
8812         * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8813         void*.
8814         * mdebugread.c (parse_partial_symbols): Update.
8815         (new_psymtab): Likewise.
8816         * dwarf2read.c (process_psymtab_comp_unit): Update.
8817         (psymtab_to_symtab_1): Update.
8818         * dbxread.c (start_psymtab): Update.
8819         (end_psymtab): Likewise.
8820
8821 2010-03-10  Tom Tromey  <tromey@redhat.com>
8822
8823         * xcoffread.c: Include psymtab.h.
8824         (xcoff_sym_fns): Update.
8825         * symtab.h (struct partial_symbol): Remove.
8826         (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8827         (struct partial_symtab): Remove.
8828         (PSYMTAB_TO_SYMTAB): Remove.
8829         (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8830         (find_pc_sect_psymtab): Remove.
8831         (find_pc_sect_symtab_via_partial): Declare.
8832         (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8833         (find_main_psymtab): Remove.
8834         (find_main_filename): Declare.
8835         (fixup_psymbol_section): Remove.
8836         (fixup_section): Declare.
8837         * symtab.c: Include psymtab.h.
8838         (lookup_symtab): Use lookup_symtab method.
8839         (lookup_partial_symtab): Remove.
8840         (find_pc_sect_psymtab_closer): Remove.
8841         (find_pc_sect_psymtab): Remove.
8842         (find_pc_sect_symtab_via_partial): New function.
8843         (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8844         (fixup_section): No longer static.
8845         (fixup_psymbol_section): Remove.
8846         (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8847         (lookup_global_symbol_from_objfile): Likewise.
8848         (lookup_symbol_aux_psymtabs): Remove.
8849         (lookup_symbol_aux_quick): New function.
8850         (lookup_symbol_global): Use lookup_symbol_aux_quick.
8851         (lookup_partial_symbol): Remove.
8852         (basic_lookup_transparent_type_quick): New function.
8853         (basic_lookup_transparent_type): Use it.
8854         (find_main_psymtab): Remove.
8855         (find_main_filename): New function.
8856         (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8857         (find_line_symtab): Use expand_symtabs_with_filename method.
8858         (output_partial_symbol_filename): New function.
8859         (sources_info): Use map_partial_symbol_filenames.
8860         (struct search_symbols_data): New type.
8861         (search_symbols_file_matches): New function.
8862         (search_symbols_name_matches): Likewise.
8863         (search_symbols): Use expand_symtabs_matching method.
8864         (struct add_name_data): Rename from add_macro_name_data.
8865         (add_macro_name): Update.
8866         (add_partial_symbol_name): New function.
8867         (default_make_symbol_completion_list): Use
8868         map_partial_symbol_names.
8869         (struct add_partial_symbol_name): New type.
8870         (maybe_add_partial_symtab_filename): New function.
8871         (make_source_files_completion_list): Use
8872         map_partial_symbol_filenames.
8873         (expand_line_sal): Use expand_symtabs_with_filename method.
8874         * symmisc.c: Include psymtab.h.
8875         (print_objfile_statistics): Use print_stats method.
8876         (dump_objfile): Use dump method.
8877         (dump_psymtab, maintenance_print_psymbols)
8878         (maintenance_info_psymtabs, maintenance_check_symtabs)
8879         (extend_psymbol_list): Remove.
8880         * symfile.h (struct quick_symbol_functions): New struct.
8881         (struct sym_fns) <qf>: New field.
8882         (sort_pst_symbols): Remove.
8883         (increment_reading_symtab): Declare.
8884         * symfile.c: Include psymtab.h.
8885         (compare_psymbols, sort_pst_symbols): Remove.
8886         (psymtab_to_symtab): Remove.
8887         (increment_reading_symtab): New function.
8888         (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8889         method.
8890         (set_initial_language): Use find_main_filename.
8891         (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8892         (free_named_symtabs): Remove unused code.
8893         (start_psymtab_common, add_psymbol_to_bcache)
8894         (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8895         Remove.
8896         * stack.c: Include psymtab.h, symfile.h.
8897         (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8898         * source.h (psymtab_to_fullname): Don't declare.
8899         * source.c: Include psymtab.h.
8900         (select_source_symtab): Use find_last_source_symtab method.
8901         (forget_cached_source_info): Use forget_cached_source_info
8902         method.
8903         (find_and_open_source): No longer static.
8904         (psymtab_to_fullname): Remove.
8905         * somread.c: Include psymtab.h.
8906         (som_sym_fns): Update.
8907         * psympriv.h: New file.
8908         * psymtab.h: New file.
8909         * psymtab.c: New file.
8910         * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8911         (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8912         * objfiles.c: Include psymtab.h.
8913         (objfile_relocate1): Use relocate method.
8914         (objfile_has_partial_symbols): Use has_symbols method.
8915         * mipsread.c: Include psymtab.h.
8916         (ecoff_sym_fns): Update.
8917         * mi/mi-cmd-file.c: Include psymtab.h.
8918         (print_partial_file_name): New function.
8919         (mi_cmd_file_list_exec_source_files): Use
8920         map_partial_symbol_filenames.
8921         * mdebugread.c: Include psympriv.h.
8922         * machoread.c: Include psympriv.h.
8923         (macho_sym_fns): Update.
8924         * m2-exp.y (yylex): Use lookup_symtab.
8925         * elfread.c: Include psympriv.h.
8926         (elf_sym_fns): Update.
8927         * dwarf2read.c: Include psympriv.h.
8928         * dbxread.c: Include psympriv.h.
8929         (aout_sym_fns): Update.
8930         * cp-support.c: Include psymtab.h.
8931         (read_in_psymtabs): Remove.
8932         (make_symbol_overload_list_qualified): Use
8933         expand_symtabs_for_function method.
8934         * coffread.c: Include psympriv.h.
8935         (coff_sym_fns): Update.
8936         * blockframe.c: Include psymtab.h.
8937         (find_pc_partial_function): Use find_pc_sect_symtab method.
8938         * ada-lang.h (ada_update_initial_language): Update.
8939         * ada-lang.c: Include psymtab.h.
8940         (ada_update_initial_language): Remove 'main_pst' argument.
8941         (ada_lookup_partial_symbol): Remove.
8942         (struct ada_psym_data): New type.
8943         (ada_add_psyms): New function.
8944         (ada_add_non_local_symbols): Use map_ada_symtabs method.
8945         (struct add_partial_datum): New type.
8946         (ada_add_partial_symbol_completions): New function.
8947         (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8948         (ada_exception_support_info_sniffer): Update.
8949         * Makefile.in (SFILES): Add psymtab.c.
8950         (COMMON_OBS): Add psymtab.o.
8951         (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8952
8953 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
8954
8955         * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8956
8957 2010-03-10  Sami Wagiaalla  <swagiaal@redhat.com>
8958
8959         PR C++/11236:
8960         * cp-namespace.c (cp_add_using): Deleted.
8961         (cp_add_using_directive): Use obstack allocations.
8962         Merged the function cp_add_using into this one.
8963         Added 'struct obstack *' argument.
8964         (cp_scan_for_anonymous_namespaces): Updated.
8965         * cp-support.h: Updated.
8966         * dwarf2read.c (read_import_statement): Updated.
8967         (read_namespace): Updated.
8968
8969 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
8970
8971         * windows-nat.c (cygwin_conv_path): Remove old macro.
8972
8973 2010-03-10  Pedro Alves  <pedro@codesourcery.com>
8974
8975         * breakpoint.c (condition_command): Handle watchpoint conditions.
8976         (is_hardware_watchpoint): Add comment.
8977         (is_watchpoint): New.
8978         (update_watchpoint): Don't reparse the watchpoint's condition
8979         unless necessary.
8980         (WP_IGNORE): New.
8981         (watchpoint_check): Use it.
8982         (bpstat_check_watchpoint): Handle it.
8983         (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8984         conditions in a frame where it makes sense.
8985         (watch_command_1): Store the innermost block of the condition
8986         expression.
8987         (delete_breakpoint): Delete the watchpoint condition expression.
8988         * breakpoint.h (struct bp_location) <cond>: Update comment.
8989         (struct breakpoint): New field `cond_exp_valid_block'.
8990
8991 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
8992
8993         Adjust handling of Ada DIEs after dwarf2_physname patch.
8994         * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8995
8996 2010-03-09  Christopher Faylor  <me+cygwin@cgf.cx>
8997             Pierre Muller  <muller@ics.u-strasbg.fr>
8998
8999         * windows-nat.c (cygwin_conv_path): Redefine to properly convert
9000         from/to posix/win32.
9001         (windows_make_so): Use non-Cygwin 1.7 specific function.
9002         (windows_create_inferior): Make sure that cygallargs points to
9003         original args in non Cygwin 1.7. case.
9004
9005 2010-03-09  Michael Snyder  <msnyder@vmware.com>
9006
9007         * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
9008         after target_read_memory to get host byte order.
9009         (i386_process_record): Ditto.
9010
9011 2010-03-09  Keith Seitz  <keiths@redhat.com>
9012
9013         Based on work from Daniel Jacobowitz  <dan@codesourcery.com>
9014         * c-typeprint.c (cp_type_print_method_args): For non-static methods,
9015         print out const or volatile qualifiers, too.
9016         (c_type_print_args): Add parameters show_artificial and language.
9017         Skip artificial parameters when requested.
9018         Use the appropriate language printer.
9019         (c_type_print_varspec): Tell c_type_print_args to skip artificial
9020         parameters and pass language_c.
9021         * dwarf2read.c (die_list): New file global.
9022         (struct partial_die_info): Update comments for name field.
9023         (pdi_needs_namespace): Renamed to ...
9024         (die_needs_namespace): ... this. Rewrite.
9025         (dwarf2_linkage_name): Remove.
9026         (add_partial_symbol): Do not predicate the call to
9027         partial_die_full_name based on pdi_needs_namespace.
9028         Remove call to cp_check_possible_namespace_symbols and associated
9029         outdated comments.
9030         (guess_structure_name): Do not inspect child subprogram DIEs.
9031         (dwarf2_fullname): Update comments.
9032         Use die_needs_namespace to assist in computing the name.
9033         (read_func_scope): Use dwarf2_name to get the DIE's name.
9034         Use dwarf2_physname to get the "linkage name" of the DIE.
9035         (dwarf2_add_member_field): Use dwarf2_physname instead of
9036         dwarf2_linkage_name.
9037         (read_structure_type): For structs and classes, set TYPE_NAME, too.
9038         (determine_class): Remove.
9039         (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
9040         except Ada.
9041         (new_symbol): Unconditionally call dwarf2_name.
9042         Compute the "linkage name" using dwarf2_physname.
9043         Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
9044         When determining to scan for anonymous C++ namespaces, ignore
9045         the linkage name.
9046         (dwarf2_physname): New function.
9047         (dwarf2_full_name): Move content to new function and call
9048         that.
9049         (dwarf2_compute_name): "New" function.
9050         (_initialize_dwarf2_read): Initialize die_list.
9051         * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
9052         physname.
9053         (gnu_v3_print_method_ptr): Use the physname for virtual methods
9054         without a demangled name.
9055         Print out type information for non-virtual methods.
9056         * linespec.c (decode_line_1): Force ANY string using "::" (or
9057         "." for java) to use decode_compound, and clean up any stray quoting.
9058         If we found a file symtab, re-evaluate whether the remainder is_quoted.
9059         (decode_compound): Stop consuming at an open parenthesis.
9060         Keep template parameters.
9061         Keep any overload information.
9062         Keep keywords like "const".
9063         Remove paren_pointer.
9064         Move is_quoted check from set_flags to here.
9065         Remove #if 0 code from 2000. Ten years is long enough.
9066         (find_method): Before comparing symbol names, canonicalize the string
9067         from the user.
9068         If a specific overload is requested, find it. Otherwise throw an error.
9069         (find_method_overload_end): New function.
9070         (set_flags): Remove.
9071         (decode_compound): Assume that parentheses are matched.
9072         It's a lot easier.
9073         * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
9074         to cplus_demangle.
9075         * linespec.c (decode_line_1): Keep important keywords like
9076         "const" and "volatile".
9077         * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
9078         * typeprint.h (c_type_print_args): Add declaration.
9079         * ui-file.c (do_ui_file_obsavestring): New function.
9080         (ui_file_obsavestring): New function.
9081         * ui-file.h (ui_file_obsavestring): Add declaration.
9082         * valops.c (find_overload_match): Resolve the object to
9083         a non-pointer type.
9084         If the object is a data member, search the object for the member
9085         and return with staticp set.
9086         Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
9087         Do not attempt to extract a function name from non-function types.
9088         If the extracted function name and the original name are the same,
9089         we don't have a C++ method.
9090
9091         From Jan Kratochvil  <jan.kratochvil@redhat.com>:
9092         * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
9093
9094         * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
9095         and arguments from symbol lookups.
9096         * ax-gdb.c (gen_expr): Likewise.
9097         * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
9098         cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
9099         lookup_possible_namespace_symbol): Likewise.
9100         * cp-support.c (read_in_psymtabs): Likewise.
9101         * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
9102         * language.h (la_lookup_symbol_nonlocal): Likewise.
9103         * scm-valprint.c (scm_inferior_print): Likewise.
9104         * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
9105         * solib-svr.c (elf_lookup_lib): Likewise.
9106         * solib.c (show_auto_solib_add): Likewise.
9107         * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
9108         * symmisc.c (maintenance_check_symtabs): Likewise.
9109         * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
9110         lookup_symbol_aux_local, lookup_symbol_aux_block,
9111         lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
9112         lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
9113         lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
9114         basic_lookup_transparent_type, find_main_psymtab,
9115         lookup_block_symbol): Likewise.
9116         * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
9117         lookup_symbol_global, lookup_symbol_aux_block,
9118         lookup_symbol_partial_symbol, lookup_block_symbol,
9119         lookup_global_symbol, value_maybe_namespace_elt): Likewise.
9120
9121 2010-03-09  Pierre Muller  <muller@ics.u-strasbg.fr>
9122
9123         * python/python-internal.h: Include symtab.h.
9124
9125 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
9126             Pierre Muller  <muller@ics.u-strasbg.fr>
9127
9128         * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
9129         * p-valprint.c (pascal_val_print): Remove undeed block and fix
9130         indentation.
9131
9132 2010-03-08  Tom Tromey  <tromey@redhat.com>
9133
9134         * breakpoint.c (breakpoint_1): Add "QUIT".
9135
9136 2010-03-08  Daniel Jacobowitz  <dan@codesourcery.com>
9137             Pedro Alves  <pedro@codesourcery.com>
9138
9139         * solib.c (solib_find): Replace extension if
9140         solib_symbols_extension is set in the target gdbarch.
9141         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
9142         solib_symbols_extension to "sym".
9143         * gdbarch.sh (solib_symbols_extension): New variable.
9144         (pstring): New function.
9145         * gdbarch.h, gdbarch.c: Regenerate.
9146
9147 2010-03-08  Tom Tromey  <tromey@redhat.com>
9148
9149         PR cli/9591:
9150         * NEWS: Update.
9151         * utils.c: Include main.h.
9152         (fputs_maybe_filtered): Don't paginate if `batch_flag'.
9153         (defaulted_query): Use default answer if `batch_flag'.
9154         * main.h (batch_flag): Declare.
9155         * main.c (batch_flag): New global.
9156         (captured_main): Remove 'batch'.  Update.
9157
9158 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
9159
9160         From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
9161         and Kevin Buettner:
9162
9163         * remote-mips.c (rockhopper_ops): New target_ops struct.
9164         (MON_ROCKHOPPER): New mips_monitor_type.
9165         (read_hex_value): New function.
9166         (mips_request): Send 8-byte values with a 'T' packet.  Read the
9167         packet argument as a string and use read_hex_value to parse it.
9168         (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
9169         (rockhopper_open): New function.
9170         (mips_wait): Read the PC, FP and SP fields as strings.  Use
9171         read_hex_value to parse them and mips_set_register to commit them.
9172         (mips_set_register): New function.
9173         (mips_fetch_registers): Do not cast register value to "unsigned"
9174         when reading a MON_ROCKHOPPER 't' packet.  Use mips_set_register.
9175         (mips_store_registers): Use a 'T' packet to set registers when
9176         using MON_ROCKHOPPER.
9177         (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
9178         and expect the total to be printed before the entry address.
9179         (_initialize_remote_mips): Initialize and add rockhopper_ops.
9180
9181 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
9182
9183         * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
9184         Change return value to int.  Store value fetched in location
9185         addressed by `val'.  Use function's return value as success
9186         or failure indicator.  Adjust all callers.
9187
9188 2010-03-08  Pierre Muller  <muller@ics.u-strasbg.fr>
9189
9190         * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
9191
9192 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9193             Hui Zhu  <teawater@gmail.com>
9194
9195         * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
9196         tmp_to_stopped_data_address.
9197         (record_open): Reset tmp_to_stopped_by_watchpoint and
9198         tmp_to_stopped_data_address.
9199         * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9200         to_stopped_data_address.
9201
9202 2010-03-08  Hui Zhu  <teawater@gmail.com>
9203
9204         * i386-tdep.c (i386_process_record): Initialize regnum.
9205
9206 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9207
9208         * symfile.c (addr_info_make_relative): New variable sect_name, use it.
9209         Do not warn on ".gnu.liblist" and ".gnu.conflict".
9210
9211 2010-03-08  Joel Brobecker  <brobecker@adacore.com>
9212
9213         Memory error when reading wrong core file.
9214         * solib-svr4.c (solib_svr4_r_map): catch and print all exception
9215         errors while reading the inferior memory, and return zero if
9216         an exception was raised.
9217
9218 2010-03-07  Michael Snyder  <msnyder@vmware.com>
9219
9220         * record.c (record_restore): Rename tmpu8 to rectype.
9221
9222         * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9223         tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9224
9225         (i386_record_push): Rename local tmpulongest to addr.
9226
9227         (i386_process_record): Rename local tmpulongest to addr.
9228
9229         Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9230         addr64.
9231
9232         Rename local variable tmpu8 to opcode8 and regnum.
9233
9234 2010-03-07  Joel Brobecker  <brobecker@adacore.com>
9235
9236         * remote.c (remote_get_ada_task_ptid): New function.
9237         (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
9238
9239 2010-03-06  Christopher Faylor  <me+cygwin@cgf.cx>
9240
9241         * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9242         block.  Define helper macros to reduce ifdefs in code.
9243         (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9244         size.  Call unadorned GetModuleFileNameEx rather than
9245         GetModuleFileNameEx*.
9246         (windows_make_so): Use __PMAX to denote maximum buffer size and
9247         cygwin_buf_t for buffer type.  Use GetSystemDirectory{W,A} as
9248         appropriate.
9249         (get_image_name): Use __PMAX to denote maximum buffer size.
9250         (handle_load_dll): Likewise.
9251         (windows_pid_to_exec_file): Likewise.
9252         (windows_create_inferior): Add many accommodations for older Cygwin and
9253         non-Cygwin.
9254         (bad_GetModuleFileNameExW): Control inclusion of this function based on
9255         __USEWIDE conditional.
9256         (bad_GetModuleFileNameExA): Likewise.
9257         (_initialize_loadable): Just use real function names without the dyn_
9258         part since they are defined earlier.
9259
9260 2010-03-05  Corinna Vinschen  <vinschen@redhat.com>
9261             Tom Tromey  <tromey@redhat.com>
9262
9263         * utils.c (host_char_to_target): Add 'gdbarch' argument.
9264         (parse_escape): Likewise.
9265         * python/py-utils.c (unicode_to_target_string): Update.
9266         (unicode_to_target_python_string): Update.
9267         (target_string_to_unicode): Update.
9268         * printcmd.c (printf_command): Update.
9269         * p-exp.y (yylex): Update.
9270         * objc-exp.y (yylex): Update.
9271         * mi/mi-parse.c: Include charset.h.
9272         (mi_parse_escape): New function.
9273         (mi_parse_argv): Use it.
9274         * jv-exp.y (yylex): Update.
9275         * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9276         function.
9277         (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9278         * gdbarch.sh (auto_charset, auto_wide_charset): New.
9279         * gdbarch.c: Rebuild.
9280         * gdbarch.h: Rebuild.
9281         * defs.h (parse_escape): Update.
9282         * cli/cli-setshow.c: Include arch-utils.h.
9283         (do_setshow_command): Update.
9284         * cli/cli-cmds.c (echo_command): Update.
9285         * charset.h (target_charset, target_wide_charset): Update.
9286         * charset.c: Include arch-utils.h.
9287         (target_charset_name): Default to "auto".
9288         (target_wide_charset_name): Likewise.
9289         (show_target_charset_name): Handle "auto".
9290         (show_target_wide_charset_name): Likewise.
9291         (be_le_arch): New global.
9292         (set_be_le_names): Add 'gdbarch' argument.
9293         (validate): Likewise.  Don't call set_be_le_names.
9294         (set_charset_sfunc, set_host_charset_sfunc)
9295         (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9296         Update.
9297         (target_charset): Add 'gdbarch' argument.
9298         (target_wide_charset): Likewise.  Remove 'byte_order' argument.
9299         (auto_target_charset_name): New global.
9300         (default_auto_charset, default_auto_wide_charset): New functions.
9301         (_initialize_charset): Set auto_target_charset_name.  Allow "auto"
9302         for target charsets.  Copy result of nl_langinfo.  Use GetACP if
9303         USE_WIN32API.
9304         * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9305         remove 'byte_order' argument.  Update.
9306         (classify_type): Likewise.
9307         (c_emit_char): Update.
9308         (c_printchar): Update.
9309         (c_printstr): Update.
9310         (c_get_string): Update.
9311         (evaluate_subexp_c): Update.
9312         * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9313         Declare.
9314         * python/python.c (gdbpy_target_charset): New function.
9315         (gdbpy_target_wide_charset): Likewise.
9316         (GdbMethods): Update.
9317         * NEWS: Update.
9318
9319 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
9320
9321         * symfile.c (build_section_addr_info_from_objfile): Do not mask
9322         off high address bits.
9323
9324 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
9325
9326         * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9327         address as UnsignedLongLong, not LongLong.
9328
9329 2010-03-05  Kevin Buettner  <kevinb@redhat.com>
9330             Pedro Alves  <pedro@codesourcery.com>
9331
9332         * remote-mips.c (gdbthread.h): Include.
9333         (remote_mips_ptid): Declare.
9334         (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9335         (common_open): Set inferior_ptid, add it as an inferior, and
9336         as a thread too.  Delete FIXME comment regarding start_remote().
9337         (mips_close): Invoke generic_mourn_inferior().
9338         (mips_kill): Make sure that target_mourn_inferior is invoked.
9339         (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9340         it's now invoked from mips_close().
9341         (mips_load): Don't null out inferior_ptid.  Don't call
9342         clear_symtab_users().
9343         (mips_thread_alive, mips_pid_to_str): New functions.
9344         (_initialize_remote_mips): Initialize remote_mips_ptid.  Initialize
9345         to_thread_alive and to_pid_to_str operations.
9346
9347 2010-03-04  Tom Tromey  <tromey@redhat.com>
9348
9349         * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9350         in DWARF 3 and later.
9351         (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9352
9353 2010-03-04  Keith Seitz  <keiths@redhat.com>
9354
9355         * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9356         If the filename portion of the linespec was quoted, recheck the
9357         remainder for additional quoting.
9358         (locate_first_half): Skip over completer chars, too.
9359
9360 2010-03-04  Tom Tromey  <tromey@redhat.com>
9361
9362         * printcmd.c (printf_command): Pass dummy argument to
9363         printf_filtered.
9364
9365 2010-03-04  Doug Evans  <dje@google.com>
9366
9367         * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9368         unwound_fp.
9369
9370         * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9371
9372 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
9373
9374         * breakpoint.c (update_watchpoint): Create a sentinel location if
9375         the software watchpoint isn't watching any memory.
9376         (breakpoint_address_bits): Skip dummy software watchpoint locations.
9377
9378 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
9379
9380         * utils.c (fputs_maybe_filtered): Check if there's already a top
9381         level interpreter before dereferencing it.  If there isn't one,
9382         don't paginate either.
9383
9384 2010-03-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
9385
9386         * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9387         the state right when single stepping.
9388         (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9389         Get the next PC along with the instruction state.
9390         (thumb_get_next_pc): Remove.
9391         (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9392
9393 2010-03-04  Hui Zhu  <teawater@gmail.com>
9394
9395         * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9396
9397 2010-03-03  Pedro Alves  <pedro@codesourcery.com>
9398
9399         * utils.c (fputs_maybe_filtered): Always disable pagination if the
9400         top level interpreter is MI.
9401
9402 2010-03-03 Stan Shebs  <stan@codesourcery.com>
9403
9404         * remote.c (remote_download_tracepoint): Iterate over locations.
9405         * tracepoint.c (validate_actionline): Ditto.
9406         (encode_actions): Add location argument.
9407         (trace_dump_command): Check all locations to see if stepping
9408         frame.
9409
9410 2010-03-03  H.J. Lu  <hongjiu.lu@intel.com>
9411             Eli Zaretskii  <eliz@gnu.org>
9412
9413         * NEWS: Add X86 general purpose registers section.
9414
9415 2010-03-03  Tom Tromey  <tromey@redhat.com>
9416
9417         PR mi/11098:
9418         * varobj.c (install_new_value): Handle case where new print_value
9419         is NULL.
9420
9421 2010-03-03  Dainis Jonitis  <jonitis@gmail.com>
9422
9423         PR gdb/11345:
9424         * printcmd.c (printf_command): Print end of format string using
9425         printf_filtered.
9426
9427 2010-03-02  Tom Tromey  <tromey@redhat.com>
9428
9429         * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9430         * defs.h (read_command_lines_1): Add missing 'void'.
9431         * cli/cli-script.c (recurse_read_control_structure): Add missing
9432         'void'.
9433         (read_next_line): Likewise.
9434         (read_command_lines_1): Likewise.
9435
9436 2010-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
9437
9438         * spu-tdep.c (spu_analyze_prologue): Track instruction to
9439         store backchain as part of prologue.
9440
9441 2010-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
9442
9443         * progspace.c (update_address_spaces): Update inferior address spaces
9444         also.
9445
9446 2010-03-02  Doug Evans  <dje@google.com>
9447
9448         * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9449         lowpc,highpc args to addrmap_set_empty.
9450
9451 2010-03-02  H.J. Lu  <hongjiu.lu@intel.com>
9452
9453         * amd64-tdep.c (amd64_byte_names): New.
9454         (amd64_word_names): Likewise.
9455         (amd64_dword_names): Likewise.
9456         (amd64_pseudo_register_name): Likewise.
9457         (amd64_pseudo_register_read): Likewise.
9458         (amd64_pseudo_register_write): Likewise.
9459         (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9460         and num_mmx_regs.  Call set_gdbarch_pseudo_register_read,
9461         set_gdbarch_pseudo_register_write and
9462         set_tdesc_pseudo_register_name.  Don't call
9463         set_gdbarch_num_pseudo_regs.  Don't set mm0_regnum.
9464
9465         * i386-tdep.c (i386_num_mmx_regs): Removed.
9466         (i386_num_pseudo_regs): Likewise.
9467         (i386_byte_names): New.
9468         (i386_word_names): Likewise.
9469         (i386_byte_regnum_p): Likewise.
9470         (i386_word_regnum_p): Likewise.
9471         (i386_mmx_regnum_p): Updated.
9472         (i386_pseudo_register_name): Make it global.  Handle byte and
9473         word pseudo-registers.
9474         (i386_pseudo_register_read): Likewise.
9475         (i386_pseudo_register_write): Likewise.
9476         (i386_pseudo_register_type): Handle byte, word and dword
9477         pseudo-registers
9478         (i386_register_reggroup_p): Don't include pseudo
9479         registers, except for MXX, in any register groups.  Don't
9480         include pseudo byte, word, dword registers in general_reggroup.
9481         (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9482         num_dword_regs, al_regnum, ax_regnum and eax_regnum.  Put MMX
9483         pseudo-registers after word pseudo-registers.  Call
9484         set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9485
9486         * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9487         al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9488         eax_regnum.
9489         (i386_byte_regnum_p): New.
9490         (i386_word_regnum_p): Likewise.
9491         (i386_dword_regnum_p): Likewise.
9492         (i386_pseudo_register_name): Likewise.
9493         (i386_pseudo_register_read): Likewise.
9494         (i386_pseudo_register_write): Likewise.
9495
9496 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
9497
9498         * target-descriptions.c (tdesc_type): Remove
9499         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9500         (tdesc_predefined_types): Likewise.
9501         (tdesc_gdb_type): Likewise.  Pass NULL to append_flags_type_flag
9502         if flag name is empty.
9503         (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9504
9505         * features/i386/32bit-core.xml: Define i386_eflags.
9506         * features/i386/64bit-core.xml: Likewise.
9507
9508         * features/i386/32bit-sse.xml: Define i386_mxcsr.
9509         * features/i386/64bit-sse.xml: Likewise.
9510
9511         * features/i386/amd64-linux.c: Regenerated.
9512         * features/i386/amd64.c: Likewise.
9513         * features/i386/i386-linux.c: Likewise.
9514         * features/i386/i386.c: Likewise.
9515
9516 2010-03-01  Daniel Jacobowitz  <dan@codesourcery.com>
9517
9518         * gdbtypes.c (append_composite_type_field_raw): New.
9519         (append_composite_type_field_aligned): Use the new function.
9520         * gdbtypes.h (append_composite_type_field_raw): Declare.
9521         * target-descriptions.c (struct tdesc_type_field): Add start and end.
9522         (struct tdesc_type_flag): New type.
9523         (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9524         kind.  Add size to u.u.  Add u.f for flags.
9525         (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9526         (tdesc_free_type): Likewise.
9527         (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9528         (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9529         (tdesc_add_bitfield, tdesc_add_flag): New.
9530         * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9531         (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9532         * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9533         current_type.  Add current_type_size and current_type_is_flags.
9534         (tdesc_start_union): Clear the new fields.
9535         (tdesc_start_struct, tdesc_start_flags): New.
9536         (tdesc_start_field): Handle struct fields, including bitfields.
9537         (field_attributes): Make type optional.  Add start and end.
9538         (union_children): Rename to struct_union_children.
9539         (union_attributes): Rename to struct_union_attributes.  Add optional
9540         size.
9541         (flags_attributes): New.
9542         (feature_children): Add struct and flags.
9543         * features/gdb-target.dtd: Add flags and struct to features.
9544         Make field type optional.  Add field start and end.
9545
9546 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
9547
9548         * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9549         (amd64_linux_read_description): Likewise.
9550         (_initialize_amd64_linux_nat): Set to_read_description to
9551         amd64_linux_read_description.
9552
9553         * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9554         (amd64_linux_register_name): Removed.
9555         (amd64_linux_register_type): Likewise.
9556         (amd64_linux_core_read_description): New.
9557         (amd64_linux_init_abi): Set target description to
9558         tdesc_amd64_linux if needed.  Support orig_rax in target
9559         description.  Don't call set_gdbarch_register_name nor
9560         set_gdbarch_register_type.  Call
9561         set_gdbarch_core_read_description.
9562         (_initialize_amd64_linux_tdep): Call
9563         initialize_tdesc_amd64_linux.
9564
9565         * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9566
9567         * amd64-tdep.c:  Include "features/i386/amd64.c".
9568         (amd64_register_names): Removed.
9569         (amd64_register_name): Likewise.
9570         (amd64_register_type): Likewise.
9571         (amd64_init_abi):  Set num_core_regs and register_names.  Set
9572         target description to tdesc_amd64 if needed.  Don't call
9573         set_gdbarch_register_name nor set_gdbarch_register_type.
9574         (_initialize_amd64_tdep): New.
9575
9576         * i386-linux-nat.c (i386_linux_read_description): New.
9577         (_initialize_i386_linux_nat): Set to_read_description to
9578         i386_linux_read_description.
9579
9580         * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9581         (i386_linux_register_name): Removed.
9582         (i386_linux_core_read_description): New.
9583         (i386_linux_read_description): Likewise.
9584         (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9585         Set target description to tdesc_i386_linux if needed.  Support
9586         orig_eax.  Set register_reggroup_p.  Call
9587         set_gdbarch_core_read_description.
9588         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9589
9590         * i386-linux-tdep.h (tdesc_i386_linux): New.
9591
9592         * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9593         with I387_NUM_REGS.
9594
9595         * i386-tdep.c: Include "features/i386/i386.c".
9596         (i386_register_names): Make it const.
9597         (i386_mmx_names): Likewise.
9598         (i386_num_register_names): Removed.
9599         (i386_register_name): Likewise.
9600         (i386_eflags_type): Likewise.
9601         (i386_mxcsr_type): Likewise.
9602         (i386_sse_type): Likewise.
9603         (i386_register_type): Likewise.
9604         (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9605         (i386_pseudo_register_name): New.
9606         (i386_pseudo_register_type): Likewise.
9607         (i386_mmx_type): Make it static.
9608         (i386_gdbarch_init): Check arch.  Replace I386_NUM_FREGS with
9609         I387_NUM_REGS.  Set num_core_regs and register_names.  Don't
9610         call set_gdbarch_register_name nor set_gdbarch_register_type.
9611         Set register_reggroup_p.  Set target description to tdesc_i386
9612         if needed.  Call set_tdesc_pseudo_register_type,
9613         set_tdesc_pseudo_register_name and tdesc_use_registers.
9614         (_initialize_i386_tdep): Call initialize_tdesc_i386.
9615         initialize_tdesc_x86_64.
9616
9617         * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9618         i386_mxcsr_type and i386_sse_type.  Add num_core_regs,
9619         register_names, tdesc and register_reggroup_p.
9620         (I386_NUM_FREGS): Removed.
9621         (i386_eflags_type): Likewise.
9622         (i386_mxcsr_type): Likewise.
9623         (i386_mmx_type): Likewise.
9624         (i386_sse_type): Likewise.
9625         (i386_register_name): Likewise.
9626         (i386_regnum): Add I386_MXCSR_REGNUM.
9627         (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9628
9629         * i387-tdep.h (I387_NUM_REGS): New.
9630
9631         * regformats/i386/i386-linux.dat: Generated.
9632         * regformats/i386/i386.dat: Likewise.
9633         * regformats/i386/amd64-linux.dat: Likewise.
9634         * regformats/i386/amd64.dat: Likewise.
9635
9636         * regformats/reg-i386-linux.dat: Removed.
9637         * regformats/reg-i386.dat: Likewise.
9638         * regformats/reg-x86-64-linux.dat: Likewise.
9639         * regformats/reg-x86-64.dat: Likewise.
9640
9641 2010-03-01  Corinna Vinschen  <vinschen@redhat.com>
9642
9643         * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9644         cygwin_conv_path API rather than the deprecated
9645         cygwin_conv_to_full_posix_path.
9646         * windows-nat.c:
9647         (GetModuleFileNameExA): Undefine for Cygwin.
9648         (GetModuleFileNameExW): Define for Cygwin.
9649         (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9650         Call GetModuleFileNameExW and convert path to POSIX using
9651         cygwin_conv_path.
9652         (windows_make_so): Always define p.  Drop unused variable m.
9653         Don't use Win32 functions to check file existance, rather use
9654         access on Cygwin.  Fetch system directory using GetSystemDirectoryW.
9655         Use canonicalize_file_name to get full path.
9656         (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9657         to convert Unicode pathname to multibyte on Cygwin.  Otherwise,
9658         use correct target buffer size in call to WideCharToMultiByte.
9659         (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9660         (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9661         (windows_create_inferior): Convert all paths and arguments to wchar_t
9662         and use CreateProcessW on Cygwin.
9663         (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9664         (bad_GetModuleFileNameExA): Undefine for Cygwin.
9665         (bad_GetModuleFileNameExW): Define for Cygwin.
9666         (_initialize_loadable): Load GetModuleFileNameExW into
9667         dyn_GetModuleFileNameExW on Cygwin.  Don't load ANSI function on Cygwin.
9668
9669 2010-02-28  Phil Muldoon  <pmuldoon@redhat.com>
9670
9671         PR python/11036
9672         * python/py-frame.c (frapy_read_var): Add block argument and logic
9673         to cope with user provided blocks.
9674
9675 2010-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9676
9677         * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9678         New comment.
9679
9680 2010-02-28  Corinna Vinschen  <vinschen@redhat.com>
9681
9682         * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9683         (COMMON_OBS): ... to here since it's used unconditionally.
9684         (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9685         (SFILES): To here.
9686
9687 2010-02-26  David Daney  <ddaney@caviumnetworks.com>
9688
9689         * mips-linux-tdep.c: Update struct sigframe comments.
9690         (SIGFRAME_CODE_OFFSET): Delete macro.
9691         (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9692         this_frame's sp.
9693         (mips_linux_n32n64_sigframe_init): Same.
9694
9695 2010-02-26  Kevin Buettner  <kevinb@redhat.com>
9696
9697         * remote-mips.c (mips_load): Don't use pseudo-register when
9698         invalidating regcache.
9699
9700 2010-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
9701
9702         * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9703
9704 2010-02-26  Pedro Alves  <pedro@codesourcery.com>
9705
9706         * NEWS: Add "New targets" section, and mention ARM Symbian
9707         support.
9708
9709 2010-02-26  Ulrich Weigand  <uweigand@de.ibm.com>
9710
9711         * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9712         add ADDR_SIZE member.
9713         (allocate_piece_closure): Update.
9714         (copy_pieced_value_closure): Likewise.
9715         (dwarf2_evaluate_loc_desc): Likewise.
9716         (read_pieced_value): Use DWARF address size instead of
9717         GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9718
9719 2010-02-26  Phil Muldoon  <pmuldoon@redhat.com>
9720             Tom Tromey  <tromey@redhat.com>
9721
9722         * python/py-type.c (typy_lookup_typename): Add in block argument.
9723         If provided restrict lookup to specified blocks.
9724         (gdbpy_lookup_type): Likewise.
9725         (typy_lookup_type): Likewise.
9726
9727 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
9728
9729         Symbian config
9730
9731         gdb/
9732         * arm-symbian-tdep.c: New.
9733         * configure.tgt (arm*-*-symbianelf*): New target.
9734         (*-*-symbianelf*): New OS.
9735         * osabi.c (gdb_osabi_names): Add Symbian.
9736         * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9737         * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9738         (ALLDEPFILES): Add arm-symbian-tdep.c.
9739
9740 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
9741
9742         * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9743
9744 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9745
9746         * mi/mi-main.c (mi_cmd_execute): Fix typo.
9747
9748 2010-02-24  Phil Muldoon  <pmuldoon@redhat.com>
9749             Tom Tromey  <tromey@redhat.com>
9750             Thiago Jung Bauermann  <bauerman@br.ibm.com>
9751
9752         * python/python.c (_initialize_python): Call
9753         gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9754         gdbpy_initialize_blocks.
9755         * python/python-internal.h: Declare struct symbol, block and
9756         symtab_and_line.  Declare block_object_type and
9757         symbol_object_type
9758         (gdbpy_lookup_symbol gdbpy_block_for_pc)
9759         (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9760         (symbol_to_symbol_object,  block_to_block_object)
9761         (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9762         (gdbpy_initialize_blocks ): Declare.
9763         * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9764         (frapy_select): Add methods.
9765         (frapy_read_var): Add symbol branch.
9766         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9767         py-block.
9768         (SUBDIR_PYTHON_SRCS): Likewise.
9769         (py-symbol.o): New rule.
9770         (py-symtab.o): Likewise.
9771         (py-block.o): Likewise.
9772         * python/py-symbol.c: New file.
9773         * python/py-symtab.c: Likewise.
9774         * python/py-block.c: Likewise.
9775
9776 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9777
9778         PR gdb/11321
9779
9780         * inferior.h (prepare_for_detach): Declare.
9781         (struct inferior) <detaching>: New field.
9782         * infrun.c (prepare_for_detach): New.
9783         (handle_inferior_event) <random signal>: Don't stop if detaching.
9784         * target.c (target_detach): Call prepare_for_detach.
9785
9786 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9787
9788         Per-process displaced stepping queue.
9789
9790         * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9791         (displaced_step_gdbarch, displaced_step_closure,
9792         (displaced_step_original, displaced_step_copy): Move globals to
9793         this...
9794         (struct displaced_step_inferior_state): ... new structure.
9795         (displaced_step_inferior_states): New global.
9796         (get_displaced_stepping_state, add_displaced_stepping_state)
9797         (remove_displaced_stepping_state, infrun_inferior_exit): New
9798         functions.
9799         (displaced_step_clear): Add displaced_step_inferior_state
9800         parameter, and adjust to handle it.
9801         (displaced_step_clear_cleanup): Parameter is now a
9802         displaced_step_inferior_state.  Adjust.
9803         (displaced_step_prepare): Adjust.
9804         (displaced_step_fixup, displaced_step_fixup)
9805         (infrun_thread_ptid_changed, resume): Adjust.
9806         (init_wait_for_inferior): Don't call displaced_step_clear.
9807         (infrun_thread_stop_requested): Rewrite.
9808         (_initialize_infrun): Install infrun_inferior_exit as
9809         inferior_exit observer.
9810
9811 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9812
9813         * inferior.h (ptid_match): Declare.
9814         * infrun.c (ptid_match): New.
9815         * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9816         (handle_notification): Add debug output.
9817         * linux-nat.c (ptid_match): Delete.
9818
9819 2010-02-24  David S. Miller  <davem@davemloft.net>
9820
9821         * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9822         * syscalls/sparc-linux.xml: New.
9823         * syscalls/sparc64-linux.xml: New.
9824         * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9825         * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9826         (sparc32_linux_get_syscall_number): New function.
9827         (sparc32_linux_init_abi): Set syscall XML file name and hook up
9828         syscall number fetcher.
9829         * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9830         (sparc64_linux_get_syscall_number): New function.
9831         (sparc64_linux_init_abi): Set syscall XML file name and hook up
9832         syscall number fetcher.
9833
9834 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
9835
9836         Multiexec MI
9837
9838         * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9839         * inferior.c (add_inferior_silent): Notify inferior_added
9840         observer.
9841         (delete_inferior_1): Notify inferior_removed observer.
9842         (exit_inferior_1): Pass inferior, not pid, to observer.
9843         (inferior_appeared): Likewise.
9844         (add_inferior_with_spaces): New.
9845         (add_inferior_command): Use the above.
9846         * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9847         Declare.
9848
9849         * inflow.c (inflow_inferior_exit): Likewise.
9850         * jit.c (jit_inferior_exit_hook): Likewise.
9851
9852         * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9853         remove-inferior.
9854         * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9855         * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9856         (report_initial_inferior): New.
9857         (mi_inferior_removed): Register the above. Make sure
9858         inferior_added observer is called on the first inferior.
9859         (mi_new_thread, mi_thread_exit): Thread group is now identified by
9860         inferior number, not pid.
9861         (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9862         affected.
9863         * mi/mi-main.c (current_context): New.
9864         (proceed_thread_callback): Use typed closure.
9865         Proceed everything if pid is 0. Most implementation split into
9866         (proceed_thread): ... this.
9867         (run_one_inferior): New.
9868         (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9869         Adjust for multiexec behaviour.
9870         (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9871         (mi_cmd_execute): Handle the 'thread-group' option here.
9872         Do some extra checks.
9873         * mi-parse.c (mi_parse): Handle the --all and --thread-group
9874         options.
9875         * mi-parse.h (struct mi_parse): New fields all and thread_group.
9876
9877 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
9878
9879         Make -exec-run a proper MI commands.
9880
9881         * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9882         * mi/mi-cmds.c (mi_cmds): Adjust.
9883         * mi/mi-main.c (mi_cmd_exec_run): New.
9884
9885 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9886             Stan Shebs  <stan@codesourcery.com>
9887
9888         * tracepoint.h (set_traceframe_number)
9889         (cleanup_restore_current_traceframe): Declare.
9890         * tracepoint.c (set_traceframe_number): New.
9891         (struct current_traceframe_cleanup): New.
9892         (do_restore_current_traceframe_cleanup)
9893         (restore_current_traceframe_cleanup_dtor)
9894         (make_cleanup_restore_current_traceframe): New.
9895         * infrun.c: Include tracepoint.h.
9896         (fetch_inferior_event): Switch out and in of tfind mode.
9897
9898 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9899
9900         * breakpoint.c (breakpoint_init_inferior): Also delete
9901         bp_shlib_event breakpoints.
9902         * solib-frv.c (enable_break): Remove call to
9903         remove_solib_event_breakpoints.
9904         * solib-svr4.c (enable_break): Ditto.
9905         * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9906         * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9907         * solib-som.c (som_solib_create_inferior_hook): Ditto.
9908         * solib-spu.c (spu_enable_break): Ditto.
9909
9910 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
9911
9912         * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9913
9914 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
9915
9916         * varobj.c (varobj_update): Avoid non-constants in initializers.
9917
9918 2010-02-23  Tom Tromey  <tromey@redhat.com>
9919
9920         * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9921         handle big-endian values.
9922         (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9923
9924 2010-02-22  Pedro Alves  <pedro@codesourcery.com>
9925
9926         PR9605
9927
9928         gdb/
9929         * breakpoint.c (insert_bp_location): If inserting the read
9930         watchpoint failed, fallback to an access watchpoint.
9931         (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9932         if the value changed, if not watching the same memory for writes.
9933         (watchpoint_locations_match): Add comment.
9934         (update_global_location_list): Copy the location's watchpoint type.
9935         * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9936         handle read watchpoints here.
9937         (i386_insert_watchpoint): Read watchpoints aren't supported.
9938         * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9939         packets.
9940         * target.h (target_insert_watchpoint): Update description.
9941
9942 2010-02-19  Tom Tromey  <tromey@redhat.com>
9943
9944         * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9945         * m2-typeprint.c (m2_print_type): Update.
9946         * gdbtypes.c (recursive_dump_type): Update.
9947         (copy_type_recursive): Update.
9948         * c-typeprint.c (c_type_print_varspec_prefix): Update.
9949         (c_type_print_base): Update.
9950         * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9951         Remove.
9952         (struct cplus_struct_type) <ntemplate_args>: Remove.
9953         <struct template_arg>: Remove.
9954         <is_dynamic>: Move earlier.
9955         (TYPE_TEMPLATE_ARGS): Remove.
9956         (TYPE_NTEMPLATE_ARGS): Remove.
9957         (TYPE_TEMPLATE_ARG): Remove.
9958
9959 2010-02-19  Tom Tromey  <tromey@redhat.com>
9960
9961         PR c++/8693, PR c++/9496:
9962         * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9963         * c-exp.y (lex_one_token): Rename from yylex.  Don't call
9964         write_dollar_variable.  Don't try to classify NAME tokens.
9965         (token_and_value): New type.
9966         (token_fifo, popping, name_obstack): New globals.
9967         (classify_name): New function.
9968         (classify_inner_name): Likewise.
9969         (yylex): Likewise.
9970         (VARIABLE): Now has type sval.
9971         (exp : VARIABLE): Call write_dollar_variable.
9972         (qualified_name): Use TYPENAME, not typebase.  Add production for
9973         multiple "::" instances.
9974         (variable): Use name_not_typename.
9975         (qualified_type): Remove.
9976         (typebase): Update.
9977
9978 2010-02-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9979
9980         * symfile.c (addr_info_make_relative): Extend comment.  Move SECT to
9981         a more inner block.  Initialize ADDR by LOWER_OFFSET only if it was
9982         found by bfd_get_section_by_name.
9983         * symfile.h (struct section_addr_info) <sectindex>: New comment.
9984
9985 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
9986
9987         * NEWS: Add new "[...] since 7.1" section.  Rename the "[...] since
9988         7.0 section" into "Changes in 7.1".
9989
9990 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
9991
9992         GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9993         * version.in: Bump version to 7.1.50.20100219-cvs.
9994
9995 2010-02-18  Harald Koenig  <H.Koenig@science-computing.de>
9996
9997         * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9998         * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9999
10000 2010-02-17  Tom Tromey  <tromey@redhat.com>
10001
10002         * NEWS: Add Python API Improvements section.
10003
10004 2010-02-18  Daniel Jacobowitz  <dan@codesourcery.com>
10005
10006         * NEWS: Correct typo.
10007
10008 2010-02-17  Tom Tromey  <tromey@redhat.com>
10009
10010         * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
10011
10012 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10013
10014         * symfile.c (build_section_addr_info_from_objfile): Include sections
10015         only if they are SEC_ALLOC or SEC_LOAD.
10016
10017 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
10018
10019         PR shlibs/11293
10020         * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
10021         of ULONGEST for address size.
10022
10023 2010-02-17  Tom Tromey  <tromey@redhat.com>
10024
10025         * NEWS: Add C++ improvements section.
10026
10027 2010-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
10028
10029         * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
10030         PyThreadState_Swap): Avoid "statement with no effect" warning.
10031
10032 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10033
10034         * solib-svr4.c (enable_break <target_auxv_search>): New variable
10035         addr_bit.  Adjust LOAD_ADDR sign for cross-arch inferiors.
10036
10037 2010-02-17  Tristan Gingold  <gingold@adacore.com>
10038             Petr Hluzin  <petr.hluzin@gmail.com>
10039
10040         * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
10041         gdb_assert.  Fix info->size for SIG prologue.
10042
10043 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
10044
10045         * infcmd.c (show_inferior_tty_command): Check for NULL.
10046         Correct output message.
10047
10048 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
10049
10050         * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
10051         FUNCTION contains parentheses.  Improve removal of a trailing
10052         single quote.
10053
10054 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
10055
10056         * gcore.c (do_bfd_delete_cleanup): New function.
10057         (gcore_command): Use it.  Discard the cleanup after success.
10058         (gcore_copy_callback): Delete dead code.
10059
10060 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
10061
10062         * symfile.c (addr_info_make_relative): Always use
10063         find_lowest_section.
10064
10065 2010-02-16  Sami Wagiaalla <swagiaal@redhat.com>
10066
10067         * NEWS: Added entry for namespace fixes.
10068
10069 2010-02-15  Tom Tromey  <tromey@redhat.com>
10070
10071         * dwarf2read.c (guess_structure_name): Allocate name on the
10072         objfile obstack.
10073
10074 2010-02-15  Tom Tromey  <tromey@redhat.com>
10075
10076         * c-typeprint.c (c_type_print_base): Reverse order of test.
10077
10078 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10079
10080         * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize.  Optionally
10081         initialize it from ELF BFD.  Extend the prelink condition by it.
10082
10083 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10084
10085         * defs.h (parse_pid_to_attach): New.
10086         * utils.c (parse_pid_to_attach): New.
10087         * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
10088         * gnu-nat.c (gnu_attach): Likewise.
10089         * nto-procfs.c (procfs_attach): Likewise.
10090         * procfs.c (procfs_attach): Likewise.
10091         * windows-nat.c (windows_attach): Likewise.
10092         * inf-ptrace.c (inf_ptrace_attach): Likewise.  Remove variable dummy.
10093         * inf-ttrace.c (inf_ttrace_attach): Likewise.
10094         * remote.c (extended_remote_attach_1): Likewise.  New comment on getpid
10095         check.
10096
10097 2010-02-14  Masaki Muranaka  <monaka@monami-software.com>
10098
10099         * MAINTAINERS: Add myself for write after approval privileges.
10100
10101 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10102
10103         * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
10104         block.
10105
10106 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10107
10108         * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
10109         only if INFO_VERBOSE.
10110
10111 2010-02-12  Tomas Holmberg <th@virtutech.com>
10112
10113         * mi/mi-main.c: Added the --reverse flag to the following MI
10114         commands: exec-continue, exec-finish, exec-next, exec-step,
10115         exec-next-instruction, exec-step-instruction. This is to
10116         support reverse execution over the MI interface to gdb.
10117
10118 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
10119
10120         * tracepoint.c (_initialize_tracepoint): Specify that the address
10121         range of `tfind outsize' is exclusive, and that the address range
10122         of `tfind range' is inclusive, in the commands' help strings.
10123
10124 2010-02-12  Joel Brobecker  <brobecker@adacore.com>
10125
10126         Spurious "dll not found" error messages on x64-windows.
10127         * windows-nat.c: Add include of complaints.h.
10128         (handle_unload_dll): Change dll-not-found error into a complaint.
10129
10130 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
10131
10132         * breakpoint.c (allocate_bp_location): Use bp_loc_other for
10133         bp_tracepoint and bp_fast_tracepoint, not
10134         bp_loc_software_breakpoint.
10135         (update_global_location_list): Tracepoints are never duplicates of
10136         anything.
10137
10138 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
10139
10140         * breakpoint.c (break_command_really): Change return type to int.
10141         Return false if no breakpoint was created, true otherwise.
10142         (trace_command): Don't set the tracepoint count if no tracepoint
10143         was created.
10144         (ftrace_command): Ditto.
10145         (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
10146         created in the breakpoints table.
10147
10148 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10149             Ulrich Weigand  <uweigand@de.ibm.com>
10150
10151         * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
10152
10153 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
10154
10155         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
10156         the offset value isn't of integral type.
10157
10158 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10159
10160         * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
10161         New.
10162
10163 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
10164
10165         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
10166         non-subscriptable types.
10167         * valarith.c (binop_types_user_defined_p): New, abstracted out
10168         from ...
10169         (binop_user_defined_p): ... this.
10170         * value.h (binop_types_user_defined_p): Declare.
10171
10172 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
10173
10174         * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
10175         Merge uploaded TSVs before merging uploaded tracepoints.
10176
10177 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
10178
10179         * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
10180
10181 2010-02-11  Vladimir Prus  <vladimir@codesourcery.com>
10182
10183         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
10184         whitespace character after a dot in comment.
10185         (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
10186         Likewise.
10187         (list_args_or_locals): For the 'all' (that is
10188         -stack-list-variables) case, always output list of tuples.
10189         Output 'arg' field if variable is argument.
10190
10191 2010-02-10  Tom Tromey  <tromey@redhat.com>
10192
10193         * parser-defs.h (parser_debug): Declare.
10194         * parse.c (_initialize_parse): Install "debug parser" set/show
10195         command.
10196         (parser_debug): New global.
10197         (show_parserdebug): New function.
10198         * c-exp.y (c_parse): Set yydebug.
10199
10200 2010-02-10  H.J. Lu  <hongjiu.lu@intel.com>
10201
10202         * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
10203         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10204         (tdesc_predefined_types): Add i387_ext, i386_eflags and
10205         i386_mxcsr.
10206         (tdesc_find_type): New.
10207         (tdesc_gdb_type): Use tdesc_find_type.  Handle TDESC_TYPE_I387_EXT,
10208         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10209
10210         * target-descriptions.h (tdesc_find_type): New.
10211
10212 2010-02-10  Michael Snyder  <msnyder@vmware.com>
10213
10214         * gdb-gdb.py: Comment fix.
10215
10216 2010-02-09  Tristan Gingold  <gingold@adacore.com>
10217
10218         * machoread.c (macho_symfile_relocate): New function.
10219         (macho_sym_fns): Use macho_symfile_relocate instead of
10220         default_symfile_relocate.
10221         (macho_oso_data): New type.
10222         (current_oso): New variable.
10223         (macho_add_oso_symfile): Do not compute section_addr_info, but
10224         instead set vma of sections.
10225         Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10226         Set and clear current_oso.
10227
10228 2010-02-09  Joel Brobecker  <brobecker@adacore.com>
10229
10230         Wrong type description for tagged type parameter.
10231         * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10232         EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10233         reference to a tagged type.
10234
10235 2010-02-09  Tristan Gingold  <gingold@adacore.com>
10236
10237         * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10238         brothers of the parent.
10239
10240 2010-02-08  Tom Tromey  <tromey@redhat.com>
10241
10242         PR c++/8017:
10243         * value.h: Update.
10244         * valops.c (search_struct_field): Make 'name' const.
10245         (search_struct_method): Likewise.
10246         (find_method_list): Make 'method' const.
10247         (value_struct_elt): Make 'name' and 'err' const.
10248         (value_find_oload_method_list): Make 'method' const.
10249         (find_overload_match): Make 'name' const.
10250         * eval.c (evaluate_subexp_standard): New locals function,
10251         function_name.
10252         <OP_FUNCALL>: Handle OP_SCOPE specially.
10253
10254 2010-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
10255
10256         * infrun.c (handle_inferior_event): Do not look up regcache
10257         for exited processes.
10258
10259 2010-02-08  Chris Moller  <moller@mollerware.com>
10260
10261         PR gdb/10728
10262         * valarith.c (value_ptrdiff): Added a test for a zero type length,
10263         warn if found, and assume length = 1.
10264
10265 2010-02-08  Chris Moller  <cmoller@redhat.com>
10266
10267         PR gdb/9067
10268         * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
10269         (cp_print_static_field)  Fix use of obstacks.
10270
10271 2010-02-08  Pedro Alves  <pedro@codesourcery.com>
10272
10273         * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10274         resumed LWPs as resumed.
10275         (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10276         we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10277         of throwing an internal error.  If an LWP of a process we're not
10278         waiting for reports a signal, don't force collecting a SIGSTOP,
10279         and if it was breakpoint hit in non-stop mode, cancel it.  Don't
10280         go through all LWPs cancelling breakpoints in non-stop mode.
10281         (resume_stopped_resumed_lwps): New.
10282         (linux_nat_wait): Use it.
10283
10284 2010-02-07  H.J. Lu  <hongjiu.lu@intel.com>
10285
10286         * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10287         i386/amd64 and i386/amd64-linux.
10288         (i386/i386-expedite): New.
10289         (i386/i386-linux-expedite): Likewise.
10290         (i386/amd64-expedite):Likewise.
10291         (i386/amd64-linux-expedite): Likewise.
10292         ($(outdir)/i386/i386-linux.dat): Likewise.
10293         ($(outdir)/i386/amd64.dat): Likewise.
10294         ($(outdir)/i386/amd64-linux.dat): Likewise.
10295
10296         * features/i386/32bit-core.xml: New.
10297         * features/i386/32bit-linux.xml: Likewise.
10298         * features/i386/32bit-sse.xml: Likewise.
10299         * features/i386/64bit-core.xml: Likewise.
10300         * features/i386/64bit-linux.xml: Likewise.
10301         * features/i386/64bit-sse.xml: Likewise.
10302         * features/i386/i386-linux.xml: Likewise.
10303         * features/i386/i386.xml: Likewise.
10304         * features/i386/amd64-linux.xml: Likewise.
10305         * features/i386/amd64.xml: Likewise.
10306         * features/i386/i386-linux.c: Likewise.
10307         * features/i386/i386.c: Likewise.
10308         * features/i386/amd64-linux.c: Likewise.
10309         * features/i386/amd64.c: Likewise.
10310
10311 2010-02-05  Sami Wagiaalla  <swagiaal@redhat.com>
10312
10313         PR c++/7935:
10314         * cp-support.h: Added char* alias element to using_direct data
10315         struct.
10316         (cp_add_using): Added char* alias argument.
10317         (cp_add_using_directive): Ditto.
10318         * cp-namespace.c: Updated with the above changes.
10319         (cp_lookup_symbol_imports): Check for aliases.
10320         * dwarf2read.c (read_import_statement): Figure out local alias
10321         for the import and pass it on to cp_add_using.
10322         (read_namespace): Pass alias argument to cp_add_using.
10323
10324 2010-02-05  Hui Zhu  <teawater@gmail.com>
10325
10326         * defs.h (gdb_bfd_errmsg): New extern.
10327         * exec.c (exec_file_attach): Change bfd_errmsg to
10328         gdb_bfd_errmsg.
10329         * utils.c (AMBIGUOUS_MESS1): New macro.
10330         (AMBIGUOUS_MESS2): New macro.
10331         (gdb_bfd_errmsg): New function.
10332
10333 2010-02-04  Doug Evans  <dje@google.com>
10334
10335         * solib-svr4.c (enable_break): Add comment.
10336
10337 2010-02-04  Anthony Green  <green@moxielogic.com>
10338
10339         * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10340         gracefully.
10341
10342 2010-02-04  Tom Tromey  <tromey@redhat.com>
10343
10344         * valops.c (search_struct_field): Account for
10345         value_embedded_offset.  Fix check for virtual base past the end of
10346         the object.  Use value_copy when making a slice of the value.
10347
10348 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
10349
10350         PR tui/9622
10351         * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10352         only if gdb_stdout is a tty.
10353
10354 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
10355
10356         * target-descriptions.c: Include "osabi.h".
10357         (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10358         OSABI.
10359
10360 2010-02-04  Tristan Gingold  <gingold@adacore.com>
10361
10362         * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10363         (macho_symtab_read): Adjust calls to macho_add_oso.
10364         (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10365         (macho_symfile_read): Adjust call to macho_oso_symfile.
10366         (macho_new_init): Move this function after declarations.
10367         (macho_symfile_init): Ditto.
10368         * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10369         * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10370
10371 2010-02-04  Vladimir Prus  <vladimir@codesourcery.com>
10372
10373         Include MI command in remotelog.
10374
10375         * mi/mi-main.c (mi_execute_command): Call target_log_command.
10376
10377 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
10378
10379         * remote.c (remote_state): Remove gdbarch.
10380         (init_remote_state): Don't set gdbarch.
10381         (remote_query_supported): Pass target_gdbarch instead of
10382         rs->gdbarch to gdbarch_qsupported.
10383
10384 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
10385
10386         * gdbarch.sh: Add qsupported.
10387
10388         * gdbarch.c: Regenerated.
10389         * gdbarch.h: Likewise.
10390
10391         * remote.c (remote_state): Add gdbarch.
10392         (init_remote_state): Set gdbarch.
10393         (remote_query_supported): Support gdbarch_qsupported.
10394
10395 2010-02-03  Daniel Jacobowitz  <dan@codesourcery.com>
10396
10397         * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10398         __FreeBSD_kernel_version.
10399
10400 2010-02-03  Tristan Gingold  <gingold@adacore.com>
10401
10402         * symfile.h (struct sym_fns): Add sym_relocate field.
10403         (default_symfile_relocate): New prototype.
10404         (symfile_relocate_debug_section): First argument is now an objfile.
10405         * symfile.c (default_symfile_relocate): Rename from
10406         symfile_relocate_debug_section, first argument is now an objfile.
10407         (symfile_relocate_debug_section): New function.
10408         * coffread.c (coff_sym_fns): Set sym_relocate field.
10409         * somread.c (som_sym_fns): Ditto.
10410         * mipsread.c (ecoff_sym_fns): Ditto.
10411         * machoread.c (macho_sym_fns): Ditto.
10412         * elfread.c (elf_sym_fns): Ditto.
10413         * dwarf2read.c (dwarf2_read_section): Ditto.
10414         * xcoffread.c (xcoff_sym_fns): Ditto.
10415         * dbxread.c (aout_sym_fns): Ditto.
10416         (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10417         (elfstab_build_psymtabs): Ditto.
10418
10419 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
10420
10421         * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10422
10423 2010-02-02  Tom Tromey  <tromey@redhat.com>
10424
10425         * valops.c (value_cast_structs): Try downcasting using the RTTI
10426         type.
10427
10428 2010-02-02  Tom Tromey  <tromey@redhat.com>
10429
10430         * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10431         (gnuv2_baseclass_offset): Now static.
10432         * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10433         * gnu-v2-abi.h: Remove.
10434
10435 2010-02-02  Tom Tromey  <tromey@redhat.com>
10436
10437         * m2-typeprint.c (m2_record_fields): Don't use
10438         TYPE_DECLARED_TYPE.
10439         * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10440         (struct main_type) <flag_declared_class>: New field.
10441         (struct cplus_struct_type) <declared_type>: Remove.
10442         <ntemplate_args>: Move earlier.
10443         (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10444         (DECLARED_TYPE_TEMPLATE): Remove.
10445         (TYPE_DECLARED_TYPE): Remove.
10446         * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10447         * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10448         * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10449         TYPE_DECLARED_TYPE.
10450
10451 2010-02-02  Tom Tromey  <tromey@redhat.com>
10452
10453         PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10454         * valops.c (search_struct_field): Compute nbases after calling
10455         CHECK_TYPEDEF.
10456         (check_field): Call CHECK_TYPEDEF.
10457         * cp-valprint.c (cp_print_value): Pass correct address to
10458         baseclass_offset.  Fix check for virtual base past the end of the
10459         object.  Don't offset address passed to cp_print_value_fields or
10460         apply_val_pretty_printer.
10461         (cp_print_value_fields): Fix call to val_print.
10462         (cp_print_value_fields_rtti): New function.
10463         * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10464         * p-valprint.c (pascal_object_print_value_fields): Fix call to
10465         val_print.
10466         * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10467         offset to address.
10468         * language.h (struct language_defn) <la_val_print>: Document.
10469         * c-lang.h (cp_print_value_fields_rtti): Declare.
10470
10471 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10472
10473         PR libc/11214:
10474         * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10475         (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10476         (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10477
10478 2010-02-01  Michael Matz  <matz@suse.de>
10479             Daniel Jacobowitz  <dan@codesourcery.com>
10480
10481         * i386-tdep.c (i386_frame_cache): Assume valid anonymous
10482         functions use a frame pointer.
10483
10484 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10485
10486         * solib-svr4.c (scan_dyntag): New variable dyn_addr.  Replace gdb_assert
10487         by a conditional setting DYN_ADDR.  Use DYN_ADDR.
10488         * config/djgpp/fnchange.lst: Add translations for
10489         symbol-without-target_section.exp and symbol-without-target_section.c.
10490
10491 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
10492
10493         * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10494         (remote_breakpoint_for_pc): Correct invalid_p check.
10495         * gdbarch.c: Regenerated.
10496
10497 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
10498
10499         * arm-tdep.c (arm_find_mapping_symbol): New function, from
10500         arm_pc_is_thumb.
10501         (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10502         (extend_buffer_earlier): New function.
10503         (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10504         (arm_adjust_breakpoint_address): New function.
10505         (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10506
10507 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
10508
10509         * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10510         (arm_linux_thumb2_le_breakpoint): New constants.
10511         (arm_linux_init_abi): Set thumb2_breakpoint and
10512         thumb2_breakpoint_size.
10513         * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10514         (thumb_get_next_pc): Add a comment.  Rename IT to ITSTATE.
10515         Implement support for single stepping through IT blocks if
10516         a 32-bit Thumb breakpoint instruction is available.
10517         (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10518         is available, use it when needed.
10519         (arm_remote_breakpoint_from_pc): New function.
10520         (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10521         * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10522         comment.  Add thumb2_breakpoint and thumb2_breakpoint_size.
10523
10524 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
10525
10526         * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10527         * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10528         * gdbarch.c, gdbarch.h: Regenerated.
10529         * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10530         * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10531         gdbarch_remote_breakpoint_from_pc.
10532
10533 2010-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
10534
10535         * infrun.c (prepare_to_proceed): Handle other signals which might
10536         match a breakpoint.
10537         (handle_inferior_event): Move the check for unusual breakpoint
10538         signals earlier.
10539
10540 2010-01-29  Paul Hilfinger  <hilfinger@adacore.com>
10541
10542         amd64 - function returning record with field straddling 2 registers.
10543         * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10544         a record of length <= 16 in which a field straddles the two
10545         eightbytes.
10546
10547 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
10548
10549         Implement return values on amd64-windows.
10550         * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10551         (amd64_windows_return_value): New function.
10552         (amd64_windows_init_abi): Call set_gdbarch_return_value with
10553         amd64_windows_return_value.
10554
10555 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
10556
10557         amd64-windows: 32 bytes allocated on stack by caller for integer
10558         parameter registers.
10559         * i386-tdep.h (struct gdbarch_tdep): Add new field
10560         integer_param_regs_saved_in_caller_frame.
10561         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10562         tdep->integer_param_regs_saved_in_caller_frame to 1.
10563         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10564         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10565
10566 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
10567
10568         amd64-windows: memory args passed by pointer during function calls.
10569         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10570         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10571         where tdep->memory_args_by_pointer is non-zero.
10572         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10573         tdep->memory_args_by_pointer to 1.
10574
10575 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
10576
10577         amd64-windows: Integer parameters in function calls.
10578         * i386-tdep.h (enum amd64_reg_class): New, moved here from
10579         amd64-tdep.c.
10580         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10581         call_dummy_integer_regs, and classify.
10582         * amd64-tdep.h (amd64_classify): Add declaration.
10583         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10584         (amd64_reg_class): Delete, moved to i386-tdep.h.
10585         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
10586         Replace call to amd64_classify by call to tdep->classify.
10587         (amd64_push_arguments): Get the list of registers to use for
10588         passing integer parameters from the gdbarch tdep structure,
10589         rather than using a hardcoded one.  Replace calls to amd64_classify
10590         by calls to tdep->classify.
10591         (amd64_push_dummy_call): Get the register number used for
10592         the "hidden" argument from tdep->call_dummy_integer_regs.
10593         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10594         and tdep->call_dummy_integer_regs.  Set tdep->classify.
10595         * amd64-windows-tdep.c: Add include of gdbtypes.h.
10596         (amd64_windows_dummy_call_integer_regs): New static global.
10597         (amd64_windows_classify): New function.
10598         (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10599         tdep->call_dummy_integer_regs and tdep->classify.
10600
10601 2010-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
10602
10603         * regcache.c (regcache_xmalloc): Add aspace argument.  Use it
10604         for the new regcache.  All callers updated.
10605         (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10606         (get_thread_arch_regcache): Do not set aspace here.
10607         * regcache.h (regcache_xmalloc): Update declaration.
10608
10609         * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10610         regcache_xmalloc updated.
10611
10612 2010-01-28  Joel Brobecker  <brobecker@adacore.com>
10613
10614         Another -Wunused-function error in procfs.c (sparc-solaris)
10615         * procfs.c (insert_dbx_link_breakpoint): Delete declaration.  Move up.
10616         Only define if SYS_syssgi is defined.
10617         (remove_dbx_link_breakpoint): Delete declaration.  Move up.
10618         (dbx_link_addr, insert_dbx_link_bpt_in_file)
10619         (insert_dbx_link_bpt_in_region): Move up.  Only define if SYS_syssgi
10620         is itself defined.
10621
10622 2010-01-27  Christopher Faylor  <me+cygwin@cgf.cx>
10623
10624         * windows-nat.c (windows_initialization_done): New variable.
10625         (get_windows_debug_event): Issue error when process dies before
10626         completely initializing.
10627         (do_initial_windows_stuff): Set flag to indicate when we are done with
10628         the initial steps of attaching to the child.
10629
10630 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10631
10632         * symtab.h (struct symbol <symtab>): New comment on NULL values.
10633
10634 2010-01-27  Doug Evans  <dje@google.com>
10635
10636         * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10637
10638         * breakpoint.c (bpstat_stop_status): Delete useless code.
10639
10640 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10641
10642         * printcmd.c (display_uses_solib_p): Remove variable section.  Access
10643         objfile via SYMBOL_SYMTAB.
10644
10645 2010-01-26  Tom Tromey  <tromey@redhat.com>
10646
10647         PR exp/7643:
10648         * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10649         coerce_array on result.
10650
10651 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
10652
10653         * cp-namespace.c (cp_lookup_symbol_namespace): Added
10654         search_parent argument.
10655         (cp_add_using): Initialize 'searched' field.
10656         (reset_directive_searched): New function.
10657         * cp-support.h: Add 'searched' field to using_direct struct.
10658         (cp_lookup_symbol_imports): Ditto.
10659         * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10660         Perform recursive search.
10661         Implement non parent search.
10662         * valops.c (value_maybe_namespace_elt): Updated.
10663
10664 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
10665
10666         PR gdb/10929:
10667         * dwarf2read.c (read_lexical_block_scope): Create blocks for
10668         scopes which contain using directives even if they contain no
10669         declarations.
10670         * symtab.c (lookup_symbol_aux): Pass lowest level block to
10671         la_lookup_symbol_nonlocal.
10672         * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10673         cp_lookup_symbol_namespace.
10674         (cp_lookup_symbol_namespace): Perform an import lookup at every
10675         block level.
10676         (cp_lookup_symbol_imports): New function.
10677         (cp_lookup_symbol_in_namespace): New function.
10678
10679 2010-01-25  Tom Tromey  <tromey@redhat.com>
10680
10681         PR gdb/11049:
10682         * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10683         result.
10684
10685 2010-01-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10686
10687         * configure.ac: Only use host_os part when disabling TUI on osf.
10688         Use test to check variables, prefix strings with x.
10689         * configure: Regenerate.
10690
10691         * solib-osf.c (osf_current_sos): Initialize tail.
10692
10693 2010-01-25  gingold  <gingold@adacore.com>
10694
10695         * windows-nat.c (windows_continue): Use %x to print thread id.
10696         (get_windows_debug_event): Ditto.
10697
10698 2010-01-22  Tom Tromey  <tromey@redhat.com>
10699
10700         PR symtab/11199:
10701         * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10702         type and arguments.  Use smash_to_methodptr_type.
10703         (read_structure_type): Call quirk_gcc_member_function_pointer
10704         later.
10705         * gdbtypes.h (smash_to_methodptr_type): Declare.
10706         * gdbtypes.c (smash_to_methodptr_type): New function.
10707         (lookup_methodptr_type): Use it.
10708
10709 2010-01-21  Tom Tromey  <tromey@redhat.com>
10710
10711         PR symtab/11198:
10712         * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10713         * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10714         * glibc-tdep.c (find_minsym_and_objfile): Remove.
10715         (glibc_skip_solib_resolver): Use
10716         lookup_minimal_symbol_and_objfile.
10717
10718 2010-01-21  Kai Tietz  <kai.tietz@onevision.com>
10719
10720         * inflow.c (check_syscall): Guard by #if clause for GO32 and
10721         WIN32 targets.
10722
10723 2010-01-20  Tom Tromey  <tromey@redhat.com>
10724
10725         PR backtrace/10770:
10726         * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10727         BINOP_GEQ.  Handle BINOP_NOTEQUAL in the signed case.
10728         * dwarf2expr.c (new_dwarf_expr_context): Allocate
10729         dwarf_stack_values, not CORE_ADDRs.
10730         (execute_stack_op): Change DW_OP_div and comparison operators to
10731         use signed operands.
10732
10733 2010-01-20  Vladimir Prus  <vladimir@codesourcery.com>
10734
10735         Per-inferior args and tty and environment.
10736
10737         * infcmd.c (inferior_args): Rename to ...
10738         (inferior_args_scratch): ... this.
10739         (inferior_io_terminal): Rename to ...
10740         (inferior_io_terminal_scratch): ... this.
10741         (inferior_argc, inferior_argv): Remove.
10742         (set_inferior_io_terminal, get_inferior_io_terminal): Store
10743         inside current_inferior().
10744         (set_inferior_tty_command, show_inferior_tty_command): New.
10745         (get_inferior_args, set_inferior_args): Store inside
10746         current_inferior().
10747         (notice_args_set): Likewise and rename to...
10748         (set_args_command): ... this.
10749         (set_inferior_args_vector): Likewise.
10750         (notice_args_read): Rename to...
10751         (show_args_command): ...new.
10752         (tty_command): Remove.
10753         (run_command_1): Don't free old args, as they are freed by
10754         set_inferior_arg now.
10755         (run_no_args_command): Likewise.
10756         (inferior_environ): Remove.
10757         (run_command_1): Use environment of the current inferior.
10758         (environment_info, set_environment_command)
10759         (unset_environment_command, path_info, path_command): Likewise.
10760         (_initialize_infcmd): Adjust for function and variable renames.
10761         Do not init inferior_environ.
10762         * inferior.h (set_inferior_arg): Adjust prototype.
10763         (struct inferior): New fields args, argc, argv, terminal, environment.
10764         (inferior_environ): Remove declaration.
10765         * inferior.c (free_inferior): Free new fields.
10766         (add_inferior_silent): Initialize 'environment' field.
10767         * main.c (captured_main): Set arguments only after the initial
10768         inferior has been created.  Set set_inferior_io_terminal,
10769         not tty_command.
10770         * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10771         inferior.
10772         (_initialize_mi_cmd_env): Adjust for disappearance of global
10773         inferior_environ.
10774         * solib.c (solib_find): Use environment of the current inferior.
10775
10776 2010-01-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10777
10778         * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10779         HAVE_PYTHON.
10780         (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10781
10782 2010-01-20  Joel Brobecker  <brobecker@adacore.com>
10783
10784         Get rid of ada-lang.c:function_name_from_pc.
10785         * ada-lang.c: Add "stack.h" #include.
10786         (function_name_from_pc): Delete.
10787         (is_known_support_routine): Replace call to function_name_from_pc
10788         by call to find_frame_funname.
10789         (ada_unhandled_exception_name_addr_from_raise): Likewise.
10790
10791 2010-01-19  Tom Tromey  <tromey@redhat.com>
10792
10793         PR c++/11026:
10794         * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10795         objfile obstack.
10796
10797 2010-01-19  Tom Tromey  <tromey@redhat.com>
10798
10799         * top.c (stop_sig, float_handler, do_nothing): Remove.
10800
10801 2010-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10802
10803         * breakpoint.c (watchpoint_check): Check the call
10804         gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10805         Extend the comment.
10806         * config/djgpp/fnchange.lst: Add translations for
10807         watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10808         watchpoint-cond-gone-stripped.c.
10809
10810 2010-01-19  Tom Tromey  <tromey@redhat.com>
10811
10812         PR c++/8000:
10813         * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10814         into parent scope, and enumerator into grandparent scope.
10815
10816 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10817
10818         * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10819
10820 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10821
10822         * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10823         i[34567]86-*-solaris2.1[0-9]*.
10824         * configure.tgt: Likewise.
10825
10826 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10827
10828         * NEWS: Document the source command enhancement allowing it
10829         to load Python scripts. Document the "set/show script-extension"
10830         commands.
10831
10832 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10833
10834         Add -Wunused-function to compile flags.
10835         * configure.ac: Add -Wunused-function to build_warnings.
10836         * configure: Regenerate.
10837
10838 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10839
10840         "delete" ada-lex.c:input function, not used.
10841         * ada-lex.l: #define YY_NO_INPUT.
10842
10843 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10844
10845         Delete free_named_symtabs and associated cleanup.
10846         * symfile.h (free_named_symtabs): Delete declaration.
10847         * symfile.c: Remove some commented out code (clear_symtab_users_once).
10848         (cashier_psymtab): Comment function out.
10849         Delete declaration.
10850         (free_named_symtabs): Delete.
10851         * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10852         * dbxread.c (end_psymtab): Likewise.
10853         * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10854         * exec.c (exec_close_1): Ditto.
10855         * xcoffread.c (xcoff_end_psymtab): Likewise.
10856
10857 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10858
10859         * stack.c (print_block_frame_labels): Comment function out.
10860
10861 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10862
10863         Delete unused or undefined functions.
10864         * breakpoint.c (ep_parse_optional_filename): Delete.
10865         * dcache.c (dcache_write_line): Remove declaration.
10866         * infrun.c (build_infrun): Remove declaration.
10867         * tracepoint.c (tracepoint_save_command): Remove declaration.
10868         * linux-nat.c (init_lwp_list): Delete. No longer used.
10869         * event-loop.c (check_async_signal_handlers): Delete declaration.
10870         * infrun.c (init_execution_control_state): Delete.
10871         (proceed): Update comment to avoid mentioning
10872         init_execution_control_state.
10873         * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10874         * ada-lang.c (ada_to_static_fixed_value): Delete.
10875         * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10876         * cp-namespace.c (cp_copy_usings): Delete.
10877         * xml-syscall.c (xml_number_of_syscalls): Delete.
10878         * progspace.c (find_program_space_by_num): Delete.
10879         * inflow.c (handle_sigio): Delete declaration.
10880         * hppa-tdep.c (hppa_alignof): Delete.
10881         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10882         (mipsnbsd_core_osabi_sniffer): Delete.
10883
10884 2010-01-18  Tom Tromey  <tromey@redhat.com>
10885
10886         PR c++/9680:
10887         * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10888         (CONST_CAST): New tokens.
10889         (exp): Add new productions.
10890         (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10891         reinterpret_cast.
10892         (is_cast_operator): New function.
10893         (yylex): Handle cast operators specially.
10894         * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10895         UNOP_REINTERPRET_CAST>: New cases.
10896         * expprint.c (print_subexp_standard): Likewise.
10897         (op_name_standard): Likewise.
10898         (dump_subexp_body_standard): Likewise.
10899         * parse.c (operator_length_standard): Likewise.
10900         * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10901         UNOP_REINTERPRET_CAST.
10902         * gdbtypes.c (class_types_same_p): New function.
10903         (is_ancestor): Use it.
10904         (is_public_ancestor): New function.
10905         (is_unique_ancestor_worker): Likewise.
10906         (is_unique_ancestor): Likewise.
10907         * gdbtypes.h (class_types_same_p, is_public_ancestor)
10908         (is_unique_ancestor): Declare.
10909         * valops.c (value_reinterpret_cast): New function.
10910         (dynamic_cast_check_1): Likewise.
10911         (dynamic_cast_check_2): Likewise.
10912         (value_dynamic_cast): Likewise.
10913         * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10914
10915 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
10916
10917         Fix build failure when building without Python support.
10918         * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10919         is not defined.
10920
10921 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
10922
10923         Use XVS field type instead of doing a parallel lookup.
10924         * ada-lang.c (ada_get_base_type): Follow the XVS field type
10925         if it is a reference type instead of doing a type lookup using
10926         the XVS field name.
10927
10928 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
10929
10930         Trust PAD types instead of using PAD___XVS.
10931         * ada-lang.c (trust_pad_over_xvs): New static variable.
10932         (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10933         parallel XVS type, follow the XVS type instead of the PAD type.
10934         (unwrap_value): Make sure that there is no parallel XVE type
10935         before returning the value as is.
10936         (set_ada_list, show_ada_list): New static variables.
10937         (set_ada_command, show_ada_command): New functions.
10938         (_initialize_ada_language): Add new "set/show ada" prefix commands.
10939         Add new "set/show ada trust-PAD-over-XVS" setting.
10940
10941 2010-01-18  Tom Tromey  <tromey@redhat.com>
10942             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10943
10944         Allow "source" to load python scripts.
10945         * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10946         * python/python.c (source_python_script): New function.
10947         * python/python.h (source_python_script): Add declaration.
10948         * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10949         (script_ext_off, script_ext_soft, script_ext_strict)
10950         (script_ext_enums, script_ext_mode): New static constants.
10951         (show_script_ext_mode, find_and_open_script): New functions.
10952         (source_script): Enhance to handle Python scripts.
10953         (init_cli_cmds): Add set/show script-extension commands.
10954
10955 2010-01-16  Stan Shebs  <stan@codesourcery.com>
10956
10957         * tracepoint.h (struct trace_status): Use unsigned long long
10958         instead of size_t.
10959         * tracepoint.c (trace_status_command): Fix printf directive.
10960         (trace_save_command): Check fwrite returns, fix printf directive.
10961         (trace_filename): New global.
10962         (tfile_open): Set it, check read returns.
10963         (tfile_close): Free trace_filename.
10964         (tfile_get_traceframe_address): Check read returns.
10965         (tfile_trace_find): Ditto.
10966         (tfile_fetch_registers): Ditto.
10967         (tfile_xfer_partial): Ditto.
10968         (tfile_get_trace_state_variable_value): Ditto.
10969
10970 2010-01-15  Stan Shebs  <stan@codesourcery.com>
10971
10972         Add trace file support.
10973         * tracepoint.h (enum trace_stop_reason): New enum.
10974         (struct trace_status): New struct.
10975         (parse_trace_status): Declare.
10976         (struct uploaded_tp): Move here from remote.c,
10977         add fields for actions.
10978         (struct uploaded_tsv): New struct.
10979         * tracepoint.c (tfile_ops): New target vector.
10980         (trace_fd): New global.
10981         (tfile_open): New function.
10982         (tfile_close): New function.
10983         (tfile_files_info): New function.
10984         (tfile_get_trace_status): New function.
10985         (tfile_get_traceframe_address): New function.
10986         (tfile_trace_find): New function.
10987         (tfile_fetch_registers): New function.
10988         (tfile_xfer_partial): New function.
10989         (tfile_get_trace_state_variable_value): New function.
10990         (init_tfile_ops): New function.
10991         (_initialize_tracepoint): Call it, add tfile target.
10992         (trace_status): New global.
10993         (current_trace_status): New function.
10994         (trace_running_p): Remove, change all users to get from
10995         current_trace_status()->running.
10996         (get_trace_status): Remove.
10997         (trace_status_command): Call target_get_trace_status directly,
10998         report more detail including tracing stop reasons.
10999         (trace_find_command): Always allow tfind on a file.
11000         (trace_find_pc_command): Ditto.
11001         (trace_find_tracepoint_command): Ditto.
11002         (trace_find_line_command): Ditto.
11003         (trace_find_range_command): Ditto.
11004         (trace_find_outside_command): Ditto.
11005         (trace_frames_offset, cur_offset): Declare as off_t.
11006         (trace_regblock_size): Rename from reg_size, update users.
11007         (parse_trace_status): New function.
11008         (tfile_interp_line): New function.
11009         (disconnect_or_stop_tracing): Ensure current trace
11010         status before asking what to do.
11011         (stop_reason_names): New global.
11012         (trace_save_command): New command.
11013         (get_uploaded_tp): Move here from remote.c.
11014         (find_matching_tracepoint): Ditto.
11015         (merge_uploaded_tracepoints): New function.
11016         (parse_trace_status): Use stop_reason_names.
11017         (_initialize_tracepoint): Define tsave command.
11018         * target.h (target_ops): New fields to_save_trace_data,
11019         to_upload_tracepoints, to_upload_trace_state_variables,
11020         to_get_raw_trace_data, change to_get_trace_status
11021         to take a pointer to a status struct.
11022         (target_save_trace_data): New macro.
11023         (target_upload_tracepoints): New macro.
11024         (target_upload_trace_state_variables): New macro.
11025         (target_get_raw_trace_data): New macro.
11026         * target.c (update_current_target): Add new methods, change
11027         signature of to_get_trace_status.
11028         * remote.c (hex2bin): Make globally visible.
11029         (bin2hex): Ditto.
11030         (remote_download_trace_state_variable): Download name also.
11031         (remote_get_trace_status): Update parameter, use
11032         parse_trace_status.
11033         (remote_save_trace_data): New function.
11034         (remote_upload_tracepoints): New function.
11035         (remote_upload_trace_state_variables): New function.
11036         (remote_get_raw_trace_data): New function.
11037         (remote_start_remote): Use them.
11038         (_initialize_remote_ops): Add operations.
11039         * ax-gdb.c: Include breakpoint.h.
11040         * breakpoint.c (create_tracepoint_from_upload): Use
11041         break_command_really, return tracepoint, warn about unimplemented
11042         parts.
11043         * NEWS: Mention trace file addition.
11044
11045 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
11046
11047         Fix compilation warning on gcc-3.4.
11048         * exec.c (print_section_info): Move the `displacement' variable
11049         initialization to its declaration.
11050
11051 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
11052
11053         * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
11054         comparison.
11055
11056 2010-01-15  Eric Botcazou  <botcazou@adacore.com>
11057
11058         "info tasks" broken by typedefs in ATCB type definitions.
11059         * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
11060         ada_check_typedef before retrieving the length of the type for
11061         regular fields.
11062
11063 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
11064
11065         Do not use name-based lookup for unconstrained packed arrays.
11066         * ada-lang.c (find_parallel_type_by_descriptive_type):
11067         Limit the fallback to name-based lookups to the case where
11068         the type is a constrained packed array.
11069
11070 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
11071
11072         Enhance gdb-gdb.py to handle main_type.type_specific.
11073         * gdb-gdb.py: Print the type-specific part of struct main_type.
11074
11075 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
11076
11077         * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
11078         * configure: Regenerate.
11079         * config.in: Regenerate.
11080         * utils.c: Include sys/resource.h.
11081         (dump_core, can_dump_core): New.
11082         (internal_vproblem): Update the comment.  Check can_dump_core while
11083         setting dump_core_p.  Replace two abort calls by dump_core calls.
11084
11085 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
11086             Eli Zaretskii  <eliz@gnu.org>
11087
11088         * NEWS: Document the PIE support.
11089
11090 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
11091
11092         * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
11093         (check_is_pie_binary, _initialize_linux_tdep): Remove.
11094
11095 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
11096
11097         * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
11098         Replace exec_entry_point call by bfd_get_start_address.
11099
11100 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
11101
11102         Support Valgrind attachments broken by the PIE support.
11103         * auxv.c: Include gdbcore.h.
11104         (procfs_xfer_auxv): Make static.  Reduce its comment.  Drop its
11105         parameters ops, object and annex.  Remove their assertions.
11106         (ld_so_xfer_auxv, memory_xfer_auxv): New function.
11107         * auxv.h (procfs_xfer_auxv): Remove comment.  Rename to ...
11108         (memory_xfer_auxv): ... here.
11109         * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
11110         memory_xfer_auxv.
11111         * procfs.c (procfs_xfer_partial): Likewise.
11112         * solib-svr4.c (svr4_relocate_main_executable): New prototype.
11113         (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
11114         (svr4_solib_create_inferior_hook): Conditionalize the
11115         svr4_relocate_main_executable call.
11116
11117 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
11118
11119         * solib-svr4.c (scan_dyntag): Remove variable dyn_addr.  New variable
11120         target_section.  Find SECT in current_target_sections, gdb_assert it.
11121         (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
11122         New variable abfd.
11123         * symtab.c (lookup_objfile_from_block): Return the binary file instead
11124         of separate debug info file.
11125
11126 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
11127
11128         Support PIEs with no symfile_objfile.
11129         * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
11130         * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
11131
11132 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
11133
11134         * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
11135         code part to ...
11136         (svr4_static_exec_displacement): ... a new function.
11137         (svr4_exec_displacement): New function.
11138         (svr4_relocate_main_executable): Call svr4_exec_displacement.  Allocate
11139         new_offsets using alloca now.  Remove variable old_chain and changed.
11140         Call objfile_relocate unconditionally now.
11141
11142 2010-01-14  Doug Evans  <dje@google.com>
11143
11144         * gdbtypes.c (arch_flags_type): Fix comment.
11145         * gdbtypes.h (arch_composite_type): Fix comment.
11146
11147 2009-01-14  Tristan Gingold  <gingold@adacore.com>
11148
11149         * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
11150         Call xstrdup for abfd->filename.  Pass symfile_flags and objfile flags
11151         to symbol_file_add_from_bfd.  Add OSO as separate objfile.
11152         (macho_oso_symfile): Add symfile_flags parameter.  Pass it to
11153         macho_add_oso_symfile.
11154         (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
11155
11156 2010-01-14  Joel Brobecker  <brobecker@adacore.com>
11157
11158         Tru64: Dead threads are never deleted.
11159         * dec-thread.c (dec_thread_ptid_is_alive): New function.
11160         (dec_thread_count_gdb_threads): Fix counter increment.
11161         (dec_thread_add_gdb_thread): Fix *listp increment.
11162         (resync_thread_list): Fix bug in deletion of dead threads that
11163         caused all threads to be deleted, instead of just the dead ones.
11164
11165 2010-01-13  Phil Muldoon  <pmuldoon@redhat.com>
11166
11167         PR python/10705
11168
11169         * python/python-internal.h: Add lazy_string_object_type
11170         definition.
11171         (create_lazy_string_object, gdbpy_initialize_lazy_string)
11172         (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
11173         * python/py-value.c (valpy_lazy_string): New function.
11174         (convert_value_from_python): Add lazy string conversion.
11175         * python/py-prettyprint.c (pretty_print_one_value): Check if
11176         return is also a lazy string.
11177         (print_string_repr): Add lazy string printing branch.
11178         (print_children): Likewise.
11179         * python/py-lazy-string.c: New file. Implement lazy strings.
11180         * python/python.c (_initialize_python): Call
11181         gdbpy_initialize_lazy_string.
11182         * varobj.c (value_get_print_value): Add lazy string printing
11183         branch.  Account for encoding.
11184         * c-lang.c (c_printstr): Account for new encoding argument.  If
11185         encoding is NULL, find encoding suited for type, otherwise use
11186         user encoding.
11187         * language.h (language_defn): Add encoding argument.
11188         (LA_PRINT_STRING): Likewise.
11189         * language.c (unk_lang_printstr): Update to reflect new encoding
11190         argument to language_defn.
11191         * ada-lang.h (ada_printstr): Likewise.
11192         * c-lang.h (c_printstr): Likewise.
11193         * p-lang.h (pascal_printstr);
11194         * f-lang.c (f_printstr): Likewise.
11195         * m2-lang.c (m2_printstr): Likewise.
11196         * objc-lang.c (objc_printstr): Likewise.
11197         * p-lang.c (pascal_printstr): Likewise.
11198         * scm-lang.c (scm_printstr): Likewise.
11199         * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
11200         encoding argument.
11201         * ada-valprint.c (ada_printstr): Likewise.
11202         * f-valprint.c (f_val_print): Likewise
11203         * m2-valprint.c (m2_val_print): Likewise.
11204         * p-valprint.c (pascal_val_print): Likewise.
11205         * expprint.c (print_subexp_standard): Likewise.
11206         * valprint.c (val_print_string): Likewise.
11207         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
11208         (SUBDIR_PYTHON_SRCS): Likewise.
11209         (py-lazy-string.o): New rule.
11210
11211 2010-01-13  Doug Evans  <dje@google.com>
11212
11213         * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
11214         uninitialized" warning from gcc on local `tree'.
11215
11216 2010-01-13  Vladimir Prus  <vladimir@codesourcery.com>
11217
11218         Implement core awareness.
11219
11220         * bcache.c (compare_ints): Remove
11221         (print_percentage): Use compare_positive_ints.
11222         * defs.h (compare_positive_ints): Declare.
11223         * linux-nat.h (struct lin_lwp): New field core.
11224         (linux_nat_core_of_thread_1): Declare.
11225         * linux-nat.c (add_lwp): Init the 'core' field.
11226         (linux_nat_wait_1): Record the core.
11227         (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11228         (linux_nat_add_target): Register the above.
11229         * linux-thread-db.c (update_thread_core): New.
11230         (thread_db_find_new_threads): Update core information for
11231         every thread.
11232         * remote.c (struct private_thread_info): New.
11233         (free_private_thread_info, demand_private_info): New.
11234         (PACKET_qXfer_threads, use_osdata_threads): New.
11235         (struct thread_item, threads_parsing_context
11236         (start_thread, end_thread, thread_attributes)
11237         (thread_children, threads_children, threads_elements): New.
11238         (remote_threads_info): Try qXfer:threads before anything
11239         else.
11240         (remote_protocol_packets): Register qXfer:threads.
11241         (remote_open_1): Init use_osdata_threads.
11242         (struct stop_reply): New field 'core'.
11243         (remote_parse_stop_reply): Parse core number.
11244         (process_stop_reply): Record core number.
11245         (remote_xfer_partial): Handle qXfer:threads.
11246         (remote_core_of_thread): New.
11247         (init_remote_ops): Register remote_core_of_thread.
11248         (_initialize_remote): Register qXfer:read.
11249         * target.c (target_core_of_thread): New
11250         * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11251         (struct target_ops): New field to_core_of_threads.
11252         (target_core_of_thread): Declare.
11253         * gdbthread.h (struct thread_info): New field private_dtor.
11254         * thread.c (print_thread_info): Report the core.
11255         * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11256         * utils.c (compare_positive_ints): New.
11257         * features/threads.dtd: New.
11258         * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11259         * mi/mi-main.c (struct collect_cores_data, collect_cores)
11260         (do_nothing, free_vector_of_osdata_items)
11261         (splay_tree_int_comparator, free_splay_tree): New.
11262         (print_one_inferior_data): Implemented printing of selected
11263         inferiors.  Collect and print cores.
11264         (output_cores): New.
11265         (mi_cmd_list_thread_groups): Support --recurse.  Permit specifying
11266         thread groups together with --available.
11267
11268 2010-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11269
11270         * configure: Regenerate (for _STRUCTURED_PROC).
11271
11272 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
11273
11274         Delete dead function.
11275         * ada-lang.c (extract_string): Delete.  No longer used.
11276
11277 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
11278
11279         Fix -Wunused warning in dec-thread.c.
11280         * dec-thread.c (dec_thread_count_gdb_threads)
11281         (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11282
11283 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
11284
11285         * ada-valprint.c (ada_print_floating): Remove trailing space.
11286
11287 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
11288
11289         Add support for DW_AT_GNAT_descriptive_type.
11290         * gdbtypes.h (enum type_specific_kind): New enum.
11291         (struct main_type) [type_specific_field]: New component.
11292         [type_specific]: Add new component "gnat_stuff".
11293         (struct gnat_aux_type): New type.
11294         (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11295         (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11296         (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11297         (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11298         (TYPE_SPECIFIC_FIELD): New macros.
11299         (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11300         type does not hold any cplus-specific data.
11301         (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11302         (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11303         (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11304         cplus-specific data.
11305         * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11306         Set new component TYPE_SPECIFIC_FIELD (type).
11307         (gnat_aux_default): New constant.
11308         (allocate_gnat_aux_type): New function.
11309         (init_type): Add initialization the type-specific stuff for
11310         TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11311         (print_gnat_stuff): New function.
11312         (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11313         specific data.  Adjust code that prints the contents of the
11314         type-specific union using the TYPE_SPECIFIC_FIELD value.
11315         * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11316         the type cplus stuff for Ada types.
11317         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11318         Error out if these routines are called with an Ada type.
11319         (read_structure_type, read_array_type, read_subrange_type):
11320         Add call to set_descriptive_type.
11321         (set_die_type): Initialize the gnat-specific data if necessary.
11322         (need_gnat_info, die_descriptive_type, set_descriptive_type):
11323         New functions.
11324         * ada-lang.c (decode_constrained_packed_array_type): Use
11325         decode_constrained_packed_array_type instead of doing a standard
11326         lookup to locate a parallel type.
11327         (find_parallel_type_by_descriptive_type): New function.
11328         (ada_find_parallel_type_with_name): New function.
11329         (ada_find_parallel_type): Reimplement using
11330         ada_find_parallel_type_with_name.
11331         * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11332         to check if type has a cplus stuff.
11333         * linespec.c (total_number_of_methods): Likewise.
11334         * mdebugread.c (new_type): Likewise.
11335
11336 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11337
11338         * NEWS: Document the 0b binary number prefix parsing.
11339
11340 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11341
11342         * objfiles.c (objfile_relocate1): Change the return type to int.
11343         Describe the new return value.  Return non-zero if data changed.
11344         (objfile_relocate): New variable changed.  Set it.  Call
11345         breakpoint_re_set depending on CHANGED.
11346
11347 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11348
11349         Implement binary numbers parsing.
11350         * c-exp.y (parse_number): New case 'b' and 'B'.
11351
11352 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11353             Tristan Gingold  <gingold@adacore.com>
11354
11355         * solib.c (info_sharedlibrary_command): Replace
11356         objfile_has_partial_symbols and objfile_has_full_symbols calls by
11357         objfile_has_symbols.
11358
11359 2010-01-10  Joel Brobecker  <brobecker@adacore.com>
11360
11361         * NEWS: Document the improvements made to the mips-irix port.
11362
11363 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11364
11365         Fix the documentation of valprint.c:value_print.
11366         * valprint.c (value_print): Update the function description to
11367         mention that the syntax of the output follows the current_language,
11368         not necessarily C.
11369
11370 2010-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11371
11372         Fix displacement of separate debug info files.
11373         * objfiles.c (objfile_relocate): Rename to ...
11374         (objfile_relocate1): ... here and make it static.  Extend the comment.
11375         (objfile_relocate): New function.
11376         * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11377         SYMFILE_OBJFILE is NULL.  Remove variables objfile and old_chain.
11378         Remove following of SEPARATE_DEBUG_OBJFILE.  new_offsets is now
11379         allocated using alloca.
11380         * symfile.c (copy_section_addr_info): Remove.
11381         (build_section_addr_info_from_objfile): Make it global.  New variables
11382         addr_bit and mask, use them.
11383         * symfile.h (build_section_addr_info_from_objfile): New prototype.
11384         (copy_section_addr_info): Remove.
11385
11386 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11387
11388         Signal unwinder for mips-irix N32.
11389         * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11390         tramp-frame.h.
11391         (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11392         (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
11393         (SIGCONTEXT_LO_OFF): New macros.
11394         (mips_irix_n32_tramp_frame_init): New function.
11395         (mips_irix_n32_tramp_frame): New static constant.
11396         (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11397
11398 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11399
11400         Breakpoint in shared library does not work on mips-irix.
11401         * procfs.c: #include "observer.h".
11402         (procfs_inferior_created): New function, moving here the code
11403         which unsets the syssgi syscall-exit notifications.
11404         (procfs_create_inferior): Remove the code which unsets the syssgi
11405         syscall-exit notifications. It is too early to do this here.
11406         (_initialize_procfs): Attach the procfs_inferior_created observer.
11407
11408 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11409
11410         Wrong return convention for arrays (mips-irix).
11411         * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11412         128 bits or smaller are returned the same way as structs
11413         and unions of the the same size.
11414
11415 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11416
11417         Cannot set the PC on mips-irix.
11418         * irix5-nat.c (fill_gregset): Check regno against the raw PC
11419         register number, no the cooked one.
11420
11421 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11422
11423         Error while loading core file on mips-irix.
11424         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11425         if debugging from a core file.
11426
11427 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11428
11429         GDB hangs when attaching to process on mips-irix.
11430         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11431         attaching to a process.
11432
11433 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11434
11435         Use the correct breakpoint instruction on mips-irix.
11436         * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11437         containing the correct breakpoint instruction to use on mips-irix.
11438         Use it when the osabi is GDB_OSABI_IRIX.
11439
11440 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11441
11442         -Wunused warning in procfs.c (mips-irix only).
11443         * procfs.c (gdb_praddset, gdb_prdelset): New macros.  Use them
11444         throughout instead of using praddset and prdelset respectively.
11445
11446 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11447
11448         GDB crash while stepping into function.
11449         * infrun.c (handle_inferior_event): Refetch the current frame
11450         after handling what.main_action, in case that pointer became
11451         dangling.
11452
11453 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11454
11455         Fix build failure of solaris-hosted cross debuggers.
11456         * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11457
11458 2010-01-09  Daniel Gutson  <dgutson@codesourcery.com>
11459
11460         Fix build failure on sparc-solaris.
11461         * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11462
11463 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
11464
11465         Move some symfile code into subroutines.
11466         * symfile.h (relative_addr_info_to_section_offsets)
11467         (addr_info_make_relative): New prototypes.
11468         * symfile.c (default_symfile_offsets): Move a part to ...
11469         (relative_addr_info_to_section_offsets): ... this new function.
11470         (default_symfile_offsets): Call it.
11471         (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11472         this part to ...
11473         (addr_info_make_relative): ... this new function.
11474
11475 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
11476
11477         Add from_tty to solib_create_inferior_hook.
11478         * infcmd.c (post_create_inferior): Move solib_add after
11479         solib_create_inferior_hook.  Pass from_tty to
11480         solib_create_inferior_hook.  Call solib_add and SOLIB_ADD with
11481         0 from_tty and comment why.
11482         * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11483         * linux-nat.c (linux_child_follow_fork): Likewise.
11484         * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11485         * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11486         from_tty.
11487         * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11488         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11489         * solib-null.c (null_solib_create_inferior_hook): Likewise.
11490         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11491         * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11492         * solib-som.c (som_solib_create_inferior_hook): Likewise.
11493         * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11494         Pass it to svr4_so_ops.solib_create_inferior_hook.
11495         * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11496         from_tty.
11497         * solib-svr4.c (enable_break): New parameter from_tty.  Pass it to
11498         solib_add.
11499         (svr4_solib_create_inferior_hook): New parameter from_tty.  Pass it to
11500         enable_break.
11501         * solib-target.c (solib_target_solib_create_inferior_hook): New
11502         parameter from_tty.
11503         * solib.c (solib_create_inferior_hook): New parameter from_tty.  Pass
11504         it to ops->solib_create_inferior_hook.
11505         (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11506         Move solib_add after solib_create_inferior_hook, call it now with
11507         from_tty as 0.  New comment there.
11508         * solib.h (solib_create_inferior_hook): New parameter from_tty.
11509         * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11510         Likewise.
11511
11512 2010-01-08  Vladimir Prus  <vladimir@codesourcery.com>
11513
11514         Fix multiexec race.
11515         * infrun.c (handle_inferior_event): Use get_thread_regcache
11516         with events ptid, not get_current_regcache.
11517
11518 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
11519
11520         GDB crash with empty executable name (MinGW).
11521         * source.c (openp): Add assert that parameter string is not NULL.
11522         if parameter string is an empty string, then return with a failure
11523         immediately.
11524
11525 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
11526
11527         Get rid of support for VAX Floats.
11528         * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11529         (ada_vax_float_print_function): Delete.
11530         * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11531         (ada_vax_float_print_function): Delete.
11532         * ada-typeprint.c (print_vax_floating_point_type): Delete.
11533         (ada_print_type): Remove support for VAX floats.
11534         * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11535
11536 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
11537
11538         * stabsread.c (read_args): Handle zero arguments.
11539
11540 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
11541
11542         Cannot find in-tree libiconv.a after reconfigure.
11543         * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11544         that we can use, then cache the path to this archive.
11545         * configure: Regenerate.
11546
11547 2010-01-07  Stan Shebs  <stan@codesourcery.com>
11548
11549         Make tracepoint operations go through target vector.
11550         * target.h (enum trace_find_type): New enum.
11551         (struct target_ops): New fields to_trace_init,
11552         to_download_tracepoint, to_download_trace_state_variable,
11553         to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11554         to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11555         to_set_disconnected_tracing.
11556         (target_trace_init): New macro.
11557         (target_download_tracepoint): New macro.
11558         (target_download_trace_state_variable): New macro.
11559         (target_trace_start): New macro.
11560         (target_trace_set_readonly_regions): New macro.
11561         (target_get_trace_status): New macro.
11562         (target_trace_stop): New macro.
11563         (target_trace_find): New macro.
11564         (target_get_trace_state_variable_value): New macro.
11565         (target_set_disconnected_tracing): New macro.
11566         * target.c (update_current_target): Inherit and set defaults for
11567         tracepoint operations.
11568         * tracepoint.c (default_collect): Make globally visible.
11569         (target_is_remote): Remove, along with all calls.
11570         (tvariables_info): Call target_get_trace_state_variable_value.
11571         (remote_set_transparent_ranges): Remove.
11572         (trace_start_command): Call target_trace_init,
11573         target_download_tracepoint, etc.
11574         (download_tracepoint): Remove.
11575         (trace_stop_command): Simplify.
11576         (stop_tracing): Call target_trace_stop.
11577         (get_trace_status): Call target_get_trace_status.
11578         (trace_status_command): Add case for targets that cannot trace.
11579         (finish_tfind_command): Change to take numerical arguments, call
11580         target_trace_find.
11581         (trace_find_command): Update call to finish_tfind_command.
11582         (trace_find_pc_command): Ditto.
11583         (trace_find_tracepoint_command): Ditto.
11584         (trace_find_line_command): Ditto.
11585         (trace_find_range_command): Ditto.
11586         (trace_find_outside_command): Ditto.
11587         (set_disconnected_tracing_value): Call
11588         target_set_disconnected_tracing.
11589         * remote.c: Add protocol encoding bits from tracepoint.c.
11590         (trace_error): Move from tracepoint.c.
11591         (remote_get_noisy_reply): Ditto.
11592         (free_actions_list_cleanup_wrapper): Ditto.
11593         (free_actions_list): Ditto.
11594         (remote_trace_init): New function.
11595         (remote_download_tracepoint): New function.
11596         (remote_download_trace_state_variable): New function.
11597         (remote_trace_set_readonly_regions): New function.
11598         (remote_trace_start): New function.
11599         (remote_get_trace_status): New function.
11600         (remote_trace_stop): New function.
11601         (remote_trace_find): New function.
11602         (remote_download_trace_state_variable): New function.
11603         (remote_set_disconnected_tracing): New function.
11604         (init_remote_ops): Add tracepoint operations.
11605
11606         * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11607
11608 2010-01-07  Tristan Gingold  <gingold@adacore.com>
11609
11610         * symfile.c (build_section_addr_info_from_objfile): New function.
11611         (symbol_file_add_separate): Don't use offsets from objfile but
11612         built an addr info.
11613
11614 2010-01-06  Stan Shebs  <stan@codesourcery.com>
11615
11616         Support disconnected tracing.
11617         * infcmd.c (detach_command): Ask whether to stop tracing.
11618         * cli/cli-cmds.c (quit_command): Ditto.
11619         * breakpoint.h (struct breakpoint): New field number_on_target.
11620         * breakpoint.c (create_tracepoint_from_upload): New function.
11621         (get_tracepoint_by_number_on_target): New function.
11622         * remote.c (struct remote): New field disconnected_tracing.
11623         (remote_disconnected_tracing_feature): New function.
11624         (remote_protocol_features): Add DisconnectedTracing.
11625         (struct uploaded_tp): New struct.
11626         (uploaded_tps): New global.
11627         (get_uploaded_tp): New function.
11628         (find_matching_tracepoint): New function.
11629         (remote_get_tracing_state): New function.
11630         (remote_start_remote): Call it.
11631         * tracepoint.c (disconnected_tracing): New global.
11632         (trace_start_command): Initialize number_on_target.
11633         (stop_tracing): New function, split out from...
11634         (trace_stop_command): Call stop_tracing.
11635         (get_trace_status): New function, split out from...
11636         (trace_status_command): Call get_trace_status, add info on
11637         disconnection behavior.
11638         (disconnect_or_stop_tracing): New function.
11639         (finish_tfind_command): Translate from number on target.
11640         (trace_find_tracepoint_command): Translate to number on target.
11641         (send_disconnected_tracing_value): New function.
11642         (set_disconnected_tracing): New function.
11643         (_initialize_tracepoint): Add disconnected-tracing variable.
11644         * NEWS: Mention disconnected tracing.
11645
11646 2010-01-06  Tristan Gingold  <gingold@adacore.com>
11647
11648         * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11649         parameter to main_objfile.  Iterate on all separate debug objfiles.
11650         * symfile.h (symbol_file_add_separate)
11651         (find_separate_debug_file_by_debuglink): Remove parameter names.
11652         * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11653         (reread_symbols): Use free_objfile_separate_debug.
11654         * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11655         Adjust comment.
11656         (objfile_separate_debug_iterate, add_separate_debug_objfile)
11657         (free_objfile_separate_debug): New prototypes.
11658         * objfiles.c (objfile_separate_debug_iterate): New function.
11659         (add_separate_debug_objfile, free_objfile_separate_debug): New
11660         functions.
11661         (free_objfile): Use free_objfile_separate_debug.  Adjust for
11662         multiple separate debug objfile.
11663         (objfile_has_symbols): Adjust comment.  Iterate on all separate
11664         debug objfiles.
11665         * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11666         debug objfile.
11667         (lookup_minimal_symbol_text): Ditto.
11668         (lookup_minimal_symbol_by_pc_name): Ditto.
11669         (lookup_minimal_symbol_solib_trampoline): Ditto.
11670         (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11671         debug objfiles.
11672
11673 2010-01-05  Stan Shebs  <stan@codesourcery.com>
11674
11675         Add fast tracepoints.
11676         * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11677         * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11678         * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11679         * breakpoint.c (tracepoint_type): New function.
11680         (ALL_TRACEPOINTS): Use it.
11681         (should_be_inserted): Ditto.
11682         (bpstat_check_location): Ditto.
11683         (print_one_breakpoint_location): Ditto.
11684         (user_settable_breakpoint): Ditto.
11685         (set_breakpoint_location_function): Ditto.
11686         (disable_breakpoints_in_shlibs): Ditto.
11687         (delete_trace_command): Ditto.
11688         (print_it_typical): Add bp_fast_tracepoint case.
11689         (bpstat_what): Ditto.
11690         (print_one_breakpoint_location): Ditto.
11691         (allocate_bp_location): Ditto.
11692         (mention): Ditto.
11693         (breakpoint_re_set_one): Ditto.
11694         (disable_command): Ditto.
11695         (enable_command): Ditto.
11696         (check_fast_tracepoint_sals): New function.
11697         (break_command_really): Call it.
11698         (ftrace_command): New function.
11699         (_initialize_breakpoint): Add ftrace command.
11700         * gdbarch.sh (fast_tracepoint_valid_at): New.
11701         * gdbarch.h, gdbarch.c: Regenerate.
11702         * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11703         (i386_gdbarch_init): Use it.
11704         * remote.c (struct remote_state): New field fast_tracepoints.
11705         (PACKET_FastTracepoints): New packet config type.
11706         (remote_fast_tracepoint_feature): New function.
11707         (remote_protocol_features): Add FastTracepoints.
11708         (remote_supports_fast_tracepoints): New function.
11709         (_initialize_remote): Add FastTracepoints.
11710         * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11711         * NEWS: Mention fast tracepoints.
11712
11713 2010-01-06  Joel Brobecker  <brobecker@adacore.com>
11714
11715         * gdb-gdb.py: New file.
11716
11717 2010-01-05  Michael Snyder  <msnyder@vmware.com>
11718
11719         * infrun.c (handle_inferior_event): Fix typo in comment.
11720
11721 2010-01-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
11722
11723         * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11724
11725 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11726
11727         * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11728         and s390x-linux64.
11729         (s390-linux32-expedite): Define.
11730         (s390-linux64-expedite): Define.
11731         (s390x-linux64-expedite): Define.
11732         * features/s390-acr.xml: New file.
11733         * features/s390-fpr.xml: New file.
11734         * features/s390-core32.xml: New file.
11735         * features/s390-core64.xml: New file.
11736         * features/s390x-core64.xml: New file.
11737         * features/s390-linux32.xml: New file.
11738         * features/s390-linux64.xml: New file.
11739         * features/s390x-linux64.xml: New file.
11740         * features/s390-linux32.c: New generated file.
11741         * features/s390-linux64.c: New generated file.
11742         * features/s390x-linux64.c: New generated file.
11743
11744         * regformats/s390-linux32.dat: New generated file.
11745         * regformats/s390-linux64.dat: New generated file.
11746         * regformats/s390x-linux64.dat: New generated file.
11747         * regformats/reg-s390.dat: Remove.
11748         * regformats/reg-s390x.dat: Remove.
11749
11750         * s390-nat.c: Include "auxv.h" and <elf.h>.
11751         (HWCAP_S390_HIGH_GPRS): Define if undefined.
11752         (s390_target_wordsize): New function.
11753         (s390_auxv_parse): Likewise.
11754         (s390_get_hwcap): Likewise.
11755         (s390_read_description): Likewise.
11756         (_initialize_s390_nat): Install s390_auxv_parse and
11757         s390_read_description.
11758
11759         * s390-tdep.c: Include "features/s390-linux32.c",
11760         "features/s390-linux64.c", and "features/s390x-linux64.c".
11761         (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11762         (s390_register_call_saved): New function.
11763         (s390_register_name): Remove.
11764         (s390_register_type): Remove.
11765         (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11766         (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11767         (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11768         (s390_pseudo_register_name): New function.
11769         (s390_pseudo_register_type): New function.
11770         (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11771         Handle full GPR pesudos and varying pseudo register numbers.
11772         (s390_pseudo_register_write): Likewise
11773         (s390x_pseudo_register_read): Remove.
11774         (s390x_pseudo_register_write): Likewise.
11775         (s390_register_group): Remove.
11776         (s390_pseudo_register_group): New function.
11777         (s390_regmap_gregset): Add GPR upper halves.
11778         (s390x_regmap_gregset): Likewise.
11779         (s390_regmap_fpregset): Likewise.
11780         (s390_regmap_upper): New global variable.
11781         (s390_upper_regset): New global variable.
11782         (s390_upper_regset_sections): New global variable.
11783         (s390_regset_from_core_section): Handle GPR upper halves.
11784         (s390_core_read_description): New function.
11785         (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11786         register information.  Handle varying pseudo register numbers.
11787         (s390_backchain_frame_unwind_cache): Likewise.
11788         (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11789         (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11790         (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11791         PC and CC pseudos.  Unwind upper halves and full GPRs as appropriate.
11792         Handle varying pseudo register numbers.
11793         (s390_unwind_pc): Handle varying pseudo register numbers.
11794         (s390_dwarf2_prev_register): New function.
11795         (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11796         register information.  Handle varying pseudo register numbers.
11797         Install s390_dwarf2_prev_register to unwind full GPRs.
11798         (s390_gdbarch_init): Handle target descriptions.  Assign varying
11799         pseudo register numbers.  Install s390_adjust_frame_regnum.
11800         (_initialize_s390_tdep): Initialize target descriptions.
11801
11802         * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11803         (S390_NUM_REGS): Redefine to include upper half registers.
11804         (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11805         (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11806         (tdesc_s390_linux32): Add declaration.
11807         (tdesc_s390_linux64): Likewise.
11808         (tdesc_s390x_linux64): Likewise.
11809
11810 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11811
11812         * regset.h (struct core_regset_section): Add HUMAN_NAME.
11813         * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11814         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11815         (ppc_linux_vmx_regset_sections): Likewise.
11816         (ppc_linux_fp_regset_sections): Likewise.
11817
11818         * corelow.c (get_core_register_section): Constify arguments.
11819         (get_core_registers): Use gdbarch_core_regset_sections instead
11820         of hard-coded platform-specific register section names.
11821
11822 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11823
11824         * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11825         a register, assume the least-significant part is used.
11826         (write_pieced_value): Likewise.
11827
11828 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11829
11830         * printcmd.c: Include "arch-utils.h".
11831         (do_one_display): Re-parse expression if current architecture changed.
11832
11833 2010-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11834             Joel Brobecker  <brobecker@adacore.com>
11835
11836         * gdbtypes.c (check_typedef): New comment on type length.
11837         * value.c (allocate_value_lazy): Remove the unused atype variable.  New
11838         comment on type length.
11839         (value_primitive_field): Keep the original TYPE value, new comment.
11840
11841 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11842
11843         * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11844         p_start.  Change != comparisons to > and < comparisons.
11845
11846 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11847
11848         * cli/cli-script.c (process_next_line): Check P2 overrun.
11849
11850 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
11851
11852         Update the copyright hearder to add year 2010 for most GDB files.
11853
11854 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
11855
11856         Fix build failure in inf-ptrace.c.
11857         * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11858
11859 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
11860
11861         * top.c (print_gdb_version): Update copyright year.
11862
11863 2010-01-01, 10  Joel Brobecker  <brobecker@adacore.com>
11864
11865         Fix break *FUN'address thread NUM.
11866         * ada-lex.l (task): Expand rule to also match the thread keyword.
11867
11868 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
11869
11870         Fix break *FUN'address task NUM.
11871         * ada-lex.l (task): New rule.
11872         * ada-lang.c (valid_task_id): Make sure the Ada task list has
11873         been built before using it.
11874
11875 For older changes see ChangeLog-2009.
11876 \f
11877 Local Variables:
11878 mode: change-log
11879 left-margin: 8
11880 fill-column: 74
11881 version-control: never
11882 coding: utf-8
11883 End: