* NEWS: Document exception-handling change.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2010-12-10  Tom Tromey  <tromey@redhat.com>
2
3         * NEWS: Document exception-handling change.
4
5 2010-12-09  Marc Khouzam  <marc.khouzam@ericsson.com>
6
7         * mi/mi-parse.c (mi_parse): Wrong error message.
8
9 2010-12-09  Doug Evans  <dje@google.com>
10
11         * symfile.h (quick_symbol_functions): Clarify usage of
12         map_symbol_filenames.
13
14 2010-12-09  Tom Tromey  <tromey@redhat.com>
15
16         * mi/mi-parse.h (mi_parse): Update.
17         * mi/mi-parse.c (mi_parse_cleanup): New function.
18         (mi_parse): Add 'token' argument.  Throw exception on error.
19         * mi/mi-main.c (mi_print_exception): New function.
20         (mi_execute_command): Use mi_print_exception.  Catch exceptions
21         from mi_parse.
22
23 2010-12-09  Tom Tromey  <tromey@redhat.com>
24
25         PR c++/9593:
26         * thread.c (clear_thread_inferior_resources): Call
27         delete_longjmp_breakpoint.
28         * infrun.c (handle_inferior_event): Handle exception breakpoints.
29         (handle_inferior_event): Likewise.
30         (insert_exception_resume_breakpoint): New function.
31         (check_exception_resume): Likewise.
32         * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
33         * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
34         (step_1): Set thread's initiating frame.
35         (until_next_continuation): New function.
36         (until_next_command): Support exception breakpoints.
37         (finish_command_continuation): Delete longjmp breakpoint.
38         (finish_forward): Support exception breakpoints.
39         * gdbthread.h (struct thread_info) <initiating_frame>: New field.
40         * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
41         bp_exception_master>: New constants.
42         (struct bpstat_what) <is_longjmp>: New field.
43         (set_longjmp_breakpoint): Update.
44         * breakpoint.c (create_exception_master_breakpoint): New function.
45         (update_breakpoints_after_exec): Handle bp_exception_master.  Call
46         create_exception_master_breakpoint.
47         (print_it_typical): Handle bp_exception_master, bp_exception.
48         (bpstat_stop_status): Handle bp_exception_master.
49         (bpstat_what): Handle bp_exception_master, bp_exception,
50         bp_exception_resume.
51         (bptype_string): Likewise.
52         (print_one_breakpoint_location): Likewise.
53         (allocate_bp_location): Likewise.
54         (set_longjmp_breakpoint): Handle exception breakpoints.  Change
55         interface.
56         (delete_longjmp_breakpoint): Handle exception breakpoints.
57         (mention): Likewise.
58         (struct until_break_command_continuation_args) <thread_num>: New
59         field.
60         (until_break_command_continuation): Call
61         delete_longjmp_breakpoint.
62         (until_break_command): Support exception breakpoints.
63         (delete_command): Likewise.
64         (breakpoint_re_set_one): Likewise.
65         (breakpoint_re_set): Likewise.
66
67 2010-12-08  Doug Evans  <dje@google.com>
68
69         * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
70
71         * gdbtypes.c (check_typedef): Tweak comment.
72
73         PR symtab/12302
74         * dwarf2read.c (struct psymtab_cu_index_map): New struct.
75         (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
76         (struct addrmap_index_data): New struct.
77         (add_address_entry): Remove arg `pst', new args `start', `end'.
78         (add_address_entry_worker, write_address_map): New functions.
79         (write_psymtabs_to_index): Address table generation moved to
80         write_address_map.  Build a table mapping psymtab to CU index
81         to pass to it.
82
83         * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
84         name to perror.
85
86         * symfile.h (quick_symbol_functions): Clarify usage of
87         expand_symtabs_with_filename.
88         * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
89         comp units, ignore type units.
90
91         * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
92
93 2010-12-07  Doug Evans  <dje@google.com>
94
95         * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
96         gdb_realpath.
97
98         PR python/12227
99         * NEWS: Mention -data-directory.
100         * main.c (captured_main): Recognize -data-directory.
101
102 2010-12-06  Marc Khouzam  <marc.khouzam@ericsson.com>
103
104         * mi/mi-parse.c (mi_parse): Missing else.
105
106 2010-12-04  Masaki Muranaka  <monaka@monami-software.com>
107
108         * configure.tgt: Accept microblaze*-*-linux* for linux target
109         and microblaze*-*-* for  as target.
110
111 2010-12-02  Keith Seitz  <keiths@redhat.com>
112
113         * linespec.c (find_method): Move name canonicalization outside
114         the loop.
115         Be paranoid and use a cleanup.
116
117 2010-12-01  Doug Evans  <dje@google.com>
118
119         * dwarf2read.c (save_gdb_index_command): Add comment.
120
121 2010-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
122
123         * valops.c (value_assign): Returned value is never lazy.  If a
124         C++ class type is returned, fix incorrect enclosing type / embedded
125         offset.  If internal variable is returned, allocate new internalvar
126         value using value_of_internalvar.
127
128         * NEWS: Document changes in behavior of "print x = 0" and similar
129         expressions.
130
131 2010-11-29  Doug Evans  <dje@google.com>
132
133         * python/lib/gdb/printing.py (register_pretty_printer): Change
134         printer-name:subprinter-name to printer-name;subprinter-name.
135         * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
136         Ditto.
137         (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
138
139 2010-11-29  Tom Tromey  <tromey@redhat.com>
140
141         * opencl-lang.c (lval_func_check_synthetic_pointer): New
142         function.
143         * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
144         New fields.
145         (value_bits_synthetic_pointer): Declare.
146         * value.c (value_bits_synthetic_pointer): New function.
147         * valprint.c (valprint_check_validity): Handle synthetic
148         pointers.
149         * valops.c (value_ind): Use new 'indirect' lval_funcs method.
150         * valarith.c (value_ptradd): Use set_value_component_location.
151         * p-valprint.c (pascal_object_print_value_fields): Handle
152         synthetic pointers.
153         * jv-valprint.c (java_print_value_fields): Handle synthetic
154         pointers.
155         * dwarf2read.c (dwarf_stack_op_name): Add
156         DW_OP_GNU_implicit_pointer.
157         (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
158         arguments.  Handle location lists.
159         (fill_in_loclist_baton): New function.
160         (dwarf2_symbol_mark_computed): Use it.
161         * dwarf2loc.h (dwarf2_find_location_expression): Declare.
162         (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
163         arguments.
164         * dwarf2loc.c (dwarf2_find_location_expression): Rename from
165         find_location_expression.  No longer static.  Update all callers.
166         (dwarf_expr_frame_pc): New function.
167         (per_cu_dwarf_call): Add get_frame_pc, baton arguments.  Update
168         all callers.
169         (struct piece_closure) <per_cu>: New field.
170         (allocate_piece_closure): Add per_cu argument.
171         (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
172         (check_pieced_value_bits): Remove validity argument, add check_for
173         argument.  Handle DWARF_VALUE_IMPLICIT_POINTER.
174         (check_pieced_value_validity, check_pieced_value_invalid):
175         Update.
176         (check_pieced_synthetic_pointer): New function.
177         (get_frame_address_in_block_wrapper): New function.
178         (indirect_pieced_value): New function.
179         (pieced_value_funcs): Update.
180         (invalid_synthetic_pointer): New function.
181         (dwarf2_evaluate_loc_desc_full): Rename from
182         dwarf2_evaluate_loc_desc.  Add byte_offset argument.
183         (dwarf2_evaluate_loc_desc): Rewrite.
184         (dwarf2_loc_desc_needs_frame): Set new field on context.
185         (get_ax_pc): New function.
186         (disassemble_dwarf_expression): Handle
187         DW_OP_GNU_implicit_pointer.
188         * dwarf2expr.h (enum dwarf_value_location)
189         <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
190         (struct dwarf_expr_context) <get_frame_pc>: New field.
191         (struct dwarf_expr_piece) <v.ptr>: New field.
192         * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
193         (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
194         * dwarf2-frame.c (no_get_frame_pc): New function.
195         (execute_stack_op): Set new field on context.
196         * cp-valprint.c (cp_print_value_fields): Handle synthetic
197         pointers.
198
199 2010-11-29  Phil Muldoon  <pmuldoon@redhat.com>
200
201         PR python/12199
202
203         * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
204
205 2010-11-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
206
207         Fix step_resume_breakpoint unsaved during an infcall.
208         * gdbthread.h (struct thread_control_state): Move here field
209         step_resume_breakpoint ...
210         (struct thread_info): ... from here.
211         * infrun.c (save_infcall_control_state): Reset
212         control.step_resume_breakpoint to NULL.
213         (restore_infcall_control_state, discard_infcall_control_state): Delete
214         control.step_resume_breakpoint.
215         * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
216         the moved field.
217
218 2010-11-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
219
220         Rename and move inferior_thread_state and inferior_status.
221         * gdbthread.h (struct thread_control_state): New struct, move fields
222         step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
223         trap_expected, proceed_to_finish, in_infcall, step_over_calls,
224         stop_step and stop_bpstat here from struct thread_info.
225         (struct thread_suspend_state): New struct, move field stop_signal here
226         from struct thread_info.
227         (struct thread_info): Move the fields above from this struct.
228         * inferior.h: Move the inferior_thread_state and inferior_status
229         declarations comment to their definitions at infrun.c.
230         (struct inferior_control_state): New struct, move field stop_soon from
231         struct inferior here.
232         (struct inferior_suspend_state): New empty struct.
233         (struct inferior): New fields control and suspend.  Move out field
234         stop_soon.
235         * infrun.c (struct inferior_thread_state): Rename to ...
236         (infcall_suspend_state): ... here.  Replace field stop_signal by
237         fields thread_suspend and inferior_suspend.
238         (save_inferior_thread_state): Rename to ...
239         (save_infcall_suspend_state): ... here.  New variable inf.  Update the
240         code for new fields.
241         (restore_inferior_thread_state): Rename to ...
242         (restore_infcall_suspend_state): ... here.  New variable inf.  Update
243         the code for new fields.
244         (do_restore_inferior_thread_state_cleanup): Rename to ...
245         (do_restore_infcall_suspend_state_cleanup): ... here.
246         (make_cleanup_restore_inferior_thread_state): Rename to ...
247         (make_cleanup_restore_infcall_suspend_state): ... here.
248         (discard_inferior_thread_state): Rename to ...
249         (discard_infcall_suspend_state): ... here.
250         (get_inferior_thread_state_regcache): Rename to ...
251         (get_infcall_suspend_state_regcache): ... here.
252         (struct inferior_status): Rename to ...
253         (struct infcall_control_state): ... here.  Replace fields
254         step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
255         trap_expected, proceed_to_finish, in_infcall, step_over_calls,
256         stop_step, stop_bpstat and stop_soon by fields thread_control and
257         inferior_control.
258         (save_inferior_status): Rename to ...
259         (save_infcall_control_state): ... here.  Update the code for new
260         fields.
261         (restore_inferior_status): Rename to ...
262         (restore_infcall_control_state): ... here.  Update the code for new
263         fields.
264         (do_restore_inferior_status_cleanup): Rename to ...
265         (do_restore_infcall_control_state_cleanup): ... here.
266         (make_cleanup_restore_inferior_status): Rename to ...
267         (make_cleanup_restore_infcall_control_state): ... here.
268         (discard_inferior_status): Rename to ...
269         (discard_infcall_control_state): ... here.
270         * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
271         exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
272         inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
273         mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
274         solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
275         references to the moved fields and renamed functions.
276
277 2010-11-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
278
279         * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
280         the comment.
281         (save_inferior_thread_state): Reset tp->stop_signal.
282
283 2010-11-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
284
285         * infcall.c (call_function_by_hand): Remove variable
286         caller_state_cleanup.
287
288 2010-11-25  Marc Khouzam  <marc.khouzam@ericsson.com>
289
290         PR breakpoints/12217
291
292         * breakpoint.c (is_marker_spec): Check for NULL.
293
294 2010-11-25  Pedro Alves  <pedro@codesourcery.com>
295
296         * breakpoint.h: No longer include python.h or python-internal.h.
297         (struct breakpoint_object): Forward declare.
298         * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
299         * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
300         * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
301         PyObject pointer.
302         (gdbpy_breakpoint_created): Remove casts around py_bp_object
303         accesses.
304
305 2010-11-24  Joel Brobecker  <brobecker@adacore.com>
306
307         * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
308         only if HAVE_ELF is defined.
309
310 2010-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
311
312         Code cleanup.
313         * infrun.c (struct inferior_status) <stepping_over_breakpoint>
314         (save_inferior_status) <stepping_over_breakpoint>
315         (restore_inferior_status) <stepping_over_breakpoint>: Rename to
316         trap_expected.
317         (struct inferior_status) <step_resume_break_address>: Remove.
318
319 2010-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
320
321         Code cleanup.
322         * infrun.c (struct inferior_status, save_inferior_status)
323         (restore_inferior_status): Group and reorder the fields, comment their
324         groups.
325
326 2010-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
327
328         Code cleanup.
329         * dictionary.c
330         (struct dict_vector) <iter_match_first, iter_match_next>
331         (iter_match_first_hashed, iter_match_next_hashed)
332         (iter_match_first_linear, iter_match_next_linear)
333         (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
334         (iter_match_next_hashed, iter_match_first_linear)
335         (iter_match_next_linear): Use symbol_compare_ftype.
336         * dictionary.h: Include symfile.h.
337         (dict_iter_match_first, dict_iter_match_next): Use
338         symbol_compare_ftype.
339         * dwarf2read.c (dw2_map_matching_symbols): Likewise.
340         * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
341         (map_matching_symbols_psymtab): Likewise.
342         * symfile.h (symbol_compare_ftype): New typedef.
343         (struct quick_symbol_functions) <map_matching_symbols): Use
344         symbol_compare_ftype.
345
346 2010-11-23  Tom Tromey  <tromey@redhat.com>
347
348         * configure: Rebuild.
349         * configure.ac (READLINE_TEXI_INCFLAG): New subst.
350
351 2010-11-19  Tom Tromey  <tromey@redhat.com>
352
353         * Makefile.in (SUBDIRS): Add doc.
354         * configure: Rebuild.
355         * configure.ac: Don't configure in doc.  Create doc/Makefile.
356
357 2010-11-23  Phil Muldoon  <pmuldoon@redhat.com>
358
359         PR python/12212
360
361         * python/py-inferior.c (find_thread_object): Check if PIDGET
362         returns 0.
363
364 010-11-22  Joel Brobecker  <brobecker@adacore.com>
365
366         * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
367
368 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
369
370         * ada-lang.c (ada_to_fixed_type): Expand function documentation.
371         Return the original type if the main type portions match rather
372         than when the type themselves match.
373
374 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
375
376         * ada-lang.c (ada_template_to_fixed_record_type_1):
377         For dynamic fields, check the field size against the maximum
378         object size.
379
380 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
381
382         * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
383         function.
384         (mips_irix_n32_stack_tramp_frame): New static global.
385         (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
386         list of unwinder.
387
388 2010-11-22  Jerome Guitton  <guitton@adacore.com>
389
390         * ada-tasks.c (get_tcb_types_info): Use C lookups to get
391         ATCB symbols.
392
393 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
394
395         * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
396         if type1 is a typedef.
397
398 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
399
400         * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
401         "_finalizer" to the list.
402
403 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
404
405         * symfile.c: Remove all "#if 0"/"#endif" blocks.
406
407 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
408
409         * symfile.c: Add missing second space after period in various comments.
410
411 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
412
413         * ada-typeprint.c (print_array_type): Fix formatting in comment.
414         (print_selected_record_field_types): Fix formatting in function
415         documentation.
416
417 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
418
419         * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
420         in name of "show ravenscar" prefix command name.
421
422 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
423
424         * ravenscar-thread.c (show_ravenscar_task_switching_command):
425         Add missing '\n' in output.
426
427 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
428
429         * ravenscar-thread.c (running_thread_name): Change value.
430         (read_thread_id): Remove advance declaration.
431         (get_running_thread_msymbol): New function.
432         (has_ravenscar_runtime): Use get_running_thread_msymbol to
433         compute msym_running_thread.
434         (get_running_thread_id): Renames read_thread_id. Slight modifications
435         to not take any argument anymore, using get_running_thread_msymbol
436         to determine which symbol to use instead.
437         (ravenscar_running_thread): Use get_running_thread_id instead of
438         read_thread_id.
439
440 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
441
442         * ravenscar-sparc-thread.c (supply_register_at_address):
443         Fix passing of buf in call to regcache_raw_supply.
444
445 2010-11-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
446
447         * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
448
449 2010-11-22  Tom Tromey  <tromey@redhat.com>
450
451         * Makefile.in (.PRECIOUS): Reference ada-lex.c.
452
453 2010-11-19  Keith Seitz  <keiths@redhat.com>
454
455         * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
456         Remove extraneous '/' after $(DESTDIR).
457         (PYTHON_INSTALL_DIR): Likewise.
458
459 2010-11-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
460
461         Fix stale memory references.
462         * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
463         xfree, new comment.
464
465 2010-11-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
466             Tom Tromey  <tromey@redhat.com>
467
468         * Makefile.in (.y.c): Directly create $@ from YLWRAP.
469         (.PHONY): Remove for .y outputs.
470
471 2010-11-19  Will Drewry  <wad@google.com>
472             Tavis Ormandy  <taviso@google.com>
473             Jan Kratochvil  <jan.kratochvil@redhat.com>
474
475         * dwarf2read.c (decode_locdesc): Enforce location description stack
476         boundaries.
477
478 2010-11-18  Pierre Muller  <muller@ics.u-strasbg.fr>
479
480         * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
481         instruction is found.
482
483 2010-11-17  Tom Tromey  <tromey@redhat.com>
484
485         * value.c (value_entirely_optimized_out): Check the
486         'check_any_valid' field.
487
488 2010-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
489
490         * ada-lang.c (modify_general_field): Remove.
491         (make_array_descriptor): Replace all modify_general_field calls by
492         modify_field.
493         * value.c (modify_field): Update comment.  New variable bytesize.
494         Normalize BITPOS.  Initialize BYTESIZE, use it.
495
496 2010-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
497
498         * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
499         elements after xfree.
500
501 2010-11-16  Tom Tromey  <tromey@redhat.com>
502
503         * gdb-add-index.sh: Really remove.
504
505 2010-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
506
507         Code cleanup.
508         * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
509         (init_one_comp_unit): ... this one.
510         (prepare_one_comp_unit): New prototype.
511         (dw2_require_line_header, process_psymtab_comp_unit): Use
512         init_one_comp_unit.
513         (process_psymtab_comp_unit): Use prepare_one_comp_unit.
514         (load_partial_comp_unit): Remove variable attr.  Use
515         init_one_comp_unit with xmalloc.  Use prepare_one_comp_unit.
516         (load_full_comp_unit): Use init_one_comp_unit with xmalloc.  Use
517         prepare_one_comp_unit.
518         (read_signatured_type): Remove variable attr.  Use init_one_comp_unit.
519         Use prepare_one_comp_unit.
520         (alloc_one_comp_unit): Rename to ...
521         (init_one_comp_unit): ... here and remove there calloc, new parameter
522         cu.
523         (prepare_one_comp_unit): New function.
524
525 2010-11-14  Pierre Muller  <muller@ics.u-strasbg.fr>
526
527         * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
528         possible used of uninitialized variable.
529
530 2010-11-12  Nathan Froyd  <froydnj@codesourcery.com>
531
532         * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
533         (rs6000_gdbarch_init): Call it.
534
535 2010-11-12  Nathan Froyd  <froydnj@codesourcery.com>
536
537         * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
538         instructions if debugging an E500 binary.
539
540 2010-11-12  Tom Tromey  <tromey@redhat.com>
541
542         * varobj.c (value_get_print_value): Rearrange.  Pass stream to
543         apply_varobj_pretty_printer.
544         * c-lang.c: Include exceptions.h.
545         (c_get_string): Throw MEMORY_ERROR when appropriate.
546         * python/py-prettyprint.c (enum string_repr_result): New.
547         (print_stack_unless_memory_error): New function.
548         (print_string_repr): Change return type.  Use
549         print_stack_unless_memory_error.
550         (print_children): Use print_stack_unless_memory_error.
551         (apply_val_pretty_printer): Update.  Don't print children if
552         string representation threw an exception.
553         (apply_varobj_pretty_printer): Add 'stream' argument.  Use
554         print_stack_unless_memory_error.
555         * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
556         globals.
557         (_initialize_python): Initialize them.
558         * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
559         gdbpy_convert_exception.
560         (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
561         (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
562         (gdbpy_convert_exception): Declare.
563         (apply_varobj_pretty_printer): Update.
564         * python/py-utils.c (gdbpy_convert_exception): New function.
565
566 2010-11-12  Marc Khouzam  <marc.khouzam@ericsson.com>
567
568         * mi/mi-main.c (mi_cmd_target_detach): Accept new
569         thread-group id format.
570
571 2010-11-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
572
573         * spu-tdep.c (spu_catch_start): Fix compilation error typo.
574
575 2010-11-11  Phil Muldoon  <pmuldoon@redhat.com>
576
577         * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
578         NULL.
579         (BPPY_SET_REQUIRE_VALID): Ditto.
580         (bpnum_is_valid): Delete function.
581         (bppy_get_visibility): New function.
582         (bppy_new): Parse for, and validate internal keyword.  Pass
583         internal keyword to breakpoint or watchpoint functions.
584         (build_bp_list): New function.
585         (gdbpy_breakpoints): Rewrite.  Use build_bp_list and
586         iterate_over_breakpoints.
587         (gdbpy_breakpoint_created): Rewrite.  Do not store breakpoints in a
588         look-aside vector.
589         (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
590         to internal breakpoint chain.
591
592         * breakpoint.c (set_breakpoint_number): New function.
593         (breakpoint_1): Check if breakpoint number is more than zero.
594         (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
595         (create_breakpoint_sal): Take a new parameter called internal.
596         Call set_breakpoint_number with internal parameter.  Do not
597         mention internal breakpoints.  All callers updated.
598         (create_breakpoint): Ditto.
599         (create_breakpoints_sal): Ditto.
600         (watch_command_1): Ditto.
601         (watch_command_wrapper): Take a new parameter called internal.
602         All callers updated.
603         (rwatch_command_wrapper): Ditto.
604         (awatch_command_wrapper): Ditto.
605         (save_breakpoints): Update breakpoint save condition check.
606         (iterate_over_breakpoints): New function.
607         * breakpoint.h: Add conditional python includes.  Add py_bp_object
608         and comment to struct breakpoint.  Update all callers.
609         * defs.h: Add PyObject definition for GDB builds without Python.
610
611 2010-11-10  Doug Evans  <dje@google.com>
612
613         * python/lib/gdb/command/pretty_printers.py
614         (do_enable_pretty_printer_1): Handle printer.subprinters is None.
615
616         * value.c (set_value_enclosing_type): Renamed from
617         value_change_enclosing_type.  All callers updated.
618         * value.h (set_value_enclosing_type): Update.
619         * valops.c (value_full_object): Always return a copy if we need to
620         make changes to the input value.
621
622 2010-11-09  Pedro Alves  <pedro@codesourcery.com>
623
624         * breakpoint.c (watch_command_1): Get a pointer of the lazy
625         version of the expression's value, even if reading the value from
626         memory fails.  When creating a -location watchpoint, get the
627         value's address from the lazy value pointer.
628
629 2010-11-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
630
631         * infrun.c (restore_inferior_thread_state): Use
632         discard_inferior_thread_state to free the data.
633         (discard_inferior_thread_state): xfree also siginfo_data.
634
635 2010-11-05  Doug Evans  <dje@google.com>
636
637         Make gdb.parameter("directories") work.
638         New command "set directories".
639         * NEWS: Document them.
640         * source.c (set_directories_command): New function.
641         (show_directories_1): Renamed from show_directories.
642         All callers updated.
643         (show_directories_command): New function.
644         (_initialize_source): Install "directories" as a set/show
645         variable instead of just a show command.
646
647 2010-11-05  Ken Werner  <ken.werner@de.ibm.com>
648
649         * NEWS: Mention OpenCL C language support.
650         * Makefile.in (SFILES): Add opencl-lang.c.
651         (COMMON_OBS): Add opencl-lang.o.
652         * opencl-lang.c: New File
653         * defs.h (enum language): Add language_opencl.
654         * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
655         IBM XL C OpenCL compiler.
656         * c-lang.h: Include "parser-defs.h".
657         (evaluate_subexp_c): Declare.
658         * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
659         (c_op_print_tab): Add declaration.
660         * eval.c (binop_promote): Handle language_opencl.
661         * c-exp.y: Lookup the primitive types instead of referring to the
662         builtins.
663
664 2010-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
665
666         Fix configure --enable-plugins --without-python.
667         * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
668         * configure: Regenerate.
669
670 2010-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
671
672         * solib.c (solib_read_symbols): Call exception_fprintf even without
673         FROM_TTY.  Print also so->so_name.
674
675 2010-11-04  Sami Wagiaalla  <swagiaal@redhat.com>
676
677         * gdbtypes.h (struct rank): Created subrank.
678         * gdbtypes.c: Initialized subrank for all
679         'BADNESS' constants.
680         (distance_to_ancestor): New function.
681         (is_ancestor): Use distance_to_ancestor.
682         (is_public_ancestor): Ditto.
683         (sum_ranks): Handle subrank.
684         (compare_ranks): Ditto.
685         (rank_one_type): Subrank base conversions.
686
687 2010-11-04  Sami Wagiaalla  <swagiaal@redhat.com>
688
689         * gdbtypes.h: Create struct rank.
690         Convert all 'BADNESS' macros to const struct rank declarations.
691         (sum_ranks): New function.
692         (compare_ranks): New function.
693         * valops.c (find_oload_champ): Updated.
694         (classify_oload_match): Use compare_ranks.
695         Improved comments.
696         (compare_parameters): Use compare_ranks.
697         * gdbtypes.c: Initialize 'BADNESS' constants.
698         (sum_ranks): New function.
699         (compare_ranks): New function.
700         (compare_badness): Use compare_ranks.
701         (rank_function): Use global constants instead of literals.
702         (rank_one_type): Ditto.
703         Return struct rank.
704         Use sum_ranks.
705
706 2010-11-04  Doug Evans  <dje@google.com>
707
708         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
709         (find_pretty_printer): Fix comments.
710
711 2010-11-04  Hui Zhu  <teawater@gmail.com>
712
713         * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
714
715 2010-11-03  Joel Brobecker  <brobecker@adacore.com>
716
717         * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
718         and `len' declaration and computation inside block where they
719         are being used.
720
721 2010-11-03  Joel Brobecker  <brobecker@adacore.com>
722
723         * valprint.c (val_print_array_elements): Put back handling of
724         empty arrays.
725
726 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
727
728         * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
729         DIE and set the length of the type.
730         * gdbtypes.h (get_array_bounds): Move here from valprint.h.
731         * gdbtypes.c (get_array_bounds): Move here from valprint.c and
732         return 0 if the corresponding bounds of the type are undefined.
733         * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
734         * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
735         (val_print_array_elements): Use get_array_bounds to compute the number
736         of array elements instead of dividing the length of the array by the
737         length of the element types.
738         * valarith.c (vector_binop): Likewise.
739         * valops.c (value_cast): Likewise.
740         * c-valprint.c (c_val_print): Likewise.
741         * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
742
743 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
744
745         * valarith.c (value_pos, value_neg, value_complement): Handle
746         vector types.
747         * valops.c (value_one): Likewise.
748
749 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
750
751         * value.h (value_non_lval): Declare.
752         * value.c (value_non_lval): New function.
753         * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
754         UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
755         non-lvalue.
756
757 2010-11-02  Doug Evans  <dje@google.com>
758
759         New python module gdb.printing, and new commands info pretty-printer,
760         enable pretty-printer, disable pretty-printer.
761         * NEWS: Mention them.
762         * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
763         gdb/command/__init__.py, gdb/command/pretty_printers.py.
764         * python/lib/gdb/__init__.py: Install pretty-printer commands.
765         * python/lib/gdb/printing.py: New file.
766         * python/lib/gdb/command/__init__.py: New file.
767         * python/lib/gdb/command/pretty_printers.py: New file.
768
769 2010-11-02  Tom Tromey  <tromey@redhat.com>
770
771         * NEWS: Mention Guile removal.
772         * defs.h (enum language) <language_scm>: Remove.
773         * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
774         scm-valprint.c.
775         (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
776         (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
777         * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
778         Remove.
779
780 2010-11-02  Doug Evans  <dje@google.com>
781
782         * top.c: #include "python/python.h".
783         (gdb_init): Add a comment regarding initialize_all_files.
784         Call finish_python_initialization at the end.
785         * python/python.h (finish_python_initialization): Declare.
786         * python/python.c (finish_python_initialization): New function.
787         (_initialize_python): Move python-implemented initialization there
788         and call it.
789         (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
790
791 2010-11-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
792
793         Revert:
794         2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
795                     Pedro Alves  <pedro@codesourcery.com>
796         * gdbthread.h (currently_stepping): New declaration.
797         * infrun.c (currently_stepping): Remove the forward declaration.
798         (currently_stepping): Make it global.
799         * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
800         variables tp and step, initialized them.  Pass STEP to to_resume.
801         Print also possibly "PTRACE_SINGLESTEP" if STEP.  Initialize LP->STEP.
802         * remote.c (currently_stepping_callback): New.
803         (remote_vcont_resume)
804         <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
805         New variable tp.  Call currently_stepping_callback and step such
806         thread.
807
808 2010-11-01  Hui Zhu  <teawater@gmail.com>
809
810         * tracepoint.c (tfile_xfer_partial): Change lma to vma.
811
812 2010-10-28  Hui Zhu  <teawater@gmail.com>
813
814         * tracepoint.c (trace_save): Change utp->actions to
815         utp->step_actions.
816
817 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
818
819         * (_FILE_OFFSET_BITS): Fix typo in comment.
820
821 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
822
823         * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
824         (PyEval_InitThreads): Remove duplicate. Define as nothing.
825         (PyEval_ReleaseLock): Define as nothing.
826
827 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
828
829         * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
830         by call to FILENAME_CMP.
831
832 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
833
834         * dictionary.c (dict_hash): Move assignment out of if condition.
835
836 2010-10-22  Jie Zhang  <jie@codesourcery.com>
837
838         * Makefile.in (install): Remove dependency of install-only and
839         recursively invoke make for install-only.
840         * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
841         (install): Pass FLAGS_TO_PASS when recursively make install-only.
842
843 2010-10-20  Hui Zhu  <teawater@gmail.com>
844
845         * tracepoint.c (tfile_get_traceframe_address): Call
846         extract_signed_integer.
847         (tfile_trace_find): Call extract_signed_integer and
848         extract_unsigned_integer.  Change data_size to unsigned int.
849         (tfile_fetch_registers): Call extract_unsigned_integer.
850         (tfile_xfer_partial): Ditto.
851         (tfile_get_trace_state_variable_value): Call
852         extract_signed_integer and extract_unsigned_integer.
853
854 2010-10-20  Vladimir Prus  <vladimir@codesourcery.com>
855
856         * remote.c (remote_get_threadlist): If we got empty
857         response, bail out immediately, and don't emit any
858         warnings.
859
860 2010-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
861
862         * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
863         for "mov pc, REG" as well.
864         (thumb_instruction_changes_pc): Likewise.
865
866 2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>
867
868          PR C++/11500:
869         * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
870         * eval.c (evaluate_subexp_standard): Check for overload of
871         'operator->'.
872         * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
873         (value_x_unop): Ditto.
874         * valops.c: Include "exceptions.h".
875         (find_overload_match): Throw NOT_FOUND_ERROR.
876         (value_struct_elt): Ditto.
877
878 2010-10-19  Tom Tromey  <tromey@redhat.com>
879
880         * python/py-cmd.c (cmdpy_function): Unreference exception state.
881
882 2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>
883
884         * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
885         * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
886         for conversion.
887         Make all other conversions illegal.
888
889 2010-10-18  Doug Evans  <dje@google.com>
890
891         * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
892         assumptions of when this case happens.  Print "<unnamed typedef>".
893
894 2010-10-18  Tom Tromey  <tromey@redhat.com>
895
896         * valprint.c (val_print_string): Pass 'encoding' to
897         LA_PRINT_STRING.
898
899 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
900
901         Fix the `stopped language detection' testcase for gcc-4.5.
902         * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
903         * symfile.c (set_initial_language): Move variable filename to a more
904         inner block.  Prefer LANGUAGE_OF_MAIN.
905         * symtab.c (language_of_main): New variable.
906         (set_main_name): Always reset LANGUAGE_OF_MAIN.
907         * symtab.h (language_of_main): New declaration.
908
909 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
910             Pedro Alves  <pedro@codesourcery.com>
911
912         * gdbthread.h (currently_stepping): New declaration.
913         * infrun.c (currently_stepping): Remove the forward declaration.
914         (currently_stepping): Make it global.
915         * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
916         variables tp and step, initialized them.  Pass STEP to to_resume.
917         Print also possibly "PTRACE_SINGLESTEP" if STEP.  Initialize LP->STEP.
918         * remote.c (currently_stepping_callback): New.
919         (remote_vcont_resume)
920         <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
921         New variable tp.  Call currently_stepping_callback and step such
922         thread.
923
924 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
925
926         * infrun.c (follow_exec): Replace symbol_file_add_main by
927         symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
928         breakpoint_re_set.
929         * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
930         clear_symtab_users.
931         * objfiles.c (free_all_objfiles): Likewise.
932         * remote-m32r-sdi.c (m32r_load): Likewise.
933         * solib-som.c (som_solib_create_inferior_hook): Likewise.
934         * symfile.c (new_symfile_objfile): New comment for add_flags.  Call
935         clear_symtab_users with ADD_FLAGS.
936         (reread_symbols): Use parameter 0 for clear_symtab_users.
937         (clear_symtab_users): New parameter add_flags.  Do not call
938         breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
939         (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
940         * symtab.h (clear_symtab_users): New parameter add_flags.
941
942 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
943
944         Fix GCC false warning.
945         * varobj.c (value_get_print_value) <str_addr>: Initialize it.
946
947 2010-10-16  Pierre Muller  <muller@ics.u-strasbg.fr>
948
949         * p-typeprint.c (pascal_type_print_method_args): Fix problem in
950         display of type of method arguments.
951
952 2010-10-15  Tom Tromey  <tromey@redhat.com>
953
954         PR python/11948:
955         * varobj.c (value_get_print_value): Use val_print_string to print
956         lazy strings.
957         * python/py-prettyprint.c (print_string_repr): Use
958         val_print_string to print lazy strings.  Fix cleanup logic.
959         (print_children): Likewise.
960         * python/python-internal.h (gdbpy_extract_lazy_string): Update.
961         * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
962         Change return type to 'void', add 'addr' argument.
963         * value.h (val_print_string): Update.
964         * valprint.c (val_print_string): Add 'encoding' argument.
965         * printcmd.c (print_formatted): Update.
966         * p-valprint.c (pascal_val_print): Update.
967         * m2-valprint.c (print_unpacked_pointer): Update.
968         (m2_print_array_contents): Likewise.
969         * jv-valprint.c (java_value_print): Update.
970         * f-valprint.c (f_val_print): Update.
971         * c-valprint.c (c_val_print): Update.
972         * auxv.c (fprint_target_auxv): Update.
973
974 2010-10-15  Doug Evans  <dje@google.com>
975             Jan Kratochvil  <jan.kratochvil@redhat.com>
976
977         PR exp/12117
978         * gdbtypes.c (check_typedef): Clean up function comment.
979         Keep track of instance flags as we strip typedefs and create a new
980         type to preserve them if necessary.
981         * gdbtypes.h (type) <instance_flags>: Extend the comment.
982
983 2010-10-15  Pierre Muller  <muller@ics.u-strasbg.fr>
984
985         * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
986
987 2010-10-14  Sami Wagiaalla  <swagiaal@redhat.com>
988
989         * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
990         * gdbtypes.c (rank_one_type): Move type comparison code out of here
991         to...
992         (types_equal): ...here. And changed it as follows:
993         Outside of typedefs type must be of the same TYPE_CODE.
994         When compairing two pointers or references they are equal if their
995         targets are equal.
996         Correct pointer conversions.
997
998 2010-10-14  Pierre Muller  <muller@ics.u-strasbg.fr>
999
1000         * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1001         having fields without names.
1002
1003 2010-10-13  Tom Tromey  <tromey@redhat.com>
1004
1005         * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1006
1007 2010-10-13  Doug Evans  <dje@google.com>
1008
1009         New python module gdb.types.
1010         * NEWS: Document it.
1011         * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1012         * python/lib/gdb/types.py: New file.
1013
1014         * c-typeprint.c: Whitespace cleanup.
1015         (cp_type_print_method_args): Remove unnecessary forward decl.
1016         (cp_type_print_derivation_info): Ditto.
1017         (c_type_print_varspec_prefix): Mark as static at definition.
1018         (c_type_print_modifier): Fix arg descriptions.
1019
1020 2010-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1021
1022         * python/py-breakpoint.c (bppy_set_condition): New comment.
1023         * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1024         failed PyUnicode_Decode.
1025         (cmdpy_completer): Skip element for failed
1026         python_string_to_host_string.
1027         (cmdpy_init): Return -1 on failed python_string_to_host_string.
1028         * python/py-frame.c (frapy_read_var): Extend the function comment.
1029         * python/py-function.c (fnpy_init): Return -1 on failed
1030         python_string_to_host_string.
1031         * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1032         the function comment.
1033         (infpy_search_memory): Extend the function comment.  Remove the
1034         PyErr_SetString call on already set error state.
1035         * python/py-param.c (set_parameter_value): Extend the function
1036         comment.  Return -1 on failed python_string_to_host_string, twice.
1037         (set_attr): Extend the function comment.
1038         (compute_enum_values): Extend the function comment.  New variable
1039         back_to.  Protect self->enumeration by BACK_TO cleanups.  Return 0 on
1040         failed python_string_to_host_string.
1041         (get_doc_string): Call gdbpy_print_stack on failed
1042         python_string_to_host_string.
1043         (parmpy_init): Extend the function comment.
1044         * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1045         (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1046         failed python_string_to_host_string.
1047         * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1048         (valpy_binop, valpy_richcompare): Extend the function comment.
1049         * python/python.c
1050         (struct python_env) <error_type, error_value, error_traceback>: New
1051         fields.
1052         (restore_python_env): Handle PyErr_Occurred.  Call PyErr_Restore.
1053         (ensure_python_env): Call PyErr_Fetch.
1054         * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1055         failed convert_value_from_python.
1056         (value_get_print_value): Call gdbpy_print_stack on failed
1057         python_string_to_target_python_string.
1058
1059 2010-10-12  Tom Tromey  <tromey@redhat.com>
1060
1061         * python/py-prettyprint.c (search_pp_list): Fix error checking.
1062
1063 2010-10-12  Sami Wagiaalla  <swagiaal@redhat.com>
1064
1065         * gdbtypes.c (do_is_ancestor): New function.
1066         (is_ancestor): Use do_is_ancestor.
1067         (is_public_ancestor): Use do_is_ancestor.
1068
1069 2010-10-12  Pierre Muller  <muller@ics.u-strasbg.fr>
1070
1071         * ser-go32.c (struct dos_ops): Add missing fdopen field.
1072
1073 2010-10-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1074
1075         * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1076
1077 2010-10-11  Doug Evans  <dje@google.com>
1078
1079         * c-typeprint.c (c_type_print_modifier): Add note that this prints
1080         the address space id too.
1081
1082 2010-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1083
1084         Fix attaching to re-prelinked executables on ppc64.
1085         * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1086         initialize it, try to adjust FILESZ field by it.
1087
1088 2010-10-08  Daniel Jacobowitz  <dan@codesourcery.com>
1089
1090         * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1091         messages if info_verbose.
1092
1093 2010-10-08  Ken Werner  <ken.werner@de.ibm.com>
1094
1095         * valops.c (value_cast): Handle vector types.
1096         * valarith.c (value_binop): Widen scalar to vector if appropriate.
1097
1098 2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
1099
1100         * arm-tdep.c (thumb_expand_immediate): New function.
1101         (thumb_instruction_changes_pc): Likewise.
1102         (thumb2_instruction_changes_pc): Likewise.
1103         (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1104         prologue parsing.  Improved support for optimized code.
1105         (thumb_scan_prologue): Do not reply on line-number information,
1106         use same heuristics as arm_scan_prologue insead.
1107         (skip_prologue_function): Accept functions
1108         "__tls_get_addr" and "__aeabi_read_tp".
1109
1110 2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
1111             Daniel Jacobowitz  <dan@codesourcery.com>
1112
1113         * arm-tdep.c (thumb_in_function_epilogue_p)
1114         (arm_in_function_epilogue_p): New.
1115         (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1116         gdbarch_in_function_epilogue_p callback.
1117
1118 2010-10-07  Doug Evans  <dje@google.com>
1119
1120         * cc-with-index.sh (output_file): Default to a.out.
1121
1122         * dwarf2read.c (mapped_index): Rename member index_table to
1123         symbol_table and index_table_slots to symbol_table_slots.
1124         All uses updated.
1125         (create_symbol_hash_table): Renamed from create_index_table.
1126         All callers updated.
1127         (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1128         (write_hash_table): Rename local index_table to symbol_hash_table.
1129
1130         * addrmap.h (addrmap_foreach_fn): New typedef.
1131         (addrmap_foreach): Declare.
1132         * addrmap.c (struct addrmap_funcs): New member foreach.
1133         (addrmap_foreach): New function.
1134         (addrmap_fixed_foreach): New function.
1135         (addrmap_fixed_funcs): Update.
1136         (struct mutable_foreach_data): New struct.
1137         (addrmap_mutable_foreach_worker): New function.
1138         (addrmap_mutable_foreach): New function.
1139         (addrmap_mutable_funcs): Update.
1140
1141 2010-10-07  Paul Hilfinger  <hilfinger@adacore.com>
1142
1143         * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1144         more cases.
1145
1146 2010-10-07  Paul Hilfinger  <hilfinger@adacore.com>
1147
1148         * ada-lang.c (full_match): Declare.
1149         (ada_match_name): Rename to match_name (we should avoid prefixing static
1150         symbols with "ada_").
1151         (match_name): New name for ada_match_name.
1152         (struct ada_psym_data): Remove and replace with...
1153         (struct match_data): User data for map_matching_symbols.
1154         (ada_add_psyms): Remove.
1155         (aux_add_nonlocal_symbols): New function, used as callback for
1156         map_matching_symbols.
1157         (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1158         symbols.
1159         (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1160         (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1161         Rework to use map_matching_symbols instead of map_ada_symtabs.
1162         (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1163         * psymtab.c: Include dependency on dictionary.h.
1164         (match_partial_symbol): New function.
1165         (ada_lookup_partial_symbol): Remove.
1166         (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1167         (map_matching_symbols_psymtab): New function.
1168         (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1169         * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1170
1171 2010-10-06  Paul Hilfinger  <hilfinger@adacore.com>
1172
1173         * ada-lang.c (ada_match_name): Use new API for wild_match.
1174         (wild_match): Change API to be consistent with that of strcmp_iw;
1175         return 0 for a match, and switch operand order.
1176         (full_match): New function.
1177         (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1178         matching to allow use of hashing.
1179         * dictionary.c (struct dict_vector): Generalize iter_name_first,
1180         iter_name_next ot iter_match_first, iter_match_next.
1181         (iter_name_first_hashed): Replace with iter_match_first_hashed.
1182         (iter_name_next_hashed): Replace with iter_match_next_hashed.
1183         (iter_name_first_linear): Replace with iter_match_first_linear.
1184         (iter_name_next_linear): Replace with iter_match_next_linear.
1185         (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1186         (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1187         (dict_iter_match_first): New function.
1188         (dict_iter_match_next): New function.
1189         (dict_hash): New function.
1190         * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1191         * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
1192
1193 2010-10-06  Doug Evans  <dje@google.com>
1194
1195         * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1196
1197 2010-10-06  Ken Werner  <ken.werner@de.ibm.com>
1198
1199         * dwarf2read.c (read_tag_const_type): Handle const arrays.
1200
1201 2010-10-06  Doug Evans  <dje@google.com>
1202
1203         * Makefile.in (REQUIRED_SUBDIRS): New var.
1204         (subdir_do): Verify required subdir Makefiles exist.
1205
1206         Create subdir data-directory.
1207         * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1208         data-directory/Makefile.in.
1209         (SUBDIRS): Add data-directory.
1210         (all): Remove xml-syscall-copy dependency.
1211         (xml-syscall-copy): Moved to data-directory/Makefile.in as
1212         stamp-syscalls.
1213         (xml-syscall-install): Moved to data-directory/Makefile.in as
1214         install-syscalls.
1215         (install-only): Remove xml-syscall-install dependency.
1216         (all-data-directory): New rule.
1217         (data-directory/Makefile): New rule.
1218         * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1219         * configure: Regenerate.
1220         * data-directory/Makefile.in: New file.
1221         * python/lib/gdb/__init__.py: New file.
1222
1223 2010-10-06  Joel Brobecker  <brobecker@adacore.com>
1224
1225         Fix ARI warnings in advance_wild_match.
1226         * ada-lang.c (advance_wild_match): Delete local variable t2.
1227         Adjust code accordingly.  Minor reformatting.
1228
1229 2010-10-06  Ken Werner  <ken.werner@de.ibm.com>
1230
1231         * gdbtypes.h (struct main_type): Remove flag_nottext.
1232         (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1233         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1234         (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1235         * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1236         of TYPE_FLAG_NOTTEXT.
1237         (init_type): Remove the initialization of the flag_nottext field.
1238         (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1239         TYPE_FLAG_NOTTEXT.
1240         * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1241
1242 2010-10-04  Doug Evans  <dje@google.com>
1243
1244         * cc-with-index.sh: New file.
1245
1246         * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1247         function comment.
1248         (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1249         (create_cus_from_index, create_addrmap_from_index): Ditto.
1250         (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1251         (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1252         (dw2_do_expand_symtabs_matching): Ditto.
1253         (eq_strtab_entry, create_strtab, add_string): Ditto.
1254         (hash_strtab_entry): Ditto.
1255         (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1256         (create_index_table, create_mapped_symtab, find_slot): Ditto.
1257         (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1258         (write_hash_table, add_address_entry, write_psymbols): Ditto.
1259         (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1260         (write_psymtabs_to_index): Ditto.
1261
1262 2010-10-04  Joel Brobecker  <brobecker@adacore.com>
1263
1264         * ada-lang.c: #include "value.h".
1265         (ensure_lval): Delete advance declaration.  Remove gdbarch and sp
1266         arguments.  Implement using value_allocate_space_in_inferior
1267         instead of allocating memory from the stack.
1268         (make_array_descriptor): Remove gdbarch and sp parameters.  Update
1269         calls to ensure_lval.
1270         (ada_convert_actual): Remove gdbarch and sp parameters.  Update
1271         calls to make_array_descriptor and ensure_lval.
1272         * ada-lang.h (ada_convert_actual): Update declaration.
1273         * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1274
1275 2010-10-04  Doug Evans  <dje@google.com>
1276
1277         * python/python.c (_initialize_python): Define new function
1278         GdbSetPythonDirectory in python.  Use it to update sys.path and
1279         gdb.__path__.
1280
1281 2010-10-03  Paul Hilfinger  <hilfinger@adacore.com>
1282
1283         * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1284         incorporating and generalizing print_record_field_types.
1285         (print_record_field_types): Change return value and update comment.
1286         Re-implement using print_selected_record_field_types.
1287         (print_choices): Print "=>" here.
1288         Handle case of unencoded variant branch.
1289         (print_variant_clauses): Reformat comment.
1290         Special-case unencoded variant branch.
1291
1292 2010-10-03  Paul Hilfinger  <hilfinger@adacore.com>
1293
1294         * ada-lang.c (wild_match): Reimplement.
1295         Change API to eliminate unused length argument, reverse arguments and
1296         make 0 the 'true' return value.
1297         (advance_wild_match): New auxiliary function for wild_match to improve
1298         readability.
1299         (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1300         * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1301         API for wild_match.
1302         * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1303         wild_match.
1304         * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1305
1306 2010-10-01  Doug Evans  <dje@google.com>
1307
1308         * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1309         for `save gdb-index' command.
1310
1311 2010-10-01  Tom Tromey  <tromey@redhat.com>
1312
1313         * symfile.h (allocate_symtab): Update.
1314         * symfile.c (allocate_symtab): Make 'filename' const.
1315         * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1316         (add_psymbol_to_list): Likewise.
1317         * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1318         const.
1319         (add_psymbol_to_list): Update.
1320         * mdebugread.c (new_symtab): Make 'name' const.
1321         (psymtab_to_symtab_1): Make 'filename' const.
1322         * elfread.c (elfstab_offset_sections): Update.
1323         * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1324         (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1325         (psymtab_include_file_name): Update.
1326         * dbxread.c (find_stab_function_addr): Make 'filename' const.
1327         * buildsym.h (start_subfile): Update.
1328         * buildsym.c (start_subfile): Make arguments const.
1329
1330 2010-09-30  Ali Lakhia  <lakhia@alumni.utexas.net>
1331
1332         * fork-child.c (breakup_args): Fix crash if shell forking is
1333         disabled at compile time.
1334
1335 2010-10-01  Joel Brobecker  <brobecker@adacore.com>
1336
1337         * ada-lang.c (desc_bounds): Add handling of the case where
1338         the P_BOUNDS field is a pointer to a stub.
1339         (desc_data_target_type): Same for P_ARRAY field.
1340         (ada_check_typedef): Strip the typedef layers from the type
1341         found by ada_find_any_type.
1342
1343 2010-10-01  Joel Brobecker  <brobecker@adacore.com>
1344
1345         * sparc-tdep.c (sparc32_frame_align): New function.
1346         (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1347         * sparc64-tdep.c (sparc64_frame_align): New function.
1348         (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1349
1350 2010-09-30  H.J. Lu  <hongjiu.lu@intel.com>
1351
1352         * defs.h (MAX_REGISTER_SIZE): Set to 64.
1353
1354 2010-09-30  Tom Tromey  <tromey@redhat.com>
1355
1356         * symfile.h (struct sym_fns) <next>: Remove.
1357         (add_symtab_fns): Update.
1358         * symfile.c (sym_fns_ptr): New typedef.
1359         (symtab_fns): Now a VEC.
1360         (add_symtab_fns): Update.  Change argument type.
1361         (find_sym_fns): Update.  Change return type.
1362         (get_symfile_segment_data): Update.
1363         * objfiles.h (struct objfile) <sf>: Now const.
1364         * somread.c (som_sym_fns): Now const.  Update.
1365         * xcoffread.c (xcoff_sym_fns): Now const.  Update.
1366         * mipsread.c (ecoff_sym_fns): Now const.  Update.
1367         * machoread.c (macho_sym_fns): Now const.  Update.
1368         * elfread.c (elf_sym_fns): Now const.  Update.
1369         (elf_sym_fns_gdb_index): Likewise.
1370         * dbxread.c (aout_sym_fns): Now const.  Update.
1371         * coffread.c (coff_sym_fns): Now const.  Update.
1372
1373 2010-09-30  Tom Tromey  <tromey@redhat.com>
1374
1375         * value.c (value_primitive_field): Take 'offset' into account for
1376         packed field.
1377
1378 2010-09-30  Tom Tromey  <tromey@redhat.com>
1379
1380         * completer.c (count_struct_fields): Handle anonymous structs and
1381         unions.
1382         (add_struct_fields): Likewise.
1383
1384 2010-09-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
1385
1386         Fix printing parameters of inlined functions.
1387         * ada-lang.c (is_known_support_routine)
1388         (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1389         for find_frame_funname.
1390         * python/py-frame.c (frapy_name): Likewise.
1391         * stack.c (find_frame_funname): New parameter funcp.  Update the
1392         function comment.  Fill it in.
1393         (print_frame): New variable func.  Initialize it by
1394         find_frame_funname.  Print arguments only if FUNC is not NULL.  Use
1395         FUNC as the parameter of print_args_stub.
1396         * stack.h (find_frame_funname): New parameter funcp.  Remove the
1397         function declaration comment.
1398
1399 2010-09-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
1400
1401         PR corefiles/12071.
1402         * inferior.c (have_live_inferiors): New variables old_chain, inf and
1403         tp.  Iterate INFERIOR_LIST and call target_has_execution.
1404
1405 2010-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1406
1407         Fix GDB crash on inferior calls with self-referencing classes.
1408         * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1409         member fields.
1410
1411 2010-09-29  Doug Evans  <dje@google.com>
1412
1413         Workaround for gcc/45682.
1414         * dwarf2read.c (partial_die_info): New fields fixup_called,
1415         linkage_name.
1416         (guess_partial_die_structure_name): Renamed from guess_structure_name.
1417         Move definition next to use.  Use linkage_name to determine if class
1418         is in a namespace.  All callers updated.
1419         (fixup_partial_die): Return early if already called.
1420         Set fixup_called when done.
1421         (guess_full_die_structure_name): New function.
1422         (determine_prefix): Call it for class/struct/union dies if c++ and
1423         .debug_types section is present and parent is DW_TAG_compile_unit.
1424
1425 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1426
1427         * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1428         (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1429
1430 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1431
1432         * NEWS: Announce Ravenscar Profile support.
1433
1434 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1435             Jerome Guitton  <guitton@adacore.com>
1436
1437         * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1438         New files.
1439         * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1440         ravenscar-sparc-thread.o to gdb_target_obs.
1441
1442 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1443
1444         * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1445         * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1446
1447 2010-09-27  Pierre Muller  <muller@ics.u-strasbg.fr>
1448
1449         * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1450         (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1451         skip_main_prologue method.
1452
1453 2010-09-27  Tom Tromey  <tromey@redhat.com>
1454
1455         * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1456         (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1457         Only emit a given psymbol once.
1458         (struct signatured_type_index_data) <psyms_seen>: New field.
1459         (write_one_signatured_type): Update.
1460         (cleanup_htab): New function.
1461         (write_psymtabs_to_index): Update.  Create psyms_seen hash.  Bump
1462         version to 3.
1463         (save_gdb_index_command): Update index documentation.
1464
1465 2010-09-27  Tom Tromey  <tromey@redhat.com>
1466
1467         * bcache.c (expand_hash_table): Use hash_function, not hash.
1468
1469 2010-09-27  Tom Tromey  <tromey@redhat.com>
1470
1471         * gdb_wchar.h: Change minimum libiconv to 0x108.
1472
1473 2010-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1474
1475         Fix lost siginfo_t for inferior calls.
1476         * infrun.c
1477         (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1478         (save_inferior_thread_state): New variables regcache, gdbarch and
1479         siginfo_data.  Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1480         Move INF_STATE allocation later, pre-clear it.  Initialize REGISTERS
1481         using REGCACHE.
1482         (restore_inferior_thread_state): New variables regcache and gdbarch.
1483         Restore SIGINFO_DATA for matching GDBARCH.  Restore REGISTERS using
1484         REGCACHE.  Free also SIGINFO_DATA.
1485
1486 2010-09-24  Tom Tromey  <tromey@redhat.com>
1487
1488         * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1489         MAYBE_SWAPs.
1490         (dw2_map_symbol_names): Likewise.
1491
1492 2010-09-24  Sami Wagiaalla  <swagiaal@redhat.com>
1493
1494         * valops.c (find_oload_champ_namespace_loop): replace incorrect
1495         discard_cleanups do_cleanups.
1496
1497 2010-09-24  Pedro Alves  <pedro@codesourcery.com>
1498
1499         PR gdb/11842
1500
1501         * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1502         (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1503         si_code is < 0.  Check for si_code == SI_TIMER before checking for
1504         si_code < 0.
1505
1506 2010-09-24  Pedro Alves  <pedro@codesourcery.com>
1507
1508         * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1509
1510 2010-09-22  Joel Brobecker  <brobecker@adacore.com>
1511
1512         * ada-tasks.c (read_atcb): Do not compute the task ptid when
1513         debugging a core file.
1514
1515 2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1516
1517         Code cleanup.
1518         * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1519         (free_objfile) <objfile->name != NULL>: Remove the conditional around
1520         xfree.
1521         * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1522         * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1523         Remove.
1524         * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1525         Remove the conditional.
1526         * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1527
1528 2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1529
1530         * main.c: Include objfiles.h.
1531         (captured_main): New variable objfile.  Call
1532         load_auto_scripts_for_objfile for ALL_OBJFILES.
1533
1534 2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1535
1536         * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1537         DW_TAG_constant.
1538
1539 2010-09-22  Joel Brobecker  <brobecker@adacore.com>
1540
1541         * dwarf2read.c (scan_partial_symbols): Add handling of
1542         DW_TAG_constant DIEs.
1543         (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1544
1545 2010-09-22  Joel Brobecker  <brobecker@adacore.com>
1546
1547         * configure.ac: Add support for --enable-gdbserver.
1548         * configure: Regenerate.
1549
1550 2010-09-22  Sami Wagiaalla  <swagiaal@redhat.com>
1551
1552         PR C++/12028
1553         * valops.c (find_oload_champ_namespace_loop): removed incorrect
1554         'old_cleanups' reassignment.
1555
1556 2010-09-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1557
1558         * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1559         characters.
1560
1561 2010-09-16  Phil Muldoon  <pmuldoon@redhat.com>
1562
1563         PR mi/11407
1564         * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1565         read_var_value and common_val_print and print a warning.
1566
1567 2010-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1568
1569         * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1570         keep the list in alphabetical order.  Use longer e-mail address.
1571
1572 2010-09-15  Tom Tromey  <tromey@redhat.com>
1573
1574         * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1575
1576 2010-09-15  Tom Tromey  <tromey@redhat.com>
1577
1578         * charset.c (iconv_open): New define.
1579         (iconv): Likewise.
1580         (iconv_close): Likewise.
1581         (phony_iconv_open): Add "phony_" prefix.
1582         (phony_iconv_close): Likewise.
1583         (phony_iconv): Likewise.
1584         * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1585         Change how INTERMEDIATE_ENCODING is defined.
1586
1587 2010-09-15  Doug Evans  <dje@google.com>
1588
1589         * dwarf2read.c (struct die_info): Fix comment.
1590
1591 2010-09-15  Alan Modra  <amodra@gmail.com>
1592
1593         PR 4606
1594         * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1595         than setting SEC_NEVER_LOAD on sections that need not be copied.
1596
1597 2010-09-14  Tom Tromey  <tromey@redhat.com>
1598
1599         * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1600         (start_psymtab_common, allocate_psymtab, discard_psymtab):
1601         Declare.
1602         * symfile.h (extend_psymbol_list): Remove.
1603         (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1604         (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1605         * psymtab.c (extend_psymbol_list): Move earlier.  Now static.
1606
1607 2010-09-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
1608
1609         * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1610         Update the comment.
1611
1612 2010-09-14  Tom Tromey  <tromey@redhat.com>
1613
1614         PR symtab/8399:
1615         * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1616         for unrecognized frame base expression.
1617
1618 2010-09-14  Tom Tromey  <tromey@redhat.com>
1619
1620         PR exp/11803:
1621         * value.c (value_static_field): Use value_of_variable.
1622
1623 2010-09-14  Pierre Muller  <muller@ics.u-strasbg.fr>
1624
1625         * m32r-rom.c: Replace winsock.h with winsock2.h header.
1626         * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1627
1628 2010-09-13  Sami Wagiaalla  <swagiaal@redhat.com>
1629
1630         PR symtab/11992:
1631         * c-exp.y (classify_name): Check is_a_member_of_this before returning
1632         UNKNOWN_CPP_NAME.
1633
1634 2010-09-13  Joel Brobecker  <brobecker@adacore.com>
1635
1636         * NEWS: Add x86-lynxos to the list of platforms supported by
1637         gdbserver.
1638
1639 2010-09-13  Joel Brobecker  <brobecker@adacore.com>
1640
1641         * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1642
1643 2010-09-13  Tom Tromey  <tromey@redhat.com>
1644
1645         * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1646
1647 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1648
1649         * i386-tdep.c (i386_ymm_type): Set type name to
1650         builtin_type_vec256i.
1651
1652 2010-09-12  Michael Snyder  <msnyder@vmware.com>
1653
1654         * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1655
1656 2010-09-12  H.J. Lu  <hongjiu.lu@intel.com>
1657
1658         * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1659
1660 2010-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1661
1662         * amd64-tdep.c (amd64_register_name): Removed.
1663         (amd64_init_abi): Don't call set_gdbarch_register_name.
1664
1665         * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1666
1667         * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1668
1669 2010-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1670             Paul Bolle  <pebolle@tiscali.nl>
1671
1672         Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1673         * cli-logging.c (struct saved_output_files) <targerr>: New.
1674         (set_logging_redirect, pop_output_files, handle_redirections):
1675         Redirect also gdb_stdtargerr.
1676         * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1677         declarations.
1678         * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1679         also gdb_stdtargerr.
1680         * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1681         to the top.  Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1682         Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1683         * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1684         * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1685         New functions.
1686
1687 2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
1688
1689         * hppa-tdep.c (unwind_command): Use host_address_to_string function
1690         to display a host address.
1691         * monitor.c (monitor_read_memory): Likewise.
1692         * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1693
1694 2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
1695
1696         * coffread.c (struct coff_symbol): Change c_value type from `long' to
1697         `CORE_ADDRESS' as it might contain target addresses.
1698
1699 2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
1700
1701         * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1702         before cast to pointer to avoid warning.
1703
1704 2010-09-09  Kevin Buettner  <kevinb@redhat.com>
1705
1706         * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1707         type to be signed.
1708
1709 2010-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
1710
1711         * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1712         anonymous class partial DIEs.
1713
1714 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1715
1716         * dwarf2read.c (dwarf2_compute_name): Check that the first
1717         argument is a pointer.
1718
1719 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1720
1721         * dwarf2read.c (read_func_scope, read_structure_type)
1722         (read_common_block): Check for a NULL return from new_symbol.
1723
1724 2010-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
1725
1726         * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1727
1728 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1729
1730         * dwarf2read.c (read_structure_type): Move processing of
1731         fields and member functions from here...
1732         (process_structure_scope): ... to here.
1733
1734 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1735
1736         * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1737         the domain type.
1738         (gnuv3_make_method_ptr): Likewise.
1739
1740 2010-09-08  Tom Tromey  <tromey@redhat.com>
1741
1742         * breakpoint.c (create_breakpoint): Add missing _().
1743
1744 2010-09-08  Doug Evans  <dje@google.com>
1745
1746         * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1747
1748 2010-09-08  Tom Tromey  <tromey@redhat.com>
1749
1750         Revert:
1751         2010-09-01  Tom Tromey  <tromey@redhat.com>
1752         * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1753         symtab.h: Revert earlier change.
1754
1755 2010-09-09  Sami Wagiaalla  <swagiaal@redhat.com>
1756
1757         * psymtab.c (add_psymbol_to_bcache): Initialize
1758         obj_section.
1759         memset psymbol.ginfo.value to 0.
1760
1761 2010-09-06  Pedro Alves  <pedro@codesourcery.com>
1762
1763         * infrun.c (resume): Extend comment on ignoring single-step
1764         requests on vfork parents waiting for a vfork-done.
1765
1766 2010-09-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1767             Pedro Alves  <pedro@codesourcery.com>
1768
1769         * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1770         is NULL.
1771         * fork-child.c (startup_inferior) <resume_signal>: Use enum
1772         target_signal type.
1773         * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1774         calling strsignal.  Use enum target_signal type for saved_signo.
1775         (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1776         (linux_nat_wait_1): Use enum target_signal type for signo.  Use
1777         target_signal_to_host before calling strsignal.
1778         * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1779         TARGET_SIGNAL_0.
1780
1781 2010-09-06  Pedro Alves  <pedro@codesourcery.com>
1782             Jan Kratochvil  <jan.kratochvil@redhat.com>
1783
1784         * common/signals.c (ANY): Remove.
1785         (SET): No longer use ANY.
1786
1787 2010-09-06  Yao Qi  <yao@codesourcery.com>
1788
1789         * infrunc(resume): When inferior is waiting_for_vfork_done,
1790         clear step and don't use displaced stepping.
1791
1792 2010-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
1793
1794         * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1795         value specially.
1796
1797 2010-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1798
1799         Code cleanup - split print_stop_reason.
1800         * infrun.c (enum inferior_stop_reason): Remove.
1801         (print_stop_reason): Remove by splitting into ...
1802         (print_exited_reason, print_signal_exited_reason)
1803         (print_no_history_reason, print_signal_received_reason)
1804         (print_end_stepping_range_reason): ... these new functions.  Update
1805         the preceding comment.
1806         (handle_inferior_event): Change the calls to print_exited_reason,
1807         print_signal_exited_reason, print_no_history_reason,
1808         print_signal_received_reason, print_end_stepping_range_reason.
1809         (handle_step_into_function, handle_step_into_function_backward):
1810         Change the calls to print_end_stepping_range_reason.
1811
1812 2010-09-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1813
1814         * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1815         * cli-out.c: Include vec.h.
1816         (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1817         variable stream, initialize it, use it.
1818         (cli_redirect): New function comment.  Replace the stream and
1819         original_stream fields by the new streams field.  Remove the
1820         original_stream != NULL conditional, assert error on NULL instead.
1821         (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1822         (cli_out_data_ctor): Assert non-NULL stream.  Replace the stream and
1823         original_stream fields by the new streams field.
1824         (cli_out_set_stream): Replace the stream field by the new streams
1825         field.
1826         * cli-out.h: Include vec.h.
1827         (ui_filep): New typedef, call DEF_VEC_P for it.
1828         (struct cli_ui_out_data): Replace the stream and original_stream
1829         fields by the new streams field.
1830         * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1831         NULL first.  Extend the comment.
1832         (handle_redirections): Call ui_out_redirect with output.
1833         * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1834         calls outside of the TRY_CATCH block.
1835
1836 2010-09-03  Joel Brobecker  <brobecker@adacore.com>
1837
1838         GDB 7.2 released.
1839
1840 2010-09-02  Joel Brobecker  <brobecker@adacore.com>
1841
1842         Back out the following change:
1843         | 2010-06-29  Hui Zhu  <teawater@gmail.com>
1844         | * record.c (set_record_pic_cmdlist,
1845         | show_record_pic_cmdlist): New variables.
1846         | (set_record_pic_command,
1847         | show_record_pic_command): New functions.
1848         | (record_pic_function, record_pic_line, record_pic_enum,
1849         | set_record_pic_type, record_pic_hide_nofunction,
1850         | record_pic_hide_nosource, record_pic_hide_same): New variables.
1851         | (record_pic_fputs): New function.
1852         | (function_list, node_list, edge_list): New struct.
1853         | (function_list, node_list, edge_list): New variables.
1854         | (record_pic_cleanups, record_pic_node,
1855         | record_pic_edge, cmd_record_pic): New functions.
1856         | (_initialize_record): Add new commands for record pic.
1857
1858 2010-09-02  Daniel Jacobowitz  <dan@codesourcery.com>
1859
1860         * config.in, configure: Regenerated.
1861         * configure.ac: Check for waitpid.
1862         * ser-pipe.c (pipe_close): Wait for the program to exit.
1863
1864 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1865
1866         * cli/cli-logging.c: Include gdb_assert.h.
1867         (set_logging_overwrite): New function.
1868         (logging_redirect): New comment.
1869         (logging_no_redirect_file, set_logging_redirect)
1870         (pop_output_files) <logging_no_redirect_file>: New.
1871         (handle_redirections) <!logging_redirect>: New variable
1872         no_redirect_file.  Remove file autoclose for tee_file_new.  No longer
1873         discard cleanup for the close of former OUTPUT.  Set
1874         LOGGING_NO_REDIRECT_FILE.
1875         (handle_redirections) <logging_redirect>: gdb_assert
1876         LOGGING_NO_REDIRECT_FILE.
1877         (show_logging_command) <logging_redirect handling>: Adjust messages
1878         for SAVED_FILENAME not NULL.
1879         (_initialize_cli_logging): Install set_logging_overwrite and
1880         set_logging_redirect.
1881
1882 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1883
1884         * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1885
1886 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1887
1888         * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1889         (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1890         add $(GDB_WARN_CFLAGS_NO_FORMAT).
1891         (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1892
1893 2010-09-02  Yao Qi  <yao@codesourcery.com>
1894
1895         * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1896         number from a WIFSIGNALED status.
1897
1898 2010-09-01  Tom Tromey  <tromey@redhat.com>
1899
1900         * symtab.h (lookup_type_symbol): Declare.
1901         * symtab.c (lookup_symbol_in_language_full): Rename from
1902         lookup_symbol_in_language.  Add 'for_type' argument.
1903         (lookup_symbol_in_language): New function.
1904         (lookup_type_symbol): Likewise.
1905         (lookup_symbol_aux): Add 'for_type' argument.
1906         (match_symbol_aux): New function.
1907         (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1908         (match_transparent_type): New function.
1909         (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1910         * symfile.h (struct quick_symbol_functions)
1911         <pre_expand_symtabs_matching>: Remove.
1912         <expand_one_symtab_matching>: New field.
1913         * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1914         (pre_expand_symtabs_matching_psymtabs): Remove.
1915         (psym_functions): Update.
1916         * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1917         * dwarf2read.c (dw2_lookup_symbol): Update comment.
1918         (dw2_pre_expand_symtabs_matching): Remove.
1919         (dw2_expand_one_symtab_matching): New function.
1920         (dwarf2_gdb_index_functions): Update.
1921
1922 2010-09-01  Joel Brobecker  <brobecker@adacore.com>
1923
1924         * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1925
1926 2010-09-01  Marc Khouzam  <marc.khouzam@ericsson.com>
1927
1928         * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1929         as a feature reported by -list-target-features.
1930
1931 2010-09-01  Joel Brobecker  <brobecker@adacore.com>
1932
1933         * features/Makefile (WHICH): Add rs6000/powerpc-32.
1934         (powerpc-32.o, powerpc-32.c): New rules.
1935         (clean): Also remove powerpc-32.c.
1936         * regformats/rs6000/powerpc-32.dat: Generate.
1937
1938 2010-08-31  Sami Wagiaalla  <swagiaal@redhat.com>
1939
1940         * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1941         psymbol_bcache_init.
1942         * psymtab.h (psymbol_bcache_init): New function prototype.
1943         (psymbol_bcache_free): New function prototype.
1944         (psymbol_bcache_get_bcache): New function prototype.
1945         * psymtab.c (psymbol_bcache_init): New function.
1946         (psymbol_bcache_free): New function.
1947         (psymbol_bcache_full): New function.
1948         (psymbol_bcache_get_bcache): New function.
1949         (add_psymbol_to_bcache): use psymbol_bcache_full.
1950         * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1951         psymbol_bcache.
1952         * symmisc.c (print_symbol_bcache_statistics): Updated.
1953         (print_objfile_statistics): Updated.
1954         * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1955         psymbol_cache.
1956         (free_objfile): Use psymbol_bcache_free.
1957
1958 2010-08-31  Tom Tromey  <tromey@redhat.com>
1959
1960         PR c++/11961:
1961         * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1962         Don't set TYPE_NAME on the type.
1963
1964 2010-08-31  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
1965
1966         * infrun.c (set_exec_direction_func): Error out if target does not
1967         support reverse execution.
1968
1969 2010-08-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1970
1971         Make linux_get_siginfo_type `type *' unique.
1972         * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1973         (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1974         (linux_get_siginfo_type): New variable linux_gdbarch_data.  Initialize
1975         it.  Use linux_gdbarch_data->siginfo_type as a persistent storage.
1976         (_initialize_linux_tdep): New.
1977
1978 2010-08-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1979
1980         Code cleanup.
1981         * defs.h (find_memory_region_ftype): New typedef.
1982         (exec_set_find_memory_regions): Use it.
1983         * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1984         * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1985         * gcore.c (objfile_find_memory_regions): Likewise.
1986         * gnu-nat.c (gnu_find_memory_regions): Likewise.
1987         * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1988         * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1989         (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1990         find_memory_region_ftype.
1991         (insert_dbx_link_bpt_in_region): Likewise.
1992         (iterate_over_mappings): Likewise.  Drop the comment part about the
1993         function prototype.
1994         (find_memory_regions_callback): Use find_memory_region_ftype.
1995         (proc_find_memory_regions): Likewise.
1996         (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1997         find_memory_region_ftype.
1998         * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1999         * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2000
2001 2010-08-31  Sami Wagiaalla  <swagiaal@redhat.com>
2002
2003         * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2004         'static partial_symbol psymbol'.
2005         (psymbol_hash): New function.
2006         (psymbol_compare): New function.
2007         * bcache.c (hash_continue): New.
2008         (hash): Use hash_continue.
2009         * bcache.c: Add hash_function and compare_function
2010         pointers to bcache struct.
2011         (bcache_full): Use bcache->hash_function, and
2012         bcache->compare_function.
2013         (bcache_compare): New function.
2014         (bcache_xmalloc): Take hash_function and
2015         compare_function arguments and initialize the
2016         bcach's pointers.
2017         Updated comment.
2018         * objfiles.c (allocate_objfile): Updated.
2019         * symfile.c (reread_symbols): Updated.
2020         * python/py-type.c (typy_richcompare): Updated.
2021
2022 2010-08-30  Andre Poenitz  <andre.poenitz@nokia.com>
2023             Tom Tromey  <tromey@redhat.com>
2024
2025         PR python/11792:
2026         * python/py-value.c (valpy_get_dynamic_type): New function.
2027         (value_object_getset): Add "dynamic_type".
2028         (valpy_get_type): Fail on error.
2029
2030 2010-08-30  Yao Qi  <yao@codesourcery.com>
2031
2032         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2033         (arm_linux_syscall_next_pc): New.
2034         (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead. 
2035         (arm_linux_init_abi): Initialize syscall_next_pc.
2036         * arm-tdep.c (thumb_get_next_pc_raw):  Get next pc of SWI in Thumb mode.
2037         (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2038         * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc. 
2039         Declare arm_frame_is_thumb.
2040
2041 2010-08-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
2042
2043         Code cleanup.
2044         * breakpoint.c (bpstat_alloc): Remove unused prototype.
2045         (bpstat_alloc): Change parameters cbs to bs_link_pointer.  Adjust the
2046         code.
2047         (bpstat_stop_status): Change root_bs into bs_head and bs_link.  Adjust
2048         calls of bpstat_alloc.  Remove explicit bs chain termination.
2049
2050 2010-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2051
2052         Code cleanup.
2053         * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2054         (my_waitpid): Likewise.
2055
2056 2010-08-27  Doug Evans  <dje@google.com>
2057
2058         * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2059         as appropriate.
2060
2061 2010-08-27  Tom Tromey  <tromey@redhat.com>
2062
2063         * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2064         TYPE_FIELD_IGNORE_BITS.
2065
2066 2010-08-27  Doug Evans  <dje@google.com>
2067
2068         * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2069         the order they're defined in.  munmap .debug_types buffer.
2070
2071 2010-08-26  Doug Evans  <dje@google.com>
2072
2073         * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2074         (dw2_forget_cached_source_info): Rename local cu to per_cu.
2075         (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2076         (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2077         (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2078         (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2079         (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2080         (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2081         (write_psymtabs_to_index): Ditto.
2082
2083 2010-08-26  Pedro Alves  <pedro@codesourcery.com>
2084
2085         * NEWS: Mention libthread_db debugging with core files.
2086
2087 2010-08-26  Doug Evans  <dje@google.com>
2088
2089         * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2090         forward decl.  Pass pst->dirname to dwarf_decode_lines.
2091         (psymtab_include_file_name): New function.
2092         (dwarf_decode_lines): Call it.  Update comments.
2093
2094 2010-08-25  Pedro Alves  <pedro@codesourcery.com>
2095
2096         * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2097         compilation unit being different from target die's.
2098
2099 2010-08-24  Doug Evans  <dje@google.com>
2100
2101         PR symtab/11942
2102         * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2103         debug_types_type_hash.
2104         (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2105         All uses updated.
2106         (lookup_die_type): Renamed from tag_type_to_tag.  First look in
2107         appropriate type_hash table.  All callers updated.
2108         (allocate_signatured_type_table): Renamed from
2109         allocate_signatured_type_hash_table.  All callers updated.
2110         (create_signatured_type_table_from_index): Renamed from
2111         create_signatured_type_hash_from_index.  All callers updated.
2112         (read_die_type): Add comment.  Move actual reading to ...
2113         (read_die_type_1): ... here.  New function.
2114         (follow_die_ref_or_sig): Tweak comment.
2115         (set_die_type): Rewrite to use appropriate choice of
2116         debug_info_type_hash or debug_types_type_hash.
2117         (get_die_type_at_offset): New function.
2118         (get_die_type): Call it.
2119
2120 2010-08-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2121
2122         * python/py-type.c (typy_richcompare): Initialize worklist.
2123
2124 2010-08-24  Daniel Jacobowitz  <dan@codesourcery.com>
2125             Kazu Hirata  <kazu@codesourcery.com>
2126             Jonathan Larmour  <jifl@eCosCentric.com>
2127
2128         * arm-tdep.c: Include features/arm-with-m.c.
2129         (arm_psr_thumb_bit): New.  Update all uses of CPSR_T to
2130         call this function.
2131         (arm_pc_is_thumb): Add a gdbarch argument.  Update all callers.
2132         Check is_m after force-mode.
2133         (arm_gdbarch_init): Check the binary before the target description.
2134         Add check for M profile attribute.  If we have an M-profile device,
2135         but no target register description, use arm-with-m.  Recognize the
2136         new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2137         (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2138         * arm-tdep.h (XPSR_T): Define.
2139         (struct gdbarch_tdep): Add is_m member.
2140         * features/arm-m-profile.xml, features/arm-with-m.c,
2141         features/arm-with-m.xml: New files.
2142
2143 2010-08-23  Doug Evans  <dje@google.com>
2144
2145         * dwarf2read.c (read_structure_type): Add comment.
2146         (read_enumeration_type): Add comment.
2147         (process_enumeration_scope): Move definition of some locals
2148         closer to their use.
2149         (read_namespace_type): Add comment.
2150         (set_die_type): Fix typo in comment.
2151
2152 2010-08-23  Tom Tromey  <tromey@redhat.com>
2153
2154         PR python/11145:
2155         * python/py-value.c: Include expression.h.
2156         (valpy_do_cast): New function.
2157         (valpy_cast): Use it.
2158         (valpy_dynamic_cast): New function.
2159         (valpy_reinterpret_cast): Likewise.
2160         (value_object_methods): Add dynamic_cast, reinterpret_cast.
2161
2162 2010-08-23  Tom Tromey  <tromey@redhat.com>
2163
2164         PR python/11391:
2165         * python/py-value.c (valpy_nonzero): Don't throw error for other
2166         Value types.
2167
2168 2010-08-23  Tom Tromey  <tromey@redhat.com>
2169
2170         PR python/10676:
2171         * python/py-type.c: Include bcache.h, vec.h.
2172         (struct type_equality_entry): New.
2173         (compare_strings): New function.
2174         (check_types_equal): Likewise.
2175         (check_types_worklist): Likewise.
2176         (typy_richcompare): Likewise.
2177         (type_object_type): Set tp_richcompare field.
2178
2179 2010-08-23  Tom Tromey  <tromey@redhat.com>
2180
2181         PR python/10953:
2182         * python/py-type.c (typy_fields): Call check_typedef.
2183         (typy_template_argument): Add TRY_CATCH.
2184
2185 2010-08-23  Tom Tromey  <tromey@redhat.com>
2186
2187         PR python/11915:
2188         * python/py-type.c (typy_array): New function.
2189         (type_object_methods): Add "array".
2190
2191 2010-08-20  Pedro Alves  <pedro@codesourcery.com>
2192
2193         * python/python.c: Include "serial.h".
2194         (gdbpy_event_fds): Change type to `struct serial *' a array from
2195         int array.
2196         (gdbpy_run_events): Change parameters.  Use serial_readchar in
2197         place of read.
2198         (gdbpy_post_event): Use serial_write in place of write.
2199         (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2200         serial_async in place of add_file_handler.
2201
2202 2010-08-20  Pedro Alves  <pedro@codesourcery.com>
2203
2204         * serial.h (gdb_pipe, serial_pipe): Declare.
2205         * serial.c (serial_interface_lookup): Take a const char pointer.
2206         (serial_fdopen): Rename to ...
2207         (serial_fdopen_ops): ... this.  Add an OPS parameter and use it.
2208         Call the OPS' fdopen function if there is one.
2209         (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2210         (serial_pipe): New.
2211         (struct serial_ops) <fdopen>: New field.
2212
2213         * ser-mingw.c (free_pipe_state):
2214         (free_pipe_state): Close output on non-pex pipes.
2215         (pipe_windows_fdopen): New.
2216         (gdb_pipe): New.
2217         (_initialize_ser_windows): Register pipe_windows_fdopen.
2218         * ser-go32.c (gdb_pipe): New.
2219         * ser-pipe.c (pipe_close): Close file descriptor even if there's
2220         no state pointer.
2221         (pipe_ops): Delete.
2222         (gdb_pipe): New.
2223
2224 2010-08-20  Keith Seitz  <keiths@redhat.com>
2225
2226         PR symtab/11465:
2227         * dwarf2read.c (struct delayed_method_info): New struct.
2228         (struct dwarf2_cu): Add vector method_list.
2229         (scan_partial_symbols): Count methods for union, class, structure,
2230         and interface types.
2231         (add_to_method_list): New function.
2232         (free_delayed_list): New function.
2233         (compute_delayed_physnames): New function.
2234         (process_full_comp_unit): Make a cleanup for the CU's delayed
2235         physname list, compute the delayed physnames, and free the
2236         the list.
2237         (dwarf2_add_member_fn): For C++ and Java, delay the computation
2238         of the physname until after the CU is read.
2239
2240         * dwarf2read.c (read_structure_type): Check if the current
2241         DIE's type was already completed after dwarf2_full_name
2242         was called.
2243
2244 2010-08-19  Stan Shebs  <stan@codesourcery.com>
2245
2246         * NEWS: Mention some additional changes.
2247
2248 2010-08-19  Tom Tromey  <tromey@redhat.com>
2249
2250         * Makefile.in (install-python): Add DESTDIR.
2251
2252 2010-08-19  Doug Evans  <dje@google.com>
2253
2254         PR exp/11926
2255         * parser-defs.h (parse_float, parse_c_float): Declare.
2256         * parse.c (parse_float, parse_c_float): New function.
2257         * c-exp.y (parse_number): Call parse_c_float.
2258         * objc-exp.y (parse_number): Ditto.
2259         * p-exp.y (parse_number): Ditto.  Use ANSI/ISO-style definition.
2260         * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2261
2262 2010-08-19  Joel Brobecker  <brobecker@adacore.com>
2263
2264         * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2265         the arguments in the correct order.
2266         * symtab.c (maybe_add_partial_symtab_filename): Declare
2267         the arguments in the correct order.
2268
2269 2010-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2270
2271         * varobj.c (varobj_create): Replace variable old_fi with old_id,
2272         initialize it by null_frame_id, wrap its usage by get_frame_id,
2273         frame_id_p and frame_find_by_id.
2274
2275 2010-08-18  Tom Tromey  <tromey@redhat.com>
2276
2277         PR python/11900:
2278         * configure: Rebuild.
2279         * configure.ac: Add install-python to CONFIG_INSTALL.
2280         * Makefile.in (install-python): New.
2281
2282 2010-08-18  Doug Evans  <dje@google.com>
2283
2284         * gdb_assert.h (gdb_assert_not_reached): New macro.
2285         (gdb_assert_fail): Fix typo in comment.
2286         * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2287         gdb_assert (0).
2288         * darwin-nat.c (darwin_check_new_threads): Ditto.
2289         * dwarf2read.c (dwarf2_get_section_info): Ditto.
2290         (munmap_section_buffer): Ditto.
2291         * m32c-tdep.c (make_types): Ditto.
2292         (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2293         * macroexp.c (get_character_constant): Ditto.
2294         (get_string_literal): Ditto.
2295         * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2296         (mep_pseudo_cr_index, mep_register_type): Ditto.
2297         (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2298         (mep_get_insn, mep_analyze_prologue): Ditto.
2299         * objfiles.c (qsort_cmp): Ditto.
2300         * prologue-value.c (pv_is_identical): Ditto.
2301         * record.c (record_get_loc): Ditto.
2302         * value.c (value_static_field): Ditto.
2303         * xtensa-tdep.c (call0_track_op): Ditto.
2304
2305 2010-08-18  Tom Tromey  <tromey@redhat.com>
2306
2307         PR symtab/11919:
2308         * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2309         * parse.c (parse_field_expression): Use RETURN_MASK_ERROR.  Move
2310         name-copying lower.  Document exception behavior.
2311         * completer.c (expression_completer): Catch exceptions from
2312         parse_field_expression.
2313
2314 2010-08-18  Pedro Alves  <pedro@codesourcery.com>
2315
2316         PR corefile/8210
2317
2318         * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2319         workaround on core files.
2320         (try_thread_db_load_1): Don't try enabling thread event reporting
2321         on core files.
2322         (thread_db_load): Allow thread_db on core files.
2323         (attach_thread): Don't check thread signals on core files, nor try
2324         really attaching to the thread, nor enabling thread event event
2325         reporting.
2326         (thread_db_detach): Don't try disabing thread event reporting or
2327         removing thread event breakpoints when debugging a core file.
2328         (find_new_threads_callback): Don't try enabling thread event
2329         reporting on core files.
2330         (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2331         debugging a core file.
2332         (thread_db_find_new_threads): Don't update thread
2333         cores (processors) when debugging a core (dump).
2334
2335 2010-08-18  Pedro Alves  <pedro@codesourcery.com>
2336
2337         PR corefile/8210
2338
2339         * corelow.c (add_to_thread_list): Don't use
2340         gdbarch_core_reg_section_encodes_pid.  Use bfd_core_file_pid.
2341         (get_core_register_section): Don't use
2342         gdbarch_core_reg_section_encodes_pid.
2343
2344         * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2345         * gdbarch.h, gdbarch.c: Regenerate.
2346         * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2347         gdbarch_core_reg_section_encodes_pid.
2348         * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2349         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2350         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2351
2352 2010-08-18  Yao Qi  <yao@codesourcery.com>
2353
2354         * MAINTAINERS : Add myself under Write After Approval.
2355
2356 2010-08-17  Tom Tromey  <tromey@redhat.com>
2357
2358         * NEWS: Mention template parameter support.
2359
2360 2010-08-17  Pedro Alves  <pedro@codesourcery.com>
2361
2362         PR breakpoints/11371
2363
2364         * breakpoint.c (decref_bp_location): Assert the reference count is
2365         sane.
2366
2367 2010-08-17  Pedro Alves  <pedro@codesourcery.com>
2368
2369         PR breakpoints/11371
2370
2371         * breakpoint.c (breakpoint_init_inferior): Decrement the
2372         location's reference count instead of deleting right away.
2373         (bpstat_free): Decrement the location's reference count.  Make
2374         static.
2375         (bpstat_copy): Increment the location's reference count.
2376         (bpstat_find_breakpoint): Adjust.
2377         (bpstat_num): Adjust.
2378         (print_it_typical): Adjust.  Use the breakpoint pointer in the
2379         bpstat instead of the location's owner.
2380         (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2381         Adjust to record the location's owner in the bpstat.
2382         (watchpoint_check): Use the breakpoint pointer in the bpstat
2383         instead of the location's owner.
2384         (bpstat_check_breakpoint_conditions): Don't handle
2385         bp_watchpoint_scope here.  Use the breakpoint pointer in the
2386         bpstat instead of the location's owner.
2387         (bpstat_stop_status): Defer inferior function calls to after
2388         building the bpstat list.  Handle bp_watchpoint_scope here.  Use
2389         the breakpoint pointer in the bpstat instead of the location's
2390         owner.
2391         (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2392         the location's owner.
2393         (free_bp_location): Don't walk bpstats clearing locations.
2394         (incref_bp_location): New.
2395         (decref_bp_location): New.
2396         (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2397         instead of the location's owner.
2398         (update_global_location_list): Clear the location's owner, and
2399         decrement the location's reference count instead of deleting it
2400         right away.
2401         (breakpoint_retire_moribund): Decrement the location's reference
2402         count instead of deleting it right away.
2403         (bpstat_remove_bp_location): Delete.
2404         (bpstat_remove_breakpoint): New.
2405         (bpstat_remove_bp_location_callback): Delete.
2406         (bpstat_remove_breakpoint_callback): New.
2407         (delete_breakpoint): Iterate over all threads' stop_bpstat's
2408         clearing references to the breakpoint that is being deleted.
2409
2410         * breakpoint.h (struct bp_location) <refc>: New field.
2411         <owner>: Update comments.
2412         (bpstat_free): Delete declaration.
2413         (struct bpstats): Change the type of the breakpoint_at field to
2414         struct breakpoint point, from struct bp_location pointer.  Add new
2415         field bp_location_at.
2416
2417 2010-08-16  Tom Tromey  <tromey@redhat.com>
2418
2419         * NEWS: Fix typo.
2420
2421 2010-08-16  Tom Tromey  <tromey@redhat.com>
2422
2423         * NEWS: Mention watch -location.
2424
2425 2010-08-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2426
2427         * breakpoint.c (update_watchpoint): Add source empty line.  Prefer
2428         EXP_STRING_REPARSE to EXP_STRING.
2429         (watch_command_1): Set also EXP_STRING_REPARSE.
2430         (delete_breakpoint): Free also EXP_STRING_REPARSE.
2431         * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2432         Update comment for exp_string.
2433
2434 2010-08-16  Tom Tromey  <tromey@redhat.com>
2435
2436         * value.c (release_value): Clear 'next' pointer.
2437         * breakpoint.c (watch_command_1): Add 'just_location' argument.
2438         (watch_command_wrapper): Update.
2439         (watch_maybe_just_location): New function.
2440         (watch_command): Update.
2441         (rwatch_command_wrapper): Update.
2442         (rwatch_command): Update.
2443         (awatch_command_wrapper): Update.
2444         (awatch_command): Update.
2445         (check_for_argument): New function.
2446         (_initialize_breakpoint): Update help text.
2447
2448 2010-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
2449
2450         * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2451         typedef'ed function types correctly.
2452
2453 2010-08-13  Tom Tromey  <tromey@redhat.com>
2454
2455         * python/python-internal.h (gdbpy_get_hook_function): Don't
2456         declare.
2457
2458 2010-08-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2459
2460         * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2461         static.
2462
2463 2010-08-13  Ken Werner  <ken.werner@de.ibm.com>
2464
2465         * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2466         the format strings to be compatible with Python 2.4.
2467
2468 2010-08-13  Vladimir Prus  <vladimir@codesourcery.com>
2469
2470         Easier and more stubborn MI memory read commands.
2471
2472         * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2473         and data-write-memory-bytes.
2474         * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2475         (mi_cmd_data_write_memory_bytes): New.
2476         * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2477         (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2478         New.
2479         (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2480         * target.c (target_read_until_error): Remove.
2481         (read_whatever_is_readable, free_memory_read_result_vector)
2482         (read_memory_robust): New.
2483         * target.h (target_read_until_error): Remove.
2484         (struct memory_read_result, free_memory_read_result_vector)
2485         (read_memory_robust): New.
2486
2487 2010-08-13  Hui Zhu  <teawater@gmail.com>
2488
2489         * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2490         (read_comp_unit): Initialize back_to.
2491
2492 2010-08-12  Daniel Jacobowitz  <dan@codesourcery.com>
2493             Pedro Alves  <pedro@codesourcery.com>
2494
2495         * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2496         (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2497         (struct partial_die_info) <has_template_arguments>: New field.
2498         <num_attrs>: Change type to unsigned char.
2499         <building_fullname>: New field.
2500         (dwarf2_build_psymtabs_hard): Set reading_partial_symbols.  Only
2501         allocate a CU if we don't have one already.  Add a cleanup for the
2502         CU.
2503         (partial_die_full_name): Handle template arguments not in
2504         DW_AT_name.
2505         (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2506         (load_full_comp_unit): Only allocate a CU if we don't have one
2507         already.
2508         (do_ui_file_peek_last): New.
2509         (dwarf2_compute_name): Handle template parameters not in
2510         DW_AT_name.
2511         (read_comp_unit): Read and free abbrevs if not read yet.
2512         (load_partial_dies): Handle template arguments not in DW_AT_name.
2513         (find_partial_die): If we have a CU, but no a partial dies yet,
2514         also read in the CU.
2515         (dwarf2_const_value_attr): New, abstracted out from
2516         dwarf2_const_value.
2517         (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2518         dwarf2_const_value_attr.
2519         (determine_prefix): Detect and break loops created by RCVT's debug
2520         info.
2521         (maybe_queue_comp_unit): Bail out early if reading partial
2522         symbols.
2523         (follow_die_offset): Load full CU if we have no dies.
2524         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2525         * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2526
2527 2010-08-11  Tom Tromey  <tromey@redhat.com>
2528             Phil Muldoon  <pmuldoon@redhat.com>
2529
2530         * python/python.c (gdbpy_run_events): New function.
2531         (gdbpy_post_event): Likewise.
2532         (gdbpy_initialize_events): Likewise.
2533         (_initialize_python): Call gdbpy_initialize_events.
2534
2535 2010-08-11  Ken Werner  <ken.werner@de.ibm.com>
2536
2537         * gdb/valarith.c (vector_binop): New function.
2538         (scalar_binop): Likewise.
2539         (value_binop): Call scalar_binop or vector_binop depending on the types.
2540         * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2541         (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2542         to pointers.
2543         * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2544
2545 2010-08-11  Brad Roberts  <braddr@puremagic.com>
2546
2547         * d-lang.c (extract_identifiers): Handle multiple digits.
2548
2549 2010-08-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2550
2551         Code cleanup.
2552         * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2553         Rename to dummy_frame_unwind.
2554         (dummy_frame_unwind): Remove.
2555         * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2556         * frame-unwind.c (frame_unwind_init): Use address of
2557         dummy_frame_unwind and inline_frame_unwind.
2558         * frame.c (create_sentinel_frame): Use address of
2559         sentinel_frame_unwind.
2560         * inline-frame.c (inline_frame_unwinder): Rename to
2561         inline_frame_unwind.
2562         (inline_frame_unwind): Remove.
2563         * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2564         * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2565         sentinel_frame_unwind.
2566         (sentinel_frame_unwind): Remove.
2567         * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2568         struct.
2569
2570 2010-08-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2571
2572         Code cleanup.
2573         * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2574         and returned value.  New comment from frame-unwind.h.
2575         * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2576         Extend the comment.
2577         * frame.c (get_frame_id, frame_unwind_register_value)
2578         (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2579         (get_frame_type, frame_unwind_arch): Do not use the return value of
2580         frame_unwind_find_by_frame.
2581
2582 2010-08-11  Phil Muldoon  <pmuldoon@redhat.com>
2583             Thiago Jung Bauermann  <bauerman@br.ibm.com>
2584             Tom Tromey  <tromey@redhat.com>
2585
2586         * python/python.c (gdbpy_solib_address):  New function.
2587         (gdbpy_decode_line): Likewise.
2588
2589 2010-08-10  Tom Tromey  <tromey@redhat.com>
2590
2591         Revert gdb-add-index addition:
2592         * Makefile.in (install-only): Don't install gdb-add-index.
2593         * gdb-add-index.sh: Remove.
2594
2595 2010-08-09  Kevin Buettner  <kevinb@redhat.com>
2596
2597         * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2598         `target_has_execution' check with `to_has_memory' check.
2599         (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2600         (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2601         with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2602
2603 2010-08-09  Kevin Buettner  <kevinb@redhat.com>
2604
2605         * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2606         (resume_siggnal, resume_step): Move these static globals...
2607         (struct sim_inferior_data): ...into this new struct.
2608         (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2609         New static globals.
2610         (gdb_callback, callbacks_initialized): Move these globals to
2611         a point earlier in the file.
2612         (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2613         (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2614         (gdbsim_close_inferior, gdbsim_resume_inferior)
2615         (gdbsim_stop_inferior): New functions.
2616         (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2617         New constants.
2618         (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2619         (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2620         (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2621         (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2622         (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2623         (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2624         new local variable `sim_data' in each of these functions.  Use
2625         `sim_data' to reference former globals `program_loaded',
2626         `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2627         `resume_step'.
2628         (gdbsim_open): Remove local variable `argv'.  Put results of call
2629         to `gdb_buildargv' in `sim_argv' rather than in `argv'.  Don't
2630         make a cleanup for it.  Free it though when a sim instance cannot
2631         be obtained.
2632         (gdbsim_close): Free sim_argv and null it out as appropriate.
2633         Close sim instances in all inferiors.
2634         (gdbsim_cntrl_c): Stop all inferiors.
2635         (gdbsim_wait): 
2636         (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2637
2638 2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>
2639
2640         * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2641         function after symbol construction is complete.
2642         Do the same for template symbol addition to template_symbols list.
2643
2644 2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>
2645
2646         * symtab.c (symbol_get_demangled_name): Remove assertion and
2647         return NULL when language_specific.cplus_specific is not initialized.
2648         * stabsread.c (define_symbol): Set the name before calling
2649         cp_scan_for_anonymous_namespaces.
2650
2651 2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>
2652
2653         * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2654         SYMBOL_SET_LANGUAGE.
2655         (symbol_init_language_specific): Renamed to symbol_set_language.
2656         * symtab.c (symbol_init_language_specific): Removed redundant check
2657         for language_cplus.
2658         Renamed to symbol_set_language.
2659         * stabsread.c (define_symbol): Updated.
2660         (read_enum_type): Updated
2661         * psymtab.c (add_psymbol_to_bcache): Updated.
2662         * minsyms.c (install_minimal_symbols): Updated.
2663         * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2664         SYMBOL_LANGUAGE to set the language.
2665         * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2666         * mdebugread.c (new_symbol): Ditto.
2667         * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2668         * dwarf2read.c (new_symbol_full): Ditto.
2669         * jv-lang.c (add_class_symbol): Ditto.
2670
2671 2010-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2672
2673         * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2674         (make_cleanup_restore_page_info)
2675         (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2676         * gdbcmd.h (execute_command_to_string): New declaration.
2677         * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2678         (make_cleanup_restore_ui_file): Move to utils.c
2679         (execute_gdb_command) <to_string>: Move ...
2680         * top.c (execute_command_to_string): ... here.  Call
2681         set_batch_flag_and_make_cleanup_restore_page_info.
2682         * utils.c (make_cleanup_restore_integer): New source file blank line.
2683         (make_cleanup_restore_uinteger): New.
2684         (struct restore_ui_file_closure, do_restore_ui_file)
2685         (make_cleanup_restore_ui_file): Move here from python/python.c.
2686         (init_page_info) <batch_flag>
2687         (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2688         (set_batch_flag_and_make_cleanup_restore_page_info): New.
2689
2690 2010-08-06  Maciej W. Rozycki  <macro@codesourcery.com>
2691
2692         * thread.c (add_thread_silent): Use null_ptid instead of
2693         minus_one_ptid while getting rid of stale inferior_ptid.
2694
2695 2010-08-06  Corinna Vinschen  <vinschen@redhat.com>
2696
2697         * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2698         Throughout, call read_encoded_value with ptr_size rather than addr_size.
2699         (decode_frame_entry_1): Remove redundant setting of
2700         addr_size.  Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2701         to determine addr_size in Dwarf versions < 4.  Set ptr_size dependent
2702         on examined frame section.  Add comment to explain why.
2703         * gdbarch.sh (dwarf2_addr_size): Define as variable.  Add lengthy
2704         comment to explain usage.
2705         * gdbarch.c: Regenerate.
2706         * gdbarch.h: Regenerate.
2707
2708         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2709
2710 2010-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2711
2712         Code cleanup.
2713         * varobj.c (varobj_create): Move variables fi, old_fi and block to
2714         a more inner block.
2715
2716 2010-08-05  Pedro Alves  <pedro@codesourcery.com>
2717
2718         * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2719         (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2720         (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2721         (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2722         linux-tdep.o to gdb_target_obs.
2723
2724 2010-08-05  Marc Khouzam  <marc.khouzam@ericsson.com>
2725
2726         * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
2727         argument.
2728
2729 2010-08-05  Hui Zhu  <teawater@gmail.com>
2730
2731         * mips-linux-tdep.c(regset.h): New include.
2732         (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2733         mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2734         mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2735         mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2736         mips_linux_regset_from_core_section): New functions.
2737         (fetch_core_registers, regset_core_fns): Deleted.
2738         (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2739         Deleted regset_core_fns.
2740         * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2741         tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2742         * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2743         and fpregset64.
2744
2745 2010-08-04  Pedro Alves  <pedro@codesourcery.com>
2746
2747         * s390-tdep.c: Include linux-tdep.h.
2748         (s390_gdbarch_init): Call linux_init_abi.
2749
2750 2010-08-04  Pedro Alves  <pedro@codesourcery.com>
2751
2752         * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2753         instead of printing "Thread" here.
2754         * linux-tdep.c: Include inferior.h.
2755         (linux_core_pid_to_str): New.
2756         (linux_init_abi): New.
2757         * linux-tdep.h (linux_init_abi): Declare.
2758         * alpha-linux-tdep.c: Include linux-tdep.h.
2759         (alpha_linux_init_abi): Call linux_init_abi.
2760         * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2761         * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2762         * frv-linux-tdep.c: Include linux-tdep.h
2763         (frv_linux_init_abi): Call linux_init_abi.
2764         * hppa-linux-tdep.c: Include linux-tdep.h
2765         (hppa_linux_init_abi): Call linux_init_abi.
2766         * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2767         * ia64-linux-tdep.c: Include linux-tdep.h.
2768         (ia64_linux_init_abi): Call linux_init_abi.
2769         * m32r-linux-tdep.c: Include linux-tdep.h.
2770         (m32r_linux_init_abi): Call linux_init_abi.
2771         * m68klinux-tdep.c: Include linux-tdep.h.
2772         (m68k_linux_init_abi): Call linux_init_abi.
2773         * microblaze-linux-tdep.c: Include linux-tdep.h.
2774         (microblaze_linux_init_abi): Call linux_init_abi.
2775         * mips-linux-tdep.c: Include linux-tdep.h.
2776         (mips_linux_init_abi): Call linux_init_abi.
2777         * mn10300-linux-tdep.c: Include linux-tdep.h.
2778         (am33_linux_init_osabi): Call linux_init_abi.  Rename the
2779         'gdbinfo' parameter to 'info'.
2780         * ppc-linux-tdep.c: Include linux-tdep.h.
2781         (ppc_linux_init_abi): Call linux_init_abi.
2782         * sh-linux-tdep.c: Include linux-tdep.h.
2783         (sh_linux_init_abi): Call linux_init_abi.
2784         * sparc-linux-tdep.c: Include linux-tdep.h.
2785         (sparc32_linux_init_abi): Call linux_init_abi.
2786         * sparc64-linux-tdep.c: Include linux-tdep.h.
2787         (sparc64_linux_init_abi): Call linux_init_abi.
2788         * xtensa-linux-tdep.c: Include linux-tdep.h.
2789         (xtensa_linux_init_abi): Call linux_init_abi.
2790         * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2791         (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2792         callback.
2793
2794 2010-08-03  Doug Evans  <dje@google.com>
2795
2796         * breakpoint.c (bpdisp_text): Constify bpdisps.
2797         * solib-svr4.c (solib_break_names): Constify.
2798         (bkpt_names, main_name_list): Constify.
2799         (match_main): Constify soname arg.
2800         (bfd_lookup_symbol): Remove unnecessary forward decl.
2801         Constify symname arg.
2802         (enable_break): Constify bkpt_namep.
2803         * symtab.c (search_symbols): Constify types, types2, types3, types4.
2804         (symtab_symbol_info): Constify classnames.
2805
2806 2010-08-03  Phil Muldoon  <pmuldoon@redhat.com>
2807
2808         * NEWS: Document Python value inferior function calls.
2809
2810 2010-08-02  Doug Evans  <dje@google.com>
2811
2812         * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2813
2814 2010-07-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
2815
2816         * linux-thread-db.c (libthread_db_debug): New variable.
2817         (thread_db_find_new_threads_silently): Control verbosity with it.
2818         (try_thread_db_load_1, try_thread_db_load): Likewise.
2819         (find_new_threads_once): Likewise.
2820         (_initialize_thread_db): Set/show it.
2821
2822 2010-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2823
2824         * common/signals.c (signals): Move the content to signals.def.
2825         Include it.  Remove the INDENT comments.
2826
2827 2010-07-30  Tom Tromey  <tromey@redhat.com>
2828
2829         * Makefile.in (install-only): Install gdb-add-index.
2830         * gdb-add-index.sh: New file.
2831
2832 2010-07-31  Renquan Cheng  <crq@gcc.gnu.org>
2833
2834         * MAINTAINERS: Add myself for write after approval privileges.
2835
2836 2010-07-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
2837
2838         * symfile.c (addr_section_name): New function.
2839         (addrs_section_compar): Use it.
2840         (addr_info_make_relative): Use it.  Move variable sect_name into a more
2841         inner block.  Make ".dynbss" and ".sdynbss" checks more strict.
2842
2843 2010-07-30  Tom Tromey  <tromey@redhat.com>
2844
2845         * configure: Rebuild.
2846         * configure.ac: Add missing case for Python 2.7.
2847
2848 2010-07-29  DJ Delorie  <dj@redhat.com>
2849
2850         * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2851         conditions.
2852
2853 2010-07-29  Pedro Alves  <pedro@codesourcery.com>
2854
2855         * PROBLEMS: Remove mention of all problems.
2856
2857 2010-07-28  Pedro Alves  <pedro@codesourcery.com>
2858
2859         PR build/11848
2860         * configure.ac: Check for wresize.
2861         * configure, config.in: Regenerate.
2862         * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2863         with HAVE_WRESIZE.
2864
2865 2010-07-28  Tom Tromey  <tromey@redhat.com>
2866
2867         PR python/11060:
2868         * python/py-type.c (typy_legacy_template_argument): New function,
2869         extracted from typy_template_argument.
2870         (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT.  Return a
2871         value when needed.
2872
2873 2010-07-28  Oleg Nesterov  <oleg@redhat.com>
2874
2875         * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2876
2877 2010-07-27  Tom Tromey  <tromey@redhat.com>
2878
2879         * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2880
2881 2010-07-28  Daniel Jacobowitz  <dan@codesourcery.com>
2882
2883         * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2884         handling DW_AT_object_pointer, and workaround GCC PR 43053.
2885
2886 2010-07-28  Tom Tromey  <tromey@redhat.com>
2887
2888         * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2889
2890 2010-07-28  Joel Brobecker  <brobecker@adacore.com>
2891
2892         * remote.c (remote_download_tracepoint): Add missing gettext markup.
2893         * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2894
2895 2010-07-28  Joel Brobecker  <brobecker@adacore.com>
2896
2897         * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2898         down, just before the block that parse the breakpoint addr_string.
2899
2900 2010-07-28  Tom Tromey  <tromey@redhat.com>
2901
2902         PR c++/9946:
2903         * symfile.c (reread_symbols): Clear template_symbols.
2904         * symtab.h (struct symbol) <is_cplus_template_function>: New
2905         field.
2906         (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2907         (struct template_symbol): New.
2908         * symtab.c (lookup_symbol_aux_local): Use
2909         cp_lookup_symbol_imports_or_template.
2910         * objfiles.h (struct objfile) <template_symbols>: New field.
2911         * objfiles.c (relocate_one_symbol): New function.
2912         (objfile_relocate1): Use it.  Relocate isolated symbols.
2913         * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2914         template_arguments>: New fields.
2915         (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2916         (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2917         (TYPE_TEMPLATE_ARGUMENT): Likewise.
2918         (lookup_typename): Update.
2919         * gdbtypes.c (lookup_typename): Constify "block" argument.
2920         * dwarf2read.c: Include vec.h.
2921         (symbolp): New typedef.
2922         (read_func_scope): Read template arguments.  Allocate a
2923         template_symbol when needed.
2924         (read_structure_type): Read template arguments.
2925         (new_symbol_full): New function, from new_symbol.  Handle
2926         DW_TAG_template_type_param and DW_TAG_template_value_param.
2927         (new_symbol): Rewrite as wrapper.
2928         * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2929         * cp-namespace.c: Include language.h.
2930         (search_symbol_list): New function.
2931         (cp_lookup_symbol_imports_or_template): Likewise.
2932
2933 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
2934
2935         * tui/tui-win.c (make_visible_with_new_height): Resize and move
2936         the command window to the new size and position.
2937
2938 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
2939
2940         * tui/tui-win.c (tui_resize_all): Update the locator's origin's
2941         coordinates.
2942
2943 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
2944
2945         * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
2946         after a detecting a resize.
2947         * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
2948         call.
2949
2950 2010-07-28  Pedro Alves  <pedro@codesourcery.com>
2951
2952         * configure.ac: Check for resize_term.
2953         * configure, config.in: Regenerate.
2954
2955 2010-07-27  Joel Brobecker  <brobecker@adacore.com>
2956
2957         * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2958
2959 2010-07-27  Daniel Jacobowitz  <dan@codesourcery.com>
2960
2961         * dwarf2read.c (read_string): Rename to ...
2962         (read_direct_string): ... this.
2963         (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2964         (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2965
2966 2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2967
2968         * linux-nat.c (linux_nat_lp_status_is_event): New function.
2969         (count_events_callback, select_event_lwp_callback)
2970         (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2971
2972 2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2973
2974         * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2975         (_initialize_ia64_linux_nat): Install it.
2976         * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2977         (linux_nat_set_status_is_event): New.
2978         (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2979         cancel_breakpoints_callback, linux_nat_filter_event)
2980         (linux_nat_wait_1): Use linux_nat_status_is_event.
2981         * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2982
2983 2010-07-27  Tom Tromey  <tromey@redhat.com>
2984
2985         * NEWS: Mention labels, .gdb_index.
2986
2987 2010-07-28  CHENG Renquan  <rqcheng@smu.edu.sg>
2988
2989         * cli/cli-cmds.c (disassemble_command): Add support of disassemble
2990         "start,+length" form of arguments.
2991         * NEWS: Add "Changed commands" (disassemble) section for "Changes
2992         since GDB 7.1"; and merge two separated paragraphs of disassemble
2993         description in "Changes in GDB 7.0".
2994
2995 2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2996
2997         * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2998         * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2999         (fputs_maybe_filtered): Do not do filtering also on
3000         ! INPUT_FROM_TERMINAL_P.
3001
3002 2010-07-27  Joel Brobecker  <brobecker@adacore.com>
3003
3004         * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3005         in warning message.
3006
3007 2010-07-27  Phil Muldoon  <pmuldoon@redhat.com>
3008
3009         * python/py-value.c (valpy_call): New Function.
3010
3011 2010-07-27  Ken Werner  <ken.werner@de.ibm.com>
3012
3013         * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
3014         types_list_elements variables.
3015
3016 2010-07-26  Tom Tromey  <tromey@redhat.com>
3017
3018         * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3019         TLS with DW_OP_const4u or DW_OP_const8u.
3020
3021 2010-07-26  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3022
3023         * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3024         VSX registers contents.
3025
3026 2010-07-26  Jerome Guitton  <guitton@adacore.com>
3027
3028         * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3029         its adress is null. Add comment to explain why.
3030         (new_symbol): Ditto.
3031
3032 2010-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3033
3034         * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3035         the host signal first.
3036
3037 2010-07-23  Tom Tromey  <tromey@redhat.com>
3038
3039         * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3040         type_comp_units>: New fields.
3041         (dw2_get_cu): New function.
3042         (create_cus_from_index): Remove unused argument.
3043         (create_signatured_type_hash_from_index): New function.
3044         (create_addrmap_from_index): Update.
3045         (dwarf2_read_index): Handle version 2.
3046         (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3047         (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3048         (dw2_print_stats, dw2_expand_all_symtabs)
3049         (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3050         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3051         (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3052         (allocate_signatured_type_hash_table): New function.
3053         (add_signatured_type_cu_to_list): Likewise.
3054         (create_debug_types_hash_table): Use them.  Set type_comp_units.
3055         (read_signatured_type): Ensure section data is available.
3056         (add_address_entry): Don't record empty ranges.
3057         (struct signatured_type_index_data): New.
3058         (write_one_signatured_type): New function.
3059         (write_psymtabs_to_index): Write type CUs.
3060         (save_gdb_index_command): Update comment.
3061         (process_type_comp_unit): Move inititalization of
3062         from_debug_types...
3063         (create_debug_types_hash_table): ... here.
3064
3065 2010-07-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
3066
3067         * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3068         cleanup and generating of gdb script to it.
3069         (gdb): Use redirection from /dev/null.  Use --nx.  Turn off pagination
3070         and terminal size.  Convert $tmpfile to a series of -ex-es.
3071
3072 2010-07-23  Keith Seitz  <keiths@redhat.com>
3073
3074         * symtab.c (basic_lookup_transparent_type): Call pre-expand
3075         hook for STATIC_BLOCK types, too.
3076
3077 2010-07-23  Keith Seitz  <keiths@redhat.com>
3078
3079         * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3080         and vector definition.
3081
3082 2010-07-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
3083
3084         * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3085
3086 2010-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3087
3088         * dwarf2read.c: Include completer.h.
3089         (save_gdb_index_command): Use matching usage command name.
3090         (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3091         Set filename_completer for it.
3092
3093 2010-07-22  Tom Tromey  <tromey@redhat.com>
3094
3095         * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3096         type signature's per-CU data.
3097
3098 2010-07-22  Pedro Alves  <pedro@codesourcery.com>
3099
3100         * NEWS: Mention target reported shared libraries support by
3101         default.
3102
3103 2010-07-21  Pedro Alves  <pedro@codesourcery.com>
3104
3105         PR symtab/11827
3106
3107         Revert:
3108         2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3109         * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3110         and DW_TAG_volatile_type.
3111         (new_symbol): Likewise.
3112
3113 2010-07-21  Sami Wagiaalla  <swagiaal@redhat.com>
3114
3115         * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3116         function symbols before overload resolution.
3117
3118 2010-07-21  Pedro Alves  <pedro@codesourcery.com>
3119
3120         * breakpoint.c (bptype_string): New, abstracted out from
3121         print_one_breakpoint_location.
3122         (print_one_breakpoint_location): Adjust.
3123         (breakpoint_1): Adjust the type column width dynamically.
3124
3125 2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3126
3127         * symfile.c (find_separate_debug_file_by_debuglink): Remove
3128         a gdb_assert call, new comment.
3129
3130 2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3131
3132         * linux-nat.c (linux_handle_extended_wait): Handle case when
3133         event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3134
3135 2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3136
3137         Code cleanup.
3138         * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3139         linux_nat_wait_1.  Use always LP->STATUS afterwards.
3140
3141 2010-07-20  Hui Zhu  <teawater@gmail.com>
3142
3143         * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3144         (inf_ptrace_attach): Ditto.
3145
3146 2010-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3147
3148         Make core files the process_stratum.
3149         * corefile.c (core_target): New variable.
3150         (core_file_command): Remove variable t, use core_target.
3151         * corelow.c (core_ops): Make it static.
3152         (init_core_ops): Change to process_stratum.  Initialize CORE_TARGET.
3153         * defs.h (make_cleanup_unpush_target): New prototype.
3154         * gdbarch.h: Regenerate.
3155         * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3156         * gdbcore.h (core_target): New declaration.
3157         * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3158         variables ops_already_pushed and back_to.  Use push_target,
3159         make_cleanup_unpush_target and discard_cleanups calls.
3160         * record.c (record_open): Replace core_stratum by a core_bfd check.
3161         * target.c (target_is_pushed): New function.
3162         (find_core_target): Remove.
3163         * target.h (enum strata) <core_stratum>: Remove.
3164         (target_is_pushed): New declaration.
3165         (find_core_target): Remove declaration.
3166         * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3167         * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3168
3169 2010-07-19  Hui Zhu  <teawater@gmail.com>
3170
3171         * breakpoint.c (single_step_breakpoints_inserted): New
3172         function.
3173         * breakpoint.h (single_step_breakpoints_inserted): Extern.
3174         * infrun.c (maybe_software_singlestep): Add check code.
3175         * record.c (record_resume): Add code for software single step.
3176         (record_wait): Ditto.
3177
3178 2010-07-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3179
3180         * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3181         a more inner block.  Remove its unused declaration initializer.
3182
3183 2010-07-16  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3184
3185         * NEWS: Mention support for the new ptrace interface and hardware
3186         accelerated watchpoint conditions on powerpc-linux.
3187
3188 2010-07-16  Ozkan Sezer  <sezeroz@gmail.com>
3189
3190         * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3191         long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3192         and host_address_to_string() and %s for pointers.
3193         (debug_to_remove_breakpoint): Likewise.
3194         (debug_to_region_ok_for_hw_watchpoint): Likewise.
3195         (debug_to_can_accel_watchpoint_condition): Likewise.
3196         (debug_to_stopped_data_address): Likewise.
3197         (debug_to_watchpoint_addr_within_range): Likewise.
3198         (debug_to_insert_hw_breakpoint): Likewise.
3199         (debug_to_remove_hw_breakpoint): Likewise.
3200         (debug_to_insert_watchpoint): Likewise.
3201         (debug_to_remove_watchpoint): Likewise.
3202
3203 2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
3204
3205         * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3206         argument.
3207         (cplus_specific): New struct.
3208         * symtab.c (symbol_set_demangled_name): Updated.
3209         Use cplus_specific for cplus symbols.
3210         (symbol_get_demangled_name): Retrive the name from the cplus_specific
3211         struct for cplus symbols.
3212         (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3213         (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3214         * symtab.c (symbol_init_cplus_specific): New function.
3215
3216 2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
3217
3218         * symtab.h (symbol_set_demangled_name): New function.
3219         (symbol_get_demangled_name): New function.
3220         * symtab.c (symbol_set_demangled_name): New function.
3221         (symbol_get_demangled_name): New function.
3222         (symbol_init_language_specific): Use demangled_name setter and getter.
3223         (symbol_set_names): Ditto.
3224         (symbol_natural_name): Ditto.
3225         (symbol_demangled_name): Ditto.
3226         * dwarf2read.c (new_symbol): Ditto.
3227
3228 2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
3229
3230         * symtab.h: Renamed cplus_specific to mangled_lang.
3231         * symtab.c (symbol_init_language_specific): Updated.
3232         (symbol_set_names): Updated.
3233         (symbol_natural_name): Updated.
3234         (symbol_demangled_name): Updated.
3235         * ada-lang.c (ada_decode_symbol): Updated.
3236         * dwarf2read.c (new_symbol): Updated.
3237
3238 2010-07-14  Ken Werner  <ken.werner@de.ibm.com>
3239
3240         * valops.c (value_assign): Do not call to value_coerce_to_target.
3241         (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3242
3243 2010-07-14  Ken Werner  <ken.werner@de.ibm.com>
3244
3245         * MAINTAINERS: Add myself for write after approval privileges.
3246
3247 2010-07-13  Emmanuel Thomé  <Emmanuel.Thome@gmail.com>
3248
3249         * c-valprint.c (c_val_print): Add embedded_offset to address in
3250         call to val_print_array_elements.
3251
3252 2010-07-13  Tom Tromey  <tromey@redhat.com>
3253
3254         * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3255
3256 2010-07-13  Tom Tromey  <tromey@redhat.com>
3257
3258         * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3259         objfile.
3260
3261 2010-07-13  Tom Tromey  <tromey@redhat.com>
3262
3263         * symfile.c (set_initial_language): Update.
3264         (deduce_language_from_filename): Argument type now const.
3265         * symtab.h (find_main_filename): Update.
3266         (deduce_language_from_filename): Update.
3267         * symtab.c (find_main_filename): Make result const.
3268         * dwarf2read.c (dw2_find_symbol_file): Change return type.
3269         * psymtab.c (find_symbol_file_from_partial): Change return type.
3270         * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3271         Make result const.
3272
3273 2010-07-13  Tom Tromey  <tromey@redhat.com>
3274
3275         * breakpoint.c (save_cmdlist): No longer static.
3276         * gdbcmd.h (save_cmdlist): Declare.
3277         * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3278         OBJF_READNOW on objfile if readnow_symbol_files.
3279         * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3280         (elf_sym_fns_gdb_index): New global.
3281         * dwarf2read.c: Include exceptions.h.
3282         (offset_type): New.
3283         (struct mapped_index): New.
3284         (dwarf2_per_cu_data_ptr): New typedef.
3285         (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3286         New fields.
3287         (GDB_INDEX_SECTION): New define.
3288         (struct dwarf2_per_cu_quick_data): New.
3289         (struct dwarf2_per_cu_data) <objfile>: New field.
3290         <psymtab>: Removed.
3291         <v>: New field.
3292         (byte_swap): New function.
3293         (MAYBE_SWAP): New macro.
3294         (INDEX_SUFFIX): New macro.
3295         (dw2_do_instantiate_symtab): New function.
3296         (dw2_instantiate_symtab): Likewise.
3297         (create_cus_from_index): Likewise.
3298         (create_addrmap_from_index): Likewise.
3299         (mapped_index_string_hash): Likewise.
3300         (find_slot_in_mapped_hash): Likewise.
3301         (dwarf2_read_index): Likewise.
3302         (dw2_setup): Likewise.
3303         (dw2_require_line_header): Likewise.
3304         (dw2_require_full_path): Likewise.
3305         (dw2_find_last_source_symtab): Likewise.
3306         (dw2_forget_cached_source_info): Likewise.
3307         (dw2_lookup_symtab): Likewise.
3308         (dw2_lookup_symbol): Likewise.
3309         (dw2_do_expand_symtabs_matching): Likewise.
3310         (dw2_pre_expand_symtabs_matching): Likewise.
3311         (dw2_print_stats): Likewise.
3312         (dw2_dump): Likewise.
3313         (dw2_relocate): Likewise.
3314         (dw2_expand_symtabs_for_function): Likewise.
3315         (dw2_expand_all_symtabs): Likewise.
3316         (dw2_expand_symtabs_with_filename): Likewise.
3317         (dw2_find_symbol_file): Likewise.
3318         (dw2_map_ada_symtabs): Likewise.
3319         (dw2_expand_symtabs_matching): Likewise.
3320         (dw2_find_pc_sect_symtab): Likewise.
3321         (dw2_map_symbol_names): Likewise.
3322         (dw2_map_symbol_filenames): Likewise.
3323         (dw2_has_symbols): Likewise.
3324         (dwarf2_gdb_index_functions): New global.
3325         (dwarf2_initialize_objfile): New function.
3326         (process_psymtab_comp_unit): Update.
3327         (add_partial_subprogram): Likewise.
3328         (dwarf2_psymtab_to_symtab): Likewise.
3329         (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3330         (process_full_comp_unit): Update.
3331         (find_file_and_directory): New function.
3332         (read_file_scope): Use find_file_and_directory.
3333         (dwarf2_per_cu_objfile): Update.
3334         (dwarf2_per_cu_addr_size): Update.
3335         (dwarf2_per_cu_offset_size): Update.
3336         (dwarf2_free_objfile): Free the index, if needed.
3337         (dwarf2_per_objfile_free): Unmap the index, if needed.
3338         (struct strtab_entry): New.
3339         (hash_strtab_entry): New function.
3340         (eq_strtab_entry): Likewise.
3341         (create_strtab): Likewise.
3342         (add_string): Likewise.
3343         (struct symtab_index_entry): New.
3344         (struct mapped_symtab): New.
3345         (hash_symtab_entry): New function.
3346         (eq_symtab_entry): Likewise.
3347         (delete_symtab_entry): Likewise.
3348         (create_index_table): Likewise.
3349         (create_mapped_symtab): Likewise.
3350         (cleanup_mapped_symtab): Likewise.
3351         (find_slot): Likewise.
3352         (hash_expand): Likewise.
3353         (add_index_entry): Likewise.
3354         (add_indices_to_cpool): Likewise.
3355         (write_hash_table): Likewise.
3356         (add_address_entry): Likewise.
3357         (write_psymbols): Likewise.
3358         (write_obstack): Likewise.
3359         (unlink_if_set): Likewise.
3360         (write_psymtabs_to_index): Likewise.
3361         (save_gdb_index_command): Likewise.
3362         (_initialize_dwarf2_read): Install "save gdb-index"
3363         command.
3364         (create_all_comp_units): Initialize 'objfile' field of CU.
3365         (dwarf2_locate_sections): Check for .gdb_index.
3366         * psymtab.h (dwarf2_gdb_index_functions): Declare.
3367         * symfile.h (dwarf2_initialize_objfile): Declare.
3368
3369 2010-07-13  Tom Tromey  <tromey@redhat.com>
3370
3371         * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3372         (basic_lookup_transparent_type): Likewise.
3373         * symfile.h (struct quick_symbol_functions)
3374         <pre_expand_symtabs_matching>: New field.
3375         * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3376         (psym_functions): Update.
3377
3378 2010-07-13  Tom Tromey  <tromey@redhat.com>
3379
3380         PR breakpoints/8357:
3381         * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3382         * linespec.c (decode_line_1): Update comment.  Call decode_label.
3383         (decode_label): New function.
3384         (symbol_found): Handle LOC_LABEL.
3385         * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3386         domain.  Call add_symbol_to_list.
3387
3388 2010-07-13  Tom Tromey  <tromey@redhat.com>
3389
3390         * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3391         * dwarf2loc.c (find_location_expression): Use
3392         dwarf2_per_cu_text_offset.
3393         (dwarf2_evaluate_loc_desc): Likewise.
3394         (dwarf2_loc_desc_needs_frame): Likewise.
3395         (compile_dwarf_to_ax): Likewise.
3396         (loclist_describe_location): Likewise.
3397         * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3398         (dwarf2_per_cu_objfile): Update comment.
3399
3400 2010-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
3401
3402         * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3403         * p-lang.c (pascal_printstr): Likewise.
3404
3405 2010-07-09  Tom Tromey  <tromey@redhat.com>
3406
3407         * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3408         'hint' if it is NULL.
3409
3410 2010-07-09  Hui Zhu  <teawater@gmail.com>
3411
3412         * source.c (print_source_lines_base): Add check for noprint.
3413
3414 2010-07-08  Joel Brobecker  <brobecker@adacore.com>
3415
3416         * python/python-config.py: Resync with Python 2.7 version of this
3417         script.
3418
3419 2010-07-08  Joel Brobecker  <brobecker@adacore.com>
3420
3421         * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3422
3423 2010-07-07  Joel Brobecker  <brobecker@adacore.com>
3424
3425         * NEWS: Create a new section for the next release branch.
3426         Rename the section of the current branch, now that it has
3427         been cut.
3428
3429 2010-07-07  Joel Brobecker  <brobecker@adacore.com>
3430
3431         GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3432         * version.in: Bump version to 7.2.50.20100707-cvs.
3433
3434 2010-07-07  Tom Tromey  <tromey@redhat.com>
3435
3436         * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3437         LOC_COMPUTED symbol.
3438         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3439         (dwarf2_loc_desc_needs_frame): Likewise.
3440         (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3441         * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3442         * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3443         * dwarf2-frame.c (execute_stack_op): Set 'offset' field.  Add
3444         'offset' argument.
3445         (struct dwarf2_frame_cache) <text_offset>: New field.
3446         (dwarf2_frame_cache): Set new field.
3447         (dwarf2_frame_prev_register): Update.
3448         (dwarf2_frame_sniffer): Update.
3449         (dwarf2_frame_base_sniffer): Update.
3450         (dwarf2_frame_find_fde): Add 'out_offset' argument.
3451
3452 2010-07-07  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
3453             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3454
3455         Support for hw accelerated condition watchpoints in booke powerpc.
3456
3457         * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3458         and move to eval.c.  Change callers.
3459         (insert_bp_location): Pass watchpoint condition in
3460         target_insert_watchpoint.
3461         (remove_breakpoint_1) Pass watchpoint condition in
3462         target_remove_watchpoint.
3463         (watchpoint_locations_match): Call
3464         target_can_accel_watchpoint_condition.
3465         * eval.c: Include wrapper.h.
3466         (fetch_subexp_value): Moved from breakpoint.c.
3467         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3468         Formatting fix.
3469         (can_use_watchpoint_cond_accel): New function.
3470         (calculate_dvc): Likewise.
3471         (num_memory_accesses): Likewise.
3472         (check_condition): Likewise.
3473         (ppc_linux_can_accel_watchpoint_condition): Likewise
3474         (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3475         check_condition and calculate_dvc.
3476         (ppc_linux_remove_watchpoint): Likewise.
3477         (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3478         ppc_linux_can_accel_watchpoint_condition
3479         * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3480         condition.
3481         (debug_to_remove_watchpoint): Likewise.
3482         (debug_to_can_accel_watchpoint_condition): New function.
3483         (update_current_target): Set to_can_accel_watchpoint_condition.
3484         (setup_target_debug): Set to_can_accel_watchpoint_condition.
3485         * target.h: Add opaque declaration for struct expression.
3486         (struct target_ops) <to_insert_watchpoint>,
3487         <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3488         <to_can_accel_watchpoint_condition>: New member.
3489         condition.  Update all callers and implementations.
3490         (target_can_accel_watchpoint_condition): New macro.
3491         * value.c (free_value_chain): New function.
3492         * value.h (fetch_subexp_value): New prototype.
3493         (free_value_chain): Likewise.
3494
3495 2010-07-07  Ulrich Weigand  <uweigand@de.ibm.com>
3496
3497         * linux-nat.c (linux_nat_do_thread_registers): Use section size
3498         from gdbarch_core_regset_sections also for .reg if present.
3499
3500         * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3501         section size for .reg.
3502         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3503         (ppc_linux_vmx_regset_sections): Likewise.
3504         (ppc_linux_fp_regset_sections): Likewise.
3505         (ppc64_linux_vsx_regset_sections): New variable.
3506         (ppc64_linux_vmx_regset_sections): Likewise.
3507         (ppc64_linux_fp_regset_sections): Likewise.
3508         (ppc_linux_init_abi): Install core_regset_section lists appropriate
3509         for current word size.
3510
3511 2010-07-06  Joel Brobecker  <brobecker@adacore.com>
3512
3513         * server.c (myresume): Make static.
3514
3515 2010-07-06  Tom Tromey  <tromey@redhat.com>
3516
3517         * configure, config.in: Rebuild.
3518         * configure.ac (HAVE_LIBPYTHON2_7): New define.
3519         * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3520
3521 2010-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3522
3523         * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3524         "clear".
3525
3526 2010-07-06  Ken Werner  <ken.werner@de.ibm.com>
3527
3528         * gdbtypes.h (floatformats_ieee_half): Add declaration.
3529         * gdbtypes.c (floatformats_ieee_half): New variable.
3530         * doublest.c (floatformat_from_length): Set format to
3531         gdbarch_half_format if length matches.
3532         * gdbarch.sh (half_bit): New architecture method.
3533         (half_format): Likewise.
3534         * gdbarch.h: Regenerate.
3535         * gdbarch.c: Likewise.
3536
3537 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3538             Joel Brobecker  <brobecker@adacore.com>
3539
3540         Fix re-run of PIE executable, PR shlibs/11776.
3541         * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3542         the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3543
3544 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3545             Joel Brobecker  <brobecker@adacore.com>
3546
3547         * auxv.c (memory_xfer_auxv): Update attach comment.
3548         * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3549         svr4_relocate_main_executable.
3550         (svr4_solib_create_inferior_hook): Make the call to
3551         svr4_relocate_main_executable unconditional.
3552
3553 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3554             Joel Brobecker  <brobecker@adacore.com>
3555
3556         * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3557
3558 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3559             Joel Brobecker  <brobecker@adacore.com>
3560
3561         Fix attaching to PIEs prelinked on the disk after the process was
3562         started.
3563         * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3564         Verify it against bfd_get_arch_size.  Try to match arbitrary
3565         displacement for the phdrs comparison.
3566
3567 2010-07-02  Tom Tromey  <tromey@redhat.com>
3568
3569         PR exp/11780:
3570         * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3571         value as optimized-out.
3572
3573 2010-07-02  Ulrich Weigand  <uweigand@de.ibm.com>
3574             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3575
3576         * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3577         represent?" question in comment.  Change comment to a proper sentence.
3578
3579 2010-07-02  Ken Werner  <ken.werner@de.ibm.com>
3580
3581         * c-valprint.c (c_val_print): Fix printing of character vectors.
3582
3583 2010-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3584
3585         * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3586         create_breakpoint prototype.
3587
3588 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3589
3590         * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3591         usefulness suggestion of multiple breakpoints at same location.
3592
3593 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3594
3595         * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3596
3597 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3598
3599         * dwarf2loc.c (locexpr_tracepoint_var_ref)
3600         (loclist_tracepoint_var_ref): Handle optimized out values.
3601
3602 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3603
3604         * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3605         unnecessary space in string.
3606         * filesystem.c (_initialize_filesystem): Ditto.
3607         * frame.c (_initialize_frame): Ditto.
3608         * infcmd.c (step_once): Ditto.
3609         * infrun.c (_initialize_infrun): Ditto.
3610         * linux-nat.c (linux_child_follow_fork): Ditto.
3611         * maint.c (maintenance_deprecate): Ditto.
3612         * memattr.c (_initialize_mem): Ditto.
3613         * mips-tdep.c (_initialize_mips_tdep): Ditto.
3614         * monitor.c (monitor_open): Ditto.
3615         * procfs.c (procfs_xfer_memory): Ditto.
3616         * reverse.c (bookmarks_info): Ditto.
3617         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3618         * stack.c (_initialize_stack): Ditto.
3619         * tracepoint.c (_initialize_tracepoint): Ditto.
3620         * xtensa-tdep.c (xtensa_supply_gregset,
3621         xtensa_regset_from_core_section): Ditto.
3622
3623 2010-07-01  Tom Tromey  <tromey@redhat.com>
3624
3625         * value.h (struct lval_funcs) <check_any_valid>: Rename from
3626         check_all_valid.
3627         * value.c (value_entirely_optimized_out): Invert result.  Update
3628         for new function name.
3629
3630 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3631
3632         Static tracepoints support.
3633
3634         * NEWS: Mention new support for static tracepoints.
3635         (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3636         qXfer:statictrace:read.
3637         (New features in the GDB remote stub, GDBserver): Mention static
3638         tracepoints support using an UST based backend.
3639         (New commands): Mention "info static-tracepoint-markers" and
3640         "strace".
3641         * breakpoint.c (is_marker_spec): New.
3642         (is_tracepoint): Handle static tracepoints.
3643         (validate_commands_for_breakpoint): Static tracepoints can't do
3644         while-stepping.
3645         (static_tracepoints_here): New.
3646         (bpstat_what): Handle static tracepoints.
3647         (print_one_breakpoint_location, allocate_bp_location, mention):
3648         Ditto.
3649         (create_breakpoint_sal): Ditto.
3650         (decode_static_tracepoint_spec): New.
3651         (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3652         `type_wanted'.  Adjust.  Handle static tracepoint marker
3653         locations.
3654         (break_command_1): Adjust.
3655         (update_static_tracepoint): New.
3656         (update_breakpoint_locations): Handle static tracepoints.
3657         (breakpoint_re_set_one): Handle static tracepoint marker
3658         locations.
3659         (disable_command, enable_command): Handle static tracepoints.
3660         (trace_command, ftrace_command): Adjust.
3661         (strace_command): New.
3662         (create_tracepoint_from_upload): Adjust.
3663         (save_breakpoints): Handle static tracepoints.
3664         (_initialize_breakpoint): Install the "strace" command.
3665         * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3666         (struct breakpoint): New fields static_trace_marker_id and
3667         static_trace_marker_id_idx.
3668         (breakpoints_here_p): Declare.
3669         (create_breakpoint): Adjust.
3670         (static_tracepoints_here): Declare.
3671         * remote.c (struct remote_state) <static_tracepoints>: New field.
3672         (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3673         (remote_static_tracepoint_marker_at): New.
3674         (remote_static_tracepoint_markers_by_strid): New.
3675         (remote_static_tracepoint_feature): New.
3676         (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3677         (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3678         (remote_supports_static_tracepoints): New.
3679         (remote_download_tracepoint): Download static tracepoints.
3680         (init_remote_ops): Install remote_static_tracepoint_marker_at and
3681         remote_static_tracepoint_markers_by_strid.
3682         (_initialize_remote): Install set|show remote static-tracepoints,
3683         and set|show remote read-sdata-object commands.
3684         * target.c (update_current_target): Inherit and default
3685         to_static_tracepoint_marker_at, and
3686         to_static_tracepoint_markers_by_strid.
3687         * target.h (static_tracepoint_marker): Forward declare.
3688         (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3689         (static_tracepoint_marker_p): New typedef.
3690         (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3691         (struct target_ops): New fields to_static_tracepoint_marker_at and
3692         to_static_tracepoint_markers_by_strid.
3693         (target_static_tracepoint_marker_at)
3694         (target_static_tracepoint_markers_by_strid): New.
3695         * tracepoint.c: Include source.h.
3696         (validate_actionline): Handle $_sdata.
3697         (struct collection_list): New field strace_data.
3698         (add_static_trace_data): New.
3699         (clear_collection_list): Clear strace_data.
3700         (stringify_collection_list): Account for a possible static trace
3701         data collection.
3702         (encode_actions_1): Encode an $_sdata collection.
3703         (parse_tracepoint_definition): Handle static tracepoints.
3704         (parse_static_tracepoint_marker_definition): New.
3705         (release_static_tracepoint_marker): New.
3706         (print_one_static_tracepoint_marker): New.
3707         (info_static_tracepoint_markers_command): New.
3708         (sdata_make_value): New.
3709         (_initialize_tracepoint): Create the $_sdata convenience variable.
3710         Add the "info static-tracepoint-markers" command.
3711         Mention $_sdata in the "collect" command's help output.
3712         * tracepoint.h (struct static_tracepoint_marker): New.
3713         (parse_static_tracepoint_marker_definition)
3714         (release_static_tracepoint_marker): Declare.
3715         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3716         * python/py-breakpoint.c (bppy_new): Adjust.
3717
3718 2010-06-30  Joel Brobecker  <brobecker@adacore.com>
3719
3720         * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3721         including Python.h.
3722
3723 2010-06-29  Doug Evans  <dje@google.com>
3724
3725         PR gdb/11702
3726         * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3727         DW_AT_external is present.
3728
3729         PR gdb/11702
3730         * NEWS: Add entry.
3731         * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3732         create a symbol for the field and record the value.
3733         (new_symbol): Handle DW_TAG_member.
3734         * gdbtypes.c (field_is_static): Remove FIXME.
3735         * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3736         only ignore LOC_CONST symbols that are enums.
3737
3738         * dwarf2read.c: Remove trailing whitespace.
3739
3740         Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3741         * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3742         (struct main_type, field loc): Delete dwarf_block.
3743         (FIELD_DWARF_BLOCK): Delete.
3744         (SET_FIELD_DWARF_BLOCK): Delete.
3745         (TYPE_FIELD_DWARF_BLOCK): Delete.
3746         * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3747         Update.
3748
3749 2010-06-29  Hui Zhu  <teawater@gmail.com>
3750
3751         * record.c (set_record_pic_cmdlist,
3752         show_record_pic_cmdlist): New variables.
3753         (set_record_pic_command,
3754         show_record_pic_command): New functions.
3755         (record_pic_function, record_pic_line, record_pic_enum,
3756         set_record_pic_type, record_pic_hide_nofunction,
3757         record_pic_hide_nosource, record_pic_hide_same): New variables.
3758         (record_pic_fputs): New function.
3759         (function_list, node_list, edge_list): New struct.
3760         (function_list, node_list, edge_list): New variables.
3761         (record_pic_cleanups, record_pic_node,
3762         record_pic_edge, cmd_record_pic): New functions.
3763         (_initialize_record): Add new commands for record pic.
3764
3765 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3766
3767         * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3768         ALLOCATE_CPLUS_STRUCT_TYPE.
3769
3770 2010-06-28  Phil Muldoon  <pmuldoon@redhat.com>
3771             Tom Tromey  <tromey@redhat.com>
3772             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3773
3774         * value.c (pack_unsigned_long): New function.
3775         (value_from_ulongest): New function.
3776         * value.h (value_from_ulongest): Declare.
3777         * python/python.c (_initialize_python): Call
3778         gdbpy_initialize_thread and gdbpy_initialize_inferior.
3779         * python/python-internal.h: Define thread_object.
3780         (gdbpy_inferiors, gdbpy_selected_thread)
3781         (frame_info_to_frame_object, create_thread_object)
3782         (find_thread_object, find_inferior_object)
3783         (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3784         (gdbpy_is_value_object, get_addr_from_python): Declare.
3785         * python/py-value.c (builtin_type_upylong): Define.
3786         (convert_value_from_python): Add logic for ulongest.
3787         (gdbpy_is_value_object): New function.
3788         * python/py-utils.c (get_addr_from_python): New function.
3789         * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3790         (gdbpy_selected_frame): Use PyObject over frame_info.
3791         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3792         py-infthread.
3793         (SUBDIR_PYTHON_SRCS): Likewise.
3794         (py-inferior.o): New Rule.
3795         (py-infthread.o): New Rule.
3796         * python/py-inferior.c: New File.
3797         * python/py-infthread.c: New File.
3798
3799 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3800
3801         * c-typeprint.c (c_type_print_base): For no fields check include also
3802         TYPE_TYPEDEF_FIELD_COUNT.  Print new typedefs section.
3803         * dwarf2read.c (struct typedef_field_list)
3804         (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3805         (dwarf2_add_typedef): New.
3806         (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3807         Copy also FI.TYPEDEF_FIELD_LIST.
3808         * gdbtypes.h (struct typedef_field)
3809         (struct cplus_struct_type) <typedef_field, typedef_field_count>
3810         (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3811         (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3812
3813 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3814
3815         * cp-namespace.c (cp_lookup_nested_type): New variable
3816         concatenated_name.  Turn the current return condition into a reverse
3817         one.  Call also lookup_static_symbol_aux on the constructed qualified
3818         name.
3819         * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3820         other files into a called ...
3821         (lookup_static_symbol_aux): ... new function here.
3822         * symtab.h (lookup_static_symbol_aux): New prototype.
3823         * valops.c (value_maybe_namespace_elt): Call also
3824         lookup_static_symbol_aux if we failed otherwise.
3825
3826 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3827
3828         Fix PR c++/11703 and PR gdb/1448.
3829         * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3830         FIRST_ITER check.
3831
3832 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3833
3834         Fix modification of cplus_struct_default.
3835         * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3836         Call ALLOCATE_CPLUS_STRUCT_TYPE.
3837         * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3838
3839 2010-06-28  Joel Brobecker  <brobecker@adacore.com>
3840
3841         * NEWS: Add entry announcing the python directory.
3842
3843 2010-06-28  Tom Tromey  <tromey@redhat.com>
3844
3845         * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3846
3847 2010-06-28  Doug Evans  <dje@google.com>
3848
3849         * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3850         All callers updated.
3851
3852 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3853
3854         * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3855         obstack_begin after each obstack_free.
3856
3857 2010-06-27  Doug Evans  <dje@google.com>
3858
3859         * value.c (value_static_field): Use `switch' instead of `if'.
3860         Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3861
3862         * valops.c (search_struct_field): Fix typo in error message.
3863
3864 2010-06-26  Ulrich Weigand  <uweigand@de.ibm.com>
3865
3866         * dwarf2expr.c (execute_stack_op): Place preprocessor
3867         directives at the start of the source line.
3868
3869 2010-06-25  Paul Hilfinger  <hilfinger@adacore.com>
3870
3871         * defs.h (make_command_stats_cleanup): Declare.
3872         (set_display_time): Declare.
3873         (set_display_space): Declare.
3874         * event-top.c (command_handler): Use make_command_stats_cleanup.
3875         * main.c (display_time, display_space): Move definitions to utils.c.
3876         (captured_main): Use make_command_stats_cleanup to get start-up
3877         statistics.
3878         Use set_display_time and set_display_space for processing OPT_STATISTICS
3879         case.
3880         * maint.c (maintenance_time_display): Use set_display_time.
3881         (maintenance_space_display): Use set_display_space.
3882         * top.c (execute_command): Remove obsolete 'maint time' code.
3883         (command_loop): Use make_command_stats_cleanup.
3884         * utils.c (struct cmd_stats): Structure for storing initial time
3885         and space usage.
3886         (display_time, display_space): Move definitions here from utils.c.
3887         (set_display_time): New function.
3888         (set_display_space): New function.
3889         (make_command_stats_cleanup): New function.
3890         (report_command_stats): New auxiliary function for
3891         make_command_stats_cleanup.
3892
3893 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
3894
3895         * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3896         hosts where CORE_ADDR is long long.
3897
3898 2010-06-25  Tom Tromey  <tromey@redhat.com>
3899
3900         PR python/10808:
3901         * python/python.c (execute_gdb_command): Add keywords.  Accept
3902         "to_string" argument.
3903         (struct restore_ui_file_closure): New.
3904         (restore_ui_file): New function.
3905         (make_cleanup_restore_ui_file): Likewise.
3906         (GdbMethods) <execute>: Update.
3907
3908 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
3909
3910         * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3911         during inferior call stack frame setup.
3912
3913 2010-06-25  Ken Werner  <ken.werner@de.ibm.com>
3914
3915         * solib-spu.c: Include "exception.h".
3916         (ocl_program_data_key): New variable.
3917         (append_ocl_sos): New function.
3918         (ocl_enable_break): Likewise.
3919         (spu_current_sos): Call append_ocl_sos.
3920         (spu_solib_loaded): Call ocl_enable_break.
3921         (_initialize_spu_solib): Register ocl_program_data_key.
3922
3923 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
3924
3925         * cp-support.c (reset_directive_searched): New function.
3926         (make_symbol_overload_list_using): Prevent recursive calls.
3927
3928 2010-06-25  Phil Muldoon  <pmuldoon@redhat.com>
3929
3930         * printcmd.c (print_variable_and_value): Print error message on
3931         caught exception.
3932
3933 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
3934
3935         * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3936         of stack values.
3937         (struct dwarf_expr_piece): Rename "expr" member to "mem".  Add new
3938         "value" member.
3939         (dwarf_expr_push): Change input type to ULONGEST.
3940         (dwarf_expr_fetch): Change return type to ULONGEST.
3941         (dwarf_expr_fetch_address): Add prototype.
3942         (dwarf2_read_address): Remove prototype.
3943         * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3944         Truncate stack values to ctx->addr_size bytes.
3945         (dwarf_expr_fetch): Change return value to ULONGEST.
3946         (dwarf_expr_fetch_address): New function.
3947         (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3948         when appropriate.  Update for struct dwarf_expr_piece changes.
3949         (dwarf2_read_address): Remove.
3950         (unsigned_address_type): Remove.
3951         (signed_address_type): Remove.
3952         (execute_stack_op): Use dwarf_expr_fetch_address instead of
3953         dwarf_expr_fetch when appropriate.  Use ULONGEST as type of stack
3954         values.  Perform operations on ULONGEST instead of on GDB values,
3955         sign-extending from ctx->addr_size bytes as needed.  Read DW_OP_addr
3956         values and DW_OP_deref results as unsigned integers.
3957         * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3958         changes.
3959         (write_pieced_value): Likewise.
3960         (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3961         dwarf_expr_fetch when appropriate.
3962         (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3963         * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3964         instead of dwarf_expr_fetch when appropriate.
3965
3966 2010-06-25  Pierre Muller  <muller@ics.u-strasbg.fr>
3967
3968         * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3969
3970 2010-06-24  Joel Brobecker  <brobecker@adacore.com>
3971
3972         * python/python.c (_initialize_python): Add new "constant"
3973         PYTHONDIR in gdb module.  Insert this path at the head of
3974         sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3975         exec its __init__.py script if it exists in that directory.
3976
3977 2010-06-24  Kevin Buettner  <kevinb@redhat.com>
3978
3979         * rx-tdep.c (RX_ACC_REGNUM): Define.
3980         (RX_NUM_REGS): Redefine to 26.
3981         (rx_register_name): Add register "acc".  Change order of several
3982         registers.  Change name of "vct" register to "fintv" to match RX
3983         documentation.
3984         (rx_register_type): Add case for RX_ACC_REGNUM.
3985
3986 2010-06-24  Tom Tromey  <tromey@redhat.com>
3987
3988         * psymtab.c (lookup_partial_symbol): Mark definition as static.
3989
3990 2010-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3991             Tom Tromey  <tromey@redhat.com>
3992
3993         Fix GDB startup on readonly filesystem.
3994         * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3995
3996 2010-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3997             Pedro Alves  <pedro@codesourcery.com>
3998
3999         Fix PR 9436.
4000         * breakpoint.c (handle_jit_event): New function.
4001         (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4002         jit, err, table and bs_class.  New variables shlib_event, jit_event,
4003         this_action and bptype.  Change bs_class assignments to this_action
4004         assignments.  new unhandled bptype internal error.  Move here
4005         shlib_event and jit_event handling from handle_inferior_event.
4006         * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4007         Reorder items.  Remove BPSTAT_WHAT_CHECK_SHLIBS and
4008         BPSTAT_WHAT_CHECK_JIT.
4009         * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4010         * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4011         (handle_inferior_event): Reinitialize frame and gdbarch after
4012         bpstat_what call.  Move BPSTAT_WHAT_CHECK_SHLIBS and
4013         BPSTAT_WHAT_CHECK_JIT handling to bpstat_what.  Reinitialize even
4014         gdbarch when frame gets reinitialized.
4015
4016 2010-06-24  Hui Zhu  <teawater@gmail.com>
4017
4018        * printcmd.c (ui_printf): New function.
4019        (printf_command): Call ui_printf.
4020        (_initialize_printcmd): New command "eval".
4021
4022 2010-06-23  Ulrich Weigand  <uweigand@de.ibm.com>
4023
4024         * infrun.c (handle_inferior_event): Handle presence of single-step
4025         breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4026         Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4027         TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4028         * breakpoint.c (detach_single_step_breakpoints): New function.
4029         (detach_breakpoints): Call it.
4030         (cancel_single_step_breakpoints): New function.
4031         * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4032
4033         * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4034         (spu_gdbarch_init): Install it.
4035
4036 2010-06-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
4037
4038         * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4039         * configure: Regenerate.
4040
4041 2010-06-22  Hui Zhu  <teawater@gmail.com>
4042
4043         * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4044         (i386_process_record): Ditto.
4045         * record.c (record_memory_query): New variable.
4046         (_initialize_record): New command "set record memory-query".
4047         * record.h (record_memory_query): New extern.
4048
4049 2010-06-21  Doug Evans  <dje@google.com>
4050
4051         * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4052         * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4053         (i386_syscall_p): Change type of lengthp to int.
4054         (i386_displaced_step_fixup): Handle kernels that run one past a
4055         syscall insn.
4056         * i386-linux-tdep.c (i386_linux_init_abi): Use
4057         i386_displaced_step_copy_insn instead of
4058         simple_displaced_step_copy_insn.
4059
4060 2010-06-21  Tom Tromey  <tromey@redhat.com>
4061
4062         * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4063         (dwarf_type_encoding_name): Likewise.
4064
4065 2010-06-21  Tom Tromey  <tromey@redhat.com>
4066
4067         * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4068         * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4069         * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4070         * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4071         * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4072         * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4073         * dwarf2read.c (tag_type_to_type): Create a new error type on
4074         failure.
4075         * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4076         * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4077
4078 2010-06-21  Michael Snyder  <msnyder@vmware.com>
4079
4080         * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
4081         not add_abbrev_prefix_cmd, for "enable breakpoints".
4082
4083 2010-06-21  Ulrich Weigand  <uweigand@de.ibm.com>
4084
4085         * dwarf2loc.c (find_location_expression): Add relocation offset
4086         to base-address-selection entry base addresses.  Read addresses
4087         (and offsets) as signed/unsigned integers, depending on the
4088         BFD's sign_extend_vma flag.  Do not call dwarf2_read_address.
4089         (loclist_describe_location): Likewise.
4090         (disassemble_dwarf_expression): Read DW_OP_addr operand as
4091         unsigned integer.  Do not call dwarf2_read_address.
4092         (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4093
4094 2010-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
4095
4096         * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4097         value instead of hard-coded SPU_LS_SIZE.
4098         (spu_software_single_step): Likewise.
4099         * spu-tdep.h (SPU_LS_SIZE): Remove.
4100
4101 2010-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
4102
4103         * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4104         limit on local store memory accesses.
4105         * spu-linux-nat.c (spu_xfer_partial): Likewise.
4106         * spu-tdep.c (spu_lslr): Remove.
4107         (spu_pointer_to_address): Do not truncate addresses.
4108         (spu_integer_to_address): Likewise.
4109         (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4110         * spu-tdep.h: Add comments.
4111         (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4112         (SPU_OVERLAY_LMA): Define.
4113
4114 2010-06-18  Stan Shebs  <stan@codesourcery.com>
4115
4116         * osdata.c (get_osdata): Warn separately if target does not report
4117         type list.
4118         (info_osdata_command): Allow empty type, report error if target
4119         does not return available types of OS data.
4120         * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4121         types if no annex supplied.
4122
4123         * thread.c (thread_id_make_value): Make a value representing the
4124         current thread.
4125         (_initialize_thread): Create $_thread.
4126
4127 2010-06-17  Joel Brobecker  <brobecker@adacore.com>
4128
4129         * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4130         last local variable declaration.  No real code change.
4131
4132 2010-06-17  Tom Tromey  <tromey@redhat.com>
4133
4134         * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4135         (dwarf2_build_psymtabs_hard): Use it.  Create addrmap on a
4136         temporary obstack.
4137
4138 2010-06-16  Sergio Durigan Junior  <sergiodj@redhat.com>
4139             Jan Kratochvil  <jan.kratochvil@redhat.com>
4140
4141         * breakpoint.c: Include parser-defs.h.
4142         (watchpoint_exp_is_const): New function.
4143         (watch_command_1): Call watchpoint_exp_is_const to check
4144         if the expression is constant.
4145
4146 2010-06-15  Andreas Schwab  <schwab@linux-m68k.org>
4147
4148         * configure.ac: Check for RDYNAMIC also for cross builds.
4149         * configure: Regenerate.
4150
4151 2010-06-15  Pedro Alves  <pedro@codesourcery.com>
4152
4153         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4154         (SFILES): Remove solib-null.c, add solib-target.c.
4155         (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4156         (ALLDEPFILES): Remove solib-target.c.
4157         * solib-target.c (_initialize_solib_target): Set
4158         current_target_so_ops to solib_target_so_ops if not already set.
4159         * solib-null.c: Delete.
4160
4161 2010-06-14  Pedro Alves  <pedro@codesourcery.com>
4162
4163         * NEWS: Mention GDBserver's JIT compilation of tracepoint
4164         bytecode.
4165
4166 2010-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
4167
4168         * cp-valprint.c (cp_print_static_field): Members of
4169         dont_print_stat_array_obstack are of type "struct type *".
4170         (_initialize_cp_valprint): Likewise.
4171
4172 2010-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
4173
4174         * frame.c (frame_register_unwind): Do not access contents
4175         of "optimized out" unwound register value.
4176
4177 2010-06-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4178
4179         * ada-lang.h (ada_print_type): Make varstring const.
4180         * ada-typeprint.c (print_func_type): Make name const.
4181         (ada_print_type): Make varstring const.
4182         * c-lang.h (c_print_type): Make varstring const.
4183         * c-typeprint.c (c_print_type): Likewise.
4184         * f-lang.h (f_print_type): Likewise.
4185         * f-typeprint.c (f_print_type): Likewise.
4186         * jv-lang.h (java_print_type): Likewise.
4187         * jv-typeprint.c (java_print_type): Likewise.
4188         * language.c (unk_lang_print_type): Likewise.
4189         * language.h (struct language_defn) <la_print_type>: Likewise.
4190         * m2-lang.h (m2_print_type): Likewise.
4191         * m2-typeprint.c (m2_print_type): Likewise.
4192         * p-lang.h (pascal_print_type): Likewise.
4193         * p-typeprint.c (pascal_print_type): Likewise.
4194
4195 2010-06-11  Stan Shebs  <stan@codesourcery.com>
4196
4197         Add per-operation permission flags.
4198
4199         * target.h (struct target_ops): New method to_set_permissions.
4200         (target_set_permissions): New macro.
4201         (target_insert_breakpoint): Change macro to function.
4202         (target_remove_breakpoint): Ditto.
4203         (target_stop): Ditto.
4204         (may_write_registers): Declare.
4205         (may_write_memory): Declare.
4206         (may_insert_breakpoints): Declare.
4207         (may_insert_tracepoints): Declare.
4208         (may_insert_fast_tracepoints): Declare.
4209         (may_stop): Declare.
4210         * target.c (may_write_registers, may_write_registers_1): New globals.
4211         (may_write_memory, may_write_memory_1): New globals.
4212         (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4213         (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4214         (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4215         globals.
4216         (may_stop, may_stop_1): New global.
4217         (target_xfer_partial): Test for write permission.
4218         (target_store_registers): Ditto.
4219         (target_insert_breakpoint): New function.
4220         (target_remove_breakpoint): New function.
4221         (target_stop): New function.
4222         (_initialize_targets): Add new set/show variables.
4223         (set_write_memory_permission): New function.
4224         (update_target_permissions): New function.
4225         (set_target_permissions): New function.
4226         (update_current_target): Default to_set_permissions.
4227         (_initialize_targets): Use new globals and setter function.
4228         * tracepoint.c (start_tracing): Test for permission.
4229         * inferior.h (update_observer_mode): Declare.
4230         * infrun.c (non_stop_1): Define earlier.
4231         (observer_mode, observer_mode_1): New globals.
4232         (set_observer_mode, show_observer_mode): New functions.
4233         (update_observer_mode): New function.
4234         (_initialize_infrun): Define "set observer" command.
4235         * remote.c (PACKET_QAllow): New optional packet.
4236         (remote_protocol_features): Add QAllow.
4237         (remote_set_permissions): New function.
4238         (remote_start_remote): Call it.
4239         (init_remote_ops): Add it to target vector.
4240         (_initialize_remote): Add config command for QAllow.
4241
4242 2010-06-11  Tom Tromey  <tromey@redhat.com>
4243
4244         * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4245         DW_AT_vtable_elem_location even when GCC extension is seen.
4246
4247 2010-06-11  Tom Tromey  <tromey@redhat.com>
4248
4249         PR gdb/9977, PR exp/11636:
4250         * value.h (value_offset): Update.
4251         (struct lval_funcs) <check_validity>: New field.
4252         <copy_closure>: Make argument const.
4253         (value_computed_closure): Update.
4254         (value_contents_for_printing): Declare.
4255         (value_bits_valid): Likewise.
4256         (val_print): Likewise.
4257         (set_value_component_location): Update.
4258         (value_entirely_optimized_out): Declare.
4259         * value.c (value_offset): Argument now const.
4260         (require_not_optimized_out): New function.
4261         (value_contents_for_printing): New function.
4262         (value_contents_all): Call require_not_optimized_out.
4263         (value_contents): Likewise.
4264         (value_bits_valid): New function.
4265         (value_computed_closure): Argument now const.
4266         (set_value_component_location): Make 'whole' argument const.
4267         (value_entirely_optimized_out): New function.
4268         (value_bitsize): Argument now 'const'.
4269         (value_bitpos): Likewise.
4270         (value_type): Likewise.
4271         * valprint.h (val_print_array_elements): Update.
4272         * valprint.c (val_print): Add 'val' argument.  Use
4273         valprint_check_validity.
4274         (valprint_check_validity): New function.
4275         (value_check_printable): Use value_entirely_optimized_out.
4276         (common_val_print): Update.
4277         (value_print): Likewise.
4278         (val_print_array_elements): Add 'val' argument.
4279         * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4280         value_bits_valid.  Reinit frame cache for lval_computed.
4281         * sh64-tdep.c (sh64_do_register): Update.
4282         * scm-valprint.c (scm_val_print): Add 'val' argument.
4283         * scm-lang.h (scm_val_print): Update.
4284         * python/python.h (apply_val_pretty_printer): Update.
4285         * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4286         argument.  Call set_value_component_location.
4287         * printcmd.c (print_scalar_formatted): Update.
4288         * p-valprint.c (pascal_val_print): Add 'val' argument.
4289         (pascal_object_print_value_fields): Likewise.
4290         (pascal_object_print_value): Likewise.
4291         (pascal_object_print_static_field): Update.
4292         * p-lang.h (pascal_val_print): Update.
4293         (pascal_object_print_value_fields): Update.
4294         * mt-tdep.c (mt_registers_info): Update.
4295         * mi/mi-main.c (get_register): Update.
4296         (mi_cmd_data_evaluate_expression): Use common_val_print.
4297         * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4298         (m2_print_unbounded_array): Likewise.
4299         (m2_val_print): Likewise.
4300         * m2-lang.h (m2_val_print): Update.
4301         * language.h (struct language_defn) <la_val_print>: Add 'val'
4302         argument.
4303         (LA_VAL_PRINT): Likewise.
4304         * language.c (unk_lang_val_print): Add 'val' argument.
4305         * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4306         (java_val_print): Likewise.
4307         * jv-lang.h (java_val_print): Add 'val' argument.
4308         * infcmd.c (default_print_registers_info): Update.
4309         * f-valprint.c (f77_print_array_1): Add 'val' argument.
4310         (f77_print_array): Likewise.
4311         (f_val_print): Likewise.
4312         * f-lang.h (f_val_print): Add 'val' argument.
4313         * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4314         value_bitpos.
4315         <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning.  Call
4316         set_value_optimized_out.
4317         (write_pieced_value): Use value_bitsize and value_bitpos.
4318         <default>: Don't exit loop.
4319         (check_pieced_value_validity): New function.
4320         (pieced_value_funcs): Reference check_pieced_value_validity,
4321         check_pieced_value_invalid.
4322         (copy_pieced_value_closure): Update.
4323         (check_pieced_value_bits): New function.
4324         (check_pieced_value_invalid): New function.
4325         * d-valprint.c (dynamic_array_type): Add 'val' argument.
4326         (d_val_print): Likewise.
4327         * d-lang.h (d_val_print): Update.
4328         * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4329         (cp_print_value_fields_rtti): Likewise.
4330         (cp_print_value): Likewise.
4331         (cp_print_static_field): Update.
4332         * c-valprint.c (c_val_print): Add 'val' argument.
4333         (c_value_print): Update.
4334         * c-lang.h (c_val_print): Update.
4335         (cp_print_value_fields): Likewise.
4336         (cp_print_value_fields_rtti): Likewise.
4337         * ada-valprint.c (struct ada_val_print_args): Remove.
4338         (val_print_packed_array_elements): Add 'val' argument.
4339         (ada_val_print): Likewise.  Rewrite.
4340         (ada_val_print_stub): Remove.
4341         (ada_val_print_array): Add 'val' argument.
4342         (ada_val_print_1): Likewise.
4343         (print_variant_part): Likewise.
4344         (ada_value_print): Update.
4345         (print_record): Add 'val' argument.
4346         (print_field_values): Likewise.
4347         * ada-lang.h (ada_val_print): Update.
4348
4349 2010-06-11  Tom Tromey  <tromey@redhat.com>
4350
4351         * vec.h (VEC_cleanup): New macro.
4352         (DEF_VEC_ALLOC_FUNC_I): Update.
4353         (DEF_VEC_ALLOC_FUNC_P): Likewise.
4354         (DEF_VEC_ALLOC_FUNC_O): Likewise.
4355         * dwarf2loc.c (struct axs_var_loc): Remove.
4356         (unimplemented): New function.
4357         (translate_register): Likewise.
4358         (access_memory): Likewise.
4359         (compile_dwarf_to_ax): Likewise.
4360         (dwarf2_tracepoint_var_loc): Remove.
4361         (dwarf2_tracepoint_var_access): Likewise.
4362         (dwarf2_tracepoint_var_ref): Likewise.
4363         (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4364         (loclist_tracepoint_var_ref): Likewise.
4365         * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4366         * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4367         require_composition.  No longer static.
4368         (execute_stack_op): Update.
4369         * ax-gdb.h (trace_kludge): Declare.
4370
4371 2010-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4372
4373         * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4374         (should_be_inserted): Return zero also on NULL OWNER.
4375         (breakpoint_program_space_exit): New OWNER comment.
4376         (insert_breakpoint_locations): Extend comment for OWNER.
4377         (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4378         (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4379         New OWNER comment.
4380         (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4381         (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4382         (bpstat_check_location): New assert on OWNER.
4383         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4384         and B initializations to the code block.  New assert on them.
4385         (print_one_breakpoint_location): New OWNER comment.
4386         (watchpoint_locations_match): Assert on OWNER.
4387         (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4388         initializations to the code block.  New assert on OWNER.
4389         (set_breakpoint_location_function): New assert on OWNER.
4390         (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4391         (bp_location_compare, update_global_location_list)
4392         (update_global_location_list): New OWNER comment.
4393
4394 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
4395
4396         * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4397
4398 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
4399
4400         * config/nm-linux.h (struct target_ops): Remove forward declaration.
4401         (lin_thread_get_thread_signals): Remove prototype.
4402         (GET_THREAD_SIGNALS): Remove.
4403         * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4404         * linux-thread-db.c (check_thread_signals): Directly call
4405         lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4406
4407 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
4408
4409         * gregset.h (GDB_FPXREGSET_T): Remove.
4410         (gdb_fpxregset_t): Likewise.
4411         (supply_fpxregset): Remove prototype.
4412         (fill_fpxregset): Likewise.
4413         * i386-linux-nat.c (supply_fpxregset): Remove.
4414         (fill_fpxregset): Likewise.
4415         (fetch_fpxregs): Inline supply_fpxregset call.
4416         (store_fpxregs): Inline fill_fpxregset call.
4417
4418         * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4419         * config/i386/nm-linux.h: Remove file.
4420
4421 2010-06-09  Michael Snyder  <msnyder@vmware.com>
4422
4423         * target.c (update_current_target): Fix spelling error in comment.
4424         (target_mourn_inferior): Fix spelling error in error message.
4425
4426 2010-06-08  Paul Hilfinger  <hilfingr@adacore.com>
4427
4428       * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4429       SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4430
4431 2010-06-08  Michael Snyder  <msnyder@vmware.com>
4432
4433         * remote.c (remote_close): Set inferior_ptid to null_ptid.
4434
4435 2010-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4436
4437         * configure.ac <"${have_libpython}" != no>: New workaround of
4438         python#4434.
4439         * configure: Regenerate.
4440
4441 2010-06-08  Hui Zhu  <teawater@gmail.com>
4442
4443         * record.c (record_wait): Move signal out of replay code.
4444
4445 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4446
4447         Fix PR 10640.
4448         * dwarf2-frame.c (no_dwarf_call): New function.
4449         (execute_stack_op): Set CTX->DWARF_CALL.
4450         * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4451         * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4452         (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4453         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4454         (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4455         (needs_frame_dwarf_call): New function.
4456         (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4457         * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4458         Update the comment.  Move variables die, offset and error call to ...
4459         (follow_die_ref): ... a new function.
4460         (dwarf2_fetch_die_location_block): New function.
4461         * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4462
4463 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4464
4465         * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4466         (dwarf_expr_tls_address): Use per_cu instead of objfile.
4467         (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4468         Initialize new BATON.PER_CU.  Adjust CTX->GDBARCH initialization for
4469         this change.
4470         (struct needs_frame_baton): New field per_cu.
4471         (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4472         * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4473
4474 2010-06-07  Sami Wagiaalla  <swagiaal@redhat.com>
4475
4476         * cp-support.c (make_symbol_overload_list_namespace): Only search
4477         static and global blocks.
4478         (make_symbol_overload_list_block): New function.
4479         (make_symbol_overload_list): Separate namespace search from block
4480         search.
4481         (make_symbol_overload_list_qualified): Use
4482         make_symbol_overload_list_block.
4483
4484 2010-06-07  Sami Wagiaalla  <swagiaal@redhat.com>
4485
4486         * value.h: Created oload_search_type enum.
4487         (find_overload_match): Use oload_search_type enum.
4488         * valops.c (find_overload_match): Support combined member and
4489         non-member search.
4490         * eval.c (evaluate_subexp_standard): Calls to
4491         find_overload_match now use oload_search_type enum.
4492         (oload_method_static): Verify index is a proper value.
4493         * valarith.c (value_user_defined_cpp_op): Search for and handle
4494         both member and non-member operators.
4495         (value_user_defined_cpp_op): New function.
4496         (value_user_defined_op): New function.
4497         (value_x_unop): Use value_user_defined_op.
4498         (value_x_binop): Ditto.
4499         * cp-support.c (make_symbol_overload_list_using): Added block
4500         iteration.
4501         Add check for namespace aliases and imported declarations.
4502
4503 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4504
4505         * breakpoint.h (owner): Extend the comment.
4506
4507 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4508
4509         Clear stale specific bp_location from former whole breakpoint.
4510         * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4511         code ...
4512         (free_bp_location): ... here.  Rename there the called function to
4513         bpstat_remove_bp_location_callback.
4514         (bpstat_remove_breakpoint_callback): Rename to ...
4515         (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4516         to struct bp_location.  Change the called function to
4517         bpstat_remove_bp_location.  Create new declaration for the function.
4518         (bpstat_remove_breakpoint): Rename to ...
4519         (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4520         code for the new parameter type.
4521
4522 2010-06-07  Nathan Sidwell  <nathan@codesourcery.com>
4523
4524         * README: Make version-agnostic.
4525
4526 2010-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4527
4528         Fix duplicate types for single DIE.
4529         * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4530         set_die_type.
4531         (read_array_type): Remove type initialization.  Recheck get_die_type
4532         after initial die_type.  Move set_die_type before set_descriptive_type.
4533         (read_set_type): New variable domain_type.  Recheck get_die_type after
4534         initial die_type.  Move attr initialization later.
4535         (read_tag_pointer_type, read_tag_reference_type): New variable
4536         target_type.  Recheck get_die_type after initial die_type.
4537         (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4538         die_type and die_containing_type.
4539         (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4540         Recheck get_die_type after initial die_type.
4541         (read_subrange_type): Recheck get_die_type after initial die_type.
4542         Move set_die_type before set_descriptive_type.
4543         (set_die_type): Extend the function comment.  Call complaint if DIE has
4544         some type already set.
4545
4546 2010-06-05  Vladimir Prus  <vladimir@codesourcery.com>
4547
4548         * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4549         for current naming of thread groups (iN, not N).
4550
4551 2010-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
4552
4553         * ada-lang.c (ada_operator_length): Constify `struct expression'.
4554         * parse.c (operator_length): Likewise.
4555         (operator_length_standard): Likewise.
4556         * parser-defs.h (operator_length): Likewise.
4557         (operator_length_standard): Likewise.
4558         (struct exp_descriptor <operator_length>): Likewise.
4559
4560 2010-06-04  Doug Evans  <dje@google.com>
4561
4562         Add support for enabling/disabling individual pretty-printers.
4563         * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4564         * python/python-internal.h (gdbpy_enabled_cst): Declare.
4565         * python/python.c (gdbpy_enabled_cst): Define.
4566         (_initialize_python): Initialize gdbpy_enabled_cst.
4567         * NEWS: Add entry.
4568
4569 2010-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4570
4571         * breakpoint.c (update_global_location_list): Fix comment typo.
4572
4573 2010-06-04  Hui Zhu  <teawater@gmail.com>
4574
4575         * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4576
4577 2010-06-03  Doug Evans  <dje@google.com>
4578
4579         * configure.ac: Don't fail if python is unusable when
4580         configured with --with-python=auto.
4581         * configure: Regenerate.
4582
4583 2010-06-03  Sami Wagiaalla  <swagiaal@redhat.com>
4584
4585         * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4586
4587 2010-06-03  Pierre Muller  <muller@ics.u-strasbg.fr>
4588
4589         * valprint.h (get_array_bounds): Change low and high parameter types
4590         to LONGEST *.
4591         * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4592         compute bounds.
4593         (val_print_array_elements): Adapt to change above.
4594         * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4595         * p-valprint.c (pascal_val_print): Likewise.
4596
4597 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4598
4599         * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4600         .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4601         .F08.
4602
4603 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4604
4605         Support DW_TAG_module as separate namespaces.
4606         * dwarf2read.c (typename_concat): New parameter physname.
4607         (read_module_type): New function and declaration.
4608         (scan_partial_symbols): Scan also DW_TAG_module children.
4609         (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4610         to typename_concat backward compatible physname value 0.
4611         (partial_die_full_name, read_namespace_type): Pass to typename_concat
4612         backward compatible physname value 0.
4613         (add_partial_module, read_module): Remove FIXME comment.
4614         (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4615         (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4616         DIEs under DW_TAG_module.
4617         (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4618         DW_AT_MIPS_linkage_name first, extend it for language_fortran
4619         && physname and return there instead of just setting NAME.  Extend
4620         the main block for language_fortran.  Pass physname parameter to the
4621         typename_concat call.
4622         (read_import_statement, read_func_scope, get_scope_pc_bounds)
4623         (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4624         (new_symbol): Fill in cplus_specific.demangled_name if it is still
4625         missing from SYMBOL_SET_NAMES in the language_fortran case.
4626         (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4627         variables.
4628         (read_type_die) <DW_TAG_module>: New.
4629         (MAX_SEP_LEN): Increase to 7.
4630         (typename_concat): New parameter physname.  New variable lead.  Support
4631         also language_fortran.
4632         * f-exp.y (yylex): Consider : also as a symbol name character class.
4633         * f-lang.c: Include cp-support.h.
4634         (f_word_break_characters, f_make_symbol_completion_list): New functions.
4635         (f_language_defn): Use cp_lookup_symbol_nonlocal,
4636         f_word_break_characters and f_make_symbol_completion_list.
4637         * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4638         * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4639         * symtab.c (symbol_init_language_specific): Support language_fortran.
4640         (symbol_find_demangled_name): New comment on language_fortran.
4641         (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4642         for language_fortran.
4643         (lookup_symbol_aux_local): Check imports also for language_fortran.
4644         (default_make_symbol_completion_list): Rename to ...
4645         (default_make_symbol_completion_list_break_on): ... this name.  New
4646         parameter break_on, use it.
4647         (default_make_symbol_completion_list): New stub.
4648         * symtab.h (default_make_symbol_completion_list_break_on): New
4649         prototype.
4650
4651 2010-06-02  Joel Brobecker  <brobecker@adacore.com>
4652
4653         * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4654         to error.
4655
4656 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4657
4658         * dwarf2read.c (typename_concat): Add const to the variable sep.
4659
4660 2010-06-02  Tom Tromey  <tromey@redhat.com>
4661
4662         * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4663         * dwarf2read.c (dwarf_stack_op_name): No longer static.  Return
4664         type is const.  Add 'def' argument.  Add missing operators, remove
4665         unhandled ones.
4666         (decode_locdesc): Update.
4667         (dwarf2_always_disassemble): New global.
4668         (show_dwarf2_always_disassemble): New function.
4669         (_initialize_dwarf2_read): Add always-disassemble.
4670         (dwarf2_per_cu_offset_size): New function.
4671         * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4672         (piece_end_p): New function.
4673         (locexpr_describe_location_piece): Replace 'size' argument with
4674         'end'.  Use piece_end_p.  Rewrite recognition of TLS.  Recognize
4675         some constants.  Remove errors.
4676         (disassemble_dwarf_expression): New function.
4677         (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4678         Add 'offset_size' argument.
4679         (loclist_describe_location): Change output formatting.
4680         * dwarf2expr.h (dwarf_stack_op_name): Declare.
4681
4682 2010-06-02  Sami Wagiaalla  <swagiaal@redhat.com>
4683
4684         * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4685         anonymous type case.
4686
4687 2010-06-02  Pierre Muller  <muller@ics.u-strasbg.fr>
4688
4689         * dwarf2read.c (read_subrange_type): Handle missing base type
4690         according to Dwarf-2 specifications.
4691
4692 2010-06-01  Sergio Durigan Junior  <sergiodj@redhat.com>
4693
4694         * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4695         BINOP_EXCL.
4696         (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4697         UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4698         (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4699         BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4700         UNOP_CHMAX, UNOP_CHMIN.
4701         * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4702         UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4703         UNOP_CHMIN>: Remove opcodes.
4704
4705 2010-06-01  Pierre Muller  <muller@ics.u-strasbg.fr>
4706
4707         * dwarf2read.c (read_func_scope): Do not complain for
4708         external function if bounds are not found.
4709
4710 2010-06-01  Pedro Alves  <pedro@codesourcery.com>
4711
4712         * NEWS: Mention gdbserver fast tracepoints support.
4713
4714 2010-05-31  Pierre Muller  <muller@ics.u-strasbg.fr>
4715
4716         * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4717         New macros.
4718         (windows_set_console_info): New function.
4719         (windows_create_inferior): Call windows_set_console_info
4720         if NEW_CONSOLE is true.
4721         (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4722         (_initialize_loadable): Initialize GetConsoleFontSize and
4723         GetCurrentConsoleFont.
4724
4725 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4726
4727         * Makefile.in (RDYNAMIC): New.
4728         (SFILES): Add proc-service.list.
4729         * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4730         (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4731         * config/arm/linux.mh: Likewise.
4732         * config/i386/linux.mh: Likewise.
4733         * config/i386/linux64.mh: Likewise.
4734         * config/ia64/linux.mh: Likewise.
4735         * config/m32r/linux.mh: Likewise.
4736         * config/m68k/linux.mh: Likewise.
4737         * config/mips/linux.mh: Likewise.
4738         * config/pa/linux.mh: Likewise.
4739         * config/powerpc/linux.mh: Likewise.
4740         * config/powerpc/ppc64-linux.mh: Likewise.
4741         * config/s390/s390.mh: Likewise.
4742         * config/sparc/linux.mh: Likewise.
4743         * config/sparc/linux64.mh: Likewise.
4744         * config/xtensa/linux.mh: Likewise.
4745         * configure.ac: New RDYNAMIC on native host and GCC.
4746         (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4747         * configure: Regenerate.
4748         * proc-service.list: New.
4749
4750 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4751
4752         * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4753         CONTENT.
4754
4755 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4756
4757         * linux-nat.c (linux_nat_wait_1): Do not call
4758         linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4759         TARGET_WAITKIND_SIGNALLED.
4760
4761 2010-05-27  Joel Brobecker  <brobecker@adacore.com>
4762
4763         * ada-lang.c (ada_inferior_data): New struct.
4764         (ada_inferior_data): New static global.
4765         (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4766         (ada_get_tsd_type): New functions.
4767         (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4768         to look the tsd type up.
4769         (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4770         event.  Set ada_inferior_data.
4771
4772 2010-05-27  Pedro Alves  <pedro@codesourcery.com>
4773
4774         * remote.c (unpack_varlen_hex): Remove forward declaration.
4775         (remote_console_output): Make static, and add forward declaration.
4776         * remote.h: Drop FIXME comment.
4777         (unpack_varlen_hex): Declare.
4778         (remote_console_output, remote_cisco_objfile_relocate)
4779         (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4780         Delete declarations.
4781         * tracepoint.c: Include "remote.h".
4782         (unpack_varlen_hex): Delete declaration.
4783
4784 2010-05-27  Tom Tromey  <tromey@redhat.com>
4785
4786         * dwarf2loc.c (struct piece_closure) <refc>: New field.
4787         (allocate_piece_closure): Initialize refc.
4788         (copy_pieced_value_closure): Use refc.
4789         (free_pieced_value_closure): Likewise.
4790
4791 2010-05-27  Tom Tromey  <tromey@redhat.com>
4792
4793         * arm-tdep.c (push_stack_item): 'contents' now const.
4794         (arm_push_dummy_call): Make 'val' const.  Use value_contents, not
4795         value_contents_writeable.  Introduce new temporary.
4796
4797 2010-05-27  Tom Tromey  <tromey@redhat.com>
4798
4799         * findcmd.c (parse_find_args): Use value_contents, not
4800         value_contents_raw.
4801
4802 2010-05-27  Tom Tromey  <tromey@redhat.com>
4803
4804         * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4805         const.  Use value_contents, not value_contents_writeable.
4806
4807 2010-05-27  Joel Brobecker  <brobecker@adacore.com>
4808
4809         * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4810         by call to value_contents.
4811
4812 2010-05-27  Ozkan Sezer  <sezeroz@gmail.com>
4813
4814         * MAINTAINERS: Add myself for write after approval privileges.
4815
4816 2010-05-26  Doug Evans  <dje@google.com>
4817
4818         Allow python to find its files if moved from original location.
4819         * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4820         (GDB_AC_WITH_DIR): Call it.
4821         * configure.ac: Define WITH_PYTHON_PATH if we can find the
4822         python installation directory.
4823         * config.in: Regenerate.
4824         * configure: Regenerate.
4825         * defs.h (python_libdir): Declare.
4826         * main.c (python_libdir): Define.
4827         (captured_main): Initialize python_libdir.
4828         * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4829         call Py_SetProgramName to make sure python can find its libraries
4830         and modules.
4831
4832         * configure.ac: Try to use python's distutils to fetch compilation
4833         parameters.
4834         * configure: Regenerate.
4835         * python/python-config.py: New file.
4836
4837 2010-05-26  Ozkan Sezer  <sezeroz@gmail.com>
4838
4839         * ser-tcp.c (net_open): Check error return from socket() call by its
4840         equality to -1 not by it being negative.
4841         (net_close): Likewise.
4842
4843 2010-05-26  Pedro Alves  <pedro@codesourcery.com>
4844
4845         * NEWS: Mention the `qRelocInsn' feature.
4846         * gdbarch.sh (relocate_instruction): New.
4847         * amd64-tdep.c (rip_relative_offset): New.
4848         (append_insns): New.
4849         (amd64_relocate_instruction): New.
4850         (amd64_init_abi): Install it.
4851         * i386-tdep.c (append_insns): New.
4852         (i386_relocate_instruction): New.
4853         (i386_gdbarch_init): Install it.
4854         * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4855         * gdbarch.h, gdbarch.c: Regenerate.
4856
4857 2010-05-26  Tom Tromey  <tromey@redhat.com>
4858
4859         * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4860         (struct dwarf2_loclist_baton) <data>: Likewise.
4861         * dwarf2loc.c (find_location_expression): Constify return type.
4862         (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4863         (dwarf2_loc_desc_needs_frame): Likewise.
4864         (loclist_read_variable): Constify.
4865         (loclist_describe_location): Likewise.
4866         (loclist_tracepoint_var_ref): Likewise.
4867
4868 2010-05-25  Tom Tromey  <tromey@redhat.com>
4869
4870         * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4871         (dwarf_expr_frame_base_1): Likewise.
4872         (read_pieced_value): Update.
4873         (needs_frame_frame_base): Constify.
4874         (dwarf2_tracepoint_var_loc): Likewise.
4875         (dwarf2_tracepoint_var_access): Likewise.
4876         (locexpr_describe_location_piece): Likewise.
4877         (locexpr_describe_location_1): Likewise.
4878         * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4879         Constify.
4880         (data): Now const.
4881         (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4882         (dwarf_expr_eval, read_uleb128, read_sleb128)
4883         (dwarf2_read_address): Update.
4884         * dwarf2expr.c (dwarf_expr_eval): Constify.
4885         (read_uleb128): Likewise.
4886         (read_sleb128): Likewise.
4887         (dwarf2_read_address): Likewise.
4888         (require_composition): Likewise.
4889         (execute_stack_op): Likewise.
4890         * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4891         "const gdb_byte *".
4892         * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4893         Now const.
4894         (no_get_frame_base): Constify.
4895         (execute_stack_op): Likewise.
4896         (execute_cfa_program): Likewise.
4897         (read_encoded_value): Likewise.
4898
4899 2010-05-25  Doug Evans  <dje@google.com>
4900
4901         * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4902
4903         * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4904         * event-loop.c: ... here.
4905         * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4906         `error' for clarity.
4907         (tui_getc): Pass correct value for `error' parameter to
4908         tui_readline_output.
4909
4910         Add python gdb.GdbError and gdb.string_to_argv.
4911         * NEWS: Document them.
4912         * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4913         the exception is gdb.GdbError.  Print a second traceback if there's
4914         an error computing the error message.
4915         (gdbpy_string_to_argv): New function.
4916         * python/py-utils.c (gdbpy_obj_to_string): New function.
4917         (gdbpy_exception_to_string): New function.
4918         * python/python-internal.h (gdbpy_string_to_argv): Declare.
4919         (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4920         (gdbpy_gdberror_exc): Declare.
4921         * python/python.c (gdbpy_gdberror_exc): New global.
4922         (_initialize_python): Initialize gdbpy_gdberror_exc and create
4923         gdb.GdbError.
4924         (GdbMethods): Add string_to_argv.
4925
4926 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
4927
4928         * windows-nat.c (display_selector): Call GetLastError to give better
4929         failure explanation.
4930
4931 2010-05-24  Pedro Alves  <pedro@codesourcery.com>
4932
4933         * config.in: Regenerate.
4934
4935 2010-05-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
4936
4937         Code cleanup.
4938         * target.c (push_target): Return only void.  Remove the return value
4939         comment.
4940         * target.h (push_target): Return only void.
4941
4942 2010-05-23  Pedro Alves  <pedro@codesourcery.com>
4943
4944         Update gnulib from latest git.
4945         (250b80067c1e1d8faa0c42fb572f721975b929c5)
4946
4947         * gnulib/memcmp.c: Removed.
4948         * gnulib/memchr.valgrind: New.
4949         * gnulib/stddef.in.h: New.
4950         * gnulib/Makefile.am: Updated.
4951         * gnulib/memchr.c: Updated.
4952         * gnulib/memmem.c: Updated.
4953         * gnulib/stdint.in.h: Updated.
4954         * gnulib/str-two-way.h: Updated.
4955         * gnulib/string.in.h: Updated.
4956         * gnulib/wchar.in.h: Updated.
4957
4958         * gnulib/extra/link-warning.h: Removed.
4959         * gnulib/extra/c++defs.h: New.
4960         * gnulib/extra/warn-on-use.h: New.
4961         * gnulib/extra/arg-nonnull.h: Updated.
4962
4963         * gnulib/m4/extensions.m4: Updated.
4964         * gnulib/m4/gnulib-cache.m4: Updated.
4965         * gnulib/m4/gnulib-common.m4: Updated.
4966         * gnulib/m4/gnulib-comp.m4: Updated.
4967         * gnulib/m4/gnulib-tool.m4: Updated.
4968         * gnulib/m4/include_next.m4: Updated.
4969         * gnulib/m4/longlong.m4: Updated.
4970         * gnulib/m4/memchr.m4: Updated.
4971         * gnulib/m4/memmem.m4: Updated.
4972         * gnulib/m4/stdint.m4: Updated.
4973         * gnulib/m4/string_h.m4: Updated.
4974         * gnulib/m4/memcmp.m4: Removed.
4975         * gnulib/m4/onceonly_2_57.m4: Removed.
4976         * gnulib/m4/00gnulib.m4: New.
4977         * gnulib/m4/mmap-anon.m4: New.
4978         * gnulib/m4/multiarch.m4: New.
4979         * gnulib/m4/onceonly.m4: New.
4980         * gnulib/m4/stddef_h.m4: New.
4981         * gnulib/m4/warn-on-use.m4: New.
4982         * gnulib/m4/wchar.m4: Removed.
4983         * gnulib/m4/wchar_h.m4: New.
4984         * gnulib/m4/wchar_t.m4: New.
4985         * gnulib/m4/wint_t.m4: New.
4986
4987         * aclocal.m4: Regenerate.
4988         * config.in: Likewise.
4989         * configure: Likewise.
4990         * gnulib/Makefile.in: Likewise.
4991
4992 2010-05-21  Tom Tromey  <tromey@redhat.com>
4993
4994         * dwarf2loc.c (extract_bits_primitive): New function.
4995         (extract_bits): Likewise.
4996         (insert_bits): Likewise.
4997         (copy_bitwise): Likewise.
4998         (read_pieced_value): Do all operations in bits.
4999         (write_pieced_value): Likewise.
5000         * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5001         * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5002         Always use xrealloc to resize piece array.
5003         (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5004         <DW_OP_piece>: Update.
5005         <DW_OP_bit_piece>: New case.
5006
5007 2010-05-21  Tom Tromey  <tromey@redhat.com>
5008
5009         * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5010         <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5011         * dwarf2expr.h (enum dwarf_value_location)
5012         <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5013         * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5014         (add_piece): Handle empty piece.
5015         (execute_stack_op) <DW_OP_piece>: Handle
5016         DWARF_VALUE_OPTIMIZED_OUT.
5017
5018 2010-05-21  Tom Tromey  <tromey@redhat.com>
5019
5020         * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5021         evaluate_subexp, not evaluate_subexp_with_coercion.
5022
5023 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
5024
5025         * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5026         attribute.
5027
5028 2010-05-21  Tom Tromey  <tromey@redhat.com>
5029
5030         * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5031         offset.
5032         (write_pieced_value): Likewise.
5033
5034 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
5035
5036         * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5037         and DW_TAG_volatile_type.
5038         (new_symbol): Likewise.
5039
5040 2010-05-20  Pierre Muller  <muller@ics.u-strasbg.fr>
5041
5042         * p-valprint.c (pascal_val_print): Call get_array_bounds
5043         to obtain the number of elements in an array.
5044
5045 2010-05-19  Doug Evans  <dje@google.com>
5046
5047         * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5048
5049         * python.c (source_python_script): Add comment.
5050         (source_python_script_for_objfile): Remove unnecessary call to
5051         gdbpy_print_stack.
5052
5053 2010-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5054             Sergio Durigan Junior  <sergiodj@redhat.com>
5055
5056         Code cleanup.
5057         * parse.c (exp_iterate): Use operator_length wrapper function.
5058
5059 2010-05-18  Michael Snyder  <msnyder@vmware.com>
5060
5061         * ada-lang.c: White space.
5062         * ada-typeprint.c: White space.
5063         * ada-valprint.c: White space.
5064         * addrmap.c: White space.
5065         * auxv.c: White space.
5066         * ax-gdb.c: White space.
5067
5068 2010-05-18  Hui Zhu  <teawater@gmail.com>
5069
5070         * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5071         for oldfp.
5072         (inferior_call_waitpid): Move make_cleanup out of check.
5073         Check the return of waitpid.
5074         (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5075
5076 2010-05-17  Michael Snyder  <msnyder@vmware.com>
5077
5078         * tui/tui.c: White space.
5079         * tui/tui-data.c: White space.
5080         * tui/tui-disasm.c: White space.
5081         * tui/tui-file.c: White space.
5082         * tui/tui-interp.c: White space.
5083         * tui/tui-main.c: White space.
5084         * tui/tui-out.c: White space.
5085         * tui/tui-regs.c: White space.
5086         * tui/tui-source.c: White space.
5087         * tui/tui-stack.c: White space.
5088         * tui/tui-win.c: White space.
5089         * tui/tui-winsource.c: White space.
5090
5091         * procfs.c: White space.
5092
5093         * python/py-auto-load.c: White space.
5094         * python/py-block.c: White space.
5095         * python/py-breakpoint.c: White space.
5096         * python/py-cmd.c: White space.
5097         * python/py-function.c: White space.
5098         * python/py-lazy-string.c: White space.
5099         * python/py-objfile.c: White space.
5100         * python/py-param.c: White space.
5101         * python/py-prettyprint.c: White space.
5102         * python/py-progspace.c: White space.
5103         * python/py-symtab.c: White space.
5104         * python/python.c: White space.
5105         * python/py-type.c: White space.
5106         * python/py-utils.c: White space.
5107         * python/py-value.c: White space.
5108
5109         * mi/mi-cmd-break.c: White space.
5110         * mi/mi-cmd-env.c: White space.
5111         * mi/mi-cmds.c: White space.
5112         * mi/mi-cmd-stack.c: White space.
5113         * mi/mi-cmd-var.c: White space.
5114         * mi/mi-console.c: White space.
5115         * mi/mi-getopt.c: White space.
5116         * mi/mi-interp.c: White space.
5117         * mi/mi-main.c: White space.
5118         * mi/mi-out.c: White space.
5119         * mi/mi-parse.c: White space.
5120
5121         * cli/cli-cmds.c: White space.
5122         * cli/cli-decode.c: White space.
5123         * cli/cli-dump.c: White space.
5124         * cli/cli-interp.c: White space.
5125         * cli/cli-logging.c: White space.
5126         * cli/cli-script.c: White space.
5127         * cli/cli-setshow.c: White space.
5128
5129         * valarith.c: White space.
5130         * valops.c: White space.
5131         * valprint.c: White space.
5132         * value.c: White space.
5133         * varobj.c: White space.
5134         * xcoffread.c: White space.
5135         * xml-support.c: White space.
5136         * xml-tdesc.c: White space.
5137
5138 2010-05-17  Andreas Schwab  <schwab@redhat.com>
5139
5140         PR gdb/11092
5141         * c-lang.c (c_printstr): Compute real length of NUL terminated
5142         string at first.
5143
5144 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
5145
5146         * parse.c (parse_exp_in_context): When block is not NULL, use
5147         its associated language to parse the expression instead of
5148         the current_language.
5149
5150 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
5151
5152         * jv-lang.c (java_lookup_class): Remove commented out code.
5153         (type_from_class): Likewise.
5154         (java_op_print_tab): Remove commented-out elements.
5155
5156 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
5157
5158         * ada-lang.c (to_fixed_range_type): The the raw index type as
5159         argument instead of the raw type name.  Remove orig_type parameter.
5160         Update calls throughout.
5161         (ada_fixup_array_indexes_type): New function.
5162         (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5163         * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5164         * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5165         Remove name parameter.
5166         (print_array_type): Add call to ada_fixup_array_indexes_type.
5167         Update calls to print_range_type.
5168         (ada_print_type): Update calls to print_range_type.
5169
5170 2010-05-17  Pierre Muller  <muller@ics.u-strasbg.fr>
5171
5172         * dwarf2read.c (read_set_type): Set type length if
5173         DW_AT_byte_size attribute is present.
5174
5175 2010-05-17  Pierre Muller  <muller@ics.u-strasbg.fr>
5176
5177         * p-valprint.c (pascal_val_print): Handle set type if range limits
5178         are undefined but size is known.
5179
5180 2010-05-17  Pedro Alves  <pedro@codesourcery.com>
5181
5182         * procfs.c: Reformat.
5183
5184 2010-05-16  Michael Snyder  <msnyder@vmware.com>
5185
5186         * target.c: White space.
5187         * target-descriptions.c: White space.
5188         * target-memory.c: White space.
5189         * thread.c: White space.
5190         * top.c: White space.
5191         * tracepoint.c: White space.
5192         * trad-frame.c: White space.
5193         * tramp-frame.c: White space.
5194         * ui-file.c: White space.
5195         * ui-out.c: White space.
5196         * user-regs.c: White space.
5197         * utils.c: White space.
5198
5199         * scm-exp.c: White space.
5200         * scm-lang.c: White space.
5201         * scm-valprint.c: White space.
5202         * sentinel-frame.c: White space.
5203         * ser-base.c: White space.
5204         * ser-go32.c: White space.
5205         * serial.c: White space.
5206         * ser-mingw.c: White space.
5207         * ser-pipe.c: White space.
5208         * ser-tcp.c: White space.
5209         * ser-unix.c: White space.
5210         * solib.c: White space.
5211         * solib-darwin.c: White space.
5212         * solib-frv.c: White space.
5213         * solib-irix.c: White space.
5214         * solib-osf.c: White space.
5215         * solib-pa64.c: White space.
5216         * solib-som.c: White space.
5217         * solib-spu.c: White space.
5218         * solib-svr4.c: White space.
5219         * solib-target.c: White space.
5220         * source.c: White space.
5221         * stabsread.c: White space.
5222         * stack.c: White space.
5223         * std-regs.c: White space.
5224         * symfile.c: White space.
5225         * symmisc.c: White space.
5226         * symtab.c: White space.
5227
5228 2010-05-16  Michael Snyder  <msnyder@vmware.com>
5229
5230         * source.c (_initialize_source): Add "rev" as an abbreviation
5231         for the "reverse-search" command.
5232
5233 2010-05-16  Michael Snyder  <msnyder@vmware.com>
5234
5235         * record.c: White space.
5236         * regcache.c: White space.
5237         * reggroups.c: White space.
5238         * remote-fileio.c: White space.
5239         * remote-m32r-sdi.c: White space.
5240         * remote-mips.c: White space.
5241         * remote-sim.c: White space.
5242         * remote.c: White space.
5243         (process_g_packet): Remove orphan braces.
5244
5245 2010-05-15  Michael Snyder  <msnyder@vmware.com>
5246
5247         * parse.c: White space.
5248         * p-lang.c: White space.
5249         * posix-hdep.c: White space.
5250         * printcmd.c: White space.
5251         * progspace.c: White space.
5252         * prologue-value.c: White space.
5253         * psymtab.c: White space.
5254         * p-typeprint.c: White space.
5255         * p-valprint.c: White space.
5256
5257         * objc-lang.c: White space.
5258         * objfiles.c: White space.
5259         * observer.c: White space.
5260         * osabi.c: White space.
5261         * osdata.c: White space.
5262
5263         * m2-lang.c: White space.
5264         * m2-valprint.c: White space.
5265         * macrocmd.c: White space.
5266         * macroexp.c: White space.
5267         * macroscope.c: White space.
5268         * macrotab.c: White space.
5269         * main.c: White space.
5270         * maint.c: White space.
5271         * mdebugread.c: White space.
5272         * memattr.c: White space.
5273         * minsyms.c: White space.
5274         * monitor.c: White space.
5275
5276 2010-05-14  Michael Snyder  <msnyder@vmware.com>
5277
5278         * jv-lang.c: White space.
5279         * jv-typeprint.c: White space.
5280         * jv-valprint.c: White space.
5281         * language.c: White space.
5282         * libunwind-frame.c: White space.
5283         * linespec.c: White space.
5284         * linux-nat.c: White space.
5285         * linux-record.c: White space.
5286         * linux-thread-db.c: White space.
5287
5288         * infcall.c: White space.
5289         * inf-child.c: White space.
5290         * infcmd.c: White space.
5291         * inferior.c: White space.
5292         * inf-loop.c: White space.
5293         * inflow.c: White space.
5294         * inline-frame.c: White space.
5295         * interps.c: White space.
5296
5297         * gcore.c: White space.
5298         * gdb.c: White space.
5299         * gdbtypes.c: White space.
5300         * gnu-nat.c: White space.
5301         * gnu-v2-abi.c: White space.
5302         * gnu-v3-abi.c: White space.
5303
5304         * findcmd.c: White space.
5305         * findvar.c: White space.
5306         * fork-child.c: White space.
5307         * frame-base.c: White space.
5308         * frame.c: White space.
5309         * frame-unwind.c: White space.
5310         * f-valprint.c: White space.
5311
5312         * elfread.c: White space.
5313         * environ.c: White space.
5314         * eval.c: White space.
5315         * event-loop.c: White space.
5316         * event-top.c: White space.
5317         * exceptions.c: White space.
5318         * exec.c: White space.
5319         * expprint.c: White space.
5320
5321         * dbxread.c: White space.
5322         * dcache.c: White space.
5323         * disasm.c: White space.
5324         * doublest.c: White space.
5325         * dsrec.c: White space.
5326         * dummy-frame.c: White space.
5327         * dwarf2expr.c: White space.
5328         * dwarf2-frame.c: White space.
5329         * dwarf2loc.c: White space.
5330         * dwarf2read.c: White space.
5331
5332 2010-05-14  Phil Muldoon  <pmuldoon@redhat.com>
5333
5334         PR python/11482
5335
5336         * python/py-value.c (valpy_hash): New function.
5337         (value_object_type): Register valpy_hash.
5338
5339 2010-05-14  Hui Zhu  <teawater@gmail.com>
5340             Michael Snyder  <msnyder@vmware.com>
5341
5342         * linux-fork.c (gdbthread.h): New include.
5343         (fork_info): Add parent_ptid.
5344         (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5345         functions.
5346         (delete_checkpoint_command): Call inferior_call_waitpid.
5347         (checkpoint_command): Set parent_ptid.
5348
5349 2010-05-13  Michael Snyder  <msnyder@vmware.com>
5350
5351         * dictionary.c: Re-indent to GNU coding standard.
5352
5353         * charset.c: White space.
5354         * c-lang.c: White space.
5355         * cli-out.c: White space.
5356         * coffread.c: White space.
5357         * complaints.c: White space.
5358         * completer.c: White space.
5359         * corefile.c: White space.
5360         * corelow.c: White space.
5361         * cp-abi.c: White space.
5362         * cp-namespace.c: White space.
5363         * cp-support.c: White space.
5364         * cp-valprint.c: White space.
5365         * c-typeprint.c: White space.
5366         * c-valprint.c: White space.
5367         * blockframe.c: White space.
5368         * breakpoint.c: White space.
5369         * buildsym.c: White space.
5370         * blockframe.c: White space.
5371         * bcache.c: White space.
5372         * gdbarch.sh: White space, add blank lines.
5373         * arch-utils.c: Ditto.
5374         * gdbarch.c: Regenerate.
5375         * frame.c: White space, add blank lines.
5376         * stack.c: White space, add blank lines.
5377         (initialize_stack): Remove long-dead code.
5378
5379 2010-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5380
5381         Code cleanup.
5382         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5383         (locexpr_read_variable, loclist_read_variable): Update the callers.
5384
5385 2010-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5386
5387         Code cleanup.
5388         * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5389         Remove check of NULL returned by tag_type_to_type.
5390         (die_containing_type): Remove variable type.  Remove type_die variable
5391         initialization.  Remove check of NULL returned by tag_type_to_type.
5392
5393 2010-05-11  Pierre Muller  <muller@ics.u-strasbg.fr>
5394
5395         PR exp/11530.
5396         * gdbtypes.c (lookup_struct_elt_type): Also lookup
5397         names of unnamed structures or unions.
5398
5399 2010-05-11  Pierre Muller  <muller@ics.u-strasbg.fr>
5400
5401         * procfs.c (proc_watchpoint_address): New function.
5402         (procfs_stopped_by_watchpoint): Remove useless check after
5403         find_procinfo_or_die call.
5404         (procfs_stopped_data_address): New function.
5405         (procfs_use_watchpoints): Register new watchpoint related function.
5406
5407 2010-05-11  Tom Tromey  <tromey@redhat.com>
5408
5409         * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5410
5411 2010-05-10  Michael Snyder  <msnyder@vmware.com>
5412
5413         * utils.c: White space cleanup.
5414
5415 2010-05-10  Tom Tromey  <tromey@redhat.com>
5416
5417         * eval.c (ptrmath_type_p): Add 'lang' argument.
5418         (evaluate_subexp_standard): Update.
5419         (evaluate_subexp_with_coercion): Update.
5420         * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5421
5422 2010-05-10  Michael Snyder  <msnyder@vmware.com>
5423
5424         * utils.c (do_fclose_cleanup) Restore local variable.
5425
5426 2010-05-09  Doug Evans  <dje@google.com>
5427
5428         * record.c (init_record_core_ops): Rename record_core to record-core.
5429
5430 2010-05-08  Joel Brobecker  <brobecker@adacore.com>
5431
5432         Implement task switching on pa-hpux.
5433         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5434         (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5435
5436 2010-05-08  Pierre Muller  <muller@ics.u-strasbg.fr>
5437
5438         * valops.c (find_overload_match): Add missing i18n markup.
5439
5440 2010-05-08  Pierre Muller  <muller@ics.u-strasbg.fr>
5441
5442         * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5443
5444 2010-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
5445
5446         * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5447         list for the obconcat call.
5448         * mdebugread.c (parse_symbol): Likewise.
5449         * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5450         Likewise.
5451         * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5452         New variable ap.  Remove variables len and val.
5453         * symfile.h (obconcat): Likewise for the prototype.
5454
5455 2010-05-07  Michael Snyder  <msnyder@vmware.com>
5456
5457         * python/python.c (execute_gdb_command): Remove unused variables.
5458         * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5459         * python/py-breakpoint.c (gdbpy_breakpoint_created):
5460         Remove unused variable.
5461         * python/py-cmd.c (cmdpy_function): Remove unused variable.
5462         (cmdpy_completer): Remove unused variable.
5463         * python/py-frame.c (frapy_find_sal): Remove unused variable.
5464         * python/py-function.c (fnpy_call): Remove unused variable.
5465         * python/py-objfile.c (objfile_to_objfile_object):
5466         Remove unused variable.
5467         * python/py-param.c (parmpy_init): Remove unused variable.
5468         * python/py-prettyprint.c (apply_varobj_pretty_printer):
5469         Remove unused variable.
5470         (gdbpy_default_visualizer): Remove unused variable.
5471         * python/py-progspace.c (pspace_to_pspace_object):
5472         Remove unused variable.
5473         * python/py-symtab.c (symtab_and_line_to_sal_object):
5474         Remove unused variable.
5475         * python/py-type.c (typy_template_argument):
5476         Remove unused variable.
5477         * python/py-value.c (valpy_string): Remove unused variable.
5478         (convert_value_from_python): Remove unused variables.
5479
5480 2010-05-07  Michael Snyder  <msnyder@vmware.com>
5481
5482         * valops.c (value_cast_pointers): Restore unused variable 'type1',
5483         and use it to compute variable 't1'.
5484
5485 2010-05-07  Joel Brobecker  <brobecker@adacore.com>
5486
5487         * ada-lang.c (assign_aggregate): Remove unused variable.
5488
5489 2010-05-07  Sami Wagiaalla  <swagiaal@redhat.com>
5490
5491         PR C++/7943:
5492         * valops.c (find_overload_match): Handle fsym == NULL case.
5493         Add int no_adl argument.
5494         (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5495         when appropriate.
5496         Add int no_adl argument.
5497         (find_oload_champ_namespace):   Add int no_adl argument.
5498         * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5499         expression.
5500         * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5501         * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5502         Evaluate arguments and use them to perform ADL lookup.
5503         Pass no_adl argument to find_overload_match.
5504         Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5505         * cp-support.h: Added prototype for
5506         make_symbol_overload_list_namespace.
5507         * cp-support.c (make_symbol_overload_list_namespace): New function.
5508         (make_symbol_overload_list_adl_namespace): New function.
5509         (make_symbol_overload_list_adl): New function.
5510         (make_symbol_overload_list_using): Moved code to add function to
5511         overload set to make_symbol_overload_list_namespace.
5512         * c-exp.y: create UNKNOWN_CPP_NAME token.
5513         Add parse rule for ADL functions.
5514         (classify_name): Recognize an UNKNOWN_CPP_NAME.
5515
5516 2010-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5517
5518         * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5519         sentinel.
5520
5521 2010-05-07  Joel Brobecker  <brobecker@adacore.com>
5522
5523         Implement task switching on solaris targets.
5524         * sol-thread.c (thread_db_find_thread_from_tid)
5525         (sol_get_ada_task_ptid): New functions.
5526         (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5527
5528 2010-05-07  Pedro Alves  <pedro@codesourcery.com>
5529
5530         * remote.c (remote_query_supported_append): Use reconcat.
5531         (remote_query_supported): Install a cleanup.  Use reconcat.
5532
5533 2010-05-07  Pedro Alves  <pedro@codesourcery.com>
5534
5535         * gdbarch.sh (qsupported): Delete.
5536         * gdbarch.h, gdbarch.c: Regenerate.
5537         * remote.c (remote_query_supported): Remove use of
5538         gdbarch_qsupported.
5539
5540 2010-05-06  Sergio Durigan Junior  <sergiodj@redhat.com>
5541
5542         * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5543         function.
5544
5545 2010-05-06  Michael Snyder  <msnyder@vmware.com>
5546
5547         * xml-support.c (xinclude_start_include): Delete unused variable.
5548         (xml_process_xincludes): Delete unused variable.
5549         * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5550         * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5551         (tdesc_find_arch_register): Delete unused variable.
5552         (tdesc_use_registers): Delete unused variable.
5553         * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5554         * inferior.c (print_inferior): Delete unused variable.
5555         * record.c (record_open_1): Delete unused variable.
5556         (record_restore): Delete unused variable.
5557         (cmd_record_save): Delete unused variable.
5558         * gcore.c (derive_heap_segment): Delete unused variable.
5559         (objfile_find_memory_regions): Use unused variable.
5560         * jit.c (jit_inferior_init): Delete unused variable.
5561         * progspace.c (clone_program_space): Delete unused variable.
5562         (pspace_empty_p): Delete unused variable.
5563
5564         * frame-unwind.c (frame_unwind_find_by_frame):
5565         Delete unused variable.
5566         * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5567         * cp-support.c (mangled_name_to_comp): Delete unused variable.
5568         (method_name_from_physname): Delete unused variable.
5569         (cp_func_name): Delete unused variable.
5570         (cp_validate_operator): Delete unused variable.
5571         * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5572         Delete unused variable.
5573         * trad-frame.c (trad_frame_get_prev_register):
5574         Delete unused variable.
5575         * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5576
5577         * serial.c (serial_for_fd): Delete unused variable.
5578         * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5579         * top.c (execute_command): Delete unused variable.
5580         (init_main): Delete unused variable.
5581         * utils.c (do_fclose_cleanup): Delete unused variable.
5582         (do_all_inferior_continuations): Delete unused variable.
5583         (initialize_utils): Delete unused variable.
5584         (internal_problem_mode): Delete unused global.
5585         * frame.c (get_prev_frame): Delete unused global.
5586         (get_frame_locals_address): Delete unused global.
5587         (get_frame_args_address): Delete unused global.
5588
5589         * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5590         (pascal_type_print_varspec_prefix): Delete unused variable.
5591         * f-typeprint.c (f_type_print_base): Delete unused variable.
5592         (f_type_print_varspec_suffix): Delete unused variable.
5593         * m2-typeprint.c (m2_print_type): Delete unused variable.
5594         (m2_long_set): Delete unused variable.
5595         * ada-valprint.c (ada_val_print_1): Delete unused variable.
5596         * d-valprint.c (dynamic_array_type): Delete unused variable.
5597         * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5598         Delete unused variable.
5599         (f77_create_arrayprint_offset_tbl): Delete unused variable.
5600         * m2-valprint.c (m2_val_print): Delete unused variable.
5601
5602         * ui-out.c (ui_out_field_int): Delete unused variable.
5603         (ui_out_field_fmt_int): Delete unused variable.
5604         * varobj.c (varobj_list_children): Delete unused variable.
5605         (varobj_set_value): Delete unused variable.
5606         (install_new_value_visualizer): Delete unused variable.
5607         (varobj_set_visualizer): Delete unused variable.
5608         (varobj_update): Delete unused variable.
5609         (varobj_editable_p): Delete unused variable.
5610         (c_value_of_root): Delete unused variable.
5611         (cplus_describe_child): Delete unused variable.
5612
5613         * ada-lang.c (add_defn_to_vec): Delete unused variable.
5614         (decode_constrained_packed_array_type): Delete unused variable.
5615         (add_defn_to_vec): Delete unused variable.
5616         (symbol_completion_match): Delete unused variable.
5617         (value_tag_from_contents_and_address): Delete unused variable.
5618         (ada_evaluate_subexp): Delete unused variable.
5619         * c-lang.c (classify_type): Delete unused variable.
5620         * f-lang.c (f_printstr): Delete unused variable.
5621         * objc-lang.c (objc_printstr): Delete unused variable.
5622         * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5623         * jv-lang.c (type_from_class): ifdef unused variable.
5624         (java_class_name_from_physname): Delete unused variable.
5625         * m2-lang.c (m2_printstr): Delete unused variable.
5626
5627         * objfiles.c (objfile_relocate): Delete unused variable.
5628         * maint.c (_initialize_maint_cmds): Delete unused variable.
5629         * demangle.c (_initialize_demangler): Delete unused variable.
5630         * corefile.c (reopen_exec_file): Delete unused variable.
5631         * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5632         * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5633
5634         * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5635         * memattr.c (mem_delete): Delete unused variable.
5636         (invalidate_target_mem_regions): Delete unused variable.
5637         * mem-break.c (default_memory_insert_breakpoint):
5638         Delete unused variable.
5639         * target.c (target_get_osdata): Delete unused variable.
5640         * parse.c (length_of_subexp): Delete unused variable.
5641         (prefixify_subexp): Delete unused variable.
5642         (exp_iterate): Delete unused variable.
5643         * reverse.c (delete_bookmark_command): Delete unused variable.
5644
5645         * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5646         * macroexp.c (gather_arguments): Delete unused variable.
5647         (substitute_args): Delete unused variable.
5648         * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5649         * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5650         (_initialize_gdbarch): Delete unused variable.
5651         * gdbarch.c, gdbarch.h: Regenerate.
5652         * arch-utils.c (initialize_current_architecture):
5653         Delete unused variable.
5654         (_initialize_gdbarch_utils): Delete unused variable.
5655         * gdbtypes.c (make_cv_type): Delete unused variable.
5656         (make_type_with_address_space): Delete unused variable.
5657
5658         * linespec.c (decode_compound): Delete unused variable.
5659         * dictionary.c (iterator_next_hashed): Delete unused variable.
5660         * infcall.c (call_function_by_hand): Delete unused variable.
5661         * infcmd.c (step_1): Delete unused variable.
5662         (registers_info): Delete unused variable.
5663         (attach_command): Delete unused variable.
5664         * infrun.c (follow_exec): Delete unused variable.
5665         (handle_step_into_function_backwards): Delete unused variable.
5666         (_initialize_infrun): Delete unused variable.
5667         * stack.c (parse_frame_specification_1): Delete unused variable.
5668         (frame_info): Delete unused variable.
5669         (backtrace_command_1): Delete unused variable.
5670         (catch_info): Delete unused variable.
5671
5672         * eval.c (evaluate_subexp_standard): Delete unused variable.
5673         * valops.c (value_cast_pointers): Delete unused variable.
5674         (value_dynamic_cast): Delete unused variable.
5675         (value_array): Delete unused variable.
5676         (find_overload_match): Delete unused variable.
5677         * valarith.c (value_subscript): Delete unused variable.
5678         (value_binop): Delete unused variable.
5679         * valprint.c (_initialize_valprint): Delete unused variable.
5680         * printcmd.c (print_command_1): Delete unused variable.
5681         (address_info): Delete unused variable.
5682         (printf_command): Delete unused variable.
5683
5684         * auxv.c (target_auxv_search): Delete unused variable.
5685         * blockframe.c (get_frame_block): Delete unused variable.
5686         * regcache.c (regcache_cpy): Delete unused variable.
5687         (regcache_cpy_no_passthrough): Delete unused variable.
5688         * charset.c (wchar_iterate): Delete unused variable.
5689         (find_charset_names): Delete unused variable.
5690         (_initialize_charset): Delete unused variable.
5691         * disasm.c (do_mixed_source_and_assembly):
5692         Delete unused variable.
5693         * source.c (set_default_source_symtab_and_line):
5694         Delete unused variable.
5695         (set_substitute_path_command): Delete unused variable.
5696         * value.c (preserve_values): Delete unused variable.
5697         (value_from_double): Delete unused variable.
5698
5699 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5700
5701         * psymtab.c (lookup_partial_symbol): Delete unused variable.
5702         (find_last_source_symtab_from_partial): Delete unused variable.
5703         * symfile.c (place_section): Delete unused variable.
5704         (default_symfile_offsets): Delete unused variable.
5705         (get_debug_link_info): Delete unused variable.
5706         (find_separate_debug_file_by_debuglink): Delete unused variable.
5707         (add_symbol_file_command): Delete unused variable.
5708         (symfile_find_segment_sections): Delete unused variable.
5709         * symmisc.c (free_symtab): Delete unused variable.
5710         (dump_symtab_1): Delete unused variable.
5711         * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5712         (find_pc_sect_symtab): Delete unused variable.
5713         (skip_prologue_using_lineinfo): Delete unused variable.
5714         (sources_info): Delete unused variable.
5715         (completion_list_add_name): Delete unused variable.
5716         (expand_line_sal): Delete unused variable.
5717
5718         * breakpoint.c (validate_commands_for_breakpoint):
5719         Delete unused variables.
5720         (insert_catchpoint): Delete unused variable.
5721         (update_watchpoint): Delete unused variable.
5722         (insert_bp_location): Delete unused variable.
5723         (insert_breakpoint_locations): Delete unused variable.
5724         (remove_breakpoint_1): Delete unused variable.
5725         (software_breakpoint_inserted_here_p): Delete unused variable.
5726         (watchpoints_triggered): Delete unused variable.
5727         (bpstat_check_watchpoint): Delete unused variable.
5728         (bpstat_stop_status): Delete unused variable.
5729         (print_one_breakpoint_location): Delete unused variable.
5730         (allocate_bp_location): Delete unused variable.
5731         (create_breakpoint): Delete unused variable.
5732         (watch_command_1): Delete unused variable.
5733         (catch_exception_command_1): Delete unused variable.
5734         (catch_ada_exception_command): Delete unused variable.
5735         (delete_breakpoint): Delete unused variable.
5736         (breakpoint_re_set_one): Delete unused variable.
5737         (do_enable_breakpoint): Delete unused variable.
5738
5739 2010-05-06  Pedro Alves  <pedro@codesourcery.com>
5740
5741         * amd64-tdep.c: Include disasm.h.
5742         (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5743         (amd64_insn_length): Moved to disasm.c and renamed.
5744         (fixup_riprel): Adjust.
5745         * disasm.c (do_ui_file_delete): New.
5746         (gdb_insn_length): New.
5747         (gdb_buffered_insn_length_fprintf)
5748         (gdb_buffered_insn_length_init_dis)
5749         (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5750         renamed.
5751         * disasm.h (gdb_insn_length): Declare.
5752         (gdb_buffered_insn_length): Declare.
5753
5754 2010-05-06  Pedro Alves  <pedro@codesourcery.com>
5755
5756         * remote.c (clear_threads_parsing_context): New.
5757         (remote_threads_info): Delete unused null_cleanup.  Install a
5758         cleanup to clear the threads_parsing_context in case parsing
5759         throws.
5760
5761 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5762
5763         * c-exp.y (parse_string_or_char): Delete unused variable.
5764         (c_lex): Delete unused variable.
5765         * cp-name-parser.y (cpname_lex): Delete unused variable.
5766         * ada-exp.y (find_primitive_type): Delete unused variable.
5767         (write_var_or_type): Delete unused variable.
5768         * jv-exp.y (java_parse): Delete unused variable.
5769         (push_expression_name): Delete unused variable.
5770         * p-exp.y (pascal_lex): Delete unused variable.
5771
5772 2010-05-05  Pedro Alves  <pedro@codesourcery.com>
5773
5774         * remote.c (remote_threads_info): Really revert previous previous
5775         change.
5776
5777 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5778
5779         * elfread.c (elf_symtab_read): Delete unused variable.
5780         (find_separate_debug_file_by_buildid): Delete unused variables.
5781         (elf_symfile_read): Delete unused variable.
5782
5783         * coffread.c (coff_symfile_read): Delete unused variables.
5784
5785         * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5786         (read_pe_exported_syms): Delete unused variable.
5787
5788         * stabsread.c (define_symbol): Delete unused variable.
5789
5790         * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5791         (process_psymtab_comp_unit): Delete unused variable.
5792         (dwarf2_build_psymtabs_hard): Delete unused variable.
5793         (load_partial_comp_unit): Delete unused variable.
5794         (create_all_comp_units): Delete unused variable.
5795         (scan_partial_symbols): Delete unused variable.
5796         (add_partial_symbol): Delete unused variable.
5797         (add_partial_namespace): Delete unused variable.
5798         (add_partial_enumeration): Delete unused variable.
5799         (load_full_comp_unit): Delete unused variable.
5800         (process_full_comp_unit): Delete unused variable.
5801         (read_file_scope): Delete unused variable.
5802         (read_type_unit_scope): Delete unused variable.
5803         (process_structure_scope): Delete unused variable.
5804         (process_enumeration_scope): Delete unused variable.
5805         (read_tag_ptr_to_member_type): Delete unused variable.
5806         (read_typedef): Delete unused variable.
5807         (read_partial_die): Delete unused variable.
5808         (decode_locdesc): Delete unused variable.
5809         (zeroed_partial_die): Delete unused global variable.
5810
5811         * tui/tui-interp.c (_initialize_tui_interp):
5812         Delete unused variable.
5813         * tui/tui-regs.c tui_display_registers_from):
5814         Delete unused variable.
5815         (tui_check_register_values): Delete unused variable.
5816         (tui_register_format): Delete unused variable.
5817         * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
5818         * tui/tui-windata.c (tui_display_data_from_line):
5819         Delete unused variables.
5820         (tui_vertical_data_scroll): Delete unused variables.
5821
5822 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5823
5824         * remote.c (remote_threads_info): Revert questionable part of
5825         the previous change.
5826
5827 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5828
5829         * mi/mi-out.c (mi_table_begin): Delete unused variable.
5830         * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5831         (mi_cmd_var_list_children): Delete unused variable.
5832         (varobj_update_one): Delete unused variable.
5833         * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
5834         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
5835         Delete unused variable.
5836         (mi_cmd_stack_list_variables): Delete unused variable.
5837         (list_args_or_locals): Delete unused variable.
5838         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
5839         Delete unused variables.
5840         (mi_cmd_file_list_exec_source_files): Delete unused variable.
5841         * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
5842         Delete unused variable.
5843         * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5844         (mi_cmd_interpreter_exec): Delete unused variable.
5845         (mi_on_normal_stop): Delete unused variable.
5846         * mi/mi-main.c (run_one_inferior): Delete unused variable.
5847         (print_one_inferior): Delete unused variables.
5848         (mi_execute_command): Delete unused variable.
5849         (mi_cmd_execute): Delete unused variable.
5850         (timestamp): Delete unused variable.
5851
5852         * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
5853         (restore_binary_file): Delete unused variable.
5854         * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5855         * cli/cli-script.c (define_command): Delete unused variables.
5856         (recurse_read_control_structure): Delete unused variable.
5857         (script_from_file): Delete unused variable.
5858         * cli/cli-cmds.c (complete_command): Delete unused variable.
5859         (disassemble_command): Delete unused variable.
5860
5861         * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
5862         * tracepoint.c (delete_trace_variable_command):
5863         Delete unused variables.
5864         (encode_actions_1): Delete unused variables.
5865         (start_tracing): Delete unused variable.
5866         (trace_status_mi): Delete unused variable.
5867         (tfind_1): Delete unused variable.
5868         (trace_find_pc_command): Delete unused variable.
5869         (trace_find_line_command): Delete unused variables.
5870         (trace_find_range_command): Delete unused variables.
5871         (trace_find_outside_command): Delete unused variables.
5872         (parse_tracepoint_definition): Delete unused variables.
5873         (tfile_fetch_registers): Delete unused variable.
5874
5875         * dcache.c (dcache_init): Delete unused variable.
5876         (dcache_info): Delete unused variable.
5877
5878         * remote.c (remote_threads_info): Delete unused variable.
5879         (process_stop_reply) :Delete unused variable.
5880         (remote_get_trace_status): Delete unused variables.
5881
5882         * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5883         (thread_from_lwp): Delete unused variable.
5884         (enable_thread_event_reporting): Delete unused variable.
5885         (check_for_thread_db): Delete unused variables.
5886         (thread_db_find_new_threads_2): Delete unused variable.
5887
5888         * linux-fork.c (info_checkpoints_command): Delete unused variables.
5889         (checkpoint_command): Delete unused variable.
5890         (linux_fork_context): Delete unused variables.
5891
5892         * linux-nat.c (linux_parent_pid): Delete unused global variable.
5893         (linux_tracefork_child): Delete unused variable.
5894         (linux_child_follow_fork): Delete unused variable.
5895         (linux_nat_detach): Delete unused variable.
5896         (linux_handle_extended_wait): Delete unused variable.
5897         (linux_nat_has_pending_sigint): Delete unused variable.
5898         (linux_nat_find_memory_regions): Delete unused variable.
5899         (linux_nat_make_corefile_notes): Delete unused variables.
5900         (linux_nat_info_proc_cmd): Delete unused variable.
5901         (linux_proc_pending_signals): Delete unused variable.
5902         (linux_nat_stop_lwp): Delete unused variables.
5903         (_initialize_linux_nat): Delete unused variable.
5904
5905         * ser-pipe.c (pipe_ops): Delete unused global variable.
5906
5907         * linux-record.c (record_linux_system_call):
5908         Delete unused variables.
5909
5910         * corelow.c (core_xfer_partial): Delete unused variables.
5911
5912         * solib-svr4.c (find_program_interpreter): Delete unused variable.
5913         (svr4_solib_create_inferior_hook): Add ifdef around
5914         conditionally-used variable declarations.
5915
5916         * solib.c (solib_find): Delete unused variable.
5917         (free_so_symbols): Delete unused variable.
5918         (info_sharedlibrary_command): Delete unused variable.
5919         (reload_shared_libraries_1): Delete unused variable.
5920         (_initialize_solib): Delete unused variable.
5921
5922         * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5923         (i386_collect_xstateregset): Delete unused variable.
5924         * i387-tdep.c (i387_print_float_info): Delete unused variable.
5925
5926         * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5927         Delete unused variable 'type'.
5928
5929 2010-05-05  Joel Brobecker  <brobecker@adacore.com>
5930
5931         * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros.  *
5932         ada-lang.c: Remove comment mentioning these macros.
5933         * m2-exp.y: Delete commented out code.
5934
5935 2010-05-05  Joel Brobecker  <brobecker@adacore.com>
5936
5937         * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5938         for array types.
5939         * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5940
5941 2010-05-04  Pierre Muller  <muller@ics.u-strasbg.fr>
5942
5943         ARI fix: Remove ATTRIBUTE_UNUSED throughout.
5944         * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
5945         ATTRIBUTE_UNUSED.
5946         (cleanup_kernel_helper_return): Likewise.
5947         * arm-tdep.c (copy_unmodified): Likewise.
5948         (copy_preload): Likewise.
5949         (copy_copro_load_store): Likewise.
5950         (cleanup_branch): Likewise.
5951         (copy_b_bl_blx): Likewise.
5952         (copy_bx_blx_reg): Likewise.
5953         (copy_alu_imm): Likewise.
5954         (copy_alu_reg): Likewise.
5955         (copy_alu_shifted_reg): Likewise.
5956         (cleanup_load): Likewise.
5957         (cleanup_store): Likewise.
5958         (cleanup_block_load_pc): Likewise.
5959         (cleanup_svc): Likewise.
5960         (copy_undef): Likewise.
5961         (copy_unpred): Likewise.
5962         * remote.c (register_remote_support_xml): Likewise.
5963
5964 2010-05-05  Hui Zhu  <teawater@gmail.com>
5965
5966         * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5967
5968 2010-05-04  Mark Kettenis  <kettenis@gnu.org>
5969
5970         * remote.c (register_remote_support_xml)
5971         (remote_query_supported_append, remote_query_supported): Add cast
5972         to NULL used as sentinel.
5973         * tracepoint.c (tvariables_info_1): Likewise.
5974         * utils.c (add_internal_problem_command): Likewise.
5975
5976 2010-05-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5977
5978         * dwarf2loc.c (read_pieced_value, write_pieced_value,
5979         dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5980         registers gracefully.
5981
5982 2010-05-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5983
5984         * exec.c (print_section_info): Display entry point without arch
5985         specific parts.
5986
5987 2010-05-04  Pierre Muller  <muller@ics.u-strasbg.fr>
5988
5989         PR exp/11349.
5990         * printcmd.c (x_command): Only dereference once implicitly for
5991         TYPE_CODE_REF.
5992
5993 2010-05-03  Doug Evans  <dje@google.com>
5994
5995         * event-loop.c (gdb_timer): Delete unused global.
5996         (create_timer): Update.
5997
5998 2010-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5999
6000         * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6001         CURRENT->DECLARATION case.
6002         * cp-support.h (struct using_direct): Provide extended comment.
6003
6004 2010-05-03  Mark Kettenis  <kettenis@gnu.org>
6005
6006         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6007         HPPABSD_SIZEOF_GREGS.
6008         (HPPAOBSD_SIZEOF_FPREGS): New define.
6009         (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6010         (hppaobsd_supply_fpregset): New function.
6011         (hppaobsd_gregset): Renamed from hppabsd_gregset.
6012         (hppaobsd_fpregset): New variable.
6013         (hppaobsd_regset_from_core_section): Handle floating-point registers.
6014         (_initialize_hppabsd_tdep): Remove spurious blank line.
6015
6016 2010-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
6017
6018         PR pascal/11349.
6019         * p-valprint.c (pascal_value_print): Always dereference a value with
6020         type code TYPE_CODE_REF.
6021
6022 2010-05-03  Pedro Alves  <pedro@codesourcery.com>
6023
6024         * remote.c (remote_notice_signals): New.
6025         (remote_start_remote): In non-stop mode, update the remote end on
6026         which signals it can silently pass.
6027         (init_remote_ops): Install remote_notice_signals.
6028
6029 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6030
6031         * cli/cli-cmds.h (error_no_arg): Remove.  Move the comment ...
6032         * command.h (error_no_arg): ... here.  Remove NORETURN, change
6033         ATTR_NORETURN to ATTRIBUTE_NORETURN.
6034         * defs.h (NORETURN, ATTR_NORETURN): Remove.
6035         (perror_with_name, verror, error, error_stream, vfatal, fatal)
6036         (internal_verror, internal_error, nomem): Remove NORETURN, change
6037         ATTR_NORETURN to ATTRIBUTE_NORETURN.
6038         * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6039         (throw_vfatal, throw_error): Remove NORETURN.
6040         (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6041         * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6042         (throw_error, deprecated_throw_reason): Remove NORETURN, change
6043         ATTR_NORETURN to ATTRIBUTE_NORETURN.
6044         * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6045         to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6046         NORETURN.
6047         * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6048         * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6049         ATTRIBUTE_NORETURN.
6050         * target.c (tcomplain): Likewise.
6051         * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6052         ATTRIBUTE_NORETURN.
6053         * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6054         (internal_error, perror_with_name, nomem): Remove NORETURN.
6055         * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6056         ATTRIBUTE_NORETURN.
6057
6058 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6059
6060         * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6061         * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6062         * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6063         (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6064         * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6065         (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6066         * complaints.h (complaint, internal_complaint): Likewise.
6067         * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6068         (ATTR_FORMAT): Remove.
6069         (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6070         (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6071         (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6072         (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6073         (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6074         (internal_error, internal_vwarning, internal_warning, warning)
6075         (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6076         * disasm.c (fprintf_disasm): Likewise.
6077         * exceptions.c (throw_it): Likewise.
6078         * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6079         (throw_error): Likewise.
6080         * language.h (type_error, range_error): Likewise.
6081         * linespec.c (cplusplus_error): Likewise.
6082         * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6083         * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6084         * monitor.c (monitor_debug): Likewise.
6085         * parser-defs.h (parser_fprintf): Likewise.
6086         * serial.h (serial_printf): Likewise.
6087         * tui/tui-hooks.c (tui_query_hook): Likewise.
6088         * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6089         (uo_message): Likewise.
6090         * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6091         * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6092         Likewise.
6093         * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6094
6095 2010-05-02  Pedro Alves  <pedro@codesourcery.com>
6096
6097         * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6098         (cli_table_header, cli_begin, cli_end, cli_field_int)
6099         (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6100         (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6101         Delete forward declarations.
6102         (cli_ui_out_impl): Move below the callbacks.
6103         (_initialize_cli_out): Delete.
6104
6105 2010-05-02  Pedro Alves  <pedro@codesourcery.com>
6106
6107         * README: Use consistent `GDB' and `GDBserver' spellings.
6108
6109 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6110
6111         * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6112
6113 2010-05-01  Pedro Alves  <pedro@codesourcery.com>
6114
6115         * infrun.c (prepare_for_detach): In non-stop, context switch to
6116         the thread that got the event before handling the event.
6117
6118 2010-04-30  Tom Tromey  <tromey@redhat.com>
6119
6120         * symtab.c (symbol_set_names): Fix typo.
6121
6122 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
6123
6124         * python/py-param.c (parm_constants): Avoid ARI warning
6125         by adding ARI comment.
6126         (parmpy_init): Likewise.
6127
6128 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
6129
6130         * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6131         and created type for re-use.
6132
6133 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
6134
6135         * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6136
6137 2010-04-29  Doug Evans  <dje@google.com>
6138
6139         * ser-base.h (reschedule): Delete prototype.
6140         * ser-base.c (reschedule): Make static.
6141
6142 2010-04-29  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6143
6144         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6145         (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
6146         (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
6147         EABI.
6148         (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
6149         use.
6150
6151 2010-04-29  Pedro Alves  <pedro@codesourcery.com>
6152
6153         PR gdb/11557
6154
6155         * regcache.c (registers_changed): Rename to ...
6156         (registers_changed_ptid): ... this, and only delete register cache
6157         entries matching the ptid filter argument.
6158         (registers_changed): Reimplement on top of registers_changed_ptid.
6159         * regcache.h (registers_changed_ptid): Declare.
6160         * target.c (target_resume): Flush register caches.
6161
6162 2010-04-29  Phil Muldoon  <pmuldoon@redhat.com>
6163             Tom Tromey  <tromey@redhat.com>
6164             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6165
6166         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6167         (SUBDIR_PYTHON_SRCS): Likewise.
6168         (py-parameter.o): New rule.
6169         * python/py-parameter.c: New file.
6170         * python/python-internal.h (gdbpy_initialize_parameter)
6171         (gdbpy_parameter, gdbpy_parameter_value)
6172         (gdbpy_parse_command_name): Declare.
6173         * python/py-cmd.c (parse_command_name): Rename to
6174         gdbpy_parse_command_name.
6175         (gdbpy_parse_command_name): Accept a starting list parameter and
6176         use over cmdlist.
6177         (cmdpy_init): Use gdbpy_parse_command_name.
6178         * python/python.c (parameter_to_python): Rename to
6179         gdbpy_parameter_to_python.  Accept enum var_types and value.
6180         (gdbpy_parameter): Use gdbpy_parameter_value.
6181         (_initialize_python): Call gdbpy_initialize_parameters.
6182
6183 2010-04-29  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6184
6185         * MAINTAINERS: Add myself for write after approval privileges.
6186
6187 2010-04-29  Mihail Zenkov  <mihail.zenkov@gmail.com>
6188
6189         D language support.
6190         * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6191         (COMMON_OBS): Add d-lang.o d-valprint.o.
6192         (HFILES_NO_SRCDIR): Add d-lang.h.
6193         * NEWS: Mention D language support.
6194         * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6195         * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6196         * d-lang.c: New file.
6197         * d-lang.h: New file.
6198         * d-valprint.c: New file.
6199         * defs.h (enum language): Add language_d.
6200         * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6201         * language.c (binop_result_type, integral_type, character_type)
6202         (string_type, boolean_type, structured_type): Add language_d.
6203         * symfile.c (init_filename_language_table): Add language_d.
6204         * symtab.c: Include d-lang.h.
6205         (symbol_init_language_specific, symbol_find_demangled_name)
6206         (symbol_natural_name, lookup_symbol_in_language)
6207         (symbol_demangled_name, symbol_matches_domain): Add language_d.
6208
6209 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6210
6211         * solib-svr4.c (solib_svr4_r_map): Expand function description.
6212
6213 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6214
6215         * symfile.c (init_filename_language_table): Register .dg files
6216         with language_ada.
6217
6218 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6219
6220         * gdbtypes.h (struct main_type): Expand comment about target_type
6221         field.
6222
6223 2010-04-27  Pedro Alves  <pedro@codesourcery.com>
6224             Tristan Gingold  <gingold@adacore.com>
6225
6226         * symfile.c (reread_symbols): Also search for file in libraries.
6227         Update comment.
6228
6229 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6230
6231         * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6232         in terms of configuration.
6233
6234 2010-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6235
6236         * objfiles.c: Include solist.h.
6237         (free_all_objfiles): New variable so.  Check stale solist objfiles.
6238         * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6239         and no_shared_libraries.
6240
6241 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6242
6243         ARI warning fix.
6244         * python/py-auto-load.c (source_section_scripts): Remove trailing
6245         new-line in i18n string.
6246
6247 2010-04-26  Doug Evans  <dje@google.com>
6248
6249         * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6250
6251 2010-04-26  Tom Tromey  <tromey@redhat.com>
6252
6253         * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6254         command list.
6255
6256 2010-04-26  Pierre Muller  <muller@ics.u-strasbg.fr>
6257
6258         Removal of config/i386/nm-i386sol2.h native configuration file.
6259         * config/i386/nm-i386sol2.h: Remove file.
6260         * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6261         * config/i386/sol2-64.mh: Idem.
6262         * config/djgpp/fnchange.lst: Remove reference to that file.
6263         * Makefile.in (HFILES_NO_SRCDIR): Idem.
6264
6265 2010-04-26  Pierre Muller  <muller@ics.u-strasbg.fr>
6266
6267         PR breakpoints/11531.
6268         * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6269         macro definition and related comment.
6270         * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6271         (resume): Remove code and comment related to this macro.
6272
6273 2010-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6274
6275         * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6276         Fix whitespace.
6277
6278 2010-04-24  Pedro Alves  <pedro@codesourcery.com>
6279
6280         * defs.h: Adjust comment.
6281         * filesystem.h, filesystem.c: New files.
6282         * Makefile.in (SFILES): Add filesystem.c.
6283         (COMMON_OBS): Add filesystem.o.
6284         * solib.c (solib_find): Handle DOS-based filesystems.  Handle
6285         different target and host path flavours.
6286         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6287         has_dos_based_file_system on the gdbarch.
6288         * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6289         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6290         * i386-tdep.c (i386_go32_init_abi): Ditto.
6291         * gdbarch.sh (has_dos_based_file_system): New.
6292         * gdbarch.h, gdbarch.c: Regenerate.
6293         * NEWS: Mention improved support for remote targets with DOS-based
6294         filesystems.  Mention new `set/show target-file-system-kind'
6295         commands.
6296
6297 2010-04-23  Stan Shebs  <stan@codesourcery.com>
6298
6299         * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6300         comments.
6301         (struct agent_reqs): Remove.
6302         (ax_reg_mask): Declare.
6303         * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6304         (free_agent_expr): Free reg_mask.
6305         (ax_print): Add scope and register mask info.
6306         (ax_reqs): Remove agent_reqs argument, use agent expression
6307         fields, and move part of register mask computation to...
6308         (ax_reg_mask): New function.
6309         * ax-gdb.c (gen_trace_static_fields): Call it.
6310         (gen_traced_pop): Ditto.
6311         (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6312         (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6313         (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6314         (gen_eval_for_expr): Ditto, and require an rvalue.
6315         (agent_command): Call ax_reqs.
6316         (agent_eval_command): Ditto.
6317         * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6318         (validate_action_line): Ditto.
6319         (collect_symbol): Ditto.
6320         (encode_actions_1): Ditto.
6321
6322 2010-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
6323             Paul Pluzhnikov  <ppluzhnikov@google.com>
6324             Jan Kratochvil  <jan.kratochvil@redhat.com>
6325
6326         Fix deadlock on looped list of loaded shared objects.
6327         * solib-svr4.c (LM_PREV): New function.
6328         (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6329         (svr4_current_sos): Check for correct l_prev.  New variables prev_lm
6330         and next_lm.  Clear prev_lm for solib_svr4_r_ldsomap.
6331         * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6332
6333 2010-04-23  Doug Evans  <dje@google.com>
6334
6335         * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6336         python.
6337         * configure: Regenerate.
6338         * main.c: #include "python/python.h".
6339         (captured_main): Defer loading auto-loaded scripts until after
6340         local_gdbinit has been sourced.
6341         * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6342         (load_auto_scripts_for_objfile): New function.
6343         (auto_load_new_objfile): Call it.
6344         * python/python.h (gdbpy_global_auto_load): Declare.
6345         (load_auto_scripts_for_objfile): Declare.
6346
6347         Add support for auto-loading scripts from .debug_gdb_scripts section.
6348         * NEWS: Add entry for .debug_gdb_scripts.
6349         * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6350         (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6351         (py-auto-load.o): New rule.
6352         * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6353         * cli/cli-cmds.h (find_and_open_script): Update prototype.
6354         * python/py-auto-load.c: New file.
6355         * python/python-internal.h: #include <stdio.h>.
6356         (set_python_list, show_python_list): Declare.
6357         (gdbpy_initialize_auto_load): Declare.
6358         (source_python_script_for_objfile): Declare.
6359         * python/python.c: Remove #include of observer.h.
6360         (gdbpy_auto_load): Moved to py-auto-load.c.
6361         (GDBPY_AUTO_FILENAME): Ditto.
6362         (gdbpy_new_objfile): Delete.
6363         (source_python_script_for_objfile): New function.
6364         (set_python_list, show_python_list): Make externally visible.
6365         (_initialize_python): Move "auto-load" command to py-auto-load.c
6366         and observer_attach_new_objfile to py-auto-load.c.
6367
6368 2010-04-23  Jerome Guitton  <guitton@adacore.com>
6369
6370         * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6371         (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6372         (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6373         New constants.
6374         (alpha_heuristic_analyze_probing_loop): New function.
6375         (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6376         and handle cases when a stack probe loop is generated.
6377         * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6378         (alpha_mdebug_max_frame_size_exceeded): New function.
6379         (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6380         (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6381         Return 0 when the maximum debuggable frame size has been exceeded.
6382
6383 2010-04-23  Joel Brobecker  <brobecker@adacore.com>
6384
6385         Fix ARI warning.
6386         * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6387
6388 2010-04-20  Chris Moller  <cmoller@redhat.com>
6389
6390         PR 10179
6391
6392         * symtab.c (rbreak_command): Added code to include a filename
6393         specification in the rbreak argument.
6394         * NEWS: Added a brief description of filename-qualified rbreak.
6395
6396 2010-04-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
6397
6398         Fix crashes on dangling display expressions.
6399         * ada-lang.c (ada_operator_check): New function.
6400         (ada_exp_descriptor): Fill-in the field operator_check.
6401         * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6402         * jv-lang.c (exp_descriptor_java): Likewise.
6403         * m2-lang.c (exp_descriptor_modula2): Likewise.
6404         * scm-lang.c (exp_descriptor_scm): Likewise.
6405         * parse.c (exp_descriptor_standard): Likewise.
6406         (operator_check_standard): New function.
6407         (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6408         * parser-defs.h (struct exp_descriptor): New field operator_check.
6409         (operator_check_standard, exp_uses_objfile): New declarations.
6410         * printcmd.c: Remove the inclusion of solib.h.
6411         (display_uses_solib_p): Remove the function.
6412         (clear_dangling_display_expressions): Call lookup_objfile_from_block
6413         and exp_uses_objfile instead of display_uses_solib_p.
6414         * solist.h (struct so_list) <objfile>: New comment.
6415         * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6416         * symtab.h (lookup_objfile_from_block): New declaration.
6417         (struct general_symbol_info) <obj_section>: Extend the comment.
6418
6419 2010-04-22  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
6420             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6421
6422         * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6423         (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6424         ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6425         PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6426         PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6427         PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6428         PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6429         PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6430         PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6431         PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6432         PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6433         PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6434         PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6435         Define, in case <ptrace.h> doesn't provide it.
6436         (booke_debug_info): New variable.
6437         (max_slots_number): Ditto.
6438         (hw_break_tuple): New struct.
6439         (thread_points): Ditto.
6440         (ppc_threads): New variable.
6441         (PPC_DEBUG_CURRENT_VERSION): New define.
6442         (have_ptrace_new_debug_booke): New function.
6443         (ppc_linux_check_watch_resources): Renamed to ...
6444         (ppc_linux_can_use_hw_breakpoint): ... this.  Handle BookE processors.
6445         (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6446         (booke_cmp_hw_point): New function.
6447         (booke_find_thread_points_by_tid): Ditto.
6448         (booke_insert_point): Ditto.
6449         (booke_remove_point): Ditto.
6450         (ppc_linux_insert_hw_breakpoint): Ditto.
6451         (ppc_linux_remove_hw_breakpoint): Ditto.
6452         (get_trigger_type): Ditto.
6453         (ppc_linux_insert_watchpoint): Handle BookE processors.
6454         (ppc_linux_remove_watchpoint): Ditto.
6455         (ppc_linux_new_thread): Ditto.
6456         (ppc_linux_thread_exit): New function..
6457         (ppc_linux_stopped_data_address): Handle BookE processors.
6458         (ppc_linux_watchpoint_addr_within_range): Ditto.
6459         (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6460         to_remove_hw_breakpoint fields of the target operations struct.
6461         Add observe for the thread_exit event.
6462
6463 2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>
6464
6465         * i386-linux-nat.c (regmap): Removed.
6466         (fetch_register): Replace regmap with
6467         i386_linux_gregset_reg_offset.
6468         (store_register): Likewise.
6469         (supply_gregset): Likewise.
6470         (fill_gregset): Likewise.
6471
6472         * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6473         global.
6474
6475         * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6476
6477 2010-04-22  Chris Moller  <cmoller@redhat.com>
6478
6479         * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6480         method of popping recursion-detection stack with a method based on
6481         obstack_object_size().  (Similar to the PR9167 patch below, but for
6482         the static array obstack rather than the static member obstack.)
6483
6484 2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>
6485
6486         * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6487         (_initialize_amd64_linux_nat): Replace
6488         amd64_linux_gregset64_reg_offset with
6489         amd64_linux_gregset_reg_offset.
6490
6491         * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6492         global.
6493
6494         * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6495
6496 2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
6497
6498         PR stabs/11479.
6499         * stabsread.c (set_length_in_type_chain): New function.
6500         (read_struct_type): Call set_length_in_type_chain function.
6501         (read_enum_type): Idem.
6502
6503 2010-04-21  Stan Shebs  <stan@codesourcery.com>
6504             Nathan Sidwell  <nathan@codesourcery.com>
6505
6506         * tracepoint.c (trace_save): Open in binary mode.
6507
6508 2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
6509
6510         * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6511         fields.
6512         * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6513         builtin_char32 fields.
6514         * printcmd.c (decode_format): Set char size to '\0'
6515         for strings unless explicit size is given.
6516         (print_formatted): Correct calculation of NEXT_ADDRESS
6517         for 16 or 32 bit strings.
6518         (do_examine): Do not force byte size for strings.
6519         Use builtin_char16 and builtin_char32 types to display
6520         16 or 32 bit-wide strings.
6521         (x_command): Set LAST_SIZE to 'b' for string type.
6522
6523 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
6524
6525         PR corefiles/11523
6526         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6527         XCR0 first.
6528
6529         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6530         there is no .reg-xstate section.
6531         (i386_linux_core_read_description): Check XCR0 first.
6532
6533 2010-04-21  Mike Frysinger  <vapier@gentoo.org>
6534
6535         * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6536         for len <= 8.
6537
6538 2010-04-21  Chris Moller  <cmoller@redhat.com>
6539
6540         PR 9167
6541         * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6542         method of popping recursion-detection stack with a method based on
6543         obstack_object_size().
6544
6545 2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6546
6547         PR pascal/11492.
6548         * p-valprint.c (pascal_val_print): Fix default printing of integer
6549         arrays.
6550
6551 2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6552
6553         Fix compilation warning on gcc-4.1.2.
6554         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6555         local variable`pc' to zero.
6556
6557 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6558
6559         Implement thread support with core files on alpha-tru64.
6560         * dec-thread.c (dec_thread_find_new_threads): New function,
6561         extracted from resync_thread_list.
6562         (resync_thread_list): Add OPS parameter.  Replace extracted-out
6563         code by call to dec_thread_find_new_threads.
6564         (dec_thread_wait): Update call to resync_thread_list.
6565         (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6566
6567 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6568
6569         * ada-lang.c (value_pointer): New function.
6570         (make_array_descriptor): Call value_pointer to convert addresses to
6571         pointers.
6572
6573 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6574
6575         * rs6000-aix-tdep.c: #include exceptions.h.
6576         (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6577         while reading the memory at ADDR, then ADDR cannot be a function
6578         descriptor.
6579
6580 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6581
6582         * ada-typeprint.c (ada_print_typedef): New function.
6583         * ada-lang.h (ada_print_typedef): Add declaration.
6584         * ada-lang.c (ada_language_defn): set la_print_typdef field
6585         to ada_print_typedef.
6586
6587 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6588
6589         * procfs.c (procfs_address_to_host_pointer): Only define when used.
6590
6591 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6592
6593         * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6594         (iterate_over_mappings): Adjust function profile. Add declaration.
6595         (insert_dbx_link_bpt_in_region, info_mappings_callback):
6596         Adjust accordingly.
6597
6598 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6599
6600         * procfs.c (solib_mappings_callback): Move function up to avoid
6601         a compiler warning.
6602
6603 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6604
6605         * procfs.c (find_signalled_thread, find_stop_signal): Move
6606         these functions down to define them only when used.
6607
6608 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6609
6610         * valprint.c (common_val_print): Fix the value before extracting
6611         its contents.
6612         * ada-lang.c (ada_to_fixed_value): Make this function extern.
6613         * ada-lang.h (ada_to_fixed_value): New function declaration.
6614         * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6615         to avoid code duplication and fix a bug in the handling of
6616         fixed types contents.
6617
6618 2010-04-20  Tom Tromey  <tromey@redhat.com>
6619
6620         * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6621         (read_partial_die): Likewise.
6622         (dwarf_attr_name): Likewise.
6623
6624 2010-04-20  Chris Moller  <cmoller@redhat.com>
6625
6626         PR 10867
6627
6628         * cp-valprint.c (global): Adding new static array recursion
6629         detection obstack.
6630         (cp_print_value_fields, cp_print_static_field): Added new static
6631         array recursion detection code.
6632
6633 2010-04-20  Mark Kettenis  <kettenis@gnu.org>
6634
6635         * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6636         general-purpose register set should be 68 instead of 144.
6637         (i386_linux_sse_regset_sections): Likewise.
6638         (i386_linux_avx_regset_sections): Likewise.
6639
6640 2010-04-20  Stan Shebs  <stan@codesourcery.com>
6641             Nathan Sidwell  <nathan@codesourcery.com>
6642
6643         * dwarf2loc.c (struct axs_var_loc): New struct.
6644         (dwarf2_tracepoint_var_loc): New function.
6645         (dwarf2_tracepoint_var_access): New function.
6646         (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6647         with DW_OP_piece.
6648         (locexpr_describe_location_piece): New function.
6649         (locexpr_describe_location_1): New function.
6650         (locexpr_describe_location): Call it, update signature.
6651         (loclist_describe_location): Rewrite to loop over locations,
6652         update signature.
6653         * symtab.h (struct symbol_computed_ops): Add address to
6654         describe_location arguments, return void.
6655         * printcmd.c (address_info): Get context PC, pass to computed
6656         location description.
6657         * tracepoint.c (scope_info): Ditto.
6658         * ax-gdb.c (trace_kludge): Export.
6659
6660 2010-04-20  Tom Tromey  <tromey@redhat.com>
6661
6662         * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6663         (struct dwarf2_cie) <segment_size>: New field.
6664         * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6665         (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6666         DW_FORM_exprloc.
6667         (read_attribute_value): Handle DW_FORM_flag_present,
6668         DW_FORM_sec_offset, DW_FORM_exprloc.
6669         (dump_die_shallow): Likewise.
6670         (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6671         (dwarf2_const_value): Handle DW_FORM_exprloc.
6672         (attr_form_is_block): Likewise.
6673         (struct line_header) <maximum_ops_per_instruction>: New field.
6674         (dwarf_decode_line_header): Set new field.
6675         (dwarf_decode_lines): Handle new field.
6676
6677 2010-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6678
6679         * f-exp.y: Add new production to recognize the `logical*8' type.
6680         (LOGICAL_S8_KEYWORD): New token.
6681         * f-lang.c (enum f_primitive_types)
6682         <f_primitive_type_logical_s8>: New field.
6683         (f_language_arch_info): Handling `logical*8' type.
6684         (build_fortran_types): Building `logical*8' type.
6685         * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6686
6687 2010-04-19  Doug Evans  <dje@google.com>
6688
6689         * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6690         * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6691         (pipe_close): Ditto.
6692
6693 2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6694
6695         * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6696
6697 2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6698
6699         * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6700         type to void function.
6701
6702 2010-04-19  Stan Shebs  <stan@codesourcery.com>
6703             Vladimir Prus  <vladimir@codesourcery.com>
6704
6705         * tracepoint.c (tfind_1): Add missing newline, report exit from
6706         tfind mode as such.
6707         * target.c (update_current_target): Make default
6708         to_trace_find return -1.
6709
6710 2010-04-19  Mike Frysinger  <vapier@gentoo.org>
6711
6712         * objc-lang.c (find_methods): Move symname check up.
6713
6714 2010-04-19  Pedro Alves  <pedro@codesourcery.com>
6715
6716         * ada-lang.c (print_recreate_exception)
6717         <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6718         not "catch unhandled".
6719
6720 2010-04-19  Pedro Alves  <pedro@codesourcery.com>
6721
6722         PR breakpoints/8554.
6723
6724         Implement `save-breakpoints'.
6725
6726         * breakpoint.c (save_cmdlist): New.
6727         (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6728         to save_cmdlist.
6729         (print_recreate_catch_fork): New.
6730         (catch_fork_breakpoint_ops): Install it.
6731         (print_recreate_catch_vfork): New.
6732         (catch_vfork_breakpoint_ops): Install it.
6733         (print_recreate_catch_syscall): New.
6734         (catch_syscall_breakpoint_ops): Install it.
6735         (print_recreate_catch_exec): New.
6736         (catch_exec_breakpoint_ops): Install it.
6737         (print_recreate_exception_catchpoint): New.
6738         (gnu_v3_exception_catchpoint_ops): Install it.
6739         (save_breakpoints): New, based on tracepoint_save_command, but
6740         handle all breakpoint types.
6741         (save_breakpoints_command): New.
6742         (tracepoint_save_command): Rename to...
6743         (save_tracepoints_command): ... this, and reimplement using
6744         save_breakpoints.
6745         (save_command): New.
6746         (_initialize_breakpoints): Install the "save" command prefix.
6747         Install the "save breakpoints" command.  Make "save-tracepoints" a
6748         deprecated alias for "save tracepoints".
6749         * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6750         * ada-lang.c (print_recreate_exception): New.
6751         (print_recreate_catch_exception): New.
6752         (catch_exception_breakpoint_ops): Install it.
6753         (print_recreate_catch_exception_unhandled): New.
6754         (catch_exception_unhandled_breakpoint_ops): Install it.
6755         (print_recreate_catch_assert): New.
6756         (catch_assert_breakpoint_ops): Install it.
6757
6758         * NEWS: Mention the new `save breakpoints' command.  Mention the
6759         new `save tracepoints' alias and that `save-tracepoints' is now
6760         deprecated.
6761
6762 2010-04-18  Pedro Alves  <pedro@codesourcery.com>
6763
6764         PR tui/9217
6765
6766         * tui/tui-out.c: Include cli-out.h.
6767         (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6768         (tui_begin, tui_end, tui_field_int, tui_field_skip)
6769         (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6770         (tui_message, tui_wrap_hint, tui_flush): Delete forward
6771         declarations.
6772         (struct ui_out_data): Rename to...
6773         (struct tui_ui_out_data): ... this.  Remove `stream' and
6774         `suppress_output' fields, and inherit cli_ui_out_data.
6775         (tui_out_data): New typedef.
6776         (tui_ui_out_impl): Don't initialize fields staticaly.
6777         (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6778         (tui_begin, tui_end): Delete.
6779         (tui_field_int): Adjust to delegate most work to the base type.
6780         (tui_field_skip): Delete.
6781         (tui_field_string, tui_field_fmt): Adjust comment.  Adjust to
6782         delegate most work to the base type.
6783         (tui_spaces): Delete.
6784         (tui_text): Adjust to delegate most work to the base type.
6785         (tui_message): Delete.
6786         (tui_wrap_hint): Delete.
6787         (tui_flush): Delete.
6788         (out_field_fmt): Delete.
6789         (field_separator): Delete.
6790         (tui_out_new): Adjust to initialize the base type.
6791         (_initialize_tui_out): Initialize tui_ui_out_impl.
6792         * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6793         cli_ui_out_data.
6794         (cli_out_data): Adjust.
6795         (cli_ui_out_impl): Make extern.
6796         (cli_table_header, cli_field_int, cli_field_skip): Use
6797         uo_field_string instead of cli_field_string.
6798         (cli_redirect): Adjust to use cli_out_data.
6799         (cli_out_data_ctor): New.
6800         (cli_out_new): Use it.
6801         * cli-out.h (struct ui_file): Remove forward declaration.
6802         (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6803         (cli_ui_out_impl): Declare.
6804         (cli_out_data_ctor): Declare.
6805         * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6806         (uo_field_string): No longer static.
6807         (ui_out_data): Change return type to void pointer.
6808         (ui_out_new): Change `data' parameter type to void pointer.
6809         * ui-out.h (struct ui_out_data): Don't forward declare.
6810         (ui_out_data): Change return type to void pointer.
6811         (ui_out_new): Change `data' parameter type to void pointer.
6812         (uo_field_string): Declare.
6813
6814 2010-04-17  Pedro Alves  <pedro@codesourcery.com>
6815
6816         * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6817         instead of always false.
6818
6819 2010-04-17  H.J. Lu  <hongjiu.lu@intel.com>
6820
6821         PR corefiles/11511
6822         * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6823         orig_rax.
6824
6825 2010-04-17  Pedro Alves  <pedro@codesourcery.com>
6826
6827         * breakpoint.c (watchpoints_triggered): Use
6828         is_hardware_watchpoint.
6829         (watchpoints_triggered): Ditto.
6830         (bpstat_check_location): Use is_watchpoint and
6831         is_hardware_watchpoint.
6832         (bpstat_check_watchpoint): Use is_watchpoint and
6833         is_hardware_watchpoint.
6834         (bpstat_stop_status): Fix comment.
6835         (user_settable_breakpoint): Use is_watchpoint.
6836         (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6837         (disable_watchpoints_before_interactive_call_start): Use
6838         is_watchpoint.
6839         (enable_watchpoints_after_interactive_call_stop): Use
6840         is_watchpoint.
6841         (clear_command): Use is_watchpoint.
6842         (do_enable_breakpoint): Use is_watchpoint.
6843
6844 2010-04-16  Mike Frysinger  <vapier@gentoo.org>
6845
6846         * solib-frv.c (enable_break1_done): Delete.
6847         (enable_break2): Do not check enable_break1_done.  Move the
6848         enable_break2_done setting and call to
6849         remove_solib_event_breakpoints() to the end.  Return without
6850         warning when the contents of _dl_debug_addr are 0.
6851         (enable_break): Do not set enable_break1_done.
6852         (frv_clear_solib): Likewise.
6853
6854 2010-04-16  Kevin Buettner  <kevinb@redhat.com>
6855
6856         * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6857         instead of an error if no PLT entry is found.  Return a
6858         potentially useful result.
6859         (m32c_m16c_pointer_to_address): Add code to search for function
6860         address when no .plt entry is found.
6861
6862 2010-04-16  Stan Shebs  <stan@codesourcery.com>
6863
6864         * tracepoint.c (trace_variable_command): Run a cleanup.
6865
6866 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6867
6868         * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6869
6870 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6871
6872         Support for Windows OS Thread Information Block.
6873         * NEWS: Document new feature.
6874         * remote.c (PACKET_qGetTIBAddr): New enum element.
6875         (remote_get_tib_address): New function.
6876         (init_remote_ops): Set to_get_tib_address field
6877         to remote_get_tib_address.
6878         (_initialize_remote): Add add_packet_config_cmd
6879         for PACKET_qGetTIBAddr.
6880         * target.c (update_current_target): Set default value for
6881         new to_get_tib_address field.
6882         * target.h (target_ops): New field to_get_tib_address.
6883         (target_get_tib_address): New macro.
6884         * windows-nat.c (thread_info): Add thread_local_base field.
6885         (windows_add_thread): Add tlb argument of type 'void *'.
6886         (fake_create_process): Adapt windows_add_thread call.
6887         (get_windows_debug_event): Idem.
6888         (windows_get_tib_address): New function.
6889         (init_windows_ops): Set to_get_tib_address field
6890         to remote_get_tib_address.
6891         (_initialize_windows_nat): Replace info_w32_cmdlist
6892         initialization by a call to init_w32_command_list.
6893         (info_w32_command, info_w32_cmdlist): Removed from here...
6894         to windows-tdep.c file.
6895         * windows-tdep.h (info_w32_cmdlist): Declare.
6896         (init_w32_command_list): New external function
6897         declaration.
6898         * windows-tdep.c: Add several headers.
6899         (info_w32_cmdlist): to here, made global.
6900         (thread_information_32): New struct.
6901         (thread_information_64): New struct.
6902         (TIB_NAME): New char array.
6903         (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6904         (maint_display_all_tib): New static variable.
6905         (windows_get_tlb_type): New function.
6906         (tlb_value_read, tlb_value_write): New functions.
6907         (tlb_value_funcs): New static struct.
6908         (tlb_make_value): New function.
6909         (display_one_tib): New function.
6910         (display_tib): New function.
6911         (show_maint_show_all_tib):New function.
6912         (info_w32_command): Moved from windows-nat.c.
6913         (init_w32_command_list): New function.
6914         (_initialize_windows_tdep): New function.
6915         New "maint set/show show-all-tib" command
6916         New "$_tlb" internal variable.
6917
6918 2010-04-16  Joel Brobecker  <brobecker@adacore.com>
6919
6920         * tui/tui-regs.c (tui_display_register): Add comment about
6921         a couple of casts.
6922         * tui/tui-stack.c (tui_show_locator_content): Ditto.
6923
6924 2010-04-15  Stan Shebs  <stan@codesourcery.com>
6925
6926         * frame.c: Include tracepoint.h.
6927         (get_current_frame): Allow a trace frame to be an alternate source
6928         of stack frame data.
6929         * tracepoint.c (tfind_1): Don't try to get current stack frame if
6930         it won't succeed.
6931
6932 2010-04-15  Pedro Alves  <pedro@codesourcery.com>
6933
6934         * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6935         flags.
6936         * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6937
6938 2010-04-15  Doug Evans  <dje@google.com>
6939
6940         * NEWS: Add entry for python program space support.
6941         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6942         (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6943         (py-progspace.o): New rule.
6944         * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6945         function.
6946         (find_pretty_printer_from_progspace): New function.
6947         (find_pretty_printer_from_gdb): New function.
6948         (find_pretty_printer): Rewrite.
6949         * python/py-progspace.c: New file.
6950         * python/python-internal.h (program_space): Add forward decl.
6951         (pspace_to_pspace_object, pspy_get_printers): Declare.
6952         (gdbpy_initialize_pspace): Declare.
6953         * python/python.c: #include "progspace.h".
6954         (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6955         (_initialize_python): Call gdbpy_initialize_pspace.
6956         (GdbMethods): Add current_progspace, progspaces.
6957
6958         Add -s option to source command.
6959         * NEWS: Document new option.
6960         * cli/cli-cmds.c (find_and_open_script): Add function comment.
6961         Delete from_tty and cleanupp args.  Split filep arg into file and
6962         full_pathp.  New arg search_path.
6963         (source_script_from_stream): New function.
6964         (source_script_with_search): New function.
6965         (source_script): Rewrite.
6966         (source_command): Parse "-s" option.
6967         (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6968         * python/python.c (source_python_script): Make file arg a const char *.
6969         Don't call fclose, leave for caller.
6970         * python/python.h (source_python_script): Update.
6971
6972 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
6973             Pedro Alves  <pedro@codesourcery.com>
6974
6975         Avoid rereading shared libraries that haven't changed.
6976
6977         * solib.c (free_so_symbols): New function, from ...
6978         (free_so): ... here.  Call it.
6979         (solib_read_symbols): Don't warn here if symbols have already been
6980         loaded.
6981         (solib_add): Warn here instead, if a pattern was specified.
6982         (reload_shared_libraries_1): New.
6983         (reload_shared_libraries): Rewrite to not fetch the library list.
6984
6985 2010-04-14  Doug Evans  <dje@google.com>
6986
6987         * source.c (openp): Strip DOS drive letter if present before
6988         concatenating string to search path.
6989
6990 2010-04-14  Pedro Alves  <pedro@codesourcery.com>
6991
6992         * objfiles.h (gdb_bfd_close_or_warn): Declare.
6993         * objfiles.c (gdb_bfd_close_or_warn): New.
6994         * corelow.c: Include objfiles.h
6995         (core_close): Use gdb_bfd_close_or_warn.
6996         * elfread.c (build_id_verify): Ditto.
6997         * exec.c (exec_close, exec_close_1): Ditto.
6998
6999 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
7000             Pedro Alves  <pedro@codesourcery.com>
7001
7002         Group errors for many missing shared libraries.
7003
7004         * solist.h (struct so_list): Remove from_tty.
7005         * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7006         (solib_map_sections): Take so_list argument.  Return 0 if we
7007         failed to open a BFD.  Add target sections here.
7008         (symbol_add_stub): Delete.
7009         (solib_read_symbols): Inline symbol_add_stub.  Use current flags,
7010         not from_tty copied from the so_list.  Don't warn a second time
7011         for a missing library.
7012         (update_solib_list): Don't save from_tty.  Use TRY_CATCH.  Do not
7013         add to the section table here.  Print out a single warning for all
7014         missing libraries.
7015         * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7016         flags.
7017
7018 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
7019
7020         * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7021         error/warning messages.  Capitalize and use complete sentences.
7022         (blpy_block_syms_iternext): Likewise.
7023         * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7024         * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7025         (frame_info_to_frame_object, frapy_read_var)
7026         (gdbpy_frame_stop_reason_string): Likewise.
7027         * python/py-lazy-string.c (stpy_convert_to_value)
7028         (gdbpy_create_lazy_string_object): Likewise.
7029         * python/py-objfile.c (objfpy_set_printers): Likewise.
7030         * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7031         * python/python.c (parameter_to_python): Likewise.
7032         * python/py-type.c (typy_range, typy_target): Likewise.
7033         * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7034         (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7035
7036
7037 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
7038
7039         PR python/11381
7040
7041         * python/py-prettyprint.c (pretty_print_one_value): Test for
7042         Py_None.
7043         (print_string_repr): Test for Py_None.  Set flags accordingly.
7044         Return value depending on return type.
7045         (print_children): Take a value indicating whether data was printed
7046         before this function was called.  Alter output accordingly.
7047         (apply_val_pretty_printer): Capture return value from
7048         print_string_repr and pass to print_children.
7049
7050 2010-04-13  Mark Kettenis  <kettenis@gnu.org>
7051
7052         PR corefiles/11481
7053         * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7054         register note sections.
7055         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7056         New variables.
7057         (i386_linux_init_abi): Install list of supported register note
7058         sections that matches the target description.
7059
7060 2010-04-13  Pedro Alves  <pedro@codesourcery.com>
7061
7062         * remote.c (remote_get_noisy_reply): Don't error out on empty
7063         replies.
7064         (remote_start_remote): Update and merge tracepoints and trace
7065         state variables as long as the target supports tracepoints.
7066         (remote_trace_init): Fix prototype.
7067         (remote_download_trace_state_variable): Validate reply.
7068         (remote_trace_set_readonly_regions): Fix prototype.
7069         (remote_trace_start): Fix prototype.  Check for empty reply.
7070         (remote_get_trace_status): Small cleanup.
7071         (remote_trace_stop): Fix prototype.  Check for empty reply.
7072         (remote_trace_find): Check for empty reply.
7073         (remote_save_trace_data): Validate reply.
7074         (remote_set_disconnected_tracing): Check for empty reply, and
7075         validate reply.
7076         (remote_set_circular_trace_buffer): Ditto.
7077
7078 2010-04-13  Pierre Muller  <muller@ics.u-strasbg.fr>
7079
7080         Suppress unused value warning during compilation.
7081         * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7082         calls to void.
7083         * tui/tui-stack.c (tui_show_locator_content): Likewise.
7084
7085 2010-04-12  Stan Shebs  <stan@codesourcery.com>
7086
7087         * tracepoint.c (tfile_xfer_partial): Check read result.
7088
7089 2010-04-12  Mike Frysinger  <vapier@gentoo.org>
7090
7091         * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7092         * remote-sim.c (gdbsim_files_info): Likewise.
7093
7094 2010-04-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
7095
7096         * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7097         * arm-linux-nat.c (arm_linux_vfp_register_count): New
7098         variable.
7099         (fetch_vfp_registers): New function to fetch VFP registers.
7100         (store_vfp_registers): New function to store VFP registers.
7101         (arm_linux_fetch_inferior_registers): Add support for VFP
7102         registers.
7103         (arm_linux_store_inferior_registers): Likewise.
7104         (arm_linux_read_description): Likewise.
7105         (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7106         until we need it.
7107
7108 2010-04-11  H.J. Lu  <hongjiu.lu@intel.com>
7109
7110         * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7111         tdep.
7112         (amd64_collect_xstateregset): Likewise.
7113
7114 2010-04-09  Stan Shebs  <stan@codesourcery.com>
7115
7116         * tracepoint.c (trace_status_mi): Report frames created.
7117
7118         * tracepoint.c (trace_dump_command): Include default-collect
7119         expressions.
7120
7121 2010-04-09  Ulrich Weigand  <uweigand@de.ibm.com>
7122
7123         * symtab.c (find_function_start_sal): Never return SAL pointing
7124         before function start address, even if line info is missing.
7125
7126 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
7127
7128         * NEWS: Mention tracepoints support.
7129
7130 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
7131
7132         * tracepoint.c (trace_status_mi): Report disconnected tracing and
7133         circular trace buffer statuses.
7134
7135 2010-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7136
7137         * config/djgpp/fnchange.lst: Fix typo in translations for
7138         symbol-without-target_section.exp and symbol-without-target_section.c.
7139
7140 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
7141
7142         * breakpoint.c (condition_command): Pass condition expression to
7143         set_breakpoint_condition stripped from breakpoint number.
7144
7145 2010-04-09  Phil Muldoon  <pmuldoon@redhat.com>
7146             Thiago Jung Bauermann  <bauerman@br.ibm.com>
7147             Tom Tromey  <tromey@redhat.com>
7148
7149         * breakpoint.c (condition_command): Simplify.  Move condition
7150         setting code to ...
7151         (set_breakpoint_condition): ... here.  New function.
7152         * breakpoint.h  (set_breakpoint_condition): Declare.
7153         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7154         (SUBDIR_PYTHON_SRCS): Likewise.
7155         (py-breakpoint.o): New rule.
7156         * python/py-breakpoint.c: New file.
7157         * python/python-internal.h (gdbpy_breakpoints)
7158         (gdbpy_initialize_breakpoints): Declare.
7159         (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7160
7161 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
7162
7163         * regformats/regdat.sh: Include server.h.  Don't include
7164         regcache.h.
7165
7166 2010-04-08  Stan Shebs  <stan@codesourcery.com>
7167             Pedro Alves  <pedro@codesourcery.com>
7168
7169         * tracepoint.h (struct trace_status): New fields disconnected_tracing
7170         and circular_buffer.
7171         (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7172         * tracepoint.c (trace_status_command): Display target's status for
7173         disconnected tracing and circular buffer.
7174         (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7175         query for non-disconnected-tracing case, remove the stop_tracing
7176         call.
7177         (tfile_open): Clear disconnected and circular buffer status.
7178         (trace_save): Save disconnected and circular buffer status.
7179         (parse_trace_status): Parse disconnected and circular buffer status,
7180         also recognize disconnected as a stop reason.
7181         * remote.c (remote_set_disconnected_tracing): Only set
7182         QTDisconnected if the remote end supports disconnected tracing.
7183         Warn otherwise, if trying to enable disconnected tracing.
7184         * infcmd.c (detach_command): Update disconnect_tracing call.
7185         * cli/cli-cmds.c (quit_command): Ditto.
7186
7187 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
7188
7189         * i387-tdep.c (i387_collect_xsave): Replace abort with
7190         internal_error.
7191
7192 2010-04-08  Stan Shebs  <stan@codesourcery.com>
7193
7194         * breakpoint.c (default_collect_info): New function.
7195         (breakpoints_info): Call it.
7196         (maintenance_info_breakpoints): Ditto.
7197         (tracepoints_info): Ditto.
7198
7199 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
7200
7201         * i387-tdep.c (i387_collect_xsave): Re-indent.
7202
7203 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
7204
7205         * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7206         if HAVE_PTRACE_GETFPXREGS is defined.
7207         (i386_linux_read_description): Set have_ptrace_getfpxregs and
7208         have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7209
7210         * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7211         (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7212         if .reg-xfp section doesn't exist.
7213         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7214
7215         * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7216
7217         * i386-tdep.c: Include "features/i386/i386-mmx.c".
7218         (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7219         (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional.  Set
7220         xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7221         (i386_gdbarch_init): Update comments.
7222         (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7223
7224         * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7225
7226         * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7227
7228         * features/Makefile (i386/i386-mmx-expedite): New.
7229         (i386/i386-mmx-linux-expedite): Likewise.
7230         ($(outdir)/i386/i386-mmx.dat): Likewise.
7231         ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7232
7233         * features/i386/i386-mmx-linux.c: New.
7234         * features/i386/i386-mmx-linux.xml: Likewise.
7235         * features/i386/i386-mmx.c: Likewise.
7236         * features/i386/i386-mmx.xml: Likewise.
7237         * regformats/i386/i386-mmx-linux.dat: Likewise.
7238         * regformats/i386/i386-mmx.dat: Likewise.
7239
7240         * features/Makefile (WHICH): Add i386/i386-mmx and
7241         i386/i386-mmx-linux.
7242
7243 2010-04-08  Doug Evans  <dje@google.com>
7244
7245         * source.c (openp): Skip $cdir in PATH.
7246
7247 2010-04-08  Phil Muldoon  <pmuldoon@redhat.com>
7248
7249         PR python/11417
7250         * python/py-lazy-string.c (stpy_convert_to_value): Check for
7251         a NULL address.
7252         (gdbpy_create_lazy_string_object): Allow strings with a NULL
7253         address and a zero length.
7254
7255 2010-04-08  Hui Zhu  <teawater@gmail.com>
7256
7257         * i386-tdep.c (i386_process_record): Add support for insn
7258         rdtsc.
7259
7260 2010-04-07  Doug Evans  <dje@google.com>
7261
7262         * python/python.c (source_python_script): Use ensure_python_env
7263         to prepare environment for script.
7264
7265 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7266
7267         * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7268         <sys/uio.h> and "i386-xstate.h".
7269         (PTRACE_GETREGSET): New.
7270         (PTRACE_SETREGSET): Likewise.
7271         (have_ptrace_getregset): Likewise.
7272         (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7273         registers.
7274         (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7275         registers.
7276         (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7277         (amd64_linux_store_inferior_registers): Likewise.
7278         (amd64_linux_read_description): Check and enable AVX target
7279         descriptions.
7280
7281         * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7282         and "features/i386/amd64-avx-linux.c".
7283         (amd64_linux_regset_sections): New.
7284         (amd64_linux_core_read_description): Check and enable AVX
7285         target description.
7286         (amd64_linux_init_abi): Set xsave_xcr0_offset.  Call
7287         set_gdbarch_core_regset_sections.
7288         (_initialize_amd64_linux_tdep): Call
7289         initialize_tdesc_amd64_avx_linux.
7290
7291         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7292         AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7293         (tdesc_amd64_avx_linux): New.
7294         (amd64_linux_update_xstateregset): Likewise.
7295
7296         * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7297         (amd64_ymm_names): New.
7298         (amd64_ymmh_names): Likewise.
7299         (amd64_register_name): Likewise.
7300         (amd64_supply_xstateregset): Likewise.
7301         (amd64_collect_xstateregset): Likewise.
7302         (amd64_supply_xsave): Likewise.
7303         (amd64_collect_xsave): Likewise.
7304         (AMD64_NUM_REGS): Removed.
7305         (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7306         %xmmN if AVX is available.
7307         (amd64_pseudo_register_name): Support pseudo YMM registers.
7308         (amd64_regset_from_core_section): Support .reg-xstate section.
7309         (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7310         and ymm0h_regnum.  Call set_gdbarch_register_name.
7311         (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7312
7313         * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7314         AMD64_YMM15H_REGNUM.
7315         (AMD64_NUM_REGS): New.
7316         (amd64_supply_xsave): Likewise.
7317         (amd64_collect_xsave): Likewise.
7318         (amd64_register_name): Removed.
7319         (amd64_register_type): Likewise.
7320
7321 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7322
7323         * i387-tdep.c: Include "i386-xstate.h".
7324         (XSAVE_XSTATE_BV_ADDR): New.
7325         (xsave_avxh_offset): Likewise.
7326         (XSAVE_AVXH_ADDR): Likewise.
7327         (i387_supply_xsave): Likewise.
7328         (i387_collect_xsave): Likewise.
7329
7330         * i387-tdep.h (I387_NUM_YMM_REGS): New.
7331         (I387_YMM0H_REGNUM): Likewise.
7332         (I387_YMMENDH_REGNUM): Likewise.
7333         (i387_supply_xsave): Likewise.
7334         (i387_collect_xsave): Likewise.
7335
7336 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7337
7338         * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7339         <sys/uio.h> and "i386-xstate.h".
7340         (PTRACE_GETREGSET): New.
7341         (PTRACE_SETREGSET): Likewise.
7342         (fetch_xstateregs): Likewise.
7343         (store_xstateregs): Likewise.
7344         (GETXSTATEREGS_SUPPLIES): Likewise.
7345         (regmap): Include 8 upper YMM registers.
7346         (i386_linux_fetch_inferior_registers): Support XSAVE extended
7347         state.
7348         (i386_linux_store_inferior_registers): Likewise.
7349         (i386_linux_read_description): Check and enable AVX target
7350         descriptions.
7351
7352         * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7353         "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7354         (i386_linux_regset_sections): Add ".reg-xstate".
7355         (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7356         (i386_linux_core_read_xcr0): New.
7357         (i386_linux_core_read_description): Check and enable AVX target
7358         description.
7359         (i386_linux_init_abi): Set xsave_xcr0_offset.
7360         (_initialize_i386_linux_tdep): Call
7361         initialize_tdesc_i386_avx_linux.
7362
7363         * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7364         I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7365         (i386_linux_core_read_xcr0): New.
7366         (tdesc_i386_avx_linux): Likewise.
7367         (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7368
7369         * i386-tdep.c: Include "i386-xstate.h" and
7370         "features/i386/i386-avx.c".
7371         (i386_ymm_names): New.
7372         (i386_ymmh_names): Likewise.
7373         (i386_ymmh_regnum_p): Likewise.
7374         (i386_ymm_regnum_p): Likewise.
7375         (i386_xmm_regnum_p): Likewise.
7376         (i386_register_name): Likewise.
7377         (i386_ymm_type): Likewise.
7378         (i386_supply_xstateregset): Likewise.
7379         (i386_collect_xstateregset): Likewise.
7380         (i386_sse_regnum_p): Removed.
7381         (i386_pseudo_register_name): Support pseudo YMM registers.
7382         (i386_pseudo_register_type): Likewise.
7383         (i386_pseudo_register_read): Likewise.
7384         (i386_pseudo_register_write): Likewise.
7385         (i386_dbx_reg_to_regnum): Return %ymmN register number for
7386         %xmmN if AVX is available.
7387         (i386_regset_from_core_section): Support .reg-xstate section.
7388         (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7389         (i386_process_record): Replace i386_sse_regnum_p with
7390         i386_xmm_regnum_p.
7391         (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7392         Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7393         (i386_gdbarch_init): Set xstateregset.  Set xsave_xcr0_offset.
7394         Call set_gdbarch_register_name.  Replace I386_SSE_NUM_REGS with
7395         I386_AVX_NUM_REGS.  Set ymmh_register_names, ymm0h_regnum and
7396         num_ymm_regs.  Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7397         Set ymm0_regnum.
7398         (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7399
7400         * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7401         xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7402         i386_ymm_type.
7403         (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7404         (I386_AVX_NUM_REGS): New.
7405         (i386_xmm_regnum_p): Likewise.
7406         (i386_ymm_regnum_p): Likewise.
7407         (i386_ymmh_regnum_p): Likewise.
7408
7409         * common/i386-xstate.h: New.
7410
7411 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7412
7413         * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7414
7415         * features/Makefile (WHICH): Add i386/i386-avx,
7416         i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7417         (i386/i386-avx-expedite): New.
7418         (i386/i386-avx-linux-expedite): Likewise.
7419         (i386/x86-64-avx-expedite):Likewise.
7420         (i386/x86-64-avx-linux-expedite): Likewise.
7421         ($(outdir)/i386/i386-avx.dat): New dependency.
7422         ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7423         ($(outdir)/i386/x86-avx-64.dat): Likewise.
7424         ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7425
7426         * features/i386/32bit-avx.xml: New.
7427         * features/i386/64bit-avx.xml: Likewise.
7428         * features/i386/i386-avx-linux.c: Likewise.
7429         * features/i386/i386-avx-linux.xml: Likewise.
7430         * features/i386/i386-avx.c: Likewise.
7431         * features/i386/i386-avx.xml: Likewise.
7432         * features/i386/x86-64-avx-linux.c: Likewise.
7433         * features/i386/x86-64-avx-linux.xml: Likewise.
7434         * features/i386/x86-64-avx.c: Likewise.
7435         * features/i386/x86-64-avx.xml: Likewise.
7436         * regformats/i386/i386-avx-linux.dat: Likewise.
7437         * regformats/i386/i386-avx.dat: Likewise.
7438         * regformats/i386/x86-64-avx-linux.dat: Likewise.
7439         * regformats/i386/x86-64-avx.dat: Likewise.
7440
7441 2010-04-07  Doug Evans  <dje@google.com>
7442
7443         * top.c (source_file_name): Make const char *.
7444         * top.h (source_file_name): Update.
7445         * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7446         const char *.
7447         (script_from_file): Change `file' arg to const char *.
7448         * cli/cli-script.h (script_from_file): Update.
7449
7450 2010-04-06  Doug Evans  <dje@google.com>
7451
7452         * cli/cli-cmds.c (source_command): Run cleanups.
7453
7454 2010-04-06  Stan Shebs  <stan@codesourcery.com>
7455
7456         * defs.h (char_ptr): Move typedef here from...
7457         * ada-lang.c (char_ptr): Remove.
7458         * charset.c (char_ptr): Remove.
7459         * tracepoint.h (struct uploaded_string): Remove.
7460         (struct uploaded_tp): Use vectors for string arrays.
7461         * tracepoint.c (trace_save): Use vectors of actions.
7462         (parse_tracepoint_definition): Ditto.
7463         (get_uploaded_tp): Clear vectors.
7464         * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7465         (next_cmd): Change to an int.
7466         (read_next_cmd): Use vector of command strings.
7467
7468 2010-04-06  Doug Evans  <dje@google.com>
7469
7470         * top.h (source_script, cd_command): Delete.
7471         * main.c: #include "cli/cli-cmds.h"
7472
7473 2010-04-06  Kevin Buettner  <kevinb@redhat.com>
7474
7475         * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7476         type in bytes, not bits.
7477
7478 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
7479
7480         * stabsread.c (define_symbol): Add support for char
7481         and string constants.
7482
7483 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
7484
7485         Remove remaining "%ll" uses.
7486         * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7487         hex_string call.
7488         * rs6000-nat.c (rs6000_ptrace64): Idem.
7489         * solib-pa64.c (pa64_current_sos): Idem.
7490         * solib-spu.c (spu_current_sos): Idem.
7491         * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7492         plongest call.
7493         * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7494         phex (VAR, 8) call.
7495         * sh64-tdep.c (sh64_show_media_regs): Idem.
7496
7497 2010-04-05  Stan Shebs  <stan@codesourcery.com>
7498
7499         * tracepoint.c: Include gdbcore.h.
7500         (tfile_xfer_partial): Return partial results, also try reading
7501         from executable.
7502         (tfile_has_all_memory): New function.
7503         (init_tfile_ops): Use it.
7504
7505 2010-04-05  Sergio Durigan Junior  <sergiodj@redhat.com>
7506
7507         PR gdb/10736:
7508         * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7509         the changes in data-directory.
7510         (init_sysinfo): Reload the syscall XML file if the data-directory
7511         has changed.
7512
7513 2010-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7514
7515         Code cleanup.
7516         * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7517
7518 2010-04-04  Stan Shebs  <stan@codesourcery.com>
7519             Nathan Sidwell  <nathan@codesourcery.com>
7520
7521         * breakpoint.c (breakpoint_1): Add filter argument, return number of
7522         breakpoints printed.
7523         (is_hardware_watchpoint): Make argument const.
7524         (is_watchpoint): Ditto.
7525         (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7526         use it everywhere.
7527         (breakpoints_info): Pass NULL to breakpoint_1.
7528         (maintenance_info_breakpoints): Ditto.
7529         (watchpoints_info): New function.
7530         (tracepoints_info): Use breakpoint_1 filter.
7531         (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7532         (_initialize_breakpoint): Make "info watchpoints" its own command.
7533         * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7534         * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7535
7536 2010-04-04  Stan Shebs  <stan@codesourcery.com>
7537
7538         * tracepoint.c (tfile_fetch_registers): Add fallback case.
7539
7540 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
7541
7542         * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7543         * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7544
7545 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
7546
7547         * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7548         * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7549
7550 2010-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7551
7552         * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7553         code form.
7554
7555 2010-04-02  Hui Zhu  <teawater@gmail.com>
7556
7557         * i386-tdep.c (OT_DQUAD): New enum.
7558         (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7559         SSE3, SSSE3 and SSE4.
7560
7561 2010-04-02  Hui Zhu  <teawater@gmail.com>
7562
7563         * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7564         "*addr = 0".
7565
7566 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
7567
7568         * tracepoint.c (trace_dump_actions): New, factored out from
7569         trace_dump_command, and adjusted to recurse into while-stepping's
7570         action list.
7571         (trace_dump_command): Use it.
7572
7573 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
7574
7575         * breakpoint.h (struct counted_command_line): Moved definition to
7576         breakpoint.c, and forward declare.
7577         (breakpoint_commands): Declare.
7578         * breakpoint.c (struct counted_command_line): Moved here.
7579         (breakpoint_commands): New.
7580         * tracepoint.c (encode_actions): Use breakpoint_commands.
7581         * remote.c (remote_download_tracepoint): Ditto.
7582
7583 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
7584
7585         * remote.c (remote_parse_stop_reply): Use hex_string instead
7586         of phex_nz for error.
7587
7588 2010-04-01  Stan Shebs  <stan@codesourcery.com>
7589             Nathan Sidwell  <nathan@codesourcery.com>
7590
7591         * tracepoint.h (enum actionline_type): Remove.
7592         (validate_actionline): Change return to void.
7593         * tracepoint.c (report_agent_reqs_errors): New function.
7594         (validate_actionline): Call it, change return to void, report errors
7595         more consistently.
7596         (collect_symbol): Call report_agent_reqs_errors.
7597         (encode_actions_1): Ditto.
7598         (encode_actions): Don't expect a result from validate_actionline.
7599
7600 2010-04-01  Stan Shebs  <stan@codesourcery.com>
7601
7602         * tracepoint.c (trace_start_command): Confirm if trace is running.
7603         (trace_stop_command): Error if trace not running.
7604
7605 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
7606
7607         * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7608         (AMD64_NUM_LOWER_BYTE_REGS): New.
7609         (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7610         (amd64_pseudo_register_write): Likewise.
7611         (amd64_init_abi): Set num_byte_regs to 20.
7612
7613 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
7614
7615         * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7616         (prev_breakpoint_count): New.
7617         (set_breakpoint_count): Adjust.
7618         (rbreak_start_breakpoint_count): New.
7619         (start_rbreak_breakpoints): Adjust.
7620         (end_rbreak_breakpoints): Adjust.
7621         (struct commands_info) <arg>: New field.
7622         (do_map_commands_command): Tweak output to include breakpoint spec
7623         range.
7624         (commands_command_1): Adjust.  Avoid setting an xfree cleanup if
7625         ARG was empty on entry.  Set INFO's arg.
7626         (create_breakpoint): Adjust.
7627
7628         * NEWS: Clarify `commands' changes.
7629
7630 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
7631
7632         * tracepoint.c: Include stack.h.
7633         (struct add_local_symbols_data): New.
7634         (do_collect_symbol): New.
7635         (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7636         iterate_over_block_local_vars.
7637         * stack.c (print_block_frame_locals): Rewrite as ...
7638         (iterate_over_block_locals): ... this.  Take a callback function
7639         pointer and generic data pointer, and call that instead of
7640         print_variable_and_value.
7641         (struct print_variable_and_value_data): New.
7642         (do_print_variable_and_value): New.
7643         (iterate_over_block_local_vars): New, abstracted out from
7644         print_frame_local_vars.
7645         (print_frame_local_vars): Rewrite using
7646         iterate_over_block_local_vars.
7647         (iterate_over_block_arg_vars): New, abstracted out from
7648         print_frame_arg_vars.
7649         (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7650         * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7651         (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7652
7653 2010-03-31  Richard Earnshaw  <rearnsha@arm.com>
7654
7655         * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7656         instructions.  Use the PC+4 if the base of the TBB or TBH is the
7657         PC register.
7658
7659 2010-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
7660
7661         Fix crash on reading wrong function declaration DWARF.
7662         * dwarf2read.c (read_subroutine_type): New variable void_type.
7663         Pre-fill all TYPE_FIELD_TYPEs.  Move nparams and iparams initialization
7664         more close to their use.
7665
7666 2010-03-31  Stan Shebs  <stan@codesourcery.com>
7667
7668         * breakpoint.c (tracepoint_save_command): Include variables,
7669         conditionals, tracepoint types, and default-collect.
7670         * tracepoint.c (save_trace_state_variables): New function.
7671         * tracepoint.h (save_trace_state_variables): Declare it.
7672
7673 2010-03-31  Pierre Muller  <muller@ics.u-strasbg.fr>
7674
7675         * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7676
7677 2010-03-30  Keith Seitz  <keiths@redhat.com>
7678
7679         * c-typeprint.c (c_type_print_args): Don't print "void"
7680         for java, regardless of whether it is TYPE_PROTOTYPED.
7681         Use the passed-in language instead of current_language.
7682         (c_type_print_varspec_suffix): Use current_language instead
7683         of assuming language_c.
7684         * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7685         any return type specifier from the physname.
7686
7687 2010-03-30  Pedro Alves  <pedro@codesourcery.com>
7688
7689         * tui/tui-interp.c (tui_is_toplevel): New.
7690         (tui_init): Set it.
7691         (tui_allowed_p): New.
7692         * tui/tui.c (tui_enable): Check if the TUI is allowed before
7693         enabling it.
7694         * tui/tui.h (tui_allowed_p): Declare.
7695
7696 2010-03-30  Ozkan Sezer  <sezeroz@gmail.com>
7697
7698         * serial.h: Include winsock2.h before windows.h.
7699
7700 2010-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7701
7702         * NEWS: Mention xmlRegisters= in qSupported packet.
7703
7704         * i386-tdep.c: Include "remote.h".
7705         (_initialize_i386_tdep): Call register_remote_support_xml.
7706
7707         * remote.c (remote_support_xml): New.
7708         (register_remote_support_xml): Likewise.
7709         (remote_query_supported_append): Likewise.
7710         (remote_query_supported): Support remote_support_xml.
7711
7712         * remote.h (register_remote_support_xml): New.
7713
7714 2010-03-29  Stan Shebs  <stan@codesourcery.com>
7715
7716         * tracepoint.c (trace_find_line_command): Remove dead code.
7717
7718         * tracepoint.h (struct uploaded_string): New struct.
7719         (struct uploaded_tp): New fields for source strings.
7720         * breakpoint.c (this_utp, next_cmd): New globals.
7721         (read_uploaded_action): New function.
7722         (create_tracepoint_from_upload): Fill in more parts
7723         of a tracepoint.
7724         * tracepoint.c (encode_source_string): New function.
7725         (trace_save): Write out source strings, fix error checks.
7726         (parse_tracepoint_definition): Add source string parsing.
7727         * remote.c (PACKET_TracepointSource): New packet type.
7728         (remote_download_command_source): New function.
7729         (remote_download_tracepoint): Download source pieces also.
7730         (_initialize_remote): Add packet config command.
7731
7732         * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7733         expression handler.
7734
7735         * tracepoint.c (start_tracing): Check tracepoints before sending
7736         commands to target, don't start if all tracepoints disabled.
7737
7738 2010-03-28  Pedro Alves  <pedro@codesourcery.com>
7739
7740         * cli/cli-script.c (process_next_line): Handle 'stepping'.
7741
7742 2010-03-26  Stan Shebs  <stan@codesourcery.com>
7743
7744         * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7745
7746 2010-03-26  Tom Tromey  <tromey@redhat.com>
7747
7748         * breakpoint.c (commands_command_1): Duplicate 'arg'.
7749
7750 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7751
7752         * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7753         (skip_prologue_sal): Remove local definition.
7754         (resolve_sal_pc): Remove now unnecessary code.
7755         * linespec.c (minsym_found): Call skip_prologue_sal.
7756         * symtab.c (find_function_start_pc): Remove.
7757         (find_function_start_sal): Extract prologue skipping into ...
7758         (skip_prologue_sal): ... this new function.  Handle code both
7759         with and without debug info.  Respect SAL's explicit_pc and
7760         explicit_line flags.  Inline old find_function_start_pc.
7761         * symtab.h (find_function_start_pc): Remove.
7762         (skip_prologue_sal): Add prototype.
7763
7764 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7765
7766         * dwarf2read.c (read_func_scope): Also scan specification DIEs
7767         for DW_TAG_imported_module children.
7768
7769 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7770
7771         * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7772         ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7773         * completer.c (add_struct_fields): Fix inverted logic.
7774
7775 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7776
7777         * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7778
7779 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
7780
7781         * tracepoint.c (current_trace_status): Don't make sure error_desc
7782         is non-NULL here.
7783         (parse_trace_status): Release a previous error_desc string, and
7784         set it to NULL by default.  If stop reason is tracepoint_error,
7785         make sure error_desc is not left NULL.
7786
7787 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
7788
7789         * tracepoint.c (trace_save): Remove X from tracepoint error
7790         description.
7791
7792 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
7793
7794         * tracepoint.c (parse_trace_status): Don't allow plain strings in
7795         the terror description.  Don't expect an X prefix.
7796
7797 2010-03-25  Stan Shebs  <stan@codesourcery.com>
7798
7799         * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7800         (struct trace_status): New field error_desc.
7801         * tracepoint.c (stop_reason_names): Add terror.
7802         (current_trace_status): Ensure non-NULL error description.
7803         (trace_status_command): Add error report.
7804         (trace_status_mi): Ditto.
7805         (trace_save): Add special case for error description.
7806         (parse_trace_status): Add case for errors.
7807
7808 2010-03-25  Keith Seitz  <keiths@redhat.com>
7809
7810         * dwarf2read.c (read_subroutine_type): If the compilation unit
7811         language is Java, mark any formal parameter named "this" as
7812         artificial (GCC/43521).
7813         (dwarf2_name): Add special handling for Java constructors.
7814
7815 2010-03-25  Tom Tromey  <tromey@redhat.com>
7816
7817         PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7818         * infrun.c (handle_inferior_event): Change initialization of
7819         stop_stack_dummy.
7820         (handle_inferior_event): Change assignment to stop_stack_dummy.
7821         (normal_stop): Update use of stop_stack_dummy.
7822         (struct inferior_status) <stop_stack_dummy>: Change type.
7823         * inferior.h (stop_stack_dummy): Update.
7824         * infcmd.c (stop_stack_dummy): Change type.
7825         * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7826         function.
7827         (call_function_by_hand): Call set_std_terminate_breakpoint.
7828         Rewrite std::terminate handling.
7829         * breakpoint.h (enum bptype) <bp_std_terminate,
7830         bp_std_terminate_master>: New.
7831         (enum stop_stack_kind): New.
7832         (struct bpstat_what) <call_dummy>: Change type.
7833         (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7834         Declare.
7835         * breakpoint.c (create_std_terminate_master_breakpoint): New
7836         function.
7837         (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7838         Call create_std_terminate_master_breakpoint.
7839         (print_it_typical): Handle new breakpoint kinds.
7840         (bpstat_stop_status): Handle bp_std_terminate_master.
7841         (bpstat_what): Correctly set call_dummy field.  Handle
7842         bp_std_terminate_master and bp_std_terminate.
7843         (print_one_breakpoint_location): Update.
7844         (allocate_bp_location): Update.
7845         (set_std_terminate_breakpoint): New function.
7846         (delete_std_terminate_breakpoint): Likewise.
7847         (create_thread_event_breakpoint): Update.
7848         (delete_command): Update.
7849         (breakpoint_re_set_one): Update.
7850         (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7851
7852 2010-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7853
7854         * symfile.c (build_section_addr_info_from_bfd): New.
7855         (build_section_addr_info_from_objfile): Base it on
7856         build_section_addr_info_from_bfd.
7857         (addrs_section_compar, addrs_section_sort): New.
7858         (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7859         addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs.  Build
7860         addrs_to_abfd_addrs.  Use it for recalculating ADDRS.
7861
7862 2010-03-24  Michael Snyder  <msnyder@localhost.localdomain>
7863
7864         * elfread.c (find_separate_debug_file_by_buildid):
7865         Remove unused local variable.
7866
7867 2010-03-24  Tom Tromey  <tromey@redhat.com>
7868
7869         PR breakpoints/9352:
7870         * NEWS: Mention changes to `commands' and `rbreak'.
7871         * symtab.c (do_end_rbreak_breakpoints): New function.
7872         (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7873         end_rbreak_breakpoints.
7874         * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7875         (set_breakpoint_count): Likewise.  Clear last_was_multi.
7876         (multi_start, multi_end, last_was_multi): New globals.
7877         (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7878         functions.
7879         (struct commands_info): New
7880         (do_map_commands_command): New function.
7881         (commands_command_1): New function.
7882         (commands_command): Use it.
7883         (commands_from_control_command): Likewise.
7884         (do_delete_breakpoint): New function.
7885         (delete_command): Use it.
7886         (map_breakpoint_numbers): Add 'data' argument.  Pass to callback.
7887         (do_map_disable_breakpoint): New function.
7888         (disable_command): Use it.
7889         (do_map_enable_breakpoint): New function.
7890         (enable_command): Use it.
7891         (enable_once_breakpoint): Add argument.
7892         (enable_once_command): Update.
7893         (enable_delete_breakpoint): Add argument.
7894         (enable_delete_command): Update.
7895         (break_command_really): Set last_was_multi when needed.
7896         (check_tracepoint_command): Fix formatting.
7897         (validate_commands_for_breakpoint): New function.
7898         (breakpoint_set_commands): Use it.
7899         (tracepoint_save_command): Update.
7900         * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7901         Declare.
7902
7903 2010-03-24  Tom Tromey  <tromey@redhat.com>
7904
7905         * breakpoint.h (struct counted_command_line): New struct.
7906         (struct breakpoint) <commands>: Change type.
7907         (struct bpstats) <commands>: Change type.
7908         <commands_left>: New field.
7909         * breakpoint.c (alloc_counted_command_line): New function.
7910         (incref_counted_command_line): Likewise.
7911         (decref_counted_command_line): Likewise.
7912         (do_cleanup_counted_command_line): Likewise.
7913         (make_cleanup_decref_counted_command_line): Likewise.
7914         (breakpoint_set_commands): Use decref_counted_command_line and
7915         alloc_counted_command_line.
7916         (commands_command): Don't error if breakpoint commands are
7917         executing.
7918         (commands_from_control_command): Likewise.
7919         (bpstat_free): Update.
7920         (bpstat_copy): Likewise.
7921         (bpstat_clear_actions): Likewise.
7922         (bpstat_do_actions_1): Likewise.
7923         (bpstat_stop_status): Likewise.
7924         (print_one_breakpoint_location): Likewise.
7925         (delete_breakpoint): Likewise.
7926         (bpstat_alloc): Initialize new field.
7927         (tracepoint_save_command): Update.
7928         * tracepoint.c (encode_actions): Update.
7929         (trace_dump_command): Update.
7930
7931 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
7932
7933         * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7934         * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7935         (read_structure_type): For RealView, set TYPE_STUB on structures with
7936         no byte size and no children.
7937         (read_subroutine_type): Mark functions as prototyped by default.
7938         * symtab.c (producer_is_realview): New function.
7939         * symtab.h (expand_line_sal): Fix declaration formatting.
7940         (producer_is_realview): Declare.
7941
7942 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
7943
7944         * arm-tdep.c (skip_prologue_function): New function.
7945         (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7946         (thumb_analyze_prologue): Document return value.  Recognize more
7947         Thumb instructions, skippable calls, and some Thumb-2 instructions.
7948         Add debug output.
7949         (arm_skip_prologue): Remove call dummy check.  Check the prologue
7950         for non-GNU compilers.
7951         (arm_instruction_changes_pc): New function.
7952         (arm_analyze_prologue): New function, broken out from
7953         arm_scan_prologue.  Recognize more ARM instructions and skippable
7954         calls.  Update comments.  Handle NULL cache.  Return the address
7955         of the first unrecognized instruction.  Do not skip past other
7956         instructions which change control flow.  Add debug output.
7957         (arm_scan_prologue): Use arm_analyze_prologue.
7958         (ARM_PC_32): Delete.
7959         (shifted_reg_val): Simplify ARM_PC_32 check.
7960
7961 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7962
7963         * tracepoint.c (tvariables_info_1): Actually compute
7964         the number of rows in the result.
7965
7966 2010-03-24  Pedro Alves  <pedro@codesourcery.com>
7967
7968         * remote.c (crc32): Constify `buf' parameter.
7969         (remote_verify_memory): New, abstracted out from...
7970         (compare_sections_command): ... this.  Remove hardcoded target
7971         checks.
7972         (init_remote_ops): Install remote_verify_memory.
7973         * target.c (target_verify_memory): New.
7974         * target.h (struct target_ops) <to_verify_memory>: New field.
7975         (target_verify_memory): Declare.
7976
7977 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7978
7979         Implement -trace-save.
7980
7981         * mi-cmds.h (mi_cmds_trace_save): Declare.
7982         * mi-cmds.c (mi_cmds): Register -trace-save.
7983         * mi/mi-main.c (mi_cmd_trace_save): New.
7984         * remote.c (remote_save_trace_data): Take const parameter.
7985         * target.h (struct target_ops::to_save_trace_data): Take
7986         const parameter.
7987         * target.c (update_current_target): Adjust to the above.
7988         * tracepoint.c (trave_save): New, extracted from
7989         (trace_save_command): ...this.
7990         (tfile_trace_find): Remove message that is unnecessary now
7991         that 'tfind' reports found frame.
7992         * tracepoint.h (trace_save): Declare.
7993
7994 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7995
7996         Implement -trace-find.
7997
7998         * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7999         * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8000         * mi/mi-main.c (mi_cmd_trace_find): New.
8001         * target.h (struct target_ops): Document to_trace_find.
8002         * tracepoint.h (tfind_1): Declare.
8003         * tracepoint.c (finish_tfind_command): Rename to...
8004         (tfind_1): ...this.
8005         * remote.c (remote_trace_find): Return -1 if target say
8006         there's no frame.  Improve error diagnostics.
8007
8008 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8009
8010         -trace-define-variable and -trace-list-variables.
8011
8012         * tracepoint.c (create_trace_state_variable): Make
8013         private copy of name, as opposed to assuming the
8014         pointer lives forever.
8015         (tvariables_info_1): New.
8016         (tvariables_info): Use the above.
8017         * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8018         Declare.
8019         * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8020         and -trace-list-variables.
8021         * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8022         (mi_cmd_trace_list_variables): New.
8023         * mi/mi-main.c (mi_cmd_trace_define_variable)
8024         (mi_cmd_trace_list_variables): New.
8025
8026 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8027
8028         Implement -break-passcount.
8029
8030         * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8031         * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8032         * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8033
8034 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8035
8036         -trace-start/-trace-end/-trace-status.
8037
8038         * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8039         and -trace-stop.
8040         * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8041         (mi_cmd_trace_stop): Declare.
8042         * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8043         (mi_cmd_trace_stop): New.
8044         * tracepoint.c (start_tracing): New, extracted from...
8045         (trace_start_command): ...this.
8046         (trace_status_mi): New.
8047         * tracepoint.h (struct trace_status): Document
8048         stopping_tracepoint.
8049         (start_tracing, stop_tracing, trace_status_mi): Declare.
8050
8051 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8052
8053         Implement creating tracepoints with -break-insert.
8054
8055         * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8056         to mean that tracepoint should be created.
8057
8058 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8059
8060         * breakpoint.c (check_no_tracepoint_commands): Use
8061         current spelling of 'teval'.
8062
8063 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8064
8065         Unify actions and commands
8066
8067         * defs.h (read_command_lines, read_command_lines_1): New
8068         parameters validator and closure.
8069         * tracepoint.h (struct action_line): Remove.
8070         * breakpoint.h (struct breakpoint): Remove the 'actions'
8071         field.
8072         * defs.h (enum command_control_type): New value
8073         while_stepping_control.
8074         (struct command_line): Add comments.
8075         * breakpoint.c (breakoint_is_tracepoint): New.
8076         (breakpoint_set_commands): For tracepoints,
8077         verify the commands are permissible.
8078         (check_tracepoint_commands): New.
8079         (commands_command): Require that each new line is validated using
8080         check_tracepoint_command, if we set commands for a tracepoint.
8081         (create_tracepoint_from_upload): Likewise.
8082         (print_one_breakpoint_location): Remove the code to print
8083         actions specifically.
8084         (tracepoint_save_command): Relay to print_command_lines.
8085         * cli/cli-script.c (process_next_line): New parameters validator
8086         and closure. Handle 'while-stepping'. Call validator if not null.
8087         (read_command_lines, read_command_lines1): Likewise.
8088         (recurse_read_control_structure): New parameters validator and
8089         closure. Handle while_stepping_control.
8090         (print_command_lines): Handle while-stepping.
8091         (get_command_line, define_command, document_command): Adjust.
8092         * remote.c (remote_download_tracepoint): Adjust.
8093         * tracepoint.c (make_cleanup_free_actions, read_actions)
8094         (free_actions, do_free_actions_cleanup): Remove.
8095         (trace_actions_command): Use read_command_lines.
8096         (validate_actionline): Use error in one place.
8097         (encode_actions_1): New, extracted from...
8098         (encode_actions): ...this. Also use cleanups for exception
8099         safety.
8100         (trace_dump_command): Adjust.
8101         * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8102         it's tracepoint.
8103
8104 2010-03-23  Mike Frysinger  <vapier@gentoo.org>
8105
8106         * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8107
8108 2010-03-22  Stan Shebs  <stan@codesourcery.com>
8109
8110         * value.c (value_static_field): Be lazy about the field's value.
8111
8112 2010-03-22  Reid Kleckner  <reid@kleckner.net>
8113
8114         PR gdb/11094
8115         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8116         bp_jit_event.
8117         (disable_breakpoints_in_shlibs): Likewise.
8118
8119 2010-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
8120
8121         * dwarf2read.c (partial_die_parent_scope): Work around buggy
8122         GCC 4.1 debug info generation (GCC PR c++/28460).
8123         (determine_prefix): Likewise.
8124
8125 2010-03-20  Daniel Jacobowitz  <dan@codesourcery.com>
8126
8127         * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8128         get_current_arch.
8129         * tui/tui-layout.c (extract_display_start_addr): Likewise.
8130
8131 2010-03-19  Stan Shebs  <stan@codesourcery.com>
8132
8133         * ax-gdb.c (gen_fetch): Handle bool.
8134         (gen_usual_unary): Ditto.
8135         (gen_cast): Ditto.
8136         (gen_equal): New function.
8137         (gen_less): New function.
8138         (gen_expr_binop_rest): Call them, also return integer type from
8139         logical operations.
8140         (gen_expr): Ditto.
8141
8142 2010-03-19  Tom Tromey  <tromey@redhat.com>
8143
8144         * jv-lang.c (jv_dynamics_objfile_data_key)
8145         (jv_type_objfile_data_key): New globals.
8146         (class_symtab): Move earlier.
8147         (jv_per_objfile_free): New function.
8148         (get_dynamics_objfile): Call set_objfile_data.  Add 'gdbarch'
8149         parameter.
8150         Remove ancient #if 1.
8151         (add_class_symbol): Remove redundant declaration.
8152         (java_lookup_class): Use alloc_type, not alloc_type_arch.
8153         (java_link_class_type): Mark as static.  Update.
8154         (jv_clear_object_type): New function.
8155         (set_java_object_type): Likewise.
8156         (get_java_object_type): Use set_java_object_type.
8157         (is_object_type): Likewise.
8158         (_initialize_java_language): Register new objfile keys.
8159         (get_java_class_symtab): Add 'gdbarch' parameter.
8160         (add_class_symtab_symbol): Update.
8161         (type_from_class): Update.
8162
8163 2010-03-19  Stan Shebs  <stan@codesourcery.com>
8164
8165         * ax-general.c (ax_const_l): Fix a sizing bug.
8166
8167 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
8168
8169         GDB 7.1 released.
8170
8171 2010-03-18  Stan Shebs  <stan@codesourcery.com>
8172             Pedro Alves  <pedro@codesourcery.com>
8173
8174         * target.h (struct target_ops): New method
8175         to_set_circular_trace_buffer.
8176         (target_set_circular_trace_buffer): New macro.
8177         * target.c (update_current_target): Add
8178         to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8179         default behavior.
8180         * remote.c (remote_set_circular_trace_buffer): New function.
8181         (init_remote_ops): Add it to vector.
8182         * tracepoint.h (struct trace_status): New field traceframes_created,
8183         change buffer_size and buffer_free to int.
8184         * tracepoint.c (circular_trace_buffer): New global.
8185         (start_tracing): Send values of disconnected tracing and circular
8186         trace buffer settings.
8187         (set_circular_trace_buffer): New function.
8188         (parse_trace_state): Handle total space and frames created.
8189         (trace_status_command): Display total space and total frames
8190         created.
8191         (trace_save): Write out new status values.
8192         (parse_trace_status): Set traceframe_count, traceframes_created,
8193         buffer_free and buffer_size to -1 by default.
8194         (_initialize_tracepoint): New setshow for circular-trace-buffer.
8195         * NEWS: Mention the circular trace buffer option.
8196
8197 2010-03-18  Tom Tromey  <tromey@redhat.com>
8198
8199         * infcmd.c (finish_command_continuation): Wrap print_return_value
8200         in TRY_CATCH.
8201
8202 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
8203
8204         * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8205         DIE has a name before creating the associated partial symbol.
8206         (read_func_scope): Emit a complaint if the subprogram does not
8207         have a name or when we can't extract the subprogram PC bounds.
8208
8209 2010-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
8210
8211         * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8212         instead of selected frame architecture.
8213
8214 2010-03-18  Pedro Alves  <pedro@codesourcery.com>
8215
8216         * infcmd.c (until_command): Use ERROR_NO_INFERIOR.  Ensure there's
8217         a valid selected thread, and that it is not running.
8218         (advance_command): Ditto.
8219         (finish_command): Ditto.
8220
8221 2010-03-17 Stan Shebs  <stan@codesourcery.com>
8222
8223         * ax-gdb.c (require_rvalue): Disallow non-scalars.
8224
8225         * infcall.c: Include tracepoint.h.
8226         (call_function_by_hand): Disallow calls in tfind mode.
8227         * infcmd.c: Include tracepoint.h.
8228         (ensure_not_tfind_mode): New function.
8229         (continue_1): Call it.
8230         (step_1) Ditto.
8231         (jump_command): Ditto.
8232         (signal_command): Ditto.
8233         (advance_command): Ditto.
8234         (until_command): Ditto.
8235         (finish_command): Ditto.
8236         * tracepoint.h (disconnect_or_stop_tracing): Declare.
8237
8238         * ax-gdb.h (struct axs_value): New field optimized_out.
8239         (gen_trace_for_var): Add gdbarch argument.
8240         * ax-gdb.c (gen_trace_static_fields): New function.
8241         (gen_traced_pop): Call it, add gdbarch argument.
8242         (gen_trace_for_expr): Update call to it.
8243         (gen_trace_for_var): Ditto, and report optimized-out variables.
8244         (gen_struct_ref_recursive): Check for optimized-out value.
8245         (gen_struct_elt_for_reference): Ditto.
8246         (gen_static_field): Pass gdbarch instead of expression, assume
8247         optimization if field not found.
8248         (gen_var_ref): Set the optimized_out flag.
8249         (gen_expr): Error on optimized-out variable.
8250         * tracepoint.c (collect_symbol): Handle struct-valued vars as
8251         expressions, skip optimized-out variables with computed locations.
8252         * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8253         erroring out if location expression missing.
8254         (loclist_tracepoint_var_ref): Don't error out here.
8255
8256 2010-03-17  Tom Tromey  <tromey@redhat.com>
8257
8258         * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8259         DWARF data is available.
8260
8261 2010-03-17  Daniel Jacobowitz  <dan@codesourcery.com>
8262
8263         * symfile.c (generic_load): Reset breakpoints after loading.
8264
8265 2010-03-17  Tom Tromey  <tromey@redhat.com>
8266
8267         * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8268
8269 2010-03-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8270
8271         * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8272         create_breakpoint call, adjust the parameters.
8273
8274 2010-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8275             Chandru <chandru@in.ibm.com>
8276
8277         * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8278         * valarith.c (value_subscripted_rvalue): Suppress error if
8279         TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8280
8281 2010-03-16  Holger Hans Peter Freyther  <zecke@selfish.org>
8282
8283         * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8284
8285 2010-03-16  Joel Brobecker  <brobecker@adacore.com>
8286
8287         * ada-tasks.c (task_command_1): Check that the task ptid is valid
8288         before doing the associated thread switch.
8289
8290 2010-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
8291
8292         * MAINTAINERS: Update my email address.
8293
8294 2010-03-16  Vladimir Prus  <vladimir@codesourcery.com>
8295
8296         Simplify MI breakpoint setting.
8297
8298         * breakpoint.c (break_command_really): Make nonstatic and
8299         rename to...
8300         (create_breakpoint): ...this. Rename prior function by this name
8301         to...
8302         (create_breakpoint_sal): ...this.
8303         (create_breakpoints): Rename to...
8304         (create_breakpoints_sal): ...this.
8305         (set_breakpoint): Remove.
8306         * breakpoint.h: Adjust to above changes.
8307         * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8308
8309 2010-03-15 Stan Shebs  <stan@codesourcery.com>
8310
8311         * ax-gdb.c: Include cp-support.h.
8312         (find_field): Remove.
8313         (gen_primitive_field): New function.
8314         (gen_struct_ref_recursive): New function.
8315         (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8316         of find_field.
8317         (gen_static_field): New function.
8318         (gen_struct_elt_for_reference): New.
8319         (gen_namespace_elt): New.
8320         (gen_maybe_namespace_elt): New.
8321         (gen_aggregate_elt_ref): New.
8322         (gen_expr): Add OP_SCOPE, display opcode name in error message.
8323
8324 2010-03-15  Tom Tromey  <tromey@redhat.com>
8325
8326         * dwarf2read.c (die_needs_namespace): Also return 0 for
8327         DW_TAG_subprogram.
8328
8329 2010-03-15  Sami Wagiaalla  <swagiaal@redhat.com>
8330
8331         PR c++/7936:
8332         * cp-support.h: Added char *declaration element to using_direct
8333         data struct.
8334         (cp_add_using): Added char *declaration argument.
8335         (cp_add_using_directive): Ditto.
8336         (cp_lookup_symbol_imports): made extern.
8337         * cp-namespace.c: Updated with the above changes.
8338         * dwarf2read.c (read_import_statement): Ditto.
8339         (read_namespace): Ditto.
8340         (read_import_statement): Support import declarations.
8341         * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8342         declarations.
8343         Added support for 'declaration_only' search.
8344         (cp_lookup_symbol_namespace): Attempt to search for the name as
8345         is before consideration of imports.
8346         * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8347         search at every block level search.
8348         Now takes language argument.
8349         (lookup_symbol_aux): Updated.
8350
8351 2010-03-15  Tom Tromey  <tromey@redhat.com>
8352
8353         * c-exp.y (name_not_typename): Add 'operator' clause.
8354
8355 2010-03-15  Ralf Corsepius  <ralf.corsepius@rtems.org>  (tiny change)
8356
8357         * configure.ac: Exit if ${gdb_target_obs}" is not set.
8358         * configure: Regenerate.
8359
8360 2010-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
8361
8362         * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8363         and ".sdynbss".  Update the comment.
8364
8365 2010-03-15  Jie Zhang  <jie@codesourcery.com>
8366
8367         * MAINTAINERS: Update my email address.
8368
8369 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
8370
8371         * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8372
8373 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
8374
8375         * charset.c [USE_WIN32API]: Include <windows.h>.
8376          (_initialize_charset): Correct type of w32_host_default_charset.
8377
8378 2010-03-14  Pedro Alves  <pedro@codesourcery.com>
8379
8380         * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8381
8382 2010-03-12  Tom Tromey  <tromey@redhat.com>
8383
8384         PR c++/9708:
8385         * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8386         in a lexical block does not need a namespace.
8387         (new_symbol) <DW_TAG_variable>: Put extern variables on
8388         list_in_scope in all cases.
8389
8390 2010-03-12 Stan Shebs  <stan@codesourcery.com>
8391
8392         * ax-gdb.c (gen_expr): Add shift expressions.
8393         (gen_expr_binop_rest): Ditto.
8394
8395 2010-03-12  Sami Wagiaalla  <swagiaal@redhat.com>
8396
8397         * buildsym.c (finish_block): Reset using_directives pointer
8398         after block initialization.
8399
8400 2010-03-12  H.J. Lu  <hongjiu.lu@intel.com>
8401
8402         * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8403         * i386-tdep.c (i386_word_names): Likewise.
8404
8405 2010-03-12  Pedro Alves  <pedro@codesourcery.com>
8406
8407         * target.c (memory_xfer_partial): Don't use the stack cache if
8408         inspecting trace frames.
8409         * tracepoint.c (finish_tfind_command): Invalidate the target
8410         dcache.
8411
8412 2010-03-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8413
8414         * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8415         for the PIC displacement, print also the displacement value.
8416         (svr4_exec_displacement):  Print DISPLACEMENT if INFO_VERBOSE.
8417
8418 2010-03-10  Kevin Buettner  <kevinb@redhat.com>
8419
8420         * remote-mips.c (close_ports, mips_initialize_cleanups)
8421         (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8422         (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8423         (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8424         (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8425         (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8426         (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8427         comments describing each of these functions.
8428         (mips_enter_debug, mips_exit_debug, common_open)
8429         (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8430         blank line after the comment describing the function.
8431
8432 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8433
8434         * solib-svr4.c (svr4_exec_displacement): Return now success, new
8435         parameter displacementp.  Update comment.
8436         (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8437         element exists.  Return if svr4_exec_displacement was not successful.
8438         Update comment.
8439
8440 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8441             Daniel Jacobowitz  <dan@codesourcery.com>
8442
8443         * solib-svr4.c (read_program_header): Support type == -1 to read
8444         all program headers.
8445         (read_program_headers_from_bfd): New function.
8446         (svr4_static_exec_displacement): Remove and move the comment ...
8447         (svr4_exec_displacement): ... here.  Remove variable found.  New
8448         variable displacement.  Check also DYNAMIC.  Verify DISPLACEMENT
8449         alignment for ELF targets.  Compare target vs. exec_bfd PHDRs for ELF
8450         targets using read_program_headers_from_bfd.  Remove the call of
8451         svr4_static_exec_displacement.
8452
8453 2010-03-10  Tom Tromey  <tromey@redhat.com>
8454
8455         * dwarf2read.c (struct pubnames_header): Remove.
8456         (_PUBNAMES_HEADER): Remove.
8457         (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8458         (struct aranges_header): Remove.
8459         (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8460         (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8461         (PUBNAMES_SECTION): Remove.
8462         (ARANGES_SECTION): Remove.
8463         (dwarf2_locate_sections): Don't handle pubnames or aranges.
8464         (dwarf2_build_psymtabs): Remove dead code.
8465         (dwarf2_build_psymtabs_easy): Remove.
8466
8467 2010-03-10  Tom Tromey  <tromey@redhat.com>
8468
8469         * elfread.c (elf_symfile_read): Don't call
8470         dwarf2_build_frame_info.
8471         * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8472         (struct dwarf2_per_objfile) <objfile>: New field.
8473         (dwarf2_has_info): Now idempotent.  Set objfile field.
8474         (dwarf2_read_section): Check and set readin field.  Call
8475         posix_madvise.
8476         (dwarf2_build_psymtabs): Don't read all sections.
8477         (read_type_comp_unit_head): Read types section.
8478         (create_debug_types_hash_table): Likewise.
8479         (init_cu_die_reader): Add asserts.
8480         (process_type_comp_unit): Add assert.
8481         (dwarf2_build_psymtabs_hard): Read info section.
8482         (load_partial_comp_unit): Add assert.
8483         (create_all_comp_units): Read info section.
8484         (load_full_comp_unit): Likewise.
8485         (dwarf2_ranges_read): Read ranges section.
8486         (dwarf2_record_block_ranges): Add assert.
8487         (dwarf2_read_abbrevs): Read abbrev section.
8488         (read_indirect_string): Read str section.
8489         (dwarf_decode_line_header): Read line section.
8490         (read_signatured_type_at_offset): Read types section.
8491         (dwarf_decode_macros): Read macinfo section.
8492         (dwarf2_symbol_mark_computed): Read loc section.
8493         * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8494         dwarf2_build_frame_info.
8495         (dwarf2_build_frame_info): Unconditionally set
8496         dwarf2_frame_objfile_data on the objfile.
8497         * configure.ac: Check for posix_madvise.
8498         * config.in, configure: Rebuild.
8499
8500 2010-03-10  Tom Tromey  <tromey@redhat.com>
8501
8502         * xcoffread.c (xcoff_start_psymtab): Update.
8503         (xcoff_end_psymtab): Update.
8504         * psymtab.c (allocate_psymtab): Remove dead code.
8505         * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8506         void*.
8507         * mdebugread.c (parse_partial_symbols): Update.
8508         (new_psymtab): Likewise.
8509         * dwarf2read.c (process_psymtab_comp_unit): Update.
8510         (psymtab_to_symtab_1): Update.
8511         * dbxread.c (start_psymtab): Update.
8512         (end_psymtab): Likewise.
8513
8514 2010-03-10  Tom Tromey  <tromey@redhat.com>
8515
8516         * xcoffread.c: Include psymtab.h.
8517         (xcoff_sym_fns): Update.
8518         * symtab.h (struct partial_symbol): Remove.
8519         (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8520         (struct partial_symtab): Remove.
8521         (PSYMTAB_TO_SYMTAB): Remove.
8522         (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8523         (find_pc_sect_psymtab): Remove.
8524         (find_pc_sect_symtab_via_partial): Declare.
8525         (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8526         (find_main_psymtab): Remove.
8527         (find_main_filename): Declare.
8528         (fixup_psymbol_section): Remove.
8529         (fixup_section): Declare.
8530         * symtab.c: Include psymtab.h.
8531         (lookup_symtab): Use lookup_symtab method.
8532         (lookup_partial_symtab): Remove.
8533         (find_pc_sect_psymtab_closer): Remove.
8534         (find_pc_sect_psymtab): Remove.
8535         (find_pc_sect_symtab_via_partial): New function.
8536         (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8537         (fixup_section): No longer static.
8538         (fixup_psymbol_section): Remove.
8539         (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8540         (lookup_global_symbol_from_objfile): Likewise.
8541         (lookup_symbol_aux_psymtabs): Remove.
8542         (lookup_symbol_aux_quick): New function.
8543         (lookup_symbol_global): Use lookup_symbol_aux_quick.
8544         (lookup_partial_symbol): Remove.
8545         (basic_lookup_transparent_type_quick): New function.
8546         (basic_lookup_transparent_type): Use it.
8547         (find_main_psymtab): Remove.
8548         (find_main_filename): New function.
8549         (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8550         (find_line_symtab): Use expand_symtabs_with_filename method.
8551         (output_partial_symbol_filename): New function.
8552         (sources_info): Use map_partial_symbol_filenames.
8553         (struct search_symbols_data): New type.
8554         (search_symbols_file_matches): New function.
8555         (search_symbols_name_matches): Likewise.
8556         (search_symbols): Use expand_symtabs_matching method.
8557         (struct add_name_data): Rename from add_macro_name_data.
8558         (add_macro_name): Update.
8559         (add_partial_symbol_name): New function.
8560         (default_make_symbol_completion_list): Use
8561         map_partial_symbol_names.
8562         (struct add_partial_symbol_name): New type.
8563         (maybe_add_partial_symtab_filename): New function.
8564         (make_source_files_completion_list): Use
8565         map_partial_symbol_filenames.
8566         (expand_line_sal): Use expand_symtabs_with_filename method.
8567         * symmisc.c: Include psymtab.h.
8568         (print_objfile_statistics): Use print_stats method.
8569         (dump_objfile): Use dump method.
8570         (dump_psymtab, maintenance_print_psymbols)
8571         (maintenance_info_psymtabs, maintenance_check_symtabs)
8572         (extend_psymbol_list): Remove.
8573         * symfile.h (struct quick_symbol_functions): New struct.
8574         (struct sym_fns) <qf>: New field.
8575         (sort_pst_symbols): Remove.
8576         (increment_reading_symtab): Declare.
8577         * symfile.c: Include psymtab.h.
8578         (compare_psymbols, sort_pst_symbols): Remove.
8579         (psymtab_to_symtab): Remove.
8580         (increment_reading_symtab): New function.
8581         (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8582         method.
8583         (set_initial_language): Use find_main_filename.
8584         (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8585         (free_named_symtabs): Remove unused code.
8586         (start_psymtab_common, add_psymbol_to_bcache)
8587         (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8588         Remove.
8589         * stack.c: Include psymtab.h, symfile.h.
8590         (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8591         * source.h (psymtab_to_fullname): Don't declare.
8592         * source.c: Include psymtab.h.
8593         (select_source_symtab): Use find_last_source_symtab method.
8594         (forget_cached_source_info): Use forget_cached_source_info
8595         method.
8596         (find_and_open_source): No longer static.
8597         (psymtab_to_fullname): Remove.
8598         * somread.c: Include psymtab.h.
8599         (som_sym_fns): Update.
8600         * psympriv.h: New file.
8601         * psymtab.h: New file.
8602         * psymtab.c: New file.
8603         * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8604         (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8605         * objfiles.c: Include psymtab.h.
8606         (objfile_relocate1): Use relocate method.
8607         (objfile_has_partial_symbols): Use has_symbols method.
8608         * mipsread.c: Include psymtab.h.
8609         (ecoff_sym_fns): Update.
8610         * mi/mi-cmd-file.c: Include psymtab.h.
8611         (print_partial_file_name): New function.
8612         (mi_cmd_file_list_exec_source_files): Use
8613         map_partial_symbol_filenames.
8614         * mdebugread.c: Include psympriv.h.
8615         * machoread.c: Include psympriv.h.
8616         (macho_sym_fns): Update.
8617         * m2-exp.y (yylex): Use lookup_symtab.
8618         * elfread.c: Include psympriv.h.
8619         (elf_sym_fns): Update.
8620         * dwarf2read.c: Include psympriv.h.
8621         * dbxread.c: Include psympriv.h.
8622         (aout_sym_fns): Update.
8623         * cp-support.c: Include psymtab.h.
8624         (read_in_psymtabs): Remove.
8625         (make_symbol_overload_list_qualified): Use
8626         expand_symtabs_for_function method.
8627         * coffread.c: Include psympriv.h.
8628         (coff_sym_fns): Update.
8629         * blockframe.c: Include psymtab.h.
8630         (find_pc_partial_function): Use find_pc_sect_symtab method.
8631         * ada-lang.h (ada_update_initial_language): Update.
8632         * ada-lang.c: Include psymtab.h.
8633         (ada_update_initial_language): Remove 'main_pst' argument.
8634         (ada_lookup_partial_symbol): Remove.
8635         (struct ada_psym_data): New type.
8636         (ada_add_psyms): New function.
8637         (ada_add_non_local_symbols): Use map_ada_symtabs method.
8638         (struct add_partial_datum): New type.
8639         (ada_add_partial_symbol_completions): New function.
8640         (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8641         (ada_exception_support_info_sniffer): Update.
8642         * Makefile.in (SFILES): Add psymtab.c.
8643         (COMMON_OBS): Add psymtab.o.
8644         (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8645
8646 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
8647
8648         * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8649
8650 2010-03-10  Sami Wagiaalla  <swagiaal@redhat.com>
8651
8652         PR C++/11236:
8653         * cp-namespace.c (cp_add_using): Deleted.
8654         (cp_add_using_directive): Use obstack allocations.
8655         Merged the function cp_add_using into this one.
8656         Added 'struct obstack *' argument.
8657         (cp_scan_for_anonymous_namespaces): Updated.
8658         * cp-support.h: Updated.
8659         * dwarf2read.c (read_import_statement): Updated.
8660         (read_namespace): Updated.
8661
8662 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
8663
8664         * windows-nat.c (cygwin_conv_path): Remove old macro.
8665
8666 2010-03-10  Pedro Alves  <pedro@codesourcery.com>
8667
8668         * breakpoint.c (condition_command): Handle watchpoint conditions.
8669         (is_hardware_watchpoint): Add comment.
8670         (is_watchpoint): New.
8671         (update_watchpoint): Don't reparse the watchpoint's condition
8672         unless necessary.
8673         (WP_IGNORE): New.
8674         (watchpoint_check): Use it.
8675         (bpstat_check_watchpoint): Handle it.
8676         (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8677         conditions in a frame where it makes sense.
8678         (watch_command_1): Store the innermost block of the condition
8679         expression.
8680         (delete_breakpoint): Delete the watchpoint condition expression.
8681         * breakpoint.h (struct bp_location) <cond>: Update comment.
8682         (struct breakpoint): New field `cond_exp_valid_block'.
8683
8684 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
8685
8686         Adjust handling of Ada DIEs after dwarf2_physname patch.
8687         * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8688
8689 2010-03-09  Christopher Faylor  <me+cygwin@cgf.cx>
8690             Pierre Muller  <muller@ics.u-strasbg.fr>
8691
8692         * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8693         from/to posix/win32.
8694         (windows_make_so): Use non-Cygwin 1.7 specific function.
8695         (windows_create_inferior): Make sure that cygallargs points to
8696         original args in non Cygwin 1.7. case.
8697
8698 2010-03-09  Michael Snyder  <msnyder@vmware.com>
8699
8700         * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8701         after target_read_memory to get host byte order.
8702         (i386_process_record): Ditto.
8703
8704 2010-03-09  Keith Seitz  <keiths@redhat.com>
8705
8706         Based on work from Daniel Jacobowitz  <dan@codesourcery.com>
8707         * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8708         print out const or volatile qualifiers, too.
8709         (c_type_print_args): Add parameters show_artificial and language.
8710         Skip artificial parameters when requested.
8711         Use the appropriate language printer.
8712         (c_type_print_varspec): Tell c_type_print_args to skip artificial
8713         parameters and pass language_c.
8714         * dwarf2read.c (die_list): New file global.
8715         (struct partial_die_info): Update comments for name field.
8716         (pdi_needs_namespace): Renamed to ...
8717         (die_needs_namespace): ... this. Rewrite.
8718         (dwarf2_linkage_name): Remove.
8719         (add_partial_symbol): Do not predicate the call to
8720         partial_die_full_name based on pdi_needs_namespace.
8721         Remove call to cp_check_possible_namespace_symbols and associated
8722         outdated comments.
8723         (guess_structure_name): Do not inspect child subprogram DIEs.
8724         (dwarf2_fullname): Update comments.
8725         Use die_needs_namespace to assist in computing the name.
8726         (read_func_scope): Use dwarf2_name to get the DIE's name.
8727         Use dwarf2_physname to get the "linkage name" of the DIE.
8728         (dwarf2_add_member_field): Use dwarf2_physname instead of
8729         dwarf2_linkage_name.
8730         (read_structure_type): For structs and classes, set TYPE_NAME, too.
8731         (determine_class): Remove.
8732         (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8733         except Ada.
8734         (new_symbol): Unconditionally call dwarf2_name.
8735         Compute the "linkage name" using dwarf2_physname.
8736         Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8737         When determining to scan for anonymous C++ namespaces, ignore
8738         the linkage name.
8739         (dwarf2_physname): New function.
8740         (dwarf2_full_name): Move content to new function and call
8741         that.
8742         (dwarf2_compute_name): "New" function.
8743         (_initialize_dwarf2_read): Initialize die_list.
8744         * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8745         physname.
8746         (gnu_v3_print_method_ptr): Use the physname for virtual methods
8747         without a demangled name.
8748         Print out type information for non-virtual methods.
8749         * linespec.c (decode_line_1): Force ANY string using "::" (or
8750         "." for java) to use decode_compound, and clean up any stray quoting.
8751         If we found a file symtab, re-evaluate whether the remainder is_quoted.
8752         (decode_compound): Stop consuming at an open parenthesis.
8753         Keep template parameters.
8754         Keep any overload information.
8755         Keep keywords like "const".
8756         Remove paren_pointer.
8757         Move is_quoted check from set_flags to here.
8758         Remove #if 0 code from 2000. Ten years is long enough.
8759         (find_method): Before comparing symbol names, canonicalize the string
8760         from the user.
8761         If a specific overload is requested, find it. Otherwise throw an error.
8762         (find_method_overload_end): New function.
8763         (set_flags): Remove.
8764         (decode_compound): Assume that parentheses are matched.
8765         It's a lot easier.
8766         * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8767         to cplus_demangle.
8768         * linespec.c (decode_line_1): Keep important keywords like
8769         "const" and "volatile".
8770         * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8771         * typeprint.h (c_type_print_args): Add declaration.
8772         * ui-file.c (do_ui_file_obsavestring): New function.
8773         (ui_file_obsavestring): New function.
8774         * ui-file.h (ui_file_obsavestring): Add declaration.
8775         * valops.c (find_overload_match): Resolve the object to
8776         a non-pointer type.
8777         If the object is a data member, search the object for the member
8778         and return with staticp set.
8779         Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8780         Do not attempt to extract a function name from non-function types.
8781         If the extracted function name and the original name are the same,
8782         we don't have a C++ method.
8783
8784         From Jan Kratochvil  <jan.kratochvil@redhat.com>:
8785         * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
8786
8787         * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8788         and arguments from symbol lookups.
8789         * ax-gdb.c (gen_expr): Likewise.
8790         * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8791         cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8792         lookup_possible_namespace_symbol): Likewise.
8793         * cp-support.c (read_in_psymtabs): Likewise.
8794         * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8795         * language.h (la_lookup_symbol_nonlocal): Likewise.
8796         * scm-valprint.c (scm_inferior_print): Likewise.
8797         * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8798         * solib-svr.c (elf_lookup_lib): Likewise.
8799         * solib.c (show_auto_solib_add): Likewise.
8800         * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8801         * symmisc.c (maintenance_check_symtabs): Likewise.
8802         * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8803         lookup_symbol_aux_local, lookup_symbol_aux_block,
8804         lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8805         lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8806         lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8807         basic_lookup_transparent_type, find_main_psymtab,
8808         lookup_block_symbol): Likewise.
8809         * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8810         lookup_symbol_global, lookup_symbol_aux_block,
8811         lookup_symbol_partial_symbol, lookup_block_symbol,
8812         lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8813
8814 2010-03-09  Pierre Muller  <muller@ics.u-strasbg.fr>
8815
8816         * python/python-internal.h: Include symtab.h.
8817
8818 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
8819             Pierre Muller  <muller@ics.u-strasbg.fr>
8820
8821         * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8822         * p-valprint.c (pascal_val_print): Remove undeed block and fix
8823         indentation.
8824
8825 2010-03-08  Tom Tromey  <tromey@redhat.com>
8826
8827         * breakpoint.c (breakpoint_1): Add "QUIT".
8828
8829 2010-03-08  Daniel Jacobowitz  <dan@codesourcery.com>
8830             Pedro Alves  <pedro@codesourcery.com>
8831
8832         * solib.c (solib_find): Replace extension if
8833         solib_symbols_extension is set in the target gdbarch.
8834         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8835         solib_symbols_extension to "sym".
8836         * gdbarch.sh (solib_symbols_extension): New variable.
8837         (pstring): New function.
8838         * gdbarch.h, gdbarch.c: Regenerate.
8839
8840 2010-03-08  Tom Tromey  <tromey@redhat.com>
8841
8842         PR cli/9591:
8843         * NEWS: Update.
8844         * utils.c: Include main.h.
8845         (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8846         (defaulted_query): Use default answer if `batch_flag'.
8847         * main.h (batch_flag): Declare.
8848         * main.c (batch_flag): New global.
8849         (captured_main): Remove 'batch'.  Update.
8850
8851 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
8852
8853         From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8854         and Kevin Buettner:
8855
8856         * remote-mips.c (rockhopper_ops): New target_ops struct.
8857         (MON_ROCKHOPPER): New mips_monitor_type.
8858         (read_hex_value): New function.
8859         (mips_request): Send 8-byte values with a 'T' packet.  Read the
8860         packet argument as a string and use read_hex_value to parse it.
8861         (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8862         (rockhopper_open): New function.
8863         (mips_wait): Read the PC, FP and SP fields as strings.  Use
8864         read_hex_value to parse them and mips_set_register to commit them.
8865         (mips_set_register): New function.
8866         (mips_fetch_registers): Do not cast register value to "unsigned"
8867         when reading a MON_ROCKHOPPER 't' packet.  Use mips_set_register.
8868         (mips_store_registers): Use a 'T' packet to set registers when
8869         using MON_ROCKHOPPER.
8870         (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8871         and expect the total to be printed before the entry address.
8872         (_initialize_remote_mips): Initialize and add rockhopper_ops.
8873
8874 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
8875
8876         * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8877         Change return value to int.  Store value fetched in location
8878         addressed by `val'.  Use function's return value as success
8879         or failure indicator.  Adjust all callers.
8880
8881 2010-03-08  Pierre Muller  <muller@ics.u-strasbg.fr>
8882
8883         * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8884
8885 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8886             Hui Zhu  <teawater@gmail.com>
8887
8888         * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8889         tmp_to_stopped_data_address.
8890         (record_open): Reset tmp_to_stopped_by_watchpoint and
8891         tmp_to_stopped_data_address.
8892         * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8893         to_stopped_data_address.
8894
8895 2010-03-08  Hui Zhu  <teawater@gmail.com>
8896
8897         * i386-tdep.c (i386_process_record): Initialize regnum.
8898
8899 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8900
8901         * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8902         Do not warn on ".gnu.liblist" and ".gnu.conflict".
8903
8904 2010-03-08  Joel Brobecker  <brobecker@adacore.com>
8905
8906         Memory error when reading wrong core file.
8907         * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8908         errors while reading the inferior memory, and return zero if
8909         an exception was raised.
8910
8911 2010-03-07  Michael Snyder  <msnyder@vmware.com>
8912
8913         * record.c (record_restore): Rename tmpu8 to rectype.
8914
8915         * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8916         tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8917
8918         (i386_record_push): Rename local tmpulongest to addr.
8919
8920         (i386_process_record): Rename local tmpulongest to addr.
8921
8922         Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8923         addr64.
8924
8925         Rename local variable tmpu8 to opcode8 and regnum.
8926
8927 2010-03-07  Joel Brobecker  <brobecker@adacore.com>
8928
8929         * remote.c (remote_get_ada_task_ptid): New function.
8930         (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
8931
8932 2010-03-06  Christopher Faylor  <me+cygwin@cgf.cx>
8933
8934         * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8935         block.  Define helper macros to reduce ifdefs in code.
8936         (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8937         size.  Call unadorned GetModuleFileNameEx rather than
8938         GetModuleFileNameEx*.
8939         (windows_make_so): Use __PMAX to denote maximum buffer size and
8940         cygwin_buf_t for buffer type.  Use GetSystemDirectory{W,A} as
8941         appropriate.
8942         (get_image_name): Use __PMAX to denote maximum buffer size.
8943         (handle_load_dll): Likewise.
8944         (windows_pid_to_exec_file): Likewise.
8945         (windows_create_inferior): Add many accommodations for older Cygwin and
8946         non-Cygwin.
8947         (bad_GetModuleFileNameExW): Control inclusion of this function based on
8948         __USEWIDE conditional.
8949         (bad_GetModuleFileNameExA): Likewise.
8950         (_initialize_loadable): Just use real function names without the dyn_
8951         part since they are defined earlier.
8952
8953 2010-03-05  Corinna Vinschen  <vinschen@redhat.com>
8954             Tom Tromey  <tromey@redhat.com>
8955
8956         * utils.c (host_char_to_target): Add 'gdbarch' argument.
8957         (parse_escape): Likewise.
8958         * python/py-utils.c (unicode_to_target_string): Update.
8959         (unicode_to_target_python_string): Update.
8960         (target_string_to_unicode): Update.
8961         * printcmd.c (printf_command): Update.
8962         * p-exp.y (yylex): Update.
8963         * objc-exp.y (yylex): Update.
8964         * mi/mi-parse.c: Include charset.h.
8965         (mi_parse_escape): New function.
8966         (mi_parse_argv): Use it.
8967         * jv-exp.y (yylex): Update.
8968         * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8969         function.
8970         (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8971         * gdbarch.sh (auto_charset, auto_wide_charset): New.
8972         * gdbarch.c: Rebuild.
8973         * gdbarch.h: Rebuild.
8974         * defs.h (parse_escape): Update.
8975         * cli/cli-setshow.c: Include arch-utils.h.
8976         (do_setshow_command): Update.
8977         * cli/cli-cmds.c (echo_command): Update.
8978         * charset.h (target_charset, target_wide_charset): Update.
8979         * charset.c: Include arch-utils.h.
8980         (target_charset_name): Default to "auto".
8981         (target_wide_charset_name): Likewise.
8982         (show_target_charset_name): Handle "auto".
8983         (show_target_wide_charset_name): Likewise.
8984         (be_le_arch): New global.
8985         (set_be_le_names): Add 'gdbarch' argument.
8986         (validate): Likewise.  Don't call set_be_le_names.
8987         (set_charset_sfunc, set_host_charset_sfunc)
8988         (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8989         Update.
8990         (target_charset): Add 'gdbarch' argument.
8991         (target_wide_charset): Likewise.  Remove 'byte_order' argument.
8992         (auto_target_charset_name): New global.
8993         (default_auto_charset, default_auto_wide_charset): New functions.
8994         (_initialize_charset): Set auto_target_charset_name.  Allow "auto"
8995         for target charsets.  Copy result of nl_langinfo.  Use GetACP if
8996         USE_WIN32API.
8997         * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8998         remove 'byte_order' argument.  Update.
8999         (classify_type): Likewise.
9000         (c_emit_char): Update.
9001         (c_printchar): Update.
9002         (c_printstr): Update.
9003         (c_get_string): Update.
9004         (evaluate_subexp_c): Update.
9005         * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9006         Declare.
9007         * python/python.c (gdbpy_target_charset): New function.
9008         (gdbpy_target_wide_charset): Likewise.
9009         (GdbMethods): Update.
9010         * NEWS: Update.
9011
9012 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
9013
9014         * symfile.c (build_section_addr_info_from_objfile): Do not mask
9015         off high address bits.
9016
9017 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
9018
9019         * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9020         address as UnsignedLongLong, not LongLong.
9021
9022 2010-03-05  Kevin Buettner  <kevinb@redhat.com>
9023             Pedro Alves  <pedro@codesourcery.com>
9024
9025         * remote-mips.c (gdbthread.h): Include.
9026         (remote_mips_ptid): Declare.
9027         (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9028         (common_open): Set inferior_ptid, add it as an inferior, and
9029         as a thread too.  Delete FIXME comment regarding start_remote().
9030         (mips_close): Invoke generic_mourn_inferior().
9031         (mips_kill): Make sure that target_mourn_inferior is invoked.
9032         (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9033         it's now invoked from mips_close().
9034         (mips_load): Don't null out inferior_ptid.  Don't call
9035         clear_symtab_users().
9036         (mips_thread_alive, mips_pid_to_str): New functions.
9037         (_initialize_remote_mips): Initialize remote_mips_ptid.  Initialize
9038         to_thread_alive and to_pid_to_str operations.
9039
9040 2010-03-04  Tom Tromey  <tromey@redhat.com>
9041
9042         * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9043         in DWARF 3 and later.
9044         (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9045
9046 2010-03-04  Keith Seitz  <keiths@redhat.com>
9047
9048         * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9049         If the filename portion of the linespec was quoted, recheck the
9050         remainder for additional quoting.
9051         (locate_first_half): Skip over completer chars, too.
9052
9053 2010-03-04  Tom Tromey  <tromey@redhat.com>
9054
9055         * printcmd.c (printf_command): Pass dummy argument to
9056         printf_filtered.
9057
9058 2010-03-04  Doug Evans  <dje@google.com>
9059
9060         * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9061         unwound_fp.
9062
9063         * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9064
9065 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
9066
9067         * breakpoint.c (update_watchpoint): Create a sentinel location if
9068         the software watchpoint isn't watching any memory.
9069         (breakpoint_address_bits): Skip dummy software watchpoint locations.
9070
9071 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
9072
9073         * utils.c (fputs_maybe_filtered): Check if there's already a top
9074         level interpreter before dereferencing it.  If there isn't one,
9075         don't paginate either.
9076
9077 2010-03-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
9078
9079         * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9080         the state right when single stepping.
9081         (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9082         Get the next PC along with the instruction state.
9083         (thumb_get_next_pc): Remove.
9084         (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9085
9086 2010-03-04  Hui Zhu  <teawater@gmail.com>
9087
9088         * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9089
9090 2010-03-03  Pedro Alves  <pedro@codesourcery.com>
9091
9092         * utils.c (fputs_maybe_filtered): Always disable pagination if the
9093         top level interpreter is MI.
9094
9095 2010-03-03 Stan Shebs  <stan@codesourcery.com>
9096
9097         * remote.c (remote_download_tracepoint): Iterate over locations.
9098         * tracepoint.c (validate_actionline): Ditto.
9099         (encode_actions): Add location argument.
9100         (trace_dump_command): Check all locations to see if stepping
9101         frame.
9102
9103 2010-03-03  H.J. Lu  <hongjiu.lu@intel.com>
9104             Eli Zaretskii  <eliz@gnu.org>
9105
9106         * NEWS: Add X86 general purpose registers section.
9107
9108 2010-03-03  Tom Tromey  <tromey@redhat.com>
9109
9110         PR mi/11098:
9111         * varobj.c (install_new_value): Handle case where new print_value
9112         is NULL.
9113
9114 2010-03-03  Dainis Jonitis  <jonitis@gmail.com>
9115
9116         PR gdb/11345:
9117         * printcmd.c (printf_command): Print end of format string using
9118         printf_filtered.
9119
9120 2010-03-02  Tom Tromey  <tromey@redhat.com>
9121
9122         * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9123         * defs.h (read_command_lines_1): Add missing 'void'.
9124         * cli/cli-script.c (recurse_read_control_structure): Add missing
9125         'void'.
9126         (read_next_line): Likewise.
9127         (read_command_lines_1): Likewise.
9128
9129 2010-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
9130
9131         * spu-tdep.c (spu_analyze_prologue): Track instruction to
9132         store backchain as part of prologue.
9133
9134 2010-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
9135
9136         * progspace.c (update_address_spaces): Update inferior address spaces
9137         also.
9138
9139 2010-03-02  Doug Evans  <dje@google.com>
9140
9141         * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9142         lowpc,highpc args to addrmap_set_empty.
9143
9144 2010-03-02  H.J. Lu  <hongjiu.lu@intel.com>
9145
9146         * amd64-tdep.c (amd64_byte_names): New.
9147         (amd64_word_names): Likewise.
9148         (amd64_dword_names): Likewise.
9149         (amd64_pseudo_register_name): Likewise.
9150         (amd64_pseudo_register_read): Likewise.
9151         (amd64_pseudo_register_write): Likewise.
9152         (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9153         and num_mmx_regs.  Call set_gdbarch_pseudo_register_read,
9154         set_gdbarch_pseudo_register_write and
9155         set_tdesc_pseudo_register_name.  Don't call
9156         set_gdbarch_num_pseudo_regs.  Don't set mm0_regnum.
9157
9158         * i386-tdep.c (i386_num_mmx_regs): Removed.
9159         (i386_num_pseudo_regs): Likewise.
9160         (i386_byte_names): New.
9161         (i386_word_names): Likewise.
9162         (i386_byte_regnum_p): Likewise.
9163         (i386_word_regnum_p): Likewise.
9164         (i386_mmx_regnum_p): Updated.
9165         (i386_pseudo_register_name): Make it global.  Handle byte and
9166         word pseudo-registers.
9167         (i386_pseudo_register_read): Likewise.
9168         (i386_pseudo_register_write): Likewise.
9169         (i386_pseudo_register_type): Handle byte, word and dword
9170         pseudo-registers
9171         (i386_register_reggroup_p): Don't include pseudo
9172         registers, except for MXX, in any register groups.  Don't
9173         include pseudo byte, word, dword registers in general_reggroup.
9174         (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9175         num_dword_regs, al_regnum, ax_regnum and eax_regnum.  Put MMX
9176         pseudo-registers after word pseudo-registers.  Call
9177         set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9178
9179         * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9180         al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9181         eax_regnum.
9182         (i386_byte_regnum_p): New.
9183         (i386_word_regnum_p): Likewise.
9184         (i386_dword_regnum_p): Likewise.
9185         (i386_pseudo_register_name): Likewise.
9186         (i386_pseudo_register_read): Likewise.
9187         (i386_pseudo_register_write): Likewise.
9188
9189 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
9190
9191         * target-descriptions.c (tdesc_type): Remove
9192         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9193         (tdesc_predefined_types): Likewise.
9194         (tdesc_gdb_type): Likewise.  Pass NULL to append_flags_type_flag
9195         if flag name is empty.
9196         (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9197
9198         * features/i386/32bit-core.xml: Define i386_eflags.
9199         * features/i386/64bit-core.xml: Likewise.
9200
9201         * features/i386/32bit-sse.xml: Define i386_mxcsr.
9202         * features/i386/64bit-sse.xml: Likewise.
9203
9204         * features/i386/amd64-linux.c: Regenerated.
9205         * features/i386/amd64.c: Likewise.
9206         * features/i386/i386-linux.c: Likewise.
9207         * features/i386/i386.c: Likewise.
9208
9209 2010-03-01  Daniel Jacobowitz  <dan@codesourcery.com>
9210
9211         * gdbtypes.c (append_composite_type_field_raw): New.
9212         (append_composite_type_field_aligned): Use the new function.
9213         * gdbtypes.h (append_composite_type_field_raw): Declare.
9214         * target-descriptions.c (struct tdesc_type_field): Add start and end.
9215         (struct tdesc_type_flag): New type.
9216         (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9217         kind.  Add size to u.u.  Add u.f for flags.
9218         (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9219         (tdesc_free_type): Likewise.
9220         (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9221         (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9222         (tdesc_add_bitfield, tdesc_add_flag): New.
9223         * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9224         (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9225         * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9226         current_type.  Add current_type_size and current_type_is_flags.
9227         (tdesc_start_union): Clear the new fields.
9228         (tdesc_start_struct, tdesc_start_flags): New.
9229         (tdesc_start_field): Handle struct fields, including bitfields.
9230         (field_attributes): Make type optional.  Add start and end.
9231         (union_children): Rename to struct_union_children.
9232         (union_attributes): Rename to struct_union_attributes.  Add optional
9233         size.
9234         (flags_attributes): New.
9235         (feature_children): Add struct and flags.
9236         * features/gdb-target.dtd: Add flags and struct to features.
9237         Make field type optional.  Add field start and end.
9238
9239 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
9240
9241         * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9242         (amd64_linux_read_description): Likewise.
9243         (_initialize_amd64_linux_nat): Set to_read_description to
9244         amd64_linux_read_description.
9245
9246         * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9247         (amd64_linux_register_name): Removed.
9248         (amd64_linux_register_type): Likewise.
9249         (amd64_linux_core_read_description): New.
9250         (amd64_linux_init_abi): Set target description to
9251         tdesc_amd64_linux if needed.  Support orig_rax in target
9252         description.  Don't call set_gdbarch_register_name nor
9253         set_gdbarch_register_type.  Call
9254         set_gdbarch_core_read_description.
9255         (_initialize_amd64_linux_tdep): Call
9256         initialize_tdesc_amd64_linux.
9257
9258         * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9259
9260         * amd64-tdep.c:  Include "features/i386/amd64.c".
9261         (amd64_register_names): Removed.
9262         (amd64_register_name): Likewise.
9263         (amd64_register_type): Likewise.
9264         (amd64_init_abi):  Set num_core_regs and register_names.  Set
9265         target description to tdesc_amd64 if needed.  Don't call
9266         set_gdbarch_register_name nor set_gdbarch_register_type.
9267         (_initialize_amd64_tdep): New.
9268
9269         * i386-linux-nat.c (i386_linux_read_description): New.
9270         (_initialize_i386_linux_nat): Set to_read_description to
9271         i386_linux_read_description.
9272
9273         * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9274         (i386_linux_register_name): Removed.
9275         (i386_linux_core_read_description): New.
9276         (i386_linux_read_description): Likewise.
9277         (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9278         Set target description to tdesc_i386_linux if needed.  Support
9279         orig_eax.  Set register_reggroup_p.  Call
9280         set_gdbarch_core_read_description.
9281         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9282
9283         * i386-linux-tdep.h (tdesc_i386_linux): New.
9284
9285         * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9286         with I387_NUM_REGS.
9287
9288         * i386-tdep.c: Include "features/i386/i386.c".
9289         (i386_register_names): Make it const.
9290         (i386_mmx_names): Likewise.
9291         (i386_num_register_names): Removed.
9292         (i386_register_name): Likewise.
9293         (i386_eflags_type): Likewise.
9294         (i386_mxcsr_type): Likewise.
9295         (i386_sse_type): Likewise.
9296         (i386_register_type): Likewise.
9297         (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9298         (i386_pseudo_register_name): New.
9299         (i386_pseudo_register_type): Likewise.
9300         (i386_mmx_type): Make it static.
9301         (i386_gdbarch_init): Check arch.  Replace I386_NUM_FREGS with
9302         I387_NUM_REGS.  Set num_core_regs and register_names.  Don't
9303         call set_gdbarch_register_name nor set_gdbarch_register_type.
9304         Set register_reggroup_p.  Set target description to tdesc_i386
9305         if needed.  Call set_tdesc_pseudo_register_type,
9306         set_tdesc_pseudo_register_name and tdesc_use_registers.
9307         (_initialize_i386_tdep): Call initialize_tdesc_i386.
9308         initialize_tdesc_x86_64.
9309
9310         * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9311         i386_mxcsr_type and i386_sse_type.  Add num_core_regs,
9312         register_names, tdesc and register_reggroup_p.
9313         (I386_NUM_FREGS): Removed.
9314         (i386_eflags_type): Likewise.
9315         (i386_mxcsr_type): Likewise.
9316         (i386_mmx_type): Likewise.
9317         (i386_sse_type): Likewise.
9318         (i386_register_name): Likewise.
9319         (i386_regnum): Add I386_MXCSR_REGNUM.
9320         (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9321
9322         * i387-tdep.h (I387_NUM_REGS): New.
9323
9324         * regformats/i386/i386-linux.dat: Generated.
9325         * regformats/i386/i386.dat: Likewise.
9326         * regformats/i386/amd64-linux.dat: Likewise.
9327         * regformats/i386/amd64.dat: Likewise.
9328
9329         * regformats/reg-i386-linux.dat: Removed.
9330         * regformats/reg-i386.dat: Likewise.
9331         * regformats/reg-x86-64-linux.dat: Likewise.
9332         * regformats/reg-x86-64.dat: Likewise.
9333
9334 2010-03-01  Corinna Vinschen  <vinschen@redhat.com>
9335
9336         * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9337         cygwin_conv_path API rather than the deprecated
9338         cygwin_conv_to_full_posix_path.
9339         * windows-nat.c:
9340         (GetModuleFileNameExA): Undefine for Cygwin.
9341         (GetModuleFileNameExW): Define for Cygwin.
9342         (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9343         Call GetModuleFileNameExW and convert path to POSIX using
9344         cygwin_conv_path.
9345         (windows_make_so): Always define p.  Drop unused variable m.
9346         Don't use Win32 functions to check file existance, rather use
9347         access on Cygwin.  Fetch system directory using GetSystemDirectoryW.
9348         Use canonicalize_file_name to get full path.
9349         (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9350         to convert Unicode pathname to multibyte on Cygwin.  Otherwise,
9351         use correct target buffer size in call to WideCharToMultiByte.
9352         (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9353         (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9354         (windows_create_inferior): Convert all paths and arguments to wchar_t
9355         and use CreateProcessW on Cygwin.
9356         (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9357         (bad_GetModuleFileNameExA): Undefine for Cygwin.
9358         (bad_GetModuleFileNameExW): Define for Cygwin.
9359         (_initialize_loadable): Load GetModuleFileNameExW into
9360         dyn_GetModuleFileNameExW on Cygwin.  Don't load ANSI function on Cygwin.
9361
9362 2010-02-28  Phil Muldoon  <pmuldoon@redhat.com>
9363
9364         PR python/11036
9365         * python/py-frame.c (frapy_read_var): Add block argument and logic
9366         to cope with user provided blocks.
9367
9368 2010-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9369
9370         * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9371         New comment.
9372
9373 2010-02-28  Corinna Vinschen  <vinschen@redhat.com>
9374
9375         * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9376         (COMMON_OBS): ... to here since it's used unconditionally.
9377         (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9378         (SFILES): To here.
9379
9380 2010-02-26  David Daney  <ddaney@caviumnetworks.com>
9381
9382         * mips-linux-tdep.c: Update struct sigframe comments.
9383         (SIGFRAME_CODE_OFFSET): Delete macro.
9384         (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9385         this_frame's sp.
9386         (mips_linux_n32n64_sigframe_init): Same.
9387
9388 2010-02-26  Kevin Buettner  <kevinb@redhat.com>
9389
9390         * remote-mips.c (mips_load): Don't use pseudo-register when
9391         invalidating regcache.
9392
9393 2010-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
9394
9395         * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9396
9397 2010-02-26  Pedro Alves  <pedro@codesourcery.com>
9398
9399         * NEWS: Add "New targets" section, and mention ARM Symbian
9400         support.
9401
9402 2010-02-26  Ulrich Weigand  <uweigand@de.ibm.com>
9403
9404         * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9405         add ADDR_SIZE member.
9406         (allocate_piece_closure): Update.
9407         (copy_pieced_value_closure): Likewise.
9408         (dwarf2_evaluate_loc_desc): Likewise.
9409         (read_pieced_value): Use DWARF address size instead of
9410         GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9411
9412 2010-02-26  Phil Muldoon  <pmuldoon@redhat.com>
9413             Tom Tromey  <tromey@redhat.com>
9414
9415         * python/py-type.c (typy_lookup_typename): Add in block argument.
9416         If provided restrict lookup to specified blocks.
9417         (gdbpy_lookup_type): Likewise.
9418         (typy_lookup_type): Likewise.
9419
9420 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
9421
9422         Symbian config
9423
9424         gdb/
9425         * arm-symbian-tdep.c: New.
9426         * configure.tgt (arm*-*-symbianelf*): New target.
9427         (*-*-symbianelf*): New OS.
9428         * osabi.c (gdb_osabi_names): Add Symbian.
9429         * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9430         * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9431         (ALLDEPFILES): Add arm-symbian-tdep.c.
9432
9433 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
9434
9435         * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9436
9437 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9438
9439         * mi/mi-main.c (mi_cmd_execute): Fix typo.
9440
9441 2010-02-24  Phil Muldoon  <pmuldoon@redhat.com>
9442             Tom Tromey  <tromey@redhat.com>
9443             Thiago Jung Bauermann  <bauerman@br.ibm.com>
9444
9445         * python/python.c (_initialize_python): Call
9446         gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9447         gdbpy_initialize_blocks.
9448         * python/python-internal.h: Declare struct symbol, block and
9449         symtab_and_line.  Declare block_object_type and
9450         symbol_object_type
9451         (gdbpy_lookup_symbol gdbpy_block_for_pc)
9452         (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9453         (symbol_to_symbol_object,  block_to_block_object)
9454         (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9455         (gdbpy_initialize_blocks ): Declare.
9456         * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9457         (frapy_select): Add methods.
9458         (frapy_read_var): Add symbol branch.
9459         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9460         py-block.
9461         (SUBDIR_PYTHON_SRCS): Likewise.
9462         (py-symbol.o): New rule.
9463         (py-symtab.o): Likewise.
9464         (py-block.o): Likewise.
9465         * python/py-symbol.c: New file.
9466         * python/py-symtab.c: Likewise.
9467         * python/py-block.c: Likewise.
9468
9469 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9470
9471         PR gdb/11321
9472
9473         * inferior.h (prepare_for_detach): Declare.
9474         (struct inferior) <detaching>: New field.
9475         * infrun.c (prepare_for_detach): New.
9476         (handle_inferior_event) <random signal>: Don't stop if detaching.
9477         * target.c (target_detach): Call prepare_for_detach.
9478
9479 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9480
9481         Per-process displaced stepping queue.
9482
9483         * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9484         (displaced_step_gdbarch, displaced_step_closure,
9485         (displaced_step_original, displaced_step_copy): Move globals to
9486         this...
9487         (struct displaced_step_inferior_state): ... new structure.
9488         (displaced_step_inferior_states): New global.
9489         (get_displaced_stepping_state, add_displaced_stepping_state)
9490         (remove_displaced_stepping_state, infrun_inferior_exit): New
9491         functions.
9492         (displaced_step_clear): Add displaced_step_inferior_state
9493         parameter, and adjust to handle it.
9494         (displaced_step_clear_cleanup): Parameter is now a
9495         displaced_step_inferior_state.  Adjust.
9496         (displaced_step_prepare): Adjust.
9497         (displaced_step_fixup, displaced_step_fixup)
9498         (infrun_thread_ptid_changed, resume): Adjust.
9499         (init_wait_for_inferior): Don't call displaced_step_clear.
9500         (infrun_thread_stop_requested): Rewrite.
9501         (_initialize_infrun): Install infrun_inferior_exit as
9502         inferior_exit observer.
9503
9504 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9505
9506         * inferior.h (ptid_match): Declare.
9507         * infrun.c (ptid_match): New.
9508         * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9509         (handle_notification): Add debug output.
9510         * linux-nat.c (ptid_match): Delete.
9511
9512 2010-02-24  David S. Miller  <davem@davemloft.net>
9513
9514         * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9515         * syscalls/sparc-linux.xml: New.
9516         * syscalls/sparc64-linux.xml: New.
9517         * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9518         * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9519         (sparc32_linux_get_syscall_number): New function.
9520         (sparc32_linux_init_abi): Set syscall XML file name and hook up
9521         syscall number fetcher.
9522         * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9523         (sparc64_linux_get_syscall_number): New function.
9524         (sparc64_linux_init_abi): Set syscall XML file name and hook up
9525         syscall number fetcher.
9526
9527 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
9528
9529         Multiexec MI
9530
9531         * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9532         * inferior.c (add_inferior_silent): Notify inferior_added
9533         observer.
9534         (delete_inferior_1): Notify inferior_removed observer.
9535         (exit_inferior_1): Pass inferior, not pid, to observer.
9536         (inferior_appeared): Likewise.
9537         (add_inferior_with_spaces): New.
9538         (add_inferior_command): Use the above.
9539         * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9540         Declare.
9541
9542         * inflow.c (inflow_inferior_exit): Likewise.
9543         * jit.c (jit_inferior_exit_hook): Likewise.
9544
9545         * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9546         remove-inferior.
9547         * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9548         * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9549         (report_initial_inferior): New.
9550         (mi_inferior_removed): Register the above. Make sure
9551         inferior_added observer is called on the first inferior.
9552         (mi_new_thread, mi_thread_exit): Thread group is now identified by
9553         inferior number, not pid.
9554         (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9555         affected.
9556         * mi/mi-main.c (current_context): New.
9557         (proceed_thread_callback): Use typed closure.
9558         Proceed everything if pid is 0. Most implementation split into
9559         (proceed_thread): ... this.
9560         (run_one_inferior): New.
9561         (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9562         Adjust for multiexec behaviour.
9563         (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9564         (mi_cmd_execute): Handle the 'thread-group' option here.
9565         Do some extra checks.
9566         * mi-parse.c (mi_parse): Handle the --all and --thread-group
9567         options.
9568         * mi-parse.h (struct mi_parse): New fields all and thread_group.
9569
9570 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
9571
9572         Make -exec-run a proper MI commands.
9573
9574         * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9575         * mi/mi-cmds.c (mi_cmds): Adjust.
9576         * mi/mi-main.c (mi_cmd_exec_run): New.
9577
9578 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9579             Stan Shebs  <stan@codesourcery.com>
9580
9581         * tracepoint.h (set_traceframe_number)
9582         (cleanup_restore_current_traceframe): Declare.
9583         * tracepoint.c (set_traceframe_number): New.
9584         (struct current_traceframe_cleanup): New.
9585         (do_restore_current_traceframe_cleanup)
9586         (restore_current_traceframe_cleanup_dtor)
9587         (make_cleanup_restore_current_traceframe): New.
9588         * infrun.c: Include tracepoint.h.
9589         (fetch_inferior_event): Switch out and in of tfind mode.
9590
9591 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9592
9593         * breakpoint.c (breakpoint_init_inferior): Also delete
9594         bp_shlib_event breakpoints.
9595         * solib-frv.c (enable_break): Remove call to
9596         remove_solib_event_breakpoints.
9597         * solib-svr4.c (enable_break): Ditto.
9598         * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9599         * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9600         * solib-som.c (som_solib_create_inferior_hook): Ditto.
9601         * solib-spu.c (spu_enable_break): Ditto.
9602
9603 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
9604
9605         * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9606
9607 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
9608
9609         * varobj.c (varobj_update): Avoid non-constants in initializers.
9610
9611 2010-02-23  Tom Tromey  <tromey@redhat.com>
9612
9613         * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9614         handle big-endian values.
9615         (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9616
9617 2010-02-22  Pedro Alves  <pedro@codesourcery.com>
9618
9619         PR9605
9620
9621         gdb/
9622         * breakpoint.c (insert_bp_location): If inserting the read
9623         watchpoint failed, fallback to an access watchpoint.
9624         (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9625         if the value changed, if not watching the same memory for writes.
9626         (watchpoint_locations_match): Add comment.
9627         (update_global_location_list): Copy the location's watchpoint type.
9628         * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9629         handle read watchpoints here.
9630         (i386_insert_watchpoint): Read watchpoints aren't supported.
9631         * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9632         packets.
9633         * target.h (target_insert_watchpoint): Update description.
9634
9635 2010-02-19  Tom Tromey  <tromey@redhat.com>
9636
9637         * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9638         * m2-typeprint.c (m2_print_type): Update.
9639         * gdbtypes.c (recursive_dump_type): Update.
9640         (copy_type_recursive): Update.
9641         * c-typeprint.c (c_type_print_varspec_prefix): Update.
9642         (c_type_print_base): Update.
9643         * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9644         Remove.
9645         (struct cplus_struct_type) <ntemplate_args>: Remove.
9646         <struct template_arg>: Remove.
9647         <is_dynamic>: Move earlier.
9648         (TYPE_TEMPLATE_ARGS): Remove.
9649         (TYPE_NTEMPLATE_ARGS): Remove.
9650         (TYPE_TEMPLATE_ARG): Remove.
9651
9652 2010-02-19  Tom Tromey  <tromey@redhat.com>
9653
9654         PR c++/8693, PR c++/9496:
9655         * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9656         * c-exp.y (lex_one_token): Rename from yylex.  Don't call
9657         write_dollar_variable.  Don't try to classify NAME tokens.
9658         (token_and_value): New type.
9659         (token_fifo, popping, name_obstack): New globals.
9660         (classify_name): New function.
9661         (classify_inner_name): Likewise.
9662         (yylex): Likewise.
9663         (VARIABLE): Now has type sval.
9664         (exp : VARIABLE): Call write_dollar_variable.
9665         (qualified_name): Use TYPENAME, not typebase.  Add production for
9666         multiple "::" instances.
9667         (variable): Use name_not_typename.
9668         (qualified_type): Remove.
9669         (typebase): Update.
9670
9671 2010-02-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9672
9673         * symfile.c (addr_info_make_relative): Extend comment.  Move SECT to
9674         a more inner block.  Initialize ADDR by LOWER_OFFSET only if it was
9675         found by bfd_get_section_by_name.
9676         * symfile.h (struct section_addr_info) <sectindex>: New comment.
9677
9678 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
9679
9680         * NEWS: Add new "[...] since 7.1" section.  Rename the "[...] since
9681         7.0 section" into "Changes in 7.1".
9682
9683 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
9684
9685         GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9686         * version.in: Bump version to 7.1.50.20100219-cvs.
9687
9688 2010-02-18  Harald Koenig  <H.Koenig@science-computing.de>
9689
9690         * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9691         * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9692
9693 2010-02-17  Tom Tromey  <tromey@redhat.com>
9694
9695         * NEWS: Add Python API Improvements section.
9696
9697 2010-02-18  Daniel Jacobowitz  <dan@codesourcery.com>
9698
9699         * NEWS: Correct typo.
9700
9701 2010-02-17  Tom Tromey  <tromey@redhat.com>
9702
9703         * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9704
9705 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9706
9707         * symfile.c (build_section_addr_info_from_objfile): Include sections
9708         only if they are SEC_ALLOC or SEC_LOAD.
9709
9710 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
9711
9712         PR shlibs/11293
9713         * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9714         of ULONGEST for address size.
9715
9716 2010-02-17  Tom Tromey  <tromey@redhat.com>
9717
9718         * NEWS: Add C++ improvements section.
9719
9720 2010-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
9721
9722         * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9723         PyThreadState_Swap): Avoid "statement with no effect" warning.
9724
9725 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9726
9727         * solib-svr4.c (enable_break <target_auxv_search>): New variable
9728         addr_bit.  Adjust LOAD_ADDR sign for cross-arch inferiors.
9729
9730 2010-02-17  Tristan Gingold  <gingold@adacore.com>
9731             Petr Hluzin  <petr.hluzin@gmail.com>
9732
9733         * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9734         gdb_assert.  Fix info->size for SIG prologue.
9735
9736 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9737
9738         * infcmd.c (show_inferior_tty_command): Check for NULL.
9739         Correct output message.
9740
9741 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9742
9743         * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9744         FUNCTION contains parentheses.  Improve removal of a trailing
9745         single quote.
9746
9747 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9748
9749         * gcore.c (do_bfd_delete_cleanup): New function.
9750         (gcore_command): Use it.  Discard the cleanup after success.
9751         (gcore_copy_callback): Delete dead code.
9752
9753 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9754
9755         * symfile.c (addr_info_make_relative): Always use
9756         find_lowest_section.
9757
9758 2010-02-16  Sami Wagiaalla <swagiaal@redhat.com>
9759
9760         * NEWS: Added entry for namespace fixes.
9761
9762 2010-02-15  Tom Tromey  <tromey@redhat.com>
9763
9764         * dwarf2read.c (guess_structure_name): Allocate name on the
9765         objfile obstack.
9766
9767 2010-02-15  Tom Tromey  <tromey@redhat.com>
9768
9769         * c-typeprint.c (c_type_print_base): Reverse order of test.
9770
9771 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9772
9773         * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize.  Optionally
9774         initialize it from ELF BFD.  Extend the prelink condition by it.
9775
9776 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9777
9778         * defs.h (parse_pid_to_attach): New.
9779         * utils.c (parse_pid_to_attach): New.
9780         * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9781         * gnu-nat.c (gnu_attach): Likewise.
9782         * nto-procfs.c (procfs_attach): Likewise.
9783         * procfs.c (procfs_attach): Likewise.
9784         * windows-nat.c (windows_attach): Likewise.
9785         * inf-ptrace.c (inf_ptrace_attach): Likewise.  Remove variable dummy.
9786         * inf-ttrace.c (inf_ttrace_attach): Likewise.
9787         * remote.c (extended_remote_attach_1): Likewise.  New comment on getpid
9788         check.
9789
9790 2010-02-14  Masaki Muranaka  <monaka@monami-software.com>
9791
9792         * MAINTAINERS: Add myself for write after approval privileges.
9793
9794 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9795
9796         * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9797         block.
9798
9799 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9800
9801         * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9802         only if INFO_VERBOSE.
9803
9804 2010-02-12  Tomas Holmberg <th@virtutech.com>
9805
9806         * mi/mi-main.c: Added the --reverse flag to the following MI
9807         commands: exec-continue, exec-finish, exec-next, exec-step,
9808         exec-next-instruction, exec-step-instruction. This is to
9809         support reverse execution over the MI interface to gdb.
9810
9811 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
9812
9813         * tracepoint.c (_initialize_tracepoint): Specify that the address
9814         range of `tfind outsize' is exclusive, and that the address range
9815         of `tfind range' is inclusive, in the commands' help strings.
9816
9817 2010-02-12  Joel Brobecker  <brobecker@adacore.com>
9818
9819         Spurious "dll not found" error messages on x64-windows.
9820         * windows-nat.c: Add include of complaints.h.
9821         (handle_unload_dll): Change dll-not-found error into a complaint.
9822
9823 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
9824
9825         * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9826         bp_tracepoint and bp_fast_tracepoint, not
9827         bp_loc_software_breakpoint.
9828         (update_global_location_list): Tracepoints are never duplicates of
9829         anything.
9830
9831 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
9832
9833         * breakpoint.c (break_command_really): Change return type to int.
9834         Return false if no breakpoint was created, true otherwise.
9835         (trace_command): Don't set the tracepoint count if no tracepoint
9836         was created.
9837         (ftrace_command): Ditto.
9838         (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9839         created in the breakpoints table.
9840
9841 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9842             Ulrich Weigand  <uweigand@de.ibm.com>
9843
9844         * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9845
9846 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9847
9848         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9849         the offset value isn't of integral type.
9850
9851 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9852
9853         * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9854         New.
9855
9856 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9857
9858         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9859         non-subscriptable types.
9860         * valarith.c (binop_types_user_defined_p): New, abstracted out
9861         from ...
9862         (binop_user_defined_p): ... this.
9863         * value.h (binop_types_user_defined_p): Declare.
9864
9865 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9866
9867         * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9868         Merge uploaded TSVs before merging uploaded tracepoints.
9869
9870 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9871
9872         * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9873
9874 2010-02-11  Vladimir Prus  <vladimir@codesourcery.com>
9875
9876         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9877         whitespace character after a dot in comment.
9878         (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9879         Likewise.
9880         (list_args_or_locals): For the 'all' (that is
9881         -stack-list-variables) case, always output list of tuples.
9882         Output 'arg' field if variable is argument.
9883
9884 2010-02-10  Tom Tromey  <tromey@redhat.com>
9885
9886         * parser-defs.h (parser_debug): Declare.
9887         * parse.c (_initialize_parse): Install "debug parser" set/show
9888         command.
9889         (parser_debug): New global.
9890         (show_parserdebug): New function.
9891         * c-exp.y (c_parse): Set yydebug.
9892
9893 2010-02-10  H.J. Lu  <hongjiu.lu@intel.com>
9894
9895         * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9896         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9897         (tdesc_predefined_types): Add i387_ext, i386_eflags and
9898         i386_mxcsr.
9899         (tdesc_find_type): New.
9900         (tdesc_gdb_type): Use tdesc_find_type.  Handle TDESC_TYPE_I387_EXT,
9901         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9902
9903         * target-descriptions.h (tdesc_find_type): New.
9904
9905 2010-02-10  Michael Snyder  <msnyder@vmware.com>
9906
9907         * gdb-gdb.py: Comment fix.
9908
9909 2010-02-09  Tristan Gingold  <gingold@adacore.com>
9910
9911         * machoread.c (macho_symfile_relocate): New function.
9912         (macho_sym_fns): Use macho_symfile_relocate instead of
9913         default_symfile_relocate.
9914         (macho_oso_data): New type.
9915         (current_oso): New variable.
9916         (macho_add_oso_symfile): Do not compute section_addr_info, but
9917         instead set vma of sections.
9918         Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9919         Set and clear current_oso.
9920
9921 2010-02-09  Joel Brobecker  <brobecker@adacore.com>
9922
9923         Wrong type description for tagged type parameter.
9924         * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9925         EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9926         reference to a tagged type.
9927
9928 2010-02-09  Tristan Gingold  <gingold@adacore.com>
9929
9930         * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9931         brothers of the parent.
9932
9933 2010-02-08  Tom Tromey  <tromey@redhat.com>
9934
9935         PR c++/8017:
9936         * value.h: Update.
9937         * valops.c (search_struct_field): Make 'name' const.
9938         (search_struct_method): Likewise.
9939         (find_method_list): Make 'method' const.
9940         (value_struct_elt): Make 'name' and 'err' const.
9941         (value_find_oload_method_list): Make 'method' const.
9942         (find_overload_match): Make 'name' const.
9943         * eval.c (evaluate_subexp_standard): New locals function,
9944         function_name.
9945         <OP_FUNCALL>: Handle OP_SCOPE specially.
9946
9947 2010-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
9948
9949         * infrun.c (handle_inferior_event): Do not look up regcache
9950         for exited processes.
9951
9952 2010-02-08  Chris Moller  <moller@mollerware.com>
9953
9954         PR gdb/10728
9955         * valarith.c (value_ptrdiff): Added a test for a zero type length,
9956         warn if found, and assume length = 1.
9957
9958 2010-02-08  Chris Moller  <cmoller@redhat.com>
9959
9960         PR gdb/9067
9961         * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
9962         (cp_print_static_field)  Fix use of obstacks.
9963
9964 2010-02-08  Pedro Alves  <pedro@codesourcery.com>
9965
9966         * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9967         resumed LWPs as resumed.
9968         (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9969         we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9970         of throwing an internal error.  If an LWP of a process we're not
9971         waiting for reports a signal, don't force collecting a SIGSTOP,
9972         and if it was breakpoint hit in non-stop mode, cancel it.  Don't
9973         go through all LWPs cancelling breakpoints in non-stop mode.
9974         (resume_stopped_resumed_lwps): New.
9975         (linux_nat_wait): Use it.
9976
9977 2010-02-07  H.J. Lu  <hongjiu.lu@intel.com>
9978
9979         * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9980         i386/amd64 and i386/amd64-linux.
9981         (i386/i386-expedite): New.
9982         (i386/i386-linux-expedite): Likewise.
9983         (i386/amd64-expedite):Likewise.
9984         (i386/amd64-linux-expedite): Likewise.
9985         ($(outdir)/i386/i386-linux.dat): Likewise.
9986         ($(outdir)/i386/amd64.dat): Likewise.
9987         ($(outdir)/i386/amd64-linux.dat): Likewise.
9988
9989         * features/i386/32bit-core.xml: New.
9990         * features/i386/32bit-linux.xml: Likewise.
9991         * features/i386/32bit-sse.xml: Likewise.
9992         * features/i386/64bit-core.xml: Likewise.
9993         * features/i386/64bit-linux.xml: Likewise.
9994         * features/i386/64bit-sse.xml: Likewise.
9995         * features/i386/i386-linux.xml: Likewise.
9996         * features/i386/i386.xml: Likewise.
9997         * features/i386/amd64-linux.xml: Likewise.
9998         * features/i386/amd64.xml: Likewise.
9999         * features/i386/i386-linux.c: Likewise.
10000         * features/i386/i386.c: Likewise.
10001         * features/i386/amd64-linux.c: Likewise.
10002         * features/i386/amd64.c: Likewise.
10003
10004 2010-02-05  Sami Wagiaalla  <swagiaal@redhat.com>
10005
10006         PR c++/7935:
10007         * cp-support.h: Added char* alias element to using_direct data
10008         struct.
10009         (cp_add_using): Added char* alias argument.
10010         (cp_add_using_directive): Ditto.
10011         * cp-namespace.c: Updated with the above changes.
10012         (cp_lookup_symbol_imports): Check for aliases.
10013         * dwarf2read.c (read_import_statement): Figure out local alias
10014         for the import and pass it on to cp_add_using.
10015         (read_namespace): Pass alias argument to cp_add_using.
10016
10017 2010-02-05  Hui Zhu  <teawater@gmail.com>
10018
10019         * defs.h (gdb_bfd_errmsg): New extern.
10020         * exec.c (exec_file_attach): Change bfd_errmsg to
10021         gdb_bfd_errmsg.
10022         * utils.c (AMBIGUOUS_MESS1): New macro.
10023         (AMBIGUOUS_MESS2): New macro.
10024         (gdb_bfd_errmsg): New function.
10025
10026 2010-02-04  Doug Evans  <dje@google.com>
10027
10028         * solib-svr4.c (enable_break): Add comment.
10029
10030 2010-02-04  Anthony Green  <green@moxielogic.com>
10031
10032         * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10033         gracefully.
10034
10035 2010-02-04  Tom Tromey  <tromey@redhat.com>
10036
10037         * valops.c (search_struct_field): Account for
10038         value_embedded_offset.  Fix check for virtual base past the end of
10039         the object.  Use value_copy when making a slice of the value.
10040
10041 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
10042
10043         PR tui/9622
10044         * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10045         only if gdb_stdout is a tty.
10046
10047 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
10048
10049         * target-descriptions.c: Include "osabi.h".
10050         (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10051         OSABI.
10052
10053 2010-02-04  Tristan Gingold  <gingold@adacore.com>
10054
10055         * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10056         (macho_symtab_read): Adjust calls to macho_add_oso.
10057         (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10058         (macho_symfile_read): Adjust call to macho_oso_symfile.
10059         (macho_new_init): Move this function after declarations.
10060         (macho_symfile_init): Ditto.
10061         * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10062         * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10063
10064 2010-02-04  Vladimir Prus  <vladimir@codesourcery.com>
10065
10066         Include MI command in remotelog.
10067
10068         * mi/mi-main.c (mi_execute_command): Call target_log_command.
10069
10070 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
10071
10072         * remote.c (remote_state): Remove gdbarch.
10073         (init_remote_state): Don't set gdbarch.
10074         (remote_query_supported): Pass target_gdbarch instead of
10075         rs->gdbarch to gdbarch_qsupported.
10076
10077 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
10078
10079         * gdbarch.sh: Add qsupported.
10080
10081         * gdbarch.c: Regenerated.
10082         * gdbarch.h: Likewise.
10083
10084         * remote.c (remote_state): Add gdbarch.
10085         (init_remote_state): Set gdbarch.
10086         (remote_query_supported): Support gdbarch_qsupported.
10087
10088 2010-02-03  Daniel Jacobowitz  <dan@codesourcery.com>
10089
10090         * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10091         __FreeBSD_kernel_version.
10092
10093 2010-02-03  Tristan Gingold  <gingold@adacore.com>
10094
10095         * symfile.h (struct sym_fns): Add sym_relocate field.
10096         (default_symfile_relocate): New prototype.
10097         (symfile_relocate_debug_section): First argument is now an objfile.
10098         * symfile.c (default_symfile_relocate): Rename from
10099         symfile_relocate_debug_section, first argument is now an objfile.
10100         (symfile_relocate_debug_section): New function.
10101         * coffread.c (coff_sym_fns): Set sym_relocate field.
10102         * somread.c (som_sym_fns): Ditto.
10103         * mipsread.c (ecoff_sym_fns): Ditto.
10104         * machoread.c (macho_sym_fns): Ditto.
10105         * elfread.c (elf_sym_fns): Ditto.
10106         * dwarf2read.c (dwarf2_read_section): Ditto.
10107         * xcoffread.c (xcoff_sym_fns): Ditto.
10108         * dbxread.c (aout_sym_fns): Ditto.
10109         (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10110         (elfstab_build_psymtabs): Ditto.
10111
10112 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
10113
10114         * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10115
10116 2010-02-02  Tom Tromey  <tromey@redhat.com>
10117
10118         * valops.c (value_cast_structs): Try downcasting using the RTTI
10119         type.
10120
10121 2010-02-02  Tom Tromey  <tromey@redhat.com>
10122
10123         * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10124         (gnuv2_baseclass_offset): Now static.
10125         * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10126         * gnu-v2-abi.h: Remove.
10127
10128 2010-02-02  Tom Tromey  <tromey@redhat.com>
10129
10130         * m2-typeprint.c (m2_record_fields): Don't use
10131         TYPE_DECLARED_TYPE.
10132         * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10133         (struct main_type) <flag_declared_class>: New field.
10134         (struct cplus_struct_type) <declared_type>: Remove.
10135         <ntemplate_args>: Move earlier.
10136         (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10137         (DECLARED_TYPE_TEMPLATE): Remove.
10138         (TYPE_DECLARED_TYPE): Remove.
10139         * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10140         * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10141         * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10142         TYPE_DECLARED_TYPE.
10143
10144 2010-02-02  Tom Tromey  <tromey@redhat.com>
10145
10146         PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10147         * valops.c (search_struct_field): Compute nbases after calling
10148         CHECK_TYPEDEF.
10149         (check_field): Call CHECK_TYPEDEF.
10150         * cp-valprint.c (cp_print_value): Pass correct address to
10151         baseclass_offset.  Fix check for virtual base past the end of the
10152         object.  Don't offset address passed to cp_print_value_fields or
10153         apply_val_pretty_printer.
10154         (cp_print_value_fields): Fix call to val_print.
10155         (cp_print_value_fields_rtti): New function.
10156         * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10157         * p-valprint.c (pascal_object_print_value_fields): Fix call to
10158         val_print.
10159         * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10160         offset to address.
10161         * language.h (struct language_defn) <la_val_print>: Document.
10162         * c-lang.h (cp_print_value_fields_rtti): Declare.
10163
10164 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10165
10166         PR libc/11214:
10167         * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10168         (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10169         (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10170
10171 2010-02-01  Michael Matz  <matz@suse.de>
10172             Daniel Jacobowitz  <dan@codesourcery.com>
10173
10174         * i386-tdep.c (i386_frame_cache): Assume valid anonymous
10175         functions use a frame pointer.
10176
10177 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10178
10179         * solib-svr4.c (scan_dyntag): New variable dyn_addr.  Replace gdb_assert
10180         by a conditional setting DYN_ADDR.  Use DYN_ADDR.
10181         * config/djgpp/fnchange.lst: Add translations for
10182         symbol-without-target_section.exp and symbol-without-target_section.c.
10183
10184 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
10185
10186         * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10187         (remote_breakpoint_for_pc): Correct invalid_p check.
10188         * gdbarch.c: Regenerated.
10189
10190 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
10191
10192         * arm-tdep.c (arm_find_mapping_symbol): New function, from
10193         arm_pc_is_thumb.
10194         (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10195         (extend_buffer_earlier): New function.
10196         (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10197         (arm_adjust_breakpoint_address): New function.
10198         (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10199
10200 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
10201
10202         * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10203         (arm_linux_thumb2_le_breakpoint): New constants.
10204         (arm_linux_init_abi): Set thumb2_breakpoint and
10205         thumb2_breakpoint_size.
10206         * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10207         (thumb_get_next_pc): Add a comment.  Rename IT to ITSTATE.
10208         Implement support for single stepping through IT blocks if
10209         a 32-bit Thumb breakpoint instruction is available.
10210         (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10211         is available, use it when needed.
10212         (arm_remote_breakpoint_from_pc): New function.
10213         (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10214         * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10215         comment.  Add thumb2_breakpoint and thumb2_breakpoint_size.
10216
10217 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
10218
10219         * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10220         * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10221         * gdbarch.c, gdbarch.h: Regenerated.
10222         * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10223         * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10224         gdbarch_remote_breakpoint_from_pc.
10225
10226 2010-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
10227
10228         * infrun.c (prepare_to_proceed): Handle other signals which might
10229         match a breakpoint.
10230         (handle_inferior_event): Move the check for unusual breakpoint
10231         signals earlier.
10232
10233 2010-01-29  Paul Hilfinger  <hilfinger@adacore.com>
10234
10235         amd64 - function returning record with field straddling 2 registers.
10236         * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10237         a record of length <= 16 in which a field straddles the two
10238         eightbytes.
10239
10240 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
10241
10242         Implement return values on amd64-windows.
10243         * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10244         (amd64_windows_return_value): New function.
10245         (amd64_windows_init_abi): Call set_gdbarch_return_value with
10246         amd64_windows_return_value.
10247
10248 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
10249
10250         amd64-windows: 32 bytes allocated on stack by caller for integer
10251         parameter registers.
10252         * i386-tdep.h (struct gdbarch_tdep): Add new field
10253         integer_param_regs_saved_in_caller_frame.
10254         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10255         tdep->integer_param_regs_saved_in_caller_frame to 1.
10256         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10257         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10258
10259 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
10260
10261         amd64-windows: memory args passed by pointer during function calls.
10262         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10263         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10264         where tdep->memory_args_by_pointer is non-zero.
10265         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10266         tdep->memory_args_by_pointer to 1.
10267
10268 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
10269
10270         amd64-windows: Integer parameters in function calls.
10271         * i386-tdep.h (enum amd64_reg_class): New, moved here from
10272         amd64-tdep.c.
10273         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10274         call_dummy_integer_regs, and classify.
10275         * amd64-tdep.h (amd64_classify): Add declaration.
10276         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10277         (amd64_reg_class): Delete, moved to i386-tdep.h.
10278         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
10279         Replace call to amd64_classify by call to tdep->classify.
10280         (amd64_push_arguments): Get the list of registers to use for
10281         passing integer parameters from the gdbarch tdep structure,
10282         rather than using a hardcoded one.  Replace calls to amd64_classify
10283         by calls to tdep->classify.
10284         (amd64_push_dummy_call): Get the register number used for
10285         the "hidden" argument from tdep->call_dummy_integer_regs.
10286         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10287         and tdep->call_dummy_integer_regs.  Set tdep->classify.
10288         * amd64-windows-tdep.c: Add include of gdbtypes.h.
10289         (amd64_windows_dummy_call_integer_regs): New static global.
10290         (amd64_windows_classify): New function.
10291         (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10292         tdep->call_dummy_integer_regs and tdep->classify.
10293
10294 2010-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
10295
10296         * regcache.c (regcache_xmalloc): Add aspace argument.  Use it
10297         for the new regcache.  All callers updated.
10298         (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10299         (get_thread_arch_regcache): Do not set aspace here.
10300         * regcache.h (regcache_xmalloc): Update declaration.
10301
10302         * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10303         regcache_xmalloc updated.
10304
10305 2010-01-28  Joel Brobecker  <brobecker@adacore.com>
10306
10307         Another -Wunused-function error in procfs.c (sparc-solaris)
10308         * procfs.c (insert_dbx_link_breakpoint): Delete declaration.  Move up.
10309         Only define if SYS_syssgi is defined.
10310         (remove_dbx_link_breakpoint): Delete declaration.  Move up.
10311         (dbx_link_addr, insert_dbx_link_bpt_in_file)
10312         (insert_dbx_link_bpt_in_region): Move up.  Only define if SYS_syssgi
10313         is itself defined.
10314
10315 2010-01-27  Christopher Faylor  <me+cygwin@cgf.cx>
10316
10317         * windows-nat.c (windows_initialization_done): New variable.
10318         (get_windows_debug_event): Issue error when process dies before
10319         completely initializing.
10320         (do_initial_windows_stuff): Set flag to indicate when we are done with
10321         the initial steps of attaching to the child.
10322
10323 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10324
10325         * symtab.h (struct symbol <symtab>): New comment on NULL values.
10326
10327 2010-01-27  Doug Evans  <dje@google.com>
10328
10329         * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10330
10331         * breakpoint.c (bpstat_stop_status): Delete useless code.
10332
10333 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10334
10335         * printcmd.c (display_uses_solib_p): Remove variable section.  Access
10336         objfile via SYMBOL_SYMTAB.
10337
10338 2010-01-26  Tom Tromey  <tromey@redhat.com>
10339
10340         PR exp/7643:
10341         * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10342         coerce_array on result.
10343
10344 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
10345
10346         * cp-namespace.c (cp_lookup_symbol_namespace): Added
10347         search_parent argument.
10348         (cp_add_using): Initialize 'searched' field.
10349         (reset_directive_searched): New function.
10350         * cp-support.h: Add 'searched' field to using_direct struct.
10351         (cp_lookup_symbol_imports): Ditto.
10352         * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10353         Perform recursive search.
10354         Implement non parent search.
10355         * valops.c (value_maybe_namespace_elt): Updated.
10356
10357 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
10358
10359         PR gdb/10929:
10360         * dwarf2read.c (read_lexical_block_scope): Create blocks for
10361         scopes which contain using directives even if they contain no
10362         declarations.
10363         * symtab.c (lookup_symbol_aux): Pass lowest level block to
10364         la_lookup_symbol_nonlocal.
10365         * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10366         cp_lookup_symbol_namespace.
10367         (cp_lookup_symbol_namespace): Perform an import lookup at every
10368         block level.
10369         (cp_lookup_symbol_imports): New function.
10370         (cp_lookup_symbol_in_namespace): New function.
10371
10372 2010-01-25  Tom Tromey  <tromey@redhat.com>
10373
10374         PR gdb/11049:
10375         * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10376         result.
10377
10378 2010-01-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10379
10380         * configure.ac: Only use host_os part when disabling TUI on osf.
10381         Use test to check variables, prefix strings with x.
10382         * configure: Regenerate.
10383
10384         * solib-osf.c (osf_current_sos): Initialize tail.
10385
10386 2010-01-25  gingold  <gingold@adacore.com>
10387
10388         * windows-nat.c (windows_continue): Use %x to print thread id.
10389         (get_windows_debug_event): Ditto.
10390
10391 2010-01-22  Tom Tromey  <tromey@redhat.com>
10392
10393         PR symtab/11199:
10394         * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10395         type and arguments.  Use smash_to_methodptr_type.
10396         (read_structure_type): Call quirk_gcc_member_function_pointer
10397         later.
10398         * gdbtypes.h (smash_to_methodptr_type): Declare.
10399         * gdbtypes.c (smash_to_methodptr_type): New function.
10400         (lookup_methodptr_type): Use it.
10401
10402 2010-01-21  Tom Tromey  <tromey@redhat.com>
10403
10404         PR symtab/11198:
10405         * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10406         * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10407         * glibc-tdep.c (find_minsym_and_objfile): Remove.
10408         (glibc_skip_solib_resolver): Use
10409         lookup_minimal_symbol_and_objfile.
10410
10411 2010-01-21  Kai Tietz  <kai.tietz@onevision.com>
10412
10413         * inflow.c (check_syscall): Guard by #if clause for GO32 and
10414         WIN32 targets.
10415
10416 2010-01-20  Tom Tromey  <tromey@redhat.com>
10417
10418         PR backtrace/10770:
10419         * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10420         BINOP_GEQ.  Handle BINOP_NOTEQUAL in the signed case.
10421         * dwarf2expr.c (new_dwarf_expr_context): Allocate
10422         dwarf_stack_values, not CORE_ADDRs.
10423         (execute_stack_op): Change DW_OP_div and comparison operators to
10424         use signed operands.
10425
10426 2010-01-20  Vladimir Prus  <vladimir@codesourcery.com>
10427
10428         Per-inferior args and tty and environment.
10429
10430         * infcmd.c (inferior_args): Rename to ...
10431         (inferior_args_scratch): ... this.
10432         (inferior_io_terminal): Rename to ...
10433         (inferior_io_terminal_scratch): ... this.
10434         (inferior_argc, inferior_argv): Remove.
10435         (set_inferior_io_terminal, get_inferior_io_terminal): Store
10436         inside current_inferior().
10437         (set_inferior_tty_command, show_inferior_tty_command): New.
10438         (get_inferior_args, set_inferior_args): Store inside
10439         current_inferior().
10440         (notice_args_set): Likewise and rename to...
10441         (set_args_command): ... this.
10442         (set_inferior_args_vector): Likewise.
10443         (notice_args_read): Rename to...
10444         (show_args_command): ...new.
10445         (tty_command): Remove.
10446         (run_command_1): Don't free old args, as they are freed by
10447         set_inferior_arg now.
10448         (run_no_args_command): Likewise.
10449         (inferior_environ): Remove.
10450         (run_command_1): Use environment of the current inferior.
10451         (environment_info, set_environment_command)
10452         (unset_environment_command, path_info, path_command): Likewise.
10453         (_initialize_infcmd): Adjust for function and variable renames.
10454         Do not init inferior_environ.
10455         * inferior.h (set_inferior_arg): Adjust prototype.
10456         (struct inferior): New fields args, argc, argv, terminal, environment.
10457         (inferior_environ): Remove declaration.
10458         * inferior.c (free_inferior): Free new fields.
10459         (add_inferior_silent): Initialize 'environment' field.
10460         * main.c (captured_main): Set arguments only after the initial
10461         inferior has been created.  Set set_inferior_io_terminal,
10462         not tty_command.
10463         * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10464         inferior.
10465         (_initialize_mi_cmd_env): Adjust for disappearance of global
10466         inferior_environ.
10467         * solib.c (solib_find): Use environment of the current inferior.
10468
10469 2010-01-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10470
10471         * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10472         HAVE_PYTHON.
10473         (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10474
10475 2010-01-20  Joel Brobecker  <brobecker@adacore.com>
10476
10477         Get rid of ada-lang.c:function_name_from_pc.
10478         * ada-lang.c: Add "stack.h" #include.
10479         (function_name_from_pc): Delete.
10480         (is_known_support_routine): Replace call to function_name_from_pc
10481         by call to find_frame_funname.
10482         (ada_unhandled_exception_name_addr_from_raise): Likewise.
10483
10484 2010-01-19  Tom Tromey  <tromey@redhat.com>
10485
10486         PR c++/11026:
10487         * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10488         objfile obstack.
10489
10490 2010-01-19  Tom Tromey  <tromey@redhat.com>
10491
10492         * top.c (stop_sig, float_handler, do_nothing): Remove.
10493
10494 2010-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10495
10496         * breakpoint.c (watchpoint_check): Check the call
10497         gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10498         Extend the comment.
10499         * config/djgpp/fnchange.lst: Add translations for
10500         watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10501         watchpoint-cond-gone-stripped.c.
10502
10503 2010-01-19  Tom Tromey  <tromey@redhat.com>
10504
10505         PR c++/8000:
10506         * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10507         into parent scope, and enumerator into grandparent scope.
10508
10509 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10510
10511         * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10512
10513 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10514
10515         * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10516         i[34567]86-*-solaris2.1[0-9]*.
10517         * configure.tgt: Likewise.
10518
10519 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10520
10521         * NEWS: Document the source command enhancement allowing it
10522         to load Python scripts. Document the "set/show script-extension"
10523         commands.
10524
10525 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10526
10527         Add -Wunused-function to compile flags.
10528         * configure.ac: Add -Wunused-function to build_warnings.
10529         * configure: Regenerate.
10530
10531 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10532
10533         "delete" ada-lex.c:input function, not used.
10534         * ada-lex.l: #define YY_NO_INPUT.
10535
10536 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10537
10538         Delete free_named_symtabs and associated cleanup.
10539         * symfile.h (free_named_symtabs): Delete declaration.
10540         * symfile.c: Remove some commented out code (clear_symtab_users_once).
10541         (cashier_psymtab): Comment function out.
10542         Delete declaration.
10543         (free_named_symtabs): Delete.
10544         * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10545         * dbxread.c (end_psymtab): Likewise.
10546         * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10547         * exec.c (exec_close_1): Ditto.
10548         * xcoffread.c (xcoff_end_psymtab): Likewise.
10549
10550 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10551
10552         * stack.c (print_block_frame_labels): Comment function out.
10553
10554 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10555
10556         Delete unused or undefined functions.
10557         * breakpoint.c (ep_parse_optional_filename): Delete.
10558         * dcache.c (dcache_write_line): Remove declaration.
10559         * infrun.c (build_infrun): Remove declaration.
10560         * tracepoint.c (tracepoint_save_command): Remove declaration.
10561         * linux-nat.c (init_lwp_list): Delete. No longer used.
10562         * event-loop.c (check_async_signal_handlers): Delete declaration.
10563         * infrun.c (init_execution_control_state): Delete.
10564         (proceed): Update comment to avoid mentioning
10565         init_execution_control_state.
10566         * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10567         * ada-lang.c (ada_to_static_fixed_value): Delete.
10568         * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10569         * cp-namespace.c (cp_copy_usings): Delete.
10570         * xml-syscall.c (xml_number_of_syscalls): Delete.
10571         * progspace.c (find_program_space_by_num): Delete.
10572         * inflow.c (handle_sigio): Delete declaration.
10573         * hppa-tdep.c (hppa_alignof): Delete.
10574         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10575         (mipsnbsd_core_osabi_sniffer): Delete.
10576
10577 2010-01-18  Tom Tromey  <tromey@redhat.com>
10578
10579         PR c++/9680:
10580         * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10581         (CONST_CAST): New tokens.
10582         (exp): Add new productions.
10583         (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10584         reinterpret_cast.
10585         (is_cast_operator): New function.
10586         (yylex): Handle cast operators specially.
10587         * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10588         UNOP_REINTERPRET_CAST>: New cases.
10589         * expprint.c (print_subexp_standard): Likewise.
10590         (op_name_standard): Likewise.
10591         (dump_subexp_body_standard): Likewise.
10592         * parse.c (operator_length_standard): Likewise.
10593         * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10594         UNOP_REINTERPRET_CAST.
10595         * gdbtypes.c (class_types_same_p): New function.
10596         (is_ancestor): Use it.
10597         (is_public_ancestor): New function.
10598         (is_unique_ancestor_worker): Likewise.
10599         (is_unique_ancestor): Likewise.
10600         * gdbtypes.h (class_types_same_p, is_public_ancestor)
10601         (is_unique_ancestor): Declare.
10602         * valops.c (value_reinterpret_cast): New function.
10603         (dynamic_cast_check_1): Likewise.
10604         (dynamic_cast_check_2): Likewise.
10605         (value_dynamic_cast): Likewise.
10606         * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10607
10608 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
10609
10610         Fix build failure when building without Python support.
10611         * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10612         is not defined.
10613
10614 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
10615
10616         Use XVS field type instead of doing a parallel lookup.
10617         * ada-lang.c (ada_get_base_type): Follow the XVS field type
10618         if it is a reference type instead of doing a type lookup using
10619         the XVS field name.
10620
10621 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
10622
10623         Trust PAD types instead of using PAD___XVS.
10624         * ada-lang.c (trust_pad_over_xvs): New static variable.
10625         (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10626         parallel XVS type, follow the XVS type instead of the PAD type.
10627         (unwrap_value): Make sure that there is no parallel XVE type
10628         before returning the value as is.
10629         (set_ada_list, show_ada_list): New static variables.
10630         (set_ada_command, show_ada_command): New functions.
10631         (_initialize_ada_language): Add new "set/show ada" prefix commands.
10632         Add new "set/show ada trust-PAD-over-XVS" setting.
10633
10634 2010-01-18  Tom Tromey  <tromey@redhat.com>
10635             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10636
10637         Allow "source" to load python scripts.
10638         * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10639         * python/python.c (source_python_script): New function.
10640         * python/python.h (source_python_script): Add declaration.
10641         * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10642         (script_ext_off, script_ext_soft, script_ext_strict)
10643         (script_ext_enums, script_ext_mode): New static constants.
10644         (show_script_ext_mode, find_and_open_script): New functions.
10645         (source_script): Enhance to handle Python scripts.
10646         (init_cli_cmds): Add set/show script-extension commands.
10647
10648 2010-01-16  Stan Shebs  <stan@codesourcery.com>
10649
10650         * tracepoint.h (struct trace_status): Use unsigned long long
10651         instead of size_t.
10652         * tracepoint.c (trace_status_command): Fix printf directive.
10653         (trace_save_command): Check fwrite returns, fix printf directive.
10654         (trace_filename): New global.
10655         (tfile_open): Set it, check read returns.
10656         (tfile_close): Free trace_filename.
10657         (tfile_get_traceframe_address): Check read returns.
10658         (tfile_trace_find): Ditto.
10659         (tfile_fetch_registers): Ditto.
10660         (tfile_xfer_partial): Ditto.
10661         (tfile_get_trace_state_variable_value): Ditto.
10662
10663 2010-01-15  Stan Shebs  <stan@codesourcery.com>
10664
10665         Add trace file support.
10666         * tracepoint.h (enum trace_stop_reason): New enum.
10667         (struct trace_status): New struct.
10668         (parse_trace_status): Declare.
10669         (struct uploaded_tp): Move here from remote.c,
10670         add fields for actions.
10671         (struct uploaded_tsv): New struct.
10672         * tracepoint.c (tfile_ops): New target vector.
10673         (trace_fd): New global.
10674         (tfile_open): New function.
10675         (tfile_close): New function.
10676         (tfile_files_info): New function.
10677         (tfile_get_trace_status): New function.
10678         (tfile_get_traceframe_address): New function.
10679         (tfile_trace_find): New function.
10680         (tfile_fetch_registers): New function.
10681         (tfile_xfer_partial): New function.
10682         (tfile_get_trace_state_variable_value): New function.
10683         (init_tfile_ops): New function.
10684         (_initialize_tracepoint): Call it, add tfile target.
10685         (trace_status): New global.
10686         (current_trace_status): New function.
10687         (trace_running_p): Remove, change all users to get from
10688         current_trace_status()->running.
10689         (get_trace_status): Remove.
10690         (trace_status_command): Call target_get_trace_status directly,
10691         report more detail including tracing stop reasons.
10692         (trace_find_command): Always allow tfind on a file.
10693         (trace_find_pc_command): Ditto.
10694         (trace_find_tracepoint_command): Ditto.
10695         (trace_find_line_command): Ditto.
10696         (trace_find_range_command): Ditto.
10697         (trace_find_outside_command): Ditto.
10698         (trace_frames_offset, cur_offset): Declare as off_t.
10699         (trace_regblock_size): Rename from reg_size, update users.
10700         (parse_trace_status): New function.
10701         (tfile_interp_line): New function.
10702         (disconnect_or_stop_tracing): Ensure current trace
10703         status before asking what to do.
10704         (stop_reason_names): New global.
10705         (trace_save_command): New command.
10706         (get_uploaded_tp): Move here from remote.c.
10707         (find_matching_tracepoint): Ditto.
10708         (merge_uploaded_tracepoints): New function.
10709         (parse_trace_status): Use stop_reason_names.
10710         (_initialize_tracepoint): Define tsave command.
10711         * target.h (target_ops): New fields to_save_trace_data,
10712         to_upload_tracepoints, to_upload_trace_state_variables,
10713         to_get_raw_trace_data, change to_get_trace_status
10714         to take a pointer to a status struct.
10715         (target_save_trace_data): New macro.
10716         (target_upload_tracepoints): New macro.
10717         (target_upload_trace_state_variables): New macro.
10718         (target_get_raw_trace_data): New macro.
10719         * target.c (update_current_target): Add new methods, change
10720         signature of to_get_trace_status.
10721         * remote.c (hex2bin): Make globally visible.
10722         (bin2hex): Ditto.
10723         (remote_download_trace_state_variable): Download name also.
10724         (remote_get_trace_status): Update parameter, use
10725         parse_trace_status.
10726         (remote_save_trace_data): New function.
10727         (remote_upload_tracepoints): New function.
10728         (remote_upload_trace_state_variables): New function.
10729         (remote_get_raw_trace_data): New function.
10730         (remote_start_remote): Use them.
10731         (_initialize_remote_ops): Add operations.
10732         * ax-gdb.c: Include breakpoint.h.
10733         * breakpoint.c (create_tracepoint_from_upload): Use
10734         break_command_really, return tracepoint, warn about unimplemented
10735         parts.
10736         * NEWS: Mention trace file addition.
10737
10738 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10739
10740         Fix compilation warning on gcc-3.4.
10741         * exec.c (print_section_info): Move the `displacement' variable
10742         initialization to its declaration.
10743
10744 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10745
10746         * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10747         comparison.
10748
10749 2010-01-15  Eric Botcazou  <botcazou@adacore.com>
10750
10751         "info tasks" broken by typedefs in ATCB type definitions.
10752         * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10753         ada_check_typedef before retrieving the length of the type for
10754         regular fields.
10755
10756 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
10757
10758         Do not use name-based lookup for unconstrained packed arrays.
10759         * ada-lang.c (find_parallel_type_by_descriptive_type):
10760         Limit the fallback to name-based lookups to the case where
10761         the type is a constrained packed array.
10762
10763 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
10764
10765         Enhance gdb-gdb.py to handle main_type.type_specific.
10766         * gdb-gdb.py: Print the type-specific part of struct main_type.
10767
10768 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10769
10770         * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10771         * configure: Regenerate.
10772         * config.in: Regenerate.
10773         * utils.c: Include sys/resource.h.
10774         (dump_core, can_dump_core): New.
10775         (internal_vproblem): Update the comment.  Check can_dump_core while
10776         setting dump_core_p.  Replace two abort calls by dump_core calls.
10777
10778 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10779             Eli Zaretskii  <eliz@gnu.org>
10780
10781         * NEWS: Document the PIE support.
10782
10783 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10784
10785         * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10786         (check_is_pie_binary, _initialize_linux_tdep): Remove.
10787
10788 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10789
10790         * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10791         Replace exec_entry_point call by bfd_get_start_address.
10792
10793 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10794
10795         Support Valgrind attachments broken by the PIE support.
10796         * auxv.c: Include gdbcore.h.
10797         (procfs_xfer_auxv): Make static.  Reduce its comment.  Drop its
10798         parameters ops, object and annex.  Remove their assertions.
10799         (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10800         * auxv.h (procfs_xfer_auxv): Remove comment.  Rename to ...
10801         (memory_xfer_auxv): ... here.
10802         * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10803         memory_xfer_auxv.
10804         * procfs.c (procfs_xfer_partial): Likewise.
10805         * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10806         (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10807         (svr4_solib_create_inferior_hook): Conditionalize the
10808         svr4_relocate_main_executable call.
10809
10810 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10811
10812         * solib-svr4.c (scan_dyntag): Remove variable dyn_addr.  New variable
10813         target_section.  Find SECT in current_target_sections, gdb_assert it.
10814         (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10815         New variable abfd.
10816         * symtab.c (lookup_objfile_from_block): Return the binary file instead
10817         of separate debug info file.
10818
10819 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10820
10821         Support PIEs with no symfile_objfile.
10822         * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10823         * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10824
10825 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10826
10827         * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10828         code part to ...
10829         (svr4_static_exec_displacement): ... a new function.
10830         (svr4_exec_displacement): New function.
10831         (svr4_relocate_main_executable): Call svr4_exec_displacement.  Allocate
10832         new_offsets using alloca now.  Remove variable old_chain and changed.
10833         Call objfile_relocate unconditionally now.
10834
10835 2010-01-14  Doug Evans  <dje@google.com>
10836
10837         * gdbtypes.c (arch_flags_type): Fix comment.
10838         * gdbtypes.h (arch_composite_type): Fix comment.
10839
10840 2009-01-14  Tristan Gingold  <gingold@adacore.com>
10841
10842         * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10843         Call xstrdup for abfd->filename.  Pass symfile_flags and objfile flags
10844         to symbol_file_add_from_bfd.  Add OSO as separate objfile.
10845         (macho_oso_symfile): Add symfile_flags parameter.  Pass it to
10846         macho_add_oso_symfile.
10847         (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10848
10849 2010-01-14  Joel Brobecker  <brobecker@adacore.com>
10850
10851         Tru64: Dead threads are never deleted.
10852         * dec-thread.c (dec_thread_ptid_is_alive): New function.
10853         (dec_thread_count_gdb_threads): Fix counter increment.
10854         (dec_thread_add_gdb_thread): Fix *listp increment.
10855         (resync_thread_list): Fix bug in deletion of dead threads that
10856         caused all threads to be deleted, instead of just the dead ones.
10857
10858 2010-01-13  Phil Muldoon  <pmuldoon@redhat.com>
10859
10860         PR python/10705
10861
10862         * python/python-internal.h: Add lazy_string_object_type
10863         definition.
10864         (create_lazy_string_object, gdbpy_initialize_lazy_string)
10865         (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10866         * python/py-value.c (valpy_lazy_string): New function.
10867         (convert_value_from_python): Add lazy string conversion.
10868         * python/py-prettyprint.c (pretty_print_one_value): Check if
10869         return is also a lazy string.
10870         (print_string_repr): Add lazy string printing branch.
10871         (print_children): Likewise.
10872         * python/py-lazy-string.c: New file. Implement lazy strings.
10873         * python/python.c (_initialize_python): Call
10874         gdbpy_initialize_lazy_string.
10875         * varobj.c (value_get_print_value): Add lazy string printing
10876         branch.  Account for encoding.
10877         * c-lang.c (c_printstr): Account for new encoding argument.  If
10878         encoding is NULL, find encoding suited for type, otherwise use
10879         user encoding.
10880         * language.h (language_defn): Add encoding argument.
10881         (LA_PRINT_STRING): Likewise.
10882         * language.c (unk_lang_printstr): Update to reflect new encoding
10883         argument to language_defn.
10884         * ada-lang.h (ada_printstr): Likewise.
10885         * c-lang.h (c_printstr): Likewise.
10886         * p-lang.h (pascal_printstr);
10887         * f-lang.c (f_printstr): Likewise.
10888         * m2-lang.c (m2_printstr): Likewise.
10889         * objc-lang.c (objc_printstr): Likewise.
10890         * p-lang.c (pascal_printstr): Likewise.
10891         * scm-lang.c (scm_printstr): Likewise.
10892         * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10893         encoding argument.
10894         * ada-valprint.c (ada_printstr): Likewise.
10895         * f-valprint.c (f_val_print): Likewise
10896         * m2-valprint.c (m2_val_print): Likewise.
10897         * p-valprint.c (pascal_val_print): Likewise.
10898         * expprint.c (print_subexp_standard): Likewise.
10899         * valprint.c (val_print_string): Likewise.
10900         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10901         (SUBDIR_PYTHON_SRCS): Likewise.
10902         (py-lazy-string.o): New rule.
10903
10904 2010-01-13  Doug Evans  <dje@google.com>
10905
10906         * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10907         uninitialized" warning from gcc on local `tree'.
10908
10909 2010-01-13  Vladimir Prus  <vladimir@codesourcery.com>
10910
10911         Implement core awareness.
10912
10913         * bcache.c (compare_ints): Remove
10914         (print_percentage): Use compare_positive_ints.
10915         * defs.h (compare_positive_ints): Declare.
10916         * linux-nat.h (struct lin_lwp): New field core.
10917         (linux_nat_core_of_thread_1): Declare.
10918         * linux-nat.c (add_lwp): Init the 'core' field.
10919         (linux_nat_wait_1): Record the core.
10920         (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10921         (linux_nat_add_target): Register the above.
10922         * linux-thread-db.c (update_thread_core): New.
10923         (thread_db_find_new_threads): Update core information for
10924         every thread.
10925         * remote.c (struct private_thread_info): New.
10926         (free_private_thread_info, demand_private_info): New.
10927         (PACKET_qXfer_threads, use_osdata_threads): New.
10928         (struct thread_item, threads_parsing_context
10929         (start_thread, end_thread, thread_attributes)
10930         (thread_children, threads_children, threads_elements): New.
10931         (remote_threads_info): Try qXfer:threads before anything
10932         else.
10933         (remote_protocol_packets): Register qXfer:threads.
10934         (remote_open_1): Init use_osdata_threads.
10935         (struct stop_reply): New field 'core'.
10936         (remote_parse_stop_reply): Parse core number.
10937         (process_stop_reply): Record core number.
10938         (remote_xfer_partial): Handle qXfer:threads.
10939         (remote_core_of_thread): New.
10940         (init_remote_ops): Register remote_core_of_thread.
10941         (_initialize_remote): Register qXfer:read.
10942         * target.c (target_core_of_thread): New
10943         * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10944         (struct target_ops): New field to_core_of_threads.
10945         (target_core_of_thread): Declare.
10946         * gdbthread.h (struct thread_info): New field private_dtor.
10947         * thread.c (print_thread_info): Report the core.
10948         * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10949         * utils.c (compare_positive_ints): New.
10950         * features/threads.dtd: New.
10951         * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10952         * mi/mi-main.c (struct collect_cores_data, collect_cores)
10953         (do_nothing, free_vector_of_osdata_items)
10954         (splay_tree_int_comparator, free_splay_tree): New.
10955         (print_one_inferior_data): Implemented printing of selected
10956         inferiors.  Collect and print cores.
10957         (output_cores): New.
10958         (mi_cmd_list_thread_groups): Support --recurse.  Permit specifying
10959         thread groups together with --available.
10960
10961 2010-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10962
10963         * configure: Regenerate (for _STRUCTURED_PROC).
10964
10965 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
10966
10967         Delete dead function.
10968         * ada-lang.c (extract_string): Delete.  No longer used.
10969
10970 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
10971
10972         Fix -Wunused warning in dec-thread.c.
10973         * dec-thread.c (dec_thread_count_gdb_threads)
10974         (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10975
10976 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
10977
10978         * ada-valprint.c (ada_print_floating): Remove trailing space.
10979
10980 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
10981
10982         Add support for DW_AT_GNAT_descriptive_type.
10983         * gdbtypes.h (enum type_specific_kind): New enum.
10984         (struct main_type) [type_specific_field]: New component.
10985         [type_specific]: Add new component "gnat_stuff".
10986         (struct gnat_aux_type): New type.
10987         (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10988         (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10989         (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10990         (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10991         (TYPE_SPECIFIC_FIELD): New macros.
10992         (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10993         type does not hold any cplus-specific data.
10994         (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10995         (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10996         (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10997         cplus-specific data.
10998         * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10999         Set new component TYPE_SPECIFIC_FIELD (type).
11000         (gnat_aux_default): New constant.
11001         (allocate_gnat_aux_type): New function.
11002         (init_type): Add initialization the type-specific stuff for
11003         TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11004         (print_gnat_stuff): New function.
11005         (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11006         specific data.  Adjust code that prints the contents of the
11007         type-specific union using the TYPE_SPECIFIC_FIELD value.
11008         * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11009         the type cplus stuff for Ada types.
11010         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11011         Error out if these routines are called with an Ada type.
11012         (read_structure_type, read_array_type, read_subrange_type):
11013         Add call to set_descriptive_type.
11014         (set_die_type): Initialize the gnat-specific data if necessary.
11015         (need_gnat_info, die_descriptive_type, set_descriptive_type):
11016         New functions.
11017         * ada-lang.c (decode_constrained_packed_array_type): Use
11018         decode_constrained_packed_array_type instead of doing a standard
11019         lookup to locate a parallel type.
11020         (find_parallel_type_by_descriptive_type): New function.
11021         (ada_find_parallel_type_with_name): New function.
11022         (ada_find_parallel_type): Reimplement using
11023         ada_find_parallel_type_with_name.
11024         * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11025         to check if type has a cplus stuff.
11026         * linespec.c (total_number_of_methods): Likewise.
11027         * mdebugread.c (new_type): Likewise.
11028
11029 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11030
11031         * NEWS: Document the 0b binary number prefix parsing.
11032
11033 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11034
11035         * objfiles.c (objfile_relocate1): Change the return type to int.
11036         Describe the new return value.  Return non-zero if data changed.
11037         (objfile_relocate): New variable changed.  Set it.  Call
11038         breakpoint_re_set depending on CHANGED.
11039
11040 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11041
11042         Implement binary numbers parsing.
11043         * c-exp.y (parse_number): New case 'b' and 'B'.
11044
11045 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11046             Tristan Gingold  <gingold@adacore.com>
11047
11048         * solib.c (info_sharedlibrary_command): Replace
11049         objfile_has_partial_symbols and objfile_has_full_symbols calls by
11050         objfile_has_symbols.
11051
11052 2010-01-10  Joel Brobecker  <brobecker@adacore.com>
11053
11054         * NEWS: Document the improvements made to the mips-irix port.
11055
11056 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11057
11058         Fix the documentation of valprint.c:value_print.
11059         * valprint.c (value_print): Update the function description to
11060         mention that the syntax of the output follows the current_language,
11061         not necessarily C.
11062
11063 2010-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11064
11065         Fix displacement of separate debug info files.
11066         * objfiles.c (objfile_relocate): Rename to ...
11067         (objfile_relocate1): ... here and make it static.  Extend the comment.
11068         (objfile_relocate): New function.
11069         * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11070         SYMFILE_OBJFILE is NULL.  Remove variables objfile and old_chain.
11071         Remove following of SEPARATE_DEBUG_OBJFILE.  new_offsets is now
11072         allocated using alloca.
11073         * symfile.c (copy_section_addr_info): Remove.
11074         (build_section_addr_info_from_objfile): Make it global.  New variables
11075         addr_bit and mask, use them.
11076         * symfile.h (build_section_addr_info_from_objfile): New prototype.
11077         (copy_section_addr_info): Remove.
11078
11079 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11080
11081         Signal unwinder for mips-irix N32.
11082         * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11083         tramp-frame.h.
11084         (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11085         (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
11086         (SIGCONTEXT_LO_OFF): New macros.
11087         (mips_irix_n32_tramp_frame_init): New function.
11088         (mips_irix_n32_tramp_frame): New static constant.
11089         (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11090
11091 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11092
11093         Breakpoint in shared library does not work on mips-irix.
11094         * procfs.c: #include "observer.h".
11095         (procfs_inferior_created): New function, moving here the code
11096         which unsets the syssgi syscall-exit notifications.
11097         (procfs_create_inferior): Remove the code which unsets the syssgi
11098         syscall-exit notifications. It is too early to do this here.
11099         (_initialize_procfs): Attach the procfs_inferior_created observer.
11100
11101 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11102
11103         Wrong return convention for arrays (mips-irix).
11104         * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11105         128 bits or smaller are returned the same way as structs
11106         and unions of the the same size.
11107
11108 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11109
11110         Cannot set the PC on mips-irix.
11111         * irix5-nat.c (fill_gregset): Check regno against the raw PC
11112         register number, no the cooked one.
11113
11114 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11115
11116         Error while loading core file on mips-irix.
11117         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11118         if debugging from a core file.
11119
11120 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11121
11122         GDB hangs when attaching to process on mips-irix.
11123         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11124         attaching to a process.
11125
11126 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11127
11128         Use the correct breakpoint instruction on mips-irix.
11129         * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11130         containing the correct breakpoint instruction to use on mips-irix.
11131         Use it when the osabi is GDB_OSABI_IRIX.
11132
11133 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11134
11135         -Wunused warning in procfs.c (mips-irix only).
11136         * procfs.c (gdb_praddset, gdb_prdelset): New macros.  Use them
11137         throughout instead of using praddset and prdelset respectively.
11138
11139 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11140
11141         GDB crash while stepping into function.
11142         * infrun.c (handle_inferior_event): Refetch the current frame
11143         after handling what.main_action, in case that pointer became
11144         dangling.
11145
11146 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11147
11148         Fix build failure of solaris-hosted cross debuggers.
11149         * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11150
11151 2010-01-09  Daniel Gutson  <dgutson@codesourcery.com>
11152
11153         Fix build failure on sparc-solaris.
11154         * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11155
11156 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
11157
11158         Move some symfile code into subroutines.
11159         * symfile.h (relative_addr_info_to_section_offsets)
11160         (addr_info_make_relative): New prototypes.
11161         * symfile.c (default_symfile_offsets): Move a part to ...
11162         (relative_addr_info_to_section_offsets): ... this new function.
11163         (default_symfile_offsets): Call it.
11164         (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11165         this part to ...
11166         (addr_info_make_relative): ... this new function.
11167
11168 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
11169
11170         Add from_tty to solib_create_inferior_hook.
11171         * infcmd.c (post_create_inferior): Move solib_add after
11172         solib_create_inferior_hook.  Pass from_tty to
11173         solib_create_inferior_hook.  Call solib_add and SOLIB_ADD with
11174         0 from_tty and comment why.
11175         * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11176         * linux-nat.c (linux_child_follow_fork): Likewise.
11177         * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11178         * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11179         from_tty.
11180         * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11181         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11182         * solib-null.c (null_solib_create_inferior_hook): Likewise.
11183         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11184         * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11185         * solib-som.c (som_solib_create_inferior_hook): Likewise.
11186         * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11187         Pass it to svr4_so_ops.solib_create_inferior_hook.
11188         * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11189         from_tty.
11190         * solib-svr4.c (enable_break): New parameter from_tty.  Pass it to
11191         solib_add.
11192         (svr4_solib_create_inferior_hook): New parameter from_tty.  Pass it to
11193         enable_break.
11194         * solib-target.c (solib_target_solib_create_inferior_hook): New
11195         parameter from_tty.
11196         * solib.c (solib_create_inferior_hook): New parameter from_tty.  Pass
11197         it to ops->solib_create_inferior_hook.
11198         (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11199         Move solib_add after solib_create_inferior_hook, call it now with
11200         from_tty as 0.  New comment there.
11201         * solib.h (solib_create_inferior_hook): New parameter from_tty.
11202         * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11203         Likewise.
11204
11205 2010-01-08  Vladimir Prus  <vladimir@codesourcery.com>
11206
11207         Fix multiexec race.
11208         * infrun.c (handle_inferior_event): Use get_thread_regcache
11209         with events ptid, not get_current_regcache.
11210
11211 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
11212
11213         GDB crash with empty executable name (MinGW).
11214         * source.c (openp): Add assert that parameter string is not NULL.
11215         if parameter string is an empty string, then return with a failure
11216         immediately.
11217
11218 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
11219
11220         Get rid of support for VAX Floats.
11221         * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11222         (ada_vax_float_print_function): Delete.
11223         * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11224         (ada_vax_float_print_function): Delete.
11225         * ada-typeprint.c (print_vax_floating_point_type): Delete.
11226         (ada_print_type): Remove support for VAX floats.
11227         * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11228
11229 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
11230
11231         * stabsread.c (read_args): Handle zero arguments.
11232
11233 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
11234
11235         Cannot find in-tree libiconv.a after reconfigure.
11236         * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11237         that we can use, then cache the path to this archive.
11238         * configure: Regenerate.
11239
11240 2010-01-07  Stan Shebs  <stan@codesourcery.com>
11241
11242         Make tracepoint operations go through target vector.
11243         * target.h (enum trace_find_type): New enum.
11244         (struct target_ops): New fields to_trace_init,
11245         to_download_tracepoint, to_download_trace_state_variable,
11246         to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11247         to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11248         to_set_disconnected_tracing.
11249         (target_trace_init): New macro.
11250         (target_download_tracepoint): New macro.
11251         (target_download_trace_state_variable): New macro.
11252         (target_trace_start): New macro.
11253         (target_trace_set_readonly_regions): New macro.
11254         (target_get_trace_status): New macro.
11255         (target_trace_stop): New macro.
11256         (target_trace_find): New macro.
11257         (target_get_trace_state_variable_value): New macro.
11258         (target_set_disconnected_tracing): New macro.
11259         * target.c (update_current_target): Inherit and set defaults for
11260         tracepoint operations.
11261         * tracepoint.c (default_collect): Make globally visible.
11262         (target_is_remote): Remove, along with all calls.
11263         (tvariables_info): Call target_get_trace_state_variable_value.
11264         (remote_set_transparent_ranges): Remove.
11265         (trace_start_command): Call target_trace_init,
11266         target_download_tracepoint, etc.
11267         (download_tracepoint): Remove.
11268         (trace_stop_command): Simplify.
11269         (stop_tracing): Call target_trace_stop.
11270         (get_trace_status): Call target_get_trace_status.
11271         (trace_status_command): Add case for targets that cannot trace.
11272         (finish_tfind_command): Change to take numerical arguments, call
11273         target_trace_find.
11274         (trace_find_command): Update call to finish_tfind_command.
11275         (trace_find_pc_command): Ditto.
11276         (trace_find_tracepoint_command): Ditto.
11277         (trace_find_line_command): Ditto.
11278         (trace_find_range_command): Ditto.
11279         (trace_find_outside_command): Ditto.
11280         (set_disconnected_tracing_value): Call
11281         target_set_disconnected_tracing.
11282         * remote.c: Add protocol encoding bits from tracepoint.c.
11283         (trace_error): Move from tracepoint.c.
11284         (remote_get_noisy_reply): Ditto.
11285         (free_actions_list_cleanup_wrapper): Ditto.
11286         (free_actions_list): Ditto.
11287         (remote_trace_init): New function.
11288         (remote_download_tracepoint): New function.
11289         (remote_download_trace_state_variable): New function.
11290         (remote_trace_set_readonly_regions): New function.
11291         (remote_trace_start): New function.
11292         (remote_get_trace_status): New function.
11293         (remote_trace_stop): New function.
11294         (remote_trace_find): New function.
11295         (remote_download_trace_state_variable): New function.
11296         (remote_set_disconnected_tracing): New function.
11297         (init_remote_ops): Add tracepoint operations.
11298
11299         * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11300
11301 2010-01-07  Tristan Gingold  <gingold@adacore.com>
11302
11303         * symfile.c (build_section_addr_info_from_objfile): New function.
11304         (symbol_file_add_separate): Don't use offsets from objfile but
11305         built an addr info.
11306
11307 2010-01-06  Stan Shebs  <stan@codesourcery.com>
11308
11309         Support disconnected tracing.
11310         * infcmd.c (detach_command): Ask whether to stop tracing.
11311         * cli/cli-cmds.c (quit_command): Ditto.
11312         * breakpoint.h (struct breakpoint): New field number_on_target.
11313         * breakpoint.c (create_tracepoint_from_upload): New function.
11314         (get_tracepoint_by_number_on_target): New function.
11315         * remote.c (struct remote): New field disconnected_tracing.
11316         (remote_disconnected_tracing_feature): New function.
11317         (remote_protocol_features): Add DisconnectedTracing.
11318         (struct uploaded_tp): New struct.
11319         (uploaded_tps): New global.
11320         (get_uploaded_tp): New function.
11321         (find_matching_tracepoint): New function.
11322         (remote_get_tracing_state): New function.
11323         (remote_start_remote): Call it.
11324         * tracepoint.c (disconnected_tracing): New global.
11325         (trace_start_command): Initialize number_on_target.
11326         (stop_tracing): New function, split out from...
11327         (trace_stop_command): Call stop_tracing.
11328         (get_trace_status): New function, split out from...
11329         (trace_status_command): Call get_trace_status, add info on
11330         disconnection behavior.
11331         (disconnect_or_stop_tracing): New function.
11332         (finish_tfind_command): Translate from number on target.
11333         (trace_find_tracepoint_command): Translate to number on target.
11334         (send_disconnected_tracing_value): New function.
11335         (set_disconnected_tracing): New function.
11336         (_initialize_tracepoint): Add disconnected-tracing variable.
11337         * NEWS: Mention disconnected tracing.
11338
11339 2010-01-06  Tristan Gingold  <gingold@adacore.com>
11340
11341         * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11342         parameter to main_objfile.  Iterate on all separate debug objfiles.
11343         * symfile.h (symbol_file_add_separate)
11344         (find_separate_debug_file_by_debuglink): Remove parameter names.
11345         * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11346         (reread_symbols): Use free_objfile_separate_debug.
11347         * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11348         Adjust comment.
11349         (objfile_separate_debug_iterate, add_separate_debug_objfile)
11350         (free_objfile_separate_debug): New prototypes.
11351         * objfiles.c (objfile_separate_debug_iterate): New function.
11352         (add_separate_debug_objfile, free_objfile_separate_debug): New
11353         functions.
11354         (free_objfile): Use free_objfile_separate_debug.  Adjust for
11355         multiple separate debug objfile.
11356         (objfile_has_symbols): Adjust comment.  Iterate on all separate
11357         debug objfiles.
11358         * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11359         debug objfile.
11360         (lookup_minimal_symbol_text): Ditto.
11361         (lookup_minimal_symbol_by_pc_name): Ditto.
11362         (lookup_minimal_symbol_solib_trampoline): Ditto.
11363         (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11364         debug objfiles.
11365
11366 2010-01-05  Stan Shebs  <stan@codesourcery.com>
11367
11368         Add fast tracepoints.
11369         * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11370         * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11371         * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11372         * breakpoint.c (tracepoint_type): New function.
11373         (ALL_TRACEPOINTS): Use it.
11374         (should_be_inserted): Ditto.
11375         (bpstat_check_location): Ditto.
11376         (print_one_breakpoint_location): Ditto.
11377         (user_settable_breakpoint): Ditto.
11378         (set_breakpoint_location_function): Ditto.
11379         (disable_breakpoints_in_shlibs): Ditto.
11380         (delete_trace_command): Ditto.
11381         (print_it_typical): Add bp_fast_tracepoint case.
11382         (bpstat_what): Ditto.
11383         (print_one_breakpoint_location): Ditto.
11384         (allocate_bp_location): Ditto.
11385         (mention): Ditto.
11386         (breakpoint_re_set_one): Ditto.
11387         (disable_command): Ditto.
11388         (enable_command): Ditto.
11389         (check_fast_tracepoint_sals): New function.
11390         (break_command_really): Call it.
11391         (ftrace_command): New function.
11392         (_initialize_breakpoint): Add ftrace command.
11393         * gdbarch.sh (fast_tracepoint_valid_at): New.
11394         * gdbarch.h, gdbarch.c: Regenerate.
11395         * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11396         (i386_gdbarch_init): Use it.
11397         * remote.c (struct remote_state): New field fast_tracepoints.
11398         (PACKET_FastTracepoints): New packet config type.
11399         (remote_fast_tracepoint_feature): New function.
11400         (remote_protocol_features): Add FastTracepoints.
11401         (remote_supports_fast_tracepoints): New function.
11402         (_initialize_remote): Add FastTracepoints.
11403         * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11404         * NEWS: Mention fast tracepoints.
11405
11406 2010-01-06  Joel Brobecker  <brobecker@adacore.com>
11407
11408         * gdb-gdb.py: New file.
11409
11410 2010-01-05  Michael Snyder  <msnyder@vmware.com>
11411
11412         * infrun.c (handle_inferior_event): Fix typo in comment.
11413
11414 2010-01-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
11415
11416         * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11417
11418 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11419
11420         * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11421         and s390x-linux64.
11422         (s390-linux32-expedite): Define.
11423         (s390-linux64-expedite): Define.
11424         (s390x-linux64-expedite): Define.
11425         * features/s390-acr.xml: New file.
11426         * features/s390-fpr.xml: New file.
11427         * features/s390-core32.xml: New file.
11428         * features/s390-core64.xml: New file.
11429         * features/s390x-core64.xml: New file.
11430         * features/s390-linux32.xml: New file.
11431         * features/s390-linux64.xml: New file.
11432         * features/s390x-linux64.xml: New file.
11433         * features/s390-linux32.c: New generated file.
11434         * features/s390-linux64.c: New generated file.
11435         * features/s390x-linux64.c: New generated file.
11436
11437         * regformats/s390-linux32.dat: New generated file.
11438         * regformats/s390-linux64.dat: New generated file.
11439         * regformats/s390x-linux64.dat: New generated file.
11440         * regformats/reg-s390.dat: Remove.
11441         * regformats/reg-s390x.dat: Remove.
11442
11443         * s390-nat.c: Include "auxv.h" and <elf.h>.
11444         (HWCAP_S390_HIGH_GPRS): Define if undefined.
11445         (s390_target_wordsize): New function.
11446         (s390_auxv_parse): Likewise.
11447         (s390_get_hwcap): Likewise.
11448         (s390_read_description): Likewise.
11449         (_initialize_s390_nat): Install s390_auxv_parse and
11450         s390_read_description.
11451
11452         * s390-tdep.c: Include "features/s390-linux32.c",
11453         "features/s390-linux64.c", and "features/s390x-linux64.c".
11454         (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11455         (s390_register_call_saved): New function.
11456         (s390_register_name): Remove.
11457         (s390_register_type): Remove.
11458         (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11459         (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11460         (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11461         (s390_pseudo_register_name): New function.
11462         (s390_pseudo_register_type): New function.
11463         (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11464         Handle full GPR pesudos and varying pseudo register numbers.
11465         (s390_pseudo_register_write): Likewise
11466         (s390x_pseudo_register_read): Remove.
11467         (s390x_pseudo_register_write): Likewise.
11468         (s390_register_group): Remove.
11469         (s390_pseudo_register_group): New function.
11470         (s390_regmap_gregset): Add GPR upper halves.
11471         (s390x_regmap_gregset): Likewise.
11472         (s390_regmap_fpregset): Likewise.
11473         (s390_regmap_upper): New global variable.
11474         (s390_upper_regset): New global variable.
11475         (s390_upper_regset_sections): New global variable.
11476         (s390_regset_from_core_section): Handle GPR upper halves.
11477         (s390_core_read_description): New function.
11478         (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11479         register information.  Handle varying pseudo register numbers.
11480         (s390_backchain_frame_unwind_cache): Likewise.
11481         (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11482         (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11483         (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11484         PC and CC pseudos.  Unwind upper halves and full GPRs as appropriate.
11485         Handle varying pseudo register numbers.
11486         (s390_unwind_pc): Handle varying pseudo register numbers.
11487         (s390_dwarf2_prev_register): New function.
11488         (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11489         register information.  Handle varying pseudo register numbers.
11490         Install s390_dwarf2_prev_register to unwind full GPRs.
11491         (s390_gdbarch_init): Handle target descriptions.  Assign varying
11492         pseudo register numbers.  Install s390_adjust_frame_regnum.
11493         (_initialize_s390_tdep): Initialize target descriptions.
11494
11495         * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11496         (S390_NUM_REGS): Redefine to include upper half registers.
11497         (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11498         (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11499         (tdesc_s390_linux32): Add declaration.
11500         (tdesc_s390_linux64): Likewise.
11501         (tdesc_s390x_linux64): Likewise.
11502
11503 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11504
11505         * regset.h (struct core_regset_section): Add HUMAN_NAME.
11506         * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11507         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11508         (ppc_linux_vmx_regset_sections): Likewise.
11509         (ppc_linux_fp_regset_sections): Likewise.
11510
11511         * corelow.c (get_core_register_section): Constify arguments.
11512         (get_core_registers): Use gdbarch_core_regset_sections instead
11513         of hard-coded platform-specific register section names.
11514
11515 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11516
11517         * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11518         a register, assume the least-significant part is used.
11519         (write_pieced_value): Likewise.
11520
11521 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11522
11523         * printcmd.c: Include "arch-utils.h".
11524         (do_one_display): Re-parse expression if current architecture changed.
11525
11526 2010-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11527             Joel Brobecker  <brobecker@adacore.com>
11528
11529         * gdbtypes.c (check_typedef): New comment on type length.
11530         * value.c (allocate_value_lazy): Remove the unused atype variable.  New
11531         comment on type length.
11532         (value_primitive_field): Keep the original TYPE value, new comment.
11533
11534 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11535
11536         * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11537         p_start.  Change != comparisons to > and < comparisons.
11538
11539 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11540
11541         * cli/cli-script.c (process_next_line): Check P2 overrun.
11542
11543 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
11544
11545         Update the copyright hearder to add year 2010 for most GDB files.
11546
11547 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
11548
11549         Fix build failure in inf-ptrace.c.
11550         * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11551
11552 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
11553
11554         * top.c (print_gdb_version): Update copyright year.
11555
11556 2010-01-01, 10  Joel Brobecker  <brobecker@adacore.com>
11557
11558         Fix break *FUN'address thread NUM.
11559         * ada-lex.l (task): Expand rule to also match the thread keyword.
11560
11561 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
11562
11563         Fix break *FUN'address task NUM.
11564         * ada-lex.l (task): New rule.
11565         * ada-lang.c (valid_task_id): Make sure the Ada task list has
11566         been built before using it.
11567
11568 For older changes see ChangeLog-2009.
11569 \f
11570 Local Variables:
11571 mode: change-log
11572 left-margin: 8
11573 fill-column: 74
11574 version-control: never
11575 coding: utf-8
11576 End: