* symfile.h (quick_symbol_functions): Clarify usage of
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2010-12-09  Doug Evans  <dje@google.com>
2
3         * symfile.h (quick_symbol_functions): Clarify usage of
4         map_symbol_filenames.
5
6 2010-12-09  Tom Tromey  <tromey@redhat.com>
7
8         * mi/mi-parse.h (mi_parse): Update.
9         * mi/mi-parse.c (mi_parse_cleanup): New function.
10         (mi_parse): Add 'token' argument.  Throw exception on error.
11         * mi/mi-main.c (mi_print_exception): New function.
12         (mi_execute_command): Use mi_print_exception.  Catch exceptions
13         from mi_parse.
14
15 2010-12-09  Tom Tromey  <tromey@redhat.com>
16
17         PR c++/9593:
18         * thread.c (clear_thread_inferior_resources): Call
19         delete_longjmp_breakpoint.
20         * infrun.c (handle_inferior_event): Handle exception breakpoints.
21         (handle_inferior_event): Likewise.
22         (insert_exception_resume_breakpoint): New function.
23         (check_exception_resume): Likewise.
24         * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
25         * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
26         (step_1): Set thread's initiating frame.
27         (until_next_continuation): New function.
28         (until_next_command): Support exception breakpoints.
29         (finish_command_continuation): Delete longjmp breakpoint.
30         (finish_forward): Support exception breakpoints.
31         * gdbthread.h (struct thread_info) <initiating_frame>: New field.
32         * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
33         bp_exception_master>: New constants.
34         (struct bpstat_what) <is_longjmp>: New field.
35         (set_longjmp_breakpoint): Update.
36         * breakpoint.c (create_exception_master_breakpoint): New function.
37         (update_breakpoints_after_exec): Handle bp_exception_master.  Call
38         create_exception_master_breakpoint.
39         (print_it_typical): Handle bp_exception_master, bp_exception.
40         (bpstat_stop_status): Handle bp_exception_master.
41         (bpstat_what): Handle bp_exception_master, bp_exception,
42         bp_exception_resume.
43         (bptype_string): Likewise.
44         (print_one_breakpoint_location): Likewise.
45         (allocate_bp_location): Likewise.
46         (set_longjmp_breakpoint): Handle exception breakpoints.  Change
47         interface.
48         (delete_longjmp_breakpoint): Handle exception breakpoints.
49         (mention): Likewise.
50         (struct until_break_command_continuation_args) <thread_num>: New
51         field.
52         (until_break_command_continuation): Call
53         delete_longjmp_breakpoint.
54         (until_break_command): Support exception breakpoints.
55         (delete_command): Likewise.
56         (breakpoint_re_set_one): Likewise.
57         (breakpoint_re_set): Likewise.
58
59 2010-12-08  Doug Evans  <dje@google.com>
60
61         * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
62
63         * gdbtypes.c (check_typedef): Tweak comment.
64
65         PR symtab/12302
66         * dwarf2read.c (struct psymtab_cu_index_map): New struct.
67         (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
68         (struct addrmap_index_data): New struct.
69         (add_address_entry): Remove arg `pst', new args `start', `end'.
70         (add_address_entry_worker, write_address_map): New functions.
71         (write_psymtabs_to_index): Address table generation moved to
72         write_address_map.  Build a table mapping psymtab to CU index
73         to pass to it.
74
75         * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
76         name to perror.
77
78         * symfile.h (quick_symbol_functions): Clarify usage of
79         expand_symtabs_with_filename.
80         * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
81         comp units, ignore type units.
82
83         * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
84
85 2010-12-07  Doug Evans  <dje@google.com>
86
87         * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
88         gdb_realpath.
89
90         PR python/12227
91         * NEWS: Mention -data-directory.
92         * main.c (captured_main): Recognize -data-directory.
93
94 2010-12-06  Marc Khouzam  <marc.khouzam@ericsson.com>
95
96         * mi/mi-parse.c (mi_parse): Missing else.
97
98 2010-12-04  Masaki Muranaka  <monaka@monami-software.com>
99
100         * configure.tgt: Accept microblaze*-*-linux* for linux target
101         and microblaze*-*-* for  as target.
102
103 2010-12-02  Keith Seitz  <keiths@redhat.com>
104
105         * linespec.c (find_method): Move name canonicalization outside
106         the loop.
107         Be paranoid and use a cleanup.
108
109 2010-12-01  Doug Evans  <dje@google.com>
110
111         * dwarf2read.c (save_gdb_index_command): Add comment.
112
113 2010-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
114
115         * valops.c (value_assign): Returned value is never lazy.  If a
116         C++ class type is returned, fix incorrect enclosing type / embedded
117         offset.  If internal variable is returned, allocate new internalvar
118         value using value_of_internalvar.
119
120         * NEWS: Document changes in behavior of "print x = 0" and similar
121         expressions.
122
123 2010-11-29  Doug Evans  <dje@google.com>
124
125         * python/lib/gdb/printing.py (register_pretty_printer): Change
126         printer-name:subprinter-name to printer-name;subprinter-name.
127         * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
128         Ditto.
129         (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
130
131 2010-11-29  Tom Tromey  <tromey@redhat.com>
132
133         * opencl-lang.c (lval_func_check_synthetic_pointer): New
134         function.
135         * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
136         New fields.
137         (value_bits_synthetic_pointer): Declare.
138         * value.c (value_bits_synthetic_pointer): New function.
139         * valprint.c (valprint_check_validity): Handle synthetic
140         pointers.
141         * valops.c (value_ind): Use new 'indirect' lval_funcs method.
142         * valarith.c (value_ptradd): Use set_value_component_location.
143         * p-valprint.c (pascal_object_print_value_fields): Handle
144         synthetic pointers.
145         * jv-valprint.c (java_print_value_fields): Handle synthetic
146         pointers.
147         * dwarf2read.c (dwarf_stack_op_name): Add
148         DW_OP_GNU_implicit_pointer.
149         (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
150         arguments.  Handle location lists.
151         (fill_in_loclist_baton): New function.
152         (dwarf2_symbol_mark_computed): Use it.
153         * dwarf2loc.h (dwarf2_find_location_expression): Declare.
154         (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
155         arguments.
156         * dwarf2loc.c (dwarf2_find_location_expression): Rename from
157         find_location_expression.  No longer static.  Update all callers.
158         (dwarf_expr_frame_pc): New function.
159         (per_cu_dwarf_call): Add get_frame_pc, baton arguments.  Update
160         all callers.
161         (struct piece_closure) <per_cu>: New field.
162         (allocate_piece_closure): Add per_cu argument.
163         (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
164         (check_pieced_value_bits): Remove validity argument, add check_for
165         argument.  Handle DWARF_VALUE_IMPLICIT_POINTER.
166         (check_pieced_value_validity, check_pieced_value_invalid):
167         Update.
168         (check_pieced_synthetic_pointer): New function.
169         (get_frame_address_in_block_wrapper): New function.
170         (indirect_pieced_value): New function.
171         (pieced_value_funcs): Update.
172         (invalid_synthetic_pointer): New function.
173         (dwarf2_evaluate_loc_desc_full): Rename from
174         dwarf2_evaluate_loc_desc.  Add byte_offset argument.
175         (dwarf2_evaluate_loc_desc): Rewrite.
176         (dwarf2_loc_desc_needs_frame): Set new field on context.
177         (get_ax_pc): New function.
178         (disassemble_dwarf_expression): Handle
179         DW_OP_GNU_implicit_pointer.
180         * dwarf2expr.h (enum dwarf_value_location)
181         <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
182         (struct dwarf_expr_context) <get_frame_pc>: New field.
183         (struct dwarf_expr_piece) <v.ptr>: New field.
184         * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
185         (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
186         * dwarf2-frame.c (no_get_frame_pc): New function.
187         (execute_stack_op): Set new field on context.
188         * cp-valprint.c (cp_print_value_fields): Handle synthetic
189         pointers.
190
191 2010-11-29  Phil Muldoon  <pmuldoon@redhat.com>
192
193         PR python/12199
194
195         * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
196
197 2010-11-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
198
199         Fix step_resume_breakpoint unsaved during an infcall.
200         * gdbthread.h (struct thread_control_state): Move here field
201         step_resume_breakpoint ...
202         (struct thread_info): ... from here.
203         * infrun.c (save_infcall_control_state): Reset
204         control.step_resume_breakpoint to NULL.
205         (restore_infcall_control_state, discard_infcall_control_state): Delete
206         control.step_resume_breakpoint.
207         * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
208         the moved field.
209
210 2010-11-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
211
212         Rename and move inferior_thread_state and inferior_status.
213         * gdbthread.h (struct thread_control_state): New struct, move fields
214         step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
215         trap_expected, proceed_to_finish, in_infcall, step_over_calls,
216         stop_step and stop_bpstat here from struct thread_info.
217         (struct thread_suspend_state): New struct, move field stop_signal here
218         from struct thread_info.
219         (struct thread_info): Move the fields above from this struct.
220         * inferior.h: Move the inferior_thread_state and inferior_status
221         declarations comment to their definitions at infrun.c.
222         (struct inferior_control_state): New struct, move field stop_soon from
223         struct inferior here.
224         (struct inferior_suspend_state): New empty struct.
225         (struct inferior): New fields control and suspend.  Move out field
226         stop_soon.
227         * infrun.c (struct inferior_thread_state): Rename to ...
228         (infcall_suspend_state): ... here.  Replace field stop_signal by
229         fields thread_suspend and inferior_suspend.
230         (save_inferior_thread_state): Rename to ...
231         (save_infcall_suspend_state): ... here.  New variable inf.  Update the
232         code for new fields.
233         (restore_inferior_thread_state): Rename to ...
234         (restore_infcall_suspend_state): ... here.  New variable inf.  Update
235         the code for new fields.
236         (do_restore_inferior_thread_state_cleanup): Rename to ...
237         (do_restore_infcall_suspend_state_cleanup): ... here.
238         (make_cleanup_restore_inferior_thread_state): Rename to ...
239         (make_cleanup_restore_infcall_suspend_state): ... here.
240         (discard_inferior_thread_state): Rename to ...
241         (discard_infcall_suspend_state): ... here.
242         (get_inferior_thread_state_regcache): Rename to ...
243         (get_infcall_suspend_state_regcache): ... here.
244         (struct inferior_status): Rename to ...
245         (struct infcall_control_state): ... here.  Replace fields
246         step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
247         trap_expected, proceed_to_finish, in_infcall, step_over_calls,
248         stop_step, stop_bpstat and stop_soon by fields thread_control and
249         inferior_control.
250         (save_inferior_status): Rename to ...
251         (save_infcall_control_state): ... here.  Update the code for new
252         fields.
253         (restore_inferior_status): Rename to ...
254         (restore_infcall_control_state): ... here.  Update the code for new
255         fields.
256         (do_restore_inferior_status_cleanup): Rename to ...
257         (do_restore_infcall_control_state_cleanup): ... here.
258         (make_cleanup_restore_inferior_status): Rename to ...
259         (make_cleanup_restore_infcall_control_state): ... here.
260         (discard_inferior_status): Rename to ...
261         (discard_infcall_control_state): ... here.
262         * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
263         exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
264         inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
265         mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
266         solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
267         references to the moved fields and renamed functions.
268
269 2010-11-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
270
271         * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
272         the comment.
273         (save_inferior_thread_state): Reset tp->stop_signal.
274
275 2010-11-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
276
277         * infcall.c (call_function_by_hand): Remove variable
278         caller_state_cleanup.
279
280 2010-11-25  Marc Khouzam  <marc.khouzam@ericsson.com>
281
282         PR breakpoints/12217
283
284         * breakpoint.c (is_marker_spec): Check for NULL.
285
286 2010-11-25  Pedro Alves  <pedro@codesourcery.com>
287
288         * breakpoint.h: No longer include python.h or python-internal.h.
289         (struct breakpoint_object): Forward declare.
290         * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
291         * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
292         * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
293         PyObject pointer.
294         (gdbpy_breakpoint_created): Remove casts around py_bp_object
295         accesses.
296
297 2010-11-24  Joel Brobecker  <brobecker@adacore.com>
298
299         * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
300         only if HAVE_ELF is defined.
301
302 2010-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
303
304         Code cleanup.
305         * infrun.c (struct inferior_status) <stepping_over_breakpoint>
306         (save_inferior_status) <stepping_over_breakpoint>
307         (restore_inferior_status) <stepping_over_breakpoint>: Rename to
308         trap_expected.
309         (struct inferior_status) <step_resume_break_address>: Remove.
310
311 2010-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
312
313         Code cleanup.
314         * infrun.c (struct inferior_status, save_inferior_status)
315         (restore_inferior_status): Group and reorder the fields, comment their
316         groups.
317
318 2010-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
319
320         Code cleanup.
321         * dictionary.c
322         (struct dict_vector) <iter_match_first, iter_match_next>
323         (iter_match_first_hashed, iter_match_next_hashed)
324         (iter_match_first_linear, iter_match_next_linear)
325         (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
326         (iter_match_next_hashed, iter_match_first_linear)
327         (iter_match_next_linear): Use symbol_compare_ftype.
328         * dictionary.h: Include symfile.h.
329         (dict_iter_match_first, dict_iter_match_next): Use
330         symbol_compare_ftype.
331         * dwarf2read.c (dw2_map_matching_symbols): Likewise.
332         * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
333         (map_matching_symbols_psymtab): Likewise.
334         * symfile.h (symbol_compare_ftype): New typedef.
335         (struct quick_symbol_functions) <map_matching_symbols): Use
336         symbol_compare_ftype.
337
338 2010-11-23  Tom Tromey  <tromey@redhat.com>
339
340         * configure: Rebuild.
341         * configure.ac (READLINE_TEXI_INCFLAG): New subst.
342
343 2010-11-19  Tom Tromey  <tromey@redhat.com>
344
345         * Makefile.in (SUBDIRS): Add doc.
346         * configure: Rebuild.
347         * configure.ac: Don't configure in doc.  Create doc/Makefile.
348
349 2010-11-23  Phil Muldoon  <pmuldoon@redhat.com>
350
351         PR python/12212
352
353         * python/py-inferior.c (find_thread_object): Check if PIDGET
354         returns 0.
355
356 010-11-22  Joel Brobecker  <brobecker@adacore.com>
357
358         * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
359
360 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
361
362         * ada-lang.c (ada_to_fixed_type): Expand function documentation.
363         Return the original type if the main type portions match rather
364         than when the type themselves match.
365
366 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
367
368         * ada-lang.c (ada_template_to_fixed_record_type_1):
369         For dynamic fields, check the field size against the maximum
370         object size.
371
372 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
373
374         * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
375         function.
376         (mips_irix_n32_stack_tramp_frame): New static global.
377         (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
378         list of unwinder.
379
380 2010-11-22  Jerome Guitton  <guitton@adacore.com>
381
382         * ada-tasks.c (get_tcb_types_info): Use C lookups to get
383         ATCB symbols.
384
385 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
386
387         * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
388         if type1 is a typedef.
389
390 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
391
392         * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
393         "_finalizer" to the list.
394
395 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
396
397         * symfile.c: Remove all "#if 0"/"#endif" blocks.
398
399 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
400
401         * symfile.c: Add missing second space after period in various comments.
402
403 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
404
405         * ada-typeprint.c (print_array_type): Fix formatting in comment.
406         (print_selected_record_field_types): Fix formatting in function
407         documentation.
408
409 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
410
411         * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
412         in name of "show ravenscar" prefix command name.
413
414 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
415
416         * ravenscar-thread.c (show_ravenscar_task_switching_command):
417         Add missing '\n' in output.
418
419 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
420
421         * ravenscar-thread.c (running_thread_name): Change value.
422         (read_thread_id): Remove advance declaration.
423         (get_running_thread_msymbol): New function.
424         (has_ravenscar_runtime): Use get_running_thread_msymbol to
425         compute msym_running_thread.
426         (get_running_thread_id): Renames read_thread_id. Slight modifications
427         to not take any argument anymore, using get_running_thread_msymbol
428         to determine which symbol to use instead.
429         (ravenscar_running_thread): Use get_running_thread_id instead of
430         read_thread_id.
431
432 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
433
434         * ravenscar-sparc-thread.c (supply_register_at_address):
435         Fix passing of buf in call to regcache_raw_supply.
436
437 2010-11-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
438
439         * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
440
441 2010-11-22  Tom Tromey  <tromey@redhat.com>
442
443         * Makefile.in (.PRECIOUS): Reference ada-lex.c.
444
445 2010-11-19  Keith Seitz  <keiths@redhat.com>
446
447         * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
448         Remove extraneous '/' after $(DESTDIR).
449         (PYTHON_INSTALL_DIR): Likewise.
450
451 2010-11-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
452
453         Fix stale memory references.
454         * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
455         xfree, new comment.
456
457 2010-11-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
458             Tom Tromey  <tromey@redhat.com>
459
460         * Makefile.in (.y.c): Directly create $@ from YLWRAP.
461         (.PHONY): Remove for .y outputs.
462
463 2010-11-19  Will Drewry  <wad@google.com>
464             Tavis Ormandy  <taviso@google.com>
465             Jan Kratochvil  <jan.kratochvil@redhat.com>
466
467         * dwarf2read.c (decode_locdesc): Enforce location description stack
468         boundaries.
469
470 2010-11-18  Pierre Muller  <muller@ics.u-strasbg.fr>
471
472         * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
473         instruction is found.
474
475 2010-11-17  Tom Tromey  <tromey@redhat.com>
476
477         * value.c (value_entirely_optimized_out): Check the
478         'check_any_valid' field.
479
480 2010-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
481
482         * ada-lang.c (modify_general_field): Remove.
483         (make_array_descriptor): Replace all modify_general_field calls by
484         modify_field.
485         * value.c (modify_field): Update comment.  New variable bytesize.
486         Normalize BITPOS.  Initialize BYTESIZE, use it.
487
488 2010-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
489
490         * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
491         elements after xfree.
492
493 2010-11-16  Tom Tromey  <tromey@redhat.com>
494
495         * gdb-add-index.sh: Really remove.
496
497 2010-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
498
499         Code cleanup.
500         * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
501         (init_one_comp_unit): ... this one.
502         (prepare_one_comp_unit): New prototype.
503         (dw2_require_line_header, process_psymtab_comp_unit): Use
504         init_one_comp_unit.
505         (process_psymtab_comp_unit): Use prepare_one_comp_unit.
506         (load_partial_comp_unit): Remove variable attr.  Use
507         init_one_comp_unit with xmalloc.  Use prepare_one_comp_unit.
508         (load_full_comp_unit): Use init_one_comp_unit with xmalloc.  Use
509         prepare_one_comp_unit.
510         (read_signatured_type): Remove variable attr.  Use init_one_comp_unit.
511         Use prepare_one_comp_unit.
512         (alloc_one_comp_unit): Rename to ...
513         (init_one_comp_unit): ... here and remove there calloc, new parameter
514         cu.
515         (prepare_one_comp_unit): New function.
516
517 2010-11-14  Pierre Muller  <muller@ics.u-strasbg.fr>
518
519         * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
520         possible used of uninitialized variable.
521
522 2010-11-12  Nathan Froyd  <froydnj@codesourcery.com>
523
524         * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
525         (rs6000_gdbarch_init): Call it.
526
527 2010-11-12  Nathan Froyd  <froydnj@codesourcery.com>
528
529         * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
530         instructions if debugging an E500 binary.
531
532 2010-11-12  Tom Tromey  <tromey@redhat.com>
533
534         * varobj.c (value_get_print_value): Rearrange.  Pass stream to
535         apply_varobj_pretty_printer.
536         * c-lang.c: Include exceptions.h.
537         (c_get_string): Throw MEMORY_ERROR when appropriate.
538         * python/py-prettyprint.c (enum string_repr_result): New.
539         (print_stack_unless_memory_error): New function.
540         (print_string_repr): Change return type.  Use
541         print_stack_unless_memory_error.
542         (print_children): Use print_stack_unless_memory_error.
543         (apply_val_pretty_printer): Update.  Don't print children if
544         string representation threw an exception.
545         (apply_varobj_pretty_printer): Add 'stream' argument.  Use
546         print_stack_unless_memory_error.
547         * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
548         globals.
549         (_initialize_python): Initialize them.
550         * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
551         gdbpy_convert_exception.
552         (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
553         (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
554         (gdbpy_convert_exception): Declare.
555         (apply_varobj_pretty_printer): Update.
556         * python/py-utils.c (gdbpy_convert_exception): New function.
557
558 2010-11-12  Marc Khouzam  <marc.khouzam@ericsson.com>
559
560         * mi/mi-main.c (mi_cmd_target_detach): Accept new
561         thread-group id format.
562
563 2010-11-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
564
565         * spu-tdep.c (spu_catch_start): Fix compilation error typo.
566
567 2010-11-11  Phil Muldoon  <pmuldoon@redhat.com>
568
569         * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
570         NULL.
571         (BPPY_SET_REQUIRE_VALID): Ditto.
572         (bpnum_is_valid): Delete function.
573         (bppy_get_visibility): New function.
574         (bppy_new): Parse for, and validate internal keyword.  Pass
575         internal keyword to breakpoint or watchpoint functions.
576         (build_bp_list): New function.
577         (gdbpy_breakpoints): Rewrite.  Use build_bp_list and
578         iterate_over_breakpoints.
579         (gdbpy_breakpoint_created): Rewrite.  Do not store breakpoints in a
580         look-aside vector.
581         (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
582         to internal breakpoint chain.
583
584         * breakpoint.c (set_breakpoint_number): New function.
585         (breakpoint_1): Check if breakpoint number is more than zero.
586         (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
587         (create_breakpoint_sal): Take a new parameter called internal.
588         Call set_breakpoint_number with internal parameter.  Do not
589         mention internal breakpoints.  All callers updated.
590         (create_breakpoint): Ditto.
591         (create_breakpoints_sal): Ditto.
592         (watch_command_1): Ditto.
593         (watch_command_wrapper): Take a new parameter called internal.
594         All callers updated.
595         (rwatch_command_wrapper): Ditto.
596         (awatch_command_wrapper): Ditto.
597         (save_breakpoints): Update breakpoint save condition check.
598         (iterate_over_breakpoints): New function.
599         * breakpoint.h: Add conditional python includes.  Add py_bp_object
600         and comment to struct breakpoint.  Update all callers.
601         * defs.h: Add PyObject definition for GDB builds without Python.
602
603 2010-11-10  Doug Evans  <dje@google.com>
604
605         * python/lib/gdb/command/pretty_printers.py
606         (do_enable_pretty_printer_1): Handle printer.subprinters is None.
607
608         * value.c (set_value_enclosing_type): Renamed from
609         value_change_enclosing_type.  All callers updated.
610         * value.h (set_value_enclosing_type): Update.
611         * valops.c (value_full_object): Always return a copy if we need to
612         make changes to the input value.
613
614 2010-11-09  Pedro Alves  <pedro@codesourcery.com>
615
616         * breakpoint.c (watch_command_1): Get a pointer of the lazy
617         version of the expression's value, even if reading the value from
618         memory fails.  When creating a -location watchpoint, get the
619         value's address from the lazy value pointer.
620
621 2010-11-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
622
623         * infrun.c (restore_inferior_thread_state): Use
624         discard_inferior_thread_state to free the data.
625         (discard_inferior_thread_state): xfree also siginfo_data.
626
627 2010-11-05  Doug Evans  <dje@google.com>
628
629         Make gdb.parameter("directories") work.
630         New command "set directories".
631         * NEWS: Document them.
632         * source.c (set_directories_command): New function.
633         (show_directories_1): Renamed from show_directories.
634         All callers updated.
635         (show_directories_command): New function.
636         (_initialize_source): Install "directories" as a set/show
637         variable instead of just a show command.
638
639 2010-11-05  Ken Werner  <ken.werner@de.ibm.com>
640
641         * NEWS: Mention OpenCL C language support.
642         * Makefile.in (SFILES): Add opencl-lang.c.
643         (COMMON_OBS): Add opencl-lang.o.
644         * opencl-lang.c: New File
645         * defs.h (enum language): Add language_opencl.
646         * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
647         IBM XL C OpenCL compiler.
648         * c-lang.h: Include "parser-defs.h".
649         (evaluate_subexp_c): Declare.
650         * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
651         (c_op_print_tab): Add declaration.
652         * eval.c (binop_promote): Handle language_opencl.
653         * c-exp.y: Lookup the primitive types instead of referring to the
654         builtins.
655
656 2010-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
657
658         Fix configure --enable-plugins --without-python.
659         * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
660         * configure: Regenerate.
661
662 2010-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
663
664         * solib.c (solib_read_symbols): Call exception_fprintf even without
665         FROM_TTY.  Print also so->so_name.
666
667 2010-11-04  Sami Wagiaalla  <swagiaal@redhat.com>
668
669         * gdbtypes.h (struct rank): Created subrank.
670         * gdbtypes.c: Initialized subrank for all
671         'BADNESS' constants.
672         (distance_to_ancestor): New function.
673         (is_ancestor): Use distance_to_ancestor.
674         (is_public_ancestor): Ditto.
675         (sum_ranks): Handle subrank.
676         (compare_ranks): Ditto.
677         (rank_one_type): Subrank base conversions.
678
679 2010-11-04  Sami Wagiaalla  <swagiaal@redhat.com>
680
681         * gdbtypes.h: Create struct rank.
682         Convert all 'BADNESS' macros to const struct rank declarations.
683         (sum_ranks): New function.
684         (compare_ranks): New function.
685         * valops.c (find_oload_champ): Updated.
686         (classify_oload_match): Use compare_ranks.
687         Improved comments.
688         (compare_parameters): Use compare_ranks.
689         * gdbtypes.c: Initialize 'BADNESS' constants.
690         (sum_ranks): New function.
691         (compare_ranks): New function.
692         (compare_badness): Use compare_ranks.
693         (rank_function): Use global constants instead of literals.
694         (rank_one_type): Ditto.
695         Return struct rank.
696         Use sum_ranks.
697
698 2010-11-04  Doug Evans  <dje@google.com>
699
700         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
701         (find_pretty_printer): Fix comments.
702
703 2010-11-04  Hui Zhu  <teawater@gmail.com>
704
705         * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
706
707 2010-11-03  Joel Brobecker  <brobecker@adacore.com>
708
709         * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
710         and `len' declaration and computation inside block where they
711         are being used.
712
713 2010-11-03  Joel Brobecker  <brobecker@adacore.com>
714
715         * valprint.c (val_print_array_elements): Put back handling of
716         empty arrays.
717
718 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
719
720         * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
721         DIE and set the length of the type.
722         * gdbtypes.h (get_array_bounds): Move here from valprint.h.
723         * gdbtypes.c (get_array_bounds): Move here from valprint.c and
724         return 0 if the corresponding bounds of the type are undefined.
725         * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
726         * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
727         (val_print_array_elements): Use get_array_bounds to compute the number
728         of array elements instead of dividing the length of the array by the
729         length of the element types.
730         * valarith.c (vector_binop): Likewise.
731         * valops.c (value_cast): Likewise.
732         * c-valprint.c (c_val_print): Likewise.
733         * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
734
735 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
736
737         * valarith.c (value_pos, value_neg, value_complement): Handle
738         vector types.
739         * valops.c (value_one): Likewise.
740
741 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
742
743         * value.h (value_non_lval): Declare.
744         * value.c (value_non_lval): New function.
745         * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
746         UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
747         non-lvalue.
748
749 2010-11-02  Doug Evans  <dje@google.com>
750
751         New python module gdb.printing, and new commands info pretty-printer,
752         enable pretty-printer, disable pretty-printer.
753         * NEWS: Mention them.
754         * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
755         gdb/command/__init__.py, gdb/command/pretty_printers.py.
756         * python/lib/gdb/__init__.py: Install pretty-printer commands.
757         * python/lib/gdb/printing.py: New file.
758         * python/lib/gdb/command/__init__.py: New file.
759         * python/lib/gdb/command/pretty_printers.py: New file.
760
761 2010-11-02  Tom Tromey  <tromey@redhat.com>
762
763         * NEWS: Mention Guile removal.
764         * defs.h (enum language) <language_scm>: Remove.
765         * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
766         scm-valprint.c.
767         (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
768         (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
769         * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
770         Remove.
771
772 2010-11-02  Doug Evans  <dje@google.com>
773
774         * top.c: #include "python/python.h".
775         (gdb_init): Add a comment regarding initialize_all_files.
776         Call finish_python_initialization at the end.
777         * python/python.h (finish_python_initialization): Declare.
778         * python/python.c (finish_python_initialization): New function.
779         (_initialize_python): Move python-implemented initialization there
780         and call it.
781         (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
782
783 2010-11-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
784
785         Revert:
786         2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
787                     Pedro Alves  <pedro@codesourcery.com>
788         * gdbthread.h (currently_stepping): New declaration.
789         * infrun.c (currently_stepping): Remove the forward declaration.
790         (currently_stepping): Make it global.
791         * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
792         variables tp and step, initialized them.  Pass STEP to to_resume.
793         Print also possibly "PTRACE_SINGLESTEP" if STEP.  Initialize LP->STEP.
794         * remote.c (currently_stepping_callback): New.
795         (remote_vcont_resume)
796         <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
797         New variable tp.  Call currently_stepping_callback and step such
798         thread.
799
800 2010-11-01  Hui Zhu  <teawater@gmail.com>
801
802         * tracepoint.c (tfile_xfer_partial): Change lma to vma.
803
804 2010-10-28  Hui Zhu  <teawater@gmail.com>
805
806         * tracepoint.c (trace_save): Change utp->actions to
807         utp->step_actions.
808
809 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
810
811         * (_FILE_OFFSET_BITS): Fix typo in comment.
812
813 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
814
815         * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
816         (PyEval_InitThreads): Remove duplicate. Define as nothing.
817         (PyEval_ReleaseLock): Define as nothing.
818
819 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
820
821         * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
822         by call to FILENAME_CMP.
823
824 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
825
826         * dictionary.c (dict_hash): Move assignment out of if condition.
827
828 2010-10-22  Jie Zhang  <jie@codesourcery.com>
829
830         * Makefile.in (install): Remove dependency of install-only and
831         recursively invoke make for install-only.
832         * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
833         (install): Pass FLAGS_TO_PASS when recursively make install-only.
834
835 2010-10-20  Hui Zhu  <teawater@gmail.com>
836
837         * tracepoint.c (tfile_get_traceframe_address): Call
838         extract_signed_integer.
839         (tfile_trace_find): Call extract_signed_integer and
840         extract_unsigned_integer.  Change data_size to unsigned int.
841         (tfile_fetch_registers): Call extract_unsigned_integer.
842         (tfile_xfer_partial): Ditto.
843         (tfile_get_trace_state_variable_value): Call
844         extract_signed_integer and extract_unsigned_integer.
845
846 2010-10-20  Vladimir Prus  <vladimir@codesourcery.com>
847
848         * remote.c (remote_get_threadlist): If we got empty
849         response, bail out immediately, and don't emit any
850         warnings.
851
852 2010-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
853
854         * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
855         for "mov pc, REG" as well.
856         (thumb_instruction_changes_pc): Likewise.
857
858 2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>
859
860          PR C++/11500:
861         * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
862         * eval.c (evaluate_subexp_standard): Check for overload of
863         'operator->'.
864         * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
865         (value_x_unop): Ditto.
866         * valops.c: Include "exceptions.h".
867         (find_overload_match): Throw NOT_FOUND_ERROR.
868         (value_struct_elt): Ditto.
869
870 2010-10-19  Tom Tromey  <tromey@redhat.com>
871
872         * python/py-cmd.c (cmdpy_function): Unreference exception state.
873
874 2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>
875
876         * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
877         * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
878         for conversion.
879         Make all other conversions illegal.
880
881 2010-10-18  Doug Evans  <dje@google.com>
882
883         * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
884         assumptions of when this case happens.  Print "<unnamed typedef>".
885
886 2010-10-18  Tom Tromey  <tromey@redhat.com>
887
888         * valprint.c (val_print_string): Pass 'encoding' to
889         LA_PRINT_STRING.
890
891 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
892
893         Fix the `stopped language detection' testcase for gcc-4.5.
894         * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
895         * symfile.c (set_initial_language): Move variable filename to a more
896         inner block.  Prefer LANGUAGE_OF_MAIN.
897         * symtab.c (language_of_main): New variable.
898         (set_main_name): Always reset LANGUAGE_OF_MAIN.
899         * symtab.h (language_of_main): New declaration.
900
901 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
902             Pedro Alves  <pedro@codesourcery.com>
903
904         * gdbthread.h (currently_stepping): New declaration.
905         * infrun.c (currently_stepping): Remove the forward declaration.
906         (currently_stepping): Make it global.
907         * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
908         variables tp and step, initialized them.  Pass STEP to to_resume.
909         Print also possibly "PTRACE_SINGLESTEP" if STEP.  Initialize LP->STEP.
910         * remote.c (currently_stepping_callback): New.
911         (remote_vcont_resume)
912         <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
913         New variable tp.  Call currently_stepping_callback and step such
914         thread.
915
916 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
917
918         * infrun.c (follow_exec): Replace symbol_file_add_main by
919         symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
920         breakpoint_re_set.
921         * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
922         clear_symtab_users.
923         * objfiles.c (free_all_objfiles): Likewise.
924         * remote-m32r-sdi.c (m32r_load): Likewise.
925         * solib-som.c (som_solib_create_inferior_hook): Likewise.
926         * symfile.c (new_symfile_objfile): New comment for add_flags.  Call
927         clear_symtab_users with ADD_FLAGS.
928         (reread_symbols): Use parameter 0 for clear_symtab_users.
929         (clear_symtab_users): New parameter add_flags.  Do not call
930         breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
931         (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
932         * symtab.h (clear_symtab_users): New parameter add_flags.
933
934 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
935
936         Fix GCC false warning.
937         * varobj.c (value_get_print_value) <str_addr>: Initialize it.
938
939 2010-10-16  Pierre Muller  <muller@ics.u-strasbg.fr>
940
941         * p-typeprint.c (pascal_type_print_method_args): Fix problem in
942         display of type of method arguments.
943
944 2010-10-15  Tom Tromey  <tromey@redhat.com>
945
946         PR python/11948:
947         * varobj.c (value_get_print_value): Use val_print_string to print
948         lazy strings.
949         * python/py-prettyprint.c (print_string_repr): Use
950         val_print_string to print lazy strings.  Fix cleanup logic.
951         (print_children): Likewise.
952         * python/python-internal.h (gdbpy_extract_lazy_string): Update.
953         * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
954         Change return type to 'void', add 'addr' argument.
955         * value.h (val_print_string): Update.
956         * valprint.c (val_print_string): Add 'encoding' argument.
957         * printcmd.c (print_formatted): Update.
958         * p-valprint.c (pascal_val_print): Update.
959         * m2-valprint.c (print_unpacked_pointer): Update.
960         (m2_print_array_contents): Likewise.
961         * jv-valprint.c (java_value_print): Update.
962         * f-valprint.c (f_val_print): Update.
963         * c-valprint.c (c_val_print): Update.
964         * auxv.c (fprint_target_auxv): Update.
965
966 2010-10-15  Doug Evans  <dje@google.com>
967             Jan Kratochvil  <jan.kratochvil@redhat.com>
968
969         PR exp/12117
970         * gdbtypes.c (check_typedef): Clean up function comment.
971         Keep track of instance flags as we strip typedefs and create a new
972         type to preserve them if necessary.
973         * gdbtypes.h (type) <instance_flags>: Extend the comment.
974
975 2010-10-15  Pierre Muller  <muller@ics.u-strasbg.fr>
976
977         * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
978
979 2010-10-14  Sami Wagiaalla  <swagiaal@redhat.com>
980
981         * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
982         * gdbtypes.c (rank_one_type): Move type comparison code out of here
983         to...
984         (types_equal): ...here. And changed it as follows:
985         Outside of typedefs type must be of the same TYPE_CODE.
986         When compairing two pointers or references they are equal if their
987         targets are equal.
988         Correct pointer conversions.
989
990 2010-10-14  Pierre Muller  <muller@ics.u-strasbg.fr>
991
992         * p-lang.c (is_pascal_string_type): Avoid crashes on structures
993         having fields without names.
994
995 2010-10-13  Tom Tromey  <tromey@redhat.com>
996
997         * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
998
999 2010-10-13  Doug Evans  <dje@google.com>
1000
1001         New python module gdb.types.
1002         * NEWS: Document it.
1003         * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1004         * python/lib/gdb/types.py: New file.
1005
1006         * c-typeprint.c: Whitespace cleanup.
1007         (cp_type_print_method_args): Remove unnecessary forward decl.
1008         (cp_type_print_derivation_info): Ditto.
1009         (c_type_print_varspec_prefix): Mark as static at definition.
1010         (c_type_print_modifier): Fix arg descriptions.
1011
1012 2010-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1013
1014         * python/py-breakpoint.c (bppy_set_condition): New comment.
1015         * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1016         failed PyUnicode_Decode.
1017         (cmdpy_completer): Skip element for failed
1018         python_string_to_host_string.
1019         (cmdpy_init): Return -1 on failed python_string_to_host_string.
1020         * python/py-frame.c (frapy_read_var): Extend the function comment.
1021         * python/py-function.c (fnpy_init): Return -1 on failed
1022         python_string_to_host_string.
1023         * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1024         the function comment.
1025         (infpy_search_memory): Extend the function comment.  Remove the
1026         PyErr_SetString call on already set error state.
1027         * python/py-param.c (set_parameter_value): Extend the function
1028         comment.  Return -1 on failed python_string_to_host_string, twice.
1029         (set_attr): Extend the function comment.
1030         (compute_enum_values): Extend the function comment.  New variable
1031         back_to.  Protect self->enumeration by BACK_TO cleanups.  Return 0 on
1032         failed python_string_to_host_string.
1033         (get_doc_string): Call gdbpy_print_stack on failed
1034         python_string_to_host_string.
1035         (parmpy_init): Extend the function comment.
1036         * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1037         (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1038         failed python_string_to_host_string.
1039         * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1040         (valpy_binop, valpy_richcompare): Extend the function comment.
1041         * python/python.c
1042         (struct python_env) <error_type, error_value, error_traceback>: New
1043         fields.
1044         (restore_python_env): Handle PyErr_Occurred.  Call PyErr_Restore.
1045         (ensure_python_env): Call PyErr_Fetch.
1046         * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1047         failed convert_value_from_python.
1048         (value_get_print_value): Call gdbpy_print_stack on failed
1049         python_string_to_target_python_string.
1050
1051 2010-10-12  Tom Tromey  <tromey@redhat.com>
1052
1053         * python/py-prettyprint.c (search_pp_list): Fix error checking.
1054
1055 2010-10-12  Sami Wagiaalla  <swagiaal@redhat.com>
1056
1057         * gdbtypes.c (do_is_ancestor): New function.
1058         (is_ancestor): Use do_is_ancestor.
1059         (is_public_ancestor): Use do_is_ancestor.
1060
1061 2010-10-12  Pierre Muller  <muller@ics.u-strasbg.fr>
1062
1063         * ser-go32.c (struct dos_ops): Add missing fdopen field.
1064
1065 2010-10-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1066
1067         * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1068
1069 2010-10-11  Doug Evans  <dje@google.com>
1070
1071         * c-typeprint.c (c_type_print_modifier): Add note that this prints
1072         the address space id too.
1073
1074 2010-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1075
1076         Fix attaching to re-prelinked executables on ppc64.
1077         * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1078         initialize it, try to adjust FILESZ field by it.
1079
1080 2010-10-08  Daniel Jacobowitz  <dan@codesourcery.com>
1081
1082         * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1083         messages if info_verbose.
1084
1085 2010-10-08  Ken Werner  <ken.werner@de.ibm.com>
1086
1087         * valops.c (value_cast): Handle vector types.
1088         * valarith.c (value_binop): Widen scalar to vector if appropriate.
1089
1090 2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
1091
1092         * arm-tdep.c (thumb_expand_immediate): New function.
1093         (thumb_instruction_changes_pc): Likewise.
1094         (thumb2_instruction_changes_pc): Likewise.
1095         (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1096         prologue parsing.  Improved support for optimized code.
1097         (thumb_scan_prologue): Do not reply on line-number information,
1098         use same heuristics as arm_scan_prologue insead.
1099         (skip_prologue_function): Accept functions
1100         "__tls_get_addr" and "__aeabi_read_tp".
1101
1102 2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
1103             Daniel Jacobowitz  <dan@codesourcery.com>
1104
1105         * arm-tdep.c (thumb_in_function_epilogue_p)
1106         (arm_in_function_epilogue_p): New.
1107         (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1108         gdbarch_in_function_epilogue_p callback.
1109
1110 2010-10-07  Doug Evans  <dje@google.com>
1111
1112         * cc-with-index.sh (output_file): Default to a.out.
1113
1114         * dwarf2read.c (mapped_index): Rename member index_table to
1115         symbol_table and index_table_slots to symbol_table_slots.
1116         All uses updated.
1117         (create_symbol_hash_table): Renamed from create_index_table.
1118         All callers updated.
1119         (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1120         (write_hash_table): Rename local index_table to symbol_hash_table.
1121
1122         * addrmap.h (addrmap_foreach_fn): New typedef.
1123         (addrmap_foreach): Declare.
1124         * addrmap.c (struct addrmap_funcs): New member foreach.
1125         (addrmap_foreach): New function.
1126         (addrmap_fixed_foreach): New function.
1127         (addrmap_fixed_funcs): Update.
1128         (struct mutable_foreach_data): New struct.
1129         (addrmap_mutable_foreach_worker): New function.
1130         (addrmap_mutable_foreach): New function.
1131         (addrmap_mutable_funcs): Update.
1132
1133 2010-10-07  Paul Hilfinger  <hilfinger@adacore.com>
1134
1135         * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1136         more cases.
1137
1138 2010-10-07  Paul Hilfinger  <hilfinger@adacore.com>
1139
1140         * ada-lang.c (full_match): Declare.
1141         (ada_match_name): Rename to match_name (we should avoid prefixing static
1142         symbols with "ada_").
1143         (match_name): New name for ada_match_name.
1144         (struct ada_psym_data): Remove and replace with...
1145         (struct match_data): User data for map_matching_symbols.
1146         (ada_add_psyms): Remove.
1147         (aux_add_nonlocal_symbols): New function, used as callback for
1148         map_matching_symbols.
1149         (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1150         symbols.
1151         (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1152         (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1153         Rework to use map_matching_symbols instead of map_ada_symtabs.
1154         (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1155         * psymtab.c: Include dependency on dictionary.h.
1156         (match_partial_symbol): New function.
1157         (ada_lookup_partial_symbol): Remove.
1158         (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1159         (map_matching_symbols_psymtab): New function.
1160         (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1161         * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1162
1163 2010-10-06  Paul Hilfinger  <hilfinger@adacore.com>
1164
1165         * ada-lang.c (ada_match_name): Use new API for wild_match.
1166         (wild_match): Change API to be consistent with that of strcmp_iw;
1167         return 0 for a match, and switch operand order.
1168         (full_match): New function.
1169         (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1170         matching to allow use of hashing.
1171         * dictionary.c (struct dict_vector): Generalize iter_name_first,
1172         iter_name_next ot iter_match_first, iter_match_next.
1173         (iter_name_first_hashed): Replace with iter_match_first_hashed.
1174         (iter_name_next_hashed): Replace with iter_match_next_hashed.
1175         (iter_name_first_linear): Replace with iter_match_first_linear.
1176         (iter_name_next_linear): Replace with iter_match_next_linear.
1177         (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1178         (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1179         (dict_iter_match_first): New function.
1180         (dict_iter_match_next): New function.
1181         (dict_hash): New function.
1182         * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1183         * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
1184
1185 2010-10-06  Doug Evans  <dje@google.com>
1186
1187         * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1188
1189 2010-10-06  Ken Werner  <ken.werner@de.ibm.com>
1190
1191         * dwarf2read.c (read_tag_const_type): Handle const arrays.
1192
1193 2010-10-06  Doug Evans  <dje@google.com>
1194
1195         * Makefile.in (REQUIRED_SUBDIRS): New var.
1196         (subdir_do): Verify required subdir Makefiles exist.
1197
1198         Create subdir data-directory.
1199         * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1200         data-directory/Makefile.in.
1201         (SUBDIRS): Add data-directory.
1202         (all): Remove xml-syscall-copy dependency.
1203         (xml-syscall-copy): Moved to data-directory/Makefile.in as
1204         stamp-syscalls.
1205         (xml-syscall-install): Moved to data-directory/Makefile.in as
1206         install-syscalls.
1207         (install-only): Remove xml-syscall-install dependency.
1208         (all-data-directory): New rule.
1209         (data-directory/Makefile): New rule.
1210         * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1211         * configure: Regenerate.
1212         * data-directory/Makefile.in: New file.
1213         * python/lib/gdb/__init__.py: New file.
1214
1215 2010-10-06  Joel Brobecker  <brobecker@adacore.com>
1216
1217         Fix ARI warnings in advance_wild_match.
1218         * ada-lang.c (advance_wild_match): Delete local variable t2.
1219         Adjust code accordingly.  Minor reformatting.
1220
1221 2010-10-06  Ken Werner  <ken.werner@de.ibm.com>
1222
1223         * gdbtypes.h (struct main_type): Remove flag_nottext.
1224         (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1225         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1226         (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1227         * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1228         of TYPE_FLAG_NOTTEXT.
1229         (init_type): Remove the initialization of the flag_nottext field.
1230         (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1231         TYPE_FLAG_NOTTEXT.
1232         * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1233
1234 2010-10-04  Doug Evans  <dje@google.com>
1235
1236         * cc-with-index.sh: New file.
1237
1238         * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1239         function comment.
1240         (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1241         (create_cus_from_index, create_addrmap_from_index): Ditto.
1242         (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1243         (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1244         (dw2_do_expand_symtabs_matching): Ditto.
1245         (eq_strtab_entry, create_strtab, add_string): Ditto.
1246         (hash_strtab_entry): Ditto.
1247         (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1248         (create_index_table, create_mapped_symtab, find_slot): Ditto.
1249         (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1250         (write_hash_table, add_address_entry, write_psymbols): Ditto.
1251         (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1252         (write_psymtabs_to_index): Ditto.
1253
1254 2010-10-04  Joel Brobecker  <brobecker@adacore.com>
1255
1256         * ada-lang.c: #include "value.h".
1257         (ensure_lval): Delete advance declaration.  Remove gdbarch and sp
1258         arguments.  Implement using value_allocate_space_in_inferior
1259         instead of allocating memory from the stack.
1260         (make_array_descriptor): Remove gdbarch and sp parameters.  Update
1261         calls to ensure_lval.
1262         (ada_convert_actual): Remove gdbarch and sp parameters.  Update
1263         calls to make_array_descriptor and ensure_lval.
1264         * ada-lang.h (ada_convert_actual): Update declaration.
1265         * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1266
1267 2010-10-04  Doug Evans  <dje@google.com>
1268
1269         * python/python.c (_initialize_python): Define new function
1270         GdbSetPythonDirectory in python.  Use it to update sys.path and
1271         gdb.__path__.
1272
1273 2010-10-03  Paul Hilfinger  <hilfinger@adacore.com>
1274
1275         * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1276         incorporating and generalizing print_record_field_types.
1277         (print_record_field_types): Change return value and update comment.
1278         Re-implement using print_selected_record_field_types.
1279         (print_choices): Print "=>" here.
1280         Handle case of unencoded variant branch.
1281         (print_variant_clauses): Reformat comment.
1282         Special-case unencoded variant branch.
1283
1284 2010-10-03  Paul Hilfinger  <hilfinger@adacore.com>
1285
1286         * ada-lang.c (wild_match): Reimplement.
1287         Change API to eliminate unused length argument, reverse arguments and
1288         make 0 the 'true' return value.
1289         (advance_wild_match): New auxiliary function for wild_match to improve
1290         readability.
1291         (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1292         * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1293         API for wild_match.
1294         * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1295         wild_match.
1296         * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1297
1298 2010-10-01  Doug Evans  <dje@google.com>
1299
1300         * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1301         for `save gdb-index' command.
1302
1303 2010-10-01  Tom Tromey  <tromey@redhat.com>
1304
1305         * symfile.h (allocate_symtab): Update.
1306         * symfile.c (allocate_symtab): Make 'filename' const.
1307         * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1308         (add_psymbol_to_list): Likewise.
1309         * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1310         const.
1311         (add_psymbol_to_list): Update.
1312         * mdebugread.c (new_symtab): Make 'name' const.
1313         (psymtab_to_symtab_1): Make 'filename' const.
1314         * elfread.c (elfstab_offset_sections): Update.
1315         * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1316         (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1317         (psymtab_include_file_name): Update.
1318         * dbxread.c (find_stab_function_addr): Make 'filename' const.
1319         * buildsym.h (start_subfile): Update.
1320         * buildsym.c (start_subfile): Make arguments const.
1321
1322 2010-09-30  Ali Lakhia  <lakhia@alumni.utexas.net>
1323
1324         * fork-child.c (breakup_args): Fix crash if shell forking is
1325         disabled at compile time.
1326
1327 2010-10-01  Joel Brobecker  <brobecker@adacore.com>
1328
1329         * ada-lang.c (desc_bounds): Add handling of the case where
1330         the P_BOUNDS field is a pointer to a stub.
1331         (desc_data_target_type): Same for P_ARRAY field.
1332         (ada_check_typedef): Strip the typedef layers from the type
1333         found by ada_find_any_type.
1334
1335 2010-10-01  Joel Brobecker  <brobecker@adacore.com>
1336
1337         * sparc-tdep.c (sparc32_frame_align): New function.
1338         (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1339         * sparc64-tdep.c (sparc64_frame_align): New function.
1340         (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1341
1342 2010-09-30  H.J. Lu  <hongjiu.lu@intel.com>
1343
1344         * defs.h (MAX_REGISTER_SIZE): Set to 64.
1345
1346 2010-09-30  Tom Tromey  <tromey@redhat.com>
1347
1348         * symfile.h (struct sym_fns) <next>: Remove.
1349         (add_symtab_fns): Update.
1350         * symfile.c (sym_fns_ptr): New typedef.
1351         (symtab_fns): Now a VEC.
1352         (add_symtab_fns): Update.  Change argument type.
1353         (find_sym_fns): Update.  Change return type.
1354         (get_symfile_segment_data): Update.
1355         * objfiles.h (struct objfile) <sf>: Now const.
1356         * somread.c (som_sym_fns): Now const.  Update.
1357         * xcoffread.c (xcoff_sym_fns): Now const.  Update.
1358         * mipsread.c (ecoff_sym_fns): Now const.  Update.
1359         * machoread.c (macho_sym_fns): Now const.  Update.
1360         * elfread.c (elf_sym_fns): Now const.  Update.
1361         (elf_sym_fns_gdb_index): Likewise.
1362         * dbxread.c (aout_sym_fns): Now const.  Update.
1363         * coffread.c (coff_sym_fns): Now const.  Update.
1364
1365 2010-09-30  Tom Tromey  <tromey@redhat.com>
1366
1367         * value.c (value_primitive_field): Take 'offset' into account for
1368         packed field.
1369
1370 2010-09-30  Tom Tromey  <tromey@redhat.com>
1371
1372         * completer.c (count_struct_fields): Handle anonymous structs and
1373         unions.
1374         (add_struct_fields): Likewise.
1375
1376 2010-09-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
1377
1378         Fix printing parameters of inlined functions.
1379         * ada-lang.c (is_known_support_routine)
1380         (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1381         for find_frame_funname.
1382         * python/py-frame.c (frapy_name): Likewise.
1383         * stack.c (find_frame_funname): New parameter funcp.  Update the
1384         function comment.  Fill it in.
1385         (print_frame): New variable func.  Initialize it by
1386         find_frame_funname.  Print arguments only if FUNC is not NULL.  Use
1387         FUNC as the parameter of print_args_stub.
1388         * stack.h (find_frame_funname): New parameter funcp.  Remove the
1389         function declaration comment.
1390
1391 2010-09-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
1392
1393         PR corefiles/12071.
1394         * inferior.c (have_live_inferiors): New variables old_chain, inf and
1395         tp.  Iterate INFERIOR_LIST and call target_has_execution.
1396
1397 2010-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1398
1399         Fix GDB crash on inferior calls with self-referencing classes.
1400         * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1401         member fields.
1402
1403 2010-09-29  Doug Evans  <dje@google.com>
1404
1405         Workaround for gcc/45682.
1406         * dwarf2read.c (partial_die_info): New fields fixup_called,
1407         linkage_name.
1408         (guess_partial_die_structure_name): Renamed from guess_structure_name.
1409         Move definition next to use.  Use linkage_name to determine if class
1410         is in a namespace.  All callers updated.
1411         (fixup_partial_die): Return early if already called.
1412         Set fixup_called when done.
1413         (guess_full_die_structure_name): New function.
1414         (determine_prefix): Call it for class/struct/union dies if c++ and
1415         .debug_types section is present and parent is DW_TAG_compile_unit.
1416
1417 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1418
1419         * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1420         (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1421
1422 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1423
1424         * NEWS: Announce Ravenscar Profile support.
1425
1426 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1427             Jerome Guitton  <guitton@adacore.com>
1428
1429         * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1430         New files.
1431         * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1432         ravenscar-sparc-thread.o to gdb_target_obs.
1433
1434 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1435
1436         * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1437         * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1438
1439 2010-09-27  Pierre Muller  <muller@ics.u-strasbg.fr>
1440
1441         * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1442         (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1443         skip_main_prologue method.
1444
1445 2010-09-27  Tom Tromey  <tromey@redhat.com>
1446
1447         * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1448         (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1449         Only emit a given psymbol once.
1450         (struct signatured_type_index_data) <psyms_seen>: New field.
1451         (write_one_signatured_type): Update.
1452         (cleanup_htab): New function.
1453         (write_psymtabs_to_index): Update.  Create psyms_seen hash.  Bump
1454         version to 3.
1455         (save_gdb_index_command): Update index documentation.
1456
1457 2010-09-27  Tom Tromey  <tromey@redhat.com>
1458
1459         * bcache.c (expand_hash_table): Use hash_function, not hash.
1460
1461 2010-09-27  Tom Tromey  <tromey@redhat.com>
1462
1463         * gdb_wchar.h: Change minimum libiconv to 0x108.
1464
1465 2010-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1466
1467         Fix lost siginfo_t for inferior calls.
1468         * infrun.c
1469         (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1470         (save_inferior_thread_state): New variables regcache, gdbarch and
1471         siginfo_data.  Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1472         Move INF_STATE allocation later, pre-clear it.  Initialize REGISTERS
1473         using REGCACHE.
1474         (restore_inferior_thread_state): New variables regcache and gdbarch.
1475         Restore SIGINFO_DATA for matching GDBARCH.  Restore REGISTERS using
1476         REGCACHE.  Free also SIGINFO_DATA.
1477
1478 2010-09-24  Tom Tromey  <tromey@redhat.com>
1479
1480         * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1481         MAYBE_SWAPs.
1482         (dw2_map_symbol_names): Likewise.
1483
1484 2010-09-24  Sami Wagiaalla  <swagiaal@redhat.com>
1485
1486         * valops.c (find_oload_champ_namespace_loop): replace incorrect
1487         discard_cleanups do_cleanups.
1488
1489 2010-09-24  Pedro Alves  <pedro@codesourcery.com>
1490
1491         PR gdb/11842
1492
1493         * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1494         (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1495         si_code is < 0.  Check for si_code == SI_TIMER before checking for
1496         si_code < 0.
1497
1498 2010-09-24  Pedro Alves  <pedro@codesourcery.com>
1499
1500         * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1501
1502 2010-09-22  Joel Brobecker  <brobecker@adacore.com>
1503
1504         * ada-tasks.c (read_atcb): Do not compute the task ptid when
1505         debugging a core file.
1506
1507 2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1508
1509         Code cleanup.
1510         * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1511         (free_objfile) <objfile->name != NULL>: Remove the conditional around
1512         xfree.
1513         * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1514         * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1515         Remove.
1516         * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1517         Remove the conditional.
1518         * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1519
1520 2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1521
1522         * main.c: Include objfiles.h.
1523         (captured_main): New variable objfile.  Call
1524         load_auto_scripts_for_objfile for ALL_OBJFILES.
1525
1526 2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1527
1528         * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1529         DW_TAG_constant.
1530
1531 2010-09-22  Joel Brobecker  <brobecker@adacore.com>
1532
1533         * dwarf2read.c (scan_partial_symbols): Add handling of
1534         DW_TAG_constant DIEs.
1535         (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1536
1537 2010-09-22  Joel Brobecker  <brobecker@adacore.com>
1538
1539         * configure.ac: Add support for --enable-gdbserver.
1540         * configure: Regenerate.
1541
1542 2010-09-22  Sami Wagiaalla  <swagiaal@redhat.com>
1543
1544         PR C++/12028
1545         * valops.c (find_oload_champ_namespace_loop): removed incorrect
1546         'old_cleanups' reassignment.
1547
1548 2010-09-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1549
1550         * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1551         characters.
1552
1553 2010-09-16  Phil Muldoon  <pmuldoon@redhat.com>
1554
1555         PR mi/11407
1556         * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1557         read_var_value and common_val_print and print a warning.
1558
1559 2010-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1560
1561         * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1562         keep the list in alphabetical order.  Use longer e-mail address.
1563
1564 2010-09-15  Tom Tromey  <tromey@redhat.com>
1565
1566         * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1567
1568 2010-09-15  Tom Tromey  <tromey@redhat.com>
1569
1570         * charset.c (iconv_open): New define.
1571         (iconv): Likewise.
1572         (iconv_close): Likewise.
1573         (phony_iconv_open): Add "phony_" prefix.
1574         (phony_iconv_close): Likewise.
1575         (phony_iconv): Likewise.
1576         * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1577         Change how INTERMEDIATE_ENCODING is defined.
1578
1579 2010-09-15  Doug Evans  <dje@google.com>
1580
1581         * dwarf2read.c (struct die_info): Fix comment.
1582
1583 2010-09-15  Alan Modra  <amodra@gmail.com>
1584
1585         PR 4606
1586         * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1587         than setting SEC_NEVER_LOAD on sections that need not be copied.
1588
1589 2010-09-14  Tom Tromey  <tromey@redhat.com>
1590
1591         * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1592         (start_psymtab_common, allocate_psymtab, discard_psymtab):
1593         Declare.
1594         * symfile.h (extend_psymbol_list): Remove.
1595         (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1596         (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1597         * psymtab.c (extend_psymbol_list): Move earlier.  Now static.
1598
1599 2010-09-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
1600
1601         * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1602         Update the comment.
1603
1604 2010-09-14  Tom Tromey  <tromey@redhat.com>
1605
1606         PR symtab/8399:
1607         * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1608         for unrecognized frame base expression.
1609
1610 2010-09-14  Tom Tromey  <tromey@redhat.com>
1611
1612         PR exp/11803:
1613         * value.c (value_static_field): Use value_of_variable.
1614
1615 2010-09-14  Pierre Muller  <muller@ics.u-strasbg.fr>
1616
1617         * m32r-rom.c: Replace winsock.h with winsock2.h header.
1618         * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1619
1620 2010-09-13  Sami Wagiaalla  <swagiaal@redhat.com>
1621
1622         PR symtab/11992:
1623         * c-exp.y (classify_name): Check is_a_member_of_this before returning
1624         UNKNOWN_CPP_NAME.
1625
1626 2010-09-13  Joel Brobecker  <brobecker@adacore.com>
1627
1628         * NEWS: Add x86-lynxos to the list of platforms supported by
1629         gdbserver.
1630
1631 2010-09-13  Joel Brobecker  <brobecker@adacore.com>
1632
1633         * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1634
1635 2010-09-13  Tom Tromey  <tromey@redhat.com>
1636
1637         * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1638
1639 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1640
1641         * i386-tdep.c (i386_ymm_type): Set type name to
1642         builtin_type_vec256i.
1643
1644 2010-09-12  Michael Snyder  <msnyder@vmware.com>
1645
1646         * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1647
1648 2010-09-12  H.J. Lu  <hongjiu.lu@intel.com>
1649
1650         * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1651
1652 2010-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1653
1654         * amd64-tdep.c (amd64_register_name): Removed.
1655         (amd64_init_abi): Don't call set_gdbarch_register_name.
1656
1657         * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1658
1659         * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1660
1661 2010-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1662             Paul Bolle  <pebolle@tiscali.nl>
1663
1664         Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1665         * cli-logging.c (struct saved_output_files) <targerr>: New.
1666         (set_logging_redirect, pop_output_files, handle_redirections):
1667         Redirect also gdb_stdtargerr.
1668         * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1669         declarations.
1670         * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1671         also gdb_stdtargerr.
1672         * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1673         to the top.  Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1674         Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1675         * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1676         * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1677         New functions.
1678
1679 2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
1680
1681         * hppa-tdep.c (unwind_command): Use host_address_to_string function
1682         to display a host address.
1683         * monitor.c (monitor_read_memory): Likewise.
1684         * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1685
1686 2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
1687
1688         * coffread.c (struct coff_symbol): Change c_value type from `long' to
1689         `CORE_ADDRESS' as it might contain target addresses.
1690
1691 2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
1692
1693         * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1694         before cast to pointer to avoid warning.
1695
1696 2010-09-09  Kevin Buettner  <kevinb@redhat.com>
1697
1698         * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1699         type to be signed.
1700
1701 2010-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
1702
1703         * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1704         anonymous class partial DIEs.
1705
1706 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1707
1708         * dwarf2read.c (dwarf2_compute_name): Check that the first
1709         argument is a pointer.
1710
1711 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1712
1713         * dwarf2read.c (read_func_scope, read_structure_type)
1714         (read_common_block): Check for a NULL return from new_symbol.
1715
1716 2010-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
1717
1718         * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1719
1720 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1721
1722         * dwarf2read.c (read_structure_type): Move processing of
1723         fields and member functions from here...
1724         (process_structure_scope): ... to here.
1725
1726 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1727
1728         * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1729         the domain type.
1730         (gnuv3_make_method_ptr): Likewise.
1731
1732 2010-09-08  Tom Tromey  <tromey@redhat.com>
1733
1734         * breakpoint.c (create_breakpoint): Add missing _().
1735
1736 2010-09-08  Doug Evans  <dje@google.com>
1737
1738         * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1739
1740 2010-09-08  Tom Tromey  <tromey@redhat.com>
1741
1742         Revert:
1743         2010-09-01  Tom Tromey  <tromey@redhat.com>
1744         * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1745         symtab.h: Revert earlier change.
1746
1747 2010-09-09  Sami Wagiaalla  <swagiaal@redhat.com>
1748
1749         * psymtab.c (add_psymbol_to_bcache): Initialize
1750         obj_section.
1751         memset psymbol.ginfo.value to 0.
1752
1753 2010-09-06  Pedro Alves  <pedro@codesourcery.com>
1754
1755         * infrun.c (resume): Extend comment on ignoring single-step
1756         requests on vfork parents waiting for a vfork-done.
1757
1758 2010-09-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1759             Pedro Alves  <pedro@codesourcery.com>
1760
1761         * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1762         is NULL.
1763         * fork-child.c (startup_inferior) <resume_signal>: Use enum
1764         target_signal type.
1765         * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1766         calling strsignal.  Use enum target_signal type for saved_signo.
1767         (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1768         (linux_nat_wait_1): Use enum target_signal type for signo.  Use
1769         target_signal_to_host before calling strsignal.
1770         * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1771         TARGET_SIGNAL_0.
1772
1773 2010-09-06  Pedro Alves  <pedro@codesourcery.com>
1774             Jan Kratochvil  <jan.kratochvil@redhat.com>
1775
1776         * common/signals.c (ANY): Remove.
1777         (SET): No longer use ANY.
1778
1779 2010-09-06  Yao Qi  <yao@codesourcery.com>
1780
1781         * infrunc(resume): When inferior is waiting_for_vfork_done,
1782         clear step and don't use displaced stepping.
1783
1784 2010-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
1785
1786         * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1787         value specially.
1788
1789 2010-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1790
1791         Code cleanup - split print_stop_reason.
1792         * infrun.c (enum inferior_stop_reason): Remove.
1793         (print_stop_reason): Remove by splitting into ...
1794         (print_exited_reason, print_signal_exited_reason)
1795         (print_no_history_reason, print_signal_received_reason)
1796         (print_end_stepping_range_reason): ... these new functions.  Update
1797         the preceding comment.
1798         (handle_inferior_event): Change the calls to print_exited_reason,
1799         print_signal_exited_reason, print_no_history_reason,
1800         print_signal_received_reason, print_end_stepping_range_reason.
1801         (handle_step_into_function, handle_step_into_function_backward):
1802         Change the calls to print_end_stepping_range_reason.
1803
1804 2010-09-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1805
1806         * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1807         * cli-out.c: Include vec.h.
1808         (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1809         variable stream, initialize it, use it.
1810         (cli_redirect): New function comment.  Replace the stream and
1811         original_stream fields by the new streams field.  Remove the
1812         original_stream != NULL conditional, assert error on NULL instead.
1813         (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1814         (cli_out_data_ctor): Assert non-NULL stream.  Replace the stream and
1815         original_stream fields by the new streams field.
1816         (cli_out_set_stream): Replace the stream field by the new streams
1817         field.
1818         * cli-out.h: Include vec.h.
1819         (ui_filep): New typedef, call DEF_VEC_P for it.
1820         (struct cli_ui_out_data): Replace the stream and original_stream
1821         fields by the new streams field.
1822         * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1823         NULL first.  Extend the comment.
1824         (handle_redirections): Call ui_out_redirect with output.
1825         * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1826         calls outside of the TRY_CATCH block.
1827
1828 2010-09-03  Joel Brobecker  <brobecker@adacore.com>
1829
1830         GDB 7.2 released.
1831
1832 2010-09-02  Joel Brobecker  <brobecker@adacore.com>
1833
1834         Back out the following change:
1835         | 2010-06-29  Hui Zhu  <teawater@gmail.com>
1836         | * record.c (set_record_pic_cmdlist,
1837         | show_record_pic_cmdlist): New variables.
1838         | (set_record_pic_command,
1839         | show_record_pic_command): New functions.
1840         | (record_pic_function, record_pic_line, record_pic_enum,
1841         | set_record_pic_type, record_pic_hide_nofunction,
1842         | record_pic_hide_nosource, record_pic_hide_same): New variables.
1843         | (record_pic_fputs): New function.
1844         | (function_list, node_list, edge_list): New struct.
1845         | (function_list, node_list, edge_list): New variables.
1846         | (record_pic_cleanups, record_pic_node,
1847         | record_pic_edge, cmd_record_pic): New functions.
1848         | (_initialize_record): Add new commands for record pic.
1849
1850 2010-09-02  Daniel Jacobowitz  <dan@codesourcery.com>
1851
1852         * config.in, configure: Regenerated.
1853         * configure.ac: Check for waitpid.
1854         * ser-pipe.c (pipe_close): Wait for the program to exit.
1855
1856 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1857
1858         * cli/cli-logging.c: Include gdb_assert.h.
1859         (set_logging_overwrite): New function.
1860         (logging_redirect): New comment.
1861         (logging_no_redirect_file, set_logging_redirect)
1862         (pop_output_files) <logging_no_redirect_file>: New.
1863         (handle_redirections) <!logging_redirect>: New variable
1864         no_redirect_file.  Remove file autoclose for tee_file_new.  No longer
1865         discard cleanup for the close of former OUTPUT.  Set
1866         LOGGING_NO_REDIRECT_FILE.
1867         (handle_redirections) <logging_redirect>: gdb_assert
1868         LOGGING_NO_REDIRECT_FILE.
1869         (show_logging_command) <logging_redirect handling>: Adjust messages
1870         for SAVED_FILENAME not NULL.
1871         (_initialize_cli_logging): Install set_logging_overwrite and
1872         set_logging_redirect.
1873
1874 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1875
1876         * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1877
1878 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1879
1880         * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1881         (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1882         add $(GDB_WARN_CFLAGS_NO_FORMAT).
1883         (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1884
1885 2010-09-02  Yao Qi  <yao@codesourcery.com>
1886
1887         * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1888         number from a WIFSIGNALED status.
1889
1890 2010-09-01  Tom Tromey  <tromey@redhat.com>
1891
1892         * symtab.h (lookup_type_symbol): Declare.
1893         * symtab.c (lookup_symbol_in_language_full): Rename from
1894         lookup_symbol_in_language.  Add 'for_type' argument.
1895         (lookup_symbol_in_language): New function.
1896         (lookup_type_symbol): Likewise.
1897         (lookup_symbol_aux): Add 'for_type' argument.
1898         (match_symbol_aux): New function.
1899         (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1900         (match_transparent_type): New function.
1901         (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1902         * symfile.h (struct quick_symbol_functions)
1903         <pre_expand_symtabs_matching>: Remove.
1904         <expand_one_symtab_matching>: New field.
1905         * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1906         (pre_expand_symtabs_matching_psymtabs): Remove.
1907         (psym_functions): Update.
1908         * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1909         * dwarf2read.c (dw2_lookup_symbol): Update comment.
1910         (dw2_pre_expand_symtabs_matching): Remove.
1911         (dw2_expand_one_symtab_matching): New function.
1912         (dwarf2_gdb_index_functions): Update.
1913
1914 2010-09-01  Joel Brobecker  <brobecker@adacore.com>
1915
1916         * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1917
1918 2010-09-01  Marc Khouzam  <marc.khouzam@ericsson.com>
1919
1920         * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1921         as a feature reported by -list-target-features.
1922
1923 2010-09-01  Joel Brobecker  <brobecker@adacore.com>
1924
1925         * features/Makefile (WHICH): Add rs6000/powerpc-32.
1926         (powerpc-32.o, powerpc-32.c): New rules.
1927         (clean): Also remove powerpc-32.c.
1928         * regformats/rs6000/powerpc-32.dat: Generate.
1929
1930 2010-08-31  Sami Wagiaalla  <swagiaal@redhat.com>
1931
1932         * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1933         psymbol_bcache_init.
1934         * psymtab.h (psymbol_bcache_init): New function prototype.
1935         (psymbol_bcache_free): New function prototype.
1936         (psymbol_bcache_get_bcache): New function prototype.
1937         * psymtab.c (psymbol_bcache_init): New function.
1938         (psymbol_bcache_free): New function.
1939         (psymbol_bcache_full): New function.
1940         (psymbol_bcache_get_bcache): New function.
1941         (add_psymbol_to_bcache): use psymbol_bcache_full.
1942         * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1943         psymbol_bcache.
1944         * symmisc.c (print_symbol_bcache_statistics): Updated.
1945         (print_objfile_statistics): Updated.
1946         * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1947         psymbol_cache.
1948         (free_objfile): Use psymbol_bcache_free.
1949
1950 2010-08-31  Tom Tromey  <tromey@redhat.com>
1951
1952         PR c++/11961:
1953         * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1954         Don't set TYPE_NAME on the type.
1955
1956 2010-08-31  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
1957
1958         * infrun.c (set_exec_direction_func): Error out if target does not
1959         support reverse execution.
1960
1961 2010-08-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1962
1963         Make linux_get_siginfo_type `type *' unique.
1964         * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1965         (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1966         (linux_get_siginfo_type): New variable linux_gdbarch_data.  Initialize
1967         it.  Use linux_gdbarch_data->siginfo_type as a persistent storage.
1968         (_initialize_linux_tdep): New.
1969
1970 2010-08-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1971
1972         Code cleanup.
1973         * defs.h (find_memory_region_ftype): New typedef.
1974         (exec_set_find_memory_regions): Use it.
1975         * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1976         * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1977         * gcore.c (objfile_find_memory_regions): Likewise.
1978         * gnu-nat.c (gnu_find_memory_regions): Likewise.
1979         * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1980         * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1981         (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1982         find_memory_region_ftype.
1983         (insert_dbx_link_bpt_in_region): Likewise.
1984         (iterate_over_mappings): Likewise.  Drop the comment part about the
1985         function prototype.
1986         (find_memory_regions_callback): Use find_memory_region_ftype.
1987         (proc_find_memory_regions): Likewise.
1988         (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1989         find_memory_region_ftype.
1990         * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1991         * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
1992
1993 2010-08-31  Sami Wagiaalla  <swagiaal@redhat.com>
1994
1995         * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
1996         'static partial_symbol psymbol'.
1997         (psymbol_hash): New function.
1998         (psymbol_compare): New function.
1999         * bcache.c (hash_continue): New.
2000         (hash): Use hash_continue.
2001         * bcache.c: Add hash_function and compare_function
2002         pointers to bcache struct.
2003         (bcache_full): Use bcache->hash_function, and
2004         bcache->compare_function.
2005         (bcache_compare): New function.
2006         (bcache_xmalloc): Take hash_function and
2007         compare_function arguments and initialize the
2008         bcach's pointers.
2009         Updated comment.
2010         * objfiles.c (allocate_objfile): Updated.
2011         * symfile.c (reread_symbols): Updated.
2012         * python/py-type.c (typy_richcompare): Updated.
2013
2014 2010-08-30  Andre Poenitz  <andre.poenitz@nokia.com>
2015             Tom Tromey  <tromey@redhat.com>
2016
2017         PR python/11792:
2018         * python/py-value.c (valpy_get_dynamic_type): New function.
2019         (value_object_getset): Add "dynamic_type".
2020         (valpy_get_type): Fail on error.
2021
2022 2010-08-30  Yao Qi  <yao@codesourcery.com>
2023
2024         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2025         (arm_linux_syscall_next_pc): New.
2026         (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead. 
2027         (arm_linux_init_abi): Initialize syscall_next_pc.
2028         * arm-tdep.c (thumb_get_next_pc_raw):  Get next pc of SWI in Thumb mode.
2029         (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2030         * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc. 
2031         Declare arm_frame_is_thumb.
2032
2033 2010-08-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
2034
2035         Code cleanup.
2036         * breakpoint.c (bpstat_alloc): Remove unused prototype.
2037         (bpstat_alloc): Change parameters cbs to bs_link_pointer.  Adjust the
2038         code.
2039         (bpstat_stop_status): Change root_bs into bs_head and bs_link.  Adjust
2040         calls of bpstat_alloc.  Remove explicit bs chain termination.
2041
2042 2010-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2043
2044         Code cleanup.
2045         * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2046         (my_waitpid): Likewise.
2047
2048 2010-08-27  Doug Evans  <dje@google.com>
2049
2050         * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2051         as appropriate.
2052
2053 2010-08-27  Tom Tromey  <tromey@redhat.com>
2054
2055         * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2056         TYPE_FIELD_IGNORE_BITS.
2057
2058 2010-08-27  Doug Evans  <dje@google.com>
2059
2060         * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2061         the order they're defined in.  munmap .debug_types buffer.
2062
2063 2010-08-26  Doug Evans  <dje@google.com>
2064
2065         * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2066         (dw2_forget_cached_source_info): Rename local cu to per_cu.
2067         (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2068         (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2069         (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2070         (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2071         (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2072         (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2073         (write_psymtabs_to_index): Ditto.
2074
2075 2010-08-26  Pedro Alves  <pedro@codesourcery.com>
2076
2077         * NEWS: Mention libthread_db debugging with core files.
2078
2079 2010-08-26  Doug Evans  <dje@google.com>
2080
2081         * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2082         forward decl.  Pass pst->dirname to dwarf_decode_lines.
2083         (psymtab_include_file_name): New function.
2084         (dwarf_decode_lines): Call it.  Update comments.
2085
2086 2010-08-25  Pedro Alves  <pedro@codesourcery.com>
2087
2088         * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2089         compilation unit being different from target die's.
2090
2091 2010-08-24  Doug Evans  <dje@google.com>
2092
2093         PR symtab/11942
2094         * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2095         debug_types_type_hash.
2096         (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2097         All uses updated.
2098         (lookup_die_type): Renamed from tag_type_to_tag.  First look in
2099         appropriate type_hash table.  All callers updated.
2100         (allocate_signatured_type_table): Renamed from
2101         allocate_signatured_type_hash_table.  All callers updated.
2102         (create_signatured_type_table_from_index): Renamed from
2103         create_signatured_type_hash_from_index.  All callers updated.
2104         (read_die_type): Add comment.  Move actual reading to ...
2105         (read_die_type_1): ... here.  New function.
2106         (follow_die_ref_or_sig): Tweak comment.
2107         (set_die_type): Rewrite to use appropriate choice of
2108         debug_info_type_hash or debug_types_type_hash.
2109         (get_die_type_at_offset): New function.
2110         (get_die_type): Call it.
2111
2112 2010-08-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2113
2114         * python/py-type.c (typy_richcompare): Initialize worklist.
2115
2116 2010-08-24  Daniel Jacobowitz  <dan@codesourcery.com>
2117             Kazu Hirata  <kazu@codesourcery.com>
2118             Jonathan Larmour  <jifl@eCosCentric.com>
2119
2120         * arm-tdep.c: Include features/arm-with-m.c.
2121         (arm_psr_thumb_bit): New.  Update all uses of CPSR_T to
2122         call this function.
2123         (arm_pc_is_thumb): Add a gdbarch argument.  Update all callers.
2124         Check is_m after force-mode.
2125         (arm_gdbarch_init): Check the binary before the target description.
2126         Add check for M profile attribute.  If we have an M-profile device,
2127         but no target register description, use arm-with-m.  Recognize the
2128         new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2129         (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2130         * arm-tdep.h (XPSR_T): Define.
2131         (struct gdbarch_tdep): Add is_m member.
2132         * features/arm-m-profile.xml, features/arm-with-m.c,
2133         features/arm-with-m.xml: New files.
2134
2135 2010-08-23  Doug Evans  <dje@google.com>
2136
2137         * dwarf2read.c (read_structure_type): Add comment.
2138         (read_enumeration_type): Add comment.
2139         (process_enumeration_scope): Move definition of some locals
2140         closer to their use.
2141         (read_namespace_type): Add comment.
2142         (set_die_type): Fix typo in comment.
2143
2144 2010-08-23  Tom Tromey  <tromey@redhat.com>
2145
2146         PR python/11145:
2147         * python/py-value.c: Include expression.h.
2148         (valpy_do_cast): New function.
2149         (valpy_cast): Use it.
2150         (valpy_dynamic_cast): New function.
2151         (valpy_reinterpret_cast): Likewise.
2152         (value_object_methods): Add dynamic_cast, reinterpret_cast.
2153
2154 2010-08-23  Tom Tromey  <tromey@redhat.com>
2155
2156         PR python/11391:
2157         * python/py-value.c (valpy_nonzero): Don't throw error for other
2158         Value types.
2159
2160 2010-08-23  Tom Tromey  <tromey@redhat.com>
2161
2162         PR python/10676:
2163         * python/py-type.c: Include bcache.h, vec.h.
2164         (struct type_equality_entry): New.
2165         (compare_strings): New function.
2166         (check_types_equal): Likewise.
2167         (check_types_worklist): Likewise.
2168         (typy_richcompare): Likewise.
2169         (type_object_type): Set tp_richcompare field.
2170
2171 2010-08-23  Tom Tromey  <tromey@redhat.com>
2172
2173         PR python/10953:
2174         * python/py-type.c (typy_fields): Call check_typedef.
2175         (typy_template_argument): Add TRY_CATCH.
2176
2177 2010-08-23  Tom Tromey  <tromey@redhat.com>
2178
2179         PR python/11915:
2180         * python/py-type.c (typy_array): New function.
2181         (type_object_methods): Add "array".
2182
2183 2010-08-20  Pedro Alves  <pedro@codesourcery.com>
2184
2185         * python/python.c: Include "serial.h".
2186         (gdbpy_event_fds): Change type to `struct serial *' a array from
2187         int array.
2188         (gdbpy_run_events): Change parameters.  Use serial_readchar in
2189         place of read.
2190         (gdbpy_post_event): Use serial_write in place of write.
2191         (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2192         serial_async in place of add_file_handler.
2193
2194 2010-08-20  Pedro Alves  <pedro@codesourcery.com>
2195
2196         * serial.h (gdb_pipe, serial_pipe): Declare.
2197         * serial.c (serial_interface_lookup): Take a const char pointer.
2198         (serial_fdopen): Rename to ...
2199         (serial_fdopen_ops): ... this.  Add an OPS parameter and use it.
2200         Call the OPS' fdopen function if there is one.
2201         (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2202         (serial_pipe): New.
2203         (struct serial_ops) <fdopen>: New field.
2204
2205         * ser-mingw.c (free_pipe_state):
2206         (free_pipe_state): Close output on non-pex pipes.
2207         (pipe_windows_fdopen): New.
2208         (gdb_pipe): New.
2209         (_initialize_ser_windows): Register pipe_windows_fdopen.
2210         * ser-go32.c (gdb_pipe): New.
2211         * ser-pipe.c (pipe_close): Close file descriptor even if there's
2212         no state pointer.
2213         (pipe_ops): Delete.
2214         (gdb_pipe): New.
2215
2216 2010-08-20  Keith Seitz  <keiths@redhat.com>
2217
2218         PR symtab/11465:
2219         * dwarf2read.c (struct delayed_method_info): New struct.
2220         (struct dwarf2_cu): Add vector method_list.
2221         (scan_partial_symbols): Count methods for union, class, structure,
2222         and interface types.
2223         (add_to_method_list): New function.
2224         (free_delayed_list): New function.
2225         (compute_delayed_physnames): New function.
2226         (process_full_comp_unit): Make a cleanup for the CU's delayed
2227         physname list, compute the delayed physnames, and free the
2228         the list.
2229         (dwarf2_add_member_fn): For C++ and Java, delay the computation
2230         of the physname until after the CU is read.
2231
2232         * dwarf2read.c (read_structure_type): Check if the current
2233         DIE's type was already completed after dwarf2_full_name
2234         was called.
2235
2236 2010-08-19  Stan Shebs  <stan@codesourcery.com>
2237
2238         * NEWS: Mention some additional changes.
2239
2240 2010-08-19  Tom Tromey  <tromey@redhat.com>
2241
2242         * Makefile.in (install-python): Add DESTDIR.
2243
2244 2010-08-19  Doug Evans  <dje@google.com>
2245
2246         PR exp/11926
2247         * parser-defs.h (parse_float, parse_c_float): Declare.
2248         * parse.c (parse_float, parse_c_float): New function.
2249         * c-exp.y (parse_number): Call parse_c_float.
2250         * objc-exp.y (parse_number): Ditto.
2251         * p-exp.y (parse_number): Ditto.  Use ANSI/ISO-style definition.
2252         * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2253
2254 2010-08-19  Joel Brobecker  <brobecker@adacore.com>
2255
2256         * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2257         the arguments in the correct order.
2258         * symtab.c (maybe_add_partial_symtab_filename): Declare
2259         the arguments in the correct order.
2260
2261 2010-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2262
2263         * varobj.c (varobj_create): Replace variable old_fi with old_id,
2264         initialize it by null_frame_id, wrap its usage by get_frame_id,
2265         frame_id_p and frame_find_by_id.
2266
2267 2010-08-18  Tom Tromey  <tromey@redhat.com>
2268
2269         PR python/11900:
2270         * configure: Rebuild.
2271         * configure.ac: Add install-python to CONFIG_INSTALL.
2272         * Makefile.in (install-python): New.
2273
2274 2010-08-18  Doug Evans  <dje@google.com>
2275
2276         * gdb_assert.h (gdb_assert_not_reached): New macro.
2277         (gdb_assert_fail): Fix typo in comment.
2278         * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2279         gdb_assert (0).
2280         * darwin-nat.c (darwin_check_new_threads): Ditto.
2281         * dwarf2read.c (dwarf2_get_section_info): Ditto.
2282         (munmap_section_buffer): Ditto.
2283         * m32c-tdep.c (make_types): Ditto.
2284         (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2285         * macroexp.c (get_character_constant): Ditto.
2286         (get_string_literal): Ditto.
2287         * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2288         (mep_pseudo_cr_index, mep_register_type): Ditto.
2289         (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2290         (mep_get_insn, mep_analyze_prologue): Ditto.
2291         * objfiles.c (qsort_cmp): Ditto.
2292         * prologue-value.c (pv_is_identical): Ditto.
2293         * record.c (record_get_loc): Ditto.
2294         * value.c (value_static_field): Ditto.
2295         * xtensa-tdep.c (call0_track_op): Ditto.
2296
2297 2010-08-18  Tom Tromey  <tromey@redhat.com>
2298
2299         PR symtab/11919:
2300         * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2301         * parse.c (parse_field_expression): Use RETURN_MASK_ERROR.  Move
2302         name-copying lower.  Document exception behavior.
2303         * completer.c (expression_completer): Catch exceptions from
2304         parse_field_expression.
2305
2306 2010-08-18  Pedro Alves  <pedro@codesourcery.com>
2307
2308         PR corefile/8210
2309
2310         * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2311         workaround on core files.
2312         (try_thread_db_load_1): Don't try enabling thread event reporting
2313         on core files.
2314         (thread_db_load): Allow thread_db on core files.
2315         (attach_thread): Don't check thread signals on core files, nor try
2316         really attaching to the thread, nor enabling thread event event
2317         reporting.
2318         (thread_db_detach): Don't try disabing thread event reporting or
2319         removing thread event breakpoints when debugging a core file.
2320         (find_new_threads_callback): Don't try enabling thread event
2321         reporting on core files.
2322         (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2323         debugging a core file.
2324         (thread_db_find_new_threads): Don't update thread
2325         cores (processors) when debugging a core (dump).
2326
2327 2010-08-18  Pedro Alves  <pedro@codesourcery.com>
2328
2329         PR corefile/8210
2330
2331         * corelow.c (add_to_thread_list): Don't use
2332         gdbarch_core_reg_section_encodes_pid.  Use bfd_core_file_pid.
2333         (get_core_register_section): Don't use
2334         gdbarch_core_reg_section_encodes_pid.
2335
2336         * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2337         * gdbarch.h, gdbarch.c: Regenerate.
2338         * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2339         gdbarch_core_reg_section_encodes_pid.
2340         * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2341         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2342         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2343
2344 2010-08-18  Yao Qi  <yao@codesourcery.com>
2345
2346         * MAINTAINERS : Add myself under Write After Approval.
2347
2348 2010-08-17  Tom Tromey  <tromey@redhat.com>
2349
2350         * NEWS: Mention template parameter support.
2351
2352 2010-08-17  Pedro Alves  <pedro@codesourcery.com>
2353
2354         PR breakpoints/11371
2355
2356         * breakpoint.c (decref_bp_location): Assert the reference count is
2357         sane.
2358
2359 2010-08-17  Pedro Alves  <pedro@codesourcery.com>
2360
2361         PR breakpoints/11371
2362
2363         * breakpoint.c (breakpoint_init_inferior): Decrement the
2364         location's reference count instead of deleting right away.
2365         (bpstat_free): Decrement the location's reference count.  Make
2366         static.
2367         (bpstat_copy): Increment the location's reference count.
2368         (bpstat_find_breakpoint): Adjust.
2369         (bpstat_num): Adjust.
2370         (print_it_typical): Adjust.  Use the breakpoint pointer in the
2371         bpstat instead of the location's owner.
2372         (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2373         Adjust to record the location's owner in the bpstat.
2374         (watchpoint_check): Use the breakpoint pointer in the bpstat
2375         instead of the location's owner.
2376         (bpstat_check_breakpoint_conditions): Don't handle
2377         bp_watchpoint_scope here.  Use the breakpoint pointer in the
2378         bpstat instead of the location's owner.
2379         (bpstat_stop_status): Defer inferior function calls to after
2380         building the bpstat list.  Handle bp_watchpoint_scope here.  Use
2381         the breakpoint pointer in the bpstat instead of the location's
2382         owner.
2383         (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2384         the location's owner.
2385         (free_bp_location): Don't walk bpstats clearing locations.
2386         (incref_bp_location): New.
2387         (decref_bp_location): New.
2388         (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2389         instead of the location's owner.
2390         (update_global_location_list): Clear the location's owner, and
2391         decrement the location's reference count instead of deleting it
2392         right away.
2393         (breakpoint_retire_moribund): Decrement the location's reference
2394         count instead of deleting it right away.
2395         (bpstat_remove_bp_location): Delete.
2396         (bpstat_remove_breakpoint): New.
2397         (bpstat_remove_bp_location_callback): Delete.
2398         (bpstat_remove_breakpoint_callback): New.
2399         (delete_breakpoint): Iterate over all threads' stop_bpstat's
2400         clearing references to the breakpoint that is being deleted.
2401
2402         * breakpoint.h (struct bp_location) <refc>: New field.
2403         <owner>: Update comments.
2404         (bpstat_free): Delete declaration.
2405         (struct bpstats): Change the type of the breakpoint_at field to
2406         struct breakpoint point, from struct bp_location pointer.  Add new
2407         field bp_location_at.
2408
2409 2010-08-16  Tom Tromey  <tromey@redhat.com>
2410
2411         * NEWS: Fix typo.
2412
2413 2010-08-16  Tom Tromey  <tromey@redhat.com>
2414
2415         * NEWS: Mention watch -location.
2416
2417 2010-08-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2418
2419         * breakpoint.c (update_watchpoint): Add source empty line.  Prefer
2420         EXP_STRING_REPARSE to EXP_STRING.
2421         (watch_command_1): Set also EXP_STRING_REPARSE.
2422         (delete_breakpoint): Free also EXP_STRING_REPARSE.
2423         * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2424         Update comment for exp_string.
2425
2426 2010-08-16  Tom Tromey  <tromey@redhat.com>
2427
2428         * value.c (release_value): Clear 'next' pointer.
2429         * breakpoint.c (watch_command_1): Add 'just_location' argument.
2430         (watch_command_wrapper): Update.
2431         (watch_maybe_just_location): New function.
2432         (watch_command): Update.
2433         (rwatch_command_wrapper): Update.
2434         (rwatch_command): Update.
2435         (awatch_command_wrapper): Update.
2436         (awatch_command): Update.
2437         (check_for_argument): New function.
2438         (_initialize_breakpoint): Update help text.
2439
2440 2010-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
2441
2442         * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2443         typedef'ed function types correctly.
2444
2445 2010-08-13  Tom Tromey  <tromey@redhat.com>
2446
2447         * python/python-internal.h (gdbpy_get_hook_function): Don't
2448         declare.
2449
2450 2010-08-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2451
2452         * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2453         static.
2454
2455 2010-08-13  Ken Werner  <ken.werner@de.ibm.com>
2456
2457         * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2458         the format strings to be compatible with Python 2.4.
2459
2460 2010-08-13  Vladimir Prus  <vladimir@codesourcery.com>
2461
2462         Easier and more stubborn MI memory read commands.
2463
2464         * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2465         and data-write-memory-bytes.
2466         * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2467         (mi_cmd_data_write_memory_bytes): New.
2468         * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2469         (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2470         New.
2471         (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2472         * target.c (target_read_until_error): Remove.
2473         (read_whatever_is_readable, free_memory_read_result_vector)
2474         (read_memory_robust): New.
2475         * target.h (target_read_until_error): Remove.
2476         (struct memory_read_result, free_memory_read_result_vector)
2477         (read_memory_robust): New.
2478
2479 2010-08-13  Hui Zhu  <teawater@gmail.com>
2480
2481         * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2482         (read_comp_unit): Initialize back_to.
2483
2484 2010-08-12  Daniel Jacobowitz  <dan@codesourcery.com>
2485             Pedro Alves  <pedro@codesourcery.com>
2486
2487         * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2488         (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2489         (struct partial_die_info) <has_template_arguments>: New field.
2490         <num_attrs>: Change type to unsigned char.
2491         <building_fullname>: New field.
2492         (dwarf2_build_psymtabs_hard): Set reading_partial_symbols.  Only
2493         allocate a CU if we don't have one already.  Add a cleanup for the
2494         CU.
2495         (partial_die_full_name): Handle template arguments not in
2496         DW_AT_name.
2497         (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2498         (load_full_comp_unit): Only allocate a CU if we don't have one
2499         already.
2500         (do_ui_file_peek_last): New.
2501         (dwarf2_compute_name): Handle template parameters not in
2502         DW_AT_name.
2503         (read_comp_unit): Read and free abbrevs if not read yet.
2504         (load_partial_dies): Handle template arguments not in DW_AT_name.
2505         (find_partial_die): If we have a CU, but no a partial dies yet,
2506         also read in the CU.
2507         (dwarf2_const_value_attr): New, abstracted out from
2508         dwarf2_const_value.
2509         (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2510         dwarf2_const_value_attr.
2511         (determine_prefix): Detect and break loops created by RCVT's debug
2512         info.
2513         (maybe_queue_comp_unit): Bail out early if reading partial
2514         symbols.
2515         (follow_die_offset): Load full CU if we have no dies.
2516         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2517         * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2518
2519 2010-08-11  Tom Tromey  <tromey@redhat.com>
2520             Phil Muldoon  <pmuldoon@redhat.com>
2521
2522         * python/python.c (gdbpy_run_events): New function.
2523         (gdbpy_post_event): Likewise.
2524         (gdbpy_initialize_events): Likewise.
2525         (_initialize_python): Call gdbpy_initialize_events.
2526
2527 2010-08-11  Ken Werner  <ken.werner@de.ibm.com>
2528
2529         * gdb/valarith.c (vector_binop): New function.
2530         (scalar_binop): Likewise.
2531         (value_binop): Call scalar_binop or vector_binop depending on the types.
2532         * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2533         (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2534         to pointers.
2535         * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2536
2537 2010-08-11  Brad Roberts  <braddr@puremagic.com>
2538
2539         * d-lang.c (extract_identifiers): Handle multiple digits.
2540
2541 2010-08-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2542
2543         Code cleanup.
2544         * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2545         Rename to dummy_frame_unwind.
2546         (dummy_frame_unwind): Remove.
2547         * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2548         * frame-unwind.c (frame_unwind_init): Use address of
2549         dummy_frame_unwind and inline_frame_unwind.
2550         * frame.c (create_sentinel_frame): Use address of
2551         sentinel_frame_unwind.
2552         * inline-frame.c (inline_frame_unwinder): Rename to
2553         inline_frame_unwind.
2554         (inline_frame_unwind): Remove.
2555         * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2556         * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2557         sentinel_frame_unwind.
2558         (sentinel_frame_unwind): Remove.
2559         * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2560         struct.
2561
2562 2010-08-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2563
2564         Code cleanup.
2565         * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2566         and returned value.  New comment from frame-unwind.h.
2567         * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2568         Extend the comment.
2569         * frame.c (get_frame_id, frame_unwind_register_value)
2570         (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2571         (get_frame_type, frame_unwind_arch): Do not use the return value of
2572         frame_unwind_find_by_frame.
2573
2574 2010-08-11  Phil Muldoon  <pmuldoon@redhat.com>
2575             Thiago Jung Bauermann  <bauerman@br.ibm.com>
2576             Tom Tromey  <tromey@redhat.com>
2577
2578         * python/python.c (gdbpy_solib_address):  New function.
2579         (gdbpy_decode_line): Likewise.
2580
2581 2010-08-10  Tom Tromey  <tromey@redhat.com>
2582
2583         Revert gdb-add-index addition:
2584         * Makefile.in (install-only): Don't install gdb-add-index.
2585         * gdb-add-index.sh: Remove.
2586
2587 2010-08-09  Kevin Buettner  <kevinb@redhat.com>
2588
2589         * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2590         `target_has_execution' check with `to_has_memory' check.
2591         (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2592         (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2593         with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2594
2595 2010-08-09  Kevin Buettner  <kevinb@redhat.com>
2596
2597         * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2598         (resume_siggnal, resume_step): Move these static globals...
2599         (struct sim_inferior_data): ...into this new struct.
2600         (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2601         New static globals.
2602         (gdb_callback, callbacks_initialized): Move these globals to
2603         a point earlier in the file.
2604         (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2605         (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2606         (gdbsim_close_inferior, gdbsim_resume_inferior)
2607         (gdbsim_stop_inferior): New functions.
2608         (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2609         New constants.
2610         (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2611         (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2612         (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2613         (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2614         (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2615         (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2616         new local variable `sim_data' in each of these functions.  Use
2617         `sim_data' to reference former globals `program_loaded',
2618         `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2619         `resume_step'.
2620         (gdbsim_open): Remove local variable `argv'.  Put results of call
2621         to `gdb_buildargv' in `sim_argv' rather than in `argv'.  Don't
2622         make a cleanup for it.  Free it though when a sim instance cannot
2623         be obtained.
2624         (gdbsim_close): Free sim_argv and null it out as appropriate.
2625         Close sim instances in all inferiors.
2626         (gdbsim_cntrl_c): Stop all inferiors.
2627         (gdbsim_wait): 
2628         (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2629
2630 2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>
2631
2632         * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2633         function after symbol construction is complete.
2634         Do the same for template symbol addition to template_symbols list.
2635
2636 2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>
2637
2638         * symtab.c (symbol_get_demangled_name): Remove assertion and
2639         return NULL when language_specific.cplus_specific is not initialized.
2640         * stabsread.c (define_symbol): Set the name before calling
2641         cp_scan_for_anonymous_namespaces.
2642
2643 2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>
2644
2645         * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2646         SYMBOL_SET_LANGUAGE.
2647         (symbol_init_language_specific): Renamed to symbol_set_language.
2648         * symtab.c (symbol_init_language_specific): Removed redundant check
2649         for language_cplus.
2650         Renamed to symbol_set_language.
2651         * stabsread.c (define_symbol): Updated.
2652         (read_enum_type): Updated
2653         * psymtab.c (add_psymbol_to_bcache): Updated.
2654         * minsyms.c (install_minimal_symbols): Updated.
2655         * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2656         SYMBOL_LANGUAGE to set the language.
2657         * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2658         * mdebugread.c (new_symbol): Ditto.
2659         * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2660         * dwarf2read.c (new_symbol_full): Ditto.
2661         * jv-lang.c (add_class_symbol): Ditto.
2662
2663 2010-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2664
2665         * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2666         (make_cleanup_restore_page_info)
2667         (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2668         * gdbcmd.h (execute_command_to_string): New declaration.
2669         * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2670         (make_cleanup_restore_ui_file): Move to utils.c
2671         (execute_gdb_command) <to_string>: Move ...
2672         * top.c (execute_command_to_string): ... here.  Call
2673         set_batch_flag_and_make_cleanup_restore_page_info.
2674         * utils.c (make_cleanup_restore_integer): New source file blank line.
2675         (make_cleanup_restore_uinteger): New.
2676         (struct restore_ui_file_closure, do_restore_ui_file)
2677         (make_cleanup_restore_ui_file): Move here from python/python.c.
2678         (init_page_info) <batch_flag>
2679         (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2680         (set_batch_flag_and_make_cleanup_restore_page_info): New.
2681
2682 2010-08-06  Maciej W. Rozycki  <macro@codesourcery.com>
2683
2684         * thread.c (add_thread_silent): Use null_ptid instead of
2685         minus_one_ptid while getting rid of stale inferior_ptid.
2686
2687 2010-08-06  Corinna Vinschen  <vinschen@redhat.com>
2688
2689         * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2690         Throughout, call read_encoded_value with ptr_size rather than addr_size.
2691         (decode_frame_entry_1): Remove redundant setting of
2692         addr_size.  Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2693         to determine addr_size in Dwarf versions < 4.  Set ptr_size dependent
2694         on examined frame section.  Add comment to explain why.
2695         * gdbarch.sh (dwarf2_addr_size): Define as variable.  Add lengthy
2696         comment to explain usage.
2697         * gdbarch.c: Regenerate.
2698         * gdbarch.h: Regenerate.
2699
2700         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2701
2702 2010-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2703
2704         Code cleanup.
2705         * varobj.c (varobj_create): Move variables fi, old_fi and block to
2706         a more inner block.
2707
2708 2010-08-05  Pedro Alves  <pedro@codesourcery.com>
2709
2710         * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2711         (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2712         (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2713         (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2714         linux-tdep.o to gdb_target_obs.
2715
2716 2010-08-05  Marc Khouzam  <marc.khouzam@ericsson.com>
2717
2718         * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
2719         argument.
2720
2721 2010-08-05  Hui Zhu  <teawater@gmail.com>
2722
2723         * mips-linux-tdep.c(regset.h): New include.
2724         (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2725         mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2726         mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2727         mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2728         mips_linux_regset_from_core_section): New functions.
2729         (fetch_core_registers, regset_core_fns): Deleted.
2730         (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2731         Deleted regset_core_fns.
2732         * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2733         tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2734         * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2735         and fpregset64.
2736
2737 2010-08-04  Pedro Alves  <pedro@codesourcery.com>
2738
2739         * s390-tdep.c: Include linux-tdep.h.
2740         (s390_gdbarch_init): Call linux_init_abi.
2741
2742 2010-08-04  Pedro Alves  <pedro@codesourcery.com>
2743
2744         * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2745         instead of printing "Thread" here.
2746         * linux-tdep.c: Include inferior.h.
2747         (linux_core_pid_to_str): New.
2748         (linux_init_abi): New.
2749         * linux-tdep.h (linux_init_abi): Declare.
2750         * alpha-linux-tdep.c: Include linux-tdep.h.
2751         (alpha_linux_init_abi): Call linux_init_abi.
2752         * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2753         * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2754         * frv-linux-tdep.c: Include linux-tdep.h
2755         (frv_linux_init_abi): Call linux_init_abi.
2756         * hppa-linux-tdep.c: Include linux-tdep.h
2757         (hppa_linux_init_abi): Call linux_init_abi.
2758         * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2759         * ia64-linux-tdep.c: Include linux-tdep.h.
2760         (ia64_linux_init_abi): Call linux_init_abi.
2761         * m32r-linux-tdep.c: Include linux-tdep.h.
2762         (m32r_linux_init_abi): Call linux_init_abi.
2763         * m68klinux-tdep.c: Include linux-tdep.h.
2764         (m68k_linux_init_abi): Call linux_init_abi.
2765         * microblaze-linux-tdep.c: Include linux-tdep.h.
2766         (microblaze_linux_init_abi): Call linux_init_abi.
2767         * mips-linux-tdep.c: Include linux-tdep.h.
2768         (mips_linux_init_abi): Call linux_init_abi.
2769         * mn10300-linux-tdep.c: Include linux-tdep.h.
2770         (am33_linux_init_osabi): Call linux_init_abi.  Rename the
2771         'gdbinfo' parameter to 'info'.
2772         * ppc-linux-tdep.c: Include linux-tdep.h.
2773         (ppc_linux_init_abi): Call linux_init_abi.
2774         * sh-linux-tdep.c: Include linux-tdep.h.
2775         (sh_linux_init_abi): Call linux_init_abi.
2776         * sparc-linux-tdep.c: Include linux-tdep.h.
2777         (sparc32_linux_init_abi): Call linux_init_abi.
2778         * sparc64-linux-tdep.c: Include linux-tdep.h.
2779         (sparc64_linux_init_abi): Call linux_init_abi.
2780         * xtensa-linux-tdep.c: Include linux-tdep.h.
2781         (xtensa_linux_init_abi): Call linux_init_abi.
2782         * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2783         (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2784         callback.
2785
2786 2010-08-03  Doug Evans  <dje@google.com>
2787
2788         * breakpoint.c (bpdisp_text): Constify bpdisps.
2789         * solib-svr4.c (solib_break_names): Constify.
2790         (bkpt_names, main_name_list): Constify.
2791         (match_main): Constify soname arg.
2792         (bfd_lookup_symbol): Remove unnecessary forward decl.
2793         Constify symname arg.
2794         (enable_break): Constify bkpt_namep.
2795         * symtab.c (search_symbols): Constify types, types2, types3, types4.
2796         (symtab_symbol_info): Constify classnames.
2797
2798 2010-08-03  Phil Muldoon  <pmuldoon@redhat.com>
2799
2800         * NEWS: Document Python value inferior function calls.
2801
2802 2010-08-02  Doug Evans  <dje@google.com>
2803
2804         * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2805
2806 2010-07-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
2807
2808         * linux-thread-db.c (libthread_db_debug): New variable.
2809         (thread_db_find_new_threads_silently): Control verbosity with it.
2810         (try_thread_db_load_1, try_thread_db_load): Likewise.
2811         (find_new_threads_once): Likewise.
2812         (_initialize_thread_db): Set/show it.
2813
2814 2010-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2815
2816         * common/signals.c (signals): Move the content to signals.def.
2817         Include it.  Remove the INDENT comments.
2818
2819 2010-07-30  Tom Tromey  <tromey@redhat.com>
2820
2821         * Makefile.in (install-only): Install gdb-add-index.
2822         * gdb-add-index.sh: New file.
2823
2824 2010-07-31  Renquan Cheng  <crq@gcc.gnu.org>
2825
2826         * MAINTAINERS: Add myself for write after approval privileges.
2827
2828 2010-07-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
2829
2830         * symfile.c (addr_section_name): New function.
2831         (addrs_section_compar): Use it.
2832         (addr_info_make_relative): Use it.  Move variable sect_name into a more
2833         inner block.  Make ".dynbss" and ".sdynbss" checks more strict.
2834
2835 2010-07-30  Tom Tromey  <tromey@redhat.com>
2836
2837         * configure: Rebuild.
2838         * configure.ac: Add missing case for Python 2.7.
2839
2840 2010-07-29  DJ Delorie  <dj@redhat.com>
2841
2842         * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2843         conditions.
2844
2845 2010-07-29  Pedro Alves  <pedro@codesourcery.com>
2846
2847         * PROBLEMS: Remove mention of all problems.
2848
2849 2010-07-28  Pedro Alves  <pedro@codesourcery.com>
2850
2851         PR build/11848
2852         * configure.ac: Check for wresize.
2853         * configure, config.in: Regenerate.
2854         * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2855         with HAVE_WRESIZE.
2856
2857 2010-07-28  Tom Tromey  <tromey@redhat.com>
2858
2859         PR python/11060:
2860         * python/py-type.c (typy_legacy_template_argument): New function,
2861         extracted from typy_template_argument.
2862         (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT.  Return a
2863         value when needed.
2864
2865 2010-07-28  Oleg Nesterov  <oleg@redhat.com>
2866
2867         * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2868
2869 2010-07-27  Tom Tromey  <tromey@redhat.com>
2870
2871         * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2872
2873 2010-07-28  Daniel Jacobowitz  <dan@codesourcery.com>
2874
2875         * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2876         handling DW_AT_object_pointer, and workaround GCC PR 43053.
2877
2878 2010-07-28  Tom Tromey  <tromey@redhat.com>
2879
2880         * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2881
2882 2010-07-28  Joel Brobecker  <brobecker@adacore.com>
2883
2884         * remote.c (remote_download_tracepoint): Add missing gettext markup.
2885         * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2886
2887 2010-07-28  Joel Brobecker  <brobecker@adacore.com>
2888
2889         * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2890         down, just before the block that parse the breakpoint addr_string.
2891
2892 2010-07-28  Tom Tromey  <tromey@redhat.com>
2893
2894         PR c++/9946:
2895         * symfile.c (reread_symbols): Clear template_symbols.
2896         * symtab.h (struct symbol) <is_cplus_template_function>: New
2897         field.
2898         (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2899         (struct template_symbol): New.
2900         * symtab.c (lookup_symbol_aux_local): Use
2901         cp_lookup_symbol_imports_or_template.
2902         * objfiles.h (struct objfile) <template_symbols>: New field.
2903         * objfiles.c (relocate_one_symbol): New function.
2904         (objfile_relocate1): Use it.  Relocate isolated symbols.
2905         * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2906         template_arguments>: New fields.
2907         (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2908         (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2909         (TYPE_TEMPLATE_ARGUMENT): Likewise.
2910         (lookup_typename): Update.
2911         * gdbtypes.c (lookup_typename): Constify "block" argument.
2912         * dwarf2read.c: Include vec.h.
2913         (symbolp): New typedef.
2914         (read_func_scope): Read template arguments.  Allocate a
2915         template_symbol when needed.
2916         (read_structure_type): Read template arguments.
2917         (new_symbol_full): New function, from new_symbol.  Handle
2918         DW_TAG_template_type_param and DW_TAG_template_value_param.
2919         (new_symbol): Rewrite as wrapper.
2920         * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2921         * cp-namespace.c: Include language.h.
2922         (search_symbol_list): New function.
2923         (cp_lookup_symbol_imports_or_template): Likewise.
2924
2925 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
2926
2927         * tui/tui-win.c (make_visible_with_new_height): Resize and move
2928         the command window to the new size and position.
2929
2930 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
2931
2932         * tui/tui-win.c (tui_resize_all): Update the locator's origin's
2933         coordinates.
2934
2935 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
2936
2937         * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
2938         after a detecting a resize.
2939         * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
2940         call.
2941
2942 2010-07-28  Pedro Alves  <pedro@codesourcery.com>
2943
2944         * configure.ac: Check for resize_term.
2945         * configure, config.in: Regenerate.
2946
2947 2010-07-27  Joel Brobecker  <brobecker@adacore.com>
2948
2949         * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2950
2951 2010-07-27  Daniel Jacobowitz  <dan@codesourcery.com>
2952
2953         * dwarf2read.c (read_string): Rename to ...
2954         (read_direct_string): ... this.
2955         (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2956         (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2957
2958 2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2959
2960         * linux-nat.c (linux_nat_lp_status_is_event): New function.
2961         (count_events_callback, select_event_lwp_callback)
2962         (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2963
2964 2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2965
2966         * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2967         (_initialize_ia64_linux_nat): Install it.
2968         * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2969         (linux_nat_set_status_is_event): New.
2970         (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2971         cancel_breakpoints_callback, linux_nat_filter_event)
2972         (linux_nat_wait_1): Use linux_nat_status_is_event.
2973         * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2974
2975 2010-07-27  Tom Tromey  <tromey@redhat.com>
2976
2977         * NEWS: Mention labels, .gdb_index.
2978
2979 2010-07-28  CHENG Renquan  <rqcheng@smu.edu.sg>
2980
2981         * cli/cli-cmds.c (disassemble_command): Add support of disassemble
2982         "start,+length" form of arguments.
2983         * NEWS: Add "Changed commands" (disassemble) section for "Changes
2984         since GDB 7.1"; and merge two separated paragraphs of disassemble
2985         description in "Changes in GDB 7.0".
2986
2987 2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2988
2989         * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2990         * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2991         (fputs_maybe_filtered): Do not do filtering also on
2992         ! INPUT_FROM_TERMINAL_P.
2993
2994 2010-07-27  Joel Brobecker  <brobecker@adacore.com>
2995
2996         * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
2997         in warning message.
2998
2999 2010-07-27  Phil Muldoon  <pmuldoon@redhat.com>
3000
3001         * python/py-value.c (valpy_call): New Function.
3002
3003 2010-07-27  Ken Werner  <ken.werner@de.ibm.com>
3004
3005         * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
3006         types_list_elements variables.
3007
3008 2010-07-26  Tom Tromey  <tromey@redhat.com>
3009
3010         * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3011         TLS with DW_OP_const4u or DW_OP_const8u.
3012
3013 2010-07-26  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3014
3015         * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3016         VSX registers contents.
3017
3018 2010-07-26  Jerome Guitton  <guitton@adacore.com>
3019
3020         * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3021         its adress is null. Add comment to explain why.
3022         (new_symbol): Ditto.
3023
3024 2010-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3025
3026         * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3027         the host signal first.
3028
3029 2010-07-23  Tom Tromey  <tromey@redhat.com>
3030
3031         * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3032         type_comp_units>: New fields.
3033         (dw2_get_cu): New function.
3034         (create_cus_from_index): Remove unused argument.
3035         (create_signatured_type_hash_from_index): New function.
3036         (create_addrmap_from_index): Update.
3037         (dwarf2_read_index): Handle version 2.
3038         (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3039         (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3040         (dw2_print_stats, dw2_expand_all_symtabs)
3041         (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3042         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3043         (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3044         (allocate_signatured_type_hash_table): New function.
3045         (add_signatured_type_cu_to_list): Likewise.
3046         (create_debug_types_hash_table): Use them.  Set type_comp_units.
3047         (read_signatured_type): Ensure section data is available.
3048         (add_address_entry): Don't record empty ranges.
3049         (struct signatured_type_index_data): New.
3050         (write_one_signatured_type): New function.
3051         (write_psymtabs_to_index): Write type CUs.
3052         (save_gdb_index_command): Update comment.
3053         (process_type_comp_unit): Move inititalization of
3054         from_debug_types...
3055         (create_debug_types_hash_table): ... here.
3056
3057 2010-07-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
3058
3059         * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3060         cleanup and generating of gdb script to it.
3061         (gdb): Use redirection from /dev/null.  Use --nx.  Turn off pagination
3062         and terminal size.  Convert $tmpfile to a series of -ex-es.
3063
3064 2010-07-23  Keith Seitz  <keiths@redhat.com>
3065
3066         * symtab.c (basic_lookup_transparent_type): Call pre-expand
3067         hook for STATIC_BLOCK types, too.
3068
3069 2010-07-23  Keith Seitz  <keiths@redhat.com>
3070
3071         * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3072         and vector definition.
3073
3074 2010-07-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
3075
3076         * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3077
3078 2010-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3079
3080         * dwarf2read.c: Include completer.h.
3081         (save_gdb_index_command): Use matching usage command name.
3082         (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3083         Set filename_completer for it.
3084
3085 2010-07-22  Tom Tromey  <tromey@redhat.com>
3086
3087         * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3088         type signature's per-CU data.
3089
3090 2010-07-22  Pedro Alves  <pedro@codesourcery.com>
3091
3092         * NEWS: Mention target reported shared libraries support by
3093         default.
3094
3095 2010-07-21  Pedro Alves  <pedro@codesourcery.com>
3096
3097         PR symtab/11827
3098
3099         Revert:
3100         2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3101         * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3102         and DW_TAG_volatile_type.
3103         (new_symbol): Likewise.
3104
3105 2010-07-21  Sami Wagiaalla  <swagiaal@redhat.com>
3106
3107         * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3108         function symbols before overload resolution.
3109
3110 2010-07-21  Pedro Alves  <pedro@codesourcery.com>
3111
3112         * breakpoint.c (bptype_string): New, abstracted out from
3113         print_one_breakpoint_location.
3114         (print_one_breakpoint_location): Adjust.
3115         (breakpoint_1): Adjust the type column width dynamically.
3116
3117 2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3118
3119         * symfile.c (find_separate_debug_file_by_debuglink): Remove
3120         a gdb_assert call, new comment.
3121
3122 2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3123
3124         * linux-nat.c (linux_handle_extended_wait): Handle case when
3125         event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3126
3127 2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3128
3129         Code cleanup.
3130         * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3131         linux_nat_wait_1.  Use always LP->STATUS afterwards.
3132
3133 2010-07-20  Hui Zhu  <teawater@gmail.com>
3134
3135         * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3136         (inf_ptrace_attach): Ditto.
3137
3138 2010-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3139
3140         Make core files the process_stratum.
3141         * corefile.c (core_target): New variable.
3142         (core_file_command): Remove variable t, use core_target.
3143         * corelow.c (core_ops): Make it static.
3144         (init_core_ops): Change to process_stratum.  Initialize CORE_TARGET.
3145         * defs.h (make_cleanup_unpush_target): New prototype.
3146         * gdbarch.h: Regenerate.
3147         * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3148         * gdbcore.h (core_target): New declaration.
3149         * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3150         variables ops_already_pushed and back_to.  Use push_target,
3151         make_cleanup_unpush_target and discard_cleanups calls.
3152         * record.c (record_open): Replace core_stratum by a core_bfd check.
3153         * target.c (target_is_pushed): New function.
3154         (find_core_target): Remove.
3155         * target.h (enum strata) <core_stratum>: Remove.
3156         (target_is_pushed): New declaration.
3157         (find_core_target): Remove declaration.
3158         * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3159         * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3160
3161 2010-07-19  Hui Zhu  <teawater@gmail.com>
3162
3163         * breakpoint.c (single_step_breakpoints_inserted): New
3164         function.
3165         * breakpoint.h (single_step_breakpoints_inserted): Extern.
3166         * infrun.c (maybe_software_singlestep): Add check code.
3167         * record.c (record_resume): Add code for software single step.
3168         (record_wait): Ditto.
3169
3170 2010-07-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3171
3172         * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3173         a more inner block.  Remove its unused declaration initializer.
3174
3175 2010-07-16  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3176
3177         * NEWS: Mention support for the new ptrace interface and hardware
3178         accelerated watchpoint conditions on powerpc-linux.
3179
3180 2010-07-16  Ozkan Sezer  <sezeroz@gmail.com>
3181
3182         * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3183         long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3184         and host_address_to_string() and %s for pointers.
3185         (debug_to_remove_breakpoint): Likewise.
3186         (debug_to_region_ok_for_hw_watchpoint): Likewise.
3187         (debug_to_can_accel_watchpoint_condition): Likewise.
3188         (debug_to_stopped_data_address): Likewise.
3189         (debug_to_watchpoint_addr_within_range): Likewise.
3190         (debug_to_insert_hw_breakpoint): Likewise.
3191         (debug_to_remove_hw_breakpoint): Likewise.
3192         (debug_to_insert_watchpoint): Likewise.
3193         (debug_to_remove_watchpoint): Likewise.
3194
3195 2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
3196
3197         * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3198         argument.
3199         (cplus_specific): New struct.
3200         * symtab.c (symbol_set_demangled_name): Updated.
3201         Use cplus_specific for cplus symbols.
3202         (symbol_get_demangled_name): Retrive the name from the cplus_specific
3203         struct for cplus symbols.
3204         (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3205         (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3206         * symtab.c (symbol_init_cplus_specific): New function.
3207
3208 2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
3209
3210         * symtab.h (symbol_set_demangled_name): New function.
3211         (symbol_get_demangled_name): New function.
3212         * symtab.c (symbol_set_demangled_name): New function.
3213         (symbol_get_demangled_name): New function.
3214         (symbol_init_language_specific): Use demangled_name setter and getter.
3215         (symbol_set_names): Ditto.
3216         (symbol_natural_name): Ditto.
3217         (symbol_demangled_name): Ditto.
3218         * dwarf2read.c (new_symbol): Ditto.
3219
3220 2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
3221
3222         * symtab.h: Renamed cplus_specific to mangled_lang.
3223         * symtab.c (symbol_init_language_specific): Updated.
3224         (symbol_set_names): Updated.
3225         (symbol_natural_name): Updated.
3226         (symbol_demangled_name): Updated.
3227         * ada-lang.c (ada_decode_symbol): Updated.
3228         * dwarf2read.c (new_symbol): Updated.
3229
3230 2010-07-14  Ken Werner  <ken.werner@de.ibm.com>
3231
3232         * valops.c (value_assign): Do not call to value_coerce_to_target.
3233         (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3234
3235 2010-07-14  Ken Werner  <ken.werner@de.ibm.com>
3236
3237         * MAINTAINERS: Add myself for write after approval privileges.
3238
3239 2010-07-13  Emmanuel Thomé  <Emmanuel.Thome@gmail.com>
3240
3241         * c-valprint.c (c_val_print): Add embedded_offset to address in
3242         call to val_print_array_elements.
3243
3244 2010-07-13  Tom Tromey  <tromey@redhat.com>
3245
3246         * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3247
3248 2010-07-13  Tom Tromey  <tromey@redhat.com>
3249
3250         * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3251         objfile.
3252
3253 2010-07-13  Tom Tromey  <tromey@redhat.com>
3254
3255         * symfile.c (set_initial_language): Update.
3256         (deduce_language_from_filename): Argument type now const.
3257         * symtab.h (find_main_filename): Update.
3258         (deduce_language_from_filename): Update.
3259         * symtab.c (find_main_filename): Make result const.
3260         * dwarf2read.c (dw2_find_symbol_file): Change return type.
3261         * psymtab.c (find_symbol_file_from_partial): Change return type.
3262         * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3263         Make result const.
3264
3265 2010-07-13  Tom Tromey  <tromey@redhat.com>
3266
3267         * breakpoint.c (save_cmdlist): No longer static.
3268         * gdbcmd.h (save_cmdlist): Declare.
3269         * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3270         OBJF_READNOW on objfile if readnow_symbol_files.
3271         * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3272         (elf_sym_fns_gdb_index): New global.
3273         * dwarf2read.c: Include exceptions.h.
3274         (offset_type): New.
3275         (struct mapped_index): New.
3276         (dwarf2_per_cu_data_ptr): New typedef.
3277         (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3278         New fields.
3279         (GDB_INDEX_SECTION): New define.
3280         (struct dwarf2_per_cu_quick_data): New.
3281         (struct dwarf2_per_cu_data) <objfile>: New field.
3282         <psymtab>: Removed.
3283         <v>: New field.
3284         (byte_swap): New function.
3285         (MAYBE_SWAP): New macro.
3286         (INDEX_SUFFIX): New macro.
3287         (dw2_do_instantiate_symtab): New function.
3288         (dw2_instantiate_symtab): Likewise.
3289         (create_cus_from_index): Likewise.
3290         (create_addrmap_from_index): Likewise.
3291         (mapped_index_string_hash): Likewise.
3292         (find_slot_in_mapped_hash): Likewise.
3293         (dwarf2_read_index): Likewise.
3294         (dw2_setup): Likewise.
3295         (dw2_require_line_header): Likewise.
3296         (dw2_require_full_path): Likewise.
3297         (dw2_find_last_source_symtab): Likewise.
3298         (dw2_forget_cached_source_info): Likewise.
3299         (dw2_lookup_symtab): Likewise.
3300         (dw2_lookup_symbol): Likewise.
3301         (dw2_do_expand_symtabs_matching): Likewise.
3302         (dw2_pre_expand_symtabs_matching): Likewise.
3303         (dw2_print_stats): Likewise.
3304         (dw2_dump): Likewise.
3305         (dw2_relocate): Likewise.
3306         (dw2_expand_symtabs_for_function): Likewise.
3307         (dw2_expand_all_symtabs): Likewise.
3308         (dw2_expand_symtabs_with_filename): Likewise.
3309         (dw2_find_symbol_file): Likewise.
3310         (dw2_map_ada_symtabs): Likewise.
3311         (dw2_expand_symtabs_matching): Likewise.
3312         (dw2_find_pc_sect_symtab): Likewise.
3313         (dw2_map_symbol_names): Likewise.
3314         (dw2_map_symbol_filenames): Likewise.
3315         (dw2_has_symbols): Likewise.
3316         (dwarf2_gdb_index_functions): New global.
3317         (dwarf2_initialize_objfile): New function.
3318         (process_psymtab_comp_unit): Update.
3319         (add_partial_subprogram): Likewise.
3320         (dwarf2_psymtab_to_symtab): Likewise.
3321         (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3322         (process_full_comp_unit): Update.
3323         (find_file_and_directory): New function.
3324         (read_file_scope): Use find_file_and_directory.
3325         (dwarf2_per_cu_objfile): Update.
3326         (dwarf2_per_cu_addr_size): Update.
3327         (dwarf2_per_cu_offset_size): Update.
3328         (dwarf2_free_objfile): Free the index, if needed.
3329         (dwarf2_per_objfile_free): Unmap the index, if needed.
3330         (struct strtab_entry): New.
3331         (hash_strtab_entry): New function.
3332         (eq_strtab_entry): Likewise.
3333         (create_strtab): Likewise.
3334         (add_string): Likewise.
3335         (struct symtab_index_entry): New.
3336         (struct mapped_symtab): New.
3337         (hash_symtab_entry): New function.
3338         (eq_symtab_entry): Likewise.
3339         (delete_symtab_entry): Likewise.
3340         (create_index_table): Likewise.
3341         (create_mapped_symtab): Likewise.
3342         (cleanup_mapped_symtab): Likewise.
3343         (find_slot): Likewise.
3344         (hash_expand): Likewise.
3345         (add_index_entry): Likewise.
3346         (add_indices_to_cpool): Likewise.
3347         (write_hash_table): Likewise.
3348         (add_address_entry): Likewise.
3349         (write_psymbols): Likewise.
3350         (write_obstack): Likewise.
3351         (unlink_if_set): Likewise.
3352         (write_psymtabs_to_index): Likewise.
3353         (save_gdb_index_command): Likewise.
3354         (_initialize_dwarf2_read): Install "save gdb-index"
3355         command.
3356         (create_all_comp_units): Initialize 'objfile' field of CU.
3357         (dwarf2_locate_sections): Check for .gdb_index.
3358         * psymtab.h (dwarf2_gdb_index_functions): Declare.
3359         * symfile.h (dwarf2_initialize_objfile): Declare.
3360
3361 2010-07-13  Tom Tromey  <tromey@redhat.com>
3362
3363         * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3364         (basic_lookup_transparent_type): Likewise.
3365         * symfile.h (struct quick_symbol_functions)
3366         <pre_expand_symtabs_matching>: New field.
3367         * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3368         (psym_functions): Update.
3369
3370 2010-07-13  Tom Tromey  <tromey@redhat.com>
3371
3372         PR breakpoints/8357:
3373         * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3374         * linespec.c (decode_line_1): Update comment.  Call decode_label.
3375         (decode_label): New function.
3376         (symbol_found): Handle LOC_LABEL.
3377         * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3378         domain.  Call add_symbol_to_list.
3379
3380 2010-07-13  Tom Tromey  <tromey@redhat.com>
3381
3382         * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3383         * dwarf2loc.c (find_location_expression): Use
3384         dwarf2_per_cu_text_offset.
3385         (dwarf2_evaluate_loc_desc): Likewise.
3386         (dwarf2_loc_desc_needs_frame): Likewise.
3387         (compile_dwarf_to_ax): Likewise.
3388         (loclist_describe_location): Likewise.
3389         * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3390         (dwarf2_per_cu_objfile): Update comment.
3391
3392 2010-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
3393
3394         * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3395         * p-lang.c (pascal_printstr): Likewise.
3396
3397 2010-07-09  Tom Tromey  <tromey@redhat.com>
3398
3399         * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3400         'hint' if it is NULL.
3401
3402 2010-07-09  Hui Zhu  <teawater@gmail.com>
3403
3404         * source.c (print_source_lines_base): Add check for noprint.
3405
3406 2010-07-08  Joel Brobecker  <brobecker@adacore.com>
3407
3408         * python/python-config.py: Resync with Python 2.7 version of this
3409         script.
3410
3411 2010-07-08  Joel Brobecker  <brobecker@adacore.com>
3412
3413         * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3414
3415 2010-07-07  Joel Brobecker  <brobecker@adacore.com>
3416
3417         * NEWS: Create a new section for the next release branch.
3418         Rename the section of the current branch, now that it has
3419         been cut.
3420
3421 2010-07-07  Joel Brobecker  <brobecker@adacore.com>
3422
3423         GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3424         * version.in: Bump version to 7.2.50.20100707-cvs.
3425
3426 2010-07-07  Tom Tromey  <tromey@redhat.com>
3427
3428         * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3429         LOC_COMPUTED symbol.
3430         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3431         (dwarf2_loc_desc_needs_frame): Likewise.
3432         (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3433         * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3434         * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3435         * dwarf2-frame.c (execute_stack_op): Set 'offset' field.  Add
3436         'offset' argument.
3437         (struct dwarf2_frame_cache) <text_offset>: New field.
3438         (dwarf2_frame_cache): Set new field.
3439         (dwarf2_frame_prev_register): Update.
3440         (dwarf2_frame_sniffer): Update.
3441         (dwarf2_frame_base_sniffer): Update.
3442         (dwarf2_frame_find_fde): Add 'out_offset' argument.
3443
3444 2010-07-07  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
3445             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3446
3447         Support for hw accelerated condition watchpoints in booke powerpc.
3448
3449         * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3450         and move to eval.c.  Change callers.
3451         (insert_bp_location): Pass watchpoint condition in
3452         target_insert_watchpoint.
3453         (remove_breakpoint_1) Pass watchpoint condition in
3454         target_remove_watchpoint.
3455         (watchpoint_locations_match): Call
3456         target_can_accel_watchpoint_condition.
3457         * eval.c: Include wrapper.h.
3458         (fetch_subexp_value): Moved from breakpoint.c.
3459         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3460         Formatting fix.
3461         (can_use_watchpoint_cond_accel): New function.
3462         (calculate_dvc): Likewise.
3463         (num_memory_accesses): Likewise.
3464         (check_condition): Likewise.
3465         (ppc_linux_can_accel_watchpoint_condition): Likewise
3466         (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3467         check_condition and calculate_dvc.
3468         (ppc_linux_remove_watchpoint): Likewise.
3469         (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3470         ppc_linux_can_accel_watchpoint_condition
3471         * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3472         condition.
3473         (debug_to_remove_watchpoint): Likewise.
3474         (debug_to_can_accel_watchpoint_condition): New function.
3475         (update_current_target): Set to_can_accel_watchpoint_condition.
3476         (setup_target_debug): Set to_can_accel_watchpoint_condition.
3477         * target.h: Add opaque declaration for struct expression.
3478         (struct target_ops) <to_insert_watchpoint>,
3479         <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3480         <to_can_accel_watchpoint_condition>: New member.
3481         condition.  Update all callers and implementations.
3482         (target_can_accel_watchpoint_condition): New macro.
3483         * value.c (free_value_chain): New function.
3484         * value.h (fetch_subexp_value): New prototype.
3485         (free_value_chain): Likewise.
3486
3487 2010-07-07  Ulrich Weigand  <uweigand@de.ibm.com>
3488
3489         * linux-nat.c (linux_nat_do_thread_registers): Use section size
3490         from gdbarch_core_regset_sections also for .reg if present.
3491
3492         * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3493         section size for .reg.
3494         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3495         (ppc_linux_vmx_regset_sections): Likewise.
3496         (ppc_linux_fp_regset_sections): Likewise.
3497         (ppc64_linux_vsx_regset_sections): New variable.
3498         (ppc64_linux_vmx_regset_sections): Likewise.
3499         (ppc64_linux_fp_regset_sections): Likewise.
3500         (ppc_linux_init_abi): Install core_regset_section lists appropriate
3501         for current word size.
3502
3503 2010-07-06  Joel Brobecker  <brobecker@adacore.com>
3504
3505         * server.c (myresume): Make static.
3506
3507 2010-07-06  Tom Tromey  <tromey@redhat.com>
3508
3509         * configure, config.in: Rebuild.
3510         * configure.ac (HAVE_LIBPYTHON2_7): New define.
3511         * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3512
3513 2010-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3514
3515         * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3516         "clear".
3517
3518 2010-07-06  Ken Werner  <ken.werner@de.ibm.com>
3519
3520         * gdbtypes.h (floatformats_ieee_half): Add declaration.
3521         * gdbtypes.c (floatformats_ieee_half): New variable.
3522         * doublest.c (floatformat_from_length): Set format to
3523         gdbarch_half_format if length matches.
3524         * gdbarch.sh (half_bit): New architecture method.
3525         (half_format): Likewise.
3526         * gdbarch.h: Regenerate.
3527         * gdbarch.c: Likewise.
3528
3529 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3530             Joel Brobecker  <brobecker@adacore.com>
3531
3532         Fix re-run of PIE executable, PR shlibs/11776.
3533         * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3534         the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3535
3536 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3537             Joel Brobecker  <brobecker@adacore.com>
3538
3539         * auxv.c (memory_xfer_auxv): Update attach comment.
3540         * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3541         svr4_relocate_main_executable.
3542         (svr4_solib_create_inferior_hook): Make the call to
3543         svr4_relocate_main_executable unconditional.
3544
3545 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3546             Joel Brobecker  <brobecker@adacore.com>
3547
3548         * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3549
3550 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3551             Joel Brobecker  <brobecker@adacore.com>
3552
3553         Fix attaching to PIEs prelinked on the disk after the process was
3554         started.
3555         * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3556         Verify it against bfd_get_arch_size.  Try to match arbitrary
3557         displacement for the phdrs comparison.
3558
3559 2010-07-02  Tom Tromey  <tromey@redhat.com>
3560
3561         PR exp/11780:
3562         * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3563         value as optimized-out.
3564
3565 2010-07-02  Ulrich Weigand  <uweigand@de.ibm.com>
3566             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3567
3568         * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3569         represent?" question in comment.  Change comment to a proper sentence.
3570
3571 2010-07-02  Ken Werner  <ken.werner@de.ibm.com>
3572
3573         * c-valprint.c (c_val_print): Fix printing of character vectors.
3574
3575 2010-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3576
3577         * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3578         create_breakpoint prototype.
3579
3580 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3581
3582         * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3583         usefulness suggestion of multiple breakpoints at same location.
3584
3585 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3586
3587         * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3588
3589 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3590
3591         * dwarf2loc.c (locexpr_tracepoint_var_ref)
3592         (loclist_tracepoint_var_ref): Handle optimized out values.
3593
3594 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3595
3596         * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3597         unnecessary space in string.
3598         * filesystem.c (_initialize_filesystem): Ditto.
3599         * frame.c (_initialize_frame): Ditto.
3600         * infcmd.c (step_once): Ditto.
3601         * infrun.c (_initialize_infrun): Ditto.
3602         * linux-nat.c (linux_child_follow_fork): Ditto.
3603         * maint.c (maintenance_deprecate): Ditto.
3604         * memattr.c (_initialize_mem): Ditto.
3605         * mips-tdep.c (_initialize_mips_tdep): Ditto.
3606         * monitor.c (monitor_open): Ditto.
3607         * procfs.c (procfs_xfer_memory): Ditto.
3608         * reverse.c (bookmarks_info): Ditto.
3609         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3610         * stack.c (_initialize_stack): Ditto.
3611         * tracepoint.c (_initialize_tracepoint): Ditto.
3612         * xtensa-tdep.c (xtensa_supply_gregset,
3613         xtensa_regset_from_core_section): Ditto.
3614
3615 2010-07-01  Tom Tromey  <tromey@redhat.com>
3616
3617         * value.h (struct lval_funcs) <check_any_valid>: Rename from
3618         check_all_valid.
3619         * value.c (value_entirely_optimized_out): Invert result.  Update
3620         for new function name.
3621
3622 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3623
3624         Static tracepoints support.
3625
3626         * NEWS: Mention new support for static tracepoints.
3627         (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3628         qXfer:statictrace:read.
3629         (New features in the GDB remote stub, GDBserver): Mention static
3630         tracepoints support using an UST based backend.
3631         (New commands): Mention "info static-tracepoint-markers" and
3632         "strace".
3633         * breakpoint.c (is_marker_spec): New.
3634         (is_tracepoint): Handle static tracepoints.
3635         (validate_commands_for_breakpoint): Static tracepoints can't do
3636         while-stepping.
3637         (static_tracepoints_here): New.
3638         (bpstat_what): Handle static tracepoints.
3639         (print_one_breakpoint_location, allocate_bp_location, mention):
3640         Ditto.
3641         (create_breakpoint_sal): Ditto.
3642         (decode_static_tracepoint_spec): New.
3643         (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3644         `type_wanted'.  Adjust.  Handle static tracepoint marker
3645         locations.
3646         (break_command_1): Adjust.
3647         (update_static_tracepoint): New.
3648         (update_breakpoint_locations): Handle static tracepoints.
3649         (breakpoint_re_set_one): Handle static tracepoint marker
3650         locations.
3651         (disable_command, enable_command): Handle static tracepoints.
3652         (trace_command, ftrace_command): Adjust.
3653         (strace_command): New.
3654         (create_tracepoint_from_upload): Adjust.
3655         (save_breakpoints): Handle static tracepoints.
3656         (_initialize_breakpoint): Install the "strace" command.
3657         * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3658         (struct breakpoint): New fields static_trace_marker_id and
3659         static_trace_marker_id_idx.
3660         (breakpoints_here_p): Declare.
3661         (create_breakpoint): Adjust.
3662         (static_tracepoints_here): Declare.
3663         * remote.c (struct remote_state) <static_tracepoints>: New field.
3664         (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3665         (remote_static_tracepoint_marker_at): New.
3666         (remote_static_tracepoint_markers_by_strid): New.
3667         (remote_static_tracepoint_feature): New.
3668         (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3669         (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3670         (remote_supports_static_tracepoints): New.
3671         (remote_download_tracepoint): Download static tracepoints.
3672         (init_remote_ops): Install remote_static_tracepoint_marker_at and
3673         remote_static_tracepoint_markers_by_strid.
3674         (_initialize_remote): Install set|show remote static-tracepoints,
3675         and set|show remote read-sdata-object commands.
3676         * target.c (update_current_target): Inherit and default
3677         to_static_tracepoint_marker_at, and
3678         to_static_tracepoint_markers_by_strid.
3679         * target.h (static_tracepoint_marker): Forward declare.
3680         (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3681         (static_tracepoint_marker_p): New typedef.
3682         (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3683         (struct target_ops): New fields to_static_tracepoint_marker_at and
3684         to_static_tracepoint_markers_by_strid.
3685         (target_static_tracepoint_marker_at)
3686         (target_static_tracepoint_markers_by_strid): New.
3687         * tracepoint.c: Include source.h.
3688         (validate_actionline): Handle $_sdata.
3689         (struct collection_list): New field strace_data.
3690         (add_static_trace_data): New.
3691         (clear_collection_list): Clear strace_data.
3692         (stringify_collection_list): Account for a possible static trace
3693         data collection.
3694         (encode_actions_1): Encode an $_sdata collection.
3695         (parse_tracepoint_definition): Handle static tracepoints.
3696         (parse_static_tracepoint_marker_definition): New.
3697         (release_static_tracepoint_marker): New.
3698         (print_one_static_tracepoint_marker): New.
3699         (info_static_tracepoint_markers_command): New.
3700         (sdata_make_value): New.
3701         (_initialize_tracepoint): Create the $_sdata convenience variable.
3702         Add the "info static-tracepoint-markers" command.
3703         Mention $_sdata in the "collect" command's help output.
3704         * tracepoint.h (struct static_tracepoint_marker): New.
3705         (parse_static_tracepoint_marker_definition)
3706         (release_static_tracepoint_marker): Declare.
3707         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3708         * python/py-breakpoint.c (bppy_new): Adjust.
3709
3710 2010-06-30  Joel Brobecker  <brobecker@adacore.com>
3711
3712         * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3713         including Python.h.
3714
3715 2010-06-29  Doug Evans  <dje@google.com>
3716
3717         PR gdb/11702
3718         * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3719         DW_AT_external is present.
3720
3721         PR gdb/11702
3722         * NEWS: Add entry.
3723         * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3724         create a symbol for the field and record the value.
3725         (new_symbol): Handle DW_TAG_member.
3726         * gdbtypes.c (field_is_static): Remove FIXME.
3727         * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3728         only ignore LOC_CONST symbols that are enums.
3729
3730         * dwarf2read.c: Remove trailing whitespace.
3731
3732         Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3733         * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3734         (struct main_type, field loc): Delete dwarf_block.
3735         (FIELD_DWARF_BLOCK): Delete.
3736         (SET_FIELD_DWARF_BLOCK): Delete.
3737         (TYPE_FIELD_DWARF_BLOCK): Delete.
3738         * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3739         Update.
3740
3741 2010-06-29  Hui Zhu  <teawater@gmail.com>
3742
3743         * record.c (set_record_pic_cmdlist,
3744         show_record_pic_cmdlist): New variables.
3745         (set_record_pic_command,
3746         show_record_pic_command): New functions.
3747         (record_pic_function, record_pic_line, record_pic_enum,
3748         set_record_pic_type, record_pic_hide_nofunction,
3749         record_pic_hide_nosource, record_pic_hide_same): New variables.
3750         (record_pic_fputs): New function.
3751         (function_list, node_list, edge_list): New struct.
3752         (function_list, node_list, edge_list): New variables.
3753         (record_pic_cleanups, record_pic_node,
3754         record_pic_edge, cmd_record_pic): New functions.
3755         (_initialize_record): Add new commands for record pic.
3756
3757 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3758
3759         * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3760         ALLOCATE_CPLUS_STRUCT_TYPE.
3761
3762 2010-06-28  Phil Muldoon  <pmuldoon@redhat.com>
3763             Tom Tromey  <tromey@redhat.com>
3764             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3765
3766         * value.c (pack_unsigned_long): New function.
3767         (value_from_ulongest): New function.
3768         * value.h (value_from_ulongest): Declare.
3769         * python/python.c (_initialize_python): Call
3770         gdbpy_initialize_thread and gdbpy_initialize_inferior.
3771         * python/python-internal.h: Define thread_object.
3772         (gdbpy_inferiors, gdbpy_selected_thread)
3773         (frame_info_to_frame_object, create_thread_object)
3774         (find_thread_object, find_inferior_object)
3775         (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3776         (gdbpy_is_value_object, get_addr_from_python): Declare.
3777         * python/py-value.c (builtin_type_upylong): Define.
3778         (convert_value_from_python): Add logic for ulongest.
3779         (gdbpy_is_value_object): New function.
3780         * python/py-utils.c (get_addr_from_python): New function.
3781         * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3782         (gdbpy_selected_frame): Use PyObject over frame_info.
3783         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3784         py-infthread.
3785         (SUBDIR_PYTHON_SRCS): Likewise.
3786         (py-inferior.o): New Rule.
3787         (py-infthread.o): New Rule.
3788         * python/py-inferior.c: New File.
3789         * python/py-infthread.c: New File.
3790
3791 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3792
3793         * c-typeprint.c (c_type_print_base): For no fields check include also
3794         TYPE_TYPEDEF_FIELD_COUNT.  Print new typedefs section.
3795         * dwarf2read.c (struct typedef_field_list)
3796         (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3797         (dwarf2_add_typedef): New.
3798         (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3799         Copy also FI.TYPEDEF_FIELD_LIST.
3800         * gdbtypes.h (struct typedef_field)
3801         (struct cplus_struct_type) <typedef_field, typedef_field_count>
3802         (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3803         (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3804
3805 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3806
3807         * cp-namespace.c (cp_lookup_nested_type): New variable
3808         concatenated_name.  Turn the current return condition into a reverse
3809         one.  Call also lookup_static_symbol_aux on the constructed qualified
3810         name.
3811         * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3812         other files into a called ...
3813         (lookup_static_symbol_aux): ... new function here.
3814         * symtab.h (lookup_static_symbol_aux): New prototype.
3815         * valops.c (value_maybe_namespace_elt): Call also
3816         lookup_static_symbol_aux if we failed otherwise.
3817
3818 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3819
3820         Fix PR c++/11703 and PR gdb/1448.
3821         * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3822         FIRST_ITER check.
3823
3824 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3825
3826         Fix modification of cplus_struct_default.
3827         * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3828         Call ALLOCATE_CPLUS_STRUCT_TYPE.
3829         * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3830
3831 2010-06-28  Joel Brobecker  <brobecker@adacore.com>
3832
3833         * NEWS: Add entry announcing the python directory.
3834
3835 2010-06-28  Tom Tromey  <tromey@redhat.com>
3836
3837         * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3838
3839 2010-06-28  Doug Evans  <dje@google.com>
3840
3841         * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3842         All callers updated.
3843
3844 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3845
3846         * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3847         obstack_begin after each obstack_free.
3848
3849 2010-06-27  Doug Evans  <dje@google.com>
3850
3851         * value.c (value_static_field): Use `switch' instead of `if'.
3852         Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3853
3854         * valops.c (search_struct_field): Fix typo in error message.
3855
3856 2010-06-26  Ulrich Weigand  <uweigand@de.ibm.com>
3857
3858         * dwarf2expr.c (execute_stack_op): Place preprocessor
3859         directives at the start of the source line.
3860
3861 2010-06-25  Paul Hilfinger  <hilfinger@adacore.com>
3862
3863         * defs.h (make_command_stats_cleanup): Declare.
3864         (set_display_time): Declare.
3865         (set_display_space): Declare.
3866         * event-top.c (command_handler): Use make_command_stats_cleanup.
3867         * main.c (display_time, display_space): Move definitions to utils.c.
3868         (captured_main): Use make_command_stats_cleanup to get start-up
3869         statistics.
3870         Use set_display_time and set_display_space for processing OPT_STATISTICS
3871         case.
3872         * maint.c (maintenance_time_display): Use set_display_time.
3873         (maintenance_space_display): Use set_display_space.
3874         * top.c (execute_command): Remove obsolete 'maint time' code.
3875         (command_loop): Use make_command_stats_cleanup.
3876         * utils.c (struct cmd_stats): Structure for storing initial time
3877         and space usage.
3878         (display_time, display_space): Move definitions here from utils.c.
3879         (set_display_time): New function.
3880         (set_display_space): New function.
3881         (make_command_stats_cleanup): New function.
3882         (report_command_stats): New auxiliary function for
3883         make_command_stats_cleanup.
3884
3885 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
3886
3887         * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3888         hosts where CORE_ADDR is long long.
3889
3890 2010-06-25  Tom Tromey  <tromey@redhat.com>
3891
3892         PR python/10808:
3893         * python/python.c (execute_gdb_command): Add keywords.  Accept
3894         "to_string" argument.
3895         (struct restore_ui_file_closure): New.
3896         (restore_ui_file): New function.
3897         (make_cleanup_restore_ui_file): Likewise.
3898         (GdbMethods) <execute>: Update.
3899
3900 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
3901
3902         * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3903         during inferior call stack frame setup.
3904
3905 2010-06-25  Ken Werner  <ken.werner@de.ibm.com>
3906
3907         * solib-spu.c: Include "exception.h".
3908         (ocl_program_data_key): New variable.
3909         (append_ocl_sos): New function.
3910         (ocl_enable_break): Likewise.
3911         (spu_current_sos): Call append_ocl_sos.
3912         (spu_solib_loaded): Call ocl_enable_break.
3913         (_initialize_spu_solib): Register ocl_program_data_key.
3914
3915 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
3916
3917         * cp-support.c (reset_directive_searched): New function.
3918         (make_symbol_overload_list_using): Prevent recursive calls.
3919
3920 2010-06-25  Phil Muldoon  <pmuldoon@redhat.com>
3921
3922         * printcmd.c (print_variable_and_value): Print error message on
3923         caught exception.
3924
3925 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
3926
3927         * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3928         of stack values.
3929         (struct dwarf_expr_piece): Rename "expr" member to "mem".  Add new
3930         "value" member.
3931         (dwarf_expr_push): Change input type to ULONGEST.
3932         (dwarf_expr_fetch): Change return type to ULONGEST.
3933         (dwarf_expr_fetch_address): Add prototype.
3934         (dwarf2_read_address): Remove prototype.
3935         * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3936         Truncate stack values to ctx->addr_size bytes.
3937         (dwarf_expr_fetch): Change return value to ULONGEST.
3938         (dwarf_expr_fetch_address): New function.
3939         (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3940         when appropriate.  Update for struct dwarf_expr_piece changes.
3941         (dwarf2_read_address): Remove.
3942         (unsigned_address_type): Remove.
3943         (signed_address_type): Remove.
3944         (execute_stack_op): Use dwarf_expr_fetch_address instead of
3945         dwarf_expr_fetch when appropriate.  Use ULONGEST as type of stack
3946         values.  Perform operations on ULONGEST instead of on GDB values,
3947         sign-extending from ctx->addr_size bytes as needed.  Read DW_OP_addr
3948         values and DW_OP_deref results as unsigned integers.
3949         * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3950         changes.
3951         (write_pieced_value): Likewise.
3952         (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3953         dwarf_expr_fetch when appropriate.
3954         (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3955         * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3956         instead of dwarf_expr_fetch when appropriate.
3957
3958 2010-06-25  Pierre Muller  <muller@ics.u-strasbg.fr>
3959
3960         * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3961
3962 2010-06-24  Joel Brobecker  <brobecker@adacore.com>
3963
3964         * python/python.c (_initialize_python): Add new "constant"
3965         PYTHONDIR in gdb module.  Insert this path at the head of
3966         sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3967         exec its __init__.py script if it exists in that directory.
3968
3969 2010-06-24  Kevin Buettner  <kevinb@redhat.com>
3970
3971         * rx-tdep.c (RX_ACC_REGNUM): Define.
3972         (RX_NUM_REGS): Redefine to 26.
3973         (rx_register_name): Add register "acc".  Change order of several
3974         registers.  Change name of "vct" register to "fintv" to match RX
3975         documentation.
3976         (rx_register_type): Add case for RX_ACC_REGNUM.
3977
3978 2010-06-24  Tom Tromey  <tromey@redhat.com>
3979
3980         * psymtab.c (lookup_partial_symbol): Mark definition as static.
3981
3982 2010-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3983             Tom Tromey  <tromey@redhat.com>
3984
3985         Fix GDB startup on readonly filesystem.
3986         * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3987
3988 2010-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3989             Pedro Alves  <pedro@codesourcery.com>
3990
3991         Fix PR 9436.
3992         * breakpoint.c (handle_jit_event): New function.
3993         (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
3994         jit, err, table and bs_class.  New variables shlib_event, jit_event,
3995         this_action and bptype.  Change bs_class assignments to this_action
3996         assignments.  new unhandled bptype internal error.  Move here
3997         shlib_event and jit_event handling from handle_inferior_event.
3998         * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
3999         Reorder items.  Remove BPSTAT_WHAT_CHECK_SHLIBS and
4000         BPSTAT_WHAT_CHECK_JIT.
4001         * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4002         * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4003         (handle_inferior_event): Reinitialize frame and gdbarch after
4004         bpstat_what call.  Move BPSTAT_WHAT_CHECK_SHLIBS and
4005         BPSTAT_WHAT_CHECK_JIT handling to bpstat_what.  Reinitialize even
4006         gdbarch when frame gets reinitialized.
4007
4008 2010-06-24  Hui Zhu  <teawater@gmail.com>
4009
4010        * printcmd.c (ui_printf): New function.
4011        (printf_command): Call ui_printf.
4012        (_initialize_printcmd): New command "eval".
4013
4014 2010-06-23  Ulrich Weigand  <uweigand@de.ibm.com>
4015
4016         * infrun.c (handle_inferior_event): Handle presence of single-step
4017         breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4018         Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4019         TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4020         * breakpoint.c (detach_single_step_breakpoints): New function.
4021         (detach_breakpoints): Call it.
4022         (cancel_single_step_breakpoints): New function.
4023         * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4024
4025         * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4026         (spu_gdbarch_init): Install it.
4027
4028 2010-06-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
4029
4030         * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4031         * configure: Regenerate.
4032
4033 2010-06-22  Hui Zhu  <teawater@gmail.com>
4034
4035         * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4036         (i386_process_record): Ditto.
4037         * record.c (record_memory_query): New variable.
4038         (_initialize_record): New command "set record memory-query".
4039         * record.h (record_memory_query): New extern.
4040
4041 2010-06-21  Doug Evans  <dje@google.com>
4042
4043         * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4044         * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4045         (i386_syscall_p): Change type of lengthp to int.
4046         (i386_displaced_step_fixup): Handle kernels that run one past a
4047         syscall insn.
4048         * i386-linux-tdep.c (i386_linux_init_abi): Use
4049         i386_displaced_step_copy_insn instead of
4050         simple_displaced_step_copy_insn.
4051
4052 2010-06-21  Tom Tromey  <tromey@redhat.com>
4053
4054         * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4055         (dwarf_type_encoding_name): Likewise.
4056
4057 2010-06-21  Tom Tromey  <tromey@redhat.com>
4058
4059         * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4060         * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4061         * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4062         * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4063         * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4064         * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4065         * dwarf2read.c (tag_type_to_type): Create a new error type on
4066         failure.
4067         * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4068         * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4069
4070 2010-06-21  Michael Snyder  <msnyder@vmware.com>
4071
4072         * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
4073         not add_abbrev_prefix_cmd, for "enable breakpoints".
4074
4075 2010-06-21  Ulrich Weigand  <uweigand@de.ibm.com>
4076
4077         * dwarf2loc.c (find_location_expression): Add relocation offset
4078         to base-address-selection entry base addresses.  Read addresses
4079         (and offsets) as signed/unsigned integers, depending on the
4080         BFD's sign_extend_vma flag.  Do not call dwarf2_read_address.
4081         (loclist_describe_location): Likewise.
4082         (disassemble_dwarf_expression): Read DW_OP_addr operand as
4083         unsigned integer.  Do not call dwarf2_read_address.
4084         (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4085
4086 2010-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
4087
4088         * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4089         value instead of hard-coded SPU_LS_SIZE.
4090         (spu_software_single_step): Likewise.
4091         * spu-tdep.h (SPU_LS_SIZE): Remove.
4092
4093 2010-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
4094
4095         * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4096         limit on local store memory accesses.
4097         * spu-linux-nat.c (spu_xfer_partial): Likewise.
4098         * spu-tdep.c (spu_lslr): Remove.
4099         (spu_pointer_to_address): Do not truncate addresses.
4100         (spu_integer_to_address): Likewise.
4101         (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4102         * spu-tdep.h: Add comments.
4103         (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4104         (SPU_OVERLAY_LMA): Define.
4105
4106 2010-06-18  Stan Shebs  <stan@codesourcery.com>
4107
4108         * osdata.c (get_osdata): Warn separately if target does not report
4109         type list.
4110         (info_osdata_command): Allow empty type, report error if target
4111         does not return available types of OS data.
4112         * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4113         types if no annex supplied.
4114
4115         * thread.c (thread_id_make_value): Make a value representing the
4116         current thread.
4117         (_initialize_thread): Create $_thread.
4118
4119 2010-06-17  Joel Brobecker  <brobecker@adacore.com>
4120
4121         * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4122         last local variable declaration.  No real code change.
4123
4124 2010-06-17  Tom Tromey  <tromey@redhat.com>
4125
4126         * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4127         (dwarf2_build_psymtabs_hard): Use it.  Create addrmap on a
4128         temporary obstack.
4129
4130 2010-06-16  Sergio Durigan Junior  <sergiodj@redhat.com>
4131             Jan Kratochvil  <jan.kratochvil@redhat.com>
4132
4133         * breakpoint.c: Include parser-defs.h.
4134         (watchpoint_exp_is_const): New function.
4135         (watch_command_1): Call watchpoint_exp_is_const to check
4136         if the expression is constant.
4137
4138 2010-06-15  Andreas Schwab  <schwab@linux-m68k.org>
4139
4140         * configure.ac: Check for RDYNAMIC also for cross builds.
4141         * configure: Regenerate.
4142
4143 2010-06-15  Pedro Alves  <pedro@codesourcery.com>
4144
4145         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4146         (SFILES): Remove solib-null.c, add solib-target.c.
4147         (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4148         (ALLDEPFILES): Remove solib-target.c.
4149         * solib-target.c (_initialize_solib_target): Set
4150         current_target_so_ops to solib_target_so_ops if not already set.
4151         * solib-null.c: Delete.
4152
4153 2010-06-14  Pedro Alves  <pedro@codesourcery.com>
4154
4155         * NEWS: Mention GDBserver's JIT compilation of tracepoint
4156         bytecode.
4157
4158 2010-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
4159
4160         * cp-valprint.c (cp_print_static_field): Members of
4161         dont_print_stat_array_obstack are of type "struct type *".
4162         (_initialize_cp_valprint): Likewise.
4163
4164 2010-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
4165
4166         * frame.c (frame_register_unwind): Do not access contents
4167         of "optimized out" unwound register value.
4168
4169 2010-06-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4170
4171         * ada-lang.h (ada_print_type): Make varstring const.
4172         * ada-typeprint.c (print_func_type): Make name const.
4173         (ada_print_type): Make varstring const.
4174         * c-lang.h (c_print_type): Make varstring const.
4175         * c-typeprint.c (c_print_type): Likewise.
4176         * f-lang.h (f_print_type): Likewise.
4177         * f-typeprint.c (f_print_type): Likewise.
4178         * jv-lang.h (java_print_type): Likewise.
4179         * jv-typeprint.c (java_print_type): Likewise.
4180         * language.c (unk_lang_print_type): Likewise.
4181         * language.h (struct language_defn) <la_print_type>: Likewise.
4182         * m2-lang.h (m2_print_type): Likewise.
4183         * m2-typeprint.c (m2_print_type): Likewise.
4184         * p-lang.h (pascal_print_type): Likewise.
4185         * p-typeprint.c (pascal_print_type): Likewise.
4186
4187 2010-06-11  Stan Shebs  <stan@codesourcery.com>
4188
4189         Add per-operation permission flags.
4190
4191         * target.h (struct target_ops): New method to_set_permissions.
4192         (target_set_permissions): New macro.
4193         (target_insert_breakpoint): Change macro to function.
4194         (target_remove_breakpoint): Ditto.
4195         (target_stop): Ditto.
4196         (may_write_registers): Declare.
4197         (may_write_memory): Declare.
4198         (may_insert_breakpoints): Declare.
4199         (may_insert_tracepoints): Declare.
4200         (may_insert_fast_tracepoints): Declare.
4201         (may_stop): Declare.
4202         * target.c (may_write_registers, may_write_registers_1): New globals.
4203         (may_write_memory, may_write_memory_1): New globals.
4204         (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4205         (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4206         (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4207         globals.
4208         (may_stop, may_stop_1): New global.
4209         (target_xfer_partial): Test for write permission.
4210         (target_store_registers): Ditto.
4211         (target_insert_breakpoint): New function.
4212         (target_remove_breakpoint): New function.
4213         (target_stop): New function.
4214         (_initialize_targets): Add new set/show variables.
4215         (set_write_memory_permission): New function.
4216         (update_target_permissions): New function.
4217         (set_target_permissions): New function.
4218         (update_current_target): Default to_set_permissions.
4219         (_initialize_targets): Use new globals and setter function.
4220         * tracepoint.c (start_tracing): Test for permission.
4221         * inferior.h (update_observer_mode): Declare.
4222         * infrun.c (non_stop_1): Define earlier.
4223         (observer_mode, observer_mode_1): New globals.
4224         (set_observer_mode, show_observer_mode): New functions.
4225         (update_observer_mode): New function.
4226         (_initialize_infrun): Define "set observer" command.
4227         * remote.c (PACKET_QAllow): New optional packet.
4228         (remote_protocol_features): Add QAllow.
4229         (remote_set_permissions): New function.
4230         (remote_start_remote): Call it.
4231         (init_remote_ops): Add it to target vector.
4232         (_initialize_remote): Add config command for QAllow.
4233
4234 2010-06-11  Tom Tromey  <tromey@redhat.com>
4235
4236         * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4237         DW_AT_vtable_elem_location even when GCC extension is seen.
4238
4239 2010-06-11  Tom Tromey  <tromey@redhat.com>
4240
4241         PR gdb/9977, PR exp/11636:
4242         * value.h (value_offset): Update.
4243         (struct lval_funcs) <check_validity>: New field.
4244         <copy_closure>: Make argument const.
4245         (value_computed_closure): Update.
4246         (value_contents_for_printing): Declare.
4247         (value_bits_valid): Likewise.
4248         (val_print): Likewise.
4249         (set_value_component_location): Update.
4250         (value_entirely_optimized_out): Declare.
4251         * value.c (value_offset): Argument now const.
4252         (require_not_optimized_out): New function.
4253         (value_contents_for_printing): New function.
4254         (value_contents_all): Call require_not_optimized_out.
4255         (value_contents): Likewise.
4256         (value_bits_valid): New function.
4257         (value_computed_closure): Argument now const.
4258         (set_value_component_location): Make 'whole' argument const.
4259         (value_entirely_optimized_out): New function.
4260         (value_bitsize): Argument now 'const'.
4261         (value_bitpos): Likewise.
4262         (value_type): Likewise.
4263         * valprint.h (val_print_array_elements): Update.
4264         * valprint.c (val_print): Add 'val' argument.  Use
4265         valprint_check_validity.
4266         (valprint_check_validity): New function.
4267         (value_check_printable): Use value_entirely_optimized_out.
4268         (common_val_print): Update.
4269         (value_print): Likewise.
4270         (val_print_array_elements): Add 'val' argument.
4271         * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4272         value_bits_valid.  Reinit frame cache for lval_computed.
4273         * sh64-tdep.c (sh64_do_register): Update.
4274         * scm-valprint.c (scm_val_print): Add 'val' argument.
4275         * scm-lang.h (scm_val_print): Update.
4276         * python/python.h (apply_val_pretty_printer): Update.
4277         * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4278         argument.  Call set_value_component_location.
4279         * printcmd.c (print_scalar_formatted): Update.
4280         * p-valprint.c (pascal_val_print): Add 'val' argument.
4281         (pascal_object_print_value_fields): Likewise.
4282         (pascal_object_print_value): Likewise.
4283         (pascal_object_print_static_field): Update.
4284         * p-lang.h (pascal_val_print): Update.
4285         (pascal_object_print_value_fields): Update.
4286         * mt-tdep.c (mt_registers_info): Update.
4287         * mi/mi-main.c (get_register): Update.
4288         (mi_cmd_data_evaluate_expression): Use common_val_print.
4289         * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4290         (m2_print_unbounded_array): Likewise.
4291         (m2_val_print): Likewise.
4292         * m2-lang.h (m2_val_print): Update.
4293         * language.h (struct language_defn) <la_val_print>: Add 'val'
4294         argument.
4295         (LA_VAL_PRINT): Likewise.
4296         * language.c (unk_lang_val_print): Add 'val' argument.
4297         * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4298         (java_val_print): Likewise.
4299         * jv-lang.h (java_val_print): Add 'val' argument.
4300         * infcmd.c (default_print_registers_info): Update.
4301         * f-valprint.c (f77_print_array_1): Add 'val' argument.
4302         (f77_print_array): Likewise.
4303         (f_val_print): Likewise.
4304         * f-lang.h (f_val_print): Add 'val' argument.
4305         * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4306         value_bitpos.
4307         <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning.  Call
4308         set_value_optimized_out.
4309         (write_pieced_value): Use value_bitsize and value_bitpos.
4310         <default>: Don't exit loop.
4311         (check_pieced_value_validity): New function.
4312         (pieced_value_funcs): Reference check_pieced_value_validity,
4313         check_pieced_value_invalid.
4314         (copy_pieced_value_closure): Update.
4315         (check_pieced_value_bits): New function.
4316         (check_pieced_value_invalid): New function.
4317         * d-valprint.c (dynamic_array_type): Add 'val' argument.
4318         (d_val_print): Likewise.
4319         * d-lang.h (d_val_print): Update.
4320         * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4321         (cp_print_value_fields_rtti): Likewise.
4322         (cp_print_value): Likewise.
4323         (cp_print_static_field): Update.
4324         * c-valprint.c (c_val_print): Add 'val' argument.
4325         (c_value_print): Update.
4326         * c-lang.h (c_val_print): Update.
4327         (cp_print_value_fields): Likewise.
4328         (cp_print_value_fields_rtti): Likewise.
4329         * ada-valprint.c (struct ada_val_print_args): Remove.
4330         (val_print_packed_array_elements): Add 'val' argument.
4331         (ada_val_print): Likewise.  Rewrite.
4332         (ada_val_print_stub): Remove.
4333         (ada_val_print_array): Add 'val' argument.
4334         (ada_val_print_1): Likewise.
4335         (print_variant_part): Likewise.
4336         (ada_value_print): Update.
4337         (print_record): Add 'val' argument.
4338         (print_field_values): Likewise.
4339         * ada-lang.h (ada_val_print): Update.
4340
4341 2010-06-11  Tom Tromey  <tromey@redhat.com>
4342
4343         * vec.h (VEC_cleanup): New macro.
4344         (DEF_VEC_ALLOC_FUNC_I): Update.
4345         (DEF_VEC_ALLOC_FUNC_P): Likewise.
4346         (DEF_VEC_ALLOC_FUNC_O): Likewise.
4347         * dwarf2loc.c (struct axs_var_loc): Remove.
4348         (unimplemented): New function.
4349         (translate_register): Likewise.
4350         (access_memory): Likewise.
4351         (compile_dwarf_to_ax): Likewise.
4352         (dwarf2_tracepoint_var_loc): Remove.
4353         (dwarf2_tracepoint_var_access): Likewise.
4354         (dwarf2_tracepoint_var_ref): Likewise.
4355         (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4356         (loclist_tracepoint_var_ref): Likewise.
4357         * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4358         * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4359         require_composition.  No longer static.
4360         (execute_stack_op): Update.
4361         * ax-gdb.h (trace_kludge): Declare.
4362
4363 2010-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4364
4365         * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4366         (should_be_inserted): Return zero also on NULL OWNER.
4367         (breakpoint_program_space_exit): New OWNER comment.
4368         (insert_breakpoint_locations): Extend comment for OWNER.
4369         (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4370         (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4371         New OWNER comment.
4372         (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4373         (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4374         (bpstat_check_location): New assert on OWNER.
4375         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4376         and B initializations to the code block.  New assert on them.
4377         (print_one_breakpoint_location): New OWNER comment.
4378         (watchpoint_locations_match): Assert on OWNER.
4379         (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4380         initializations to the code block.  New assert on OWNER.
4381         (set_breakpoint_location_function): New assert on OWNER.
4382         (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4383         (bp_location_compare, update_global_location_list)
4384         (update_global_location_list): New OWNER comment.
4385
4386 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
4387
4388         * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4389
4390 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
4391
4392         * config/nm-linux.h (struct target_ops): Remove forward declaration.
4393         (lin_thread_get_thread_signals): Remove prototype.
4394         (GET_THREAD_SIGNALS): Remove.
4395         * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4396         * linux-thread-db.c (check_thread_signals): Directly call
4397         lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4398
4399 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
4400
4401         * gregset.h (GDB_FPXREGSET_T): Remove.
4402         (gdb_fpxregset_t): Likewise.
4403         (supply_fpxregset): Remove prototype.
4404         (fill_fpxregset): Likewise.
4405         * i386-linux-nat.c (supply_fpxregset): Remove.
4406         (fill_fpxregset): Likewise.
4407         (fetch_fpxregs): Inline supply_fpxregset call.
4408         (store_fpxregs): Inline fill_fpxregset call.
4409
4410         * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4411         * config/i386/nm-linux.h: Remove file.
4412
4413 2010-06-09  Michael Snyder  <msnyder@vmware.com>
4414
4415         * target.c (update_current_target): Fix spelling error in comment.
4416         (target_mourn_inferior): Fix spelling error in error message.
4417
4418 2010-06-08  Paul Hilfinger  <hilfingr@adacore.com>
4419
4420       * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4421       SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4422
4423 2010-06-08  Michael Snyder  <msnyder@vmware.com>
4424
4425         * remote.c (remote_close): Set inferior_ptid to null_ptid.
4426
4427 2010-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4428
4429         * configure.ac <"${have_libpython}" != no>: New workaround of
4430         python#4434.
4431         * configure: Regenerate.
4432
4433 2010-06-08  Hui Zhu  <teawater@gmail.com>
4434
4435         * record.c (record_wait): Move signal out of replay code.
4436
4437 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4438
4439         Fix PR 10640.
4440         * dwarf2-frame.c (no_dwarf_call): New function.
4441         (execute_stack_op): Set CTX->DWARF_CALL.
4442         * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4443         * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4444         (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4445         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4446         (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4447         (needs_frame_dwarf_call): New function.
4448         (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4449         * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4450         Update the comment.  Move variables die, offset and error call to ...
4451         (follow_die_ref): ... a new function.
4452         (dwarf2_fetch_die_location_block): New function.
4453         * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4454
4455 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4456
4457         * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4458         (dwarf_expr_tls_address): Use per_cu instead of objfile.
4459         (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4460         Initialize new BATON.PER_CU.  Adjust CTX->GDBARCH initialization for
4461         this change.
4462         (struct needs_frame_baton): New field per_cu.
4463         (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4464         * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4465
4466 2010-06-07  Sami Wagiaalla  <swagiaal@redhat.com>
4467
4468         * cp-support.c (make_symbol_overload_list_namespace): Only search
4469         static and global blocks.
4470         (make_symbol_overload_list_block): New function.
4471         (make_symbol_overload_list): Separate namespace search from block
4472         search.
4473         (make_symbol_overload_list_qualified): Use
4474         make_symbol_overload_list_block.
4475
4476 2010-06-07  Sami Wagiaalla  <swagiaal@redhat.com>
4477
4478         * value.h: Created oload_search_type enum.
4479         (find_overload_match): Use oload_search_type enum.
4480         * valops.c (find_overload_match): Support combined member and
4481         non-member search.
4482         * eval.c (evaluate_subexp_standard): Calls to
4483         find_overload_match now use oload_search_type enum.
4484         (oload_method_static): Verify index is a proper value.
4485         * valarith.c (value_user_defined_cpp_op): Search for and handle
4486         both member and non-member operators.
4487         (value_user_defined_cpp_op): New function.
4488         (value_user_defined_op): New function.
4489         (value_x_unop): Use value_user_defined_op.
4490         (value_x_binop): Ditto.
4491         * cp-support.c (make_symbol_overload_list_using): Added block
4492         iteration.
4493         Add check for namespace aliases and imported declarations.
4494
4495 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4496
4497         * breakpoint.h (owner): Extend the comment.
4498
4499 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4500
4501         Clear stale specific bp_location from former whole breakpoint.
4502         * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4503         code ...
4504         (free_bp_location): ... here.  Rename there the called function to
4505         bpstat_remove_bp_location_callback.
4506         (bpstat_remove_breakpoint_callback): Rename to ...
4507         (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4508         to struct bp_location.  Change the called function to
4509         bpstat_remove_bp_location.  Create new declaration for the function.
4510         (bpstat_remove_breakpoint): Rename to ...
4511         (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4512         code for the new parameter type.
4513
4514 2010-06-07  Nathan Sidwell  <nathan@codesourcery.com>
4515
4516         * README: Make version-agnostic.
4517
4518 2010-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4519
4520         Fix duplicate types for single DIE.
4521         * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4522         set_die_type.
4523         (read_array_type): Remove type initialization.  Recheck get_die_type
4524         after initial die_type.  Move set_die_type before set_descriptive_type.
4525         (read_set_type): New variable domain_type.  Recheck get_die_type after
4526         initial die_type.  Move attr initialization later.
4527         (read_tag_pointer_type, read_tag_reference_type): New variable
4528         target_type.  Recheck get_die_type after initial die_type.
4529         (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4530         die_type and die_containing_type.
4531         (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4532         Recheck get_die_type after initial die_type.
4533         (read_subrange_type): Recheck get_die_type after initial die_type.
4534         Move set_die_type before set_descriptive_type.
4535         (set_die_type): Extend the function comment.  Call complaint if DIE has
4536         some type already set.
4537
4538 2010-06-05  Vladimir Prus  <vladimir@codesourcery.com>
4539
4540         * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4541         for current naming of thread groups (iN, not N).
4542
4543 2010-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
4544
4545         * ada-lang.c (ada_operator_length): Constify `struct expression'.
4546         * parse.c (operator_length): Likewise.
4547         (operator_length_standard): Likewise.
4548         * parser-defs.h (operator_length): Likewise.
4549         (operator_length_standard): Likewise.
4550         (struct exp_descriptor <operator_length>): Likewise.
4551
4552 2010-06-04  Doug Evans  <dje@google.com>
4553
4554         Add support for enabling/disabling individual pretty-printers.
4555         * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4556         * python/python-internal.h (gdbpy_enabled_cst): Declare.
4557         * python/python.c (gdbpy_enabled_cst): Define.
4558         (_initialize_python): Initialize gdbpy_enabled_cst.
4559         * NEWS: Add entry.
4560
4561 2010-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4562
4563         * breakpoint.c (update_global_location_list): Fix comment typo.
4564
4565 2010-06-04  Hui Zhu  <teawater@gmail.com>
4566
4567         * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4568
4569 2010-06-03  Doug Evans  <dje@google.com>
4570
4571         * configure.ac: Don't fail if python is unusable when
4572         configured with --with-python=auto.
4573         * configure: Regenerate.
4574
4575 2010-06-03  Sami Wagiaalla  <swagiaal@redhat.com>
4576
4577         * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4578
4579 2010-06-03  Pierre Muller  <muller@ics.u-strasbg.fr>
4580
4581         * valprint.h (get_array_bounds): Change low and high parameter types
4582         to LONGEST *.
4583         * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4584         compute bounds.
4585         (val_print_array_elements): Adapt to change above.
4586         * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4587         * p-valprint.c (pascal_val_print): Likewise.
4588
4589 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4590
4591         * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4592         .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4593         .F08.
4594
4595 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4596
4597         Support DW_TAG_module as separate namespaces.
4598         * dwarf2read.c (typename_concat): New parameter physname.
4599         (read_module_type): New function and declaration.
4600         (scan_partial_symbols): Scan also DW_TAG_module children.
4601         (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4602         to typename_concat backward compatible physname value 0.
4603         (partial_die_full_name, read_namespace_type): Pass to typename_concat
4604         backward compatible physname value 0.
4605         (add_partial_module, read_module): Remove FIXME comment.
4606         (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4607         (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4608         DIEs under DW_TAG_module.
4609         (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4610         DW_AT_MIPS_linkage_name first, extend it for language_fortran
4611         && physname and return there instead of just setting NAME.  Extend
4612         the main block for language_fortran.  Pass physname parameter to the
4613         typename_concat call.
4614         (read_import_statement, read_func_scope, get_scope_pc_bounds)
4615         (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4616         (new_symbol): Fill in cplus_specific.demangled_name if it is still
4617         missing from SYMBOL_SET_NAMES in the language_fortran case.
4618         (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4619         variables.
4620         (read_type_die) <DW_TAG_module>: New.
4621         (MAX_SEP_LEN): Increase to 7.
4622         (typename_concat): New parameter physname.  New variable lead.  Support
4623         also language_fortran.
4624         * f-exp.y (yylex): Consider : also as a symbol name character class.
4625         * f-lang.c: Include cp-support.h.
4626         (f_word_break_characters, f_make_symbol_completion_list): New functions.
4627         (f_language_defn): Use cp_lookup_symbol_nonlocal,
4628         f_word_break_characters and f_make_symbol_completion_list.
4629         * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4630         * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4631         * symtab.c (symbol_init_language_specific): Support language_fortran.
4632         (symbol_find_demangled_name): New comment on language_fortran.
4633         (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4634         for language_fortran.
4635         (lookup_symbol_aux_local): Check imports also for language_fortran.
4636         (default_make_symbol_completion_list): Rename to ...
4637         (default_make_symbol_completion_list_break_on): ... this name.  New
4638         parameter break_on, use it.
4639         (default_make_symbol_completion_list): New stub.
4640         * symtab.h (default_make_symbol_completion_list_break_on): New
4641         prototype.
4642
4643 2010-06-02  Joel Brobecker  <brobecker@adacore.com>
4644
4645         * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4646         to error.
4647
4648 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4649
4650         * dwarf2read.c (typename_concat): Add const to the variable sep.
4651
4652 2010-06-02  Tom Tromey  <tromey@redhat.com>
4653
4654         * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4655         * dwarf2read.c (dwarf_stack_op_name): No longer static.  Return
4656         type is const.  Add 'def' argument.  Add missing operators, remove
4657         unhandled ones.
4658         (decode_locdesc): Update.
4659         (dwarf2_always_disassemble): New global.
4660         (show_dwarf2_always_disassemble): New function.
4661         (_initialize_dwarf2_read): Add always-disassemble.
4662         (dwarf2_per_cu_offset_size): New function.
4663         * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4664         (piece_end_p): New function.
4665         (locexpr_describe_location_piece): Replace 'size' argument with
4666         'end'.  Use piece_end_p.  Rewrite recognition of TLS.  Recognize
4667         some constants.  Remove errors.
4668         (disassemble_dwarf_expression): New function.
4669         (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4670         Add 'offset_size' argument.
4671         (loclist_describe_location): Change output formatting.
4672         * dwarf2expr.h (dwarf_stack_op_name): Declare.
4673
4674 2010-06-02  Sami Wagiaalla  <swagiaal@redhat.com>
4675
4676         * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4677         anonymous type case.
4678
4679 2010-06-02  Pierre Muller  <muller@ics.u-strasbg.fr>
4680
4681         * dwarf2read.c (read_subrange_type): Handle missing base type
4682         according to Dwarf-2 specifications.
4683
4684 2010-06-01  Sergio Durigan Junior  <sergiodj@redhat.com>
4685
4686         * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4687         BINOP_EXCL.
4688         (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4689         UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4690         (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4691         BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4692         UNOP_CHMAX, UNOP_CHMIN.
4693         * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4694         UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4695         UNOP_CHMIN>: Remove opcodes.
4696
4697 2010-06-01  Pierre Muller  <muller@ics.u-strasbg.fr>
4698
4699         * dwarf2read.c (read_func_scope): Do not complain for
4700         external function if bounds are not found.
4701
4702 2010-06-01  Pedro Alves  <pedro@codesourcery.com>
4703
4704         * NEWS: Mention gdbserver fast tracepoints support.
4705
4706 2010-05-31  Pierre Muller  <muller@ics.u-strasbg.fr>
4707
4708         * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4709         New macros.
4710         (windows_set_console_info): New function.
4711         (windows_create_inferior): Call windows_set_console_info
4712         if NEW_CONSOLE is true.
4713         (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4714         (_initialize_loadable): Initialize GetConsoleFontSize and
4715         GetCurrentConsoleFont.
4716
4717 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4718
4719         * Makefile.in (RDYNAMIC): New.
4720         (SFILES): Add proc-service.list.
4721         * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4722         (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4723         * config/arm/linux.mh: Likewise.
4724         * config/i386/linux.mh: Likewise.
4725         * config/i386/linux64.mh: Likewise.
4726         * config/ia64/linux.mh: Likewise.
4727         * config/m32r/linux.mh: Likewise.
4728         * config/m68k/linux.mh: Likewise.
4729         * config/mips/linux.mh: Likewise.
4730         * config/pa/linux.mh: Likewise.
4731         * config/powerpc/linux.mh: Likewise.
4732         * config/powerpc/ppc64-linux.mh: Likewise.
4733         * config/s390/s390.mh: Likewise.
4734         * config/sparc/linux.mh: Likewise.
4735         * config/sparc/linux64.mh: Likewise.
4736         * config/xtensa/linux.mh: Likewise.
4737         * configure.ac: New RDYNAMIC on native host and GCC.
4738         (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4739         * configure: Regenerate.
4740         * proc-service.list: New.
4741
4742 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4743
4744         * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4745         CONTENT.
4746
4747 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4748
4749         * linux-nat.c (linux_nat_wait_1): Do not call
4750         linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4751         TARGET_WAITKIND_SIGNALLED.
4752
4753 2010-05-27  Joel Brobecker  <brobecker@adacore.com>
4754
4755         * ada-lang.c (ada_inferior_data): New struct.
4756         (ada_inferior_data): New static global.
4757         (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4758         (ada_get_tsd_type): New functions.
4759         (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4760         to look the tsd type up.
4761         (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4762         event.  Set ada_inferior_data.
4763
4764 2010-05-27  Pedro Alves  <pedro@codesourcery.com>
4765
4766         * remote.c (unpack_varlen_hex): Remove forward declaration.
4767         (remote_console_output): Make static, and add forward declaration.
4768         * remote.h: Drop FIXME comment.
4769         (unpack_varlen_hex): Declare.
4770         (remote_console_output, remote_cisco_objfile_relocate)
4771         (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4772         Delete declarations.
4773         * tracepoint.c: Include "remote.h".
4774         (unpack_varlen_hex): Delete declaration.
4775
4776 2010-05-27  Tom Tromey  <tromey@redhat.com>
4777
4778         * dwarf2loc.c (struct piece_closure) <refc>: New field.
4779         (allocate_piece_closure): Initialize refc.
4780         (copy_pieced_value_closure): Use refc.
4781         (free_pieced_value_closure): Likewise.
4782
4783 2010-05-27  Tom Tromey  <tromey@redhat.com>
4784
4785         * arm-tdep.c (push_stack_item): 'contents' now const.
4786         (arm_push_dummy_call): Make 'val' const.  Use value_contents, not
4787         value_contents_writeable.  Introduce new temporary.
4788
4789 2010-05-27  Tom Tromey  <tromey@redhat.com>
4790
4791         * findcmd.c (parse_find_args): Use value_contents, not
4792         value_contents_raw.
4793
4794 2010-05-27  Tom Tromey  <tromey@redhat.com>
4795
4796         * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4797         const.  Use value_contents, not value_contents_writeable.
4798
4799 2010-05-27  Joel Brobecker  <brobecker@adacore.com>
4800
4801         * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4802         by call to value_contents.
4803
4804 2010-05-27  Ozkan Sezer  <sezeroz@gmail.com>
4805
4806         * MAINTAINERS: Add myself for write after approval privileges.
4807
4808 2010-05-26  Doug Evans  <dje@google.com>
4809
4810         Allow python to find its files if moved from original location.
4811         * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4812         (GDB_AC_WITH_DIR): Call it.
4813         * configure.ac: Define WITH_PYTHON_PATH if we can find the
4814         python installation directory.
4815         * config.in: Regenerate.
4816         * configure: Regenerate.
4817         * defs.h (python_libdir): Declare.
4818         * main.c (python_libdir): Define.
4819         (captured_main): Initialize python_libdir.
4820         * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4821         call Py_SetProgramName to make sure python can find its libraries
4822         and modules.
4823
4824         * configure.ac: Try to use python's distutils to fetch compilation
4825         parameters.
4826         * configure: Regenerate.
4827         * python/python-config.py: New file.
4828
4829 2010-05-26  Ozkan Sezer  <sezeroz@gmail.com>
4830
4831         * ser-tcp.c (net_open): Check error return from socket() call by its
4832         equality to -1 not by it being negative.
4833         (net_close): Likewise.
4834
4835 2010-05-26  Pedro Alves  <pedro@codesourcery.com>
4836
4837         * NEWS: Mention the `qRelocInsn' feature.
4838         * gdbarch.sh (relocate_instruction): New.
4839         * amd64-tdep.c (rip_relative_offset): New.
4840         (append_insns): New.
4841         (amd64_relocate_instruction): New.
4842         (amd64_init_abi): Install it.
4843         * i386-tdep.c (append_insns): New.
4844         (i386_relocate_instruction): New.
4845         (i386_gdbarch_init): Install it.
4846         * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4847         * gdbarch.h, gdbarch.c: Regenerate.
4848
4849 2010-05-26  Tom Tromey  <tromey@redhat.com>
4850
4851         * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4852         (struct dwarf2_loclist_baton) <data>: Likewise.
4853         * dwarf2loc.c (find_location_expression): Constify return type.
4854         (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4855         (dwarf2_loc_desc_needs_frame): Likewise.
4856         (loclist_read_variable): Constify.
4857         (loclist_describe_location): Likewise.
4858         (loclist_tracepoint_var_ref): Likewise.
4859
4860 2010-05-25  Tom Tromey  <tromey@redhat.com>
4861
4862         * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4863         (dwarf_expr_frame_base_1): Likewise.
4864         (read_pieced_value): Update.
4865         (needs_frame_frame_base): Constify.
4866         (dwarf2_tracepoint_var_loc): Likewise.
4867         (dwarf2_tracepoint_var_access): Likewise.
4868         (locexpr_describe_location_piece): Likewise.
4869         (locexpr_describe_location_1): Likewise.
4870         * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4871         Constify.
4872         (data): Now const.
4873         (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4874         (dwarf_expr_eval, read_uleb128, read_sleb128)
4875         (dwarf2_read_address): Update.
4876         * dwarf2expr.c (dwarf_expr_eval): Constify.
4877         (read_uleb128): Likewise.
4878         (read_sleb128): Likewise.
4879         (dwarf2_read_address): Likewise.
4880         (require_composition): Likewise.
4881         (execute_stack_op): Likewise.
4882         * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4883         "const gdb_byte *".
4884         * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4885         Now const.
4886         (no_get_frame_base): Constify.
4887         (execute_stack_op): Likewise.
4888         (execute_cfa_program): Likewise.
4889         (read_encoded_value): Likewise.
4890
4891 2010-05-25  Doug Evans  <dje@google.com>
4892
4893         * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4894
4895         * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4896         * event-loop.c: ... here.
4897         * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4898         `error' for clarity.
4899         (tui_getc): Pass correct value for `error' parameter to
4900         tui_readline_output.
4901
4902         Add python gdb.GdbError and gdb.string_to_argv.
4903         * NEWS: Document them.
4904         * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4905         the exception is gdb.GdbError.  Print a second traceback if there's
4906         an error computing the error message.
4907         (gdbpy_string_to_argv): New function.
4908         * python/py-utils.c (gdbpy_obj_to_string): New function.
4909         (gdbpy_exception_to_string): New function.
4910         * python/python-internal.h (gdbpy_string_to_argv): Declare.
4911         (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4912         (gdbpy_gdberror_exc): Declare.
4913         * python/python.c (gdbpy_gdberror_exc): New global.
4914         (_initialize_python): Initialize gdbpy_gdberror_exc and create
4915         gdb.GdbError.
4916         (GdbMethods): Add string_to_argv.
4917
4918 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
4919
4920         * windows-nat.c (display_selector): Call GetLastError to give better
4921         failure explanation.
4922
4923 2010-05-24  Pedro Alves  <pedro@codesourcery.com>
4924
4925         * config.in: Regenerate.
4926
4927 2010-05-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
4928
4929         Code cleanup.
4930         * target.c (push_target): Return only void.  Remove the return value
4931         comment.
4932         * target.h (push_target): Return only void.
4933
4934 2010-05-23  Pedro Alves  <pedro@codesourcery.com>
4935
4936         Update gnulib from latest git.
4937         (250b80067c1e1d8faa0c42fb572f721975b929c5)
4938
4939         * gnulib/memcmp.c: Removed.
4940         * gnulib/memchr.valgrind: New.
4941         * gnulib/stddef.in.h: New.
4942         * gnulib/Makefile.am: Updated.
4943         * gnulib/memchr.c: Updated.
4944         * gnulib/memmem.c: Updated.
4945         * gnulib/stdint.in.h: Updated.
4946         * gnulib/str-two-way.h: Updated.
4947         * gnulib/string.in.h: Updated.
4948         * gnulib/wchar.in.h: Updated.
4949
4950         * gnulib/extra/link-warning.h: Removed.
4951         * gnulib/extra/c++defs.h: New.
4952         * gnulib/extra/warn-on-use.h: New.
4953         * gnulib/extra/arg-nonnull.h: Updated.
4954
4955         * gnulib/m4/extensions.m4: Updated.
4956         * gnulib/m4/gnulib-cache.m4: Updated.
4957         * gnulib/m4/gnulib-common.m4: Updated.
4958         * gnulib/m4/gnulib-comp.m4: Updated.
4959         * gnulib/m4/gnulib-tool.m4: Updated.
4960         * gnulib/m4/include_next.m4: Updated.
4961         * gnulib/m4/longlong.m4: Updated.
4962         * gnulib/m4/memchr.m4: Updated.
4963         * gnulib/m4/memmem.m4: Updated.
4964         * gnulib/m4/stdint.m4: Updated.
4965         * gnulib/m4/string_h.m4: Updated.
4966         * gnulib/m4/memcmp.m4: Removed.
4967         * gnulib/m4/onceonly_2_57.m4: Removed.
4968         * gnulib/m4/00gnulib.m4: New.
4969         * gnulib/m4/mmap-anon.m4: New.
4970         * gnulib/m4/multiarch.m4: New.
4971         * gnulib/m4/onceonly.m4: New.
4972         * gnulib/m4/stddef_h.m4: New.
4973         * gnulib/m4/warn-on-use.m4: New.
4974         * gnulib/m4/wchar.m4: Removed.
4975         * gnulib/m4/wchar_h.m4: New.
4976         * gnulib/m4/wchar_t.m4: New.
4977         * gnulib/m4/wint_t.m4: New.
4978
4979         * aclocal.m4: Regenerate.
4980         * config.in: Likewise.
4981         * configure: Likewise.
4982         * gnulib/Makefile.in: Likewise.
4983
4984 2010-05-21  Tom Tromey  <tromey@redhat.com>
4985
4986         * dwarf2loc.c (extract_bits_primitive): New function.
4987         (extract_bits): Likewise.
4988         (insert_bits): Likewise.
4989         (copy_bitwise): Likewise.
4990         (read_pieced_value): Do all operations in bits.
4991         (write_pieced_value): Likewise.
4992         * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
4993         * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
4994         Always use xrealloc to resize piece array.
4995         (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
4996         <DW_OP_piece>: Update.
4997         <DW_OP_bit_piece>: New case.
4998
4999 2010-05-21  Tom Tromey  <tromey@redhat.com>
5000
5001         * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5002         <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5003         * dwarf2expr.h (enum dwarf_value_location)
5004         <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5005         * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5006         (add_piece): Handle empty piece.
5007         (execute_stack_op) <DW_OP_piece>: Handle
5008         DWARF_VALUE_OPTIMIZED_OUT.
5009
5010 2010-05-21  Tom Tromey  <tromey@redhat.com>
5011
5012         * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5013         evaluate_subexp, not evaluate_subexp_with_coercion.
5014
5015 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
5016
5017         * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5018         attribute.
5019
5020 2010-05-21  Tom Tromey  <tromey@redhat.com>
5021
5022         * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5023         offset.
5024         (write_pieced_value): Likewise.
5025
5026 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
5027
5028         * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5029         and DW_TAG_volatile_type.
5030         (new_symbol): Likewise.
5031
5032 2010-05-20  Pierre Muller  <muller@ics.u-strasbg.fr>
5033
5034         * p-valprint.c (pascal_val_print): Call get_array_bounds
5035         to obtain the number of elements in an array.
5036
5037 2010-05-19  Doug Evans  <dje@google.com>
5038
5039         * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5040
5041         * python.c (source_python_script): Add comment.
5042         (source_python_script_for_objfile): Remove unnecessary call to
5043         gdbpy_print_stack.
5044
5045 2010-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5046             Sergio Durigan Junior  <sergiodj@redhat.com>
5047
5048         Code cleanup.
5049         * parse.c (exp_iterate): Use operator_length wrapper function.
5050
5051 2010-05-18  Michael Snyder  <msnyder@vmware.com>
5052
5053         * ada-lang.c: White space.
5054         * ada-typeprint.c: White space.
5055         * ada-valprint.c: White space.
5056         * addrmap.c: White space.
5057         * auxv.c: White space.
5058         * ax-gdb.c: White space.
5059
5060 2010-05-18  Hui Zhu  <teawater@gmail.com>
5061
5062         * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5063         for oldfp.
5064         (inferior_call_waitpid): Move make_cleanup out of check.
5065         Check the return of waitpid.
5066         (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5067
5068 2010-05-17  Michael Snyder  <msnyder@vmware.com>
5069
5070         * tui/tui.c: White space.
5071         * tui/tui-data.c: White space.
5072         * tui/tui-disasm.c: White space.
5073         * tui/tui-file.c: White space.
5074         * tui/tui-interp.c: White space.
5075         * tui/tui-main.c: White space.
5076         * tui/tui-out.c: White space.
5077         * tui/tui-regs.c: White space.
5078         * tui/tui-source.c: White space.
5079         * tui/tui-stack.c: White space.
5080         * tui/tui-win.c: White space.
5081         * tui/tui-winsource.c: White space.
5082
5083         * procfs.c: White space.
5084
5085         * python/py-auto-load.c: White space.
5086         * python/py-block.c: White space.
5087         * python/py-breakpoint.c: White space.
5088         * python/py-cmd.c: White space.
5089         * python/py-function.c: White space.
5090         * python/py-lazy-string.c: White space.
5091         * python/py-objfile.c: White space.
5092         * python/py-param.c: White space.
5093         * python/py-prettyprint.c: White space.
5094         * python/py-progspace.c: White space.
5095         * python/py-symtab.c: White space.
5096         * python/python.c: White space.
5097         * python/py-type.c: White space.
5098         * python/py-utils.c: White space.
5099         * python/py-value.c: White space.
5100
5101         * mi/mi-cmd-break.c: White space.
5102         * mi/mi-cmd-env.c: White space.
5103         * mi/mi-cmds.c: White space.
5104         * mi/mi-cmd-stack.c: White space.
5105         * mi/mi-cmd-var.c: White space.
5106         * mi/mi-console.c: White space.
5107         * mi/mi-getopt.c: White space.
5108         * mi/mi-interp.c: White space.
5109         * mi/mi-main.c: White space.
5110         * mi/mi-out.c: White space.
5111         * mi/mi-parse.c: White space.
5112
5113         * cli/cli-cmds.c: White space.
5114         * cli/cli-decode.c: White space.
5115         * cli/cli-dump.c: White space.
5116         * cli/cli-interp.c: White space.
5117         * cli/cli-logging.c: White space.
5118         * cli/cli-script.c: White space.
5119         * cli/cli-setshow.c: White space.
5120
5121         * valarith.c: White space.
5122         * valops.c: White space.
5123         * valprint.c: White space.
5124         * value.c: White space.
5125         * varobj.c: White space.
5126         * xcoffread.c: White space.
5127         * xml-support.c: White space.
5128         * xml-tdesc.c: White space.
5129
5130 2010-05-17  Andreas Schwab  <schwab@redhat.com>
5131
5132         PR gdb/11092
5133         * c-lang.c (c_printstr): Compute real length of NUL terminated
5134         string at first.
5135
5136 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
5137
5138         * parse.c (parse_exp_in_context): When block is not NULL, use
5139         its associated language to parse the expression instead of
5140         the current_language.
5141
5142 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
5143
5144         * jv-lang.c (java_lookup_class): Remove commented out code.
5145         (type_from_class): Likewise.
5146         (java_op_print_tab): Remove commented-out elements.
5147
5148 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
5149
5150         * ada-lang.c (to_fixed_range_type): The the raw index type as
5151         argument instead of the raw type name.  Remove orig_type parameter.
5152         Update calls throughout.
5153         (ada_fixup_array_indexes_type): New function.
5154         (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5155         * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5156         * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5157         Remove name parameter.
5158         (print_array_type): Add call to ada_fixup_array_indexes_type.
5159         Update calls to print_range_type.
5160         (ada_print_type): Update calls to print_range_type.
5161
5162 2010-05-17  Pierre Muller  <muller@ics.u-strasbg.fr>
5163
5164         * dwarf2read.c (read_set_type): Set type length if
5165         DW_AT_byte_size attribute is present.
5166
5167 2010-05-17  Pierre Muller  <muller@ics.u-strasbg.fr>
5168
5169         * p-valprint.c (pascal_val_print): Handle set type if range limits
5170         are undefined but size is known.
5171
5172 2010-05-17  Pedro Alves  <pedro@codesourcery.com>
5173
5174         * procfs.c: Reformat.
5175
5176 2010-05-16  Michael Snyder  <msnyder@vmware.com>
5177
5178         * target.c: White space.
5179         * target-descriptions.c: White space.
5180         * target-memory.c: White space.
5181         * thread.c: White space.
5182         * top.c: White space.
5183         * tracepoint.c: White space.
5184         * trad-frame.c: White space.
5185         * tramp-frame.c: White space.
5186         * ui-file.c: White space.
5187         * ui-out.c: White space.
5188         * user-regs.c: White space.
5189         * utils.c: White space.
5190
5191         * scm-exp.c: White space.
5192         * scm-lang.c: White space.
5193         * scm-valprint.c: White space.
5194         * sentinel-frame.c: White space.
5195         * ser-base.c: White space.
5196         * ser-go32.c: White space.
5197         * serial.c: White space.
5198         * ser-mingw.c: White space.
5199         * ser-pipe.c: White space.
5200         * ser-tcp.c: White space.
5201         * ser-unix.c: White space.
5202         * solib.c: White space.
5203         * solib-darwin.c: White space.
5204         * solib-frv.c: White space.
5205         * solib-irix.c: White space.
5206         * solib-osf.c: White space.
5207         * solib-pa64.c: White space.
5208         * solib-som.c: White space.
5209         * solib-spu.c: White space.
5210         * solib-svr4.c: White space.
5211         * solib-target.c: White space.
5212         * source.c: White space.
5213         * stabsread.c: White space.
5214         * stack.c: White space.
5215         * std-regs.c: White space.
5216         * symfile.c: White space.
5217         * symmisc.c: White space.
5218         * symtab.c: White space.
5219
5220 2010-05-16  Michael Snyder  <msnyder@vmware.com>
5221
5222         * source.c (_initialize_source): Add "rev" as an abbreviation
5223         for the "reverse-search" command.
5224
5225 2010-05-16  Michael Snyder  <msnyder@vmware.com>
5226
5227         * record.c: White space.
5228         * regcache.c: White space.
5229         * reggroups.c: White space.
5230         * remote-fileio.c: White space.
5231         * remote-m32r-sdi.c: White space.
5232         * remote-mips.c: White space.
5233         * remote-sim.c: White space.
5234         * remote.c: White space.
5235         (process_g_packet): Remove orphan braces.
5236
5237 2010-05-15  Michael Snyder  <msnyder@vmware.com>
5238
5239         * parse.c: White space.
5240         * p-lang.c: White space.
5241         * posix-hdep.c: White space.
5242         * printcmd.c: White space.
5243         * progspace.c: White space.
5244         * prologue-value.c: White space.
5245         * psymtab.c: White space.
5246         * p-typeprint.c: White space.
5247         * p-valprint.c: White space.
5248
5249         * objc-lang.c: White space.
5250         * objfiles.c: White space.
5251         * observer.c: White space.
5252         * osabi.c: White space.
5253         * osdata.c: White space.
5254
5255         * m2-lang.c: White space.
5256         * m2-valprint.c: White space.
5257         * macrocmd.c: White space.
5258         * macroexp.c: White space.
5259         * macroscope.c: White space.
5260         * macrotab.c: White space.
5261         * main.c: White space.
5262         * maint.c: White space.
5263         * mdebugread.c: White space.
5264         * memattr.c: White space.
5265         * minsyms.c: White space.
5266         * monitor.c: White space.
5267
5268 2010-05-14  Michael Snyder  <msnyder@vmware.com>
5269
5270         * jv-lang.c: White space.
5271         * jv-typeprint.c: White space.
5272         * jv-valprint.c: White space.
5273         * language.c: White space.
5274         * libunwind-frame.c: White space.
5275         * linespec.c: White space.
5276         * linux-nat.c: White space.
5277         * linux-record.c: White space.
5278         * linux-thread-db.c: White space.
5279
5280         * infcall.c: White space.
5281         * inf-child.c: White space.
5282         * infcmd.c: White space.
5283         * inferior.c: White space.
5284         * inf-loop.c: White space.
5285         * inflow.c: White space.
5286         * inline-frame.c: White space.
5287         * interps.c: White space.
5288
5289         * gcore.c: White space.
5290         * gdb.c: White space.
5291         * gdbtypes.c: White space.
5292         * gnu-nat.c: White space.
5293         * gnu-v2-abi.c: White space.
5294         * gnu-v3-abi.c: White space.
5295
5296         * findcmd.c: White space.
5297         * findvar.c: White space.
5298         * fork-child.c: White space.
5299         * frame-base.c: White space.
5300         * frame.c: White space.
5301         * frame-unwind.c: White space.
5302         * f-valprint.c: White space.
5303
5304         * elfread.c: White space.
5305         * environ.c: White space.
5306         * eval.c: White space.
5307         * event-loop.c: White space.
5308         * event-top.c: White space.
5309         * exceptions.c: White space.
5310         * exec.c: White space.
5311         * expprint.c: White space.
5312
5313         * dbxread.c: White space.
5314         * dcache.c: White space.
5315         * disasm.c: White space.
5316         * doublest.c: White space.
5317         * dsrec.c: White space.
5318         * dummy-frame.c: White space.
5319         * dwarf2expr.c: White space.
5320         * dwarf2-frame.c: White space.
5321         * dwarf2loc.c: White space.
5322         * dwarf2read.c: White space.
5323
5324 2010-05-14  Phil Muldoon  <pmuldoon@redhat.com>
5325
5326         PR python/11482
5327
5328         * python/py-value.c (valpy_hash): New function.
5329         (value_object_type): Register valpy_hash.
5330
5331 2010-05-14  Hui Zhu  <teawater@gmail.com>
5332             Michael Snyder  <msnyder@vmware.com>
5333
5334         * linux-fork.c (gdbthread.h): New include.
5335         (fork_info): Add parent_ptid.
5336         (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5337         functions.
5338         (delete_checkpoint_command): Call inferior_call_waitpid.
5339         (checkpoint_command): Set parent_ptid.
5340
5341 2010-05-13  Michael Snyder  <msnyder@vmware.com>
5342
5343         * dictionary.c: Re-indent to GNU coding standard.
5344
5345         * charset.c: White space.
5346         * c-lang.c: White space.
5347         * cli-out.c: White space.
5348         * coffread.c: White space.
5349         * complaints.c: White space.
5350         * completer.c: White space.
5351         * corefile.c: White space.
5352         * corelow.c: White space.
5353         * cp-abi.c: White space.
5354         * cp-namespace.c: White space.
5355         * cp-support.c: White space.
5356         * cp-valprint.c: White space.
5357         * c-typeprint.c: White space.
5358         * c-valprint.c: White space.
5359         * blockframe.c: White space.
5360         * breakpoint.c: White space.
5361         * buildsym.c: White space.
5362         * blockframe.c: White space.
5363         * bcache.c: White space.
5364         * gdbarch.sh: White space, add blank lines.
5365         * arch-utils.c: Ditto.
5366         * gdbarch.c: Regenerate.
5367         * frame.c: White space, add blank lines.
5368         * stack.c: White space, add blank lines.
5369         (initialize_stack): Remove long-dead code.
5370
5371 2010-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5372
5373         Code cleanup.
5374         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5375         (locexpr_read_variable, loclist_read_variable): Update the callers.
5376
5377 2010-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5378
5379         Code cleanup.
5380         * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5381         Remove check of NULL returned by tag_type_to_type.
5382         (die_containing_type): Remove variable type.  Remove type_die variable
5383         initialization.  Remove check of NULL returned by tag_type_to_type.
5384
5385 2010-05-11  Pierre Muller  <muller@ics.u-strasbg.fr>
5386
5387         PR exp/11530.
5388         * gdbtypes.c (lookup_struct_elt_type): Also lookup
5389         names of unnamed structures or unions.
5390
5391 2010-05-11  Pierre Muller  <muller@ics.u-strasbg.fr>
5392
5393         * procfs.c (proc_watchpoint_address): New function.
5394         (procfs_stopped_by_watchpoint): Remove useless check after
5395         find_procinfo_or_die call.
5396         (procfs_stopped_data_address): New function.
5397         (procfs_use_watchpoints): Register new watchpoint related function.
5398
5399 2010-05-11  Tom Tromey  <tromey@redhat.com>
5400
5401         * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5402
5403 2010-05-10  Michael Snyder  <msnyder@vmware.com>
5404
5405         * utils.c: White space cleanup.
5406
5407 2010-05-10  Tom Tromey  <tromey@redhat.com>
5408
5409         * eval.c (ptrmath_type_p): Add 'lang' argument.
5410         (evaluate_subexp_standard): Update.
5411         (evaluate_subexp_with_coercion): Update.
5412         * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5413
5414 2010-05-10  Michael Snyder  <msnyder@vmware.com>
5415
5416         * utils.c (do_fclose_cleanup) Restore local variable.
5417
5418 2010-05-09  Doug Evans  <dje@google.com>
5419
5420         * record.c (init_record_core_ops): Rename record_core to record-core.
5421
5422 2010-05-08  Joel Brobecker  <brobecker@adacore.com>
5423
5424         Implement task switching on pa-hpux.
5425         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5426         (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5427
5428 2010-05-08  Pierre Muller  <muller@ics.u-strasbg.fr>
5429
5430         * valops.c (find_overload_match): Add missing i18n markup.
5431
5432 2010-05-08  Pierre Muller  <muller@ics.u-strasbg.fr>
5433
5434         * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5435
5436 2010-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
5437
5438         * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5439         list for the obconcat call.
5440         * mdebugread.c (parse_symbol): Likewise.
5441         * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5442         Likewise.
5443         * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5444         New variable ap.  Remove variables len and val.
5445         * symfile.h (obconcat): Likewise for the prototype.
5446
5447 2010-05-07  Michael Snyder  <msnyder@vmware.com>
5448
5449         * python/python.c (execute_gdb_command): Remove unused variables.
5450         * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5451         * python/py-breakpoint.c (gdbpy_breakpoint_created):
5452         Remove unused variable.
5453         * python/py-cmd.c (cmdpy_function): Remove unused variable.
5454         (cmdpy_completer): Remove unused variable.
5455         * python/py-frame.c (frapy_find_sal): Remove unused variable.
5456         * python/py-function.c (fnpy_call): Remove unused variable.
5457         * python/py-objfile.c (objfile_to_objfile_object):
5458         Remove unused variable.
5459         * python/py-param.c (parmpy_init): Remove unused variable.
5460         * python/py-prettyprint.c (apply_varobj_pretty_printer):
5461         Remove unused variable.
5462         (gdbpy_default_visualizer): Remove unused variable.
5463         * python/py-progspace.c (pspace_to_pspace_object):
5464         Remove unused variable.
5465         * python/py-symtab.c (symtab_and_line_to_sal_object):
5466         Remove unused variable.
5467         * python/py-type.c (typy_template_argument):
5468         Remove unused variable.
5469         * python/py-value.c (valpy_string): Remove unused variable.
5470         (convert_value_from_python): Remove unused variables.
5471
5472 2010-05-07  Michael Snyder  <msnyder@vmware.com>
5473
5474         * valops.c (value_cast_pointers): Restore unused variable 'type1',
5475         and use it to compute variable 't1'.
5476
5477 2010-05-07  Joel Brobecker  <brobecker@adacore.com>
5478
5479         * ada-lang.c (assign_aggregate): Remove unused variable.
5480
5481 2010-05-07  Sami Wagiaalla  <swagiaal@redhat.com>
5482
5483         PR C++/7943:
5484         * valops.c (find_overload_match): Handle fsym == NULL case.
5485         Add int no_adl argument.
5486         (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5487         when appropriate.
5488         Add int no_adl argument.
5489         (find_oload_champ_namespace):   Add int no_adl argument.
5490         * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5491         expression.
5492         * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5493         * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5494         Evaluate arguments and use them to perform ADL lookup.
5495         Pass no_adl argument to find_overload_match.
5496         Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5497         * cp-support.h: Added prototype for
5498         make_symbol_overload_list_namespace.
5499         * cp-support.c (make_symbol_overload_list_namespace): New function.
5500         (make_symbol_overload_list_adl_namespace): New function.
5501         (make_symbol_overload_list_adl): New function.
5502         (make_symbol_overload_list_using): Moved code to add function to
5503         overload set to make_symbol_overload_list_namespace.
5504         * c-exp.y: create UNKNOWN_CPP_NAME token.
5505         Add parse rule for ADL functions.
5506         (classify_name): Recognize an UNKNOWN_CPP_NAME.
5507
5508 2010-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5509
5510         * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5511         sentinel.
5512
5513 2010-05-07  Joel Brobecker  <brobecker@adacore.com>
5514
5515         Implement task switching on solaris targets.
5516         * sol-thread.c (thread_db_find_thread_from_tid)
5517         (sol_get_ada_task_ptid): New functions.
5518         (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5519
5520 2010-05-07  Pedro Alves  <pedro@codesourcery.com>
5521
5522         * remote.c (remote_query_supported_append): Use reconcat.
5523         (remote_query_supported): Install a cleanup.  Use reconcat.
5524
5525 2010-05-07  Pedro Alves  <pedro@codesourcery.com>
5526
5527         * gdbarch.sh (qsupported): Delete.
5528         * gdbarch.h, gdbarch.c: Regenerate.
5529         * remote.c (remote_query_supported): Remove use of
5530         gdbarch_qsupported.
5531
5532 2010-05-06  Sergio Durigan Junior  <sergiodj@redhat.com>
5533
5534         * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5535         function.
5536
5537 2010-05-06  Michael Snyder  <msnyder@vmware.com>
5538
5539         * xml-support.c (xinclude_start_include): Delete unused variable.
5540         (xml_process_xincludes): Delete unused variable.
5541         * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5542         * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5543         (tdesc_find_arch_register): Delete unused variable.
5544         (tdesc_use_registers): Delete unused variable.
5545         * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5546         * inferior.c (print_inferior): Delete unused variable.
5547         * record.c (record_open_1): Delete unused variable.
5548         (record_restore): Delete unused variable.
5549         (cmd_record_save): Delete unused variable.
5550         * gcore.c (derive_heap_segment): Delete unused variable.
5551         (objfile_find_memory_regions): Use unused variable.
5552         * jit.c (jit_inferior_init): Delete unused variable.
5553         * progspace.c (clone_program_space): Delete unused variable.
5554         (pspace_empty_p): Delete unused variable.
5555
5556         * frame-unwind.c (frame_unwind_find_by_frame):
5557         Delete unused variable.
5558         * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5559         * cp-support.c (mangled_name_to_comp): Delete unused variable.
5560         (method_name_from_physname): Delete unused variable.
5561         (cp_func_name): Delete unused variable.
5562         (cp_validate_operator): Delete unused variable.
5563         * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5564         Delete unused variable.
5565         * trad-frame.c (trad_frame_get_prev_register):
5566         Delete unused variable.
5567         * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5568
5569         * serial.c (serial_for_fd): Delete unused variable.
5570         * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5571         * top.c (execute_command): Delete unused variable.
5572         (init_main): Delete unused variable.
5573         * utils.c (do_fclose_cleanup): Delete unused variable.
5574         (do_all_inferior_continuations): Delete unused variable.
5575         (initialize_utils): Delete unused variable.
5576         (internal_problem_mode): Delete unused global.
5577         * frame.c (get_prev_frame): Delete unused global.
5578         (get_frame_locals_address): Delete unused global.
5579         (get_frame_args_address): Delete unused global.
5580
5581         * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5582         (pascal_type_print_varspec_prefix): Delete unused variable.
5583         * f-typeprint.c (f_type_print_base): Delete unused variable.
5584         (f_type_print_varspec_suffix): Delete unused variable.
5585         * m2-typeprint.c (m2_print_type): Delete unused variable.
5586         (m2_long_set): Delete unused variable.
5587         * ada-valprint.c (ada_val_print_1): Delete unused variable.
5588         * d-valprint.c (dynamic_array_type): Delete unused variable.
5589         * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5590         Delete unused variable.
5591         (f77_create_arrayprint_offset_tbl): Delete unused variable.
5592         * m2-valprint.c (m2_val_print): Delete unused variable.
5593
5594         * ui-out.c (ui_out_field_int): Delete unused variable.
5595         (ui_out_field_fmt_int): Delete unused variable.
5596         * varobj.c (varobj_list_children): Delete unused variable.
5597         (varobj_set_value): Delete unused variable.
5598         (install_new_value_visualizer): Delete unused variable.
5599         (varobj_set_visualizer): Delete unused variable.
5600         (varobj_update): Delete unused variable.
5601         (varobj_editable_p): Delete unused variable.
5602         (c_value_of_root): Delete unused variable.
5603         (cplus_describe_child): Delete unused variable.
5604
5605         * ada-lang.c (add_defn_to_vec): Delete unused variable.
5606         (decode_constrained_packed_array_type): Delete unused variable.
5607         (add_defn_to_vec): Delete unused variable.
5608         (symbol_completion_match): Delete unused variable.
5609         (value_tag_from_contents_and_address): Delete unused variable.
5610         (ada_evaluate_subexp): Delete unused variable.
5611         * c-lang.c (classify_type): Delete unused variable.
5612         * f-lang.c (f_printstr): Delete unused variable.
5613         * objc-lang.c (objc_printstr): Delete unused variable.
5614         * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5615         * jv-lang.c (type_from_class): ifdef unused variable.
5616         (java_class_name_from_physname): Delete unused variable.
5617         * m2-lang.c (m2_printstr): Delete unused variable.
5618
5619         * objfiles.c (objfile_relocate): Delete unused variable.
5620         * maint.c (_initialize_maint_cmds): Delete unused variable.
5621         * demangle.c (_initialize_demangler): Delete unused variable.
5622         * corefile.c (reopen_exec_file): Delete unused variable.
5623         * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5624         * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5625
5626         * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5627         * memattr.c (mem_delete): Delete unused variable.
5628         (invalidate_target_mem_regions): Delete unused variable.
5629         * mem-break.c (default_memory_insert_breakpoint):
5630         Delete unused variable.
5631         * target.c (target_get_osdata): Delete unused variable.
5632         * parse.c (length_of_subexp): Delete unused variable.
5633         (prefixify_subexp): Delete unused variable.
5634         (exp_iterate): Delete unused variable.
5635         * reverse.c (delete_bookmark_command): Delete unused variable.
5636
5637         * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5638         * macroexp.c (gather_arguments): Delete unused variable.
5639         (substitute_args): Delete unused variable.
5640         * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5641         * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5642         (_initialize_gdbarch): Delete unused variable.
5643         * gdbarch.c, gdbarch.h: Regenerate.
5644         * arch-utils.c (initialize_current_architecture):
5645         Delete unused variable.
5646         (_initialize_gdbarch_utils): Delete unused variable.
5647         * gdbtypes.c (make_cv_type): Delete unused variable.
5648         (make_type_with_address_space): Delete unused variable.
5649
5650         * linespec.c (decode_compound): Delete unused variable.
5651         * dictionary.c (iterator_next_hashed): Delete unused variable.
5652         * infcall.c (call_function_by_hand): Delete unused variable.
5653         * infcmd.c (step_1): Delete unused variable.
5654         (registers_info): Delete unused variable.
5655         (attach_command): Delete unused variable.
5656         * infrun.c (follow_exec): Delete unused variable.
5657         (handle_step_into_function_backwards): Delete unused variable.
5658         (_initialize_infrun): Delete unused variable.
5659         * stack.c (parse_frame_specification_1): Delete unused variable.
5660         (frame_info): Delete unused variable.
5661         (backtrace_command_1): Delete unused variable.
5662         (catch_info): Delete unused variable.
5663
5664         * eval.c (evaluate_subexp_standard): Delete unused variable.
5665         * valops.c (value_cast_pointers): Delete unused variable.
5666         (value_dynamic_cast): Delete unused variable.
5667         (value_array): Delete unused variable.
5668         (find_overload_match): Delete unused variable.
5669         * valarith.c (value_subscript): Delete unused variable.
5670         (value_binop): Delete unused variable.
5671         * valprint.c (_initialize_valprint): Delete unused variable.
5672         * printcmd.c (print_command_1): Delete unused variable.
5673         (address_info): Delete unused variable.
5674         (printf_command): Delete unused variable.
5675
5676         * auxv.c (target_auxv_search): Delete unused variable.
5677         * blockframe.c (get_frame_block): Delete unused variable.
5678         * regcache.c (regcache_cpy): Delete unused variable.
5679         (regcache_cpy_no_passthrough): Delete unused variable.
5680         * charset.c (wchar_iterate): Delete unused variable.
5681         (find_charset_names): Delete unused variable.
5682         (_initialize_charset): Delete unused variable.
5683         * disasm.c (do_mixed_source_and_assembly):
5684         Delete unused variable.
5685         * source.c (set_default_source_symtab_and_line):
5686         Delete unused variable.
5687         (set_substitute_path_command): Delete unused variable.
5688         * value.c (preserve_values): Delete unused variable.
5689         (value_from_double): Delete unused variable.
5690
5691 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5692
5693         * psymtab.c (lookup_partial_symbol): Delete unused variable.
5694         (find_last_source_symtab_from_partial): Delete unused variable.
5695         * symfile.c (place_section): Delete unused variable.
5696         (default_symfile_offsets): Delete unused variable.
5697         (get_debug_link_info): Delete unused variable.
5698         (find_separate_debug_file_by_debuglink): Delete unused variable.
5699         (add_symbol_file_command): Delete unused variable.
5700         (symfile_find_segment_sections): Delete unused variable.
5701         * symmisc.c (free_symtab): Delete unused variable.
5702         (dump_symtab_1): Delete unused variable.
5703         * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5704         (find_pc_sect_symtab): Delete unused variable.
5705         (skip_prologue_using_lineinfo): Delete unused variable.
5706         (sources_info): Delete unused variable.
5707         (completion_list_add_name): Delete unused variable.
5708         (expand_line_sal): Delete unused variable.
5709
5710         * breakpoint.c (validate_commands_for_breakpoint):
5711         Delete unused variables.
5712         (insert_catchpoint): Delete unused variable.
5713         (update_watchpoint): Delete unused variable.
5714         (insert_bp_location): Delete unused variable.
5715         (insert_breakpoint_locations): Delete unused variable.
5716         (remove_breakpoint_1): Delete unused variable.
5717         (software_breakpoint_inserted_here_p): Delete unused variable.
5718         (watchpoints_triggered): Delete unused variable.
5719         (bpstat_check_watchpoint): Delete unused variable.
5720         (bpstat_stop_status): Delete unused variable.
5721         (print_one_breakpoint_location): Delete unused variable.
5722         (allocate_bp_location): Delete unused variable.
5723         (create_breakpoint): Delete unused variable.
5724         (watch_command_1): Delete unused variable.
5725         (catch_exception_command_1): Delete unused variable.
5726         (catch_ada_exception_command): Delete unused variable.
5727         (delete_breakpoint): Delete unused variable.
5728         (breakpoint_re_set_one): Delete unused variable.
5729         (do_enable_breakpoint): Delete unused variable.
5730
5731 2010-05-06  Pedro Alves  <pedro@codesourcery.com>
5732
5733         * amd64-tdep.c: Include disasm.h.
5734         (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5735         (amd64_insn_length): Moved to disasm.c and renamed.
5736         (fixup_riprel): Adjust.
5737         * disasm.c (do_ui_file_delete): New.
5738         (gdb_insn_length): New.
5739         (gdb_buffered_insn_length_fprintf)
5740         (gdb_buffered_insn_length_init_dis)
5741         (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5742         renamed.
5743         * disasm.h (gdb_insn_length): Declare.
5744         (gdb_buffered_insn_length): Declare.
5745
5746 2010-05-06  Pedro Alves  <pedro@codesourcery.com>
5747
5748         * remote.c (clear_threads_parsing_context): New.
5749         (remote_threads_info): Delete unused null_cleanup.  Install a
5750         cleanup to clear the threads_parsing_context in case parsing
5751         throws.
5752
5753 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5754
5755         * c-exp.y (parse_string_or_char): Delete unused variable.
5756         (c_lex): Delete unused variable.
5757         * cp-name-parser.y (cpname_lex): Delete unused variable.
5758         * ada-exp.y (find_primitive_type): Delete unused variable.
5759         (write_var_or_type): Delete unused variable.
5760         * jv-exp.y (java_parse): Delete unused variable.
5761         (push_expression_name): Delete unused variable.
5762         * p-exp.y (pascal_lex): Delete unused variable.
5763
5764 2010-05-05  Pedro Alves  <pedro@codesourcery.com>
5765
5766         * remote.c (remote_threads_info): Really revert previous previous
5767         change.
5768
5769 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5770
5771         * elfread.c (elf_symtab_read): Delete unused variable.
5772         (find_separate_debug_file_by_buildid): Delete unused variables.
5773         (elf_symfile_read): Delete unused variable.
5774
5775         * coffread.c (coff_symfile_read): Delete unused variables.
5776
5777         * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5778         (read_pe_exported_syms): Delete unused variable.
5779
5780         * stabsread.c (define_symbol): Delete unused variable.
5781
5782         * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5783         (process_psymtab_comp_unit): Delete unused variable.
5784         (dwarf2_build_psymtabs_hard): Delete unused variable.
5785         (load_partial_comp_unit): Delete unused variable.
5786         (create_all_comp_units): Delete unused variable.
5787         (scan_partial_symbols): Delete unused variable.
5788         (add_partial_symbol): Delete unused variable.
5789         (add_partial_namespace): Delete unused variable.
5790         (add_partial_enumeration): Delete unused variable.
5791         (load_full_comp_unit): Delete unused variable.
5792         (process_full_comp_unit): Delete unused variable.
5793         (read_file_scope): Delete unused variable.
5794         (read_type_unit_scope): Delete unused variable.
5795         (process_structure_scope): Delete unused variable.
5796         (process_enumeration_scope): Delete unused variable.
5797         (read_tag_ptr_to_member_type): Delete unused variable.
5798         (read_typedef): Delete unused variable.
5799         (read_partial_die): Delete unused variable.
5800         (decode_locdesc): Delete unused variable.
5801         (zeroed_partial_die): Delete unused global variable.
5802
5803         * tui/tui-interp.c (_initialize_tui_interp):
5804         Delete unused variable.
5805         * tui/tui-regs.c tui_display_registers_from):
5806         Delete unused variable.
5807         (tui_check_register_values): Delete unused variable.
5808         (tui_register_format): Delete unused variable.
5809         * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
5810         * tui/tui-windata.c (tui_display_data_from_line):
5811         Delete unused variables.
5812         (tui_vertical_data_scroll): Delete unused variables.
5813
5814 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5815
5816         * remote.c (remote_threads_info): Revert questionable part of
5817         the previous change.
5818
5819 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5820
5821         * mi/mi-out.c (mi_table_begin): Delete unused variable.
5822         * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5823         (mi_cmd_var_list_children): Delete unused variable.
5824         (varobj_update_one): Delete unused variable.
5825         * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
5826         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
5827         Delete unused variable.
5828         (mi_cmd_stack_list_variables): Delete unused variable.
5829         (list_args_or_locals): Delete unused variable.
5830         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
5831         Delete unused variables.
5832         (mi_cmd_file_list_exec_source_files): Delete unused variable.
5833         * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
5834         Delete unused variable.
5835         * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5836         (mi_cmd_interpreter_exec): Delete unused variable.
5837         (mi_on_normal_stop): Delete unused variable.
5838         * mi/mi-main.c (run_one_inferior): Delete unused variable.
5839         (print_one_inferior): Delete unused variables.
5840         (mi_execute_command): Delete unused variable.
5841         (mi_cmd_execute): Delete unused variable.
5842         (timestamp): Delete unused variable.
5843
5844         * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
5845         (restore_binary_file): Delete unused variable.
5846         * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5847         * cli/cli-script.c (define_command): Delete unused variables.
5848         (recurse_read_control_structure): Delete unused variable.
5849         (script_from_file): Delete unused variable.
5850         * cli/cli-cmds.c (complete_command): Delete unused variable.
5851         (disassemble_command): Delete unused variable.
5852
5853         * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
5854         * tracepoint.c (delete_trace_variable_command):
5855         Delete unused variables.
5856         (encode_actions_1): Delete unused variables.
5857         (start_tracing): Delete unused variable.
5858         (trace_status_mi): Delete unused variable.
5859         (tfind_1): Delete unused variable.
5860         (trace_find_pc_command): Delete unused variable.
5861         (trace_find_line_command): Delete unused variables.
5862         (trace_find_range_command): Delete unused variables.
5863         (trace_find_outside_command): Delete unused variables.
5864         (parse_tracepoint_definition): Delete unused variables.
5865         (tfile_fetch_registers): Delete unused variable.
5866
5867         * dcache.c (dcache_init): Delete unused variable.
5868         (dcache_info): Delete unused variable.
5869
5870         * remote.c (remote_threads_info): Delete unused variable.
5871         (process_stop_reply) :Delete unused variable.
5872         (remote_get_trace_status): Delete unused variables.
5873
5874         * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5875         (thread_from_lwp): Delete unused variable.
5876         (enable_thread_event_reporting): Delete unused variable.
5877         (check_for_thread_db): Delete unused variables.
5878         (thread_db_find_new_threads_2): Delete unused variable.
5879
5880         * linux-fork.c (info_checkpoints_command): Delete unused variables.
5881         (checkpoint_command): Delete unused variable.
5882         (linux_fork_context): Delete unused variables.
5883
5884         * linux-nat.c (linux_parent_pid): Delete unused global variable.
5885         (linux_tracefork_child): Delete unused variable.
5886         (linux_child_follow_fork): Delete unused variable.
5887         (linux_nat_detach): Delete unused variable.
5888         (linux_handle_extended_wait): Delete unused variable.
5889         (linux_nat_has_pending_sigint): Delete unused variable.
5890         (linux_nat_find_memory_regions): Delete unused variable.
5891         (linux_nat_make_corefile_notes): Delete unused variables.
5892         (linux_nat_info_proc_cmd): Delete unused variable.
5893         (linux_proc_pending_signals): Delete unused variable.
5894         (linux_nat_stop_lwp): Delete unused variables.
5895         (_initialize_linux_nat): Delete unused variable.
5896
5897         * ser-pipe.c (pipe_ops): Delete unused global variable.
5898
5899         * linux-record.c (record_linux_system_call):
5900         Delete unused variables.
5901
5902         * corelow.c (core_xfer_partial): Delete unused variables.
5903
5904         * solib-svr4.c (find_program_interpreter): Delete unused variable.
5905         (svr4_solib_create_inferior_hook): Add ifdef around
5906         conditionally-used variable declarations.
5907
5908         * solib.c (solib_find): Delete unused variable.
5909         (free_so_symbols): Delete unused variable.
5910         (info_sharedlibrary_command): Delete unused variable.
5911         (reload_shared_libraries_1): Delete unused variable.
5912         (_initialize_solib): Delete unused variable.
5913
5914         * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5915         (i386_collect_xstateregset): Delete unused variable.
5916         * i387-tdep.c (i387_print_float_info): Delete unused variable.
5917
5918         * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5919         Delete unused variable 'type'.
5920
5921 2010-05-05  Joel Brobecker  <brobecker@adacore.com>
5922
5923         * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros.  *
5924         ada-lang.c: Remove comment mentioning these macros.
5925         * m2-exp.y: Delete commented out code.
5926
5927 2010-05-05  Joel Brobecker  <brobecker@adacore.com>
5928
5929         * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5930         for array types.
5931         * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5932
5933 2010-05-04  Pierre Muller  <muller@ics.u-strasbg.fr>
5934
5935         ARI fix: Remove ATTRIBUTE_UNUSED throughout.
5936         * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
5937         ATTRIBUTE_UNUSED.
5938         (cleanup_kernel_helper_return): Likewise.
5939         * arm-tdep.c (copy_unmodified): Likewise.
5940         (copy_preload): Likewise.
5941         (copy_copro_load_store): Likewise.
5942         (cleanup_branch): Likewise.
5943         (copy_b_bl_blx): Likewise.
5944         (copy_bx_blx_reg): Likewise.
5945         (copy_alu_imm): Likewise.
5946         (copy_alu_reg): Likewise.
5947         (copy_alu_shifted_reg): Likewise.
5948         (cleanup_load): Likewise.
5949         (cleanup_store): Likewise.
5950         (cleanup_block_load_pc): Likewise.
5951         (cleanup_svc): Likewise.
5952         (copy_undef): Likewise.
5953         (copy_unpred): Likewise.
5954         * remote.c (register_remote_support_xml): Likewise.
5955
5956 2010-05-05  Hui Zhu  <teawater@gmail.com>
5957
5958         * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5959
5960 2010-05-04  Mark Kettenis  <kettenis@gnu.org>
5961
5962         * remote.c (register_remote_support_xml)
5963         (remote_query_supported_append, remote_query_supported): Add cast
5964         to NULL used as sentinel.
5965         * tracepoint.c (tvariables_info_1): Likewise.
5966         * utils.c (add_internal_problem_command): Likewise.
5967
5968 2010-05-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5969
5970         * dwarf2loc.c (read_pieced_value, write_pieced_value,
5971         dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5972         registers gracefully.
5973
5974 2010-05-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5975
5976         * exec.c (print_section_info): Display entry point without arch
5977         specific parts.
5978
5979 2010-05-04  Pierre Muller  <muller@ics.u-strasbg.fr>
5980
5981         PR exp/11349.
5982         * printcmd.c (x_command): Only dereference once implicitly for
5983         TYPE_CODE_REF.
5984
5985 2010-05-03  Doug Evans  <dje@google.com>
5986
5987         * event-loop.c (gdb_timer): Delete unused global.
5988         (create_timer): Update.
5989
5990 2010-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5991
5992         * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
5993         CURRENT->DECLARATION case.
5994         * cp-support.h (struct using_direct): Provide extended comment.
5995
5996 2010-05-03  Mark Kettenis  <kettenis@gnu.org>
5997
5998         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
5999         HPPABSD_SIZEOF_GREGS.
6000         (HPPAOBSD_SIZEOF_FPREGS): New define.
6001         (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6002         (hppaobsd_supply_fpregset): New function.
6003         (hppaobsd_gregset): Renamed from hppabsd_gregset.
6004         (hppaobsd_fpregset): New variable.
6005         (hppaobsd_regset_from_core_section): Handle floating-point registers.
6006         (_initialize_hppabsd_tdep): Remove spurious blank line.
6007
6008 2010-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
6009
6010         PR pascal/11349.
6011         * p-valprint.c (pascal_value_print): Always dereference a value with
6012         type code TYPE_CODE_REF.
6013
6014 2010-05-03  Pedro Alves  <pedro@codesourcery.com>
6015
6016         * remote.c (remote_notice_signals): New.
6017         (remote_start_remote): In non-stop mode, update the remote end on
6018         which signals it can silently pass.
6019         (init_remote_ops): Install remote_notice_signals.
6020
6021 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6022
6023         * cli/cli-cmds.h (error_no_arg): Remove.  Move the comment ...
6024         * command.h (error_no_arg): ... here.  Remove NORETURN, change
6025         ATTR_NORETURN to ATTRIBUTE_NORETURN.
6026         * defs.h (NORETURN, ATTR_NORETURN): Remove.
6027         (perror_with_name, verror, error, error_stream, vfatal, fatal)
6028         (internal_verror, internal_error, nomem): Remove NORETURN, change
6029         ATTR_NORETURN to ATTRIBUTE_NORETURN.
6030         * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6031         (throw_vfatal, throw_error): Remove NORETURN.
6032         (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6033         * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6034         (throw_error, deprecated_throw_reason): Remove NORETURN, change
6035         ATTR_NORETURN to ATTRIBUTE_NORETURN.
6036         * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6037         to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6038         NORETURN.
6039         * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6040         * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6041         ATTRIBUTE_NORETURN.
6042         * target.c (tcomplain): Likewise.
6043         * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6044         ATTRIBUTE_NORETURN.
6045         * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6046         (internal_error, perror_with_name, nomem): Remove NORETURN.
6047         * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6048         ATTRIBUTE_NORETURN.
6049
6050 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6051
6052         * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6053         * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6054         * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6055         (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6056         * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6057         (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6058         * complaints.h (complaint, internal_complaint): Likewise.
6059         * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6060         (ATTR_FORMAT): Remove.
6061         (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6062         (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6063         (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6064         (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6065         (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6066         (internal_error, internal_vwarning, internal_warning, warning)
6067         (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6068         * disasm.c (fprintf_disasm): Likewise.
6069         * exceptions.c (throw_it): Likewise.
6070         * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6071         (throw_error): Likewise.
6072         * language.h (type_error, range_error): Likewise.
6073         * linespec.c (cplusplus_error): Likewise.
6074         * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6075         * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6076         * monitor.c (monitor_debug): Likewise.
6077         * parser-defs.h (parser_fprintf): Likewise.
6078         * serial.h (serial_printf): Likewise.
6079         * tui/tui-hooks.c (tui_query_hook): Likewise.
6080         * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6081         (uo_message): Likewise.
6082         * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6083         * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6084         Likewise.
6085         * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6086
6087 2010-05-02  Pedro Alves  <pedro@codesourcery.com>
6088
6089         * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6090         (cli_table_header, cli_begin, cli_end, cli_field_int)
6091         (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6092         (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6093         Delete forward declarations.
6094         (cli_ui_out_impl): Move below the callbacks.
6095         (_initialize_cli_out): Delete.
6096
6097 2010-05-02  Pedro Alves  <pedro@codesourcery.com>
6098
6099         * README: Use consistent `GDB' and `GDBserver' spellings.
6100
6101 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6102
6103         * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6104
6105 2010-05-01  Pedro Alves  <pedro@codesourcery.com>
6106
6107         * infrun.c (prepare_for_detach): In non-stop, context switch to
6108         the thread that got the event before handling the event.
6109
6110 2010-04-30  Tom Tromey  <tromey@redhat.com>
6111
6112         * symtab.c (symbol_set_names): Fix typo.
6113
6114 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
6115
6116         * python/py-param.c (parm_constants): Avoid ARI warning
6117         by adding ARI comment.
6118         (parmpy_init): Likewise.
6119
6120 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
6121
6122         * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6123         and created type for re-use.
6124
6125 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
6126
6127         * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6128
6129 2010-04-29  Doug Evans  <dje@google.com>
6130
6131         * ser-base.h (reschedule): Delete prototype.
6132         * ser-base.c (reschedule): Make static.
6133
6134 2010-04-29  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6135
6136         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6137         (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
6138         (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
6139         EABI.
6140         (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
6141         use.
6142
6143 2010-04-29  Pedro Alves  <pedro@codesourcery.com>
6144
6145         PR gdb/11557
6146
6147         * regcache.c (registers_changed): Rename to ...
6148         (registers_changed_ptid): ... this, and only delete register cache
6149         entries matching the ptid filter argument.
6150         (registers_changed): Reimplement on top of registers_changed_ptid.
6151         * regcache.h (registers_changed_ptid): Declare.
6152         * target.c (target_resume): Flush register caches.
6153
6154 2010-04-29  Phil Muldoon  <pmuldoon@redhat.com>
6155             Tom Tromey  <tromey@redhat.com>
6156             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6157
6158         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6159         (SUBDIR_PYTHON_SRCS): Likewise.
6160         (py-parameter.o): New rule.
6161         * python/py-parameter.c: New file.
6162         * python/python-internal.h (gdbpy_initialize_parameter)
6163         (gdbpy_parameter, gdbpy_parameter_value)
6164         (gdbpy_parse_command_name): Declare.
6165         * python/py-cmd.c (parse_command_name): Rename to
6166         gdbpy_parse_command_name.
6167         (gdbpy_parse_command_name): Accept a starting list parameter and
6168         use over cmdlist.
6169         (cmdpy_init): Use gdbpy_parse_command_name.
6170         * python/python.c (parameter_to_python): Rename to
6171         gdbpy_parameter_to_python.  Accept enum var_types and value.
6172         (gdbpy_parameter): Use gdbpy_parameter_value.
6173         (_initialize_python): Call gdbpy_initialize_parameters.
6174
6175 2010-04-29  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6176
6177         * MAINTAINERS: Add myself for write after approval privileges.
6178
6179 2010-04-29  Mihail Zenkov  <mihail.zenkov@gmail.com>
6180
6181         D language support.
6182         * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6183         (COMMON_OBS): Add d-lang.o d-valprint.o.
6184         (HFILES_NO_SRCDIR): Add d-lang.h.
6185         * NEWS: Mention D language support.
6186         * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6187         * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6188         * d-lang.c: New file.
6189         * d-lang.h: New file.
6190         * d-valprint.c: New file.
6191         * defs.h (enum language): Add language_d.
6192         * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6193         * language.c (binop_result_type, integral_type, character_type)
6194         (string_type, boolean_type, structured_type): Add language_d.
6195         * symfile.c (init_filename_language_table): Add language_d.
6196         * symtab.c: Include d-lang.h.
6197         (symbol_init_language_specific, symbol_find_demangled_name)
6198         (symbol_natural_name, lookup_symbol_in_language)
6199         (symbol_demangled_name, symbol_matches_domain): Add language_d.
6200
6201 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6202
6203         * solib-svr4.c (solib_svr4_r_map): Expand function description.
6204
6205 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6206
6207         * symfile.c (init_filename_language_table): Register .dg files
6208         with language_ada.
6209
6210 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6211
6212         * gdbtypes.h (struct main_type): Expand comment about target_type
6213         field.
6214
6215 2010-04-27  Pedro Alves  <pedro@codesourcery.com>
6216             Tristan Gingold  <gingold@adacore.com>
6217
6218         * symfile.c (reread_symbols): Also search for file in libraries.
6219         Update comment.
6220
6221 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6222
6223         * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6224         in terms of configuration.
6225
6226 2010-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6227
6228         * objfiles.c: Include solist.h.
6229         (free_all_objfiles): New variable so.  Check stale solist objfiles.
6230         * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6231         and no_shared_libraries.
6232
6233 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6234
6235         ARI warning fix.
6236         * python/py-auto-load.c (source_section_scripts): Remove trailing
6237         new-line in i18n string.
6238
6239 2010-04-26  Doug Evans  <dje@google.com>
6240
6241         * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6242
6243 2010-04-26  Tom Tromey  <tromey@redhat.com>
6244
6245         * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6246         command list.
6247
6248 2010-04-26  Pierre Muller  <muller@ics.u-strasbg.fr>
6249
6250         Removal of config/i386/nm-i386sol2.h native configuration file.
6251         * config/i386/nm-i386sol2.h: Remove file.
6252         * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6253         * config/i386/sol2-64.mh: Idem.
6254         * config/djgpp/fnchange.lst: Remove reference to that file.
6255         * Makefile.in (HFILES_NO_SRCDIR): Idem.
6256
6257 2010-04-26  Pierre Muller  <muller@ics.u-strasbg.fr>
6258
6259         PR breakpoints/11531.
6260         * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6261         macro definition and related comment.
6262         * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6263         (resume): Remove code and comment related to this macro.
6264
6265 2010-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6266
6267         * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6268         Fix whitespace.
6269
6270 2010-04-24  Pedro Alves  <pedro@codesourcery.com>
6271
6272         * defs.h: Adjust comment.
6273         * filesystem.h, filesystem.c: New files.
6274         * Makefile.in (SFILES): Add filesystem.c.
6275         (COMMON_OBS): Add filesystem.o.
6276         * solib.c (solib_find): Handle DOS-based filesystems.  Handle
6277         different target and host path flavours.
6278         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6279         has_dos_based_file_system on the gdbarch.
6280         * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6281         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6282         * i386-tdep.c (i386_go32_init_abi): Ditto.
6283         * gdbarch.sh (has_dos_based_file_system): New.
6284         * gdbarch.h, gdbarch.c: Regenerate.
6285         * NEWS: Mention improved support for remote targets with DOS-based
6286         filesystems.  Mention new `set/show target-file-system-kind'
6287         commands.
6288
6289 2010-04-23  Stan Shebs  <stan@codesourcery.com>
6290
6291         * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6292         comments.
6293         (struct agent_reqs): Remove.
6294         (ax_reg_mask): Declare.
6295         * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6296         (free_agent_expr): Free reg_mask.
6297         (ax_print): Add scope and register mask info.
6298         (ax_reqs): Remove agent_reqs argument, use agent expression
6299         fields, and move part of register mask computation to...
6300         (ax_reg_mask): New function.
6301         * ax-gdb.c (gen_trace_static_fields): Call it.
6302         (gen_traced_pop): Ditto.
6303         (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6304         (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6305         (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6306         (gen_eval_for_expr): Ditto, and require an rvalue.
6307         (agent_command): Call ax_reqs.
6308         (agent_eval_command): Ditto.
6309         * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6310         (validate_action_line): Ditto.
6311         (collect_symbol): Ditto.
6312         (encode_actions_1): Ditto.
6313
6314 2010-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
6315             Paul Pluzhnikov  <ppluzhnikov@google.com>
6316             Jan Kratochvil  <jan.kratochvil@redhat.com>
6317
6318         Fix deadlock on looped list of loaded shared objects.
6319         * solib-svr4.c (LM_PREV): New function.
6320         (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6321         (svr4_current_sos): Check for correct l_prev.  New variables prev_lm
6322         and next_lm.  Clear prev_lm for solib_svr4_r_ldsomap.
6323         * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6324
6325 2010-04-23  Doug Evans  <dje@google.com>
6326
6327         * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6328         python.
6329         * configure: Regenerate.
6330         * main.c: #include "python/python.h".
6331         (captured_main): Defer loading auto-loaded scripts until after
6332         local_gdbinit has been sourced.
6333         * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6334         (load_auto_scripts_for_objfile): New function.
6335         (auto_load_new_objfile): Call it.
6336         * python/python.h (gdbpy_global_auto_load): Declare.
6337         (load_auto_scripts_for_objfile): Declare.
6338
6339         Add support for auto-loading scripts from .debug_gdb_scripts section.
6340         * NEWS: Add entry for .debug_gdb_scripts.
6341         * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6342         (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6343         (py-auto-load.o): New rule.
6344         * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6345         * cli/cli-cmds.h (find_and_open_script): Update prototype.
6346         * python/py-auto-load.c: New file.
6347         * python/python-internal.h: #include <stdio.h>.
6348         (set_python_list, show_python_list): Declare.
6349         (gdbpy_initialize_auto_load): Declare.
6350         (source_python_script_for_objfile): Declare.
6351         * python/python.c: Remove #include of observer.h.
6352         (gdbpy_auto_load): Moved to py-auto-load.c.
6353         (GDBPY_AUTO_FILENAME): Ditto.
6354         (gdbpy_new_objfile): Delete.
6355         (source_python_script_for_objfile): New function.
6356         (set_python_list, show_python_list): Make externally visible.
6357         (_initialize_python): Move "auto-load" command to py-auto-load.c
6358         and observer_attach_new_objfile to py-auto-load.c.
6359
6360 2010-04-23  Jerome Guitton  <guitton@adacore.com>
6361
6362         * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6363         (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6364         (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6365         New constants.
6366         (alpha_heuristic_analyze_probing_loop): New function.
6367         (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6368         and handle cases when a stack probe loop is generated.
6369         * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6370         (alpha_mdebug_max_frame_size_exceeded): New function.
6371         (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6372         (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6373         Return 0 when the maximum debuggable frame size has been exceeded.
6374
6375 2010-04-23  Joel Brobecker  <brobecker@adacore.com>
6376
6377         Fix ARI warning.
6378         * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6379
6380 2010-04-20  Chris Moller  <cmoller@redhat.com>
6381
6382         PR 10179
6383
6384         * symtab.c (rbreak_command): Added code to include a filename
6385         specification in the rbreak argument.
6386         * NEWS: Added a brief description of filename-qualified rbreak.
6387
6388 2010-04-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
6389
6390         Fix crashes on dangling display expressions.
6391         * ada-lang.c (ada_operator_check): New function.
6392         (ada_exp_descriptor): Fill-in the field operator_check.
6393         * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6394         * jv-lang.c (exp_descriptor_java): Likewise.
6395         * m2-lang.c (exp_descriptor_modula2): Likewise.
6396         * scm-lang.c (exp_descriptor_scm): Likewise.
6397         * parse.c (exp_descriptor_standard): Likewise.
6398         (operator_check_standard): New function.
6399         (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6400         * parser-defs.h (struct exp_descriptor): New field operator_check.
6401         (operator_check_standard, exp_uses_objfile): New declarations.
6402         * printcmd.c: Remove the inclusion of solib.h.
6403         (display_uses_solib_p): Remove the function.
6404         (clear_dangling_display_expressions): Call lookup_objfile_from_block
6405         and exp_uses_objfile instead of display_uses_solib_p.
6406         * solist.h (struct so_list) <objfile>: New comment.
6407         * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6408         * symtab.h (lookup_objfile_from_block): New declaration.
6409         (struct general_symbol_info) <obj_section>: Extend the comment.
6410
6411 2010-04-22  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
6412             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6413
6414         * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6415         (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6416         ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6417         PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6418         PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6419         PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6420         PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6421         PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6422         PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6423         PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6424         PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6425         PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6426         PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6427         Define, in case <ptrace.h> doesn't provide it.
6428         (booke_debug_info): New variable.
6429         (max_slots_number): Ditto.
6430         (hw_break_tuple): New struct.
6431         (thread_points): Ditto.
6432         (ppc_threads): New variable.
6433         (PPC_DEBUG_CURRENT_VERSION): New define.
6434         (have_ptrace_new_debug_booke): New function.
6435         (ppc_linux_check_watch_resources): Renamed to ...
6436         (ppc_linux_can_use_hw_breakpoint): ... this.  Handle BookE processors.
6437         (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6438         (booke_cmp_hw_point): New function.
6439         (booke_find_thread_points_by_tid): Ditto.
6440         (booke_insert_point): Ditto.
6441         (booke_remove_point): Ditto.
6442         (ppc_linux_insert_hw_breakpoint): Ditto.
6443         (ppc_linux_remove_hw_breakpoint): Ditto.
6444         (get_trigger_type): Ditto.
6445         (ppc_linux_insert_watchpoint): Handle BookE processors.
6446         (ppc_linux_remove_watchpoint): Ditto.
6447         (ppc_linux_new_thread): Ditto.
6448         (ppc_linux_thread_exit): New function..
6449         (ppc_linux_stopped_data_address): Handle BookE processors.
6450         (ppc_linux_watchpoint_addr_within_range): Ditto.
6451         (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6452         to_remove_hw_breakpoint fields of the target operations struct.
6453         Add observe for the thread_exit event.
6454
6455 2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>
6456
6457         * i386-linux-nat.c (regmap): Removed.
6458         (fetch_register): Replace regmap with
6459         i386_linux_gregset_reg_offset.
6460         (store_register): Likewise.
6461         (supply_gregset): Likewise.
6462         (fill_gregset): Likewise.
6463
6464         * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6465         global.
6466
6467         * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6468
6469 2010-04-22  Chris Moller  <cmoller@redhat.com>
6470
6471         * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6472         method of popping recursion-detection stack with a method based on
6473         obstack_object_size().  (Similar to the PR9167 patch below, but for
6474         the static array obstack rather than the static member obstack.)
6475
6476 2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>
6477
6478         * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6479         (_initialize_amd64_linux_nat): Replace
6480         amd64_linux_gregset64_reg_offset with
6481         amd64_linux_gregset_reg_offset.
6482
6483         * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6484         global.
6485
6486         * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6487
6488 2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
6489
6490         PR stabs/11479.
6491         * stabsread.c (set_length_in_type_chain): New function.
6492         (read_struct_type): Call set_length_in_type_chain function.
6493         (read_enum_type): Idem.
6494
6495 2010-04-21  Stan Shebs  <stan@codesourcery.com>
6496             Nathan Sidwell  <nathan@codesourcery.com>
6497
6498         * tracepoint.c (trace_save): Open in binary mode.
6499
6500 2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
6501
6502         * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6503         fields.
6504         * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6505         builtin_char32 fields.
6506         * printcmd.c (decode_format): Set char size to '\0'
6507         for strings unless explicit size is given.
6508         (print_formatted): Correct calculation of NEXT_ADDRESS
6509         for 16 or 32 bit strings.
6510         (do_examine): Do not force byte size for strings.
6511         Use builtin_char16 and builtin_char32 types to display
6512         16 or 32 bit-wide strings.
6513         (x_command): Set LAST_SIZE to 'b' for string type.
6514
6515 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
6516
6517         PR corefiles/11523
6518         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6519         XCR0 first.
6520
6521         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6522         there is no .reg-xstate section.
6523         (i386_linux_core_read_description): Check XCR0 first.
6524
6525 2010-04-21  Mike Frysinger  <vapier@gentoo.org>
6526
6527         * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6528         for len <= 8.
6529
6530 2010-04-21  Chris Moller  <cmoller@redhat.com>
6531
6532         PR 9167
6533         * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6534         method of popping recursion-detection stack with a method based on
6535         obstack_object_size().
6536
6537 2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6538
6539         PR pascal/11492.
6540         * p-valprint.c (pascal_val_print): Fix default printing of integer
6541         arrays.
6542
6543 2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6544
6545         Fix compilation warning on gcc-4.1.2.
6546         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6547         local variable`pc' to zero.
6548
6549 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6550
6551         Implement thread support with core files on alpha-tru64.
6552         * dec-thread.c (dec_thread_find_new_threads): New function,
6553         extracted from resync_thread_list.
6554         (resync_thread_list): Add OPS parameter.  Replace extracted-out
6555         code by call to dec_thread_find_new_threads.
6556         (dec_thread_wait): Update call to resync_thread_list.
6557         (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6558
6559 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6560
6561         * ada-lang.c (value_pointer): New function.
6562         (make_array_descriptor): Call value_pointer to convert addresses to
6563         pointers.
6564
6565 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6566
6567         * rs6000-aix-tdep.c: #include exceptions.h.
6568         (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6569         while reading the memory at ADDR, then ADDR cannot be a function
6570         descriptor.
6571
6572 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6573
6574         * ada-typeprint.c (ada_print_typedef): New function.
6575         * ada-lang.h (ada_print_typedef): Add declaration.
6576         * ada-lang.c (ada_language_defn): set la_print_typdef field
6577         to ada_print_typedef.
6578
6579 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6580
6581         * procfs.c (procfs_address_to_host_pointer): Only define when used.
6582
6583 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6584
6585         * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6586         (iterate_over_mappings): Adjust function profile. Add declaration.
6587         (insert_dbx_link_bpt_in_region, info_mappings_callback):
6588         Adjust accordingly.
6589
6590 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6591
6592         * procfs.c (solib_mappings_callback): Move function up to avoid
6593         a compiler warning.
6594
6595 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6596
6597         * procfs.c (find_signalled_thread, find_stop_signal): Move
6598         these functions down to define them only when used.
6599
6600 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6601
6602         * valprint.c (common_val_print): Fix the value before extracting
6603         its contents.
6604         * ada-lang.c (ada_to_fixed_value): Make this function extern.
6605         * ada-lang.h (ada_to_fixed_value): New function declaration.
6606         * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6607         to avoid code duplication and fix a bug in the handling of
6608         fixed types contents.
6609
6610 2010-04-20  Tom Tromey  <tromey@redhat.com>
6611
6612         * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6613         (read_partial_die): Likewise.
6614         (dwarf_attr_name): Likewise.
6615
6616 2010-04-20  Chris Moller  <cmoller@redhat.com>
6617
6618         PR 10867
6619
6620         * cp-valprint.c (global): Adding new static array recursion
6621         detection obstack.
6622         (cp_print_value_fields, cp_print_static_field): Added new static
6623         array recursion detection code.
6624
6625 2010-04-20  Mark Kettenis  <kettenis@gnu.org>
6626
6627         * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6628         general-purpose register set should be 68 instead of 144.
6629         (i386_linux_sse_regset_sections): Likewise.
6630         (i386_linux_avx_regset_sections): Likewise.
6631
6632 2010-04-20  Stan Shebs  <stan@codesourcery.com>
6633             Nathan Sidwell  <nathan@codesourcery.com>
6634
6635         * dwarf2loc.c (struct axs_var_loc): New struct.
6636         (dwarf2_tracepoint_var_loc): New function.
6637         (dwarf2_tracepoint_var_access): New function.
6638         (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6639         with DW_OP_piece.
6640         (locexpr_describe_location_piece): New function.
6641         (locexpr_describe_location_1): New function.
6642         (locexpr_describe_location): Call it, update signature.
6643         (loclist_describe_location): Rewrite to loop over locations,
6644         update signature.
6645         * symtab.h (struct symbol_computed_ops): Add address to
6646         describe_location arguments, return void.
6647         * printcmd.c (address_info): Get context PC, pass to computed
6648         location description.
6649         * tracepoint.c (scope_info): Ditto.
6650         * ax-gdb.c (trace_kludge): Export.
6651
6652 2010-04-20  Tom Tromey  <tromey@redhat.com>
6653
6654         * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6655         (struct dwarf2_cie) <segment_size>: New field.
6656         * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6657         (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6658         DW_FORM_exprloc.
6659         (read_attribute_value): Handle DW_FORM_flag_present,
6660         DW_FORM_sec_offset, DW_FORM_exprloc.
6661         (dump_die_shallow): Likewise.
6662         (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6663         (dwarf2_const_value): Handle DW_FORM_exprloc.
6664         (attr_form_is_block): Likewise.
6665         (struct line_header) <maximum_ops_per_instruction>: New field.
6666         (dwarf_decode_line_header): Set new field.
6667         (dwarf_decode_lines): Handle new field.
6668
6669 2010-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6670
6671         * f-exp.y: Add new production to recognize the `logical*8' type.
6672         (LOGICAL_S8_KEYWORD): New token.
6673         * f-lang.c (enum f_primitive_types)
6674         <f_primitive_type_logical_s8>: New field.
6675         (f_language_arch_info): Handling `logical*8' type.
6676         (build_fortran_types): Building `logical*8' type.
6677         * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6678
6679 2010-04-19  Doug Evans  <dje@google.com>
6680
6681         * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6682         * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6683         (pipe_close): Ditto.
6684
6685 2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6686
6687         * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6688
6689 2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6690
6691         * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6692         type to void function.
6693
6694 2010-04-19  Stan Shebs  <stan@codesourcery.com>
6695             Vladimir Prus  <vladimir@codesourcery.com>
6696
6697         * tracepoint.c (tfind_1): Add missing newline, report exit from
6698         tfind mode as such.
6699         * target.c (update_current_target): Make default
6700         to_trace_find return -1.
6701
6702 2010-04-19  Mike Frysinger  <vapier@gentoo.org>
6703
6704         * objc-lang.c (find_methods): Move symname check up.
6705
6706 2010-04-19  Pedro Alves  <pedro@codesourcery.com>
6707
6708         * ada-lang.c (print_recreate_exception)
6709         <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6710         not "catch unhandled".
6711
6712 2010-04-19  Pedro Alves  <pedro@codesourcery.com>
6713
6714         PR breakpoints/8554.
6715
6716         Implement `save-breakpoints'.
6717
6718         * breakpoint.c (save_cmdlist): New.
6719         (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6720         to save_cmdlist.
6721         (print_recreate_catch_fork): New.
6722         (catch_fork_breakpoint_ops): Install it.
6723         (print_recreate_catch_vfork): New.
6724         (catch_vfork_breakpoint_ops): Install it.
6725         (print_recreate_catch_syscall): New.
6726         (catch_syscall_breakpoint_ops): Install it.
6727         (print_recreate_catch_exec): New.
6728         (catch_exec_breakpoint_ops): Install it.
6729         (print_recreate_exception_catchpoint): New.
6730         (gnu_v3_exception_catchpoint_ops): Install it.
6731         (save_breakpoints): New, based on tracepoint_save_command, but
6732         handle all breakpoint types.
6733         (save_breakpoints_command): New.
6734         (tracepoint_save_command): Rename to...
6735         (save_tracepoints_command): ... this, and reimplement using
6736         save_breakpoints.
6737         (save_command): New.
6738         (_initialize_breakpoints): Install the "save" command prefix.
6739         Install the "save breakpoints" command.  Make "save-tracepoints" a
6740         deprecated alias for "save tracepoints".
6741         * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6742         * ada-lang.c (print_recreate_exception): New.
6743         (print_recreate_catch_exception): New.
6744         (catch_exception_breakpoint_ops): Install it.
6745         (print_recreate_catch_exception_unhandled): New.
6746         (catch_exception_unhandled_breakpoint_ops): Install it.
6747         (print_recreate_catch_assert): New.
6748         (catch_assert_breakpoint_ops): Install it.
6749
6750         * NEWS: Mention the new `save breakpoints' command.  Mention the
6751         new `save tracepoints' alias and that `save-tracepoints' is now
6752         deprecated.
6753
6754 2010-04-18  Pedro Alves  <pedro@codesourcery.com>
6755
6756         PR tui/9217
6757
6758         * tui/tui-out.c: Include cli-out.h.
6759         (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6760         (tui_begin, tui_end, tui_field_int, tui_field_skip)
6761         (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6762         (tui_message, tui_wrap_hint, tui_flush): Delete forward
6763         declarations.
6764         (struct ui_out_data): Rename to...
6765         (struct tui_ui_out_data): ... this.  Remove `stream' and
6766         `suppress_output' fields, and inherit cli_ui_out_data.
6767         (tui_out_data): New typedef.
6768         (tui_ui_out_impl): Don't initialize fields staticaly.
6769         (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6770         (tui_begin, tui_end): Delete.
6771         (tui_field_int): Adjust to delegate most work to the base type.
6772         (tui_field_skip): Delete.
6773         (tui_field_string, tui_field_fmt): Adjust comment.  Adjust to
6774         delegate most work to the base type.
6775         (tui_spaces): Delete.
6776         (tui_text): Adjust to delegate most work to the base type.
6777         (tui_message): Delete.
6778         (tui_wrap_hint): Delete.
6779         (tui_flush): Delete.
6780         (out_field_fmt): Delete.
6781         (field_separator): Delete.
6782         (tui_out_new): Adjust to initialize the base type.
6783         (_initialize_tui_out): Initialize tui_ui_out_impl.
6784         * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6785         cli_ui_out_data.
6786         (cli_out_data): Adjust.
6787         (cli_ui_out_impl): Make extern.
6788         (cli_table_header, cli_field_int, cli_field_skip): Use
6789         uo_field_string instead of cli_field_string.
6790         (cli_redirect): Adjust to use cli_out_data.
6791         (cli_out_data_ctor): New.
6792         (cli_out_new): Use it.
6793         * cli-out.h (struct ui_file): Remove forward declaration.
6794         (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6795         (cli_ui_out_impl): Declare.
6796         (cli_out_data_ctor): Declare.
6797         * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6798         (uo_field_string): No longer static.
6799         (ui_out_data): Change return type to void pointer.
6800         (ui_out_new): Change `data' parameter type to void pointer.
6801         * ui-out.h (struct ui_out_data): Don't forward declare.
6802         (ui_out_data): Change return type to void pointer.
6803         (ui_out_new): Change `data' parameter type to void pointer.
6804         (uo_field_string): Declare.
6805
6806 2010-04-17  Pedro Alves  <pedro@codesourcery.com>
6807
6808         * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6809         instead of always false.
6810
6811 2010-04-17  H.J. Lu  <hongjiu.lu@intel.com>
6812
6813         PR corefiles/11511
6814         * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6815         orig_rax.
6816
6817 2010-04-17  Pedro Alves  <pedro@codesourcery.com>
6818
6819         * breakpoint.c (watchpoints_triggered): Use
6820         is_hardware_watchpoint.
6821         (watchpoints_triggered): Ditto.
6822         (bpstat_check_location): Use is_watchpoint and
6823         is_hardware_watchpoint.
6824         (bpstat_check_watchpoint): Use is_watchpoint and
6825         is_hardware_watchpoint.
6826         (bpstat_stop_status): Fix comment.
6827         (user_settable_breakpoint): Use is_watchpoint.
6828         (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6829         (disable_watchpoints_before_interactive_call_start): Use
6830         is_watchpoint.
6831         (enable_watchpoints_after_interactive_call_stop): Use
6832         is_watchpoint.
6833         (clear_command): Use is_watchpoint.
6834         (do_enable_breakpoint): Use is_watchpoint.
6835
6836 2010-04-16  Mike Frysinger  <vapier@gentoo.org>
6837
6838         * solib-frv.c (enable_break1_done): Delete.
6839         (enable_break2): Do not check enable_break1_done.  Move the
6840         enable_break2_done setting and call to
6841         remove_solib_event_breakpoints() to the end.  Return without
6842         warning when the contents of _dl_debug_addr are 0.
6843         (enable_break): Do not set enable_break1_done.
6844         (frv_clear_solib): Likewise.
6845
6846 2010-04-16  Kevin Buettner  <kevinb@redhat.com>
6847
6848         * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6849         instead of an error if no PLT entry is found.  Return a
6850         potentially useful result.
6851         (m32c_m16c_pointer_to_address): Add code to search for function
6852         address when no .plt entry is found.
6853
6854 2010-04-16  Stan Shebs  <stan@codesourcery.com>
6855
6856         * tracepoint.c (trace_variable_command): Run a cleanup.
6857
6858 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6859
6860         * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6861
6862 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6863
6864         Support for Windows OS Thread Information Block.
6865         * NEWS: Document new feature.
6866         * remote.c (PACKET_qGetTIBAddr): New enum element.
6867         (remote_get_tib_address): New function.
6868         (init_remote_ops): Set to_get_tib_address field
6869         to remote_get_tib_address.
6870         (_initialize_remote): Add add_packet_config_cmd
6871         for PACKET_qGetTIBAddr.
6872         * target.c (update_current_target): Set default value for
6873         new to_get_tib_address field.
6874         * target.h (target_ops): New field to_get_tib_address.
6875         (target_get_tib_address): New macro.
6876         * windows-nat.c (thread_info): Add thread_local_base field.
6877         (windows_add_thread): Add tlb argument of type 'void *'.
6878         (fake_create_process): Adapt windows_add_thread call.
6879         (get_windows_debug_event): Idem.
6880         (windows_get_tib_address): New function.
6881         (init_windows_ops): Set to_get_tib_address field
6882         to remote_get_tib_address.
6883         (_initialize_windows_nat): Replace info_w32_cmdlist
6884         initialization by a call to init_w32_command_list.
6885         (info_w32_command, info_w32_cmdlist): Removed from here...
6886         to windows-tdep.c file.
6887         * windows-tdep.h (info_w32_cmdlist): Declare.
6888         (init_w32_command_list): New external function
6889         declaration.
6890         * windows-tdep.c: Add several headers.
6891         (info_w32_cmdlist): to here, made global.
6892         (thread_information_32): New struct.
6893         (thread_information_64): New struct.
6894         (TIB_NAME): New char array.
6895         (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6896         (maint_display_all_tib): New static variable.
6897         (windows_get_tlb_type): New function.
6898         (tlb_value_read, tlb_value_write): New functions.
6899         (tlb_value_funcs): New static struct.
6900         (tlb_make_value): New function.
6901         (display_one_tib): New function.
6902         (display_tib): New function.
6903         (show_maint_show_all_tib):New function.
6904         (info_w32_command): Moved from windows-nat.c.
6905         (init_w32_command_list): New function.
6906         (_initialize_windows_tdep): New function.
6907         New "maint set/show show-all-tib" command
6908         New "$_tlb" internal variable.
6909
6910 2010-04-16  Joel Brobecker  <brobecker@adacore.com>
6911
6912         * tui/tui-regs.c (tui_display_register): Add comment about
6913         a couple of casts.
6914         * tui/tui-stack.c (tui_show_locator_content): Ditto.
6915
6916 2010-04-15  Stan Shebs  <stan@codesourcery.com>
6917
6918         * frame.c: Include tracepoint.h.
6919         (get_current_frame): Allow a trace frame to be an alternate source
6920         of stack frame data.
6921         * tracepoint.c (tfind_1): Don't try to get current stack frame if
6922         it won't succeed.
6923
6924 2010-04-15  Pedro Alves  <pedro@codesourcery.com>
6925
6926         * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6927         flags.
6928         * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6929
6930 2010-04-15  Doug Evans  <dje@google.com>
6931
6932         * NEWS: Add entry for python program space support.
6933         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6934         (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6935         (py-progspace.o): New rule.
6936         * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6937         function.
6938         (find_pretty_printer_from_progspace): New function.
6939         (find_pretty_printer_from_gdb): New function.
6940         (find_pretty_printer): Rewrite.
6941         * python/py-progspace.c: New file.
6942         * python/python-internal.h (program_space): Add forward decl.
6943         (pspace_to_pspace_object, pspy_get_printers): Declare.
6944         (gdbpy_initialize_pspace): Declare.
6945         * python/python.c: #include "progspace.h".
6946         (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6947         (_initialize_python): Call gdbpy_initialize_pspace.
6948         (GdbMethods): Add current_progspace, progspaces.
6949
6950         Add -s option to source command.
6951         * NEWS: Document new option.
6952         * cli/cli-cmds.c (find_and_open_script): Add function comment.
6953         Delete from_tty and cleanupp args.  Split filep arg into file and
6954         full_pathp.  New arg search_path.
6955         (source_script_from_stream): New function.
6956         (source_script_with_search): New function.
6957         (source_script): Rewrite.
6958         (source_command): Parse "-s" option.
6959         (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6960         * python/python.c (source_python_script): Make file arg a const char *.
6961         Don't call fclose, leave for caller.
6962         * python/python.h (source_python_script): Update.
6963
6964 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
6965             Pedro Alves  <pedro@codesourcery.com>
6966
6967         Avoid rereading shared libraries that haven't changed.
6968
6969         * solib.c (free_so_symbols): New function, from ...
6970         (free_so): ... here.  Call it.
6971         (solib_read_symbols): Don't warn here if symbols have already been
6972         loaded.
6973         (solib_add): Warn here instead, if a pattern was specified.
6974         (reload_shared_libraries_1): New.
6975         (reload_shared_libraries): Rewrite to not fetch the library list.
6976
6977 2010-04-14  Doug Evans  <dje@google.com>
6978
6979         * source.c (openp): Strip DOS drive letter if present before
6980         concatenating string to search path.
6981
6982 2010-04-14  Pedro Alves  <pedro@codesourcery.com>
6983
6984         * objfiles.h (gdb_bfd_close_or_warn): Declare.
6985         * objfiles.c (gdb_bfd_close_or_warn): New.
6986         * corelow.c: Include objfiles.h
6987         (core_close): Use gdb_bfd_close_or_warn.
6988         * elfread.c (build_id_verify): Ditto.
6989         * exec.c (exec_close, exec_close_1): Ditto.
6990
6991 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
6992             Pedro Alves  <pedro@codesourcery.com>
6993
6994         Group errors for many missing shared libraries.
6995
6996         * solist.h (struct so_list): Remove from_tty.
6997         * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
6998         (solib_map_sections): Take so_list argument.  Return 0 if we
6999         failed to open a BFD.  Add target sections here.
7000         (symbol_add_stub): Delete.
7001         (solib_read_symbols): Inline symbol_add_stub.  Use current flags,
7002         not from_tty copied from the so_list.  Don't warn a second time
7003         for a missing library.
7004         (update_solib_list): Don't save from_tty.  Use TRY_CATCH.  Do not
7005         add to the section table here.  Print out a single warning for all
7006         missing libraries.
7007         * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7008         flags.
7009
7010 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
7011
7012         * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7013         error/warning messages.  Capitalize and use complete sentences.
7014         (blpy_block_syms_iternext): Likewise.
7015         * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7016         * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7017         (frame_info_to_frame_object, frapy_read_var)
7018         (gdbpy_frame_stop_reason_string): Likewise.
7019         * python/py-lazy-string.c (stpy_convert_to_value)
7020         (gdbpy_create_lazy_string_object): Likewise.
7021         * python/py-objfile.c (objfpy_set_printers): Likewise.
7022         * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7023         * python/python.c (parameter_to_python): Likewise.
7024         * python/py-type.c (typy_range, typy_target): Likewise.
7025         * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7026         (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7027
7028
7029 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
7030
7031         PR python/11381
7032
7033         * python/py-prettyprint.c (pretty_print_one_value): Test for
7034         Py_None.
7035         (print_string_repr): Test for Py_None.  Set flags accordingly.
7036         Return value depending on return type.
7037         (print_children): Take a value indicating whether data was printed
7038         before this function was called.  Alter output accordingly.
7039         (apply_val_pretty_printer): Capture return value from
7040         print_string_repr and pass to print_children.
7041
7042 2010-04-13  Mark Kettenis  <kettenis@gnu.org>
7043
7044         PR corefiles/11481
7045         * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7046         register note sections.
7047         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7048         New variables.
7049         (i386_linux_init_abi): Install list of supported register note
7050         sections that matches the target description.
7051
7052 2010-04-13  Pedro Alves  <pedro@codesourcery.com>
7053
7054         * remote.c (remote_get_noisy_reply): Don't error out on empty
7055         replies.
7056         (remote_start_remote): Update and merge tracepoints and trace
7057         state variables as long as the target supports tracepoints.
7058         (remote_trace_init): Fix prototype.
7059         (remote_download_trace_state_variable): Validate reply.
7060         (remote_trace_set_readonly_regions): Fix prototype.
7061         (remote_trace_start): Fix prototype.  Check for empty reply.
7062         (remote_get_trace_status): Small cleanup.
7063         (remote_trace_stop): Fix prototype.  Check for empty reply.
7064         (remote_trace_find): Check for empty reply.
7065         (remote_save_trace_data): Validate reply.
7066         (remote_set_disconnected_tracing): Check for empty reply, and
7067         validate reply.
7068         (remote_set_circular_trace_buffer): Ditto.
7069
7070 2010-04-13  Pierre Muller  <muller@ics.u-strasbg.fr>
7071
7072         Suppress unused value warning during compilation.
7073         * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7074         calls to void.
7075         * tui/tui-stack.c (tui_show_locator_content): Likewise.
7076
7077 2010-04-12  Stan Shebs  <stan@codesourcery.com>
7078
7079         * tracepoint.c (tfile_xfer_partial): Check read result.
7080
7081 2010-04-12  Mike Frysinger  <vapier@gentoo.org>
7082
7083         * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7084         * remote-sim.c (gdbsim_files_info): Likewise.
7085
7086 2010-04-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
7087
7088         * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7089         * arm-linux-nat.c (arm_linux_vfp_register_count): New
7090         variable.
7091         (fetch_vfp_registers): New function to fetch VFP registers.
7092         (store_vfp_registers): New function to store VFP registers.
7093         (arm_linux_fetch_inferior_registers): Add support for VFP
7094         registers.
7095         (arm_linux_store_inferior_registers): Likewise.
7096         (arm_linux_read_description): Likewise.
7097         (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7098         until we need it.
7099
7100 2010-04-11  H.J. Lu  <hongjiu.lu@intel.com>
7101
7102         * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7103         tdep.
7104         (amd64_collect_xstateregset): Likewise.
7105
7106 2010-04-09  Stan Shebs  <stan@codesourcery.com>
7107
7108         * tracepoint.c (trace_status_mi): Report frames created.
7109
7110         * tracepoint.c (trace_dump_command): Include default-collect
7111         expressions.
7112
7113 2010-04-09  Ulrich Weigand  <uweigand@de.ibm.com>
7114
7115         * symtab.c (find_function_start_sal): Never return SAL pointing
7116         before function start address, even if line info is missing.
7117
7118 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
7119
7120         * NEWS: Mention tracepoints support.
7121
7122 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
7123
7124         * tracepoint.c (trace_status_mi): Report disconnected tracing and
7125         circular trace buffer statuses.
7126
7127 2010-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7128
7129         * config/djgpp/fnchange.lst: Fix typo in translations for
7130         symbol-without-target_section.exp and symbol-without-target_section.c.
7131
7132 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
7133
7134         * breakpoint.c (condition_command): Pass condition expression to
7135         set_breakpoint_condition stripped from breakpoint number.
7136
7137 2010-04-09  Phil Muldoon  <pmuldoon@redhat.com>
7138             Thiago Jung Bauermann  <bauerman@br.ibm.com>
7139             Tom Tromey  <tromey@redhat.com>
7140
7141         * breakpoint.c (condition_command): Simplify.  Move condition
7142         setting code to ...
7143         (set_breakpoint_condition): ... here.  New function.
7144         * breakpoint.h  (set_breakpoint_condition): Declare.
7145         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7146         (SUBDIR_PYTHON_SRCS): Likewise.
7147         (py-breakpoint.o): New rule.
7148         * python/py-breakpoint.c: New file.
7149         * python/python-internal.h (gdbpy_breakpoints)
7150         (gdbpy_initialize_breakpoints): Declare.
7151         (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7152
7153 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
7154
7155         * regformats/regdat.sh: Include server.h.  Don't include
7156         regcache.h.
7157
7158 2010-04-08  Stan Shebs  <stan@codesourcery.com>
7159             Pedro Alves  <pedro@codesourcery.com>
7160
7161         * tracepoint.h (struct trace_status): New fields disconnected_tracing
7162         and circular_buffer.
7163         (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7164         * tracepoint.c (trace_status_command): Display target's status for
7165         disconnected tracing and circular buffer.
7166         (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7167         query for non-disconnected-tracing case, remove the stop_tracing
7168         call.
7169         (tfile_open): Clear disconnected and circular buffer status.
7170         (trace_save): Save disconnected and circular buffer status.
7171         (parse_trace_status): Parse disconnected and circular buffer status,
7172         also recognize disconnected as a stop reason.
7173         * remote.c (remote_set_disconnected_tracing): Only set
7174         QTDisconnected if the remote end supports disconnected tracing.
7175         Warn otherwise, if trying to enable disconnected tracing.
7176         * infcmd.c (detach_command): Update disconnect_tracing call.
7177         * cli/cli-cmds.c (quit_command): Ditto.
7178
7179 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
7180
7181         * i387-tdep.c (i387_collect_xsave): Replace abort with
7182         internal_error.
7183
7184 2010-04-08  Stan Shebs  <stan@codesourcery.com>
7185
7186         * breakpoint.c (default_collect_info): New function.
7187         (breakpoints_info): Call it.
7188         (maintenance_info_breakpoints): Ditto.
7189         (tracepoints_info): Ditto.
7190
7191 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
7192
7193         * i387-tdep.c (i387_collect_xsave): Re-indent.
7194
7195 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
7196
7197         * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7198         if HAVE_PTRACE_GETFPXREGS is defined.
7199         (i386_linux_read_description): Set have_ptrace_getfpxregs and
7200         have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7201
7202         * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7203         (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7204         if .reg-xfp section doesn't exist.
7205         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7206
7207         * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7208
7209         * i386-tdep.c: Include "features/i386/i386-mmx.c".
7210         (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7211         (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional.  Set
7212         xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7213         (i386_gdbarch_init): Update comments.
7214         (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7215
7216         * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7217
7218         * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7219
7220         * features/Makefile (i386/i386-mmx-expedite): New.
7221         (i386/i386-mmx-linux-expedite): Likewise.
7222         ($(outdir)/i386/i386-mmx.dat): Likewise.
7223         ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7224
7225         * features/i386/i386-mmx-linux.c: New.
7226         * features/i386/i386-mmx-linux.xml: Likewise.
7227         * features/i386/i386-mmx.c: Likewise.
7228         * features/i386/i386-mmx.xml: Likewise.
7229         * regformats/i386/i386-mmx-linux.dat: Likewise.
7230         * regformats/i386/i386-mmx.dat: Likewise.
7231
7232         * features/Makefile (WHICH): Add i386/i386-mmx and
7233         i386/i386-mmx-linux.
7234
7235 2010-04-08  Doug Evans  <dje@google.com>
7236
7237         * source.c (openp): Skip $cdir in PATH.
7238
7239 2010-04-08  Phil Muldoon  <pmuldoon@redhat.com>
7240
7241         PR python/11417
7242         * python/py-lazy-string.c (stpy_convert_to_value): Check for
7243         a NULL address.
7244         (gdbpy_create_lazy_string_object): Allow strings with a NULL
7245         address and a zero length.
7246
7247 2010-04-08  Hui Zhu  <teawater@gmail.com>
7248
7249         * i386-tdep.c (i386_process_record): Add support for insn
7250         rdtsc.
7251
7252 2010-04-07  Doug Evans  <dje@google.com>
7253
7254         * python/python.c (source_python_script): Use ensure_python_env
7255         to prepare environment for script.
7256
7257 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7258
7259         * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7260         <sys/uio.h> and "i386-xstate.h".
7261         (PTRACE_GETREGSET): New.
7262         (PTRACE_SETREGSET): Likewise.
7263         (have_ptrace_getregset): Likewise.
7264         (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7265         registers.
7266         (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7267         registers.
7268         (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7269         (amd64_linux_store_inferior_registers): Likewise.
7270         (amd64_linux_read_description): Check and enable AVX target
7271         descriptions.
7272
7273         * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7274         and "features/i386/amd64-avx-linux.c".
7275         (amd64_linux_regset_sections): New.
7276         (amd64_linux_core_read_description): Check and enable AVX
7277         target description.
7278         (amd64_linux_init_abi): Set xsave_xcr0_offset.  Call
7279         set_gdbarch_core_regset_sections.
7280         (_initialize_amd64_linux_tdep): Call
7281         initialize_tdesc_amd64_avx_linux.
7282
7283         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7284         AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7285         (tdesc_amd64_avx_linux): New.
7286         (amd64_linux_update_xstateregset): Likewise.
7287
7288         * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7289         (amd64_ymm_names): New.
7290         (amd64_ymmh_names): Likewise.
7291         (amd64_register_name): Likewise.
7292         (amd64_supply_xstateregset): Likewise.
7293         (amd64_collect_xstateregset): Likewise.
7294         (amd64_supply_xsave): Likewise.
7295         (amd64_collect_xsave): Likewise.
7296         (AMD64_NUM_REGS): Removed.
7297         (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7298         %xmmN if AVX is available.
7299         (amd64_pseudo_register_name): Support pseudo YMM registers.
7300         (amd64_regset_from_core_section): Support .reg-xstate section.
7301         (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7302         and ymm0h_regnum.  Call set_gdbarch_register_name.
7303         (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7304
7305         * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7306         AMD64_YMM15H_REGNUM.
7307         (AMD64_NUM_REGS): New.
7308         (amd64_supply_xsave): Likewise.
7309         (amd64_collect_xsave): Likewise.
7310         (amd64_register_name): Removed.
7311         (amd64_register_type): Likewise.
7312
7313 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7314
7315         * i387-tdep.c: Include "i386-xstate.h".
7316         (XSAVE_XSTATE_BV_ADDR): New.
7317         (xsave_avxh_offset): Likewise.
7318         (XSAVE_AVXH_ADDR): Likewise.
7319         (i387_supply_xsave): Likewise.
7320         (i387_collect_xsave): Likewise.
7321
7322         * i387-tdep.h (I387_NUM_YMM_REGS): New.
7323         (I387_YMM0H_REGNUM): Likewise.
7324         (I387_YMMENDH_REGNUM): Likewise.
7325         (i387_supply_xsave): Likewise.
7326         (i387_collect_xsave): Likewise.
7327
7328 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7329
7330         * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7331         <sys/uio.h> and "i386-xstate.h".
7332         (PTRACE_GETREGSET): New.
7333         (PTRACE_SETREGSET): Likewise.
7334         (fetch_xstateregs): Likewise.
7335         (store_xstateregs): Likewise.
7336         (GETXSTATEREGS_SUPPLIES): Likewise.
7337         (regmap): Include 8 upper YMM registers.
7338         (i386_linux_fetch_inferior_registers): Support XSAVE extended
7339         state.
7340         (i386_linux_store_inferior_registers): Likewise.
7341         (i386_linux_read_description): Check and enable AVX target
7342         descriptions.
7343
7344         * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7345         "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7346         (i386_linux_regset_sections): Add ".reg-xstate".
7347         (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7348         (i386_linux_core_read_xcr0): New.
7349         (i386_linux_core_read_description): Check and enable AVX target
7350         description.
7351         (i386_linux_init_abi): Set xsave_xcr0_offset.
7352         (_initialize_i386_linux_tdep): Call
7353         initialize_tdesc_i386_avx_linux.
7354
7355         * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7356         I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7357         (i386_linux_core_read_xcr0): New.
7358         (tdesc_i386_avx_linux): Likewise.
7359         (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7360
7361         * i386-tdep.c: Include "i386-xstate.h" and
7362         "features/i386/i386-avx.c".
7363         (i386_ymm_names): New.
7364         (i386_ymmh_names): Likewise.
7365         (i386_ymmh_regnum_p): Likewise.
7366         (i386_ymm_regnum_p): Likewise.
7367         (i386_xmm_regnum_p): Likewise.
7368         (i386_register_name): Likewise.
7369         (i386_ymm_type): Likewise.
7370         (i386_supply_xstateregset): Likewise.
7371         (i386_collect_xstateregset): Likewise.
7372         (i386_sse_regnum_p): Removed.
7373         (i386_pseudo_register_name): Support pseudo YMM registers.
7374         (i386_pseudo_register_type): Likewise.
7375         (i386_pseudo_register_read): Likewise.
7376         (i386_pseudo_register_write): Likewise.
7377         (i386_dbx_reg_to_regnum): Return %ymmN register number for
7378         %xmmN if AVX is available.
7379         (i386_regset_from_core_section): Support .reg-xstate section.
7380         (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7381         (i386_process_record): Replace i386_sse_regnum_p with
7382         i386_xmm_regnum_p.
7383         (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7384         Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7385         (i386_gdbarch_init): Set xstateregset.  Set xsave_xcr0_offset.
7386         Call set_gdbarch_register_name.  Replace I386_SSE_NUM_REGS with
7387         I386_AVX_NUM_REGS.  Set ymmh_register_names, ymm0h_regnum and
7388         num_ymm_regs.  Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7389         Set ymm0_regnum.
7390         (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7391
7392         * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7393         xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7394         i386_ymm_type.
7395         (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7396         (I386_AVX_NUM_REGS): New.
7397         (i386_xmm_regnum_p): Likewise.
7398         (i386_ymm_regnum_p): Likewise.
7399         (i386_ymmh_regnum_p): Likewise.
7400
7401         * common/i386-xstate.h: New.
7402
7403 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7404
7405         * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7406
7407         * features/Makefile (WHICH): Add i386/i386-avx,
7408         i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7409         (i386/i386-avx-expedite): New.
7410         (i386/i386-avx-linux-expedite): Likewise.
7411         (i386/x86-64-avx-expedite):Likewise.
7412         (i386/x86-64-avx-linux-expedite): Likewise.
7413         ($(outdir)/i386/i386-avx.dat): New dependency.
7414         ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7415         ($(outdir)/i386/x86-avx-64.dat): Likewise.
7416         ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7417
7418         * features/i386/32bit-avx.xml: New.
7419         * features/i386/64bit-avx.xml: Likewise.
7420         * features/i386/i386-avx-linux.c: Likewise.
7421         * features/i386/i386-avx-linux.xml: Likewise.
7422         * features/i386/i386-avx.c: Likewise.
7423         * features/i386/i386-avx.xml: Likewise.
7424         * features/i386/x86-64-avx-linux.c: Likewise.
7425         * features/i386/x86-64-avx-linux.xml: Likewise.
7426         * features/i386/x86-64-avx.c: Likewise.
7427         * features/i386/x86-64-avx.xml: Likewise.
7428         * regformats/i386/i386-avx-linux.dat: Likewise.
7429         * regformats/i386/i386-avx.dat: Likewise.
7430         * regformats/i386/x86-64-avx-linux.dat: Likewise.
7431         * regformats/i386/x86-64-avx.dat: Likewise.
7432
7433 2010-04-07  Doug Evans  <dje@google.com>
7434
7435         * top.c (source_file_name): Make const char *.
7436         * top.h (source_file_name): Update.
7437         * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7438         const char *.
7439         (script_from_file): Change `file' arg to const char *.
7440         * cli/cli-script.h (script_from_file): Update.
7441
7442 2010-04-06  Doug Evans  <dje@google.com>
7443
7444         * cli/cli-cmds.c (source_command): Run cleanups.
7445
7446 2010-04-06  Stan Shebs  <stan@codesourcery.com>
7447
7448         * defs.h (char_ptr): Move typedef here from...
7449         * ada-lang.c (char_ptr): Remove.
7450         * charset.c (char_ptr): Remove.
7451         * tracepoint.h (struct uploaded_string): Remove.
7452         (struct uploaded_tp): Use vectors for string arrays.
7453         * tracepoint.c (trace_save): Use vectors of actions.
7454         (parse_tracepoint_definition): Ditto.
7455         (get_uploaded_tp): Clear vectors.
7456         * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7457         (next_cmd): Change to an int.
7458         (read_next_cmd): Use vector of command strings.
7459
7460 2010-04-06  Doug Evans  <dje@google.com>
7461
7462         * top.h (source_script, cd_command): Delete.
7463         * main.c: #include "cli/cli-cmds.h"
7464
7465 2010-04-06  Kevin Buettner  <kevinb@redhat.com>
7466
7467         * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7468         type in bytes, not bits.
7469
7470 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
7471
7472         * stabsread.c (define_symbol): Add support for char
7473         and string constants.
7474
7475 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
7476
7477         Remove remaining "%ll" uses.
7478         * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7479         hex_string call.
7480         * rs6000-nat.c (rs6000_ptrace64): Idem.
7481         * solib-pa64.c (pa64_current_sos): Idem.
7482         * solib-spu.c (spu_current_sos): Idem.
7483         * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7484         plongest call.
7485         * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7486         phex (VAR, 8) call.
7487         * sh64-tdep.c (sh64_show_media_regs): Idem.
7488
7489 2010-04-05  Stan Shebs  <stan@codesourcery.com>
7490
7491         * tracepoint.c: Include gdbcore.h.
7492         (tfile_xfer_partial): Return partial results, also try reading
7493         from executable.
7494         (tfile_has_all_memory): New function.
7495         (init_tfile_ops): Use it.
7496
7497 2010-04-05  Sergio Durigan Junior  <sergiodj@redhat.com>
7498
7499         PR gdb/10736:
7500         * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7501         the changes in data-directory.
7502         (init_sysinfo): Reload the syscall XML file if the data-directory
7503         has changed.
7504
7505 2010-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7506
7507         Code cleanup.
7508         * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7509
7510 2010-04-04  Stan Shebs  <stan@codesourcery.com>
7511             Nathan Sidwell  <nathan@codesourcery.com>
7512
7513         * breakpoint.c (breakpoint_1): Add filter argument, return number of
7514         breakpoints printed.
7515         (is_hardware_watchpoint): Make argument const.
7516         (is_watchpoint): Ditto.
7517         (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7518         use it everywhere.
7519         (breakpoints_info): Pass NULL to breakpoint_1.
7520         (maintenance_info_breakpoints): Ditto.
7521         (watchpoints_info): New function.
7522         (tracepoints_info): Use breakpoint_1 filter.
7523         (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7524         (_initialize_breakpoint): Make "info watchpoints" its own command.
7525         * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7526         * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7527
7528 2010-04-04  Stan Shebs  <stan@codesourcery.com>
7529
7530         * tracepoint.c (tfile_fetch_registers): Add fallback case.
7531
7532 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
7533
7534         * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7535         * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7536
7537 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
7538
7539         * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7540         * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7541
7542 2010-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7543
7544         * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7545         code form.
7546
7547 2010-04-02  Hui Zhu  <teawater@gmail.com>
7548
7549         * i386-tdep.c (OT_DQUAD): New enum.
7550         (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7551         SSE3, SSSE3 and SSE4.
7552
7553 2010-04-02  Hui Zhu  <teawater@gmail.com>
7554
7555         * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7556         "*addr = 0".
7557
7558 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
7559
7560         * tracepoint.c (trace_dump_actions): New, factored out from
7561         trace_dump_command, and adjusted to recurse into while-stepping's
7562         action list.
7563         (trace_dump_command): Use it.
7564
7565 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
7566
7567         * breakpoint.h (struct counted_command_line): Moved definition to
7568         breakpoint.c, and forward declare.
7569         (breakpoint_commands): Declare.
7570         * breakpoint.c (struct counted_command_line): Moved here.
7571         (breakpoint_commands): New.
7572         * tracepoint.c (encode_actions): Use breakpoint_commands.
7573         * remote.c (remote_download_tracepoint): Ditto.
7574
7575 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
7576
7577         * remote.c (remote_parse_stop_reply): Use hex_string instead
7578         of phex_nz for error.
7579
7580 2010-04-01  Stan Shebs  <stan@codesourcery.com>
7581             Nathan Sidwell  <nathan@codesourcery.com>
7582
7583         * tracepoint.h (enum actionline_type): Remove.
7584         (validate_actionline): Change return to void.
7585         * tracepoint.c (report_agent_reqs_errors): New function.
7586         (validate_actionline): Call it, change return to void, report errors
7587         more consistently.
7588         (collect_symbol): Call report_agent_reqs_errors.
7589         (encode_actions_1): Ditto.
7590         (encode_actions): Don't expect a result from validate_actionline.
7591
7592 2010-04-01  Stan Shebs  <stan@codesourcery.com>
7593
7594         * tracepoint.c (trace_start_command): Confirm if trace is running.
7595         (trace_stop_command): Error if trace not running.
7596
7597 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
7598
7599         * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7600         (AMD64_NUM_LOWER_BYTE_REGS): New.
7601         (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7602         (amd64_pseudo_register_write): Likewise.
7603         (amd64_init_abi): Set num_byte_regs to 20.
7604
7605 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
7606
7607         * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7608         (prev_breakpoint_count): New.
7609         (set_breakpoint_count): Adjust.
7610         (rbreak_start_breakpoint_count): New.
7611         (start_rbreak_breakpoints): Adjust.
7612         (end_rbreak_breakpoints): Adjust.
7613         (struct commands_info) <arg>: New field.
7614         (do_map_commands_command): Tweak output to include breakpoint spec
7615         range.
7616         (commands_command_1): Adjust.  Avoid setting an xfree cleanup if
7617         ARG was empty on entry.  Set INFO's arg.
7618         (create_breakpoint): Adjust.
7619
7620         * NEWS: Clarify `commands' changes.
7621
7622 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
7623
7624         * tracepoint.c: Include stack.h.
7625         (struct add_local_symbols_data): New.
7626         (do_collect_symbol): New.
7627         (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7628         iterate_over_block_local_vars.
7629         * stack.c (print_block_frame_locals): Rewrite as ...
7630         (iterate_over_block_locals): ... this.  Take a callback function
7631         pointer and generic data pointer, and call that instead of
7632         print_variable_and_value.
7633         (struct print_variable_and_value_data): New.
7634         (do_print_variable_and_value): New.
7635         (iterate_over_block_local_vars): New, abstracted out from
7636         print_frame_local_vars.
7637         (print_frame_local_vars): Rewrite using
7638         iterate_over_block_local_vars.
7639         (iterate_over_block_arg_vars): New, abstracted out from
7640         print_frame_arg_vars.
7641         (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7642         * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7643         (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7644
7645 2010-03-31  Richard Earnshaw  <rearnsha@arm.com>
7646
7647         * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7648         instructions.  Use the PC+4 if the base of the TBB or TBH is the
7649         PC register.
7650
7651 2010-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
7652
7653         Fix crash on reading wrong function declaration DWARF.
7654         * dwarf2read.c (read_subroutine_type): New variable void_type.
7655         Pre-fill all TYPE_FIELD_TYPEs.  Move nparams and iparams initialization
7656         more close to their use.
7657
7658 2010-03-31  Stan Shebs  <stan@codesourcery.com>
7659
7660         * breakpoint.c (tracepoint_save_command): Include variables,
7661         conditionals, tracepoint types, and default-collect.
7662         * tracepoint.c (save_trace_state_variables): New function.
7663         * tracepoint.h (save_trace_state_variables): Declare it.
7664
7665 2010-03-31  Pierre Muller  <muller@ics.u-strasbg.fr>
7666
7667         * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7668
7669 2010-03-30  Keith Seitz  <keiths@redhat.com>
7670
7671         * c-typeprint.c (c_type_print_args): Don't print "void"
7672         for java, regardless of whether it is TYPE_PROTOTYPED.
7673         Use the passed-in language instead of current_language.
7674         (c_type_print_varspec_suffix): Use current_language instead
7675         of assuming language_c.
7676         * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7677         any return type specifier from the physname.
7678
7679 2010-03-30  Pedro Alves  <pedro@codesourcery.com>
7680
7681         * tui/tui-interp.c (tui_is_toplevel): New.
7682         (tui_init): Set it.
7683         (tui_allowed_p): New.
7684         * tui/tui.c (tui_enable): Check if the TUI is allowed before
7685         enabling it.
7686         * tui/tui.h (tui_allowed_p): Declare.
7687
7688 2010-03-30  Ozkan Sezer  <sezeroz@gmail.com>
7689
7690         * serial.h: Include winsock2.h before windows.h.
7691
7692 2010-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7693
7694         * NEWS: Mention xmlRegisters= in qSupported packet.
7695
7696         * i386-tdep.c: Include "remote.h".
7697         (_initialize_i386_tdep): Call register_remote_support_xml.
7698
7699         * remote.c (remote_support_xml): New.
7700         (register_remote_support_xml): Likewise.
7701         (remote_query_supported_append): Likewise.
7702         (remote_query_supported): Support remote_support_xml.
7703
7704         * remote.h (register_remote_support_xml): New.
7705
7706 2010-03-29  Stan Shebs  <stan@codesourcery.com>
7707
7708         * tracepoint.c (trace_find_line_command): Remove dead code.
7709
7710         * tracepoint.h (struct uploaded_string): New struct.
7711         (struct uploaded_tp): New fields for source strings.
7712         * breakpoint.c (this_utp, next_cmd): New globals.
7713         (read_uploaded_action): New function.
7714         (create_tracepoint_from_upload): Fill in more parts
7715         of a tracepoint.
7716         * tracepoint.c (encode_source_string): New function.
7717         (trace_save): Write out source strings, fix error checks.
7718         (parse_tracepoint_definition): Add source string parsing.
7719         * remote.c (PACKET_TracepointSource): New packet type.
7720         (remote_download_command_source): New function.
7721         (remote_download_tracepoint): Download source pieces also.
7722         (_initialize_remote): Add packet config command.
7723
7724         * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7725         expression handler.
7726
7727         * tracepoint.c (start_tracing): Check tracepoints before sending
7728         commands to target, don't start if all tracepoints disabled.
7729
7730 2010-03-28  Pedro Alves  <pedro@codesourcery.com>
7731
7732         * cli/cli-script.c (process_next_line): Handle 'stepping'.
7733
7734 2010-03-26  Stan Shebs  <stan@codesourcery.com>
7735
7736         * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7737
7738 2010-03-26  Tom Tromey  <tromey@redhat.com>
7739
7740         * breakpoint.c (commands_command_1): Duplicate 'arg'.
7741
7742 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7743
7744         * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7745         (skip_prologue_sal): Remove local definition.
7746         (resolve_sal_pc): Remove now unnecessary code.
7747         * linespec.c (minsym_found): Call skip_prologue_sal.
7748         * symtab.c (find_function_start_pc): Remove.
7749         (find_function_start_sal): Extract prologue skipping into ...
7750         (skip_prologue_sal): ... this new function.  Handle code both
7751         with and without debug info.  Respect SAL's explicit_pc and
7752         explicit_line flags.  Inline old find_function_start_pc.
7753         * symtab.h (find_function_start_pc): Remove.
7754         (skip_prologue_sal): Add prototype.
7755
7756 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7757
7758         * dwarf2read.c (read_func_scope): Also scan specification DIEs
7759         for DW_TAG_imported_module children.
7760
7761 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7762
7763         * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7764         ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7765         * completer.c (add_struct_fields): Fix inverted logic.
7766
7767 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7768
7769         * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7770
7771 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
7772
7773         * tracepoint.c (current_trace_status): Don't make sure error_desc
7774         is non-NULL here.
7775         (parse_trace_status): Release a previous error_desc string, and
7776         set it to NULL by default.  If stop reason is tracepoint_error,
7777         make sure error_desc is not left NULL.
7778
7779 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
7780
7781         * tracepoint.c (trace_save): Remove X from tracepoint error
7782         description.
7783
7784 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
7785
7786         * tracepoint.c (parse_trace_status): Don't allow plain strings in
7787         the terror description.  Don't expect an X prefix.
7788
7789 2010-03-25  Stan Shebs  <stan@codesourcery.com>
7790
7791         * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7792         (struct trace_status): New field error_desc.
7793         * tracepoint.c (stop_reason_names): Add terror.
7794         (current_trace_status): Ensure non-NULL error description.
7795         (trace_status_command): Add error report.
7796         (trace_status_mi): Ditto.
7797         (trace_save): Add special case for error description.
7798         (parse_trace_status): Add case for errors.
7799
7800 2010-03-25  Keith Seitz  <keiths@redhat.com>
7801
7802         * dwarf2read.c (read_subroutine_type): If the compilation unit
7803         language is Java, mark any formal parameter named "this" as
7804         artificial (GCC/43521).
7805         (dwarf2_name): Add special handling for Java constructors.
7806
7807 2010-03-25  Tom Tromey  <tromey@redhat.com>
7808
7809         PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7810         * infrun.c (handle_inferior_event): Change initialization of
7811         stop_stack_dummy.
7812         (handle_inferior_event): Change assignment to stop_stack_dummy.
7813         (normal_stop): Update use of stop_stack_dummy.
7814         (struct inferior_status) <stop_stack_dummy>: Change type.
7815         * inferior.h (stop_stack_dummy): Update.
7816         * infcmd.c (stop_stack_dummy): Change type.
7817         * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7818         function.
7819         (call_function_by_hand): Call set_std_terminate_breakpoint.
7820         Rewrite std::terminate handling.
7821         * breakpoint.h (enum bptype) <bp_std_terminate,
7822         bp_std_terminate_master>: New.
7823         (enum stop_stack_kind): New.
7824         (struct bpstat_what) <call_dummy>: Change type.
7825         (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7826         Declare.
7827         * breakpoint.c (create_std_terminate_master_breakpoint): New
7828         function.
7829         (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7830         Call create_std_terminate_master_breakpoint.
7831         (print_it_typical): Handle new breakpoint kinds.
7832         (bpstat_stop_status): Handle bp_std_terminate_master.
7833         (bpstat_what): Correctly set call_dummy field.  Handle
7834         bp_std_terminate_master and bp_std_terminate.
7835         (print_one_breakpoint_location): Update.
7836         (allocate_bp_location): Update.
7837         (set_std_terminate_breakpoint): New function.
7838         (delete_std_terminate_breakpoint): Likewise.
7839         (create_thread_event_breakpoint): Update.
7840         (delete_command): Update.
7841         (breakpoint_re_set_one): Update.
7842         (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7843
7844 2010-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7845
7846         * symfile.c (build_section_addr_info_from_bfd): New.
7847         (build_section_addr_info_from_objfile): Base it on
7848         build_section_addr_info_from_bfd.
7849         (addrs_section_compar, addrs_section_sort): New.
7850         (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7851         addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs.  Build
7852         addrs_to_abfd_addrs.  Use it for recalculating ADDRS.
7853
7854 2010-03-24  Michael Snyder  <msnyder@localhost.localdomain>
7855
7856         * elfread.c (find_separate_debug_file_by_buildid):
7857         Remove unused local variable.
7858
7859 2010-03-24  Tom Tromey  <tromey@redhat.com>
7860
7861         PR breakpoints/9352:
7862         * NEWS: Mention changes to `commands' and `rbreak'.
7863         * symtab.c (do_end_rbreak_breakpoints): New function.
7864         (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7865         end_rbreak_breakpoints.
7866         * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7867         (set_breakpoint_count): Likewise.  Clear last_was_multi.
7868         (multi_start, multi_end, last_was_multi): New globals.
7869         (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7870         functions.
7871         (struct commands_info): New
7872         (do_map_commands_command): New function.
7873         (commands_command_1): New function.
7874         (commands_command): Use it.
7875         (commands_from_control_command): Likewise.
7876         (do_delete_breakpoint): New function.
7877         (delete_command): Use it.
7878         (map_breakpoint_numbers): Add 'data' argument.  Pass to callback.
7879         (do_map_disable_breakpoint): New function.
7880         (disable_command): Use it.
7881         (do_map_enable_breakpoint): New function.
7882         (enable_command): Use it.
7883         (enable_once_breakpoint): Add argument.
7884         (enable_once_command): Update.
7885         (enable_delete_breakpoint): Add argument.
7886         (enable_delete_command): Update.
7887         (break_command_really): Set last_was_multi when needed.
7888         (check_tracepoint_command): Fix formatting.
7889         (validate_commands_for_breakpoint): New function.
7890         (breakpoint_set_commands): Use it.
7891         (tracepoint_save_command): Update.
7892         * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7893         Declare.
7894
7895 2010-03-24  Tom Tromey  <tromey@redhat.com>
7896
7897         * breakpoint.h (struct counted_command_line): New struct.
7898         (struct breakpoint) <commands>: Change type.
7899         (struct bpstats) <commands>: Change type.
7900         <commands_left>: New field.
7901         * breakpoint.c (alloc_counted_command_line): New function.
7902         (incref_counted_command_line): Likewise.
7903         (decref_counted_command_line): Likewise.
7904         (do_cleanup_counted_command_line): Likewise.
7905         (make_cleanup_decref_counted_command_line): Likewise.
7906         (breakpoint_set_commands): Use decref_counted_command_line and
7907         alloc_counted_command_line.
7908         (commands_command): Don't error if breakpoint commands are
7909         executing.
7910         (commands_from_control_command): Likewise.
7911         (bpstat_free): Update.
7912         (bpstat_copy): Likewise.
7913         (bpstat_clear_actions): Likewise.
7914         (bpstat_do_actions_1): Likewise.
7915         (bpstat_stop_status): Likewise.
7916         (print_one_breakpoint_location): Likewise.
7917         (delete_breakpoint): Likewise.
7918         (bpstat_alloc): Initialize new field.
7919         (tracepoint_save_command): Update.
7920         * tracepoint.c (encode_actions): Update.
7921         (trace_dump_command): Update.
7922
7923 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
7924
7925         * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7926         * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7927         (read_structure_type): For RealView, set TYPE_STUB on structures with
7928         no byte size and no children.
7929         (read_subroutine_type): Mark functions as prototyped by default.
7930         * symtab.c (producer_is_realview): New function.
7931         * symtab.h (expand_line_sal): Fix declaration formatting.
7932         (producer_is_realview): Declare.
7933
7934 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
7935
7936         * arm-tdep.c (skip_prologue_function): New function.
7937         (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7938         (thumb_analyze_prologue): Document return value.  Recognize more
7939         Thumb instructions, skippable calls, and some Thumb-2 instructions.
7940         Add debug output.
7941         (arm_skip_prologue): Remove call dummy check.  Check the prologue
7942         for non-GNU compilers.
7943         (arm_instruction_changes_pc): New function.
7944         (arm_analyze_prologue): New function, broken out from
7945         arm_scan_prologue.  Recognize more ARM instructions and skippable
7946         calls.  Update comments.  Handle NULL cache.  Return the address
7947         of the first unrecognized instruction.  Do not skip past other
7948         instructions which change control flow.  Add debug output.
7949         (arm_scan_prologue): Use arm_analyze_prologue.
7950         (ARM_PC_32): Delete.
7951         (shifted_reg_val): Simplify ARM_PC_32 check.
7952
7953 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7954
7955         * tracepoint.c (tvariables_info_1): Actually compute
7956         the number of rows in the result.
7957
7958 2010-03-24  Pedro Alves  <pedro@codesourcery.com>
7959
7960         * remote.c (crc32): Constify `buf' parameter.
7961         (remote_verify_memory): New, abstracted out from...
7962         (compare_sections_command): ... this.  Remove hardcoded target
7963         checks.
7964         (init_remote_ops): Install remote_verify_memory.
7965         * target.c (target_verify_memory): New.
7966         * target.h (struct target_ops) <to_verify_memory>: New field.
7967         (target_verify_memory): Declare.
7968
7969 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7970
7971         Implement -trace-save.
7972
7973         * mi-cmds.h (mi_cmds_trace_save): Declare.
7974         * mi-cmds.c (mi_cmds): Register -trace-save.
7975         * mi/mi-main.c (mi_cmd_trace_save): New.
7976         * remote.c (remote_save_trace_data): Take const parameter.
7977         * target.h (struct target_ops::to_save_trace_data): Take
7978         const parameter.
7979         * target.c (update_current_target): Adjust to the above.
7980         * tracepoint.c (trave_save): New, extracted from
7981         (trace_save_command): ...this.
7982         (tfile_trace_find): Remove message that is unnecessary now
7983         that 'tfind' reports found frame.
7984         * tracepoint.h (trace_save): Declare.
7985
7986 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7987
7988         Implement -trace-find.
7989
7990         * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7991         * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
7992         * mi/mi-main.c (mi_cmd_trace_find): New.
7993         * target.h (struct target_ops): Document to_trace_find.
7994         * tracepoint.h (tfind_1): Declare.
7995         * tracepoint.c (finish_tfind_command): Rename to...
7996         (tfind_1): ...this.
7997         * remote.c (remote_trace_find): Return -1 if target say
7998         there's no frame.  Improve error diagnostics.
7999
8000 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8001
8002         -trace-define-variable and -trace-list-variables.
8003
8004         * tracepoint.c (create_trace_state_variable): Make
8005         private copy of name, as opposed to assuming the
8006         pointer lives forever.
8007         (tvariables_info_1): New.
8008         (tvariables_info): Use the above.
8009         * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8010         Declare.
8011         * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8012         and -trace-list-variables.
8013         * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8014         (mi_cmd_trace_list_variables): New.
8015         * mi/mi-main.c (mi_cmd_trace_define_variable)
8016         (mi_cmd_trace_list_variables): New.
8017
8018 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8019
8020         Implement -break-passcount.
8021
8022         * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8023         * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8024         * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8025
8026 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8027
8028         -trace-start/-trace-end/-trace-status.
8029
8030         * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8031         and -trace-stop.
8032         * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8033         (mi_cmd_trace_stop): Declare.
8034         * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8035         (mi_cmd_trace_stop): New.
8036         * tracepoint.c (start_tracing): New, extracted from...
8037         (trace_start_command): ...this.
8038         (trace_status_mi): New.
8039         * tracepoint.h (struct trace_status): Document
8040         stopping_tracepoint.
8041         (start_tracing, stop_tracing, trace_status_mi): Declare.
8042
8043 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8044
8045         Implement creating tracepoints with -break-insert.
8046
8047         * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8048         to mean that tracepoint should be created.
8049
8050 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8051
8052         * breakpoint.c (check_no_tracepoint_commands): Use
8053         current spelling of 'teval'.
8054
8055 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8056
8057         Unify actions and commands
8058
8059         * defs.h (read_command_lines, read_command_lines_1): New
8060         parameters validator and closure.
8061         * tracepoint.h (struct action_line): Remove.
8062         * breakpoint.h (struct breakpoint): Remove the 'actions'
8063         field.
8064         * defs.h (enum command_control_type): New value
8065         while_stepping_control.
8066         (struct command_line): Add comments.
8067         * breakpoint.c (breakoint_is_tracepoint): New.
8068         (breakpoint_set_commands): For tracepoints,
8069         verify the commands are permissible.
8070         (check_tracepoint_commands): New.
8071         (commands_command): Require that each new line is validated using
8072         check_tracepoint_command, if we set commands for a tracepoint.
8073         (create_tracepoint_from_upload): Likewise.
8074         (print_one_breakpoint_location): Remove the code to print
8075         actions specifically.
8076         (tracepoint_save_command): Relay to print_command_lines.
8077         * cli/cli-script.c (process_next_line): New parameters validator
8078         and closure. Handle 'while-stepping'. Call validator if not null.
8079         (read_command_lines, read_command_lines1): Likewise.
8080         (recurse_read_control_structure): New parameters validator and
8081         closure. Handle while_stepping_control.
8082         (print_command_lines): Handle while-stepping.
8083         (get_command_line, define_command, document_command): Adjust.
8084         * remote.c (remote_download_tracepoint): Adjust.
8085         * tracepoint.c (make_cleanup_free_actions, read_actions)
8086         (free_actions, do_free_actions_cleanup): Remove.
8087         (trace_actions_command): Use read_command_lines.
8088         (validate_actionline): Use error in one place.
8089         (encode_actions_1): New, extracted from...
8090         (encode_actions): ...this. Also use cleanups for exception
8091         safety.
8092         (trace_dump_command): Adjust.
8093         * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8094         it's tracepoint.
8095
8096 2010-03-23  Mike Frysinger  <vapier@gentoo.org>
8097
8098         * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8099
8100 2010-03-22  Stan Shebs  <stan@codesourcery.com>
8101
8102         * value.c (value_static_field): Be lazy about the field's value.
8103
8104 2010-03-22  Reid Kleckner  <reid@kleckner.net>
8105
8106         PR gdb/11094
8107         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8108         bp_jit_event.
8109         (disable_breakpoints_in_shlibs): Likewise.
8110
8111 2010-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
8112
8113         * dwarf2read.c (partial_die_parent_scope): Work around buggy
8114         GCC 4.1 debug info generation (GCC PR c++/28460).
8115         (determine_prefix): Likewise.
8116
8117 2010-03-20  Daniel Jacobowitz  <dan@codesourcery.com>
8118
8119         * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8120         get_current_arch.
8121         * tui/tui-layout.c (extract_display_start_addr): Likewise.
8122
8123 2010-03-19  Stan Shebs  <stan@codesourcery.com>
8124
8125         * ax-gdb.c (gen_fetch): Handle bool.
8126         (gen_usual_unary): Ditto.
8127         (gen_cast): Ditto.
8128         (gen_equal): New function.
8129         (gen_less): New function.
8130         (gen_expr_binop_rest): Call them, also return integer type from
8131         logical operations.
8132         (gen_expr): Ditto.
8133
8134 2010-03-19  Tom Tromey  <tromey@redhat.com>
8135
8136         * jv-lang.c (jv_dynamics_objfile_data_key)
8137         (jv_type_objfile_data_key): New globals.
8138         (class_symtab): Move earlier.
8139         (jv_per_objfile_free): New function.
8140         (get_dynamics_objfile): Call set_objfile_data.  Add 'gdbarch'
8141         parameter.
8142         Remove ancient #if 1.
8143         (add_class_symbol): Remove redundant declaration.
8144         (java_lookup_class): Use alloc_type, not alloc_type_arch.
8145         (java_link_class_type): Mark as static.  Update.
8146         (jv_clear_object_type): New function.
8147         (set_java_object_type): Likewise.
8148         (get_java_object_type): Use set_java_object_type.
8149         (is_object_type): Likewise.
8150         (_initialize_java_language): Register new objfile keys.
8151         (get_java_class_symtab): Add 'gdbarch' parameter.
8152         (add_class_symtab_symbol): Update.
8153         (type_from_class): Update.
8154
8155 2010-03-19  Stan Shebs  <stan@codesourcery.com>
8156
8157         * ax-general.c (ax_const_l): Fix a sizing bug.
8158
8159 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
8160
8161         GDB 7.1 released.
8162
8163 2010-03-18  Stan Shebs  <stan@codesourcery.com>
8164             Pedro Alves  <pedro@codesourcery.com>
8165
8166         * target.h (struct target_ops): New method
8167         to_set_circular_trace_buffer.
8168         (target_set_circular_trace_buffer): New macro.
8169         * target.c (update_current_target): Add
8170         to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8171         default behavior.
8172         * remote.c (remote_set_circular_trace_buffer): New function.
8173         (init_remote_ops): Add it to vector.
8174         * tracepoint.h (struct trace_status): New field traceframes_created,
8175         change buffer_size and buffer_free to int.
8176         * tracepoint.c (circular_trace_buffer): New global.
8177         (start_tracing): Send values of disconnected tracing and circular
8178         trace buffer settings.
8179         (set_circular_trace_buffer): New function.
8180         (parse_trace_state): Handle total space and frames created.
8181         (trace_status_command): Display total space and total frames
8182         created.
8183         (trace_save): Write out new status values.
8184         (parse_trace_status): Set traceframe_count, traceframes_created,
8185         buffer_free and buffer_size to -1 by default.
8186         (_initialize_tracepoint): New setshow for circular-trace-buffer.
8187         * NEWS: Mention the circular trace buffer option.
8188
8189 2010-03-18  Tom Tromey  <tromey@redhat.com>
8190
8191         * infcmd.c (finish_command_continuation): Wrap print_return_value
8192         in TRY_CATCH.
8193
8194 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
8195
8196         * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8197         DIE has a name before creating the associated partial symbol.
8198         (read_func_scope): Emit a complaint if the subprogram does not
8199         have a name or when we can't extract the subprogram PC bounds.
8200
8201 2010-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
8202
8203         * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8204         instead of selected frame architecture.
8205
8206 2010-03-18  Pedro Alves  <pedro@codesourcery.com>
8207
8208         * infcmd.c (until_command): Use ERROR_NO_INFERIOR.  Ensure there's
8209         a valid selected thread, and that it is not running.
8210         (advance_command): Ditto.
8211         (finish_command): Ditto.
8212
8213 2010-03-17 Stan Shebs  <stan@codesourcery.com>
8214
8215         * ax-gdb.c (require_rvalue): Disallow non-scalars.
8216
8217         * infcall.c: Include tracepoint.h.
8218         (call_function_by_hand): Disallow calls in tfind mode.
8219         * infcmd.c: Include tracepoint.h.
8220         (ensure_not_tfind_mode): New function.
8221         (continue_1): Call it.
8222         (step_1) Ditto.
8223         (jump_command): Ditto.
8224         (signal_command): Ditto.
8225         (advance_command): Ditto.
8226         (until_command): Ditto.
8227         (finish_command): Ditto.
8228         * tracepoint.h (disconnect_or_stop_tracing): Declare.
8229
8230         * ax-gdb.h (struct axs_value): New field optimized_out.
8231         (gen_trace_for_var): Add gdbarch argument.
8232         * ax-gdb.c (gen_trace_static_fields): New function.
8233         (gen_traced_pop): Call it, add gdbarch argument.
8234         (gen_trace_for_expr): Update call to it.
8235         (gen_trace_for_var): Ditto, and report optimized-out variables.
8236         (gen_struct_ref_recursive): Check for optimized-out value.
8237         (gen_struct_elt_for_reference): Ditto.
8238         (gen_static_field): Pass gdbarch instead of expression, assume
8239         optimization if field not found.
8240         (gen_var_ref): Set the optimized_out flag.
8241         (gen_expr): Error on optimized-out variable.
8242         * tracepoint.c (collect_symbol): Handle struct-valued vars as
8243         expressions, skip optimized-out variables with computed locations.
8244         * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8245         erroring out if location expression missing.
8246         (loclist_tracepoint_var_ref): Don't error out here.
8247
8248 2010-03-17  Tom Tromey  <tromey@redhat.com>
8249
8250         * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8251         DWARF data is available.
8252
8253 2010-03-17  Daniel Jacobowitz  <dan@codesourcery.com>
8254
8255         * symfile.c (generic_load): Reset breakpoints after loading.
8256
8257 2010-03-17  Tom Tromey  <tromey@redhat.com>
8258
8259         * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8260
8261 2010-03-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8262
8263         * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8264         create_breakpoint call, adjust the parameters.
8265
8266 2010-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8267             Chandru <chandru@in.ibm.com>
8268
8269         * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8270         * valarith.c (value_subscripted_rvalue): Suppress error if
8271         TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8272
8273 2010-03-16  Holger Hans Peter Freyther  <zecke@selfish.org>
8274
8275         * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8276
8277 2010-03-16  Joel Brobecker  <brobecker@adacore.com>
8278
8279         * ada-tasks.c (task_command_1): Check that the task ptid is valid
8280         before doing the associated thread switch.
8281
8282 2010-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
8283
8284         * MAINTAINERS: Update my email address.
8285
8286 2010-03-16  Vladimir Prus  <vladimir@codesourcery.com>
8287
8288         Simplify MI breakpoint setting.
8289
8290         * breakpoint.c (break_command_really): Make nonstatic and
8291         rename to...
8292         (create_breakpoint): ...this. Rename prior function by this name
8293         to...
8294         (create_breakpoint_sal): ...this.
8295         (create_breakpoints): Rename to...
8296         (create_breakpoints_sal): ...this.
8297         (set_breakpoint): Remove.
8298         * breakpoint.h: Adjust to above changes.
8299         * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8300
8301 2010-03-15 Stan Shebs  <stan@codesourcery.com>
8302
8303         * ax-gdb.c: Include cp-support.h.
8304         (find_field): Remove.
8305         (gen_primitive_field): New function.
8306         (gen_struct_ref_recursive): New function.
8307         (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8308         of find_field.
8309         (gen_static_field): New function.
8310         (gen_struct_elt_for_reference): New.
8311         (gen_namespace_elt): New.
8312         (gen_maybe_namespace_elt): New.
8313         (gen_aggregate_elt_ref): New.
8314         (gen_expr): Add OP_SCOPE, display opcode name in error message.
8315
8316 2010-03-15  Tom Tromey  <tromey@redhat.com>
8317
8318         * dwarf2read.c (die_needs_namespace): Also return 0 for
8319         DW_TAG_subprogram.
8320
8321 2010-03-15  Sami Wagiaalla  <swagiaal@redhat.com>
8322
8323         PR c++/7936:
8324         * cp-support.h: Added char *declaration element to using_direct
8325         data struct.
8326         (cp_add_using): Added char *declaration argument.
8327         (cp_add_using_directive): Ditto.
8328         (cp_lookup_symbol_imports): made extern.
8329         * cp-namespace.c: Updated with the above changes.
8330         * dwarf2read.c (read_import_statement): Ditto.
8331         (read_namespace): Ditto.
8332         (read_import_statement): Support import declarations.
8333         * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8334         declarations.
8335         Added support for 'declaration_only' search.
8336         (cp_lookup_symbol_namespace): Attempt to search for the name as
8337         is before consideration of imports.
8338         * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8339         search at every block level search.
8340         Now takes language argument.
8341         (lookup_symbol_aux): Updated.
8342
8343 2010-03-15  Tom Tromey  <tromey@redhat.com>
8344
8345         * c-exp.y (name_not_typename): Add 'operator' clause.
8346
8347 2010-03-15  Ralf Corsepius  <ralf.corsepius@rtems.org>  (tiny change)
8348
8349         * configure.ac: Exit if ${gdb_target_obs}" is not set.
8350         * configure: Regenerate.
8351
8352 2010-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
8353
8354         * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8355         and ".sdynbss".  Update the comment.
8356
8357 2010-03-15  Jie Zhang  <jie@codesourcery.com>
8358
8359         * MAINTAINERS: Update my email address.
8360
8361 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
8362
8363         * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8364
8365 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
8366
8367         * charset.c [USE_WIN32API]: Include <windows.h>.
8368          (_initialize_charset): Correct type of w32_host_default_charset.
8369
8370 2010-03-14  Pedro Alves  <pedro@codesourcery.com>
8371
8372         * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8373
8374 2010-03-12  Tom Tromey  <tromey@redhat.com>
8375
8376         PR c++/9708:
8377         * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8378         in a lexical block does not need a namespace.
8379         (new_symbol) <DW_TAG_variable>: Put extern variables on
8380         list_in_scope in all cases.
8381
8382 2010-03-12 Stan Shebs  <stan@codesourcery.com>
8383
8384         * ax-gdb.c (gen_expr): Add shift expressions.
8385         (gen_expr_binop_rest): Ditto.
8386
8387 2010-03-12  Sami Wagiaalla  <swagiaal@redhat.com>
8388
8389         * buildsym.c (finish_block): Reset using_directives pointer
8390         after block initialization.
8391
8392 2010-03-12  H.J. Lu  <hongjiu.lu@intel.com>
8393
8394         * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8395         * i386-tdep.c (i386_word_names): Likewise.
8396
8397 2010-03-12  Pedro Alves  <pedro@codesourcery.com>
8398
8399         * target.c (memory_xfer_partial): Don't use the stack cache if
8400         inspecting trace frames.
8401         * tracepoint.c (finish_tfind_command): Invalidate the target
8402         dcache.
8403
8404 2010-03-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8405
8406         * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8407         for the PIC displacement, print also the displacement value.
8408         (svr4_exec_displacement):  Print DISPLACEMENT if INFO_VERBOSE.
8409
8410 2010-03-10  Kevin Buettner  <kevinb@redhat.com>
8411
8412         * remote-mips.c (close_ports, mips_initialize_cleanups)
8413         (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8414         (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8415         (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8416         (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8417         (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8418         (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8419         comments describing each of these functions.
8420         (mips_enter_debug, mips_exit_debug, common_open)
8421         (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8422         blank line after the comment describing the function.
8423
8424 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8425
8426         * solib-svr4.c (svr4_exec_displacement): Return now success, new
8427         parameter displacementp.  Update comment.
8428         (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8429         element exists.  Return if svr4_exec_displacement was not successful.
8430         Update comment.
8431
8432 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8433             Daniel Jacobowitz  <dan@codesourcery.com>
8434
8435         * solib-svr4.c (read_program_header): Support type == -1 to read
8436         all program headers.
8437         (read_program_headers_from_bfd): New function.
8438         (svr4_static_exec_displacement): Remove and move the comment ...
8439         (svr4_exec_displacement): ... here.  Remove variable found.  New
8440         variable displacement.  Check also DYNAMIC.  Verify DISPLACEMENT
8441         alignment for ELF targets.  Compare target vs. exec_bfd PHDRs for ELF
8442         targets using read_program_headers_from_bfd.  Remove the call of
8443         svr4_static_exec_displacement.
8444
8445 2010-03-10  Tom Tromey  <tromey@redhat.com>
8446
8447         * dwarf2read.c (struct pubnames_header): Remove.
8448         (_PUBNAMES_HEADER): Remove.
8449         (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8450         (struct aranges_header): Remove.
8451         (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8452         (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8453         (PUBNAMES_SECTION): Remove.
8454         (ARANGES_SECTION): Remove.
8455         (dwarf2_locate_sections): Don't handle pubnames or aranges.
8456         (dwarf2_build_psymtabs): Remove dead code.
8457         (dwarf2_build_psymtabs_easy): Remove.
8458
8459 2010-03-10  Tom Tromey  <tromey@redhat.com>
8460
8461         * elfread.c (elf_symfile_read): Don't call
8462         dwarf2_build_frame_info.
8463         * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8464         (struct dwarf2_per_objfile) <objfile>: New field.
8465         (dwarf2_has_info): Now idempotent.  Set objfile field.
8466         (dwarf2_read_section): Check and set readin field.  Call
8467         posix_madvise.
8468         (dwarf2_build_psymtabs): Don't read all sections.
8469         (read_type_comp_unit_head): Read types section.
8470         (create_debug_types_hash_table): Likewise.
8471         (init_cu_die_reader): Add asserts.
8472         (process_type_comp_unit): Add assert.
8473         (dwarf2_build_psymtabs_hard): Read info section.
8474         (load_partial_comp_unit): Add assert.
8475         (create_all_comp_units): Read info section.
8476         (load_full_comp_unit): Likewise.
8477         (dwarf2_ranges_read): Read ranges section.
8478         (dwarf2_record_block_ranges): Add assert.
8479         (dwarf2_read_abbrevs): Read abbrev section.
8480         (read_indirect_string): Read str section.
8481         (dwarf_decode_line_header): Read line section.
8482         (read_signatured_type_at_offset): Read types section.
8483         (dwarf_decode_macros): Read macinfo section.
8484         (dwarf2_symbol_mark_computed): Read loc section.
8485         * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8486         dwarf2_build_frame_info.
8487         (dwarf2_build_frame_info): Unconditionally set
8488         dwarf2_frame_objfile_data on the objfile.
8489         * configure.ac: Check for posix_madvise.
8490         * config.in, configure: Rebuild.
8491
8492 2010-03-10  Tom Tromey  <tromey@redhat.com>
8493
8494         * xcoffread.c (xcoff_start_psymtab): Update.
8495         (xcoff_end_psymtab): Update.
8496         * psymtab.c (allocate_psymtab): Remove dead code.
8497         * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8498         void*.
8499         * mdebugread.c (parse_partial_symbols): Update.
8500         (new_psymtab): Likewise.
8501         * dwarf2read.c (process_psymtab_comp_unit): Update.
8502         (psymtab_to_symtab_1): Update.
8503         * dbxread.c (start_psymtab): Update.
8504         (end_psymtab): Likewise.
8505
8506 2010-03-10  Tom Tromey  <tromey@redhat.com>
8507
8508         * xcoffread.c: Include psymtab.h.
8509         (xcoff_sym_fns): Update.
8510         * symtab.h (struct partial_symbol): Remove.
8511         (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8512         (struct partial_symtab): Remove.
8513         (PSYMTAB_TO_SYMTAB): Remove.
8514         (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8515         (find_pc_sect_psymtab): Remove.
8516         (find_pc_sect_symtab_via_partial): Declare.
8517         (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8518         (find_main_psymtab): Remove.
8519         (find_main_filename): Declare.
8520         (fixup_psymbol_section): Remove.
8521         (fixup_section): Declare.
8522         * symtab.c: Include psymtab.h.
8523         (lookup_symtab): Use lookup_symtab method.
8524         (lookup_partial_symtab): Remove.
8525         (find_pc_sect_psymtab_closer): Remove.
8526         (find_pc_sect_psymtab): Remove.
8527         (find_pc_sect_symtab_via_partial): New function.
8528         (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8529         (fixup_section): No longer static.
8530         (fixup_psymbol_section): Remove.
8531         (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8532         (lookup_global_symbol_from_objfile): Likewise.
8533         (lookup_symbol_aux_psymtabs): Remove.
8534         (lookup_symbol_aux_quick): New function.
8535         (lookup_symbol_global): Use lookup_symbol_aux_quick.
8536         (lookup_partial_symbol): Remove.
8537         (basic_lookup_transparent_type_quick): New function.
8538         (basic_lookup_transparent_type): Use it.
8539         (find_main_psymtab): Remove.
8540         (find_main_filename): New function.
8541         (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8542         (find_line_symtab): Use expand_symtabs_with_filename method.
8543         (output_partial_symbol_filename): New function.
8544         (sources_info): Use map_partial_symbol_filenames.
8545         (struct search_symbols_data): New type.
8546         (search_symbols_file_matches): New function.
8547         (search_symbols_name_matches): Likewise.
8548         (search_symbols): Use expand_symtabs_matching method.
8549         (struct add_name_data): Rename from add_macro_name_data.
8550         (add_macro_name): Update.
8551         (add_partial_symbol_name): New function.
8552         (default_make_symbol_completion_list): Use
8553         map_partial_symbol_names.
8554         (struct add_partial_symbol_name): New type.
8555         (maybe_add_partial_symtab_filename): New function.
8556         (make_source_files_completion_list): Use
8557         map_partial_symbol_filenames.
8558         (expand_line_sal): Use expand_symtabs_with_filename method.
8559         * symmisc.c: Include psymtab.h.
8560         (print_objfile_statistics): Use print_stats method.
8561         (dump_objfile): Use dump method.
8562         (dump_psymtab, maintenance_print_psymbols)
8563         (maintenance_info_psymtabs, maintenance_check_symtabs)
8564         (extend_psymbol_list): Remove.
8565         * symfile.h (struct quick_symbol_functions): New struct.
8566         (struct sym_fns) <qf>: New field.
8567         (sort_pst_symbols): Remove.
8568         (increment_reading_symtab): Declare.
8569         * symfile.c: Include psymtab.h.
8570         (compare_psymbols, sort_pst_symbols): Remove.
8571         (psymtab_to_symtab): Remove.
8572         (increment_reading_symtab): New function.
8573         (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8574         method.
8575         (set_initial_language): Use find_main_filename.
8576         (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8577         (free_named_symtabs): Remove unused code.
8578         (start_psymtab_common, add_psymbol_to_bcache)
8579         (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8580         Remove.
8581         * stack.c: Include psymtab.h, symfile.h.
8582         (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8583         * source.h (psymtab_to_fullname): Don't declare.
8584         * source.c: Include psymtab.h.
8585         (select_source_symtab): Use find_last_source_symtab method.
8586         (forget_cached_source_info): Use forget_cached_source_info
8587         method.
8588         (find_and_open_source): No longer static.
8589         (psymtab_to_fullname): Remove.
8590         * somread.c: Include psymtab.h.
8591         (som_sym_fns): Update.
8592         * psympriv.h: New file.
8593         * psymtab.h: New file.
8594         * psymtab.c: New file.
8595         * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8596         (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8597         * objfiles.c: Include psymtab.h.
8598         (objfile_relocate1): Use relocate method.
8599         (objfile_has_partial_symbols): Use has_symbols method.
8600         * mipsread.c: Include psymtab.h.
8601         (ecoff_sym_fns): Update.
8602         * mi/mi-cmd-file.c: Include psymtab.h.
8603         (print_partial_file_name): New function.
8604         (mi_cmd_file_list_exec_source_files): Use
8605         map_partial_symbol_filenames.
8606         * mdebugread.c: Include psympriv.h.
8607         * machoread.c: Include psympriv.h.
8608         (macho_sym_fns): Update.
8609         * m2-exp.y (yylex): Use lookup_symtab.
8610         * elfread.c: Include psympriv.h.
8611         (elf_sym_fns): Update.
8612         * dwarf2read.c: Include psympriv.h.
8613         * dbxread.c: Include psympriv.h.
8614         (aout_sym_fns): Update.
8615         * cp-support.c: Include psymtab.h.
8616         (read_in_psymtabs): Remove.
8617         (make_symbol_overload_list_qualified): Use
8618         expand_symtabs_for_function method.
8619         * coffread.c: Include psympriv.h.
8620         (coff_sym_fns): Update.
8621         * blockframe.c: Include psymtab.h.
8622         (find_pc_partial_function): Use find_pc_sect_symtab method.
8623         * ada-lang.h (ada_update_initial_language): Update.
8624         * ada-lang.c: Include psymtab.h.
8625         (ada_update_initial_language): Remove 'main_pst' argument.
8626         (ada_lookup_partial_symbol): Remove.
8627         (struct ada_psym_data): New type.
8628         (ada_add_psyms): New function.
8629         (ada_add_non_local_symbols): Use map_ada_symtabs method.
8630         (struct add_partial_datum): New type.
8631         (ada_add_partial_symbol_completions): New function.
8632         (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8633         (ada_exception_support_info_sniffer): Update.
8634         * Makefile.in (SFILES): Add psymtab.c.
8635         (COMMON_OBS): Add psymtab.o.
8636         (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8637
8638 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
8639
8640         * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8641
8642 2010-03-10  Sami Wagiaalla  <swagiaal@redhat.com>
8643
8644         PR C++/11236:
8645         * cp-namespace.c (cp_add_using): Deleted.
8646         (cp_add_using_directive): Use obstack allocations.
8647         Merged the function cp_add_using into this one.
8648         Added 'struct obstack *' argument.
8649         (cp_scan_for_anonymous_namespaces): Updated.
8650         * cp-support.h: Updated.
8651         * dwarf2read.c (read_import_statement): Updated.
8652         (read_namespace): Updated.
8653
8654 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
8655
8656         * windows-nat.c (cygwin_conv_path): Remove old macro.
8657
8658 2010-03-10  Pedro Alves  <pedro@codesourcery.com>
8659
8660         * breakpoint.c (condition_command): Handle watchpoint conditions.
8661         (is_hardware_watchpoint): Add comment.
8662         (is_watchpoint): New.
8663         (update_watchpoint): Don't reparse the watchpoint's condition
8664         unless necessary.
8665         (WP_IGNORE): New.
8666         (watchpoint_check): Use it.
8667         (bpstat_check_watchpoint): Handle it.
8668         (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8669         conditions in a frame where it makes sense.
8670         (watch_command_1): Store the innermost block of the condition
8671         expression.
8672         (delete_breakpoint): Delete the watchpoint condition expression.
8673         * breakpoint.h (struct bp_location) <cond>: Update comment.
8674         (struct breakpoint): New field `cond_exp_valid_block'.
8675
8676 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
8677
8678         Adjust handling of Ada DIEs after dwarf2_physname patch.
8679         * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8680
8681 2010-03-09  Christopher Faylor  <me+cygwin@cgf.cx>
8682             Pierre Muller  <muller@ics.u-strasbg.fr>
8683
8684         * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8685         from/to posix/win32.
8686         (windows_make_so): Use non-Cygwin 1.7 specific function.
8687         (windows_create_inferior): Make sure that cygallargs points to
8688         original args in non Cygwin 1.7. case.
8689
8690 2010-03-09  Michael Snyder  <msnyder@vmware.com>
8691
8692         * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8693         after target_read_memory to get host byte order.
8694         (i386_process_record): Ditto.
8695
8696 2010-03-09  Keith Seitz  <keiths@redhat.com>
8697
8698         Based on work from Daniel Jacobowitz  <dan@codesourcery.com>
8699         * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8700         print out const or volatile qualifiers, too.
8701         (c_type_print_args): Add parameters show_artificial and language.
8702         Skip artificial parameters when requested.
8703         Use the appropriate language printer.
8704         (c_type_print_varspec): Tell c_type_print_args to skip artificial
8705         parameters and pass language_c.
8706         * dwarf2read.c (die_list): New file global.
8707         (struct partial_die_info): Update comments for name field.
8708         (pdi_needs_namespace): Renamed to ...
8709         (die_needs_namespace): ... this. Rewrite.
8710         (dwarf2_linkage_name): Remove.
8711         (add_partial_symbol): Do not predicate the call to
8712         partial_die_full_name based on pdi_needs_namespace.
8713         Remove call to cp_check_possible_namespace_symbols and associated
8714         outdated comments.
8715         (guess_structure_name): Do not inspect child subprogram DIEs.
8716         (dwarf2_fullname): Update comments.
8717         Use die_needs_namespace to assist in computing the name.
8718         (read_func_scope): Use dwarf2_name to get the DIE's name.
8719         Use dwarf2_physname to get the "linkage name" of the DIE.
8720         (dwarf2_add_member_field): Use dwarf2_physname instead of
8721         dwarf2_linkage_name.
8722         (read_structure_type): For structs and classes, set TYPE_NAME, too.
8723         (determine_class): Remove.
8724         (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8725         except Ada.
8726         (new_symbol): Unconditionally call dwarf2_name.
8727         Compute the "linkage name" using dwarf2_physname.
8728         Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8729         When determining to scan for anonymous C++ namespaces, ignore
8730         the linkage name.
8731         (dwarf2_physname): New function.
8732         (dwarf2_full_name): Move content to new function and call
8733         that.
8734         (dwarf2_compute_name): "New" function.
8735         (_initialize_dwarf2_read): Initialize die_list.
8736         * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8737         physname.
8738         (gnu_v3_print_method_ptr): Use the physname for virtual methods
8739         without a demangled name.
8740         Print out type information for non-virtual methods.
8741         * linespec.c (decode_line_1): Force ANY string using "::" (or
8742         "." for java) to use decode_compound, and clean up any stray quoting.
8743         If we found a file symtab, re-evaluate whether the remainder is_quoted.
8744         (decode_compound): Stop consuming at an open parenthesis.
8745         Keep template parameters.
8746         Keep any overload information.
8747         Keep keywords like "const".
8748         Remove paren_pointer.
8749         Move is_quoted check from set_flags to here.
8750         Remove #if 0 code from 2000. Ten years is long enough.
8751         (find_method): Before comparing symbol names, canonicalize the string
8752         from the user.
8753         If a specific overload is requested, find it. Otherwise throw an error.
8754         (find_method_overload_end): New function.
8755         (set_flags): Remove.
8756         (decode_compound): Assume that parentheses are matched.
8757         It's a lot easier.
8758         * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8759         to cplus_demangle.
8760         * linespec.c (decode_line_1): Keep important keywords like
8761         "const" and "volatile".
8762         * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8763         * typeprint.h (c_type_print_args): Add declaration.
8764         * ui-file.c (do_ui_file_obsavestring): New function.
8765         (ui_file_obsavestring): New function.
8766         * ui-file.h (ui_file_obsavestring): Add declaration.
8767         * valops.c (find_overload_match): Resolve the object to
8768         a non-pointer type.
8769         If the object is a data member, search the object for the member
8770         and return with staticp set.
8771         Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8772         Do not attempt to extract a function name from non-function types.
8773         If the extracted function name and the original name are the same,
8774         we don't have a C++ method.
8775
8776         From Jan Kratochvil  <jan.kratochvil@redhat.com>:
8777         * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
8778
8779         * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8780         and arguments from symbol lookups.
8781         * ax-gdb.c (gen_expr): Likewise.
8782         * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8783         cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8784         lookup_possible_namespace_symbol): Likewise.
8785         * cp-support.c (read_in_psymtabs): Likewise.
8786         * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8787         * language.h (la_lookup_symbol_nonlocal): Likewise.
8788         * scm-valprint.c (scm_inferior_print): Likewise.
8789         * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8790         * solib-svr.c (elf_lookup_lib): Likewise.
8791         * solib.c (show_auto_solib_add): Likewise.
8792         * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8793         * symmisc.c (maintenance_check_symtabs): Likewise.
8794         * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8795         lookup_symbol_aux_local, lookup_symbol_aux_block,
8796         lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8797         lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8798         lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8799         basic_lookup_transparent_type, find_main_psymtab,
8800         lookup_block_symbol): Likewise.
8801         * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8802         lookup_symbol_global, lookup_symbol_aux_block,
8803         lookup_symbol_partial_symbol, lookup_block_symbol,
8804         lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8805
8806 2010-03-09  Pierre Muller  <muller@ics.u-strasbg.fr>
8807
8808         * python/python-internal.h: Include symtab.h.
8809
8810 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
8811             Pierre Muller  <muller@ics.u-strasbg.fr>
8812
8813         * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8814         * p-valprint.c (pascal_val_print): Remove undeed block and fix
8815         indentation.
8816
8817 2010-03-08  Tom Tromey  <tromey@redhat.com>
8818
8819         * breakpoint.c (breakpoint_1): Add "QUIT".
8820
8821 2010-03-08  Daniel Jacobowitz  <dan@codesourcery.com>
8822             Pedro Alves  <pedro@codesourcery.com>
8823
8824         * solib.c (solib_find): Replace extension if
8825         solib_symbols_extension is set in the target gdbarch.
8826         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8827         solib_symbols_extension to "sym".
8828         * gdbarch.sh (solib_symbols_extension): New variable.
8829         (pstring): New function.
8830         * gdbarch.h, gdbarch.c: Regenerate.
8831
8832 2010-03-08  Tom Tromey  <tromey@redhat.com>
8833
8834         PR cli/9591:
8835         * NEWS: Update.
8836         * utils.c: Include main.h.
8837         (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8838         (defaulted_query): Use default answer if `batch_flag'.
8839         * main.h (batch_flag): Declare.
8840         * main.c (batch_flag): New global.
8841         (captured_main): Remove 'batch'.  Update.
8842
8843 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
8844
8845         From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8846         and Kevin Buettner:
8847
8848         * remote-mips.c (rockhopper_ops): New target_ops struct.
8849         (MON_ROCKHOPPER): New mips_monitor_type.
8850         (read_hex_value): New function.
8851         (mips_request): Send 8-byte values with a 'T' packet.  Read the
8852         packet argument as a string and use read_hex_value to parse it.
8853         (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8854         (rockhopper_open): New function.
8855         (mips_wait): Read the PC, FP and SP fields as strings.  Use
8856         read_hex_value to parse them and mips_set_register to commit them.
8857         (mips_set_register): New function.
8858         (mips_fetch_registers): Do not cast register value to "unsigned"
8859         when reading a MON_ROCKHOPPER 't' packet.  Use mips_set_register.
8860         (mips_store_registers): Use a 'T' packet to set registers when
8861         using MON_ROCKHOPPER.
8862         (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8863         and expect the total to be printed before the entry address.
8864         (_initialize_remote_mips): Initialize and add rockhopper_ops.
8865
8866 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
8867
8868         * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8869         Change return value to int.  Store value fetched in location
8870         addressed by `val'.  Use function's return value as success
8871         or failure indicator.  Adjust all callers.
8872
8873 2010-03-08  Pierre Muller  <muller@ics.u-strasbg.fr>
8874
8875         * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8876
8877 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8878             Hui Zhu  <teawater@gmail.com>
8879
8880         * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8881         tmp_to_stopped_data_address.
8882         (record_open): Reset tmp_to_stopped_by_watchpoint and
8883         tmp_to_stopped_data_address.
8884         * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8885         to_stopped_data_address.
8886
8887 2010-03-08  Hui Zhu  <teawater@gmail.com>
8888
8889         * i386-tdep.c (i386_process_record): Initialize regnum.
8890
8891 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8892
8893         * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8894         Do not warn on ".gnu.liblist" and ".gnu.conflict".
8895
8896 2010-03-08  Joel Brobecker  <brobecker@adacore.com>
8897
8898         Memory error when reading wrong core file.
8899         * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8900         errors while reading the inferior memory, and return zero if
8901         an exception was raised.
8902
8903 2010-03-07  Michael Snyder  <msnyder@vmware.com>
8904
8905         * record.c (record_restore): Rename tmpu8 to rectype.
8906
8907         * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8908         tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8909
8910         (i386_record_push): Rename local tmpulongest to addr.
8911
8912         (i386_process_record): Rename local tmpulongest to addr.
8913
8914         Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8915         addr64.
8916
8917         Rename local variable tmpu8 to opcode8 and regnum.
8918
8919 2010-03-07  Joel Brobecker  <brobecker@adacore.com>
8920
8921         * remote.c (remote_get_ada_task_ptid): New function.
8922         (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
8923
8924 2010-03-06  Christopher Faylor  <me+cygwin@cgf.cx>
8925
8926         * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8927         block.  Define helper macros to reduce ifdefs in code.
8928         (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8929         size.  Call unadorned GetModuleFileNameEx rather than
8930         GetModuleFileNameEx*.
8931         (windows_make_so): Use __PMAX to denote maximum buffer size and
8932         cygwin_buf_t for buffer type.  Use GetSystemDirectory{W,A} as
8933         appropriate.
8934         (get_image_name): Use __PMAX to denote maximum buffer size.
8935         (handle_load_dll): Likewise.
8936         (windows_pid_to_exec_file): Likewise.
8937         (windows_create_inferior): Add many accommodations for older Cygwin and
8938         non-Cygwin.
8939         (bad_GetModuleFileNameExW): Control inclusion of this function based on
8940         __USEWIDE conditional.
8941         (bad_GetModuleFileNameExA): Likewise.
8942         (_initialize_loadable): Just use real function names without the dyn_
8943         part since they are defined earlier.
8944
8945 2010-03-05  Corinna Vinschen  <vinschen@redhat.com>
8946             Tom Tromey  <tromey@redhat.com>
8947
8948         * utils.c (host_char_to_target): Add 'gdbarch' argument.
8949         (parse_escape): Likewise.
8950         * python/py-utils.c (unicode_to_target_string): Update.
8951         (unicode_to_target_python_string): Update.
8952         (target_string_to_unicode): Update.
8953         * printcmd.c (printf_command): Update.
8954         * p-exp.y (yylex): Update.
8955         * objc-exp.y (yylex): Update.
8956         * mi/mi-parse.c: Include charset.h.
8957         (mi_parse_escape): New function.
8958         (mi_parse_argv): Use it.
8959         * jv-exp.y (yylex): Update.
8960         * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8961         function.
8962         (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8963         * gdbarch.sh (auto_charset, auto_wide_charset): New.
8964         * gdbarch.c: Rebuild.
8965         * gdbarch.h: Rebuild.
8966         * defs.h (parse_escape): Update.
8967         * cli/cli-setshow.c: Include arch-utils.h.
8968         (do_setshow_command): Update.
8969         * cli/cli-cmds.c (echo_command): Update.
8970         * charset.h (target_charset, target_wide_charset): Update.
8971         * charset.c: Include arch-utils.h.
8972         (target_charset_name): Default to "auto".
8973         (target_wide_charset_name): Likewise.
8974         (show_target_charset_name): Handle "auto".
8975         (show_target_wide_charset_name): Likewise.
8976         (be_le_arch): New global.
8977         (set_be_le_names): Add 'gdbarch' argument.
8978         (validate): Likewise.  Don't call set_be_le_names.
8979         (set_charset_sfunc, set_host_charset_sfunc)
8980         (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8981         Update.
8982         (target_charset): Add 'gdbarch' argument.
8983         (target_wide_charset): Likewise.  Remove 'byte_order' argument.
8984         (auto_target_charset_name): New global.
8985         (default_auto_charset, default_auto_wide_charset): New functions.
8986         (_initialize_charset): Set auto_target_charset_name.  Allow "auto"
8987         for target charsets.  Copy result of nl_langinfo.  Use GetACP if
8988         USE_WIN32API.
8989         * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8990         remove 'byte_order' argument.  Update.
8991         (classify_type): Likewise.
8992         (c_emit_char): Update.
8993         (c_printchar): Update.
8994         (c_printstr): Update.
8995         (c_get_string): Update.
8996         (evaluate_subexp_c): Update.
8997         * arch-utils.h (default_auto_charset, default_auto_wide_charset):
8998         Declare.
8999         * python/python.c (gdbpy_target_charset): New function.
9000         (gdbpy_target_wide_charset): Likewise.
9001         (GdbMethods): Update.
9002         * NEWS: Update.
9003
9004 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
9005
9006         * symfile.c (build_section_addr_info_from_objfile): Do not mask
9007         off high address bits.
9008
9009 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
9010
9011         * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9012         address as UnsignedLongLong, not LongLong.
9013
9014 2010-03-05  Kevin Buettner  <kevinb@redhat.com>
9015             Pedro Alves  <pedro@codesourcery.com>
9016
9017         * remote-mips.c (gdbthread.h): Include.
9018         (remote_mips_ptid): Declare.
9019         (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9020         (common_open): Set inferior_ptid, add it as an inferior, and
9021         as a thread too.  Delete FIXME comment regarding start_remote().
9022         (mips_close): Invoke generic_mourn_inferior().
9023         (mips_kill): Make sure that target_mourn_inferior is invoked.
9024         (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9025         it's now invoked from mips_close().
9026         (mips_load): Don't null out inferior_ptid.  Don't call
9027         clear_symtab_users().
9028         (mips_thread_alive, mips_pid_to_str): New functions.
9029         (_initialize_remote_mips): Initialize remote_mips_ptid.  Initialize
9030         to_thread_alive and to_pid_to_str operations.
9031
9032 2010-03-04  Tom Tromey  <tromey@redhat.com>
9033
9034         * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9035         in DWARF 3 and later.
9036         (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9037
9038 2010-03-04  Keith Seitz  <keiths@redhat.com>
9039
9040         * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9041         If the filename portion of the linespec was quoted, recheck the
9042         remainder for additional quoting.
9043         (locate_first_half): Skip over completer chars, too.
9044
9045 2010-03-04  Tom Tromey  <tromey@redhat.com>
9046
9047         * printcmd.c (printf_command): Pass dummy argument to
9048         printf_filtered.
9049
9050 2010-03-04  Doug Evans  <dje@google.com>
9051
9052         * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9053         unwound_fp.
9054
9055         * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9056
9057 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
9058
9059         * breakpoint.c (update_watchpoint): Create a sentinel location if
9060         the software watchpoint isn't watching any memory.
9061         (breakpoint_address_bits): Skip dummy software watchpoint locations.
9062
9063 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
9064
9065         * utils.c (fputs_maybe_filtered): Check if there's already a top
9066         level interpreter before dereferencing it.  If there isn't one,
9067         don't paginate either.
9068
9069 2010-03-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
9070
9071         * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9072         the state right when single stepping.
9073         (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9074         Get the next PC along with the instruction state.
9075         (thumb_get_next_pc): Remove.
9076         (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9077
9078 2010-03-04  Hui Zhu  <teawater@gmail.com>
9079
9080         * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9081
9082 2010-03-03  Pedro Alves  <pedro@codesourcery.com>
9083
9084         * utils.c (fputs_maybe_filtered): Always disable pagination if the
9085         top level interpreter is MI.
9086
9087 2010-03-03 Stan Shebs  <stan@codesourcery.com>
9088
9089         * remote.c (remote_download_tracepoint): Iterate over locations.
9090         * tracepoint.c (validate_actionline): Ditto.
9091         (encode_actions): Add location argument.
9092         (trace_dump_command): Check all locations to see if stepping
9093         frame.
9094
9095 2010-03-03  H.J. Lu  <hongjiu.lu@intel.com>
9096             Eli Zaretskii  <eliz@gnu.org>
9097
9098         * NEWS: Add X86 general purpose registers section.
9099
9100 2010-03-03  Tom Tromey  <tromey@redhat.com>
9101
9102         PR mi/11098:
9103         * varobj.c (install_new_value): Handle case where new print_value
9104         is NULL.
9105
9106 2010-03-03  Dainis Jonitis  <jonitis@gmail.com>
9107
9108         PR gdb/11345:
9109         * printcmd.c (printf_command): Print end of format string using
9110         printf_filtered.
9111
9112 2010-03-02  Tom Tromey  <tromey@redhat.com>
9113
9114         * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9115         * defs.h (read_command_lines_1): Add missing 'void'.
9116         * cli/cli-script.c (recurse_read_control_structure): Add missing
9117         'void'.
9118         (read_next_line): Likewise.
9119         (read_command_lines_1): Likewise.
9120
9121 2010-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
9122
9123         * spu-tdep.c (spu_analyze_prologue): Track instruction to
9124         store backchain as part of prologue.
9125
9126 2010-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
9127
9128         * progspace.c (update_address_spaces): Update inferior address spaces
9129         also.
9130
9131 2010-03-02  Doug Evans  <dje@google.com>
9132
9133         * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9134         lowpc,highpc args to addrmap_set_empty.
9135
9136 2010-03-02  H.J. Lu  <hongjiu.lu@intel.com>
9137
9138         * amd64-tdep.c (amd64_byte_names): New.
9139         (amd64_word_names): Likewise.
9140         (amd64_dword_names): Likewise.
9141         (amd64_pseudo_register_name): Likewise.
9142         (amd64_pseudo_register_read): Likewise.
9143         (amd64_pseudo_register_write): Likewise.
9144         (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9145         and num_mmx_regs.  Call set_gdbarch_pseudo_register_read,
9146         set_gdbarch_pseudo_register_write and
9147         set_tdesc_pseudo_register_name.  Don't call
9148         set_gdbarch_num_pseudo_regs.  Don't set mm0_regnum.
9149
9150         * i386-tdep.c (i386_num_mmx_regs): Removed.
9151         (i386_num_pseudo_regs): Likewise.
9152         (i386_byte_names): New.
9153         (i386_word_names): Likewise.
9154         (i386_byte_regnum_p): Likewise.
9155         (i386_word_regnum_p): Likewise.
9156         (i386_mmx_regnum_p): Updated.
9157         (i386_pseudo_register_name): Make it global.  Handle byte and
9158         word pseudo-registers.
9159         (i386_pseudo_register_read): Likewise.
9160         (i386_pseudo_register_write): Likewise.
9161         (i386_pseudo_register_type): Handle byte, word and dword
9162         pseudo-registers
9163         (i386_register_reggroup_p): Don't include pseudo
9164         registers, except for MXX, in any register groups.  Don't
9165         include pseudo byte, word, dword registers in general_reggroup.
9166         (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9167         num_dword_regs, al_regnum, ax_regnum and eax_regnum.  Put MMX
9168         pseudo-registers after word pseudo-registers.  Call
9169         set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9170
9171         * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9172         al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9173         eax_regnum.
9174         (i386_byte_regnum_p): New.
9175         (i386_word_regnum_p): Likewise.
9176         (i386_dword_regnum_p): Likewise.
9177         (i386_pseudo_register_name): Likewise.
9178         (i386_pseudo_register_read): Likewise.
9179         (i386_pseudo_register_write): Likewise.
9180
9181 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
9182
9183         * target-descriptions.c (tdesc_type): Remove
9184         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9185         (tdesc_predefined_types): Likewise.
9186         (tdesc_gdb_type): Likewise.  Pass NULL to append_flags_type_flag
9187         if flag name is empty.
9188         (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9189
9190         * features/i386/32bit-core.xml: Define i386_eflags.
9191         * features/i386/64bit-core.xml: Likewise.
9192
9193         * features/i386/32bit-sse.xml: Define i386_mxcsr.
9194         * features/i386/64bit-sse.xml: Likewise.
9195
9196         * features/i386/amd64-linux.c: Regenerated.
9197         * features/i386/amd64.c: Likewise.
9198         * features/i386/i386-linux.c: Likewise.
9199         * features/i386/i386.c: Likewise.
9200
9201 2010-03-01  Daniel Jacobowitz  <dan@codesourcery.com>
9202
9203         * gdbtypes.c (append_composite_type_field_raw): New.
9204         (append_composite_type_field_aligned): Use the new function.
9205         * gdbtypes.h (append_composite_type_field_raw): Declare.
9206         * target-descriptions.c (struct tdesc_type_field): Add start and end.
9207         (struct tdesc_type_flag): New type.
9208         (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9209         kind.  Add size to u.u.  Add u.f for flags.
9210         (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9211         (tdesc_free_type): Likewise.
9212         (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9213         (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9214         (tdesc_add_bitfield, tdesc_add_flag): New.
9215         * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9216         (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9217         * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9218         current_type.  Add current_type_size and current_type_is_flags.
9219         (tdesc_start_union): Clear the new fields.
9220         (tdesc_start_struct, tdesc_start_flags): New.
9221         (tdesc_start_field): Handle struct fields, including bitfields.
9222         (field_attributes): Make type optional.  Add start and end.
9223         (union_children): Rename to struct_union_children.
9224         (union_attributes): Rename to struct_union_attributes.  Add optional
9225         size.
9226         (flags_attributes): New.
9227         (feature_children): Add struct and flags.
9228         * features/gdb-target.dtd: Add flags and struct to features.
9229         Make field type optional.  Add field start and end.
9230
9231 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
9232
9233         * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9234         (amd64_linux_read_description): Likewise.
9235         (_initialize_amd64_linux_nat): Set to_read_description to
9236         amd64_linux_read_description.
9237
9238         * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9239         (amd64_linux_register_name): Removed.
9240         (amd64_linux_register_type): Likewise.
9241         (amd64_linux_core_read_description): New.
9242         (amd64_linux_init_abi): Set target description to
9243         tdesc_amd64_linux if needed.  Support orig_rax in target
9244         description.  Don't call set_gdbarch_register_name nor
9245         set_gdbarch_register_type.  Call
9246         set_gdbarch_core_read_description.
9247         (_initialize_amd64_linux_tdep): Call
9248         initialize_tdesc_amd64_linux.
9249
9250         * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9251
9252         * amd64-tdep.c:  Include "features/i386/amd64.c".
9253         (amd64_register_names): Removed.
9254         (amd64_register_name): Likewise.
9255         (amd64_register_type): Likewise.
9256         (amd64_init_abi):  Set num_core_regs and register_names.  Set
9257         target description to tdesc_amd64 if needed.  Don't call
9258         set_gdbarch_register_name nor set_gdbarch_register_type.
9259         (_initialize_amd64_tdep): New.
9260
9261         * i386-linux-nat.c (i386_linux_read_description): New.
9262         (_initialize_i386_linux_nat): Set to_read_description to
9263         i386_linux_read_description.
9264
9265         * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9266         (i386_linux_register_name): Removed.
9267         (i386_linux_core_read_description): New.
9268         (i386_linux_read_description): Likewise.
9269         (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9270         Set target description to tdesc_i386_linux if needed.  Support
9271         orig_eax.  Set register_reggroup_p.  Call
9272         set_gdbarch_core_read_description.
9273         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9274
9275         * i386-linux-tdep.h (tdesc_i386_linux): New.
9276
9277         * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9278         with I387_NUM_REGS.
9279
9280         * i386-tdep.c: Include "features/i386/i386.c".
9281         (i386_register_names): Make it const.
9282         (i386_mmx_names): Likewise.
9283         (i386_num_register_names): Removed.
9284         (i386_register_name): Likewise.
9285         (i386_eflags_type): Likewise.
9286         (i386_mxcsr_type): Likewise.
9287         (i386_sse_type): Likewise.
9288         (i386_register_type): Likewise.
9289         (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9290         (i386_pseudo_register_name): New.
9291         (i386_pseudo_register_type): Likewise.
9292         (i386_mmx_type): Make it static.
9293         (i386_gdbarch_init): Check arch.  Replace I386_NUM_FREGS with
9294         I387_NUM_REGS.  Set num_core_regs and register_names.  Don't
9295         call set_gdbarch_register_name nor set_gdbarch_register_type.
9296         Set register_reggroup_p.  Set target description to tdesc_i386
9297         if needed.  Call set_tdesc_pseudo_register_type,
9298         set_tdesc_pseudo_register_name and tdesc_use_registers.
9299         (_initialize_i386_tdep): Call initialize_tdesc_i386.
9300         initialize_tdesc_x86_64.
9301
9302         * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9303         i386_mxcsr_type and i386_sse_type.  Add num_core_regs,
9304         register_names, tdesc and register_reggroup_p.
9305         (I386_NUM_FREGS): Removed.
9306         (i386_eflags_type): Likewise.
9307         (i386_mxcsr_type): Likewise.
9308         (i386_mmx_type): Likewise.
9309         (i386_sse_type): Likewise.
9310         (i386_register_name): Likewise.
9311         (i386_regnum): Add I386_MXCSR_REGNUM.
9312         (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9313
9314         * i387-tdep.h (I387_NUM_REGS): New.
9315
9316         * regformats/i386/i386-linux.dat: Generated.
9317         * regformats/i386/i386.dat: Likewise.
9318         * regformats/i386/amd64-linux.dat: Likewise.
9319         * regformats/i386/amd64.dat: Likewise.
9320
9321         * regformats/reg-i386-linux.dat: Removed.
9322         * regformats/reg-i386.dat: Likewise.
9323         * regformats/reg-x86-64-linux.dat: Likewise.
9324         * regformats/reg-x86-64.dat: Likewise.
9325
9326 2010-03-01  Corinna Vinschen  <vinschen@redhat.com>
9327
9328         * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9329         cygwin_conv_path API rather than the deprecated
9330         cygwin_conv_to_full_posix_path.
9331         * windows-nat.c:
9332         (GetModuleFileNameExA): Undefine for Cygwin.
9333         (GetModuleFileNameExW): Define for Cygwin.
9334         (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9335         Call GetModuleFileNameExW and convert path to POSIX using
9336         cygwin_conv_path.
9337         (windows_make_so): Always define p.  Drop unused variable m.
9338         Don't use Win32 functions to check file existance, rather use
9339         access on Cygwin.  Fetch system directory using GetSystemDirectoryW.
9340         Use canonicalize_file_name to get full path.
9341         (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9342         to convert Unicode pathname to multibyte on Cygwin.  Otherwise,
9343         use correct target buffer size in call to WideCharToMultiByte.
9344         (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9345         (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9346         (windows_create_inferior): Convert all paths and arguments to wchar_t
9347         and use CreateProcessW on Cygwin.
9348         (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9349         (bad_GetModuleFileNameExA): Undefine for Cygwin.
9350         (bad_GetModuleFileNameExW): Define for Cygwin.
9351         (_initialize_loadable): Load GetModuleFileNameExW into
9352         dyn_GetModuleFileNameExW on Cygwin.  Don't load ANSI function on Cygwin.
9353
9354 2010-02-28  Phil Muldoon  <pmuldoon@redhat.com>
9355
9356         PR python/11036
9357         * python/py-frame.c (frapy_read_var): Add block argument and logic
9358         to cope with user provided blocks.
9359
9360 2010-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9361
9362         * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9363         New comment.
9364
9365 2010-02-28  Corinna Vinschen  <vinschen@redhat.com>
9366
9367         * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9368         (COMMON_OBS): ... to here since it's used unconditionally.
9369         (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9370         (SFILES): To here.
9371
9372 2010-02-26  David Daney  <ddaney@caviumnetworks.com>
9373
9374         * mips-linux-tdep.c: Update struct sigframe comments.
9375         (SIGFRAME_CODE_OFFSET): Delete macro.
9376         (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9377         this_frame's sp.
9378         (mips_linux_n32n64_sigframe_init): Same.
9379
9380 2010-02-26  Kevin Buettner  <kevinb@redhat.com>
9381
9382         * remote-mips.c (mips_load): Don't use pseudo-register when
9383         invalidating regcache.
9384
9385 2010-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
9386
9387         * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9388
9389 2010-02-26  Pedro Alves  <pedro@codesourcery.com>
9390
9391         * NEWS: Add "New targets" section, and mention ARM Symbian
9392         support.
9393
9394 2010-02-26  Ulrich Weigand  <uweigand@de.ibm.com>
9395
9396         * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9397         add ADDR_SIZE member.
9398         (allocate_piece_closure): Update.
9399         (copy_pieced_value_closure): Likewise.
9400         (dwarf2_evaluate_loc_desc): Likewise.
9401         (read_pieced_value): Use DWARF address size instead of
9402         GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9403
9404 2010-02-26  Phil Muldoon  <pmuldoon@redhat.com>
9405             Tom Tromey  <tromey@redhat.com>
9406
9407         * python/py-type.c (typy_lookup_typename): Add in block argument.
9408         If provided restrict lookup to specified blocks.
9409         (gdbpy_lookup_type): Likewise.
9410         (typy_lookup_type): Likewise.
9411
9412 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
9413
9414         Symbian config
9415
9416         gdb/
9417         * arm-symbian-tdep.c: New.
9418         * configure.tgt (arm*-*-symbianelf*): New target.
9419         (*-*-symbianelf*): New OS.
9420         * osabi.c (gdb_osabi_names): Add Symbian.
9421         * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9422         * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9423         (ALLDEPFILES): Add arm-symbian-tdep.c.
9424
9425 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
9426
9427         * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9428
9429 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9430
9431         * mi/mi-main.c (mi_cmd_execute): Fix typo.
9432
9433 2010-02-24  Phil Muldoon  <pmuldoon@redhat.com>
9434             Tom Tromey  <tromey@redhat.com>
9435             Thiago Jung Bauermann  <bauerman@br.ibm.com>
9436
9437         * python/python.c (_initialize_python): Call
9438         gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9439         gdbpy_initialize_blocks.
9440         * python/python-internal.h: Declare struct symbol, block and
9441         symtab_and_line.  Declare block_object_type and
9442         symbol_object_type
9443         (gdbpy_lookup_symbol gdbpy_block_for_pc)
9444         (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9445         (symbol_to_symbol_object,  block_to_block_object)
9446         (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9447         (gdbpy_initialize_blocks ): Declare.
9448         * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9449         (frapy_select): Add methods.
9450         (frapy_read_var): Add symbol branch.
9451         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9452         py-block.
9453         (SUBDIR_PYTHON_SRCS): Likewise.
9454         (py-symbol.o): New rule.
9455         (py-symtab.o): Likewise.
9456         (py-block.o): Likewise.
9457         * python/py-symbol.c: New file.
9458         * python/py-symtab.c: Likewise.
9459         * python/py-block.c: Likewise.
9460
9461 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9462
9463         PR gdb/11321
9464
9465         * inferior.h (prepare_for_detach): Declare.
9466         (struct inferior) <detaching>: New field.
9467         * infrun.c (prepare_for_detach): New.
9468         (handle_inferior_event) <random signal>: Don't stop if detaching.
9469         * target.c (target_detach): Call prepare_for_detach.
9470
9471 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9472
9473         Per-process displaced stepping queue.
9474
9475         * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9476         (displaced_step_gdbarch, displaced_step_closure,
9477         (displaced_step_original, displaced_step_copy): Move globals to
9478         this...
9479         (struct displaced_step_inferior_state): ... new structure.
9480         (displaced_step_inferior_states): New global.
9481         (get_displaced_stepping_state, add_displaced_stepping_state)
9482         (remove_displaced_stepping_state, infrun_inferior_exit): New
9483         functions.
9484         (displaced_step_clear): Add displaced_step_inferior_state
9485         parameter, and adjust to handle it.
9486         (displaced_step_clear_cleanup): Parameter is now a
9487         displaced_step_inferior_state.  Adjust.
9488         (displaced_step_prepare): Adjust.
9489         (displaced_step_fixup, displaced_step_fixup)
9490         (infrun_thread_ptid_changed, resume): Adjust.
9491         (init_wait_for_inferior): Don't call displaced_step_clear.
9492         (infrun_thread_stop_requested): Rewrite.
9493         (_initialize_infrun): Install infrun_inferior_exit as
9494         inferior_exit observer.
9495
9496 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9497
9498         * inferior.h (ptid_match): Declare.
9499         * infrun.c (ptid_match): New.
9500         * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9501         (handle_notification): Add debug output.
9502         * linux-nat.c (ptid_match): Delete.
9503
9504 2010-02-24  David S. Miller  <davem@davemloft.net>
9505
9506         * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9507         * syscalls/sparc-linux.xml: New.
9508         * syscalls/sparc64-linux.xml: New.
9509         * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9510         * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9511         (sparc32_linux_get_syscall_number): New function.
9512         (sparc32_linux_init_abi): Set syscall XML file name and hook up
9513         syscall number fetcher.
9514         * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9515         (sparc64_linux_get_syscall_number): New function.
9516         (sparc64_linux_init_abi): Set syscall XML file name and hook up
9517         syscall number fetcher.
9518
9519 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
9520
9521         Multiexec MI
9522
9523         * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9524         * inferior.c (add_inferior_silent): Notify inferior_added
9525         observer.
9526         (delete_inferior_1): Notify inferior_removed observer.
9527         (exit_inferior_1): Pass inferior, not pid, to observer.
9528         (inferior_appeared): Likewise.
9529         (add_inferior_with_spaces): New.
9530         (add_inferior_command): Use the above.
9531         * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9532         Declare.
9533
9534         * inflow.c (inflow_inferior_exit): Likewise.
9535         * jit.c (jit_inferior_exit_hook): Likewise.
9536
9537         * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9538         remove-inferior.
9539         * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9540         * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9541         (report_initial_inferior): New.
9542         (mi_inferior_removed): Register the above. Make sure
9543         inferior_added observer is called on the first inferior.
9544         (mi_new_thread, mi_thread_exit): Thread group is now identified by
9545         inferior number, not pid.
9546         (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9547         affected.
9548         * mi/mi-main.c (current_context): New.
9549         (proceed_thread_callback): Use typed closure.
9550         Proceed everything if pid is 0. Most implementation split into
9551         (proceed_thread): ... this.
9552         (run_one_inferior): New.
9553         (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9554         Adjust for multiexec behaviour.
9555         (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9556         (mi_cmd_execute): Handle the 'thread-group' option here.
9557         Do some extra checks.
9558         * mi-parse.c (mi_parse): Handle the --all and --thread-group
9559         options.
9560         * mi-parse.h (struct mi_parse): New fields all and thread_group.
9561
9562 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
9563
9564         Make -exec-run a proper MI commands.
9565
9566         * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9567         * mi/mi-cmds.c (mi_cmds): Adjust.
9568         * mi/mi-main.c (mi_cmd_exec_run): New.
9569
9570 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9571             Stan Shebs  <stan@codesourcery.com>
9572
9573         * tracepoint.h (set_traceframe_number)
9574         (cleanup_restore_current_traceframe): Declare.
9575         * tracepoint.c (set_traceframe_number): New.
9576         (struct current_traceframe_cleanup): New.
9577         (do_restore_current_traceframe_cleanup)
9578         (restore_current_traceframe_cleanup_dtor)
9579         (make_cleanup_restore_current_traceframe): New.
9580         * infrun.c: Include tracepoint.h.
9581         (fetch_inferior_event): Switch out and in of tfind mode.
9582
9583 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9584
9585         * breakpoint.c (breakpoint_init_inferior): Also delete
9586         bp_shlib_event breakpoints.
9587         * solib-frv.c (enable_break): Remove call to
9588         remove_solib_event_breakpoints.
9589         * solib-svr4.c (enable_break): Ditto.
9590         * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9591         * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9592         * solib-som.c (som_solib_create_inferior_hook): Ditto.
9593         * solib-spu.c (spu_enable_break): Ditto.
9594
9595 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
9596
9597         * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9598
9599 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
9600
9601         * varobj.c (varobj_update): Avoid non-constants in initializers.
9602
9603 2010-02-23  Tom Tromey  <tromey@redhat.com>
9604
9605         * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9606         handle big-endian values.
9607         (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9608
9609 2010-02-22  Pedro Alves  <pedro@codesourcery.com>
9610
9611         PR9605
9612
9613         gdb/
9614         * breakpoint.c (insert_bp_location): If inserting the read
9615         watchpoint failed, fallback to an access watchpoint.
9616         (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9617         if the value changed, if not watching the same memory for writes.
9618         (watchpoint_locations_match): Add comment.
9619         (update_global_location_list): Copy the location's watchpoint type.
9620         * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9621         handle read watchpoints here.
9622         (i386_insert_watchpoint): Read watchpoints aren't supported.
9623         * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9624         packets.
9625         * target.h (target_insert_watchpoint): Update description.
9626
9627 2010-02-19  Tom Tromey  <tromey@redhat.com>
9628
9629         * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9630         * m2-typeprint.c (m2_print_type): Update.
9631         * gdbtypes.c (recursive_dump_type): Update.
9632         (copy_type_recursive): Update.
9633         * c-typeprint.c (c_type_print_varspec_prefix): Update.
9634         (c_type_print_base): Update.
9635         * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9636         Remove.
9637         (struct cplus_struct_type) <ntemplate_args>: Remove.
9638         <struct template_arg>: Remove.
9639         <is_dynamic>: Move earlier.
9640         (TYPE_TEMPLATE_ARGS): Remove.
9641         (TYPE_NTEMPLATE_ARGS): Remove.
9642         (TYPE_TEMPLATE_ARG): Remove.
9643
9644 2010-02-19  Tom Tromey  <tromey@redhat.com>
9645
9646         PR c++/8693, PR c++/9496:
9647         * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9648         * c-exp.y (lex_one_token): Rename from yylex.  Don't call
9649         write_dollar_variable.  Don't try to classify NAME tokens.
9650         (token_and_value): New type.
9651         (token_fifo, popping, name_obstack): New globals.
9652         (classify_name): New function.
9653         (classify_inner_name): Likewise.
9654         (yylex): Likewise.
9655         (VARIABLE): Now has type sval.
9656         (exp : VARIABLE): Call write_dollar_variable.
9657         (qualified_name): Use TYPENAME, not typebase.  Add production for
9658         multiple "::" instances.
9659         (variable): Use name_not_typename.
9660         (qualified_type): Remove.
9661         (typebase): Update.
9662
9663 2010-02-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9664
9665         * symfile.c (addr_info_make_relative): Extend comment.  Move SECT to
9666         a more inner block.  Initialize ADDR by LOWER_OFFSET only if it was
9667         found by bfd_get_section_by_name.
9668         * symfile.h (struct section_addr_info) <sectindex>: New comment.
9669
9670 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
9671
9672         * NEWS: Add new "[...] since 7.1" section.  Rename the "[...] since
9673         7.0 section" into "Changes in 7.1".
9674
9675 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
9676
9677         GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9678         * version.in: Bump version to 7.1.50.20100219-cvs.
9679
9680 2010-02-18  Harald Koenig  <H.Koenig@science-computing.de>
9681
9682         * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9683         * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9684
9685 2010-02-17  Tom Tromey  <tromey@redhat.com>
9686
9687         * NEWS: Add Python API Improvements section.
9688
9689 2010-02-18  Daniel Jacobowitz  <dan@codesourcery.com>
9690
9691         * NEWS: Correct typo.
9692
9693 2010-02-17  Tom Tromey  <tromey@redhat.com>
9694
9695         * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9696
9697 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9698
9699         * symfile.c (build_section_addr_info_from_objfile): Include sections
9700         only if they are SEC_ALLOC or SEC_LOAD.
9701
9702 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
9703
9704         PR shlibs/11293
9705         * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9706         of ULONGEST for address size.
9707
9708 2010-02-17  Tom Tromey  <tromey@redhat.com>
9709
9710         * NEWS: Add C++ improvements section.
9711
9712 2010-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
9713
9714         * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9715         PyThreadState_Swap): Avoid "statement with no effect" warning.
9716
9717 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9718
9719         * solib-svr4.c (enable_break <target_auxv_search>): New variable
9720         addr_bit.  Adjust LOAD_ADDR sign for cross-arch inferiors.
9721
9722 2010-02-17  Tristan Gingold  <gingold@adacore.com>
9723             Petr Hluzin  <petr.hluzin@gmail.com>
9724
9725         * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9726         gdb_assert.  Fix info->size for SIG prologue.
9727
9728 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9729
9730         * infcmd.c (show_inferior_tty_command): Check for NULL.
9731         Correct output message.
9732
9733 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9734
9735         * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9736         FUNCTION contains parentheses.  Improve removal of a trailing
9737         single quote.
9738
9739 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9740
9741         * gcore.c (do_bfd_delete_cleanup): New function.
9742         (gcore_command): Use it.  Discard the cleanup after success.
9743         (gcore_copy_callback): Delete dead code.
9744
9745 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9746
9747         * symfile.c (addr_info_make_relative): Always use
9748         find_lowest_section.
9749
9750 2010-02-16  Sami Wagiaalla <swagiaal@redhat.com>
9751
9752         * NEWS: Added entry for namespace fixes.
9753
9754 2010-02-15  Tom Tromey  <tromey@redhat.com>
9755
9756         * dwarf2read.c (guess_structure_name): Allocate name on the
9757         objfile obstack.
9758
9759 2010-02-15  Tom Tromey  <tromey@redhat.com>
9760
9761         * c-typeprint.c (c_type_print_base): Reverse order of test.
9762
9763 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9764
9765         * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize.  Optionally
9766         initialize it from ELF BFD.  Extend the prelink condition by it.
9767
9768 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9769
9770         * defs.h (parse_pid_to_attach): New.
9771         * utils.c (parse_pid_to_attach): New.
9772         * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9773         * gnu-nat.c (gnu_attach): Likewise.
9774         * nto-procfs.c (procfs_attach): Likewise.
9775         * procfs.c (procfs_attach): Likewise.
9776         * windows-nat.c (windows_attach): Likewise.
9777         * inf-ptrace.c (inf_ptrace_attach): Likewise.  Remove variable dummy.
9778         * inf-ttrace.c (inf_ttrace_attach): Likewise.
9779         * remote.c (extended_remote_attach_1): Likewise.  New comment on getpid
9780         check.
9781
9782 2010-02-14  Masaki Muranaka  <monaka@monami-software.com>
9783
9784         * MAINTAINERS: Add myself for write after approval privileges.
9785
9786 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9787
9788         * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9789         block.
9790
9791 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9792
9793         * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9794         only if INFO_VERBOSE.
9795
9796 2010-02-12  Tomas Holmberg <th@virtutech.com>
9797
9798         * mi/mi-main.c: Added the --reverse flag to the following MI
9799         commands: exec-continue, exec-finish, exec-next, exec-step,
9800         exec-next-instruction, exec-step-instruction. This is to
9801         support reverse execution over the MI interface to gdb.
9802
9803 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
9804
9805         * tracepoint.c (_initialize_tracepoint): Specify that the address
9806         range of `tfind outsize' is exclusive, and that the address range
9807         of `tfind range' is inclusive, in the commands' help strings.
9808
9809 2010-02-12  Joel Brobecker  <brobecker@adacore.com>
9810
9811         Spurious "dll not found" error messages on x64-windows.
9812         * windows-nat.c: Add include of complaints.h.
9813         (handle_unload_dll): Change dll-not-found error into a complaint.
9814
9815 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
9816
9817         * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9818         bp_tracepoint and bp_fast_tracepoint, not
9819         bp_loc_software_breakpoint.
9820         (update_global_location_list): Tracepoints are never duplicates of
9821         anything.
9822
9823 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
9824
9825         * breakpoint.c (break_command_really): Change return type to int.
9826         Return false if no breakpoint was created, true otherwise.
9827         (trace_command): Don't set the tracepoint count if no tracepoint
9828         was created.
9829         (ftrace_command): Ditto.
9830         (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9831         created in the breakpoints table.
9832
9833 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9834             Ulrich Weigand  <uweigand@de.ibm.com>
9835
9836         * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9837
9838 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9839
9840         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9841         the offset value isn't of integral type.
9842
9843 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9844
9845         * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9846         New.
9847
9848 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9849
9850         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9851         non-subscriptable types.
9852         * valarith.c (binop_types_user_defined_p): New, abstracted out
9853         from ...
9854         (binop_user_defined_p): ... this.
9855         * value.h (binop_types_user_defined_p): Declare.
9856
9857 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9858
9859         * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9860         Merge uploaded TSVs before merging uploaded tracepoints.
9861
9862 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9863
9864         * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9865
9866 2010-02-11  Vladimir Prus  <vladimir@codesourcery.com>
9867
9868         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9869         whitespace character after a dot in comment.
9870         (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9871         Likewise.
9872         (list_args_or_locals): For the 'all' (that is
9873         -stack-list-variables) case, always output list of tuples.
9874         Output 'arg' field if variable is argument.
9875
9876 2010-02-10  Tom Tromey  <tromey@redhat.com>
9877
9878         * parser-defs.h (parser_debug): Declare.
9879         * parse.c (_initialize_parse): Install "debug parser" set/show
9880         command.
9881         (parser_debug): New global.
9882         (show_parserdebug): New function.
9883         * c-exp.y (c_parse): Set yydebug.
9884
9885 2010-02-10  H.J. Lu  <hongjiu.lu@intel.com>
9886
9887         * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9888         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9889         (tdesc_predefined_types): Add i387_ext, i386_eflags and
9890         i386_mxcsr.
9891         (tdesc_find_type): New.
9892         (tdesc_gdb_type): Use tdesc_find_type.  Handle TDESC_TYPE_I387_EXT,
9893         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9894
9895         * target-descriptions.h (tdesc_find_type): New.
9896
9897 2010-02-10  Michael Snyder  <msnyder@vmware.com>
9898
9899         * gdb-gdb.py: Comment fix.
9900
9901 2010-02-09  Tristan Gingold  <gingold@adacore.com>
9902
9903         * machoread.c (macho_symfile_relocate): New function.
9904         (macho_sym_fns): Use macho_symfile_relocate instead of
9905         default_symfile_relocate.
9906         (macho_oso_data): New type.
9907         (current_oso): New variable.
9908         (macho_add_oso_symfile): Do not compute section_addr_info, but
9909         instead set vma of sections.
9910         Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9911         Set and clear current_oso.
9912
9913 2010-02-09  Joel Brobecker  <brobecker@adacore.com>
9914
9915         Wrong type description for tagged type parameter.
9916         * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9917         EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9918         reference to a tagged type.
9919
9920 2010-02-09  Tristan Gingold  <gingold@adacore.com>
9921
9922         * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9923         brothers of the parent.
9924
9925 2010-02-08  Tom Tromey  <tromey@redhat.com>
9926
9927         PR c++/8017:
9928         * value.h: Update.
9929         * valops.c (search_struct_field): Make 'name' const.
9930         (search_struct_method): Likewise.
9931         (find_method_list): Make 'method' const.
9932         (value_struct_elt): Make 'name' and 'err' const.
9933         (value_find_oload_method_list): Make 'method' const.
9934         (find_overload_match): Make 'name' const.
9935         * eval.c (evaluate_subexp_standard): New locals function,
9936         function_name.
9937         <OP_FUNCALL>: Handle OP_SCOPE specially.
9938
9939 2010-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
9940
9941         * infrun.c (handle_inferior_event): Do not look up regcache
9942         for exited processes.
9943
9944 2010-02-08  Chris Moller  <moller@mollerware.com>
9945
9946         PR gdb/10728
9947         * valarith.c (value_ptrdiff): Added a test for a zero type length,
9948         warn if found, and assume length = 1.
9949
9950 2010-02-08  Chris Moller  <cmoller@redhat.com>
9951
9952         PR gdb/9067
9953         * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
9954         (cp_print_static_field)  Fix use of obstacks.
9955
9956 2010-02-08  Pedro Alves  <pedro@codesourcery.com>
9957
9958         * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9959         resumed LWPs as resumed.
9960         (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9961         we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9962         of throwing an internal error.  If an LWP of a process we're not
9963         waiting for reports a signal, don't force collecting a SIGSTOP,
9964         and if it was breakpoint hit in non-stop mode, cancel it.  Don't
9965         go through all LWPs cancelling breakpoints in non-stop mode.
9966         (resume_stopped_resumed_lwps): New.
9967         (linux_nat_wait): Use it.
9968
9969 2010-02-07  H.J. Lu  <hongjiu.lu@intel.com>
9970
9971         * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9972         i386/amd64 and i386/amd64-linux.
9973         (i386/i386-expedite): New.
9974         (i386/i386-linux-expedite): Likewise.
9975         (i386/amd64-expedite):Likewise.
9976         (i386/amd64-linux-expedite): Likewise.
9977         ($(outdir)/i386/i386-linux.dat): Likewise.
9978         ($(outdir)/i386/amd64.dat): Likewise.
9979         ($(outdir)/i386/amd64-linux.dat): Likewise.
9980
9981         * features/i386/32bit-core.xml: New.
9982         * features/i386/32bit-linux.xml: Likewise.
9983         * features/i386/32bit-sse.xml: Likewise.
9984         * features/i386/64bit-core.xml: Likewise.
9985         * features/i386/64bit-linux.xml: Likewise.
9986         * features/i386/64bit-sse.xml: Likewise.
9987         * features/i386/i386-linux.xml: Likewise.
9988         * features/i386/i386.xml: Likewise.
9989         * features/i386/amd64-linux.xml: Likewise.
9990         * features/i386/amd64.xml: Likewise.
9991         * features/i386/i386-linux.c: Likewise.
9992         * features/i386/i386.c: Likewise.
9993         * features/i386/amd64-linux.c: Likewise.
9994         * features/i386/amd64.c: Likewise.
9995
9996 2010-02-05  Sami Wagiaalla  <swagiaal@redhat.com>
9997
9998         PR c++/7935:
9999         * cp-support.h: Added char* alias element to using_direct data
10000         struct.
10001         (cp_add_using): Added char* alias argument.
10002         (cp_add_using_directive): Ditto.
10003         * cp-namespace.c: Updated with the above changes.
10004         (cp_lookup_symbol_imports): Check for aliases.
10005         * dwarf2read.c (read_import_statement): Figure out local alias
10006         for the import and pass it on to cp_add_using.
10007         (read_namespace): Pass alias argument to cp_add_using.
10008
10009 2010-02-05  Hui Zhu  <teawater@gmail.com>
10010
10011         * defs.h (gdb_bfd_errmsg): New extern.
10012         * exec.c (exec_file_attach): Change bfd_errmsg to
10013         gdb_bfd_errmsg.
10014         * utils.c (AMBIGUOUS_MESS1): New macro.
10015         (AMBIGUOUS_MESS2): New macro.
10016         (gdb_bfd_errmsg): New function.
10017
10018 2010-02-04  Doug Evans  <dje@google.com>
10019
10020         * solib-svr4.c (enable_break): Add comment.
10021
10022 2010-02-04  Anthony Green  <green@moxielogic.com>
10023
10024         * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10025         gracefully.
10026
10027 2010-02-04  Tom Tromey  <tromey@redhat.com>
10028
10029         * valops.c (search_struct_field): Account for
10030         value_embedded_offset.  Fix check for virtual base past the end of
10031         the object.  Use value_copy when making a slice of the value.
10032
10033 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
10034
10035         PR tui/9622
10036         * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10037         only if gdb_stdout is a tty.
10038
10039 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
10040
10041         * target-descriptions.c: Include "osabi.h".
10042         (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10043         OSABI.
10044
10045 2010-02-04  Tristan Gingold  <gingold@adacore.com>
10046
10047         * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10048         (macho_symtab_read): Adjust calls to macho_add_oso.
10049         (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10050         (macho_symfile_read): Adjust call to macho_oso_symfile.
10051         (macho_new_init): Move this function after declarations.
10052         (macho_symfile_init): Ditto.
10053         * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10054         * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10055
10056 2010-02-04  Vladimir Prus  <vladimir@codesourcery.com>
10057
10058         Include MI command in remotelog.
10059
10060         * mi/mi-main.c (mi_execute_command): Call target_log_command.
10061
10062 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
10063
10064         * remote.c (remote_state): Remove gdbarch.
10065         (init_remote_state): Don't set gdbarch.
10066         (remote_query_supported): Pass target_gdbarch instead of
10067         rs->gdbarch to gdbarch_qsupported.
10068
10069 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
10070
10071         * gdbarch.sh: Add qsupported.
10072
10073         * gdbarch.c: Regenerated.
10074         * gdbarch.h: Likewise.
10075
10076         * remote.c (remote_state): Add gdbarch.
10077         (init_remote_state): Set gdbarch.
10078         (remote_query_supported): Support gdbarch_qsupported.
10079
10080 2010-02-03  Daniel Jacobowitz  <dan@codesourcery.com>
10081
10082         * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10083         __FreeBSD_kernel_version.
10084
10085 2010-02-03  Tristan Gingold  <gingold@adacore.com>
10086
10087         * symfile.h (struct sym_fns): Add sym_relocate field.
10088         (default_symfile_relocate): New prototype.
10089         (symfile_relocate_debug_section): First argument is now an objfile.
10090         * symfile.c (default_symfile_relocate): Rename from
10091         symfile_relocate_debug_section, first argument is now an objfile.
10092         (symfile_relocate_debug_section): New function.
10093         * coffread.c (coff_sym_fns): Set sym_relocate field.
10094         * somread.c (som_sym_fns): Ditto.
10095         * mipsread.c (ecoff_sym_fns): Ditto.
10096         * machoread.c (macho_sym_fns): Ditto.
10097         * elfread.c (elf_sym_fns): Ditto.
10098         * dwarf2read.c (dwarf2_read_section): Ditto.
10099         * xcoffread.c (xcoff_sym_fns): Ditto.
10100         * dbxread.c (aout_sym_fns): Ditto.
10101         (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10102         (elfstab_build_psymtabs): Ditto.
10103
10104 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
10105
10106         * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10107
10108 2010-02-02  Tom Tromey  <tromey@redhat.com>
10109
10110         * valops.c (value_cast_structs): Try downcasting using the RTTI
10111         type.
10112
10113 2010-02-02  Tom Tromey  <tromey@redhat.com>
10114
10115         * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10116         (gnuv2_baseclass_offset): Now static.
10117         * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10118         * gnu-v2-abi.h: Remove.
10119
10120 2010-02-02  Tom Tromey  <tromey@redhat.com>
10121
10122         * m2-typeprint.c (m2_record_fields): Don't use
10123         TYPE_DECLARED_TYPE.
10124         * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10125         (struct main_type) <flag_declared_class>: New field.
10126         (struct cplus_struct_type) <declared_type>: Remove.
10127         <ntemplate_args>: Move earlier.
10128         (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10129         (DECLARED_TYPE_TEMPLATE): Remove.
10130         (TYPE_DECLARED_TYPE): Remove.
10131         * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10132         * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10133         * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10134         TYPE_DECLARED_TYPE.
10135
10136 2010-02-02  Tom Tromey  <tromey@redhat.com>
10137
10138         PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10139         * valops.c (search_struct_field): Compute nbases after calling
10140         CHECK_TYPEDEF.
10141         (check_field): Call CHECK_TYPEDEF.
10142         * cp-valprint.c (cp_print_value): Pass correct address to
10143         baseclass_offset.  Fix check for virtual base past the end of the
10144         object.  Don't offset address passed to cp_print_value_fields or
10145         apply_val_pretty_printer.
10146         (cp_print_value_fields): Fix call to val_print.
10147         (cp_print_value_fields_rtti): New function.
10148         * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10149         * p-valprint.c (pascal_object_print_value_fields): Fix call to
10150         val_print.
10151         * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10152         offset to address.
10153         * language.h (struct language_defn) <la_val_print>: Document.
10154         * c-lang.h (cp_print_value_fields_rtti): Declare.
10155
10156 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10157
10158         PR libc/11214:
10159         * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10160         (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10161         (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10162
10163 2010-02-01  Michael Matz  <matz@suse.de>
10164             Daniel Jacobowitz  <dan@codesourcery.com>
10165
10166         * i386-tdep.c (i386_frame_cache): Assume valid anonymous
10167         functions use a frame pointer.
10168
10169 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10170
10171         * solib-svr4.c (scan_dyntag): New variable dyn_addr.  Replace gdb_assert
10172         by a conditional setting DYN_ADDR.  Use DYN_ADDR.
10173         * config/djgpp/fnchange.lst: Add translations for
10174         symbol-without-target_section.exp and symbol-without-target_section.c.
10175
10176 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
10177
10178         * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10179         (remote_breakpoint_for_pc): Correct invalid_p check.
10180         * gdbarch.c: Regenerated.
10181
10182 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
10183
10184         * arm-tdep.c (arm_find_mapping_symbol): New function, from
10185         arm_pc_is_thumb.
10186         (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10187         (extend_buffer_earlier): New function.
10188         (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10189         (arm_adjust_breakpoint_address): New function.
10190         (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10191
10192 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
10193
10194         * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10195         (arm_linux_thumb2_le_breakpoint): New constants.
10196         (arm_linux_init_abi): Set thumb2_breakpoint and
10197         thumb2_breakpoint_size.
10198         * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10199         (thumb_get_next_pc): Add a comment.  Rename IT to ITSTATE.
10200         Implement support for single stepping through IT blocks if
10201         a 32-bit Thumb breakpoint instruction is available.
10202         (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10203         is available, use it when needed.
10204         (arm_remote_breakpoint_from_pc): New function.
10205         (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10206         * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10207         comment.  Add thumb2_breakpoint and thumb2_breakpoint_size.
10208
10209 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
10210
10211         * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10212         * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10213         * gdbarch.c, gdbarch.h: Regenerated.
10214         * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10215         * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10216         gdbarch_remote_breakpoint_from_pc.
10217
10218 2010-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
10219
10220         * infrun.c (prepare_to_proceed): Handle other signals which might
10221         match a breakpoint.
10222         (handle_inferior_event): Move the check for unusual breakpoint
10223         signals earlier.
10224
10225 2010-01-29  Paul Hilfinger  <hilfinger@adacore.com>
10226
10227         amd64 - function returning record with field straddling 2 registers.
10228         * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10229         a record of length <= 16 in which a field straddles the two
10230         eightbytes.
10231
10232 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
10233
10234         Implement return values on amd64-windows.
10235         * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10236         (amd64_windows_return_value): New function.
10237         (amd64_windows_init_abi): Call set_gdbarch_return_value with
10238         amd64_windows_return_value.
10239
10240 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
10241
10242         amd64-windows: 32 bytes allocated on stack by caller for integer
10243         parameter registers.
10244         * i386-tdep.h (struct gdbarch_tdep): Add new field
10245         integer_param_regs_saved_in_caller_frame.
10246         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10247         tdep->integer_param_regs_saved_in_caller_frame to 1.
10248         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10249         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10250
10251 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
10252
10253         amd64-windows: memory args passed by pointer during function calls.
10254         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10255         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10256         where tdep->memory_args_by_pointer is non-zero.
10257         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10258         tdep->memory_args_by_pointer to 1.
10259
10260 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
10261
10262         amd64-windows: Integer parameters in function calls.
10263         * i386-tdep.h (enum amd64_reg_class): New, moved here from
10264         amd64-tdep.c.
10265         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10266         call_dummy_integer_regs, and classify.
10267         * amd64-tdep.h (amd64_classify): Add declaration.
10268         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10269         (amd64_reg_class): Delete, moved to i386-tdep.h.
10270         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
10271         Replace call to amd64_classify by call to tdep->classify.
10272         (amd64_push_arguments): Get the list of registers to use for
10273         passing integer parameters from the gdbarch tdep structure,
10274         rather than using a hardcoded one.  Replace calls to amd64_classify
10275         by calls to tdep->classify.
10276         (amd64_push_dummy_call): Get the register number used for
10277         the "hidden" argument from tdep->call_dummy_integer_regs.
10278         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10279         and tdep->call_dummy_integer_regs.  Set tdep->classify.
10280         * amd64-windows-tdep.c: Add include of gdbtypes.h.
10281         (amd64_windows_dummy_call_integer_regs): New static global.
10282         (amd64_windows_classify): New function.
10283         (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10284         tdep->call_dummy_integer_regs and tdep->classify.
10285
10286 2010-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
10287
10288         * regcache.c (regcache_xmalloc): Add aspace argument.  Use it
10289         for the new regcache.  All callers updated.
10290         (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10291         (get_thread_arch_regcache): Do not set aspace here.
10292         * regcache.h (regcache_xmalloc): Update declaration.
10293
10294         * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10295         regcache_xmalloc updated.
10296
10297 2010-01-28  Joel Brobecker  <brobecker@adacore.com>
10298
10299         Another -Wunused-function error in procfs.c (sparc-solaris)
10300         * procfs.c (insert_dbx_link_breakpoint): Delete declaration.  Move up.
10301         Only define if SYS_syssgi is defined.
10302         (remove_dbx_link_breakpoint): Delete declaration.  Move up.
10303         (dbx_link_addr, insert_dbx_link_bpt_in_file)
10304         (insert_dbx_link_bpt_in_region): Move up.  Only define if SYS_syssgi
10305         is itself defined.
10306
10307 2010-01-27  Christopher Faylor  <me+cygwin@cgf.cx>
10308
10309         * windows-nat.c (windows_initialization_done): New variable.
10310         (get_windows_debug_event): Issue error when process dies before
10311         completely initializing.
10312         (do_initial_windows_stuff): Set flag to indicate when we are done with
10313         the initial steps of attaching to the child.
10314
10315 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10316
10317         * symtab.h (struct symbol <symtab>): New comment on NULL values.
10318
10319 2010-01-27  Doug Evans  <dje@google.com>
10320
10321         * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10322
10323         * breakpoint.c (bpstat_stop_status): Delete useless code.
10324
10325 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10326
10327         * printcmd.c (display_uses_solib_p): Remove variable section.  Access
10328         objfile via SYMBOL_SYMTAB.
10329
10330 2010-01-26  Tom Tromey  <tromey@redhat.com>
10331
10332         PR exp/7643:
10333         * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10334         coerce_array on result.
10335
10336 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
10337
10338         * cp-namespace.c (cp_lookup_symbol_namespace): Added
10339         search_parent argument.
10340         (cp_add_using): Initialize 'searched' field.
10341         (reset_directive_searched): New function.
10342         * cp-support.h: Add 'searched' field to using_direct struct.
10343         (cp_lookup_symbol_imports): Ditto.
10344         * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10345         Perform recursive search.
10346         Implement non parent search.
10347         * valops.c (value_maybe_namespace_elt): Updated.
10348
10349 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
10350
10351         PR gdb/10929:
10352         * dwarf2read.c (read_lexical_block_scope): Create blocks for
10353         scopes which contain using directives even if they contain no
10354         declarations.
10355         * symtab.c (lookup_symbol_aux): Pass lowest level block to
10356         la_lookup_symbol_nonlocal.
10357         * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10358         cp_lookup_symbol_namespace.
10359         (cp_lookup_symbol_namespace): Perform an import lookup at every
10360         block level.
10361         (cp_lookup_symbol_imports): New function.
10362         (cp_lookup_symbol_in_namespace): New function.
10363
10364 2010-01-25  Tom Tromey  <tromey@redhat.com>
10365
10366         PR gdb/11049:
10367         * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10368         result.
10369
10370 2010-01-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10371
10372         * configure.ac: Only use host_os part when disabling TUI on osf.
10373         Use test to check variables, prefix strings with x.
10374         * configure: Regenerate.
10375
10376         * solib-osf.c (osf_current_sos): Initialize tail.
10377
10378 2010-01-25  gingold  <gingold@adacore.com>
10379
10380         * windows-nat.c (windows_continue): Use %x to print thread id.
10381         (get_windows_debug_event): Ditto.
10382
10383 2010-01-22  Tom Tromey  <tromey@redhat.com>
10384
10385         PR symtab/11199:
10386         * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10387         type and arguments.  Use smash_to_methodptr_type.
10388         (read_structure_type): Call quirk_gcc_member_function_pointer
10389         later.
10390         * gdbtypes.h (smash_to_methodptr_type): Declare.
10391         * gdbtypes.c (smash_to_methodptr_type): New function.
10392         (lookup_methodptr_type): Use it.
10393
10394 2010-01-21  Tom Tromey  <tromey@redhat.com>
10395
10396         PR symtab/11198:
10397         * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10398         * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10399         * glibc-tdep.c (find_minsym_and_objfile): Remove.
10400         (glibc_skip_solib_resolver): Use
10401         lookup_minimal_symbol_and_objfile.
10402
10403 2010-01-21  Kai Tietz  <kai.tietz@onevision.com>
10404
10405         * inflow.c (check_syscall): Guard by #if clause for GO32 and
10406         WIN32 targets.
10407
10408 2010-01-20  Tom Tromey  <tromey@redhat.com>
10409
10410         PR backtrace/10770:
10411         * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10412         BINOP_GEQ.  Handle BINOP_NOTEQUAL in the signed case.
10413         * dwarf2expr.c (new_dwarf_expr_context): Allocate
10414         dwarf_stack_values, not CORE_ADDRs.
10415         (execute_stack_op): Change DW_OP_div and comparison operators to
10416         use signed operands.
10417
10418 2010-01-20  Vladimir Prus  <vladimir@codesourcery.com>
10419
10420         Per-inferior args and tty and environment.
10421
10422         * infcmd.c (inferior_args): Rename to ...
10423         (inferior_args_scratch): ... this.
10424         (inferior_io_terminal): Rename to ...
10425         (inferior_io_terminal_scratch): ... this.
10426         (inferior_argc, inferior_argv): Remove.
10427         (set_inferior_io_terminal, get_inferior_io_terminal): Store
10428         inside current_inferior().
10429         (set_inferior_tty_command, show_inferior_tty_command): New.
10430         (get_inferior_args, set_inferior_args): Store inside
10431         current_inferior().
10432         (notice_args_set): Likewise and rename to...
10433         (set_args_command): ... this.
10434         (set_inferior_args_vector): Likewise.
10435         (notice_args_read): Rename to...
10436         (show_args_command): ...new.
10437         (tty_command): Remove.
10438         (run_command_1): Don't free old args, as they are freed by
10439         set_inferior_arg now.
10440         (run_no_args_command): Likewise.
10441         (inferior_environ): Remove.
10442         (run_command_1): Use environment of the current inferior.
10443         (environment_info, set_environment_command)
10444         (unset_environment_command, path_info, path_command): Likewise.
10445         (_initialize_infcmd): Adjust for function and variable renames.
10446         Do not init inferior_environ.
10447         * inferior.h (set_inferior_arg): Adjust prototype.
10448         (struct inferior): New fields args, argc, argv, terminal, environment.
10449         (inferior_environ): Remove declaration.
10450         * inferior.c (free_inferior): Free new fields.
10451         (add_inferior_silent): Initialize 'environment' field.
10452         * main.c (captured_main): Set arguments only after the initial
10453         inferior has been created.  Set set_inferior_io_terminal,
10454         not tty_command.
10455         * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10456         inferior.
10457         (_initialize_mi_cmd_env): Adjust for disappearance of global
10458         inferior_environ.
10459         * solib.c (solib_find): Use environment of the current inferior.
10460
10461 2010-01-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10462
10463         * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10464         HAVE_PYTHON.
10465         (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10466
10467 2010-01-20  Joel Brobecker  <brobecker@adacore.com>
10468
10469         Get rid of ada-lang.c:function_name_from_pc.
10470         * ada-lang.c: Add "stack.h" #include.
10471         (function_name_from_pc): Delete.
10472         (is_known_support_routine): Replace call to function_name_from_pc
10473         by call to find_frame_funname.
10474         (ada_unhandled_exception_name_addr_from_raise): Likewise.
10475
10476 2010-01-19  Tom Tromey  <tromey@redhat.com>
10477
10478         PR c++/11026:
10479         * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10480         objfile obstack.
10481
10482 2010-01-19  Tom Tromey  <tromey@redhat.com>
10483
10484         * top.c (stop_sig, float_handler, do_nothing): Remove.
10485
10486 2010-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10487
10488         * breakpoint.c (watchpoint_check): Check the call
10489         gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10490         Extend the comment.
10491         * config/djgpp/fnchange.lst: Add translations for
10492         watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10493         watchpoint-cond-gone-stripped.c.
10494
10495 2010-01-19  Tom Tromey  <tromey@redhat.com>
10496
10497         PR c++/8000:
10498         * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10499         into parent scope, and enumerator into grandparent scope.
10500
10501 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10502
10503         * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10504
10505 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10506
10507         * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10508         i[34567]86-*-solaris2.1[0-9]*.
10509         * configure.tgt: Likewise.
10510
10511 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10512
10513         * NEWS: Document the source command enhancement allowing it
10514         to load Python scripts. Document the "set/show script-extension"
10515         commands.
10516
10517 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10518
10519         Add -Wunused-function to compile flags.
10520         * configure.ac: Add -Wunused-function to build_warnings.
10521         * configure: Regenerate.
10522
10523 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10524
10525         "delete" ada-lex.c:input function, not used.
10526         * ada-lex.l: #define YY_NO_INPUT.
10527
10528 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10529
10530         Delete free_named_symtabs and associated cleanup.
10531         * symfile.h (free_named_symtabs): Delete declaration.
10532         * symfile.c: Remove some commented out code (clear_symtab_users_once).
10533         (cashier_psymtab): Comment function out.
10534         Delete declaration.
10535         (free_named_symtabs): Delete.
10536         * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10537         * dbxread.c (end_psymtab): Likewise.
10538         * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10539         * exec.c (exec_close_1): Ditto.
10540         * xcoffread.c (xcoff_end_psymtab): Likewise.
10541
10542 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10543
10544         * stack.c (print_block_frame_labels): Comment function out.
10545
10546 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10547
10548         Delete unused or undefined functions.
10549         * breakpoint.c (ep_parse_optional_filename): Delete.
10550         * dcache.c (dcache_write_line): Remove declaration.
10551         * infrun.c (build_infrun): Remove declaration.
10552         * tracepoint.c (tracepoint_save_command): Remove declaration.
10553         * linux-nat.c (init_lwp_list): Delete. No longer used.
10554         * event-loop.c (check_async_signal_handlers): Delete declaration.
10555         * infrun.c (init_execution_control_state): Delete.
10556         (proceed): Update comment to avoid mentioning
10557         init_execution_control_state.
10558         * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10559         * ada-lang.c (ada_to_static_fixed_value): Delete.
10560         * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10561         * cp-namespace.c (cp_copy_usings): Delete.
10562         * xml-syscall.c (xml_number_of_syscalls): Delete.
10563         * progspace.c (find_program_space_by_num): Delete.
10564         * inflow.c (handle_sigio): Delete declaration.
10565         * hppa-tdep.c (hppa_alignof): Delete.
10566         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10567         (mipsnbsd_core_osabi_sniffer): Delete.
10568
10569 2010-01-18  Tom Tromey  <tromey@redhat.com>
10570
10571         PR c++/9680:
10572         * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10573         (CONST_CAST): New tokens.
10574         (exp): Add new productions.
10575         (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10576         reinterpret_cast.
10577         (is_cast_operator): New function.
10578         (yylex): Handle cast operators specially.
10579         * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10580         UNOP_REINTERPRET_CAST>: New cases.
10581         * expprint.c (print_subexp_standard): Likewise.
10582         (op_name_standard): Likewise.
10583         (dump_subexp_body_standard): Likewise.
10584         * parse.c (operator_length_standard): Likewise.
10585         * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10586         UNOP_REINTERPRET_CAST.
10587         * gdbtypes.c (class_types_same_p): New function.
10588         (is_ancestor): Use it.
10589         (is_public_ancestor): New function.
10590         (is_unique_ancestor_worker): Likewise.
10591         (is_unique_ancestor): Likewise.
10592         * gdbtypes.h (class_types_same_p, is_public_ancestor)
10593         (is_unique_ancestor): Declare.
10594         * valops.c (value_reinterpret_cast): New function.
10595         (dynamic_cast_check_1): Likewise.
10596         (dynamic_cast_check_2): Likewise.
10597         (value_dynamic_cast): Likewise.
10598         * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10599
10600 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
10601
10602         Fix build failure when building without Python support.
10603         * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10604         is not defined.
10605
10606 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
10607
10608         Use XVS field type instead of doing a parallel lookup.
10609         * ada-lang.c (ada_get_base_type): Follow the XVS field type
10610         if it is a reference type instead of doing a type lookup using
10611         the XVS field name.
10612
10613 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
10614
10615         Trust PAD types instead of using PAD___XVS.
10616         * ada-lang.c (trust_pad_over_xvs): New static variable.
10617         (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10618         parallel XVS type, follow the XVS type instead of the PAD type.
10619         (unwrap_value): Make sure that there is no parallel XVE type
10620         before returning the value as is.
10621         (set_ada_list, show_ada_list): New static variables.
10622         (set_ada_command, show_ada_command): New functions.
10623         (_initialize_ada_language): Add new "set/show ada" prefix commands.
10624         Add new "set/show ada trust-PAD-over-XVS" setting.
10625
10626 2010-01-18  Tom Tromey  <tromey@redhat.com>
10627             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10628
10629         Allow "source" to load python scripts.
10630         * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10631         * python/python.c (source_python_script): New function.
10632         * python/python.h (source_python_script): Add declaration.
10633         * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10634         (script_ext_off, script_ext_soft, script_ext_strict)
10635         (script_ext_enums, script_ext_mode): New static constants.
10636         (show_script_ext_mode, find_and_open_script): New functions.
10637         (source_script): Enhance to handle Python scripts.
10638         (init_cli_cmds): Add set/show script-extension commands.
10639
10640 2010-01-16  Stan Shebs  <stan@codesourcery.com>
10641
10642         * tracepoint.h (struct trace_status): Use unsigned long long
10643         instead of size_t.
10644         * tracepoint.c (trace_status_command): Fix printf directive.
10645         (trace_save_command): Check fwrite returns, fix printf directive.
10646         (trace_filename): New global.
10647         (tfile_open): Set it, check read returns.
10648         (tfile_close): Free trace_filename.
10649         (tfile_get_traceframe_address): Check read returns.
10650         (tfile_trace_find): Ditto.
10651         (tfile_fetch_registers): Ditto.
10652         (tfile_xfer_partial): Ditto.
10653         (tfile_get_trace_state_variable_value): Ditto.
10654
10655 2010-01-15  Stan Shebs  <stan@codesourcery.com>
10656
10657         Add trace file support.
10658         * tracepoint.h (enum trace_stop_reason): New enum.
10659         (struct trace_status): New struct.
10660         (parse_trace_status): Declare.
10661         (struct uploaded_tp): Move here from remote.c,
10662         add fields for actions.
10663         (struct uploaded_tsv): New struct.
10664         * tracepoint.c (tfile_ops): New target vector.
10665         (trace_fd): New global.
10666         (tfile_open): New function.
10667         (tfile_close): New function.
10668         (tfile_files_info): New function.
10669         (tfile_get_trace_status): New function.
10670         (tfile_get_traceframe_address): New function.
10671         (tfile_trace_find): New function.
10672         (tfile_fetch_registers): New function.
10673         (tfile_xfer_partial): New function.
10674         (tfile_get_trace_state_variable_value): New function.
10675         (init_tfile_ops): New function.
10676         (_initialize_tracepoint): Call it, add tfile target.
10677         (trace_status): New global.
10678         (current_trace_status): New function.
10679         (trace_running_p): Remove, change all users to get from
10680         current_trace_status()->running.
10681         (get_trace_status): Remove.
10682         (trace_status_command): Call target_get_trace_status directly,
10683         report more detail including tracing stop reasons.
10684         (trace_find_command): Always allow tfind on a file.
10685         (trace_find_pc_command): Ditto.
10686         (trace_find_tracepoint_command): Ditto.
10687         (trace_find_line_command): Ditto.
10688         (trace_find_range_command): Ditto.
10689         (trace_find_outside_command): Ditto.
10690         (trace_frames_offset, cur_offset): Declare as off_t.
10691         (trace_regblock_size): Rename from reg_size, update users.
10692         (parse_trace_status): New function.
10693         (tfile_interp_line): New function.
10694         (disconnect_or_stop_tracing): Ensure current trace
10695         status before asking what to do.
10696         (stop_reason_names): New global.
10697         (trace_save_command): New command.
10698         (get_uploaded_tp): Move here from remote.c.
10699         (find_matching_tracepoint): Ditto.
10700         (merge_uploaded_tracepoints): New function.
10701         (parse_trace_status): Use stop_reason_names.
10702         (_initialize_tracepoint): Define tsave command.
10703         * target.h (target_ops): New fields to_save_trace_data,
10704         to_upload_tracepoints, to_upload_trace_state_variables,
10705         to_get_raw_trace_data, change to_get_trace_status
10706         to take a pointer to a status struct.
10707         (target_save_trace_data): New macro.
10708         (target_upload_tracepoints): New macro.
10709         (target_upload_trace_state_variables): New macro.
10710         (target_get_raw_trace_data): New macro.
10711         * target.c (update_current_target): Add new methods, change
10712         signature of to_get_trace_status.
10713         * remote.c (hex2bin): Make globally visible.
10714         (bin2hex): Ditto.
10715         (remote_download_trace_state_variable): Download name also.
10716         (remote_get_trace_status): Update parameter, use
10717         parse_trace_status.
10718         (remote_save_trace_data): New function.
10719         (remote_upload_tracepoints): New function.
10720         (remote_upload_trace_state_variables): New function.
10721         (remote_get_raw_trace_data): New function.
10722         (remote_start_remote): Use them.
10723         (_initialize_remote_ops): Add operations.
10724         * ax-gdb.c: Include breakpoint.h.
10725         * breakpoint.c (create_tracepoint_from_upload): Use
10726         break_command_really, return tracepoint, warn about unimplemented
10727         parts.
10728         * NEWS: Mention trace file addition.
10729
10730 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10731
10732         Fix compilation warning on gcc-3.4.
10733         * exec.c (print_section_info): Move the `displacement' variable
10734         initialization to its declaration.
10735
10736 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10737
10738         * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10739         comparison.
10740
10741 2010-01-15  Eric Botcazou  <botcazou@adacore.com>
10742
10743         "info tasks" broken by typedefs in ATCB type definitions.
10744         * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10745         ada_check_typedef before retrieving the length of the type for
10746         regular fields.
10747
10748 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
10749
10750         Do not use name-based lookup for unconstrained packed arrays.
10751         * ada-lang.c (find_parallel_type_by_descriptive_type):
10752         Limit the fallback to name-based lookups to the case where
10753         the type is a constrained packed array.
10754
10755 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
10756
10757         Enhance gdb-gdb.py to handle main_type.type_specific.
10758         * gdb-gdb.py: Print the type-specific part of struct main_type.
10759
10760 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10761
10762         * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10763         * configure: Regenerate.
10764         * config.in: Regenerate.
10765         * utils.c: Include sys/resource.h.
10766         (dump_core, can_dump_core): New.
10767         (internal_vproblem): Update the comment.  Check can_dump_core while
10768         setting dump_core_p.  Replace two abort calls by dump_core calls.
10769
10770 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10771             Eli Zaretskii  <eliz@gnu.org>
10772
10773         * NEWS: Document the PIE support.
10774
10775 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10776
10777         * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10778         (check_is_pie_binary, _initialize_linux_tdep): Remove.
10779
10780 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10781
10782         * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10783         Replace exec_entry_point call by bfd_get_start_address.
10784
10785 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10786
10787         Support Valgrind attachments broken by the PIE support.
10788         * auxv.c: Include gdbcore.h.
10789         (procfs_xfer_auxv): Make static.  Reduce its comment.  Drop its
10790         parameters ops, object and annex.  Remove their assertions.
10791         (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10792         * auxv.h (procfs_xfer_auxv): Remove comment.  Rename to ...
10793         (memory_xfer_auxv): ... here.
10794         * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10795         memory_xfer_auxv.
10796         * procfs.c (procfs_xfer_partial): Likewise.
10797         * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10798         (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10799         (svr4_solib_create_inferior_hook): Conditionalize the
10800         svr4_relocate_main_executable call.
10801
10802 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10803
10804         * solib-svr4.c (scan_dyntag): Remove variable dyn_addr.  New variable
10805         target_section.  Find SECT in current_target_sections, gdb_assert it.
10806         (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10807         New variable abfd.
10808         * symtab.c (lookup_objfile_from_block): Return the binary file instead
10809         of separate debug info file.
10810
10811 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10812
10813         Support PIEs with no symfile_objfile.
10814         * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10815         * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10816
10817 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10818
10819         * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10820         code part to ...
10821         (svr4_static_exec_displacement): ... a new function.
10822         (svr4_exec_displacement): New function.
10823         (svr4_relocate_main_executable): Call svr4_exec_displacement.  Allocate
10824         new_offsets using alloca now.  Remove variable old_chain and changed.
10825         Call objfile_relocate unconditionally now.
10826
10827 2010-01-14  Doug Evans  <dje@google.com>
10828
10829         * gdbtypes.c (arch_flags_type): Fix comment.
10830         * gdbtypes.h (arch_composite_type): Fix comment.
10831
10832 2009-01-14  Tristan Gingold  <gingold@adacore.com>
10833
10834         * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10835         Call xstrdup for abfd->filename.  Pass symfile_flags and objfile flags
10836         to symbol_file_add_from_bfd.  Add OSO as separate objfile.
10837         (macho_oso_symfile): Add symfile_flags parameter.  Pass it to
10838         macho_add_oso_symfile.
10839         (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10840
10841 2010-01-14  Joel Brobecker  <brobecker@adacore.com>
10842
10843         Tru64: Dead threads are never deleted.
10844         * dec-thread.c (dec_thread_ptid_is_alive): New function.
10845         (dec_thread_count_gdb_threads): Fix counter increment.
10846         (dec_thread_add_gdb_thread): Fix *listp increment.
10847         (resync_thread_list): Fix bug in deletion of dead threads that
10848         caused all threads to be deleted, instead of just the dead ones.
10849
10850 2010-01-13  Phil Muldoon  <pmuldoon@redhat.com>
10851
10852         PR python/10705
10853
10854         * python/python-internal.h: Add lazy_string_object_type
10855         definition.
10856         (create_lazy_string_object, gdbpy_initialize_lazy_string)
10857         (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10858         * python/py-value.c (valpy_lazy_string): New function.
10859         (convert_value_from_python): Add lazy string conversion.
10860         * python/py-prettyprint.c (pretty_print_one_value): Check if
10861         return is also a lazy string.
10862         (print_string_repr): Add lazy string printing branch.
10863         (print_children): Likewise.
10864         * python/py-lazy-string.c: New file. Implement lazy strings.
10865         * python/python.c (_initialize_python): Call
10866         gdbpy_initialize_lazy_string.
10867         * varobj.c (value_get_print_value): Add lazy string printing
10868         branch.  Account for encoding.
10869         * c-lang.c (c_printstr): Account for new encoding argument.  If
10870         encoding is NULL, find encoding suited for type, otherwise use
10871         user encoding.
10872         * language.h (language_defn): Add encoding argument.
10873         (LA_PRINT_STRING): Likewise.
10874         * language.c (unk_lang_printstr): Update to reflect new encoding
10875         argument to language_defn.
10876         * ada-lang.h (ada_printstr): Likewise.
10877         * c-lang.h (c_printstr): Likewise.
10878         * p-lang.h (pascal_printstr);
10879         * f-lang.c (f_printstr): Likewise.
10880         * m2-lang.c (m2_printstr): Likewise.
10881         * objc-lang.c (objc_printstr): Likewise.
10882         * p-lang.c (pascal_printstr): Likewise.
10883         * scm-lang.c (scm_printstr): Likewise.
10884         * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10885         encoding argument.
10886         * ada-valprint.c (ada_printstr): Likewise.
10887         * f-valprint.c (f_val_print): Likewise
10888         * m2-valprint.c (m2_val_print): Likewise.
10889         * p-valprint.c (pascal_val_print): Likewise.
10890         * expprint.c (print_subexp_standard): Likewise.
10891         * valprint.c (val_print_string): Likewise.
10892         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10893         (SUBDIR_PYTHON_SRCS): Likewise.
10894         (py-lazy-string.o): New rule.
10895
10896 2010-01-13  Doug Evans  <dje@google.com>
10897
10898         * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10899         uninitialized" warning from gcc on local `tree'.
10900
10901 2010-01-13  Vladimir Prus  <vladimir@codesourcery.com>
10902
10903         Implement core awareness.
10904
10905         * bcache.c (compare_ints): Remove
10906         (print_percentage): Use compare_positive_ints.
10907         * defs.h (compare_positive_ints): Declare.
10908         * linux-nat.h (struct lin_lwp): New field core.
10909         (linux_nat_core_of_thread_1): Declare.
10910         * linux-nat.c (add_lwp): Init the 'core' field.
10911         (linux_nat_wait_1): Record the core.
10912         (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10913         (linux_nat_add_target): Register the above.
10914         * linux-thread-db.c (update_thread_core): New.
10915         (thread_db_find_new_threads): Update core information for
10916         every thread.
10917         * remote.c (struct private_thread_info): New.
10918         (free_private_thread_info, demand_private_info): New.
10919         (PACKET_qXfer_threads, use_osdata_threads): New.
10920         (struct thread_item, threads_parsing_context
10921         (start_thread, end_thread, thread_attributes)
10922         (thread_children, threads_children, threads_elements): New.
10923         (remote_threads_info): Try qXfer:threads before anything
10924         else.
10925         (remote_protocol_packets): Register qXfer:threads.
10926         (remote_open_1): Init use_osdata_threads.
10927         (struct stop_reply): New field 'core'.
10928         (remote_parse_stop_reply): Parse core number.
10929         (process_stop_reply): Record core number.
10930         (remote_xfer_partial): Handle qXfer:threads.
10931         (remote_core_of_thread): New.
10932         (init_remote_ops): Register remote_core_of_thread.
10933         (_initialize_remote): Register qXfer:read.
10934         * target.c (target_core_of_thread): New
10935         * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10936         (struct target_ops): New field to_core_of_threads.
10937         (target_core_of_thread): Declare.
10938         * gdbthread.h (struct thread_info): New field private_dtor.
10939         * thread.c (print_thread_info): Report the core.
10940         * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10941         * utils.c (compare_positive_ints): New.
10942         * features/threads.dtd: New.
10943         * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10944         * mi/mi-main.c (struct collect_cores_data, collect_cores)
10945         (do_nothing, free_vector_of_osdata_items)
10946         (splay_tree_int_comparator, free_splay_tree): New.
10947         (print_one_inferior_data): Implemented printing of selected
10948         inferiors.  Collect and print cores.
10949         (output_cores): New.
10950         (mi_cmd_list_thread_groups): Support --recurse.  Permit specifying
10951         thread groups together with --available.
10952
10953 2010-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10954
10955         * configure: Regenerate (for _STRUCTURED_PROC).
10956
10957 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
10958
10959         Delete dead function.
10960         * ada-lang.c (extract_string): Delete.  No longer used.
10961
10962 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
10963
10964         Fix -Wunused warning in dec-thread.c.
10965         * dec-thread.c (dec_thread_count_gdb_threads)
10966         (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10967
10968 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
10969
10970         * ada-valprint.c (ada_print_floating): Remove trailing space.
10971
10972 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
10973
10974         Add support for DW_AT_GNAT_descriptive_type.
10975         * gdbtypes.h (enum type_specific_kind): New enum.
10976         (struct main_type) [type_specific_field]: New component.
10977         [type_specific]: Add new component "gnat_stuff".
10978         (struct gnat_aux_type): New type.
10979         (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10980         (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10981         (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10982         (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10983         (TYPE_SPECIFIC_FIELD): New macros.
10984         (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10985         type does not hold any cplus-specific data.
10986         (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10987         (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10988         (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10989         cplus-specific data.
10990         * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10991         Set new component TYPE_SPECIFIC_FIELD (type).
10992         (gnat_aux_default): New constant.
10993         (allocate_gnat_aux_type): New function.
10994         (init_type): Add initialization the type-specific stuff for
10995         TYPE_CODE_FLT and TYPE_CODE_FUNC types.
10996         (print_gnat_stuff): New function.
10997         (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
10998         specific data.  Adjust code that prints the contents of the
10999         type-specific union using the TYPE_SPECIFIC_FIELD value.
11000         * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11001         the type cplus stuff for Ada types.
11002         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11003         Error out if these routines are called with an Ada type.
11004         (read_structure_type, read_array_type, read_subrange_type):
11005         Add call to set_descriptive_type.
11006         (set_die_type): Initialize the gnat-specific data if necessary.
11007         (need_gnat_info, die_descriptive_type, set_descriptive_type):
11008         New functions.
11009         * ada-lang.c (decode_constrained_packed_array_type): Use
11010         decode_constrained_packed_array_type instead of doing a standard
11011         lookup to locate a parallel type.
11012         (find_parallel_type_by_descriptive_type): New function.
11013         (ada_find_parallel_type_with_name): New function.
11014         (ada_find_parallel_type): Reimplement using
11015         ada_find_parallel_type_with_name.
11016         * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11017         to check if type has a cplus stuff.
11018         * linespec.c (total_number_of_methods): Likewise.
11019         * mdebugread.c (new_type): Likewise.
11020
11021 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11022
11023         * NEWS: Document the 0b binary number prefix parsing.
11024
11025 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11026
11027         * objfiles.c (objfile_relocate1): Change the return type to int.
11028         Describe the new return value.  Return non-zero if data changed.
11029         (objfile_relocate): New variable changed.  Set it.  Call
11030         breakpoint_re_set depending on CHANGED.
11031
11032 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11033
11034         Implement binary numbers parsing.
11035         * c-exp.y (parse_number): New case 'b' and 'B'.
11036
11037 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11038             Tristan Gingold  <gingold@adacore.com>
11039
11040         * solib.c (info_sharedlibrary_command): Replace
11041         objfile_has_partial_symbols and objfile_has_full_symbols calls by
11042         objfile_has_symbols.
11043
11044 2010-01-10  Joel Brobecker  <brobecker@adacore.com>
11045
11046         * NEWS: Document the improvements made to the mips-irix port.
11047
11048 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11049
11050         Fix the documentation of valprint.c:value_print.
11051         * valprint.c (value_print): Update the function description to
11052         mention that the syntax of the output follows the current_language,
11053         not necessarily C.
11054
11055 2010-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11056
11057         Fix displacement of separate debug info files.
11058         * objfiles.c (objfile_relocate): Rename to ...
11059         (objfile_relocate1): ... here and make it static.  Extend the comment.
11060         (objfile_relocate): New function.
11061         * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11062         SYMFILE_OBJFILE is NULL.  Remove variables objfile and old_chain.
11063         Remove following of SEPARATE_DEBUG_OBJFILE.  new_offsets is now
11064         allocated using alloca.
11065         * symfile.c (copy_section_addr_info): Remove.
11066         (build_section_addr_info_from_objfile): Make it global.  New variables
11067         addr_bit and mask, use them.
11068         * symfile.h (build_section_addr_info_from_objfile): New prototype.
11069         (copy_section_addr_info): Remove.
11070
11071 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11072
11073         Signal unwinder for mips-irix N32.
11074         * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11075         tramp-frame.h.
11076         (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11077         (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
11078         (SIGCONTEXT_LO_OFF): New macros.
11079         (mips_irix_n32_tramp_frame_init): New function.
11080         (mips_irix_n32_tramp_frame): New static constant.
11081         (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11082
11083 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11084
11085         Breakpoint in shared library does not work on mips-irix.
11086         * procfs.c: #include "observer.h".
11087         (procfs_inferior_created): New function, moving here the code
11088         which unsets the syssgi syscall-exit notifications.
11089         (procfs_create_inferior): Remove the code which unsets the syssgi
11090         syscall-exit notifications. It is too early to do this here.
11091         (_initialize_procfs): Attach the procfs_inferior_created observer.
11092
11093 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11094
11095         Wrong return convention for arrays (mips-irix).
11096         * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11097         128 bits or smaller are returned the same way as structs
11098         and unions of the the same size.
11099
11100 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11101
11102         Cannot set the PC on mips-irix.
11103         * irix5-nat.c (fill_gregset): Check regno against the raw PC
11104         register number, no the cooked one.
11105
11106 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11107
11108         Error while loading core file on mips-irix.
11109         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11110         if debugging from a core file.
11111
11112 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11113
11114         GDB hangs when attaching to process on mips-irix.
11115         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11116         attaching to a process.
11117
11118 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11119
11120         Use the correct breakpoint instruction on mips-irix.
11121         * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11122         containing the correct breakpoint instruction to use on mips-irix.
11123         Use it when the osabi is GDB_OSABI_IRIX.
11124
11125 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11126
11127         -Wunused warning in procfs.c (mips-irix only).
11128         * procfs.c (gdb_praddset, gdb_prdelset): New macros.  Use them
11129         throughout instead of using praddset and prdelset respectively.
11130
11131 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11132
11133         GDB crash while stepping into function.
11134         * infrun.c (handle_inferior_event): Refetch the current frame
11135         after handling what.main_action, in case that pointer became
11136         dangling.
11137
11138 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11139
11140         Fix build failure of solaris-hosted cross debuggers.
11141         * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11142
11143 2010-01-09  Daniel Gutson  <dgutson@codesourcery.com>
11144
11145         Fix build failure on sparc-solaris.
11146         * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11147
11148 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
11149
11150         Move some symfile code into subroutines.
11151         * symfile.h (relative_addr_info_to_section_offsets)
11152         (addr_info_make_relative): New prototypes.
11153         * symfile.c (default_symfile_offsets): Move a part to ...
11154         (relative_addr_info_to_section_offsets): ... this new function.
11155         (default_symfile_offsets): Call it.
11156         (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11157         this part to ...
11158         (addr_info_make_relative): ... this new function.
11159
11160 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
11161
11162         Add from_tty to solib_create_inferior_hook.
11163         * infcmd.c (post_create_inferior): Move solib_add after
11164         solib_create_inferior_hook.  Pass from_tty to
11165         solib_create_inferior_hook.  Call solib_add and SOLIB_ADD with
11166         0 from_tty and comment why.
11167         * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11168         * linux-nat.c (linux_child_follow_fork): Likewise.
11169         * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11170         * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11171         from_tty.
11172         * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11173         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11174         * solib-null.c (null_solib_create_inferior_hook): Likewise.
11175         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11176         * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11177         * solib-som.c (som_solib_create_inferior_hook): Likewise.
11178         * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11179         Pass it to svr4_so_ops.solib_create_inferior_hook.
11180         * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11181         from_tty.
11182         * solib-svr4.c (enable_break): New parameter from_tty.  Pass it to
11183         solib_add.
11184         (svr4_solib_create_inferior_hook): New parameter from_tty.  Pass it to
11185         enable_break.
11186         * solib-target.c (solib_target_solib_create_inferior_hook): New
11187         parameter from_tty.
11188         * solib.c (solib_create_inferior_hook): New parameter from_tty.  Pass
11189         it to ops->solib_create_inferior_hook.
11190         (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11191         Move solib_add after solib_create_inferior_hook, call it now with
11192         from_tty as 0.  New comment there.
11193         * solib.h (solib_create_inferior_hook): New parameter from_tty.
11194         * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11195         Likewise.
11196
11197 2010-01-08  Vladimir Prus  <vladimir@codesourcery.com>
11198
11199         Fix multiexec race.
11200         * infrun.c (handle_inferior_event): Use get_thread_regcache
11201         with events ptid, not get_current_regcache.
11202
11203 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
11204
11205         GDB crash with empty executable name (MinGW).
11206         * source.c (openp): Add assert that parameter string is not NULL.
11207         if parameter string is an empty string, then return with a failure
11208         immediately.
11209
11210 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
11211
11212         Get rid of support for VAX Floats.
11213         * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11214         (ada_vax_float_print_function): Delete.
11215         * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11216         (ada_vax_float_print_function): Delete.
11217         * ada-typeprint.c (print_vax_floating_point_type): Delete.
11218         (ada_print_type): Remove support for VAX floats.
11219         * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11220
11221 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
11222
11223         * stabsread.c (read_args): Handle zero arguments.
11224
11225 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
11226
11227         Cannot find in-tree libiconv.a after reconfigure.
11228         * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11229         that we can use, then cache the path to this archive.
11230         * configure: Regenerate.
11231
11232 2010-01-07  Stan Shebs  <stan@codesourcery.com>
11233
11234         Make tracepoint operations go through target vector.
11235         * target.h (enum trace_find_type): New enum.
11236         (struct target_ops): New fields to_trace_init,
11237         to_download_tracepoint, to_download_trace_state_variable,
11238         to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11239         to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11240         to_set_disconnected_tracing.
11241         (target_trace_init): New macro.
11242         (target_download_tracepoint): New macro.
11243         (target_download_trace_state_variable): New macro.
11244         (target_trace_start): New macro.
11245         (target_trace_set_readonly_regions): New macro.
11246         (target_get_trace_status): New macro.
11247         (target_trace_stop): New macro.
11248         (target_trace_find): New macro.
11249         (target_get_trace_state_variable_value): New macro.
11250         (target_set_disconnected_tracing): New macro.
11251         * target.c (update_current_target): Inherit and set defaults for
11252         tracepoint operations.
11253         * tracepoint.c (default_collect): Make globally visible.
11254         (target_is_remote): Remove, along with all calls.
11255         (tvariables_info): Call target_get_trace_state_variable_value.
11256         (remote_set_transparent_ranges): Remove.
11257         (trace_start_command): Call target_trace_init,
11258         target_download_tracepoint, etc.
11259         (download_tracepoint): Remove.
11260         (trace_stop_command): Simplify.
11261         (stop_tracing): Call target_trace_stop.
11262         (get_trace_status): Call target_get_trace_status.
11263         (trace_status_command): Add case for targets that cannot trace.
11264         (finish_tfind_command): Change to take numerical arguments, call
11265         target_trace_find.
11266         (trace_find_command): Update call to finish_tfind_command.
11267         (trace_find_pc_command): Ditto.
11268         (trace_find_tracepoint_command): Ditto.
11269         (trace_find_line_command): Ditto.
11270         (trace_find_range_command): Ditto.
11271         (trace_find_outside_command): Ditto.
11272         (set_disconnected_tracing_value): Call
11273         target_set_disconnected_tracing.
11274         * remote.c: Add protocol encoding bits from tracepoint.c.
11275         (trace_error): Move from tracepoint.c.
11276         (remote_get_noisy_reply): Ditto.
11277         (free_actions_list_cleanup_wrapper): Ditto.
11278         (free_actions_list): Ditto.
11279         (remote_trace_init): New function.
11280         (remote_download_tracepoint): New function.
11281         (remote_download_trace_state_variable): New function.
11282         (remote_trace_set_readonly_regions): New function.
11283         (remote_trace_start): New function.
11284         (remote_get_trace_status): New function.
11285         (remote_trace_stop): New function.
11286         (remote_trace_find): New function.
11287         (remote_download_trace_state_variable): New function.
11288         (remote_set_disconnected_tracing): New function.
11289         (init_remote_ops): Add tracepoint operations.
11290
11291         * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11292
11293 2010-01-07  Tristan Gingold  <gingold@adacore.com>
11294
11295         * symfile.c (build_section_addr_info_from_objfile): New function.
11296         (symbol_file_add_separate): Don't use offsets from objfile but
11297         built an addr info.
11298
11299 2010-01-06  Stan Shebs  <stan@codesourcery.com>
11300
11301         Support disconnected tracing.
11302         * infcmd.c (detach_command): Ask whether to stop tracing.
11303         * cli/cli-cmds.c (quit_command): Ditto.
11304         * breakpoint.h (struct breakpoint): New field number_on_target.
11305         * breakpoint.c (create_tracepoint_from_upload): New function.
11306         (get_tracepoint_by_number_on_target): New function.
11307         * remote.c (struct remote): New field disconnected_tracing.
11308         (remote_disconnected_tracing_feature): New function.
11309         (remote_protocol_features): Add DisconnectedTracing.
11310         (struct uploaded_tp): New struct.
11311         (uploaded_tps): New global.
11312         (get_uploaded_tp): New function.
11313         (find_matching_tracepoint): New function.
11314         (remote_get_tracing_state): New function.
11315         (remote_start_remote): Call it.
11316         * tracepoint.c (disconnected_tracing): New global.
11317         (trace_start_command): Initialize number_on_target.
11318         (stop_tracing): New function, split out from...
11319         (trace_stop_command): Call stop_tracing.
11320         (get_trace_status): New function, split out from...
11321         (trace_status_command): Call get_trace_status, add info on
11322         disconnection behavior.
11323         (disconnect_or_stop_tracing): New function.
11324         (finish_tfind_command): Translate from number on target.
11325         (trace_find_tracepoint_command): Translate to number on target.
11326         (send_disconnected_tracing_value): New function.
11327         (set_disconnected_tracing): New function.
11328         (_initialize_tracepoint): Add disconnected-tracing variable.
11329         * NEWS: Mention disconnected tracing.
11330
11331 2010-01-06  Tristan Gingold  <gingold@adacore.com>
11332
11333         * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11334         parameter to main_objfile.  Iterate on all separate debug objfiles.
11335         * symfile.h (symbol_file_add_separate)
11336         (find_separate_debug_file_by_debuglink): Remove parameter names.
11337         * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11338         (reread_symbols): Use free_objfile_separate_debug.
11339         * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11340         Adjust comment.
11341         (objfile_separate_debug_iterate, add_separate_debug_objfile)
11342         (free_objfile_separate_debug): New prototypes.
11343         * objfiles.c (objfile_separate_debug_iterate): New function.
11344         (add_separate_debug_objfile, free_objfile_separate_debug): New
11345         functions.
11346         (free_objfile): Use free_objfile_separate_debug.  Adjust for
11347         multiple separate debug objfile.
11348         (objfile_has_symbols): Adjust comment.  Iterate on all separate
11349         debug objfiles.
11350         * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11351         debug objfile.
11352         (lookup_minimal_symbol_text): Ditto.
11353         (lookup_minimal_symbol_by_pc_name): Ditto.
11354         (lookup_minimal_symbol_solib_trampoline): Ditto.
11355         (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11356         debug objfiles.
11357
11358 2010-01-05  Stan Shebs  <stan@codesourcery.com>
11359
11360         Add fast tracepoints.
11361         * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11362         * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11363         * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11364         * breakpoint.c (tracepoint_type): New function.
11365         (ALL_TRACEPOINTS): Use it.
11366         (should_be_inserted): Ditto.
11367         (bpstat_check_location): Ditto.
11368         (print_one_breakpoint_location): Ditto.
11369         (user_settable_breakpoint): Ditto.
11370         (set_breakpoint_location_function): Ditto.
11371         (disable_breakpoints_in_shlibs): Ditto.
11372         (delete_trace_command): Ditto.
11373         (print_it_typical): Add bp_fast_tracepoint case.
11374         (bpstat_what): Ditto.
11375         (print_one_breakpoint_location): Ditto.
11376         (allocate_bp_location): Ditto.
11377         (mention): Ditto.
11378         (breakpoint_re_set_one): Ditto.
11379         (disable_command): Ditto.
11380         (enable_command): Ditto.
11381         (check_fast_tracepoint_sals): New function.
11382         (break_command_really): Call it.
11383         (ftrace_command): New function.
11384         (_initialize_breakpoint): Add ftrace command.
11385         * gdbarch.sh (fast_tracepoint_valid_at): New.
11386         * gdbarch.h, gdbarch.c: Regenerate.
11387         * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11388         (i386_gdbarch_init): Use it.
11389         * remote.c (struct remote_state): New field fast_tracepoints.
11390         (PACKET_FastTracepoints): New packet config type.
11391         (remote_fast_tracepoint_feature): New function.
11392         (remote_protocol_features): Add FastTracepoints.
11393         (remote_supports_fast_tracepoints): New function.
11394         (_initialize_remote): Add FastTracepoints.
11395         * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11396         * NEWS: Mention fast tracepoints.
11397
11398 2010-01-06  Joel Brobecker  <brobecker@adacore.com>
11399
11400         * gdb-gdb.py: New file.
11401
11402 2010-01-05  Michael Snyder  <msnyder@vmware.com>
11403
11404         * infrun.c (handle_inferior_event): Fix typo in comment.
11405
11406 2010-01-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
11407
11408         * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11409
11410 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11411
11412         * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11413         and s390x-linux64.
11414         (s390-linux32-expedite): Define.
11415         (s390-linux64-expedite): Define.
11416         (s390x-linux64-expedite): Define.
11417         * features/s390-acr.xml: New file.
11418         * features/s390-fpr.xml: New file.
11419         * features/s390-core32.xml: New file.
11420         * features/s390-core64.xml: New file.
11421         * features/s390x-core64.xml: New file.
11422         * features/s390-linux32.xml: New file.
11423         * features/s390-linux64.xml: New file.
11424         * features/s390x-linux64.xml: New file.
11425         * features/s390-linux32.c: New generated file.
11426         * features/s390-linux64.c: New generated file.
11427         * features/s390x-linux64.c: New generated file.
11428
11429         * regformats/s390-linux32.dat: New generated file.
11430         * regformats/s390-linux64.dat: New generated file.
11431         * regformats/s390x-linux64.dat: New generated file.
11432         * regformats/reg-s390.dat: Remove.
11433         * regformats/reg-s390x.dat: Remove.
11434
11435         * s390-nat.c: Include "auxv.h" and <elf.h>.
11436         (HWCAP_S390_HIGH_GPRS): Define if undefined.
11437         (s390_target_wordsize): New function.
11438         (s390_auxv_parse): Likewise.
11439         (s390_get_hwcap): Likewise.
11440         (s390_read_description): Likewise.
11441         (_initialize_s390_nat): Install s390_auxv_parse and
11442         s390_read_description.
11443
11444         * s390-tdep.c: Include "features/s390-linux32.c",
11445         "features/s390-linux64.c", and "features/s390x-linux64.c".
11446         (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11447         (s390_register_call_saved): New function.
11448         (s390_register_name): Remove.
11449         (s390_register_type): Remove.
11450         (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11451         (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11452         (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11453         (s390_pseudo_register_name): New function.
11454         (s390_pseudo_register_type): New function.
11455         (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11456         Handle full GPR pesudos and varying pseudo register numbers.
11457         (s390_pseudo_register_write): Likewise
11458         (s390x_pseudo_register_read): Remove.
11459         (s390x_pseudo_register_write): Likewise.
11460         (s390_register_group): Remove.
11461         (s390_pseudo_register_group): New function.
11462         (s390_regmap_gregset): Add GPR upper halves.
11463         (s390x_regmap_gregset): Likewise.
11464         (s390_regmap_fpregset): Likewise.
11465         (s390_regmap_upper): New global variable.
11466         (s390_upper_regset): New global variable.
11467         (s390_upper_regset_sections): New global variable.
11468         (s390_regset_from_core_section): Handle GPR upper halves.
11469         (s390_core_read_description): New function.
11470         (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11471         register information.  Handle varying pseudo register numbers.
11472         (s390_backchain_frame_unwind_cache): Likewise.
11473         (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11474         (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11475         (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11476         PC and CC pseudos.  Unwind upper halves and full GPRs as appropriate.
11477         Handle varying pseudo register numbers.
11478         (s390_unwind_pc): Handle varying pseudo register numbers.
11479         (s390_dwarf2_prev_register): New function.
11480         (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11481         register information.  Handle varying pseudo register numbers.
11482         Install s390_dwarf2_prev_register to unwind full GPRs.
11483         (s390_gdbarch_init): Handle target descriptions.  Assign varying
11484         pseudo register numbers.  Install s390_adjust_frame_regnum.
11485         (_initialize_s390_tdep): Initialize target descriptions.
11486
11487         * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11488         (S390_NUM_REGS): Redefine to include upper half registers.
11489         (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11490         (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11491         (tdesc_s390_linux32): Add declaration.
11492         (tdesc_s390_linux64): Likewise.
11493         (tdesc_s390x_linux64): Likewise.
11494
11495 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11496
11497         * regset.h (struct core_regset_section): Add HUMAN_NAME.
11498         * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11499         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11500         (ppc_linux_vmx_regset_sections): Likewise.
11501         (ppc_linux_fp_regset_sections): Likewise.
11502
11503         * corelow.c (get_core_register_section): Constify arguments.
11504         (get_core_registers): Use gdbarch_core_regset_sections instead
11505         of hard-coded platform-specific register section names.
11506
11507 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11508
11509         * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11510         a register, assume the least-significant part is used.
11511         (write_pieced_value): Likewise.
11512
11513 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11514
11515         * printcmd.c: Include "arch-utils.h".
11516         (do_one_display): Re-parse expression if current architecture changed.
11517
11518 2010-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11519             Joel Brobecker  <brobecker@adacore.com>
11520
11521         * gdbtypes.c (check_typedef): New comment on type length.
11522         * value.c (allocate_value_lazy): Remove the unused atype variable.  New
11523         comment on type length.
11524         (value_primitive_field): Keep the original TYPE value, new comment.
11525
11526 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11527
11528         * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11529         p_start.  Change != comparisons to > and < comparisons.
11530
11531 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11532
11533         * cli/cli-script.c (process_next_line): Check P2 overrun.
11534
11535 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
11536
11537         Update the copyright hearder to add year 2010 for most GDB files.
11538
11539 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
11540
11541         Fix build failure in inf-ptrace.c.
11542         * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11543
11544 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
11545
11546         * top.c (print_gdb_version): Update copyright year.
11547
11548 2010-01-01, 10  Joel Brobecker  <brobecker@adacore.com>
11549
11550         Fix break *FUN'address thread NUM.
11551         * ada-lex.l (task): Expand rule to also match the thread keyword.
11552
11553 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
11554
11555         Fix break *FUN'address task NUM.
11556         * ada-lex.l (task): New rule.
11557         * ada-lang.c (valid_task_id): Make sure the Ada task list has
11558         been built before using it.
11559
11560 For older changes see ChangeLog-2009.
11561 \f
11562 Local Variables:
11563 mode: change-log
11564 left-margin: 8
11565 fill-column: 74
11566 version-control: never
11567 coding: utf-8
11568 End: