* mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
[external/binutils.git] / gdb / ChangeLog
1 2010-12-15  Kevin Buettner  <kevinb@redhat.com>
2
3         * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
4         cooked values that are being transferred to 64-bit raw registers.
5         (mips_pseudo_register_read): Revise to preserve symmetry with
6         mips_pseudo_register_write().
7
8 2010-12-15  Greg Watson  <g.watson@computer.org>
9
10         * f-exp.y (yylex): Check entire token against keywords.
11
12 2010-12-15  Doug Evans  <dje@google.com>
13
14         Rename "maint set python auto-load" to "set auto-load-scripts".
15         * NEWS: Mention it.
16         * python/py-auto-load.c (auto_load_scripts): Renamed from
17         gdbpy_auto_load.
18         (load_auto_scripts_for_objfile): Update.
19         (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
20         "set auto-load-scripts".
21
22 2010-12-14  Kevin Buettner  <kevinb@redhat.com>
23
24         * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
25         than unsigned, values in registers.
26
27 2010-12-14  Ken Werner  <ken.werner@de.ibm.com>
28
29         * valops.c (value_one): Use get_array_bounds to compute the number
30         of array elements instead of dividing the length of the array by the
31         length of the element types.
32         * valarith.c (value_complement, value_neg): Likewise.
33
34 2010-12-14  Joel Brobecker  <brobecker@adacore.com>
35
36         * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
37         and __fp_scr respectively throughout.
38         * configure.ac: Compile with -Dsiginfo=__siginfo if building with
39         Python using GCC on IRIX.
40         * configure: Regenerate.
41
42 2010-12-13  Kevin Buettner  <kevinb@redhat.com>
43
44         * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
45         when attaching, on the names in bkpt_names: _start, __start, and
46         main.
47
48 2010-12-12  Stan Shebs  <stan@codesourcery.com>
49
50         * value.c (value_of_internalvar): Add case for trace state
51         variables.
52
53 2010-12-12  Doug Evans  <dje@google.com>
54
55         * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
56         (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
57         section.  Delete members lines full_names.  Rename read_lines to
58         no_file_data.
59         (quick_file_names): New struct.
60         (hash_file_name_entry, eq_file_name_entry): New functions.
61         (delete_file_name_entry, create_quick_file_names_table): New functions.
62         (dwarf2_read_index): Initialize quick_file_names_table.
63         (dw2_get_file_names): Renamed from dw2_require_line_header.
64         Return pointer to quick_file_names entry.  All callers updated.
65         (dw2_get_real_path): Renamed from dw2_require_full_path.
66         Replace per_cu arg with pointer to quick_file_names entry.
67         All callers updated.
68         (dw2_free_cached_file_names): New function.
69         (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
70         (dwarf2_initialize_objfile): Initialize quick_file_names_table in
71         the OBJF_READNOW case.
72         (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
73
74 2010-12-12  Mark Kettenis  <kettenis@gnu.org>
75
76         * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
77         (mips64obsd_init_abi): Set long_double_bit and long_double_format.
78
79 2010-12-12  Mark Kettenis  <kettenis@gnu.org>
80
81         * sparc-tdep.c: Fix typo in comment.
82
83 2010-12-10  Doug Evans  <dje@google.com>
84
85         * dwarf2read.c: Whitespace cleanup, plus comment additions.
86         No code changes.
87
88 2010-12-10  Tom Tromey  <tromey@redhat.com>
89
90         * NEWS: Document exception-handling change.
91
92 2010-12-09  Marc Khouzam  <marc.khouzam@ericsson.com>
93
94         * mi/mi-parse.c (mi_parse): Wrong error message.
95
96 2010-12-09  Doug Evans  <dje@google.com>
97
98         * symfile.h (quick_symbol_functions): Clarify usage of
99         map_symbol_filenames.
100
101 2010-12-09  Tom Tromey  <tromey@redhat.com>
102
103         * mi/mi-parse.h (mi_parse): Update.
104         * mi/mi-parse.c (mi_parse_cleanup): New function.
105         (mi_parse): Add 'token' argument.  Throw exception on error.
106         * mi/mi-main.c (mi_print_exception): New function.
107         (mi_execute_command): Use mi_print_exception.  Catch exceptions
108         from mi_parse.
109
110 2010-12-09  Tom Tromey  <tromey@redhat.com>
111
112         PR c++/9593:
113         * thread.c (clear_thread_inferior_resources): Call
114         delete_longjmp_breakpoint.
115         * infrun.c (handle_inferior_event): Handle exception breakpoints.
116         (handle_inferior_event): Likewise.
117         (insert_exception_resume_breakpoint): New function.
118         (check_exception_resume): Likewise.
119         * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
120         * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
121         (step_1): Set thread's initiating frame.
122         (until_next_continuation): New function.
123         (until_next_command): Support exception breakpoints.
124         (finish_command_continuation): Delete longjmp breakpoint.
125         (finish_forward): Support exception breakpoints.
126         * gdbthread.h (struct thread_info) <initiating_frame>: New field.
127         * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
128         bp_exception_master>: New constants.
129         (struct bpstat_what) <is_longjmp>: New field.
130         (set_longjmp_breakpoint): Update.
131         * breakpoint.c (create_exception_master_breakpoint): New function.
132         (update_breakpoints_after_exec): Handle bp_exception_master.  Call
133         create_exception_master_breakpoint.
134         (print_it_typical): Handle bp_exception_master, bp_exception.
135         (bpstat_stop_status): Handle bp_exception_master.
136         (bpstat_what): Handle bp_exception_master, bp_exception,
137         bp_exception_resume.
138         (bptype_string): Likewise.
139         (print_one_breakpoint_location): Likewise.
140         (allocate_bp_location): Likewise.
141         (set_longjmp_breakpoint): Handle exception breakpoints.  Change
142         interface.
143         (delete_longjmp_breakpoint): Handle exception breakpoints.
144         (mention): Likewise.
145         (struct until_break_command_continuation_args) <thread_num>: New
146         field.
147         (until_break_command_continuation): Call
148         delete_longjmp_breakpoint.
149         (until_break_command): Support exception breakpoints.
150         (delete_command): Likewise.
151         (breakpoint_re_set_one): Likewise.
152         (breakpoint_re_set): Likewise.
153
154 2010-12-08  Doug Evans  <dje@google.com>
155
156         * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
157
158         * gdbtypes.c (check_typedef): Tweak comment.
159
160         PR symtab/12302
161         * dwarf2read.c (struct psymtab_cu_index_map): New struct.
162         (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
163         (struct addrmap_index_data): New struct.
164         (add_address_entry): Remove arg `pst', new args `start', `end'.
165         (add_address_entry_worker, write_address_map): New functions.
166         (write_psymtabs_to_index): Address table generation moved to
167         write_address_map.  Build a table mapping psymtab to CU index
168         to pass to it.
169
170         * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
171         name to perror.
172
173         * symfile.h (quick_symbol_functions): Clarify usage of
174         expand_symtabs_with_filename.
175         * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
176         comp units, ignore type units.
177
178         * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
179
180 2010-12-07  Doug Evans  <dje@google.com>
181
182         * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
183         gdb_realpath.
184
185         PR python/12227
186         * NEWS: Mention -data-directory.
187         * main.c (captured_main): Recognize -data-directory.
188
189 2010-12-06  Marc Khouzam  <marc.khouzam@ericsson.com>
190
191         * mi/mi-parse.c (mi_parse): Missing else.
192
193 2010-12-04  Masaki Muranaka  <monaka@monami-software.com>
194
195         * configure.tgt: Accept microblaze*-*-linux* for linux target
196         and microblaze*-*-* for  as target.
197
198 2010-12-02  Keith Seitz  <keiths@redhat.com>
199
200         * linespec.c (find_method): Move name canonicalization outside
201         the loop.
202         Be paranoid and use a cleanup.
203
204 2010-12-01  Doug Evans  <dje@google.com>
205
206         * dwarf2read.c (save_gdb_index_command): Add comment.
207
208 2010-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
209
210         * valops.c (value_assign): Returned value is never lazy.  If a
211         C++ class type is returned, fix incorrect enclosing type / embedded
212         offset.  If internal variable is returned, allocate new internalvar
213         value using value_of_internalvar.
214
215         * NEWS: Document changes in behavior of "print x = 0" and similar
216         expressions.
217
218 2010-11-29  Doug Evans  <dje@google.com>
219
220         * python/lib/gdb/printing.py (register_pretty_printer): Change
221         printer-name:subprinter-name to printer-name;subprinter-name.
222         * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
223         Ditto.
224         (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
225
226 2010-11-29  Tom Tromey  <tromey@redhat.com>
227
228         * opencl-lang.c (lval_func_check_synthetic_pointer): New
229         function.
230         * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
231         New fields.
232         (value_bits_synthetic_pointer): Declare.
233         * value.c (value_bits_synthetic_pointer): New function.
234         * valprint.c (valprint_check_validity): Handle synthetic
235         pointers.
236         * valops.c (value_ind): Use new 'indirect' lval_funcs method.
237         * valarith.c (value_ptradd): Use set_value_component_location.
238         * p-valprint.c (pascal_object_print_value_fields): Handle
239         synthetic pointers.
240         * jv-valprint.c (java_print_value_fields): Handle synthetic
241         pointers.
242         * dwarf2read.c (dwarf_stack_op_name): Add
243         DW_OP_GNU_implicit_pointer.
244         (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
245         arguments.  Handle location lists.
246         (fill_in_loclist_baton): New function.
247         (dwarf2_symbol_mark_computed): Use it.
248         * dwarf2loc.h (dwarf2_find_location_expression): Declare.
249         (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
250         arguments.
251         * dwarf2loc.c (dwarf2_find_location_expression): Rename from
252         find_location_expression.  No longer static.  Update all callers.
253         (dwarf_expr_frame_pc): New function.
254         (per_cu_dwarf_call): Add get_frame_pc, baton arguments.  Update
255         all callers.
256         (struct piece_closure) <per_cu>: New field.
257         (allocate_piece_closure): Add per_cu argument.
258         (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
259         (check_pieced_value_bits): Remove validity argument, add check_for
260         argument.  Handle DWARF_VALUE_IMPLICIT_POINTER.
261         (check_pieced_value_validity, check_pieced_value_invalid):
262         Update.
263         (check_pieced_synthetic_pointer): New function.
264         (get_frame_address_in_block_wrapper): New function.
265         (indirect_pieced_value): New function.
266         (pieced_value_funcs): Update.
267         (invalid_synthetic_pointer): New function.
268         (dwarf2_evaluate_loc_desc_full): Rename from
269         dwarf2_evaluate_loc_desc.  Add byte_offset argument.
270         (dwarf2_evaluate_loc_desc): Rewrite.
271         (dwarf2_loc_desc_needs_frame): Set new field on context.
272         (get_ax_pc): New function.
273         (disassemble_dwarf_expression): Handle
274         DW_OP_GNU_implicit_pointer.
275         * dwarf2expr.h (enum dwarf_value_location)
276         <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
277         (struct dwarf_expr_context) <get_frame_pc>: New field.
278         (struct dwarf_expr_piece) <v.ptr>: New field.
279         * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
280         (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
281         * dwarf2-frame.c (no_get_frame_pc): New function.
282         (execute_stack_op): Set new field on context.
283         * cp-valprint.c (cp_print_value_fields): Handle synthetic
284         pointers.
285
286 2010-11-29  Phil Muldoon  <pmuldoon@redhat.com>
287
288         PR python/12199
289
290         * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
291
292 2010-11-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
293
294         Fix step_resume_breakpoint unsaved during an infcall.
295         * gdbthread.h (struct thread_control_state): Move here field
296         step_resume_breakpoint ...
297         (struct thread_info): ... from here.
298         * infrun.c (save_infcall_control_state): Reset
299         control.step_resume_breakpoint to NULL.
300         (restore_infcall_control_state, discard_infcall_control_state): Delete
301         control.step_resume_breakpoint.
302         * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
303         the moved field.
304
305 2010-11-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
306
307         Rename and move inferior_thread_state and inferior_status.
308         * gdbthread.h (struct thread_control_state): New struct, move fields
309         step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
310         trap_expected, proceed_to_finish, in_infcall, step_over_calls,
311         stop_step and stop_bpstat here from struct thread_info.
312         (struct thread_suspend_state): New struct, move field stop_signal here
313         from struct thread_info.
314         (struct thread_info): Move the fields above from this struct.
315         * inferior.h: Move the inferior_thread_state and inferior_status
316         declarations comment to their definitions at infrun.c.
317         (struct inferior_control_state): New struct, move field stop_soon from
318         struct inferior here.
319         (struct inferior_suspend_state): New empty struct.
320         (struct inferior): New fields control and suspend.  Move out field
321         stop_soon.
322         * infrun.c (struct inferior_thread_state): Rename to ...
323         (infcall_suspend_state): ... here.  Replace field stop_signal by
324         fields thread_suspend and inferior_suspend.
325         (save_inferior_thread_state): Rename to ...
326         (save_infcall_suspend_state): ... here.  New variable inf.  Update the
327         code for new fields.
328         (restore_inferior_thread_state): Rename to ...
329         (restore_infcall_suspend_state): ... here.  New variable inf.  Update
330         the code for new fields.
331         (do_restore_inferior_thread_state_cleanup): Rename to ...
332         (do_restore_infcall_suspend_state_cleanup): ... here.
333         (make_cleanup_restore_inferior_thread_state): Rename to ...
334         (make_cleanup_restore_infcall_suspend_state): ... here.
335         (discard_inferior_thread_state): Rename to ...
336         (discard_infcall_suspend_state): ... here.
337         (get_inferior_thread_state_regcache): Rename to ...
338         (get_infcall_suspend_state_regcache): ... here.
339         (struct inferior_status): Rename to ...
340         (struct infcall_control_state): ... here.  Replace fields
341         step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
342         trap_expected, proceed_to_finish, in_infcall, step_over_calls,
343         stop_step, stop_bpstat and stop_soon by fields thread_control and
344         inferior_control.
345         (save_inferior_status): Rename to ...
346         (save_infcall_control_state): ... here.  Update the code for new
347         fields.
348         (restore_inferior_status): Rename to ...
349         (restore_infcall_control_state): ... here.  Update the code for new
350         fields.
351         (do_restore_inferior_status_cleanup): Rename to ...
352         (do_restore_infcall_control_state_cleanup): ... here.
353         (make_cleanup_restore_inferior_status): Rename to ...
354         (make_cleanup_restore_infcall_control_state): ... here.
355         (discard_inferior_status): Rename to ...
356         (discard_infcall_control_state): ... here.
357         * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
358         exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
359         inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
360         mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
361         solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
362         references to the moved fields and renamed functions.
363
364 2010-11-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
365
366         * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
367         the comment.
368         (save_inferior_thread_state): Reset tp->stop_signal.
369
370 2010-11-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
371
372         * infcall.c (call_function_by_hand): Remove variable
373         caller_state_cleanup.
374
375 2010-11-25  Marc Khouzam  <marc.khouzam@ericsson.com>
376
377         PR breakpoints/12217
378
379         * breakpoint.c (is_marker_spec): Check for NULL.
380
381 2010-11-25  Pedro Alves  <pedro@codesourcery.com>
382
383         * breakpoint.h: No longer include python.h or python-internal.h.
384         (struct breakpoint_object): Forward declare.
385         * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
386         * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
387         * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
388         PyObject pointer.
389         (gdbpy_breakpoint_created): Remove casts around py_bp_object
390         accesses.
391
392 2010-11-24  Joel Brobecker  <brobecker@adacore.com>
393
394         * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
395         only if HAVE_ELF is defined.
396
397 2010-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
398
399         Code cleanup.
400         * infrun.c (struct inferior_status) <stepping_over_breakpoint>
401         (save_inferior_status) <stepping_over_breakpoint>
402         (restore_inferior_status) <stepping_over_breakpoint>: Rename to
403         trap_expected.
404         (struct inferior_status) <step_resume_break_address>: Remove.
405
406 2010-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
407
408         Code cleanup.
409         * infrun.c (struct inferior_status, save_inferior_status)
410         (restore_inferior_status): Group and reorder the fields, comment their
411         groups.
412
413 2010-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
414
415         Code cleanup.
416         * dictionary.c
417         (struct dict_vector) <iter_match_first, iter_match_next>
418         (iter_match_first_hashed, iter_match_next_hashed)
419         (iter_match_first_linear, iter_match_next_linear)
420         (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
421         (iter_match_next_hashed, iter_match_first_linear)
422         (iter_match_next_linear): Use symbol_compare_ftype.
423         * dictionary.h: Include symfile.h.
424         (dict_iter_match_first, dict_iter_match_next): Use
425         symbol_compare_ftype.
426         * dwarf2read.c (dw2_map_matching_symbols): Likewise.
427         * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
428         (map_matching_symbols_psymtab): Likewise.
429         * symfile.h (symbol_compare_ftype): New typedef.
430         (struct quick_symbol_functions) <map_matching_symbols): Use
431         symbol_compare_ftype.
432
433 2010-11-23  Tom Tromey  <tromey@redhat.com>
434
435         * configure: Rebuild.
436         * configure.ac (READLINE_TEXI_INCFLAG): New subst.
437
438 2010-11-19  Tom Tromey  <tromey@redhat.com>
439
440         * Makefile.in (SUBDIRS): Add doc.
441         * configure: Rebuild.
442         * configure.ac: Don't configure in doc.  Create doc/Makefile.
443
444 2010-11-23  Phil Muldoon  <pmuldoon@redhat.com>
445
446         PR python/12212
447
448         * python/py-inferior.c (find_thread_object): Check if PIDGET
449         returns 0.
450
451 010-11-22  Joel Brobecker  <brobecker@adacore.com>
452
453         * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
454
455 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
456
457         * ada-lang.c (ada_to_fixed_type): Expand function documentation.
458         Return the original type if the main type portions match rather
459         than when the type themselves match.
460
461 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
462
463         * ada-lang.c (ada_template_to_fixed_record_type_1):
464         For dynamic fields, check the field size against the maximum
465         object size.
466
467 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
468
469         * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
470         function.
471         (mips_irix_n32_stack_tramp_frame): New static global.
472         (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
473         list of unwinder.
474
475 2010-11-22  Jerome Guitton  <guitton@adacore.com>
476
477         * ada-tasks.c (get_tcb_types_info): Use C lookups to get
478         ATCB symbols.
479
480 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
481
482         * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
483         if type1 is a typedef.
484
485 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
486
487         * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
488         "_finalizer" to the list.
489
490 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
491
492         * symfile.c: Remove all "#if 0"/"#endif" blocks.
493
494 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
495
496         * symfile.c: Add missing second space after period in various comments.
497
498 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
499
500         * ada-typeprint.c (print_array_type): Fix formatting in comment.
501         (print_selected_record_field_types): Fix formatting in function
502         documentation.
503
504 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
505
506         * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
507         in name of "show ravenscar" prefix command name.
508
509 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
510
511         * ravenscar-thread.c (show_ravenscar_task_switching_command):
512         Add missing '\n' in output.
513
514 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
515
516         * ravenscar-thread.c (running_thread_name): Change value.
517         (read_thread_id): Remove advance declaration.
518         (get_running_thread_msymbol): New function.
519         (has_ravenscar_runtime): Use get_running_thread_msymbol to
520         compute msym_running_thread.
521         (get_running_thread_id): Renames read_thread_id. Slight modifications
522         to not take any argument anymore, using get_running_thread_msymbol
523         to determine which symbol to use instead.
524         (ravenscar_running_thread): Use get_running_thread_id instead of
525         read_thread_id.
526
527 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
528
529         * ravenscar-sparc-thread.c (supply_register_at_address):
530         Fix passing of buf in call to regcache_raw_supply.
531
532 2010-11-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
533
534         * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
535
536 2010-11-22  Tom Tromey  <tromey@redhat.com>
537
538         * Makefile.in (.PRECIOUS): Reference ada-lex.c.
539
540 2010-11-19  Keith Seitz  <keiths@redhat.com>
541
542         * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
543         Remove extraneous '/' after $(DESTDIR).
544         (PYTHON_INSTALL_DIR): Likewise.
545
546 2010-11-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
547
548         Fix stale memory references.
549         * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
550         xfree, new comment.
551
552 2010-11-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
553             Tom Tromey  <tromey@redhat.com>
554
555         * Makefile.in (.y.c): Directly create $@ from YLWRAP.
556         (.PHONY): Remove for .y outputs.
557
558 2010-11-19  Will Drewry  <wad@google.com>
559             Tavis Ormandy  <taviso@google.com>
560             Jan Kratochvil  <jan.kratochvil@redhat.com>
561
562         * dwarf2read.c (decode_locdesc): Enforce location description stack
563         boundaries.
564
565 2010-11-18  Pierre Muller  <muller@ics.u-strasbg.fr>
566
567         * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
568         instruction is found.
569
570 2010-11-17  Tom Tromey  <tromey@redhat.com>
571
572         * value.c (value_entirely_optimized_out): Check the
573         'check_any_valid' field.
574
575 2010-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
576
577         * ada-lang.c (modify_general_field): Remove.
578         (make_array_descriptor): Replace all modify_general_field calls by
579         modify_field.
580         * value.c (modify_field): Update comment.  New variable bytesize.
581         Normalize BITPOS.  Initialize BYTESIZE, use it.
582
583 2010-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
584
585         * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
586         elements after xfree.
587
588 2010-11-16  Tom Tromey  <tromey@redhat.com>
589
590         * gdb-add-index.sh: Really remove.
591
592 2010-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
593
594         Code cleanup.
595         * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
596         (init_one_comp_unit): ... this one.
597         (prepare_one_comp_unit): New prototype.
598         (dw2_require_line_header, process_psymtab_comp_unit): Use
599         init_one_comp_unit.
600         (process_psymtab_comp_unit): Use prepare_one_comp_unit.
601         (load_partial_comp_unit): Remove variable attr.  Use
602         init_one_comp_unit with xmalloc.  Use prepare_one_comp_unit.
603         (load_full_comp_unit): Use init_one_comp_unit with xmalloc.  Use
604         prepare_one_comp_unit.
605         (read_signatured_type): Remove variable attr.  Use init_one_comp_unit.
606         Use prepare_one_comp_unit.
607         (alloc_one_comp_unit): Rename to ...
608         (init_one_comp_unit): ... here and remove there calloc, new parameter
609         cu.
610         (prepare_one_comp_unit): New function.
611
612 2010-11-14  Pierre Muller  <muller@ics.u-strasbg.fr>
613
614         * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
615         possible used of uninitialized variable.
616
617 2010-11-12  Nathan Froyd  <froydnj@codesourcery.com>
618
619         * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
620         (rs6000_gdbarch_init): Call it.
621
622 2010-11-12  Nathan Froyd  <froydnj@codesourcery.com>
623
624         * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
625         instructions if debugging an E500 binary.
626
627 2010-11-12  Tom Tromey  <tromey@redhat.com>
628
629         * varobj.c (value_get_print_value): Rearrange.  Pass stream to
630         apply_varobj_pretty_printer.
631         * c-lang.c: Include exceptions.h.
632         (c_get_string): Throw MEMORY_ERROR when appropriate.
633         * python/py-prettyprint.c (enum string_repr_result): New.
634         (print_stack_unless_memory_error): New function.
635         (print_string_repr): Change return type.  Use
636         print_stack_unless_memory_error.
637         (print_children): Use print_stack_unless_memory_error.
638         (apply_val_pretty_printer): Update.  Don't print children if
639         string representation threw an exception.
640         (apply_varobj_pretty_printer): Add 'stream' argument.  Use
641         print_stack_unless_memory_error.
642         * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
643         globals.
644         (_initialize_python): Initialize them.
645         * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
646         gdbpy_convert_exception.
647         (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
648         (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
649         (gdbpy_convert_exception): Declare.
650         (apply_varobj_pretty_printer): Update.
651         * python/py-utils.c (gdbpy_convert_exception): New function.
652
653 2010-11-12  Marc Khouzam  <marc.khouzam@ericsson.com>
654
655         * mi/mi-main.c (mi_cmd_target_detach): Accept new
656         thread-group id format.
657
658 2010-11-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
659
660         * spu-tdep.c (spu_catch_start): Fix compilation error typo.
661
662 2010-11-11  Phil Muldoon  <pmuldoon@redhat.com>
663
664         * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
665         NULL.
666         (BPPY_SET_REQUIRE_VALID): Ditto.
667         (bpnum_is_valid): Delete function.
668         (bppy_get_visibility): New function.
669         (bppy_new): Parse for, and validate internal keyword.  Pass
670         internal keyword to breakpoint or watchpoint functions.
671         (build_bp_list): New function.
672         (gdbpy_breakpoints): Rewrite.  Use build_bp_list and
673         iterate_over_breakpoints.
674         (gdbpy_breakpoint_created): Rewrite.  Do not store breakpoints in a
675         look-aside vector.
676         (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
677         to internal breakpoint chain.
678
679         * breakpoint.c (set_breakpoint_number): New function.
680         (breakpoint_1): Check if breakpoint number is more than zero.
681         (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
682         (create_breakpoint_sal): Take a new parameter called internal.
683         Call set_breakpoint_number with internal parameter.  Do not
684         mention internal breakpoints.  All callers updated.
685         (create_breakpoint): Ditto.
686         (create_breakpoints_sal): Ditto.
687         (watch_command_1): Ditto.
688         (watch_command_wrapper): Take a new parameter called internal.
689         All callers updated.
690         (rwatch_command_wrapper): Ditto.
691         (awatch_command_wrapper): Ditto.
692         (save_breakpoints): Update breakpoint save condition check.
693         (iterate_over_breakpoints): New function.
694         * breakpoint.h: Add conditional python includes.  Add py_bp_object
695         and comment to struct breakpoint.  Update all callers.
696         * defs.h: Add PyObject definition for GDB builds without Python.
697
698 2010-11-10  Doug Evans  <dje@google.com>
699
700         * python/lib/gdb/command/pretty_printers.py
701         (do_enable_pretty_printer_1): Handle printer.subprinters is None.
702
703         * value.c (set_value_enclosing_type): Renamed from
704         value_change_enclosing_type.  All callers updated.
705         * value.h (set_value_enclosing_type): Update.
706         * valops.c (value_full_object): Always return a copy if we need to
707         make changes to the input value.
708
709 2010-11-09  Pedro Alves  <pedro@codesourcery.com>
710
711         * breakpoint.c (watch_command_1): Get a pointer of the lazy
712         version of the expression's value, even if reading the value from
713         memory fails.  When creating a -location watchpoint, get the
714         value's address from the lazy value pointer.
715
716 2010-11-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
717
718         * infrun.c (restore_inferior_thread_state): Use
719         discard_inferior_thread_state to free the data.
720         (discard_inferior_thread_state): xfree also siginfo_data.
721
722 2010-11-05  Doug Evans  <dje@google.com>
723
724         Make gdb.parameter("directories") work.
725         New command "set directories".
726         * NEWS: Document them.
727         * source.c (set_directories_command): New function.
728         (show_directories_1): Renamed from show_directories.
729         All callers updated.
730         (show_directories_command): New function.
731         (_initialize_source): Install "directories" as a set/show
732         variable instead of just a show command.
733
734 2010-11-05  Ken Werner  <ken.werner@de.ibm.com>
735
736         * NEWS: Mention OpenCL C language support.
737         * Makefile.in (SFILES): Add opencl-lang.c.
738         (COMMON_OBS): Add opencl-lang.o.
739         * opencl-lang.c: New File
740         * defs.h (enum language): Add language_opencl.
741         * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
742         IBM XL C OpenCL compiler.
743         * c-lang.h: Include "parser-defs.h".
744         (evaluate_subexp_c): Declare.
745         * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
746         (c_op_print_tab): Add declaration.
747         * eval.c (binop_promote): Handle language_opencl.
748         * c-exp.y: Lookup the primitive types instead of referring to the
749         builtins.
750
751 2010-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
752
753         Fix configure --enable-plugins --without-python.
754         * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
755         * configure: Regenerate.
756
757 2010-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
758
759         * solib.c (solib_read_symbols): Call exception_fprintf even without
760         FROM_TTY.  Print also so->so_name.
761
762 2010-11-04  Sami Wagiaalla  <swagiaal@redhat.com>
763
764         * gdbtypes.h (struct rank): Created subrank.
765         * gdbtypes.c: Initialized subrank for all
766         'BADNESS' constants.
767         (distance_to_ancestor): New function.
768         (is_ancestor): Use distance_to_ancestor.
769         (is_public_ancestor): Ditto.
770         (sum_ranks): Handle subrank.
771         (compare_ranks): Ditto.
772         (rank_one_type): Subrank base conversions.
773
774 2010-11-04  Sami Wagiaalla  <swagiaal@redhat.com>
775
776         * gdbtypes.h: Create struct rank.
777         Convert all 'BADNESS' macros to const struct rank declarations.
778         (sum_ranks): New function.
779         (compare_ranks): New function.
780         * valops.c (find_oload_champ): Updated.
781         (classify_oload_match): Use compare_ranks.
782         Improved comments.
783         (compare_parameters): Use compare_ranks.
784         * gdbtypes.c: Initialize 'BADNESS' constants.
785         (sum_ranks): New function.
786         (compare_ranks): New function.
787         (compare_badness): Use compare_ranks.
788         (rank_function): Use global constants instead of literals.
789         (rank_one_type): Ditto.
790         Return struct rank.
791         Use sum_ranks.
792
793 2010-11-04  Doug Evans  <dje@google.com>
794
795         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
796         (find_pretty_printer): Fix comments.
797
798 2010-11-04  Hui Zhu  <teawater@gmail.com>
799
800         * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
801
802 2010-11-03  Joel Brobecker  <brobecker@adacore.com>
803
804         * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
805         and `len' declaration and computation inside block where they
806         are being used.
807
808 2010-11-03  Joel Brobecker  <brobecker@adacore.com>
809
810         * valprint.c (val_print_array_elements): Put back handling of
811         empty arrays.
812
813 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
814
815         * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
816         DIE and set the length of the type.
817         * gdbtypes.h (get_array_bounds): Move here from valprint.h.
818         * gdbtypes.c (get_array_bounds): Move here from valprint.c and
819         return 0 if the corresponding bounds of the type are undefined.
820         * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
821         * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
822         (val_print_array_elements): Use get_array_bounds to compute the number
823         of array elements instead of dividing the length of the array by the
824         length of the element types.
825         * valarith.c (vector_binop): Likewise.
826         * valops.c (value_cast): Likewise.
827         * c-valprint.c (c_val_print): Likewise.
828         * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
829
830 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
831
832         * valarith.c (value_pos, value_neg, value_complement): Handle
833         vector types.
834         * valops.c (value_one): Likewise.
835
836 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
837
838         * value.h (value_non_lval): Declare.
839         * value.c (value_non_lval): New function.
840         * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
841         UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
842         non-lvalue.
843
844 2010-11-02  Doug Evans  <dje@google.com>
845
846         New python module gdb.printing, and new commands info pretty-printer,
847         enable pretty-printer, disable pretty-printer.
848         * NEWS: Mention them.
849         * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
850         gdb/command/__init__.py, gdb/command/pretty_printers.py.
851         * python/lib/gdb/__init__.py: Install pretty-printer commands.
852         * python/lib/gdb/printing.py: New file.
853         * python/lib/gdb/command/__init__.py: New file.
854         * python/lib/gdb/command/pretty_printers.py: New file.
855
856 2010-11-02  Tom Tromey  <tromey@redhat.com>
857
858         * NEWS: Mention Guile removal.
859         * defs.h (enum language) <language_scm>: Remove.
860         * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
861         scm-valprint.c.
862         (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
863         (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
864         * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
865         Remove.
866
867 2010-11-02  Doug Evans  <dje@google.com>
868
869         * top.c: #include "python/python.h".
870         (gdb_init): Add a comment regarding initialize_all_files.
871         Call finish_python_initialization at the end.
872         * python/python.h (finish_python_initialization): Declare.
873         * python/python.c (finish_python_initialization): New function.
874         (_initialize_python): Move python-implemented initialization there
875         and call it.
876         (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
877
878 2010-11-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
879
880         Revert:
881         2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
882                     Pedro Alves  <pedro@codesourcery.com>
883         * gdbthread.h (currently_stepping): New declaration.
884         * infrun.c (currently_stepping): Remove the forward declaration.
885         (currently_stepping): Make it global.
886         * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
887         variables tp and step, initialized them.  Pass STEP to to_resume.
888         Print also possibly "PTRACE_SINGLESTEP" if STEP.  Initialize LP->STEP.
889         * remote.c (currently_stepping_callback): New.
890         (remote_vcont_resume)
891         <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
892         New variable tp.  Call currently_stepping_callback and step such
893         thread.
894
895 2010-11-01  Hui Zhu  <teawater@gmail.com>
896
897         * tracepoint.c (tfile_xfer_partial): Change lma to vma.
898
899 2010-10-28  Hui Zhu  <teawater@gmail.com>
900
901         * tracepoint.c (trace_save): Change utp->actions to
902         utp->step_actions.
903
904 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
905
906         * (_FILE_OFFSET_BITS): Fix typo in comment.
907
908 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
909
910         * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
911         (PyEval_InitThreads): Remove duplicate. Define as nothing.
912         (PyEval_ReleaseLock): Define as nothing.
913
914 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
915
916         * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
917         by call to FILENAME_CMP.
918
919 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
920
921         * dictionary.c (dict_hash): Move assignment out of if condition.
922
923 2010-10-22  Jie Zhang  <jie@codesourcery.com>
924
925         * Makefile.in (install): Remove dependency of install-only and
926         recursively invoke make for install-only.
927         * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
928         (install): Pass FLAGS_TO_PASS when recursively make install-only.
929
930 2010-10-20  Hui Zhu  <teawater@gmail.com>
931
932         * tracepoint.c (tfile_get_traceframe_address): Call
933         extract_signed_integer.
934         (tfile_trace_find): Call extract_signed_integer and
935         extract_unsigned_integer.  Change data_size to unsigned int.
936         (tfile_fetch_registers): Call extract_unsigned_integer.
937         (tfile_xfer_partial): Ditto.
938         (tfile_get_trace_state_variable_value): Call
939         extract_signed_integer and extract_unsigned_integer.
940
941 2010-10-20  Vladimir Prus  <vladimir@codesourcery.com>
942
943         * remote.c (remote_get_threadlist): If we got empty
944         response, bail out immediately, and don't emit any
945         warnings.
946
947 2010-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
948
949         * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
950         for "mov pc, REG" as well.
951         (thumb_instruction_changes_pc): Likewise.
952
953 2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>
954
955          PR C++/11500:
956         * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
957         * eval.c (evaluate_subexp_standard): Check for overload of
958         'operator->'.
959         * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
960         (value_x_unop): Ditto.
961         * valops.c: Include "exceptions.h".
962         (find_overload_match): Throw NOT_FOUND_ERROR.
963         (value_struct_elt): Ditto.
964
965 2010-10-19  Tom Tromey  <tromey@redhat.com>
966
967         * python/py-cmd.c (cmdpy_function): Unreference exception state.
968
969 2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>
970
971         * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
972         * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
973         for conversion.
974         Make all other conversions illegal.
975
976 2010-10-18  Doug Evans  <dje@google.com>
977
978         * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
979         assumptions of when this case happens.  Print "<unnamed typedef>".
980
981 2010-10-18  Tom Tromey  <tromey@redhat.com>
982
983         * valprint.c (val_print_string): Pass 'encoding' to
984         LA_PRINT_STRING.
985
986 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
987
988         Fix the `stopped language detection' testcase for gcc-4.5.
989         * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
990         * symfile.c (set_initial_language): Move variable filename to a more
991         inner block.  Prefer LANGUAGE_OF_MAIN.
992         * symtab.c (language_of_main): New variable.
993         (set_main_name): Always reset LANGUAGE_OF_MAIN.
994         * symtab.h (language_of_main): New declaration.
995
996 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
997             Pedro Alves  <pedro@codesourcery.com>
998
999         * gdbthread.h (currently_stepping): New declaration.
1000         * infrun.c (currently_stepping): Remove the forward declaration.
1001         (currently_stepping): Make it global.
1002         * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1003         variables tp and step, initialized them.  Pass STEP to to_resume.
1004         Print also possibly "PTRACE_SINGLESTEP" if STEP.  Initialize LP->STEP.
1005         * remote.c (currently_stepping_callback): New.
1006         (remote_vcont_resume)
1007         <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1008         New variable tp.  Call currently_stepping_callback and step such
1009         thread.
1010
1011 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1012
1013         * infrun.c (follow_exec): Replace symbol_file_add_main by
1014         symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1015         breakpoint_re_set.
1016         * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1017         clear_symtab_users.
1018         * objfiles.c (free_all_objfiles): Likewise.
1019         * remote-m32r-sdi.c (m32r_load): Likewise.
1020         * solib-som.c (som_solib_create_inferior_hook): Likewise.
1021         * symfile.c (new_symfile_objfile): New comment for add_flags.  Call
1022         clear_symtab_users with ADD_FLAGS.
1023         (reread_symbols): Use parameter 0 for clear_symtab_users.
1024         (clear_symtab_users): New parameter add_flags.  Do not call
1025         breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1026         (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1027         * symtab.h (clear_symtab_users): New parameter add_flags.
1028
1029 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1030
1031         Fix GCC false warning.
1032         * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1033
1034 2010-10-16  Pierre Muller  <muller@ics.u-strasbg.fr>
1035
1036         * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1037         display of type of method arguments.
1038
1039 2010-10-15  Tom Tromey  <tromey@redhat.com>
1040
1041         PR python/11948:
1042         * varobj.c (value_get_print_value): Use val_print_string to print
1043         lazy strings.
1044         * python/py-prettyprint.c (print_string_repr): Use
1045         val_print_string to print lazy strings.  Fix cleanup logic.
1046         (print_children): Likewise.
1047         * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1048         * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1049         Change return type to 'void', add 'addr' argument.
1050         * value.h (val_print_string): Update.
1051         * valprint.c (val_print_string): Add 'encoding' argument.
1052         * printcmd.c (print_formatted): Update.
1053         * p-valprint.c (pascal_val_print): Update.
1054         * m2-valprint.c (print_unpacked_pointer): Update.
1055         (m2_print_array_contents): Likewise.
1056         * jv-valprint.c (java_value_print): Update.
1057         * f-valprint.c (f_val_print): Update.
1058         * c-valprint.c (c_val_print): Update.
1059         * auxv.c (fprint_target_auxv): Update.
1060
1061 2010-10-15  Doug Evans  <dje@google.com>
1062             Jan Kratochvil  <jan.kratochvil@redhat.com>
1063
1064         PR exp/12117
1065         * gdbtypes.c (check_typedef): Clean up function comment.
1066         Keep track of instance flags as we strip typedefs and create a new
1067         type to preserve them if necessary.
1068         * gdbtypes.h (type) <instance_flags>: Extend the comment.
1069
1070 2010-10-15  Pierre Muller  <muller@ics.u-strasbg.fr>
1071
1072         * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1073
1074 2010-10-14  Sami Wagiaalla  <swagiaal@redhat.com>
1075
1076         * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1077         * gdbtypes.c (rank_one_type): Move type comparison code out of here
1078         to...
1079         (types_equal): ...here. And changed it as follows:
1080         Outside of typedefs type must be of the same TYPE_CODE.
1081         When compairing two pointers or references they are equal if their
1082         targets are equal.
1083         Correct pointer conversions.
1084
1085 2010-10-14  Pierre Muller  <muller@ics.u-strasbg.fr>
1086
1087         * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1088         having fields without names.
1089
1090 2010-10-13  Tom Tromey  <tromey@redhat.com>
1091
1092         * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1093
1094 2010-10-13  Doug Evans  <dje@google.com>
1095
1096         New python module gdb.types.
1097         * NEWS: Document it.
1098         * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1099         * python/lib/gdb/types.py: New file.
1100
1101         * c-typeprint.c: Whitespace cleanup.
1102         (cp_type_print_method_args): Remove unnecessary forward decl.
1103         (cp_type_print_derivation_info): Ditto.
1104         (c_type_print_varspec_prefix): Mark as static at definition.
1105         (c_type_print_modifier): Fix arg descriptions.
1106
1107 2010-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1108
1109         * python/py-breakpoint.c (bppy_set_condition): New comment.
1110         * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1111         failed PyUnicode_Decode.
1112         (cmdpy_completer): Skip element for failed
1113         python_string_to_host_string.
1114         (cmdpy_init): Return -1 on failed python_string_to_host_string.
1115         * python/py-frame.c (frapy_read_var): Extend the function comment.
1116         * python/py-function.c (fnpy_init): Return -1 on failed
1117         python_string_to_host_string.
1118         * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1119         the function comment.
1120         (infpy_search_memory): Extend the function comment.  Remove the
1121         PyErr_SetString call on already set error state.
1122         * python/py-param.c (set_parameter_value): Extend the function
1123         comment.  Return -1 on failed python_string_to_host_string, twice.
1124         (set_attr): Extend the function comment.
1125         (compute_enum_values): Extend the function comment.  New variable
1126         back_to.  Protect self->enumeration by BACK_TO cleanups.  Return 0 on
1127         failed python_string_to_host_string.
1128         (get_doc_string): Call gdbpy_print_stack on failed
1129         python_string_to_host_string.
1130         (parmpy_init): Extend the function comment.
1131         * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1132         (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1133         failed python_string_to_host_string.
1134         * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1135         (valpy_binop, valpy_richcompare): Extend the function comment.
1136         * python/python.c
1137         (struct python_env) <error_type, error_value, error_traceback>: New
1138         fields.
1139         (restore_python_env): Handle PyErr_Occurred.  Call PyErr_Restore.
1140         (ensure_python_env): Call PyErr_Fetch.
1141         * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1142         failed convert_value_from_python.
1143         (value_get_print_value): Call gdbpy_print_stack on failed
1144         python_string_to_target_python_string.
1145
1146 2010-10-12  Tom Tromey  <tromey@redhat.com>
1147
1148         * python/py-prettyprint.c (search_pp_list): Fix error checking.
1149
1150 2010-10-12  Sami Wagiaalla  <swagiaal@redhat.com>
1151
1152         * gdbtypes.c (do_is_ancestor): New function.
1153         (is_ancestor): Use do_is_ancestor.
1154         (is_public_ancestor): Use do_is_ancestor.
1155
1156 2010-10-12  Pierre Muller  <muller@ics.u-strasbg.fr>
1157
1158         * ser-go32.c (struct dos_ops): Add missing fdopen field.
1159
1160 2010-10-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1161
1162         * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1163
1164 2010-10-11  Doug Evans  <dje@google.com>
1165
1166         * c-typeprint.c (c_type_print_modifier): Add note that this prints
1167         the address space id too.
1168
1169 2010-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1170
1171         Fix attaching to re-prelinked executables on ppc64.
1172         * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1173         initialize it, try to adjust FILESZ field by it.
1174
1175 2010-10-08  Daniel Jacobowitz  <dan@codesourcery.com>
1176
1177         * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1178         messages if info_verbose.
1179
1180 2010-10-08  Ken Werner  <ken.werner@de.ibm.com>
1181
1182         * valops.c (value_cast): Handle vector types.
1183         * valarith.c (value_binop): Widen scalar to vector if appropriate.
1184
1185 2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
1186
1187         * arm-tdep.c (thumb_expand_immediate): New function.
1188         (thumb_instruction_changes_pc): Likewise.
1189         (thumb2_instruction_changes_pc): Likewise.
1190         (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1191         prologue parsing.  Improved support for optimized code.
1192         (thumb_scan_prologue): Do not reply on line-number information,
1193         use same heuristics as arm_scan_prologue insead.
1194         (skip_prologue_function): Accept functions
1195         "__tls_get_addr" and "__aeabi_read_tp".
1196
1197 2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
1198             Daniel Jacobowitz  <dan@codesourcery.com>
1199
1200         * arm-tdep.c (thumb_in_function_epilogue_p)
1201         (arm_in_function_epilogue_p): New.
1202         (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1203         gdbarch_in_function_epilogue_p callback.
1204
1205 2010-10-07  Doug Evans  <dje@google.com>
1206
1207         * cc-with-index.sh (output_file): Default to a.out.
1208
1209         * dwarf2read.c (mapped_index): Rename member index_table to
1210         symbol_table and index_table_slots to symbol_table_slots.
1211         All uses updated.
1212         (create_symbol_hash_table): Renamed from create_index_table.
1213         All callers updated.
1214         (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1215         (write_hash_table): Rename local index_table to symbol_hash_table.
1216
1217         * addrmap.h (addrmap_foreach_fn): New typedef.
1218         (addrmap_foreach): Declare.
1219         * addrmap.c (struct addrmap_funcs): New member foreach.
1220         (addrmap_foreach): New function.
1221         (addrmap_fixed_foreach): New function.
1222         (addrmap_fixed_funcs): Update.
1223         (struct mutable_foreach_data): New struct.
1224         (addrmap_mutable_foreach_worker): New function.
1225         (addrmap_mutable_foreach): New function.
1226         (addrmap_mutable_funcs): Update.
1227
1228 2010-10-07  Paul Hilfinger  <hilfinger@adacore.com>
1229
1230         * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1231         more cases.
1232
1233 2010-10-07  Paul Hilfinger  <hilfinger@adacore.com>
1234
1235         * ada-lang.c (full_match): Declare.
1236         (ada_match_name): Rename to match_name (we should avoid prefixing static
1237         symbols with "ada_").
1238         (match_name): New name for ada_match_name.
1239         (struct ada_psym_data): Remove and replace with...
1240         (struct match_data): User data for map_matching_symbols.
1241         (ada_add_psyms): Remove.
1242         (aux_add_nonlocal_symbols): New function, used as callback for
1243         map_matching_symbols.
1244         (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1245         symbols.
1246         (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1247         (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1248         Rework to use map_matching_symbols instead of map_ada_symtabs.
1249         (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1250         * psymtab.c: Include dependency on dictionary.h.
1251         (match_partial_symbol): New function.
1252         (ada_lookup_partial_symbol): Remove.
1253         (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1254         (map_matching_symbols_psymtab): New function.
1255         (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1256         * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1257
1258 2010-10-06  Paul Hilfinger  <hilfinger@adacore.com>
1259
1260         * ada-lang.c (ada_match_name): Use new API for wild_match.
1261         (wild_match): Change API to be consistent with that of strcmp_iw;
1262         return 0 for a match, and switch operand order.
1263         (full_match): New function.
1264         (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1265         matching to allow use of hashing.
1266         * dictionary.c (struct dict_vector): Generalize iter_name_first,
1267         iter_name_next ot iter_match_first, iter_match_next.
1268         (iter_name_first_hashed): Replace with iter_match_first_hashed.
1269         (iter_name_next_hashed): Replace with iter_match_next_hashed.
1270         (iter_name_first_linear): Replace with iter_match_first_linear.
1271         (iter_name_next_linear): Replace with iter_match_next_linear.
1272         (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1273         (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1274         (dict_iter_match_first): New function.
1275         (dict_iter_match_next): New function.
1276         (dict_hash): New function.
1277         * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1278         * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
1279
1280 2010-10-06  Doug Evans  <dje@google.com>
1281
1282         * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1283
1284 2010-10-06  Ken Werner  <ken.werner@de.ibm.com>
1285
1286         * dwarf2read.c (read_tag_const_type): Handle const arrays.
1287
1288 2010-10-06  Doug Evans  <dje@google.com>
1289
1290         * Makefile.in (REQUIRED_SUBDIRS): New var.
1291         (subdir_do): Verify required subdir Makefiles exist.
1292
1293         Create subdir data-directory.
1294         * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1295         data-directory/Makefile.in.
1296         (SUBDIRS): Add data-directory.
1297         (all): Remove xml-syscall-copy dependency.
1298         (xml-syscall-copy): Moved to data-directory/Makefile.in as
1299         stamp-syscalls.
1300         (xml-syscall-install): Moved to data-directory/Makefile.in as
1301         install-syscalls.
1302         (install-only): Remove xml-syscall-install dependency.
1303         (all-data-directory): New rule.
1304         (data-directory/Makefile): New rule.
1305         * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1306         * configure: Regenerate.
1307         * data-directory/Makefile.in: New file.
1308         * python/lib/gdb/__init__.py: New file.
1309
1310 2010-10-06  Joel Brobecker  <brobecker@adacore.com>
1311
1312         Fix ARI warnings in advance_wild_match.
1313         * ada-lang.c (advance_wild_match): Delete local variable t2.
1314         Adjust code accordingly.  Minor reformatting.
1315
1316 2010-10-06  Ken Werner  <ken.werner@de.ibm.com>
1317
1318         * gdbtypes.h (struct main_type): Remove flag_nottext.
1319         (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1320         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1321         (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1322         * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1323         of TYPE_FLAG_NOTTEXT.
1324         (init_type): Remove the initialization of the flag_nottext field.
1325         (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1326         TYPE_FLAG_NOTTEXT.
1327         * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1328
1329 2010-10-04  Doug Evans  <dje@google.com>
1330
1331         * cc-with-index.sh: New file.
1332
1333         * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1334         function comment.
1335         (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1336         (create_cus_from_index, create_addrmap_from_index): Ditto.
1337         (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1338         (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1339         (dw2_do_expand_symtabs_matching): Ditto.
1340         (eq_strtab_entry, create_strtab, add_string): Ditto.
1341         (hash_strtab_entry): Ditto.
1342         (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1343         (create_index_table, create_mapped_symtab, find_slot): Ditto.
1344         (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1345         (write_hash_table, add_address_entry, write_psymbols): Ditto.
1346         (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1347         (write_psymtabs_to_index): Ditto.
1348
1349 2010-10-04  Joel Brobecker  <brobecker@adacore.com>
1350
1351         * ada-lang.c: #include "value.h".
1352         (ensure_lval): Delete advance declaration.  Remove gdbarch and sp
1353         arguments.  Implement using value_allocate_space_in_inferior
1354         instead of allocating memory from the stack.
1355         (make_array_descriptor): Remove gdbarch and sp parameters.  Update
1356         calls to ensure_lval.
1357         (ada_convert_actual): Remove gdbarch and sp parameters.  Update
1358         calls to make_array_descriptor and ensure_lval.
1359         * ada-lang.h (ada_convert_actual): Update declaration.
1360         * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1361
1362 2010-10-04  Doug Evans  <dje@google.com>
1363
1364         * python/python.c (_initialize_python): Define new function
1365         GdbSetPythonDirectory in python.  Use it to update sys.path and
1366         gdb.__path__.
1367
1368 2010-10-03  Paul Hilfinger  <hilfinger@adacore.com>
1369
1370         * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1371         incorporating and generalizing print_record_field_types.
1372         (print_record_field_types): Change return value and update comment.
1373         Re-implement using print_selected_record_field_types.
1374         (print_choices): Print "=>" here.
1375         Handle case of unencoded variant branch.
1376         (print_variant_clauses): Reformat comment.
1377         Special-case unencoded variant branch.
1378
1379 2010-10-03  Paul Hilfinger  <hilfinger@adacore.com>
1380
1381         * ada-lang.c (wild_match): Reimplement.
1382         Change API to eliminate unused length argument, reverse arguments and
1383         make 0 the 'true' return value.
1384         (advance_wild_match): New auxiliary function for wild_match to improve
1385         readability.
1386         (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1387         * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1388         API for wild_match.
1389         * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1390         wild_match.
1391         * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1392
1393 2010-10-01  Doug Evans  <dje@google.com>
1394
1395         * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1396         for `save gdb-index' command.
1397
1398 2010-10-01  Tom Tromey  <tromey@redhat.com>
1399
1400         * symfile.h (allocate_symtab): Update.
1401         * symfile.c (allocate_symtab): Make 'filename' const.
1402         * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1403         (add_psymbol_to_list): Likewise.
1404         * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1405         const.
1406         (add_psymbol_to_list): Update.
1407         * mdebugread.c (new_symtab): Make 'name' const.
1408         (psymtab_to_symtab_1): Make 'filename' const.
1409         * elfread.c (elfstab_offset_sections): Update.
1410         * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1411         (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1412         (psymtab_include_file_name): Update.
1413         * dbxread.c (find_stab_function_addr): Make 'filename' const.
1414         * buildsym.h (start_subfile): Update.
1415         * buildsym.c (start_subfile): Make arguments const.
1416
1417 2010-09-30  Ali Lakhia  <lakhia@alumni.utexas.net>
1418
1419         * fork-child.c (breakup_args): Fix crash if shell forking is
1420         disabled at compile time.
1421
1422 2010-10-01  Joel Brobecker  <brobecker@adacore.com>
1423
1424         * ada-lang.c (desc_bounds): Add handling of the case where
1425         the P_BOUNDS field is a pointer to a stub.
1426         (desc_data_target_type): Same for P_ARRAY field.
1427         (ada_check_typedef): Strip the typedef layers from the type
1428         found by ada_find_any_type.
1429
1430 2010-10-01  Joel Brobecker  <brobecker@adacore.com>
1431
1432         * sparc-tdep.c (sparc32_frame_align): New function.
1433         (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1434         * sparc64-tdep.c (sparc64_frame_align): New function.
1435         (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1436
1437 2010-09-30  H.J. Lu  <hongjiu.lu@intel.com>
1438
1439         * defs.h (MAX_REGISTER_SIZE): Set to 64.
1440
1441 2010-09-30  Tom Tromey  <tromey@redhat.com>
1442
1443         * symfile.h (struct sym_fns) <next>: Remove.
1444         (add_symtab_fns): Update.
1445         * symfile.c (sym_fns_ptr): New typedef.
1446         (symtab_fns): Now a VEC.
1447         (add_symtab_fns): Update.  Change argument type.
1448         (find_sym_fns): Update.  Change return type.
1449         (get_symfile_segment_data): Update.
1450         * objfiles.h (struct objfile) <sf>: Now const.
1451         * somread.c (som_sym_fns): Now const.  Update.
1452         * xcoffread.c (xcoff_sym_fns): Now const.  Update.
1453         * mipsread.c (ecoff_sym_fns): Now const.  Update.
1454         * machoread.c (macho_sym_fns): Now const.  Update.
1455         * elfread.c (elf_sym_fns): Now const.  Update.
1456         (elf_sym_fns_gdb_index): Likewise.
1457         * dbxread.c (aout_sym_fns): Now const.  Update.
1458         * coffread.c (coff_sym_fns): Now const.  Update.
1459
1460 2010-09-30  Tom Tromey  <tromey@redhat.com>
1461
1462         * value.c (value_primitive_field): Take 'offset' into account for
1463         packed field.
1464
1465 2010-09-30  Tom Tromey  <tromey@redhat.com>
1466
1467         * completer.c (count_struct_fields): Handle anonymous structs and
1468         unions.
1469         (add_struct_fields): Likewise.
1470
1471 2010-09-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
1472
1473         Fix printing parameters of inlined functions.
1474         * ada-lang.c (is_known_support_routine)
1475         (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1476         for find_frame_funname.
1477         * python/py-frame.c (frapy_name): Likewise.
1478         * stack.c (find_frame_funname): New parameter funcp.  Update the
1479         function comment.  Fill it in.
1480         (print_frame): New variable func.  Initialize it by
1481         find_frame_funname.  Print arguments only if FUNC is not NULL.  Use
1482         FUNC as the parameter of print_args_stub.
1483         * stack.h (find_frame_funname): New parameter funcp.  Remove the
1484         function declaration comment.
1485
1486 2010-09-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
1487
1488         PR corefiles/12071.
1489         * inferior.c (have_live_inferiors): New variables old_chain, inf and
1490         tp.  Iterate INFERIOR_LIST and call target_has_execution.
1491
1492 2010-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1493
1494         Fix GDB crash on inferior calls with self-referencing classes.
1495         * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1496         member fields.
1497
1498 2010-09-29  Doug Evans  <dje@google.com>
1499
1500         Workaround for gcc/45682.
1501         * dwarf2read.c (partial_die_info): New fields fixup_called,
1502         linkage_name.
1503         (guess_partial_die_structure_name): Renamed from guess_structure_name.
1504         Move definition next to use.  Use linkage_name to determine if class
1505         is in a namespace.  All callers updated.
1506         (fixup_partial_die): Return early if already called.
1507         Set fixup_called when done.
1508         (guess_full_die_structure_name): New function.
1509         (determine_prefix): Call it for class/struct/union dies if c++ and
1510         .debug_types section is present and parent is DW_TAG_compile_unit.
1511
1512 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1513
1514         * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1515         (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1516
1517 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1518
1519         * NEWS: Announce Ravenscar Profile support.
1520
1521 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1522             Jerome Guitton  <guitton@adacore.com>
1523
1524         * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1525         New files.
1526         * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1527         ravenscar-sparc-thread.o to gdb_target_obs.
1528
1529 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1530
1531         * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1532         * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1533
1534 2010-09-27  Pierre Muller  <muller@ics.u-strasbg.fr>
1535
1536         * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1537         (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1538         skip_main_prologue method.
1539
1540 2010-09-27  Tom Tromey  <tromey@redhat.com>
1541
1542         * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1543         (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1544         Only emit a given psymbol once.
1545         (struct signatured_type_index_data) <psyms_seen>: New field.
1546         (write_one_signatured_type): Update.
1547         (cleanup_htab): New function.
1548         (write_psymtabs_to_index): Update.  Create psyms_seen hash.  Bump
1549         version to 3.
1550         (save_gdb_index_command): Update index documentation.
1551
1552 2010-09-27  Tom Tromey  <tromey@redhat.com>
1553
1554         * bcache.c (expand_hash_table): Use hash_function, not hash.
1555
1556 2010-09-27  Tom Tromey  <tromey@redhat.com>
1557
1558         * gdb_wchar.h: Change minimum libiconv to 0x108.
1559
1560 2010-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1561
1562         Fix lost siginfo_t for inferior calls.
1563         * infrun.c
1564         (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1565         (save_inferior_thread_state): New variables regcache, gdbarch and
1566         siginfo_data.  Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1567         Move INF_STATE allocation later, pre-clear it.  Initialize REGISTERS
1568         using REGCACHE.
1569         (restore_inferior_thread_state): New variables regcache and gdbarch.
1570         Restore SIGINFO_DATA for matching GDBARCH.  Restore REGISTERS using
1571         REGCACHE.  Free also SIGINFO_DATA.
1572
1573 2010-09-24  Tom Tromey  <tromey@redhat.com>
1574
1575         * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1576         MAYBE_SWAPs.
1577         (dw2_map_symbol_names): Likewise.
1578
1579 2010-09-24  Sami Wagiaalla  <swagiaal@redhat.com>
1580
1581         * valops.c (find_oload_champ_namespace_loop): replace incorrect
1582         discard_cleanups do_cleanups.
1583
1584 2010-09-24  Pedro Alves  <pedro@codesourcery.com>
1585
1586         PR gdb/11842
1587
1588         * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1589         (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1590         si_code is < 0.  Check for si_code == SI_TIMER before checking for
1591         si_code < 0.
1592
1593 2010-09-24  Pedro Alves  <pedro@codesourcery.com>
1594
1595         * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1596
1597 2010-09-22  Joel Brobecker  <brobecker@adacore.com>
1598
1599         * ada-tasks.c (read_atcb): Do not compute the task ptid when
1600         debugging a core file.
1601
1602 2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1603
1604         Code cleanup.
1605         * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1606         (free_objfile) <objfile->name != NULL>: Remove the conditional around
1607         xfree.
1608         * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1609         * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1610         Remove.
1611         * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1612         Remove the conditional.
1613         * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1614
1615 2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1616
1617         * main.c: Include objfiles.h.
1618         (captured_main): New variable objfile.  Call
1619         load_auto_scripts_for_objfile for ALL_OBJFILES.
1620
1621 2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1622
1623         * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1624         DW_TAG_constant.
1625
1626 2010-09-22  Joel Brobecker  <brobecker@adacore.com>
1627
1628         * dwarf2read.c (scan_partial_symbols): Add handling of
1629         DW_TAG_constant DIEs.
1630         (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1631
1632 2010-09-22  Joel Brobecker  <brobecker@adacore.com>
1633
1634         * configure.ac: Add support for --enable-gdbserver.
1635         * configure: Regenerate.
1636
1637 2010-09-22  Sami Wagiaalla  <swagiaal@redhat.com>
1638
1639         PR C++/12028
1640         * valops.c (find_oload_champ_namespace_loop): removed incorrect
1641         'old_cleanups' reassignment.
1642
1643 2010-09-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1644
1645         * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1646         characters.
1647
1648 2010-09-16  Phil Muldoon  <pmuldoon@redhat.com>
1649
1650         PR mi/11407
1651         * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1652         read_var_value and common_val_print and print a warning.
1653
1654 2010-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1655
1656         * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1657         keep the list in alphabetical order.  Use longer e-mail address.
1658
1659 2010-09-15  Tom Tromey  <tromey@redhat.com>
1660
1661         * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1662
1663 2010-09-15  Tom Tromey  <tromey@redhat.com>
1664
1665         * charset.c (iconv_open): New define.
1666         (iconv): Likewise.
1667         (iconv_close): Likewise.
1668         (phony_iconv_open): Add "phony_" prefix.
1669         (phony_iconv_close): Likewise.
1670         (phony_iconv): Likewise.
1671         * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1672         Change how INTERMEDIATE_ENCODING is defined.
1673
1674 2010-09-15  Doug Evans  <dje@google.com>
1675
1676         * dwarf2read.c (struct die_info): Fix comment.
1677
1678 2010-09-15  Alan Modra  <amodra@gmail.com>
1679
1680         PR 4606
1681         * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1682         than setting SEC_NEVER_LOAD on sections that need not be copied.
1683
1684 2010-09-14  Tom Tromey  <tromey@redhat.com>
1685
1686         * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1687         (start_psymtab_common, allocate_psymtab, discard_psymtab):
1688         Declare.
1689         * symfile.h (extend_psymbol_list): Remove.
1690         (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1691         (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1692         * psymtab.c (extend_psymbol_list): Move earlier.  Now static.
1693
1694 2010-09-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
1695
1696         * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1697         Update the comment.
1698
1699 2010-09-14  Tom Tromey  <tromey@redhat.com>
1700
1701         PR symtab/8399:
1702         * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1703         for unrecognized frame base expression.
1704
1705 2010-09-14  Tom Tromey  <tromey@redhat.com>
1706
1707         PR exp/11803:
1708         * value.c (value_static_field): Use value_of_variable.
1709
1710 2010-09-14  Pierre Muller  <muller@ics.u-strasbg.fr>
1711
1712         * m32r-rom.c: Replace winsock.h with winsock2.h header.
1713         * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1714
1715 2010-09-13  Sami Wagiaalla  <swagiaal@redhat.com>
1716
1717         PR symtab/11992:
1718         * c-exp.y (classify_name): Check is_a_member_of_this before returning
1719         UNKNOWN_CPP_NAME.
1720
1721 2010-09-13  Joel Brobecker  <brobecker@adacore.com>
1722
1723         * NEWS: Add x86-lynxos to the list of platforms supported by
1724         gdbserver.
1725
1726 2010-09-13  Joel Brobecker  <brobecker@adacore.com>
1727
1728         * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1729
1730 2010-09-13  Tom Tromey  <tromey@redhat.com>
1731
1732         * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1733
1734 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1735
1736         * i386-tdep.c (i386_ymm_type): Set type name to
1737         builtin_type_vec256i.
1738
1739 2010-09-12  Michael Snyder  <msnyder@vmware.com>
1740
1741         * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1742
1743 2010-09-12  H.J. Lu  <hongjiu.lu@intel.com>
1744
1745         * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1746
1747 2010-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1748
1749         * amd64-tdep.c (amd64_register_name): Removed.
1750         (amd64_init_abi): Don't call set_gdbarch_register_name.
1751
1752         * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1753
1754         * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1755
1756 2010-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1757             Paul Bolle  <pebolle@tiscali.nl>
1758
1759         Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1760         * cli-logging.c (struct saved_output_files) <targerr>: New.
1761         (set_logging_redirect, pop_output_files, handle_redirections):
1762         Redirect also gdb_stdtargerr.
1763         * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1764         declarations.
1765         * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1766         also gdb_stdtargerr.
1767         * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1768         to the top.  Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1769         Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1770         * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1771         * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1772         New functions.
1773
1774 2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
1775
1776         * hppa-tdep.c (unwind_command): Use host_address_to_string function
1777         to display a host address.
1778         * monitor.c (monitor_read_memory): Likewise.
1779         * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1780
1781 2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
1782
1783         * coffread.c (struct coff_symbol): Change c_value type from `long' to
1784         `CORE_ADDRESS' as it might contain target addresses.
1785
1786 2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
1787
1788         * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1789         before cast to pointer to avoid warning.
1790
1791 2010-09-09  Kevin Buettner  <kevinb@redhat.com>
1792
1793         * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1794         type to be signed.
1795
1796 2010-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
1797
1798         * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1799         anonymous class partial DIEs.
1800
1801 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1802
1803         * dwarf2read.c (dwarf2_compute_name): Check that the first
1804         argument is a pointer.
1805
1806 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1807
1808         * dwarf2read.c (read_func_scope, read_structure_type)
1809         (read_common_block): Check for a NULL return from new_symbol.
1810
1811 2010-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
1812
1813         * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1814
1815 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1816
1817         * dwarf2read.c (read_structure_type): Move processing of
1818         fields and member functions from here...
1819         (process_structure_scope): ... to here.
1820
1821 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1822
1823         * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1824         the domain type.
1825         (gnuv3_make_method_ptr): Likewise.
1826
1827 2010-09-08  Tom Tromey  <tromey@redhat.com>
1828
1829         * breakpoint.c (create_breakpoint): Add missing _().
1830
1831 2010-09-08  Doug Evans  <dje@google.com>
1832
1833         * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1834
1835 2010-09-08  Tom Tromey  <tromey@redhat.com>
1836
1837         Revert:
1838         2010-09-01  Tom Tromey  <tromey@redhat.com>
1839         * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1840         symtab.h: Revert earlier change.
1841
1842 2010-09-09  Sami Wagiaalla  <swagiaal@redhat.com>
1843
1844         * psymtab.c (add_psymbol_to_bcache): Initialize
1845         obj_section.
1846         memset psymbol.ginfo.value to 0.
1847
1848 2010-09-06  Pedro Alves  <pedro@codesourcery.com>
1849
1850         * infrun.c (resume): Extend comment on ignoring single-step
1851         requests on vfork parents waiting for a vfork-done.
1852
1853 2010-09-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1854             Pedro Alves  <pedro@codesourcery.com>
1855
1856         * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1857         is NULL.
1858         * fork-child.c (startup_inferior) <resume_signal>: Use enum
1859         target_signal type.
1860         * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1861         calling strsignal.  Use enum target_signal type for saved_signo.
1862         (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1863         (linux_nat_wait_1): Use enum target_signal type for signo.  Use
1864         target_signal_to_host before calling strsignal.
1865         * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1866         TARGET_SIGNAL_0.
1867
1868 2010-09-06  Pedro Alves  <pedro@codesourcery.com>
1869             Jan Kratochvil  <jan.kratochvil@redhat.com>
1870
1871         * common/signals.c (ANY): Remove.
1872         (SET): No longer use ANY.
1873
1874 2010-09-06  Yao Qi  <yao@codesourcery.com>
1875
1876         * infrunc(resume): When inferior is waiting_for_vfork_done,
1877         clear step and don't use displaced stepping.
1878
1879 2010-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
1880
1881         * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1882         value specially.
1883
1884 2010-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1885
1886         Code cleanup - split print_stop_reason.
1887         * infrun.c (enum inferior_stop_reason): Remove.
1888         (print_stop_reason): Remove by splitting into ...
1889         (print_exited_reason, print_signal_exited_reason)
1890         (print_no_history_reason, print_signal_received_reason)
1891         (print_end_stepping_range_reason): ... these new functions.  Update
1892         the preceding comment.
1893         (handle_inferior_event): Change the calls to print_exited_reason,
1894         print_signal_exited_reason, print_no_history_reason,
1895         print_signal_received_reason, print_end_stepping_range_reason.
1896         (handle_step_into_function, handle_step_into_function_backward):
1897         Change the calls to print_end_stepping_range_reason.
1898
1899 2010-09-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1900
1901         * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1902         * cli-out.c: Include vec.h.
1903         (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1904         variable stream, initialize it, use it.
1905         (cli_redirect): New function comment.  Replace the stream and
1906         original_stream fields by the new streams field.  Remove the
1907         original_stream != NULL conditional, assert error on NULL instead.
1908         (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1909         (cli_out_data_ctor): Assert non-NULL stream.  Replace the stream and
1910         original_stream fields by the new streams field.
1911         (cli_out_set_stream): Replace the stream field by the new streams
1912         field.
1913         * cli-out.h: Include vec.h.
1914         (ui_filep): New typedef, call DEF_VEC_P for it.
1915         (struct cli_ui_out_data): Replace the stream and original_stream
1916         fields by the new streams field.
1917         * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1918         NULL first.  Extend the comment.
1919         (handle_redirections): Call ui_out_redirect with output.
1920         * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1921         calls outside of the TRY_CATCH block.
1922
1923 2010-09-03  Joel Brobecker  <brobecker@adacore.com>
1924
1925         GDB 7.2 released.
1926
1927 2010-09-02  Joel Brobecker  <brobecker@adacore.com>
1928
1929         Back out the following change:
1930         | 2010-06-29  Hui Zhu  <teawater@gmail.com>
1931         | * record.c (set_record_pic_cmdlist,
1932         | show_record_pic_cmdlist): New variables.
1933         | (set_record_pic_command,
1934         | show_record_pic_command): New functions.
1935         | (record_pic_function, record_pic_line, record_pic_enum,
1936         | set_record_pic_type, record_pic_hide_nofunction,
1937         | record_pic_hide_nosource, record_pic_hide_same): New variables.
1938         | (record_pic_fputs): New function.
1939         | (function_list, node_list, edge_list): New struct.
1940         | (function_list, node_list, edge_list): New variables.
1941         | (record_pic_cleanups, record_pic_node,
1942         | record_pic_edge, cmd_record_pic): New functions.
1943         | (_initialize_record): Add new commands for record pic.
1944
1945 2010-09-02  Daniel Jacobowitz  <dan@codesourcery.com>
1946
1947         * config.in, configure: Regenerated.
1948         * configure.ac: Check for waitpid.
1949         * ser-pipe.c (pipe_close): Wait for the program to exit.
1950
1951 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1952
1953         * cli/cli-logging.c: Include gdb_assert.h.
1954         (set_logging_overwrite): New function.
1955         (logging_redirect): New comment.
1956         (logging_no_redirect_file, set_logging_redirect)
1957         (pop_output_files) <logging_no_redirect_file>: New.
1958         (handle_redirections) <!logging_redirect>: New variable
1959         no_redirect_file.  Remove file autoclose for tee_file_new.  No longer
1960         discard cleanup for the close of former OUTPUT.  Set
1961         LOGGING_NO_REDIRECT_FILE.
1962         (handle_redirections) <logging_redirect>: gdb_assert
1963         LOGGING_NO_REDIRECT_FILE.
1964         (show_logging_command) <logging_redirect handling>: Adjust messages
1965         for SAVED_FILENAME not NULL.
1966         (_initialize_cli_logging): Install set_logging_overwrite and
1967         set_logging_redirect.
1968
1969 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1970
1971         * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1972
1973 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1974
1975         * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1976         (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1977         add $(GDB_WARN_CFLAGS_NO_FORMAT).
1978         (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1979
1980 2010-09-02  Yao Qi  <yao@codesourcery.com>
1981
1982         * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1983         number from a WIFSIGNALED status.
1984
1985 2010-09-01  Tom Tromey  <tromey@redhat.com>
1986
1987         * symtab.h (lookup_type_symbol): Declare.
1988         * symtab.c (lookup_symbol_in_language_full): Rename from
1989         lookup_symbol_in_language.  Add 'for_type' argument.
1990         (lookup_symbol_in_language): New function.
1991         (lookup_type_symbol): Likewise.
1992         (lookup_symbol_aux): Add 'for_type' argument.
1993         (match_symbol_aux): New function.
1994         (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1995         (match_transparent_type): New function.
1996         (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1997         * symfile.h (struct quick_symbol_functions)
1998         <pre_expand_symtabs_matching>: Remove.
1999         <expand_one_symtab_matching>: New field.
2000         * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2001         (pre_expand_symtabs_matching_psymtabs): Remove.
2002         (psym_functions): Update.
2003         * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2004         * dwarf2read.c (dw2_lookup_symbol): Update comment.
2005         (dw2_pre_expand_symtabs_matching): Remove.
2006         (dw2_expand_one_symtab_matching): New function.
2007         (dwarf2_gdb_index_functions): Update.
2008
2009 2010-09-01  Joel Brobecker  <brobecker@adacore.com>
2010
2011         * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2012
2013 2010-09-01  Marc Khouzam  <marc.khouzam@ericsson.com>
2014
2015         * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2016         as a feature reported by -list-target-features.
2017
2018 2010-09-01  Joel Brobecker  <brobecker@adacore.com>
2019
2020         * features/Makefile (WHICH): Add rs6000/powerpc-32.
2021         (powerpc-32.o, powerpc-32.c): New rules.
2022         (clean): Also remove powerpc-32.c.
2023         * regformats/rs6000/powerpc-32.dat: Generate.
2024
2025 2010-08-31  Sami Wagiaalla  <swagiaal@redhat.com>
2026
2027         * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2028         psymbol_bcache_init.
2029         * psymtab.h (psymbol_bcache_init): New function prototype.
2030         (psymbol_bcache_free): New function prototype.
2031         (psymbol_bcache_get_bcache): New function prototype.
2032         * psymtab.c (psymbol_bcache_init): New function.
2033         (psymbol_bcache_free): New function.
2034         (psymbol_bcache_full): New function.
2035         (psymbol_bcache_get_bcache): New function.
2036         (add_psymbol_to_bcache): use psymbol_bcache_full.
2037         * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2038         psymbol_bcache.
2039         * symmisc.c (print_symbol_bcache_statistics): Updated.
2040         (print_objfile_statistics): Updated.
2041         * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2042         psymbol_cache.
2043         (free_objfile): Use psymbol_bcache_free.
2044
2045 2010-08-31  Tom Tromey  <tromey@redhat.com>
2046
2047         PR c++/11961:
2048         * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2049         Don't set TYPE_NAME on the type.
2050
2051 2010-08-31  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
2052
2053         * infrun.c (set_exec_direction_func): Error out if target does not
2054         support reverse execution.
2055
2056 2010-08-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2057
2058         Make linux_get_siginfo_type `type *' unique.
2059         * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2060         (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2061         (linux_get_siginfo_type): New variable linux_gdbarch_data.  Initialize
2062         it.  Use linux_gdbarch_data->siginfo_type as a persistent storage.
2063         (_initialize_linux_tdep): New.
2064
2065 2010-08-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2066
2067         Code cleanup.
2068         * defs.h (find_memory_region_ftype): New typedef.
2069         (exec_set_find_memory_regions): Use it.
2070         * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2071         * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2072         * gcore.c (objfile_find_memory_regions): Likewise.
2073         * gnu-nat.c (gnu_find_memory_regions): Likewise.
2074         * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2075         * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2076         (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2077         find_memory_region_ftype.
2078         (insert_dbx_link_bpt_in_region): Likewise.
2079         (iterate_over_mappings): Likewise.  Drop the comment part about the
2080         function prototype.
2081         (find_memory_regions_callback): Use find_memory_region_ftype.
2082         (proc_find_memory_regions): Likewise.
2083         (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2084         find_memory_region_ftype.
2085         * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2086         * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2087
2088 2010-08-31  Sami Wagiaalla  <swagiaal@redhat.com>
2089
2090         * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2091         'static partial_symbol psymbol'.
2092         (psymbol_hash): New function.
2093         (psymbol_compare): New function.
2094         * bcache.c (hash_continue): New.
2095         (hash): Use hash_continue.
2096         * bcache.c: Add hash_function and compare_function
2097         pointers to bcache struct.
2098         (bcache_full): Use bcache->hash_function, and
2099         bcache->compare_function.
2100         (bcache_compare): New function.
2101         (bcache_xmalloc): Take hash_function and
2102         compare_function arguments and initialize the
2103         bcach's pointers.
2104         Updated comment.
2105         * objfiles.c (allocate_objfile): Updated.
2106         * symfile.c (reread_symbols): Updated.
2107         * python/py-type.c (typy_richcompare): Updated.
2108
2109 2010-08-30  Andre Poenitz  <andre.poenitz@nokia.com>
2110             Tom Tromey  <tromey@redhat.com>
2111
2112         PR python/11792:
2113         * python/py-value.c (valpy_get_dynamic_type): New function.
2114         (value_object_getset): Add "dynamic_type".
2115         (valpy_get_type): Fail on error.
2116
2117 2010-08-30  Yao Qi  <yao@codesourcery.com>
2118
2119         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2120         (arm_linux_syscall_next_pc): New.
2121         (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead. 
2122         (arm_linux_init_abi): Initialize syscall_next_pc.
2123         * arm-tdep.c (thumb_get_next_pc_raw):  Get next pc of SWI in Thumb mode.
2124         (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2125         * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc. 
2126         Declare arm_frame_is_thumb.
2127
2128 2010-08-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
2129
2130         Code cleanup.
2131         * breakpoint.c (bpstat_alloc): Remove unused prototype.
2132         (bpstat_alloc): Change parameters cbs to bs_link_pointer.  Adjust the
2133         code.
2134         (bpstat_stop_status): Change root_bs into bs_head and bs_link.  Adjust
2135         calls of bpstat_alloc.  Remove explicit bs chain termination.
2136
2137 2010-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2138
2139         Code cleanup.
2140         * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2141         (my_waitpid): Likewise.
2142
2143 2010-08-27  Doug Evans  <dje@google.com>
2144
2145         * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2146         as appropriate.
2147
2148 2010-08-27  Tom Tromey  <tromey@redhat.com>
2149
2150         * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2151         TYPE_FIELD_IGNORE_BITS.
2152
2153 2010-08-27  Doug Evans  <dje@google.com>
2154
2155         * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2156         the order they're defined in.  munmap .debug_types buffer.
2157
2158 2010-08-26  Doug Evans  <dje@google.com>
2159
2160         * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2161         (dw2_forget_cached_source_info): Rename local cu to per_cu.
2162         (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2163         (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2164         (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2165         (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2166         (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2167         (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2168         (write_psymtabs_to_index): Ditto.
2169
2170 2010-08-26  Pedro Alves  <pedro@codesourcery.com>
2171
2172         * NEWS: Mention libthread_db debugging with core files.
2173
2174 2010-08-26  Doug Evans  <dje@google.com>
2175
2176         * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2177         forward decl.  Pass pst->dirname to dwarf_decode_lines.
2178         (psymtab_include_file_name): New function.
2179         (dwarf_decode_lines): Call it.  Update comments.
2180
2181 2010-08-25  Pedro Alves  <pedro@codesourcery.com>
2182
2183         * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2184         compilation unit being different from target die's.
2185
2186 2010-08-24  Doug Evans  <dje@google.com>
2187
2188         PR symtab/11942
2189         * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2190         debug_types_type_hash.
2191         (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2192         All uses updated.
2193         (lookup_die_type): Renamed from tag_type_to_tag.  First look in
2194         appropriate type_hash table.  All callers updated.
2195         (allocate_signatured_type_table): Renamed from
2196         allocate_signatured_type_hash_table.  All callers updated.
2197         (create_signatured_type_table_from_index): Renamed from
2198         create_signatured_type_hash_from_index.  All callers updated.
2199         (read_die_type): Add comment.  Move actual reading to ...
2200         (read_die_type_1): ... here.  New function.
2201         (follow_die_ref_or_sig): Tweak comment.
2202         (set_die_type): Rewrite to use appropriate choice of
2203         debug_info_type_hash or debug_types_type_hash.
2204         (get_die_type_at_offset): New function.
2205         (get_die_type): Call it.
2206
2207 2010-08-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2208
2209         * python/py-type.c (typy_richcompare): Initialize worklist.
2210
2211 2010-08-24  Daniel Jacobowitz  <dan@codesourcery.com>
2212             Kazu Hirata  <kazu@codesourcery.com>
2213             Jonathan Larmour  <jifl@eCosCentric.com>
2214
2215         * arm-tdep.c: Include features/arm-with-m.c.
2216         (arm_psr_thumb_bit): New.  Update all uses of CPSR_T to
2217         call this function.
2218         (arm_pc_is_thumb): Add a gdbarch argument.  Update all callers.
2219         Check is_m after force-mode.
2220         (arm_gdbarch_init): Check the binary before the target description.
2221         Add check for M profile attribute.  If we have an M-profile device,
2222         but no target register description, use arm-with-m.  Recognize the
2223         new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2224         (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2225         * arm-tdep.h (XPSR_T): Define.
2226         (struct gdbarch_tdep): Add is_m member.
2227         * features/arm-m-profile.xml, features/arm-with-m.c,
2228         features/arm-with-m.xml: New files.
2229
2230 2010-08-23  Doug Evans  <dje@google.com>
2231
2232         * dwarf2read.c (read_structure_type): Add comment.
2233         (read_enumeration_type): Add comment.
2234         (process_enumeration_scope): Move definition of some locals
2235         closer to their use.
2236         (read_namespace_type): Add comment.
2237         (set_die_type): Fix typo in comment.
2238
2239 2010-08-23  Tom Tromey  <tromey@redhat.com>
2240
2241         PR python/11145:
2242         * python/py-value.c: Include expression.h.
2243         (valpy_do_cast): New function.
2244         (valpy_cast): Use it.
2245         (valpy_dynamic_cast): New function.
2246         (valpy_reinterpret_cast): Likewise.
2247         (value_object_methods): Add dynamic_cast, reinterpret_cast.
2248
2249 2010-08-23  Tom Tromey  <tromey@redhat.com>
2250
2251         PR python/11391:
2252         * python/py-value.c (valpy_nonzero): Don't throw error for other
2253         Value types.
2254
2255 2010-08-23  Tom Tromey  <tromey@redhat.com>
2256
2257         PR python/10676:
2258         * python/py-type.c: Include bcache.h, vec.h.
2259         (struct type_equality_entry): New.
2260         (compare_strings): New function.
2261         (check_types_equal): Likewise.
2262         (check_types_worklist): Likewise.
2263         (typy_richcompare): Likewise.
2264         (type_object_type): Set tp_richcompare field.
2265
2266 2010-08-23  Tom Tromey  <tromey@redhat.com>
2267
2268         PR python/10953:
2269         * python/py-type.c (typy_fields): Call check_typedef.
2270         (typy_template_argument): Add TRY_CATCH.
2271
2272 2010-08-23  Tom Tromey  <tromey@redhat.com>
2273
2274         PR python/11915:
2275         * python/py-type.c (typy_array): New function.
2276         (type_object_methods): Add "array".
2277
2278 2010-08-20  Pedro Alves  <pedro@codesourcery.com>
2279
2280         * python/python.c: Include "serial.h".
2281         (gdbpy_event_fds): Change type to `struct serial *' a array from
2282         int array.
2283         (gdbpy_run_events): Change parameters.  Use serial_readchar in
2284         place of read.
2285         (gdbpy_post_event): Use serial_write in place of write.
2286         (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2287         serial_async in place of add_file_handler.
2288
2289 2010-08-20  Pedro Alves  <pedro@codesourcery.com>
2290
2291         * serial.h (gdb_pipe, serial_pipe): Declare.
2292         * serial.c (serial_interface_lookup): Take a const char pointer.
2293         (serial_fdopen): Rename to ...
2294         (serial_fdopen_ops): ... this.  Add an OPS parameter and use it.
2295         Call the OPS' fdopen function if there is one.
2296         (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2297         (serial_pipe): New.
2298         (struct serial_ops) <fdopen>: New field.
2299
2300         * ser-mingw.c (free_pipe_state):
2301         (free_pipe_state): Close output on non-pex pipes.
2302         (pipe_windows_fdopen): New.
2303         (gdb_pipe): New.
2304         (_initialize_ser_windows): Register pipe_windows_fdopen.
2305         * ser-go32.c (gdb_pipe): New.
2306         * ser-pipe.c (pipe_close): Close file descriptor even if there's
2307         no state pointer.
2308         (pipe_ops): Delete.
2309         (gdb_pipe): New.
2310
2311 2010-08-20  Keith Seitz  <keiths@redhat.com>
2312
2313         PR symtab/11465:
2314         * dwarf2read.c (struct delayed_method_info): New struct.
2315         (struct dwarf2_cu): Add vector method_list.
2316         (scan_partial_symbols): Count methods for union, class, structure,
2317         and interface types.
2318         (add_to_method_list): New function.
2319         (free_delayed_list): New function.
2320         (compute_delayed_physnames): New function.
2321         (process_full_comp_unit): Make a cleanup for the CU's delayed
2322         physname list, compute the delayed physnames, and free the
2323         the list.
2324         (dwarf2_add_member_fn): For C++ and Java, delay the computation
2325         of the physname until after the CU is read.
2326
2327         * dwarf2read.c (read_structure_type): Check if the current
2328         DIE's type was already completed after dwarf2_full_name
2329         was called.
2330
2331 2010-08-19  Stan Shebs  <stan@codesourcery.com>
2332
2333         * NEWS: Mention some additional changes.
2334
2335 2010-08-19  Tom Tromey  <tromey@redhat.com>
2336
2337         * Makefile.in (install-python): Add DESTDIR.
2338
2339 2010-08-19  Doug Evans  <dje@google.com>
2340
2341         PR exp/11926
2342         * parser-defs.h (parse_float, parse_c_float): Declare.
2343         * parse.c (parse_float, parse_c_float): New function.
2344         * c-exp.y (parse_number): Call parse_c_float.
2345         * objc-exp.y (parse_number): Ditto.
2346         * p-exp.y (parse_number): Ditto.  Use ANSI/ISO-style definition.
2347         * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2348
2349 2010-08-19  Joel Brobecker  <brobecker@adacore.com>
2350
2351         * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2352         the arguments in the correct order.
2353         * symtab.c (maybe_add_partial_symtab_filename): Declare
2354         the arguments in the correct order.
2355
2356 2010-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2357
2358         * varobj.c (varobj_create): Replace variable old_fi with old_id,
2359         initialize it by null_frame_id, wrap its usage by get_frame_id,
2360         frame_id_p and frame_find_by_id.
2361
2362 2010-08-18  Tom Tromey  <tromey@redhat.com>
2363
2364         PR python/11900:
2365         * configure: Rebuild.
2366         * configure.ac: Add install-python to CONFIG_INSTALL.
2367         * Makefile.in (install-python): New.
2368
2369 2010-08-18  Doug Evans  <dje@google.com>
2370
2371         * gdb_assert.h (gdb_assert_not_reached): New macro.
2372         (gdb_assert_fail): Fix typo in comment.
2373         * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2374         gdb_assert (0).
2375         * darwin-nat.c (darwin_check_new_threads): Ditto.
2376         * dwarf2read.c (dwarf2_get_section_info): Ditto.
2377         (munmap_section_buffer): Ditto.
2378         * m32c-tdep.c (make_types): Ditto.
2379         (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2380         * macroexp.c (get_character_constant): Ditto.
2381         (get_string_literal): Ditto.
2382         * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2383         (mep_pseudo_cr_index, mep_register_type): Ditto.
2384         (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2385         (mep_get_insn, mep_analyze_prologue): Ditto.
2386         * objfiles.c (qsort_cmp): Ditto.
2387         * prologue-value.c (pv_is_identical): Ditto.
2388         * record.c (record_get_loc): Ditto.
2389         * value.c (value_static_field): Ditto.
2390         * xtensa-tdep.c (call0_track_op): Ditto.
2391
2392 2010-08-18  Tom Tromey  <tromey@redhat.com>
2393
2394         PR symtab/11919:
2395         * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2396         * parse.c (parse_field_expression): Use RETURN_MASK_ERROR.  Move
2397         name-copying lower.  Document exception behavior.
2398         * completer.c (expression_completer): Catch exceptions from
2399         parse_field_expression.
2400
2401 2010-08-18  Pedro Alves  <pedro@codesourcery.com>
2402
2403         PR corefile/8210
2404
2405         * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2406         workaround on core files.
2407         (try_thread_db_load_1): Don't try enabling thread event reporting
2408         on core files.
2409         (thread_db_load): Allow thread_db on core files.
2410         (attach_thread): Don't check thread signals on core files, nor try
2411         really attaching to the thread, nor enabling thread event event
2412         reporting.
2413         (thread_db_detach): Don't try disabing thread event reporting or
2414         removing thread event breakpoints when debugging a core file.
2415         (find_new_threads_callback): Don't try enabling thread event
2416         reporting on core files.
2417         (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2418         debugging a core file.
2419         (thread_db_find_new_threads): Don't update thread
2420         cores (processors) when debugging a core (dump).
2421
2422 2010-08-18  Pedro Alves  <pedro@codesourcery.com>
2423
2424         PR corefile/8210
2425
2426         * corelow.c (add_to_thread_list): Don't use
2427         gdbarch_core_reg_section_encodes_pid.  Use bfd_core_file_pid.
2428         (get_core_register_section): Don't use
2429         gdbarch_core_reg_section_encodes_pid.
2430
2431         * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2432         * gdbarch.h, gdbarch.c: Regenerate.
2433         * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2434         gdbarch_core_reg_section_encodes_pid.
2435         * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2436         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2437         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2438
2439 2010-08-18  Yao Qi  <yao@codesourcery.com>
2440
2441         * MAINTAINERS : Add myself under Write After Approval.
2442
2443 2010-08-17  Tom Tromey  <tromey@redhat.com>
2444
2445         * NEWS: Mention template parameter support.
2446
2447 2010-08-17  Pedro Alves  <pedro@codesourcery.com>
2448
2449         PR breakpoints/11371
2450
2451         * breakpoint.c (decref_bp_location): Assert the reference count is
2452         sane.
2453
2454 2010-08-17  Pedro Alves  <pedro@codesourcery.com>
2455
2456         PR breakpoints/11371
2457
2458         * breakpoint.c (breakpoint_init_inferior): Decrement the
2459         location's reference count instead of deleting right away.
2460         (bpstat_free): Decrement the location's reference count.  Make
2461         static.
2462         (bpstat_copy): Increment the location's reference count.
2463         (bpstat_find_breakpoint): Adjust.
2464         (bpstat_num): Adjust.
2465         (print_it_typical): Adjust.  Use the breakpoint pointer in the
2466         bpstat instead of the location's owner.
2467         (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2468         Adjust to record the location's owner in the bpstat.
2469         (watchpoint_check): Use the breakpoint pointer in the bpstat
2470         instead of the location's owner.
2471         (bpstat_check_breakpoint_conditions): Don't handle
2472         bp_watchpoint_scope here.  Use the breakpoint pointer in the
2473         bpstat instead of the location's owner.
2474         (bpstat_stop_status): Defer inferior function calls to after
2475         building the bpstat list.  Handle bp_watchpoint_scope here.  Use
2476         the breakpoint pointer in the bpstat instead of the location's
2477         owner.
2478         (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2479         the location's owner.
2480         (free_bp_location): Don't walk bpstats clearing locations.
2481         (incref_bp_location): New.
2482         (decref_bp_location): New.
2483         (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2484         instead of the location's owner.
2485         (update_global_location_list): Clear the location's owner, and
2486         decrement the location's reference count instead of deleting it
2487         right away.
2488         (breakpoint_retire_moribund): Decrement the location's reference
2489         count instead of deleting it right away.
2490         (bpstat_remove_bp_location): Delete.
2491         (bpstat_remove_breakpoint): New.
2492         (bpstat_remove_bp_location_callback): Delete.
2493         (bpstat_remove_breakpoint_callback): New.
2494         (delete_breakpoint): Iterate over all threads' stop_bpstat's
2495         clearing references to the breakpoint that is being deleted.
2496
2497         * breakpoint.h (struct bp_location) <refc>: New field.
2498         <owner>: Update comments.
2499         (bpstat_free): Delete declaration.
2500         (struct bpstats): Change the type of the breakpoint_at field to
2501         struct breakpoint point, from struct bp_location pointer.  Add new
2502         field bp_location_at.
2503
2504 2010-08-16  Tom Tromey  <tromey@redhat.com>
2505
2506         * NEWS: Fix typo.
2507
2508 2010-08-16  Tom Tromey  <tromey@redhat.com>
2509
2510         * NEWS: Mention watch -location.
2511
2512 2010-08-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2513
2514         * breakpoint.c (update_watchpoint): Add source empty line.  Prefer
2515         EXP_STRING_REPARSE to EXP_STRING.
2516         (watch_command_1): Set also EXP_STRING_REPARSE.
2517         (delete_breakpoint): Free also EXP_STRING_REPARSE.
2518         * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2519         Update comment for exp_string.
2520
2521 2010-08-16  Tom Tromey  <tromey@redhat.com>
2522
2523         * value.c (release_value): Clear 'next' pointer.
2524         * breakpoint.c (watch_command_1): Add 'just_location' argument.
2525         (watch_command_wrapper): Update.
2526         (watch_maybe_just_location): New function.
2527         (watch_command): Update.
2528         (rwatch_command_wrapper): Update.
2529         (rwatch_command): Update.
2530         (awatch_command_wrapper): Update.
2531         (awatch_command): Update.
2532         (check_for_argument): New function.
2533         (_initialize_breakpoint): Update help text.
2534
2535 2010-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
2536
2537         * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2538         typedef'ed function types correctly.
2539
2540 2010-08-13  Tom Tromey  <tromey@redhat.com>
2541
2542         * python/python-internal.h (gdbpy_get_hook_function): Don't
2543         declare.
2544
2545 2010-08-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2546
2547         * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2548         static.
2549
2550 2010-08-13  Ken Werner  <ken.werner@de.ibm.com>
2551
2552         * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2553         the format strings to be compatible with Python 2.4.
2554
2555 2010-08-13  Vladimir Prus  <vladimir@codesourcery.com>
2556
2557         Easier and more stubborn MI memory read commands.
2558
2559         * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2560         and data-write-memory-bytes.
2561         * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2562         (mi_cmd_data_write_memory_bytes): New.
2563         * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2564         (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2565         New.
2566         (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2567         * target.c (target_read_until_error): Remove.
2568         (read_whatever_is_readable, free_memory_read_result_vector)
2569         (read_memory_robust): New.
2570         * target.h (target_read_until_error): Remove.
2571         (struct memory_read_result, free_memory_read_result_vector)
2572         (read_memory_robust): New.
2573
2574 2010-08-13  Hui Zhu  <teawater@gmail.com>
2575
2576         * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2577         (read_comp_unit): Initialize back_to.
2578
2579 2010-08-12  Daniel Jacobowitz  <dan@codesourcery.com>
2580             Pedro Alves  <pedro@codesourcery.com>
2581
2582         * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2583         (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2584         (struct partial_die_info) <has_template_arguments>: New field.
2585         <num_attrs>: Change type to unsigned char.
2586         <building_fullname>: New field.
2587         (dwarf2_build_psymtabs_hard): Set reading_partial_symbols.  Only
2588         allocate a CU if we don't have one already.  Add a cleanup for the
2589         CU.
2590         (partial_die_full_name): Handle template arguments not in
2591         DW_AT_name.
2592         (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2593         (load_full_comp_unit): Only allocate a CU if we don't have one
2594         already.
2595         (do_ui_file_peek_last): New.
2596         (dwarf2_compute_name): Handle template parameters not in
2597         DW_AT_name.
2598         (read_comp_unit): Read and free abbrevs if not read yet.
2599         (load_partial_dies): Handle template arguments not in DW_AT_name.
2600         (find_partial_die): If we have a CU, but no a partial dies yet,
2601         also read in the CU.
2602         (dwarf2_const_value_attr): New, abstracted out from
2603         dwarf2_const_value.
2604         (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2605         dwarf2_const_value_attr.
2606         (determine_prefix): Detect and break loops created by RCVT's debug
2607         info.
2608         (maybe_queue_comp_unit): Bail out early if reading partial
2609         symbols.
2610         (follow_die_offset): Load full CU if we have no dies.
2611         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2612         * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2613
2614 2010-08-11  Tom Tromey  <tromey@redhat.com>
2615             Phil Muldoon  <pmuldoon@redhat.com>
2616
2617         * python/python.c (gdbpy_run_events): New function.
2618         (gdbpy_post_event): Likewise.
2619         (gdbpy_initialize_events): Likewise.
2620         (_initialize_python): Call gdbpy_initialize_events.
2621
2622 2010-08-11  Ken Werner  <ken.werner@de.ibm.com>
2623
2624         * gdb/valarith.c (vector_binop): New function.
2625         (scalar_binop): Likewise.
2626         (value_binop): Call scalar_binop or vector_binop depending on the types.
2627         * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2628         (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2629         to pointers.
2630         * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2631
2632 2010-08-11  Brad Roberts  <braddr@puremagic.com>
2633
2634         * d-lang.c (extract_identifiers): Handle multiple digits.
2635
2636 2010-08-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2637
2638         Code cleanup.
2639         * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2640         Rename to dummy_frame_unwind.
2641         (dummy_frame_unwind): Remove.
2642         * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2643         * frame-unwind.c (frame_unwind_init): Use address of
2644         dummy_frame_unwind and inline_frame_unwind.
2645         * frame.c (create_sentinel_frame): Use address of
2646         sentinel_frame_unwind.
2647         * inline-frame.c (inline_frame_unwinder): Rename to
2648         inline_frame_unwind.
2649         (inline_frame_unwind): Remove.
2650         * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2651         * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2652         sentinel_frame_unwind.
2653         (sentinel_frame_unwind): Remove.
2654         * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2655         struct.
2656
2657 2010-08-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2658
2659         Code cleanup.
2660         * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2661         and returned value.  New comment from frame-unwind.h.
2662         * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2663         Extend the comment.
2664         * frame.c (get_frame_id, frame_unwind_register_value)
2665         (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2666         (get_frame_type, frame_unwind_arch): Do not use the return value of
2667         frame_unwind_find_by_frame.
2668
2669 2010-08-11  Phil Muldoon  <pmuldoon@redhat.com>
2670             Thiago Jung Bauermann  <bauerman@br.ibm.com>
2671             Tom Tromey  <tromey@redhat.com>
2672
2673         * python/python.c (gdbpy_solib_address):  New function.
2674         (gdbpy_decode_line): Likewise.
2675
2676 2010-08-10  Tom Tromey  <tromey@redhat.com>
2677
2678         Revert gdb-add-index addition:
2679         * Makefile.in (install-only): Don't install gdb-add-index.
2680         * gdb-add-index.sh: Remove.
2681
2682 2010-08-09  Kevin Buettner  <kevinb@redhat.com>
2683
2684         * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2685         `target_has_execution' check with `to_has_memory' check.
2686         (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2687         (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2688         with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2689
2690 2010-08-09  Kevin Buettner  <kevinb@redhat.com>
2691
2692         * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2693         (resume_siggnal, resume_step): Move these static globals...
2694         (struct sim_inferior_data): ...into this new struct.
2695         (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2696         New static globals.
2697         (gdb_callback, callbacks_initialized): Move these globals to
2698         a point earlier in the file.
2699         (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2700         (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2701         (gdbsim_close_inferior, gdbsim_resume_inferior)
2702         (gdbsim_stop_inferior): New functions.
2703         (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2704         New constants.
2705         (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2706         (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2707         (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2708         (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2709         (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2710         (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2711         new local variable `sim_data' in each of these functions.  Use
2712         `sim_data' to reference former globals `program_loaded',
2713         `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2714         `resume_step'.
2715         (gdbsim_open): Remove local variable `argv'.  Put results of call
2716         to `gdb_buildargv' in `sim_argv' rather than in `argv'.  Don't
2717         make a cleanup for it.  Free it though when a sim instance cannot
2718         be obtained.
2719         (gdbsim_close): Free sim_argv and null it out as appropriate.
2720         Close sim instances in all inferiors.
2721         (gdbsim_cntrl_c): Stop all inferiors.
2722         (gdbsim_wait): 
2723         (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2724
2725 2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>
2726
2727         * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2728         function after symbol construction is complete.
2729         Do the same for template symbol addition to template_symbols list.
2730
2731 2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>
2732
2733         * symtab.c (symbol_get_demangled_name): Remove assertion and
2734         return NULL when language_specific.cplus_specific is not initialized.
2735         * stabsread.c (define_symbol): Set the name before calling
2736         cp_scan_for_anonymous_namespaces.
2737
2738 2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>
2739
2740         * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2741         SYMBOL_SET_LANGUAGE.
2742         (symbol_init_language_specific): Renamed to symbol_set_language.
2743         * symtab.c (symbol_init_language_specific): Removed redundant check
2744         for language_cplus.
2745         Renamed to symbol_set_language.
2746         * stabsread.c (define_symbol): Updated.
2747         (read_enum_type): Updated
2748         * psymtab.c (add_psymbol_to_bcache): Updated.
2749         * minsyms.c (install_minimal_symbols): Updated.
2750         * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2751         SYMBOL_LANGUAGE to set the language.
2752         * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2753         * mdebugread.c (new_symbol): Ditto.
2754         * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2755         * dwarf2read.c (new_symbol_full): Ditto.
2756         * jv-lang.c (add_class_symbol): Ditto.
2757
2758 2010-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2759
2760         * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2761         (make_cleanup_restore_page_info)
2762         (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2763         * gdbcmd.h (execute_command_to_string): New declaration.
2764         * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2765         (make_cleanup_restore_ui_file): Move to utils.c
2766         (execute_gdb_command) <to_string>: Move ...
2767         * top.c (execute_command_to_string): ... here.  Call
2768         set_batch_flag_and_make_cleanup_restore_page_info.
2769         * utils.c (make_cleanup_restore_integer): New source file blank line.
2770         (make_cleanup_restore_uinteger): New.
2771         (struct restore_ui_file_closure, do_restore_ui_file)
2772         (make_cleanup_restore_ui_file): Move here from python/python.c.
2773         (init_page_info) <batch_flag>
2774         (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2775         (set_batch_flag_and_make_cleanup_restore_page_info): New.
2776
2777 2010-08-06  Maciej W. Rozycki  <macro@codesourcery.com>
2778
2779         * thread.c (add_thread_silent): Use null_ptid instead of
2780         minus_one_ptid while getting rid of stale inferior_ptid.
2781
2782 2010-08-06  Corinna Vinschen  <vinschen@redhat.com>
2783
2784         * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2785         Throughout, call read_encoded_value with ptr_size rather than addr_size.
2786         (decode_frame_entry_1): Remove redundant setting of
2787         addr_size.  Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2788         to determine addr_size in Dwarf versions < 4.  Set ptr_size dependent
2789         on examined frame section.  Add comment to explain why.
2790         * gdbarch.sh (dwarf2_addr_size): Define as variable.  Add lengthy
2791         comment to explain usage.
2792         * gdbarch.c: Regenerate.
2793         * gdbarch.h: Regenerate.
2794
2795         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2796
2797 2010-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2798
2799         Code cleanup.
2800         * varobj.c (varobj_create): Move variables fi, old_fi and block to
2801         a more inner block.
2802
2803 2010-08-05  Pedro Alves  <pedro@codesourcery.com>
2804
2805         * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2806         (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2807         (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2808         (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2809         linux-tdep.o to gdb_target_obs.
2810
2811 2010-08-05  Marc Khouzam  <marc.khouzam@ericsson.com>
2812
2813         * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
2814         argument.
2815
2816 2010-08-05  Hui Zhu  <teawater@gmail.com>
2817
2818         * mips-linux-tdep.c(regset.h): New include.
2819         (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2820         mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2821         mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2822         mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2823         mips_linux_regset_from_core_section): New functions.
2824         (fetch_core_registers, regset_core_fns): Deleted.
2825         (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2826         Deleted regset_core_fns.
2827         * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2828         tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2829         * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2830         and fpregset64.
2831
2832 2010-08-04  Pedro Alves  <pedro@codesourcery.com>
2833
2834         * s390-tdep.c: Include linux-tdep.h.
2835         (s390_gdbarch_init): Call linux_init_abi.
2836
2837 2010-08-04  Pedro Alves  <pedro@codesourcery.com>
2838
2839         * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2840         instead of printing "Thread" here.
2841         * linux-tdep.c: Include inferior.h.
2842         (linux_core_pid_to_str): New.
2843         (linux_init_abi): New.
2844         * linux-tdep.h (linux_init_abi): Declare.
2845         * alpha-linux-tdep.c: Include linux-tdep.h.
2846         (alpha_linux_init_abi): Call linux_init_abi.
2847         * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2848         * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2849         * frv-linux-tdep.c: Include linux-tdep.h
2850         (frv_linux_init_abi): Call linux_init_abi.
2851         * hppa-linux-tdep.c: Include linux-tdep.h
2852         (hppa_linux_init_abi): Call linux_init_abi.
2853         * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2854         * ia64-linux-tdep.c: Include linux-tdep.h.
2855         (ia64_linux_init_abi): Call linux_init_abi.
2856         * m32r-linux-tdep.c: Include linux-tdep.h.
2857         (m32r_linux_init_abi): Call linux_init_abi.
2858         * m68klinux-tdep.c: Include linux-tdep.h.
2859         (m68k_linux_init_abi): Call linux_init_abi.
2860         * microblaze-linux-tdep.c: Include linux-tdep.h.
2861         (microblaze_linux_init_abi): Call linux_init_abi.
2862         * mips-linux-tdep.c: Include linux-tdep.h.
2863         (mips_linux_init_abi): Call linux_init_abi.
2864         * mn10300-linux-tdep.c: Include linux-tdep.h.
2865         (am33_linux_init_osabi): Call linux_init_abi.  Rename the
2866         'gdbinfo' parameter to 'info'.
2867         * ppc-linux-tdep.c: Include linux-tdep.h.
2868         (ppc_linux_init_abi): Call linux_init_abi.
2869         * sh-linux-tdep.c: Include linux-tdep.h.
2870         (sh_linux_init_abi): Call linux_init_abi.
2871         * sparc-linux-tdep.c: Include linux-tdep.h.
2872         (sparc32_linux_init_abi): Call linux_init_abi.
2873         * sparc64-linux-tdep.c: Include linux-tdep.h.
2874         (sparc64_linux_init_abi): Call linux_init_abi.
2875         * xtensa-linux-tdep.c: Include linux-tdep.h.
2876         (xtensa_linux_init_abi): Call linux_init_abi.
2877         * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2878         (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2879         callback.
2880
2881 2010-08-03  Doug Evans  <dje@google.com>
2882
2883         * breakpoint.c (bpdisp_text): Constify bpdisps.
2884         * solib-svr4.c (solib_break_names): Constify.
2885         (bkpt_names, main_name_list): Constify.
2886         (match_main): Constify soname arg.
2887         (bfd_lookup_symbol): Remove unnecessary forward decl.
2888         Constify symname arg.
2889         (enable_break): Constify bkpt_namep.
2890         * symtab.c (search_symbols): Constify types, types2, types3, types4.
2891         (symtab_symbol_info): Constify classnames.
2892
2893 2010-08-03  Phil Muldoon  <pmuldoon@redhat.com>
2894
2895         * NEWS: Document Python value inferior function calls.
2896
2897 2010-08-02  Doug Evans  <dje@google.com>
2898
2899         * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2900
2901 2010-07-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
2902
2903         * linux-thread-db.c (libthread_db_debug): New variable.
2904         (thread_db_find_new_threads_silently): Control verbosity with it.
2905         (try_thread_db_load_1, try_thread_db_load): Likewise.
2906         (find_new_threads_once): Likewise.
2907         (_initialize_thread_db): Set/show it.
2908
2909 2010-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2910
2911         * common/signals.c (signals): Move the content to signals.def.
2912         Include it.  Remove the INDENT comments.
2913
2914 2010-07-30  Tom Tromey  <tromey@redhat.com>
2915
2916         * Makefile.in (install-only): Install gdb-add-index.
2917         * gdb-add-index.sh: New file.
2918
2919 2010-07-31  Renquan Cheng  <crq@gcc.gnu.org>
2920
2921         * MAINTAINERS: Add myself for write after approval privileges.
2922
2923 2010-07-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
2924
2925         * symfile.c (addr_section_name): New function.
2926         (addrs_section_compar): Use it.
2927         (addr_info_make_relative): Use it.  Move variable sect_name into a more
2928         inner block.  Make ".dynbss" and ".sdynbss" checks more strict.
2929
2930 2010-07-30  Tom Tromey  <tromey@redhat.com>
2931
2932         * configure: Rebuild.
2933         * configure.ac: Add missing case for Python 2.7.
2934
2935 2010-07-29  DJ Delorie  <dj@redhat.com>
2936
2937         * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2938         conditions.
2939
2940 2010-07-29  Pedro Alves  <pedro@codesourcery.com>
2941
2942         * PROBLEMS: Remove mention of all problems.
2943
2944 2010-07-28  Pedro Alves  <pedro@codesourcery.com>
2945
2946         PR build/11848
2947         * configure.ac: Check for wresize.
2948         * configure, config.in: Regenerate.
2949         * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2950         with HAVE_WRESIZE.
2951
2952 2010-07-28  Tom Tromey  <tromey@redhat.com>
2953
2954         PR python/11060:
2955         * python/py-type.c (typy_legacy_template_argument): New function,
2956         extracted from typy_template_argument.
2957         (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT.  Return a
2958         value when needed.
2959
2960 2010-07-28  Oleg Nesterov  <oleg@redhat.com>
2961
2962         * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2963
2964 2010-07-27  Tom Tromey  <tromey@redhat.com>
2965
2966         * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2967
2968 2010-07-28  Daniel Jacobowitz  <dan@codesourcery.com>
2969
2970         * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2971         handling DW_AT_object_pointer, and workaround GCC PR 43053.
2972
2973 2010-07-28  Tom Tromey  <tromey@redhat.com>
2974
2975         * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2976
2977 2010-07-28  Joel Brobecker  <brobecker@adacore.com>
2978
2979         * remote.c (remote_download_tracepoint): Add missing gettext markup.
2980         * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2981
2982 2010-07-28  Joel Brobecker  <brobecker@adacore.com>
2983
2984         * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2985         down, just before the block that parse the breakpoint addr_string.
2986
2987 2010-07-28  Tom Tromey  <tromey@redhat.com>
2988
2989         PR c++/9946:
2990         * symfile.c (reread_symbols): Clear template_symbols.
2991         * symtab.h (struct symbol) <is_cplus_template_function>: New
2992         field.
2993         (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2994         (struct template_symbol): New.
2995         * symtab.c (lookup_symbol_aux_local): Use
2996         cp_lookup_symbol_imports_or_template.
2997         * objfiles.h (struct objfile) <template_symbols>: New field.
2998         * objfiles.c (relocate_one_symbol): New function.
2999         (objfile_relocate1): Use it.  Relocate isolated symbols.
3000         * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3001         template_arguments>: New fields.
3002         (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3003         (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3004         (TYPE_TEMPLATE_ARGUMENT): Likewise.
3005         (lookup_typename): Update.
3006         * gdbtypes.c (lookup_typename): Constify "block" argument.
3007         * dwarf2read.c: Include vec.h.
3008         (symbolp): New typedef.
3009         (read_func_scope): Read template arguments.  Allocate a
3010         template_symbol when needed.
3011         (read_structure_type): Read template arguments.
3012         (new_symbol_full): New function, from new_symbol.  Handle
3013         DW_TAG_template_type_param and DW_TAG_template_value_param.
3014         (new_symbol): Rewrite as wrapper.
3015         * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3016         * cp-namespace.c: Include language.h.
3017         (search_symbol_list): New function.
3018         (cp_lookup_symbol_imports_or_template): Likewise.
3019
3020 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
3021
3022         * tui/tui-win.c (make_visible_with_new_height): Resize and move
3023         the command window to the new size and position.
3024
3025 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
3026
3027         * tui/tui-win.c (tui_resize_all): Update the locator's origin's
3028         coordinates.
3029
3030 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
3031
3032         * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
3033         after a detecting a resize.
3034         * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
3035         call.
3036
3037 2010-07-28  Pedro Alves  <pedro@codesourcery.com>
3038
3039         * configure.ac: Check for resize_term.
3040         * configure, config.in: Regenerate.
3041
3042 2010-07-27  Joel Brobecker  <brobecker@adacore.com>
3043
3044         * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3045
3046 2010-07-27  Daniel Jacobowitz  <dan@codesourcery.com>
3047
3048         * dwarf2read.c (read_string): Rename to ...
3049         (read_direct_string): ... this.
3050         (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3051         (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3052
3053 2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3054
3055         * linux-nat.c (linux_nat_lp_status_is_event): New function.
3056         (count_events_callback, select_event_lwp_callback)
3057         (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3058
3059 2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3060
3061         * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3062         (_initialize_ia64_linux_nat): Install it.
3063         * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3064         (linux_nat_set_status_is_event): New.
3065         (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3066         cancel_breakpoints_callback, linux_nat_filter_event)
3067         (linux_nat_wait_1): Use linux_nat_status_is_event.
3068         * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3069
3070 2010-07-27  Tom Tromey  <tromey@redhat.com>
3071
3072         * NEWS: Mention labels, .gdb_index.
3073
3074 2010-07-28  CHENG Renquan  <rqcheng@smu.edu.sg>
3075
3076         * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3077         "start,+length" form of arguments.
3078         * NEWS: Add "Changed commands" (disassemble) section for "Changes
3079         since GDB 7.1"; and merge two separated paragraphs of disassemble
3080         description in "Changes in GDB 7.0".
3081
3082 2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3083
3084         * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3085         * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3086         (fputs_maybe_filtered): Do not do filtering also on
3087         ! INPUT_FROM_TERMINAL_P.
3088
3089 2010-07-27  Joel Brobecker  <brobecker@adacore.com>
3090
3091         * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3092         in warning message.
3093
3094 2010-07-27  Phil Muldoon  <pmuldoon@redhat.com>
3095
3096         * python/py-value.c (valpy_call): New Function.
3097
3098 2010-07-27  Ken Werner  <ken.werner@de.ibm.com>
3099
3100         * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
3101         types_list_elements variables.
3102
3103 2010-07-26  Tom Tromey  <tromey@redhat.com>
3104
3105         * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3106         TLS with DW_OP_const4u or DW_OP_const8u.
3107
3108 2010-07-26  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3109
3110         * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3111         VSX registers contents.
3112
3113 2010-07-26  Jerome Guitton  <guitton@adacore.com>
3114
3115         * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3116         its adress is null. Add comment to explain why.
3117         (new_symbol): Ditto.
3118
3119 2010-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3120
3121         * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3122         the host signal first.
3123
3124 2010-07-23  Tom Tromey  <tromey@redhat.com>
3125
3126         * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3127         type_comp_units>: New fields.
3128         (dw2_get_cu): New function.
3129         (create_cus_from_index): Remove unused argument.
3130         (create_signatured_type_hash_from_index): New function.
3131         (create_addrmap_from_index): Update.
3132         (dwarf2_read_index): Handle version 2.
3133         (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3134         (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3135         (dw2_print_stats, dw2_expand_all_symtabs)
3136         (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3137         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3138         (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3139         (allocate_signatured_type_hash_table): New function.
3140         (add_signatured_type_cu_to_list): Likewise.
3141         (create_debug_types_hash_table): Use them.  Set type_comp_units.
3142         (read_signatured_type): Ensure section data is available.
3143         (add_address_entry): Don't record empty ranges.
3144         (struct signatured_type_index_data): New.
3145         (write_one_signatured_type): New function.
3146         (write_psymtabs_to_index): Write type CUs.
3147         (save_gdb_index_command): Update comment.
3148         (process_type_comp_unit): Move inititalization of
3149         from_debug_types...
3150         (create_debug_types_hash_table): ... here.
3151
3152 2010-07-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
3153
3154         * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3155         cleanup and generating of gdb script to it.
3156         (gdb): Use redirection from /dev/null.  Use --nx.  Turn off pagination
3157         and terminal size.  Convert $tmpfile to a series of -ex-es.
3158
3159 2010-07-23  Keith Seitz  <keiths@redhat.com>
3160
3161         * symtab.c (basic_lookup_transparent_type): Call pre-expand
3162         hook for STATIC_BLOCK types, too.
3163
3164 2010-07-23  Keith Seitz  <keiths@redhat.com>
3165
3166         * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3167         and vector definition.
3168
3169 2010-07-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
3170
3171         * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3172
3173 2010-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3174
3175         * dwarf2read.c: Include completer.h.
3176         (save_gdb_index_command): Use matching usage command name.
3177         (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3178         Set filename_completer for it.
3179
3180 2010-07-22  Tom Tromey  <tromey@redhat.com>
3181
3182         * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3183         type signature's per-CU data.
3184
3185 2010-07-22  Pedro Alves  <pedro@codesourcery.com>
3186
3187         * NEWS: Mention target reported shared libraries support by
3188         default.
3189
3190 2010-07-21  Pedro Alves  <pedro@codesourcery.com>
3191
3192         PR symtab/11827
3193
3194         Revert:
3195         2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3196         * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3197         and DW_TAG_volatile_type.
3198         (new_symbol): Likewise.
3199
3200 2010-07-21  Sami Wagiaalla  <swagiaal@redhat.com>
3201
3202         * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3203         function symbols before overload resolution.
3204
3205 2010-07-21  Pedro Alves  <pedro@codesourcery.com>
3206
3207         * breakpoint.c (bptype_string): New, abstracted out from
3208         print_one_breakpoint_location.
3209         (print_one_breakpoint_location): Adjust.
3210         (breakpoint_1): Adjust the type column width dynamically.
3211
3212 2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3213
3214         * symfile.c (find_separate_debug_file_by_debuglink): Remove
3215         a gdb_assert call, new comment.
3216
3217 2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3218
3219         * linux-nat.c (linux_handle_extended_wait): Handle case when
3220         event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3221
3222 2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3223
3224         Code cleanup.
3225         * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3226         linux_nat_wait_1.  Use always LP->STATUS afterwards.
3227
3228 2010-07-20  Hui Zhu  <teawater@gmail.com>
3229
3230         * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3231         (inf_ptrace_attach): Ditto.
3232
3233 2010-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3234
3235         Make core files the process_stratum.
3236         * corefile.c (core_target): New variable.
3237         (core_file_command): Remove variable t, use core_target.
3238         * corelow.c (core_ops): Make it static.
3239         (init_core_ops): Change to process_stratum.  Initialize CORE_TARGET.
3240         * defs.h (make_cleanup_unpush_target): New prototype.
3241         * gdbarch.h: Regenerate.
3242         * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3243         * gdbcore.h (core_target): New declaration.
3244         * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3245         variables ops_already_pushed and back_to.  Use push_target,
3246         make_cleanup_unpush_target and discard_cleanups calls.
3247         * record.c (record_open): Replace core_stratum by a core_bfd check.
3248         * target.c (target_is_pushed): New function.
3249         (find_core_target): Remove.
3250         * target.h (enum strata) <core_stratum>: Remove.
3251         (target_is_pushed): New declaration.
3252         (find_core_target): Remove declaration.
3253         * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3254         * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3255
3256 2010-07-19  Hui Zhu  <teawater@gmail.com>
3257
3258         * breakpoint.c (single_step_breakpoints_inserted): New
3259         function.
3260         * breakpoint.h (single_step_breakpoints_inserted): Extern.
3261         * infrun.c (maybe_software_singlestep): Add check code.
3262         * record.c (record_resume): Add code for software single step.
3263         (record_wait): Ditto.
3264
3265 2010-07-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3266
3267         * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3268         a more inner block.  Remove its unused declaration initializer.
3269
3270 2010-07-16  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3271
3272         * NEWS: Mention support for the new ptrace interface and hardware
3273         accelerated watchpoint conditions on powerpc-linux.
3274
3275 2010-07-16  Ozkan Sezer  <sezeroz@gmail.com>
3276
3277         * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3278         long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3279         and host_address_to_string() and %s for pointers.
3280         (debug_to_remove_breakpoint): Likewise.
3281         (debug_to_region_ok_for_hw_watchpoint): Likewise.
3282         (debug_to_can_accel_watchpoint_condition): Likewise.
3283         (debug_to_stopped_data_address): Likewise.
3284         (debug_to_watchpoint_addr_within_range): Likewise.
3285         (debug_to_insert_hw_breakpoint): Likewise.
3286         (debug_to_remove_hw_breakpoint): Likewise.
3287         (debug_to_insert_watchpoint): Likewise.
3288         (debug_to_remove_watchpoint): Likewise.
3289
3290 2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
3291
3292         * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3293         argument.
3294         (cplus_specific): New struct.
3295         * symtab.c (symbol_set_demangled_name): Updated.
3296         Use cplus_specific for cplus symbols.
3297         (symbol_get_demangled_name): Retrive the name from the cplus_specific
3298         struct for cplus symbols.
3299         (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3300         (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3301         * symtab.c (symbol_init_cplus_specific): New function.
3302
3303 2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
3304
3305         * symtab.h (symbol_set_demangled_name): New function.
3306         (symbol_get_demangled_name): New function.
3307         * symtab.c (symbol_set_demangled_name): New function.
3308         (symbol_get_demangled_name): New function.
3309         (symbol_init_language_specific): Use demangled_name setter and getter.
3310         (symbol_set_names): Ditto.
3311         (symbol_natural_name): Ditto.
3312         (symbol_demangled_name): Ditto.
3313         * dwarf2read.c (new_symbol): Ditto.
3314
3315 2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
3316
3317         * symtab.h: Renamed cplus_specific to mangled_lang.
3318         * symtab.c (symbol_init_language_specific): Updated.
3319         (symbol_set_names): Updated.
3320         (symbol_natural_name): Updated.
3321         (symbol_demangled_name): Updated.
3322         * ada-lang.c (ada_decode_symbol): Updated.
3323         * dwarf2read.c (new_symbol): Updated.
3324
3325 2010-07-14  Ken Werner  <ken.werner@de.ibm.com>
3326
3327         * valops.c (value_assign): Do not call to value_coerce_to_target.
3328         (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3329
3330 2010-07-14  Ken Werner  <ken.werner@de.ibm.com>
3331
3332         * MAINTAINERS: Add myself for write after approval privileges.
3333
3334 2010-07-13  Emmanuel Thomé  <Emmanuel.Thome@gmail.com>
3335
3336         * c-valprint.c (c_val_print): Add embedded_offset to address in
3337         call to val_print_array_elements.
3338
3339 2010-07-13  Tom Tromey  <tromey@redhat.com>
3340
3341         * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3342
3343 2010-07-13  Tom Tromey  <tromey@redhat.com>
3344
3345         * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3346         objfile.
3347
3348 2010-07-13  Tom Tromey  <tromey@redhat.com>
3349
3350         * symfile.c (set_initial_language): Update.
3351         (deduce_language_from_filename): Argument type now const.
3352         * symtab.h (find_main_filename): Update.
3353         (deduce_language_from_filename): Update.
3354         * symtab.c (find_main_filename): Make result const.
3355         * dwarf2read.c (dw2_find_symbol_file): Change return type.
3356         * psymtab.c (find_symbol_file_from_partial): Change return type.
3357         * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3358         Make result const.
3359
3360 2010-07-13  Tom Tromey  <tromey@redhat.com>
3361
3362         * breakpoint.c (save_cmdlist): No longer static.
3363         * gdbcmd.h (save_cmdlist): Declare.
3364         * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3365         OBJF_READNOW on objfile if readnow_symbol_files.
3366         * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3367         (elf_sym_fns_gdb_index): New global.
3368         * dwarf2read.c: Include exceptions.h.
3369         (offset_type): New.
3370         (struct mapped_index): New.
3371         (dwarf2_per_cu_data_ptr): New typedef.
3372         (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3373         New fields.
3374         (GDB_INDEX_SECTION): New define.
3375         (struct dwarf2_per_cu_quick_data): New.
3376         (struct dwarf2_per_cu_data) <objfile>: New field.
3377         <psymtab>: Removed.
3378         <v>: New field.
3379         (byte_swap): New function.
3380         (MAYBE_SWAP): New macro.
3381         (INDEX_SUFFIX): New macro.
3382         (dw2_do_instantiate_symtab): New function.
3383         (dw2_instantiate_symtab): Likewise.
3384         (create_cus_from_index): Likewise.
3385         (create_addrmap_from_index): Likewise.
3386         (mapped_index_string_hash): Likewise.
3387         (find_slot_in_mapped_hash): Likewise.
3388         (dwarf2_read_index): Likewise.
3389         (dw2_setup): Likewise.
3390         (dw2_require_line_header): Likewise.
3391         (dw2_require_full_path): Likewise.
3392         (dw2_find_last_source_symtab): Likewise.
3393         (dw2_forget_cached_source_info): Likewise.
3394         (dw2_lookup_symtab): Likewise.
3395         (dw2_lookup_symbol): Likewise.
3396         (dw2_do_expand_symtabs_matching): Likewise.
3397         (dw2_pre_expand_symtabs_matching): Likewise.
3398         (dw2_print_stats): Likewise.
3399         (dw2_dump): Likewise.
3400         (dw2_relocate): Likewise.
3401         (dw2_expand_symtabs_for_function): Likewise.
3402         (dw2_expand_all_symtabs): Likewise.
3403         (dw2_expand_symtabs_with_filename): Likewise.
3404         (dw2_find_symbol_file): Likewise.
3405         (dw2_map_ada_symtabs): Likewise.
3406         (dw2_expand_symtabs_matching): Likewise.
3407         (dw2_find_pc_sect_symtab): Likewise.
3408         (dw2_map_symbol_names): Likewise.
3409         (dw2_map_symbol_filenames): Likewise.
3410         (dw2_has_symbols): Likewise.
3411         (dwarf2_gdb_index_functions): New global.
3412         (dwarf2_initialize_objfile): New function.
3413         (process_psymtab_comp_unit): Update.
3414         (add_partial_subprogram): Likewise.
3415         (dwarf2_psymtab_to_symtab): Likewise.
3416         (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3417         (process_full_comp_unit): Update.
3418         (find_file_and_directory): New function.
3419         (read_file_scope): Use find_file_and_directory.
3420         (dwarf2_per_cu_objfile): Update.
3421         (dwarf2_per_cu_addr_size): Update.
3422         (dwarf2_per_cu_offset_size): Update.
3423         (dwarf2_free_objfile): Free the index, if needed.
3424         (dwarf2_per_objfile_free): Unmap the index, if needed.
3425         (struct strtab_entry): New.
3426         (hash_strtab_entry): New function.
3427         (eq_strtab_entry): Likewise.
3428         (create_strtab): Likewise.
3429         (add_string): Likewise.
3430         (struct symtab_index_entry): New.
3431         (struct mapped_symtab): New.
3432         (hash_symtab_entry): New function.
3433         (eq_symtab_entry): Likewise.
3434         (delete_symtab_entry): Likewise.
3435         (create_index_table): Likewise.
3436         (create_mapped_symtab): Likewise.
3437         (cleanup_mapped_symtab): Likewise.
3438         (find_slot): Likewise.
3439         (hash_expand): Likewise.
3440         (add_index_entry): Likewise.
3441         (add_indices_to_cpool): Likewise.
3442         (write_hash_table): Likewise.
3443         (add_address_entry): Likewise.
3444         (write_psymbols): Likewise.
3445         (write_obstack): Likewise.
3446         (unlink_if_set): Likewise.
3447         (write_psymtabs_to_index): Likewise.
3448         (save_gdb_index_command): Likewise.
3449         (_initialize_dwarf2_read): Install "save gdb-index"
3450         command.
3451         (create_all_comp_units): Initialize 'objfile' field of CU.
3452         (dwarf2_locate_sections): Check for .gdb_index.
3453         * psymtab.h (dwarf2_gdb_index_functions): Declare.
3454         * symfile.h (dwarf2_initialize_objfile): Declare.
3455
3456 2010-07-13  Tom Tromey  <tromey@redhat.com>
3457
3458         * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3459         (basic_lookup_transparent_type): Likewise.
3460         * symfile.h (struct quick_symbol_functions)
3461         <pre_expand_symtabs_matching>: New field.
3462         * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3463         (psym_functions): Update.
3464
3465 2010-07-13  Tom Tromey  <tromey@redhat.com>
3466
3467         PR breakpoints/8357:
3468         * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3469         * linespec.c (decode_line_1): Update comment.  Call decode_label.
3470         (decode_label): New function.
3471         (symbol_found): Handle LOC_LABEL.
3472         * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3473         domain.  Call add_symbol_to_list.
3474
3475 2010-07-13  Tom Tromey  <tromey@redhat.com>
3476
3477         * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3478         * dwarf2loc.c (find_location_expression): Use
3479         dwarf2_per_cu_text_offset.
3480         (dwarf2_evaluate_loc_desc): Likewise.
3481         (dwarf2_loc_desc_needs_frame): Likewise.
3482         (compile_dwarf_to_ax): Likewise.
3483         (loclist_describe_location): Likewise.
3484         * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3485         (dwarf2_per_cu_objfile): Update comment.
3486
3487 2010-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
3488
3489         * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3490         * p-lang.c (pascal_printstr): Likewise.
3491
3492 2010-07-09  Tom Tromey  <tromey@redhat.com>
3493
3494         * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3495         'hint' if it is NULL.
3496
3497 2010-07-09  Hui Zhu  <teawater@gmail.com>
3498
3499         * source.c (print_source_lines_base): Add check for noprint.
3500
3501 2010-07-08  Joel Brobecker  <brobecker@adacore.com>
3502
3503         * python/python-config.py: Resync with Python 2.7 version of this
3504         script.
3505
3506 2010-07-08  Joel Brobecker  <brobecker@adacore.com>
3507
3508         * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3509
3510 2010-07-07  Joel Brobecker  <brobecker@adacore.com>
3511
3512         * NEWS: Create a new section for the next release branch.
3513         Rename the section of the current branch, now that it has
3514         been cut.
3515
3516 2010-07-07  Joel Brobecker  <brobecker@adacore.com>
3517
3518         GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3519         * version.in: Bump version to 7.2.50.20100707-cvs.
3520
3521 2010-07-07  Tom Tromey  <tromey@redhat.com>
3522
3523         * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3524         LOC_COMPUTED symbol.
3525         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3526         (dwarf2_loc_desc_needs_frame): Likewise.
3527         (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3528         * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3529         * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3530         * dwarf2-frame.c (execute_stack_op): Set 'offset' field.  Add
3531         'offset' argument.
3532         (struct dwarf2_frame_cache) <text_offset>: New field.
3533         (dwarf2_frame_cache): Set new field.
3534         (dwarf2_frame_prev_register): Update.
3535         (dwarf2_frame_sniffer): Update.
3536         (dwarf2_frame_base_sniffer): Update.
3537         (dwarf2_frame_find_fde): Add 'out_offset' argument.
3538
3539 2010-07-07  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
3540             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3541
3542         Support for hw accelerated condition watchpoints in booke powerpc.
3543
3544         * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3545         and move to eval.c.  Change callers.
3546         (insert_bp_location): Pass watchpoint condition in
3547         target_insert_watchpoint.
3548         (remove_breakpoint_1) Pass watchpoint condition in
3549         target_remove_watchpoint.
3550         (watchpoint_locations_match): Call
3551         target_can_accel_watchpoint_condition.
3552         * eval.c: Include wrapper.h.
3553         (fetch_subexp_value): Moved from breakpoint.c.
3554         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3555         Formatting fix.
3556         (can_use_watchpoint_cond_accel): New function.
3557         (calculate_dvc): Likewise.
3558         (num_memory_accesses): Likewise.
3559         (check_condition): Likewise.
3560         (ppc_linux_can_accel_watchpoint_condition): Likewise
3561         (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3562         check_condition and calculate_dvc.
3563         (ppc_linux_remove_watchpoint): Likewise.
3564         (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3565         ppc_linux_can_accel_watchpoint_condition
3566         * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3567         condition.
3568         (debug_to_remove_watchpoint): Likewise.
3569         (debug_to_can_accel_watchpoint_condition): New function.
3570         (update_current_target): Set to_can_accel_watchpoint_condition.
3571         (setup_target_debug): Set to_can_accel_watchpoint_condition.
3572         * target.h: Add opaque declaration for struct expression.
3573         (struct target_ops) <to_insert_watchpoint>,
3574         <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3575         <to_can_accel_watchpoint_condition>: New member.
3576         condition.  Update all callers and implementations.
3577         (target_can_accel_watchpoint_condition): New macro.
3578         * value.c (free_value_chain): New function.
3579         * value.h (fetch_subexp_value): New prototype.
3580         (free_value_chain): Likewise.
3581
3582 2010-07-07  Ulrich Weigand  <uweigand@de.ibm.com>
3583
3584         * linux-nat.c (linux_nat_do_thread_registers): Use section size
3585         from gdbarch_core_regset_sections also for .reg if present.
3586
3587         * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3588         section size for .reg.
3589         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3590         (ppc_linux_vmx_regset_sections): Likewise.
3591         (ppc_linux_fp_regset_sections): Likewise.
3592         (ppc64_linux_vsx_regset_sections): New variable.
3593         (ppc64_linux_vmx_regset_sections): Likewise.
3594         (ppc64_linux_fp_regset_sections): Likewise.
3595         (ppc_linux_init_abi): Install core_regset_section lists appropriate
3596         for current word size.
3597
3598 2010-07-06  Joel Brobecker  <brobecker@adacore.com>
3599
3600         * server.c (myresume): Make static.
3601
3602 2010-07-06  Tom Tromey  <tromey@redhat.com>
3603
3604         * configure, config.in: Rebuild.
3605         * configure.ac (HAVE_LIBPYTHON2_7): New define.
3606         * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3607
3608 2010-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3609
3610         * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3611         "clear".
3612
3613 2010-07-06  Ken Werner  <ken.werner@de.ibm.com>
3614
3615         * gdbtypes.h (floatformats_ieee_half): Add declaration.
3616         * gdbtypes.c (floatformats_ieee_half): New variable.
3617         * doublest.c (floatformat_from_length): Set format to
3618         gdbarch_half_format if length matches.
3619         * gdbarch.sh (half_bit): New architecture method.
3620         (half_format): Likewise.
3621         * gdbarch.h: Regenerate.
3622         * gdbarch.c: Likewise.
3623
3624 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3625             Joel Brobecker  <brobecker@adacore.com>
3626
3627         Fix re-run of PIE executable, PR shlibs/11776.
3628         * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3629         the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3630
3631 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3632             Joel Brobecker  <brobecker@adacore.com>
3633
3634         * auxv.c (memory_xfer_auxv): Update attach comment.
3635         * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3636         svr4_relocate_main_executable.
3637         (svr4_solib_create_inferior_hook): Make the call to
3638         svr4_relocate_main_executable unconditional.
3639
3640 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3641             Joel Brobecker  <brobecker@adacore.com>
3642
3643         * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3644
3645 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3646             Joel Brobecker  <brobecker@adacore.com>
3647
3648         Fix attaching to PIEs prelinked on the disk after the process was
3649         started.
3650         * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3651         Verify it against bfd_get_arch_size.  Try to match arbitrary
3652         displacement for the phdrs comparison.
3653
3654 2010-07-02  Tom Tromey  <tromey@redhat.com>
3655
3656         PR exp/11780:
3657         * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3658         value as optimized-out.
3659
3660 2010-07-02  Ulrich Weigand  <uweigand@de.ibm.com>
3661             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3662
3663         * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3664         represent?" question in comment.  Change comment to a proper sentence.
3665
3666 2010-07-02  Ken Werner  <ken.werner@de.ibm.com>
3667
3668         * c-valprint.c (c_val_print): Fix printing of character vectors.
3669
3670 2010-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3671
3672         * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3673         create_breakpoint prototype.
3674
3675 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3676
3677         * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3678         usefulness suggestion of multiple breakpoints at same location.
3679
3680 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3681
3682         * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3683
3684 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3685
3686         * dwarf2loc.c (locexpr_tracepoint_var_ref)
3687         (loclist_tracepoint_var_ref): Handle optimized out values.
3688
3689 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3690
3691         * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3692         unnecessary space in string.
3693         * filesystem.c (_initialize_filesystem): Ditto.
3694         * frame.c (_initialize_frame): Ditto.
3695         * infcmd.c (step_once): Ditto.
3696         * infrun.c (_initialize_infrun): Ditto.
3697         * linux-nat.c (linux_child_follow_fork): Ditto.
3698         * maint.c (maintenance_deprecate): Ditto.
3699         * memattr.c (_initialize_mem): Ditto.
3700         * mips-tdep.c (_initialize_mips_tdep): Ditto.
3701         * monitor.c (monitor_open): Ditto.
3702         * procfs.c (procfs_xfer_memory): Ditto.
3703         * reverse.c (bookmarks_info): Ditto.
3704         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3705         * stack.c (_initialize_stack): Ditto.
3706         * tracepoint.c (_initialize_tracepoint): Ditto.
3707         * xtensa-tdep.c (xtensa_supply_gregset,
3708         xtensa_regset_from_core_section): Ditto.
3709
3710 2010-07-01  Tom Tromey  <tromey@redhat.com>
3711
3712         * value.h (struct lval_funcs) <check_any_valid>: Rename from
3713         check_all_valid.
3714         * value.c (value_entirely_optimized_out): Invert result.  Update
3715         for new function name.
3716
3717 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3718
3719         Static tracepoints support.
3720
3721         * NEWS: Mention new support for static tracepoints.
3722         (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3723         qXfer:statictrace:read.
3724         (New features in the GDB remote stub, GDBserver): Mention static
3725         tracepoints support using an UST based backend.
3726         (New commands): Mention "info static-tracepoint-markers" and
3727         "strace".
3728         * breakpoint.c (is_marker_spec): New.
3729         (is_tracepoint): Handle static tracepoints.
3730         (validate_commands_for_breakpoint): Static tracepoints can't do
3731         while-stepping.
3732         (static_tracepoints_here): New.
3733         (bpstat_what): Handle static tracepoints.
3734         (print_one_breakpoint_location, allocate_bp_location, mention):
3735         Ditto.
3736         (create_breakpoint_sal): Ditto.
3737         (decode_static_tracepoint_spec): New.
3738         (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3739         `type_wanted'.  Adjust.  Handle static tracepoint marker
3740         locations.
3741         (break_command_1): Adjust.
3742         (update_static_tracepoint): New.
3743         (update_breakpoint_locations): Handle static tracepoints.
3744         (breakpoint_re_set_one): Handle static tracepoint marker
3745         locations.
3746         (disable_command, enable_command): Handle static tracepoints.
3747         (trace_command, ftrace_command): Adjust.
3748         (strace_command): New.
3749         (create_tracepoint_from_upload): Adjust.
3750         (save_breakpoints): Handle static tracepoints.
3751         (_initialize_breakpoint): Install the "strace" command.
3752         * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3753         (struct breakpoint): New fields static_trace_marker_id and
3754         static_trace_marker_id_idx.
3755         (breakpoints_here_p): Declare.
3756         (create_breakpoint): Adjust.
3757         (static_tracepoints_here): Declare.
3758         * remote.c (struct remote_state) <static_tracepoints>: New field.
3759         (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3760         (remote_static_tracepoint_marker_at): New.
3761         (remote_static_tracepoint_markers_by_strid): New.
3762         (remote_static_tracepoint_feature): New.
3763         (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3764         (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3765         (remote_supports_static_tracepoints): New.
3766         (remote_download_tracepoint): Download static tracepoints.
3767         (init_remote_ops): Install remote_static_tracepoint_marker_at and
3768         remote_static_tracepoint_markers_by_strid.
3769         (_initialize_remote): Install set|show remote static-tracepoints,
3770         and set|show remote read-sdata-object commands.
3771         * target.c (update_current_target): Inherit and default
3772         to_static_tracepoint_marker_at, and
3773         to_static_tracepoint_markers_by_strid.
3774         * target.h (static_tracepoint_marker): Forward declare.
3775         (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3776         (static_tracepoint_marker_p): New typedef.
3777         (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3778         (struct target_ops): New fields to_static_tracepoint_marker_at and
3779         to_static_tracepoint_markers_by_strid.
3780         (target_static_tracepoint_marker_at)
3781         (target_static_tracepoint_markers_by_strid): New.
3782         * tracepoint.c: Include source.h.
3783         (validate_actionline): Handle $_sdata.
3784         (struct collection_list): New field strace_data.
3785         (add_static_trace_data): New.
3786         (clear_collection_list): Clear strace_data.
3787         (stringify_collection_list): Account for a possible static trace
3788         data collection.
3789         (encode_actions_1): Encode an $_sdata collection.
3790         (parse_tracepoint_definition): Handle static tracepoints.
3791         (parse_static_tracepoint_marker_definition): New.
3792         (release_static_tracepoint_marker): New.
3793         (print_one_static_tracepoint_marker): New.
3794         (info_static_tracepoint_markers_command): New.
3795         (sdata_make_value): New.
3796         (_initialize_tracepoint): Create the $_sdata convenience variable.
3797         Add the "info static-tracepoint-markers" command.
3798         Mention $_sdata in the "collect" command's help output.
3799         * tracepoint.h (struct static_tracepoint_marker): New.
3800         (parse_static_tracepoint_marker_definition)
3801         (release_static_tracepoint_marker): Declare.
3802         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3803         * python/py-breakpoint.c (bppy_new): Adjust.
3804
3805 2010-06-30  Joel Brobecker  <brobecker@adacore.com>
3806
3807         * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3808         including Python.h.
3809
3810 2010-06-29  Doug Evans  <dje@google.com>
3811
3812         PR gdb/11702
3813         * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3814         DW_AT_external is present.
3815
3816         PR gdb/11702
3817         * NEWS: Add entry.
3818         * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3819         create a symbol for the field and record the value.
3820         (new_symbol): Handle DW_TAG_member.
3821         * gdbtypes.c (field_is_static): Remove FIXME.
3822         * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3823         only ignore LOC_CONST symbols that are enums.
3824
3825         * dwarf2read.c: Remove trailing whitespace.
3826
3827         Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3828         * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3829         (struct main_type, field loc): Delete dwarf_block.
3830         (FIELD_DWARF_BLOCK): Delete.
3831         (SET_FIELD_DWARF_BLOCK): Delete.
3832         (TYPE_FIELD_DWARF_BLOCK): Delete.
3833         * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3834         Update.
3835
3836 2010-06-29  Hui Zhu  <teawater@gmail.com>
3837
3838         * record.c (set_record_pic_cmdlist,
3839         show_record_pic_cmdlist): New variables.
3840         (set_record_pic_command,
3841         show_record_pic_command): New functions.
3842         (record_pic_function, record_pic_line, record_pic_enum,
3843         set_record_pic_type, record_pic_hide_nofunction,
3844         record_pic_hide_nosource, record_pic_hide_same): New variables.
3845         (record_pic_fputs): New function.
3846         (function_list, node_list, edge_list): New struct.
3847         (function_list, node_list, edge_list): New variables.
3848         (record_pic_cleanups, record_pic_node,
3849         record_pic_edge, cmd_record_pic): New functions.
3850         (_initialize_record): Add new commands for record pic.
3851
3852 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3853
3854         * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3855         ALLOCATE_CPLUS_STRUCT_TYPE.
3856
3857 2010-06-28  Phil Muldoon  <pmuldoon@redhat.com>
3858             Tom Tromey  <tromey@redhat.com>
3859             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3860
3861         * value.c (pack_unsigned_long): New function.
3862         (value_from_ulongest): New function.
3863         * value.h (value_from_ulongest): Declare.
3864         * python/python.c (_initialize_python): Call
3865         gdbpy_initialize_thread and gdbpy_initialize_inferior.
3866         * python/python-internal.h: Define thread_object.
3867         (gdbpy_inferiors, gdbpy_selected_thread)
3868         (frame_info_to_frame_object, create_thread_object)
3869         (find_thread_object, find_inferior_object)
3870         (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3871         (gdbpy_is_value_object, get_addr_from_python): Declare.
3872         * python/py-value.c (builtin_type_upylong): Define.
3873         (convert_value_from_python): Add logic for ulongest.
3874         (gdbpy_is_value_object): New function.
3875         * python/py-utils.c (get_addr_from_python): New function.
3876         * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3877         (gdbpy_selected_frame): Use PyObject over frame_info.
3878         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3879         py-infthread.
3880         (SUBDIR_PYTHON_SRCS): Likewise.
3881         (py-inferior.o): New Rule.
3882         (py-infthread.o): New Rule.
3883         * python/py-inferior.c: New File.
3884         * python/py-infthread.c: New File.
3885
3886 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3887
3888         * c-typeprint.c (c_type_print_base): For no fields check include also
3889         TYPE_TYPEDEF_FIELD_COUNT.  Print new typedefs section.
3890         * dwarf2read.c (struct typedef_field_list)
3891         (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3892         (dwarf2_add_typedef): New.
3893         (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3894         Copy also FI.TYPEDEF_FIELD_LIST.
3895         * gdbtypes.h (struct typedef_field)
3896         (struct cplus_struct_type) <typedef_field, typedef_field_count>
3897         (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3898         (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3899
3900 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3901
3902         * cp-namespace.c (cp_lookup_nested_type): New variable
3903         concatenated_name.  Turn the current return condition into a reverse
3904         one.  Call also lookup_static_symbol_aux on the constructed qualified
3905         name.
3906         * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3907         other files into a called ...
3908         (lookup_static_symbol_aux): ... new function here.
3909         * symtab.h (lookup_static_symbol_aux): New prototype.
3910         * valops.c (value_maybe_namespace_elt): Call also
3911         lookup_static_symbol_aux if we failed otherwise.
3912
3913 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3914
3915         Fix PR c++/11703 and PR gdb/1448.
3916         * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3917         FIRST_ITER check.
3918
3919 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3920
3921         Fix modification of cplus_struct_default.
3922         * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3923         Call ALLOCATE_CPLUS_STRUCT_TYPE.
3924         * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3925
3926 2010-06-28  Joel Brobecker  <brobecker@adacore.com>
3927
3928         * NEWS: Add entry announcing the python directory.
3929
3930 2010-06-28  Tom Tromey  <tromey@redhat.com>
3931
3932         * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3933
3934 2010-06-28  Doug Evans  <dje@google.com>
3935
3936         * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3937         All callers updated.
3938
3939 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3940
3941         * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3942         obstack_begin after each obstack_free.
3943
3944 2010-06-27  Doug Evans  <dje@google.com>
3945
3946         * value.c (value_static_field): Use `switch' instead of `if'.
3947         Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3948
3949         * valops.c (search_struct_field): Fix typo in error message.
3950
3951 2010-06-26  Ulrich Weigand  <uweigand@de.ibm.com>
3952
3953         * dwarf2expr.c (execute_stack_op): Place preprocessor
3954         directives at the start of the source line.
3955
3956 2010-06-25  Paul Hilfinger  <hilfinger@adacore.com>
3957
3958         * defs.h (make_command_stats_cleanup): Declare.
3959         (set_display_time): Declare.
3960         (set_display_space): Declare.
3961         * event-top.c (command_handler): Use make_command_stats_cleanup.
3962         * main.c (display_time, display_space): Move definitions to utils.c.
3963         (captured_main): Use make_command_stats_cleanup to get start-up
3964         statistics.
3965         Use set_display_time and set_display_space for processing OPT_STATISTICS
3966         case.
3967         * maint.c (maintenance_time_display): Use set_display_time.
3968         (maintenance_space_display): Use set_display_space.
3969         * top.c (execute_command): Remove obsolete 'maint time' code.
3970         (command_loop): Use make_command_stats_cleanup.
3971         * utils.c (struct cmd_stats): Structure for storing initial time
3972         and space usage.
3973         (display_time, display_space): Move definitions here from utils.c.
3974         (set_display_time): New function.
3975         (set_display_space): New function.
3976         (make_command_stats_cleanup): New function.
3977         (report_command_stats): New auxiliary function for
3978         make_command_stats_cleanup.
3979
3980 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
3981
3982         * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3983         hosts where CORE_ADDR is long long.
3984
3985 2010-06-25  Tom Tromey  <tromey@redhat.com>
3986
3987         PR python/10808:
3988         * python/python.c (execute_gdb_command): Add keywords.  Accept
3989         "to_string" argument.
3990         (struct restore_ui_file_closure): New.
3991         (restore_ui_file): New function.
3992         (make_cleanup_restore_ui_file): Likewise.
3993         (GdbMethods) <execute>: Update.
3994
3995 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
3996
3997         * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3998         during inferior call stack frame setup.
3999
4000 2010-06-25  Ken Werner  <ken.werner@de.ibm.com>
4001
4002         * solib-spu.c: Include "exception.h".
4003         (ocl_program_data_key): New variable.
4004         (append_ocl_sos): New function.
4005         (ocl_enable_break): Likewise.
4006         (spu_current_sos): Call append_ocl_sos.
4007         (spu_solib_loaded): Call ocl_enable_break.
4008         (_initialize_spu_solib): Register ocl_program_data_key.
4009
4010 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
4011
4012         * cp-support.c (reset_directive_searched): New function.
4013         (make_symbol_overload_list_using): Prevent recursive calls.
4014
4015 2010-06-25  Phil Muldoon  <pmuldoon@redhat.com>
4016
4017         * printcmd.c (print_variable_and_value): Print error message on
4018         caught exception.
4019
4020 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
4021
4022         * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4023         of stack values.
4024         (struct dwarf_expr_piece): Rename "expr" member to "mem".  Add new
4025         "value" member.
4026         (dwarf_expr_push): Change input type to ULONGEST.
4027         (dwarf_expr_fetch): Change return type to ULONGEST.
4028         (dwarf_expr_fetch_address): Add prototype.
4029         (dwarf2_read_address): Remove prototype.
4030         * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4031         Truncate stack values to ctx->addr_size bytes.
4032         (dwarf_expr_fetch): Change return value to ULONGEST.
4033         (dwarf_expr_fetch_address): New function.
4034         (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4035         when appropriate.  Update for struct dwarf_expr_piece changes.
4036         (dwarf2_read_address): Remove.
4037         (unsigned_address_type): Remove.
4038         (signed_address_type): Remove.
4039         (execute_stack_op): Use dwarf_expr_fetch_address instead of
4040         dwarf_expr_fetch when appropriate.  Use ULONGEST as type of stack
4041         values.  Perform operations on ULONGEST instead of on GDB values,
4042         sign-extending from ctx->addr_size bytes as needed.  Read DW_OP_addr
4043         values and DW_OP_deref results as unsigned integers.
4044         * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4045         changes.
4046         (write_pieced_value): Likewise.
4047         (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4048         dwarf_expr_fetch when appropriate.
4049         (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4050         * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4051         instead of dwarf_expr_fetch when appropriate.
4052
4053 2010-06-25  Pierre Muller  <muller@ics.u-strasbg.fr>
4054
4055         * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4056
4057 2010-06-24  Joel Brobecker  <brobecker@adacore.com>
4058
4059         * python/python.c (_initialize_python): Add new "constant"
4060         PYTHONDIR in gdb module.  Insert this path at the head of
4061         sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4062         exec its __init__.py script if it exists in that directory.
4063
4064 2010-06-24  Kevin Buettner  <kevinb@redhat.com>
4065
4066         * rx-tdep.c (RX_ACC_REGNUM): Define.
4067         (RX_NUM_REGS): Redefine to 26.
4068         (rx_register_name): Add register "acc".  Change order of several
4069         registers.  Change name of "vct" register to "fintv" to match RX
4070         documentation.
4071         (rx_register_type): Add case for RX_ACC_REGNUM.
4072
4073 2010-06-24  Tom Tromey  <tromey@redhat.com>
4074
4075         * psymtab.c (lookup_partial_symbol): Mark definition as static.
4076
4077 2010-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4078             Tom Tromey  <tromey@redhat.com>
4079
4080         Fix GDB startup on readonly filesystem.
4081         * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4082
4083 2010-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4084             Pedro Alves  <pedro@codesourcery.com>
4085
4086         Fix PR 9436.
4087         * breakpoint.c (handle_jit_event): New function.
4088         (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4089         jit, err, table and bs_class.  New variables shlib_event, jit_event,
4090         this_action and bptype.  Change bs_class assignments to this_action
4091         assignments.  new unhandled bptype internal error.  Move here
4092         shlib_event and jit_event handling from handle_inferior_event.
4093         * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4094         Reorder items.  Remove BPSTAT_WHAT_CHECK_SHLIBS and
4095         BPSTAT_WHAT_CHECK_JIT.
4096         * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4097         * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4098         (handle_inferior_event): Reinitialize frame and gdbarch after
4099         bpstat_what call.  Move BPSTAT_WHAT_CHECK_SHLIBS and
4100         BPSTAT_WHAT_CHECK_JIT handling to bpstat_what.  Reinitialize even
4101         gdbarch when frame gets reinitialized.
4102
4103 2010-06-24  Hui Zhu  <teawater@gmail.com>
4104
4105        * printcmd.c (ui_printf): New function.
4106        (printf_command): Call ui_printf.
4107        (_initialize_printcmd): New command "eval".
4108
4109 2010-06-23  Ulrich Weigand  <uweigand@de.ibm.com>
4110
4111         * infrun.c (handle_inferior_event): Handle presence of single-step
4112         breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4113         Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4114         TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4115         * breakpoint.c (detach_single_step_breakpoints): New function.
4116         (detach_breakpoints): Call it.
4117         (cancel_single_step_breakpoints): New function.
4118         * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4119
4120         * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4121         (spu_gdbarch_init): Install it.
4122
4123 2010-06-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
4124
4125         * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4126         * configure: Regenerate.
4127
4128 2010-06-22  Hui Zhu  <teawater@gmail.com>
4129
4130         * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4131         (i386_process_record): Ditto.
4132         * record.c (record_memory_query): New variable.
4133         (_initialize_record): New command "set record memory-query".
4134         * record.h (record_memory_query): New extern.
4135
4136 2010-06-21  Doug Evans  <dje@google.com>
4137
4138         * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4139         * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4140         (i386_syscall_p): Change type of lengthp to int.
4141         (i386_displaced_step_fixup): Handle kernels that run one past a
4142         syscall insn.
4143         * i386-linux-tdep.c (i386_linux_init_abi): Use
4144         i386_displaced_step_copy_insn instead of
4145         simple_displaced_step_copy_insn.
4146
4147 2010-06-21  Tom Tromey  <tromey@redhat.com>
4148
4149         * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4150         (dwarf_type_encoding_name): Likewise.
4151
4152 2010-06-21  Tom Tromey  <tromey@redhat.com>
4153
4154         * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4155         * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4156         * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4157         * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4158         * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4159         * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4160         * dwarf2read.c (tag_type_to_type): Create a new error type on
4161         failure.
4162         * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4163         * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4164
4165 2010-06-21  Michael Snyder  <msnyder@vmware.com>
4166
4167         * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
4168         not add_abbrev_prefix_cmd, for "enable breakpoints".
4169
4170 2010-06-21  Ulrich Weigand  <uweigand@de.ibm.com>
4171
4172         * dwarf2loc.c (find_location_expression): Add relocation offset
4173         to base-address-selection entry base addresses.  Read addresses
4174         (and offsets) as signed/unsigned integers, depending on the
4175         BFD's sign_extend_vma flag.  Do not call dwarf2_read_address.
4176         (loclist_describe_location): Likewise.
4177         (disassemble_dwarf_expression): Read DW_OP_addr operand as
4178         unsigned integer.  Do not call dwarf2_read_address.
4179         (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4180
4181 2010-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
4182
4183         * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4184         value instead of hard-coded SPU_LS_SIZE.
4185         (spu_software_single_step): Likewise.
4186         * spu-tdep.h (SPU_LS_SIZE): Remove.
4187
4188 2010-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
4189
4190         * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4191         limit on local store memory accesses.
4192         * spu-linux-nat.c (spu_xfer_partial): Likewise.
4193         * spu-tdep.c (spu_lslr): Remove.
4194         (spu_pointer_to_address): Do not truncate addresses.
4195         (spu_integer_to_address): Likewise.
4196         (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4197         * spu-tdep.h: Add comments.
4198         (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4199         (SPU_OVERLAY_LMA): Define.
4200
4201 2010-06-18  Stan Shebs  <stan@codesourcery.com>
4202
4203         * osdata.c (get_osdata): Warn separately if target does not report
4204         type list.
4205         (info_osdata_command): Allow empty type, report error if target
4206         does not return available types of OS data.
4207         * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4208         types if no annex supplied.
4209
4210         * thread.c (thread_id_make_value): Make a value representing the
4211         current thread.
4212         (_initialize_thread): Create $_thread.
4213
4214 2010-06-17  Joel Brobecker  <brobecker@adacore.com>
4215
4216         * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4217         last local variable declaration.  No real code change.
4218
4219 2010-06-17  Tom Tromey  <tromey@redhat.com>
4220
4221         * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4222         (dwarf2_build_psymtabs_hard): Use it.  Create addrmap on a
4223         temporary obstack.
4224
4225 2010-06-16  Sergio Durigan Junior  <sergiodj@redhat.com>
4226             Jan Kratochvil  <jan.kratochvil@redhat.com>
4227
4228         * breakpoint.c: Include parser-defs.h.
4229         (watchpoint_exp_is_const): New function.
4230         (watch_command_1): Call watchpoint_exp_is_const to check
4231         if the expression is constant.
4232
4233 2010-06-15  Andreas Schwab  <schwab@linux-m68k.org>
4234
4235         * configure.ac: Check for RDYNAMIC also for cross builds.
4236         * configure: Regenerate.
4237
4238 2010-06-15  Pedro Alves  <pedro@codesourcery.com>
4239
4240         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4241         (SFILES): Remove solib-null.c, add solib-target.c.
4242         (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4243         (ALLDEPFILES): Remove solib-target.c.
4244         * solib-target.c (_initialize_solib_target): Set
4245         current_target_so_ops to solib_target_so_ops if not already set.
4246         * solib-null.c: Delete.
4247
4248 2010-06-14  Pedro Alves  <pedro@codesourcery.com>
4249
4250         * NEWS: Mention GDBserver's JIT compilation of tracepoint
4251         bytecode.
4252
4253 2010-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
4254
4255         * cp-valprint.c (cp_print_static_field): Members of
4256         dont_print_stat_array_obstack are of type "struct type *".
4257         (_initialize_cp_valprint): Likewise.
4258
4259 2010-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
4260
4261         * frame.c (frame_register_unwind): Do not access contents
4262         of "optimized out" unwound register value.
4263
4264 2010-06-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4265
4266         * ada-lang.h (ada_print_type): Make varstring const.
4267         * ada-typeprint.c (print_func_type): Make name const.
4268         (ada_print_type): Make varstring const.
4269         * c-lang.h (c_print_type): Make varstring const.
4270         * c-typeprint.c (c_print_type): Likewise.
4271         * f-lang.h (f_print_type): Likewise.
4272         * f-typeprint.c (f_print_type): Likewise.
4273         * jv-lang.h (java_print_type): Likewise.
4274         * jv-typeprint.c (java_print_type): Likewise.
4275         * language.c (unk_lang_print_type): Likewise.
4276         * language.h (struct language_defn) <la_print_type>: Likewise.
4277         * m2-lang.h (m2_print_type): Likewise.
4278         * m2-typeprint.c (m2_print_type): Likewise.
4279         * p-lang.h (pascal_print_type): Likewise.
4280         * p-typeprint.c (pascal_print_type): Likewise.
4281
4282 2010-06-11  Stan Shebs  <stan@codesourcery.com>
4283
4284         Add per-operation permission flags.
4285
4286         * target.h (struct target_ops): New method to_set_permissions.
4287         (target_set_permissions): New macro.
4288         (target_insert_breakpoint): Change macro to function.
4289         (target_remove_breakpoint): Ditto.
4290         (target_stop): Ditto.
4291         (may_write_registers): Declare.
4292         (may_write_memory): Declare.
4293         (may_insert_breakpoints): Declare.
4294         (may_insert_tracepoints): Declare.
4295         (may_insert_fast_tracepoints): Declare.
4296         (may_stop): Declare.
4297         * target.c (may_write_registers, may_write_registers_1): New globals.
4298         (may_write_memory, may_write_memory_1): New globals.
4299         (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4300         (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4301         (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4302         globals.
4303         (may_stop, may_stop_1): New global.
4304         (target_xfer_partial): Test for write permission.
4305         (target_store_registers): Ditto.
4306         (target_insert_breakpoint): New function.
4307         (target_remove_breakpoint): New function.
4308         (target_stop): New function.
4309         (_initialize_targets): Add new set/show variables.
4310         (set_write_memory_permission): New function.
4311         (update_target_permissions): New function.
4312         (set_target_permissions): New function.
4313         (update_current_target): Default to_set_permissions.
4314         (_initialize_targets): Use new globals and setter function.
4315         * tracepoint.c (start_tracing): Test for permission.
4316         * inferior.h (update_observer_mode): Declare.
4317         * infrun.c (non_stop_1): Define earlier.
4318         (observer_mode, observer_mode_1): New globals.
4319         (set_observer_mode, show_observer_mode): New functions.
4320         (update_observer_mode): New function.
4321         (_initialize_infrun): Define "set observer" command.
4322         * remote.c (PACKET_QAllow): New optional packet.
4323         (remote_protocol_features): Add QAllow.
4324         (remote_set_permissions): New function.
4325         (remote_start_remote): Call it.
4326         (init_remote_ops): Add it to target vector.
4327         (_initialize_remote): Add config command for QAllow.
4328
4329 2010-06-11  Tom Tromey  <tromey@redhat.com>
4330
4331         * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4332         DW_AT_vtable_elem_location even when GCC extension is seen.
4333
4334 2010-06-11  Tom Tromey  <tromey@redhat.com>
4335
4336         PR gdb/9977, PR exp/11636:
4337         * value.h (value_offset): Update.
4338         (struct lval_funcs) <check_validity>: New field.
4339         <copy_closure>: Make argument const.
4340         (value_computed_closure): Update.
4341         (value_contents_for_printing): Declare.
4342         (value_bits_valid): Likewise.
4343         (val_print): Likewise.
4344         (set_value_component_location): Update.
4345         (value_entirely_optimized_out): Declare.
4346         * value.c (value_offset): Argument now const.
4347         (require_not_optimized_out): New function.
4348         (value_contents_for_printing): New function.
4349         (value_contents_all): Call require_not_optimized_out.
4350         (value_contents): Likewise.
4351         (value_bits_valid): New function.
4352         (value_computed_closure): Argument now const.
4353         (set_value_component_location): Make 'whole' argument const.
4354         (value_entirely_optimized_out): New function.
4355         (value_bitsize): Argument now 'const'.
4356         (value_bitpos): Likewise.
4357         (value_type): Likewise.
4358         * valprint.h (val_print_array_elements): Update.
4359         * valprint.c (val_print): Add 'val' argument.  Use
4360         valprint_check_validity.
4361         (valprint_check_validity): New function.
4362         (value_check_printable): Use value_entirely_optimized_out.
4363         (common_val_print): Update.
4364         (value_print): Likewise.
4365         (val_print_array_elements): Add 'val' argument.
4366         * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4367         value_bits_valid.  Reinit frame cache for lval_computed.
4368         * sh64-tdep.c (sh64_do_register): Update.
4369         * scm-valprint.c (scm_val_print): Add 'val' argument.
4370         * scm-lang.h (scm_val_print): Update.
4371         * python/python.h (apply_val_pretty_printer): Update.
4372         * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4373         argument.  Call set_value_component_location.
4374         * printcmd.c (print_scalar_formatted): Update.
4375         * p-valprint.c (pascal_val_print): Add 'val' argument.
4376         (pascal_object_print_value_fields): Likewise.
4377         (pascal_object_print_value): Likewise.
4378         (pascal_object_print_static_field): Update.
4379         * p-lang.h (pascal_val_print): Update.
4380         (pascal_object_print_value_fields): Update.
4381         * mt-tdep.c (mt_registers_info): Update.
4382         * mi/mi-main.c (get_register): Update.
4383         (mi_cmd_data_evaluate_expression): Use common_val_print.
4384         * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4385         (m2_print_unbounded_array): Likewise.
4386         (m2_val_print): Likewise.
4387         * m2-lang.h (m2_val_print): Update.
4388         * language.h (struct language_defn) <la_val_print>: Add 'val'
4389         argument.
4390         (LA_VAL_PRINT): Likewise.
4391         * language.c (unk_lang_val_print): Add 'val' argument.
4392         * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4393         (java_val_print): Likewise.
4394         * jv-lang.h (java_val_print): Add 'val' argument.
4395         * infcmd.c (default_print_registers_info): Update.
4396         * f-valprint.c (f77_print_array_1): Add 'val' argument.
4397         (f77_print_array): Likewise.
4398         (f_val_print): Likewise.
4399         * f-lang.h (f_val_print): Add 'val' argument.
4400         * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4401         value_bitpos.
4402         <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning.  Call
4403         set_value_optimized_out.
4404         (write_pieced_value): Use value_bitsize and value_bitpos.
4405         <default>: Don't exit loop.
4406         (check_pieced_value_validity): New function.
4407         (pieced_value_funcs): Reference check_pieced_value_validity,
4408         check_pieced_value_invalid.
4409         (copy_pieced_value_closure): Update.
4410         (check_pieced_value_bits): New function.
4411         (check_pieced_value_invalid): New function.
4412         * d-valprint.c (dynamic_array_type): Add 'val' argument.
4413         (d_val_print): Likewise.
4414         * d-lang.h (d_val_print): Update.
4415         * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4416         (cp_print_value_fields_rtti): Likewise.
4417         (cp_print_value): Likewise.
4418         (cp_print_static_field): Update.
4419         * c-valprint.c (c_val_print): Add 'val' argument.
4420         (c_value_print): Update.
4421         * c-lang.h (c_val_print): Update.
4422         (cp_print_value_fields): Likewise.
4423         (cp_print_value_fields_rtti): Likewise.
4424         * ada-valprint.c (struct ada_val_print_args): Remove.
4425         (val_print_packed_array_elements): Add 'val' argument.
4426         (ada_val_print): Likewise.  Rewrite.
4427         (ada_val_print_stub): Remove.
4428         (ada_val_print_array): Add 'val' argument.
4429         (ada_val_print_1): Likewise.
4430         (print_variant_part): Likewise.
4431         (ada_value_print): Update.
4432         (print_record): Add 'val' argument.
4433         (print_field_values): Likewise.
4434         * ada-lang.h (ada_val_print): Update.
4435
4436 2010-06-11  Tom Tromey  <tromey@redhat.com>
4437
4438         * vec.h (VEC_cleanup): New macro.
4439         (DEF_VEC_ALLOC_FUNC_I): Update.
4440         (DEF_VEC_ALLOC_FUNC_P): Likewise.
4441         (DEF_VEC_ALLOC_FUNC_O): Likewise.
4442         * dwarf2loc.c (struct axs_var_loc): Remove.
4443         (unimplemented): New function.
4444         (translate_register): Likewise.
4445         (access_memory): Likewise.
4446         (compile_dwarf_to_ax): Likewise.
4447         (dwarf2_tracepoint_var_loc): Remove.
4448         (dwarf2_tracepoint_var_access): Likewise.
4449         (dwarf2_tracepoint_var_ref): Likewise.
4450         (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4451         (loclist_tracepoint_var_ref): Likewise.
4452         * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4453         * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4454         require_composition.  No longer static.
4455         (execute_stack_op): Update.
4456         * ax-gdb.h (trace_kludge): Declare.
4457
4458 2010-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4459
4460         * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4461         (should_be_inserted): Return zero also on NULL OWNER.
4462         (breakpoint_program_space_exit): New OWNER comment.
4463         (insert_breakpoint_locations): Extend comment for OWNER.
4464         (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4465         (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4466         New OWNER comment.
4467         (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4468         (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4469         (bpstat_check_location): New assert on OWNER.
4470         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4471         and B initializations to the code block.  New assert on them.
4472         (print_one_breakpoint_location): New OWNER comment.
4473         (watchpoint_locations_match): Assert on OWNER.
4474         (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4475         initializations to the code block.  New assert on OWNER.
4476         (set_breakpoint_location_function): New assert on OWNER.
4477         (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4478         (bp_location_compare, update_global_location_list)
4479         (update_global_location_list): New OWNER comment.
4480
4481 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
4482
4483         * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4484
4485 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
4486
4487         * config/nm-linux.h (struct target_ops): Remove forward declaration.
4488         (lin_thread_get_thread_signals): Remove prototype.
4489         (GET_THREAD_SIGNALS): Remove.
4490         * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4491         * linux-thread-db.c (check_thread_signals): Directly call
4492         lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4493
4494 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
4495
4496         * gregset.h (GDB_FPXREGSET_T): Remove.
4497         (gdb_fpxregset_t): Likewise.
4498         (supply_fpxregset): Remove prototype.
4499         (fill_fpxregset): Likewise.
4500         * i386-linux-nat.c (supply_fpxregset): Remove.
4501         (fill_fpxregset): Likewise.
4502         (fetch_fpxregs): Inline supply_fpxregset call.
4503         (store_fpxregs): Inline fill_fpxregset call.
4504
4505         * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4506         * config/i386/nm-linux.h: Remove file.
4507
4508 2010-06-09  Michael Snyder  <msnyder@vmware.com>
4509
4510         * target.c (update_current_target): Fix spelling error in comment.
4511         (target_mourn_inferior): Fix spelling error in error message.
4512
4513 2010-06-08  Paul Hilfinger  <hilfingr@adacore.com>
4514
4515       * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4516       SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4517
4518 2010-06-08  Michael Snyder  <msnyder@vmware.com>
4519
4520         * remote.c (remote_close): Set inferior_ptid to null_ptid.
4521
4522 2010-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4523
4524         * configure.ac <"${have_libpython}" != no>: New workaround of
4525         python#4434.
4526         * configure: Regenerate.
4527
4528 2010-06-08  Hui Zhu  <teawater@gmail.com>
4529
4530         * record.c (record_wait): Move signal out of replay code.
4531
4532 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4533
4534         Fix PR 10640.
4535         * dwarf2-frame.c (no_dwarf_call): New function.
4536         (execute_stack_op): Set CTX->DWARF_CALL.
4537         * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4538         * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4539         (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4540         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4541         (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4542         (needs_frame_dwarf_call): New function.
4543         (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4544         * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4545         Update the comment.  Move variables die, offset and error call to ...
4546         (follow_die_ref): ... a new function.
4547         (dwarf2_fetch_die_location_block): New function.
4548         * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4549
4550 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4551
4552         * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4553         (dwarf_expr_tls_address): Use per_cu instead of objfile.
4554         (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4555         Initialize new BATON.PER_CU.  Adjust CTX->GDBARCH initialization for
4556         this change.
4557         (struct needs_frame_baton): New field per_cu.
4558         (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4559         * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4560
4561 2010-06-07  Sami Wagiaalla  <swagiaal@redhat.com>
4562
4563         * cp-support.c (make_symbol_overload_list_namespace): Only search
4564         static and global blocks.
4565         (make_symbol_overload_list_block): New function.
4566         (make_symbol_overload_list): Separate namespace search from block
4567         search.
4568         (make_symbol_overload_list_qualified): Use
4569         make_symbol_overload_list_block.
4570
4571 2010-06-07  Sami Wagiaalla  <swagiaal@redhat.com>
4572
4573         * value.h: Created oload_search_type enum.
4574         (find_overload_match): Use oload_search_type enum.
4575         * valops.c (find_overload_match): Support combined member and
4576         non-member search.
4577         * eval.c (evaluate_subexp_standard): Calls to
4578         find_overload_match now use oload_search_type enum.
4579         (oload_method_static): Verify index is a proper value.
4580         * valarith.c (value_user_defined_cpp_op): Search for and handle
4581         both member and non-member operators.
4582         (value_user_defined_cpp_op): New function.
4583         (value_user_defined_op): New function.
4584         (value_x_unop): Use value_user_defined_op.
4585         (value_x_binop): Ditto.
4586         * cp-support.c (make_symbol_overload_list_using): Added block
4587         iteration.
4588         Add check for namespace aliases and imported declarations.
4589
4590 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4591
4592         * breakpoint.h (owner): Extend the comment.
4593
4594 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4595
4596         Clear stale specific bp_location from former whole breakpoint.
4597         * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4598         code ...
4599         (free_bp_location): ... here.  Rename there the called function to
4600         bpstat_remove_bp_location_callback.
4601         (bpstat_remove_breakpoint_callback): Rename to ...
4602         (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4603         to struct bp_location.  Change the called function to
4604         bpstat_remove_bp_location.  Create new declaration for the function.
4605         (bpstat_remove_breakpoint): Rename to ...
4606         (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4607         code for the new parameter type.
4608
4609 2010-06-07  Nathan Sidwell  <nathan@codesourcery.com>
4610
4611         * README: Make version-agnostic.
4612
4613 2010-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4614
4615         Fix duplicate types for single DIE.
4616         * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4617         set_die_type.
4618         (read_array_type): Remove type initialization.  Recheck get_die_type
4619         after initial die_type.  Move set_die_type before set_descriptive_type.
4620         (read_set_type): New variable domain_type.  Recheck get_die_type after
4621         initial die_type.  Move attr initialization later.
4622         (read_tag_pointer_type, read_tag_reference_type): New variable
4623         target_type.  Recheck get_die_type after initial die_type.
4624         (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4625         die_type and die_containing_type.
4626         (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4627         Recheck get_die_type after initial die_type.
4628         (read_subrange_type): Recheck get_die_type after initial die_type.
4629         Move set_die_type before set_descriptive_type.
4630         (set_die_type): Extend the function comment.  Call complaint if DIE has
4631         some type already set.
4632
4633 2010-06-05  Vladimir Prus  <vladimir@codesourcery.com>
4634
4635         * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4636         for current naming of thread groups (iN, not N).
4637
4638 2010-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
4639
4640         * ada-lang.c (ada_operator_length): Constify `struct expression'.
4641         * parse.c (operator_length): Likewise.
4642         (operator_length_standard): Likewise.
4643         * parser-defs.h (operator_length): Likewise.
4644         (operator_length_standard): Likewise.
4645         (struct exp_descriptor <operator_length>): Likewise.
4646
4647 2010-06-04  Doug Evans  <dje@google.com>
4648
4649         Add support for enabling/disabling individual pretty-printers.
4650         * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4651         * python/python-internal.h (gdbpy_enabled_cst): Declare.
4652         * python/python.c (gdbpy_enabled_cst): Define.
4653         (_initialize_python): Initialize gdbpy_enabled_cst.
4654         * NEWS: Add entry.
4655
4656 2010-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4657
4658         * breakpoint.c (update_global_location_list): Fix comment typo.
4659
4660 2010-06-04  Hui Zhu  <teawater@gmail.com>
4661
4662         * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4663
4664 2010-06-03  Doug Evans  <dje@google.com>
4665
4666         * configure.ac: Don't fail if python is unusable when
4667         configured with --with-python=auto.
4668         * configure: Regenerate.
4669
4670 2010-06-03  Sami Wagiaalla  <swagiaal@redhat.com>
4671
4672         * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4673
4674 2010-06-03  Pierre Muller  <muller@ics.u-strasbg.fr>
4675
4676         * valprint.h (get_array_bounds): Change low and high parameter types
4677         to LONGEST *.
4678         * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4679         compute bounds.
4680         (val_print_array_elements): Adapt to change above.
4681         * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4682         * p-valprint.c (pascal_val_print): Likewise.
4683
4684 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4685
4686         * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4687         .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4688         .F08.
4689
4690 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4691
4692         Support DW_TAG_module as separate namespaces.
4693         * dwarf2read.c (typename_concat): New parameter physname.
4694         (read_module_type): New function and declaration.
4695         (scan_partial_symbols): Scan also DW_TAG_module children.
4696         (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4697         to typename_concat backward compatible physname value 0.
4698         (partial_die_full_name, read_namespace_type): Pass to typename_concat
4699         backward compatible physname value 0.
4700         (add_partial_module, read_module): Remove FIXME comment.
4701         (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4702         (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4703         DIEs under DW_TAG_module.
4704         (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4705         DW_AT_MIPS_linkage_name first, extend it for language_fortran
4706         && physname and return there instead of just setting NAME.  Extend
4707         the main block for language_fortran.  Pass physname parameter to the
4708         typename_concat call.
4709         (read_import_statement, read_func_scope, get_scope_pc_bounds)
4710         (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4711         (new_symbol): Fill in cplus_specific.demangled_name if it is still
4712         missing from SYMBOL_SET_NAMES in the language_fortran case.
4713         (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4714         variables.
4715         (read_type_die) <DW_TAG_module>: New.
4716         (MAX_SEP_LEN): Increase to 7.
4717         (typename_concat): New parameter physname.  New variable lead.  Support
4718         also language_fortran.
4719         * f-exp.y (yylex): Consider : also as a symbol name character class.
4720         * f-lang.c: Include cp-support.h.
4721         (f_word_break_characters, f_make_symbol_completion_list): New functions.
4722         (f_language_defn): Use cp_lookup_symbol_nonlocal,
4723         f_word_break_characters and f_make_symbol_completion_list.
4724         * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4725         * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4726         * symtab.c (symbol_init_language_specific): Support language_fortran.
4727         (symbol_find_demangled_name): New comment on language_fortran.
4728         (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4729         for language_fortran.
4730         (lookup_symbol_aux_local): Check imports also for language_fortran.
4731         (default_make_symbol_completion_list): Rename to ...
4732         (default_make_symbol_completion_list_break_on): ... this name.  New
4733         parameter break_on, use it.
4734         (default_make_symbol_completion_list): New stub.
4735         * symtab.h (default_make_symbol_completion_list_break_on): New
4736         prototype.
4737
4738 2010-06-02  Joel Brobecker  <brobecker@adacore.com>
4739
4740         * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4741         to error.
4742
4743 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4744
4745         * dwarf2read.c (typename_concat): Add const to the variable sep.
4746
4747 2010-06-02  Tom Tromey  <tromey@redhat.com>
4748
4749         * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4750         * dwarf2read.c (dwarf_stack_op_name): No longer static.  Return
4751         type is const.  Add 'def' argument.  Add missing operators, remove
4752         unhandled ones.
4753         (decode_locdesc): Update.
4754         (dwarf2_always_disassemble): New global.
4755         (show_dwarf2_always_disassemble): New function.
4756         (_initialize_dwarf2_read): Add always-disassemble.
4757         (dwarf2_per_cu_offset_size): New function.
4758         * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4759         (piece_end_p): New function.
4760         (locexpr_describe_location_piece): Replace 'size' argument with
4761         'end'.  Use piece_end_p.  Rewrite recognition of TLS.  Recognize
4762         some constants.  Remove errors.
4763         (disassemble_dwarf_expression): New function.
4764         (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4765         Add 'offset_size' argument.
4766         (loclist_describe_location): Change output formatting.
4767         * dwarf2expr.h (dwarf_stack_op_name): Declare.
4768
4769 2010-06-02  Sami Wagiaalla  <swagiaal@redhat.com>
4770
4771         * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4772         anonymous type case.
4773
4774 2010-06-02  Pierre Muller  <muller@ics.u-strasbg.fr>
4775
4776         * dwarf2read.c (read_subrange_type): Handle missing base type
4777         according to Dwarf-2 specifications.
4778
4779 2010-06-01  Sergio Durigan Junior  <sergiodj@redhat.com>
4780
4781         * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4782         BINOP_EXCL.
4783         (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4784         UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4785         (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4786         BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4787         UNOP_CHMAX, UNOP_CHMIN.
4788         * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4789         UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4790         UNOP_CHMIN>: Remove opcodes.
4791
4792 2010-06-01  Pierre Muller  <muller@ics.u-strasbg.fr>
4793
4794         * dwarf2read.c (read_func_scope): Do not complain for
4795         external function if bounds are not found.
4796
4797 2010-06-01  Pedro Alves  <pedro@codesourcery.com>
4798
4799         * NEWS: Mention gdbserver fast tracepoints support.
4800
4801 2010-05-31  Pierre Muller  <muller@ics.u-strasbg.fr>
4802
4803         * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4804         New macros.
4805         (windows_set_console_info): New function.
4806         (windows_create_inferior): Call windows_set_console_info
4807         if NEW_CONSOLE is true.
4808         (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4809         (_initialize_loadable): Initialize GetConsoleFontSize and
4810         GetCurrentConsoleFont.
4811
4812 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4813
4814         * Makefile.in (RDYNAMIC): New.
4815         (SFILES): Add proc-service.list.
4816         * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4817         (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4818         * config/arm/linux.mh: Likewise.
4819         * config/i386/linux.mh: Likewise.
4820         * config/i386/linux64.mh: Likewise.
4821         * config/ia64/linux.mh: Likewise.
4822         * config/m32r/linux.mh: Likewise.
4823         * config/m68k/linux.mh: Likewise.
4824         * config/mips/linux.mh: Likewise.
4825         * config/pa/linux.mh: Likewise.
4826         * config/powerpc/linux.mh: Likewise.
4827         * config/powerpc/ppc64-linux.mh: Likewise.
4828         * config/s390/s390.mh: Likewise.
4829         * config/sparc/linux.mh: Likewise.
4830         * config/sparc/linux64.mh: Likewise.
4831         * config/xtensa/linux.mh: Likewise.
4832         * configure.ac: New RDYNAMIC on native host and GCC.
4833         (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4834         * configure: Regenerate.
4835         * proc-service.list: New.
4836
4837 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4838
4839         * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4840         CONTENT.
4841
4842 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4843
4844         * linux-nat.c (linux_nat_wait_1): Do not call
4845         linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4846         TARGET_WAITKIND_SIGNALLED.
4847
4848 2010-05-27  Joel Brobecker  <brobecker@adacore.com>
4849
4850         * ada-lang.c (ada_inferior_data): New struct.
4851         (ada_inferior_data): New static global.
4852         (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4853         (ada_get_tsd_type): New functions.
4854         (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4855         to look the tsd type up.
4856         (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4857         event.  Set ada_inferior_data.
4858
4859 2010-05-27  Pedro Alves  <pedro@codesourcery.com>
4860
4861         * remote.c (unpack_varlen_hex): Remove forward declaration.
4862         (remote_console_output): Make static, and add forward declaration.
4863         * remote.h: Drop FIXME comment.
4864         (unpack_varlen_hex): Declare.
4865         (remote_console_output, remote_cisco_objfile_relocate)
4866         (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4867         Delete declarations.
4868         * tracepoint.c: Include "remote.h".
4869         (unpack_varlen_hex): Delete declaration.
4870
4871 2010-05-27  Tom Tromey  <tromey@redhat.com>
4872
4873         * dwarf2loc.c (struct piece_closure) <refc>: New field.
4874         (allocate_piece_closure): Initialize refc.
4875         (copy_pieced_value_closure): Use refc.
4876         (free_pieced_value_closure): Likewise.
4877
4878 2010-05-27  Tom Tromey  <tromey@redhat.com>
4879
4880         * arm-tdep.c (push_stack_item): 'contents' now const.
4881         (arm_push_dummy_call): Make 'val' const.  Use value_contents, not
4882         value_contents_writeable.  Introduce new temporary.
4883
4884 2010-05-27  Tom Tromey  <tromey@redhat.com>
4885
4886         * findcmd.c (parse_find_args): Use value_contents, not
4887         value_contents_raw.
4888
4889 2010-05-27  Tom Tromey  <tromey@redhat.com>
4890
4891         * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4892         const.  Use value_contents, not value_contents_writeable.
4893
4894 2010-05-27  Joel Brobecker  <brobecker@adacore.com>
4895
4896         * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4897         by call to value_contents.
4898
4899 2010-05-27  Ozkan Sezer  <sezeroz@gmail.com>
4900
4901         * MAINTAINERS: Add myself for write after approval privileges.
4902
4903 2010-05-26  Doug Evans  <dje@google.com>
4904
4905         Allow python to find its files if moved from original location.
4906         * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4907         (GDB_AC_WITH_DIR): Call it.
4908         * configure.ac: Define WITH_PYTHON_PATH if we can find the
4909         python installation directory.
4910         * config.in: Regenerate.
4911         * configure: Regenerate.
4912         * defs.h (python_libdir): Declare.
4913         * main.c (python_libdir): Define.
4914         (captured_main): Initialize python_libdir.
4915         * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4916         call Py_SetProgramName to make sure python can find its libraries
4917         and modules.
4918
4919         * configure.ac: Try to use python's distutils to fetch compilation
4920         parameters.
4921         * configure: Regenerate.
4922         * python/python-config.py: New file.
4923
4924 2010-05-26  Ozkan Sezer  <sezeroz@gmail.com>
4925
4926         * ser-tcp.c (net_open): Check error return from socket() call by its
4927         equality to -1 not by it being negative.
4928         (net_close): Likewise.
4929
4930 2010-05-26  Pedro Alves  <pedro@codesourcery.com>
4931
4932         * NEWS: Mention the `qRelocInsn' feature.
4933         * gdbarch.sh (relocate_instruction): New.
4934         * amd64-tdep.c (rip_relative_offset): New.
4935         (append_insns): New.
4936         (amd64_relocate_instruction): New.
4937         (amd64_init_abi): Install it.
4938         * i386-tdep.c (append_insns): New.
4939         (i386_relocate_instruction): New.
4940         (i386_gdbarch_init): Install it.
4941         * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4942         * gdbarch.h, gdbarch.c: Regenerate.
4943
4944 2010-05-26  Tom Tromey  <tromey@redhat.com>
4945
4946         * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4947         (struct dwarf2_loclist_baton) <data>: Likewise.
4948         * dwarf2loc.c (find_location_expression): Constify return type.
4949         (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4950         (dwarf2_loc_desc_needs_frame): Likewise.
4951         (loclist_read_variable): Constify.
4952         (loclist_describe_location): Likewise.
4953         (loclist_tracepoint_var_ref): Likewise.
4954
4955 2010-05-25  Tom Tromey  <tromey@redhat.com>
4956
4957         * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4958         (dwarf_expr_frame_base_1): Likewise.
4959         (read_pieced_value): Update.
4960         (needs_frame_frame_base): Constify.
4961         (dwarf2_tracepoint_var_loc): Likewise.
4962         (dwarf2_tracepoint_var_access): Likewise.
4963         (locexpr_describe_location_piece): Likewise.
4964         (locexpr_describe_location_1): Likewise.
4965         * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4966         Constify.
4967         (data): Now const.
4968         (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4969         (dwarf_expr_eval, read_uleb128, read_sleb128)
4970         (dwarf2_read_address): Update.
4971         * dwarf2expr.c (dwarf_expr_eval): Constify.
4972         (read_uleb128): Likewise.
4973         (read_sleb128): Likewise.
4974         (dwarf2_read_address): Likewise.
4975         (require_composition): Likewise.
4976         (execute_stack_op): Likewise.
4977         * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4978         "const gdb_byte *".
4979         * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4980         Now const.
4981         (no_get_frame_base): Constify.
4982         (execute_stack_op): Likewise.
4983         (execute_cfa_program): Likewise.
4984         (read_encoded_value): Likewise.
4985
4986 2010-05-25  Doug Evans  <dje@google.com>
4987
4988         * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4989
4990         * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4991         * event-loop.c: ... here.
4992         * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4993         `error' for clarity.
4994         (tui_getc): Pass correct value for `error' parameter to
4995         tui_readline_output.
4996
4997         Add python gdb.GdbError and gdb.string_to_argv.
4998         * NEWS: Document them.
4999         * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5000         the exception is gdb.GdbError.  Print a second traceback if there's
5001         an error computing the error message.
5002         (gdbpy_string_to_argv): New function.
5003         * python/py-utils.c (gdbpy_obj_to_string): New function.
5004         (gdbpy_exception_to_string): New function.
5005         * python/python-internal.h (gdbpy_string_to_argv): Declare.
5006         (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5007         (gdbpy_gdberror_exc): Declare.
5008         * python/python.c (gdbpy_gdberror_exc): New global.
5009         (_initialize_python): Initialize gdbpy_gdberror_exc and create
5010         gdb.GdbError.
5011         (GdbMethods): Add string_to_argv.
5012
5013 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
5014
5015         * windows-nat.c (display_selector): Call GetLastError to give better
5016         failure explanation.
5017
5018 2010-05-24  Pedro Alves  <pedro@codesourcery.com>
5019
5020         * config.in: Regenerate.
5021
5022 2010-05-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
5023
5024         Code cleanup.
5025         * target.c (push_target): Return only void.  Remove the return value
5026         comment.
5027         * target.h (push_target): Return only void.
5028
5029 2010-05-23  Pedro Alves  <pedro@codesourcery.com>
5030
5031         Update gnulib from latest git.
5032         (250b80067c1e1d8faa0c42fb572f721975b929c5)
5033
5034         * gnulib/memcmp.c: Removed.
5035         * gnulib/memchr.valgrind: New.
5036         * gnulib/stddef.in.h: New.
5037         * gnulib/Makefile.am: Updated.
5038         * gnulib/memchr.c: Updated.
5039         * gnulib/memmem.c: Updated.
5040         * gnulib/stdint.in.h: Updated.
5041         * gnulib/str-two-way.h: Updated.
5042         * gnulib/string.in.h: Updated.
5043         * gnulib/wchar.in.h: Updated.
5044
5045         * gnulib/extra/link-warning.h: Removed.
5046         * gnulib/extra/c++defs.h: New.
5047         * gnulib/extra/warn-on-use.h: New.
5048         * gnulib/extra/arg-nonnull.h: Updated.
5049
5050         * gnulib/m4/extensions.m4: Updated.
5051         * gnulib/m4/gnulib-cache.m4: Updated.
5052         * gnulib/m4/gnulib-common.m4: Updated.
5053         * gnulib/m4/gnulib-comp.m4: Updated.
5054         * gnulib/m4/gnulib-tool.m4: Updated.
5055         * gnulib/m4/include_next.m4: Updated.
5056         * gnulib/m4/longlong.m4: Updated.
5057         * gnulib/m4/memchr.m4: Updated.
5058         * gnulib/m4/memmem.m4: Updated.
5059         * gnulib/m4/stdint.m4: Updated.
5060         * gnulib/m4/string_h.m4: Updated.
5061         * gnulib/m4/memcmp.m4: Removed.
5062         * gnulib/m4/onceonly_2_57.m4: Removed.
5063         * gnulib/m4/00gnulib.m4: New.
5064         * gnulib/m4/mmap-anon.m4: New.
5065         * gnulib/m4/multiarch.m4: New.
5066         * gnulib/m4/onceonly.m4: New.
5067         * gnulib/m4/stddef_h.m4: New.
5068         * gnulib/m4/warn-on-use.m4: New.
5069         * gnulib/m4/wchar.m4: Removed.
5070         * gnulib/m4/wchar_h.m4: New.
5071         * gnulib/m4/wchar_t.m4: New.
5072         * gnulib/m4/wint_t.m4: New.
5073
5074         * aclocal.m4: Regenerate.
5075         * config.in: Likewise.
5076         * configure: Likewise.
5077         * gnulib/Makefile.in: Likewise.
5078
5079 2010-05-21  Tom Tromey  <tromey@redhat.com>
5080
5081         * dwarf2loc.c (extract_bits_primitive): New function.
5082         (extract_bits): Likewise.
5083         (insert_bits): Likewise.
5084         (copy_bitwise): Likewise.
5085         (read_pieced_value): Do all operations in bits.
5086         (write_pieced_value): Likewise.
5087         * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5088         * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5089         Always use xrealloc to resize piece array.
5090         (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5091         <DW_OP_piece>: Update.
5092         <DW_OP_bit_piece>: New case.
5093
5094 2010-05-21  Tom Tromey  <tromey@redhat.com>
5095
5096         * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5097         <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5098         * dwarf2expr.h (enum dwarf_value_location)
5099         <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5100         * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5101         (add_piece): Handle empty piece.
5102         (execute_stack_op) <DW_OP_piece>: Handle
5103         DWARF_VALUE_OPTIMIZED_OUT.
5104
5105 2010-05-21  Tom Tromey  <tromey@redhat.com>
5106
5107         * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5108         evaluate_subexp, not evaluate_subexp_with_coercion.
5109
5110 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
5111
5112         * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5113         attribute.
5114
5115 2010-05-21  Tom Tromey  <tromey@redhat.com>
5116
5117         * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5118         offset.
5119         (write_pieced_value): Likewise.
5120
5121 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
5122
5123         * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5124         and DW_TAG_volatile_type.
5125         (new_symbol): Likewise.
5126
5127 2010-05-20  Pierre Muller  <muller@ics.u-strasbg.fr>
5128
5129         * p-valprint.c (pascal_val_print): Call get_array_bounds
5130         to obtain the number of elements in an array.
5131
5132 2010-05-19  Doug Evans  <dje@google.com>
5133
5134         * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5135
5136         * python.c (source_python_script): Add comment.
5137         (source_python_script_for_objfile): Remove unnecessary call to
5138         gdbpy_print_stack.
5139
5140 2010-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5141             Sergio Durigan Junior  <sergiodj@redhat.com>
5142
5143         Code cleanup.
5144         * parse.c (exp_iterate): Use operator_length wrapper function.
5145
5146 2010-05-18  Michael Snyder  <msnyder@vmware.com>
5147
5148         * ada-lang.c: White space.
5149         * ada-typeprint.c: White space.
5150         * ada-valprint.c: White space.
5151         * addrmap.c: White space.
5152         * auxv.c: White space.
5153         * ax-gdb.c: White space.
5154
5155 2010-05-18  Hui Zhu  <teawater@gmail.com>
5156
5157         * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5158         for oldfp.
5159         (inferior_call_waitpid): Move make_cleanup out of check.
5160         Check the return of waitpid.
5161         (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5162
5163 2010-05-17  Michael Snyder  <msnyder@vmware.com>
5164
5165         * tui/tui.c: White space.
5166         * tui/tui-data.c: White space.
5167         * tui/tui-disasm.c: White space.
5168         * tui/tui-file.c: White space.
5169         * tui/tui-interp.c: White space.
5170         * tui/tui-main.c: White space.
5171         * tui/tui-out.c: White space.
5172         * tui/tui-regs.c: White space.
5173         * tui/tui-source.c: White space.
5174         * tui/tui-stack.c: White space.
5175         * tui/tui-win.c: White space.
5176         * tui/tui-winsource.c: White space.
5177
5178         * procfs.c: White space.
5179
5180         * python/py-auto-load.c: White space.
5181         * python/py-block.c: White space.
5182         * python/py-breakpoint.c: White space.
5183         * python/py-cmd.c: White space.
5184         * python/py-function.c: White space.
5185         * python/py-lazy-string.c: White space.
5186         * python/py-objfile.c: White space.
5187         * python/py-param.c: White space.
5188         * python/py-prettyprint.c: White space.
5189         * python/py-progspace.c: White space.
5190         * python/py-symtab.c: White space.
5191         * python/python.c: White space.
5192         * python/py-type.c: White space.
5193         * python/py-utils.c: White space.
5194         * python/py-value.c: White space.
5195
5196         * mi/mi-cmd-break.c: White space.
5197         * mi/mi-cmd-env.c: White space.
5198         * mi/mi-cmds.c: White space.
5199         * mi/mi-cmd-stack.c: White space.
5200         * mi/mi-cmd-var.c: White space.
5201         * mi/mi-console.c: White space.
5202         * mi/mi-getopt.c: White space.
5203         * mi/mi-interp.c: White space.
5204         * mi/mi-main.c: White space.
5205         * mi/mi-out.c: White space.
5206         * mi/mi-parse.c: White space.
5207
5208         * cli/cli-cmds.c: White space.
5209         * cli/cli-decode.c: White space.
5210         * cli/cli-dump.c: White space.
5211         * cli/cli-interp.c: White space.
5212         * cli/cli-logging.c: White space.
5213         * cli/cli-script.c: White space.
5214         * cli/cli-setshow.c: White space.
5215
5216         * valarith.c: White space.
5217         * valops.c: White space.
5218         * valprint.c: White space.
5219         * value.c: White space.
5220         * varobj.c: White space.
5221         * xcoffread.c: White space.
5222         * xml-support.c: White space.
5223         * xml-tdesc.c: White space.
5224
5225 2010-05-17  Andreas Schwab  <schwab@redhat.com>
5226
5227         PR gdb/11092
5228         * c-lang.c (c_printstr): Compute real length of NUL terminated
5229         string at first.
5230
5231 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
5232
5233         * parse.c (parse_exp_in_context): When block is not NULL, use
5234         its associated language to parse the expression instead of
5235         the current_language.
5236
5237 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
5238
5239         * jv-lang.c (java_lookup_class): Remove commented out code.
5240         (type_from_class): Likewise.
5241         (java_op_print_tab): Remove commented-out elements.
5242
5243 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
5244
5245         * ada-lang.c (to_fixed_range_type): The the raw index type as
5246         argument instead of the raw type name.  Remove orig_type parameter.
5247         Update calls throughout.
5248         (ada_fixup_array_indexes_type): New function.
5249         (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5250         * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5251         * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5252         Remove name parameter.
5253         (print_array_type): Add call to ada_fixup_array_indexes_type.
5254         Update calls to print_range_type.
5255         (ada_print_type): Update calls to print_range_type.
5256
5257 2010-05-17  Pierre Muller  <muller@ics.u-strasbg.fr>
5258
5259         * dwarf2read.c (read_set_type): Set type length if
5260         DW_AT_byte_size attribute is present.
5261
5262 2010-05-17  Pierre Muller  <muller@ics.u-strasbg.fr>
5263
5264         * p-valprint.c (pascal_val_print): Handle set type if range limits
5265         are undefined but size is known.
5266
5267 2010-05-17  Pedro Alves  <pedro@codesourcery.com>
5268
5269         * procfs.c: Reformat.
5270
5271 2010-05-16  Michael Snyder  <msnyder@vmware.com>
5272
5273         * target.c: White space.
5274         * target-descriptions.c: White space.
5275         * target-memory.c: White space.
5276         * thread.c: White space.
5277         * top.c: White space.
5278         * tracepoint.c: White space.
5279         * trad-frame.c: White space.
5280         * tramp-frame.c: White space.
5281         * ui-file.c: White space.
5282         * ui-out.c: White space.
5283         * user-regs.c: White space.
5284         * utils.c: White space.
5285
5286         * scm-exp.c: White space.
5287         * scm-lang.c: White space.
5288         * scm-valprint.c: White space.
5289         * sentinel-frame.c: White space.
5290         * ser-base.c: White space.
5291         * ser-go32.c: White space.
5292         * serial.c: White space.
5293         * ser-mingw.c: White space.
5294         * ser-pipe.c: White space.
5295         * ser-tcp.c: White space.
5296         * ser-unix.c: White space.
5297         * solib.c: White space.
5298         * solib-darwin.c: White space.
5299         * solib-frv.c: White space.
5300         * solib-irix.c: White space.
5301         * solib-osf.c: White space.
5302         * solib-pa64.c: White space.
5303         * solib-som.c: White space.
5304         * solib-spu.c: White space.
5305         * solib-svr4.c: White space.
5306         * solib-target.c: White space.
5307         * source.c: White space.
5308         * stabsread.c: White space.
5309         * stack.c: White space.
5310         * std-regs.c: White space.
5311         * symfile.c: White space.
5312         * symmisc.c: White space.
5313         * symtab.c: White space.
5314
5315 2010-05-16  Michael Snyder  <msnyder@vmware.com>
5316
5317         * source.c (_initialize_source): Add "rev" as an abbreviation
5318         for the "reverse-search" command.
5319
5320 2010-05-16  Michael Snyder  <msnyder@vmware.com>
5321
5322         * record.c: White space.
5323         * regcache.c: White space.
5324         * reggroups.c: White space.
5325         * remote-fileio.c: White space.
5326         * remote-m32r-sdi.c: White space.
5327         * remote-mips.c: White space.
5328         * remote-sim.c: White space.
5329         * remote.c: White space.
5330         (process_g_packet): Remove orphan braces.
5331
5332 2010-05-15  Michael Snyder  <msnyder@vmware.com>
5333
5334         * parse.c: White space.
5335         * p-lang.c: White space.
5336         * posix-hdep.c: White space.
5337         * printcmd.c: White space.
5338         * progspace.c: White space.
5339         * prologue-value.c: White space.
5340         * psymtab.c: White space.
5341         * p-typeprint.c: White space.
5342         * p-valprint.c: White space.
5343
5344         * objc-lang.c: White space.
5345         * objfiles.c: White space.
5346         * observer.c: White space.
5347         * osabi.c: White space.
5348         * osdata.c: White space.
5349
5350         * m2-lang.c: White space.
5351         * m2-valprint.c: White space.
5352         * macrocmd.c: White space.
5353         * macroexp.c: White space.
5354         * macroscope.c: White space.
5355         * macrotab.c: White space.
5356         * main.c: White space.
5357         * maint.c: White space.
5358         * mdebugread.c: White space.
5359         * memattr.c: White space.
5360         * minsyms.c: White space.
5361         * monitor.c: White space.
5362
5363 2010-05-14  Michael Snyder  <msnyder@vmware.com>
5364
5365         * jv-lang.c: White space.
5366         * jv-typeprint.c: White space.
5367         * jv-valprint.c: White space.
5368         * language.c: White space.
5369         * libunwind-frame.c: White space.
5370         * linespec.c: White space.
5371         * linux-nat.c: White space.
5372         * linux-record.c: White space.
5373         * linux-thread-db.c: White space.
5374
5375         * infcall.c: White space.
5376         * inf-child.c: White space.
5377         * infcmd.c: White space.
5378         * inferior.c: White space.
5379         * inf-loop.c: White space.
5380         * inflow.c: White space.
5381         * inline-frame.c: White space.
5382         * interps.c: White space.
5383
5384         * gcore.c: White space.
5385         * gdb.c: White space.
5386         * gdbtypes.c: White space.
5387         * gnu-nat.c: White space.
5388         * gnu-v2-abi.c: White space.
5389         * gnu-v3-abi.c: White space.
5390
5391         * findcmd.c: White space.
5392         * findvar.c: White space.
5393         * fork-child.c: White space.
5394         * frame-base.c: White space.
5395         * frame.c: White space.
5396         * frame-unwind.c: White space.
5397         * f-valprint.c: White space.
5398
5399         * elfread.c: White space.
5400         * environ.c: White space.
5401         * eval.c: White space.
5402         * event-loop.c: White space.
5403         * event-top.c: White space.
5404         * exceptions.c: White space.
5405         * exec.c: White space.
5406         * expprint.c: White space.
5407
5408         * dbxread.c: White space.
5409         * dcache.c: White space.
5410         * disasm.c: White space.
5411         * doublest.c: White space.
5412         * dsrec.c: White space.
5413         * dummy-frame.c: White space.
5414         * dwarf2expr.c: White space.
5415         * dwarf2-frame.c: White space.
5416         * dwarf2loc.c: White space.
5417         * dwarf2read.c: White space.
5418
5419 2010-05-14  Phil Muldoon  <pmuldoon@redhat.com>
5420
5421         PR python/11482
5422
5423         * python/py-value.c (valpy_hash): New function.
5424         (value_object_type): Register valpy_hash.
5425
5426 2010-05-14  Hui Zhu  <teawater@gmail.com>
5427             Michael Snyder  <msnyder@vmware.com>
5428
5429         * linux-fork.c (gdbthread.h): New include.
5430         (fork_info): Add parent_ptid.
5431         (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5432         functions.
5433         (delete_checkpoint_command): Call inferior_call_waitpid.
5434         (checkpoint_command): Set parent_ptid.
5435
5436 2010-05-13  Michael Snyder  <msnyder@vmware.com>
5437
5438         * dictionary.c: Re-indent to GNU coding standard.
5439
5440         * charset.c: White space.
5441         * c-lang.c: White space.
5442         * cli-out.c: White space.
5443         * coffread.c: White space.
5444         * complaints.c: White space.
5445         * completer.c: White space.
5446         * corefile.c: White space.
5447         * corelow.c: White space.
5448         * cp-abi.c: White space.
5449         * cp-namespace.c: White space.
5450         * cp-support.c: White space.
5451         * cp-valprint.c: White space.
5452         * c-typeprint.c: White space.
5453         * c-valprint.c: White space.
5454         * blockframe.c: White space.
5455         * breakpoint.c: White space.
5456         * buildsym.c: White space.
5457         * blockframe.c: White space.
5458         * bcache.c: White space.
5459         * gdbarch.sh: White space, add blank lines.
5460         * arch-utils.c: Ditto.
5461         * gdbarch.c: Regenerate.
5462         * frame.c: White space, add blank lines.
5463         * stack.c: White space, add blank lines.
5464         (initialize_stack): Remove long-dead code.
5465
5466 2010-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5467
5468         Code cleanup.
5469         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5470         (locexpr_read_variable, loclist_read_variable): Update the callers.
5471
5472 2010-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5473
5474         Code cleanup.
5475         * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5476         Remove check of NULL returned by tag_type_to_type.
5477         (die_containing_type): Remove variable type.  Remove type_die variable
5478         initialization.  Remove check of NULL returned by tag_type_to_type.
5479
5480 2010-05-11  Pierre Muller  <muller@ics.u-strasbg.fr>
5481
5482         PR exp/11530.
5483         * gdbtypes.c (lookup_struct_elt_type): Also lookup
5484         names of unnamed structures or unions.
5485
5486 2010-05-11  Pierre Muller  <muller@ics.u-strasbg.fr>
5487
5488         * procfs.c (proc_watchpoint_address): New function.
5489         (procfs_stopped_by_watchpoint): Remove useless check after
5490         find_procinfo_or_die call.
5491         (procfs_stopped_data_address): New function.
5492         (procfs_use_watchpoints): Register new watchpoint related function.
5493
5494 2010-05-11  Tom Tromey  <tromey@redhat.com>
5495
5496         * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5497
5498 2010-05-10  Michael Snyder  <msnyder@vmware.com>
5499
5500         * utils.c: White space cleanup.
5501
5502 2010-05-10  Tom Tromey  <tromey@redhat.com>
5503
5504         * eval.c (ptrmath_type_p): Add 'lang' argument.
5505         (evaluate_subexp_standard): Update.
5506         (evaluate_subexp_with_coercion): Update.
5507         * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5508
5509 2010-05-10  Michael Snyder  <msnyder@vmware.com>
5510
5511         * utils.c (do_fclose_cleanup) Restore local variable.
5512
5513 2010-05-09  Doug Evans  <dje@google.com>
5514
5515         * record.c (init_record_core_ops): Rename record_core to record-core.
5516
5517 2010-05-08  Joel Brobecker  <brobecker@adacore.com>
5518
5519         Implement task switching on pa-hpux.
5520         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5521         (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5522
5523 2010-05-08  Pierre Muller  <muller@ics.u-strasbg.fr>
5524
5525         * valops.c (find_overload_match): Add missing i18n markup.
5526
5527 2010-05-08  Pierre Muller  <muller@ics.u-strasbg.fr>
5528
5529         * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5530
5531 2010-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
5532
5533         * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5534         list for the obconcat call.
5535         * mdebugread.c (parse_symbol): Likewise.
5536         * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5537         Likewise.
5538         * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5539         New variable ap.  Remove variables len and val.
5540         * symfile.h (obconcat): Likewise for the prototype.
5541
5542 2010-05-07  Michael Snyder  <msnyder@vmware.com>
5543
5544         * python/python.c (execute_gdb_command): Remove unused variables.
5545         * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5546         * python/py-breakpoint.c (gdbpy_breakpoint_created):
5547         Remove unused variable.
5548         * python/py-cmd.c (cmdpy_function): Remove unused variable.
5549         (cmdpy_completer): Remove unused variable.
5550         * python/py-frame.c (frapy_find_sal): Remove unused variable.
5551         * python/py-function.c (fnpy_call): Remove unused variable.
5552         * python/py-objfile.c (objfile_to_objfile_object):
5553         Remove unused variable.
5554         * python/py-param.c (parmpy_init): Remove unused variable.
5555         * python/py-prettyprint.c (apply_varobj_pretty_printer):
5556         Remove unused variable.
5557         (gdbpy_default_visualizer): Remove unused variable.
5558         * python/py-progspace.c (pspace_to_pspace_object):
5559         Remove unused variable.
5560         * python/py-symtab.c (symtab_and_line_to_sal_object):
5561         Remove unused variable.
5562         * python/py-type.c (typy_template_argument):
5563         Remove unused variable.
5564         * python/py-value.c (valpy_string): Remove unused variable.
5565         (convert_value_from_python): Remove unused variables.
5566
5567 2010-05-07  Michael Snyder  <msnyder@vmware.com>
5568
5569         * valops.c (value_cast_pointers): Restore unused variable 'type1',
5570         and use it to compute variable 't1'.
5571
5572 2010-05-07  Joel Brobecker  <brobecker@adacore.com>
5573
5574         * ada-lang.c (assign_aggregate): Remove unused variable.
5575
5576 2010-05-07  Sami Wagiaalla  <swagiaal@redhat.com>
5577
5578         PR C++/7943:
5579         * valops.c (find_overload_match): Handle fsym == NULL case.
5580         Add int no_adl argument.
5581         (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5582         when appropriate.
5583         Add int no_adl argument.
5584         (find_oload_champ_namespace):   Add int no_adl argument.
5585         * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5586         expression.
5587         * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5588         * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5589         Evaluate arguments and use them to perform ADL lookup.
5590         Pass no_adl argument to find_overload_match.
5591         Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5592         * cp-support.h: Added prototype for
5593         make_symbol_overload_list_namespace.
5594         * cp-support.c (make_symbol_overload_list_namespace): New function.
5595         (make_symbol_overload_list_adl_namespace): New function.
5596         (make_symbol_overload_list_adl): New function.
5597         (make_symbol_overload_list_using): Moved code to add function to
5598         overload set to make_symbol_overload_list_namespace.
5599         * c-exp.y: create UNKNOWN_CPP_NAME token.
5600         Add parse rule for ADL functions.
5601         (classify_name): Recognize an UNKNOWN_CPP_NAME.
5602
5603 2010-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5604
5605         * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5606         sentinel.
5607
5608 2010-05-07  Joel Brobecker  <brobecker@adacore.com>
5609
5610         Implement task switching on solaris targets.
5611         * sol-thread.c (thread_db_find_thread_from_tid)
5612         (sol_get_ada_task_ptid): New functions.
5613         (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5614
5615 2010-05-07  Pedro Alves  <pedro@codesourcery.com>
5616
5617         * remote.c (remote_query_supported_append): Use reconcat.
5618         (remote_query_supported): Install a cleanup.  Use reconcat.
5619
5620 2010-05-07  Pedro Alves  <pedro@codesourcery.com>
5621
5622         * gdbarch.sh (qsupported): Delete.
5623         * gdbarch.h, gdbarch.c: Regenerate.
5624         * remote.c (remote_query_supported): Remove use of
5625         gdbarch_qsupported.
5626
5627 2010-05-06  Sergio Durigan Junior  <sergiodj@redhat.com>
5628
5629         * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5630         function.
5631
5632 2010-05-06  Michael Snyder  <msnyder@vmware.com>
5633
5634         * xml-support.c (xinclude_start_include): Delete unused variable.
5635         (xml_process_xincludes): Delete unused variable.
5636         * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5637         * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5638         (tdesc_find_arch_register): Delete unused variable.
5639         (tdesc_use_registers): Delete unused variable.
5640         * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5641         * inferior.c (print_inferior): Delete unused variable.
5642         * record.c (record_open_1): Delete unused variable.
5643         (record_restore): Delete unused variable.
5644         (cmd_record_save): Delete unused variable.
5645         * gcore.c (derive_heap_segment): Delete unused variable.
5646         (objfile_find_memory_regions): Use unused variable.
5647         * jit.c (jit_inferior_init): Delete unused variable.
5648         * progspace.c (clone_program_space): Delete unused variable.
5649         (pspace_empty_p): Delete unused variable.
5650
5651         * frame-unwind.c (frame_unwind_find_by_frame):
5652         Delete unused variable.
5653         * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5654         * cp-support.c (mangled_name_to_comp): Delete unused variable.
5655         (method_name_from_physname): Delete unused variable.
5656         (cp_func_name): Delete unused variable.
5657         (cp_validate_operator): Delete unused variable.
5658         * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5659         Delete unused variable.
5660         * trad-frame.c (trad_frame_get_prev_register):
5661         Delete unused variable.
5662         * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5663
5664         * serial.c (serial_for_fd): Delete unused variable.
5665         * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5666         * top.c (execute_command): Delete unused variable.
5667         (init_main): Delete unused variable.
5668         * utils.c (do_fclose_cleanup): Delete unused variable.
5669         (do_all_inferior_continuations): Delete unused variable.
5670         (initialize_utils): Delete unused variable.
5671         (internal_problem_mode): Delete unused global.
5672         * frame.c (get_prev_frame): Delete unused global.
5673         (get_frame_locals_address): Delete unused global.
5674         (get_frame_args_address): Delete unused global.
5675
5676         * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5677         (pascal_type_print_varspec_prefix): Delete unused variable.
5678         * f-typeprint.c (f_type_print_base): Delete unused variable.
5679         (f_type_print_varspec_suffix): Delete unused variable.
5680         * m2-typeprint.c (m2_print_type): Delete unused variable.
5681         (m2_long_set): Delete unused variable.
5682         * ada-valprint.c (ada_val_print_1): Delete unused variable.
5683         * d-valprint.c (dynamic_array_type): Delete unused variable.
5684         * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5685         Delete unused variable.
5686         (f77_create_arrayprint_offset_tbl): Delete unused variable.
5687         * m2-valprint.c (m2_val_print): Delete unused variable.
5688
5689         * ui-out.c (ui_out_field_int): Delete unused variable.
5690         (ui_out_field_fmt_int): Delete unused variable.
5691         * varobj.c (varobj_list_children): Delete unused variable.
5692         (varobj_set_value): Delete unused variable.
5693         (install_new_value_visualizer): Delete unused variable.
5694         (varobj_set_visualizer): Delete unused variable.
5695         (varobj_update): Delete unused variable.
5696         (varobj_editable_p): Delete unused variable.
5697         (c_value_of_root): Delete unused variable.
5698         (cplus_describe_child): Delete unused variable.
5699
5700         * ada-lang.c (add_defn_to_vec): Delete unused variable.
5701         (decode_constrained_packed_array_type): Delete unused variable.
5702         (add_defn_to_vec): Delete unused variable.
5703         (symbol_completion_match): Delete unused variable.
5704         (value_tag_from_contents_and_address): Delete unused variable.
5705         (ada_evaluate_subexp): Delete unused variable.
5706         * c-lang.c (classify_type): Delete unused variable.
5707         * f-lang.c (f_printstr): Delete unused variable.
5708         * objc-lang.c (objc_printstr): Delete unused variable.
5709         * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5710         * jv-lang.c (type_from_class): ifdef unused variable.
5711         (java_class_name_from_physname): Delete unused variable.
5712         * m2-lang.c (m2_printstr): Delete unused variable.
5713
5714         * objfiles.c (objfile_relocate): Delete unused variable.
5715         * maint.c (_initialize_maint_cmds): Delete unused variable.
5716         * demangle.c (_initialize_demangler): Delete unused variable.
5717         * corefile.c (reopen_exec_file): Delete unused variable.
5718         * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5719         * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5720
5721         * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5722         * memattr.c (mem_delete): Delete unused variable.
5723         (invalidate_target_mem_regions): Delete unused variable.
5724         * mem-break.c (default_memory_insert_breakpoint):
5725         Delete unused variable.
5726         * target.c (target_get_osdata): Delete unused variable.
5727         * parse.c (length_of_subexp): Delete unused variable.
5728         (prefixify_subexp): Delete unused variable.
5729         (exp_iterate): Delete unused variable.
5730         * reverse.c (delete_bookmark_command): Delete unused variable.
5731
5732         * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5733         * macroexp.c (gather_arguments): Delete unused variable.
5734         (substitute_args): Delete unused variable.
5735         * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5736         * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5737         (_initialize_gdbarch): Delete unused variable.
5738         * gdbarch.c, gdbarch.h: Regenerate.
5739         * arch-utils.c (initialize_current_architecture):
5740         Delete unused variable.
5741         (_initialize_gdbarch_utils): Delete unused variable.
5742         * gdbtypes.c (make_cv_type): Delete unused variable.
5743         (make_type_with_address_space): Delete unused variable.
5744
5745         * linespec.c (decode_compound): Delete unused variable.
5746         * dictionary.c (iterator_next_hashed): Delete unused variable.
5747         * infcall.c (call_function_by_hand): Delete unused variable.
5748         * infcmd.c (step_1): Delete unused variable.
5749         (registers_info): Delete unused variable.
5750         (attach_command): Delete unused variable.
5751         * infrun.c (follow_exec): Delete unused variable.
5752         (handle_step_into_function_backwards): Delete unused variable.
5753         (_initialize_infrun): Delete unused variable.
5754         * stack.c (parse_frame_specification_1): Delete unused variable.
5755         (frame_info): Delete unused variable.
5756         (backtrace_command_1): Delete unused variable.
5757         (catch_info): Delete unused variable.
5758
5759         * eval.c (evaluate_subexp_standard): Delete unused variable.
5760         * valops.c (value_cast_pointers): Delete unused variable.
5761         (value_dynamic_cast): Delete unused variable.
5762         (value_array): Delete unused variable.
5763         (find_overload_match): Delete unused variable.
5764         * valarith.c (value_subscript): Delete unused variable.
5765         (value_binop): Delete unused variable.
5766         * valprint.c (_initialize_valprint): Delete unused variable.
5767         * printcmd.c (print_command_1): Delete unused variable.
5768         (address_info): Delete unused variable.
5769         (printf_command): Delete unused variable.
5770
5771         * auxv.c (target_auxv_search): Delete unused variable.
5772         * blockframe.c (get_frame_block): Delete unused variable.
5773         * regcache.c (regcache_cpy): Delete unused variable.
5774         (regcache_cpy_no_passthrough): Delete unused variable.
5775         * charset.c (wchar_iterate): Delete unused variable.
5776         (find_charset_names): Delete unused variable.
5777         (_initialize_charset): Delete unused variable.
5778         * disasm.c (do_mixed_source_and_assembly):
5779         Delete unused variable.
5780         * source.c (set_default_source_symtab_and_line):
5781         Delete unused variable.
5782         (set_substitute_path_command): Delete unused variable.
5783         * value.c (preserve_values): Delete unused variable.
5784         (value_from_double): Delete unused variable.
5785
5786 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5787
5788         * psymtab.c (lookup_partial_symbol): Delete unused variable.
5789         (find_last_source_symtab_from_partial): Delete unused variable.
5790         * symfile.c (place_section): Delete unused variable.
5791         (default_symfile_offsets): Delete unused variable.
5792         (get_debug_link_info): Delete unused variable.
5793         (find_separate_debug_file_by_debuglink): Delete unused variable.
5794         (add_symbol_file_command): Delete unused variable.
5795         (symfile_find_segment_sections): Delete unused variable.
5796         * symmisc.c (free_symtab): Delete unused variable.
5797         (dump_symtab_1): Delete unused variable.
5798         * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5799         (find_pc_sect_symtab): Delete unused variable.
5800         (skip_prologue_using_lineinfo): Delete unused variable.
5801         (sources_info): Delete unused variable.
5802         (completion_list_add_name): Delete unused variable.
5803         (expand_line_sal): Delete unused variable.
5804
5805         * breakpoint.c (validate_commands_for_breakpoint):
5806         Delete unused variables.
5807         (insert_catchpoint): Delete unused variable.
5808         (update_watchpoint): Delete unused variable.
5809         (insert_bp_location): Delete unused variable.
5810         (insert_breakpoint_locations): Delete unused variable.
5811         (remove_breakpoint_1): Delete unused variable.
5812         (software_breakpoint_inserted_here_p): Delete unused variable.
5813         (watchpoints_triggered): Delete unused variable.
5814         (bpstat_check_watchpoint): Delete unused variable.
5815         (bpstat_stop_status): Delete unused variable.
5816         (print_one_breakpoint_location): Delete unused variable.
5817         (allocate_bp_location): Delete unused variable.
5818         (create_breakpoint): Delete unused variable.
5819         (watch_command_1): Delete unused variable.
5820         (catch_exception_command_1): Delete unused variable.
5821         (catch_ada_exception_command): Delete unused variable.
5822         (delete_breakpoint): Delete unused variable.
5823         (breakpoint_re_set_one): Delete unused variable.
5824         (do_enable_breakpoint): Delete unused variable.
5825
5826 2010-05-06  Pedro Alves  <pedro@codesourcery.com>
5827
5828         * amd64-tdep.c: Include disasm.h.
5829         (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5830         (amd64_insn_length): Moved to disasm.c and renamed.
5831         (fixup_riprel): Adjust.
5832         * disasm.c (do_ui_file_delete): New.
5833         (gdb_insn_length): New.
5834         (gdb_buffered_insn_length_fprintf)
5835         (gdb_buffered_insn_length_init_dis)
5836         (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5837         renamed.
5838         * disasm.h (gdb_insn_length): Declare.
5839         (gdb_buffered_insn_length): Declare.
5840
5841 2010-05-06  Pedro Alves  <pedro@codesourcery.com>
5842
5843         * remote.c (clear_threads_parsing_context): New.
5844         (remote_threads_info): Delete unused null_cleanup.  Install a
5845         cleanup to clear the threads_parsing_context in case parsing
5846         throws.
5847
5848 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5849
5850         * c-exp.y (parse_string_or_char): Delete unused variable.
5851         (c_lex): Delete unused variable.
5852         * cp-name-parser.y (cpname_lex): Delete unused variable.
5853         * ada-exp.y (find_primitive_type): Delete unused variable.
5854         (write_var_or_type): Delete unused variable.
5855         * jv-exp.y (java_parse): Delete unused variable.
5856         (push_expression_name): Delete unused variable.
5857         * p-exp.y (pascal_lex): Delete unused variable.
5858
5859 2010-05-05  Pedro Alves  <pedro@codesourcery.com>
5860
5861         * remote.c (remote_threads_info): Really revert previous previous
5862         change.
5863
5864 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5865
5866         * elfread.c (elf_symtab_read): Delete unused variable.
5867         (find_separate_debug_file_by_buildid): Delete unused variables.
5868         (elf_symfile_read): Delete unused variable.
5869
5870         * coffread.c (coff_symfile_read): Delete unused variables.
5871
5872         * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5873         (read_pe_exported_syms): Delete unused variable.
5874
5875         * stabsread.c (define_symbol): Delete unused variable.
5876
5877         * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5878         (process_psymtab_comp_unit): Delete unused variable.
5879         (dwarf2_build_psymtabs_hard): Delete unused variable.
5880         (load_partial_comp_unit): Delete unused variable.
5881         (create_all_comp_units): Delete unused variable.
5882         (scan_partial_symbols): Delete unused variable.
5883         (add_partial_symbol): Delete unused variable.
5884         (add_partial_namespace): Delete unused variable.
5885         (add_partial_enumeration): Delete unused variable.
5886         (load_full_comp_unit): Delete unused variable.
5887         (process_full_comp_unit): Delete unused variable.
5888         (read_file_scope): Delete unused variable.
5889         (read_type_unit_scope): Delete unused variable.
5890         (process_structure_scope): Delete unused variable.
5891         (process_enumeration_scope): Delete unused variable.
5892         (read_tag_ptr_to_member_type): Delete unused variable.
5893         (read_typedef): Delete unused variable.
5894         (read_partial_die): Delete unused variable.
5895         (decode_locdesc): Delete unused variable.
5896         (zeroed_partial_die): Delete unused global variable.
5897
5898         * tui/tui-interp.c (_initialize_tui_interp):
5899         Delete unused variable.
5900         * tui/tui-regs.c tui_display_registers_from):
5901         Delete unused variable.
5902         (tui_check_register_values): Delete unused variable.
5903         (tui_register_format): Delete unused variable.
5904         * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
5905         * tui/tui-windata.c (tui_display_data_from_line):
5906         Delete unused variables.
5907         (tui_vertical_data_scroll): Delete unused variables.
5908
5909 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5910
5911         * remote.c (remote_threads_info): Revert questionable part of
5912         the previous change.
5913
5914 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5915
5916         * mi/mi-out.c (mi_table_begin): Delete unused variable.
5917         * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5918         (mi_cmd_var_list_children): Delete unused variable.
5919         (varobj_update_one): Delete unused variable.
5920         * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
5921         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
5922         Delete unused variable.
5923         (mi_cmd_stack_list_variables): Delete unused variable.
5924         (list_args_or_locals): Delete unused variable.
5925         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
5926         Delete unused variables.
5927         (mi_cmd_file_list_exec_source_files): Delete unused variable.
5928         * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
5929         Delete unused variable.
5930         * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5931         (mi_cmd_interpreter_exec): Delete unused variable.
5932         (mi_on_normal_stop): Delete unused variable.
5933         * mi/mi-main.c (run_one_inferior): Delete unused variable.
5934         (print_one_inferior): Delete unused variables.
5935         (mi_execute_command): Delete unused variable.
5936         (mi_cmd_execute): Delete unused variable.
5937         (timestamp): Delete unused variable.
5938
5939         * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
5940         (restore_binary_file): Delete unused variable.
5941         * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5942         * cli/cli-script.c (define_command): Delete unused variables.
5943         (recurse_read_control_structure): Delete unused variable.
5944         (script_from_file): Delete unused variable.
5945         * cli/cli-cmds.c (complete_command): Delete unused variable.
5946         (disassemble_command): Delete unused variable.
5947
5948         * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
5949         * tracepoint.c (delete_trace_variable_command):
5950         Delete unused variables.
5951         (encode_actions_1): Delete unused variables.
5952         (start_tracing): Delete unused variable.
5953         (trace_status_mi): Delete unused variable.
5954         (tfind_1): Delete unused variable.
5955         (trace_find_pc_command): Delete unused variable.
5956         (trace_find_line_command): Delete unused variables.
5957         (trace_find_range_command): Delete unused variables.
5958         (trace_find_outside_command): Delete unused variables.
5959         (parse_tracepoint_definition): Delete unused variables.
5960         (tfile_fetch_registers): Delete unused variable.
5961
5962         * dcache.c (dcache_init): Delete unused variable.
5963         (dcache_info): Delete unused variable.
5964
5965         * remote.c (remote_threads_info): Delete unused variable.
5966         (process_stop_reply) :Delete unused variable.
5967         (remote_get_trace_status): Delete unused variables.
5968
5969         * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5970         (thread_from_lwp): Delete unused variable.
5971         (enable_thread_event_reporting): Delete unused variable.
5972         (check_for_thread_db): Delete unused variables.
5973         (thread_db_find_new_threads_2): Delete unused variable.
5974
5975         * linux-fork.c (info_checkpoints_command): Delete unused variables.
5976         (checkpoint_command): Delete unused variable.
5977         (linux_fork_context): Delete unused variables.
5978
5979         * linux-nat.c (linux_parent_pid): Delete unused global variable.
5980         (linux_tracefork_child): Delete unused variable.
5981         (linux_child_follow_fork): Delete unused variable.
5982         (linux_nat_detach): Delete unused variable.
5983         (linux_handle_extended_wait): Delete unused variable.
5984         (linux_nat_has_pending_sigint): Delete unused variable.
5985         (linux_nat_find_memory_regions): Delete unused variable.
5986         (linux_nat_make_corefile_notes): Delete unused variables.
5987         (linux_nat_info_proc_cmd): Delete unused variable.
5988         (linux_proc_pending_signals): Delete unused variable.
5989         (linux_nat_stop_lwp): Delete unused variables.
5990         (_initialize_linux_nat): Delete unused variable.
5991
5992         * ser-pipe.c (pipe_ops): Delete unused global variable.
5993
5994         * linux-record.c (record_linux_system_call):
5995         Delete unused variables.
5996
5997         * corelow.c (core_xfer_partial): Delete unused variables.
5998
5999         * solib-svr4.c (find_program_interpreter): Delete unused variable.
6000         (svr4_solib_create_inferior_hook): Add ifdef around
6001         conditionally-used variable declarations.
6002
6003         * solib.c (solib_find): Delete unused variable.
6004         (free_so_symbols): Delete unused variable.
6005         (info_sharedlibrary_command): Delete unused variable.
6006         (reload_shared_libraries_1): Delete unused variable.
6007         (_initialize_solib): Delete unused variable.
6008
6009         * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6010         (i386_collect_xstateregset): Delete unused variable.
6011         * i387-tdep.c (i387_print_float_info): Delete unused variable.
6012
6013         * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6014         Delete unused variable 'type'.
6015
6016 2010-05-05  Joel Brobecker  <brobecker@adacore.com>
6017
6018         * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros.  *
6019         ada-lang.c: Remove comment mentioning these macros.
6020         * m2-exp.y: Delete commented out code.
6021
6022 2010-05-05  Joel Brobecker  <brobecker@adacore.com>
6023
6024         * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6025         for array types.
6026         * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6027
6028 2010-05-04  Pierre Muller  <muller@ics.u-strasbg.fr>
6029
6030         ARI fix: Remove ATTRIBUTE_UNUSED throughout.
6031         * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6032         ATTRIBUTE_UNUSED.
6033         (cleanup_kernel_helper_return): Likewise.
6034         * arm-tdep.c (copy_unmodified): Likewise.
6035         (copy_preload): Likewise.
6036         (copy_copro_load_store): Likewise.
6037         (cleanup_branch): Likewise.
6038         (copy_b_bl_blx): Likewise.
6039         (copy_bx_blx_reg): Likewise.
6040         (copy_alu_imm): Likewise.
6041         (copy_alu_reg): Likewise.
6042         (copy_alu_shifted_reg): Likewise.
6043         (cleanup_load): Likewise.
6044         (cleanup_store): Likewise.
6045         (cleanup_block_load_pc): Likewise.
6046         (cleanup_svc): Likewise.
6047         (copy_undef): Likewise.
6048         (copy_unpred): Likewise.
6049         * remote.c (register_remote_support_xml): Likewise.
6050
6051 2010-05-05  Hui Zhu  <teawater@gmail.com>
6052
6053         * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6054
6055 2010-05-04  Mark Kettenis  <kettenis@gnu.org>
6056
6057         * remote.c (register_remote_support_xml)
6058         (remote_query_supported_append, remote_query_supported): Add cast
6059         to NULL used as sentinel.
6060         * tracepoint.c (tvariables_info_1): Likewise.
6061         * utils.c (add_internal_problem_command): Likewise.
6062
6063 2010-05-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6064
6065         * dwarf2loc.c (read_pieced_value, write_pieced_value,
6066         dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6067         registers gracefully.
6068
6069 2010-05-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6070
6071         * exec.c (print_section_info): Display entry point without arch
6072         specific parts.
6073
6074 2010-05-04  Pierre Muller  <muller@ics.u-strasbg.fr>
6075
6076         PR exp/11349.
6077         * printcmd.c (x_command): Only dereference once implicitly for
6078         TYPE_CODE_REF.
6079
6080 2010-05-03  Doug Evans  <dje@google.com>
6081
6082         * event-loop.c (gdb_timer): Delete unused global.
6083         (create_timer): Update.
6084
6085 2010-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6086
6087         * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6088         CURRENT->DECLARATION case.
6089         * cp-support.h (struct using_direct): Provide extended comment.
6090
6091 2010-05-03  Mark Kettenis  <kettenis@gnu.org>
6092
6093         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6094         HPPABSD_SIZEOF_GREGS.
6095         (HPPAOBSD_SIZEOF_FPREGS): New define.
6096         (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6097         (hppaobsd_supply_fpregset): New function.
6098         (hppaobsd_gregset): Renamed from hppabsd_gregset.
6099         (hppaobsd_fpregset): New variable.
6100         (hppaobsd_regset_from_core_section): Handle floating-point registers.
6101         (_initialize_hppabsd_tdep): Remove spurious blank line.
6102
6103 2010-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
6104
6105         PR pascal/11349.
6106         * p-valprint.c (pascal_value_print): Always dereference a value with
6107         type code TYPE_CODE_REF.
6108
6109 2010-05-03  Pedro Alves  <pedro@codesourcery.com>
6110
6111         * remote.c (remote_notice_signals): New.
6112         (remote_start_remote): In non-stop mode, update the remote end on
6113         which signals it can silently pass.
6114         (init_remote_ops): Install remote_notice_signals.
6115
6116 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6117
6118         * cli/cli-cmds.h (error_no_arg): Remove.  Move the comment ...
6119         * command.h (error_no_arg): ... here.  Remove NORETURN, change
6120         ATTR_NORETURN to ATTRIBUTE_NORETURN.
6121         * defs.h (NORETURN, ATTR_NORETURN): Remove.
6122         (perror_with_name, verror, error, error_stream, vfatal, fatal)
6123         (internal_verror, internal_error, nomem): Remove NORETURN, change
6124         ATTR_NORETURN to ATTRIBUTE_NORETURN.
6125         * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6126         (throw_vfatal, throw_error): Remove NORETURN.
6127         (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6128         * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6129         (throw_error, deprecated_throw_reason): Remove NORETURN, change
6130         ATTR_NORETURN to ATTRIBUTE_NORETURN.
6131         * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6132         to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6133         NORETURN.
6134         * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6135         * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6136         ATTRIBUTE_NORETURN.
6137         * target.c (tcomplain): Likewise.
6138         * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6139         ATTRIBUTE_NORETURN.
6140         * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6141         (internal_error, perror_with_name, nomem): Remove NORETURN.
6142         * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6143         ATTRIBUTE_NORETURN.
6144
6145 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6146
6147         * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6148         * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6149         * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6150         (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6151         * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6152         (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6153         * complaints.h (complaint, internal_complaint): Likewise.
6154         * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6155         (ATTR_FORMAT): Remove.
6156         (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6157         (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6158         (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6159         (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6160         (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6161         (internal_error, internal_vwarning, internal_warning, warning)
6162         (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6163         * disasm.c (fprintf_disasm): Likewise.
6164         * exceptions.c (throw_it): Likewise.
6165         * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6166         (throw_error): Likewise.
6167         * language.h (type_error, range_error): Likewise.
6168         * linespec.c (cplusplus_error): Likewise.
6169         * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6170         * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6171         * monitor.c (monitor_debug): Likewise.
6172         * parser-defs.h (parser_fprintf): Likewise.
6173         * serial.h (serial_printf): Likewise.
6174         * tui/tui-hooks.c (tui_query_hook): Likewise.
6175         * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6176         (uo_message): Likewise.
6177         * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6178         * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6179         Likewise.
6180         * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6181
6182 2010-05-02  Pedro Alves  <pedro@codesourcery.com>
6183
6184         * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6185         (cli_table_header, cli_begin, cli_end, cli_field_int)
6186         (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6187         (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6188         Delete forward declarations.
6189         (cli_ui_out_impl): Move below the callbacks.
6190         (_initialize_cli_out): Delete.
6191
6192 2010-05-02  Pedro Alves  <pedro@codesourcery.com>
6193
6194         * README: Use consistent `GDB' and `GDBserver' spellings.
6195
6196 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6197
6198         * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6199
6200 2010-05-01  Pedro Alves  <pedro@codesourcery.com>
6201
6202         * infrun.c (prepare_for_detach): In non-stop, context switch to
6203         the thread that got the event before handling the event.
6204
6205 2010-04-30  Tom Tromey  <tromey@redhat.com>
6206
6207         * symtab.c (symbol_set_names): Fix typo.
6208
6209 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
6210
6211         * python/py-param.c (parm_constants): Avoid ARI warning
6212         by adding ARI comment.
6213         (parmpy_init): Likewise.
6214
6215 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
6216
6217         * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6218         and created type for re-use.
6219
6220 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
6221
6222         * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6223
6224 2010-04-29  Doug Evans  <dje@google.com>
6225
6226         * ser-base.h (reschedule): Delete prototype.
6227         * ser-base.c (reschedule): Make static.
6228
6229 2010-04-29  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6230
6231         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6232         (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
6233         (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
6234         EABI.
6235         (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
6236         use.
6237
6238 2010-04-29  Pedro Alves  <pedro@codesourcery.com>
6239
6240         PR gdb/11557
6241
6242         * regcache.c (registers_changed): Rename to ...
6243         (registers_changed_ptid): ... this, and only delete register cache
6244         entries matching the ptid filter argument.
6245         (registers_changed): Reimplement on top of registers_changed_ptid.
6246         * regcache.h (registers_changed_ptid): Declare.
6247         * target.c (target_resume): Flush register caches.
6248
6249 2010-04-29  Phil Muldoon  <pmuldoon@redhat.com>
6250             Tom Tromey  <tromey@redhat.com>
6251             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6252
6253         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6254         (SUBDIR_PYTHON_SRCS): Likewise.
6255         (py-parameter.o): New rule.
6256         * python/py-parameter.c: New file.
6257         * python/python-internal.h (gdbpy_initialize_parameter)
6258         (gdbpy_parameter, gdbpy_parameter_value)
6259         (gdbpy_parse_command_name): Declare.
6260         * python/py-cmd.c (parse_command_name): Rename to
6261         gdbpy_parse_command_name.
6262         (gdbpy_parse_command_name): Accept a starting list parameter and
6263         use over cmdlist.
6264         (cmdpy_init): Use gdbpy_parse_command_name.
6265         * python/python.c (parameter_to_python): Rename to
6266         gdbpy_parameter_to_python.  Accept enum var_types and value.
6267         (gdbpy_parameter): Use gdbpy_parameter_value.
6268         (_initialize_python): Call gdbpy_initialize_parameters.
6269
6270 2010-04-29  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6271
6272         * MAINTAINERS: Add myself for write after approval privileges.
6273
6274 2010-04-29  Mihail Zenkov  <mihail.zenkov@gmail.com>
6275
6276         D language support.
6277         * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6278         (COMMON_OBS): Add d-lang.o d-valprint.o.
6279         (HFILES_NO_SRCDIR): Add d-lang.h.
6280         * NEWS: Mention D language support.
6281         * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6282         * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6283         * d-lang.c: New file.
6284         * d-lang.h: New file.
6285         * d-valprint.c: New file.
6286         * defs.h (enum language): Add language_d.
6287         * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6288         * language.c (binop_result_type, integral_type, character_type)
6289         (string_type, boolean_type, structured_type): Add language_d.
6290         * symfile.c (init_filename_language_table): Add language_d.
6291         * symtab.c: Include d-lang.h.
6292         (symbol_init_language_specific, symbol_find_demangled_name)
6293         (symbol_natural_name, lookup_symbol_in_language)
6294         (symbol_demangled_name, symbol_matches_domain): Add language_d.
6295
6296 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6297
6298         * solib-svr4.c (solib_svr4_r_map): Expand function description.
6299
6300 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6301
6302         * symfile.c (init_filename_language_table): Register .dg files
6303         with language_ada.
6304
6305 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6306
6307         * gdbtypes.h (struct main_type): Expand comment about target_type
6308         field.
6309
6310 2010-04-27  Pedro Alves  <pedro@codesourcery.com>
6311             Tristan Gingold  <gingold@adacore.com>
6312
6313         * symfile.c (reread_symbols): Also search for file in libraries.
6314         Update comment.
6315
6316 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6317
6318         * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6319         in terms of configuration.
6320
6321 2010-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6322
6323         * objfiles.c: Include solist.h.
6324         (free_all_objfiles): New variable so.  Check stale solist objfiles.
6325         * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6326         and no_shared_libraries.
6327
6328 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
6329
6330         ARI warning fix.
6331         * python/py-auto-load.c (source_section_scripts): Remove trailing
6332         new-line in i18n string.
6333
6334 2010-04-26  Doug Evans  <dje@google.com>
6335
6336         * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6337
6338 2010-04-26  Tom Tromey  <tromey@redhat.com>
6339
6340         * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6341         command list.
6342
6343 2010-04-26  Pierre Muller  <muller@ics.u-strasbg.fr>
6344
6345         Removal of config/i386/nm-i386sol2.h native configuration file.
6346         * config/i386/nm-i386sol2.h: Remove file.
6347         * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6348         * config/i386/sol2-64.mh: Idem.
6349         * config/djgpp/fnchange.lst: Remove reference to that file.
6350         * Makefile.in (HFILES_NO_SRCDIR): Idem.
6351
6352 2010-04-26  Pierre Muller  <muller@ics.u-strasbg.fr>
6353
6354         PR breakpoints/11531.
6355         * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6356         macro definition and related comment.
6357         * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6358         (resume): Remove code and comment related to this macro.
6359
6360 2010-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6361
6362         * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6363         Fix whitespace.
6364
6365 2010-04-24  Pedro Alves  <pedro@codesourcery.com>
6366
6367         * defs.h: Adjust comment.
6368         * filesystem.h, filesystem.c: New files.
6369         * Makefile.in (SFILES): Add filesystem.c.
6370         (COMMON_OBS): Add filesystem.o.
6371         * solib.c (solib_find): Handle DOS-based filesystems.  Handle
6372         different target and host path flavours.
6373         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6374         has_dos_based_file_system on the gdbarch.
6375         * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6376         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6377         * i386-tdep.c (i386_go32_init_abi): Ditto.
6378         * gdbarch.sh (has_dos_based_file_system): New.
6379         * gdbarch.h, gdbarch.c: Regenerate.
6380         * NEWS: Mention improved support for remote targets with DOS-based
6381         filesystems.  Mention new `set/show target-file-system-kind'
6382         commands.
6383
6384 2010-04-23  Stan Shebs  <stan@codesourcery.com>
6385
6386         * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6387         comments.
6388         (struct agent_reqs): Remove.
6389         (ax_reg_mask): Declare.
6390         * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6391         (free_agent_expr): Free reg_mask.
6392         (ax_print): Add scope and register mask info.
6393         (ax_reqs): Remove agent_reqs argument, use agent expression
6394         fields, and move part of register mask computation to...
6395         (ax_reg_mask): New function.
6396         * ax-gdb.c (gen_trace_static_fields): Call it.
6397         (gen_traced_pop): Ditto.
6398         (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6399         (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6400         (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6401         (gen_eval_for_expr): Ditto, and require an rvalue.
6402         (agent_command): Call ax_reqs.
6403         (agent_eval_command): Ditto.
6404         * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6405         (validate_action_line): Ditto.
6406         (collect_symbol): Ditto.
6407         (encode_actions_1): Ditto.
6408
6409 2010-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
6410             Paul Pluzhnikov  <ppluzhnikov@google.com>
6411             Jan Kratochvil  <jan.kratochvil@redhat.com>
6412
6413         Fix deadlock on looped list of loaded shared objects.
6414         * solib-svr4.c (LM_PREV): New function.
6415         (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6416         (svr4_current_sos): Check for correct l_prev.  New variables prev_lm
6417         and next_lm.  Clear prev_lm for solib_svr4_r_ldsomap.
6418         * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6419
6420 2010-04-23  Doug Evans  <dje@google.com>
6421
6422         * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6423         python.
6424         * configure: Regenerate.
6425         * main.c: #include "python/python.h".
6426         (captured_main): Defer loading auto-loaded scripts until after
6427         local_gdbinit has been sourced.
6428         * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6429         (load_auto_scripts_for_objfile): New function.
6430         (auto_load_new_objfile): Call it.
6431         * python/python.h (gdbpy_global_auto_load): Declare.
6432         (load_auto_scripts_for_objfile): Declare.
6433
6434         Add support for auto-loading scripts from .debug_gdb_scripts section.
6435         * NEWS: Add entry for .debug_gdb_scripts.
6436         * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6437         (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6438         (py-auto-load.o): New rule.
6439         * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6440         * cli/cli-cmds.h (find_and_open_script): Update prototype.
6441         * python/py-auto-load.c: New file.
6442         * python/python-internal.h: #include <stdio.h>.
6443         (set_python_list, show_python_list): Declare.
6444         (gdbpy_initialize_auto_load): Declare.
6445         (source_python_script_for_objfile): Declare.
6446         * python/python.c: Remove #include of observer.h.
6447         (gdbpy_auto_load): Moved to py-auto-load.c.
6448         (GDBPY_AUTO_FILENAME): Ditto.
6449         (gdbpy_new_objfile): Delete.
6450         (source_python_script_for_objfile): New function.
6451         (set_python_list, show_python_list): Make externally visible.
6452         (_initialize_python): Move "auto-load" command to py-auto-load.c
6453         and observer_attach_new_objfile to py-auto-load.c.
6454
6455 2010-04-23  Jerome Guitton  <guitton@adacore.com>
6456
6457         * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6458         (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6459         (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6460         New constants.
6461         (alpha_heuristic_analyze_probing_loop): New function.
6462         (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6463         and handle cases when a stack probe loop is generated.
6464         * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6465         (alpha_mdebug_max_frame_size_exceeded): New function.
6466         (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6467         (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6468         Return 0 when the maximum debuggable frame size has been exceeded.
6469
6470 2010-04-23  Joel Brobecker  <brobecker@adacore.com>
6471
6472         Fix ARI warning.
6473         * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6474
6475 2010-04-20  Chris Moller  <cmoller@redhat.com>
6476
6477         PR 10179
6478
6479         * symtab.c (rbreak_command): Added code to include a filename
6480         specification in the rbreak argument.
6481         * NEWS: Added a brief description of filename-qualified rbreak.
6482
6483 2010-04-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
6484
6485         Fix crashes on dangling display expressions.
6486         * ada-lang.c (ada_operator_check): New function.
6487         (ada_exp_descriptor): Fill-in the field operator_check.
6488         * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6489         * jv-lang.c (exp_descriptor_java): Likewise.
6490         * m2-lang.c (exp_descriptor_modula2): Likewise.
6491         * scm-lang.c (exp_descriptor_scm): Likewise.
6492         * parse.c (exp_descriptor_standard): Likewise.
6493         (operator_check_standard): New function.
6494         (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6495         * parser-defs.h (struct exp_descriptor): New field operator_check.
6496         (operator_check_standard, exp_uses_objfile): New declarations.
6497         * printcmd.c: Remove the inclusion of solib.h.
6498         (display_uses_solib_p): Remove the function.
6499         (clear_dangling_display_expressions): Call lookup_objfile_from_block
6500         and exp_uses_objfile instead of display_uses_solib_p.
6501         * solist.h (struct so_list) <objfile>: New comment.
6502         * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6503         * symtab.h (lookup_objfile_from_block): New declaration.
6504         (struct general_symbol_info) <obj_section>: Extend the comment.
6505
6506 2010-04-22  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
6507             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6508
6509         * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6510         (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6511         ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6512         PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6513         PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6514         PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6515         PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6516         PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6517         PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6518         PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6519         PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6520         PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6521         PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6522         Define, in case <ptrace.h> doesn't provide it.
6523         (booke_debug_info): New variable.
6524         (max_slots_number): Ditto.
6525         (hw_break_tuple): New struct.
6526         (thread_points): Ditto.
6527         (ppc_threads): New variable.
6528         (PPC_DEBUG_CURRENT_VERSION): New define.
6529         (have_ptrace_new_debug_booke): New function.
6530         (ppc_linux_check_watch_resources): Renamed to ...
6531         (ppc_linux_can_use_hw_breakpoint): ... this.  Handle BookE processors.
6532         (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6533         (booke_cmp_hw_point): New function.
6534         (booke_find_thread_points_by_tid): Ditto.
6535         (booke_insert_point): Ditto.
6536         (booke_remove_point): Ditto.
6537         (ppc_linux_insert_hw_breakpoint): Ditto.
6538         (ppc_linux_remove_hw_breakpoint): Ditto.
6539         (get_trigger_type): Ditto.
6540         (ppc_linux_insert_watchpoint): Handle BookE processors.
6541         (ppc_linux_remove_watchpoint): Ditto.
6542         (ppc_linux_new_thread): Ditto.
6543         (ppc_linux_thread_exit): New function..
6544         (ppc_linux_stopped_data_address): Handle BookE processors.
6545         (ppc_linux_watchpoint_addr_within_range): Ditto.
6546         (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6547         to_remove_hw_breakpoint fields of the target operations struct.
6548         Add observe for the thread_exit event.
6549
6550 2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>
6551
6552         * i386-linux-nat.c (regmap): Removed.
6553         (fetch_register): Replace regmap with
6554         i386_linux_gregset_reg_offset.
6555         (store_register): Likewise.
6556         (supply_gregset): Likewise.
6557         (fill_gregset): Likewise.
6558
6559         * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6560         global.
6561
6562         * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6563
6564 2010-04-22  Chris Moller  <cmoller@redhat.com>
6565
6566         * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6567         method of popping recursion-detection stack with a method based on
6568         obstack_object_size().  (Similar to the PR9167 patch below, but for
6569         the static array obstack rather than the static member obstack.)
6570
6571 2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>
6572
6573         * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6574         (_initialize_amd64_linux_nat): Replace
6575         amd64_linux_gregset64_reg_offset with
6576         amd64_linux_gregset_reg_offset.
6577
6578         * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6579         global.
6580
6581         * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6582
6583 2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
6584
6585         PR stabs/11479.
6586         * stabsread.c (set_length_in_type_chain): New function.
6587         (read_struct_type): Call set_length_in_type_chain function.
6588         (read_enum_type): Idem.
6589
6590 2010-04-21  Stan Shebs  <stan@codesourcery.com>
6591             Nathan Sidwell  <nathan@codesourcery.com>
6592
6593         * tracepoint.c (trace_save): Open in binary mode.
6594
6595 2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
6596
6597         * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6598         fields.
6599         * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6600         builtin_char32 fields.
6601         * printcmd.c (decode_format): Set char size to '\0'
6602         for strings unless explicit size is given.
6603         (print_formatted): Correct calculation of NEXT_ADDRESS
6604         for 16 or 32 bit strings.
6605         (do_examine): Do not force byte size for strings.
6606         Use builtin_char16 and builtin_char32 types to display
6607         16 or 32 bit-wide strings.
6608         (x_command): Set LAST_SIZE to 'b' for string type.
6609
6610 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
6611
6612         PR corefiles/11523
6613         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6614         XCR0 first.
6615
6616         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6617         there is no .reg-xstate section.
6618         (i386_linux_core_read_description): Check XCR0 first.
6619
6620 2010-04-21  Mike Frysinger  <vapier@gentoo.org>
6621
6622         * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6623         for len <= 8.
6624
6625 2010-04-21  Chris Moller  <cmoller@redhat.com>
6626
6627         PR 9167
6628         * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6629         method of popping recursion-detection stack with a method based on
6630         obstack_object_size().
6631
6632 2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6633
6634         PR pascal/11492.
6635         * p-valprint.c (pascal_val_print): Fix default printing of integer
6636         arrays.
6637
6638 2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6639
6640         Fix compilation warning on gcc-4.1.2.
6641         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6642         local variable`pc' to zero.
6643
6644 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6645
6646         Implement thread support with core files on alpha-tru64.
6647         * dec-thread.c (dec_thread_find_new_threads): New function,
6648         extracted from resync_thread_list.
6649         (resync_thread_list): Add OPS parameter.  Replace extracted-out
6650         code by call to dec_thread_find_new_threads.
6651         (dec_thread_wait): Update call to resync_thread_list.
6652         (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6653
6654 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6655
6656         * ada-lang.c (value_pointer): New function.
6657         (make_array_descriptor): Call value_pointer to convert addresses to
6658         pointers.
6659
6660 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6661
6662         * rs6000-aix-tdep.c: #include exceptions.h.
6663         (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6664         while reading the memory at ADDR, then ADDR cannot be a function
6665         descriptor.
6666
6667 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6668
6669         * ada-typeprint.c (ada_print_typedef): New function.
6670         * ada-lang.h (ada_print_typedef): Add declaration.
6671         * ada-lang.c (ada_language_defn): set la_print_typdef field
6672         to ada_print_typedef.
6673
6674 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6675
6676         * procfs.c (procfs_address_to_host_pointer): Only define when used.
6677
6678 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6679
6680         * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6681         (iterate_over_mappings): Adjust function profile. Add declaration.
6682         (insert_dbx_link_bpt_in_region, info_mappings_callback):
6683         Adjust accordingly.
6684
6685 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6686
6687         * procfs.c (solib_mappings_callback): Move function up to avoid
6688         a compiler warning.
6689
6690 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6691
6692         * procfs.c (find_signalled_thread, find_stop_signal): Move
6693         these functions down to define them only when used.
6694
6695 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6696
6697         * valprint.c (common_val_print): Fix the value before extracting
6698         its contents.
6699         * ada-lang.c (ada_to_fixed_value): Make this function extern.
6700         * ada-lang.h (ada_to_fixed_value): New function declaration.
6701         * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6702         to avoid code duplication and fix a bug in the handling of
6703         fixed types contents.
6704
6705 2010-04-20  Tom Tromey  <tromey@redhat.com>
6706
6707         * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6708         (read_partial_die): Likewise.
6709         (dwarf_attr_name): Likewise.
6710
6711 2010-04-20  Chris Moller  <cmoller@redhat.com>
6712
6713         PR 10867
6714
6715         * cp-valprint.c (global): Adding new static array recursion
6716         detection obstack.
6717         (cp_print_value_fields, cp_print_static_field): Added new static
6718         array recursion detection code.
6719
6720 2010-04-20  Mark Kettenis  <kettenis@gnu.org>
6721
6722         * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6723         general-purpose register set should be 68 instead of 144.
6724         (i386_linux_sse_regset_sections): Likewise.
6725         (i386_linux_avx_regset_sections): Likewise.
6726
6727 2010-04-20  Stan Shebs  <stan@codesourcery.com>
6728             Nathan Sidwell  <nathan@codesourcery.com>
6729
6730         * dwarf2loc.c (struct axs_var_loc): New struct.
6731         (dwarf2_tracepoint_var_loc): New function.
6732         (dwarf2_tracepoint_var_access): New function.
6733         (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6734         with DW_OP_piece.
6735         (locexpr_describe_location_piece): New function.
6736         (locexpr_describe_location_1): New function.
6737         (locexpr_describe_location): Call it, update signature.
6738         (loclist_describe_location): Rewrite to loop over locations,
6739         update signature.
6740         * symtab.h (struct symbol_computed_ops): Add address to
6741         describe_location arguments, return void.
6742         * printcmd.c (address_info): Get context PC, pass to computed
6743         location description.
6744         * tracepoint.c (scope_info): Ditto.
6745         * ax-gdb.c (trace_kludge): Export.
6746
6747 2010-04-20  Tom Tromey  <tromey@redhat.com>
6748
6749         * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6750         (struct dwarf2_cie) <segment_size>: New field.
6751         * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6752         (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6753         DW_FORM_exprloc.
6754         (read_attribute_value): Handle DW_FORM_flag_present,
6755         DW_FORM_sec_offset, DW_FORM_exprloc.
6756         (dump_die_shallow): Likewise.
6757         (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6758         (dwarf2_const_value): Handle DW_FORM_exprloc.
6759         (attr_form_is_block): Likewise.
6760         (struct line_header) <maximum_ops_per_instruction>: New field.
6761         (dwarf_decode_line_header): Set new field.
6762         (dwarf_decode_lines): Handle new field.
6763
6764 2010-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6765
6766         * f-exp.y: Add new production to recognize the `logical*8' type.
6767         (LOGICAL_S8_KEYWORD): New token.
6768         * f-lang.c (enum f_primitive_types)
6769         <f_primitive_type_logical_s8>: New field.
6770         (f_language_arch_info): Handling `logical*8' type.
6771         (build_fortran_types): Building `logical*8' type.
6772         * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6773
6774 2010-04-19  Doug Evans  <dje@google.com>
6775
6776         * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6777         * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6778         (pipe_close): Ditto.
6779
6780 2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6781
6782         * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6783
6784 2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6785
6786         * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6787         type to void function.
6788
6789 2010-04-19  Stan Shebs  <stan@codesourcery.com>
6790             Vladimir Prus  <vladimir@codesourcery.com>
6791
6792         * tracepoint.c (tfind_1): Add missing newline, report exit from
6793         tfind mode as such.
6794         * target.c (update_current_target): Make default
6795         to_trace_find return -1.
6796
6797 2010-04-19  Mike Frysinger  <vapier@gentoo.org>
6798
6799         * objc-lang.c (find_methods): Move symname check up.
6800
6801 2010-04-19  Pedro Alves  <pedro@codesourcery.com>
6802
6803         * ada-lang.c (print_recreate_exception)
6804         <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6805         not "catch unhandled".
6806
6807 2010-04-19  Pedro Alves  <pedro@codesourcery.com>
6808
6809         PR breakpoints/8554.
6810
6811         Implement `save-breakpoints'.
6812
6813         * breakpoint.c (save_cmdlist): New.
6814         (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6815         to save_cmdlist.
6816         (print_recreate_catch_fork): New.
6817         (catch_fork_breakpoint_ops): Install it.
6818         (print_recreate_catch_vfork): New.
6819         (catch_vfork_breakpoint_ops): Install it.
6820         (print_recreate_catch_syscall): New.
6821         (catch_syscall_breakpoint_ops): Install it.
6822         (print_recreate_catch_exec): New.
6823         (catch_exec_breakpoint_ops): Install it.
6824         (print_recreate_exception_catchpoint): New.
6825         (gnu_v3_exception_catchpoint_ops): Install it.
6826         (save_breakpoints): New, based on tracepoint_save_command, but
6827         handle all breakpoint types.
6828         (save_breakpoints_command): New.
6829         (tracepoint_save_command): Rename to...
6830         (save_tracepoints_command): ... this, and reimplement using
6831         save_breakpoints.
6832         (save_command): New.
6833         (_initialize_breakpoints): Install the "save" command prefix.
6834         Install the "save breakpoints" command.  Make "save-tracepoints" a
6835         deprecated alias for "save tracepoints".
6836         * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6837         * ada-lang.c (print_recreate_exception): New.
6838         (print_recreate_catch_exception): New.
6839         (catch_exception_breakpoint_ops): Install it.
6840         (print_recreate_catch_exception_unhandled): New.
6841         (catch_exception_unhandled_breakpoint_ops): Install it.
6842         (print_recreate_catch_assert): New.
6843         (catch_assert_breakpoint_ops): Install it.
6844
6845         * NEWS: Mention the new `save breakpoints' command.  Mention the
6846         new `save tracepoints' alias and that `save-tracepoints' is now
6847         deprecated.
6848
6849 2010-04-18  Pedro Alves  <pedro@codesourcery.com>
6850
6851         PR tui/9217
6852
6853         * tui/tui-out.c: Include cli-out.h.
6854         (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6855         (tui_begin, tui_end, tui_field_int, tui_field_skip)
6856         (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6857         (tui_message, tui_wrap_hint, tui_flush): Delete forward
6858         declarations.
6859         (struct ui_out_data): Rename to...
6860         (struct tui_ui_out_data): ... this.  Remove `stream' and
6861         `suppress_output' fields, and inherit cli_ui_out_data.
6862         (tui_out_data): New typedef.
6863         (tui_ui_out_impl): Don't initialize fields staticaly.
6864         (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6865         (tui_begin, tui_end): Delete.
6866         (tui_field_int): Adjust to delegate most work to the base type.
6867         (tui_field_skip): Delete.
6868         (tui_field_string, tui_field_fmt): Adjust comment.  Adjust to
6869         delegate most work to the base type.
6870         (tui_spaces): Delete.
6871         (tui_text): Adjust to delegate most work to the base type.
6872         (tui_message): Delete.
6873         (tui_wrap_hint): Delete.
6874         (tui_flush): Delete.
6875         (out_field_fmt): Delete.
6876         (field_separator): Delete.
6877         (tui_out_new): Adjust to initialize the base type.
6878         (_initialize_tui_out): Initialize tui_ui_out_impl.
6879         * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6880         cli_ui_out_data.
6881         (cli_out_data): Adjust.
6882         (cli_ui_out_impl): Make extern.
6883         (cli_table_header, cli_field_int, cli_field_skip): Use
6884         uo_field_string instead of cli_field_string.
6885         (cli_redirect): Adjust to use cli_out_data.
6886         (cli_out_data_ctor): New.
6887         (cli_out_new): Use it.
6888         * cli-out.h (struct ui_file): Remove forward declaration.
6889         (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6890         (cli_ui_out_impl): Declare.
6891         (cli_out_data_ctor): Declare.
6892         * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6893         (uo_field_string): No longer static.
6894         (ui_out_data): Change return type to void pointer.
6895         (ui_out_new): Change `data' parameter type to void pointer.
6896         * ui-out.h (struct ui_out_data): Don't forward declare.
6897         (ui_out_data): Change return type to void pointer.
6898         (ui_out_new): Change `data' parameter type to void pointer.
6899         (uo_field_string): Declare.
6900
6901 2010-04-17  Pedro Alves  <pedro@codesourcery.com>
6902
6903         * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6904         instead of always false.
6905
6906 2010-04-17  H.J. Lu  <hongjiu.lu@intel.com>
6907
6908         PR corefiles/11511
6909         * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6910         orig_rax.
6911
6912 2010-04-17  Pedro Alves  <pedro@codesourcery.com>
6913
6914         * breakpoint.c (watchpoints_triggered): Use
6915         is_hardware_watchpoint.
6916         (watchpoints_triggered): Ditto.
6917         (bpstat_check_location): Use is_watchpoint and
6918         is_hardware_watchpoint.
6919         (bpstat_check_watchpoint): Use is_watchpoint and
6920         is_hardware_watchpoint.
6921         (bpstat_stop_status): Fix comment.
6922         (user_settable_breakpoint): Use is_watchpoint.
6923         (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6924         (disable_watchpoints_before_interactive_call_start): Use
6925         is_watchpoint.
6926         (enable_watchpoints_after_interactive_call_stop): Use
6927         is_watchpoint.
6928         (clear_command): Use is_watchpoint.
6929         (do_enable_breakpoint): Use is_watchpoint.
6930
6931 2010-04-16  Mike Frysinger  <vapier@gentoo.org>
6932
6933         * solib-frv.c (enable_break1_done): Delete.
6934         (enable_break2): Do not check enable_break1_done.  Move the
6935         enable_break2_done setting and call to
6936         remove_solib_event_breakpoints() to the end.  Return without
6937         warning when the contents of _dl_debug_addr are 0.
6938         (enable_break): Do not set enable_break1_done.
6939         (frv_clear_solib): Likewise.
6940
6941 2010-04-16  Kevin Buettner  <kevinb@redhat.com>
6942
6943         * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6944         instead of an error if no PLT entry is found.  Return a
6945         potentially useful result.
6946         (m32c_m16c_pointer_to_address): Add code to search for function
6947         address when no .plt entry is found.
6948
6949 2010-04-16  Stan Shebs  <stan@codesourcery.com>
6950
6951         * tracepoint.c (trace_variable_command): Run a cleanup.
6952
6953 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6954
6955         * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6956
6957 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6958
6959         Support for Windows OS Thread Information Block.
6960         * NEWS: Document new feature.
6961         * remote.c (PACKET_qGetTIBAddr): New enum element.
6962         (remote_get_tib_address): New function.
6963         (init_remote_ops): Set to_get_tib_address field
6964         to remote_get_tib_address.
6965         (_initialize_remote): Add add_packet_config_cmd
6966         for PACKET_qGetTIBAddr.
6967         * target.c (update_current_target): Set default value for
6968         new to_get_tib_address field.
6969         * target.h (target_ops): New field to_get_tib_address.
6970         (target_get_tib_address): New macro.
6971         * windows-nat.c (thread_info): Add thread_local_base field.
6972         (windows_add_thread): Add tlb argument of type 'void *'.
6973         (fake_create_process): Adapt windows_add_thread call.
6974         (get_windows_debug_event): Idem.
6975         (windows_get_tib_address): New function.
6976         (init_windows_ops): Set to_get_tib_address field
6977         to remote_get_tib_address.
6978         (_initialize_windows_nat): Replace info_w32_cmdlist
6979         initialization by a call to init_w32_command_list.
6980         (info_w32_command, info_w32_cmdlist): Removed from here...
6981         to windows-tdep.c file.
6982         * windows-tdep.h (info_w32_cmdlist): Declare.
6983         (init_w32_command_list): New external function
6984         declaration.
6985         * windows-tdep.c: Add several headers.
6986         (info_w32_cmdlist): to here, made global.
6987         (thread_information_32): New struct.
6988         (thread_information_64): New struct.
6989         (TIB_NAME): New char array.
6990         (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6991         (maint_display_all_tib): New static variable.
6992         (windows_get_tlb_type): New function.
6993         (tlb_value_read, tlb_value_write): New functions.
6994         (tlb_value_funcs): New static struct.
6995         (tlb_make_value): New function.
6996         (display_one_tib): New function.
6997         (display_tib): New function.
6998         (show_maint_show_all_tib):New function.
6999         (info_w32_command): Moved from windows-nat.c.
7000         (init_w32_command_list): New function.
7001         (_initialize_windows_tdep): New function.
7002         New "maint set/show show-all-tib" command
7003         New "$_tlb" internal variable.
7004
7005 2010-04-16  Joel Brobecker  <brobecker@adacore.com>
7006
7007         * tui/tui-regs.c (tui_display_register): Add comment about
7008         a couple of casts.
7009         * tui/tui-stack.c (tui_show_locator_content): Ditto.
7010
7011 2010-04-15  Stan Shebs  <stan@codesourcery.com>
7012
7013         * frame.c: Include tracepoint.h.
7014         (get_current_frame): Allow a trace frame to be an alternate source
7015         of stack frame data.
7016         * tracepoint.c (tfind_1): Don't try to get current stack frame if
7017         it won't succeed.
7018
7019 2010-04-15  Pedro Alves  <pedro@codesourcery.com>
7020
7021         * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7022         flags.
7023         * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7024
7025 2010-04-15  Doug Evans  <dje@google.com>
7026
7027         * NEWS: Add entry for python program space support.
7028         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7029         (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7030         (py-progspace.o): New rule.
7031         * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7032         function.
7033         (find_pretty_printer_from_progspace): New function.
7034         (find_pretty_printer_from_gdb): New function.
7035         (find_pretty_printer): Rewrite.
7036         * python/py-progspace.c: New file.
7037         * python/python-internal.h (program_space): Add forward decl.
7038         (pspace_to_pspace_object, pspy_get_printers): Declare.
7039         (gdbpy_initialize_pspace): Declare.
7040         * python/python.c: #include "progspace.h".
7041         (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7042         (_initialize_python): Call gdbpy_initialize_pspace.
7043         (GdbMethods): Add current_progspace, progspaces.
7044
7045         Add -s option to source command.
7046         * NEWS: Document new option.
7047         * cli/cli-cmds.c (find_and_open_script): Add function comment.
7048         Delete from_tty and cleanupp args.  Split filep arg into file and
7049         full_pathp.  New arg search_path.
7050         (source_script_from_stream): New function.
7051         (source_script_with_search): New function.
7052         (source_script): Rewrite.
7053         (source_command): Parse "-s" option.
7054         (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7055         * python/python.c (source_python_script): Make file arg a const char *.
7056         Don't call fclose, leave for caller.
7057         * python/python.h (source_python_script): Update.
7058
7059 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
7060             Pedro Alves  <pedro@codesourcery.com>
7061
7062         Avoid rereading shared libraries that haven't changed.
7063
7064         * solib.c (free_so_symbols): New function, from ...
7065         (free_so): ... here.  Call it.
7066         (solib_read_symbols): Don't warn here if symbols have already been
7067         loaded.
7068         (solib_add): Warn here instead, if a pattern was specified.
7069         (reload_shared_libraries_1): New.
7070         (reload_shared_libraries): Rewrite to not fetch the library list.
7071
7072 2010-04-14  Doug Evans  <dje@google.com>
7073
7074         * source.c (openp): Strip DOS drive letter if present before
7075         concatenating string to search path.
7076
7077 2010-04-14  Pedro Alves  <pedro@codesourcery.com>
7078
7079         * objfiles.h (gdb_bfd_close_or_warn): Declare.
7080         * objfiles.c (gdb_bfd_close_or_warn): New.
7081         * corelow.c: Include objfiles.h
7082         (core_close): Use gdb_bfd_close_or_warn.
7083         * elfread.c (build_id_verify): Ditto.
7084         * exec.c (exec_close, exec_close_1): Ditto.
7085
7086 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
7087             Pedro Alves  <pedro@codesourcery.com>
7088
7089         Group errors for many missing shared libraries.
7090
7091         * solist.h (struct so_list): Remove from_tty.
7092         * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7093         (solib_map_sections): Take so_list argument.  Return 0 if we
7094         failed to open a BFD.  Add target sections here.
7095         (symbol_add_stub): Delete.
7096         (solib_read_symbols): Inline symbol_add_stub.  Use current flags,
7097         not from_tty copied from the so_list.  Don't warn a second time
7098         for a missing library.
7099         (update_solib_list): Don't save from_tty.  Use TRY_CATCH.  Do not
7100         add to the section table here.  Print out a single warning for all
7101         missing libraries.
7102         * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7103         flags.
7104
7105 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
7106
7107         * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7108         error/warning messages.  Capitalize and use complete sentences.
7109         (blpy_block_syms_iternext): Likewise.
7110         * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7111         * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7112         (frame_info_to_frame_object, frapy_read_var)
7113         (gdbpy_frame_stop_reason_string): Likewise.
7114         * python/py-lazy-string.c (stpy_convert_to_value)
7115         (gdbpy_create_lazy_string_object): Likewise.
7116         * python/py-objfile.c (objfpy_set_printers): Likewise.
7117         * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7118         * python/python.c (parameter_to_python): Likewise.
7119         * python/py-type.c (typy_range, typy_target): Likewise.
7120         * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7121         (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7122
7123
7124 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
7125
7126         PR python/11381
7127
7128         * python/py-prettyprint.c (pretty_print_one_value): Test for
7129         Py_None.
7130         (print_string_repr): Test for Py_None.  Set flags accordingly.
7131         Return value depending on return type.
7132         (print_children): Take a value indicating whether data was printed
7133         before this function was called.  Alter output accordingly.
7134         (apply_val_pretty_printer): Capture return value from
7135         print_string_repr and pass to print_children.
7136
7137 2010-04-13  Mark Kettenis  <kettenis@gnu.org>
7138
7139         PR corefiles/11481
7140         * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7141         register note sections.
7142         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7143         New variables.
7144         (i386_linux_init_abi): Install list of supported register note
7145         sections that matches the target description.
7146
7147 2010-04-13  Pedro Alves  <pedro@codesourcery.com>
7148
7149         * remote.c (remote_get_noisy_reply): Don't error out on empty
7150         replies.
7151         (remote_start_remote): Update and merge tracepoints and trace
7152         state variables as long as the target supports tracepoints.
7153         (remote_trace_init): Fix prototype.
7154         (remote_download_trace_state_variable): Validate reply.
7155         (remote_trace_set_readonly_regions): Fix prototype.
7156         (remote_trace_start): Fix prototype.  Check for empty reply.
7157         (remote_get_trace_status): Small cleanup.
7158         (remote_trace_stop): Fix prototype.  Check for empty reply.
7159         (remote_trace_find): Check for empty reply.
7160         (remote_save_trace_data): Validate reply.
7161         (remote_set_disconnected_tracing): Check for empty reply, and
7162         validate reply.
7163         (remote_set_circular_trace_buffer): Ditto.
7164
7165 2010-04-13  Pierre Muller  <muller@ics.u-strasbg.fr>
7166
7167         Suppress unused value warning during compilation.
7168         * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7169         calls to void.
7170         * tui/tui-stack.c (tui_show_locator_content): Likewise.
7171
7172 2010-04-12  Stan Shebs  <stan@codesourcery.com>
7173
7174         * tracepoint.c (tfile_xfer_partial): Check read result.
7175
7176 2010-04-12  Mike Frysinger  <vapier@gentoo.org>
7177
7178         * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7179         * remote-sim.c (gdbsim_files_info): Likewise.
7180
7181 2010-04-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
7182
7183         * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7184         * arm-linux-nat.c (arm_linux_vfp_register_count): New
7185         variable.
7186         (fetch_vfp_registers): New function to fetch VFP registers.
7187         (store_vfp_registers): New function to store VFP registers.
7188         (arm_linux_fetch_inferior_registers): Add support for VFP
7189         registers.
7190         (arm_linux_store_inferior_registers): Likewise.
7191         (arm_linux_read_description): Likewise.
7192         (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7193         until we need it.
7194
7195 2010-04-11  H.J. Lu  <hongjiu.lu@intel.com>
7196
7197         * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7198         tdep.
7199         (amd64_collect_xstateregset): Likewise.
7200
7201 2010-04-09  Stan Shebs  <stan@codesourcery.com>
7202
7203         * tracepoint.c (trace_status_mi): Report frames created.
7204
7205         * tracepoint.c (trace_dump_command): Include default-collect
7206         expressions.
7207
7208 2010-04-09  Ulrich Weigand  <uweigand@de.ibm.com>
7209
7210         * symtab.c (find_function_start_sal): Never return SAL pointing
7211         before function start address, even if line info is missing.
7212
7213 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
7214
7215         * NEWS: Mention tracepoints support.
7216
7217 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
7218
7219         * tracepoint.c (trace_status_mi): Report disconnected tracing and
7220         circular trace buffer statuses.
7221
7222 2010-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7223
7224         * config/djgpp/fnchange.lst: Fix typo in translations for
7225         symbol-without-target_section.exp and symbol-without-target_section.c.
7226
7227 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
7228
7229         * breakpoint.c (condition_command): Pass condition expression to
7230         set_breakpoint_condition stripped from breakpoint number.
7231
7232 2010-04-09  Phil Muldoon  <pmuldoon@redhat.com>
7233             Thiago Jung Bauermann  <bauerman@br.ibm.com>
7234             Tom Tromey  <tromey@redhat.com>
7235
7236         * breakpoint.c (condition_command): Simplify.  Move condition
7237         setting code to ...
7238         (set_breakpoint_condition): ... here.  New function.
7239         * breakpoint.h  (set_breakpoint_condition): Declare.
7240         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7241         (SUBDIR_PYTHON_SRCS): Likewise.
7242         (py-breakpoint.o): New rule.
7243         * python/py-breakpoint.c: New file.
7244         * python/python-internal.h (gdbpy_breakpoints)
7245         (gdbpy_initialize_breakpoints): Declare.
7246         (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7247
7248 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
7249
7250         * regformats/regdat.sh: Include server.h.  Don't include
7251         regcache.h.
7252
7253 2010-04-08  Stan Shebs  <stan@codesourcery.com>
7254             Pedro Alves  <pedro@codesourcery.com>
7255
7256         * tracepoint.h (struct trace_status): New fields disconnected_tracing
7257         and circular_buffer.
7258         (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7259         * tracepoint.c (trace_status_command): Display target's status for
7260         disconnected tracing and circular buffer.
7261         (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7262         query for non-disconnected-tracing case, remove the stop_tracing
7263         call.
7264         (tfile_open): Clear disconnected and circular buffer status.
7265         (trace_save): Save disconnected and circular buffer status.
7266         (parse_trace_status): Parse disconnected and circular buffer status,
7267         also recognize disconnected as a stop reason.
7268         * remote.c (remote_set_disconnected_tracing): Only set
7269         QTDisconnected if the remote end supports disconnected tracing.
7270         Warn otherwise, if trying to enable disconnected tracing.
7271         * infcmd.c (detach_command): Update disconnect_tracing call.
7272         * cli/cli-cmds.c (quit_command): Ditto.
7273
7274 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
7275
7276         * i387-tdep.c (i387_collect_xsave): Replace abort with
7277         internal_error.
7278
7279 2010-04-08  Stan Shebs  <stan@codesourcery.com>
7280
7281         * breakpoint.c (default_collect_info): New function.
7282         (breakpoints_info): Call it.
7283         (maintenance_info_breakpoints): Ditto.
7284         (tracepoints_info): Ditto.
7285
7286 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
7287
7288         * i387-tdep.c (i387_collect_xsave): Re-indent.
7289
7290 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
7291
7292         * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7293         if HAVE_PTRACE_GETFPXREGS is defined.
7294         (i386_linux_read_description): Set have_ptrace_getfpxregs and
7295         have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7296
7297         * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7298         (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7299         if .reg-xfp section doesn't exist.
7300         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7301
7302         * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7303
7304         * i386-tdep.c: Include "features/i386/i386-mmx.c".
7305         (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7306         (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional.  Set
7307         xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7308         (i386_gdbarch_init): Update comments.
7309         (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7310
7311         * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7312
7313         * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7314
7315         * features/Makefile (i386/i386-mmx-expedite): New.
7316         (i386/i386-mmx-linux-expedite): Likewise.
7317         ($(outdir)/i386/i386-mmx.dat): Likewise.
7318         ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7319
7320         * features/i386/i386-mmx-linux.c: New.
7321         * features/i386/i386-mmx-linux.xml: Likewise.
7322         * features/i386/i386-mmx.c: Likewise.
7323         * features/i386/i386-mmx.xml: Likewise.
7324         * regformats/i386/i386-mmx-linux.dat: Likewise.
7325         * regformats/i386/i386-mmx.dat: Likewise.
7326
7327         * features/Makefile (WHICH): Add i386/i386-mmx and
7328         i386/i386-mmx-linux.
7329
7330 2010-04-08  Doug Evans  <dje@google.com>
7331
7332         * source.c (openp): Skip $cdir in PATH.
7333
7334 2010-04-08  Phil Muldoon  <pmuldoon@redhat.com>
7335
7336         PR python/11417
7337         * python/py-lazy-string.c (stpy_convert_to_value): Check for
7338         a NULL address.
7339         (gdbpy_create_lazy_string_object): Allow strings with a NULL
7340         address and a zero length.
7341
7342 2010-04-08  Hui Zhu  <teawater@gmail.com>
7343
7344         * i386-tdep.c (i386_process_record): Add support for insn
7345         rdtsc.
7346
7347 2010-04-07  Doug Evans  <dje@google.com>
7348
7349         * python/python.c (source_python_script): Use ensure_python_env
7350         to prepare environment for script.
7351
7352 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7353
7354         * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7355         <sys/uio.h> and "i386-xstate.h".
7356         (PTRACE_GETREGSET): New.
7357         (PTRACE_SETREGSET): Likewise.
7358         (have_ptrace_getregset): Likewise.
7359         (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7360         registers.
7361         (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7362         registers.
7363         (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7364         (amd64_linux_store_inferior_registers): Likewise.
7365         (amd64_linux_read_description): Check and enable AVX target
7366         descriptions.
7367
7368         * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7369         and "features/i386/amd64-avx-linux.c".
7370         (amd64_linux_regset_sections): New.
7371         (amd64_linux_core_read_description): Check and enable AVX
7372         target description.
7373         (amd64_linux_init_abi): Set xsave_xcr0_offset.  Call
7374         set_gdbarch_core_regset_sections.
7375         (_initialize_amd64_linux_tdep): Call
7376         initialize_tdesc_amd64_avx_linux.
7377
7378         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7379         AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7380         (tdesc_amd64_avx_linux): New.
7381         (amd64_linux_update_xstateregset): Likewise.
7382
7383         * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7384         (amd64_ymm_names): New.
7385         (amd64_ymmh_names): Likewise.
7386         (amd64_register_name): Likewise.
7387         (amd64_supply_xstateregset): Likewise.
7388         (amd64_collect_xstateregset): Likewise.
7389         (amd64_supply_xsave): Likewise.
7390         (amd64_collect_xsave): Likewise.
7391         (AMD64_NUM_REGS): Removed.
7392         (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7393         %xmmN if AVX is available.
7394         (amd64_pseudo_register_name): Support pseudo YMM registers.
7395         (amd64_regset_from_core_section): Support .reg-xstate section.
7396         (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7397         and ymm0h_regnum.  Call set_gdbarch_register_name.
7398         (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7399
7400         * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7401         AMD64_YMM15H_REGNUM.
7402         (AMD64_NUM_REGS): New.
7403         (amd64_supply_xsave): Likewise.
7404         (amd64_collect_xsave): Likewise.
7405         (amd64_register_name): Removed.
7406         (amd64_register_type): Likewise.
7407
7408 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7409
7410         * i387-tdep.c: Include "i386-xstate.h".
7411         (XSAVE_XSTATE_BV_ADDR): New.
7412         (xsave_avxh_offset): Likewise.
7413         (XSAVE_AVXH_ADDR): Likewise.
7414         (i387_supply_xsave): Likewise.
7415         (i387_collect_xsave): Likewise.
7416
7417         * i387-tdep.h (I387_NUM_YMM_REGS): New.
7418         (I387_YMM0H_REGNUM): Likewise.
7419         (I387_YMMENDH_REGNUM): Likewise.
7420         (i387_supply_xsave): Likewise.
7421         (i387_collect_xsave): Likewise.
7422
7423 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7424
7425         * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7426         <sys/uio.h> and "i386-xstate.h".
7427         (PTRACE_GETREGSET): New.
7428         (PTRACE_SETREGSET): Likewise.
7429         (fetch_xstateregs): Likewise.
7430         (store_xstateregs): Likewise.
7431         (GETXSTATEREGS_SUPPLIES): Likewise.
7432         (regmap): Include 8 upper YMM registers.
7433         (i386_linux_fetch_inferior_registers): Support XSAVE extended
7434         state.
7435         (i386_linux_store_inferior_registers): Likewise.
7436         (i386_linux_read_description): Check and enable AVX target
7437         descriptions.
7438
7439         * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7440         "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7441         (i386_linux_regset_sections): Add ".reg-xstate".
7442         (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7443         (i386_linux_core_read_xcr0): New.
7444         (i386_linux_core_read_description): Check and enable AVX target
7445         description.
7446         (i386_linux_init_abi): Set xsave_xcr0_offset.
7447         (_initialize_i386_linux_tdep): Call
7448         initialize_tdesc_i386_avx_linux.
7449
7450         * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7451         I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7452         (i386_linux_core_read_xcr0): New.
7453         (tdesc_i386_avx_linux): Likewise.
7454         (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7455
7456         * i386-tdep.c: Include "i386-xstate.h" and
7457         "features/i386/i386-avx.c".
7458         (i386_ymm_names): New.
7459         (i386_ymmh_names): Likewise.
7460         (i386_ymmh_regnum_p): Likewise.
7461         (i386_ymm_regnum_p): Likewise.
7462         (i386_xmm_regnum_p): Likewise.
7463         (i386_register_name): Likewise.
7464         (i386_ymm_type): Likewise.
7465         (i386_supply_xstateregset): Likewise.
7466         (i386_collect_xstateregset): Likewise.
7467         (i386_sse_regnum_p): Removed.
7468         (i386_pseudo_register_name): Support pseudo YMM registers.
7469         (i386_pseudo_register_type): Likewise.
7470         (i386_pseudo_register_read): Likewise.
7471         (i386_pseudo_register_write): Likewise.
7472         (i386_dbx_reg_to_regnum): Return %ymmN register number for
7473         %xmmN if AVX is available.
7474         (i386_regset_from_core_section): Support .reg-xstate section.
7475         (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7476         (i386_process_record): Replace i386_sse_regnum_p with
7477         i386_xmm_regnum_p.
7478         (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7479         Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7480         (i386_gdbarch_init): Set xstateregset.  Set xsave_xcr0_offset.
7481         Call set_gdbarch_register_name.  Replace I386_SSE_NUM_REGS with
7482         I386_AVX_NUM_REGS.  Set ymmh_register_names, ymm0h_regnum and
7483         num_ymm_regs.  Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7484         Set ymm0_regnum.
7485         (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7486
7487         * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7488         xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7489         i386_ymm_type.
7490         (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7491         (I386_AVX_NUM_REGS): New.
7492         (i386_xmm_regnum_p): Likewise.
7493         (i386_ymm_regnum_p): Likewise.
7494         (i386_ymmh_regnum_p): Likewise.
7495
7496         * common/i386-xstate.h: New.
7497
7498 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7499
7500         * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7501
7502         * features/Makefile (WHICH): Add i386/i386-avx,
7503         i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7504         (i386/i386-avx-expedite): New.
7505         (i386/i386-avx-linux-expedite): Likewise.
7506         (i386/x86-64-avx-expedite):Likewise.
7507         (i386/x86-64-avx-linux-expedite): Likewise.
7508         ($(outdir)/i386/i386-avx.dat): New dependency.
7509         ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7510         ($(outdir)/i386/x86-avx-64.dat): Likewise.
7511         ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7512
7513         * features/i386/32bit-avx.xml: New.
7514         * features/i386/64bit-avx.xml: Likewise.
7515         * features/i386/i386-avx-linux.c: Likewise.
7516         * features/i386/i386-avx-linux.xml: Likewise.
7517         * features/i386/i386-avx.c: Likewise.
7518         * features/i386/i386-avx.xml: Likewise.
7519         * features/i386/x86-64-avx-linux.c: Likewise.
7520         * features/i386/x86-64-avx-linux.xml: Likewise.
7521         * features/i386/x86-64-avx.c: Likewise.
7522         * features/i386/x86-64-avx.xml: Likewise.
7523         * regformats/i386/i386-avx-linux.dat: Likewise.
7524         * regformats/i386/i386-avx.dat: Likewise.
7525         * regformats/i386/x86-64-avx-linux.dat: Likewise.
7526         * regformats/i386/x86-64-avx.dat: Likewise.
7527
7528 2010-04-07  Doug Evans  <dje@google.com>
7529
7530         * top.c (source_file_name): Make const char *.
7531         * top.h (source_file_name): Update.
7532         * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7533         const char *.
7534         (script_from_file): Change `file' arg to const char *.
7535         * cli/cli-script.h (script_from_file): Update.
7536
7537 2010-04-06  Doug Evans  <dje@google.com>
7538
7539         * cli/cli-cmds.c (source_command): Run cleanups.
7540
7541 2010-04-06  Stan Shebs  <stan@codesourcery.com>
7542
7543         * defs.h (char_ptr): Move typedef here from...
7544         * ada-lang.c (char_ptr): Remove.
7545         * charset.c (char_ptr): Remove.
7546         * tracepoint.h (struct uploaded_string): Remove.
7547         (struct uploaded_tp): Use vectors for string arrays.
7548         * tracepoint.c (trace_save): Use vectors of actions.
7549         (parse_tracepoint_definition): Ditto.
7550         (get_uploaded_tp): Clear vectors.
7551         * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7552         (next_cmd): Change to an int.
7553         (read_next_cmd): Use vector of command strings.
7554
7555 2010-04-06  Doug Evans  <dje@google.com>
7556
7557         * top.h (source_script, cd_command): Delete.
7558         * main.c: #include "cli/cli-cmds.h"
7559
7560 2010-04-06  Kevin Buettner  <kevinb@redhat.com>
7561
7562         * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7563         type in bytes, not bits.
7564
7565 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
7566
7567         * stabsread.c (define_symbol): Add support for char
7568         and string constants.
7569
7570 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
7571
7572         Remove remaining "%ll" uses.
7573         * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7574         hex_string call.
7575         * rs6000-nat.c (rs6000_ptrace64): Idem.
7576         * solib-pa64.c (pa64_current_sos): Idem.
7577         * solib-spu.c (spu_current_sos): Idem.
7578         * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7579         plongest call.
7580         * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7581         phex (VAR, 8) call.
7582         * sh64-tdep.c (sh64_show_media_regs): Idem.
7583
7584 2010-04-05  Stan Shebs  <stan@codesourcery.com>
7585
7586         * tracepoint.c: Include gdbcore.h.
7587         (tfile_xfer_partial): Return partial results, also try reading
7588         from executable.
7589         (tfile_has_all_memory): New function.
7590         (init_tfile_ops): Use it.
7591
7592 2010-04-05  Sergio Durigan Junior  <sergiodj@redhat.com>
7593
7594         PR gdb/10736:
7595         * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7596         the changes in data-directory.
7597         (init_sysinfo): Reload the syscall XML file if the data-directory
7598         has changed.
7599
7600 2010-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7601
7602         Code cleanup.
7603         * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7604
7605 2010-04-04  Stan Shebs  <stan@codesourcery.com>
7606             Nathan Sidwell  <nathan@codesourcery.com>
7607
7608         * breakpoint.c (breakpoint_1): Add filter argument, return number of
7609         breakpoints printed.
7610         (is_hardware_watchpoint): Make argument const.
7611         (is_watchpoint): Ditto.
7612         (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7613         use it everywhere.
7614         (breakpoints_info): Pass NULL to breakpoint_1.
7615         (maintenance_info_breakpoints): Ditto.
7616         (watchpoints_info): New function.
7617         (tracepoints_info): Use breakpoint_1 filter.
7618         (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7619         (_initialize_breakpoint): Make "info watchpoints" its own command.
7620         * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7621         * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7622
7623 2010-04-04  Stan Shebs  <stan@codesourcery.com>
7624
7625         * tracepoint.c (tfile_fetch_registers): Add fallback case.
7626
7627 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
7628
7629         * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7630         * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7631
7632 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
7633
7634         * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7635         * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7636
7637 2010-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7638
7639         * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7640         code form.
7641
7642 2010-04-02  Hui Zhu  <teawater@gmail.com>
7643
7644         * i386-tdep.c (OT_DQUAD): New enum.
7645         (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7646         SSE3, SSSE3 and SSE4.
7647
7648 2010-04-02  Hui Zhu  <teawater@gmail.com>
7649
7650         * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7651         "*addr = 0".
7652
7653 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
7654
7655         * tracepoint.c (trace_dump_actions): New, factored out from
7656         trace_dump_command, and adjusted to recurse into while-stepping's
7657         action list.
7658         (trace_dump_command): Use it.
7659
7660 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
7661
7662         * breakpoint.h (struct counted_command_line): Moved definition to
7663         breakpoint.c, and forward declare.
7664         (breakpoint_commands): Declare.
7665         * breakpoint.c (struct counted_command_line): Moved here.
7666         (breakpoint_commands): New.
7667         * tracepoint.c (encode_actions): Use breakpoint_commands.
7668         * remote.c (remote_download_tracepoint): Ditto.
7669
7670 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
7671
7672         * remote.c (remote_parse_stop_reply): Use hex_string instead
7673         of phex_nz for error.
7674
7675 2010-04-01  Stan Shebs  <stan@codesourcery.com>
7676             Nathan Sidwell  <nathan@codesourcery.com>
7677
7678         * tracepoint.h (enum actionline_type): Remove.
7679         (validate_actionline): Change return to void.
7680         * tracepoint.c (report_agent_reqs_errors): New function.
7681         (validate_actionline): Call it, change return to void, report errors
7682         more consistently.
7683         (collect_symbol): Call report_agent_reqs_errors.
7684         (encode_actions_1): Ditto.
7685         (encode_actions): Don't expect a result from validate_actionline.
7686
7687 2010-04-01  Stan Shebs  <stan@codesourcery.com>
7688
7689         * tracepoint.c (trace_start_command): Confirm if trace is running.
7690         (trace_stop_command): Error if trace not running.
7691
7692 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
7693
7694         * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7695         (AMD64_NUM_LOWER_BYTE_REGS): New.
7696         (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7697         (amd64_pseudo_register_write): Likewise.
7698         (amd64_init_abi): Set num_byte_regs to 20.
7699
7700 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
7701
7702         * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7703         (prev_breakpoint_count): New.
7704         (set_breakpoint_count): Adjust.
7705         (rbreak_start_breakpoint_count): New.
7706         (start_rbreak_breakpoints): Adjust.
7707         (end_rbreak_breakpoints): Adjust.
7708         (struct commands_info) <arg>: New field.
7709         (do_map_commands_command): Tweak output to include breakpoint spec
7710         range.
7711         (commands_command_1): Adjust.  Avoid setting an xfree cleanup if
7712         ARG was empty on entry.  Set INFO's arg.
7713         (create_breakpoint): Adjust.
7714
7715         * NEWS: Clarify `commands' changes.
7716
7717 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
7718
7719         * tracepoint.c: Include stack.h.
7720         (struct add_local_symbols_data): New.
7721         (do_collect_symbol): New.
7722         (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7723         iterate_over_block_local_vars.
7724         * stack.c (print_block_frame_locals): Rewrite as ...
7725         (iterate_over_block_locals): ... this.  Take a callback function
7726         pointer and generic data pointer, and call that instead of
7727         print_variable_and_value.
7728         (struct print_variable_and_value_data): New.
7729         (do_print_variable_and_value): New.
7730         (iterate_over_block_local_vars): New, abstracted out from
7731         print_frame_local_vars.
7732         (print_frame_local_vars): Rewrite using
7733         iterate_over_block_local_vars.
7734         (iterate_over_block_arg_vars): New, abstracted out from
7735         print_frame_arg_vars.
7736         (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7737         * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7738         (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7739
7740 2010-03-31  Richard Earnshaw  <rearnsha@arm.com>
7741
7742         * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7743         instructions.  Use the PC+4 if the base of the TBB or TBH is the
7744         PC register.
7745
7746 2010-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
7747
7748         Fix crash on reading wrong function declaration DWARF.
7749         * dwarf2read.c (read_subroutine_type): New variable void_type.
7750         Pre-fill all TYPE_FIELD_TYPEs.  Move nparams and iparams initialization
7751         more close to their use.
7752
7753 2010-03-31  Stan Shebs  <stan@codesourcery.com>
7754
7755         * breakpoint.c (tracepoint_save_command): Include variables,
7756         conditionals, tracepoint types, and default-collect.
7757         * tracepoint.c (save_trace_state_variables): New function.
7758         * tracepoint.h (save_trace_state_variables): Declare it.
7759
7760 2010-03-31  Pierre Muller  <muller@ics.u-strasbg.fr>
7761
7762         * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7763
7764 2010-03-30  Keith Seitz  <keiths@redhat.com>
7765
7766         * c-typeprint.c (c_type_print_args): Don't print "void"
7767         for java, regardless of whether it is TYPE_PROTOTYPED.
7768         Use the passed-in language instead of current_language.
7769         (c_type_print_varspec_suffix): Use current_language instead
7770         of assuming language_c.
7771         * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7772         any return type specifier from the physname.
7773
7774 2010-03-30  Pedro Alves  <pedro@codesourcery.com>
7775
7776         * tui/tui-interp.c (tui_is_toplevel): New.
7777         (tui_init): Set it.
7778         (tui_allowed_p): New.
7779         * tui/tui.c (tui_enable): Check if the TUI is allowed before
7780         enabling it.
7781         * tui/tui.h (tui_allowed_p): Declare.
7782
7783 2010-03-30  Ozkan Sezer  <sezeroz@gmail.com>
7784
7785         * serial.h: Include winsock2.h before windows.h.
7786
7787 2010-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7788
7789         * NEWS: Mention xmlRegisters= in qSupported packet.
7790
7791         * i386-tdep.c: Include "remote.h".
7792         (_initialize_i386_tdep): Call register_remote_support_xml.
7793
7794         * remote.c (remote_support_xml): New.
7795         (register_remote_support_xml): Likewise.
7796         (remote_query_supported_append): Likewise.
7797         (remote_query_supported): Support remote_support_xml.
7798
7799         * remote.h (register_remote_support_xml): New.
7800
7801 2010-03-29  Stan Shebs  <stan@codesourcery.com>
7802
7803         * tracepoint.c (trace_find_line_command): Remove dead code.
7804
7805         * tracepoint.h (struct uploaded_string): New struct.
7806         (struct uploaded_tp): New fields for source strings.
7807         * breakpoint.c (this_utp, next_cmd): New globals.
7808         (read_uploaded_action): New function.
7809         (create_tracepoint_from_upload): Fill in more parts
7810         of a tracepoint.
7811         * tracepoint.c (encode_source_string): New function.
7812         (trace_save): Write out source strings, fix error checks.
7813         (parse_tracepoint_definition): Add source string parsing.
7814         * remote.c (PACKET_TracepointSource): New packet type.
7815         (remote_download_command_source): New function.
7816         (remote_download_tracepoint): Download source pieces also.
7817         (_initialize_remote): Add packet config command.
7818
7819         * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7820         expression handler.
7821
7822         * tracepoint.c (start_tracing): Check tracepoints before sending
7823         commands to target, don't start if all tracepoints disabled.
7824
7825 2010-03-28  Pedro Alves  <pedro@codesourcery.com>
7826
7827         * cli/cli-script.c (process_next_line): Handle 'stepping'.
7828
7829 2010-03-26  Stan Shebs  <stan@codesourcery.com>
7830
7831         * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7832
7833 2010-03-26  Tom Tromey  <tromey@redhat.com>
7834
7835         * breakpoint.c (commands_command_1): Duplicate 'arg'.
7836
7837 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7838
7839         * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7840         (skip_prologue_sal): Remove local definition.
7841         (resolve_sal_pc): Remove now unnecessary code.
7842         * linespec.c (minsym_found): Call skip_prologue_sal.
7843         * symtab.c (find_function_start_pc): Remove.
7844         (find_function_start_sal): Extract prologue skipping into ...
7845         (skip_prologue_sal): ... this new function.  Handle code both
7846         with and without debug info.  Respect SAL's explicit_pc and
7847         explicit_line flags.  Inline old find_function_start_pc.
7848         * symtab.h (find_function_start_pc): Remove.
7849         (skip_prologue_sal): Add prototype.
7850
7851 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7852
7853         * dwarf2read.c (read_func_scope): Also scan specification DIEs
7854         for DW_TAG_imported_module children.
7855
7856 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7857
7858         * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7859         ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7860         * completer.c (add_struct_fields): Fix inverted logic.
7861
7862 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7863
7864         * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7865
7866 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
7867
7868         * tracepoint.c (current_trace_status): Don't make sure error_desc
7869         is non-NULL here.
7870         (parse_trace_status): Release a previous error_desc string, and
7871         set it to NULL by default.  If stop reason is tracepoint_error,
7872         make sure error_desc is not left NULL.
7873
7874 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
7875
7876         * tracepoint.c (trace_save): Remove X from tracepoint error
7877         description.
7878
7879 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
7880
7881         * tracepoint.c (parse_trace_status): Don't allow plain strings in
7882         the terror description.  Don't expect an X prefix.
7883
7884 2010-03-25  Stan Shebs  <stan@codesourcery.com>
7885
7886         * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7887         (struct trace_status): New field error_desc.
7888         * tracepoint.c (stop_reason_names): Add terror.
7889         (current_trace_status): Ensure non-NULL error description.
7890         (trace_status_command): Add error report.
7891         (trace_status_mi): Ditto.
7892         (trace_save): Add special case for error description.
7893         (parse_trace_status): Add case for errors.
7894
7895 2010-03-25  Keith Seitz  <keiths@redhat.com>
7896
7897         * dwarf2read.c (read_subroutine_type): If the compilation unit
7898         language is Java, mark any formal parameter named "this" as
7899         artificial (GCC/43521).
7900         (dwarf2_name): Add special handling for Java constructors.
7901
7902 2010-03-25  Tom Tromey  <tromey@redhat.com>
7903
7904         PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7905         * infrun.c (handle_inferior_event): Change initialization of
7906         stop_stack_dummy.
7907         (handle_inferior_event): Change assignment to stop_stack_dummy.
7908         (normal_stop): Update use of stop_stack_dummy.
7909         (struct inferior_status) <stop_stack_dummy>: Change type.
7910         * inferior.h (stop_stack_dummy): Update.
7911         * infcmd.c (stop_stack_dummy): Change type.
7912         * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7913         function.
7914         (call_function_by_hand): Call set_std_terminate_breakpoint.
7915         Rewrite std::terminate handling.
7916         * breakpoint.h (enum bptype) <bp_std_terminate,
7917         bp_std_terminate_master>: New.
7918         (enum stop_stack_kind): New.
7919         (struct bpstat_what) <call_dummy>: Change type.
7920         (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7921         Declare.
7922         * breakpoint.c (create_std_terminate_master_breakpoint): New
7923         function.
7924         (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7925         Call create_std_terminate_master_breakpoint.
7926         (print_it_typical): Handle new breakpoint kinds.
7927         (bpstat_stop_status): Handle bp_std_terminate_master.
7928         (bpstat_what): Correctly set call_dummy field.  Handle
7929         bp_std_terminate_master and bp_std_terminate.
7930         (print_one_breakpoint_location): Update.
7931         (allocate_bp_location): Update.
7932         (set_std_terminate_breakpoint): New function.
7933         (delete_std_terminate_breakpoint): Likewise.
7934         (create_thread_event_breakpoint): Update.
7935         (delete_command): Update.
7936         (breakpoint_re_set_one): Update.
7937         (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7938
7939 2010-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7940
7941         * symfile.c (build_section_addr_info_from_bfd): New.
7942         (build_section_addr_info_from_objfile): Base it on
7943         build_section_addr_info_from_bfd.
7944         (addrs_section_compar, addrs_section_sort): New.
7945         (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7946         addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs.  Build
7947         addrs_to_abfd_addrs.  Use it for recalculating ADDRS.
7948
7949 2010-03-24  Michael Snyder  <msnyder@localhost.localdomain>
7950
7951         * elfread.c (find_separate_debug_file_by_buildid):
7952         Remove unused local variable.
7953
7954 2010-03-24  Tom Tromey  <tromey@redhat.com>
7955
7956         PR breakpoints/9352:
7957         * NEWS: Mention changes to `commands' and `rbreak'.
7958         * symtab.c (do_end_rbreak_breakpoints): New function.
7959         (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7960         end_rbreak_breakpoints.
7961         * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7962         (set_breakpoint_count): Likewise.  Clear last_was_multi.
7963         (multi_start, multi_end, last_was_multi): New globals.
7964         (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7965         functions.
7966         (struct commands_info): New
7967         (do_map_commands_command): New function.
7968         (commands_command_1): New function.
7969         (commands_command): Use it.
7970         (commands_from_control_command): Likewise.
7971         (do_delete_breakpoint): New function.
7972         (delete_command): Use it.
7973         (map_breakpoint_numbers): Add 'data' argument.  Pass to callback.
7974         (do_map_disable_breakpoint): New function.
7975         (disable_command): Use it.
7976         (do_map_enable_breakpoint): New function.
7977         (enable_command): Use it.
7978         (enable_once_breakpoint): Add argument.
7979         (enable_once_command): Update.
7980         (enable_delete_breakpoint): Add argument.
7981         (enable_delete_command): Update.
7982         (break_command_really): Set last_was_multi when needed.
7983         (check_tracepoint_command): Fix formatting.
7984         (validate_commands_for_breakpoint): New function.
7985         (breakpoint_set_commands): Use it.
7986         (tracepoint_save_command): Update.
7987         * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7988         Declare.
7989
7990 2010-03-24  Tom Tromey  <tromey@redhat.com>
7991
7992         * breakpoint.h (struct counted_command_line): New struct.
7993         (struct breakpoint) <commands>: Change type.
7994         (struct bpstats) <commands>: Change type.
7995         <commands_left>: New field.
7996         * breakpoint.c (alloc_counted_command_line): New function.
7997         (incref_counted_command_line): Likewise.
7998         (decref_counted_command_line): Likewise.
7999         (do_cleanup_counted_command_line): Likewise.
8000         (make_cleanup_decref_counted_command_line): Likewise.
8001         (breakpoint_set_commands): Use decref_counted_command_line and
8002         alloc_counted_command_line.
8003         (commands_command): Don't error if breakpoint commands are
8004         executing.
8005         (commands_from_control_command): Likewise.
8006         (bpstat_free): Update.
8007         (bpstat_copy): Likewise.
8008         (bpstat_clear_actions): Likewise.
8009         (bpstat_do_actions_1): Likewise.
8010         (bpstat_stop_status): Likewise.
8011         (print_one_breakpoint_location): Likewise.
8012         (delete_breakpoint): Likewise.
8013         (bpstat_alloc): Initialize new field.
8014         (tracepoint_save_command): Update.
8015         * tracepoint.c (encode_actions): Update.
8016         (trace_dump_command): Update.
8017
8018 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
8019
8020         * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8021         * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8022         (read_structure_type): For RealView, set TYPE_STUB on structures with
8023         no byte size and no children.
8024         (read_subroutine_type): Mark functions as prototyped by default.
8025         * symtab.c (producer_is_realview): New function.
8026         * symtab.h (expand_line_sal): Fix declaration formatting.
8027         (producer_is_realview): Declare.
8028
8029 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
8030
8031         * arm-tdep.c (skip_prologue_function): New function.
8032         (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8033         (thumb_analyze_prologue): Document return value.  Recognize more
8034         Thumb instructions, skippable calls, and some Thumb-2 instructions.
8035         Add debug output.
8036         (arm_skip_prologue): Remove call dummy check.  Check the prologue
8037         for non-GNU compilers.
8038         (arm_instruction_changes_pc): New function.
8039         (arm_analyze_prologue): New function, broken out from
8040         arm_scan_prologue.  Recognize more ARM instructions and skippable
8041         calls.  Update comments.  Handle NULL cache.  Return the address
8042         of the first unrecognized instruction.  Do not skip past other
8043         instructions which change control flow.  Add debug output.
8044         (arm_scan_prologue): Use arm_analyze_prologue.
8045         (ARM_PC_32): Delete.
8046         (shifted_reg_val): Simplify ARM_PC_32 check.
8047
8048 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8049
8050         * tracepoint.c (tvariables_info_1): Actually compute
8051         the number of rows in the result.
8052
8053 2010-03-24  Pedro Alves  <pedro@codesourcery.com>
8054
8055         * remote.c (crc32): Constify `buf' parameter.
8056         (remote_verify_memory): New, abstracted out from...
8057         (compare_sections_command): ... this.  Remove hardcoded target
8058         checks.
8059         (init_remote_ops): Install remote_verify_memory.
8060         * target.c (target_verify_memory): New.
8061         * target.h (struct target_ops) <to_verify_memory>: New field.
8062         (target_verify_memory): Declare.
8063
8064 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8065
8066         Implement -trace-save.
8067
8068         * mi-cmds.h (mi_cmds_trace_save): Declare.
8069         * mi-cmds.c (mi_cmds): Register -trace-save.
8070         * mi/mi-main.c (mi_cmd_trace_save): New.
8071         * remote.c (remote_save_trace_data): Take const parameter.
8072         * target.h (struct target_ops::to_save_trace_data): Take
8073         const parameter.
8074         * target.c (update_current_target): Adjust to the above.
8075         * tracepoint.c (trave_save): New, extracted from
8076         (trace_save_command): ...this.
8077         (tfile_trace_find): Remove message that is unnecessary now
8078         that 'tfind' reports found frame.
8079         * tracepoint.h (trace_save): Declare.
8080
8081 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8082
8083         Implement -trace-find.
8084
8085         * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8086         * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8087         * mi/mi-main.c (mi_cmd_trace_find): New.
8088         * target.h (struct target_ops): Document to_trace_find.
8089         * tracepoint.h (tfind_1): Declare.
8090         * tracepoint.c (finish_tfind_command): Rename to...
8091         (tfind_1): ...this.
8092         * remote.c (remote_trace_find): Return -1 if target say
8093         there's no frame.  Improve error diagnostics.
8094
8095 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8096
8097         -trace-define-variable and -trace-list-variables.
8098
8099         * tracepoint.c (create_trace_state_variable): Make
8100         private copy of name, as opposed to assuming the
8101         pointer lives forever.
8102         (tvariables_info_1): New.
8103         (tvariables_info): Use the above.
8104         * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8105         Declare.
8106         * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8107         and -trace-list-variables.
8108         * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8109         (mi_cmd_trace_list_variables): New.
8110         * mi/mi-main.c (mi_cmd_trace_define_variable)
8111         (mi_cmd_trace_list_variables): New.
8112
8113 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8114
8115         Implement -break-passcount.
8116
8117         * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8118         * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8119         * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8120
8121 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8122
8123         -trace-start/-trace-end/-trace-status.
8124
8125         * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8126         and -trace-stop.
8127         * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8128         (mi_cmd_trace_stop): Declare.
8129         * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8130         (mi_cmd_trace_stop): New.
8131         * tracepoint.c (start_tracing): New, extracted from...
8132         (trace_start_command): ...this.
8133         (trace_status_mi): New.
8134         * tracepoint.h (struct trace_status): Document
8135         stopping_tracepoint.
8136         (start_tracing, stop_tracing, trace_status_mi): Declare.
8137
8138 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8139
8140         Implement creating tracepoints with -break-insert.
8141
8142         * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8143         to mean that tracepoint should be created.
8144
8145 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8146
8147         * breakpoint.c (check_no_tracepoint_commands): Use
8148         current spelling of 'teval'.
8149
8150 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
8151
8152         Unify actions and commands
8153
8154         * defs.h (read_command_lines, read_command_lines_1): New
8155         parameters validator and closure.
8156         * tracepoint.h (struct action_line): Remove.
8157         * breakpoint.h (struct breakpoint): Remove the 'actions'
8158         field.
8159         * defs.h (enum command_control_type): New value
8160         while_stepping_control.
8161         (struct command_line): Add comments.
8162         * breakpoint.c (breakoint_is_tracepoint): New.
8163         (breakpoint_set_commands): For tracepoints,
8164         verify the commands are permissible.
8165         (check_tracepoint_commands): New.
8166         (commands_command): Require that each new line is validated using
8167         check_tracepoint_command, if we set commands for a tracepoint.
8168         (create_tracepoint_from_upload): Likewise.
8169         (print_one_breakpoint_location): Remove the code to print
8170         actions specifically.
8171         (tracepoint_save_command): Relay to print_command_lines.
8172         * cli/cli-script.c (process_next_line): New parameters validator
8173         and closure. Handle 'while-stepping'. Call validator if not null.
8174         (read_command_lines, read_command_lines1): Likewise.
8175         (recurse_read_control_structure): New parameters validator and
8176         closure. Handle while_stepping_control.
8177         (print_command_lines): Handle while-stepping.
8178         (get_command_line, define_command, document_command): Adjust.
8179         * remote.c (remote_download_tracepoint): Adjust.
8180         * tracepoint.c (make_cleanup_free_actions, read_actions)
8181         (free_actions, do_free_actions_cleanup): Remove.
8182         (trace_actions_command): Use read_command_lines.
8183         (validate_actionline): Use error in one place.
8184         (encode_actions_1): New, extracted from...
8185         (encode_actions): ...this. Also use cleanups for exception
8186         safety.
8187         (trace_dump_command): Adjust.
8188         * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8189         it's tracepoint.
8190
8191 2010-03-23  Mike Frysinger  <vapier@gentoo.org>
8192
8193         * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8194
8195 2010-03-22  Stan Shebs  <stan@codesourcery.com>
8196
8197         * value.c (value_static_field): Be lazy about the field's value.
8198
8199 2010-03-22  Reid Kleckner  <reid@kleckner.net>
8200
8201         PR gdb/11094
8202         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8203         bp_jit_event.
8204         (disable_breakpoints_in_shlibs): Likewise.
8205
8206 2010-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
8207
8208         * dwarf2read.c (partial_die_parent_scope): Work around buggy
8209         GCC 4.1 debug info generation (GCC PR c++/28460).
8210         (determine_prefix): Likewise.
8211
8212 2010-03-20  Daniel Jacobowitz  <dan@codesourcery.com>
8213
8214         * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8215         get_current_arch.
8216         * tui/tui-layout.c (extract_display_start_addr): Likewise.
8217
8218 2010-03-19  Stan Shebs  <stan@codesourcery.com>
8219
8220         * ax-gdb.c (gen_fetch): Handle bool.
8221         (gen_usual_unary): Ditto.
8222         (gen_cast): Ditto.
8223         (gen_equal): New function.
8224         (gen_less): New function.
8225         (gen_expr_binop_rest): Call them, also return integer type from
8226         logical operations.
8227         (gen_expr): Ditto.
8228
8229 2010-03-19  Tom Tromey  <tromey@redhat.com>
8230
8231         * jv-lang.c (jv_dynamics_objfile_data_key)
8232         (jv_type_objfile_data_key): New globals.
8233         (class_symtab): Move earlier.
8234         (jv_per_objfile_free): New function.
8235         (get_dynamics_objfile): Call set_objfile_data.  Add 'gdbarch'
8236         parameter.
8237         Remove ancient #if 1.
8238         (add_class_symbol): Remove redundant declaration.
8239         (java_lookup_class): Use alloc_type, not alloc_type_arch.
8240         (java_link_class_type): Mark as static.  Update.
8241         (jv_clear_object_type): New function.
8242         (set_java_object_type): Likewise.
8243         (get_java_object_type): Use set_java_object_type.
8244         (is_object_type): Likewise.
8245         (_initialize_java_language): Register new objfile keys.
8246         (get_java_class_symtab): Add 'gdbarch' parameter.
8247         (add_class_symtab_symbol): Update.
8248         (type_from_class): Update.
8249
8250 2010-03-19  Stan Shebs  <stan@codesourcery.com>
8251
8252         * ax-general.c (ax_const_l): Fix a sizing bug.
8253
8254 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
8255
8256         GDB 7.1 released.
8257
8258 2010-03-18  Stan Shebs  <stan@codesourcery.com>
8259             Pedro Alves  <pedro@codesourcery.com>
8260
8261         * target.h (struct target_ops): New method
8262         to_set_circular_trace_buffer.
8263         (target_set_circular_trace_buffer): New macro.
8264         * target.c (update_current_target): Add
8265         to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8266         default behavior.
8267         * remote.c (remote_set_circular_trace_buffer): New function.
8268         (init_remote_ops): Add it to vector.
8269         * tracepoint.h (struct trace_status): New field traceframes_created,
8270         change buffer_size and buffer_free to int.
8271         * tracepoint.c (circular_trace_buffer): New global.
8272         (start_tracing): Send values of disconnected tracing and circular
8273         trace buffer settings.
8274         (set_circular_trace_buffer): New function.
8275         (parse_trace_state): Handle total space and frames created.
8276         (trace_status_command): Display total space and total frames
8277         created.
8278         (trace_save): Write out new status values.
8279         (parse_trace_status): Set traceframe_count, traceframes_created,
8280         buffer_free and buffer_size to -1 by default.
8281         (_initialize_tracepoint): New setshow for circular-trace-buffer.
8282         * NEWS: Mention the circular trace buffer option.
8283
8284 2010-03-18  Tom Tromey  <tromey@redhat.com>
8285
8286         * infcmd.c (finish_command_continuation): Wrap print_return_value
8287         in TRY_CATCH.
8288
8289 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
8290
8291         * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8292         DIE has a name before creating the associated partial symbol.
8293         (read_func_scope): Emit a complaint if the subprogram does not
8294         have a name or when we can't extract the subprogram PC bounds.
8295
8296 2010-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
8297
8298         * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8299         instead of selected frame architecture.
8300
8301 2010-03-18  Pedro Alves  <pedro@codesourcery.com>
8302
8303         * infcmd.c (until_command): Use ERROR_NO_INFERIOR.  Ensure there's
8304         a valid selected thread, and that it is not running.
8305         (advance_command): Ditto.
8306         (finish_command): Ditto.
8307
8308 2010-03-17 Stan Shebs  <stan@codesourcery.com>
8309
8310         * ax-gdb.c (require_rvalue): Disallow non-scalars.
8311
8312         * infcall.c: Include tracepoint.h.
8313         (call_function_by_hand): Disallow calls in tfind mode.
8314         * infcmd.c: Include tracepoint.h.
8315         (ensure_not_tfind_mode): New function.
8316         (continue_1): Call it.
8317         (step_1) Ditto.
8318         (jump_command): Ditto.
8319         (signal_command): Ditto.
8320         (advance_command): Ditto.
8321         (until_command): Ditto.
8322         (finish_command): Ditto.
8323         * tracepoint.h (disconnect_or_stop_tracing): Declare.
8324
8325         * ax-gdb.h (struct axs_value): New field optimized_out.
8326         (gen_trace_for_var): Add gdbarch argument.
8327         * ax-gdb.c (gen_trace_static_fields): New function.
8328         (gen_traced_pop): Call it, add gdbarch argument.
8329         (gen_trace_for_expr): Update call to it.
8330         (gen_trace_for_var): Ditto, and report optimized-out variables.
8331         (gen_struct_ref_recursive): Check for optimized-out value.
8332         (gen_struct_elt_for_reference): Ditto.
8333         (gen_static_field): Pass gdbarch instead of expression, assume
8334         optimization if field not found.
8335         (gen_var_ref): Set the optimized_out flag.
8336         (gen_expr): Error on optimized-out variable.
8337         * tracepoint.c (collect_symbol): Handle struct-valued vars as
8338         expressions, skip optimized-out variables with computed locations.
8339         * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8340         erroring out if location expression missing.
8341         (loclist_tracepoint_var_ref): Don't error out here.
8342
8343 2010-03-17  Tom Tromey  <tromey@redhat.com>
8344
8345         * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8346         DWARF data is available.
8347
8348 2010-03-17  Daniel Jacobowitz  <dan@codesourcery.com>
8349
8350         * symfile.c (generic_load): Reset breakpoints after loading.
8351
8352 2010-03-17  Tom Tromey  <tromey@redhat.com>
8353
8354         * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8355
8356 2010-03-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8357
8358         * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8359         create_breakpoint call, adjust the parameters.
8360
8361 2010-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8362             Chandru <chandru@in.ibm.com>
8363
8364         * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8365         * valarith.c (value_subscripted_rvalue): Suppress error if
8366         TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8367
8368 2010-03-16  Holger Hans Peter Freyther  <zecke@selfish.org>
8369
8370         * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8371
8372 2010-03-16  Joel Brobecker  <brobecker@adacore.com>
8373
8374         * ada-tasks.c (task_command_1): Check that the task ptid is valid
8375         before doing the associated thread switch.
8376
8377 2010-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
8378
8379         * MAINTAINERS: Update my email address.
8380
8381 2010-03-16  Vladimir Prus  <vladimir@codesourcery.com>
8382
8383         Simplify MI breakpoint setting.
8384
8385         * breakpoint.c (break_command_really): Make nonstatic and
8386         rename to...
8387         (create_breakpoint): ...this. Rename prior function by this name
8388         to...
8389         (create_breakpoint_sal): ...this.
8390         (create_breakpoints): Rename to...
8391         (create_breakpoints_sal): ...this.
8392         (set_breakpoint): Remove.
8393         * breakpoint.h: Adjust to above changes.
8394         * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8395
8396 2010-03-15 Stan Shebs  <stan@codesourcery.com>
8397
8398         * ax-gdb.c: Include cp-support.h.
8399         (find_field): Remove.
8400         (gen_primitive_field): New function.
8401         (gen_struct_ref_recursive): New function.
8402         (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8403         of find_field.
8404         (gen_static_field): New function.
8405         (gen_struct_elt_for_reference): New.
8406         (gen_namespace_elt): New.
8407         (gen_maybe_namespace_elt): New.
8408         (gen_aggregate_elt_ref): New.
8409         (gen_expr): Add OP_SCOPE, display opcode name in error message.
8410
8411 2010-03-15  Tom Tromey  <tromey@redhat.com>
8412
8413         * dwarf2read.c (die_needs_namespace): Also return 0 for
8414         DW_TAG_subprogram.
8415
8416 2010-03-15  Sami Wagiaalla  <swagiaal@redhat.com>
8417
8418         PR c++/7936:
8419         * cp-support.h: Added char *declaration element to using_direct
8420         data struct.
8421         (cp_add_using): Added char *declaration argument.
8422         (cp_add_using_directive): Ditto.
8423         (cp_lookup_symbol_imports): made extern.
8424         * cp-namespace.c: Updated with the above changes.
8425         * dwarf2read.c (read_import_statement): Ditto.
8426         (read_namespace): Ditto.
8427         (read_import_statement): Support import declarations.
8428         * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8429         declarations.
8430         Added support for 'declaration_only' search.
8431         (cp_lookup_symbol_namespace): Attempt to search for the name as
8432         is before consideration of imports.
8433         * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8434         search at every block level search.
8435         Now takes language argument.
8436         (lookup_symbol_aux): Updated.
8437
8438 2010-03-15  Tom Tromey  <tromey@redhat.com>
8439
8440         * c-exp.y (name_not_typename): Add 'operator' clause.
8441
8442 2010-03-15  Ralf Corsepius  <ralf.corsepius@rtems.org>  (tiny change)
8443
8444         * configure.ac: Exit if ${gdb_target_obs}" is not set.
8445         * configure: Regenerate.
8446
8447 2010-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
8448
8449         * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8450         and ".sdynbss".  Update the comment.
8451
8452 2010-03-15  Jie Zhang  <jie@codesourcery.com>
8453
8454         * MAINTAINERS: Update my email address.
8455
8456 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
8457
8458         * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8459
8460 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
8461
8462         * charset.c [USE_WIN32API]: Include <windows.h>.
8463          (_initialize_charset): Correct type of w32_host_default_charset.
8464
8465 2010-03-14  Pedro Alves  <pedro@codesourcery.com>
8466
8467         * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8468
8469 2010-03-12  Tom Tromey  <tromey@redhat.com>
8470
8471         PR c++/9708:
8472         * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8473         in a lexical block does not need a namespace.
8474         (new_symbol) <DW_TAG_variable>: Put extern variables on
8475         list_in_scope in all cases.
8476
8477 2010-03-12 Stan Shebs  <stan@codesourcery.com>
8478
8479         * ax-gdb.c (gen_expr): Add shift expressions.
8480         (gen_expr_binop_rest): Ditto.
8481
8482 2010-03-12  Sami Wagiaalla  <swagiaal@redhat.com>
8483
8484         * buildsym.c (finish_block): Reset using_directives pointer
8485         after block initialization.
8486
8487 2010-03-12  H.J. Lu  <hongjiu.lu@intel.com>
8488
8489         * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8490         * i386-tdep.c (i386_word_names): Likewise.
8491
8492 2010-03-12  Pedro Alves  <pedro@codesourcery.com>
8493
8494         * target.c (memory_xfer_partial): Don't use the stack cache if
8495         inspecting trace frames.
8496         * tracepoint.c (finish_tfind_command): Invalidate the target
8497         dcache.
8498
8499 2010-03-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8500
8501         * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8502         for the PIC displacement, print also the displacement value.
8503         (svr4_exec_displacement):  Print DISPLACEMENT if INFO_VERBOSE.
8504
8505 2010-03-10  Kevin Buettner  <kevinb@redhat.com>
8506
8507         * remote-mips.c (close_ports, mips_initialize_cleanups)
8508         (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8509         (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8510         (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8511         (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8512         (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8513         (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8514         comments describing each of these functions.
8515         (mips_enter_debug, mips_exit_debug, common_open)
8516         (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8517         blank line after the comment describing the function.
8518
8519 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8520
8521         * solib-svr4.c (svr4_exec_displacement): Return now success, new
8522         parameter displacementp.  Update comment.
8523         (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8524         element exists.  Return if svr4_exec_displacement was not successful.
8525         Update comment.
8526
8527 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8528             Daniel Jacobowitz  <dan@codesourcery.com>
8529
8530         * solib-svr4.c (read_program_header): Support type == -1 to read
8531         all program headers.
8532         (read_program_headers_from_bfd): New function.
8533         (svr4_static_exec_displacement): Remove and move the comment ...
8534         (svr4_exec_displacement): ... here.  Remove variable found.  New
8535         variable displacement.  Check also DYNAMIC.  Verify DISPLACEMENT
8536         alignment for ELF targets.  Compare target vs. exec_bfd PHDRs for ELF
8537         targets using read_program_headers_from_bfd.  Remove the call of
8538         svr4_static_exec_displacement.
8539
8540 2010-03-10  Tom Tromey  <tromey@redhat.com>
8541
8542         * dwarf2read.c (struct pubnames_header): Remove.
8543         (_PUBNAMES_HEADER): Remove.
8544         (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8545         (struct aranges_header): Remove.
8546         (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8547         (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8548         (PUBNAMES_SECTION): Remove.
8549         (ARANGES_SECTION): Remove.
8550         (dwarf2_locate_sections): Don't handle pubnames or aranges.
8551         (dwarf2_build_psymtabs): Remove dead code.
8552         (dwarf2_build_psymtabs_easy): Remove.
8553
8554 2010-03-10  Tom Tromey  <tromey@redhat.com>
8555
8556         * elfread.c (elf_symfile_read): Don't call
8557         dwarf2_build_frame_info.
8558         * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8559         (struct dwarf2_per_objfile) <objfile>: New field.
8560         (dwarf2_has_info): Now idempotent.  Set objfile field.
8561         (dwarf2_read_section): Check and set readin field.  Call
8562         posix_madvise.
8563         (dwarf2_build_psymtabs): Don't read all sections.
8564         (read_type_comp_unit_head): Read types section.
8565         (create_debug_types_hash_table): Likewise.
8566         (init_cu_die_reader): Add asserts.
8567         (process_type_comp_unit): Add assert.
8568         (dwarf2_build_psymtabs_hard): Read info section.
8569         (load_partial_comp_unit): Add assert.
8570         (create_all_comp_units): Read info section.
8571         (load_full_comp_unit): Likewise.
8572         (dwarf2_ranges_read): Read ranges section.
8573         (dwarf2_record_block_ranges): Add assert.
8574         (dwarf2_read_abbrevs): Read abbrev section.
8575         (read_indirect_string): Read str section.
8576         (dwarf_decode_line_header): Read line section.
8577         (read_signatured_type_at_offset): Read types section.
8578         (dwarf_decode_macros): Read macinfo section.
8579         (dwarf2_symbol_mark_computed): Read loc section.
8580         * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8581         dwarf2_build_frame_info.
8582         (dwarf2_build_frame_info): Unconditionally set
8583         dwarf2_frame_objfile_data on the objfile.
8584         * configure.ac: Check for posix_madvise.
8585         * config.in, configure: Rebuild.
8586
8587 2010-03-10  Tom Tromey  <tromey@redhat.com>
8588
8589         * xcoffread.c (xcoff_start_psymtab): Update.
8590         (xcoff_end_psymtab): Update.
8591         * psymtab.c (allocate_psymtab): Remove dead code.
8592         * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8593         void*.
8594         * mdebugread.c (parse_partial_symbols): Update.
8595         (new_psymtab): Likewise.
8596         * dwarf2read.c (process_psymtab_comp_unit): Update.
8597         (psymtab_to_symtab_1): Update.
8598         * dbxread.c (start_psymtab): Update.
8599         (end_psymtab): Likewise.
8600
8601 2010-03-10  Tom Tromey  <tromey@redhat.com>
8602
8603         * xcoffread.c: Include psymtab.h.
8604         (xcoff_sym_fns): Update.
8605         * symtab.h (struct partial_symbol): Remove.
8606         (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8607         (struct partial_symtab): Remove.
8608         (PSYMTAB_TO_SYMTAB): Remove.
8609         (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8610         (find_pc_sect_psymtab): Remove.
8611         (find_pc_sect_symtab_via_partial): Declare.
8612         (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8613         (find_main_psymtab): Remove.
8614         (find_main_filename): Declare.
8615         (fixup_psymbol_section): Remove.
8616         (fixup_section): Declare.
8617         * symtab.c: Include psymtab.h.
8618         (lookup_symtab): Use lookup_symtab method.
8619         (lookup_partial_symtab): Remove.
8620         (find_pc_sect_psymtab_closer): Remove.
8621         (find_pc_sect_psymtab): Remove.
8622         (find_pc_sect_symtab_via_partial): New function.
8623         (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8624         (fixup_section): No longer static.
8625         (fixup_psymbol_section): Remove.
8626         (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8627         (lookup_global_symbol_from_objfile): Likewise.
8628         (lookup_symbol_aux_psymtabs): Remove.
8629         (lookup_symbol_aux_quick): New function.
8630         (lookup_symbol_global): Use lookup_symbol_aux_quick.
8631         (lookup_partial_symbol): Remove.
8632         (basic_lookup_transparent_type_quick): New function.
8633         (basic_lookup_transparent_type): Use it.
8634         (find_main_psymtab): Remove.
8635         (find_main_filename): New function.
8636         (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8637         (find_line_symtab): Use expand_symtabs_with_filename method.
8638         (output_partial_symbol_filename): New function.
8639         (sources_info): Use map_partial_symbol_filenames.
8640         (struct search_symbols_data): New type.
8641         (search_symbols_file_matches): New function.
8642         (search_symbols_name_matches): Likewise.
8643         (search_symbols): Use expand_symtabs_matching method.
8644         (struct add_name_data): Rename from add_macro_name_data.
8645         (add_macro_name): Update.
8646         (add_partial_symbol_name): New function.
8647         (default_make_symbol_completion_list): Use
8648         map_partial_symbol_names.
8649         (struct add_partial_symbol_name): New type.
8650         (maybe_add_partial_symtab_filename): New function.
8651         (make_source_files_completion_list): Use
8652         map_partial_symbol_filenames.
8653         (expand_line_sal): Use expand_symtabs_with_filename method.
8654         * symmisc.c: Include psymtab.h.
8655         (print_objfile_statistics): Use print_stats method.
8656         (dump_objfile): Use dump method.
8657         (dump_psymtab, maintenance_print_psymbols)
8658         (maintenance_info_psymtabs, maintenance_check_symtabs)
8659         (extend_psymbol_list): Remove.
8660         * symfile.h (struct quick_symbol_functions): New struct.
8661         (struct sym_fns) <qf>: New field.
8662         (sort_pst_symbols): Remove.
8663         (increment_reading_symtab): Declare.
8664         * symfile.c: Include psymtab.h.
8665         (compare_psymbols, sort_pst_symbols): Remove.
8666         (psymtab_to_symtab): Remove.
8667         (increment_reading_symtab): New function.
8668         (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8669         method.
8670         (set_initial_language): Use find_main_filename.
8671         (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8672         (free_named_symtabs): Remove unused code.
8673         (start_psymtab_common, add_psymbol_to_bcache)
8674         (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8675         Remove.
8676         * stack.c: Include psymtab.h, symfile.h.
8677         (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8678         * source.h (psymtab_to_fullname): Don't declare.
8679         * source.c: Include psymtab.h.
8680         (select_source_symtab): Use find_last_source_symtab method.
8681         (forget_cached_source_info): Use forget_cached_source_info
8682         method.
8683         (find_and_open_source): No longer static.
8684         (psymtab_to_fullname): Remove.
8685         * somread.c: Include psymtab.h.
8686         (som_sym_fns): Update.
8687         * psympriv.h: New file.
8688         * psymtab.h: New file.
8689         * psymtab.c: New file.
8690         * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8691         (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8692         * objfiles.c: Include psymtab.h.
8693         (objfile_relocate1): Use relocate method.
8694         (objfile_has_partial_symbols): Use has_symbols method.
8695         * mipsread.c: Include psymtab.h.
8696         (ecoff_sym_fns): Update.
8697         * mi/mi-cmd-file.c: Include psymtab.h.
8698         (print_partial_file_name): New function.
8699         (mi_cmd_file_list_exec_source_files): Use
8700         map_partial_symbol_filenames.
8701         * mdebugread.c: Include psympriv.h.
8702         * machoread.c: Include psympriv.h.
8703         (macho_sym_fns): Update.
8704         * m2-exp.y (yylex): Use lookup_symtab.
8705         * elfread.c: Include psympriv.h.
8706         (elf_sym_fns): Update.
8707         * dwarf2read.c: Include psympriv.h.
8708         * dbxread.c: Include psympriv.h.
8709         (aout_sym_fns): Update.
8710         * cp-support.c: Include psymtab.h.
8711         (read_in_psymtabs): Remove.
8712         (make_symbol_overload_list_qualified): Use
8713         expand_symtabs_for_function method.
8714         * coffread.c: Include psympriv.h.
8715         (coff_sym_fns): Update.
8716         * blockframe.c: Include psymtab.h.
8717         (find_pc_partial_function): Use find_pc_sect_symtab method.
8718         * ada-lang.h (ada_update_initial_language): Update.
8719         * ada-lang.c: Include psymtab.h.
8720         (ada_update_initial_language): Remove 'main_pst' argument.
8721         (ada_lookup_partial_symbol): Remove.
8722         (struct ada_psym_data): New type.
8723         (ada_add_psyms): New function.
8724         (ada_add_non_local_symbols): Use map_ada_symtabs method.
8725         (struct add_partial_datum): New type.
8726         (ada_add_partial_symbol_completions): New function.
8727         (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8728         (ada_exception_support_info_sniffer): Update.
8729         * Makefile.in (SFILES): Add psymtab.c.
8730         (COMMON_OBS): Add psymtab.o.
8731         (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8732
8733 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
8734
8735         * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8736
8737 2010-03-10  Sami Wagiaalla  <swagiaal@redhat.com>
8738
8739         PR C++/11236:
8740         * cp-namespace.c (cp_add_using): Deleted.
8741         (cp_add_using_directive): Use obstack allocations.
8742         Merged the function cp_add_using into this one.
8743         Added 'struct obstack *' argument.
8744         (cp_scan_for_anonymous_namespaces): Updated.
8745         * cp-support.h: Updated.
8746         * dwarf2read.c (read_import_statement): Updated.
8747         (read_namespace): Updated.
8748
8749 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
8750
8751         * windows-nat.c (cygwin_conv_path): Remove old macro.
8752
8753 2010-03-10  Pedro Alves  <pedro@codesourcery.com>
8754
8755         * breakpoint.c (condition_command): Handle watchpoint conditions.
8756         (is_hardware_watchpoint): Add comment.
8757         (is_watchpoint): New.
8758         (update_watchpoint): Don't reparse the watchpoint's condition
8759         unless necessary.
8760         (WP_IGNORE): New.
8761         (watchpoint_check): Use it.
8762         (bpstat_check_watchpoint): Handle it.
8763         (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8764         conditions in a frame where it makes sense.
8765         (watch_command_1): Store the innermost block of the condition
8766         expression.
8767         (delete_breakpoint): Delete the watchpoint condition expression.
8768         * breakpoint.h (struct bp_location) <cond>: Update comment.
8769         (struct breakpoint): New field `cond_exp_valid_block'.
8770
8771 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
8772
8773         Adjust handling of Ada DIEs after dwarf2_physname patch.
8774         * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8775
8776 2010-03-09  Christopher Faylor  <me+cygwin@cgf.cx>
8777             Pierre Muller  <muller@ics.u-strasbg.fr>
8778
8779         * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8780         from/to posix/win32.
8781         (windows_make_so): Use non-Cygwin 1.7 specific function.
8782         (windows_create_inferior): Make sure that cygallargs points to
8783         original args in non Cygwin 1.7. case.
8784
8785 2010-03-09  Michael Snyder  <msnyder@vmware.com>
8786
8787         * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8788         after target_read_memory to get host byte order.
8789         (i386_process_record): Ditto.
8790
8791 2010-03-09  Keith Seitz  <keiths@redhat.com>
8792
8793         Based on work from Daniel Jacobowitz  <dan@codesourcery.com>
8794         * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8795         print out const or volatile qualifiers, too.
8796         (c_type_print_args): Add parameters show_artificial and language.
8797         Skip artificial parameters when requested.
8798         Use the appropriate language printer.
8799         (c_type_print_varspec): Tell c_type_print_args to skip artificial
8800         parameters and pass language_c.
8801         * dwarf2read.c (die_list): New file global.
8802         (struct partial_die_info): Update comments for name field.
8803         (pdi_needs_namespace): Renamed to ...
8804         (die_needs_namespace): ... this. Rewrite.
8805         (dwarf2_linkage_name): Remove.
8806         (add_partial_symbol): Do not predicate the call to
8807         partial_die_full_name based on pdi_needs_namespace.
8808         Remove call to cp_check_possible_namespace_symbols and associated
8809         outdated comments.
8810         (guess_structure_name): Do not inspect child subprogram DIEs.
8811         (dwarf2_fullname): Update comments.
8812         Use die_needs_namespace to assist in computing the name.
8813         (read_func_scope): Use dwarf2_name to get the DIE's name.
8814         Use dwarf2_physname to get the "linkage name" of the DIE.
8815         (dwarf2_add_member_field): Use dwarf2_physname instead of
8816         dwarf2_linkage_name.
8817         (read_structure_type): For structs and classes, set TYPE_NAME, too.
8818         (determine_class): Remove.
8819         (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8820         except Ada.
8821         (new_symbol): Unconditionally call dwarf2_name.
8822         Compute the "linkage name" using dwarf2_physname.
8823         Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8824         When determining to scan for anonymous C++ namespaces, ignore
8825         the linkage name.
8826         (dwarf2_physname): New function.
8827         (dwarf2_full_name): Move content to new function and call
8828         that.
8829         (dwarf2_compute_name): "New" function.
8830         (_initialize_dwarf2_read): Initialize die_list.
8831         * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8832         physname.
8833         (gnu_v3_print_method_ptr): Use the physname for virtual methods
8834         without a demangled name.
8835         Print out type information for non-virtual methods.
8836         * linespec.c (decode_line_1): Force ANY string using "::" (or
8837         "." for java) to use decode_compound, and clean up any stray quoting.
8838         If we found a file symtab, re-evaluate whether the remainder is_quoted.
8839         (decode_compound): Stop consuming at an open parenthesis.
8840         Keep template parameters.
8841         Keep any overload information.
8842         Keep keywords like "const".
8843         Remove paren_pointer.
8844         Move is_quoted check from set_flags to here.
8845         Remove #if 0 code from 2000. Ten years is long enough.
8846         (find_method): Before comparing symbol names, canonicalize the string
8847         from the user.
8848         If a specific overload is requested, find it. Otherwise throw an error.
8849         (find_method_overload_end): New function.
8850         (set_flags): Remove.
8851         (decode_compound): Assume that parentheses are matched.
8852         It's a lot easier.
8853         * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8854         to cplus_demangle.
8855         * linespec.c (decode_line_1): Keep important keywords like
8856         "const" and "volatile".
8857         * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8858         * typeprint.h (c_type_print_args): Add declaration.
8859         * ui-file.c (do_ui_file_obsavestring): New function.
8860         (ui_file_obsavestring): New function.
8861         * ui-file.h (ui_file_obsavestring): Add declaration.
8862         * valops.c (find_overload_match): Resolve the object to
8863         a non-pointer type.
8864         If the object is a data member, search the object for the member
8865         and return with staticp set.
8866         Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8867         Do not attempt to extract a function name from non-function types.
8868         If the extracted function name and the original name are the same,
8869         we don't have a C++ method.
8870
8871         From Jan Kratochvil  <jan.kratochvil@redhat.com>:
8872         * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
8873
8874         * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8875         and arguments from symbol lookups.
8876         * ax-gdb.c (gen_expr): Likewise.
8877         * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8878         cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8879         lookup_possible_namespace_symbol): Likewise.
8880         * cp-support.c (read_in_psymtabs): Likewise.
8881         * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8882         * language.h (la_lookup_symbol_nonlocal): Likewise.
8883         * scm-valprint.c (scm_inferior_print): Likewise.
8884         * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8885         * solib-svr.c (elf_lookup_lib): Likewise.
8886         * solib.c (show_auto_solib_add): Likewise.
8887         * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8888         * symmisc.c (maintenance_check_symtabs): Likewise.
8889         * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8890         lookup_symbol_aux_local, lookup_symbol_aux_block,
8891         lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8892         lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8893         lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8894         basic_lookup_transparent_type, find_main_psymtab,
8895         lookup_block_symbol): Likewise.
8896         * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8897         lookup_symbol_global, lookup_symbol_aux_block,
8898         lookup_symbol_partial_symbol, lookup_block_symbol,
8899         lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8900
8901 2010-03-09  Pierre Muller  <muller@ics.u-strasbg.fr>
8902
8903         * python/python-internal.h: Include symtab.h.
8904
8905 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
8906             Pierre Muller  <muller@ics.u-strasbg.fr>
8907
8908         * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8909         * p-valprint.c (pascal_val_print): Remove undeed block and fix
8910         indentation.
8911
8912 2010-03-08  Tom Tromey  <tromey@redhat.com>
8913
8914         * breakpoint.c (breakpoint_1): Add "QUIT".
8915
8916 2010-03-08  Daniel Jacobowitz  <dan@codesourcery.com>
8917             Pedro Alves  <pedro@codesourcery.com>
8918
8919         * solib.c (solib_find): Replace extension if
8920         solib_symbols_extension is set in the target gdbarch.
8921         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8922         solib_symbols_extension to "sym".
8923         * gdbarch.sh (solib_symbols_extension): New variable.
8924         (pstring): New function.
8925         * gdbarch.h, gdbarch.c: Regenerate.
8926
8927 2010-03-08  Tom Tromey  <tromey@redhat.com>
8928
8929         PR cli/9591:
8930         * NEWS: Update.
8931         * utils.c: Include main.h.
8932         (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8933         (defaulted_query): Use default answer if `batch_flag'.
8934         * main.h (batch_flag): Declare.
8935         * main.c (batch_flag): New global.
8936         (captured_main): Remove 'batch'.  Update.
8937
8938 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
8939
8940         From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8941         and Kevin Buettner:
8942
8943         * remote-mips.c (rockhopper_ops): New target_ops struct.
8944         (MON_ROCKHOPPER): New mips_monitor_type.
8945         (read_hex_value): New function.
8946         (mips_request): Send 8-byte values with a 'T' packet.  Read the
8947         packet argument as a string and use read_hex_value to parse it.
8948         (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8949         (rockhopper_open): New function.
8950         (mips_wait): Read the PC, FP and SP fields as strings.  Use
8951         read_hex_value to parse them and mips_set_register to commit them.
8952         (mips_set_register): New function.
8953         (mips_fetch_registers): Do not cast register value to "unsigned"
8954         when reading a MON_ROCKHOPPER 't' packet.  Use mips_set_register.
8955         (mips_store_registers): Use a 'T' packet to set registers when
8956         using MON_ROCKHOPPER.
8957         (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8958         and expect the total to be printed before the entry address.
8959         (_initialize_remote_mips): Initialize and add rockhopper_ops.
8960
8961 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
8962
8963         * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8964         Change return value to int.  Store value fetched in location
8965         addressed by `val'.  Use function's return value as success
8966         or failure indicator.  Adjust all callers.
8967
8968 2010-03-08  Pierre Muller  <muller@ics.u-strasbg.fr>
8969
8970         * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8971
8972 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8973             Hui Zhu  <teawater@gmail.com>
8974
8975         * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8976         tmp_to_stopped_data_address.
8977         (record_open): Reset tmp_to_stopped_by_watchpoint and
8978         tmp_to_stopped_data_address.
8979         * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8980         to_stopped_data_address.
8981
8982 2010-03-08  Hui Zhu  <teawater@gmail.com>
8983
8984         * i386-tdep.c (i386_process_record): Initialize regnum.
8985
8986 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8987
8988         * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8989         Do not warn on ".gnu.liblist" and ".gnu.conflict".
8990
8991 2010-03-08  Joel Brobecker  <brobecker@adacore.com>
8992
8993         Memory error when reading wrong core file.
8994         * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8995         errors while reading the inferior memory, and return zero if
8996         an exception was raised.
8997
8998 2010-03-07  Michael Snyder  <msnyder@vmware.com>
8999
9000         * record.c (record_restore): Rename tmpu8 to rectype.
9001
9002         * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9003         tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9004
9005         (i386_record_push): Rename local tmpulongest to addr.
9006
9007         (i386_process_record): Rename local tmpulongest to addr.
9008
9009         Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9010         addr64.
9011
9012         Rename local variable tmpu8 to opcode8 and regnum.
9013
9014 2010-03-07  Joel Brobecker  <brobecker@adacore.com>
9015
9016         * remote.c (remote_get_ada_task_ptid): New function.
9017         (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
9018
9019 2010-03-06  Christopher Faylor  <me+cygwin@cgf.cx>
9020
9021         * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9022         block.  Define helper macros to reduce ifdefs in code.
9023         (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9024         size.  Call unadorned GetModuleFileNameEx rather than
9025         GetModuleFileNameEx*.
9026         (windows_make_so): Use __PMAX to denote maximum buffer size and
9027         cygwin_buf_t for buffer type.  Use GetSystemDirectory{W,A} as
9028         appropriate.
9029         (get_image_name): Use __PMAX to denote maximum buffer size.
9030         (handle_load_dll): Likewise.
9031         (windows_pid_to_exec_file): Likewise.
9032         (windows_create_inferior): Add many accommodations for older Cygwin and
9033         non-Cygwin.
9034         (bad_GetModuleFileNameExW): Control inclusion of this function based on
9035         __USEWIDE conditional.
9036         (bad_GetModuleFileNameExA): Likewise.
9037         (_initialize_loadable): Just use real function names without the dyn_
9038         part since they are defined earlier.
9039
9040 2010-03-05  Corinna Vinschen  <vinschen@redhat.com>
9041             Tom Tromey  <tromey@redhat.com>
9042
9043         * utils.c (host_char_to_target): Add 'gdbarch' argument.
9044         (parse_escape): Likewise.
9045         * python/py-utils.c (unicode_to_target_string): Update.
9046         (unicode_to_target_python_string): Update.
9047         (target_string_to_unicode): Update.
9048         * printcmd.c (printf_command): Update.
9049         * p-exp.y (yylex): Update.
9050         * objc-exp.y (yylex): Update.
9051         * mi/mi-parse.c: Include charset.h.
9052         (mi_parse_escape): New function.
9053         (mi_parse_argv): Use it.
9054         * jv-exp.y (yylex): Update.
9055         * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9056         function.
9057         (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9058         * gdbarch.sh (auto_charset, auto_wide_charset): New.
9059         * gdbarch.c: Rebuild.
9060         * gdbarch.h: Rebuild.
9061         * defs.h (parse_escape): Update.
9062         * cli/cli-setshow.c: Include arch-utils.h.
9063         (do_setshow_command): Update.
9064         * cli/cli-cmds.c (echo_command): Update.
9065         * charset.h (target_charset, target_wide_charset): Update.
9066         * charset.c: Include arch-utils.h.
9067         (target_charset_name): Default to "auto".
9068         (target_wide_charset_name): Likewise.
9069         (show_target_charset_name): Handle "auto".
9070         (show_target_wide_charset_name): Likewise.
9071         (be_le_arch): New global.
9072         (set_be_le_names): Add 'gdbarch' argument.
9073         (validate): Likewise.  Don't call set_be_le_names.
9074         (set_charset_sfunc, set_host_charset_sfunc)
9075         (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9076         Update.
9077         (target_charset): Add 'gdbarch' argument.
9078         (target_wide_charset): Likewise.  Remove 'byte_order' argument.
9079         (auto_target_charset_name): New global.
9080         (default_auto_charset, default_auto_wide_charset): New functions.
9081         (_initialize_charset): Set auto_target_charset_name.  Allow "auto"
9082         for target charsets.  Copy result of nl_langinfo.  Use GetACP if
9083         USE_WIN32API.
9084         * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9085         remove 'byte_order' argument.  Update.
9086         (classify_type): Likewise.
9087         (c_emit_char): Update.
9088         (c_printchar): Update.
9089         (c_printstr): Update.
9090         (c_get_string): Update.
9091         (evaluate_subexp_c): Update.
9092         * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9093         Declare.
9094         * python/python.c (gdbpy_target_charset): New function.
9095         (gdbpy_target_wide_charset): Likewise.
9096         (GdbMethods): Update.
9097         * NEWS: Update.
9098
9099 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
9100
9101         * symfile.c (build_section_addr_info_from_objfile): Do not mask
9102         off high address bits.
9103
9104 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
9105
9106         * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9107         address as UnsignedLongLong, not LongLong.
9108
9109 2010-03-05  Kevin Buettner  <kevinb@redhat.com>
9110             Pedro Alves  <pedro@codesourcery.com>
9111
9112         * remote-mips.c (gdbthread.h): Include.
9113         (remote_mips_ptid): Declare.
9114         (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9115         (common_open): Set inferior_ptid, add it as an inferior, and
9116         as a thread too.  Delete FIXME comment regarding start_remote().
9117         (mips_close): Invoke generic_mourn_inferior().
9118         (mips_kill): Make sure that target_mourn_inferior is invoked.
9119         (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9120         it's now invoked from mips_close().
9121         (mips_load): Don't null out inferior_ptid.  Don't call
9122         clear_symtab_users().
9123         (mips_thread_alive, mips_pid_to_str): New functions.
9124         (_initialize_remote_mips): Initialize remote_mips_ptid.  Initialize
9125         to_thread_alive and to_pid_to_str operations.
9126
9127 2010-03-04  Tom Tromey  <tromey@redhat.com>
9128
9129         * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9130         in DWARF 3 and later.
9131         (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9132
9133 2010-03-04  Keith Seitz  <keiths@redhat.com>
9134
9135         * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9136         If the filename portion of the linespec was quoted, recheck the
9137         remainder for additional quoting.
9138         (locate_first_half): Skip over completer chars, too.
9139
9140 2010-03-04  Tom Tromey  <tromey@redhat.com>
9141
9142         * printcmd.c (printf_command): Pass dummy argument to
9143         printf_filtered.
9144
9145 2010-03-04  Doug Evans  <dje@google.com>
9146
9147         * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9148         unwound_fp.
9149
9150         * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9151
9152 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
9153
9154         * breakpoint.c (update_watchpoint): Create a sentinel location if
9155         the software watchpoint isn't watching any memory.
9156         (breakpoint_address_bits): Skip dummy software watchpoint locations.
9157
9158 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
9159
9160         * utils.c (fputs_maybe_filtered): Check if there's already a top
9161         level interpreter before dereferencing it.  If there isn't one,
9162         don't paginate either.
9163
9164 2010-03-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
9165
9166         * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9167         the state right when single stepping.
9168         (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9169         Get the next PC along with the instruction state.
9170         (thumb_get_next_pc): Remove.
9171         (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9172
9173 2010-03-04  Hui Zhu  <teawater@gmail.com>
9174
9175         * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9176
9177 2010-03-03  Pedro Alves  <pedro@codesourcery.com>
9178
9179         * utils.c (fputs_maybe_filtered): Always disable pagination if the
9180         top level interpreter is MI.
9181
9182 2010-03-03 Stan Shebs  <stan@codesourcery.com>
9183
9184         * remote.c (remote_download_tracepoint): Iterate over locations.
9185         * tracepoint.c (validate_actionline): Ditto.
9186         (encode_actions): Add location argument.
9187         (trace_dump_command): Check all locations to see if stepping
9188         frame.
9189
9190 2010-03-03  H.J. Lu  <hongjiu.lu@intel.com>
9191             Eli Zaretskii  <eliz@gnu.org>
9192
9193         * NEWS: Add X86 general purpose registers section.
9194
9195 2010-03-03  Tom Tromey  <tromey@redhat.com>
9196
9197         PR mi/11098:
9198         * varobj.c (install_new_value): Handle case where new print_value
9199         is NULL.
9200
9201 2010-03-03  Dainis Jonitis  <jonitis@gmail.com>
9202
9203         PR gdb/11345:
9204         * printcmd.c (printf_command): Print end of format string using
9205         printf_filtered.
9206
9207 2010-03-02  Tom Tromey  <tromey@redhat.com>
9208
9209         * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9210         * defs.h (read_command_lines_1): Add missing 'void'.
9211         * cli/cli-script.c (recurse_read_control_structure): Add missing
9212         'void'.
9213         (read_next_line): Likewise.
9214         (read_command_lines_1): Likewise.
9215
9216 2010-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
9217
9218         * spu-tdep.c (spu_analyze_prologue): Track instruction to
9219         store backchain as part of prologue.
9220
9221 2010-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
9222
9223         * progspace.c (update_address_spaces): Update inferior address spaces
9224         also.
9225
9226 2010-03-02  Doug Evans  <dje@google.com>
9227
9228         * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9229         lowpc,highpc args to addrmap_set_empty.
9230
9231 2010-03-02  H.J. Lu  <hongjiu.lu@intel.com>
9232
9233         * amd64-tdep.c (amd64_byte_names): New.
9234         (amd64_word_names): Likewise.
9235         (amd64_dword_names): Likewise.
9236         (amd64_pseudo_register_name): Likewise.
9237         (amd64_pseudo_register_read): Likewise.
9238         (amd64_pseudo_register_write): Likewise.
9239         (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9240         and num_mmx_regs.  Call set_gdbarch_pseudo_register_read,
9241         set_gdbarch_pseudo_register_write and
9242         set_tdesc_pseudo_register_name.  Don't call
9243         set_gdbarch_num_pseudo_regs.  Don't set mm0_regnum.
9244
9245         * i386-tdep.c (i386_num_mmx_regs): Removed.
9246         (i386_num_pseudo_regs): Likewise.
9247         (i386_byte_names): New.
9248         (i386_word_names): Likewise.
9249         (i386_byte_regnum_p): Likewise.
9250         (i386_word_regnum_p): Likewise.
9251         (i386_mmx_regnum_p): Updated.
9252         (i386_pseudo_register_name): Make it global.  Handle byte and
9253         word pseudo-registers.
9254         (i386_pseudo_register_read): Likewise.
9255         (i386_pseudo_register_write): Likewise.
9256         (i386_pseudo_register_type): Handle byte, word and dword
9257         pseudo-registers
9258         (i386_register_reggroup_p): Don't include pseudo
9259         registers, except for MXX, in any register groups.  Don't
9260         include pseudo byte, word, dword registers in general_reggroup.
9261         (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9262         num_dword_regs, al_regnum, ax_regnum and eax_regnum.  Put MMX
9263         pseudo-registers after word pseudo-registers.  Call
9264         set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9265
9266         * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9267         al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9268         eax_regnum.
9269         (i386_byte_regnum_p): New.
9270         (i386_word_regnum_p): Likewise.
9271         (i386_dword_regnum_p): Likewise.
9272         (i386_pseudo_register_name): Likewise.
9273         (i386_pseudo_register_read): Likewise.
9274         (i386_pseudo_register_write): Likewise.
9275
9276 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
9277
9278         * target-descriptions.c (tdesc_type): Remove
9279         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9280         (tdesc_predefined_types): Likewise.
9281         (tdesc_gdb_type): Likewise.  Pass NULL to append_flags_type_flag
9282         if flag name is empty.
9283         (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9284
9285         * features/i386/32bit-core.xml: Define i386_eflags.
9286         * features/i386/64bit-core.xml: Likewise.
9287
9288         * features/i386/32bit-sse.xml: Define i386_mxcsr.
9289         * features/i386/64bit-sse.xml: Likewise.
9290
9291         * features/i386/amd64-linux.c: Regenerated.
9292         * features/i386/amd64.c: Likewise.
9293         * features/i386/i386-linux.c: Likewise.
9294         * features/i386/i386.c: Likewise.
9295
9296 2010-03-01  Daniel Jacobowitz  <dan@codesourcery.com>
9297
9298         * gdbtypes.c (append_composite_type_field_raw): New.
9299         (append_composite_type_field_aligned): Use the new function.
9300         * gdbtypes.h (append_composite_type_field_raw): Declare.
9301         * target-descriptions.c (struct tdesc_type_field): Add start and end.
9302         (struct tdesc_type_flag): New type.
9303         (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9304         kind.  Add size to u.u.  Add u.f for flags.
9305         (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9306         (tdesc_free_type): Likewise.
9307         (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9308         (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9309         (tdesc_add_bitfield, tdesc_add_flag): New.
9310         * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9311         (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9312         * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9313         current_type.  Add current_type_size and current_type_is_flags.
9314         (tdesc_start_union): Clear the new fields.
9315         (tdesc_start_struct, tdesc_start_flags): New.
9316         (tdesc_start_field): Handle struct fields, including bitfields.
9317         (field_attributes): Make type optional.  Add start and end.
9318         (union_children): Rename to struct_union_children.
9319         (union_attributes): Rename to struct_union_attributes.  Add optional
9320         size.
9321         (flags_attributes): New.
9322         (feature_children): Add struct and flags.
9323         * features/gdb-target.dtd: Add flags and struct to features.
9324         Make field type optional.  Add field start and end.
9325
9326 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
9327
9328         * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9329         (amd64_linux_read_description): Likewise.
9330         (_initialize_amd64_linux_nat): Set to_read_description to
9331         amd64_linux_read_description.
9332
9333         * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9334         (amd64_linux_register_name): Removed.
9335         (amd64_linux_register_type): Likewise.
9336         (amd64_linux_core_read_description): New.
9337         (amd64_linux_init_abi): Set target description to
9338         tdesc_amd64_linux if needed.  Support orig_rax in target
9339         description.  Don't call set_gdbarch_register_name nor
9340         set_gdbarch_register_type.  Call
9341         set_gdbarch_core_read_description.
9342         (_initialize_amd64_linux_tdep): Call
9343         initialize_tdesc_amd64_linux.
9344
9345         * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9346
9347         * amd64-tdep.c:  Include "features/i386/amd64.c".
9348         (amd64_register_names): Removed.
9349         (amd64_register_name): Likewise.
9350         (amd64_register_type): Likewise.
9351         (amd64_init_abi):  Set num_core_regs and register_names.  Set
9352         target description to tdesc_amd64 if needed.  Don't call
9353         set_gdbarch_register_name nor set_gdbarch_register_type.
9354         (_initialize_amd64_tdep): New.
9355
9356         * i386-linux-nat.c (i386_linux_read_description): New.
9357         (_initialize_i386_linux_nat): Set to_read_description to
9358         i386_linux_read_description.
9359
9360         * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9361         (i386_linux_register_name): Removed.
9362         (i386_linux_core_read_description): New.
9363         (i386_linux_read_description): Likewise.
9364         (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9365         Set target description to tdesc_i386_linux if needed.  Support
9366         orig_eax.  Set register_reggroup_p.  Call
9367         set_gdbarch_core_read_description.
9368         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9369
9370         * i386-linux-tdep.h (tdesc_i386_linux): New.
9371
9372         * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9373         with I387_NUM_REGS.
9374
9375         * i386-tdep.c: Include "features/i386/i386.c".
9376         (i386_register_names): Make it const.
9377         (i386_mmx_names): Likewise.
9378         (i386_num_register_names): Removed.
9379         (i386_register_name): Likewise.
9380         (i386_eflags_type): Likewise.
9381         (i386_mxcsr_type): Likewise.
9382         (i386_sse_type): Likewise.
9383         (i386_register_type): Likewise.
9384         (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9385         (i386_pseudo_register_name): New.
9386         (i386_pseudo_register_type): Likewise.
9387         (i386_mmx_type): Make it static.
9388         (i386_gdbarch_init): Check arch.  Replace I386_NUM_FREGS with
9389         I387_NUM_REGS.  Set num_core_regs and register_names.  Don't
9390         call set_gdbarch_register_name nor set_gdbarch_register_type.
9391         Set register_reggroup_p.  Set target description to tdesc_i386
9392         if needed.  Call set_tdesc_pseudo_register_type,
9393         set_tdesc_pseudo_register_name and tdesc_use_registers.
9394         (_initialize_i386_tdep): Call initialize_tdesc_i386.
9395         initialize_tdesc_x86_64.
9396
9397         * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9398         i386_mxcsr_type and i386_sse_type.  Add num_core_regs,
9399         register_names, tdesc and register_reggroup_p.
9400         (I386_NUM_FREGS): Removed.
9401         (i386_eflags_type): Likewise.
9402         (i386_mxcsr_type): Likewise.
9403         (i386_mmx_type): Likewise.
9404         (i386_sse_type): Likewise.
9405         (i386_register_name): Likewise.
9406         (i386_regnum): Add I386_MXCSR_REGNUM.
9407         (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9408
9409         * i387-tdep.h (I387_NUM_REGS): New.
9410
9411         * regformats/i386/i386-linux.dat: Generated.
9412         * regformats/i386/i386.dat: Likewise.
9413         * regformats/i386/amd64-linux.dat: Likewise.
9414         * regformats/i386/amd64.dat: Likewise.
9415
9416         * regformats/reg-i386-linux.dat: Removed.
9417         * regformats/reg-i386.dat: Likewise.
9418         * regformats/reg-x86-64-linux.dat: Likewise.
9419         * regformats/reg-x86-64.dat: Likewise.
9420
9421 2010-03-01  Corinna Vinschen  <vinschen@redhat.com>
9422
9423         * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9424         cygwin_conv_path API rather than the deprecated
9425         cygwin_conv_to_full_posix_path.
9426         * windows-nat.c:
9427         (GetModuleFileNameExA): Undefine for Cygwin.
9428         (GetModuleFileNameExW): Define for Cygwin.
9429         (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9430         Call GetModuleFileNameExW and convert path to POSIX using
9431         cygwin_conv_path.
9432         (windows_make_so): Always define p.  Drop unused variable m.
9433         Don't use Win32 functions to check file existance, rather use
9434         access on Cygwin.  Fetch system directory using GetSystemDirectoryW.
9435         Use canonicalize_file_name to get full path.
9436         (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9437         to convert Unicode pathname to multibyte on Cygwin.  Otherwise,
9438         use correct target buffer size in call to WideCharToMultiByte.
9439         (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9440         (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9441         (windows_create_inferior): Convert all paths and arguments to wchar_t
9442         and use CreateProcessW on Cygwin.
9443         (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9444         (bad_GetModuleFileNameExA): Undefine for Cygwin.
9445         (bad_GetModuleFileNameExW): Define for Cygwin.
9446         (_initialize_loadable): Load GetModuleFileNameExW into
9447         dyn_GetModuleFileNameExW on Cygwin.  Don't load ANSI function on Cygwin.
9448
9449 2010-02-28  Phil Muldoon  <pmuldoon@redhat.com>
9450
9451         PR python/11036
9452         * python/py-frame.c (frapy_read_var): Add block argument and logic
9453         to cope with user provided blocks.
9454
9455 2010-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9456
9457         * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9458         New comment.
9459
9460 2010-02-28  Corinna Vinschen  <vinschen@redhat.com>
9461
9462         * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9463         (COMMON_OBS): ... to here since it's used unconditionally.
9464         (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9465         (SFILES): To here.
9466
9467 2010-02-26  David Daney  <ddaney@caviumnetworks.com>
9468
9469         * mips-linux-tdep.c: Update struct sigframe comments.
9470         (SIGFRAME_CODE_OFFSET): Delete macro.
9471         (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9472         this_frame's sp.
9473         (mips_linux_n32n64_sigframe_init): Same.
9474
9475 2010-02-26  Kevin Buettner  <kevinb@redhat.com>
9476
9477         * remote-mips.c (mips_load): Don't use pseudo-register when
9478         invalidating regcache.
9479
9480 2010-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
9481
9482         * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9483
9484 2010-02-26  Pedro Alves  <pedro@codesourcery.com>
9485
9486         * NEWS: Add "New targets" section, and mention ARM Symbian
9487         support.
9488
9489 2010-02-26  Ulrich Weigand  <uweigand@de.ibm.com>
9490
9491         * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9492         add ADDR_SIZE member.
9493         (allocate_piece_closure): Update.
9494         (copy_pieced_value_closure): Likewise.
9495         (dwarf2_evaluate_loc_desc): Likewise.
9496         (read_pieced_value): Use DWARF address size instead of
9497         GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9498
9499 2010-02-26  Phil Muldoon  <pmuldoon@redhat.com>
9500             Tom Tromey  <tromey@redhat.com>
9501
9502         * python/py-type.c (typy_lookup_typename): Add in block argument.
9503         If provided restrict lookup to specified blocks.
9504         (gdbpy_lookup_type): Likewise.
9505         (typy_lookup_type): Likewise.
9506
9507 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
9508
9509         Symbian config
9510
9511         gdb/
9512         * arm-symbian-tdep.c: New.
9513         * configure.tgt (arm*-*-symbianelf*): New target.
9514         (*-*-symbianelf*): New OS.
9515         * osabi.c (gdb_osabi_names): Add Symbian.
9516         * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9517         * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9518         (ALLDEPFILES): Add arm-symbian-tdep.c.
9519
9520 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
9521
9522         * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9523
9524 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9525
9526         * mi/mi-main.c (mi_cmd_execute): Fix typo.
9527
9528 2010-02-24  Phil Muldoon  <pmuldoon@redhat.com>
9529             Tom Tromey  <tromey@redhat.com>
9530             Thiago Jung Bauermann  <bauerman@br.ibm.com>
9531
9532         * python/python.c (_initialize_python): Call
9533         gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9534         gdbpy_initialize_blocks.
9535         * python/python-internal.h: Declare struct symbol, block and
9536         symtab_and_line.  Declare block_object_type and
9537         symbol_object_type
9538         (gdbpy_lookup_symbol gdbpy_block_for_pc)
9539         (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9540         (symbol_to_symbol_object,  block_to_block_object)
9541         (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9542         (gdbpy_initialize_blocks ): Declare.
9543         * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9544         (frapy_select): Add methods.
9545         (frapy_read_var): Add symbol branch.
9546         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9547         py-block.
9548         (SUBDIR_PYTHON_SRCS): Likewise.
9549         (py-symbol.o): New rule.
9550         (py-symtab.o): Likewise.
9551         (py-block.o): Likewise.
9552         * python/py-symbol.c: New file.
9553         * python/py-symtab.c: Likewise.
9554         * python/py-block.c: Likewise.
9555
9556 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9557
9558         PR gdb/11321
9559
9560         * inferior.h (prepare_for_detach): Declare.
9561         (struct inferior) <detaching>: New field.
9562         * infrun.c (prepare_for_detach): New.
9563         (handle_inferior_event) <random signal>: Don't stop if detaching.
9564         * target.c (target_detach): Call prepare_for_detach.
9565
9566 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9567
9568         Per-process displaced stepping queue.
9569
9570         * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9571         (displaced_step_gdbarch, displaced_step_closure,
9572         (displaced_step_original, displaced_step_copy): Move globals to
9573         this...
9574         (struct displaced_step_inferior_state): ... new structure.
9575         (displaced_step_inferior_states): New global.
9576         (get_displaced_stepping_state, add_displaced_stepping_state)
9577         (remove_displaced_stepping_state, infrun_inferior_exit): New
9578         functions.
9579         (displaced_step_clear): Add displaced_step_inferior_state
9580         parameter, and adjust to handle it.
9581         (displaced_step_clear_cleanup): Parameter is now a
9582         displaced_step_inferior_state.  Adjust.
9583         (displaced_step_prepare): Adjust.
9584         (displaced_step_fixup, displaced_step_fixup)
9585         (infrun_thread_ptid_changed, resume): Adjust.
9586         (init_wait_for_inferior): Don't call displaced_step_clear.
9587         (infrun_thread_stop_requested): Rewrite.
9588         (_initialize_infrun): Install infrun_inferior_exit as
9589         inferior_exit observer.
9590
9591 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9592
9593         * inferior.h (ptid_match): Declare.
9594         * infrun.c (ptid_match): New.
9595         * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9596         (handle_notification): Add debug output.
9597         * linux-nat.c (ptid_match): Delete.
9598
9599 2010-02-24  David S. Miller  <davem@davemloft.net>
9600
9601         * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9602         * syscalls/sparc-linux.xml: New.
9603         * syscalls/sparc64-linux.xml: New.
9604         * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9605         * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9606         (sparc32_linux_get_syscall_number): New function.
9607         (sparc32_linux_init_abi): Set syscall XML file name and hook up
9608         syscall number fetcher.
9609         * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9610         (sparc64_linux_get_syscall_number): New function.
9611         (sparc64_linux_init_abi): Set syscall XML file name and hook up
9612         syscall number fetcher.
9613
9614 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
9615
9616         Multiexec MI
9617
9618         * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9619         * inferior.c (add_inferior_silent): Notify inferior_added
9620         observer.
9621         (delete_inferior_1): Notify inferior_removed observer.
9622         (exit_inferior_1): Pass inferior, not pid, to observer.
9623         (inferior_appeared): Likewise.
9624         (add_inferior_with_spaces): New.
9625         (add_inferior_command): Use the above.
9626         * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9627         Declare.
9628
9629         * inflow.c (inflow_inferior_exit): Likewise.
9630         * jit.c (jit_inferior_exit_hook): Likewise.
9631
9632         * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9633         remove-inferior.
9634         * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9635         * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9636         (report_initial_inferior): New.
9637         (mi_inferior_removed): Register the above. Make sure
9638         inferior_added observer is called on the first inferior.
9639         (mi_new_thread, mi_thread_exit): Thread group is now identified by
9640         inferior number, not pid.
9641         (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9642         affected.
9643         * mi/mi-main.c (current_context): New.
9644         (proceed_thread_callback): Use typed closure.
9645         Proceed everything if pid is 0. Most implementation split into
9646         (proceed_thread): ... this.
9647         (run_one_inferior): New.
9648         (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9649         Adjust for multiexec behaviour.
9650         (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9651         (mi_cmd_execute): Handle the 'thread-group' option here.
9652         Do some extra checks.
9653         * mi-parse.c (mi_parse): Handle the --all and --thread-group
9654         options.
9655         * mi-parse.h (struct mi_parse): New fields all and thread_group.
9656
9657 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
9658
9659         Make -exec-run a proper MI commands.
9660
9661         * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9662         * mi/mi-cmds.c (mi_cmds): Adjust.
9663         * mi/mi-main.c (mi_cmd_exec_run): New.
9664
9665 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9666             Stan Shebs  <stan@codesourcery.com>
9667
9668         * tracepoint.h (set_traceframe_number)
9669         (cleanup_restore_current_traceframe): Declare.
9670         * tracepoint.c (set_traceframe_number): New.
9671         (struct current_traceframe_cleanup): New.
9672         (do_restore_current_traceframe_cleanup)
9673         (restore_current_traceframe_cleanup_dtor)
9674         (make_cleanup_restore_current_traceframe): New.
9675         * infrun.c: Include tracepoint.h.
9676         (fetch_inferior_event): Switch out and in of tfind mode.
9677
9678 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9679
9680         * breakpoint.c (breakpoint_init_inferior): Also delete
9681         bp_shlib_event breakpoints.
9682         * solib-frv.c (enable_break): Remove call to
9683         remove_solib_event_breakpoints.
9684         * solib-svr4.c (enable_break): Ditto.
9685         * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9686         * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9687         * solib-som.c (som_solib_create_inferior_hook): Ditto.
9688         * solib-spu.c (spu_enable_break): Ditto.
9689
9690 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
9691
9692         * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9693
9694 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
9695
9696         * varobj.c (varobj_update): Avoid non-constants in initializers.
9697
9698 2010-02-23  Tom Tromey  <tromey@redhat.com>
9699
9700         * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9701         handle big-endian values.
9702         (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9703
9704 2010-02-22  Pedro Alves  <pedro@codesourcery.com>
9705
9706         PR9605
9707
9708         gdb/
9709         * breakpoint.c (insert_bp_location): If inserting the read
9710         watchpoint failed, fallback to an access watchpoint.
9711         (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9712         if the value changed, if not watching the same memory for writes.
9713         (watchpoint_locations_match): Add comment.
9714         (update_global_location_list): Copy the location's watchpoint type.
9715         * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9716         handle read watchpoints here.
9717         (i386_insert_watchpoint): Read watchpoints aren't supported.
9718         * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9719         packets.
9720         * target.h (target_insert_watchpoint): Update description.
9721
9722 2010-02-19  Tom Tromey  <tromey@redhat.com>
9723
9724         * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9725         * m2-typeprint.c (m2_print_type): Update.
9726         * gdbtypes.c (recursive_dump_type): Update.
9727         (copy_type_recursive): Update.
9728         * c-typeprint.c (c_type_print_varspec_prefix): Update.
9729         (c_type_print_base): Update.
9730         * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9731         Remove.
9732         (struct cplus_struct_type) <ntemplate_args>: Remove.
9733         <struct template_arg>: Remove.
9734         <is_dynamic>: Move earlier.
9735         (TYPE_TEMPLATE_ARGS): Remove.
9736         (TYPE_NTEMPLATE_ARGS): Remove.
9737         (TYPE_TEMPLATE_ARG): Remove.
9738
9739 2010-02-19  Tom Tromey  <tromey@redhat.com>
9740
9741         PR c++/8693, PR c++/9496:
9742         * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9743         * c-exp.y (lex_one_token): Rename from yylex.  Don't call
9744         write_dollar_variable.  Don't try to classify NAME tokens.
9745         (token_and_value): New type.
9746         (token_fifo, popping, name_obstack): New globals.
9747         (classify_name): New function.
9748         (classify_inner_name): Likewise.
9749         (yylex): Likewise.
9750         (VARIABLE): Now has type sval.
9751         (exp : VARIABLE): Call write_dollar_variable.
9752         (qualified_name): Use TYPENAME, not typebase.  Add production for
9753         multiple "::" instances.
9754         (variable): Use name_not_typename.
9755         (qualified_type): Remove.
9756         (typebase): Update.
9757
9758 2010-02-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9759
9760         * symfile.c (addr_info_make_relative): Extend comment.  Move SECT to
9761         a more inner block.  Initialize ADDR by LOWER_OFFSET only if it was
9762         found by bfd_get_section_by_name.
9763         * symfile.h (struct section_addr_info) <sectindex>: New comment.
9764
9765 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
9766
9767         * NEWS: Add new "[...] since 7.1" section.  Rename the "[...] since
9768         7.0 section" into "Changes in 7.1".
9769
9770 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
9771
9772         GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9773         * version.in: Bump version to 7.1.50.20100219-cvs.
9774
9775 2010-02-18  Harald Koenig  <H.Koenig@science-computing.de>
9776
9777         * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9778         * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9779
9780 2010-02-17  Tom Tromey  <tromey@redhat.com>
9781
9782         * NEWS: Add Python API Improvements section.
9783
9784 2010-02-18  Daniel Jacobowitz  <dan@codesourcery.com>
9785
9786         * NEWS: Correct typo.
9787
9788 2010-02-17  Tom Tromey  <tromey@redhat.com>
9789
9790         * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9791
9792 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9793
9794         * symfile.c (build_section_addr_info_from_objfile): Include sections
9795         only if they are SEC_ALLOC or SEC_LOAD.
9796
9797 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
9798
9799         PR shlibs/11293
9800         * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9801         of ULONGEST for address size.
9802
9803 2010-02-17  Tom Tromey  <tromey@redhat.com>
9804
9805         * NEWS: Add C++ improvements section.
9806
9807 2010-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
9808
9809         * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9810         PyThreadState_Swap): Avoid "statement with no effect" warning.
9811
9812 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9813
9814         * solib-svr4.c (enable_break <target_auxv_search>): New variable
9815         addr_bit.  Adjust LOAD_ADDR sign for cross-arch inferiors.
9816
9817 2010-02-17  Tristan Gingold  <gingold@adacore.com>
9818             Petr Hluzin  <petr.hluzin@gmail.com>
9819
9820         * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9821         gdb_assert.  Fix info->size for SIG prologue.
9822
9823 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9824
9825         * infcmd.c (show_inferior_tty_command): Check for NULL.
9826         Correct output message.
9827
9828 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9829
9830         * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9831         FUNCTION contains parentheses.  Improve removal of a trailing
9832         single quote.
9833
9834 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9835
9836         * gcore.c (do_bfd_delete_cleanup): New function.
9837         (gcore_command): Use it.  Discard the cleanup after success.
9838         (gcore_copy_callback): Delete dead code.
9839
9840 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9841
9842         * symfile.c (addr_info_make_relative): Always use
9843         find_lowest_section.
9844
9845 2010-02-16  Sami Wagiaalla <swagiaal@redhat.com>
9846
9847         * NEWS: Added entry for namespace fixes.
9848
9849 2010-02-15  Tom Tromey  <tromey@redhat.com>
9850
9851         * dwarf2read.c (guess_structure_name): Allocate name on the
9852         objfile obstack.
9853
9854 2010-02-15  Tom Tromey  <tromey@redhat.com>
9855
9856         * c-typeprint.c (c_type_print_base): Reverse order of test.
9857
9858 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9859
9860         * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize.  Optionally
9861         initialize it from ELF BFD.  Extend the prelink condition by it.
9862
9863 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9864
9865         * defs.h (parse_pid_to_attach): New.
9866         * utils.c (parse_pid_to_attach): New.
9867         * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9868         * gnu-nat.c (gnu_attach): Likewise.
9869         * nto-procfs.c (procfs_attach): Likewise.
9870         * procfs.c (procfs_attach): Likewise.
9871         * windows-nat.c (windows_attach): Likewise.
9872         * inf-ptrace.c (inf_ptrace_attach): Likewise.  Remove variable dummy.
9873         * inf-ttrace.c (inf_ttrace_attach): Likewise.
9874         * remote.c (extended_remote_attach_1): Likewise.  New comment on getpid
9875         check.
9876
9877 2010-02-14  Masaki Muranaka  <monaka@monami-software.com>
9878
9879         * MAINTAINERS: Add myself for write after approval privileges.
9880
9881 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9882
9883         * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9884         block.
9885
9886 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9887
9888         * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9889         only if INFO_VERBOSE.
9890
9891 2010-02-12  Tomas Holmberg <th@virtutech.com>
9892
9893         * mi/mi-main.c: Added the --reverse flag to the following MI
9894         commands: exec-continue, exec-finish, exec-next, exec-step,
9895         exec-next-instruction, exec-step-instruction. This is to
9896         support reverse execution over the MI interface to gdb.
9897
9898 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
9899
9900         * tracepoint.c (_initialize_tracepoint): Specify that the address
9901         range of `tfind outsize' is exclusive, and that the address range
9902         of `tfind range' is inclusive, in the commands' help strings.
9903
9904 2010-02-12  Joel Brobecker  <brobecker@adacore.com>
9905
9906         Spurious "dll not found" error messages on x64-windows.
9907         * windows-nat.c: Add include of complaints.h.
9908         (handle_unload_dll): Change dll-not-found error into a complaint.
9909
9910 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
9911
9912         * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9913         bp_tracepoint and bp_fast_tracepoint, not
9914         bp_loc_software_breakpoint.
9915         (update_global_location_list): Tracepoints are never duplicates of
9916         anything.
9917
9918 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
9919
9920         * breakpoint.c (break_command_really): Change return type to int.
9921         Return false if no breakpoint was created, true otherwise.
9922         (trace_command): Don't set the tracepoint count if no tracepoint
9923         was created.
9924         (ftrace_command): Ditto.
9925         (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9926         created in the breakpoints table.
9927
9928 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9929             Ulrich Weigand  <uweigand@de.ibm.com>
9930
9931         * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9932
9933 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9934
9935         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9936         the offset value isn't of integral type.
9937
9938 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9939
9940         * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9941         New.
9942
9943 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9944
9945         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9946         non-subscriptable types.
9947         * valarith.c (binop_types_user_defined_p): New, abstracted out
9948         from ...
9949         (binop_user_defined_p): ... this.
9950         * value.h (binop_types_user_defined_p): Declare.
9951
9952 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9953
9954         * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9955         Merge uploaded TSVs before merging uploaded tracepoints.
9956
9957 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9958
9959         * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9960
9961 2010-02-11  Vladimir Prus  <vladimir@codesourcery.com>
9962
9963         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9964         whitespace character after a dot in comment.
9965         (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9966         Likewise.
9967         (list_args_or_locals): For the 'all' (that is
9968         -stack-list-variables) case, always output list of tuples.
9969         Output 'arg' field if variable is argument.
9970
9971 2010-02-10  Tom Tromey  <tromey@redhat.com>
9972
9973         * parser-defs.h (parser_debug): Declare.
9974         * parse.c (_initialize_parse): Install "debug parser" set/show
9975         command.
9976         (parser_debug): New global.
9977         (show_parserdebug): New function.
9978         * c-exp.y (c_parse): Set yydebug.
9979
9980 2010-02-10  H.J. Lu  <hongjiu.lu@intel.com>
9981
9982         * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9983         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9984         (tdesc_predefined_types): Add i387_ext, i386_eflags and
9985         i386_mxcsr.
9986         (tdesc_find_type): New.
9987         (tdesc_gdb_type): Use tdesc_find_type.  Handle TDESC_TYPE_I387_EXT,
9988         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9989
9990         * target-descriptions.h (tdesc_find_type): New.
9991
9992 2010-02-10  Michael Snyder  <msnyder@vmware.com>
9993
9994         * gdb-gdb.py: Comment fix.
9995
9996 2010-02-09  Tristan Gingold  <gingold@adacore.com>
9997
9998         * machoread.c (macho_symfile_relocate): New function.
9999         (macho_sym_fns): Use macho_symfile_relocate instead of
10000         default_symfile_relocate.
10001         (macho_oso_data): New type.
10002         (current_oso): New variable.
10003         (macho_add_oso_symfile): Do not compute section_addr_info, but
10004         instead set vma of sections.
10005         Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10006         Set and clear current_oso.
10007
10008 2010-02-09  Joel Brobecker  <brobecker@adacore.com>
10009
10010         Wrong type description for tagged type parameter.
10011         * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10012         EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10013         reference to a tagged type.
10014
10015 2010-02-09  Tristan Gingold  <gingold@adacore.com>
10016
10017         * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10018         brothers of the parent.
10019
10020 2010-02-08  Tom Tromey  <tromey@redhat.com>
10021
10022         PR c++/8017:
10023         * value.h: Update.
10024         * valops.c (search_struct_field): Make 'name' const.
10025         (search_struct_method): Likewise.
10026         (find_method_list): Make 'method' const.
10027         (value_struct_elt): Make 'name' and 'err' const.
10028         (value_find_oload_method_list): Make 'method' const.
10029         (find_overload_match): Make 'name' const.
10030         * eval.c (evaluate_subexp_standard): New locals function,
10031         function_name.
10032         <OP_FUNCALL>: Handle OP_SCOPE specially.
10033
10034 2010-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
10035
10036         * infrun.c (handle_inferior_event): Do not look up regcache
10037         for exited processes.
10038
10039 2010-02-08  Chris Moller  <moller@mollerware.com>
10040
10041         PR gdb/10728
10042         * valarith.c (value_ptrdiff): Added a test for a zero type length,
10043         warn if found, and assume length = 1.
10044
10045 2010-02-08  Chris Moller  <cmoller@redhat.com>
10046
10047         PR gdb/9067
10048         * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
10049         (cp_print_static_field)  Fix use of obstacks.
10050
10051 2010-02-08  Pedro Alves  <pedro@codesourcery.com>
10052
10053         * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10054         resumed LWPs as resumed.
10055         (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10056         we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10057         of throwing an internal error.  If an LWP of a process we're not
10058         waiting for reports a signal, don't force collecting a SIGSTOP,
10059         and if it was breakpoint hit in non-stop mode, cancel it.  Don't
10060         go through all LWPs cancelling breakpoints in non-stop mode.
10061         (resume_stopped_resumed_lwps): New.
10062         (linux_nat_wait): Use it.
10063
10064 2010-02-07  H.J. Lu  <hongjiu.lu@intel.com>
10065
10066         * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10067         i386/amd64 and i386/amd64-linux.
10068         (i386/i386-expedite): New.
10069         (i386/i386-linux-expedite): Likewise.
10070         (i386/amd64-expedite):Likewise.
10071         (i386/amd64-linux-expedite): Likewise.
10072         ($(outdir)/i386/i386-linux.dat): Likewise.
10073         ($(outdir)/i386/amd64.dat): Likewise.
10074         ($(outdir)/i386/amd64-linux.dat): Likewise.
10075
10076         * features/i386/32bit-core.xml: New.
10077         * features/i386/32bit-linux.xml: Likewise.
10078         * features/i386/32bit-sse.xml: Likewise.
10079         * features/i386/64bit-core.xml: Likewise.
10080         * features/i386/64bit-linux.xml: Likewise.
10081         * features/i386/64bit-sse.xml: Likewise.
10082         * features/i386/i386-linux.xml: Likewise.
10083         * features/i386/i386.xml: Likewise.
10084         * features/i386/amd64-linux.xml: Likewise.
10085         * features/i386/amd64.xml: Likewise.
10086         * features/i386/i386-linux.c: Likewise.
10087         * features/i386/i386.c: Likewise.
10088         * features/i386/amd64-linux.c: Likewise.
10089         * features/i386/amd64.c: Likewise.
10090
10091 2010-02-05  Sami Wagiaalla  <swagiaal@redhat.com>
10092
10093         PR c++/7935:
10094         * cp-support.h: Added char* alias element to using_direct data
10095         struct.
10096         (cp_add_using): Added char* alias argument.
10097         (cp_add_using_directive): Ditto.
10098         * cp-namespace.c: Updated with the above changes.
10099         (cp_lookup_symbol_imports): Check for aliases.
10100         * dwarf2read.c (read_import_statement): Figure out local alias
10101         for the import and pass it on to cp_add_using.
10102         (read_namespace): Pass alias argument to cp_add_using.
10103
10104 2010-02-05  Hui Zhu  <teawater@gmail.com>
10105
10106         * defs.h (gdb_bfd_errmsg): New extern.
10107         * exec.c (exec_file_attach): Change bfd_errmsg to
10108         gdb_bfd_errmsg.
10109         * utils.c (AMBIGUOUS_MESS1): New macro.
10110         (AMBIGUOUS_MESS2): New macro.
10111         (gdb_bfd_errmsg): New function.
10112
10113 2010-02-04  Doug Evans  <dje@google.com>
10114
10115         * solib-svr4.c (enable_break): Add comment.
10116
10117 2010-02-04  Anthony Green  <green@moxielogic.com>
10118
10119         * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10120         gracefully.
10121
10122 2010-02-04  Tom Tromey  <tromey@redhat.com>
10123
10124         * valops.c (search_struct_field): Account for
10125         value_embedded_offset.  Fix check for virtual base past the end of
10126         the object.  Use value_copy when making a slice of the value.
10127
10128 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
10129
10130         PR tui/9622
10131         * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10132         only if gdb_stdout is a tty.
10133
10134 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
10135
10136         * target-descriptions.c: Include "osabi.h".
10137         (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10138         OSABI.
10139
10140 2010-02-04  Tristan Gingold  <gingold@adacore.com>
10141
10142         * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10143         (macho_symtab_read): Adjust calls to macho_add_oso.
10144         (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10145         (macho_symfile_read): Adjust call to macho_oso_symfile.
10146         (macho_new_init): Move this function after declarations.
10147         (macho_symfile_init): Ditto.
10148         * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10149         * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10150
10151 2010-02-04  Vladimir Prus  <vladimir@codesourcery.com>
10152
10153         Include MI command in remotelog.
10154
10155         * mi/mi-main.c (mi_execute_command): Call target_log_command.
10156
10157 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
10158
10159         * remote.c (remote_state): Remove gdbarch.
10160         (init_remote_state): Don't set gdbarch.
10161         (remote_query_supported): Pass target_gdbarch instead of
10162         rs->gdbarch to gdbarch_qsupported.
10163
10164 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
10165
10166         * gdbarch.sh: Add qsupported.
10167
10168         * gdbarch.c: Regenerated.
10169         * gdbarch.h: Likewise.
10170
10171         * remote.c (remote_state): Add gdbarch.
10172         (init_remote_state): Set gdbarch.
10173         (remote_query_supported): Support gdbarch_qsupported.
10174
10175 2010-02-03  Daniel Jacobowitz  <dan@codesourcery.com>
10176
10177         * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10178         __FreeBSD_kernel_version.
10179
10180 2010-02-03  Tristan Gingold  <gingold@adacore.com>
10181
10182         * symfile.h (struct sym_fns): Add sym_relocate field.
10183         (default_symfile_relocate): New prototype.
10184         (symfile_relocate_debug_section): First argument is now an objfile.
10185         * symfile.c (default_symfile_relocate): Rename from
10186         symfile_relocate_debug_section, first argument is now an objfile.
10187         (symfile_relocate_debug_section): New function.
10188         * coffread.c (coff_sym_fns): Set sym_relocate field.
10189         * somread.c (som_sym_fns): Ditto.
10190         * mipsread.c (ecoff_sym_fns): Ditto.
10191         * machoread.c (macho_sym_fns): Ditto.
10192         * elfread.c (elf_sym_fns): Ditto.
10193         * dwarf2read.c (dwarf2_read_section): Ditto.
10194         * xcoffread.c (xcoff_sym_fns): Ditto.
10195         * dbxread.c (aout_sym_fns): Ditto.
10196         (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10197         (elfstab_build_psymtabs): Ditto.
10198
10199 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
10200
10201         * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10202
10203 2010-02-02  Tom Tromey  <tromey@redhat.com>
10204
10205         * valops.c (value_cast_structs): Try downcasting using the RTTI
10206         type.
10207
10208 2010-02-02  Tom Tromey  <tromey@redhat.com>
10209
10210         * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10211         (gnuv2_baseclass_offset): Now static.
10212         * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10213         * gnu-v2-abi.h: Remove.
10214
10215 2010-02-02  Tom Tromey  <tromey@redhat.com>
10216
10217         * m2-typeprint.c (m2_record_fields): Don't use
10218         TYPE_DECLARED_TYPE.
10219         * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10220         (struct main_type) <flag_declared_class>: New field.
10221         (struct cplus_struct_type) <declared_type>: Remove.
10222         <ntemplate_args>: Move earlier.
10223         (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10224         (DECLARED_TYPE_TEMPLATE): Remove.
10225         (TYPE_DECLARED_TYPE): Remove.
10226         * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10227         * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10228         * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10229         TYPE_DECLARED_TYPE.
10230
10231 2010-02-02  Tom Tromey  <tromey@redhat.com>
10232
10233         PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10234         * valops.c (search_struct_field): Compute nbases after calling
10235         CHECK_TYPEDEF.
10236         (check_field): Call CHECK_TYPEDEF.
10237         * cp-valprint.c (cp_print_value): Pass correct address to
10238         baseclass_offset.  Fix check for virtual base past the end of the
10239         object.  Don't offset address passed to cp_print_value_fields or
10240         apply_val_pretty_printer.
10241         (cp_print_value_fields): Fix call to val_print.
10242         (cp_print_value_fields_rtti): New function.
10243         * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10244         * p-valprint.c (pascal_object_print_value_fields): Fix call to
10245         val_print.
10246         * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10247         offset to address.
10248         * language.h (struct language_defn) <la_val_print>: Document.
10249         * c-lang.h (cp_print_value_fields_rtti): Declare.
10250
10251 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10252
10253         PR libc/11214:
10254         * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10255         (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10256         (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10257
10258 2010-02-01  Michael Matz  <matz@suse.de>
10259             Daniel Jacobowitz  <dan@codesourcery.com>
10260
10261         * i386-tdep.c (i386_frame_cache): Assume valid anonymous
10262         functions use a frame pointer.
10263
10264 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10265
10266         * solib-svr4.c (scan_dyntag): New variable dyn_addr.  Replace gdb_assert
10267         by a conditional setting DYN_ADDR.  Use DYN_ADDR.
10268         * config/djgpp/fnchange.lst: Add translations for
10269         symbol-without-target_section.exp and symbol-without-target_section.c.
10270
10271 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
10272
10273         * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10274         (remote_breakpoint_for_pc): Correct invalid_p check.
10275         * gdbarch.c: Regenerated.
10276
10277 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
10278
10279         * arm-tdep.c (arm_find_mapping_symbol): New function, from
10280         arm_pc_is_thumb.
10281         (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10282         (extend_buffer_earlier): New function.
10283         (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10284         (arm_adjust_breakpoint_address): New function.
10285         (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10286
10287 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
10288
10289         * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10290         (arm_linux_thumb2_le_breakpoint): New constants.
10291         (arm_linux_init_abi): Set thumb2_breakpoint and
10292         thumb2_breakpoint_size.
10293         * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10294         (thumb_get_next_pc): Add a comment.  Rename IT to ITSTATE.
10295         Implement support for single stepping through IT blocks if
10296         a 32-bit Thumb breakpoint instruction is available.
10297         (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10298         is available, use it when needed.
10299         (arm_remote_breakpoint_from_pc): New function.
10300         (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10301         * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10302         comment.  Add thumb2_breakpoint and thumb2_breakpoint_size.
10303
10304 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
10305
10306         * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10307         * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10308         * gdbarch.c, gdbarch.h: Regenerated.
10309         * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10310         * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10311         gdbarch_remote_breakpoint_from_pc.
10312
10313 2010-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
10314
10315         * infrun.c (prepare_to_proceed): Handle other signals which might
10316         match a breakpoint.
10317         (handle_inferior_event): Move the check for unusual breakpoint
10318         signals earlier.
10319
10320 2010-01-29  Paul Hilfinger  <hilfinger@adacore.com>
10321
10322         amd64 - function returning record with field straddling 2 registers.
10323         * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10324         a record of length <= 16 in which a field straddles the two
10325         eightbytes.
10326
10327 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
10328
10329         Implement return values on amd64-windows.
10330         * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10331         (amd64_windows_return_value): New function.
10332         (amd64_windows_init_abi): Call set_gdbarch_return_value with
10333         amd64_windows_return_value.
10334
10335 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
10336
10337         amd64-windows: 32 bytes allocated on stack by caller for integer
10338         parameter registers.
10339         * i386-tdep.h (struct gdbarch_tdep): Add new field
10340         integer_param_regs_saved_in_caller_frame.
10341         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10342         tdep->integer_param_regs_saved_in_caller_frame to 1.
10343         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10344         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10345
10346 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
10347
10348         amd64-windows: memory args passed by pointer during function calls.
10349         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10350         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10351         where tdep->memory_args_by_pointer is non-zero.
10352         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10353         tdep->memory_args_by_pointer to 1.
10354
10355 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
10356
10357         amd64-windows: Integer parameters in function calls.
10358         * i386-tdep.h (enum amd64_reg_class): New, moved here from
10359         amd64-tdep.c.
10360         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10361         call_dummy_integer_regs, and classify.
10362         * amd64-tdep.h (amd64_classify): Add declaration.
10363         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10364         (amd64_reg_class): Delete, moved to i386-tdep.h.
10365         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
10366         Replace call to amd64_classify by call to tdep->classify.
10367         (amd64_push_arguments): Get the list of registers to use for
10368         passing integer parameters from the gdbarch tdep structure,
10369         rather than using a hardcoded one.  Replace calls to amd64_classify
10370         by calls to tdep->classify.
10371         (amd64_push_dummy_call): Get the register number used for
10372         the "hidden" argument from tdep->call_dummy_integer_regs.
10373         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10374         and tdep->call_dummy_integer_regs.  Set tdep->classify.
10375         * amd64-windows-tdep.c: Add include of gdbtypes.h.
10376         (amd64_windows_dummy_call_integer_regs): New static global.
10377         (amd64_windows_classify): New function.
10378         (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10379         tdep->call_dummy_integer_regs and tdep->classify.
10380
10381 2010-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
10382
10383         * regcache.c (regcache_xmalloc): Add aspace argument.  Use it
10384         for the new regcache.  All callers updated.
10385         (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10386         (get_thread_arch_regcache): Do not set aspace here.
10387         * regcache.h (regcache_xmalloc): Update declaration.
10388
10389         * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10390         regcache_xmalloc updated.
10391
10392 2010-01-28  Joel Brobecker  <brobecker@adacore.com>
10393
10394         Another -Wunused-function error in procfs.c (sparc-solaris)
10395         * procfs.c (insert_dbx_link_breakpoint): Delete declaration.  Move up.
10396         Only define if SYS_syssgi is defined.
10397         (remove_dbx_link_breakpoint): Delete declaration.  Move up.
10398         (dbx_link_addr, insert_dbx_link_bpt_in_file)
10399         (insert_dbx_link_bpt_in_region): Move up.  Only define if SYS_syssgi
10400         is itself defined.
10401
10402 2010-01-27  Christopher Faylor  <me+cygwin@cgf.cx>
10403
10404         * windows-nat.c (windows_initialization_done): New variable.
10405         (get_windows_debug_event): Issue error when process dies before
10406         completely initializing.
10407         (do_initial_windows_stuff): Set flag to indicate when we are done with
10408         the initial steps of attaching to the child.
10409
10410 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10411
10412         * symtab.h (struct symbol <symtab>): New comment on NULL values.
10413
10414 2010-01-27  Doug Evans  <dje@google.com>
10415
10416         * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10417
10418         * breakpoint.c (bpstat_stop_status): Delete useless code.
10419
10420 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10421
10422         * printcmd.c (display_uses_solib_p): Remove variable section.  Access
10423         objfile via SYMBOL_SYMTAB.
10424
10425 2010-01-26  Tom Tromey  <tromey@redhat.com>
10426
10427         PR exp/7643:
10428         * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10429         coerce_array on result.
10430
10431 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
10432
10433         * cp-namespace.c (cp_lookup_symbol_namespace): Added
10434         search_parent argument.
10435         (cp_add_using): Initialize 'searched' field.
10436         (reset_directive_searched): New function.
10437         * cp-support.h: Add 'searched' field to using_direct struct.
10438         (cp_lookup_symbol_imports): Ditto.
10439         * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10440         Perform recursive search.
10441         Implement non parent search.
10442         * valops.c (value_maybe_namespace_elt): Updated.
10443
10444 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
10445
10446         PR gdb/10929:
10447         * dwarf2read.c (read_lexical_block_scope): Create blocks for
10448         scopes which contain using directives even if they contain no
10449         declarations.
10450         * symtab.c (lookup_symbol_aux): Pass lowest level block to
10451         la_lookup_symbol_nonlocal.
10452         * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10453         cp_lookup_symbol_namespace.
10454         (cp_lookup_symbol_namespace): Perform an import lookup at every
10455         block level.
10456         (cp_lookup_symbol_imports): New function.
10457         (cp_lookup_symbol_in_namespace): New function.
10458
10459 2010-01-25  Tom Tromey  <tromey@redhat.com>
10460
10461         PR gdb/11049:
10462         * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10463         result.
10464
10465 2010-01-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10466
10467         * configure.ac: Only use host_os part when disabling TUI on osf.
10468         Use test to check variables, prefix strings with x.
10469         * configure: Regenerate.
10470
10471         * solib-osf.c (osf_current_sos): Initialize tail.
10472
10473 2010-01-25  gingold  <gingold@adacore.com>
10474
10475         * windows-nat.c (windows_continue): Use %x to print thread id.
10476         (get_windows_debug_event): Ditto.
10477
10478 2010-01-22  Tom Tromey  <tromey@redhat.com>
10479
10480         PR symtab/11199:
10481         * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10482         type and arguments.  Use smash_to_methodptr_type.
10483         (read_structure_type): Call quirk_gcc_member_function_pointer
10484         later.
10485         * gdbtypes.h (smash_to_methodptr_type): Declare.
10486         * gdbtypes.c (smash_to_methodptr_type): New function.
10487         (lookup_methodptr_type): Use it.
10488
10489 2010-01-21  Tom Tromey  <tromey@redhat.com>
10490
10491         PR symtab/11198:
10492         * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10493         * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10494         * glibc-tdep.c (find_minsym_and_objfile): Remove.
10495         (glibc_skip_solib_resolver): Use
10496         lookup_minimal_symbol_and_objfile.
10497
10498 2010-01-21  Kai Tietz  <kai.tietz@onevision.com>
10499
10500         * inflow.c (check_syscall): Guard by #if clause for GO32 and
10501         WIN32 targets.
10502
10503 2010-01-20  Tom Tromey  <tromey@redhat.com>
10504
10505         PR backtrace/10770:
10506         * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10507         BINOP_GEQ.  Handle BINOP_NOTEQUAL in the signed case.
10508         * dwarf2expr.c (new_dwarf_expr_context): Allocate
10509         dwarf_stack_values, not CORE_ADDRs.
10510         (execute_stack_op): Change DW_OP_div and comparison operators to
10511         use signed operands.
10512
10513 2010-01-20  Vladimir Prus  <vladimir@codesourcery.com>
10514
10515         Per-inferior args and tty and environment.
10516
10517         * infcmd.c (inferior_args): Rename to ...
10518         (inferior_args_scratch): ... this.
10519         (inferior_io_terminal): Rename to ...
10520         (inferior_io_terminal_scratch): ... this.
10521         (inferior_argc, inferior_argv): Remove.
10522         (set_inferior_io_terminal, get_inferior_io_terminal): Store
10523         inside current_inferior().
10524         (set_inferior_tty_command, show_inferior_tty_command): New.
10525         (get_inferior_args, set_inferior_args): Store inside
10526         current_inferior().
10527         (notice_args_set): Likewise and rename to...
10528         (set_args_command): ... this.
10529         (set_inferior_args_vector): Likewise.
10530         (notice_args_read): Rename to...
10531         (show_args_command): ...new.
10532         (tty_command): Remove.
10533         (run_command_1): Don't free old args, as they are freed by
10534         set_inferior_arg now.
10535         (run_no_args_command): Likewise.
10536         (inferior_environ): Remove.
10537         (run_command_1): Use environment of the current inferior.
10538         (environment_info, set_environment_command)
10539         (unset_environment_command, path_info, path_command): Likewise.
10540         (_initialize_infcmd): Adjust for function and variable renames.
10541         Do not init inferior_environ.
10542         * inferior.h (set_inferior_arg): Adjust prototype.
10543         (struct inferior): New fields args, argc, argv, terminal, environment.
10544         (inferior_environ): Remove declaration.
10545         * inferior.c (free_inferior): Free new fields.
10546         (add_inferior_silent): Initialize 'environment' field.
10547         * main.c (captured_main): Set arguments only after the initial
10548         inferior has been created.  Set set_inferior_io_terminal,
10549         not tty_command.
10550         * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10551         inferior.
10552         (_initialize_mi_cmd_env): Adjust for disappearance of global
10553         inferior_environ.
10554         * solib.c (solib_find): Use environment of the current inferior.
10555
10556 2010-01-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10557
10558         * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10559         HAVE_PYTHON.
10560         (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10561
10562 2010-01-20  Joel Brobecker  <brobecker@adacore.com>
10563
10564         Get rid of ada-lang.c:function_name_from_pc.
10565         * ada-lang.c: Add "stack.h" #include.
10566         (function_name_from_pc): Delete.
10567         (is_known_support_routine): Replace call to function_name_from_pc
10568         by call to find_frame_funname.
10569         (ada_unhandled_exception_name_addr_from_raise): Likewise.
10570
10571 2010-01-19  Tom Tromey  <tromey@redhat.com>
10572
10573         PR c++/11026:
10574         * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10575         objfile obstack.
10576
10577 2010-01-19  Tom Tromey  <tromey@redhat.com>
10578
10579         * top.c (stop_sig, float_handler, do_nothing): Remove.
10580
10581 2010-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10582
10583         * breakpoint.c (watchpoint_check): Check the call
10584         gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10585         Extend the comment.
10586         * config/djgpp/fnchange.lst: Add translations for
10587         watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10588         watchpoint-cond-gone-stripped.c.
10589
10590 2010-01-19  Tom Tromey  <tromey@redhat.com>
10591
10592         PR c++/8000:
10593         * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10594         into parent scope, and enumerator into grandparent scope.
10595
10596 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10597
10598         * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10599
10600 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10601
10602         * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10603         i[34567]86-*-solaris2.1[0-9]*.
10604         * configure.tgt: Likewise.
10605
10606 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10607
10608         * NEWS: Document the source command enhancement allowing it
10609         to load Python scripts. Document the "set/show script-extension"
10610         commands.
10611
10612 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10613
10614         Add -Wunused-function to compile flags.
10615         * configure.ac: Add -Wunused-function to build_warnings.
10616         * configure: Regenerate.
10617
10618 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10619
10620         "delete" ada-lex.c:input function, not used.
10621         * ada-lex.l: #define YY_NO_INPUT.
10622
10623 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10624
10625         Delete free_named_symtabs and associated cleanup.
10626         * symfile.h (free_named_symtabs): Delete declaration.
10627         * symfile.c: Remove some commented out code (clear_symtab_users_once).
10628         (cashier_psymtab): Comment function out.
10629         Delete declaration.
10630         (free_named_symtabs): Delete.
10631         * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10632         * dbxread.c (end_psymtab): Likewise.
10633         * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10634         * exec.c (exec_close_1): Ditto.
10635         * xcoffread.c (xcoff_end_psymtab): Likewise.
10636
10637 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10638
10639         * stack.c (print_block_frame_labels): Comment function out.
10640
10641 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10642
10643         Delete unused or undefined functions.
10644         * breakpoint.c (ep_parse_optional_filename): Delete.
10645         * dcache.c (dcache_write_line): Remove declaration.
10646         * infrun.c (build_infrun): Remove declaration.
10647         * tracepoint.c (tracepoint_save_command): Remove declaration.
10648         * linux-nat.c (init_lwp_list): Delete. No longer used.
10649         * event-loop.c (check_async_signal_handlers): Delete declaration.
10650         * infrun.c (init_execution_control_state): Delete.
10651         (proceed): Update comment to avoid mentioning
10652         init_execution_control_state.
10653         * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10654         * ada-lang.c (ada_to_static_fixed_value): Delete.
10655         * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10656         * cp-namespace.c (cp_copy_usings): Delete.
10657         * xml-syscall.c (xml_number_of_syscalls): Delete.
10658         * progspace.c (find_program_space_by_num): Delete.
10659         * inflow.c (handle_sigio): Delete declaration.
10660         * hppa-tdep.c (hppa_alignof): Delete.
10661         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10662         (mipsnbsd_core_osabi_sniffer): Delete.
10663
10664 2010-01-18  Tom Tromey  <tromey@redhat.com>
10665
10666         PR c++/9680:
10667         * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10668         (CONST_CAST): New tokens.
10669         (exp): Add new productions.
10670         (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10671         reinterpret_cast.
10672         (is_cast_operator): New function.
10673         (yylex): Handle cast operators specially.
10674         * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10675         UNOP_REINTERPRET_CAST>: New cases.
10676         * expprint.c (print_subexp_standard): Likewise.
10677         (op_name_standard): Likewise.
10678         (dump_subexp_body_standard): Likewise.
10679         * parse.c (operator_length_standard): Likewise.
10680         * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10681         UNOP_REINTERPRET_CAST.
10682         * gdbtypes.c (class_types_same_p): New function.
10683         (is_ancestor): Use it.
10684         (is_public_ancestor): New function.
10685         (is_unique_ancestor_worker): Likewise.
10686         (is_unique_ancestor): Likewise.
10687         * gdbtypes.h (class_types_same_p, is_public_ancestor)
10688         (is_unique_ancestor): Declare.
10689         * valops.c (value_reinterpret_cast): New function.
10690         (dynamic_cast_check_1): Likewise.
10691         (dynamic_cast_check_2): Likewise.
10692         (value_dynamic_cast): Likewise.
10693         * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10694
10695 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
10696
10697         Fix build failure when building without Python support.
10698         * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10699         is not defined.
10700
10701 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
10702
10703         Use XVS field type instead of doing a parallel lookup.
10704         * ada-lang.c (ada_get_base_type): Follow the XVS field type
10705         if it is a reference type instead of doing a type lookup using
10706         the XVS field name.
10707
10708 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
10709
10710         Trust PAD types instead of using PAD___XVS.
10711         * ada-lang.c (trust_pad_over_xvs): New static variable.
10712         (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10713         parallel XVS type, follow the XVS type instead of the PAD type.
10714         (unwrap_value): Make sure that there is no parallel XVE type
10715         before returning the value as is.
10716         (set_ada_list, show_ada_list): New static variables.
10717         (set_ada_command, show_ada_command): New functions.
10718         (_initialize_ada_language): Add new "set/show ada" prefix commands.
10719         Add new "set/show ada trust-PAD-over-XVS" setting.
10720
10721 2010-01-18  Tom Tromey  <tromey@redhat.com>
10722             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10723
10724         Allow "source" to load python scripts.
10725         * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10726         * python/python.c (source_python_script): New function.
10727         * python/python.h (source_python_script): Add declaration.
10728         * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10729         (script_ext_off, script_ext_soft, script_ext_strict)
10730         (script_ext_enums, script_ext_mode): New static constants.
10731         (show_script_ext_mode, find_and_open_script): New functions.
10732         (source_script): Enhance to handle Python scripts.
10733         (init_cli_cmds): Add set/show script-extension commands.
10734
10735 2010-01-16  Stan Shebs  <stan@codesourcery.com>
10736
10737         * tracepoint.h (struct trace_status): Use unsigned long long
10738         instead of size_t.
10739         * tracepoint.c (trace_status_command): Fix printf directive.
10740         (trace_save_command): Check fwrite returns, fix printf directive.
10741         (trace_filename): New global.
10742         (tfile_open): Set it, check read returns.
10743         (tfile_close): Free trace_filename.
10744         (tfile_get_traceframe_address): Check read returns.
10745         (tfile_trace_find): Ditto.
10746         (tfile_fetch_registers): Ditto.
10747         (tfile_xfer_partial): Ditto.
10748         (tfile_get_trace_state_variable_value): Ditto.
10749
10750 2010-01-15  Stan Shebs  <stan@codesourcery.com>
10751
10752         Add trace file support.
10753         * tracepoint.h (enum trace_stop_reason): New enum.
10754         (struct trace_status): New struct.
10755         (parse_trace_status): Declare.
10756         (struct uploaded_tp): Move here from remote.c,
10757         add fields for actions.
10758         (struct uploaded_tsv): New struct.
10759         * tracepoint.c (tfile_ops): New target vector.
10760         (trace_fd): New global.
10761         (tfile_open): New function.
10762         (tfile_close): New function.
10763         (tfile_files_info): New function.
10764         (tfile_get_trace_status): New function.
10765         (tfile_get_traceframe_address): New function.
10766         (tfile_trace_find): New function.
10767         (tfile_fetch_registers): New function.
10768         (tfile_xfer_partial): New function.
10769         (tfile_get_trace_state_variable_value): New function.
10770         (init_tfile_ops): New function.
10771         (_initialize_tracepoint): Call it, add tfile target.
10772         (trace_status): New global.
10773         (current_trace_status): New function.
10774         (trace_running_p): Remove, change all users to get from
10775         current_trace_status()->running.
10776         (get_trace_status): Remove.
10777         (trace_status_command): Call target_get_trace_status directly,
10778         report more detail including tracing stop reasons.
10779         (trace_find_command): Always allow tfind on a file.
10780         (trace_find_pc_command): Ditto.
10781         (trace_find_tracepoint_command): Ditto.
10782         (trace_find_line_command): Ditto.
10783         (trace_find_range_command): Ditto.
10784         (trace_find_outside_command): Ditto.
10785         (trace_frames_offset, cur_offset): Declare as off_t.
10786         (trace_regblock_size): Rename from reg_size, update users.
10787         (parse_trace_status): New function.
10788         (tfile_interp_line): New function.
10789         (disconnect_or_stop_tracing): Ensure current trace
10790         status before asking what to do.
10791         (stop_reason_names): New global.
10792         (trace_save_command): New command.
10793         (get_uploaded_tp): Move here from remote.c.
10794         (find_matching_tracepoint): Ditto.
10795         (merge_uploaded_tracepoints): New function.
10796         (parse_trace_status): Use stop_reason_names.
10797         (_initialize_tracepoint): Define tsave command.
10798         * target.h (target_ops): New fields to_save_trace_data,
10799         to_upload_tracepoints, to_upload_trace_state_variables,
10800         to_get_raw_trace_data, change to_get_trace_status
10801         to take a pointer to a status struct.
10802         (target_save_trace_data): New macro.
10803         (target_upload_tracepoints): New macro.
10804         (target_upload_trace_state_variables): New macro.
10805         (target_get_raw_trace_data): New macro.
10806         * target.c (update_current_target): Add new methods, change
10807         signature of to_get_trace_status.
10808         * remote.c (hex2bin): Make globally visible.
10809         (bin2hex): Ditto.
10810         (remote_download_trace_state_variable): Download name also.
10811         (remote_get_trace_status): Update parameter, use
10812         parse_trace_status.
10813         (remote_save_trace_data): New function.
10814         (remote_upload_tracepoints): New function.
10815         (remote_upload_trace_state_variables): New function.
10816         (remote_get_raw_trace_data): New function.
10817         (remote_start_remote): Use them.
10818         (_initialize_remote_ops): Add operations.
10819         * ax-gdb.c: Include breakpoint.h.
10820         * breakpoint.c (create_tracepoint_from_upload): Use
10821         break_command_really, return tracepoint, warn about unimplemented
10822         parts.
10823         * NEWS: Mention trace file addition.
10824
10825 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10826
10827         Fix compilation warning on gcc-3.4.
10828         * exec.c (print_section_info): Move the `displacement' variable
10829         initialization to its declaration.
10830
10831 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10832
10833         * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10834         comparison.
10835
10836 2010-01-15  Eric Botcazou  <botcazou@adacore.com>
10837
10838         "info tasks" broken by typedefs in ATCB type definitions.
10839         * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10840         ada_check_typedef before retrieving the length of the type for
10841         regular fields.
10842
10843 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
10844
10845         Do not use name-based lookup for unconstrained packed arrays.
10846         * ada-lang.c (find_parallel_type_by_descriptive_type):
10847         Limit the fallback to name-based lookups to the case where
10848         the type is a constrained packed array.
10849
10850 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
10851
10852         Enhance gdb-gdb.py to handle main_type.type_specific.
10853         * gdb-gdb.py: Print the type-specific part of struct main_type.
10854
10855 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10856
10857         * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10858         * configure: Regenerate.
10859         * config.in: Regenerate.
10860         * utils.c: Include sys/resource.h.
10861         (dump_core, can_dump_core): New.
10862         (internal_vproblem): Update the comment.  Check can_dump_core while
10863         setting dump_core_p.  Replace two abort calls by dump_core calls.
10864
10865 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10866             Eli Zaretskii  <eliz@gnu.org>
10867
10868         * NEWS: Document the PIE support.
10869
10870 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10871
10872         * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10873         (check_is_pie_binary, _initialize_linux_tdep): Remove.
10874
10875 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10876
10877         * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10878         Replace exec_entry_point call by bfd_get_start_address.
10879
10880 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10881
10882         Support Valgrind attachments broken by the PIE support.
10883         * auxv.c: Include gdbcore.h.
10884         (procfs_xfer_auxv): Make static.  Reduce its comment.  Drop its
10885         parameters ops, object and annex.  Remove their assertions.
10886         (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10887         * auxv.h (procfs_xfer_auxv): Remove comment.  Rename to ...
10888         (memory_xfer_auxv): ... here.
10889         * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10890         memory_xfer_auxv.
10891         * procfs.c (procfs_xfer_partial): Likewise.
10892         * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10893         (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10894         (svr4_solib_create_inferior_hook): Conditionalize the
10895         svr4_relocate_main_executable call.
10896
10897 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10898
10899         * solib-svr4.c (scan_dyntag): Remove variable dyn_addr.  New variable
10900         target_section.  Find SECT in current_target_sections, gdb_assert it.
10901         (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10902         New variable abfd.
10903         * symtab.c (lookup_objfile_from_block): Return the binary file instead
10904         of separate debug info file.
10905
10906 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10907
10908         Support PIEs with no symfile_objfile.
10909         * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10910         * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10911
10912 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10913
10914         * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10915         code part to ...
10916         (svr4_static_exec_displacement): ... a new function.
10917         (svr4_exec_displacement): New function.
10918         (svr4_relocate_main_executable): Call svr4_exec_displacement.  Allocate
10919         new_offsets using alloca now.  Remove variable old_chain and changed.
10920         Call objfile_relocate unconditionally now.
10921
10922 2010-01-14  Doug Evans  <dje@google.com>
10923
10924         * gdbtypes.c (arch_flags_type): Fix comment.
10925         * gdbtypes.h (arch_composite_type): Fix comment.
10926
10927 2009-01-14  Tristan Gingold  <gingold@adacore.com>
10928
10929         * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10930         Call xstrdup for abfd->filename.  Pass symfile_flags and objfile flags
10931         to symbol_file_add_from_bfd.  Add OSO as separate objfile.
10932         (macho_oso_symfile): Add symfile_flags parameter.  Pass it to
10933         macho_add_oso_symfile.
10934         (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10935
10936 2010-01-14  Joel Brobecker  <brobecker@adacore.com>
10937
10938         Tru64: Dead threads are never deleted.
10939         * dec-thread.c (dec_thread_ptid_is_alive): New function.
10940         (dec_thread_count_gdb_threads): Fix counter increment.
10941         (dec_thread_add_gdb_thread): Fix *listp increment.
10942         (resync_thread_list): Fix bug in deletion of dead threads that
10943         caused all threads to be deleted, instead of just the dead ones.
10944
10945 2010-01-13  Phil Muldoon  <pmuldoon@redhat.com>
10946
10947         PR python/10705
10948
10949         * python/python-internal.h: Add lazy_string_object_type
10950         definition.
10951         (create_lazy_string_object, gdbpy_initialize_lazy_string)
10952         (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10953         * python/py-value.c (valpy_lazy_string): New function.
10954         (convert_value_from_python): Add lazy string conversion.
10955         * python/py-prettyprint.c (pretty_print_one_value): Check if
10956         return is also a lazy string.
10957         (print_string_repr): Add lazy string printing branch.
10958         (print_children): Likewise.
10959         * python/py-lazy-string.c: New file. Implement lazy strings.
10960         * python/python.c (_initialize_python): Call
10961         gdbpy_initialize_lazy_string.
10962         * varobj.c (value_get_print_value): Add lazy string printing
10963         branch.  Account for encoding.
10964         * c-lang.c (c_printstr): Account for new encoding argument.  If
10965         encoding is NULL, find encoding suited for type, otherwise use
10966         user encoding.
10967         * language.h (language_defn): Add encoding argument.
10968         (LA_PRINT_STRING): Likewise.
10969         * language.c (unk_lang_printstr): Update to reflect new encoding
10970         argument to language_defn.
10971         * ada-lang.h (ada_printstr): Likewise.
10972         * c-lang.h (c_printstr): Likewise.
10973         * p-lang.h (pascal_printstr);
10974         * f-lang.c (f_printstr): Likewise.
10975         * m2-lang.c (m2_printstr): Likewise.
10976         * objc-lang.c (objc_printstr): Likewise.
10977         * p-lang.c (pascal_printstr): Likewise.
10978         * scm-lang.c (scm_printstr): Likewise.
10979         * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10980         encoding argument.
10981         * ada-valprint.c (ada_printstr): Likewise.
10982         * f-valprint.c (f_val_print): Likewise
10983         * m2-valprint.c (m2_val_print): Likewise.
10984         * p-valprint.c (pascal_val_print): Likewise.
10985         * expprint.c (print_subexp_standard): Likewise.
10986         * valprint.c (val_print_string): Likewise.
10987         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10988         (SUBDIR_PYTHON_SRCS): Likewise.
10989         (py-lazy-string.o): New rule.
10990
10991 2010-01-13  Doug Evans  <dje@google.com>
10992
10993         * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10994         uninitialized" warning from gcc on local `tree'.
10995
10996 2010-01-13  Vladimir Prus  <vladimir@codesourcery.com>
10997
10998         Implement core awareness.
10999
11000         * bcache.c (compare_ints): Remove
11001         (print_percentage): Use compare_positive_ints.
11002         * defs.h (compare_positive_ints): Declare.
11003         * linux-nat.h (struct lin_lwp): New field core.
11004         (linux_nat_core_of_thread_1): Declare.
11005         * linux-nat.c (add_lwp): Init the 'core' field.
11006         (linux_nat_wait_1): Record the core.
11007         (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11008         (linux_nat_add_target): Register the above.
11009         * linux-thread-db.c (update_thread_core): New.
11010         (thread_db_find_new_threads): Update core information for
11011         every thread.
11012         * remote.c (struct private_thread_info): New.
11013         (free_private_thread_info, demand_private_info): New.
11014         (PACKET_qXfer_threads, use_osdata_threads): New.
11015         (struct thread_item, threads_parsing_context
11016         (start_thread, end_thread, thread_attributes)
11017         (thread_children, threads_children, threads_elements): New.
11018         (remote_threads_info): Try qXfer:threads before anything
11019         else.
11020         (remote_protocol_packets): Register qXfer:threads.
11021         (remote_open_1): Init use_osdata_threads.
11022         (struct stop_reply): New field 'core'.
11023         (remote_parse_stop_reply): Parse core number.
11024         (process_stop_reply): Record core number.
11025         (remote_xfer_partial): Handle qXfer:threads.
11026         (remote_core_of_thread): New.
11027         (init_remote_ops): Register remote_core_of_thread.
11028         (_initialize_remote): Register qXfer:read.
11029         * target.c (target_core_of_thread): New
11030         * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11031         (struct target_ops): New field to_core_of_threads.
11032         (target_core_of_thread): Declare.
11033         * gdbthread.h (struct thread_info): New field private_dtor.
11034         * thread.c (print_thread_info): Report the core.
11035         * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11036         * utils.c (compare_positive_ints): New.
11037         * features/threads.dtd: New.
11038         * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11039         * mi/mi-main.c (struct collect_cores_data, collect_cores)
11040         (do_nothing, free_vector_of_osdata_items)
11041         (splay_tree_int_comparator, free_splay_tree): New.
11042         (print_one_inferior_data): Implemented printing of selected
11043         inferiors.  Collect and print cores.
11044         (output_cores): New.
11045         (mi_cmd_list_thread_groups): Support --recurse.  Permit specifying
11046         thread groups together with --available.
11047
11048 2010-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11049
11050         * configure: Regenerate (for _STRUCTURED_PROC).
11051
11052 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
11053
11054         Delete dead function.
11055         * ada-lang.c (extract_string): Delete.  No longer used.
11056
11057 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
11058
11059         Fix -Wunused warning in dec-thread.c.
11060         * dec-thread.c (dec_thread_count_gdb_threads)
11061         (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11062
11063 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
11064
11065         * ada-valprint.c (ada_print_floating): Remove trailing space.
11066
11067 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
11068
11069         Add support for DW_AT_GNAT_descriptive_type.
11070         * gdbtypes.h (enum type_specific_kind): New enum.
11071         (struct main_type) [type_specific_field]: New component.
11072         [type_specific]: Add new component "gnat_stuff".
11073         (struct gnat_aux_type): New type.
11074         (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11075         (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11076         (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11077         (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11078         (TYPE_SPECIFIC_FIELD): New macros.
11079         (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11080         type does not hold any cplus-specific data.
11081         (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11082         (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11083         (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11084         cplus-specific data.
11085         * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11086         Set new component TYPE_SPECIFIC_FIELD (type).
11087         (gnat_aux_default): New constant.
11088         (allocate_gnat_aux_type): New function.
11089         (init_type): Add initialization the type-specific stuff for
11090         TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11091         (print_gnat_stuff): New function.
11092         (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11093         specific data.  Adjust code that prints the contents of the
11094         type-specific union using the TYPE_SPECIFIC_FIELD value.
11095         * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11096         the type cplus stuff for Ada types.
11097         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11098         Error out if these routines are called with an Ada type.
11099         (read_structure_type, read_array_type, read_subrange_type):
11100         Add call to set_descriptive_type.
11101         (set_die_type): Initialize the gnat-specific data if necessary.
11102         (need_gnat_info, die_descriptive_type, set_descriptive_type):
11103         New functions.
11104         * ada-lang.c (decode_constrained_packed_array_type): Use
11105         decode_constrained_packed_array_type instead of doing a standard
11106         lookup to locate a parallel type.
11107         (find_parallel_type_by_descriptive_type): New function.
11108         (ada_find_parallel_type_with_name): New function.
11109         (ada_find_parallel_type): Reimplement using
11110         ada_find_parallel_type_with_name.
11111         * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11112         to check if type has a cplus stuff.
11113         * linespec.c (total_number_of_methods): Likewise.
11114         * mdebugread.c (new_type): Likewise.
11115
11116 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11117
11118         * NEWS: Document the 0b binary number prefix parsing.
11119
11120 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11121
11122         * objfiles.c (objfile_relocate1): Change the return type to int.
11123         Describe the new return value.  Return non-zero if data changed.
11124         (objfile_relocate): New variable changed.  Set it.  Call
11125         breakpoint_re_set depending on CHANGED.
11126
11127 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11128
11129         Implement binary numbers parsing.
11130         * c-exp.y (parse_number): New case 'b' and 'B'.
11131
11132 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11133             Tristan Gingold  <gingold@adacore.com>
11134
11135         * solib.c (info_sharedlibrary_command): Replace
11136         objfile_has_partial_symbols and objfile_has_full_symbols calls by
11137         objfile_has_symbols.
11138
11139 2010-01-10  Joel Brobecker  <brobecker@adacore.com>
11140
11141         * NEWS: Document the improvements made to the mips-irix port.
11142
11143 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11144
11145         Fix the documentation of valprint.c:value_print.
11146         * valprint.c (value_print): Update the function description to
11147         mention that the syntax of the output follows the current_language,
11148         not necessarily C.
11149
11150 2010-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11151
11152         Fix displacement of separate debug info files.
11153         * objfiles.c (objfile_relocate): Rename to ...
11154         (objfile_relocate1): ... here and make it static.  Extend the comment.
11155         (objfile_relocate): New function.
11156         * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11157         SYMFILE_OBJFILE is NULL.  Remove variables objfile and old_chain.
11158         Remove following of SEPARATE_DEBUG_OBJFILE.  new_offsets is now
11159         allocated using alloca.
11160         * symfile.c (copy_section_addr_info): Remove.
11161         (build_section_addr_info_from_objfile): Make it global.  New variables
11162         addr_bit and mask, use them.
11163         * symfile.h (build_section_addr_info_from_objfile): New prototype.
11164         (copy_section_addr_info): Remove.
11165
11166 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11167
11168         Signal unwinder for mips-irix N32.
11169         * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11170         tramp-frame.h.
11171         (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11172         (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
11173         (SIGCONTEXT_LO_OFF): New macros.
11174         (mips_irix_n32_tramp_frame_init): New function.
11175         (mips_irix_n32_tramp_frame): New static constant.
11176         (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11177
11178 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11179
11180         Breakpoint in shared library does not work on mips-irix.
11181         * procfs.c: #include "observer.h".
11182         (procfs_inferior_created): New function, moving here the code
11183         which unsets the syssgi syscall-exit notifications.
11184         (procfs_create_inferior): Remove the code which unsets the syssgi
11185         syscall-exit notifications. It is too early to do this here.
11186         (_initialize_procfs): Attach the procfs_inferior_created observer.
11187
11188 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11189
11190         Wrong return convention for arrays (mips-irix).
11191         * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11192         128 bits or smaller are returned the same way as structs
11193         and unions of the the same size.
11194
11195 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11196
11197         Cannot set the PC on mips-irix.
11198         * irix5-nat.c (fill_gregset): Check regno against the raw PC
11199         register number, no the cooked one.
11200
11201 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11202
11203         Error while loading core file on mips-irix.
11204         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11205         if debugging from a core file.
11206
11207 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11208
11209         GDB hangs when attaching to process on mips-irix.
11210         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11211         attaching to a process.
11212
11213 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11214
11215         Use the correct breakpoint instruction on mips-irix.
11216         * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11217         containing the correct breakpoint instruction to use on mips-irix.
11218         Use it when the osabi is GDB_OSABI_IRIX.
11219
11220 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11221
11222         -Wunused warning in procfs.c (mips-irix only).
11223         * procfs.c (gdb_praddset, gdb_prdelset): New macros.  Use them
11224         throughout instead of using praddset and prdelset respectively.
11225
11226 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11227
11228         GDB crash while stepping into function.
11229         * infrun.c (handle_inferior_event): Refetch the current frame
11230         after handling what.main_action, in case that pointer became
11231         dangling.
11232
11233 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
11234
11235         Fix build failure of solaris-hosted cross debuggers.
11236         * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11237
11238 2010-01-09  Daniel Gutson  <dgutson@codesourcery.com>
11239
11240         Fix build failure on sparc-solaris.
11241         * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11242
11243 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
11244
11245         Move some symfile code into subroutines.
11246         * symfile.h (relative_addr_info_to_section_offsets)
11247         (addr_info_make_relative): New prototypes.
11248         * symfile.c (default_symfile_offsets): Move a part to ...
11249         (relative_addr_info_to_section_offsets): ... this new function.
11250         (default_symfile_offsets): Call it.
11251         (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11252         this part to ...
11253         (addr_info_make_relative): ... this new function.
11254
11255 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
11256
11257         Add from_tty to solib_create_inferior_hook.
11258         * infcmd.c (post_create_inferior): Move solib_add after
11259         solib_create_inferior_hook.  Pass from_tty to
11260         solib_create_inferior_hook.  Call solib_add and SOLIB_ADD with
11261         0 from_tty and comment why.
11262         * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11263         * linux-nat.c (linux_child_follow_fork): Likewise.
11264         * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11265         * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11266         from_tty.
11267         * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11268         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11269         * solib-null.c (null_solib_create_inferior_hook): Likewise.
11270         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11271         * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11272         * solib-som.c (som_solib_create_inferior_hook): Likewise.
11273         * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11274         Pass it to svr4_so_ops.solib_create_inferior_hook.
11275         * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11276         from_tty.
11277         * solib-svr4.c (enable_break): New parameter from_tty.  Pass it to
11278         solib_add.
11279         (svr4_solib_create_inferior_hook): New parameter from_tty.  Pass it to
11280         enable_break.
11281         * solib-target.c (solib_target_solib_create_inferior_hook): New
11282         parameter from_tty.
11283         * solib.c (solib_create_inferior_hook): New parameter from_tty.  Pass
11284         it to ops->solib_create_inferior_hook.
11285         (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11286         Move solib_add after solib_create_inferior_hook, call it now with
11287         from_tty as 0.  New comment there.
11288         * solib.h (solib_create_inferior_hook): New parameter from_tty.
11289         * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11290         Likewise.
11291
11292 2010-01-08  Vladimir Prus  <vladimir@codesourcery.com>
11293
11294         Fix multiexec race.
11295         * infrun.c (handle_inferior_event): Use get_thread_regcache
11296         with events ptid, not get_current_regcache.
11297
11298 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
11299
11300         GDB crash with empty executable name (MinGW).
11301         * source.c (openp): Add assert that parameter string is not NULL.
11302         if parameter string is an empty string, then return with a failure
11303         immediately.
11304
11305 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
11306
11307         Get rid of support for VAX Floats.
11308         * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11309         (ada_vax_float_print_function): Delete.
11310         * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11311         (ada_vax_float_print_function): Delete.
11312         * ada-typeprint.c (print_vax_floating_point_type): Delete.
11313         (ada_print_type): Remove support for VAX floats.
11314         * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11315
11316 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
11317
11318         * stabsread.c (read_args): Handle zero arguments.
11319
11320 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
11321
11322         Cannot find in-tree libiconv.a after reconfigure.
11323         * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11324         that we can use, then cache the path to this archive.
11325         * configure: Regenerate.
11326
11327 2010-01-07  Stan Shebs  <stan@codesourcery.com>
11328
11329         Make tracepoint operations go through target vector.
11330         * target.h (enum trace_find_type): New enum.
11331         (struct target_ops): New fields to_trace_init,
11332         to_download_tracepoint, to_download_trace_state_variable,
11333         to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11334         to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11335         to_set_disconnected_tracing.
11336         (target_trace_init): New macro.
11337         (target_download_tracepoint): New macro.
11338         (target_download_trace_state_variable): New macro.
11339         (target_trace_start): New macro.
11340         (target_trace_set_readonly_regions): New macro.
11341         (target_get_trace_status): New macro.
11342         (target_trace_stop): New macro.
11343         (target_trace_find): New macro.
11344         (target_get_trace_state_variable_value): New macro.
11345         (target_set_disconnected_tracing): New macro.
11346         * target.c (update_current_target): Inherit and set defaults for
11347         tracepoint operations.
11348         * tracepoint.c (default_collect): Make globally visible.
11349         (target_is_remote): Remove, along with all calls.
11350         (tvariables_info): Call target_get_trace_state_variable_value.
11351         (remote_set_transparent_ranges): Remove.
11352         (trace_start_command): Call target_trace_init,
11353         target_download_tracepoint, etc.
11354         (download_tracepoint): Remove.
11355         (trace_stop_command): Simplify.
11356         (stop_tracing): Call target_trace_stop.
11357         (get_trace_status): Call target_get_trace_status.
11358         (trace_status_command): Add case for targets that cannot trace.
11359         (finish_tfind_command): Change to take numerical arguments, call
11360         target_trace_find.
11361         (trace_find_command): Update call to finish_tfind_command.
11362         (trace_find_pc_command): Ditto.
11363         (trace_find_tracepoint_command): Ditto.
11364         (trace_find_line_command): Ditto.
11365         (trace_find_range_command): Ditto.
11366         (trace_find_outside_command): Ditto.
11367         (set_disconnected_tracing_value): Call
11368         target_set_disconnected_tracing.
11369         * remote.c: Add protocol encoding bits from tracepoint.c.
11370         (trace_error): Move from tracepoint.c.
11371         (remote_get_noisy_reply): Ditto.
11372         (free_actions_list_cleanup_wrapper): Ditto.
11373         (free_actions_list): Ditto.
11374         (remote_trace_init): New function.
11375         (remote_download_tracepoint): New function.
11376         (remote_download_trace_state_variable): New function.
11377         (remote_trace_set_readonly_regions): New function.
11378         (remote_trace_start): New function.
11379         (remote_get_trace_status): New function.
11380         (remote_trace_stop): New function.
11381         (remote_trace_find): New function.
11382         (remote_download_trace_state_variable): New function.
11383         (remote_set_disconnected_tracing): New function.
11384         (init_remote_ops): Add tracepoint operations.
11385
11386         * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11387
11388 2010-01-07  Tristan Gingold  <gingold@adacore.com>
11389
11390         * symfile.c (build_section_addr_info_from_objfile): New function.
11391         (symbol_file_add_separate): Don't use offsets from objfile but
11392         built an addr info.
11393
11394 2010-01-06  Stan Shebs  <stan@codesourcery.com>
11395
11396         Support disconnected tracing.
11397         * infcmd.c (detach_command): Ask whether to stop tracing.
11398         * cli/cli-cmds.c (quit_command): Ditto.
11399         * breakpoint.h (struct breakpoint): New field number_on_target.
11400         * breakpoint.c (create_tracepoint_from_upload): New function.
11401         (get_tracepoint_by_number_on_target): New function.
11402         * remote.c (struct remote): New field disconnected_tracing.
11403         (remote_disconnected_tracing_feature): New function.
11404         (remote_protocol_features): Add DisconnectedTracing.
11405         (struct uploaded_tp): New struct.
11406         (uploaded_tps): New global.
11407         (get_uploaded_tp): New function.
11408         (find_matching_tracepoint): New function.
11409         (remote_get_tracing_state): New function.
11410         (remote_start_remote): Call it.
11411         * tracepoint.c (disconnected_tracing): New global.
11412         (trace_start_command): Initialize number_on_target.
11413         (stop_tracing): New function, split out from...
11414         (trace_stop_command): Call stop_tracing.
11415         (get_trace_status): New function, split out from...
11416         (trace_status_command): Call get_trace_status, add info on
11417         disconnection behavior.
11418         (disconnect_or_stop_tracing): New function.
11419         (finish_tfind_command): Translate from number on target.
11420         (trace_find_tracepoint_command): Translate to number on target.
11421         (send_disconnected_tracing_value): New function.
11422         (set_disconnected_tracing): New function.
11423         (_initialize_tracepoint): Add disconnected-tracing variable.
11424         * NEWS: Mention disconnected tracing.
11425
11426 2010-01-06  Tristan Gingold  <gingold@adacore.com>
11427
11428         * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11429         parameter to main_objfile.  Iterate on all separate debug objfiles.
11430         * symfile.h (symbol_file_add_separate)
11431         (find_separate_debug_file_by_debuglink): Remove parameter names.
11432         * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11433         (reread_symbols): Use free_objfile_separate_debug.
11434         * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11435         Adjust comment.
11436         (objfile_separate_debug_iterate, add_separate_debug_objfile)
11437         (free_objfile_separate_debug): New prototypes.
11438         * objfiles.c (objfile_separate_debug_iterate): New function.
11439         (add_separate_debug_objfile, free_objfile_separate_debug): New
11440         functions.
11441         (free_objfile): Use free_objfile_separate_debug.  Adjust for
11442         multiple separate debug objfile.
11443         (objfile_has_symbols): Adjust comment.  Iterate on all separate
11444         debug objfiles.
11445         * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11446         debug objfile.
11447         (lookup_minimal_symbol_text): Ditto.
11448         (lookup_minimal_symbol_by_pc_name): Ditto.
11449         (lookup_minimal_symbol_solib_trampoline): Ditto.
11450         (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11451         debug objfiles.
11452
11453 2010-01-05  Stan Shebs  <stan@codesourcery.com>
11454
11455         Add fast tracepoints.
11456         * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11457         * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11458         * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11459         * breakpoint.c (tracepoint_type): New function.
11460         (ALL_TRACEPOINTS): Use it.
11461         (should_be_inserted): Ditto.
11462         (bpstat_check_location): Ditto.
11463         (print_one_breakpoint_location): Ditto.
11464         (user_settable_breakpoint): Ditto.
11465         (set_breakpoint_location_function): Ditto.
11466         (disable_breakpoints_in_shlibs): Ditto.
11467         (delete_trace_command): Ditto.
11468         (print_it_typical): Add bp_fast_tracepoint case.
11469         (bpstat_what): Ditto.
11470         (print_one_breakpoint_location): Ditto.
11471         (allocate_bp_location): Ditto.
11472         (mention): Ditto.
11473         (breakpoint_re_set_one): Ditto.
11474         (disable_command): Ditto.
11475         (enable_command): Ditto.
11476         (check_fast_tracepoint_sals): New function.
11477         (break_command_really): Call it.
11478         (ftrace_command): New function.
11479         (_initialize_breakpoint): Add ftrace command.
11480         * gdbarch.sh (fast_tracepoint_valid_at): New.
11481         * gdbarch.h, gdbarch.c: Regenerate.
11482         * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11483         (i386_gdbarch_init): Use it.
11484         * remote.c (struct remote_state): New field fast_tracepoints.
11485         (PACKET_FastTracepoints): New packet config type.
11486         (remote_fast_tracepoint_feature): New function.
11487         (remote_protocol_features): Add FastTracepoints.
11488         (remote_supports_fast_tracepoints): New function.
11489         (_initialize_remote): Add FastTracepoints.
11490         * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11491         * NEWS: Mention fast tracepoints.
11492
11493 2010-01-06  Joel Brobecker  <brobecker@adacore.com>
11494
11495         * gdb-gdb.py: New file.
11496
11497 2010-01-05  Michael Snyder  <msnyder@vmware.com>
11498
11499         * infrun.c (handle_inferior_event): Fix typo in comment.
11500
11501 2010-01-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
11502
11503         * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11504
11505 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11506
11507         * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11508         and s390x-linux64.
11509         (s390-linux32-expedite): Define.
11510         (s390-linux64-expedite): Define.
11511         (s390x-linux64-expedite): Define.
11512         * features/s390-acr.xml: New file.
11513         * features/s390-fpr.xml: New file.
11514         * features/s390-core32.xml: New file.
11515         * features/s390-core64.xml: New file.
11516         * features/s390x-core64.xml: New file.
11517         * features/s390-linux32.xml: New file.
11518         * features/s390-linux64.xml: New file.
11519         * features/s390x-linux64.xml: New file.
11520         * features/s390-linux32.c: New generated file.
11521         * features/s390-linux64.c: New generated file.
11522         * features/s390x-linux64.c: New generated file.
11523
11524         * regformats/s390-linux32.dat: New generated file.
11525         * regformats/s390-linux64.dat: New generated file.
11526         * regformats/s390x-linux64.dat: New generated file.
11527         * regformats/reg-s390.dat: Remove.
11528         * regformats/reg-s390x.dat: Remove.
11529
11530         * s390-nat.c: Include "auxv.h" and <elf.h>.
11531         (HWCAP_S390_HIGH_GPRS): Define if undefined.
11532         (s390_target_wordsize): New function.
11533         (s390_auxv_parse): Likewise.
11534         (s390_get_hwcap): Likewise.
11535         (s390_read_description): Likewise.
11536         (_initialize_s390_nat): Install s390_auxv_parse and
11537         s390_read_description.
11538
11539         * s390-tdep.c: Include "features/s390-linux32.c",
11540         "features/s390-linux64.c", and "features/s390x-linux64.c".
11541         (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11542         (s390_register_call_saved): New function.
11543         (s390_register_name): Remove.
11544         (s390_register_type): Remove.
11545         (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11546         (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11547         (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11548         (s390_pseudo_register_name): New function.
11549         (s390_pseudo_register_type): New function.
11550         (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11551         Handle full GPR pesudos and varying pseudo register numbers.
11552         (s390_pseudo_register_write): Likewise
11553         (s390x_pseudo_register_read): Remove.
11554         (s390x_pseudo_register_write): Likewise.
11555         (s390_register_group): Remove.
11556         (s390_pseudo_register_group): New function.
11557         (s390_regmap_gregset): Add GPR upper halves.
11558         (s390x_regmap_gregset): Likewise.
11559         (s390_regmap_fpregset): Likewise.
11560         (s390_regmap_upper): New global variable.
11561         (s390_upper_regset): New global variable.
11562         (s390_upper_regset_sections): New global variable.
11563         (s390_regset_from_core_section): Handle GPR upper halves.
11564         (s390_core_read_description): New function.
11565         (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11566         register information.  Handle varying pseudo register numbers.
11567         (s390_backchain_frame_unwind_cache): Likewise.
11568         (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11569         (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11570         (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11571         PC and CC pseudos.  Unwind upper halves and full GPRs as appropriate.
11572         Handle varying pseudo register numbers.
11573         (s390_unwind_pc): Handle varying pseudo register numbers.
11574         (s390_dwarf2_prev_register): New function.
11575         (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11576         register information.  Handle varying pseudo register numbers.
11577         Install s390_dwarf2_prev_register to unwind full GPRs.
11578         (s390_gdbarch_init): Handle target descriptions.  Assign varying
11579         pseudo register numbers.  Install s390_adjust_frame_regnum.
11580         (_initialize_s390_tdep): Initialize target descriptions.
11581
11582         * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11583         (S390_NUM_REGS): Redefine to include upper half registers.
11584         (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11585         (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11586         (tdesc_s390_linux32): Add declaration.
11587         (tdesc_s390_linux64): Likewise.
11588         (tdesc_s390x_linux64): Likewise.
11589
11590 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11591
11592         * regset.h (struct core_regset_section): Add HUMAN_NAME.
11593         * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11594         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11595         (ppc_linux_vmx_regset_sections): Likewise.
11596         (ppc_linux_fp_regset_sections): Likewise.
11597
11598         * corelow.c (get_core_register_section): Constify arguments.
11599         (get_core_registers): Use gdbarch_core_regset_sections instead
11600         of hard-coded platform-specific register section names.
11601
11602 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11603
11604         * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11605         a register, assume the least-significant part is used.
11606         (write_pieced_value): Likewise.
11607
11608 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11609
11610         * printcmd.c: Include "arch-utils.h".
11611         (do_one_display): Re-parse expression if current architecture changed.
11612
11613 2010-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11614             Joel Brobecker  <brobecker@adacore.com>
11615
11616         * gdbtypes.c (check_typedef): New comment on type length.
11617         * value.c (allocate_value_lazy): Remove the unused atype variable.  New
11618         comment on type length.
11619         (value_primitive_field): Keep the original TYPE value, new comment.
11620
11621 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11622
11623         * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11624         p_start.  Change != comparisons to > and < comparisons.
11625
11626 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11627
11628         * cli/cli-script.c (process_next_line): Check P2 overrun.
11629
11630 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
11631
11632         Update the copyright hearder to add year 2010 for most GDB files.
11633
11634 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
11635
11636         Fix build failure in inf-ptrace.c.
11637         * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11638
11639 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
11640
11641         * top.c (print_gdb_version): Update copyright year.
11642
11643 2010-01-01, 10  Joel Brobecker  <brobecker@adacore.com>
11644
11645         Fix break *FUN'address thread NUM.
11646         * ada-lex.l (task): Expand rule to also match the thread keyword.
11647
11648 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
11649
11650         Fix break *FUN'address task NUM.
11651         * ada-lex.l (task): New rule.
11652         * ada-lang.c (valid_task_id): Make sure the Ada task list has
11653         been built before using it.
11654
11655 For older changes see ChangeLog-2009.
11656 \f
11657 Local Variables:
11658 mode: change-log
11659 left-margin: 8
11660 fill-column: 74
11661 version-control: never
11662 coding: utf-8
11663 End: