gdb/
[external/binutils.git] / gdb / ChangeLog
1 2010-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2
3         Code cleanup.
4         * dictionary.c
5         (struct dict_vector) <iter_match_first, iter_match_next>
6         (iter_match_first_hashed, iter_match_next_hashed)
7         (iter_match_first_linear, iter_match_next_linear)
8         (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
9         (iter_match_next_hashed, iter_match_first_linear)
10         (iter_match_next_linear): Use symbol_compare_ftype.
11         * dictionary.h: Include symfile.h.
12         (dict_iter_match_first, dict_iter_match_next): Use
13         symbol_compare_ftype.
14         * dwarf2read.c (dw2_map_matching_symbols): Likewise.
15         * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
16         (map_matching_symbols_psymtab): Likewise.
17         * symfile.h (symbol_compare_ftype): New typedef.
18         (struct quick_symbol_functions) <map_matching_symbols): Use
19         symbol_compare_ftype.
20
21 2010-11-23  Tom Tromey  <tromey@redhat.com>
22
23         * configure: Rebuild.
24         * configure.ac (READLINE_TEXI_INCFLAG): New subst.
25
26 2010-11-19  Tom Tromey  <tromey@redhat.com>
27
28         * Makefile.in (SUBDIRS): Add doc.
29         * configure: Rebuild.
30         * configure.ac: Don't configure in doc.  Create doc/Makefile.
31
32 2010-11-23  Phil Muldoon  <pmuldoon@redhat.com>
33
34         PR python/12212
35
36         * python/py-inferior.c (find_thread_object): Check if PIDGET
37         returns 0.
38
39 010-11-22  Joel Brobecker  <brobecker@adacore.com>
40
41         * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
42
43 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
44
45         * ada-lang.c (ada_to_fixed_type): Expand function documentation.
46         Return the original type if the main type portions match rather
47         than when the type themselves match.
48
49 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
50
51         * ada-lang.c (ada_template_to_fixed_record_type_1):
52         For dynamic fields, check the field size against the maximum
53         object size.
54
55 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
56
57         * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
58         function.
59         (mips_irix_n32_stack_tramp_frame): New static global.
60         (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
61         list of unwinder.
62
63 2010-11-22  Jerome Guitton  <guitton@adacore.com>
64
65         * ada-tasks.c (get_tcb_types_info): Use C lookups to get
66         ATCB symbols.
67
68 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
69
70         * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
71         if type1 is a typedef.
72
73 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
74
75         * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
76         "_finalizer" to the list.
77
78 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
79
80         * symfile.c: Remove all "#if 0"/"#endif" blocks.
81
82 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
83
84         * symfile.c: Add missing second space after period in various comments.
85
86 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
87
88         * ada-typeprint.c (print_array_type): Fix formatting in comment.
89         (print_selected_record_field_types): Fix formatting in function
90         documentation.
91
92 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
93
94         * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
95         in name of "show ravenscar" prefix command name.
96
97 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
98
99         * ravenscar-thread.c (show_ravenscar_task_switching_command):
100         Add missing '\n' in output.
101
102 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
103
104         * ravenscar-thread.c (running_thread_name): Change value.
105         (read_thread_id): Remove advance declaration.
106         (get_running_thread_msymbol): New function.
107         (has_ravenscar_runtime): Use get_running_thread_msymbol to
108         compute msym_running_thread.
109         (get_running_thread_id): Renames read_thread_id. Slight modifications
110         to not take any argument anymore, using get_running_thread_msymbol
111         to determine which symbol to use instead.
112         (ravenscar_running_thread): Use get_running_thread_id instead of
113         read_thread_id.
114
115 2010-11-22  Joel Brobecker  <brobecker@adacore.com>
116
117         * ravenscar-sparc-thread.c (supply_register_at_address):
118         Fix passing of buf in call to regcache_raw_supply.
119
120 2010-11-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
121
122         * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
123
124 2010-11-22  Tom Tromey  <tromey@redhat.com>
125
126         * Makefile.in (.PRECIOUS): Reference ada-lex.c.
127
128 2010-11-19  Keith Seitz  <keiths@redhat.com>
129
130         * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
131         Remove extraneous '/' after $(DESTDIR).
132         (PYTHON_INSTALL_DIR): Likewise.
133
134 2010-11-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
135
136         Fix stale memory references.
137         * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
138         xfree, new comment.
139
140 2010-11-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
141             Tom Tromey  <tromey@redhat.com>
142
143         * Makefile.in (.y.c): Directly create $@ from YLWRAP.
144         (.PHONY): Remove for .y outputs.
145
146 2010-11-19  Will Drewry  <wad@google.com>
147             Tavis Ormandy  <taviso@google.com>
148             Jan Kratochvil  <jan.kratochvil@redhat.com>
149
150         * dwarf2read.c (decode_locdesc): Enforce location description stack
151         boundaries.
152
153 2010-11-18  Pierre Muller  <muller@ics.u-strasbg.fr>
154
155         * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
156         instruction is found.
157
158 2010-11-17  Tom Tromey  <tromey@redhat.com>
159
160         * value.c (value_entirely_optimized_out): Check the
161         'check_any_valid' field.
162
163 2010-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
164
165         * ada-lang.c (modify_general_field): Remove.
166         (make_array_descriptor): Replace all modify_general_field calls by
167         modify_field.
168         * value.c (modify_field): Update comment.  New variable bytesize.
169         Normalize BITPOS.  Initialize BYTESIZE, use it.
170
171 2010-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
172
173         * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
174         elements after xfree.
175
176 2010-11-16  Tom Tromey  <tromey@redhat.com>
177
178         * gdb-add-index.sh: Really remove.
179
180 2010-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
181
182         Code cleanup.
183         * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
184         (init_one_comp_unit): ... this one.
185         (prepare_one_comp_unit): New prototype.
186         (dw2_require_line_header, process_psymtab_comp_unit): Use
187         init_one_comp_unit.
188         (process_psymtab_comp_unit): Use prepare_one_comp_unit.
189         (load_partial_comp_unit): Remove variable attr.  Use
190         init_one_comp_unit with xmalloc.  Use prepare_one_comp_unit.
191         (load_full_comp_unit): Use init_one_comp_unit with xmalloc.  Use
192         prepare_one_comp_unit.
193         (read_signatured_type): Remove variable attr.  Use init_one_comp_unit.
194         Use prepare_one_comp_unit.
195         (alloc_one_comp_unit): Rename to ...
196         (init_one_comp_unit): ... here and remove there calloc, new parameter
197         cu.
198         (prepare_one_comp_unit): New function.
199
200 2010-11-14  Pierre Muller  <muller@ics.u-strasbg.fr>
201
202         * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
203         possible used of uninitialized variable.
204
205 2010-11-12  Nathan Froyd  <froydnj@codesourcery.com>
206
207         * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
208         (rs6000_gdbarch_init): Call it.
209
210 2010-11-12  Nathan Froyd  <froydnj@codesourcery.com>
211
212         * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
213         instructions if debugging an E500 binary.
214
215 2010-11-12  Tom Tromey  <tromey@redhat.com>
216
217         * varobj.c (value_get_print_value): Rearrange.  Pass stream to
218         apply_varobj_pretty_printer.
219         * c-lang.c: Include exceptions.h.
220         (c_get_string): Throw MEMORY_ERROR when appropriate.
221         * python/py-prettyprint.c (enum string_repr_result): New.
222         (print_stack_unless_memory_error): New function.
223         (print_string_repr): Change return type.  Use
224         print_stack_unless_memory_error.
225         (print_children): Use print_stack_unless_memory_error.
226         (apply_val_pretty_printer): Update.  Don't print children if
227         string representation threw an exception.
228         (apply_varobj_pretty_printer): Add 'stream' argument.  Use
229         print_stack_unless_memory_error.
230         * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
231         globals.
232         (_initialize_python): Initialize them.
233         * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
234         gdbpy_convert_exception.
235         (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
236         (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
237         (gdbpy_convert_exception): Declare.
238         (apply_varobj_pretty_printer): Update.
239         * python/py-utils.c (gdbpy_convert_exception): New function.
240
241 2010-11-12  Marc Khouzam  <marc.khouzam@ericsson.com>
242
243         * mi/mi-main.c (mi_cmd_target_detach): Accept new
244         thread-group id format.
245
246 2010-11-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
247
248         * spu-tdep.c (spu_catch_start): Fix compilation error typo.
249
250 2010-11-11  Phil Muldoon  <pmuldoon@redhat.com>
251
252         * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
253         NULL.
254         (BPPY_SET_REQUIRE_VALID): Ditto.
255         (bpnum_is_valid): Delete function.
256         (bppy_get_visibility): New function.
257         (bppy_new): Parse for, and validate internal keyword.  Pass
258         internal keyword to breakpoint or watchpoint functions.
259         (build_bp_list): New function.
260         (gdbpy_breakpoints): Rewrite.  Use build_bp_list and
261         iterate_over_breakpoints.
262         (gdbpy_breakpoint_created): Rewrite.  Do not store breakpoints in a
263         look-aside vector.
264         (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
265         to internal breakpoint chain.
266
267         * breakpoint.c (set_breakpoint_number): New function.
268         (breakpoint_1): Check if breakpoint number is more than zero.
269         (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
270         (create_breakpoint_sal): Take a new parameter called internal.
271         Call set_breakpoint_number with internal parameter.  Do not
272         mention internal breakpoints.  All callers updated.
273         (create_breakpoint): Ditto.
274         (create_breakpoints_sal): Ditto.
275         (watch_command_1): Ditto.
276         (watch_command_wrapper): Take a new parameter called internal.
277         All callers updated.
278         (rwatch_command_wrapper): Ditto.
279         (awatch_command_wrapper): Ditto.
280         (save_breakpoints): Update breakpoint save condition check.
281         (iterate_over_breakpoints): New function.
282         * breakpoint.h: Add conditional python includes.  Add py_bp_object
283         and comment to struct breakpoint.  Update all callers.
284         * defs.h: Add PyObject definition for GDB builds without Python.
285
286 2010-11-10  Doug Evans  <dje@google.com>
287
288         * python/lib/gdb/command/pretty_printers.py
289         (do_enable_pretty_printer_1): Handle printer.subprinters is None.
290
291         * value.c (set_value_enclosing_type): Renamed from
292         value_change_enclosing_type.  All callers updated.
293         * value.h (set_value_enclosing_type): Update.
294         * valops.c (value_full_object): Always return a copy if we need to
295         make changes to the input value.
296
297 2010-11-09  Pedro Alves  <pedro@codesourcery.com>
298
299         * breakpoint.c (watch_command_1): Get a pointer of the lazy
300         version of the expression's value, even if reading the value from
301         memory fails.  When creating a -location watchpoint, get the
302         value's address from the lazy value pointer.
303
304 2010-11-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
305
306         * infrun.c (restore_inferior_thread_state): Use
307         discard_inferior_thread_state to free the data.
308         (discard_inferior_thread_state): xfree also siginfo_data.
309
310 2010-11-05  Doug Evans  <dje@google.com>
311
312         Make gdb.parameter("directories") work.
313         New command "set directories".
314         * NEWS: Document them.
315         * source.c (set_directories_command): New function.
316         (show_directories_1): Renamed from show_directories.
317         All callers updated.
318         (show_directories_command): New function.
319         (_initialize_source): Install "directories" as a set/show
320         variable instead of just a show command.
321
322 2010-11-05  Ken Werner  <ken.werner@de.ibm.com>
323
324         * NEWS: Mention OpenCL C language support.
325         * Makefile.in (SFILES): Add opencl-lang.c.
326         (COMMON_OBS): Add opencl-lang.o.
327         * opencl-lang.c: New File
328         * defs.h (enum language): Add language_opencl.
329         * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
330         IBM XL C OpenCL compiler.
331         * c-lang.h: Include "parser-defs.h".
332         (evaluate_subexp_c): Declare.
333         * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
334         (c_op_print_tab): Add declaration.
335         * eval.c (binop_promote): Handle language_opencl.
336         * c-exp.y: Lookup the primitive types instead of referring to the
337         builtins.
338
339 2010-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
340
341         Fix configure --enable-plugins --without-python.
342         * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
343         * configure: Regenerate.
344
345 2010-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
346
347         * solib.c (solib_read_symbols): Call exception_fprintf even without
348         FROM_TTY.  Print also so->so_name.
349
350 2010-11-04  Sami Wagiaalla  <swagiaal@redhat.com>
351
352         * gdbtypes.h (struct rank): Created subrank.
353         * gdbtypes.c: Initialized subrank for all
354         'BADNESS' constants.
355         (distance_to_ancestor): New function.
356         (is_ancestor): Use distance_to_ancestor.
357         (is_public_ancestor): Ditto.
358         (sum_ranks): Handle subrank.
359         (compare_ranks): Ditto.
360         (rank_one_type): Subrank base conversions.
361
362 2010-11-04  Sami Wagiaalla  <swagiaal@redhat.com>
363
364         * gdbtypes.h: Create struct rank.
365         Convert all 'BADNESS' macros to const struct rank declarations.
366         (sum_ranks): New function.
367         (compare_ranks): New function.
368         * valops.c (find_oload_champ): Updated.
369         (classify_oload_match): Use compare_ranks.
370         Improved comments.
371         (compare_parameters): Use compare_ranks.
372         * gdbtypes.c: Initialize 'BADNESS' constants.
373         (sum_ranks): New function.
374         (compare_ranks): New function.
375         (compare_badness): Use compare_ranks.
376         (rank_function): Use global constants instead of literals.
377         (rank_one_type): Ditto.
378         Return struct rank.
379         Use sum_ranks.
380
381 2010-11-04  Doug Evans  <dje@google.com>
382
383         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
384         (find_pretty_printer): Fix comments.
385
386 2010-11-04  Hui Zhu  <teawater@gmail.com>
387
388         * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
389
390 2010-11-03  Joel Brobecker  <brobecker@adacore.com>
391
392         * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
393         and `len' declaration and computation inside block where they
394         are being used.
395
396 2010-11-03  Joel Brobecker  <brobecker@adacore.com>
397
398         * valprint.c (val_print_array_elements): Put back handling of
399         empty arrays.
400
401 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
402
403         * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
404         DIE and set the length of the type.
405         * gdbtypes.h (get_array_bounds): Move here from valprint.h.
406         * gdbtypes.c (get_array_bounds): Move here from valprint.c and
407         return 0 if the corresponding bounds of the type are undefined.
408         * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
409         * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
410         (val_print_array_elements): Use get_array_bounds to compute the number
411         of array elements instead of dividing the length of the array by the
412         length of the element types.
413         * valarith.c (vector_binop): Likewise.
414         * valops.c (value_cast): Likewise.
415         * c-valprint.c (c_val_print): Likewise.
416         * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
417
418 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
419
420         * valarith.c (value_pos, value_neg, value_complement): Handle
421         vector types.
422         * valops.c (value_one): Likewise.
423
424 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
425
426         * value.h (value_non_lval): Declare.
427         * value.c (value_non_lval): New function.
428         * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
429         UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
430         non-lvalue.
431
432 2010-11-02  Doug Evans  <dje@google.com>
433
434         New python module gdb.printing, and new commands info pretty-printer,
435         enable pretty-printer, disable pretty-printer.
436         * NEWS: Mention them.
437         * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
438         gdb/command/__init__.py, gdb/command/pretty_printers.py.
439         * python/lib/gdb/__init__.py: Install pretty-printer commands.
440         * python/lib/gdb/printing.py: New file.
441         * python/lib/gdb/command/__init__.py: New file.
442         * python/lib/gdb/command/pretty_printers.py: New file.
443
444 2010-11-02  Tom Tromey  <tromey@redhat.com>
445
446         * NEWS: Mention Guile removal.
447         * defs.h (enum language) <language_scm>: Remove.
448         * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
449         scm-valprint.c.
450         (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
451         (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
452         * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
453         Remove.
454
455 2010-11-02  Doug Evans  <dje@google.com>
456
457         * top.c: #include "python/python.h".
458         (gdb_init): Add a comment regarding initialize_all_files.
459         Call finish_python_initialization at the end.
460         * python/python.h (finish_python_initialization): Declare.
461         * python/python.c (finish_python_initialization): New function.
462         (_initialize_python): Move python-implemented initialization there
463         and call it.
464         (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
465
466 2010-11-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
467
468         Revert:
469         2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
470                     Pedro Alves  <pedro@codesourcery.com>
471         * gdbthread.h (currently_stepping): New declaration.
472         * infrun.c (currently_stepping): Remove the forward declaration.
473         (currently_stepping): Make it global.
474         * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
475         variables tp and step, initialized them.  Pass STEP to to_resume.
476         Print also possibly "PTRACE_SINGLESTEP" if STEP.  Initialize LP->STEP.
477         * remote.c (currently_stepping_callback): New.
478         (remote_vcont_resume)
479         <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
480         New variable tp.  Call currently_stepping_callback and step such
481         thread.
482
483 2010-11-01  Hui Zhu  <teawater@gmail.com>
484
485         * tracepoint.c (tfile_xfer_partial): Change lma to vma.
486
487 2010-10-28  Hui Zhu  <teawater@gmail.com>
488
489         * tracepoint.c (trace_save): Change utp->actions to
490         utp->step_actions.
491
492 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
493
494         * (_FILE_OFFSET_BITS): Fix typo in comment.
495
496 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
497
498         * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
499         (PyEval_InitThreads): Remove duplicate. Define as nothing.
500         (PyEval_ReleaseLock): Define as nothing.
501
502 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
503
504         * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
505         by call to FILENAME_CMP.
506
507 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
508
509         * dictionary.c (dict_hash): Move assignment out of if condition.
510
511 2010-10-22  Jie Zhang  <jie@codesourcery.com>
512
513         * Makefile.in (install): Remove dependency of install-only and
514         recursively invoke make for install-only.
515         * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
516         (install): Pass FLAGS_TO_PASS when recursively make install-only.
517
518 2010-10-20  Hui Zhu  <teawater@gmail.com>
519
520         * tracepoint.c (tfile_get_traceframe_address): Call
521         extract_signed_integer.
522         (tfile_trace_find): Call extract_signed_integer and
523         extract_unsigned_integer.  Change data_size to unsigned int.
524         (tfile_fetch_registers): Call extract_unsigned_integer.
525         (tfile_xfer_partial): Ditto.
526         (tfile_get_trace_state_variable_value): Call
527         extract_signed_integer and extract_unsigned_integer.
528
529 2010-10-20  Vladimir Prus  <vladimir@codesourcery.com>
530
531         * remote.c (remote_get_threadlist): If we got empty
532         response, bail out immediately, and don't emit any
533         warnings.
534
535 2010-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
536
537         * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
538         for "mov pc, REG" as well.
539         (thumb_instruction_changes_pc): Likewise.
540
541 2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>
542
543          PR C++/11500:
544         * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
545         * eval.c (evaluate_subexp_standard): Check for overload of
546         'operator->'.
547         * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
548         (value_x_unop): Ditto.
549         * valops.c: Include "exceptions.h".
550         (find_overload_match): Throw NOT_FOUND_ERROR.
551         (value_struct_elt): Ditto.
552
553 2010-10-19  Tom Tromey  <tromey@redhat.com>
554
555         * python/py-cmd.c (cmdpy_function): Unreference exception state.
556
557 2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>
558
559         * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
560         * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
561         for conversion.
562         Make all other conversions illegal.
563
564 2010-10-18  Doug Evans  <dje@google.com>
565
566         * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
567         assumptions of when this case happens.  Print "<unnamed typedef>".
568
569 2010-10-18  Tom Tromey  <tromey@redhat.com>
570
571         * valprint.c (val_print_string): Pass 'encoding' to
572         LA_PRINT_STRING.
573
574 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
575
576         Fix the `stopped language detection' testcase for gcc-4.5.
577         * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
578         * symfile.c (set_initial_language): Move variable filename to a more
579         inner block.  Prefer LANGUAGE_OF_MAIN.
580         * symtab.c (language_of_main): New variable.
581         (set_main_name): Always reset LANGUAGE_OF_MAIN.
582         * symtab.h (language_of_main): New declaration.
583
584 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
585             Pedro Alves  <pedro@codesourcery.com>
586
587         * gdbthread.h (currently_stepping): New declaration.
588         * infrun.c (currently_stepping): Remove the forward declaration.
589         (currently_stepping): Make it global.
590         * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
591         variables tp and step, initialized them.  Pass STEP to to_resume.
592         Print also possibly "PTRACE_SINGLESTEP" if STEP.  Initialize LP->STEP.
593         * remote.c (currently_stepping_callback): New.
594         (remote_vcont_resume)
595         <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
596         New variable tp.  Call currently_stepping_callback and step such
597         thread.
598
599 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
600
601         * infrun.c (follow_exec): Replace symbol_file_add_main by
602         symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
603         breakpoint_re_set.
604         * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
605         clear_symtab_users.
606         * objfiles.c (free_all_objfiles): Likewise.
607         * remote-m32r-sdi.c (m32r_load): Likewise.
608         * solib-som.c (som_solib_create_inferior_hook): Likewise.
609         * symfile.c (new_symfile_objfile): New comment for add_flags.  Call
610         clear_symtab_users with ADD_FLAGS.
611         (reread_symbols): Use parameter 0 for clear_symtab_users.
612         (clear_symtab_users): New parameter add_flags.  Do not call
613         breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
614         (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
615         * symtab.h (clear_symtab_users): New parameter add_flags.
616
617 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
618
619         Fix GCC false warning.
620         * varobj.c (value_get_print_value) <str_addr>: Initialize it.
621
622 2010-10-16  Pierre Muller  <muller@ics.u-strasbg.fr>
623
624         * p-typeprint.c (pascal_type_print_method_args): Fix problem in
625         display of type of method arguments.
626
627 2010-10-15  Tom Tromey  <tromey@redhat.com>
628
629         PR python/11948:
630         * varobj.c (value_get_print_value): Use val_print_string to print
631         lazy strings.
632         * python/py-prettyprint.c (print_string_repr): Use
633         val_print_string to print lazy strings.  Fix cleanup logic.
634         (print_children): Likewise.
635         * python/python-internal.h (gdbpy_extract_lazy_string): Update.
636         * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
637         Change return type to 'void', add 'addr' argument.
638         * value.h (val_print_string): Update.
639         * valprint.c (val_print_string): Add 'encoding' argument.
640         * printcmd.c (print_formatted): Update.
641         * p-valprint.c (pascal_val_print): Update.
642         * m2-valprint.c (print_unpacked_pointer): Update.
643         (m2_print_array_contents): Likewise.
644         * jv-valprint.c (java_value_print): Update.
645         * f-valprint.c (f_val_print): Update.
646         * c-valprint.c (c_val_print): Update.
647         * auxv.c (fprint_target_auxv): Update.
648
649 2010-10-15  Doug Evans  <dje@google.com>
650             Jan Kratochvil  <jan.kratochvil@redhat.com>
651
652         PR exp/12117
653         * gdbtypes.c (check_typedef): Clean up function comment.
654         Keep track of instance flags as we strip typedefs and create a new
655         type to preserve them if necessary.
656         * gdbtypes.h (type) <instance_flags>: Extend the comment.
657
658 2010-10-15  Pierre Muller  <muller@ics.u-strasbg.fr>
659
660         * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
661
662 2010-10-14  Sami Wagiaalla  <swagiaal@redhat.com>
663
664         * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
665         * gdbtypes.c (rank_one_type): Move type comparison code out of here
666         to...
667         (types_equal): ...here. And changed it as follows:
668         Outside of typedefs type must be of the same TYPE_CODE.
669         When compairing two pointers or references they are equal if their
670         targets are equal.
671         Correct pointer conversions.
672
673 2010-10-14  Pierre Muller  <muller@ics.u-strasbg.fr>
674
675         * p-lang.c (is_pascal_string_type): Avoid crashes on structures
676         having fields without names.
677
678 2010-10-13  Tom Tromey  <tromey@redhat.com>
679
680         * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
681
682 2010-10-13  Doug Evans  <dje@google.com>
683
684         New python module gdb.types.
685         * NEWS: Document it.
686         * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
687         * python/lib/gdb/types.py: New file.
688
689         * c-typeprint.c: Whitespace cleanup.
690         (cp_type_print_method_args): Remove unnecessary forward decl.
691         (cp_type_print_derivation_info): Ditto.
692         (c_type_print_varspec_prefix): Mark as static at definition.
693         (c_type_print_modifier): Fix arg descriptions.
694
695 2010-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
696
697         * python/py-breakpoint.c (bppy_set_condition): New comment.
698         * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
699         failed PyUnicode_Decode.
700         (cmdpy_completer): Skip element for failed
701         python_string_to_host_string.
702         (cmdpy_init): Return -1 on failed python_string_to_host_string.
703         * python/py-frame.c (frapy_read_var): Extend the function comment.
704         * python/py-function.c (fnpy_init): Return -1 on failed
705         python_string_to_host_string.
706         * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
707         the function comment.
708         (infpy_search_memory): Extend the function comment.  Remove the
709         PyErr_SetString call on already set error state.
710         * python/py-param.c (set_parameter_value): Extend the function
711         comment.  Return -1 on failed python_string_to_host_string, twice.
712         (set_attr): Extend the function comment.
713         (compute_enum_values): Extend the function comment.  New variable
714         back_to.  Protect self->enumeration by BACK_TO cleanups.  Return 0 on
715         failed python_string_to_host_string.
716         (get_doc_string): Call gdbpy_print_stack on failed
717         python_string_to_host_string.
718         (parmpy_init): Extend the function comment.
719         * python/py-prettyprint.c (pretty_print_one_value): Likewise.
720         (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
721         failed python_string_to_host_string.
722         * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
723         (valpy_binop, valpy_richcompare): Extend the function comment.
724         * python/python.c
725         (struct python_env) <error_type, error_value, error_traceback>: New
726         fields.
727         (restore_python_env): Handle PyErr_Occurred.  Call PyErr_Restore.
728         (ensure_python_env): Call PyErr_Fetch.
729         * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
730         failed convert_value_from_python.
731         (value_get_print_value): Call gdbpy_print_stack on failed
732         python_string_to_target_python_string.
733
734 2010-10-12  Tom Tromey  <tromey@redhat.com>
735
736         * python/py-prettyprint.c (search_pp_list): Fix error checking.
737
738 2010-10-12  Sami Wagiaalla  <swagiaal@redhat.com>
739
740         * gdbtypes.c (do_is_ancestor): New function.
741         (is_ancestor): Use do_is_ancestor.
742         (is_public_ancestor): Use do_is_ancestor.
743
744 2010-10-12  Pierre Muller  <muller@ics.u-strasbg.fr>
745
746         * ser-go32.c (struct dos_ops): Add missing fdopen field.
747
748 2010-10-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
749
750         * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
751
752 2010-10-11  Doug Evans  <dje@google.com>
753
754         * c-typeprint.c (c_type_print_modifier): Add note that this prints
755         the address space id too.
756
757 2010-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
758
759         Fix attaching to re-prelinked executables on ppc64.
760         * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
761         initialize it, try to adjust FILESZ field by it.
762
763 2010-10-08  Daniel Jacobowitz  <dan@codesourcery.com>
764
765         * tracepoint.c (merge_uploaded_trace_state_variables): Only print
766         messages if info_verbose.
767
768 2010-10-08  Ken Werner  <ken.werner@de.ibm.com>
769
770         * valops.c (value_cast): Handle vector types.
771         * valarith.c (value_binop): Widen scalar to vector if appropriate.
772
773 2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
774
775         * arm-tdep.c (thumb_expand_immediate): New function.
776         (thumb_instruction_changes_pc): Likewise.
777         (thumb2_instruction_changes_pc): Likewise.
778         (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
779         prologue parsing.  Improved support for optimized code.
780         (thumb_scan_prologue): Do not reply on line-number information,
781         use same heuristics as arm_scan_prologue insead.
782         (skip_prologue_function): Accept functions
783         "__tls_get_addr" and "__aeabi_read_tp".
784
785 2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
786             Daniel Jacobowitz  <dan@codesourcery.com>
787
788         * arm-tdep.c (thumb_in_function_epilogue_p)
789         (arm_in_function_epilogue_p): New.
790         (arm_gdbarch_init): Install arm_in_function_epilogue_p as
791         gdbarch_in_function_epilogue_p callback.
792
793 2010-10-07  Doug Evans  <dje@google.com>
794
795         * cc-with-index.sh (output_file): Default to a.out.
796
797         * dwarf2read.c (mapped_index): Rename member index_table to
798         symbol_table and index_table_slots to symbol_table_slots.
799         All uses updated.
800         (create_symbol_hash_table): Renamed from create_index_table.
801         All callers updated.
802         (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
803         (write_hash_table): Rename local index_table to symbol_hash_table.
804
805         * addrmap.h (addrmap_foreach_fn): New typedef.
806         (addrmap_foreach): Declare.
807         * addrmap.c (struct addrmap_funcs): New member foreach.
808         (addrmap_foreach): New function.
809         (addrmap_fixed_foreach): New function.
810         (addrmap_fixed_funcs): Update.
811         (struct mutable_foreach_data): New struct.
812         (addrmap_mutable_foreach_worker): New function.
813         (addrmap_mutable_foreach): New function.
814         (addrmap_mutable_funcs): Update.
815
816 2010-10-07  Paul Hilfinger  <hilfinger@adacore.com>
817
818         * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
819         more cases.
820
821 2010-10-07  Paul Hilfinger  <hilfinger@adacore.com>
822
823         * ada-lang.c (full_match): Declare.
824         (ada_match_name): Rename to match_name (we should avoid prefixing static
825         symbols with "ada_").
826         (match_name): New name for ada_match_name.
827         (struct ada_psym_data): Remove and replace with...
828         (struct match_data): User data for map_matching_symbols.
829         (ada_add_psyms): Remove.
830         (aux_add_nonlocal_symbols): New function, used as callback for
831         map_matching_symbols.
832         (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
833         symbols.
834         (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
835         (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
836         Rework to use map_matching_symbols instead of map_ada_symtabs.
837         (ada_lookup_symbol_list): Use add_nonlocal_symbols.
838         * psymtab.c: Include dependency on dictionary.h.
839         (match_partial_symbol): New function.
840         (ada_lookup_partial_symbol): Remove.
841         (map_block): New function, auxiliary to map_matching_symbols_psymtab.
842         (map_matching_symbols_psymtab): New function.
843         (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
844         * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
845
846 2010-10-06  Paul Hilfinger  <hilfinger@adacore.com>
847
848         * ada-lang.c (ada_match_name): Use new API for wild_match.
849         (wild_match): Change API to be consistent with that of strcmp_iw;
850         return 0 for a match, and switch operand order.
851         (full_match): New function.
852         (ada_add_block_symbols): Use dict_iter_match_{first,next} for
853         matching to allow use of hashing.
854         * dictionary.c (struct dict_vector): Generalize iter_name_first,
855         iter_name_next ot iter_match_first, iter_match_next.
856         (iter_name_first_hashed): Replace with iter_match_first_hashed.
857         (iter_name_next_hashed): Replace with iter_match_next_hashed.
858         (iter_name_first_linear): Replace with iter_match_first_linear.
859         (iter_name_next_linear): Replace with iter_match_next_linear.
860         (dict_iter_name_first): Re-implement to use dict_iter_match_first.
861         (dict_iter_name_next): Re-implement to use dict_iter_match_next.
862         (dict_iter_match_first): New function.
863         (dict_iter_match_next): New function.
864         (dict_hash): New function.
865         * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
866         * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
867
868 2010-10-06  Doug Evans  <dje@google.com>
869
870         * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
871
872 2010-10-06  Ken Werner  <ken.werner@de.ibm.com>
873
874         * dwarf2read.c (read_tag_const_type): Handle const arrays.
875
876 2010-10-06  Doug Evans  <dje@google.com>
877
878         * Makefile.in (REQUIRED_SUBDIRS): New var.
879         (subdir_do): Verify required subdir Makefiles exist.
880
881         Create subdir data-directory.
882         * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
883         data-directory/Makefile.in.
884         (SUBDIRS): Add data-directory.
885         (all): Remove xml-syscall-copy dependency.
886         (xml-syscall-copy): Moved to data-directory/Makefile.in as
887         stamp-syscalls.
888         (xml-syscall-install): Moved to data-directory/Makefile.in as
889         install-syscalls.
890         (install-only): Remove xml-syscall-install dependency.
891         (all-data-directory): New rule.
892         (data-directory/Makefile): New rule.
893         * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
894         * configure: Regenerate.
895         * data-directory/Makefile.in: New file.
896         * python/lib/gdb/__init__.py: New file.
897
898 2010-10-06  Joel Brobecker  <brobecker@adacore.com>
899
900         Fix ARI warnings in advance_wild_match.
901         * ada-lang.c (advance_wild_match): Delete local variable t2.
902         Adjust code accordingly.  Minor reformatting.
903
904 2010-10-06  Ken Werner  <ken.werner@de.ibm.com>
905
906         * gdbtypes.h (struct main_type): Remove flag_nottext.
907         (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
908         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
909         (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
910         * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
911         of TYPE_FLAG_NOTTEXT.
912         (init_type): Remove the initialization of the flag_nottext field.
913         (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
914         TYPE_FLAG_NOTTEXT.
915         * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
916
917 2010-10-04  Doug Evans  <dje@google.com>
918
919         * cc-with-index.sh: New file.
920
921         * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
922         function comment.
923         (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
924         (create_cus_from_index, create_addrmap_from_index): Ditto.
925         (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
926         (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
927         (dw2_do_expand_symtabs_matching): Ditto.
928         (eq_strtab_entry, create_strtab, add_string): Ditto.
929         (hash_strtab_entry): Ditto.
930         (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
931         (create_index_table, create_mapped_symtab, find_slot): Ditto.
932         (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
933         (write_hash_table, add_address_entry, write_psymbols): Ditto.
934         (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
935         (write_psymtabs_to_index): Ditto.
936
937 2010-10-04  Joel Brobecker  <brobecker@adacore.com>
938
939         * ada-lang.c: #include "value.h".
940         (ensure_lval): Delete advance declaration.  Remove gdbarch and sp
941         arguments.  Implement using value_allocate_space_in_inferior
942         instead of allocating memory from the stack.
943         (make_array_descriptor): Remove gdbarch and sp parameters.  Update
944         calls to ensure_lval.
945         (ada_convert_actual): Remove gdbarch and sp parameters.  Update
946         calls to make_array_descriptor and ensure_lval.
947         * ada-lang.h (ada_convert_actual): Update declaration.
948         * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
949
950 2010-10-04  Doug Evans  <dje@google.com>
951
952         * python/python.c (_initialize_python): Define new function
953         GdbSetPythonDirectory in python.  Use it to update sys.path and
954         gdb.__path__.
955
956 2010-10-03  Paul Hilfinger  <hilfinger@adacore.com>
957
958         * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
959         incorporating and generalizing print_record_field_types.
960         (print_record_field_types): Change return value and update comment.
961         Re-implement using print_selected_record_field_types.
962         (print_choices): Print "=>" here.
963         Handle case of unencoded variant branch.
964         (print_variant_clauses): Reformat comment.
965         Special-case unencoded variant branch.
966
967 2010-10-03  Paul Hilfinger  <hilfinger@adacore.com>
968
969         * ada-lang.c (wild_match): Reimplement.
970         Change API to eliminate unused length argument, reverse arguments and
971         make 0 the 'true' return value.
972         (advance_wild_match): New auxiliary function for wild_match to improve
973         readability.
974         (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
975         * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
976         API for wild_match.
977         * symfile.h (map_ada_symtabs): Modify declaration to use new API for
978         wild_match.
979         * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
980
981 2010-10-01  Doug Evans  <dje@google.com>
982
983         * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
984         for `save gdb-index' command.
985
986 2010-10-01  Tom Tromey  <tromey@redhat.com>
987
988         * symfile.h (allocate_symtab): Update.
989         * symfile.c (allocate_symtab): Make 'filename' const.
990         * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
991         (add_psymbol_to_list): Likewise.
992         * psympriv.h (struct partial_symtab) <filename, dirname>: Now
993         const.
994         (add_psymbol_to_list): Update.
995         * mdebugread.c (new_symtab): Make 'name' const.
996         (psymtab_to_symtab_1): Make 'filename' const.
997         * elfread.c (elfstab_offset_sections): Update.
998         * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
999         (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1000         (psymtab_include_file_name): Update.
1001         * dbxread.c (find_stab_function_addr): Make 'filename' const.
1002         * buildsym.h (start_subfile): Update.
1003         * buildsym.c (start_subfile): Make arguments const.
1004
1005 2010-09-30  Ali Lakhia  <lakhia@alumni.utexas.net>
1006
1007         * fork-child.c (breakup_args): Fix crash if shell forking is
1008         disabled at compile time.
1009
1010 2010-10-01  Joel Brobecker  <brobecker@adacore.com>
1011
1012         * ada-lang.c (desc_bounds): Add handling of the case where
1013         the P_BOUNDS field is a pointer to a stub.
1014         (desc_data_target_type): Same for P_ARRAY field.
1015         (ada_check_typedef): Strip the typedef layers from the type
1016         found by ada_find_any_type.
1017
1018 2010-10-01  Joel Brobecker  <brobecker@adacore.com>
1019
1020         * sparc-tdep.c (sparc32_frame_align): New function.
1021         (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1022         * sparc64-tdep.c (sparc64_frame_align): New function.
1023         (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1024
1025 2010-09-30  H.J. Lu  <hongjiu.lu@intel.com>
1026
1027         * defs.h (MAX_REGISTER_SIZE): Set to 64.
1028
1029 2010-09-30  Tom Tromey  <tromey@redhat.com>
1030
1031         * symfile.h (struct sym_fns) <next>: Remove.
1032         (add_symtab_fns): Update.
1033         * symfile.c (sym_fns_ptr): New typedef.
1034         (symtab_fns): Now a VEC.
1035         (add_symtab_fns): Update.  Change argument type.
1036         (find_sym_fns): Update.  Change return type.
1037         (get_symfile_segment_data): Update.
1038         * objfiles.h (struct objfile) <sf>: Now const.
1039         * somread.c (som_sym_fns): Now const.  Update.
1040         * xcoffread.c (xcoff_sym_fns): Now const.  Update.
1041         * mipsread.c (ecoff_sym_fns): Now const.  Update.
1042         * machoread.c (macho_sym_fns): Now const.  Update.
1043         * elfread.c (elf_sym_fns): Now const.  Update.
1044         (elf_sym_fns_gdb_index): Likewise.
1045         * dbxread.c (aout_sym_fns): Now const.  Update.
1046         * coffread.c (coff_sym_fns): Now const.  Update.
1047
1048 2010-09-30  Tom Tromey  <tromey@redhat.com>
1049
1050         * value.c (value_primitive_field): Take 'offset' into account for
1051         packed field.
1052
1053 2010-09-30  Tom Tromey  <tromey@redhat.com>
1054
1055         * completer.c (count_struct_fields): Handle anonymous structs and
1056         unions.
1057         (add_struct_fields): Likewise.
1058
1059 2010-09-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
1060
1061         Fix printing parameters of inlined functions.
1062         * ada-lang.c (is_known_support_routine)
1063         (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1064         for find_frame_funname.
1065         * python/py-frame.c (frapy_name): Likewise.
1066         * stack.c (find_frame_funname): New parameter funcp.  Update the
1067         function comment.  Fill it in.
1068         (print_frame): New variable func.  Initialize it by
1069         find_frame_funname.  Print arguments only if FUNC is not NULL.  Use
1070         FUNC as the parameter of print_args_stub.
1071         * stack.h (find_frame_funname): New parameter funcp.  Remove the
1072         function declaration comment.
1073
1074 2010-09-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
1075
1076         PR corefiles/12071.
1077         * inferior.c (have_live_inferiors): New variables old_chain, inf and
1078         tp.  Iterate INFERIOR_LIST and call target_has_execution.
1079
1080 2010-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1081
1082         Fix GDB crash on inferior calls with self-referencing classes.
1083         * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1084         member fields.
1085
1086 2010-09-29  Doug Evans  <dje@google.com>
1087
1088         Workaround for gcc/45682.
1089         * dwarf2read.c (partial_die_info): New fields fixup_called,
1090         linkage_name.
1091         (guess_partial_die_structure_name): Renamed from guess_structure_name.
1092         Move definition next to use.  Use linkage_name to determine if class
1093         is in a namespace.  All callers updated.
1094         (fixup_partial_die): Return early if already called.
1095         Set fixup_called when done.
1096         (guess_full_die_structure_name): New function.
1097         (determine_prefix): Call it for class/struct/union dies if c++ and
1098         .debug_types section is present and parent is DW_TAG_compile_unit.
1099
1100 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1101
1102         * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1103         (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1104
1105 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1106
1107         * NEWS: Announce Ravenscar Profile support.
1108
1109 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1110             Jerome Guitton  <guitton@adacore.com>
1111
1112         * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1113         New files.
1114         * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1115         ravenscar-sparc-thread.o to gdb_target_obs.
1116
1117 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
1118
1119         * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1120         * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1121
1122 2010-09-27  Pierre Muller  <muller@ics.u-strasbg.fr>
1123
1124         * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1125         (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1126         skip_main_prologue method.
1127
1128 2010-09-27  Tom Tromey  <tromey@redhat.com>
1129
1130         * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1131         (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1132         Only emit a given psymbol once.
1133         (struct signatured_type_index_data) <psyms_seen>: New field.
1134         (write_one_signatured_type): Update.
1135         (cleanup_htab): New function.
1136         (write_psymtabs_to_index): Update.  Create psyms_seen hash.  Bump
1137         version to 3.
1138         (save_gdb_index_command): Update index documentation.
1139
1140 2010-09-27  Tom Tromey  <tromey@redhat.com>
1141
1142         * bcache.c (expand_hash_table): Use hash_function, not hash.
1143
1144 2010-09-27  Tom Tromey  <tromey@redhat.com>
1145
1146         * gdb_wchar.h: Change minimum libiconv to 0x108.
1147
1148 2010-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1149
1150         Fix lost siginfo_t for inferior calls.
1151         * infrun.c
1152         (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1153         (save_inferior_thread_state): New variables regcache, gdbarch and
1154         siginfo_data.  Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1155         Move INF_STATE allocation later, pre-clear it.  Initialize REGISTERS
1156         using REGCACHE.
1157         (restore_inferior_thread_state): New variables regcache and gdbarch.
1158         Restore SIGINFO_DATA for matching GDBARCH.  Restore REGISTERS using
1159         REGCACHE.  Free also SIGINFO_DATA.
1160
1161 2010-09-24  Tom Tromey  <tromey@redhat.com>
1162
1163         * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1164         MAYBE_SWAPs.
1165         (dw2_map_symbol_names): Likewise.
1166
1167 2010-09-24  Sami Wagiaalla  <swagiaal@redhat.com>
1168
1169         * valops.c (find_oload_champ_namespace_loop): replace incorrect
1170         discard_cleanups do_cleanups.
1171
1172 2010-09-24  Pedro Alves  <pedro@codesourcery.com>
1173
1174         PR gdb/11842
1175
1176         * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1177         (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1178         si_code is < 0.  Check for si_code == SI_TIMER before checking for
1179         si_code < 0.
1180
1181 2010-09-24  Pedro Alves  <pedro@codesourcery.com>
1182
1183         * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1184
1185 2010-09-22  Joel Brobecker  <brobecker@adacore.com>
1186
1187         * ada-tasks.c (read_atcb): Do not compute the task ptid when
1188         debugging a core file.
1189
1190 2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1191
1192         Code cleanup.
1193         * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1194         (free_objfile) <objfile->name != NULL>: Remove the conditional around
1195         xfree.
1196         * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1197         * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1198         Remove.
1199         * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1200         Remove the conditional.
1201         * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1202
1203 2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1204
1205         * main.c: Include objfiles.h.
1206         (captured_main): New variable objfile.  Call
1207         load_auto_scripts_for_objfile for ALL_OBJFILES.
1208
1209 2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1210
1211         * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1212         DW_TAG_constant.
1213
1214 2010-09-22  Joel Brobecker  <brobecker@adacore.com>
1215
1216         * dwarf2read.c (scan_partial_symbols): Add handling of
1217         DW_TAG_constant DIEs.
1218         (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1219
1220 2010-09-22  Joel Brobecker  <brobecker@adacore.com>
1221
1222         * configure.ac: Add support for --enable-gdbserver.
1223         * configure: Regenerate.
1224
1225 2010-09-22  Sami Wagiaalla  <swagiaal@redhat.com>
1226
1227         PR C++/12028
1228         * valops.c (find_oload_champ_namespace_loop): removed incorrect
1229         'old_cleanups' reassignment.
1230
1231 2010-09-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1232
1233         * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1234         characters.
1235
1236 2010-09-16  Phil Muldoon  <pmuldoon@redhat.com>
1237
1238         PR mi/11407
1239         * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1240         read_var_value and common_val_print and print a warning.
1241
1242 2010-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1243
1244         * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1245         keep the list in alphabetical order.  Use longer e-mail address.
1246
1247 2010-09-15  Tom Tromey  <tromey@redhat.com>
1248
1249         * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1250
1251 2010-09-15  Tom Tromey  <tromey@redhat.com>
1252
1253         * charset.c (iconv_open): New define.
1254         (iconv): Likewise.
1255         (iconv_close): Likewise.
1256         (phony_iconv_open): Add "phony_" prefix.
1257         (phony_iconv_close): Likewise.
1258         (phony_iconv): Likewise.
1259         * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1260         Change how INTERMEDIATE_ENCODING is defined.
1261
1262 2010-09-15  Doug Evans  <dje@google.com>
1263
1264         * dwarf2read.c (struct die_info): Fix comment.
1265
1266 2010-09-15  Alan Modra  <amodra@gmail.com>
1267
1268         PR 4606
1269         * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1270         than setting SEC_NEVER_LOAD on sections that need not be copied.
1271
1272 2010-09-14  Tom Tromey  <tromey@redhat.com>
1273
1274         * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1275         (start_psymtab_common, allocate_psymtab, discard_psymtab):
1276         Declare.
1277         * symfile.h (extend_psymbol_list): Remove.
1278         (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1279         (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1280         * psymtab.c (extend_psymbol_list): Move earlier.  Now static.
1281
1282 2010-09-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
1283
1284         * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1285         Update the comment.
1286
1287 2010-09-14  Tom Tromey  <tromey@redhat.com>
1288
1289         PR symtab/8399:
1290         * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1291         for unrecognized frame base expression.
1292
1293 2010-09-14  Tom Tromey  <tromey@redhat.com>
1294
1295         PR exp/11803:
1296         * value.c (value_static_field): Use value_of_variable.
1297
1298 2010-09-14  Pierre Muller  <muller@ics.u-strasbg.fr>
1299
1300         * m32r-rom.c: Replace winsock.h with winsock2.h header.
1301         * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1302
1303 2010-09-13  Sami Wagiaalla  <swagiaal@redhat.com>
1304
1305         PR symtab/11992:
1306         * c-exp.y (classify_name): Check is_a_member_of_this before returning
1307         UNKNOWN_CPP_NAME.
1308
1309 2010-09-13  Joel Brobecker  <brobecker@adacore.com>
1310
1311         * NEWS: Add x86-lynxos to the list of platforms supported by
1312         gdbserver.
1313
1314 2010-09-13  Joel Brobecker  <brobecker@adacore.com>
1315
1316         * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1317
1318 2010-09-13  Tom Tromey  <tromey@redhat.com>
1319
1320         * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1321
1322 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1323
1324         * i386-tdep.c (i386_ymm_type): Set type name to
1325         builtin_type_vec256i.
1326
1327 2010-09-12  Michael Snyder  <msnyder@vmware.com>
1328
1329         * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1330
1331 2010-09-12  H.J. Lu  <hongjiu.lu@intel.com>
1332
1333         * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1334
1335 2010-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1336
1337         * amd64-tdep.c (amd64_register_name): Removed.
1338         (amd64_init_abi): Don't call set_gdbarch_register_name.
1339
1340         * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1341
1342         * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1343
1344 2010-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1345             Paul Bolle  <pebolle@tiscali.nl>
1346
1347         Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1348         * cli-logging.c (struct saved_output_files) <targerr>: New.
1349         (set_logging_redirect, pop_output_files, handle_redirections):
1350         Redirect also gdb_stdtargerr.
1351         * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1352         declarations.
1353         * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1354         also gdb_stdtargerr.
1355         * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1356         to the top.  Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1357         Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1358         * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1359         * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1360         New functions.
1361
1362 2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
1363
1364         * hppa-tdep.c (unwind_command): Use host_address_to_string function
1365         to display a host address.
1366         * monitor.c (monitor_read_memory): Likewise.
1367         * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1368
1369 2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
1370
1371         * coffread.c (struct coff_symbol): Change c_value type from `long' to
1372         `CORE_ADDRESS' as it might contain target addresses.
1373
1374 2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
1375
1376         * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1377         before cast to pointer to avoid warning.
1378
1379 2010-09-09  Kevin Buettner  <kevinb@redhat.com>
1380
1381         * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1382         type to be signed.
1383
1384 2010-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
1385
1386         * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1387         anonymous class partial DIEs.
1388
1389 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1390
1391         * dwarf2read.c (dwarf2_compute_name): Check that the first
1392         argument is a pointer.
1393
1394 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1395
1396         * dwarf2read.c (read_func_scope, read_structure_type)
1397         (read_common_block): Check for a NULL return from new_symbol.
1398
1399 2010-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
1400
1401         * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1402
1403 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1404
1405         * dwarf2read.c (read_structure_type): Move processing of
1406         fields and member functions from here...
1407         (process_structure_scope): ... to here.
1408
1409 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1410
1411         * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1412         the domain type.
1413         (gnuv3_make_method_ptr): Likewise.
1414
1415 2010-09-08  Tom Tromey  <tromey@redhat.com>
1416
1417         * breakpoint.c (create_breakpoint): Add missing _().
1418
1419 2010-09-08  Doug Evans  <dje@google.com>
1420
1421         * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1422
1423 2010-09-08  Tom Tromey  <tromey@redhat.com>
1424
1425         Revert:
1426         2010-09-01  Tom Tromey  <tromey@redhat.com>
1427         * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1428         symtab.h: Revert earlier change.
1429
1430 2010-09-09  Sami Wagiaalla  <swagiaal@redhat.com>
1431
1432         * psymtab.c (add_psymbol_to_bcache): Initialize
1433         obj_section.
1434         memset psymbol.ginfo.value to 0.
1435
1436 2010-09-06  Pedro Alves  <pedro@codesourcery.com>
1437
1438         * infrun.c (resume): Extend comment on ignoring single-step
1439         requests on vfork parents waiting for a vfork-done.
1440
1441 2010-09-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1442             Pedro Alves  <pedro@codesourcery.com>
1443
1444         * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1445         is NULL.
1446         * fork-child.c (startup_inferior) <resume_signal>: Use enum
1447         target_signal type.
1448         * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1449         calling strsignal.  Use enum target_signal type for saved_signo.
1450         (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1451         (linux_nat_wait_1): Use enum target_signal type for signo.  Use
1452         target_signal_to_host before calling strsignal.
1453         * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1454         TARGET_SIGNAL_0.
1455
1456 2010-09-06  Pedro Alves  <pedro@codesourcery.com>
1457             Jan Kratochvil  <jan.kratochvil@redhat.com>
1458
1459         * common/signals.c (ANY): Remove.
1460         (SET): No longer use ANY.
1461
1462 2010-09-06  Yao Qi  <yao@codesourcery.com>
1463
1464         * infrunc(resume): When inferior is waiting_for_vfork_done,
1465         clear step and don't use displaced stepping.
1466
1467 2010-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
1468
1469         * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1470         value specially.
1471
1472 2010-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1473
1474         Code cleanup - split print_stop_reason.
1475         * infrun.c (enum inferior_stop_reason): Remove.
1476         (print_stop_reason): Remove by splitting into ...
1477         (print_exited_reason, print_signal_exited_reason)
1478         (print_no_history_reason, print_signal_received_reason)
1479         (print_end_stepping_range_reason): ... these new functions.  Update
1480         the preceding comment.
1481         (handle_inferior_event): Change the calls to print_exited_reason,
1482         print_signal_exited_reason, print_no_history_reason,
1483         print_signal_received_reason, print_end_stepping_range_reason.
1484         (handle_step_into_function, handle_step_into_function_backward):
1485         Change the calls to print_end_stepping_range_reason.
1486
1487 2010-09-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1488
1489         * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1490         * cli-out.c: Include vec.h.
1491         (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1492         variable stream, initialize it, use it.
1493         (cli_redirect): New function comment.  Replace the stream and
1494         original_stream fields by the new streams field.  Remove the
1495         original_stream != NULL conditional, assert error on NULL instead.
1496         (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1497         (cli_out_data_ctor): Assert non-NULL stream.  Replace the stream and
1498         original_stream fields by the new streams field.
1499         (cli_out_set_stream): Replace the stream field by the new streams
1500         field.
1501         * cli-out.h: Include vec.h.
1502         (ui_filep): New typedef, call DEF_VEC_P for it.
1503         (struct cli_ui_out_data): Replace the stream and original_stream
1504         fields by the new streams field.
1505         * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1506         NULL first.  Extend the comment.
1507         (handle_redirections): Call ui_out_redirect with output.
1508         * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1509         calls outside of the TRY_CATCH block.
1510
1511 2010-09-03  Joel Brobecker  <brobecker@adacore.com>
1512
1513         GDB 7.2 released.
1514
1515 2010-09-02  Joel Brobecker  <brobecker@adacore.com>
1516
1517         Back out the following change:
1518         | 2010-06-29  Hui Zhu  <teawater@gmail.com>
1519         | * record.c (set_record_pic_cmdlist,
1520         | show_record_pic_cmdlist): New variables.
1521         | (set_record_pic_command,
1522         | show_record_pic_command): New functions.
1523         | (record_pic_function, record_pic_line, record_pic_enum,
1524         | set_record_pic_type, record_pic_hide_nofunction,
1525         | record_pic_hide_nosource, record_pic_hide_same): New variables.
1526         | (record_pic_fputs): New function.
1527         | (function_list, node_list, edge_list): New struct.
1528         | (function_list, node_list, edge_list): New variables.
1529         | (record_pic_cleanups, record_pic_node,
1530         | record_pic_edge, cmd_record_pic): New functions.
1531         | (_initialize_record): Add new commands for record pic.
1532
1533 2010-09-02  Daniel Jacobowitz  <dan@codesourcery.com>
1534
1535         * config.in, configure: Regenerated.
1536         * configure.ac: Check for waitpid.
1537         * ser-pipe.c (pipe_close): Wait for the program to exit.
1538
1539 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1540
1541         * cli/cli-logging.c: Include gdb_assert.h.
1542         (set_logging_overwrite): New function.
1543         (logging_redirect): New comment.
1544         (logging_no_redirect_file, set_logging_redirect)
1545         (pop_output_files) <logging_no_redirect_file>: New.
1546         (handle_redirections) <!logging_redirect>: New variable
1547         no_redirect_file.  Remove file autoclose for tee_file_new.  No longer
1548         discard cleanup for the close of former OUTPUT.  Set
1549         LOGGING_NO_REDIRECT_FILE.
1550         (handle_redirections) <logging_redirect>: gdb_assert
1551         LOGGING_NO_REDIRECT_FILE.
1552         (show_logging_command) <logging_redirect handling>: Adjust messages
1553         for SAVED_FILENAME not NULL.
1554         (_initialize_cli_logging): Install set_logging_overwrite and
1555         set_logging_redirect.
1556
1557 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1558
1559         * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1560
1561 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1562
1563         * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1564         (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1565         add $(GDB_WARN_CFLAGS_NO_FORMAT).
1566         (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1567
1568 2010-09-02  Yao Qi  <yao@codesourcery.com>
1569
1570         * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1571         number from a WIFSIGNALED status.
1572
1573 2010-09-01  Tom Tromey  <tromey@redhat.com>
1574
1575         * symtab.h (lookup_type_symbol): Declare.
1576         * symtab.c (lookup_symbol_in_language_full): Rename from
1577         lookup_symbol_in_language.  Add 'for_type' argument.
1578         (lookup_symbol_in_language): New function.
1579         (lookup_type_symbol): Likewise.
1580         (lookup_symbol_aux): Add 'for_type' argument.
1581         (match_symbol_aux): New function.
1582         (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1583         (match_transparent_type): New function.
1584         (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1585         * symfile.h (struct quick_symbol_functions)
1586         <pre_expand_symtabs_matching>: Remove.
1587         <expand_one_symtab_matching>: New field.
1588         * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1589         (pre_expand_symtabs_matching_psymtabs): Remove.
1590         (psym_functions): Update.
1591         * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1592         * dwarf2read.c (dw2_lookup_symbol): Update comment.
1593         (dw2_pre_expand_symtabs_matching): Remove.
1594         (dw2_expand_one_symtab_matching): New function.
1595         (dwarf2_gdb_index_functions): Update.
1596
1597 2010-09-01  Joel Brobecker  <brobecker@adacore.com>
1598
1599         * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1600
1601 2010-09-01  Marc Khouzam  <marc.khouzam@ericsson.com>
1602
1603         * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1604         as a feature reported by -list-target-features.
1605
1606 2010-09-01  Joel Brobecker  <brobecker@adacore.com>
1607
1608         * features/Makefile (WHICH): Add rs6000/powerpc-32.
1609         (powerpc-32.o, powerpc-32.c): New rules.
1610         (clean): Also remove powerpc-32.c.
1611         * regformats/rs6000/powerpc-32.dat: Generate.
1612
1613 2010-08-31  Sami Wagiaalla  <swagiaal@redhat.com>
1614
1615         * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1616         psymbol_bcache_init.
1617         * psymtab.h (psymbol_bcache_init): New function prototype.
1618         (psymbol_bcache_free): New function prototype.
1619         (psymbol_bcache_get_bcache): New function prototype.
1620         * psymtab.c (psymbol_bcache_init): New function.
1621         (psymbol_bcache_free): New function.
1622         (psymbol_bcache_full): New function.
1623         (psymbol_bcache_get_bcache): New function.
1624         (add_psymbol_to_bcache): use psymbol_bcache_full.
1625         * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1626         psymbol_bcache.
1627         * symmisc.c (print_symbol_bcache_statistics): Updated.
1628         (print_objfile_statistics): Updated.
1629         * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1630         psymbol_cache.
1631         (free_objfile): Use psymbol_bcache_free.
1632
1633 2010-08-31  Tom Tromey  <tromey@redhat.com>
1634
1635         PR c++/11961:
1636         * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1637         Don't set TYPE_NAME on the type.
1638
1639 2010-08-31  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
1640
1641         * infrun.c (set_exec_direction_func): Error out if target does not
1642         support reverse execution.
1643
1644 2010-08-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1645
1646         Make linux_get_siginfo_type `type *' unique.
1647         * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1648         (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1649         (linux_get_siginfo_type): New variable linux_gdbarch_data.  Initialize
1650         it.  Use linux_gdbarch_data->siginfo_type as a persistent storage.
1651         (_initialize_linux_tdep): New.
1652
1653 2010-08-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1654
1655         Code cleanup.
1656         * defs.h (find_memory_region_ftype): New typedef.
1657         (exec_set_find_memory_regions): Use it.
1658         * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1659         * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1660         * gcore.c (objfile_find_memory_regions): Likewise.
1661         * gnu-nat.c (gnu_find_memory_regions): Likewise.
1662         * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1663         * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1664         (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1665         find_memory_region_ftype.
1666         (insert_dbx_link_bpt_in_region): Likewise.
1667         (iterate_over_mappings): Likewise.  Drop the comment part about the
1668         function prototype.
1669         (find_memory_regions_callback): Use find_memory_region_ftype.
1670         (proc_find_memory_regions): Likewise.
1671         (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1672         find_memory_region_ftype.
1673         * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1674         * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
1675
1676 2010-08-31  Sami Wagiaalla  <swagiaal@redhat.com>
1677
1678         * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
1679         'static partial_symbol psymbol'.
1680         (psymbol_hash): New function.
1681         (psymbol_compare): New function.
1682         * bcache.c (hash_continue): New.
1683         (hash): Use hash_continue.
1684         * bcache.c: Add hash_function and compare_function
1685         pointers to bcache struct.
1686         (bcache_full): Use bcache->hash_function, and
1687         bcache->compare_function.
1688         (bcache_compare): New function.
1689         (bcache_xmalloc): Take hash_function and
1690         compare_function arguments and initialize the
1691         bcach's pointers.
1692         Updated comment.
1693         * objfiles.c (allocate_objfile): Updated.
1694         * symfile.c (reread_symbols): Updated.
1695         * python/py-type.c (typy_richcompare): Updated.
1696
1697 2010-08-30  Andre Poenitz  <andre.poenitz@nokia.com>
1698             Tom Tromey  <tromey@redhat.com>
1699
1700         PR python/11792:
1701         * python/py-value.c (valpy_get_dynamic_type): New function.
1702         (value_object_getset): Add "dynamic_type".
1703         (valpy_get_type): Fail on error.
1704
1705 2010-08-30  Yao Qi  <yao@codesourcery.com>
1706
1707         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
1708         (arm_linux_syscall_next_pc): New.
1709         (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead. 
1710         (arm_linux_init_abi): Initialize syscall_next_pc.
1711         * arm-tdep.c (thumb_get_next_pc_raw):  Get next pc of SWI in Thumb mode.
1712         (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
1713         * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc. 
1714         Declare arm_frame_is_thumb.
1715
1716 2010-08-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
1717
1718         Code cleanup.
1719         * breakpoint.c (bpstat_alloc): Remove unused prototype.
1720         (bpstat_alloc): Change parameters cbs to bs_link_pointer.  Adjust the
1721         code.
1722         (bpstat_stop_status): Change root_bs into bs_head and bs_link.  Adjust
1723         calls of bpstat_alloc.  Remove explicit bs chain termination.
1724
1725 2010-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1726
1727         Code cleanup.
1728         * linux-nat.c (pull_pid_from_list): Rename status to statusp.
1729         (my_waitpid): Likewise.
1730
1731 2010-08-27  Doug Evans  <dje@google.com>
1732
1733         * dwarf2read.c (dw2_require_line_header): Read from .debug_types
1734         as appropriate.
1735
1736 2010-08-27  Tom Tromey  <tromey@redhat.com>
1737
1738         * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1739         TYPE_FIELD_IGNORE_BITS.
1740
1741 2010-08-27  Doug Evans  <dje@google.com>
1742
1743         * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1744         the order they're defined in.  munmap .debug_types buffer.
1745
1746 2010-08-26  Doug Evans  <dje@google.com>
1747
1748         * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1749         (dw2_forget_cached_source_info): Rename local cu to per_cu.
1750         (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1751         (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1752         (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1753         (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1754         (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
1755         (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1756         (write_psymtabs_to_index): Ditto.
1757
1758 2010-08-26  Pedro Alves  <pedro@codesourcery.com>
1759
1760         * NEWS: Mention libthread_db debugging with core files.
1761
1762 2010-08-26  Doug Evans  <dje@google.com>
1763
1764         * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1765         forward decl.  Pass pst->dirname to dwarf_decode_lines.
1766         (psymtab_include_file_name): New function.
1767         (dwarf_decode_lines): Call it.  Update comments.
1768
1769 2010-08-25  Pedro Alves  <pedro@codesourcery.com>
1770
1771         * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1772         compilation unit being different from target die's.
1773
1774 2010-08-24  Doug Evans  <dje@google.com>
1775
1776         PR symtab/11942
1777         * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1778         debug_types_type_hash.
1779         (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1780         All uses updated.
1781         (lookup_die_type): Renamed from tag_type_to_tag.  First look in
1782         appropriate type_hash table.  All callers updated.
1783         (allocate_signatured_type_table): Renamed from
1784         allocate_signatured_type_hash_table.  All callers updated.
1785         (create_signatured_type_table_from_index): Renamed from
1786         create_signatured_type_hash_from_index.  All callers updated.
1787         (read_die_type): Add comment.  Move actual reading to ...
1788         (read_die_type_1): ... here.  New function.
1789         (follow_die_ref_or_sig): Tweak comment.
1790         (set_die_type): Rewrite to use appropriate choice of
1791         debug_info_type_hash or debug_types_type_hash.
1792         (get_die_type_at_offset): New function.
1793         (get_die_type): Call it.
1794
1795 2010-08-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1796
1797         * python/py-type.c (typy_richcompare): Initialize worklist.
1798
1799 2010-08-24  Daniel Jacobowitz  <dan@codesourcery.com>
1800             Kazu Hirata  <kazu@codesourcery.com>
1801             Jonathan Larmour  <jifl@eCosCentric.com>
1802
1803         * arm-tdep.c: Include features/arm-with-m.c.
1804         (arm_psr_thumb_bit): New.  Update all uses of CPSR_T to
1805         call this function.
1806         (arm_pc_is_thumb): Add a gdbarch argument.  Update all callers.
1807         Check is_m after force-mode.
1808         (arm_gdbarch_init): Check the binary before the target description.
1809         Add check for M profile attribute.  If we have an M-profile device,
1810         but no target register description, use arm-with-m.  Recognize the
1811         new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1812         (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1813         * arm-tdep.h (XPSR_T): Define.
1814         (struct gdbarch_tdep): Add is_m member.
1815         * features/arm-m-profile.xml, features/arm-with-m.c,
1816         features/arm-with-m.xml: New files.
1817
1818 2010-08-23  Doug Evans  <dje@google.com>
1819
1820         * dwarf2read.c (read_structure_type): Add comment.
1821         (read_enumeration_type): Add comment.
1822         (process_enumeration_scope): Move definition of some locals
1823         closer to their use.
1824         (read_namespace_type): Add comment.
1825         (set_die_type): Fix typo in comment.
1826
1827 2010-08-23  Tom Tromey  <tromey@redhat.com>
1828
1829         PR python/11145:
1830         * python/py-value.c: Include expression.h.
1831         (valpy_do_cast): New function.
1832         (valpy_cast): Use it.
1833         (valpy_dynamic_cast): New function.
1834         (valpy_reinterpret_cast): Likewise.
1835         (value_object_methods): Add dynamic_cast, reinterpret_cast.
1836
1837 2010-08-23  Tom Tromey  <tromey@redhat.com>
1838
1839         PR python/11391:
1840         * python/py-value.c (valpy_nonzero): Don't throw error for other
1841         Value types.
1842
1843 2010-08-23  Tom Tromey  <tromey@redhat.com>
1844
1845         PR python/10676:
1846         * python/py-type.c: Include bcache.h, vec.h.
1847         (struct type_equality_entry): New.
1848         (compare_strings): New function.
1849         (check_types_equal): Likewise.
1850         (check_types_worklist): Likewise.
1851         (typy_richcompare): Likewise.
1852         (type_object_type): Set tp_richcompare field.
1853
1854 2010-08-23  Tom Tromey  <tromey@redhat.com>
1855
1856         PR python/10953:
1857         * python/py-type.c (typy_fields): Call check_typedef.
1858         (typy_template_argument): Add TRY_CATCH.
1859
1860 2010-08-23  Tom Tromey  <tromey@redhat.com>
1861
1862         PR python/11915:
1863         * python/py-type.c (typy_array): New function.
1864         (type_object_methods): Add "array".
1865
1866 2010-08-20  Pedro Alves  <pedro@codesourcery.com>
1867
1868         * python/python.c: Include "serial.h".
1869         (gdbpy_event_fds): Change type to `struct serial *' a array from
1870         int array.
1871         (gdbpy_run_events): Change parameters.  Use serial_readchar in
1872         place of read.
1873         (gdbpy_post_event): Use serial_write in place of write.
1874         (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1875         serial_async in place of add_file_handler.
1876
1877 2010-08-20  Pedro Alves  <pedro@codesourcery.com>
1878
1879         * serial.h (gdb_pipe, serial_pipe): Declare.
1880         * serial.c (serial_interface_lookup): Take a const char pointer.
1881         (serial_fdopen): Rename to ...
1882         (serial_fdopen_ops): ... this.  Add an OPS parameter and use it.
1883         Call the OPS' fdopen function if there is one.
1884         (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1885         (serial_pipe): New.
1886         (struct serial_ops) <fdopen>: New field.
1887
1888         * ser-mingw.c (free_pipe_state):
1889         (free_pipe_state): Close output on non-pex pipes.
1890         (pipe_windows_fdopen): New.
1891         (gdb_pipe): New.
1892         (_initialize_ser_windows): Register pipe_windows_fdopen.
1893         * ser-go32.c (gdb_pipe): New.
1894         * ser-pipe.c (pipe_close): Close file descriptor even if there's
1895         no state pointer.
1896         (pipe_ops): Delete.
1897         (gdb_pipe): New.
1898
1899 2010-08-20  Keith Seitz  <keiths@redhat.com>
1900
1901         PR symtab/11465:
1902         * dwarf2read.c (struct delayed_method_info): New struct.
1903         (struct dwarf2_cu): Add vector method_list.
1904         (scan_partial_symbols): Count methods for union, class, structure,
1905         and interface types.
1906         (add_to_method_list): New function.
1907         (free_delayed_list): New function.
1908         (compute_delayed_physnames): New function.
1909         (process_full_comp_unit): Make a cleanup for the CU's delayed
1910         physname list, compute the delayed physnames, and free the
1911         the list.
1912         (dwarf2_add_member_fn): For C++ and Java, delay the computation
1913         of the physname until after the CU is read.
1914
1915         * dwarf2read.c (read_structure_type): Check if the current
1916         DIE's type was already completed after dwarf2_full_name
1917         was called.
1918
1919 2010-08-19  Stan Shebs  <stan@codesourcery.com>
1920
1921         * NEWS: Mention some additional changes.
1922
1923 2010-08-19  Tom Tromey  <tromey@redhat.com>
1924
1925         * Makefile.in (install-python): Add DESTDIR.
1926
1927 2010-08-19  Doug Evans  <dje@google.com>
1928
1929         PR exp/11926
1930         * parser-defs.h (parse_float, parse_c_float): Declare.
1931         * parse.c (parse_float, parse_c_float): New function.
1932         * c-exp.y (parse_number): Call parse_c_float.
1933         * objc-exp.y (parse_number): Ditto.
1934         * p-exp.y (parse_number): Ditto.  Use ANSI/ISO-style definition.
1935         * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
1936
1937 2010-08-19  Joel Brobecker  <brobecker@adacore.com>
1938
1939         * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
1940         the arguments in the correct order.
1941         * symtab.c (maybe_add_partial_symtab_filename): Declare
1942         the arguments in the correct order.
1943
1944 2010-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1945
1946         * varobj.c (varobj_create): Replace variable old_fi with old_id,
1947         initialize it by null_frame_id, wrap its usage by get_frame_id,
1948         frame_id_p and frame_find_by_id.
1949
1950 2010-08-18  Tom Tromey  <tromey@redhat.com>
1951
1952         PR python/11900:
1953         * configure: Rebuild.
1954         * configure.ac: Add install-python to CONFIG_INSTALL.
1955         * Makefile.in (install-python): New.
1956
1957 2010-08-18  Doug Evans  <dje@google.com>
1958
1959         * gdb_assert.h (gdb_assert_not_reached): New macro.
1960         (gdb_assert_fail): Fix typo in comment.
1961         * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
1962         gdb_assert (0).
1963         * darwin-nat.c (darwin_check_new_threads): Ditto.
1964         * dwarf2read.c (dwarf2_get_section_info): Ditto.
1965         (munmap_section_buffer): Ditto.
1966         * m32c-tdep.c (make_types): Ditto.
1967         (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
1968         * macroexp.c (get_character_constant): Ditto.
1969         (get_string_literal): Ditto.
1970         * mep-tdep.c (mep_pseudo_cr_size): Ditto.
1971         (mep_pseudo_cr_index, mep_register_type): Ditto.
1972         (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
1973         (mep_get_insn, mep_analyze_prologue): Ditto.
1974         * objfiles.c (qsort_cmp): Ditto.
1975         * prologue-value.c (pv_is_identical): Ditto.
1976         * record.c (record_get_loc): Ditto.
1977         * value.c (value_static_field): Ditto.
1978         * xtensa-tdep.c (call0_track_op): Ditto.
1979
1980 2010-08-18  Tom Tromey  <tromey@redhat.com>
1981
1982         PR symtab/11919:
1983         * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
1984         * parse.c (parse_field_expression): Use RETURN_MASK_ERROR.  Move
1985         name-copying lower.  Document exception behavior.
1986         * completer.c (expression_completer): Catch exceptions from
1987         parse_field_expression.
1988
1989 2010-08-18  Pedro Alves  <pedro@codesourcery.com>
1990
1991         PR corefile/8210
1992
1993         * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
1994         workaround on core files.
1995         (try_thread_db_load_1): Don't try enabling thread event reporting
1996         on core files.
1997         (thread_db_load): Allow thread_db on core files.
1998         (attach_thread): Don't check thread signals on core files, nor try
1999         really attaching to the thread, nor enabling thread event event
2000         reporting.
2001         (thread_db_detach): Don't try disabing thread event reporting or
2002         removing thread event breakpoints when debugging a core file.
2003         (find_new_threads_callback): Don't try enabling thread event
2004         reporting on core files.
2005         (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2006         debugging a core file.
2007         (thread_db_find_new_threads): Don't update thread
2008         cores (processors) when debugging a core (dump).
2009
2010 2010-08-18  Pedro Alves  <pedro@codesourcery.com>
2011
2012         PR corefile/8210
2013
2014         * corelow.c (add_to_thread_list): Don't use
2015         gdbarch_core_reg_section_encodes_pid.  Use bfd_core_file_pid.
2016         (get_core_register_section): Don't use
2017         gdbarch_core_reg_section_encodes_pid.
2018
2019         * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2020         * gdbarch.h, gdbarch.c: Regenerate.
2021         * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2022         gdbarch_core_reg_section_encodes_pid.
2023         * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2024         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2025         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2026
2027 2010-08-18  Yao Qi  <yao@codesourcery.com>
2028
2029         * MAINTAINERS : Add myself under Write After Approval.
2030
2031 2010-08-17  Tom Tromey  <tromey@redhat.com>
2032
2033         * NEWS: Mention template parameter support.
2034
2035 2010-08-17  Pedro Alves  <pedro@codesourcery.com>
2036
2037         PR breakpoints/11371
2038
2039         * breakpoint.c (decref_bp_location): Assert the reference count is
2040         sane.
2041
2042 2010-08-17  Pedro Alves  <pedro@codesourcery.com>
2043
2044         PR breakpoints/11371
2045
2046         * breakpoint.c (breakpoint_init_inferior): Decrement the
2047         location's reference count instead of deleting right away.
2048         (bpstat_free): Decrement the location's reference count.  Make
2049         static.
2050         (bpstat_copy): Increment the location's reference count.
2051         (bpstat_find_breakpoint): Adjust.
2052         (bpstat_num): Adjust.
2053         (print_it_typical): Adjust.  Use the breakpoint pointer in the
2054         bpstat instead of the location's owner.
2055         (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2056         Adjust to record the location's owner in the bpstat.
2057         (watchpoint_check): Use the breakpoint pointer in the bpstat
2058         instead of the location's owner.
2059         (bpstat_check_breakpoint_conditions): Don't handle
2060         bp_watchpoint_scope here.  Use the breakpoint pointer in the
2061         bpstat instead of the location's owner.
2062         (bpstat_stop_status): Defer inferior function calls to after
2063         building the bpstat list.  Handle bp_watchpoint_scope here.  Use
2064         the breakpoint pointer in the bpstat instead of the location's
2065         owner.
2066         (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2067         the location's owner.
2068         (free_bp_location): Don't walk bpstats clearing locations.
2069         (incref_bp_location): New.
2070         (decref_bp_location): New.
2071         (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2072         instead of the location's owner.
2073         (update_global_location_list): Clear the location's owner, and
2074         decrement the location's reference count instead of deleting it
2075         right away.
2076         (breakpoint_retire_moribund): Decrement the location's reference
2077         count instead of deleting it right away.
2078         (bpstat_remove_bp_location): Delete.
2079         (bpstat_remove_breakpoint): New.
2080         (bpstat_remove_bp_location_callback): Delete.
2081         (bpstat_remove_breakpoint_callback): New.
2082         (delete_breakpoint): Iterate over all threads' stop_bpstat's
2083         clearing references to the breakpoint that is being deleted.
2084
2085         * breakpoint.h (struct bp_location) <refc>: New field.
2086         <owner>: Update comments.
2087         (bpstat_free): Delete declaration.
2088         (struct bpstats): Change the type of the breakpoint_at field to
2089         struct breakpoint point, from struct bp_location pointer.  Add new
2090         field bp_location_at.
2091
2092 2010-08-16  Tom Tromey  <tromey@redhat.com>
2093
2094         * NEWS: Fix typo.
2095
2096 2010-08-16  Tom Tromey  <tromey@redhat.com>
2097
2098         * NEWS: Mention watch -location.
2099
2100 2010-08-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2101
2102         * breakpoint.c (update_watchpoint): Add source empty line.  Prefer
2103         EXP_STRING_REPARSE to EXP_STRING.
2104         (watch_command_1): Set also EXP_STRING_REPARSE.
2105         (delete_breakpoint): Free also EXP_STRING_REPARSE.
2106         * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2107         Update comment for exp_string.
2108
2109 2010-08-16  Tom Tromey  <tromey@redhat.com>
2110
2111         * value.c (release_value): Clear 'next' pointer.
2112         * breakpoint.c (watch_command_1): Add 'just_location' argument.
2113         (watch_command_wrapper): Update.
2114         (watch_maybe_just_location): New function.
2115         (watch_command): Update.
2116         (rwatch_command_wrapper): Update.
2117         (rwatch_command): Update.
2118         (awatch_command_wrapper): Update.
2119         (awatch_command): Update.
2120         (check_for_argument): New function.
2121         (_initialize_breakpoint): Update help text.
2122
2123 2010-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
2124
2125         * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2126         typedef'ed function types correctly.
2127
2128 2010-08-13  Tom Tromey  <tromey@redhat.com>
2129
2130         * python/python-internal.h (gdbpy_get_hook_function): Don't
2131         declare.
2132
2133 2010-08-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2134
2135         * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2136         static.
2137
2138 2010-08-13  Ken Werner  <ken.werner@de.ibm.com>
2139
2140         * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2141         the format strings to be compatible with Python 2.4.
2142
2143 2010-08-13  Vladimir Prus  <vladimir@codesourcery.com>
2144
2145         Easier and more stubborn MI memory read commands.
2146
2147         * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2148         and data-write-memory-bytes.
2149         * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2150         (mi_cmd_data_write_memory_bytes): New.
2151         * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2152         (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2153         New.
2154         (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2155         * target.c (target_read_until_error): Remove.
2156         (read_whatever_is_readable, free_memory_read_result_vector)
2157         (read_memory_robust): New.
2158         * target.h (target_read_until_error): Remove.
2159         (struct memory_read_result, free_memory_read_result_vector)
2160         (read_memory_robust): New.
2161
2162 2010-08-13  Hui Zhu  <teawater@gmail.com>
2163
2164         * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2165         (read_comp_unit): Initialize back_to.
2166
2167 2010-08-12  Daniel Jacobowitz  <dan@codesourcery.com>
2168             Pedro Alves  <pedro@codesourcery.com>
2169
2170         * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2171         (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2172         (struct partial_die_info) <has_template_arguments>: New field.
2173         <num_attrs>: Change type to unsigned char.
2174         <building_fullname>: New field.
2175         (dwarf2_build_psymtabs_hard): Set reading_partial_symbols.  Only
2176         allocate a CU if we don't have one already.  Add a cleanup for the
2177         CU.
2178         (partial_die_full_name): Handle template arguments not in
2179         DW_AT_name.
2180         (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2181         (load_full_comp_unit): Only allocate a CU if we don't have one
2182         already.
2183         (do_ui_file_peek_last): New.
2184         (dwarf2_compute_name): Handle template parameters not in
2185         DW_AT_name.
2186         (read_comp_unit): Read and free abbrevs if not read yet.
2187         (load_partial_dies): Handle template arguments not in DW_AT_name.
2188         (find_partial_die): If we have a CU, but no a partial dies yet,
2189         also read in the CU.
2190         (dwarf2_const_value_attr): New, abstracted out from
2191         dwarf2_const_value.
2192         (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2193         dwarf2_const_value_attr.
2194         (determine_prefix): Detect and break loops created by RCVT's debug
2195         info.
2196         (maybe_queue_comp_unit): Bail out early if reading partial
2197         symbols.
2198         (follow_die_offset): Load full CU if we have no dies.
2199         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2200         * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2201
2202 2010-08-11  Tom Tromey  <tromey@redhat.com>
2203             Phil Muldoon  <pmuldoon@redhat.com>
2204
2205         * python/python.c (gdbpy_run_events): New function.
2206         (gdbpy_post_event): Likewise.
2207         (gdbpy_initialize_events): Likewise.
2208         (_initialize_python): Call gdbpy_initialize_events.
2209
2210 2010-08-11  Ken Werner  <ken.werner@de.ibm.com>
2211
2212         * gdb/valarith.c (vector_binop): New function.
2213         (scalar_binop): Likewise.
2214         (value_binop): Call scalar_binop or vector_binop depending on the types.
2215         * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2216         (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2217         to pointers.
2218         * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2219
2220 2010-08-11  Brad Roberts  <braddr@puremagic.com>
2221
2222         * d-lang.c (extract_identifiers): Handle multiple digits.
2223
2224 2010-08-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2225
2226         Code cleanup.
2227         * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2228         Rename to dummy_frame_unwind.
2229         (dummy_frame_unwind): Remove.
2230         * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2231         * frame-unwind.c (frame_unwind_init): Use address of
2232         dummy_frame_unwind and inline_frame_unwind.
2233         * frame.c (create_sentinel_frame): Use address of
2234         sentinel_frame_unwind.
2235         * inline-frame.c (inline_frame_unwinder): Rename to
2236         inline_frame_unwind.
2237         (inline_frame_unwind): Remove.
2238         * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2239         * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2240         sentinel_frame_unwind.
2241         (sentinel_frame_unwind): Remove.
2242         * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2243         struct.
2244
2245 2010-08-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2246
2247         Code cleanup.
2248         * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2249         and returned value.  New comment from frame-unwind.h.
2250         * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2251         Extend the comment.
2252         * frame.c (get_frame_id, frame_unwind_register_value)
2253         (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2254         (get_frame_type, frame_unwind_arch): Do not use the return value of
2255         frame_unwind_find_by_frame.
2256
2257 2010-08-11  Phil Muldoon  <pmuldoon@redhat.com>
2258             Thiago Jung Bauermann  <bauerman@br.ibm.com>
2259             Tom Tromey  <tromey@redhat.com>
2260
2261         * python/python.c (gdbpy_solib_address):  New function.
2262         (gdbpy_decode_line): Likewise.
2263
2264 2010-08-10  Tom Tromey  <tromey@redhat.com>
2265
2266         Revert gdb-add-index addition:
2267         * Makefile.in (install-only): Don't install gdb-add-index.
2268         * gdb-add-index.sh: Remove.
2269
2270 2010-08-09  Kevin Buettner  <kevinb@redhat.com>
2271
2272         * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2273         `target_has_execution' check with `to_has_memory' check.
2274         (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2275         (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2276         with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2277
2278 2010-08-09  Kevin Buettner  <kevinb@redhat.com>
2279
2280         * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2281         (resume_siggnal, resume_step): Move these static globals...
2282         (struct sim_inferior_data): ...into this new struct.
2283         (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2284         New static globals.
2285         (gdb_callback, callbacks_initialized): Move these globals to
2286         a point earlier in the file.
2287         (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2288         (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2289         (gdbsim_close_inferior, gdbsim_resume_inferior)
2290         (gdbsim_stop_inferior): New functions.
2291         (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2292         New constants.
2293         (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2294         (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2295         (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2296         (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2297         (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2298         (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2299         new local variable `sim_data' in each of these functions.  Use
2300         `sim_data' to reference former globals `program_loaded',
2301         `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2302         `resume_step'.
2303         (gdbsim_open): Remove local variable `argv'.  Put results of call
2304         to `gdb_buildargv' in `sim_argv' rather than in `argv'.  Don't
2305         make a cleanup for it.  Free it though when a sim instance cannot
2306         be obtained.
2307         (gdbsim_close): Free sim_argv and null it out as appropriate.
2308         Close sim instances in all inferiors.
2309         (gdbsim_cntrl_c): Stop all inferiors.
2310         (gdbsim_wait): 
2311         (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2312
2313 2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>
2314
2315         * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2316         function after symbol construction is complete.
2317         Do the same for template symbol addition to template_symbols list.
2318
2319 2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>
2320
2321         * symtab.c (symbol_get_demangled_name): Remove assertion and
2322         return NULL when language_specific.cplus_specific is not initialized.
2323         * stabsread.c (define_symbol): Set the name before calling
2324         cp_scan_for_anonymous_namespaces.
2325
2326 2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>
2327
2328         * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2329         SYMBOL_SET_LANGUAGE.
2330         (symbol_init_language_specific): Renamed to symbol_set_language.
2331         * symtab.c (symbol_init_language_specific): Removed redundant check
2332         for language_cplus.
2333         Renamed to symbol_set_language.
2334         * stabsread.c (define_symbol): Updated.
2335         (read_enum_type): Updated
2336         * psymtab.c (add_psymbol_to_bcache): Updated.
2337         * minsyms.c (install_minimal_symbols): Updated.
2338         * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2339         SYMBOL_LANGUAGE to set the language.
2340         * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2341         * mdebugread.c (new_symbol): Ditto.
2342         * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2343         * dwarf2read.c (new_symbol_full): Ditto.
2344         * jv-lang.c (add_class_symbol): Ditto.
2345
2346 2010-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2347
2348         * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2349         (make_cleanup_restore_page_info)
2350         (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2351         * gdbcmd.h (execute_command_to_string): New declaration.
2352         * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2353         (make_cleanup_restore_ui_file): Move to utils.c
2354         (execute_gdb_command) <to_string>: Move ...
2355         * top.c (execute_command_to_string): ... here.  Call
2356         set_batch_flag_and_make_cleanup_restore_page_info.
2357         * utils.c (make_cleanup_restore_integer): New source file blank line.
2358         (make_cleanup_restore_uinteger): New.
2359         (struct restore_ui_file_closure, do_restore_ui_file)
2360         (make_cleanup_restore_ui_file): Move here from python/python.c.
2361         (init_page_info) <batch_flag>
2362         (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2363         (set_batch_flag_and_make_cleanup_restore_page_info): New.
2364
2365 2010-08-06  Maciej W. Rozycki  <macro@codesourcery.com>
2366
2367         * thread.c (add_thread_silent): Use null_ptid instead of
2368         minus_one_ptid while getting rid of stale inferior_ptid.
2369
2370 2010-08-06  Corinna Vinschen  <vinschen@redhat.com>
2371
2372         * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2373         Throughout, call read_encoded_value with ptr_size rather than addr_size.
2374         (decode_frame_entry_1): Remove redundant setting of
2375         addr_size.  Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2376         to determine addr_size in Dwarf versions < 4.  Set ptr_size dependent
2377         on examined frame section.  Add comment to explain why.
2378         * gdbarch.sh (dwarf2_addr_size): Define as variable.  Add lengthy
2379         comment to explain usage.
2380         * gdbarch.c: Regenerate.
2381         * gdbarch.h: Regenerate.
2382
2383         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2384
2385 2010-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2386
2387         Code cleanup.
2388         * varobj.c (varobj_create): Move variables fi, old_fi and block to
2389         a more inner block.
2390
2391 2010-08-05  Pedro Alves  <pedro@codesourcery.com>
2392
2393         * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2394         (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2395         (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2396         (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2397         linux-tdep.o to gdb_target_obs.
2398
2399 2010-08-05  Marc Khouzam  <marc.khouzam@ericsson.com>
2400
2401         * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
2402         argument.
2403
2404 2010-08-05  Hui Zhu  <teawater@gmail.com>
2405
2406         * mips-linux-tdep.c(regset.h): New include.
2407         (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2408         mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2409         mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2410         mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2411         mips_linux_regset_from_core_section): New functions.
2412         (fetch_core_registers, regset_core_fns): Deleted.
2413         (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2414         Deleted regset_core_fns.
2415         * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2416         tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2417         * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2418         and fpregset64.
2419
2420 2010-08-04  Pedro Alves  <pedro@codesourcery.com>
2421
2422         * s390-tdep.c: Include linux-tdep.h.
2423         (s390_gdbarch_init): Call linux_init_abi.
2424
2425 2010-08-04  Pedro Alves  <pedro@codesourcery.com>
2426
2427         * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2428         instead of printing "Thread" here.
2429         * linux-tdep.c: Include inferior.h.
2430         (linux_core_pid_to_str): New.
2431         (linux_init_abi): New.
2432         * linux-tdep.h (linux_init_abi): Declare.
2433         * alpha-linux-tdep.c: Include linux-tdep.h.
2434         (alpha_linux_init_abi): Call linux_init_abi.
2435         * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2436         * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2437         * frv-linux-tdep.c: Include linux-tdep.h
2438         (frv_linux_init_abi): Call linux_init_abi.
2439         * hppa-linux-tdep.c: Include linux-tdep.h
2440         (hppa_linux_init_abi): Call linux_init_abi.
2441         * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2442         * ia64-linux-tdep.c: Include linux-tdep.h.
2443         (ia64_linux_init_abi): Call linux_init_abi.
2444         * m32r-linux-tdep.c: Include linux-tdep.h.
2445         (m32r_linux_init_abi): Call linux_init_abi.
2446         * m68klinux-tdep.c: Include linux-tdep.h.
2447         (m68k_linux_init_abi): Call linux_init_abi.
2448         * microblaze-linux-tdep.c: Include linux-tdep.h.
2449         (microblaze_linux_init_abi): Call linux_init_abi.
2450         * mips-linux-tdep.c: Include linux-tdep.h.
2451         (mips_linux_init_abi): Call linux_init_abi.
2452         * mn10300-linux-tdep.c: Include linux-tdep.h.
2453         (am33_linux_init_osabi): Call linux_init_abi.  Rename the
2454         'gdbinfo' parameter to 'info'.
2455         * ppc-linux-tdep.c: Include linux-tdep.h.
2456         (ppc_linux_init_abi): Call linux_init_abi.
2457         * sh-linux-tdep.c: Include linux-tdep.h.
2458         (sh_linux_init_abi): Call linux_init_abi.
2459         * sparc-linux-tdep.c: Include linux-tdep.h.
2460         (sparc32_linux_init_abi): Call linux_init_abi.
2461         * sparc64-linux-tdep.c: Include linux-tdep.h.
2462         (sparc64_linux_init_abi): Call linux_init_abi.
2463         * xtensa-linux-tdep.c: Include linux-tdep.h.
2464         (xtensa_linux_init_abi): Call linux_init_abi.
2465         * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2466         (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2467         callback.
2468
2469 2010-08-03  Doug Evans  <dje@google.com>
2470
2471         * breakpoint.c (bpdisp_text): Constify bpdisps.
2472         * solib-svr4.c (solib_break_names): Constify.
2473         (bkpt_names, main_name_list): Constify.
2474         (match_main): Constify soname arg.
2475         (bfd_lookup_symbol): Remove unnecessary forward decl.
2476         Constify symname arg.
2477         (enable_break): Constify bkpt_namep.
2478         * symtab.c (search_symbols): Constify types, types2, types3, types4.
2479         (symtab_symbol_info): Constify classnames.
2480
2481 2010-08-03  Phil Muldoon  <pmuldoon@redhat.com>
2482
2483         * NEWS: Document Python value inferior function calls.
2484
2485 2010-08-02  Doug Evans  <dje@google.com>
2486
2487         * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2488
2489 2010-07-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
2490
2491         * linux-thread-db.c (libthread_db_debug): New variable.
2492         (thread_db_find_new_threads_silently): Control verbosity with it.
2493         (try_thread_db_load_1, try_thread_db_load): Likewise.
2494         (find_new_threads_once): Likewise.
2495         (_initialize_thread_db): Set/show it.
2496
2497 2010-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2498
2499         * common/signals.c (signals): Move the content to signals.def.
2500         Include it.  Remove the INDENT comments.
2501
2502 2010-07-30  Tom Tromey  <tromey@redhat.com>
2503
2504         * Makefile.in (install-only): Install gdb-add-index.
2505         * gdb-add-index.sh: New file.
2506
2507 2010-07-31  Renquan Cheng  <crq@gcc.gnu.org>
2508
2509         * MAINTAINERS: Add myself for write after approval privileges.
2510
2511 2010-07-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
2512
2513         * symfile.c (addr_section_name): New function.
2514         (addrs_section_compar): Use it.
2515         (addr_info_make_relative): Use it.  Move variable sect_name into a more
2516         inner block.  Make ".dynbss" and ".sdynbss" checks more strict.
2517
2518 2010-07-30  Tom Tromey  <tromey@redhat.com>
2519
2520         * configure: Rebuild.
2521         * configure.ac: Add missing case for Python 2.7.
2522
2523 2010-07-29  DJ Delorie  <dj@redhat.com>
2524
2525         * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2526         conditions.
2527
2528 2010-07-29  Pedro Alves  <pedro@codesourcery.com>
2529
2530         * PROBLEMS: Remove mention of all problems.
2531
2532 2010-07-28  Pedro Alves  <pedro@codesourcery.com>
2533
2534         PR build/11848
2535         * configure.ac: Check for wresize.
2536         * configure, config.in: Regenerate.
2537         * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2538         with HAVE_WRESIZE.
2539
2540 2010-07-28  Tom Tromey  <tromey@redhat.com>
2541
2542         PR python/11060:
2543         * python/py-type.c (typy_legacy_template_argument): New function,
2544         extracted from typy_template_argument.
2545         (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT.  Return a
2546         value when needed.
2547
2548 2010-07-28  Oleg Nesterov  <oleg@redhat.com>
2549
2550         * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2551
2552 2010-07-27  Tom Tromey  <tromey@redhat.com>
2553
2554         * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2555
2556 2010-07-28  Daniel Jacobowitz  <dan@codesourcery.com>
2557
2558         * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2559         handling DW_AT_object_pointer, and workaround GCC PR 43053.
2560
2561 2010-07-28  Tom Tromey  <tromey@redhat.com>
2562
2563         * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2564
2565 2010-07-28  Joel Brobecker  <brobecker@adacore.com>
2566
2567         * remote.c (remote_download_tracepoint): Add missing gettext markup.
2568         * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2569
2570 2010-07-28  Joel Brobecker  <brobecker@adacore.com>
2571
2572         * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2573         down, just before the block that parse the breakpoint addr_string.
2574
2575 2010-07-28  Tom Tromey  <tromey@redhat.com>
2576
2577         PR c++/9946:
2578         * symfile.c (reread_symbols): Clear template_symbols.
2579         * symtab.h (struct symbol) <is_cplus_template_function>: New
2580         field.
2581         (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2582         (struct template_symbol): New.
2583         * symtab.c (lookup_symbol_aux_local): Use
2584         cp_lookup_symbol_imports_or_template.
2585         * objfiles.h (struct objfile) <template_symbols>: New field.
2586         * objfiles.c (relocate_one_symbol): New function.
2587         (objfile_relocate1): Use it.  Relocate isolated symbols.
2588         * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2589         template_arguments>: New fields.
2590         (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2591         (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2592         (TYPE_TEMPLATE_ARGUMENT): Likewise.
2593         (lookup_typename): Update.
2594         * gdbtypes.c (lookup_typename): Constify "block" argument.
2595         * dwarf2read.c: Include vec.h.
2596         (symbolp): New typedef.
2597         (read_func_scope): Read template arguments.  Allocate a
2598         template_symbol when needed.
2599         (read_structure_type): Read template arguments.
2600         (new_symbol_full): New function, from new_symbol.  Handle
2601         DW_TAG_template_type_param and DW_TAG_template_value_param.
2602         (new_symbol): Rewrite as wrapper.
2603         * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2604         * cp-namespace.c: Include language.h.
2605         (search_symbol_list): New function.
2606         (cp_lookup_symbol_imports_or_template): Likewise.
2607
2608 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
2609
2610         * tui/tui-win.c (make_visible_with_new_height): Resize and move
2611         the command window to the new size and position.
2612
2613 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
2614
2615         * tui/tui-win.c (tui_resize_all): Update the locator's origin's
2616         coordinates.
2617
2618 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
2619
2620         * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
2621         after a detecting a resize.
2622         * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
2623         call.
2624
2625 2010-07-28  Pedro Alves  <pedro@codesourcery.com>
2626
2627         * configure.ac: Check for resize_term.
2628         * configure, config.in: Regenerate.
2629
2630 2010-07-27  Joel Brobecker  <brobecker@adacore.com>
2631
2632         * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2633
2634 2010-07-27  Daniel Jacobowitz  <dan@codesourcery.com>
2635
2636         * dwarf2read.c (read_string): Rename to ...
2637         (read_direct_string): ... this.
2638         (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2639         (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2640
2641 2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2642
2643         * linux-nat.c (linux_nat_lp_status_is_event): New function.
2644         (count_events_callback, select_event_lwp_callback)
2645         (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2646
2647 2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2648
2649         * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2650         (_initialize_ia64_linux_nat): Install it.
2651         * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2652         (linux_nat_set_status_is_event): New.
2653         (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2654         cancel_breakpoints_callback, linux_nat_filter_event)
2655         (linux_nat_wait_1): Use linux_nat_status_is_event.
2656         * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2657
2658 2010-07-27  Tom Tromey  <tromey@redhat.com>
2659
2660         * NEWS: Mention labels, .gdb_index.
2661
2662 2010-07-28  CHENG Renquan  <rqcheng@smu.edu.sg>
2663
2664         * cli/cli-cmds.c (disassemble_command): Add support of disassemble
2665         "start,+length" form of arguments.
2666         * NEWS: Add "Changed commands" (disassemble) section for "Changes
2667         since GDB 7.1"; and merge two separated paragraphs of disassemble
2668         description in "Changes in GDB 7.0".
2669
2670 2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2671
2672         * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2673         * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2674         (fputs_maybe_filtered): Do not do filtering also on
2675         ! INPUT_FROM_TERMINAL_P.
2676
2677 2010-07-27  Joel Brobecker  <brobecker@adacore.com>
2678
2679         * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
2680         in warning message.
2681
2682 2010-07-27  Phil Muldoon  <pmuldoon@redhat.com>
2683
2684         * python/py-value.c (valpy_call): New Function.
2685
2686 2010-07-27  Ken Werner  <ken.werner@de.ibm.com>
2687
2688         * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
2689         types_list_elements variables.
2690
2691 2010-07-26  Tom Tromey  <tromey@redhat.com>
2692
2693         * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
2694         TLS with DW_OP_const4u or DW_OP_const8u.
2695
2696 2010-07-26  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2697
2698         * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
2699         VSX registers contents.
2700
2701 2010-07-26  Jerome Guitton  <guitton@adacore.com>
2702
2703         * dwarf2read.c (add_partial_symbol): Do not add a global variable if
2704         its adress is null. Add comment to explain why.
2705         (new_symbol): Ditto.
2706
2707 2010-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2708
2709         * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
2710         the host signal first.
2711
2712 2010-07-23  Tom Tromey  <tromey@redhat.com>
2713
2714         * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
2715         type_comp_units>: New fields.
2716         (dw2_get_cu): New function.
2717         (create_cus_from_index): Remove unused argument.
2718         (create_signatured_type_hash_from_index): New function.
2719         (create_addrmap_from_index): Update.
2720         (dwarf2_read_index): Handle version 2.
2721         (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
2722         (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
2723         (dw2_print_stats, dw2_expand_all_symtabs)
2724         (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
2725         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
2726         (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
2727         (allocate_signatured_type_hash_table): New function.
2728         (add_signatured_type_cu_to_list): Likewise.
2729         (create_debug_types_hash_table): Use them.  Set type_comp_units.
2730         (read_signatured_type): Ensure section data is available.
2731         (add_address_entry): Don't record empty ranges.
2732         (struct signatured_type_index_data): New.
2733         (write_one_signatured_type): New function.
2734         (write_psymtabs_to_index): Write type CUs.
2735         (save_gdb_index_command): Update comment.
2736         (process_type_comp_unit): Move inititalization of
2737         from_debug_types...
2738         (create_debug_types_hash_table): ... here.
2739
2740 2010-07-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
2741
2742         * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2743         cleanup and generating of gdb script to it.
2744         (gdb): Use redirection from /dev/null.  Use --nx.  Turn off pagination
2745         and terminal size.  Convert $tmpfile to a series of -ex-es.
2746
2747 2010-07-23  Keith Seitz  <keiths@redhat.com>
2748
2749         * symtab.c (basic_lookup_transparent_type): Call pre-expand
2750         hook for STATIC_BLOCK types, too.
2751
2752 2010-07-23  Keith Seitz  <keiths@redhat.com>
2753
2754         * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
2755         and vector definition.
2756
2757 2010-07-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
2758
2759         * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2760
2761 2010-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2762
2763         * dwarf2read.c: Include completer.h.
2764         (save_gdb_index_command): Use matching usage command name.
2765         (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2766         Set filename_completer for it.
2767
2768 2010-07-22  Tom Tromey  <tromey@redhat.com>
2769
2770         * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2771         type signature's per-CU data.
2772
2773 2010-07-22  Pedro Alves  <pedro@codesourcery.com>
2774
2775         * NEWS: Mention target reported shared libraries support by
2776         default.
2777
2778 2010-07-21  Pedro Alves  <pedro@codesourcery.com>
2779
2780         PR symtab/11827
2781
2782         Revert:
2783         2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
2784         * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2785         and DW_TAG_volatile_type.
2786         (new_symbol): Likewise.
2787
2788 2010-07-21  Sami Wagiaalla  <swagiaal@redhat.com>
2789
2790         * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2791         function symbols before overload resolution.
2792
2793 2010-07-21  Pedro Alves  <pedro@codesourcery.com>
2794
2795         * breakpoint.c (bptype_string): New, abstracted out from
2796         print_one_breakpoint_location.
2797         (print_one_breakpoint_location): Adjust.
2798         (breakpoint_1): Adjust the type column width dynamically.
2799
2800 2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2801
2802         * symfile.c (find_separate_debug_file_by_debuglink): Remove
2803         a gdb_assert call, new comment.
2804
2805 2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2806
2807         * linux-nat.c (linux_handle_extended_wait): Handle case when
2808         event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2809
2810 2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2811
2812         Code cleanup.
2813         * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2814         linux_nat_wait_1.  Use always LP->STATUS afterwards.
2815
2816 2010-07-20  Hui Zhu  <teawater@gmail.com>
2817
2818         * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2819         (inf_ptrace_attach): Ditto.
2820
2821 2010-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2822
2823         Make core files the process_stratum.
2824         * corefile.c (core_target): New variable.
2825         (core_file_command): Remove variable t, use core_target.
2826         * corelow.c (core_ops): Make it static.
2827         (init_core_ops): Change to process_stratum.  Initialize CORE_TARGET.
2828         * defs.h (make_cleanup_unpush_target): New prototype.
2829         * gdbarch.h: Regenerate.
2830         * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2831         * gdbcore.h (core_target): New declaration.
2832         * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2833         variables ops_already_pushed and back_to.  Use push_target,
2834         make_cleanup_unpush_target and discard_cleanups calls.
2835         * record.c (record_open): Replace core_stratum by a core_bfd check.
2836         * target.c (target_is_pushed): New function.
2837         (find_core_target): Remove.
2838         * target.h (enum strata) <core_stratum>: Remove.
2839         (target_is_pushed): New declaration.
2840         (find_core_target): Remove declaration.
2841         * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2842         * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2843
2844 2010-07-19  Hui Zhu  <teawater@gmail.com>
2845
2846         * breakpoint.c (single_step_breakpoints_inserted): New
2847         function.
2848         * breakpoint.h (single_step_breakpoints_inserted): Extern.
2849         * infrun.c (maybe_software_singlestep): Add check code.
2850         * record.c (record_resume): Add code for software single step.
2851         (record_wait): Ditto.
2852
2853 2010-07-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
2854
2855         * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2856         a more inner block.  Remove its unused declaration initializer.
2857
2858 2010-07-16  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2859
2860         * NEWS: Mention support for the new ptrace interface and hardware
2861         accelerated watchpoint conditions on powerpc-linux.
2862
2863 2010-07-16  Ozkan Sezer  <sezeroz@gmail.com>
2864
2865         * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2866         long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2867         and host_address_to_string() and %s for pointers.
2868         (debug_to_remove_breakpoint): Likewise.
2869         (debug_to_region_ok_for_hw_watchpoint): Likewise.
2870         (debug_to_can_accel_watchpoint_condition): Likewise.
2871         (debug_to_stopped_data_address): Likewise.
2872         (debug_to_watchpoint_addr_within_range): Likewise.
2873         (debug_to_insert_hw_breakpoint): Likewise.
2874         (debug_to_remove_hw_breakpoint): Likewise.
2875         (debug_to_insert_watchpoint): Likewise.
2876         (debug_to_remove_watchpoint): Likewise.
2877
2878 2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
2879
2880         * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2881         argument.
2882         (cplus_specific): New struct.
2883         * symtab.c (symbol_set_demangled_name): Updated.
2884         Use cplus_specific for cplus symbols.
2885         (symbol_get_demangled_name): Retrive the name from the cplus_specific
2886         struct for cplus symbols.
2887         (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2888         (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2889         * symtab.c (symbol_init_cplus_specific): New function.
2890
2891 2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
2892
2893         * symtab.h (symbol_set_demangled_name): New function.
2894         (symbol_get_demangled_name): New function.
2895         * symtab.c (symbol_set_demangled_name): New function.
2896         (symbol_get_demangled_name): New function.
2897         (symbol_init_language_specific): Use demangled_name setter and getter.
2898         (symbol_set_names): Ditto.
2899         (symbol_natural_name): Ditto.
2900         (symbol_demangled_name): Ditto.
2901         * dwarf2read.c (new_symbol): Ditto.
2902
2903 2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
2904
2905         * symtab.h: Renamed cplus_specific to mangled_lang.
2906         * symtab.c (symbol_init_language_specific): Updated.
2907         (symbol_set_names): Updated.
2908         (symbol_natural_name): Updated.
2909         (symbol_demangled_name): Updated.
2910         * ada-lang.c (ada_decode_symbol): Updated.
2911         * dwarf2read.c (new_symbol): Updated.
2912
2913 2010-07-14  Ken Werner  <ken.werner@de.ibm.com>
2914
2915         * valops.c (value_assign): Do not call to value_coerce_to_target.
2916         (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
2917
2918 2010-07-14  Ken Werner  <ken.werner@de.ibm.com>
2919
2920         * MAINTAINERS: Add myself for write after approval privileges.
2921
2922 2010-07-13  Emmanuel Thomé  <Emmanuel.Thome@gmail.com>
2923
2924         * c-valprint.c (c_val_print): Add embedded_offset to address in
2925         call to val_print_array_elements.
2926
2927 2010-07-13  Tom Tromey  <tromey@redhat.com>
2928
2929         * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2930
2931 2010-07-13  Tom Tromey  <tromey@redhat.com>
2932
2933         * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
2934         objfile.
2935
2936 2010-07-13  Tom Tromey  <tromey@redhat.com>
2937
2938         * symfile.c (set_initial_language): Update.
2939         (deduce_language_from_filename): Argument type now const.
2940         * symtab.h (find_main_filename): Update.
2941         (deduce_language_from_filename): Update.
2942         * symtab.c (find_main_filename): Make result const.
2943         * dwarf2read.c (dw2_find_symbol_file): Change return type.
2944         * psymtab.c (find_symbol_file_from_partial): Change return type.
2945         * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2946         Make result const.
2947
2948 2010-07-13  Tom Tromey  <tromey@redhat.com>
2949
2950         * breakpoint.c (save_cmdlist): No longer static.
2951         * gdbcmd.h (save_cmdlist): Declare.
2952         * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
2953         OBJF_READNOW on objfile if readnow_symbol_files.
2954         * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
2955         (elf_sym_fns_gdb_index): New global.
2956         * dwarf2read.c: Include exceptions.h.
2957         (offset_type): New.
2958         (struct mapped_index): New.
2959         (dwarf2_per_cu_data_ptr): New typedef.
2960         (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
2961         New fields.
2962         (GDB_INDEX_SECTION): New define.
2963         (struct dwarf2_per_cu_quick_data): New.
2964         (struct dwarf2_per_cu_data) <objfile>: New field.
2965         <psymtab>: Removed.
2966         <v>: New field.
2967         (byte_swap): New function.
2968         (MAYBE_SWAP): New macro.
2969         (INDEX_SUFFIX): New macro.
2970         (dw2_do_instantiate_symtab): New function.
2971         (dw2_instantiate_symtab): Likewise.
2972         (create_cus_from_index): Likewise.
2973         (create_addrmap_from_index): Likewise.
2974         (mapped_index_string_hash): Likewise.
2975         (find_slot_in_mapped_hash): Likewise.
2976         (dwarf2_read_index): Likewise.
2977         (dw2_setup): Likewise.
2978         (dw2_require_line_header): Likewise.
2979         (dw2_require_full_path): Likewise.
2980         (dw2_find_last_source_symtab): Likewise.
2981         (dw2_forget_cached_source_info): Likewise.
2982         (dw2_lookup_symtab): Likewise.
2983         (dw2_lookup_symbol): Likewise.
2984         (dw2_do_expand_symtabs_matching): Likewise.
2985         (dw2_pre_expand_symtabs_matching): Likewise.
2986         (dw2_print_stats): Likewise.
2987         (dw2_dump): Likewise.
2988         (dw2_relocate): Likewise.
2989         (dw2_expand_symtabs_for_function): Likewise.
2990         (dw2_expand_all_symtabs): Likewise.
2991         (dw2_expand_symtabs_with_filename): Likewise.
2992         (dw2_find_symbol_file): Likewise.
2993         (dw2_map_ada_symtabs): Likewise.
2994         (dw2_expand_symtabs_matching): Likewise.
2995         (dw2_find_pc_sect_symtab): Likewise.
2996         (dw2_map_symbol_names): Likewise.
2997         (dw2_map_symbol_filenames): Likewise.
2998         (dw2_has_symbols): Likewise.
2999         (dwarf2_gdb_index_functions): New global.
3000         (dwarf2_initialize_objfile): New function.
3001         (process_psymtab_comp_unit): Update.
3002         (add_partial_subprogram): Likewise.
3003         (dwarf2_psymtab_to_symtab): Likewise.
3004         (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3005         (process_full_comp_unit): Update.
3006         (find_file_and_directory): New function.
3007         (read_file_scope): Use find_file_and_directory.
3008         (dwarf2_per_cu_objfile): Update.
3009         (dwarf2_per_cu_addr_size): Update.
3010         (dwarf2_per_cu_offset_size): Update.
3011         (dwarf2_free_objfile): Free the index, if needed.
3012         (dwarf2_per_objfile_free): Unmap the index, if needed.
3013         (struct strtab_entry): New.
3014         (hash_strtab_entry): New function.
3015         (eq_strtab_entry): Likewise.
3016         (create_strtab): Likewise.
3017         (add_string): Likewise.
3018         (struct symtab_index_entry): New.
3019         (struct mapped_symtab): New.
3020         (hash_symtab_entry): New function.
3021         (eq_symtab_entry): Likewise.
3022         (delete_symtab_entry): Likewise.
3023         (create_index_table): Likewise.
3024         (create_mapped_symtab): Likewise.
3025         (cleanup_mapped_symtab): Likewise.
3026         (find_slot): Likewise.
3027         (hash_expand): Likewise.
3028         (add_index_entry): Likewise.
3029         (add_indices_to_cpool): Likewise.
3030         (write_hash_table): Likewise.
3031         (add_address_entry): Likewise.
3032         (write_psymbols): Likewise.
3033         (write_obstack): Likewise.
3034         (unlink_if_set): Likewise.
3035         (write_psymtabs_to_index): Likewise.
3036         (save_gdb_index_command): Likewise.
3037         (_initialize_dwarf2_read): Install "save gdb-index"
3038         command.
3039         (create_all_comp_units): Initialize 'objfile' field of CU.
3040         (dwarf2_locate_sections): Check for .gdb_index.
3041         * psymtab.h (dwarf2_gdb_index_functions): Declare.
3042         * symfile.h (dwarf2_initialize_objfile): Declare.
3043
3044 2010-07-13  Tom Tromey  <tromey@redhat.com>
3045
3046         * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3047         (basic_lookup_transparent_type): Likewise.
3048         * symfile.h (struct quick_symbol_functions)
3049         <pre_expand_symtabs_matching>: New field.
3050         * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3051         (psym_functions): Update.
3052
3053 2010-07-13  Tom Tromey  <tromey@redhat.com>
3054
3055         PR breakpoints/8357:
3056         * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3057         * linespec.c (decode_line_1): Update comment.  Call decode_label.
3058         (decode_label): New function.
3059         (symbol_found): Handle LOC_LABEL.
3060         * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3061         domain.  Call add_symbol_to_list.
3062
3063 2010-07-13  Tom Tromey  <tromey@redhat.com>
3064
3065         * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3066         * dwarf2loc.c (find_location_expression): Use
3067         dwarf2_per_cu_text_offset.
3068         (dwarf2_evaluate_loc_desc): Likewise.
3069         (dwarf2_loc_desc_needs_frame): Likewise.
3070         (compile_dwarf_to_ax): Likewise.
3071         (loclist_describe_location): Likewise.
3072         * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3073         (dwarf2_per_cu_objfile): Update comment.
3074
3075 2010-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
3076
3077         * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3078         * p-lang.c (pascal_printstr): Likewise.
3079
3080 2010-07-09  Tom Tromey  <tromey@redhat.com>
3081
3082         * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3083         'hint' if it is NULL.
3084
3085 2010-07-09  Hui Zhu  <teawater@gmail.com>
3086
3087         * source.c (print_source_lines_base): Add check for noprint.
3088
3089 2010-07-08  Joel Brobecker  <brobecker@adacore.com>
3090
3091         * python/python-config.py: Resync with Python 2.7 version of this
3092         script.
3093
3094 2010-07-08  Joel Brobecker  <brobecker@adacore.com>
3095
3096         * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3097
3098 2010-07-07  Joel Brobecker  <brobecker@adacore.com>
3099
3100         * NEWS: Create a new section for the next release branch.
3101         Rename the section of the current branch, now that it has
3102         been cut.
3103
3104 2010-07-07  Joel Brobecker  <brobecker@adacore.com>
3105
3106         GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3107         * version.in: Bump version to 7.2.50.20100707-cvs.
3108
3109 2010-07-07  Tom Tromey  <tromey@redhat.com>
3110
3111         * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3112         LOC_COMPUTED symbol.
3113         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3114         (dwarf2_loc_desc_needs_frame): Likewise.
3115         (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3116         * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3117         * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3118         * dwarf2-frame.c (execute_stack_op): Set 'offset' field.  Add
3119         'offset' argument.
3120         (struct dwarf2_frame_cache) <text_offset>: New field.
3121         (dwarf2_frame_cache): Set new field.
3122         (dwarf2_frame_prev_register): Update.
3123         (dwarf2_frame_sniffer): Update.
3124         (dwarf2_frame_base_sniffer): Update.
3125         (dwarf2_frame_find_fde): Add 'out_offset' argument.
3126
3127 2010-07-07  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
3128             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3129
3130         Support for hw accelerated condition watchpoints in booke powerpc.
3131
3132         * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3133         and move to eval.c.  Change callers.
3134         (insert_bp_location): Pass watchpoint condition in
3135         target_insert_watchpoint.
3136         (remove_breakpoint_1) Pass watchpoint condition in
3137         target_remove_watchpoint.
3138         (watchpoint_locations_match): Call
3139         target_can_accel_watchpoint_condition.
3140         * eval.c: Include wrapper.h.
3141         (fetch_subexp_value): Moved from breakpoint.c.
3142         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3143         Formatting fix.
3144         (can_use_watchpoint_cond_accel): New function.
3145         (calculate_dvc): Likewise.
3146         (num_memory_accesses): Likewise.
3147         (check_condition): Likewise.
3148         (ppc_linux_can_accel_watchpoint_condition): Likewise
3149         (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3150         check_condition and calculate_dvc.
3151         (ppc_linux_remove_watchpoint): Likewise.
3152         (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3153         ppc_linux_can_accel_watchpoint_condition
3154         * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3155         condition.
3156         (debug_to_remove_watchpoint): Likewise.
3157         (debug_to_can_accel_watchpoint_condition): New function.
3158         (update_current_target): Set to_can_accel_watchpoint_condition.
3159         (setup_target_debug): Set to_can_accel_watchpoint_condition.
3160         * target.h: Add opaque declaration for struct expression.
3161         (struct target_ops) <to_insert_watchpoint>,
3162         <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3163         <to_can_accel_watchpoint_condition>: New member.
3164         condition.  Update all callers and implementations.
3165         (target_can_accel_watchpoint_condition): New macro.
3166         * value.c (free_value_chain): New function.
3167         * value.h (fetch_subexp_value): New prototype.
3168         (free_value_chain): Likewise.
3169
3170 2010-07-07  Ulrich Weigand  <uweigand@de.ibm.com>
3171
3172         * linux-nat.c (linux_nat_do_thread_registers): Use section size
3173         from gdbarch_core_regset_sections also for .reg if present.
3174
3175         * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3176         section size for .reg.
3177         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3178         (ppc_linux_vmx_regset_sections): Likewise.
3179         (ppc_linux_fp_regset_sections): Likewise.
3180         (ppc64_linux_vsx_regset_sections): New variable.
3181         (ppc64_linux_vmx_regset_sections): Likewise.
3182         (ppc64_linux_fp_regset_sections): Likewise.
3183         (ppc_linux_init_abi): Install core_regset_section lists appropriate
3184         for current word size.
3185
3186 2010-07-06  Joel Brobecker  <brobecker@adacore.com>
3187
3188         * server.c (myresume): Make static.
3189
3190 2010-07-06  Tom Tromey  <tromey@redhat.com>
3191
3192         * configure, config.in: Rebuild.
3193         * configure.ac (HAVE_LIBPYTHON2_7): New define.
3194         * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3195
3196 2010-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3197
3198         * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3199         "clear".
3200
3201 2010-07-06  Ken Werner  <ken.werner@de.ibm.com>
3202
3203         * gdbtypes.h (floatformats_ieee_half): Add declaration.
3204         * gdbtypes.c (floatformats_ieee_half): New variable.
3205         * doublest.c (floatformat_from_length): Set format to
3206         gdbarch_half_format if length matches.
3207         * gdbarch.sh (half_bit): New architecture method.
3208         (half_format): Likewise.
3209         * gdbarch.h: Regenerate.
3210         * gdbarch.c: Likewise.
3211
3212 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3213             Joel Brobecker  <brobecker@adacore.com>
3214
3215         Fix re-run of PIE executable, PR shlibs/11776.
3216         * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3217         the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3218
3219 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3220             Joel Brobecker  <brobecker@adacore.com>
3221
3222         * auxv.c (memory_xfer_auxv): Update attach comment.
3223         * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3224         svr4_relocate_main_executable.
3225         (svr4_solib_create_inferior_hook): Make the call to
3226         svr4_relocate_main_executable unconditional.
3227
3228 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3229             Joel Brobecker  <brobecker@adacore.com>
3230
3231         * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3232
3233 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3234             Joel Brobecker  <brobecker@adacore.com>
3235
3236         Fix attaching to PIEs prelinked on the disk after the process was
3237         started.
3238         * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3239         Verify it against bfd_get_arch_size.  Try to match arbitrary
3240         displacement for the phdrs comparison.
3241
3242 2010-07-02  Tom Tromey  <tromey@redhat.com>
3243
3244         PR exp/11780:
3245         * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3246         value as optimized-out.
3247
3248 2010-07-02  Ulrich Weigand  <uweigand@de.ibm.com>
3249             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3250
3251         * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3252         represent?" question in comment.  Change comment to a proper sentence.
3253
3254 2010-07-02  Ken Werner  <ken.werner@de.ibm.com>
3255
3256         * c-valprint.c (c_val_print): Fix printing of character vectors.
3257
3258 2010-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3259
3260         * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3261         create_breakpoint prototype.
3262
3263 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3264
3265         * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3266         usefulness suggestion of multiple breakpoints at same location.
3267
3268 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3269
3270         * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3271
3272 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3273
3274         * dwarf2loc.c (locexpr_tracepoint_var_ref)
3275         (loclist_tracepoint_var_ref): Handle optimized out values.
3276
3277 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3278
3279         * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3280         unnecessary space in string.
3281         * filesystem.c (_initialize_filesystem): Ditto.
3282         * frame.c (_initialize_frame): Ditto.
3283         * infcmd.c (step_once): Ditto.
3284         * infrun.c (_initialize_infrun): Ditto.
3285         * linux-nat.c (linux_child_follow_fork): Ditto.
3286         * maint.c (maintenance_deprecate): Ditto.
3287         * memattr.c (_initialize_mem): Ditto.
3288         * mips-tdep.c (_initialize_mips_tdep): Ditto.
3289         * monitor.c (monitor_open): Ditto.
3290         * procfs.c (procfs_xfer_memory): Ditto.
3291         * reverse.c (bookmarks_info): Ditto.
3292         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3293         * stack.c (_initialize_stack): Ditto.
3294         * tracepoint.c (_initialize_tracepoint): Ditto.
3295         * xtensa-tdep.c (xtensa_supply_gregset,
3296         xtensa_regset_from_core_section): Ditto.
3297
3298 2010-07-01  Tom Tromey  <tromey@redhat.com>
3299
3300         * value.h (struct lval_funcs) <check_any_valid>: Rename from
3301         check_all_valid.
3302         * value.c (value_entirely_optimized_out): Invert result.  Update
3303         for new function name.
3304
3305 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3306
3307         Static tracepoints support.
3308
3309         * NEWS: Mention new support for static tracepoints.
3310         (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3311         qXfer:statictrace:read.
3312         (New features in the GDB remote stub, GDBserver): Mention static
3313         tracepoints support using an UST based backend.
3314         (New commands): Mention "info static-tracepoint-markers" and
3315         "strace".
3316         * breakpoint.c (is_marker_spec): New.
3317         (is_tracepoint): Handle static tracepoints.
3318         (validate_commands_for_breakpoint): Static tracepoints can't do
3319         while-stepping.
3320         (static_tracepoints_here): New.
3321         (bpstat_what): Handle static tracepoints.
3322         (print_one_breakpoint_location, allocate_bp_location, mention):
3323         Ditto.
3324         (create_breakpoint_sal): Ditto.
3325         (decode_static_tracepoint_spec): New.
3326         (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3327         `type_wanted'.  Adjust.  Handle static tracepoint marker
3328         locations.
3329         (break_command_1): Adjust.
3330         (update_static_tracepoint): New.
3331         (update_breakpoint_locations): Handle static tracepoints.
3332         (breakpoint_re_set_one): Handle static tracepoint marker
3333         locations.
3334         (disable_command, enable_command): Handle static tracepoints.
3335         (trace_command, ftrace_command): Adjust.
3336         (strace_command): New.
3337         (create_tracepoint_from_upload): Adjust.
3338         (save_breakpoints): Handle static tracepoints.
3339         (_initialize_breakpoint): Install the "strace" command.
3340         * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3341         (struct breakpoint): New fields static_trace_marker_id and
3342         static_trace_marker_id_idx.
3343         (breakpoints_here_p): Declare.
3344         (create_breakpoint): Adjust.
3345         (static_tracepoints_here): Declare.
3346         * remote.c (struct remote_state) <static_tracepoints>: New field.
3347         (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3348         (remote_static_tracepoint_marker_at): New.
3349         (remote_static_tracepoint_markers_by_strid): New.
3350         (remote_static_tracepoint_feature): New.
3351         (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3352         (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3353         (remote_supports_static_tracepoints): New.
3354         (remote_download_tracepoint): Download static tracepoints.
3355         (init_remote_ops): Install remote_static_tracepoint_marker_at and
3356         remote_static_tracepoint_markers_by_strid.
3357         (_initialize_remote): Install set|show remote static-tracepoints,
3358         and set|show remote read-sdata-object commands.
3359         * target.c (update_current_target): Inherit and default
3360         to_static_tracepoint_marker_at, and
3361         to_static_tracepoint_markers_by_strid.
3362         * target.h (static_tracepoint_marker): Forward declare.
3363         (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3364         (static_tracepoint_marker_p): New typedef.
3365         (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3366         (struct target_ops): New fields to_static_tracepoint_marker_at and
3367         to_static_tracepoint_markers_by_strid.
3368         (target_static_tracepoint_marker_at)
3369         (target_static_tracepoint_markers_by_strid): New.
3370         * tracepoint.c: Include source.h.
3371         (validate_actionline): Handle $_sdata.
3372         (struct collection_list): New field strace_data.
3373         (add_static_trace_data): New.
3374         (clear_collection_list): Clear strace_data.
3375         (stringify_collection_list): Account for a possible static trace
3376         data collection.
3377         (encode_actions_1): Encode an $_sdata collection.
3378         (parse_tracepoint_definition): Handle static tracepoints.
3379         (parse_static_tracepoint_marker_definition): New.
3380         (release_static_tracepoint_marker): New.
3381         (print_one_static_tracepoint_marker): New.
3382         (info_static_tracepoint_markers_command): New.
3383         (sdata_make_value): New.
3384         (_initialize_tracepoint): Create the $_sdata convenience variable.
3385         Add the "info static-tracepoint-markers" command.
3386         Mention $_sdata in the "collect" command's help output.
3387         * tracepoint.h (struct static_tracepoint_marker): New.
3388         (parse_static_tracepoint_marker_definition)
3389         (release_static_tracepoint_marker): Declare.
3390         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3391         * python/py-breakpoint.c (bppy_new): Adjust.
3392
3393 2010-06-30  Joel Brobecker  <brobecker@adacore.com>
3394
3395         * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3396         including Python.h.
3397
3398 2010-06-29  Doug Evans  <dje@google.com>
3399
3400         PR gdb/11702
3401         * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3402         DW_AT_external is present.
3403
3404         PR gdb/11702
3405         * NEWS: Add entry.
3406         * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3407         create a symbol for the field and record the value.
3408         (new_symbol): Handle DW_TAG_member.
3409         * gdbtypes.c (field_is_static): Remove FIXME.
3410         * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3411         only ignore LOC_CONST symbols that are enums.
3412
3413         * dwarf2read.c: Remove trailing whitespace.
3414
3415         Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3416         * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3417         (struct main_type, field loc): Delete dwarf_block.
3418         (FIELD_DWARF_BLOCK): Delete.
3419         (SET_FIELD_DWARF_BLOCK): Delete.
3420         (TYPE_FIELD_DWARF_BLOCK): Delete.
3421         * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3422         Update.
3423
3424 2010-06-29  Hui Zhu  <teawater@gmail.com>
3425
3426         * record.c (set_record_pic_cmdlist,
3427         show_record_pic_cmdlist): New variables.
3428         (set_record_pic_command,
3429         show_record_pic_command): New functions.
3430         (record_pic_function, record_pic_line, record_pic_enum,
3431         set_record_pic_type, record_pic_hide_nofunction,
3432         record_pic_hide_nosource, record_pic_hide_same): New variables.
3433         (record_pic_fputs): New function.
3434         (function_list, node_list, edge_list): New struct.
3435         (function_list, node_list, edge_list): New variables.
3436         (record_pic_cleanups, record_pic_node,
3437         record_pic_edge, cmd_record_pic): New functions.
3438         (_initialize_record): Add new commands for record pic.
3439
3440 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3441
3442         * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3443         ALLOCATE_CPLUS_STRUCT_TYPE.
3444
3445 2010-06-28  Phil Muldoon  <pmuldoon@redhat.com>
3446             Tom Tromey  <tromey@redhat.com>
3447             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3448
3449         * value.c (pack_unsigned_long): New function.
3450         (value_from_ulongest): New function.
3451         * value.h (value_from_ulongest): Declare.
3452         * python/python.c (_initialize_python): Call
3453         gdbpy_initialize_thread and gdbpy_initialize_inferior.
3454         * python/python-internal.h: Define thread_object.
3455         (gdbpy_inferiors, gdbpy_selected_thread)
3456         (frame_info_to_frame_object, create_thread_object)
3457         (find_thread_object, find_inferior_object)
3458         (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3459         (gdbpy_is_value_object, get_addr_from_python): Declare.
3460         * python/py-value.c (builtin_type_upylong): Define.
3461         (convert_value_from_python): Add logic for ulongest.
3462         (gdbpy_is_value_object): New function.
3463         * python/py-utils.c (get_addr_from_python): New function.
3464         * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3465         (gdbpy_selected_frame): Use PyObject over frame_info.
3466         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3467         py-infthread.
3468         (SUBDIR_PYTHON_SRCS): Likewise.
3469         (py-inferior.o): New Rule.
3470         (py-infthread.o): New Rule.
3471         * python/py-inferior.c: New File.
3472         * python/py-infthread.c: New File.
3473
3474 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3475
3476         * c-typeprint.c (c_type_print_base): For no fields check include also
3477         TYPE_TYPEDEF_FIELD_COUNT.  Print new typedefs section.
3478         * dwarf2read.c (struct typedef_field_list)
3479         (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3480         (dwarf2_add_typedef): New.
3481         (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3482         Copy also FI.TYPEDEF_FIELD_LIST.
3483         * gdbtypes.h (struct typedef_field)
3484         (struct cplus_struct_type) <typedef_field, typedef_field_count>
3485         (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3486         (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3487
3488 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3489
3490         * cp-namespace.c (cp_lookup_nested_type): New variable
3491         concatenated_name.  Turn the current return condition into a reverse
3492         one.  Call also lookup_static_symbol_aux on the constructed qualified
3493         name.
3494         * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3495         other files into a called ...
3496         (lookup_static_symbol_aux): ... new function here.
3497         * symtab.h (lookup_static_symbol_aux): New prototype.
3498         * valops.c (value_maybe_namespace_elt): Call also
3499         lookup_static_symbol_aux if we failed otherwise.
3500
3501 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3502
3503         Fix PR c++/11703 and PR gdb/1448.
3504         * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3505         FIRST_ITER check.
3506
3507 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3508
3509         Fix modification of cplus_struct_default.
3510         * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3511         Call ALLOCATE_CPLUS_STRUCT_TYPE.
3512         * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3513
3514 2010-06-28  Joel Brobecker  <brobecker@adacore.com>
3515
3516         * NEWS: Add entry announcing the python directory.
3517
3518 2010-06-28  Tom Tromey  <tromey@redhat.com>
3519
3520         * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3521
3522 2010-06-28  Doug Evans  <dje@google.com>
3523
3524         * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3525         All callers updated.
3526
3527 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3528
3529         * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3530         obstack_begin after each obstack_free.
3531
3532 2010-06-27  Doug Evans  <dje@google.com>
3533
3534         * value.c (value_static_field): Use `switch' instead of `if'.
3535         Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3536
3537         * valops.c (search_struct_field): Fix typo in error message.
3538
3539 2010-06-26  Ulrich Weigand  <uweigand@de.ibm.com>
3540
3541         * dwarf2expr.c (execute_stack_op): Place preprocessor
3542         directives at the start of the source line.
3543
3544 2010-06-25  Paul Hilfinger  <hilfinger@adacore.com>
3545
3546         * defs.h (make_command_stats_cleanup): Declare.
3547         (set_display_time): Declare.
3548         (set_display_space): Declare.
3549         * event-top.c (command_handler): Use make_command_stats_cleanup.
3550         * main.c (display_time, display_space): Move definitions to utils.c.
3551         (captured_main): Use make_command_stats_cleanup to get start-up
3552         statistics.
3553         Use set_display_time and set_display_space for processing OPT_STATISTICS
3554         case.
3555         * maint.c (maintenance_time_display): Use set_display_time.
3556         (maintenance_space_display): Use set_display_space.
3557         * top.c (execute_command): Remove obsolete 'maint time' code.
3558         (command_loop): Use make_command_stats_cleanup.
3559         * utils.c (struct cmd_stats): Structure for storing initial time
3560         and space usage.
3561         (display_time, display_space): Move definitions here from utils.c.
3562         (set_display_time): New function.
3563         (set_display_space): New function.
3564         (make_command_stats_cleanup): New function.
3565         (report_command_stats): New auxiliary function for
3566         make_command_stats_cleanup.
3567
3568 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
3569
3570         * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3571         hosts where CORE_ADDR is long long.
3572
3573 2010-06-25  Tom Tromey  <tromey@redhat.com>
3574
3575         PR python/10808:
3576         * python/python.c (execute_gdb_command): Add keywords.  Accept
3577         "to_string" argument.
3578         (struct restore_ui_file_closure): New.
3579         (restore_ui_file): New function.
3580         (make_cleanup_restore_ui_file): Likewise.
3581         (GdbMethods) <execute>: Update.
3582
3583 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
3584
3585         * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3586         during inferior call stack frame setup.
3587
3588 2010-06-25  Ken Werner  <ken.werner@de.ibm.com>
3589
3590         * solib-spu.c: Include "exception.h".
3591         (ocl_program_data_key): New variable.
3592         (append_ocl_sos): New function.
3593         (ocl_enable_break): Likewise.
3594         (spu_current_sos): Call append_ocl_sos.
3595         (spu_solib_loaded): Call ocl_enable_break.
3596         (_initialize_spu_solib): Register ocl_program_data_key.
3597
3598 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
3599
3600         * cp-support.c (reset_directive_searched): New function.
3601         (make_symbol_overload_list_using): Prevent recursive calls.
3602
3603 2010-06-25  Phil Muldoon  <pmuldoon@redhat.com>
3604
3605         * printcmd.c (print_variable_and_value): Print error message on
3606         caught exception.
3607
3608 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
3609
3610         * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3611         of stack values.
3612         (struct dwarf_expr_piece): Rename "expr" member to "mem".  Add new
3613         "value" member.
3614         (dwarf_expr_push): Change input type to ULONGEST.
3615         (dwarf_expr_fetch): Change return type to ULONGEST.
3616         (dwarf_expr_fetch_address): Add prototype.
3617         (dwarf2_read_address): Remove prototype.
3618         * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3619         Truncate stack values to ctx->addr_size bytes.
3620         (dwarf_expr_fetch): Change return value to ULONGEST.
3621         (dwarf_expr_fetch_address): New function.
3622         (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3623         when appropriate.  Update for struct dwarf_expr_piece changes.
3624         (dwarf2_read_address): Remove.
3625         (unsigned_address_type): Remove.
3626         (signed_address_type): Remove.
3627         (execute_stack_op): Use dwarf_expr_fetch_address instead of
3628         dwarf_expr_fetch when appropriate.  Use ULONGEST as type of stack
3629         values.  Perform operations on ULONGEST instead of on GDB values,
3630         sign-extending from ctx->addr_size bytes as needed.  Read DW_OP_addr
3631         values and DW_OP_deref results as unsigned integers.
3632         * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3633         changes.
3634         (write_pieced_value): Likewise.
3635         (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3636         dwarf_expr_fetch when appropriate.
3637         (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3638         * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3639         instead of dwarf_expr_fetch when appropriate.
3640
3641 2010-06-25  Pierre Muller  <muller@ics.u-strasbg.fr>
3642
3643         * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3644
3645 2010-06-24  Joel Brobecker  <brobecker@adacore.com>
3646
3647         * python/python.c (_initialize_python): Add new "constant"
3648         PYTHONDIR in gdb module.  Insert this path at the head of
3649         sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3650         exec its __init__.py script if it exists in that directory.
3651
3652 2010-06-24  Kevin Buettner  <kevinb@redhat.com>
3653
3654         * rx-tdep.c (RX_ACC_REGNUM): Define.
3655         (RX_NUM_REGS): Redefine to 26.
3656         (rx_register_name): Add register "acc".  Change order of several
3657         registers.  Change name of "vct" register to "fintv" to match RX
3658         documentation.
3659         (rx_register_type): Add case for RX_ACC_REGNUM.
3660
3661 2010-06-24  Tom Tromey  <tromey@redhat.com>
3662
3663         * psymtab.c (lookup_partial_symbol): Mark definition as static.
3664
3665 2010-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3666             Tom Tromey  <tromey@redhat.com>
3667
3668         Fix GDB startup on readonly filesystem.
3669         * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3670
3671 2010-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3672             Pedro Alves  <pedro@codesourcery.com>
3673
3674         Fix PR 9436.
3675         * breakpoint.c (handle_jit_event): New function.
3676         (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
3677         jit, err, table and bs_class.  New variables shlib_event, jit_event,
3678         this_action and bptype.  Change bs_class assignments to this_action
3679         assignments.  new unhandled bptype internal error.  Move here
3680         shlib_event and jit_event handling from handle_inferior_event.
3681         * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
3682         Reorder items.  Remove BPSTAT_WHAT_CHECK_SHLIBS and
3683         BPSTAT_WHAT_CHECK_JIT.
3684         * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
3685         * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
3686         (handle_inferior_event): Reinitialize frame and gdbarch after
3687         bpstat_what call.  Move BPSTAT_WHAT_CHECK_SHLIBS and
3688         BPSTAT_WHAT_CHECK_JIT handling to bpstat_what.  Reinitialize even
3689         gdbarch when frame gets reinitialized.
3690
3691 2010-06-24  Hui Zhu  <teawater@gmail.com>
3692
3693        * printcmd.c (ui_printf): New function.
3694        (printf_command): Call ui_printf.
3695        (_initialize_printcmd): New command "eval".
3696
3697 2010-06-23  Ulrich Weigand  <uweigand@de.ibm.com>
3698
3699         * infrun.c (handle_inferior_event): Handle presence of single-step
3700         breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
3701         Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
3702         TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
3703         * breakpoint.c (detach_single_step_breakpoints): New function.
3704         (detach_breakpoints): Call it.
3705         (cancel_single_step_breakpoints): New function.
3706         * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
3707
3708         * spu-tdep.c (spu_memory_remove_breakpoint): New function.
3709         (spu_gdbarch_init): Install it.
3710
3711 2010-06-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
3712
3713         * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
3714         * configure: Regenerate.
3715
3716 2010-06-22  Hui Zhu  <teawater@gmail.com>
3717
3718         * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
3719         (i386_process_record): Ditto.
3720         * record.c (record_memory_query): New variable.
3721         (_initialize_record): New command "set record memory-query".
3722         * record.h (record_memory_query): New extern.
3723
3724 2010-06-21  Doug Evans  <dje@google.com>
3725
3726         * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
3727         * i386-tdep.c (i386_displaced_step_copy_insn): New function.
3728         (i386_syscall_p): Change type of lengthp to int.
3729         (i386_displaced_step_fixup): Handle kernels that run one past a
3730         syscall insn.
3731         * i386-linux-tdep.c (i386_linux_init_abi): Use
3732         i386_displaced_step_copy_insn instead of
3733         simple_displaced_step_copy_insn.
3734
3735 2010-06-21  Tom Tromey  <tromey@redhat.com>
3736
3737         * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3738         (dwarf_type_encoding_name): Likewise.
3739
3740 2010-06-21  Tom Tromey  <tromey@redhat.com>
3741
3742         * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3743         * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3744         * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3745         * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3746         * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3747         * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3748         * dwarf2read.c (tag_type_to_type): Create a new error type on
3749         failure.
3750         * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3751         * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3752
3753 2010-06-21  Michael Snyder  <msnyder@vmware.com>
3754
3755         * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
3756         not add_abbrev_prefix_cmd, for "enable breakpoints".
3757
3758 2010-06-21  Ulrich Weigand  <uweigand@de.ibm.com>
3759
3760         * dwarf2loc.c (find_location_expression): Add relocation offset
3761         to base-address-selection entry base addresses.  Read addresses
3762         (and offsets) as signed/unsigned integers, depending on the
3763         BFD's sign_extend_vma flag.  Do not call dwarf2_read_address.
3764         (loclist_describe_location): Likewise.
3765         (disassemble_dwarf_expression): Read DW_OP_addr operand as
3766         unsigned integer.  Do not call dwarf2_read_address.
3767         (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3768
3769 2010-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
3770
3771         * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3772         value instead of hard-coded SPU_LS_SIZE.
3773         (spu_software_single_step): Likewise.
3774         * spu-tdep.h (SPU_LS_SIZE): Remove.
3775
3776 2010-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
3777
3778         * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3779         limit on local store memory accesses.
3780         * spu-linux-nat.c (spu_xfer_partial): Likewise.
3781         * spu-tdep.c (spu_lslr): Remove.
3782         (spu_pointer_to_address): Do not truncate addresses.
3783         (spu_integer_to_address): Likewise.
3784         (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3785         * spu-tdep.h: Add comments.
3786         (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3787         (SPU_OVERLAY_LMA): Define.
3788
3789 2010-06-18  Stan Shebs  <stan@codesourcery.com>
3790
3791         * osdata.c (get_osdata): Warn separately if target does not report
3792         type list.
3793         (info_osdata_command): Allow empty type, report error if target
3794         does not return available types of OS data.
3795         * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3796         types if no annex supplied.
3797
3798         * thread.c (thread_id_make_value): Make a value representing the
3799         current thread.
3800         (_initialize_thread): Create $_thread.
3801
3802 2010-06-17  Joel Brobecker  <brobecker@adacore.com>
3803
3804         * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3805         last local variable declaration.  No real code change.
3806
3807 2010-06-17  Tom Tromey  <tromey@redhat.com>
3808
3809         * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3810         (dwarf2_build_psymtabs_hard): Use it.  Create addrmap on a
3811         temporary obstack.
3812
3813 2010-06-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3814             Jan Kratochvil  <jan.kratochvil@redhat.com>
3815
3816         * breakpoint.c: Include parser-defs.h.
3817         (watchpoint_exp_is_const): New function.
3818         (watch_command_1): Call watchpoint_exp_is_const to check
3819         if the expression is constant.
3820
3821 2010-06-15  Andreas Schwab  <schwab@linux-m68k.org>
3822
3823         * configure.ac: Check for RDYNAMIC also for cross builds.
3824         * configure: Regenerate.
3825
3826 2010-06-15  Pedro Alves  <pedro@codesourcery.com>
3827
3828         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3829         (SFILES): Remove solib-null.c, add solib-target.c.
3830         (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3831         (ALLDEPFILES): Remove solib-target.c.
3832         * solib-target.c (_initialize_solib_target): Set
3833         current_target_so_ops to solib_target_so_ops if not already set.
3834         * solib-null.c: Delete.
3835
3836 2010-06-14  Pedro Alves  <pedro@codesourcery.com>
3837
3838         * NEWS: Mention GDBserver's JIT compilation of tracepoint
3839         bytecode.
3840
3841 2010-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
3842
3843         * cp-valprint.c (cp_print_static_field): Members of
3844         dont_print_stat_array_obstack are of type "struct type *".
3845         (_initialize_cp_valprint): Likewise.
3846
3847 2010-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
3848
3849         * frame.c (frame_register_unwind): Do not access contents
3850         of "optimized out" unwound register value.
3851
3852 2010-06-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
3853
3854         * ada-lang.h (ada_print_type): Make varstring const.
3855         * ada-typeprint.c (print_func_type): Make name const.
3856         (ada_print_type): Make varstring const.
3857         * c-lang.h (c_print_type): Make varstring const.
3858         * c-typeprint.c (c_print_type): Likewise.
3859         * f-lang.h (f_print_type): Likewise.
3860         * f-typeprint.c (f_print_type): Likewise.
3861         * jv-lang.h (java_print_type): Likewise.
3862         * jv-typeprint.c (java_print_type): Likewise.
3863         * language.c (unk_lang_print_type): Likewise.
3864         * language.h (struct language_defn) <la_print_type>: Likewise.
3865         * m2-lang.h (m2_print_type): Likewise.
3866         * m2-typeprint.c (m2_print_type): Likewise.
3867         * p-lang.h (pascal_print_type): Likewise.
3868         * p-typeprint.c (pascal_print_type): Likewise.
3869
3870 2010-06-11  Stan Shebs  <stan@codesourcery.com>
3871
3872         Add per-operation permission flags.
3873
3874         * target.h (struct target_ops): New method to_set_permissions.
3875         (target_set_permissions): New macro.
3876         (target_insert_breakpoint): Change macro to function.
3877         (target_remove_breakpoint): Ditto.
3878         (target_stop): Ditto.
3879         (may_write_registers): Declare.
3880         (may_write_memory): Declare.
3881         (may_insert_breakpoints): Declare.
3882         (may_insert_tracepoints): Declare.
3883         (may_insert_fast_tracepoints): Declare.
3884         (may_stop): Declare.
3885         * target.c (may_write_registers, may_write_registers_1): New globals.
3886         (may_write_memory, may_write_memory_1): New globals.
3887         (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3888         (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3889         (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3890         globals.
3891         (may_stop, may_stop_1): New global.
3892         (target_xfer_partial): Test for write permission.
3893         (target_store_registers): Ditto.
3894         (target_insert_breakpoint): New function.
3895         (target_remove_breakpoint): New function.
3896         (target_stop): New function.
3897         (_initialize_targets): Add new set/show variables.
3898         (set_write_memory_permission): New function.
3899         (update_target_permissions): New function.
3900         (set_target_permissions): New function.
3901         (update_current_target): Default to_set_permissions.
3902         (_initialize_targets): Use new globals and setter function.
3903         * tracepoint.c (start_tracing): Test for permission.
3904         * inferior.h (update_observer_mode): Declare.
3905         * infrun.c (non_stop_1): Define earlier.
3906         (observer_mode, observer_mode_1): New globals.
3907         (set_observer_mode, show_observer_mode): New functions.
3908         (update_observer_mode): New function.
3909         (_initialize_infrun): Define "set observer" command.
3910         * remote.c (PACKET_QAllow): New optional packet.
3911         (remote_protocol_features): Add QAllow.
3912         (remote_set_permissions): New function.
3913         (remote_start_remote): Call it.
3914         (init_remote_ops): Add it to target vector.
3915         (_initialize_remote): Add config command for QAllow.
3916
3917 2010-06-11  Tom Tromey  <tromey@redhat.com>
3918
3919         * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
3920         DW_AT_vtable_elem_location even when GCC extension is seen.
3921
3922 2010-06-11  Tom Tromey  <tromey@redhat.com>
3923
3924         PR gdb/9977, PR exp/11636:
3925         * value.h (value_offset): Update.
3926         (struct lval_funcs) <check_validity>: New field.
3927         <copy_closure>: Make argument const.
3928         (value_computed_closure): Update.
3929         (value_contents_for_printing): Declare.
3930         (value_bits_valid): Likewise.
3931         (val_print): Likewise.
3932         (set_value_component_location): Update.
3933         (value_entirely_optimized_out): Declare.
3934         * value.c (value_offset): Argument now const.
3935         (require_not_optimized_out): New function.
3936         (value_contents_for_printing): New function.
3937         (value_contents_all): Call require_not_optimized_out.
3938         (value_contents): Likewise.
3939         (value_bits_valid): New function.
3940         (value_computed_closure): Argument now const.
3941         (set_value_component_location): Make 'whole' argument const.
3942         (value_entirely_optimized_out): New function.
3943         (value_bitsize): Argument now 'const'.
3944         (value_bitpos): Likewise.
3945         (value_type): Likewise.
3946         * valprint.h (val_print_array_elements): Update.
3947         * valprint.c (val_print): Add 'val' argument.  Use
3948         valprint_check_validity.
3949         (valprint_check_validity): New function.
3950         (value_check_printable): Use value_entirely_optimized_out.
3951         (common_val_print): Update.
3952         (value_print): Likewise.
3953         (val_print_array_elements): Add 'val' argument.
3954         * valops.c (value_fetch_lazy): Use value_contents_for_printing,
3955         value_bits_valid.  Reinit frame cache for lval_computed.
3956         * sh64-tdep.c (sh64_do_register): Update.
3957         * scm-valprint.c (scm_val_print): Add 'val' argument.
3958         * scm-lang.h (scm_val_print): Update.
3959         * python/python.h (apply_val_pretty_printer): Update.
3960         * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
3961         argument.  Call set_value_component_location.
3962         * printcmd.c (print_scalar_formatted): Update.
3963         * p-valprint.c (pascal_val_print): Add 'val' argument.
3964         (pascal_object_print_value_fields): Likewise.
3965         (pascal_object_print_value): Likewise.
3966         (pascal_object_print_static_field): Update.
3967         * p-lang.h (pascal_val_print): Update.
3968         (pascal_object_print_value_fields): Update.
3969         * mt-tdep.c (mt_registers_info): Update.
3970         * mi/mi-main.c (get_register): Update.
3971         (mi_cmd_data_evaluate_expression): Use common_val_print.
3972         * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
3973         (m2_print_unbounded_array): Likewise.
3974         (m2_val_print): Likewise.
3975         * m2-lang.h (m2_val_print): Update.
3976         * language.h (struct language_defn) <la_val_print>: Add 'val'
3977         argument.
3978         (LA_VAL_PRINT): Likewise.
3979         * language.c (unk_lang_val_print): Add 'val' argument.
3980         * jv-valprint.c (java_print_value_fields): Add 'val' argument.
3981         (java_val_print): Likewise.
3982         * jv-lang.h (java_val_print): Add 'val' argument.
3983         * infcmd.c (default_print_registers_info): Update.
3984         * f-valprint.c (f77_print_array_1): Add 'val' argument.
3985         (f77_print_array): Likewise.
3986         (f_val_print): Likewise.
3987         * f-lang.h (f_val_print): Add 'val' argument.
3988         * dwarf2loc.c (read_pieced_value): Use value_bitsize and
3989         value_bitpos.
3990         <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning.  Call
3991         set_value_optimized_out.
3992         (write_pieced_value): Use value_bitsize and value_bitpos.
3993         <default>: Don't exit loop.
3994         (check_pieced_value_validity): New function.
3995         (pieced_value_funcs): Reference check_pieced_value_validity,
3996         check_pieced_value_invalid.
3997         (copy_pieced_value_closure): Update.
3998         (check_pieced_value_bits): New function.
3999         (check_pieced_value_invalid): New function.
4000         * d-valprint.c (dynamic_array_type): Add 'val' argument.
4001         (d_val_print): Likewise.
4002         * d-lang.h (d_val_print): Update.
4003         * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4004         (cp_print_value_fields_rtti): Likewise.
4005         (cp_print_value): Likewise.
4006         (cp_print_static_field): Update.
4007         * c-valprint.c (c_val_print): Add 'val' argument.
4008         (c_value_print): Update.
4009         * c-lang.h (c_val_print): Update.
4010         (cp_print_value_fields): Likewise.
4011         (cp_print_value_fields_rtti): Likewise.
4012         * ada-valprint.c (struct ada_val_print_args): Remove.
4013         (val_print_packed_array_elements): Add 'val' argument.
4014         (ada_val_print): Likewise.  Rewrite.
4015         (ada_val_print_stub): Remove.
4016         (ada_val_print_array): Add 'val' argument.
4017         (ada_val_print_1): Likewise.
4018         (print_variant_part): Likewise.
4019         (ada_value_print): Update.
4020         (print_record): Add 'val' argument.
4021         (print_field_values): Likewise.
4022         * ada-lang.h (ada_val_print): Update.
4023
4024 2010-06-11  Tom Tromey  <tromey@redhat.com>
4025
4026         * vec.h (VEC_cleanup): New macro.
4027         (DEF_VEC_ALLOC_FUNC_I): Update.
4028         (DEF_VEC_ALLOC_FUNC_P): Likewise.
4029         (DEF_VEC_ALLOC_FUNC_O): Likewise.
4030         * dwarf2loc.c (struct axs_var_loc): Remove.
4031         (unimplemented): New function.
4032         (translate_register): Likewise.
4033         (access_memory): Likewise.
4034         (compile_dwarf_to_ax): Likewise.
4035         (dwarf2_tracepoint_var_loc): Remove.
4036         (dwarf2_tracepoint_var_access): Likewise.
4037         (dwarf2_tracepoint_var_ref): Likewise.
4038         (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4039         (loclist_tracepoint_var_ref): Likewise.
4040         * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4041         * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4042         require_composition.  No longer static.
4043         (execute_stack_op): Update.
4044         * ax-gdb.h (trace_kludge): Declare.
4045
4046 2010-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4047
4048         * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4049         (should_be_inserted): Return zero also on NULL OWNER.
4050         (breakpoint_program_space_exit): New OWNER comment.
4051         (insert_breakpoint_locations): Extend comment for OWNER.
4052         (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4053         (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4054         New OWNER comment.
4055         (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4056         (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4057         (bpstat_check_location): New assert on OWNER.
4058         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4059         and B initializations to the code block.  New assert on them.
4060         (print_one_breakpoint_location): New OWNER comment.
4061         (watchpoint_locations_match): Assert on OWNER.
4062         (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4063         initializations to the code block.  New assert on OWNER.
4064         (set_breakpoint_location_function): New assert on OWNER.
4065         (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4066         (bp_location_compare, update_global_location_list)
4067         (update_global_location_list): New OWNER comment.
4068
4069 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
4070
4071         * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4072
4073 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
4074
4075         * config/nm-linux.h (struct target_ops): Remove forward declaration.
4076         (lin_thread_get_thread_signals): Remove prototype.
4077         (GET_THREAD_SIGNALS): Remove.
4078         * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4079         * linux-thread-db.c (check_thread_signals): Directly call
4080         lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4081
4082 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
4083
4084         * gregset.h (GDB_FPXREGSET_T): Remove.
4085         (gdb_fpxregset_t): Likewise.
4086         (supply_fpxregset): Remove prototype.
4087         (fill_fpxregset): Likewise.
4088         * i386-linux-nat.c (supply_fpxregset): Remove.
4089         (fill_fpxregset): Likewise.
4090         (fetch_fpxregs): Inline supply_fpxregset call.
4091         (store_fpxregs): Inline fill_fpxregset call.
4092
4093         * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4094         * config/i386/nm-linux.h: Remove file.
4095
4096 2010-06-09  Michael Snyder  <msnyder@vmware.com>
4097
4098         * target.c (update_current_target): Fix spelling error in comment.
4099         (target_mourn_inferior): Fix spelling error in error message.
4100
4101 2010-06-08  Paul Hilfinger  <hilfingr@adacore.com>
4102
4103       * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4104       SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4105
4106 2010-06-08  Michael Snyder  <msnyder@vmware.com>
4107
4108         * remote.c (remote_close): Set inferior_ptid to null_ptid.
4109
4110 2010-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4111
4112         * configure.ac <"${have_libpython}" != no>: New workaround of
4113         python#4434.
4114         * configure: Regenerate.
4115
4116 2010-06-08  Hui Zhu  <teawater@gmail.com>
4117
4118         * record.c (record_wait): Move signal out of replay code.
4119
4120 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4121
4122         Fix PR 10640.
4123         * dwarf2-frame.c (no_dwarf_call): New function.
4124         (execute_stack_op): Set CTX->DWARF_CALL.
4125         * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4126         * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4127         (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4128         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4129         (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4130         (needs_frame_dwarf_call): New function.
4131         (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4132         * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4133         Update the comment.  Move variables die, offset and error call to ...
4134         (follow_die_ref): ... a new function.
4135         (dwarf2_fetch_die_location_block): New function.
4136         * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4137
4138 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4139
4140         * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4141         (dwarf_expr_tls_address): Use per_cu instead of objfile.
4142         (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4143         Initialize new BATON.PER_CU.  Adjust CTX->GDBARCH initialization for
4144         this change.
4145         (struct needs_frame_baton): New field per_cu.
4146         (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4147         * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4148
4149 2010-06-07  Sami Wagiaalla  <swagiaal@redhat.com>
4150
4151         * cp-support.c (make_symbol_overload_list_namespace): Only search
4152         static and global blocks.
4153         (make_symbol_overload_list_block): New function.
4154         (make_symbol_overload_list): Separate namespace search from block
4155         search.
4156         (make_symbol_overload_list_qualified): Use
4157         make_symbol_overload_list_block.
4158
4159 2010-06-07  Sami Wagiaalla  <swagiaal@redhat.com>
4160
4161         * value.h: Created oload_search_type enum.
4162         (find_overload_match): Use oload_search_type enum.
4163         * valops.c (find_overload_match): Support combined member and
4164         non-member search.
4165         * eval.c (evaluate_subexp_standard): Calls to
4166         find_overload_match now use oload_search_type enum.
4167         (oload_method_static): Verify index is a proper value.
4168         * valarith.c (value_user_defined_cpp_op): Search for and handle
4169         both member and non-member operators.
4170         (value_user_defined_cpp_op): New function.
4171         (value_user_defined_op): New function.
4172         (value_x_unop): Use value_user_defined_op.
4173         (value_x_binop): Ditto.
4174         * cp-support.c (make_symbol_overload_list_using): Added block
4175         iteration.
4176         Add check for namespace aliases and imported declarations.
4177
4178 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4179
4180         * breakpoint.h (owner): Extend the comment.
4181
4182 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4183
4184         Clear stale specific bp_location from former whole breakpoint.
4185         * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4186         code ...
4187         (free_bp_location): ... here.  Rename there the called function to
4188         bpstat_remove_bp_location_callback.
4189         (bpstat_remove_breakpoint_callback): Rename to ...
4190         (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4191         to struct bp_location.  Change the called function to
4192         bpstat_remove_bp_location.  Create new declaration for the function.
4193         (bpstat_remove_breakpoint): Rename to ...
4194         (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4195         code for the new parameter type.
4196
4197 2010-06-07  Nathan Sidwell  <nathan@codesourcery.com>
4198
4199         * README: Make version-agnostic.
4200
4201 2010-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4202
4203         Fix duplicate types for single DIE.
4204         * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4205         set_die_type.
4206         (read_array_type): Remove type initialization.  Recheck get_die_type
4207         after initial die_type.  Move set_die_type before set_descriptive_type.
4208         (read_set_type): New variable domain_type.  Recheck get_die_type after
4209         initial die_type.  Move attr initialization later.
4210         (read_tag_pointer_type, read_tag_reference_type): New variable
4211         target_type.  Recheck get_die_type after initial die_type.
4212         (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4213         die_type and die_containing_type.
4214         (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4215         Recheck get_die_type after initial die_type.
4216         (read_subrange_type): Recheck get_die_type after initial die_type.
4217         Move set_die_type before set_descriptive_type.
4218         (set_die_type): Extend the function comment.  Call complaint if DIE has
4219         some type already set.
4220
4221 2010-06-05  Vladimir Prus  <vladimir@codesourcery.com>
4222
4223         * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4224         for current naming of thread groups (iN, not N).
4225
4226 2010-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
4227
4228         * ada-lang.c (ada_operator_length): Constify `struct expression'.
4229         * parse.c (operator_length): Likewise.
4230         (operator_length_standard): Likewise.
4231         * parser-defs.h (operator_length): Likewise.
4232         (operator_length_standard): Likewise.
4233         (struct exp_descriptor <operator_length>): Likewise.
4234
4235 2010-06-04  Doug Evans  <dje@google.com>
4236
4237         Add support for enabling/disabling individual pretty-printers.
4238         * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4239         * python/python-internal.h (gdbpy_enabled_cst): Declare.
4240         * python/python.c (gdbpy_enabled_cst): Define.
4241         (_initialize_python): Initialize gdbpy_enabled_cst.
4242         * NEWS: Add entry.
4243
4244 2010-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4245
4246         * breakpoint.c (update_global_location_list): Fix comment typo.
4247
4248 2010-06-04  Hui Zhu  <teawater@gmail.com>
4249
4250         * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4251
4252 2010-06-03  Doug Evans  <dje@google.com>
4253
4254         * configure.ac: Don't fail if python is unusable when
4255         configured with --with-python=auto.
4256         * configure: Regenerate.
4257
4258 2010-06-03  Sami Wagiaalla  <swagiaal@redhat.com>
4259
4260         * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4261
4262 2010-06-03  Pierre Muller  <muller@ics.u-strasbg.fr>
4263
4264         * valprint.h (get_array_bounds): Change low and high parameter types
4265         to LONGEST *.
4266         * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4267         compute bounds.
4268         (val_print_array_elements): Adapt to change above.
4269         * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4270         * p-valprint.c (pascal_val_print): Likewise.
4271
4272 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4273
4274         * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4275         .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4276         .F08.
4277
4278 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4279
4280         Support DW_TAG_module as separate namespaces.
4281         * dwarf2read.c (typename_concat): New parameter physname.
4282         (read_module_type): New function and declaration.
4283         (scan_partial_symbols): Scan also DW_TAG_module children.
4284         (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4285         to typename_concat backward compatible physname value 0.
4286         (partial_die_full_name, read_namespace_type): Pass to typename_concat
4287         backward compatible physname value 0.
4288         (add_partial_module, read_module): Remove FIXME comment.
4289         (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4290         (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4291         DIEs under DW_TAG_module.
4292         (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4293         DW_AT_MIPS_linkage_name first, extend it for language_fortran
4294         && physname and return there instead of just setting NAME.  Extend
4295         the main block for language_fortran.  Pass physname parameter to the
4296         typename_concat call.
4297         (read_import_statement, read_func_scope, get_scope_pc_bounds)
4298         (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4299         (new_symbol): Fill in cplus_specific.demangled_name if it is still
4300         missing from SYMBOL_SET_NAMES in the language_fortran case.
4301         (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4302         variables.
4303         (read_type_die) <DW_TAG_module>: New.
4304         (MAX_SEP_LEN): Increase to 7.
4305         (typename_concat): New parameter physname.  New variable lead.  Support
4306         also language_fortran.
4307         * f-exp.y (yylex): Consider : also as a symbol name character class.
4308         * f-lang.c: Include cp-support.h.
4309         (f_word_break_characters, f_make_symbol_completion_list): New functions.
4310         (f_language_defn): Use cp_lookup_symbol_nonlocal,
4311         f_word_break_characters and f_make_symbol_completion_list.
4312         * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4313         * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4314         * symtab.c (symbol_init_language_specific): Support language_fortran.
4315         (symbol_find_demangled_name): New comment on language_fortran.
4316         (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4317         for language_fortran.
4318         (lookup_symbol_aux_local): Check imports also for language_fortran.
4319         (default_make_symbol_completion_list): Rename to ...
4320         (default_make_symbol_completion_list_break_on): ... this name.  New
4321         parameter break_on, use it.
4322         (default_make_symbol_completion_list): New stub.
4323         * symtab.h (default_make_symbol_completion_list_break_on): New
4324         prototype.
4325
4326 2010-06-02  Joel Brobecker  <brobecker@adacore.com>
4327
4328         * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4329         to error.
4330
4331 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4332
4333         * dwarf2read.c (typename_concat): Add const to the variable sep.
4334
4335 2010-06-02  Tom Tromey  <tromey@redhat.com>
4336
4337         * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4338         * dwarf2read.c (dwarf_stack_op_name): No longer static.  Return
4339         type is const.  Add 'def' argument.  Add missing operators, remove
4340         unhandled ones.
4341         (decode_locdesc): Update.
4342         (dwarf2_always_disassemble): New global.
4343         (show_dwarf2_always_disassemble): New function.
4344         (_initialize_dwarf2_read): Add always-disassemble.
4345         (dwarf2_per_cu_offset_size): New function.
4346         * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4347         (piece_end_p): New function.
4348         (locexpr_describe_location_piece): Replace 'size' argument with
4349         'end'.  Use piece_end_p.  Rewrite recognition of TLS.  Recognize
4350         some constants.  Remove errors.
4351         (disassemble_dwarf_expression): New function.
4352         (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4353         Add 'offset_size' argument.
4354         (loclist_describe_location): Change output formatting.
4355         * dwarf2expr.h (dwarf_stack_op_name): Declare.
4356
4357 2010-06-02  Sami Wagiaalla  <swagiaal@redhat.com>
4358
4359         * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4360         anonymous type case.
4361
4362 2010-06-02  Pierre Muller  <muller@ics.u-strasbg.fr>
4363
4364         * dwarf2read.c (read_subrange_type): Handle missing base type
4365         according to Dwarf-2 specifications.
4366
4367 2010-06-01  Sergio Durigan Junior  <sergiodj@redhat.com>
4368
4369         * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4370         BINOP_EXCL.
4371         (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4372         UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4373         (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4374         BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4375         UNOP_CHMAX, UNOP_CHMIN.
4376         * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4377         UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4378         UNOP_CHMIN>: Remove opcodes.
4379
4380 2010-06-01  Pierre Muller  <muller@ics.u-strasbg.fr>
4381
4382         * dwarf2read.c (read_func_scope): Do not complain for
4383         external function if bounds are not found.
4384
4385 2010-06-01  Pedro Alves  <pedro@codesourcery.com>
4386
4387         * NEWS: Mention gdbserver fast tracepoints support.
4388
4389 2010-05-31  Pierre Muller  <muller@ics.u-strasbg.fr>
4390
4391         * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4392         New macros.
4393         (windows_set_console_info): New function.
4394         (windows_create_inferior): Call windows_set_console_info
4395         if NEW_CONSOLE is true.
4396         (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4397         (_initialize_loadable): Initialize GetConsoleFontSize and
4398         GetCurrentConsoleFont.
4399
4400 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4401
4402         * Makefile.in (RDYNAMIC): New.
4403         (SFILES): Add proc-service.list.
4404         * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4405         (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4406         * config/arm/linux.mh: Likewise.
4407         * config/i386/linux.mh: Likewise.
4408         * config/i386/linux64.mh: Likewise.
4409         * config/ia64/linux.mh: Likewise.
4410         * config/m32r/linux.mh: Likewise.
4411         * config/m68k/linux.mh: Likewise.
4412         * config/mips/linux.mh: Likewise.
4413         * config/pa/linux.mh: Likewise.
4414         * config/powerpc/linux.mh: Likewise.
4415         * config/powerpc/ppc64-linux.mh: Likewise.
4416         * config/s390/s390.mh: Likewise.
4417         * config/sparc/linux.mh: Likewise.
4418         * config/sparc/linux64.mh: Likewise.
4419         * config/xtensa/linux.mh: Likewise.
4420         * configure.ac: New RDYNAMIC on native host and GCC.
4421         (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4422         * configure: Regenerate.
4423         * proc-service.list: New.
4424
4425 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4426
4427         * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4428         CONTENT.
4429
4430 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4431
4432         * linux-nat.c (linux_nat_wait_1): Do not call
4433         linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4434         TARGET_WAITKIND_SIGNALLED.
4435
4436 2010-05-27  Joel Brobecker  <brobecker@adacore.com>
4437
4438         * ada-lang.c (ada_inferior_data): New struct.
4439         (ada_inferior_data): New static global.
4440         (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4441         (ada_get_tsd_type): New functions.
4442         (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4443         to look the tsd type up.
4444         (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4445         event.  Set ada_inferior_data.
4446
4447 2010-05-27  Pedro Alves  <pedro@codesourcery.com>
4448
4449         * remote.c (unpack_varlen_hex): Remove forward declaration.
4450         (remote_console_output): Make static, and add forward declaration.
4451         * remote.h: Drop FIXME comment.
4452         (unpack_varlen_hex): Declare.
4453         (remote_console_output, remote_cisco_objfile_relocate)
4454         (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4455         Delete declarations.
4456         * tracepoint.c: Include "remote.h".
4457         (unpack_varlen_hex): Delete declaration.
4458
4459 2010-05-27  Tom Tromey  <tromey@redhat.com>
4460
4461         * dwarf2loc.c (struct piece_closure) <refc>: New field.
4462         (allocate_piece_closure): Initialize refc.
4463         (copy_pieced_value_closure): Use refc.
4464         (free_pieced_value_closure): Likewise.
4465
4466 2010-05-27  Tom Tromey  <tromey@redhat.com>
4467
4468         * arm-tdep.c (push_stack_item): 'contents' now const.
4469         (arm_push_dummy_call): Make 'val' const.  Use value_contents, not
4470         value_contents_writeable.  Introduce new temporary.
4471
4472 2010-05-27  Tom Tromey  <tromey@redhat.com>
4473
4474         * findcmd.c (parse_find_args): Use value_contents, not
4475         value_contents_raw.
4476
4477 2010-05-27  Tom Tromey  <tromey@redhat.com>
4478
4479         * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4480         const.  Use value_contents, not value_contents_writeable.
4481
4482 2010-05-27  Joel Brobecker  <brobecker@adacore.com>
4483
4484         * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4485         by call to value_contents.
4486
4487 2010-05-27  Ozkan Sezer  <sezeroz@gmail.com>
4488
4489         * MAINTAINERS: Add myself for write after approval privileges.
4490
4491 2010-05-26  Doug Evans  <dje@google.com>
4492
4493         Allow python to find its files if moved from original location.
4494         * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4495         (GDB_AC_WITH_DIR): Call it.
4496         * configure.ac: Define WITH_PYTHON_PATH if we can find the
4497         python installation directory.
4498         * config.in: Regenerate.
4499         * configure: Regenerate.
4500         * defs.h (python_libdir): Declare.
4501         * main.c (python_libdir): Define.
4502         (captured_main): Initialize python_libdir.
4503         * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4504         call Py_SetProgramName to make sure python can find its libraries
4505         and modules.
4506
4507         * configure.ac: Try to use python's distutils to fetch compilation
4508         parameters.
4509         * configure: Regenerate.
4510         * python/python-config.py: New file.
4511
4512 2010-05-26  Ozkan Sezer  <sezeroz@gmail.com>
4513
4514         * ser-tcp.c (net_open): Check error return from socket() call by its
4515         equality to -1 not by it being negative.
4516         (net_close): Likewise.
4517
4518 2010-05-26  Pedro Alves  <pedro@codesourcery.com>
4519
4520         * NEWS: Mention the `qRelocInsn' feature.
4521         * gdbarch.sh (relocate_instruction): New.
4522         * amd64-tdep.c (rip_relative_offset): New.
4523         (append_insns): New.
4524         (amd64_relocate_instruction): New.
4525         (amd64_init_abi): Install it.
4526         * i386-tdep.c (append_insns): New.
4527         (i386_relocate_instruction): New.
4528         (i386_gdbarch_init): Install it.
4529         * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4530         * gdbarch.h, gdbarch.c: Regenerate.
4531
4532 2010-05-26  Tom Tromey  <tromey@redhat.com>
4533
4534         * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4535         (struct dwarf2_loclist_baton) <data>: Likewise.
4536         * dwarf2loc.c (find_location_expression): Constify return type.
4537         (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4538         (dwarf2_loc_desc_needs_frame): Likewise.
4539         (loclist_read_variable): Constify.
4540         (loclist_describe_location): Likewise.
4541         (loclist_tracepoint_var_ref): Likewise.
4542
4543 2010-05-25  Tom Tromey  <tromey@redhat.com>
4544
4545         * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4546         (dwarf_expr_frame_base_1): Likewise.
4547         (read_pieced_value): Update.
4548         (needs_frame_frame_base): Constify.
4549         (dwarf2_tracepoint_var_loc): Likewise.
4550         (dwarf2_tracepoint_var_access): Likewise.
4551         (locexpr_describe_location_piece): Likewise.
4552         (locexpr_describe_location_1): Likewise.
4553         * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4554         Constify.
4555         (data): Now const.
4556         (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4557         (dwarf_expr_eval, read_uleb128, read_sleb128)
4558         (dwarf2_read_address): Update.
4559         * dwarf2expr.c (dwarf_expr_eval): Constify.
4560         (read_uleb128): Likewise.
4561         (read_sleb128): Likewise.
4562         (dwarf2_read_address): Likewise.
4563         (require_composition): Likewise.
4564         (execute_stack_op): Likewise.
4565         * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4566         "const gdb_byte *".
4567         * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4568         Now const.
4569         (no_get_frame_base): Constify.
4570         (execute_stack_op): Likewise.
4571         (execute_cfa_program): Likewise.
4572         (read_encoded_value): Likewise.
4573
4574 2010-05-25  Doug Evans  <dje@google.com>
4575
4576         * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4577
4578         * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4579         * event-loop.c: ... here.
4580         * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4581         `error' for clarity.
4582         (tui_getc): Pass correct value for `error' parameter to
4583         tui_readline_output.
4584
4585         Add python gdb.GdbError and gdb.string_to_argv.
4586         * NEWS: Document them.
4587         * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4588         the exception is gdb.GdbError.  Print a second traceback if there's
4589         an error computing the error message.
4590         (gdbpy_string_to_argv): New function.
4591         * python/py-utils.c (gdbpy_obj_to_string): New function.
4592         (gdbpy_exception_to_string): New function.
4593         * python/python-internal.h (gdbpy_string_to_argv): Declare.
4594         (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4595         (gdbpy_gdberror_exc): Declare.
4596         * python/python.c (gdbpy_gdberror_exc): New global.
4597         (_initialize_python): Initialize gdbpy_gdberror_exc and create
4598         gdb.GdbError.
4599         (GdbMethods): Add string_to_argv.
4600
4601 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
4602
4603         * windows-nat.c (display_selector): Call GetLastError to give better
4604         failure explanation.
4605
4606 2010-05-24  Pedro Alves  <pedro@codesourcery.com>
4607
4608         * config.in: Regenerate.
4609
4610 2010-05-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
4611
4612         Code cleanup.
4613         * target.c (push_target): Return only void.  Remove the return value
4614         comment.
4615         * target.h (push_target): Return only void.
4616
4617 2010-05-23  Pedro Alves  <pedro@codesourcery.com>
4618
4619         Update gnulib from latest git.
4620         (250b80067c1e1d8faa0c42fb572f721975b929c5)
4621
4622         * gnulib/memcmp.c: Removed.
4623         * gnulib/memchr.valgrind: New.
4624         * gnulib/stddef.in.h: New.
4625         * gnulib/Makefile.am: Updated.
4626         * gnulib/memchr.c: Updated.
4627         * gnulib/memmem.c: Updated.
4628         * gnulib/stdint.in.h: Updated.
4629         * gnulib/str-two-way.h: Updated.
4630         * gnulib/string.in.h: Updated.
4631         * gnulib/wchar.in.h: Updated.
4632
4633         * gnulib/extra/link-warning.h: Removed.
4634         * gnulib/extra/c++defs.h: New.
4635         * gnulib/extra/warn-on-use.h: New.
4636         * gnulib/extra/arg-nonnull.h: Updated.
4637
4638         * gnulib/m4/extensions.m4: Updated.
4639         * gnulib/m4/gnulib-cache.m4: Updated.
4640         * gnulib/m4/gnulib-common.m4: Updated.
4641         * gnulib/m4/gnulib-comp.m4: Updated.
4642         * gnulib/m4/gnulib-tool.m4: Updated.
4643         * gnulib/m4/include_next.m4: Updated.
4644         * gnulib/m4/longlong.m4: Updated.
4645         * gnulib/m4/memchr.m4: Updated.
4646         * gnulib/m4/memmem.m4: Updated.
4647         * gnulib/m4/stdint.m4: Updated.
4648         * gnulib/m4/string_h.m4: Updated.
4649         * gnulib/m4/memcmp.m4: Removed.
4650         * gnulib/m4/onceonly_2_57.m4: Removed.
4651         * gnulib/m4/00gnulib.m4: New.
4652         * gnulib/m4/mmap-anon.m4: New.
4653         * gnulib/m4/multiarch.m4: New.
4654         * gnulib/m4/onceonly.m4: New.
4655         * gnulib/m4/stddef_h.m4: New.
4656         * gnulib/m4/warn-on-use.m4: New.
4657         * gnulib/m4/wchar.m4: Removed.
4658         * gnulib/m4/wchar_h.m4: New.
4659         * gnulib/m4/wchar_t.m4: New.
4660         * gnulib/m4/wint_t.m4: New.
4661
4662         * aclocal.m4: Regenerate.
4663         * config.in: Likewise.
4664         * configure: Likewise.
4665         * gnulib/Makefile.in: Likewise.
4666
4667 2010-05-21  Tom Tromey  <tromey@redhat.com>
4668
4669         * dwarf2loc.c (extract_bits_primitive): New function.
4670         (extract_bits): Likewise.
4671         (insert_bits): Likewise.
4672         (copy_bitwise): Likewise.
4673         (read_pieced_value): Do all operations in bits.
4674         (write_pieced_value): Likewise.
4675         * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
4676         * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
4677         Always use xrealloc to resize piece array.
4678         (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
4679         <DW_OP_piece>: Update.
4680         <DW_OP_bit_piece>: New case.
4681
4682 2010-05-21  Tom Tromey  <tromey@redhat.com>
4683
4684         * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
4685         <DWARF_VALUE_OPTIMIZED_OUT>: New case.
4686         * dwarf2expr.h (enum dwarf_value_location)
4687         <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
4688         * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
4689         (add_piece): Handle empty piece.
4690         (execute_stack_op) <DW_OP_piece>: Handle
4691         DWARF_VALUE_OPTIMIZED_OUT.
4692
4693 2010-05-21  Tom Tromey  <tromey@redhat.com>
4694
4695         * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
4696         evaluate_subexp, not evaluate_subexp_with_coercion.
4697
4698 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
4699
4700         * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
4701         attribute.
4702
4703 2010-05-21  Tom Tromey  <tromey@redhat.com>
4704
4705         * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
4706         offset.
4707         (write_pieced_value): Likewise.
4708
4709 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
4710
4711         * dwarf2read.c (process_die): Also allow DW_TAG_const_type
4712         and DW_TAG_volatile_type.
4713         (new_symbol): Likewise.
4714
4715 2010-05-20  Pierre Muller  <muller@ics.u-strasbg.fr>
4716
4717         * p-valprint.c (pascal_val_print): Call get_array_bounds
4718         to obtain the number of elements in an array.
4719
4720 2010-05-19  Doug Evans  <dje@google.com>
4721
4722         * python.c (gdbpy_print_stack): Ensure output ends with a newline.
4723
4724         * python.c (source_python_script): Add comment.
4725         (source_python_script_for_objfile): Remove unnecessary call to
4726         gdbpy_print_stack.
4727
4728 2010-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4729             Sergio Durigan Junior  <sergiodj@redhat.com>
4730
4731         Code cleanup.
4732         * parse.c (exp_iterate): Use operator_length wrapper function.
4733
4734 2010-05-18  Michael Snyder  <msnyder@vmware.com>
4735
4736         * ada-lang.c: White space.
4737         * ada-typeprint.c: White space.
4738         * ada-valprint.c: White space.
4739         * addrmap.c: White space.
4740         * auxv.c: White space.
4741         * ax-gdb.c: White space.
4742
4743 2010-05-18  Hui Zhu  <teawater@gmail.com>
4744
4745         * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4746         for oldfp.
4747         (inferior_call_waitpid): Move make_cleanup out of check.
4748         Check the return of waitpid.
4749         (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4750
4751 2010-05-17  Michael Snyder  <msnyder@vmware.com>
4752
4753         * tui/tui.c: White space.
4754         * tui/tui-data.c: White space.
4755         * tui/tui-disasm.c: White space.
4756         * tui/tui-file.c: White space.
4757         * tui/tui-interp.c: White space.
4758         * tui/tui-main.c: White space.
4759         * tui/tui-out.c: White space.
4760         * tui/tui-regs.c: White space.
4761         * tui/tui-source.c: White space.
4762         * tui/tui-stack.c: White space.
4763         * tui/tui-win.c: White space.
4764         * tui/tui-winsource.c: White space.
4765
4766         * procfs.c: White space.
4767
4768         * python/py-auto-load.c: White space.
4769         * python/py-block.c: White space.
4770         * python/py-breakpoint.c: White space.
4771         * python/py-cmd.c: White space.
4772         * python/py-function.c: White space.
4773         * python/py-lazy-string.c: White space.
4774         * python/py-objfile.c: White space.
4775         * python/py-param.c: White space.
4776         * python/py-prettyprint.c: White space.
4777         * python/py-progspace.c: White space.
4778         * python/py-symtab.c: White space.
4779         * python/python.c: White space.
4780         * python/py-type.c: White space.
4781         * python/py-utils.c: White space.
4782         * python/py-value.c: White space.
4783
4784         * mi/mi-cmd-break.c: White space.
4785         * mi/mi-cmd-env.c: White space.
4786         * mi/mi-cmds.c: White space.
4787         * mi/mi-cmd-stack.c: White space.
4788         * mi/mi-cmd-var.c: White space.
4789         * mi/mi-console.c: White space.
4790         * mi/mi-getopt.c: White space.
4791         * mi/mi-interp.c: White space.
4792         * mi/mi-main.c: White space.
4793         * mi/mi-out.c: White space.
4794         * mi/mi-parse.c: White space.
4795
4796         * cli/cli-cmds.c: White space.
4797         * cli/cli-decode.c: White space.
4798         * cli/cli-dump.c: White space.
4799         * cli/cli-interp.c: White space.
4800         * cli/cli-logging.c: White space.
4801         * cli/cli-script.c: White space.
4802         * cli/cli-setshow.c: White space.
4803
4804         * valarith.c: White space.
4805         * valops.c: White space.
4806         * valprint.c: White space.
4807         * value.c: White space.
4808         * varobj.c: White space.
4809         * xcoffread.c: White space.
4810         * xml-support.c: White space.
4811         * xml-tdesc.c: White space.
4812
4813 2010-05-17  Andreas Schwab  <schwab@redhat.com>
4814
4815         PR gdb/11092
4816         * c-lang.c (c_printstr): Compute real length of NUL terminated
4817         string at first.
4818
4819 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
4820
4821         * parse.c (parse_exp_in_context): When block is not NULL, use
4822         its associated language to parse the expression instead of
4823         the current_language.
4824
4825 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
4826
4827         * jv-lang.c (java_lookup_class): Remove commented out code.
4828         (type_from_class): Likewise.
4829         (java_op_print_tab): Remove commented-out elements.
4830
4831 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
4832
4833         * ada-lang.c (to_fixed_range_type): The the raw index type as
4834         argument instead of the raw type name.  Remove orig_type parameter.
4835         Update calls throughout.
4836         (ada_fixup_array_indexes_type): New function.
4837         (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4838         * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4839         * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4840         Remove name parameter.
4841         (print_array_type): Add call to ada_fixup_array_indexes_type.
4842         Update calls to print_range_type.
4843         (ada_print_type): Update calls to print_range_type.
4844
4845 2010-05-17  Pierre Muller  <muller@ics.u-strasbg.fr>
4846
4847         * dwarf2read.c (read_set_type): Set type length if
4848         DW_AT_byte_size attribute is present.
4849
4850 2010-05-17  Pierre Muller  <muller@ics.u-strasbg.fr>
4851
4852         * p-valprint.c (pascal_val_print): Handle set type if range limits
4853         are undefined but size is known.
4854
4855 2010-05-17  Pedro Alves  <pedro@codesourcery.com>
4856
4857         * procfs.c: Reformat.
4858
4859 2010-05-16  Michael Snyder  <msnyder@vmware.com>
4860
4861         * target.c: White space.
4862         * target-descriptions.c: White space.
4863         * target-memory.c: White space.
4864         * thread.c: White space.
4865         * top.c: White space.
4866         * tracepoint.c: White space.
4867         * trad-frame.c: White space.
4868         * tramp-frame.c: White space.
4869         * ui-file.c: White space.
4870         * ui-out.c: White space.
4871         * user-regs.c: White space.
4872         * utils.c: White space.
4873
4874         * scm-exp.c: White space.
4875         * scm-lang.c: White space.
4876         * scm-valprint.c: White space.
4877         * sentinel-frame.c: White space.
4878         * ser-base.c: White space.
4879         * ser-go32.c: White space.
4880         * serial.c: White space.
4881         * ser-mingw.c: White space.
4882         * ser-pipe.c: White space.
4883         * ser-tcp.c: White space.
4884         * ser-unix.c: White space.
4885         * solib.c: White space.
4886         * solib-darwin.c: White space.
4887         * solib-frv.c: White space.
4888         * solib-irix.c: White space.
4889         * solib-osf.c: White space.
4890         * solib-pa64.c: White space.
4891         * solib-som.c: White space.
4892         * solib-spu.c: White space.
4893         * solib-svr4.c: White space.
4894         * solib-target.c: White space.
4895         * source.c: White space.
4896         * stabsread.c: White space.
4897         * stack.c: White space.
4898         * std-regs.c: White space.
4899         * symfile.c: White space.
4900         * symmisc.c: White space.
4901         * symtab.c: White space.
4902
4903 2010-05-16  Michael Snyder  <msnyder@vmware.com>
4904
4905         * source.c (_initialize_source): Add "rev" as an abbreviation
4906         for the "reverse-search" command.
4907
4908 2010-05-16  Michael Snyder  <msnyder@vmware.com>
4909
4910         * record.c: White space.
4911         * regcache.c: White space.
4912         * reggroups.c: White space.
4913         * remote-fileio.c: White space.
4914         * remote-m32r-sdi.c: White space.
4915         * remote-mips.c: White space.
4916         * remote-sim.c: White space.
4917         * remote.c: White space.
4918         (process_g_packet): Remove orphan braces.
4919
4920 2010-05-15  Michael Snyder  <msnyder@vmware.com>
4921
4922         * parse.c: White space.
4923         * p-lang.c: White space.
4924         * posix-hdep.c: White space.
4925         * printcmd.c: White space.
4926         * progspace.c: White space.
4927         * prologue-value.c: White space.
4928         * psymtab.c: White space.
4929         * p-typeprint.c: White space.
4930         * p-valprint.c: White space.
4931
4932         * objc-lang.c: White space.
4933         * objfiles.c: White space.
4934         * observer.c: White space.
4935         * osabi.c: White space.
4936         * osdata.c: White space.
4937
4938         * m2-lang.c: White space.
4939         * m2-valprint.c: White space.
4940         * macrocmd.c: White space.
4941         * macroexp.c: White space.
4942         * macroscope.c: White space.
4943         * macrotab.c: White space.
4944         * main.c: White space.
4945         * maint.c: White space.
4946         * mdebugread.c: White space.
4947         * memattr.c: White space.
4948         * minsyms.c: White space.
4949         * monitor.c: White space.
4950
4951 2010-05-14  Michael Snyder  <msnyder@vmware.com>
4952
4953         * jv-lang.c: White space.
4954         * jv-typeprint.c: White space.
4955         * jv-valprint.c: White space.
4956         * language.c: White space.
4957         * libunwind-frame.c: White space.
4958         * linespec.c: White space.
4959         * linux-nat.c: White space.
4960         * linux-record.c: White space.
4961         * linux-thread-db.c: White space.
4962
4963         * infcall.c: White space.
4964         * inf-child.c: White space.
4965         * infcmd.c: White space.
4966         * inferior.c: White space.
4967         * inf-loop.c: White space.
4968         * inflow.c: White space.
4969         * inline-frame.c: White space.
4970         * interps.c: White space.
4971
4972         * gcore.c: White space.
4973         * gdb.c: White space.
4974         * gdbtypes.c: White space.
4975         * gnu-nat.c: White space.
4976         * gnu-v2-abi.c: White space.
4977         * gnu-v3-abi.c: White space.
4978
4979         * findcmd.c: White space.
4980         * findvar.c: White space.
4981         * fork-child.c: White space.
4982         * frame-base.c: White space.
4983         * frame.c: White space.
4984         * frame-unwind.c: White space.
4985         * f-valprint.c: White space.
4986
4987         * elfread.c: White space.
4988         * environ.c: White space.
4989         * eval.c: White space.
4990         * event-loop.c: White space.
4991         * event-top.c: White space.
4992         * exceptions.c: White space.
4993         * exec.c: White space.
4994         * expprint.c: White space.
4995
4996         * dbxread.c: White space.
4997         * dcache.c: White space.
4998         * disasm.c: White space.
4999         * doublest.c: White space.
5000         * dsrec.c: White space.
5001         * dummy-frame.c: White space.
5002         * dwarf2expr.c: White space.
5003         * dwarf2-frame.c: White space.
5004         * dwarf2loc.c: White space.
5005         * dwarf2read.c: White space.
5006
5007 2010-05-14  Phil Muldoon  <pmuldoon@redhat.com>
5008
5009         PR python/11482
5010
5011         * python/py-value.c (valpy_hash): New function.
5012         (value_object_type): Register valpy_hash.
5013
5014 2010-05-14  Hui Zhu  <teawater@gmail.com>
5015             Michael Snyder  <msnyder@vmware.com>
5016
5017         * linux-fork.c (gdbthread.h): New include.
5018         (fork_info): Add parent_ptid.
5019         (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5020         functions.
5021         (delete_checkpoint_command): Call inferior_call_waitpid.
5022         (checkpoint_command): Set parent_ptid.
5023
5024 2010-05-13  Michael Snyder  <msnyder@vmware.com>
5025
5026         * dictionary.c: Re-indent to GNU coding standard.
5027
5028         * charset.c: White space.
5029         * c-lang.c: White space.
5030         * cli-out.c: White space.
5031         * coffread.c: White space.
5032         * complaints.c: White space.
5033         * completer.c: White space.
5034         * corefile.c: White space.
5035         * corelow.c: White space.
5036         * cp-abi.c: White space.
5037         * cp-namespace.c: White space.
5038         * cp-support.c: White space.
5039         * cp-valprint.c: White space.
5040         * c-typeprint.c: White space.
5041         * c-valprint.c: White space.
5042         * blockframe.c: White space.
5043         * breakpoint.c: White space.
5044         * buildsym.c: White space.
5045         * blockframe.c: White space.
5046         * bcache.c: White space.
5047         * gdbarch.sh: White space, add blank lines.
5048         * arch-utils.c: Ditto.
5049         * gdbarch.c: Regenerate.
5050         * frame.c: White space, add blank lines.
5051         * stack.c: White space, add blank lines.
5052         (initialize_stack): Remove long-dead code.
5053
5054 2010-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5055
5056         Code cleanup.
5057         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5058         (locexpr_read_variable, loclist_read_variable): Update the callers.
5059
5060 2010-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5061
5062         Code cleanup.
5063         * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5064         Remove check of NULL returned by tag_type_to_type.
5065         (die_containing_type): Remove variable type.  Remove type_die variable
5066         initialization.  Remove check of NULL returned by tag_type_to_type.
5067
5068 2010-05-11  Pierre Muller  <muller@ics.u-strasbg.fr>
5069
5070         PR exp/11530.
5071         * gdbtypes.c (lookup_struct_elt_type): Also lookup
5072         names of unnamed structures or unions.
5073
5074 2010-05-11  Pierre Muller  <muller@ics.u-strasbg.fr>
5075
5076         * procfs.c (proc_watchpoint_address): New function.
5077         (procfs_stopped_by_watchpoint): Remove useless check after
5078         find_procinfo_or_die call.
5079         (procfs_stopped_data_address): New function.
5080         (procfs_use_watchpoints): Register new watchpoint related function.
5081
5082 2010-05-11  Tom Tromey  <tromey@redhat.com>
5083
5084         * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5085
5086 2010-05-10  Michael Snyder  <msnyder@vmware.com>
5087
5088         * utils.c: White space cleanup.
5089
5090 2010-05-10  Tom Tromey  <tromey@redhat.com>
5091
5092         * eval.c (ptrmath_type_p): Add 'lang' argument.
5093         (evaluate_subexp_standard): Update.
5094         (evaluate_subexp_with_coercion): Update.
5095         * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5096
5097 2010-05-10  Michael Snyder  <msnyder@vmware.com>
5098
5099         * utils.c (do_fclose_cleanup) Restore local variable.
5100
5101 2010-05-09  Doug Evans  <dje@google.com>
5102
5103         * record.c (init_record_core_ops): Rename record_core to record-core.
5104
5105 2010-05-08  Joel Brobecker  <brobecker@adacore.com>
5106
5107         Implement task switching on pa-hpux.
5108         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5109         (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5110
5111 2010-05-08  Pierre Muller  <muller@ics.u-strasbg.fr>
5112
5113         * valops.c (find_overload_match): Add missing i18n markup.
5114
5115 2010-05-08  Pierre Muller  <muller@ics.u-strasbg.fr>
5116
5117         * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5118
5119 2010-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
5120
5121         * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5122         list for the obconcat call.
5123         * mdebugread.c (parse_symbol): Likewise.
5124         * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5125         Likewise.
5126         * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5127         New variable ap.  Remove variables len and val.
5128         * symfile.h (obconcat): Likewise for the prototype.
5129
5130 2010-05-07  Michael Snyder  <msnyder@vmware.com>
5131
5132         * python/python.c (execute_gdb_command): Remove unused variables.
5133         * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5134         * python/py-breakpoint.c (gdbpy_breakpoint_created):
5135         Remove unused variable.
5136         * python/py-cmd.c (cmdpy_function): Remove unused variable.
5137         (cmdpy_completer): Remove unused variable.
5138         * python/py-frame.c (frapy_find_sal): Remove unused variable.
5139         * python/py-function.c (fnpy_call): Remove unused variable.
5140         * python/py-objfile.c (objfile_to_objfile_object):
5141         Remove unused variable.
5142         * python/py-param.c (parmpy_init): Remove unused variable.
5143         * python/py-prettyprint.c (apply_varobj_pretty_printer):
5144         Remove unused variable.
5145         (gdbpy_default_visualizer): Remove unused variable.
5146         * python/py-progspace.c (pspace_to_pspace_object):
5147         Remove unused variable.
5148         * python/py-symtab.c (symtab_and_line_to_sal_object):
5149         Remove unused variable.
5150         * python/py-type.c (typy_template_argument):
5151         Remove unused variable.
5152         * python/py-value.c (valpy_string): Remove unused variable.
5153         (convert_value_from_python): Remove unused variables.
5154
5155 2010-05-07  Michael Snyder  <msnyder@vmware.com>
5156
5157         * valops.c (value_cast_pointers): Restore unused variable 'type1',
5158         and use it to compute variable 't1'.
5159
5160 2010-05-07  Joel Brobecker  <brobecker@adacore.com>
5161
5162         * ada-lang.c (assign_aggregate): Remove unused variable.
5163
5164 2010-05-07  Sami Wagiaalla  <swagiaal@redhat.com>
5165
5166         PR C++/7943:
5167         * valops.c (find_overload_match): Handle fsym == NULL case.
5168         Add int no_adl argument.
5169         (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5170         when appropriate.
5171         Add int no_adl argument.
5172         (find_oload_champ_namespace):   Add int no_adl argument.
5173         * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5174         expression.
5175         * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5176         * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5177         Evaluate arguments and use them to perform ADL lookup.
5178         Pass no_adl argument to find_overload_match.
5179         Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5180         * cp-support.h: Added prototype for
5181         make_symbol_overload_list_namespace.
5182         * cp-support.c (make_symbol_overload_list_namespace): New function.
5183         (make_symbol_overload_list_adl_namespace): New function.
5184         (make_symbol_overload_list_adl): New function.
5185         (make_symbol_overload_list_using): Moved code to add function to
5186         overload set to make_symbol_overload_list_namespace.
5187         * c-exp.y: create UNKNOWN_CPP_NAME token.
5188         Add parse rule for ADL functions.
5189         (classify_name): Recognize an UNKNOWN_CPP_NAME.
5190
5191 2010-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5192
5193         * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5194         sentinel.
5195
5196 2010-05-07  Joel Brobecker  <brobecker@adacore.com>
5197
5198         Implement task switching on solaris targets.
5199         * sol-thread.c (thread_db_find_thread_from_tid)
5200         (sol_get_ada_task_ptid): New functions.
5201         (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5202
5203 2010-05-07  Pedro Alves  <pedro@codesourcery.com>
5204
5205         * remote.c (remote_query_supported_append): Use reconcat.
5206         (remote_query_supported): Install a cleanup.  Use reconcat.
5207
5208 2010-05-07  Pedro Alves  <pedro@codesourcery.com>
5209
5210         * gdbarch.sh (qsupported): Delete.
5211         * gdbarch.h, gdbarch.c: Regenerate.
5212         * remote.c (remote_query_supported): Remove use of
5213         gdbarch_qsupported.
5214
5215 2010-05-06  Sergio Durigan Junior  <sergiodj@redhat.com>
5216
5217         * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5218         function.
5219
5220 2010-05-06  Michael Snyder  <msnyder@vmware.com>
5221
5222         * xml-support.c (xinclude_start_include): Delete unused variable.
5223         (xml_process_xincludes): Delete unused variable.
5224         * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5225         * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5226         (tdesc_find_arch_register): Delete unused variable.
5227         (tdesc_use_registers): Delete unused variable.
5228         * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5229         * inferior.c (print_inferior): Delete unused variable.
5230         * record.c (record_open_1): Delete unused variable.
5231         (record_restore): Delete unused variable.
5232         (cmd_record_save): Delete unused variable.
5233         * gcore.c (derive_heap_segment): Delete unused variable.
5234         (objfile_find_memory_regions): Use unused variable.
5235         * jit.c (jit_inferior_init): Delete unused variable.
5236         * progspace.c (clone_program_space): Delete unused variable.
5237         (pspace_empty_p): Delete unused variable.
5238
5239         * frame-unwind.c (frame_unwind_find_by_frame):
5240         Delete unused variable.
5241         * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5242         * cp-support.c (mangled_name_to_comp): Delete unused variable.
5243         (method_name_from_physname): Delete unused variable.
5244         (cp_func_name): Delete unused variable.
5245         (cp_validate_operator): Delete unused variable.
5246         * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5247         Delete unused variable.
5248         * trad-frame.c (trad_frame_get_prev_register):
5249         Delete unused variable.
5250         * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5251
5252         * serial.c (serial_for_fd): Delete unused variable.
5253         * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5254         * top.c (execute_command): Delete unused variable.
5255         (init_main): Delete unused variable.
5256         * utils.c (do_fclose_cleanup): Delete unused variable.
5257         (do_all_inferior_continuations): Delete unused variable.
5258         (initialize_utils): Delete unused variable.
5259         (internal_problem_mode): Delete unused global.
5260         * frame.c (get_prev_frame): Delete unused global.
5261         (get_frame_locals_address): Delete unused global.
5262         (get_frame_args_address): Delete unused global.
5263
5264         * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5265         (pascal_type_print_varspec_prefix): Delete unused variable.
5266         * f-typeprint.c (f_type_print_base): Delete unused variable.
5267         (f_type_print_varspec_suffix): Delete unused variable.
5268         * m2-typeprint.c (m2_print_type): Delete unused variable.
5269         (m2_long_set): Delete unused variable.
5270         * ada-valprint.c (ada_val_print_1): Delete unused variable.
5271         * d-valprint.c (dynamic_array_type): Delete unused variable.
5272         * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5273         Delete unused variable.
5274         (f77_create_arrayprint_offset_tbl): Delete unused variable.
5275         * m2-valprint.c (m2_val_print): Delete unused variable.
5276
5277         * ui-out.c (ui_out_field_int): Delete unused variable.
5278         (ui_out_field_fmt_int): Delete unused variable.
5279         * varobj.c (varobj_list_children): Delete unused variable.
5280         (varobj_set_value): Delete unused variable.
5281         (install_new_value_visualizer): Delete unused variable.
5282         (varobj_set_visualizer): Delete unused variable.
5283         (varobj_update): Delete unused variable.
5284         (varobj_editable_p): Delete unused variable.
5285         (c_value_of_root): Delete unused variable.
5286         (cplus_describe_child): Delete unused variable.
5287
5288         * ada-lang.c (add_defn_to_vec): Delete unused variable.
5289         (decode_constrained_packed_array_type): Delete unused variable.
5290         (add_defn_to_vec): Delete unused variable.
5291         (symbol_completion_match): Delete unused variable.
5292         (value_tag_from_contents_and_address): Delete unused variable.
5293         (ada_evaluate_subexp): Delete unused variable.
5294         * c-lang.c (classify_type): Delete unused variable.
5295         * f-lang.c (f_printstr): Delete unused variable.
5296         * objc-lang.c (objc_printstr): Delete unused variable.
5297         * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5298         * jv-lang.c (type_from_class): ifdef unused variable.
5299         (java_class_name_from_physname): Delete unused variable.
5300         * m2-lang.c (m2_printstr): Delete unused variable.
5301
5302         * objfiles.c (objfile_relocate): Delete unused variable.
5303         * maint.c (_initialize_maint_cmds): Delete unused variable.
5304         * demangle.c (_initialize_demangler): Delete unused variable.
5305         * corefile.c (reopen_exec_file): Delete unused variable.
5306         * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5307         * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5308
5309         * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5310         * memattr.c (mem_delete): Delete unused variable.
5311         (invalidate_target_mem_regions): Delete unused variable.
5312         * mem-break.c (default_memory_insert_breakpoint):
5313         Delete unused variable.
5314         * target.c (target_get_osdata): Delete unused variable.
5315         * parse.c (length_of_subexp): Delete unused variable.
5316         (prefixify_subexp): Delete unused variable.
5317         (exp_iterate): Delete unused variable.
5318         * reverse.c (delete_bookmark_command): Delete unused variable.
5319
5320         * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5321         * macroexp.c (gather_arguments): Delete unused variable.
5322         (substitute_args): Delete unused variable.
5323         * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5324         * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5325         (_initialize_gdbarch): Delete unused variable.
5326         * gdbarch.c, gdbarch.h: Regenerate.
5327         * arch-utils.c (initialize_current_architecture):
5328         Delete unused variable.
5329         (_initialize_gdbarch_utils): Delete unused variable.
5330         * gdbtypes.c (make_cv_type): Delete unused variable.
5331         (make_type_with_address_space): Delete unused variable.
5332
5333         * linespec.c (decode_compound): Delete unused variable.
5334         * dictionary.c (iterator_next_hashed): Delete unused variable.
5335         * infcall.c (call_function_by_hand): Delete unused variable.
5336         * infcmd.c (step_1): Delete unused variable.
5337         (registers_info): Delete unused variable.
5338         (attach_command): Delete unused variable.
5339         * infrun.c (follow_exec): Delete unused variable.
5340         (handle_step_into_function_backwards): Delete unused variable.
5341         (_initialize_infrun): Delete unused variable.
5342         * stack.c (parse_frame_specification_1): Delete unused variable.
5343         (frame_info): Delete unused variable.
5344         (backtrace_command_1): Delete unused variable.
5345         (catch_info): Delete unused variable.
5346
5347         * eval.c (evaluate_subexp_standard): Delete unused variable.
5348         * valops.c (value_cast_pointers): Delete unused variable.
5349         (value_dynamic_cast): Delete unused variable.
5350         (value_array): Delete unused variable.
5351         (find_overload_match): Delete unused variable.
5352         * valarith.c (value_subscript): Delete unused variable.
5353         (value_binop): Delete unused variable.
5354         * valprint.c (_initialize_valprint): Delete unused variable.
5355         * printcmd.c (print_command_1): Delete unused variable.
5356         (address_info): Delete unused variable.
5357         (printf_command): Delete unused variable.
5358
5359         * auxv.c (target_auxv_search): Delete unused variable.
5360         * blockframe.c (get_frame_block): Delete unused variable.
5361         * regcache.c (regcache_cpy): Delete unused variable.
5362         (regcache_cpy_no_passthrough): Delete unused variable.
5363         * charset.c (wchar_iterate): Delete unused variable.
5364         (find_charset_names): Delete unused variable.
5365         (_initialize_charset): Delete unused variable.
5366         * disasm.c (do_mixed_source_and_assembly):
5367         Delete unused variable.
5368         * source.c (set_default_source_symtab_and_line):
5369         Delete unused variable.
5370         (set_substitute_path_command): Delete unused variable.
5371         * value.c (preserve_values): Delete unused variable.
5372         (value_from_double): Delete unused variable.
5373
5374 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5375
5376         * psymtab.c (lookup_partial_symbol): Delete unused variable.
5377         (find_last_source_symtab_from_partial): Delete unused variable.
5378         * symfile.c (place_section): Delete unused variable.
5379         (default_symfile_offsets): Delete unused variable.
5380         (get_debug_link_info): Delete unused variable.
5381         (find_separate_debug_file_by_debuglink): Delete unused variable.
5382         (add_symbol_file_command): Delete unused variable.
5383         (symfile_find_segment_sections): Delete unused variable.
5384         * symmisc.c (free_symtab): Delete unused variable.
5385         (dump_symtab_1): Delete unused variable.
5386         * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5387         (find_pc_sect_symtab): Delete unused variable.
5388         (skip_prologue_using_lineinfo): Delete unused variable.
5389         (sources_info): Delete unused variable.
5390         (completion_list_add_name): Delete unused variable.
5391         (expand_line_sal): Delete unused variable.
5392
5393         * breakpoint.c (validate_commands_for_breakpoint):
5394         Delete unused variables.
5395         (insert_catchpoint): Delete unused variable.
5396         (update_watchpoint): Delete unused variable.
5397         (insert_bp_location): Delete unused variable.
5398         (insert_breakpoint_locations): Delete unused variable.
5399         (remove_breakpoint_1): Delete unused variable.
5400         (software_breakpoint_inserted_here_p): Delete unused variable.
5401         (watchpoints_triggered): Delete unused variable.
5402         (bpstat_check_watchpoint): Delete unused variable.
5403         (bpstat_stop_status): Delete unused variable.
5404         (print_one_breakpoint_location): Delete unused variable.
5405         (allocate_bp_location): Delete unused variable.
5406         (create_breakpoint): Delete unused variable.
5407         (watch_command_1): Delete unused variable.
5408         (catch_exception_command_1): Delete unused variable.
5409         (catch_ada_exception_command): Delete unused variable.
5410         (delete_breakpoint): Delete unused variable.
5411         (breakpoint_re_set_one): Delete unused variable.
5412         (do_enable_breakpoint): Delete unused variable.
5413
5414 2010-05-06  Pedro Alves  <pedro@codesourcery.com>
5415
5416         * amd64-tdep.c: Include disasm.h.
5417         (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5418         (amd64_insn_length): Moved to disasm.c and renamed.
5419         (fixup_riprel): Adjust.
5420         * disasm.c (do_ui_file_delete): New.
5421         (gdb_insn_length): New.
5422         (gdb_buffered_insn_length_fprintf)
5423         (gdb_buffered_insn_length_init_dis)
5424         (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5425         renamed.
5426         * disasm.h (gdb_insn_length): Declare.
5427         (gdb_buffered_insn_length): Declare.
5428
5429 2010-05-06  Pedro Alves  <pedro@codesourcery.com>
5430
5431         * remote.c (clear_threads_parsing_context): New.
5432         (remote_threads_info): Delete unused null_cleanup.  Install a
5433         cleanup to clear the threads_parsing_context in case parsing
5434         throws.
5435
5436 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5437
5438         * c-exp.y (parse_string_or_char): Delete unused variable.
5439         (c_lex): Delete unused variable.
5440         * cp-name-parser.y (cpname_lex): Delete unused variable.
5441         * ada-exp.y (find_primitive_type): Delete unused variable.
5442         (write_var_or_type): Delete unused variable.
5443         * jv-exp.y (java_parse): Delete unused variable.
5444         (push_expression_name): Delete unused variable.
5445         * p-exp.y (pascal_lex): Delete unused variable.
5446
5447 2010-05-05  Pedro Alves  <pedro@codesourcery.com>
5448
5449         * remote.c (remote_threads_info): Really revert previous previous
5450         change.
5451
5452 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5453
5454         * elfread.c (elf_symtab_read): Delete unused variable.
5455         (find_separate_debug_file_by_buildid): Delete unused variables.
5456         (elf_symfile_read): Delete unused variable.
5457
5458         * coffread.c (coff_symfile_read): Delete unused variables.
5459
5460         * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5461         (read_pe_exported_syms): Delete unused variable.
5462
5463         * stabsread.c (define_symbol): Delete unused variable.
5464
5465         * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5466         (process_psymtab_comp_unit): Delete unused variable.
5467         (dwarf2_build_psymtabs_hard): Delete unused variable.
5468         (load_partial_comp_unit): Delete unused variable.
5469         (create_all_comp_units): Delete unused variable.
5470         (scan_partial_symbols): Delete unused variable.
5471         (add_partial_symbol): Delete unused variable.
5472         (add_partial_namespace): Delete unused variable.
5473         (add_partial_enumeration): Delete unused variable.
5474         (load_full_comp_unit): Delete unused variable.
5475         (process_full_comp_unit): Delete unused variable.
5476         (read_file_scope): Delete unused variable.
5477         (read_type_unit_scope): Delete unused variable.
5478         (process_structure_scope): Delete unused variable.
5479         (process_enumeration_scope): Delete unused variable.
5480         (read_tag_ptr_to_member_type): Delete unused variable.
5481         (read_typedef): Delete unused variable.
5482         (read_partial_die): Delete unused variable.
5483         (decode_locdesc): Delete unused variable.
5484         (zeroed_partial_die): Delete unused global variable.
5485
5486         * tui/tui-interp.c (_initialize_tui_interp):
5487         Delete unused variable.
5488         * tui/tui-regs.c tui_display_registers_from):
5489         Delete unused variable.
5490         (tui_check_register_values): Delete unused variable.
5491         (tui_register_format): Delete unused variable.
5492         * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
5493         * tui/tui-windata.c (tui_display_data_from_line):
5494         Delete unused variables.
5495         (tui_vertical_data_scroll): Delete unused variables.
5496
5497 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5498
5499         * remote.c (remote_threads_info): Revert questionable part of
5500         the previous change.
5501
5502 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5503
5504         * mi/mi-out.c (mi_table_begin): Delete unused variable.
5505         * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5506         (mi_cmd_var_list_children): Delete unused variable.
5507         (varobj_update_one): Delete unused variable.
5508         * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
5509         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
5510         Delete unused variable.
5511         (mi_cmd_stack_list_variables): Delete unused variable.
5512         (list_args_or_locals): Delete unused variable.
5513         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
5514         Delete unused variables.
5515         (mi_cmd_file_list_exec_source_files): Delete unused variable.
5516         * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
5517         Delete unused variable.
5518         * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5519         (mi_cmd_interpreter_exec): Delete unused variable.
5520         (mi_on_normal_stop): Delete unused variable.
5521         * mi/mi-main.c (run_one_inferior): Delete unused variable.
5522         (print_one_inferior): Delete unused variables.
5523         (mi_execute_command): Delete unused variable.
5524         (mi_cmd_execute): Delete unused variable.
5525         (timestamp): Delete unused variable.
5526
5527         * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
5528         (restore_binary_file): Delete unused variable.
5529         * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5530         * cli/cli-script.c (define_command): Delete unused variables.
5531         (recurse_read_control_structure): Delete unused variable.
5532         (script_from_file): Delete unused variable.
5533         * cli/cli-cmds.c (complete_command): Delete unused variable.
5534         (disassemble_command): Delete unused variable.
5535
5536         * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
5537         * tracepoint.c (delete_trace_variable_command):
5538         Delete unused variables.
5539         (encode_actions_1): Delete unused variables.
5540         (start_tracing): Delete unused variable.
5541         (trace_status_mi): Delete unused variable.
5542         (tfind_1): Delete unused variable.
5543         (trace_find_pc_command): Delete unused variable.
5544         (trace_find_line_command): Delete unused variables.
5545         (trace_find_range_command): Delete unused variables.
5546         (trace_find_outside_command): Delete unused variables.
5547         (parse_tracepoint_definition): Delete unused variables.
5548         (tfile_fetch_registers): Delete unused variable.
5549
5550         * dcache.c (dcache_init): Delete unused variable.
5551         (dcache_info): Delete unused variable.
5552
5553         * remote.c (remote_threads_info): Delete unused variable.
5554         (process_stop_reply) :Delete unused variable.
5555         (remote_get_trace_status): Delete unused variables.
5556
5557         * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5558         (thread_from_lwp): Delete unused variable.
5559         (enable_thread_event_reporting): Delete unused variable.
5560         (check_for_thread_db): Delete unused variables.
5561         (thread_db_find_new_threads_2): Delete unused variable.
5562
5563         * linux-fork.c (info_checkpoints_command): Delete unused variables.
5564         (checkpoint_command): Delete unused variable.
5565         (linux_fork_context): Delete unused variables.
5566
5567         * linux-nat.c (linux_parent_pid): Delete unused global variable.
5568         (linux_tracefork_child): Delete unused variable.
5569         (linux_child_follow_fork): Delete unused variable.
5570         (linux_nat_detach): Delete unused variable.
5571         (linux_handle_extended_wait): Delete unused variable.
5572         (linux_nat_has_pending_sigint): Delete unused variable.
5573         (linux_nat_find_memory_regions): Delete unused variable.
5574         (linux_nat_make_corefile_notes): Delete unused variables.
5575         (linux_nat_info_proc_cmd): Delete unused variable.
5576         (linux_proc_pending_signals): Delete unused variable.
5577         (linux_nat_stop_lwp): Delete unused variables.
5578         (_initialize_linux_nat): Delete unused variable.
5579
5580         * ser-pipe.c (pipe_ops): Delete unused global variable.
5581
5582         * linux-record.c (record_linux_system_call):
5583         Delete unused variables.
5584
5585         * corelow.c (core_xfer_partial): Delete unused variables.
5586
5587         * solib-svr4.c (find_program_interpreter): Delete unused variable.
5588         (svr4_solib_create_inferior_hook): Add ifdef around
5589         conditionally-used variable declarations.
5590
5591         * solib.c (solib_find): Delete unused variable.
5592         (free_so_symbols): Delete unused variable.
5593         (info_sharedlibrary_command): Delete unused variable.
5594         (reload_shared_libraries_1): Delete unused variable.
5595         (_initialize_solib): Delete unused variable.
5596
5597         * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5598         (i386_collect_xstateregset): Delete unused variable.
5599         * i387-tdep.c (i387_print_float_info): Delete unused variable.
5600
5601         * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5602         Delete unused variable 'type'.
5603
5604 2010-05-05  Joel Brobecker  <brobecker@adacore.com>
5605
5606         * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros.  *
5607         ada-lang.c: Remove comment mentioning these macros.
5608         * m2-exp.y: Delete commented out code.
5609
5610 2010-05-05  Joel Brobecker  <brobecker@adacore.com>
5611
5612         * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5613         for array types.
5614         * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5615
5616 2010-05-04  Pierre Muller  <muller@ics.u-strasbg.fr>
5617
5618         ARI fix: Remove ATTRIBUTE_UNUSED throughout.
5619         * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
5620         ATTRIBUTE_UNUSED.
5621         (cleanup_kernel_helper_return): Likewise.
5622         * arm-tdep.c (copy_unmodified): Likewise.
5623         (copy_preload): Likewise.
5624         (copy_copro_load_store): Likewise.
5625         (cleanup_branch): Likewise.
5626         (copy_b_bl_blx): Likewise.
5627         (copy_bx_blx_reg): Likewise.
5628         (copy_alu_imm): Likewise.
5629         (copy_alu_reg): Likewise.
5630         (copy_alu_shifted_reg): Likewise.
5631         (cleanup_load): Likewise.
5632         (cleanup_store): Likewise.
5633         (cleanup_block_load_pc): Likewise.
5634         (cleanup_svc): Likewise.
5635         (copy_undef): Likewise.
5636         (copy_unpred): Likewise.
5637         * remote.c (register_remote_support_xml): Likewise.
5638
5639 2010-05-05  Hui Zhu  <teawater@gmail.com>
5640
5641         * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5642
5643 2010-05-04  Mark Kettenis  <kettenis@gnu.org>
5644
5645         * remote.c (register_remote_support_xml)
5646         (remote_query_supported_append, remote_query_supported): Add cast
5647         to NULL used as sentinel.
5648         * tracepoint.c (tvariables_info_1): Likewise.
5649         * utils.c (add_internal_problem_command): Likewise.
5650
5651 2010-05-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5652
5653         * dwarf2loc.c (read_pieced_value, write_pieced_value,
5654         dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5655         registers gracefully.
5656
5657 2010-05-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5658
5659         * exec.c (print_section_info): Display entry point without arch
5660         specific parts.
5661
5662 2010-05-04  Pierre Muller  <muller@ics.u-strasbg.fr>
5663
5664         PR exp/11349.
5665         * printcmd.c (x_command): Only dereference once implicitly for
5666         TYPE_CODE_REF.
5667
5668 2010-05-03  Doug Evans  <dje@google.com>
5669
5670         * event-loop.c (gdb_timer): Delete unused global.
5671         (create_timer): Update.
5672
5673 2010-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5674
5675         * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
5676         CURRENT->DECLARATION case.
5677         * cp-support.h (struct using_direct): Provide extended comment.
5678
5679 2010-05-03  Mark Kettenis  <kettenis@gnu.org>
5680
5681         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
5682         HPPABSD_SIZEOF_GREGS.
5683         (HPPAOBSD_SIZEOF_FPREGS): New define.
5684         (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
5685         (hppaobsd_supply_fpregset): New function.
5686         (hppaobsd_gregset): Renamed from hppabsd_gregset.
5687         (hppaobsd_fpregset): New variable.
5688         (hppaobsd_regset_from_core_section): Handle floating-point registers.
5689         (_initialize_hppabsd_tdep): Remove spurious blank line.
5690
5691 2010-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
5692
5693         PR pascal/11349.
5694         * p-valprint.c (pascal_value_print): Always dereference a value with
5695         type code TYPE_CODE_REF.
5696
5697 2010-05-03  Pedro Alves  <pedro@codesourcery.com>
5698
5699         * remote.c (remote_notice_signals): New.
5700         (remote_start_remote): In non-stop mode, update the remote end on
5701         which signals it can silently pass.
5702         (init_remote_ops): Install remote_notice_signals.
5703
5704 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5705
5706         * cli/cli-cmds.h (error_no_arg): Remove.  Move the comment ...
5707         * command.h (error_no_arg): ... here.  Remove NORETURN, change
5708         ATTR_NORETURN to ATTRIBUTE_NORETURN.
5709         * defs.h (NORETURN, ATTR_NORETURN): Remove.
5710         (perror_with_name, verror, error, error_stream, vfatal, fatal)
5711         (internal_verror, internal_error, nomem): Remove NORETURN, change
5712         ATTR_NORETURN to ATTRIBUTE_NORETURN.
5713         * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
5714         (throw_vfatal, throw_error): Remove NORETURN.
5715         (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
5716         * exceptions.h (throw_exception, throw_verror, throw_vfatal)
5717         (throw_error, deprecated_throw_reason): Remove NORETURN, change
5718         ATTR_NORETURN to ATTRIBUTE_NORETURN.
5719         * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
5720         to ATTRIBUTE_NORETURN for prototype, for the definition only remove
5721         NORETURN.
5722         * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
5723         * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
5724         ATTRIBUTE_NORETURN.
5725         * target.c (tcomplain): Likewise.
5726         * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
5727         ATTRIBUTE_NORETURN.
5728         * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
5729         (internal_error, perror_with_name, nomem): Remove NORETURN.
5730         * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
5731         ATTRIBUTE_NORETURN.
5732
5733 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5734
5735         * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5736         * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5737         * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5738         (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5739         * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5740         (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5741         * complaints.h (complaint, internal_complaint): Likewise.
5742         * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5743         (ATTR_FORMAT): Remove.
5744         (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5745         (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5746         (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5747         (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5748         (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5749         (internal_error, internal_vwarning, internal_warning, warning)
5750         (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5751         * disasm.c (fprintf_disasm): Likewise.
5752         * exceptions.c (throw_it): Likewise.
5753         * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5754         (throw_error): Likewise.
5755         * language.h (type_error, range_error): Likewise.
5756         * linespec.c (cplusplus_error): Likewise.
5757         * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5758         * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5759         * monitor.c (monitor_debug): Likewise.
5760         * parser-defs.h (parser_fprintf): Likewise.
5761         * serial.h (serial_printf): Likewise.
5762         * tui/tui-hooks.c (tui_query_hook): Likewise.
5763         * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5764         (uo_message): Likewise.
5765         * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5766         * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5767         Likewise.
5768         * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5769
5770 2010-05-02  Pedro Alves  <pedro@codesourcery.com>
5771
5772         * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5773         (cli_table_header, cli_begin, cli_end, cli_field_int)
5774         (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5775         (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5776         Delete forward declarations.
5777         (cli_ui_out_impl): Move below the callbacks.
5778         (_initialize_cli_out): Delete.
5779
5780 2010-05-02  Pedro Alves  <pedro@codesourcery.com>
5781
5782         * README: Use consistent `GDB' and `GDBserver' spellings.
5783
5784 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5785
5786         * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5787
5788 2010-05-01  Pedro Alves  <pedro@codesourcery.com>
5789
5790         * infrun.c (prepare_for_detach): In non-stop, context switch to
5791         the thread that got the event before handling the event.
5792
5793 2010-04-30  Tom Tromey  <tromey@redhat.com>
5794
5795         * symtab.c (symbol_set_names): Fix typo.
5796
5797 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
5798
5799         * python/py-param.c (parm_constants): Avoid ARI warning
5800         by adding ARI comment.
5801         (parmpy_init): Likewise.
5802
5803 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
5804
5805         * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5806         and created type for re-use.
5807
5808 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
5809
5810         * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5811
5812 2010-04-29  Doug Evans  <dje@google.com>
5813
5814         * ser-base.h (reschedule): Delete prototype.
5815         * ser-base.c (reschedule): Make static.
5816
5817 2010-04-29  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5818
5819         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5820         (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
5821         (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
5822         EABI.
5823         (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
5824         use.
5825
5826 2010-04-29  Pedro Alves  <pedro@codesourcery.com>
5827
5828         PR gdb/11557
5829
5830         * regcache.c (registers_changed): Rename to ...
5831         (registers_changed_ptid): ... this, and only delete register cache
5832         entries matching the ptid filter argument.
5833         (registers_changed): Reimplement on top of registers_changed_ptid.
5834         * regcache.h (registers_changed_ptid): Declare.
5835         * target.c (target_resume): Flush register caches.
5836
5837 2010-04-29  Phil Muldoon  <pmuldoon@redhat.com>
5838             Tom Tromey  <tromey@redhat.com>
5839             Thiago Jung Bauermann  <bauerman@br.ibm.com>
5840
5841         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5842         (SUBDIR_PYTHON_SRCS): Likewise.
5843         (py-parameter.o): New rule.
5844         * python/py-parameter.c: New file.
5845         * python/python-internal.h (gdbpy_initialize_parameter)
5846         (gdbpy_parameter, gdbpy_parameter_value)
5847         (gdbpy_parse_command_name): Declare.
5848         * python/py-cmd.c (parse_command_name): Rename to
5849         gdbpy_parse_command_name.
5850         (gdbpy_parse_command_name): Accept a starting list parameter and
5851         use over cmdlist.
5852         (cmdpy_init): Use gdbpy_parse_command_name.
5853         * python/python.c (parameter_to_python): Rename to
5854         gdbpy_parameter_to_python.  Accept enum var_types and value.
5855         (gdbpy_parameter): Use gdbpy_parameter_value.
5856         (_initialize_python): Call gdbpy_initialize_parameters.
5857
5858 2010-04-29  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5859
5860         * MAINTAINERS: Add myself for write after approval privileges.
5861
5862 2010-04-29  Mihail Zenkov  <mihail.zenkov@gmail.com>
5863
5864         D language support.
5865         * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5866         (COMMON_OBS): Add d-lang.o d-valprint.o.
5867         (HFILES_NO_SRCDIR): Add d-lang.h.
5868         * NEWS: Mention D language support.
5869         * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5870         * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5871         * d-lang.c: New file.
5872         * d-lang.h: New file.
5873         * d-valprint.c: New file.
5874         * defs.h (enum language): Add language_d.
5875         * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5876         * language.c (binop_result_type, integral_type, character_type)
5877         (string_type, boolean_type, structured_type): Add language_d.
5878         * symfile.c (init_filename_language_table): Add language_d.
5879         * symtab.c: Include d-lang.h.
5880         (symbol_init_language_specific, symbol_find_demangled_name)
5881         (symbol_natural_name, lookup_symbol_in_language)
5882         (symbol_demangled_name, symbol_matches_domain): Add language_d.
5883
5884 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
5885
5886         * solib-svr4.c (solib_svr4_r_map): Expand function description.
5887
5888 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
5889
5890         * symfile.c (init_filename_language_table): Register .dg files
5891         with language_ada.
5892
5893 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
5894
5895         * gdbtypes.h (struct main_type): Expand comment about target_type
5896         field.
5897
5898 2010-04-27  Pedro Alves  <pedro@codesourcery.com>
5899             Tristan Gingold  <gingold@adacore.com>
5900
5901         * symfile.c (reread_symbols): Also search for file in libraries.
5902         Update comment.
5903
5904 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
5905
5906         * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
5907         in terms of configuration.
5908
5909 2010-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
5910
5911         * objfiles.c: Include solist.h.
5912         (free_all_objfiles): New variable so.  Check stale solist objfiles.
5913         * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
5914         and no_shared_libraries.
5915
5916 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
5917
5918         ARI warning fix.
5919         * python/py-auto-load.c (source_section_scripts): Remove trailing
5920         new-line in i18n string.
5921
5922 2010-04-26  Doug Evans  <dje@google.com>
5923
5924         * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
5925
5926 2010-04-26  Tom Tromey  <tromey@redhat.com>
5927
5928         * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
5929         command list.
5930
5931 2010-04-26  Pierre Muller  <muller@ics.u-strasbg.fr>
5932
5933         Removal of config/i386/nm-i386sol2.h native configuration file.
5934         * config/i386/nm-i386sol2.h: Remove file.
5935         * config/i386/i386sol2.mh: Remove NAT_FILE definition.
5936         * config/i386/sol2-64.mh: Idem.
5937         * config/djgpp/fnchange.lst: Remove reference to that file.
5938         * Makefile.in (HFILES_NO_SRCDIR): Idem.
5939
5940 2010-04-26  Pierre Muller  <muller@ics.u-strasbg.fr>
5941
5942         PR breakpoints/11531.
5943         * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5944         macro definition and related comment.
5945         * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
5946         (resume): Remove code and comment related to this macro.
5947
5948 2010-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
5949
5950         * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
5951         Fix whitespace.
5952
5953 2010-04-24  Pedro Alves  <pedro@codesourcery.com>
5954
5955         * defs.h: Adjust comment.
5956         * filesystem.h, filesystem.c: New files.
5957         * Makefile.in (SFILES): Add filesystem.c.
5958         (COMMON_OBS): Add filesystem.o.
5959         * solib.c (solib_find): Handle DOS-based filesystems.  Handle
5960         different target and host path flavours.
5961         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5962         has_dos_based_file_system on the gdbarch.
5963         * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
5964         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
5965         * i386-tdep.c (i386_go32_init_abi): Ditto.
5966         * gdbarch.sh (has_dos_based_file_system): New.
5967         * gdbarch.h, gdbarch.c: Regenerate.
5968         * NEWS: Mention improved support for remote targets with DOS-based
5969         filesystems.  Mention new `set/show target-file-system-kind'
5970         commands.
5971
5972 2010-04-23  Stan Shebs  <stan@codesourcery.com>
5973
5974         * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
5975         comments.
5976         (struct agent_reqs): Remove.
5977         (ax_reg_mask): Declare.
5978         * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
5979         (free_agent_expr): Free reg_mask.
5980         (ax_print): Add scope and register mask info.
5981         (ax_reqs): Remove agent_reqs argument, use agent expression
5982         fields, and move part of register mask computation to...
5983         (ax_reg_mask): New function.
5984         * ax-gdb.c (gen_trace_static_fields): Call it.
5985         (gen_traced_pop): Ditto.
5986         (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
5987         (gen_trace_for_var): Pass gdbarch to new_agent_expr.
5988         (gen_trace_for_expr): Ditto, and clear optimized_out flag.
5989         (gen_eval_for_expr): Ditto, and require an rvalue.
5990         (agent_command): Call ax_reqs.
5991         (agent_eval_command): Ditto.
5992         * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
5993         (validate_action_line): Ditto.
5994         (collect_symbol): Ditto.
5995         (encode_actions_1): Ditto.
5996
5997 2010-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
5998             Paul Pluzhnikov  <ppluzhnikov@google.com>
5999             Jan Kratochvil  <jan.kratochvil@redhat.com>
6000
6001         Fix deadlock on looped list of loaded shared objects.
6002         * solib-svr4.c (LM_PREV): New function.
6003         (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6004         (svr4_current_sos): Check for correct l_prev.  New variables prev_lm
6005         and next_lm.  Clear prev_lm for solib_svr4_r_ldsomap.
6006         * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6007
6008 2010-04-23  Doug Evans  <dje@google.com>
6009
6010         * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6011         python.
6012         * configure: Regenerate.
6013         * main.c: #include "python/python.h".
6014         (captured_main): Defer loading auto-loaded scripts until after
6015         local_gdbinit has been sourced.
6016         * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6017         (load_auto_scripts_for_objfile): New function.
6018         (auto_load_new_objfile): Call it.
6019         * python/python.h (gdbpy_global_auto_load): Declare.
6020         (load_auto_scripts_for_objfile): Declare.
6021
6022         Add support for auto-loading scripts from .debug_gdb_scripts section.
6023         * NEWS: Add entry for .debug_gdb_scripts.
6024         * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6025         (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6026         (py-auto-load.o): New rule.
6027         * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6028         * cli/cli-cmds.h (find_and_open_script): Update prototype.
6029         * python/py-auto-load.c: New file.
6030         * python/python-internal.h: #include <stdio.h>.
6031         (set_python_list, show_python_list): Declare.
6032         (gdbpy_initialize_auto_load): Declare.
6033         (source_python_script_for_objfile): Declare.
6034         * python/python.c: Remove #include of observer.h.
6035         (gdbpy_auto_load): Moved to py-auto-load.c.
6036         (GDBPY_AUTO_FILENAME): Ditto.
6037         (gdbpy_new_objfile): Delete.
6038         (source_python_script_for_objfile): New function.
6039         (set_python_list, show_python_list): Make externally visible.
6040         (_initialize_python): Move "auto-load" command to py-auto-load.c
6041         and observer_attach_new_objfile to py-auto-load.c.
6042
6043 2010-04-23  Jerome Guitton  <guitton@adacore.com>
6044
6045         * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6046         (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6047         (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6048         New constants.
6049         (alpha_heuristic_analyze_probing_loop): New function.
6050         (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6051         and handle cases when a stack probe loop is generated.
6052         * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6053         (alpha_mdebug_max_frame_size_exceeded): New function.
6054         (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6055         (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6056         Return 0 when the maximum debuggable frame size has been exceeded.
6057
6058 2010-04-23  Joel Brobecker  <brobecker@adacore.com>
6059
6060         Fix ARI warning.
6061         * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6062
6063 2010-04-20  Chris Moller  <cmoller@redhat.com>
6064
6065         PR 10179
6066
6067         * symtab.c (rbreak_command): Added code to include a filename
6068         specification in the rbreak argument.
6069         * NEWS: Added a brief description of filename-qualified rbreak.
6070
6071 2010-04-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
6072
6073         Fix crashes on dangling display expressions.
6074         * ada-lang.c (ada_operator_check): New function.
6075         (ada_exp_descriptor): Fill-in the field operator_check.
6076         * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6077         * jv-lang.c (exp_descriptor_java): Likewise.
6078         * m2-lang.c (exp_descriptor_modula2): Likewise.
6079         * scm-lang.c (exp_descriptor_scm): Likewise.
6080         * parse.c (exp_descriptor_standard): Likewise.
6081         (operator_check_standard): New function.
6082         (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6083         * parser-defs.h (struct exp_descriptor): New field operator_check.
6084         (operator_check_standard, exp_uses_objfile): New declarations.
6085         * printcmd.c: Remove the inclusion of solib.h.
6086         (display_uses_solib_p): Remove the function.
6087         (clear_dangling_display_expressions): Call lookup_objfile_from_block
6088         and exp_uses_objfile instead of display_uses_solib_p.
6089         * solist.h (struct so_list) <objfile>: New comment.
6090         * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6091         * symtab.h (lookup_objfile_from_block): New declaration.
6092         (struct general_symbol_info) <obj_section>: Extend the comment.
6093
6094 2010-04-22  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
6095             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6096
6097         * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6098         (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6099         ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6100         PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6101         PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6102         PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6103         PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6104         PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6105         PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6106         PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6107         PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6108         PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6109         PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6110         Define, in case <ptrace.h> doesn't provide it.
6111         (booke_debug_info): New variable.
6112         (max_slots_number): Ditto.
6113         (hw_break_tuple): New struct.
6114         (thread_points): Ditto.
6115         (ppc_threads): New variable.
6116         (PPC_DEBUG_CURRENT_VERSION): New define.
6117         (have_ptrace_new_debug_booke): New function.
6118         (ppc_linux_check_watch_resources): Renamed to ...
6119         (ppc_linux_can_use_hw_breakpoint): ... this.  Handle BookE processors.
6120         (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6121         (booke_cmp_hw_point): New function.
6122         (booke_find_thread_points_by_tid): Ditto.
6123         (booke_insert_point): Ditto.
6124         (booke_remove_point): Ditto.
6125         (ppc_linux_insert_hw_breakpoint): Ditto.
6126         (ppc_linux_remove_hw_breakpoint): Ditto.
6127         (get_trigger_type): Ditto.
6128         (ppc_linux_insert_watchpoint): Handle BookE processors.
6129         (ppc_linux_remove_watchpoint): Ditto.
6130         (ppc_linux_new_thread): Ditto.
6131         (ppc_linux_thread_exit): New function..
6132         (ppc_linux_stopped_data_address): Handle BookE processors.
6133         (ppc_linux_watchpoint_addr_within_range): Ditto.
6134         (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6135         to_remove_hw_breakpoint fields of the target operations struct.
6136         Add observe for the thread_exit event.
6137
6138 2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>
6139
6140         * i386-linux-nat.c (regmap): Removed.
6141         (fetch_register): Replace regmap with
6142         i386_linux_gregset_reg_offset.
6143         (store_register): Likewise.
6144         (supply_gregset): Likewise.
6145         (fill_gregset): Likewise.
6146
6147         * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6148         global.
6149
6150         * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6151
6152 2010-04-22  Chris Moller  <cmoller@redhat.com>
6153
6154         * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6155         method of popping recursion-detection stack with a method based on
6156         obstack_object_size().  (Similar to the PR9167 patch below, but for
6157         the static array obstack rather than the static member obstack.)
6158
6159 2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>
6160
6161         * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6162         (_initialize_amd64_linux_nat): Replace
6163         amd64_linux_gregset64_reg_offset with
6164         amd64_linux_gregset_reg_offset.
6165
6166         * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6167         global.
6168
6169         * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6170
6171 2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
6172
6173         PR stabs/11479.
6174         * stabsread.c (set_length_in_type_chain): New function.
6175         (read_struct_type): Call set_length_in_type_chain function.
6176         (read_enum_type): Idem.
6177
6178 2010-04-21  Stan Shebs  <stan@codesourcery.com>
6179             Nathan Sidwell  <nathan@codesourcery.com>
6180
6181         * tracepoint.c (trace_save): Open in binary mode.
6182
6183 2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
6184
6185         * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6186         fields.
6187         * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6188         builtin_char32 fields.
6189         * printcmd.c (decode_format): Set char size to '\0'
6190         for strings unless explicit size is given.
6191         (print_formatted): Correct calculation of NEXT_ADDRESS
6192         for 16 or 32 bit strings.
6193         (do_examine): Do not force byte size for strings.
6194         Use builtin_char16 and builtin_char32 types to display
6195         16 or 32 bit-wide strings.
6196         (x_command): Set LAST_SIZE to 'b' for string type.
6197
6198 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
6199
6200         PR corefiles/11523
6201         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6202         XCR0 first.
6203
6204         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6205         there is no .reg-xstate section.
6206         (i386_linux_core_read_description): Check XCR0 first.
6207
6208 2010-04-21  Mike Frysinger  <vapier@gentoo.org>
6209
6210         * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6211         for len <= 8.
6212
6213 2010-04-21  Chris Moller  <cmoller@redhat.com>
6214
6215         PR 9167
6216         * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6217         method of popping recursion-detection stack with a method based on
6218         obstack_object_size().
6219
6220 2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6221
6222         PR pascal/11492.
6223         * p-valprint.c (pascal_val_print): Fix default printing of integer
6224         arrays.
6225
6226 2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6227
6228         Fix compilation warning on gcc-4.1.2.
6229         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6230         local variable`pc' to zero.
6231
6232 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6233
6234         Implement thread support with core files on alpha-tru64.
6235         * dec-thread.c (dec_thread_find_new_threads): New function,
6236         extracted from resync_thread_list.
6237         (resync_thread_list): Add OPS parameter.  Replace extracted-out
6238         code by call to dec_thread_find_new_threads.
6239         (dec_thread_wait): Update call to resync_thread_list.
6240         (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6241
6242 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6243
6244         * ada-lang.c (value_pointer): New function.
6245         (make_array_descriptor): Call value_pointer to convert addresses to
6246         pointers.
6247
6248 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6249
6250         * rs6000-aix-tdep.c: #include exceptions.h.
6251         (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6252         while reading the memory at ADDR, then ADDR cannot be a function
6253         descriptor.
6254
6255 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6256
6257         * ada-typeprint.c (ada_print_typedef): New function.
6258         * ada-lang.h (ada_print_typedef): Add declaration.
6259         * ada-lang.c (ada_language_defn): set la_print_typdef field
6260         to ada_print_typedef.
6261
6262 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6263
6264         * procfs.c (procfs_address_to_host_pointer): Only define when used.
6265
6266 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6267
6268         * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6269         (iterate_over_mappings): Adjust function profile. Add declaration.
6270         (insert_dbx_link_bpt_in_region, info_mappings_callback):
6271         Adjust accordingly.
6272
6273 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6274
6275         * procfs.c (solib_mappings_callback): Move function up to avoid
6276         a compiler warning.
6277
6278 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6279
6280         * procfs.c (find_signalled_thread, find_stop_signal): Move
6281         these functions down to define them only when used.
6282
6283 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6284
6285         * valprint.c (common_val_print): Fix the value before extracting
6286         its contents.
6287         * ada-lang.c (ada_to_fixed_value): Make this function extern.
6288         * ada-lang.h (ada_to_fixed_value): New function declaration.
6289         * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6290         to avoid code duplication and fix a bug in the handling of
6291         fixed types contents.
6292
6293 2010-04-20  Tom Tromey  <tromey@redhat.com>
6294
6295         * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6296         (read_partial_die): Likewise.
6297         (dwarf_attr_name): Likewise.
6298
6299 2010-04-20  Chris Moller  <cmoller@redhat.com>
6300
6301         PR 10867
6302
6303         * cp-valprint.c (global): Adding new static array recursion
6304         detection obstack.
6305         (cp_print_value_fields, cp_print_static_field): Added new static
6306         array recursion detection code.
6307
6308 2010-04-20  Mark Kettenis  <kettenis@gnu.org>
6309
6310         * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6311         general-purpose register set should be 68 instead of 144.
6312         (i386_linux_sse_regset_sections): Likewise.
6313         (i386_linux_avx_regset_sections): Likewise.
6314
6315 2010-04-20  Stan Shebs  <stan@codesourcery.com>
6316             Nathan Sidwell  <nathan@codesourcery.com>
6317
6318         * dwarf2loc.c (struct axs_var_loc): New struct.
6319         (dwarf2_tracepoint_var_loc): New function.
6320         (dwarf2_tracepoint_var_access): New function.
6321         (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6322         with DW_OP_piece.
6323         (locexpr_describe_location_piece): New function.
6324         (locexpr_describe_location_1): New function.
6325         (locexpr_describe_location): Call it, update signature.
6326         (loclist_describe_location): Rewrite to loop over locations,
6327         update signature.
6328         * symtab.h (struct symbol_computed_ops): Add address to
6329         describe_location arguments, return void.
6330         * printcmd.c (address_info): Get context PC, pass to computed
6331         location description.
6332         * tracepoint.c (scope_info): Ditto.
6333         * ax-gdb.c (trace_kludge): Export.
6334
6335 2010-04-20  Tom Tromey  <tromey@redhat.com>
6336
6337         * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6338         (struct dwarf2_cie) <segment_size>: New field.
6339         * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6340         (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6341         DW_FORM_exprloc.
6342         (read_attribute_value): Handle DW_FORM_flag_present,
6343         DW_FORM_sec_offset, DW_FORM_exprloc.
6344         (dump_die_shallow): Likewise.
6345         (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6346         (dwarf2_const_value): Handle DW_FORM_exprloc.
6347         (attr_form_is_block): Likewise.
6348         (struct line_header) <maximum_ops_per_instruction>: New field.
6349         (dwarf_decode_line_header): Set new field.
6350         (dwarf_decode_lines): Handle new field.
6351
6352 2010-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6353
6354         * f-exp.y: Add new production to recognize the `logical*8' type.
6355         (LOGICAL_S8_KEYWORD): New token.
6356         * f-lang.c (enum f_primitive_types)
6357         <f_primitive_type_logical_s8>: New field.
6358         (f_language_arch_info): Handling `logical*8' type.
6359         (build_fortran_types): Building `logical*8' type.
6360         * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6361
6362 2010-04-19  Doug Evans  <dje@google.com>
6363
6364         * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6365         * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6366         (pipe_close): Ditto.
6367
6368 2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6369
6370         * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6371
6372 2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6373
6374         * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6375         type to void function.
6376
6377 2010-04-19  Stan Shebs  <stan@codesourcery.com>
6378             Vladimir Prus  <vladimir@codesourcery.com>
6379
6380         * tracepoint.c (tfind_1): Add missing newline, report exit from
6381         tfind mode as such.
6382         * target.c (update_current_target): Make default
6383         to_trace_find return -1.
6384
6385 2010-04-19  Mike Frysinger  <vapier@gentoo.org>
6386
6387         * objc-lang.c (find_methods): Move symname check up.
6388
6389 2010-04-19  Pedro Alves  <pedro@codesourcery.com>
6390
6391         * ada-lang.c (print_recreate_exception)
6392         <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6393         not "catch unhandled".
6394
6395 2010-04-19  Pedro Alves  <pedro@codesourcery.com>
6396
6397         PR breakpoints/8554.
6398
6399         Implement `save-breakpoints'.
6400
6401         * breakpoint.c (save_cmdlist): New.
6402         (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6403         to save_cmdlist.
6404         (print_recreate_catch_fork): New.
6405         (catch_fork_breakpoint_ops): Install it.
6406         (print_recreate_catch_vfork): New.
6407         (catch_vfork_breakpoint_ops): Install it.
6408         (print_recreate_catch_syscall): New.
6409         (catch_syscall_breakpoint_ops): Install it.
6410         (print_recreate_catch_exec): New.
6411         (catch_exec_breakpoint_ops): Install it.
6412         (print_recreate_exception_catchpoint): New.
6413         (gnu_v3_exception_catchpoint_ops): Install it.
6414         (save_breakpoints): New, based on tracepoint_save_command, but
6415         handle all breakpoint types.
6416         (save_breakpoints_command): New.
6417         (tracepoint_save_command): Rename to...
6418         (save_tracepoints_command): ... this, and reimplement using
6419         save_breakpoints.
6420         (save_command): New.
6421         (_initialize_breakpoints): Install the "save" command prefix.
6422         Install the "save breakpoints" command.  Make "save-tracepoints" a
6423         deprecated alias for "save tracepoints".
6424         * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6425         * ada-lang.c (print_recreate_exception): New.
6426         (print_recreate_catch_exception): New.
6427         (catch_exception_breakpoint_ops): Install it.
6428         (print_recreate_catch_exception_unhandled): New.
6429         (catch_exception_unhandled_breakpoint_ops): Install it.
6430         (print_recreate_catch_assert): New.
6431         (catch_assert_breakpoint_ops): Install it.
6432
6433         * NEWS: Mention the new `save breakpoints' command.  Mention the
6434         new `save tracepoints' alias and that `save-tracepoints' is now
6435         deprecated.
6436
6437 2010-04-18  Pedro Alves  <pedro@codesourcery.com>
6438
6439         PR tui/9217
6440
6441         * tui/tui-out.c: Include cli-out.h.
6442         (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6443         (tui_begin, tui_end, tui_field_int, tui_field_skip)
6444         (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6445         (tui_message, tui_wrap_hint, tui_flush): Delete forward
6446         declarations.
6447         (struct ui_out_data): Rename to...
6448         (struct tui_ui_out_data): ... this.  Remove `stream' and
6449         `suppress_output' fields, and inherit cli_ui_out_data.
6450         (tui_out_data): New typedef.
6451         (tui_ui_out_impl): Don't initialize fields staticaly.
6452         (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6453         (tui_begin, tui_end): Delete.
6454         (tui_field_int): Adjust to delegate most work to the base type.
6455         (tui_field_skip): Delete.
6456         (tui_field_string, tui_field_fmt): Adjust comment.  Adjust to
6457         delegate most work to the base type.
6458         (tui_spaces): Delete.
6459         (tui_text): Adjust to delegate most work to the base type.
6460         (tui_message): Delete.
6461         (tui_wrap_hint): Delete.
6462         (tui_flush): Delete.
6463         (out_field_fmt): Delete.
6464         (field_separator): Delete.
6465         (tui_out_new): Adjust to initialize the base type.
6466         (_initialize_tui_out): Initialize tui_ui_out_impl.
6467         * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6468         cli_ui_out_data.
6469         (cli_out_data): Adjust.
6470         (cli_ui_out_impl): Make extern.
6471         (cli_table_header, cli_field_int, cli_field_skip): Use
6472         uo_field_string instead of cli_field_string.
6473         (cli_redirect): Adjust to use cli_out_data.
6474         (cli_out_data_ctor): New.
6475         (cli_out_new): Use it.
6476         * cli-out.h (struct ui_file): Remove forward declaration.
6477         (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6478         (cli_ui_out_impl): Declare.
6479         (cli_out_data_ctor): Declare.
6480         * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6481         (uo_field_string): No longer static.
6482         (ui_out_data): Change return type to void pointer.
6483         (ui_out_new): Change `data' parameter type to void pointer.
6484         * ui-out.h (struct ui_out_data): Don't forward declare.
6485         (ui_out_data): Change return type to void pointer.
6486         (ui_out_new): Change `data' parameter type to void pointer.
6487         (uo_field_string): Declare.
6488
6489 2010-04-17  Pedro Alves  <pedro@codesourcery.com>
6490
6491         * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6492         instead of always false.
6493
6494 2010-04-17  H.J. Lu  <hongjiu.lu@intel.com>
6495
6496         PR corefiles/11511
6497         * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6498         orig_rax.
6499
6500 2010-04-17  Pedro Alves  <pedro@codesourcery.com>
6501
6502         * breakpoint.c (watchpoints_triggered): Use
6503         is_hardware_watchpoint.
6504         (watchpoints_triggered): Ditto.
6505         (bpstat_check_location): Use is_watchpoint and
6506         is_hardware_watchpoint.
6507         (bpstat_check_watchpoint): Use is_watchpoint and
6508         is_hardware_watchpoint.
6509         (bpstat_stop_status): Fix comment.
6510         (user_settable_breakpoint): Use is_watchpoint.
6511         (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6512         (disable_watchpoints_before_interactive_call_start): Use
6513         is_watchpoint.
6514         (enable_watchpoints_after_interactive_call_stop): Use
6515         is_watchpoint.
6516         (clear_command): Use is_watchpoint.
6517         (do_enable_breakpoint): Use is_watchpoint.
6518
6519 2010-04-16  Mike Frysinger  <vapier@gentoo.org>
6520
6521         * solib-frv.c (enable_break1_done): Delete.
6522         (enable_break2): Do not check enable_break1_done.  Move the
6523         enable_break2_done setting and call to
6524         remove_solib_event_breakpoints() to the end.  Return without
6525         warning when the contents of _dl_debug_addr are 0.
6526         (enable_break): Do not set enable_break1_done.
6527         (frv_clear_solib): Likewise.
6528
6529 2010-04-16  Kevin Buettner  <kevinb@redhat.com>
6530
6531         * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6532         instead of an error if no PLT entry is found.  Return a
6533         potentially useful result.
6534         (m32c_m16c_pointer_to_address): Add code to search for function
6535         address when no .plt entry is found.
6536
6537 2010-04-16  Stan Shebs  <stan@codesourcery.com>
6538
6539         * tracepoint.c (trace_variable_command): Run a cleanup.
6540
6541 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6542
6543         * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6544
6545 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6546
6547         Support for Windows OS Thread Information Block.
6548         * NEWS: Document new feature.
6549         * remote.c (PACKET_qGetTIBAddr): New enum element.
6550         (remote_get_tib_address): New function.
6551         (init_remote_ops): Set to_get_tib_address field
6552         to remote_get_tib_address.
6553         (_initialize_remote): Add add_packet_config_cmd
6554         for PACKET_qGetTIBAddr.
6555         * target.c (update_current_target): Set default value for
6556         new to_get_tib_address field.
6557         * target.h (target_ops): New field to_get_tib_address.
6558         (target_get_tib_address): New macro.
6559         * windows-nat.c (thread_info): Add thread_local_base field.
6560         (windows_add_thread): Add tlb argument of type 'void *'.
6561         (fake_create_process): Adapt windows_add_thread call.
6562         (get_windows_debug_event): Idem.
6563         (windows_get_tib_address): New function.
6564         (init_windows_ops): Set to_get_tib_address field
6565         to remote_get_tib_address.
6566         (_initialize_windows_nat): Replace info_w32_cmdlist
6567         initialization by a call to init_w32_command_list.
6568         (info_w32_command, info_w32_cmdlist): Removed from here...
6569         to windows-tdep.c file.
6570         * windows-tdep.h (info_w32_cmdlist): Declare.
6571         (init_w32_command_list): New external function
6572         declaration.
6573         * windows-tdep.c: Add several headers.
6574         (info_w32_cmdlist): to here, made global.
6575         (thread_information_32): New struct.
6576         (thread_information_64): New struct.
6577         (TIB_NAME): New char array.
6578         (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6579         (maint_display_all_tib): New static variable.
6580         (windows_get_tlb_type): New function.
6581         (tlb_value_read, tlb_value_write): New functions.
6582         (tlb_value_funcs): New static struct.
6583         (tlb_make_value): New function.
6584         (display_one_tib): New function.
6585         (display_tib): New function.
6586         (show_maint_show_all_tib):New function.
6587         (info_w32_command): Moved from windows-nat.c.
6588         (init_w32_command_list): New function.
6589         (_initialize_windows_tdep): New function.
6590         New "maint set/show show-all-tib" command
6591         New "$_tlb" internal variable.
6592
6593 2010-04-16  Joel Brobecker  <brobecker@adacore.com>
6594
6595         * tui/tui-regs.c (tui_display_register): Add comment about
6596         a couple of casts.
6597         * tui/tui-stack.c (tui_show_locator_content): Ditto.
6598
6599 2010-04-15  Stan Shebs  <stan@codesourcery.com>
6600
6601         * frame.c: Include tracepoint.h.
6602         (get_current_frame): Allow a trace frame to be an alternate source
6603         of stack frame data.
6604         * tracepoint.c (tfind_1): Don't try to get current stack frame if
6605         it won't succeed.
6606
6607 2010-04-15  Pedro Alves  <pedro@codesourcery.com>
6608
6609         * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6610         flags.
6611         * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6612
6613 2010-04-15  Doug Evans  <dje@google.com>
6614
6615         * NEWS: Add entry for python program space support.
6616         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6617         (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6618         (py-progspace.o): New rule.
6619         * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6620         function.
6621         (find_pretty_printer_from_progspace): New function.
6622         (find_pretty_printer_from_gdb): New function.
6623         (find_pretty_printer): Rewrite.
6624         * python/py-progspace.c: New file.
6625         * python/python-internal.h (program_space): Add forward decl.
6626         (pspace_to_pspace_object, pspy_get_printers): Declare.
6627         (gdbpy_initialize_pspace): Declare.
6628         * python/python.c: #include "progspace.h".
6629         (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6630         (_initialize_python): Call gdbpy_initialize_pspace.
6631         (GdbMethods): Add current_progspace, progspaces.
6632
6633         Add -s option to source command.
6634         * NEWS: Document new option.
6635         * cli/cli-cmds.c (find_and_open_script): Add function comment.
6636         Delete from_tty and cleanupp args.  Split filep arg into file and
6637         full_pathp.  New arg search_path.
6638         (source_script_from_stream): New function.
6639         (source_script_with_search): New function.
6640         (source_script): Rewrite.
6641         (source_command): Parse "-s" option.
6642         (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6643         * python/python.c (source_python_script): Make file arg a const char *.
6644         Don't call fclose, leave for caller.
6645         * python/python.h (source_python_script): Update.
6646
6647 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
6648             Pedro Alves  <pedro@codesourcery.com>
6649
6650         Avoid rereading shared libraries that haven't changed.
6651
6652         * solib.c (free_so_symbols): New function, from ...
6653         (free_so): ... here.  Call it.
6654         (solib_read_symbols): Don't warn here if symbols have already been
6655         loaded.
6656         (solib_add): Warn here instead, if a pattern was specified.
6657         (reload_shared_libraries_1): New.
6658         (reload_shared_libraries): Rewrite to not fetch the library list.
6659
6660 2010-04-14  Doug Evans  <dje@google.com>
6661
6662         * source.c (openp): Strip DOS drive letter if present before
6663         concatenating string to search path.
6664
6665 2010-04-14  Pedro Alves  <pedro@codesourcery.com>
6666
6667         * objfiles.h (gdb_bfd_close_or_warn): Declare.
6668         * objfiles.c (gdb_bfd_close_or_warn): New.
6669         * corelow.c: Include objfiles.h
6670         (core_close): Use gdb_bfd_close_or_warn.
6671         * elfread.c (build_id_verify): Ditto.
6672         * exec.c (exec_close, exec_close_1): Ditto.
6673
6674 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
6675             Pedro Alves  <pedro@codesourcery.com>
6676
6677         Group errors for many missing shared libraries.
6678
6679         * solist.h (struct so_list): Remove from_tty.
6680         * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
6681         (solib_map_sections): Take so_list argument.  Return 0 if we
6682         failed to open a BFD.  Add target sections here.
6683         (symbol_add_stub): Delete.
6684         (solib_read_symbols): Inline symbol_add_stub.  Use current flags,
6685         not from_tty copied from the so_list.  Don't warn a second time
6686         for a missing library.
6687         (update_solib_list): Don't save from_tty.  Use TRY_CATCH.  Do not
6688         add to the section table here.  Print out a single warning for all
6689         missing libraries.
6690         * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
6691         flags.
6692
6693 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
6694
6695         * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
6696         error/warning messages.  Capitalize and use complete sentences.
6697         (blpy_block_syms_iternext): Likewise.
6698         * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
6699         * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
6700         (frame_info_to_frame_object, frapy_read_var)
6701         (gdbpy_frame_stop_reason_string): Likewise.
6702         * python/py-lazy-string.c (stpy_convert_to_value)
6703         (gdbpy_create_lazy_string_object): Likewise.
6704         * python/py-objfile.c (objfpy_set_printers): Likewise.
6705         * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
6706         * python/python.c (parameter_to_python): Likewise.
6707         * python/py-type.c (typy_range, typy_target): Likewise.
6708         * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
6709         (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
6710
6711
6712 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
6713
6714         PR python/11381
6715
6716         * python/py-prettyprint.c (pretty_print_one_value): Test for
6717         Py_None.
6718         (print_string_repr): Test for Py_None.  Set flags accordingly.
6719         Return value depending on return type.
6720         (print_children): Take a value indicating whether data was printed
6721         before this function was called.  Alter output accordingly.
6722         (apply_val_pretty_printer): Capture return value from
6723         print_string_repr and pass to print_children.
6724
6725 2010-04-13  Mark Kettenis  <kettenis@gnu.org>
6726
6727         PR corefiles/11481
6728         * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
6729         register note sections.
6730         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
6731         New variables.
6732         (i386_linux_init_abi): Install list of supported register note
6733         sections that matches the target description.
6734
6735 2010-04-13  Pedro Alves  <pedro@codesourcery.com>
6736
6737         * remote.c (remote_get_noisy_reply): Don't error out on empty
6738         replies.
6739         (remote_start_remote): Update and merge tracepoints and trace
6740         state variables as long as the target supports tracepoints.
6741         (remote_trace_init): Fix prototype.
6742         (remote_download_trace_state_variable): Validate reply.
6743         (remote_trace_set_readonly_regions): Fix prototype.
6744         (remote_trace_start): Fix prototype.  Check for empty reply.
6745         (remote_get_trace_status): Small cleanup.
6746         (remote_trace_stop): Fix prototype.  Check for empty reply.
6747         (remote_trace_find): Check for empty reply.
6748         (remote_save_trace_data): Validate reply.
6749         (remote_set_disconnected_tracing): Check for empty reply, and
6750         validate reply.
6751         (remote_set_circular_trace_buffer): Ditto.
6752
6753 2010-04-13  Pierre Muller  <muller@ics.u-strasbg.fr>
6754
6755         Suppress unused value warning during compilation.
6756         * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6757         calls to void.
6758         * tui/tui-stack.c (tui_show_locator_content): Likewise.
6759
6760 2010-04-12  Stan Shebs  <stan@codesourcery.com>
6761
6762         * tracepoint.c (tfile_xfer_partial): Check read result.
6763
6764 2010-04-12  Mike Frysinger  <vapier@gentoo.org>
6765
6766         * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6767         * remote-sim.c (gdbsim_files_info): Likewise.
6768
6769 2010-04-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6770
6771         * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6772         * arm-linux-nat.c (arm_linux_vfp_register_count): New
6773         variable.
6774         (fetch_vfp_registers): New function to fetch VFP registers.
6775         (store_vfp_registers): New function to store VFP registers.
6776         (arm_linux_fetch_inferior_registers): Add support for VFP
6777         registers.
6778         (arm_linux_store_inferior_registers): Likewise.
6779         (arm_linux_read_description): Likewise.
6780         (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6781         until we need it.
6782
6783 2010-04-11  H.J. Lu  <hongjiu.lu@intel.com>
6784
6785         * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6786         tdep.
6787         (amd64_collect_xstateregset): Likewise.
6788
6789 2010-04-09  Stan Shebs  <stan@codesourcery.com>
6790
6791         * tracepoint.c (trace_status_mi): Report frames created.
6792
6793         * tracepoint.c (trace_dump_command): Include default-collect
6794         expressions.
6795
6796 2010-04-09  Ulrich Weigand  <uweigand@de.ibm.com>
6797
6798         * symtab.c (find_function_start_sal): Never return SAL pointing
6799         before function start address, even if line info is missing.
6800
6801 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
6802
6803         * NEWS: Mention tracepoints support.
6804
6805 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
6806
6807         * tracepoint.c (trace_status_mi): Report disconnected tracing and
6808         circular trace buffer statuses.
6809
6810 2010-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
6811
6812         * config/djgpp/fnchange.lst: Fix typo in translations for
6813         symbol-without-target_section.exp and symbol-without-target_section.c.
6814
6815 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
6816
6817         * breakpoint.c (condition_command): Pass condition expression to
6818         set_breakpoint_condition stripped from breakpoint number.
6819
6820 2010-04-09  Phil Muldoon  <pmuldoon@redhat.com>
6821             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6822             Tom Tromey  <tromey@redhat.com>
6823
6824         * breakpoint.c (condition_command): Simplify.  Move condition
6825         setting code to ...
6826         (set_breakpoint_condition): ... here.  New function.
6827         * breakpoint.h  (set_breakpoint_condition): Declare.
6828         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6829         (SUBDIR_PYTHON_SRCS): Likewise.
6830         (py-breakpoint.o): New rule.
6831         * python/py-breakpoint.c: New file.
6832         * python/python-internal.h (gdbpy_breakpoints)
6833         (gdbpy_initialize_breakpoints): Declare.
6834         (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6835
6836 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
6837
6838         * regformats/regdat.sh: Include server.h.  Don't include
6839         regcache.h.
6840
6841 2010-04-08  Stan Shebs  <stan@codesourcery.com>
6842             Pedro Alves  <pedro@codesourcery.com>
6843
6844         * tracepoint.h (struct trace_status): New fields disconnected_tracing
6845         and circular_buffer.
6846         (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6847         * tracepoint.c (trace_status_command): Display target's status for
6848         disconnected tracing and circular buffer.
6849         (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6850         query for non-disconnected-tracing case, remove the stop_tracing
6851         call.
6852         (tfile_open): Clear disconnected and circular buffer status.
6853         (trace_save): Save disconnected and circular buffer status.
6854         (parse_trace_status): Parse disconnected and circular buffer status,
6855         also recognize disconnected as a stop reason.
6856         * remote.c (remote_set_disconnected_tracing): Only set
6857         QTDisconnected if the remote end supports disconnected tracing.
6858         Warn otherwise, if trying to enable disconnected tracing.
6859         * infcmd.c (detach_command): Update disconnect_tracing call.
6860         * cli/cli-cmds.c (quit_command): Ditto.
6861
6862 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
6863
6864         * i387-tdep.c (i387_collect_xsave): Replace abort with
6865         internal_error.
6866
6867 2010-04-08  Stan Shebs  <stan@codesourcery.com>
6868
6869         * breakpoint.c (default_collect_info): New function.
6870         (breakpoints_info): Call it.
6871         (maintenance_info_breakpoints): Ditto.
6872         (tracepoints_info): Ditto.
6873
6874 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
6875
6876         * i387-tdep.c (i387_collect_xsave): Re-indent.
6877
6878 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
6879
6880         * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6881         if HAVE_PTRACE_GETFPXREGS is defined.
6882         (i386_linux_read_description): Set have_ptrace_getfpxregs and
6883         have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6884
6885         * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6886         (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6887         if .reg-xfp section doesn't exist.
6888         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6889
6890         * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6891
6892         * i386-tdep.c: Include "features/i386/i386-mmx.c".
6893         (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
6894         (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional.  Set
6895         xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
6896         (i386_gdbarch_init): Update comments.
6897         (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
6898
6899         * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
6900
6901         * config/djgpp/fnchange.lst: Add i386 MMX XML files.
6902
6903         * features/Makefile (i386/i386-mmx-expedite): New.
6904         (i386/i386-mmx-linux-expedite): Likewise.
6905         ($(outdir)/i386/i386-mmx.dat): Likewise.
6906         ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
6907
6908         * features/i386/i386-mmx-linux.c: New.
6909         * features/i386/i386-mmx-linux.xml: Likewise.
6910         * features/i386/i386-mmx.c: Likewise.
6911         * features/i386/i386-mmx.xml: Likewise.
6912         * regformats/i386/i386-mmx-linux.dat: Likewise.
6913         * regformats/i386/i386-mmx.dat: Likewise.
6914
6915         * features/Makefile (WHICH): Add i386/i386-mmx and
6916         i386/i386-mmx-linux.
6917
6918 2010-04-08  Doug Evans  <dje@google.com>
6919
6920         * source.c (openp): Skip $cdir in PATH.
6921
6922 2010-04-08  Phil Muldoon  <pmuldoon@redhat.com>
6923
6924         PR python/11417
6925         * python/py-lazy-string.c (stpy_convert_to_value): Check for
6926         a NULL address.
6927         (gdbpy_create_lazy_string_object): Allow strings with a NULL
6928         address and a zero length.
6929
6930 2010-04-08  Hui Zhu  <teawater@gmail.com>
6931
6932         * i386-tdep.c (i386_process_record): Add support for insn
6933         rdtsc.
6934
6935 2010-04-07  Doug Evans  <dje@google.com>
6936
6937         * python/python.c (source_python_script): Use ensure_python_env
6938         to prepare environment for script.
6939
6940 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
6941
6942         * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
6943         <sys/uio.h> and "i386-xstate.h".
6944         (PTRACE_GETREGSET): New.
6945         (PTRACE_SETREGSET): Likewise.
6946         (have_ptrace_getregset): Likewise.
6947         (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
6948         registers.
6949         (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
6950         registers.
6951         (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
6952         (amd64_linux_store_inferior_registers): Likewise.
6953         (amd64_linux_read_description): Check and enable AVX target
6954         descriptions.
6955
6956         * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
6957         and "features/i386/amd64-avx-linux.c".
6958         (amd64_linux_regset_sections): New.
6959         (amd64_linux_core_read_description): Check and enable AVX
6960         target description.
6961         (amd64_linux_init_abi): Set xsave_xcr0_offset.  Call
6962         set_gdbarch_core_regset_sections.
6963         (_initialize_amd64_linux_tdep): Call
6964         initialize_tdesc_amd64_avx_linux.
6965
6966         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
6967         AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
6968         (tdesc_amd64_avx_linux): New.
6969         (amd64_linux_update_xstateregset): Likewise.
6970
6971         * amd64-tdep.c: Include "features/i386/amd64-avx.c".
6972         (amd64_ymm_names): New.
6973         (amd64_ymmh_names): Likewise.
6974         (amd64_register_name): Likewise.
6975         (amd64_supply_xstateregset): Likewise.
6976         (amd64_collect_xstateregset): Likewise.
6977         (amd64_supply_xsave): Likewise.
6978         (amd64_collect_xsave): Likewise.
6979         (AMD64_NUM_REGS): Removed.
6980         (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
6981         %xmmN if AVX is available.
6982         (amd64_pseudo_register_name): Support pseudo YMM registers.
6983         (amd64_regset_from_core_section): Support .reg-xstate section.
6984         (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
6985         and ymm0h_regnum.  Call set_gdbarch_register_name.
6986         (amd64_init_abi): Call initialize_tdesc_amd64_avx.
6987
6988         * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
6989         AMD64_YMM15H_REGNUM.
6990         (AMD64_NUM_REGS): New.
6991         (amd64_supply_xsave): Likewise.
6992         (amd64_collect_xsave): Likewise.
6993         (amd64_register_name): Removed.
6994         (amd64_register_type): Likewise.
6995
6996 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
6997
6998         * i387-tdep.c: Include "i386-xstate.h".
6999         (XSAVE_XSTATE_BV_ADDR): New.
7000         (xsave_avxh_offset): Likewise.
7001         (XSAVE_AVXH_ADDR): Likewise.
7002         (i387_supply_xsave): Likewise.
7003         (i387_collect_xsave): Likewise.
7004
7005         * i387-tdep.h (I387_NUM_YMM_REGS): New.
7006         (I387_YMM0H_REGNUM): Likewise.
7007         (I387_YMMENDH_REGNUM): Likewise.
7008         (i387_supply_xsave): Likewise.
7009         (i387_collect_xsave): Likewise.
7010
7011 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7012
7013         * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7014         <sys/uio.h> and "i386-xstate.h".
7015         (PTRACE_GETREGSET): New.
7016         (PTRACE_SETREGSET): Likewise.
7017         (fetch_xstateregs): Likewise.
7018         (store_xstateregs): Likewise.
7019         (GETXSTATEREGS_SUPPLIES): Likewise.
7020         (regmap): Include 8 upper YMM registers.
7021         (i386_linux_fetch_inferior_registers): Support XSAVE extended
7022         state.
7023         (i386_linux_store_inferior_registers): Likewise.
7024         (i386_linux_read_description): Check and enable AVX target
7025         descriptions.
7026
7027         * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7028         "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7029         (i386_linux_regset_sections): Add ".reg-xstate".
7030         (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7031         (i386_linux_core_read_xcr0): New.
7032         (i386_linux_core_read_description): Check and enable AVX target
7033         description.
7034         (i386_linux_init_abi): Set xsave_xcr0_offset.
7035         (_initialize_i386_linux_tdep): Call
7036         initialize_tdesc_i386_avx_linux.
7037
7038         * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7039         I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7040         (i386_linux_core_read_xcr0): New.
7041         (tdesc_i386_avx_linux): Likewise.
7042         (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7043
7044         * i386-tdep.c: Include "i386-xstate.h" and
7045         "features/i386/i386-avx.c".
7046         (i386_ymm_names): New.
7047         (i386_ymmh_names): Likewise.
7048         (i386_ymmh_regnum_p): Likewise.
7049         (i386_ymm_regnum_p): Likewise.
7050         (i386_xmm_regnum_p): Likewise.
7051         (i386_register_name): Likewise.
7052         (i386_ymm_type): Likewise.
7053         (i386_supply_xstateregset): Likewise.
7054         (i386_collect_xstateregset): Likewise.
7055         (i386_sse_regnum_p): Removed.
7056         (i386_pseudo_register_name): Support pseudo YMM registers.
7057         (i386_pseudo_register_type): Likewise.
7058         (i386_pseudo_register_read): Likewise.
7059         (i386_pseudo_register_write): Likewise.
7060         (i386_dbx_reg_to_regnum): Return %ymmN register number for
7061         %xmmN if AVX is available.
7062         (i386_regset_from_core_section): Support .reg-xstate section.
7063         (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7064         (i386_process_record): Replace i386_sse_regnum_p with
7065         i386_xmm_regnum_p.
7066         (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7067         Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7068         (i386_gdbarch_init): Set xstateregset.  Set xsave_xcr0_offset.
7069         Call set_gdbarch_register_name.  Replace I386_SSE_NUM_REGS with
7070         I386_AVX_NUM_REGS.  Set ymmh_register_names, ymm0h_regnum and
7071         num_ymm_regs.  Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7072         Set ymm0_regnum.
7073         (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7074
7075         * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7076         xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7077         i386_ymm_type.
7078         (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7079         (I386_AVX_NUM_REGS): New.
7080         (i386_xmm_regnum_p): Likewise.
7081         (i386_ymm_regnum_p): Likewise.
7082         (i386_ymmh_regnum_p): Likewise.
7083
7084         * common/i386-xstate.h: New.
7085
7086 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
7087
7088         * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7089
7090         * features/Makefile (WHICH): Add i386/i386-avx,
7091         i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7092         (i386/i386-avx-expedite): New.
7093         (i386/i386-avx-linux-expedite): Likewise.
7094         (i386/x86-64-avx-expedite):Likewise.
7095         (i386/x86-64-avx-linux-expedite): Likewise.
7096         ($(outdir)/i386/i386-avx.dat): New dependency.
7097         ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7098         ($(outdir)/i386/x86-avx-64.dat): Likewise.
7099         ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7100
7101         * features/i386/32bit-avx.xml: New.
7102         * features/i386/64bit-avx.xml: Likewise.
7103         * features/i386/i386-avx-linux.c: Likewise.
7104         * features/i386/i386-avx-linux.xml: Likewise.
7105         * features/i386/i386-avx.c: Likewise.
7106         * features/i386/i386-avx.xml: Likewise.
7107         * features/i386/x86-64-avx-linux.c: Likewise.
7108         * features/i386/x86-64-avx-linux.xml: Likewise.
7109         * features/i386/x86-64-avx.c: Likewise.
7110         * features/i386/x86-64-avx.xml: Likewise.
7111         * regformats/i386/i386-avx-linux.dat: Likewise.
7112         * regformats/i386/i386-avx.dat: Likewise.
7113         * regformats/i386/x86-64-avx-linux.dat: Likewise.
7114         * regformats/i386/x86-64-avx.dat: Likewise.
7115
7116 2010-04-07  Doug Evans  <dje@google.com>
7117
7118         * top.c (source_file_name): Make const char *.
7119         * top.h (source_file_name): Update.
7120         * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7121         const char *.
7122         (script_from_file): Change `file' arg to const char *.
7123         * cli/cli-script.h (script_from_file): Update.
7124
7125 2010-04-06  Doug Evans  <dje@google.com>
7126
7127         * cli/cli-cmds.c (source_command): Run cleanups.
7128
7129 2010-04-06  Stan Shebs  <stan@codesourcery.com>
7130
7131         * defs.h (char_ptr): Move typedef here from...
7132         * ada-lang.c (char_ptr): Remove.
7133         * charset.c (char_ptr): Remove.
7134         * tracepoint.h (struct uploaded_string): Remove.
7135         (struct uploaded_tp): Use vectors for string arrays.
7136         * tracepoint.c (trace_save): Use vectors of actions.
7137         (parse_tracepoint_definition): Ditto.
7138         (get_uploaded_tp): Clear vectors.
7139         * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7140         (next_cmd): Change to an int.
7141         (read_next_cmd): Use vector of command strings.
7142
7143 2010-04-06  Doug Evans  <dje@google.com>
7144
7145         * top.h (source_script, cd_command): Delete.
7146         * main.c: #include "cli/cli-cmds.h"
7147
7148 2010-04-06  Kevin Buettner  <kevinb@redhat.com>
7149
7150         * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7151         type in bytes, not bits.
7152
7153 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
7154
7155         * stabsread.c (define_symbol): Add support for char
7156         and string constants.
7157
7158 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
7159
7160         Remove remaining "%ll" uses.
7161         * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7162         hex_string call.
7163         * rs6000-nat.c (rs6000_ptrace64): Idem.
7164         * solib-pa64.c (pa64_current_sos): Idem.
7165         * solib-spu.c (spu_current_sos): Idem.
7166         * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7167         plongest call.
7168         * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7169         phex (VAR, 8) call.
7170         * sh64-tdep.c (sh64_show_media_regs): Idem.
7171
7172 2010-04-05  Stan Shebs  <stan@codesourcery.com>
7173
7174         * tracepoint.c: Include gdbcore.h.
7175         (tfile_xfer_partial): Return partial results, also try reading
7176         from executable.
7177         (tfile_has_all_memory): New function.
7178         (init_tfile_ops): Use it.
7179
7180 2010-04-05  Sergio Durigan Junior  <sergiodj@redhat.com>
7181
7182         PR gdb/10736:
7183         * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7184         the changes in data-directory.
7185         (init_sysinfo): Reload the syscall XML file if the data-directory
7186         has changed.
7187
7188 2010-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7189
7190         Code cleanup.
7191         * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7192
7193 2010-04-04  Stan Shebs  <stan@codesourcery.com>
7194             Nathan Sidwell  <nathan@codesourcery.com>
7195
7196         * breakpoint.c (breakpoint_1): Add filter argument, return number of
7197         breakpoints printed.
7198         (is_hardware_watchpoint): Make argument const.
7199         (is_watchpoint): Ditto.
7200         (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7201         use it everywhere.
7202         (breakpoints_info): Pass NULL to breakpoint_1.
7203         (maintenance_info_breakpoints): Ditto.
7204         (watchpoints_info): New function.
7205         (tracepoints_info): Use breakpoint_1 filter.
7206         (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7207         (_initialize_breakpoint): Make "info watchpoints" its own command.
7208         * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7209         * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7210
7211 2010-04-04  Stan Shebs  <stan@codesourcery.com>
7212
7213         * tracepoint.c (tfile_fetch_registers): Add fallback case.
7214
7215 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
7216
7217         * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7218         * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7219
7220 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
7221
7222         * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7223         * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7224
7225 2010-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7226
7227         * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7228         code form.
7229
7230 2010-04-02  Hui Zhu  <teawater@gmail.com>
7231
7232         * i386-tdep.c (OT_DQUAD): New enum.
7233         (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7234         SSE3, SSSE3 and SSE4.
7235
7236 2010-04-02  Hui Zhu  <teawater@gmail.com>
7237
7238         * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7239         "*addr = 0".
7240
7241 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
7242
7243         * tracepoint.c (trace_dump_actions): New, factored out from
7244         trace_dump_command, and adjusted to recurse into while-stepping's
7245         action list.
7246         (trace_dump_command): Use it.
7247
7248 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
7249
7250         * breakpoint.h (struct counted_command_line): Moved definition to
7251         breakpoint.c, and forward declare.
7252         (breakpoint_commands): Declare.
7253         * breakpoint.c (struct counted_command_line): Moved here.
7254         (breakpoint_commands): New.
7255         * tracepoint.c (encode_actions): Use breakpoint_commands.
7256         * remote.c (remote_download_tracepoint): Ditto.
7257
7258 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
7259
7260         * remote.c (remote_parse_stop_reply): Use hex_string instead
7261         of phex_nz for error.
7262
7263 2010-04-01  Stan Shebs  <stan@codesourcery.com>
7264             Nathan Sidwell  <nathan@codesourcery.com>
7265
7266         * tracepoint.h (enum actionline_type): Remove.
7267         (validate_actionline): Change return to void.
7268         * tracepoint.c (report_agent_reqs_errors): New function.
7269         (validate_actionline): Call it, change return to void, report errors
7270         more consistently.
7271         (collect_symbol): Call report_agent_reqs_errors.
7272         (encode_actions_1): Ditto.
7273         (encode_actions): Don't expect a result from validate_actionline.
7274
7275 2010-04-01  Stan Shebs  <stan@codesourcery.com>
7276
7277         * tracepoint.c (trace_start_command): Confirm if trace is running.
7278         (trace_stop_command): Error if trace not running.
7279
7280 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
7281
7282         * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7283         (AMD64_NUM_LOWER_BYTE_REGS): New.
7284         (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7285         (amd64_pseudo_register_write): Likewise.
7286         (amd64_init_abi): Set num_byte_regs to 20.
7287
7288 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
7289
7290         * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7291         (prev_breakpoint_count): New.
7292         (set_breakpoint_count): Adjust.
7293         (rbreak_start_breakpoint_count): New.
7294         (start_rbreak_breakpoints): Adjust.
7295         (end_rbreak_breakpoints): Adjust.
7296         (struct commands_info) <arg>: New field.
7297         (do_map_commands_command): Tweak output to include breakpoint spec
7298         range.
7299         (commands_command_1): Adjust.  Avoid setting an xfree cleanup if
7300         ARG was empty on entry.  Set INFO's arg.
7301         (create_breakpoint): Adjust.
7302
7303         * NEWS: Clarify `commands' changes.
7304
7305 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
7306
7307         * tracepoint.c: Include stack.h.
7308         (struct add_local_symbols_data): New.
7309         (do_collect_symbol): New.
7310         (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7311         iterate_over_block_local_vars.
7312         * stack.c (print_block_frame_locals): Rewrite as ...
7313         (iterate_over_block_locals): ... this.  Take a callback function
7314         pointer and generic data pointer, and call that instead of
7315         print_variable_and_value.
7316         (struct print_variable_and_value_data): New.
7317         (do_print_variable_and_value): New.
7318         (iterate_over_block_local_vars): New, abstracted out from
7319         print_frame_local_vars.
7320         (print_frame_local_vars): Rewrite using
7321         iterate_over_block_local_vars.
7322         (iterate_over_block_arg_vars): New, abstracted out from
7323         print_frame_arg_vars.
7324         (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7325         * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7326         (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7327
7328 2010-03-31  Richard Earnshaw  <rearnsha@arm.com>
7329
7330         * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7331         instructions.  Use the PC+4 if the base of the TBB or TBH is the
7332         PC register.
7333
7334 2010-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
7335
7336         Fix crash on reading wrong function declaration DWARF.
7337         * dwarf2read.c (read_subroutine_type): New variable void_type.
7338         Pre-fill all TYPE_FIELD_TYPEs.  Move nparams and iparams initialization
7339         more close to their use.
7340
7341 2010-03-31  Stan Shebs  <stan@codesourcery.com>
7342
7343         * breakpoint.c (tracepoint_save_command): Include variables,
7344         conditionals, tracepoint types, and default-collect.
7345         * tracepoint.c (save_trace_state_variables): New function.
7346         * tracepoint.h (save_trace_state_variables): Declare it.
7347
7348 2010-03-31  Pierre Muller  <muller@ics.u-strasbg.fr>
7349
7350         * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7351
7352 2010-03-30  Keith Seitz  <keiths@redhat.com>
7353
7354         * c-typeprint.c (c_type_print_args): Don't print "void"
7355         for java, regardless of whether it is TYPE_PROTOTYPED.
7356         Use the passed-in language instead of current_language.
7357         (c_type_print_varspec_suffix): Use current_language instead
7358         of assuming language_c.
7359         * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7360         any return type specifier from the physname.
7361
7362 2010-03-30  Pedro Alves  <pedro@codesourcery.com>
7363
7364         * tui/tui-interp.c (tui_is_toplevel): New.
7365         (tui_init): Set it.
7366         (tui_allowed_p): New.
7367         * tui/tui.c (tui_enable): Check if the TUI is allowed before
7368         enabling it.
7369         * tui/tui.h (tui_allowed_p): Declare.
7370
7371 2010-03-30  Ozkan Sezer  <sezeroz@gmail.com>
7372
7373         * serial.h: Include winsock2.h before windows.h.
7374
7375 2010-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7376
7377         * NEWS: Mention xmlRegisters= in qSupported packet.
7378
7379         * i386-tdep.c: Include "remote.h".
7380         (_initialize_i386_tdep): Call register_remote_support_xml.
7381
7382         * remote.c (remote_support_xml): New.
7383         (register_remote_support_xml): Likewise.
7384         (remote_query_supported_append): Likewise.
7385         (remote_query_supported): Support remote_support_xml.
7386
7387         * remote.h (register_remote_support_xml): New.
7388
7389 2010-03-29  Stan Shebs  <stan@codesourcery.com>
7390
7391         * tracepoint.c (trace_find_line_command): Remove dead code.
7392
7393         * tracepoint.h (struct uploaded_string): New struct.
7394         (struct uploaded_tp): New fields for source strings.
7395         * breakpoint.c (this_utp, next_cmd): New globals.
7396         (read_uploaded_action): New function.
7397         (create_tracepoint_from_upload): Fill in more parts
7398         of a tracepoint.
7399         * tracepoint.c (encode_source_string): New function.
7400         (trace_save): Write out source strings, fix error checks.
7401         (parse_tracepoint_definition): Add source string parsing.
7402         * remote.c (PACKET_TracepointSource): New packet type.
7403         (remote_download_command_source): New function.
7404         (remote_download_tracepoint): Download source pieces also.
7405         (_initialize_remote): Add packet config command.
7406
7407         * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7408         expression handler.
7409
7410         * tracepoint.c (start_tracing): Check tracepoints before sending
7411         commands to target, don't start if all tracepoints disabled.
7412
7413 2010-03-28  Pedro Alves  <pedro@codesourcery.com>
7414
7415         * cli/cli-script.c (process_next_line): Handle 'stepping'.
7416
7417 2010-03-26  Stan Shebs  <stan@codesourcery.com>
7418
7419         * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7420
7421 2010-03-26  Tom Tromey  <tromey@redhat.com>
7422
7423         * breakpoint.c (commands_command_1): Duplicate 'arg'.
7424
7425 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7426
7427         * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7428         (skip_prologue_sal): Remove local definition.
7429         (resolve_sal_pc): Remove now unnecessary code.
7430         * linespec.c (minsym_found): Call skip_prologue_sal.
7431         * symtab.c (find_function_start_pc): Remove.
7432         (find_function_start_sal): Extract prologue skipping into ...
7433         (skip_prologue_sal): ... this new function.  Handle code both
7434         with and without debug info.  Respect SAL's explicit_pc and
7435         explicit_line flags.  Inline old find_function_start_pc.
7436         * symtab.h (find_function_start_pc): Remove.
7437         (skip_prologue_sal): Add prototype.
7438
7439 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7440
7441         * dwarf2read.c (read_func_scope): Also scan specification DIEs
7442         for DW_TAG_imported_module children.
7443
7444 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7445
7446         * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7447         ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7448         * completer.c (add_struct_fields): Fix inverted logic.
7449
7450 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7451
7452         * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7453
7454 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
7455
7456         * tracepoint.c (current_trace_status): Don't make sure error_desc
7457         is non-NULL here.
7458         (parse_trace_status): Release a previous error_desc string, and
7459         set it to NULL by default.  If stop reason is tracepoint_error,
7460         make sure error_desc is not left NULL.
7461
7462 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
7463
7464         * tracepoint.c (trace_save): Remove X from tracepoint error
7465         description.
7466
7467 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
7468
7469         * tracepoint.c (parse_trace_status): Don't allow plain strings in
7470         the terror description.  Don't expect an X prefix.
7471
7472 2010-03-25  Stan Shebs  <stan@codesourcery.com>
7473
7474         * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7475         (struct trace_status): New field error_desc.
7476         * tracepoint.c (stop_reason_names): Add terror.
7477         (current_trace_status): Ensure non-NULL error description.
7478         (trace_status_command): Add error report.
7479         (trace_status_mi): Ditto.
7480         (trace_save): Add special case for error description.
7481         (parse_trace_status): Add case for errors.
7482
7483 2010-03-25  Keith Seitz  <keiths@redhat.com>
7484
7485         * dwarf2read.c (read_subroutine_type): If the compilation unit
7486         language is Java, mark any formal parameter named "this" as
7487         artificial (GCC/43521).
7488         (dwarf2_name): Add special handling for Java constructors.
7489
7490 2010-03-25  Tom Tromey  <tromey@redhat.com>
7491
7492         PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7493         * infrun.c (handle_inferior_event): Change initialization of
7494         stop_stack_dummy.
7495         (handle_inferior_event): Change assignment to stop_stack_dummy.
7496         (normal_stop): Update use of stop_stack_dummy.
7497         (struct inferior_status) <stop_stack_dummy>: Change type.
7498         * inferior.h (stop_stack_dummy): Update.
7499         * infcmd.c (stop_stack_dummy): Change type.
7500         * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7501         function.
7502         (call_function_by_hand): Call set_std_terminate_breakpoint.
7503         Rewrite std::terminate handling.
7504         * breakpoint.h (enum bptype) <bp_std_terminate,
7505         bp_std_terminate_master>: New.
7506         (enum stop_stack_kind): New.
7507         (struct bpstat_what) <call_dummy>: Change type.
7508         (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7509         Declare.
7510         * breakpoint.c (create_std_terminate_master_breakpoint): New
7511         function.
7512         (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7513         Call create_std_terminate_master_breakpoint.
7514         (print_it_typical): Handle new breakpoint kinds.
7515         (bpstat_stop_status): Handle bp_std_terminate_master.
7516         (bpstat_what): Correctly set call_dummy field.  Handle
7517         bp_std_terminate_master and bp_std_terminate.
7518         (print_one_breakpoint_location): Update.
7519         (allocate_bp_location): Update.
7520         (set_std_terminate_breakpoint): New function.
7521         (delete_std_terminate_breakpoint): Likewise.
7522         (create_thread_event_breakpoint): Update.
7523         (delete_command): Update.
7524         (breakpoint_re_set_one): Update.
7525         (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7526
7527 2010-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7528
7529         * symfile.c (build_section_addr_info_from_bfd): New.
7530         (build_section_addr_info_from_objfile): Base it on
7531         build_section_addr_info_from_bfd.
7532         (addrs_section_compar, addrs_section_sort): New.
7533         (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7534         addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs.  Build
7535         addrs_to_abfd_addrs.  Use it for recalculating ADDRS.
7536
7537 2010-03-24  Michael Snyder  <msnyder@localhost.localdomain>
7538
7539         * elfread.c (find_separate_debug_file_by_buildid):
7540         Remove unused local variable.
7541
7542 2010-03-24  Tom Tromey  <tromey@redhat.com>
7543
7544         PR breakpoints/9352:
7545         * NEWS: Mention changes to `commands' and `rbreak'.
7546         * symtab.c (do_end_rbreak_breakpoints): New function.
7547         (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7548         end_rbreak_breakpoints.
7549         * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7550         (set_breakpoint_count): Likewise.  Clear last_was_multi.
7551         (multi_start, multi_end, last_was_multi): New globals.
7552         (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7553         functions.
7554         (struct commands_info): New
7555         (do_map_commands_command): New function.
7556         (commands_command_1): New function.
7557         (commands_command): Use it.
7558         (commands_from_control_command): Likewise.
7559         (do_delete_breakpoint): New function.
7560         (delete_command): Use it.
7561         (map_breakpoint_numbers): Add 'data' argument.  Pass to callback.
7562         (do_map_disable_breakpoint): New function.
7563         (disable_command): Use it.
7564         (do_map_enable_breakpoint): New function.
7565         (enable_command): Use it.
7566         (enable_once_breakpoint): Add argument.
7567         (enable_once_command): Update.
7568         (enable_delete_breakpoint): Add argument.
7569         (enable_delete_command): Update.
7570         (break_command_really): Set last_was_multi when needed.
7571         (check_tracepoint_command): Fix formatting.
7572         (validate_commands_for_breakpoint): New function.
7573         (breakpoint_set_commands): Use it.
7574         (tracepoint_save_command): Update.
7575         * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7576         Declare.
7577
7578 2010-03-24  Tom Tromey  <tromey@redhat.com>
7579
7580         * breakpoint.h (struct counted_command_line): New struct.
7581         (struct breakpoint) <commands>: Change type.
7582         (struct bpstats) <commands>: Change type.
7583         <commands_left>: New field.
7584         * breakpoint.c (alloc_counted_command_line): New function.
7585         (incref_counted_command_line): Likewise.
7586         (decref_counted_command_line): Likewise.
7587         (do_cleanup_counted_command_line): Likewise.
7588         (make_cleanup_decref_counted_command_line): Likewise.
7589         (breakpoint_set_commands): Use decref_counted_command_line and
7590         alloc_counted_command_line.
7591         (commands_command): Don't error if breakpoint commands are
7592         executing.
7593         (commands_from_control_command): Likewise.
7594         (bpstat_free): Update.
7595         (bpstat_copy): Likewise.
7596         (bpstat_clear_actions): Likewise.
7597         (bpstat_do_actions_1): Likewise.
7598         (bpstat_stop_status): Likewise.
7599         (print_one_breakpoint_location): Likewise.
7600         (delete_breakpoint): Likewise.
7601         (bpstat_alloc): Initialize new field.
7602         (tracepoint_save_command): Update.
7603         * tracepoint.c (encode_actions): Update.
7604         (trace_dump_command): Update.
7605
7606 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
7607
7608         * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7609         * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7610         (read_structure_type): For RealView, set TYPE_STUB on structures with
7611         no byte size and no children.
7612         (read_subroutine_type): Mark functions as prototyped by default.
7613         * symtab.c (producer_is_realview): New function.
7614         * symtab.h (expand_line_sal): Fix declaration formatting.
7615         (producer_is_realview): Declare.
7616
7617 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
7618
7619         * arm-tdep.c (skip_prologue_function): New function.
7620         (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7621         (thumb_analyze_prologue): Document return value.  Recognize more
7622         Thumb instructions, skippable calls, and some Thumb-2 instructions.
7623         Add debug output.
7624         (arm_skip_prologue): Remove call dummy check.  Check the prologue
7625         for non-GNU compilers.
7626         (arm_instruction_changes_pc): New function.
7627         (arm_analyze_prologue): New function, broken out from
7628         arm_scan_prologue.  Recognize more ARM instructions and skippable
7629         calls.  Update comments.  Handle NULL cache.  Return the address
7630         of the first unrecognized instruction.  Do not skip past other
7631         instructions which change control flow.  Add debug output.
7632         (arm_scan_prologue): Use arm_analyze_prologue.
7633         (ARM_PC_32): Delete.
7634         (shifted_reg_val): Simplify ARM_PC_32 check.
7635
7636 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7637
7638         * tracepoint.c (tvariables_info_1): Actually compute
7639         the number of rows in the result.
7640
7641 2010-03-24  Pedro Alves  <pedro@codesourcery.com>
7642
7643         * remote.c (crc32): Constify `buf' parameter.
7644         (remote_verify_memory): New, abstracted out from...
7645         (compare_sections_command): ... this.  Remove hardcoded target
7646         checks.
7647         (init_remote_ops): Install remote_verify_memory.
7648         * target.c (target_verify_memory): New.
7649         * target.h (struct target_ops) <to_verify_memory>: New field.
7650         (target_verify_memory): Declare.
7651
7652 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7653
7654         Implement -trace-save.
7655
7656         * mi-cmds.h (mi_cmds_trace_save): Declare.
7657         * mi-cmds.c (mi_cmds): Register -trace-save.
7658         * mi/mi-main.c (mi_cmd_trace_save): New.
7659         * remote.c (remote_save_trace_data): Take const parameter.
7660         * target.h (struct target_ops::to_save_trace_data): Take
7661         const parameter.
7662         * target.c (update_current_target): Adjust to the above.
7663         * tracepoint.c (trave_save): New, extracted from
7664         (trace_save_command): ...this.
7665         (tfile_trace_find): Remove message that is unnecessary now
7666         that 'tfind' reports found frame.
7667         * tracepoint.h (trace_save): Declare.
7668
7669 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7670
7671         Implement -trace-find.
7672
7673         * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7674         * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
7675         * mi/mi-main.c (mi_cmd_trace_find): New.
7676         * target.h (struct target_ops): Document to_trace_find.
7677         * tracepoint.h (tfind_1): Declare.
7678         * tracepoint.c (finish_tfind_command): Rename to...
7679         (tfind_1): ...this.
7680         * remote.c (remote_trace_find): Return -1 if target say
7681         there's no frame.  Improve error diagnostics.
7682
7683 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7684
7685         -trace-define-variable and -trace-list-variables.
7686
7687         * tracepoint.c (create_trace_state_variable): Make
7688         private copy of name, as opposed to assuming the
7689         pointer lives forever.
7690         (tvariables_info_1): New.
7691         (tvariables_info): Use the above.
7692         * tracepoint.h (create_trace_state_variable, tvariables_info_1):
7693         Declare.
7694         * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
7695         and -trace-list-variables.
7696         * mi/mi-cmds.h (mi_cmd_trace_define_variable)
7697         (mi_cmd_trace_list_variables): New.
7698         * mi/mi-main.c (mi_cmd_trace_define_variable)
7699         (mi_cmd_trace_list_variables): New.
7700
7701 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7702
7703         Implement -break-passcount.
7704
7705         * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
7706         * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
7707         * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
7708
7709 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7710
7711         -trace-start/-trace-end/-trace-status.
7712
7713         * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
7714         and -trace-stop.
7715         * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
7716         (mi_cmd_trace_stop): Declare.
7717         * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
7718         (mi_cmd_trace_stop): New.
7719         * tracepoint.c (start_tracing): New, extracted from...
7720         (trace_start_command): ...this.
7721         (trace_status_mi): New.
7722         * tracepoint.h (struct trace_status): Document
7723         stopping_tracepoint.
7724         (start_tracing, stop_tracing, trace_status_mi): Declare.
7725
7726 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7727
7728         Implement creating tracepoints with -break-insert.
7729
7730         * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
7731         to mean that tracepoint should be created.
7732
7733 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7734
7735         * breakpoint.c (check_no_tracepoint_commands): Use
7736         current spelling of 'teval'.
7737
7738 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7739
7740         Unify actions and commands
7741
7742         * defs.h (read_command_lines, read_command_lines_1): New
7743         parameters validator and closure.
7744         * tracepoint.h (struct action_line): Remove.
7745         * breakpoint.h (struct breakpoint): Remove the 'actions'
7746         field.
7747         * defs.h (enum command_control_type): New value
7748         while_stepping_control.
7749         (struct command_line): Add comments.
7750         * breakpoint.c (breakoint_is_tracepoint): New.
7751         (breakpoint_set_commands): For tracepoints,
7752         verify the commands are permissible.
7753         (check_tracepoint_commands): New.
7754         (commands_command): Require that each new line is validated using
7755         check_tracepoint_command, if we set commands for a tracepoint.
7756         (create_tracepoint_from_upload): Likewise.
7757         (print_one_breakpoint_location): Remove the code to print
7758         actions specifically.
7759         (tracepoint_save_command): Relay to print_command_lines.
7760         * cli/cli-script.c (process_next_line): New parameters validator
7761         and closure. Handle 'while-stepping'. Call validator if not null.
7762         (read_command_lines, read_command_lines1): Likewise.
7763         (recurse_read_control_structure): New parameters validator and
7764         closure. Handle while_stepping_control.
7765         (print_command_lines): Handle while-stepping.
7766         (get_command_line, define_command, document_command): Adjust.
7767         * remote.c (remote_download_tracepoint): Adjust.
7768         * tracepoint.c (make_cleanup_free_actions, read_actions)
7769         (free_actions, do_free_actions_cleanup): Remove.
7770         (trace_actions_command): Use read_command_lines.
7771         (validate_actionline): Use error in one place.
7772         (encode_actions_1): New, extracted from...
7773         (encode_actions): ...this. Also use cleanups for exception
7774         safety.
7775         (trace_dump_command): Adjust.
7776         * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7777         it's tracepoint.
7778
7779 2010-03-23  Mike Frysinger  <vapier@gentoo.org>
7780
7781         * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7782
7783 2010-03-22  Stan Shebs  <stan@codesourcery.com>
7784
7785         * value.c (value_static_field): Be lazy about the field's value.
7786
7787 2010-03-22  Reid Kleckner  <reid@kleckner.net>
7788
7789         PR gdb/11094
7790         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7791         bp_jit_event.
7792         (disable_breakpoints_in_shlibs): Likewise.
7793
7794 2010-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
7795
7796         * dwarf2read.c (partial_die_parent_scope): Work around buggy
7797         GCC 4.1 debug info generation (GCC PR c++/28460).
7798         (determine_prefix): Likewise.
7799
7800 2010-03-20  Daniel Jacobowitz  <dan@codesourcery.com>
7801
7802         * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7803         get_current_arch.
7804         * tui/tui-layout.c (extract_display_start_addr): Likewise.
7805
7806 2010-03-19  Stan Shebs  <stan@codesourcery.com>
7807
7808         * ax-gdb.c (gen_fetch): Handle bool.
7809         (gen_usual_unary): Ditto.
7810         (gen_cast): Ditto.
7811         (gen_equal): New function.
7812         (gen_less): New function.
7813         (gen_expr_binop_rest): Call them, also return integer type from
7814         logical operations.
7815         (gen_expr): Ditto.
7816
7817 2010-03-19  Tom Tromey  <tromey@redhat.com>
7818
7819         * jv-lang.c (jv_dynamics_objfile_data_key)
7820         (jv_type_objfile_data_key): New globals.
7821         (class_symtab): Move earlier.
7822         (jv_per_objfile_free): New function.
7823         (get_dynamics_objfile): Call set_objfile_data.  Add 'gdbarch'
7824         parameter.
7825         Remove ancient #if 1.
7826         (add_class_symbol): Remove redundant declaration.
7827         (java_lookup_class): Use alloc_type, not alloc_type_arch.
7828         (java_link_class_type): Mark as static.  Update.
7829         (jv_clear_object_type): New function.
7830         (set_java_object_type): Likewise.
7831         (get_java_object_type): Use set_java_object_type.
7832         (is_object_type): Likewise.
7833         (_initialize_java_language): Register new objfile keys.
7834         (get_java_class_symtab): Add 'gdbarch' parameter.
7835         (add_class_symtab_symbol): Update.
7836         (type_from_class): Update.
7837
7838 2010-03-19  Stan Shebs  <stan@codesourcery.com>
7839
7840         * ax-general.c (ax_const_l): Fix a sizing bug.
7841
7842 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
7843
7844         GDB 7.1 released.
7845
7846 2010-03-18  Stan Shebs  <stan@codesourcery.com>
7847             Pedro Alves  <pedro@codesourcery.com>
7848
7849         * target.h (struct target_ops): New method
7850         to_set_circular_trace_buffer.
7851         (target_set_circular_trace_buffer): New macro.
7852         * target.c (update_current_target): Add
7853         to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7854         default behavior.
7855         * remote.c (remote_set_circular_trace_buffer): New function.
7856         (init_remote_ops): Add it to vector.
7857         * tracepoint.h (struct trace_status): New field traceframes_created,
7858         change buffer_size and buffer_free to int.
7859         * tracepoint.c (circular_trace_buffer): New global.
7860         (start_tracing): Send values of disconnected tracing and circular
7861         trace buffer settings.
7862         (set_circular_trace_buffer): New function.
7863         (parse_trace_state): Handle total space and frames created.
7864         (trace_status_command): Display total space and total frames
7865         created.
7866         (trace_save): Write out new status values.
7867         (parse_trace_status): Set traceframe_count, traceframes_created,
7868         buffer_free and buffer_size to -1 by default.
7869         (_initialize_tracepoint): New setshow for circular-trace-buffer.
7870         * NEWS: Mention the circular trace buffer option.
7871
7872 2010-03-18  Tom Tromey  <tromey@redhat.com>
7873
7874         * infcmd.c (finish_command_continuation): Wrap print_return_value
7875         in TRY_CATCH.
7876
7877 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
7878
7879         * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7880         DIE has a name before creating the associated partial symbol.
7881         (read_func_scope): Emit a complaint if the subprogram does not
7882         have a name or when we can't extract the subprogram PC bounds.
7883
7884 2010-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
7885
7886         * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7887         instead of selected frame architecture.
7888
7889 2010-03-18  Pedro Alves  <pedro@codesourcery.com>
7890
7891         * infcmd.c (until_command): Use ERROR_NO_INFERIOR.  Ensure there's
7892         a valid selected thread, and that it is not running.
7893         (advance_command): Ditto.
7894         (finish_command): Ditto.
7895
7896 2010-03-17 Stan Shebs  <stan@codesourcery.com>
7897
7898         * ax-gdb.c (require_rvalue): Disallow non-scalars.
7899
7900         * infcall.c: Include tracepoint.h.
7901         (call_function_by_hand): Disallow calls in tfind mode.
7902         * infcmd.c: Include tracepoint.h.
7903         (ensure_not_tfind_mode): New function.
7904         (continue_1): Call it.
7905         (step_1) Ditto.
7906         (jump_command): Ditto.
7907         (signal_command): Ditto.
7908         (advance_command): Ditto.
7909         (until_command): Ditto.
7910         (finish_command): Ditto.
7911         * tracepoint.h (disconnect_or_stop_tracing): Declare.
7912
7913         * ax-gdb.h (struct axs_value): New field optimized_out.
7914         (gen_trace_for_var): Add gdbarch argument.
7915         * ax-gdb.c (gen_trace_static_fields): New function.
7916         (gen_traced_pop): Call it, add gdbarch argument.
7917         (gen_trace_for_expr): Update call to it.
7918         (gen_trace_for_var): Ditto, and report optimized-out variables.
7919         (gen_struct_ref_recursive): Check for optimized-out value.
7920         (gen_struct_elt_for_reference): Ditto.
7921         (gen_static_field): Pass gdbarch instead of expression, assume
7922         optimization if field not found.
7923         (gen_var_ref): Set the optimized_out flag.
7924         (gen_expr): Error on optimized-out variable.
7925         * tracepoint.c (collect_symbol): Handle struct-valued vars as
7926         expressions, skip optimized-out variables with computed locations.
7927         * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
7928         erroring out if location expression missing.
7929         (loclist_tracepoint_var_ref): Don't error out here.
7930
7931 2010-03-17  Tom Tromey  <tromey@redhat.com>
7932
7933         * dwarf2read.c (dwarf2_get_section_info): Handle case where no
7934         DWARF data is available.
7935
7936 2010-03-17  Daniel Jacobowitz  <dan@codesourcery.com>
7937
7938         * symfile.c (generic_load): Reset breakpoints after loading.
7939
7940 2010-03-17  Tom Tromey  <tromey@redhat.com>
7941
7942         * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
7943
7944 2010-03-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7945
7946         * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
7947         create_breakpoint call, adjust the parameters.
7948
7949 2010-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7950             Chandru <chandru@in.ibm.com>
7951
7952         * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
7953         * valarith.c (value_subscripted_rvalue): Suppress error if
7954         TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
7955
7956 2010-03-16  Holger Hans Peter Freyther  <zecke@selfish.org>
7957
7958         * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
7959
7960 2010-03-16  Joel Brobecker  <brobecker@adacore.com>
7961
7962         * ada-tasks.c (task_command_1): Check that the task ptid is valid
7963         before doing the associated thread switch.
7964
7965 2010-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
7966
7967         * MAINTAINERS: Update my email address.
7968
7969 2010-03-16  Vladimir Prus  <vladimir@codesourcery.com>
7970
7971         Simplify MI breakpoint setting.
7972
7973         * breakpoint.c (break_command_really): Make nonstatic and
7974         rename to...
7975         (create_breakpoint): ...this. Rename prior function by this name
7976         to...
7977         (create_breakpoint_sal): ...this.
7978         (create_breakpoints): Rename to...
7979         (create_breakpoints_sal): ...this.
7980         (set_breakpoint): Remove.
7981         * breakpoint.h: Adjust to above changes.
7982         * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
7983
7984 2010-03-15 Stan Shebs  <stan@codesourcery.com>
7985
7986         * ax-gdb.c: Include cp-support.h.
7987         (find_field): Remove.
7988         (gen_primitive_field): New function.
7989         (gen_struct_ref_recursive): New function.
7990         (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
7991         of find_field.
7992         (gen_static_field): New function.
7993         (gen_struct_elt_for_reference): New.
7994         (gen_namespace_elt): New.
7995         (gen_maybe_namespace_elt): New.
7996         (gen_aggregate_elt_ref): New.
7997         (gen_expr): Add OP_SCOPE, display opcode name in error message.
7998
7999 2010-03-15  Tom Tromey  <tromey@redhat.com>
8000
8001         * dwarf2read.c (die_needs_namespace): Also return 0 for
8002         DW_TAG_subprogram.
8003
8004 2010-03-15  Sami Wagiaalla  <swagiaal@redhat.com>
8005
8006         PR c++/7936:
8007         * cp-support.h: Added char *declaration element to using_direct
8008         data struct.
8009         (cp_add_using): Added char *declaration argument.
8010         (cp_add_using_directive): Ditto.
8011         (cp_lookup_symbol_imports): made extern.
8012         * cp-namespace.c: Updated with the above changes.
8013         * dwarf2read.c (read_import_statement): Ditto.
8014         (read_namespace): Ditto.
8015         (read_import_statement): Support import declarations.
8016         * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8017         declarations.
8018         Added support for 'declaration_only' search.
8019         (cp_lookup_symbol_namespace): Attempt to search for the name as
8020         is before consideration of imports.
8021         * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8022         search at every block level search.
8023         Now takes language argument.
8024         (lookup_symbol_aux): Updated.
8025
8026 2010-03-15  Tom Tromey  <tromey@redhat.com>
8027
8028         * c-exp.y (name_not_typename): Add 'operator' clause.
8029
8030 2010-03-15  Ralf Corsepius  <ralf.corsepius@rtems.org>  (tiny change)
8031
8032         * configure.ac: Exit if ${gdb_target_obs}" is not set.
8033         * configure: Regenerate.
8034
8035 2010-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
8036
8037         * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8038         and ".sdynbss".  Update the comment.
8039
8040 2010-03-15  Jie Zhang  <jie@codesourcery.com>
8041
8042         * MAINTAINERS: Update my email address.
8043
8044 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
8045
8046         * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8047
8048 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
8049
8050         * charset.c [USE_WIN32API]: Include <windows.h>.
8051          (_initialize_charset): Correct type of w32_host_default_charset.
8052
8053 2010-03-14  Pedro Alves  <pedro@codesourcery.com>
8054
8055         * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8056
8057 2010-03-12  Tom Tromey  <tromey@redhat.com>
8058
8059         PR c++/9708:
8060         * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8061         in a lexical block does not need a namespace.
8062         (new_symbol) <DW_TAG_variable>: Put extern variables on
8063         list_in_scope in all cases.
8064
8065 2010-03-12 Stan Shebs  <stan@codesourcery.com>
8066
8067         * ax-gdb.c (gen_expr): Add shift expressions.
8068         (gen_expr_binop_rest): Ditto.
8069
8070 2010-03-12  Sami Wagiaalla  <swagiaal@redhat.com>
8071
8072         * buildsym.c (finish_block): Reset using_directives pointer
8073         after block initialization.
8074
8075 2010-03-12  H.J. Lu  <hongjiu.lu@intel.com>
8076
8077         * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8078         * i386-tdep.c (i386_word_names): Likewise.
8079
8080 2010-03-12  Pedro Alves  <pedro@codesourcery.com>
8081
8082         * target.c (memory_xfer_partial): Don't use the stack cache if
8083         inspecting trace frames.
8084         * tracepoint.c (finish_tfind_command): Invalidate the target
8085         dcache.
8086
8087 2010-03-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8088
8089         * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8090         for the PIC displacement, print also the displacement value.
8091         (svr4_exec_displacement):  Print DISPLACEMENT if INFO_VERBOSE.
8092
8093 2010-03-10  Kevin Buettner  <kevinb@redhat.com>
8094
8095         * remote-mips.c (close_ports, mips_initialize_cleanups)
8096         (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8097         (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8098         (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8099         (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8100         (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8101         (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8102         comments describing each of these functions.
8103         (mips_enter_debug, mips_exit_debug, common_open)
8104         (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8105         blank line after the comment describing the function.
8106
8107 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8108
8109         * solib-svr4.c (svr4_exec_displacement): Return now success, new
8110         parameter displacementp.  Update comment.
8111         (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8112         element exists.  Return if svr4_exec_displacement was not successful.
8113         Update comment.
8114
8115 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8116             Daniel Jacobowitz  <dan@codesourcery.com>
8117
8118         * solib-svr4.c (read_program_header): Support type == -1 to read
8119         all program headers.
8120         (read_program_headers_from_bfd): New function.
8121         (svr4_static_exec_displacement): Remove and move the comment ...
8122         (svr4_exec_displacement): ... here.  Remove variable found.  New
8123         variable displacement.  Check also DYNAMIC.  Verify DISPLACEMENT
8124         alignment for ELF targets.  Compare target vs. exec_bfd PHDRs for ELF
8125         targets using read_program_headers_from_bfd.  Remove the call of
8126         svr4_static_exec_displacement.
8127
8128 2010-03-10  Tom Tromey  <tromey@redhat.com>
8129
8130         * dwarf2read.c (struct pubnames_header): Remove.
8131         (_PUBNAMES_HEADER): Remove.
8132         (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8133         (struct aranges_header): Remove.
8134         (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8135         (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8136         (PUBNAMES_SECTION): Remove.
8137         (ARANGES_SECTION): Remove.
8138         (dwarf2_locate_sections): Don't handle pubnames or aranges.
8139         (dwarf2_build_psymtabs): Remove dead code.
8140         (dwarf2_build_psymtabs_easy): Remove.
8141
8142 2010-03-10  Tom Tromey  <tromey@redhat.com>
8143
8144         * elfread.c (elf_symfile_read): Don't call
8145         dwarf2_build_frame_info.
8146         * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8147         (struct dwarf2_per_objfile) <objfile>: New field.
8148         (dwarf2_has_info): Now idempotent.  Set objfile field.
8149         (dwarf2_read_section): Check and set readin field.  Call
8150         posix_madvise.
8151         (dwarf2_build_psymtabs): Don't read all sections.
8152         (read_type_comp_unit_head): Read types section.
8153         (create_debug_types_hash_table): Likewise.
8154         (init_cu_die_reader): Add asserts.
8155         (process_type_comp_unit): Add assert.
8156         (dwarf2_build_psymtabs_hard): Read info section.
8157         (load_partial_comp_unit): Add assert.
8158         (create_all_comp_units): Read info section.
8159         (load_full_comp_unit): Likewise.
8160         (dwarf2_ranges_read): Read ranges section.
8161         (dwarf2_record_block_ranges): Add assert.
8162         (dwarf2_read_abbrevs): Read abbrev section.
8163         (read_indirect_string): Read str section.
8164         (dwarf_decode_line_header): Read line section.
8165         (read_signatured_type_at_offset): Read types section.
8166         (dwarf_decode_macros): Read macinfo section.
8167         (dwarf2_symbol_mark_computed): Read loc section.
8168         * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8169         dwarf2_build_frame_info.
8170         (dwarf2_build_frame_info): Unconditionally set
8171         dwarf2_frame_objfile_data on the objfile.
8172         * configure.ac: Check for posix_madvise.
8173         * config.in, configure: Rebuild.
8174
8175 2010-03-10  Tom Tromey  <tromey@redhat.com>
8176
8177         * xcoffread.c (xcoff_start_psymtab): Update.
8178         (xcoff_end_psymtab): Update.
8179         * psymtab.c (allocate_psymtab): Remove dead code.
8180         * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8181         void*.
8182         * mdebugread.c (parse_partial_symbols): Update.
8183         (new_psymtab): Likewise.
8184         * dwarf2read.c (process_psymtab_comp_unit): Update.
8185         (psymtab_to_symtab_1): Update.
8186         * dbxread.c (start_psymtab): Update.
8187         (end_psymtab): Likewise.
8188
8189 2010-03-10  Tom Tromey  <tromey@redhat.com>
8190
8191         * xcoffread.c: Include psymtab.h.
8192         (xcoff_sym_fns): Update.
8193         * symtab.h (struct partial_symbol): Remove.
8194         (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8195         (struct partial_symtab): Remove.
8196         (PSYMTAB_TO_SYMTAB): Remove.
8197         (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8198         (find_pc_sect_psymtab): Remove.
8199         (find_pc_sect_symtab_via_partial): Declare.
8200         (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8201         (find_main_psymtab): Remove.
8202         (find_main_filename): Declare.
8203         (fixup_psymbol_section): Remove.
8204         (fixup_section): Declare.
8205         * symtab.c: Include psymtab.h.
8206         (lookup_symtab): Use lookup_symtab method.
8207         (lookup_partial_symtab): Remove.
8208         (find_pc_sect_psymtab_closer): Remove.
8209         (find_pc_sect_psymtab): Remove.
8210         (find_pc_sect_symtab_via_partial): New function.
8211         (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8212         (fixup_section): No longer static.
8213         (fixup_psymbol_section): Remove.
8214         (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8215         (lookup_global_symbol_from_objfile): Likewise.
8216         (lookup_symbol_aux_psymtabs): Remove.
8217         (lookup_symbol_aux_quick): New function.
8218         (lookup_symbol_global): Use lookup_symbol_aux_quick.
8219         (lookup_partial_symbol): Remove.
8220         (basic_lookup_transparent_type_quick): New function.
8221         (basic_lookup_transparent_type): Use it.
8222         (find_main_psymtab): Remove.
8223         (find_main_filename): New function.
8224         (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8225         (find_line_symtab): Use expand_symtabs_with_filename method.
8226         (output_partial_symbol_filename): New function.
8227         (sources_info): Use map_partial_symbol_filenames.
8228         (struct search_symbols_data): New type.
8229         (search_symbols_file_matches): New function.
8230         (search_symbols_name_matches): Likewise.
8231         (search_symbols): Use expand_symtabs_matching method.
8232         (struct add_name_data): Rename from add_macro_name_data.
8233         (add_macro_name): Update.
8234         (add_partial_symbol_name): New function.
8235         (default_make_symbol_completion_list): Use
8236         map_partial_symbol_names.
8237         (struct add_partial_symbol_name): New type.
8238         (maybe_add_partial_symtab_filename): New function.
8239         (make_source_files_completion_list): Use
8240         map_partial_symbol_filenames.
8241         (expand_line_sal): Use expand_symtabs_with_filename method.
8242         * symmisc.c: Include psymtab.h.
8243         (print_objfile_statistics): Use print_stats method.
8244         (dump_objfile): Use dump method.
8245         (dump_psymtab, maintenance_print_psymbols)
8246         (maintenance_info_psymtabs, maintenance_check_symtabs)
8247         (extend_psymbol_list): Remove.
8248         * symfile.h (struct quick_symbol_functions): New struct.
8249         (struct sym_fns) <qf>: New field.
8250         (sort_pst_symbols): Remove.
8251         (increment_reading_symtab): Declare.
8252         * symfile.c: Include psymtab.h.
8253         (compare_psymbols, sort_pst_symbols): Remove.
8254         (psymtab_to_symtab): Remove.
8255         (increment_reading_symtab): New function.
8256         (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8257         method.
8258         (set_initial_language): Use find_main_filename.
8259         (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8260         (free_named_symtabs): Remove unused code.
8261         (start_psymtab_common, add_psymbol_to_bcache)
8262         (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8263         Remove.
8264         * stack.c: Include psymtab.h, symfile.h.
8265         (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8266         * source.h (psymtab_to_fullname): Don't declare.
8267         * source.c: Include psymtab.h.
8268         (select_source_symtab): Use find_last_source_symtab method.
8269         (forget_cached_source_info): Use forget_cached_source_info
8270         method.
8271         (find_and_open_source): No longer static.
8272         (psymtab_to_fullname): Remove.
8273         * somread.c: Include psymtab.h.
8274         (som_sym_fns): Update.
8275         * psympriv.h: New file.
8276         * psymtab.h: New file.
8277         * psymtab.c: New file.
8278         * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8279         (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8280         * objfiles.c: Include psymtab.h.
8281         (objfile_relocate1): Use relocate method.
8282         (objfile_has_partial_symbols): Use has_symbols method.
8283         * mipsread.c: Include psymtab.h.
8284         (ecoff_sym_fns): Update.
8285         * mi/mi-cmd-file.c: Include psymtab.h.
8286         (print_partial_file_name): New function.
8287         (mi_cmd_file_list_exec_source_files): Use
8288         map_partial_symbol_filenames.
8289         * mdebugread.c: Include psympriv.h.
8290         * machoread.c: Include psympriv.h.
8291         (macho_sym_fns): Update.
8292         * m2-exp.y (yylex): Use lookup_symtab.
8293         * elfread.c: Include psympriv.h.
8294         (elf_sym_fns): Update.
8295         * dwarf2read.c: Include psympriv.h.
8296         * dbxread.c: Include psympriv.h.
8297         (aout_sym_fns): Update.
8298         * cp-support.c: Include psymtab.h.
8299         (read_in_psymtabs): Remove.
8300         (make_symbol_overload_list_qualified): Use
8301         expand_symtabs_for_function method.
8302         * coffread.c: Include psympriv.h.
8303         (coff_sym_fns): Update.
8304         * blockframe.c: Include psymtab.h.
8305         (find_pc_partial_function): Use find_pc_sect_symtab method.
8306         * ada-lang.h (ada_update_initial_language): Update.
8307         * ada-lang.c: Include psymtab.h.
8308         (ada_update_initial_language): Remove 'main_pst' argument.
8309         (ada_lookup_partial_symbol): Remove.
8310         (struct ada_psym_data): New type.
8311         (ada_add_psyms): New function.
8312         (ada_add_non_local_symbols): Use map_ada_symtabs method.
8313         (struct add_partial_datum): New type.
8314         (ada_add_partial_symbol_completions): New function.
8315         (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8316         (ada_exception_support_info_sniffer): Update.
8317         * Makefile.in (SFILES): Add psymtab.c.
8318         (COMMON_OBS): Add psymtab.o.
8319         (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8320
8321 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
8322
8323         * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8324
8325 2010-03-10  Sami Wagiaalla  <swagiaal@redhat.com>
8326
8327         PR C++/11236:
8328         * cp-namespace.c (cp_add_using): Deleted.
8329         (cp_add_using_directive): Use obstack allocations.
8330         Merged the function cp_add_using into this one.
8331         Added 'struct obstack *' argument.
8332         (cp_scan_for_anonymous_namespaces): Updated.
8333         * cp-support.h: Updated.
8334         * dwarf2read.c (read_import_statement): Updated.
8335         (read_namespace): Updated.
8336
8337 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
8338
8339         * windows-nat.c (cygwin_conv_path): Remove old macro.
8340
8341 2010-03-10  Pedro Alves  <pedro@codesourcery.com>
8342
8343         * breakpoint.c (condition_command): Handle watchpoint conditions.
8344         (is_hardware_watchpoint): Add comment.
8345         (is_watchpoint): New.
8346         (update_watchpoint): Don't reparse the watchpoint's condition
8347         unless necessary.
8348         (WP_IGNORE): New.
8349         (watchpoint_check): Use it.
8350         (bpstat_check_watchpoint): Handle it.
8351         (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8352         conditions in a frame where it makes sense.
8353         (watch_command_1): Store the innermost block of the condition
8354         expression.
8355         (delete_breakpoint): Delete the watchpoint condition expression.
8356         * breakpoint.h (struct bp_location) <cond>: Update comment.
8357         (struct breakpoint): New field `cond_exp_valid_block'.
8358
8359 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
8360
8361         Adjust handling of Ada DIEs after dwarf2_physname patch.
8362         * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8363
8364 2010-03-09  Christopher Faylor  <me+cygwin@cgf.cx>
8365             Pierre Muller  <muller@ics.u-strasbg.fr>
8366
8367         * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8368         from/to posix/win32.
8369         (windows_make_so): Use non-Cygwin 1.7 specific function.
8370         (windows_create_inferior): Make sure that cygallargs points to
8371         original args in non Cygwin 1.7. case.
8372
8373 2010-03-09  Michael Snyder  <msnyder@vmware.com>
8374
8375         * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8376         after target_read_memory to get host byte order.
8377         (i386_process_record): Ditto.
8378
8379 2010-03-09  Keith Seitz  <keiths@redhat.com>
8380
8381         Based on work from Daniel Jacobowitz  <dan@codesourcery.com>
8382         * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8383         print out const or volatile qualifiers, too.
8384         (c_type_print_args): Add parameters show_artificial and language.
8385         Skip artificial parameters when requested.
8386         Use the appropriate language printer.
8387         (c_type_print_varspec): Tell c_type_print_args to skip artificial
8388         parameters and pass language_c.
8389         * dwarf2read.c (die_list): New file global.
8390         (struct partial_die_info): Update comments for name field.
8391         (pdi_needs_namespace): Renamed to ...
8392         (die_needs_namespace): ... this. Rewrite.
8393         (dwarf2_linkage_name): Remove.
8394         (add_partial_symbol): Do not predicate the call to
8395         partial_die_full_name based on pdi_needs_namespace.
8396         Remove call to cp_check_possible_namespace_symbols and associated
8397         outdated comments.
8398         (guess_structure_name): Do not inspect child subprogram DIEs.
8399         (dwarf2_fullname): Update comments.
8400         Use die_needs_namespace to assist in computing the name.
8401         (read_func_scope): Use dwarf2_name to get the DIE's name.
8402         Use dwarf2_physname to get the "linkage name" of the DIE.
8403         (dwarf2_add_member_field): Use dwarf2_physname instead of
8404         dwarf2_linkage_name.
8405         (read_structure_type): For structs and classes, set TYPE_NAME, too.
8406         (determine_class): Remove.
8407         (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8408         except Ada.
8409         (new_symbol): Unconditionally call dwarf2_name.
8410         Compute the "linkage name" using dwarf2_physname.
8411         Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8412         When determining to scan for anonymous C++ namespaces, ignore
8413         the linkage name.
8414         (dwarf2_physname): New function.
8415         (dwarf2_full_name): Move content to new function and call
8416         that.
8417         (dwarf2_compute_name): "New" function.
8418         (_initialize_dwarf2_read): Initialize die_list.
8419         * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8420         physname.
8421         (gnu_v3_print_method_ptr): Use the physname for virtual methods
8422         without a demangled name.
8423         Print out type information for non-virtual methods.
8424         * linespec.c (decode_line_1): Force ANY string using "::" (or
8425         "." for java) to use decode_compound, and clean up any stray quoting.
8426         If we found a file symtab, re-evaluate whether the remainder is_quoted.
8427         (decode_compound): Stop consuming at an open parenthesis.
8428         Keep template parameters.
8429         Keep any overload information.
8430         Keep keywords like "const".
8431         Remove paren_pointer.
8432         Move is_quoted check from set_flags to here.
8433         Remove #if 0 code from 2000. Ten years is long enough.
8434         (find_method): Before comparing symbol names, canonicalize the string
8435         from the user.
8436         If a specific overload is requested, find it. Otherwise throw an error.
8437         (find_method_overload_end): New function.
8438         (set_flags): Remove.
8439         (decode_compound): Assume that parentheses are matched.
8440         It's a lot easier.
8441         * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8442         to cplus_demangle.
8443         * linespec.c (decode_line_1): Keep important keywords like
8444         "const" and "volatile".
8445         * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8446         * typeprint.h (c_type_print_args): Add declaration.
8447         * ui-file.c (do_ui_file_obsavestring): New function.
8448         (ui_file_obsavestring): New function.
8449         * ui-file.h (ui_file_obsavestring): Add declaration.
8450         * valops.c (find_overload_match): Resolve the object to
8451         a non-pointer type.
8452         If the object is a data member, search the object for the member
8453         and return with staticp set.
8454         Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8455         Do not attempt to extract a function name from non-function types.
8456         If the extracted function name and the original name are the same,
8457         we don't have a C++ method.
8458
8459         From Jan Kratochvil  <jan.kratochvil@redhat.com>:
8460         * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
8461
8462         * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8463         and arguments from symbol lookups.
8464         * ax-gdb.c (gen_expr): Likewise.
8465         * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8466         cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8467         lookup_possible_namespace_symbol): Likewise.
8468         * cp-support.c (read_in_psymtabs): Likewise.
8469         * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8470         * language.h (la_lookup_symbol_nonlocal): Likewise.
8471         * scm-valprint.c (scm_inferior_print): Likewise.
8472         * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8473         * solib-svr.c (elf_lookup_lib): Likewise.
8474         * solib.c (show_auto_solib_add): Likewise.
8475         * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8476         * symmisc.c (maintenance_check_symtabs): Likewise.
8477         * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8478         lookup_symbol_aux_local, lookup_symbol_aux_block,
8479         lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8480         lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8481         lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8482         basic_lookup_transparent_type, find_main_psymtab,
8483         lookup_block_symbol): Likewise.
8484         * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8485         lookup_symbol_global, lookup_symbol_aux_block,
8486         lookup_symbol_partial_symbol, lookup_block_symbol,
8487         lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8488
8489 2010-03-09  Pierre Muller  <muller@ics.u-strasbg.fr>
8490
8491         * python/python-internal.h: Include symtab.h.
8492
8493 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
8494             Pierre Muller  <muller@ics.u-strasbg.fr>
8495
8496         * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8497         * p-valprint.c (pascal_val_print): Remove undeed block and fix
8498         indentation.
8499
8500 2010-03-08  Tom Tromey  <tromey@redhat.com>
8501
8502         * breakpoint.c (breakpoint_1): Add "QUIT".
8503
8504 2010-03-08  Daniel Jacobowitz  <dan@codesourcery.com>
8505             Pedro Alves  <pedro@codesourcery.com>
8506
8507         * solib.c (solib_find): Replace extension if
8508         solib_symbols_extension is set in the target gdbarch.
8509         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8510         solib_symbols_extension to "sym".
8511         * gdbarch.sh (solib_symbols_extension): New variable.
8512         (pstring): New function.
8513         * gdbarch.h, gdbarch.c: Regenerate.
8514
8515 2010-03-08  Tom Tromey  <tromey@redhat.com>
8516
8517         PR cli/9591:
8518         * NEWS: Update.
8519         * utils.c: Include main.h.
8520         (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8521         (defaulted_query): Use default answer if `batch_flag'.
8522         * main.h (batch_flag): Declare.
8523         * main.c (batch_flag): New global.
8524         (captured_main): Remove 'batch'.  Update.
8525
8526 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
8527
8528         From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8529         and Kevin Buettner:
8530
8531         * remote-mips.c (rockhopper_ops): New target_ops struct.
8532         (MON_ROCKHOPPER): New mips_monitor_type.
8533         (read_hex_value): New function.
8534         (mips_request): Send 8-byte values with a 'T' packet.  Read the
8535         packet argument as a string and use read_hex_value to parse it.
8536         (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8537         (rockhopper_open): New function.
8538         (mips_wait): Read the PC, FP and SP fields as strings.  Use
8539         read_hex_value to parse them and mips_set_register to commit them.
8540         (mips_set_register): New function.
8541         (mips_fetch_registers): Do not cast register value to "unsigned"
8542         when reading a MON_ROCKHOPPER 't' packet.  Use mips_set_register.
8543         (mips_store_registers): Use a 'T' packet to set registers when
8544         using MON_ROCKHOPPER.
8545         (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8546         and expect the total to be printed before the entry address.
8547         (_initialize_remote_mips): Initialize and add rockhopper_ops.
8548
8549 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
8550
8551         * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8552         Change return value to int.  Store value fetched in location
8553         addressed by `val'.  Use function's return value as success
8554         or failure indicator.  Adjust all callers.
8555
8556 2010-03-08  Pierre Muller  <muller@ics.u-strasbg.fr>
8557
8558         * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8559
8560 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8561             Hui Zhu  <teawater@gmail.com>
8562
8563         * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8564         tmp_to_stopped_data_address.
8565         (record_open): Reset tmp_to_stopped_by_watchpoint and
8566         tmp_to_stopped_data_address.
8567         * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8568         to_stopped_data_address.
8569
8570 2010-03-08  Hui Zhu  <teawater@gmail.com>
8571
8572         * i386-tdep.c (i386_process_record): Initialize regnum.
8573
8574 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8575
8576         * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8577         Do not warn on ".gnu.liblist" and ".gnu.conflict".
8578
8579 2010-03-08  Joel Brobecker  <brobecker@adacore.com>
8580
8581         Memory error when reading wrong core file.
8582         * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8583         errors while reading the inferior memory, and return zero if
8584         an exception was raised.
8585
8586 2010-03-07  Michael Snyder  <msnyder@vmware.com>
8587
8588         * record.c (record_restore): Rename tmpu8 to rectype.
8589
8590         * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8591         tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8592
8593         (i386_record_push): Rename local tmpulongest to addr.
8594
8595         (i386_process_record): Rename local tmpulongest to addr.
8596
8597         Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8598         addr64.
8599
8600         Rename local variable tmpu8 to opcode8 and regnum.
8601
8602 2010-03-07  Joel Brobecker  <brobecker@adacore.com>
8603
8604         * remote.c (remote_get_ada_task_ptid): New function.
8605         (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
8606
8607 2010-03-06  Christopher Faylor  <me+cygwin@cgf.cx>
8608
8609         * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8610         block.  Define helper macros to reduce ifdefs in code.
8611         (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8612         size.  Call unadorned GetModuleFileNameEx rather than
8613         GetModuleFileNameEx*.
8614         (windows_make_so): Use __PMAX to denote maximum buffer size and
8615         cygwin_buf_t for buffer type.  Use GetSystemDirectory{W,A} as
8616         appropriate.
8617         (get_image_name): Use __PMAX to denote maximum buffer size.
8618         (handle_load_dll): Likewise.
8619         (windows_pid_to_exec_file): Likewise.
8620         (windows_create_inferior): Add many accommodations for older Cygwin and
8621         non-Cygwin.
8622         (bad_GetModuleFileNameExW): Control inclusion of this function based on
8623         __USEWIDE conditional.
8624         (bad_GetModuleFileNameExA): Likewise.
8625         (_initialize_loadable): Just use real function names without the dyn_
8626         part since they are defined earlier.
8627
8628 2010-03-05  Corinna Vinschen  <vinschen@redhat.com>
8629             Tom Tromey  <tromey@redhat.com>
8630
8631         * utils.c (host_char_to_target): Add 'gdbarch' argument.
8632         (parse_escape): Likewise.
8633         * python/py-utils.c (unicode_to_target_string): Update.
8634         (unicode_to_target_python_string): Update.
8635         (target_string_to_unicode): Update.
8636         * printcmd.c (printf_command): Update.
8637         * p-exp.y (yylex): Update.
8638         * objc-exp.y (yylex): Update.
8639         * mi/mi-parse.c: Include charset.h.
8640         (mi_parse_escape): New function.
8641         (mi_parse_argv): Use it.
8642         * jv-exp.y (yylex): Update.
8643         * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8644         function.
8645         (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8646         * gdbarch.sh (auto_charset, auto_wide_charset): New.
8647         * gdbarch.c: Rebuild.
8648         * gdbarch.h: Rebuild.
8649         * defs.h (parse_escape): Update.
8650         * cli/cli-setshow.c: Include arch-utils.h.
8651         (do_setshow_command): Update.
8652         * cli/cli-cmds.c (echo_command): Update.
8653         * charset.h (target_charset, target_wide_charset): Update.
8654         * charset.c: Include arch-utils.h.
8655         (target_charset_name): Default to "auto".
8656         (target_wide_charset_name): Likewise.
8657         (show_target_charset_name): Handle "auto".
8658         (show_target_wide_charset_name): Likewise.
8659         (be_le_arch): New global.
8660         (set_be_le_names): Add 'gdbarch' argument.
8661         (validate): Likewise.  Don't call set_be_le_names.
8662         (set_charset_sfunc, set_host_charset_sfunc)
8663         (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8664         Update.
8665         (target_charset): Add 'gdbarch' argument.
8666         (target_wide_charset): Likewise.  Remove 'byte_order' argument.
8667         (auto_target_charset_name): New global.
8668         (default_auto_charset, default_auto_wide_charset): New functions.
8669         (_initialize_charset): Set auto_target_charset_name.  Allow "auto"
8670         for target charsets.  Copy result of nl_langinfo.  Use GetACP if
8671         USE_WIN32API.
8672         * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8673         remove 'byte_order' argument.  Update.
8674         (classify_type): Likewise.
8675         (c_emit_char): Update.
8676         (c_printchar): Update.
8677         (c_printstr): Update.
8678         (c_get_string): Update.
8679         (evaluate_subexp_c): Update.
8680         * arch-utils.h (default_auto_charset, default_auto_wide_charset):
8681         Declare.
8682         * python/python.c (gdbpy_target_charset): New function.
8683         (gdbpy_target_wide_charset): Likewise.
8684         (GdbMethods): Update.
8685         * NEWS: Update.
8686
8687 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
8688
8689         * symfile.c (build_section_addr_info_from_objfile): Do not mask
8690         off high address bits.
8691
8692 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
8693
8694         * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
8695         address as UnsignedLongLong, not LongLong.
8696
8697 2010-03-05  Kevin Buettner  <kevinb@redhat.com>
8698             Pedro Alves  <pedro@codesourcery.com>
8699
8700         * remote-mips.c (gdbthread.h): Include.
8701         (remote_mips_ptid): Declare.
8702         (mips_error): Only mourn the inferior when inferior_ptid is non-null.
8703         (common_open): Set inferior_ptid, add it as an inferior, and
8704         as a thread too.  Delete FIXME comment regarding start_remote().
8705         (mips_close): Invoke generic_mourn_inferior().
8706         (mips_kill): Make sure that target_mourn_inferior is invoked.
8707         (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
8708         it's now invoked from mips_close().
8709         (mips_load): Don't null out inferior_ptid.  Don't call
8710         clear_symtab_users().
8711         (mips_thread_alive, mips_pid_to_str): New functions.
8712         (_initialize_remote_mips): Initialize remote_mips_ptid.  Initialize
8713         to_thread_alive and to_pid_to_str operations.
8714
8715 2010-03-04  Tom Tromey  <tromey@redhat.com>
8716
8717         * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
8718         in DWARF 3 and later.
8719         (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
8720
8721 2010-03-04  Keith Seitz  <keiths@redhat.com>
8722
8723         * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
8724         If the filename portion of the linespec was quoted, recheck the
8725         remainder for additional quoting.
8726         (locate_first_half): Skip over completer chars, too.
8727
8728 2010-03-04  Tom Tromey  <tromey@redhat.com>
8729
8730         * printcmd.c (printf_command): Pass dummy argument to
8731         printf_filtered.
8732
8733 2010-03-04  Doug Evans  <dje@google.com>
8734
8735         * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
8736         unwound_fp.
8737
8738         * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8739
8740 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
8741
8742         * breakpoint.c (update_watchpoint): Create a sentinel location if
8743         the software watchpoint isn't watching any memory.
8744         (breakpoint_address_bits): Skip dummy software watchpoint locations.
8745
8746 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
8747
8748         * utils.c (fputs_maybe_filtered): Check if there's already a top
8749         level interpreter before dereferencing it.  If there isn't one,
8750         don't paginate either.
8751
8752 2010-03-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
8753
8754         * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
8755         the state right when single stepping.
8756         (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8757         Get the next PC along with the instruction state.
8758         (thumb_get_next_pc): Remove.
8759         (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8760
8761 2010-03-04  Hui Zhu  <teawater@gmail.com>
8762
8763         * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8764
8765 2010-03-03  Pedro Alves  <pedro@codesourcery.com>
8766
8767         * utils.c (fputs_maybe_filtered): Always disable pagination if the
8768         top level interpreter is MI.
8769
8770 2010-03-03 Stan Shebs  <stan@codesourcery.com>
8771
8772         * remote.c (remote_download_tracepoint): Iterate over locations.
8773         * tracepoint.c (validate_actionline): Ditto.
8774         (encode_actions): Add location argument.
8775         (trace_dump_command): Check all locations to see if stepping
8776         frame.
8777
8778 2010-03-03  H.J. Lu  <hongjiu.lu@intel.com>
8779             Eli Zaretskii  <eliz@gnu.org>
8780
8781         * NEWS: Add X86 general purpose registers section.
8782
8783 2010-03-03  Tom Tromey  <tromey@redhat.com>
8784
8785         PR mi/11098:
8786         * varobj.c (install_new_value): Handle case where new print_value
8787         is NULL.
8788
8789 2010-03-03  Dainis Jonitis  <jonitis@gmail.com>
8790
8791         PR gdb/11345:
8792         * printcmd.c (printf_command): Print end of format string using
8793         printf_filtered.
8794
8795 2010-03-02  Tom Tromey  <tromey@redhat.com>
8796
8797         * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8798         * defs.h (read_command_lines_1): Add missing 'void'.
8799         * cli/cli-script.c (recurse_read_control_structure): Add missing
8800         'void'.
8801         (read_next_line): Likewise.
8802         (read_command_lines_1): Likewise.
8803
8804 2010-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
8805
8806         * spu-tdep.c (spu_analyze_prologue): Track instruction to
8807         store backchain as part of prologue.
8808
8809 2010-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
8810
8811         * progspace.c (update_address_spaces): Update inferior address spaces
8812         also.
8813
8814 2010-03-02  Doug Evans  <dje@google.com>
8815
8816         * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8817         lowpc,highpc args to addrmap_set_empty.
8818
8819 2010-03-02  H.J. Lu  <hongjiu.lu@intel.com>
8820
8821         * amd64-tdep.c (amd64_byte_names): New.
8822         (amd64_word_names): Likewise.
8823         (amd64_dword_names): Likewise.
8824         (amd64_pseudo_register_name): Likewise.
8825         (amd64_pseudo_register_read): Likewise.
8826         (amd64_pseudo_register_write): Likewise.
8827         (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8828         and num_mmx_regs.  Call set_gdbarch_pseudo_register_read,
8829         set_gdbarch_pseudo_register_write and
8830         set_tdesc_pseudo_register_name.  Don't call
8831         set_gdbarch_num_pseudo_regs.  Don't set mm0_regnum.
8832
8833         * i386-tdep.c (i386_num_mmx_regs): Removed.
8834         (i386_num_pseudo_regs): Likewise.
8835         (i386_byte_names): New.
8836         (i386_word_names): Likewise.
8837         (i386_byte_regnum_p): Likewise.
8838         (i386_word_regnum_p): Likewise.
8839         (i386_mmx_regnum_p): Updated.
8840         (i386_pseudo_register_name): Make it global.  Handle byte and
8841         word pseudo-registers.
8842         (i386_pseudo_register_read): Likewise.
8843         (i386_pseudo_register_write): Likewise.
8844         (i386_pseudo_register_type): Handle byte, word and dword
8845         pseudo-registers
8846         (i386_register_reggroup_p): Don't include pseudo
8847         registers, except for MXX, in any register groups.  Don't
8848         include pseudo byte, word, dword registers in general_reggroup.
8849         (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8850         num_dword_regs, al_regnum, ax_regnum and eax_regnum.  Put MMX
8851         pseudo-registers after word pseudo-registers.  Call
8852         set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8853
8854         * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8855         al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8856         eax_regnum.
8857         (i386_byte_regnum_p): New.
8858         (i386_word_regnum_p): Likewise.
8859         (i386_dword_regnum_p): Likewise.
8860         (i386_pseudo_register_name): Likewise.
8861         (i386_pseudo_register_read): Likewise.
8862         (i386_pseudo_register_write): Likewise.
8863
8864 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
8865
8866         * target-descriptions.c (tdesc_type): Remove
8867         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8868         (tdesc_predefined_types): Likewise.
8869         (tdesc_gdb_type): Likewise.  Pass NULL to append_flags_type_flag
8870         if flag name is empty.
8871         (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8872
8873         * features/i386/32bit-core.xml: Define i386_eflags.
8874         * features/i386/64bit-core.xml: Likewise.
8875
8876         * features/i386/32bit-sse.xml: Define i386_mxcsr.
8877         * features/i386/64bit-sse.xml: Likewise.
8878
8879         * features/i386/amd64-linux.c: Regenerated.
8880         * features/i386/amd64.c: Likewise.
8881         * features/i386/i386-linux.c: Likewise.
8882         * features/i386/i386.c: Likewise.
8883
8884 2010-03-01  Daniel Jacobowitz  <dan@codesourcery.com>
8885
8886         * gdbtypes.c (append_composite_type_field_raw): New.
8887         (append_composite_type_field_aligned): Use the new function.
8888         * gdbtypes.h (append_composite_type_field_raw): Declare.
8889         * target-descriptions.c (struct tdesc_type_field): Add start and end.
8890         (struct tdesc_type_flag): New type.
8891         (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
8892         kind.  Add size to u.u.  Add u.f for flags.
8893         (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
8894         (tdesc_free_type): Likewise.
8895         (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
8896         (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
8897         (tdesc_add_bitfield, tdesc_add_flag): New.
8898         * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
8899         (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
8900         * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
8901         current_type.  Add current_type_size and current_type_is_flags.
8902         (tdesc_start_union): Clear the new fields.
8903         (tdesc_start_struct, tdesc_start_flags): New.
8904         (tdesc_start_field): Handle struct fields, including bitfields.
8905         (field_attributes): Make type optional.  Add start and end.
8906         (union_children): Rename to struct_union_children.
8907         (union_attributes): Rename to struct_union_attributes.  Add optional
8908         size.
8909         (flags_attributes): New.
8910         (feature_children): Add struct and flags.
8911         * features/gdb-target.dtd: Add flags and struct to features.
8912         Make field type optional.  Add field start and end.
8913
8914 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
8915
8916         * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
8917         (amd64_linux_read_description): Likewise.
8918         (_initialize_amd64_linux_nat): Set to_read_description to
8919         amd64_linux_read_description.
8920
8921         * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
8922         (amd64_linux_register_name): Removed.
8923         (amd64_linux_register_type): Likewise.
8924         (amd64_linux_core_read_description): New.
8925         (amd64_linux_init_abi): Set target description to
8926         tdesc_amd64_linux if needed.  Support orig_rax in target
8927         description.  Don't call set_gdbarch_register_name nor
8928         set_gdbarch_register_type.  Call
8929         set_gdbarch_core_read_description.
8930         (_initialize_amd64_linux_tdep): Call
8931         initialize_tdesc_amd64_linux.
8932
8933         * amd64-linux-tdep.h (tdesc_amd64_linux): New.
8934
8935         * amd64-tdep.c:  Include "features/i386/amd64.c".
8936         (amd64_register_names): Removed.
8937         (amd64_register_name): Likewise.
8938         (amd64_register_type): Likewise.
8939         (amd64_init_abi):  Set num_core_regs and register_names.  Set
8940         target description to tdesc_amd64 if needed.  Don't call
8941         set_gdbarch_register_name nor set_gdbarch_register_type.
8942         (_initialize_amd64_tdep): New.
8943
8944         * i386-linux-nat.c (i386_linux_read_description): New.
8945         (_initialize_i386_linux_nat): Set to_read_description to
8946         i386_linux_read_description.
8947
8948         * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
8949         (i386_linux_register_name): Removed.
8950         (i386_linux_core_read_description): New.
8951         (i386_linux_read_description): Likewise.
8952         (i386_linux_init_abi): Don't call set_gdbarch_register_name.
8953         Set target description to tdesc_i386_linux if needed.  Support
8954         orig_eax.  Set register_reggroup_p.  Call
8955         set_gdbarch_core_read_description.
8956         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
8957
8958         * i386-linux-tdep.h (tdesc_i386_linux): New.
8959
8960         * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
8961         with I387_NUM_REGS.
8962
8963         * i386-tdep.c: Include "features/i386/i386.c".
8964         (i386_register_names): Make it const.
8965         (i386_mmx_names): Likewise.
8966         (i386_num_register_names): Removed.
8967         (i386_register_name): Likewise.
8968         (i386_eflags_type): Likewise.
8969         (i386_mxcsr_type): Likewise.
8970         (i386_sse_type): Likewise.
8971         (i386_register_type): Likewise.
8972         (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
8973         (i386_pseudo_register_name): New.
8974         (i386_pseudo_register_type): Likewise.
8975         (i386_mmx_type): Make it static.
8976         (i386_gdbarch_init): Check arch.  Replace I386_NUM_FREGS with
8977         I387_NUM_REGS.  Set num_core_regs and register_names.  Don't
8978         call set_gdbarch_register_name nor set_gdbarch_register_type.
8979         Set register_reggroup_p.  Set target description to tdesc_i386
8980         if needed.  Call set_tdesc_pseudo_register_type,
8981         set_tdesc_pseudo_register_name and tdesc_use_registers.
8982         (_initialize_i386_tdep): Call initialize_tdesc_i386.
8983         initialize_tdesc_x86_64.
8984
8985         * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
8986         i386_mxcsr_type and i386_sse_type.  Add num_core_regs,
8987         register_names, tdesc and register_reggroup_p.
8988         (I386_NUM_FREGS): Removed.
8989         (i386_eflags_type): Likewise.
8990         (i386_mxcsr_type): Likewise.
8991         (i386_mmx_type): Likewise.
8992         (i386_sse_type): Likewise.
8993         (i386_register_name): Likewise.
8994         (i386_regnum): Add I386_MXCSR_REGNUM.
8995         (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
8996
8997         * i387-tdep.h (I387_NUM_REGS): New.
8998
8999         * regformats/i386/i386-linux.dat: Generated.
9000         * regformats/i386/i386.dat: Likewise.
9001         * regformats/i386/amd64-linux.dat: Likewise.
9002         * regformats/i386/amd64.dat: Likewise.
9003
9004         * regformats/reg-i386-linux.dat: Removed.
9005         * regformats/reg-i386.dat: Likewise.
9006         * regformats/reg-x86-64-linux.dat: Likewise.
9007         * regformats/reg-x86-64.dat: Likewise.
9008
9009 2010-03-01  Corinna Vinschen  <vinschen@redhat.com>
9010
9011         * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9012         cygwin_conv_path API rather than the deprecated
9013         cygwin_conv_to_full_posix_path.
9014         * windows-nat.c:
9015         (GetModuleFileNameExA): Undefine for Cygwin.
9016         (GetModuleFileNameExW): Define for Cygwin.
9017         (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9018         Call GetModuleFileNameExW and convert path to POSIX using
9019         cygwin_conv_path.
9020         (windows_make_so): Always define p.  Drop unused variable m.
9021         Don't use Win32 functions to check file existance, rather use
9022         access on Cygwin.  Fetch system directory using GetSystemDirectoryW.
9023         Use canonicalize_file_name to get full path.
9024         (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9025         to convert Unicode pathname to multibyte on Cygwin.  Otherwise,
9026         use correct target buffer size in call to WideCharToMultiByte.
9027         (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9028         (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9029         (windows_create_inferior): Convert all paths and arguments to wchar_t
9030         and use CreateProcessW on Cygwin.
9031         (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9032         (bad_GetModuleFileNameExA): Undefine for Cygwin.
9033         (bad_GetModuleFileNameExW): Define for Cygwin.
9034         (_initialize_loadable): Load GetModuleFileNameExW into
9035         dyn_GetModuleFileNameExW on Cygwin.  Don't load ANSI function on Cygwin.
9036
9037 2010-02-28  Phil Muldoon  <pmuldoon@redhat.com>
9038
9039         PR python/11036
9040         * python/py-frame.c (frapy_read_var): Add block argument and logic
9041         to cope with user provided blocks.
9042
9043 2010-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9044
9045         * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9046         New comment.
9047
9048 2010-02-28  Corinna Vinschen  <vinschen@redhat.com>
9049
9050         * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9051         (COMMON_OBS): ... to here since it's used unconditionally.
9052         (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9053         (SFILES): To here.
9054
9055 2010-02-26  David Daney  <ddaney@caviumnetworks.com>
9056
9057         * mips-linux-tdep.c: Update struct sigframe comments.
9058         (SIGFRAME_CODE_OFFSET): Delete macro.
9059         (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9060         this_frame's sp.
9061         (mips_linux_n32n64_sigframe_init): Same.
9062
9063 2010-02-26  Kevin Buettner  <kevinb@redhat.com>
9064
9065         * remote-mips.c (mips_load): Don't use pseudo-register when
9066         invalidating regcache.
9067
9068 2010-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
9069
9070         * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9071
9072 2010-02-26  Pedro Alves  <pedro@codesourcery.com>
9073
9074         * NEWS: Add "New targets" section, and mention ARM Symbian
9075         support.
9076
9077 2010-02-26  Ulrich Weigand  <uweigand@de.ibm.com>
9078
9079         * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9080         add ADDR_SIZE member.
9081         (allocate_piece_closure): Update.
9082         (copy_pieced_value_closure): Likewise.
9083         (dwarf2_evaluate_loc_desc): Likewise.
9084         (read_pieced_value): Use DWARF address size instead of
9085         GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9086
9087 2010-02-26  Phil Muldoon  <pmuldoon@redhat.com>
9088             Tom Tromey  <tromey@redhat.com>
9089
9090         * python/py-type.c (typy_lookup_typename): Add in block argument.
9091         If provided restrict lookup to specified blocks.
9092         (gdbpy_lookup_type): Likewise.
9093         (typy_lookup_type): Likewise.
9094
9095 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
9096
9097         Symbian config
9098
9099         gdb/
9100         * arm-symbian-tdep.c: New.
9101         * configure.tgt (arm*-*-symbianelf*): New target.
9102         (*-*-symbianelf*): New OS.
9103         * osabi.c (gdb_osabi_names): Add Symbian.
9104         * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9105         * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9106         (ALLDEPFILES): Add arm-symbian-tdep.c.
9107
9108 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
9109
9110         * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9111
9112 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9113
9114         * mi/mi-main.c (mi_cmd_execute): Fix typo.
9115
9116 2010-02-24  Phil Muldoon  <pmuldoon@redhat.com>
9117             Tom Tromey  <tromey@redhat.com>
9118             Thiago Jung Bauermann  <bauerman@br.ibm.com>
9119
9120         * python/python.c (_initialize_python): Call
9121         gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9122         gdbpy_initialize_blocks.
9123         * python/python-internal.h: Declare struct symbol, block and
9124         symtab_and_line.  Declare block_object_type and
9125         symbol_object_type
9126         (gdbpy_lookup_symbol gdbpy_block_for_pc)
9127         (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9128         (symbol_to_symbol_object,  block_to_block_object)
9129         (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9130         (gdbpy_initialize_blocks ): Declare.
9131         * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9132         (frapy_select): Add methods.
9133         (frapy_read_var): Add symbol branch.
9134         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9135         py-block.
9136         (SUBDIR_PYTHON_SRCS): Likewise.
9137         (py-symbol.o): New rule.
9138         (py-symtab.o): Likewise.
9139         (py-block.o): Likewise.
9140         * python/py-symbol.c: New file.
9141         * python/py-symtab.c: Likewise.
9142         * python/py-block.c: Likewise.
9143
9144 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9145
9146         PR gdb/11321
9147
9148         * inferior.h (prepare_for_detach): Declare.
9149         (struct inferior) <detaching>: New field.
9150         * infrun.c (prepare_for_detach): New.
9151         (handle_inferior_event) <random signal>: Don't stop if detaching.
9152         * target.c (target_detach): Call prepare_for_detach.
9153
9154 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9155
9156         Per-process displaced stepping queue.
9157
9158         * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9159         (displaced_step_gdbarch, displaced_step_closure,
9160         (displaced_step_original, displaced_step_copy): Move globals to
9161         this...
9162         (struct displaced_step_inferior_state): ... new structure.
9163         (displaced_step_inferior_states): New global.
9164         (get_displaced_stepping_state, add_displaced_stepping_state)
9165         (remove_displaced_stepping_state, infrun_inferior_exit): New
9166         functions.
9167         (displaced_step_clear): Add displaced_step_inferior_state
9168         parameter, and adjust to handle it.
9169         (displaced_step_clear_cleanup): Parameter is now a
9170         displaced_step_inferior_state.  Adjust.
9171         (displaced_step_prepare): Adjust.
9172         (displaced_step_fixup, displaced_step_fixup)
9173         (infrun_thread_ptid_changed, resume): Adjust.
9174         (init_wait_for_inferior): Don't call displaced_step_clear.
9175         (infrun_thread_stop_requested): Rewrite.
9176         (_initialize_infrun): Install infrun_inferior_exit as
9177         inferior_exit observer.
9178
9179 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9180
9181         * inferior.h (ptid_match): Declare.
9182         * infrun.c (ptid_match): New.
9183         * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9184         (handle_notification): Add debug output.
9185         * linux-nat.c (ptid_match): Delete.
9186
9187 2010-02-24  David S. Miller  <davem@davemloft.net>
9188
9189         * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9190         * syscalls/sparc-linux.xml: New.
9191         * syscalls/sparc64-linux.xml: New.
9192         * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9193         * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9194         (sparc32_linux_get_syscall_number): New function.
9195         (sparc32_linux_init_abi): Set syscall XML file name and hook up
9196         syscall number fetcher.
9197         * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9198         (sparc64_linux_get_syscall_number): New function.
9199         (sparc64_linux_init_abi): Set syscall XML file name and hook up
9200         syscall number fetcher.
9201
9202 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
9203
9204         Multiexec MI
9205
9206         * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9207         * inferior.c (add_inferior_silent): Notify inferior_added
9208         observer.
9209         (delete_inferior_1): Notify inferior_removed observer.
9210         (exit_inferior_1): Pass inferior, not pid, to observer.
9211         (inferior_appeared): Likewise.
9212         (add_inferior_with_spaces): New.
9213         (add_inferior_command): Use the above.
9214         * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9215         Declare.
9216
9217         * inflow.c (inflow_inferior_exit): Likewise.
9218         * jit.c (jit_inferior_exit_hook): Likewise.
9219
9220         * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9221         remove-inferior.
9222         * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9223         * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9224         (report_initial_inferior): New.
9225         (mi_inferior_removed): Register the above. Make sure
9226         inferior_added observer is called on the first inferior.
9227         (mi_new_thread, mi_thread_exit): Thread group is now identified by
9228         inferior number, not pid.
9229         (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9230         affected.
9231         * mi/mi-main.c (current_context): New.
9232         (proceed_thread_callback): Use typed closure.
9233         Proceed everything if pid is 0. Most implementation split into
9234         (proceed_thread): ... this.
9235         (run_one_inferior): New.
9236         (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9237         Adjust for multiexec behaviour.
9238         (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9239         (mi_cmd_execute): Handle the 'thread-group' option here.
9240         Do some extra checks.
9241         * mi-parse.c (mi_parse): Handle the --all and --thread-group
9242         options.
9243         * mi-parse.h (struct mi_parse): New fields all and thread_group.
9244
9245 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
9246
9247         Make -exec-run a proper MI commands.
9248
9249         * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9250         * mi/mi-cmds.c (mi_cmds): Adjust.
9251         * mi/mi-main.c (mi_cmd_exec_run): New.
9252
9253 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9254             Stan Shebs  <stan@codesourcery.com>
9255
9256         * tracepoint.h (set_traceframe_number)
9257         (cleanup_restore_current_traceframe): Declare.
9258         * tracepoint.c (set_traceframe_number): New.
9259         (struct current_traceframe_cleanup): New.
9260         (do_restore_current_traceframe_cleanup)
9261         (restore_current_traceframe_cleanup_dtor)
9262         (make_cleanup_restore_current_traceframe): New.
9263         * infrun.c: Include tracepoint.h.
9264         (fetch_inferior_event): Switch out and in of tfind mode.
9265
9266 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9267
9268         * breakpoint.c (breakpoint_init_inferior): Also delete
9269         bp_shlib_event breakpoints.
9270         * solib-frv.c (enable_break): Remove call to
9271         remove_solib_event_breakpoints.
9272         * solib-svr4.c (enable_break): Ditto.
9273         * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9274         * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9275         * solib-som.c (som_solib_create_inferior_hook): Ditto.
9276         * solib-spu.c (spu_enable_break): Ditto.
9277
9278 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
9279
9280         * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9281
9282 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
9283
9284         * varobj.c (varobj_update): Avoid non-constants in initializers.
9285
9286 2010-02-23  Tom Tromey  <tromey@redhat.com>
9287
9288         * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9289         handle big-endian values.
9290         (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9291
9292 2010-02-22  Pedro Alves  <pedro@codesourcery.com>
9293
9294         PR9605
9295
9296         gdb/
9297         * breakpoint.c (insert_bp_location): If inserting the read
9298         watchpoint failed, fallback to an access watchpoint.
9299         (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9300         if the value changed, if not watching the same memory for writes.
9301         (watchpoint_locations_match): Add comment.
9302         (update_global_location_list): Copy the location's watchpoint type.
9303         * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9304         handle read watchpoints here.
9305         (i386_insert_watchpoint): Read watchpoints aren't supported.
9306         * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9307         packets.
9308         * target.h (target_insert_watchpoint): Update description.
9309
9310 2010-02-19  Tom Tromey  <tromey@redhat.com>
9311
9312         * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9313         * m2-typeprint.c (m2_print_type): Update.
9314         * gdbtypes.c (recursive_dump_type): Update.
9315         (copy_type_recursive): Update.
9316         * c-typeprint.c (c_type_print_varspec_prefix): Update.
9317         (c_type_print_base): Update.
9318         * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9319         Remove.
9320         (struct cplus_struct_type) <ntemplate_args>: Remove.
9321         <struct template_arg>: Remove.
9322         <is_dynamic>: Move earlier.
9323         (TYPE_TEMPLATE_ARGS): Remove.
9324         (TYPE_NTEMPLATE_ARGS): Remove.
9325         (TYPE_TEMPLATE_ARG): Remove.
9326
9327 2010-02-19  Tom Tromey  <tromey@redhat.com>
9328
9329         PR c++/8693, PR c++/9496:
9330         * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9331         * c-exp.y (lex_one_token): Rename from yylex.  Don't call
9332         write_dollar_variable.  Don't try to classify NAME tokens.
9333         (token_and_value): New type.
9334         (token_fifo, popping, name_obstack): New globals.
9335         (classify_name): New function.
9336         (classify_inner_name): Likewise.
9337         (yylex): Likewise.
9338         (VARIABLE): Now has type sval.
9339         (exp : VARIABLE): Call write_dollar_variable.
9340         (qualified_name): Use TYPENAME, not typebase.  Add production for
9341         multiple "::" instances.
9342         (variable): Use name_not_typename.
9343         (qualified_type): Remove.
9344         (typebase): Update.
9345
9346 2010-02-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9347
9348         * symfile.c (addr_info_make_relative): Extend comment.  Move SECT to
9349         a more inner block.  Initialize ADDR by LOWER_OFFSET only if it was
9350         found by bfd_get_section_by_name.
9351         * symfile.h (struct section_addr_info) <sectindex>: New comment.
9352
9353 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
9354
9355         * NEWS: Add new "[...] since 7.1" section.  Rename the "[...] since
9356         7.0 section" into "Changes in 7.1".
9357
9358 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
9359
9360         GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9361         * version.in: Bump version to 7.1.50.20100219-cvs.
9362
9363 2010-02-18  Harald Koenig  <H.Koenig@science-computing.de>
9364
9365         * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9366         * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9367
9368 2010-02-17  Tom Tromey  <tromey@redhat.com>
9369
9370         * NEWS: Add Python API Improvements section.
9371
9372 2010-02-18  Daniel Jacobowitz  <dan@codesourcery.com>
9373
9374         * NEWS: Correct typo.
9375
9376 2010-02-17  Tom Tromey  <tromey@redhat.com>
9377
9378         * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9379
9380 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9381
9382         * symfile.c (build_section_addr_info_from_objfile): Include sections
9383         only if they are SEC_ALLOC or SEC_LOAD.
9384
9385 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
9386
9387         PR shlibs/11293
9388         * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9389         of ULONGEST for address size.
9390
9391 2010-02-17  Tom Tromey  <tromey@redhat.com>
9392
9393         * NEWS: Add C++ improvements section.
9394
9395 2010-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
9396
9397         * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9398         PyThreadState_Swap): Avoid "statement with no effect" warning.
9399
9400 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9401
9402         * solib-svr4.c (enable_break <target_auxv_search>): New variable
9403         addr_bit.  Adjust LOAD_ADDR sign for cross-arch inferiors.
9404
9405 2010-02-17  Tristan Gingold  <gingold@adacore.com>
9406             Petr Hluzin  <petr.hluzin@gmail.com>
9407
9408         * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9409         gdb_assert.  Fix info->size for SIG prologue.
9410
9411 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9412
9413         * infcmd.c (show_inferior_tty_command): Check for NULL.
9414         Correct output message.
9415
9416 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9417
9418         * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9419         FUNCTION contains parentheses.  Improve removal of a trailing
9420         single quote.
9421
9422 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9423
9424         * gcore.c (do_bfd_delete_cleanup): New function.
9425         (gcore_command): Use it.  Discard the cleanup after success.
9426         (gcore_copy_callback): Delete dead code.
9427
9428 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9429
9430         * symfile.c (addr_info_make_relative): Always use
9431         find_lowest_section.
9432
9433 2010-02-16  Sami Wagiaalla <swagiaal@redhat.com>
9434
9435         * NEWS: Added entry for namespace fixes.
9436
9437 2010-02-15  Tom Tromey  <tromey@redhat.com>
9438
9439         * dwarf2read.c (guess_structure_name): Allocate name on the
9440         objfile obstack.
9441
9442 2010-02-15  Tom Tromey  <tromey@redhat.com>
9443
9444         * c-typeprint.c (c_type_print_base): Reverse order of test.
9445
9446 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9447
9448         * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize.  Optionally
9449         initialize it from ELF BFD.  Extend the prelink condition by it.
9450
9451 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9452
9453         * defs.h (parse_pid_to_attach): New.
9454         * utils.c (parse_pid_to_attach): New.
9455         * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9456         * gnu-nat.c (gnu_attach): Likewise.
9457         * nto-procfs.c (procfs_attach): Likewise.
9458         * procfs.c (procfs_attach): Likewise.
9459         * windows-nat.c (windows_attach): Likewise.
9460         * inf-ptrace.c (inf_ptrace_attach): Likewise.  Remove variable dummy.
9461         * inf-ttrace.c (inf_ttrace_attach): Likewise.
9462         * remote.c (extended_remote_attach_1): Likewise.  New comment on getpid
9463         check.
9464
9465 2010-02-14  Masaki Muranaka  <monaka@monami-software.com>
9466
9467         * MAINTAINERS: Add myself for write after approval privileges.
9468
9469 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9470
9471         * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9472         block.
9473
9474 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9475
9476         * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9477         only if INFO_VERBOSE.
9478
9479 2010-02-12  Tomas Holmberg <th@virtutech.com>
9480
9481         * mi/mi-main.c: Added the --reverse flag to the following MI
9482         commands: exec-continue, exec-finish, exec-next, exec-step,
9483         exec-next-instruction, exec-step-instruction. This is to
9484         support reverse execution over the MI interface to gdb.
9485
9486 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
9487
9488         * tracepoint.c (_initialize_tracepoint): Specify that the address
9489         range of `tfind outsize' is exclusive, and that the address range
9490         of `tfind range' is inclusive, in the commands' help strings.
9491
9492 2010-02-12  Joel Brobecker  <brobecker@adacore.com>
9493
9494         Spurious "dll not found" error messages on x64-windows.
9495         * windows-nat.c: Add include of complaints.h.
9496         (handle_unload_dll): Change dll-not-found error into a complaint.
9497
9498 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
9499
9500         * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9501         bp_tracepoint and bp_fast_tracepoint, not
9502         bp_loc_software_breakpoint.
9503         (update_global_location_list): Tracepoints are never duplicates of
9504         anything.
9505
9506 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
9507
9508         * breakpoint.c (break_command_really): Change return type to int.
9509         Return false if no breakpoint was created, true otherwise.
9510         (trace_command): Don't set the tracepoint count if no tracepoint
9511         was created.
9512         (ftrace_command): Ditto.
9513         (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9514         created in the breakpoints table.
9515
9516 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9517             Ulrich Weigand  <uweigand@de.ibm.com>
9518
9519         * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9520
9521 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9522
9523         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9524         the offset value isn't of integral type.
9525
9526 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9527
9528         * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9529         New.
9530
9531 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9532
9533         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9534         non-subscriptable types.
9535         * valarith.c (binop_types_user_defined_p): New, abstracted out
9536         from ...
9537         (binop_user_defined_p): ... this.
9538         * value.h (binop_types_user_defined_p): Declare.
9539
9540 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9541
9542         * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9543         Merge uploaded TSVs before merging uploaded tracepoints.
9544
9545 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9546
9547         * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9548
9549 2010-02-11  Vladimir Prus  <vladimir@codesourcery.com>
9550
9551         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9552         whitespace character after a dot in comment.
9553         (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9554         Likewise.
9555         (list_args_or_locals): For the 'all' (that is
9556         -stack-list-variables) case, always output list of tuples.
9557         Output 'arg' field if variable is argument.
9558
9559 2010-02-10  Tom Tromey  <tromey@redhat.com>
9560
9561         * parser-defs.h (parser_debug): Declare.
9562         * parse.c (_initialize_parse): Install "debug parser" set/show
9563         command.
9564         (parser_debug): New global.
9565         (show_parserdebug): New function.
9566         * c-exp.y (c_parse): Set yydebug.
9567
9568 2010-02-10  H.J. Lu  <hongjiu.lu@intel.com>
9569
9570         * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9571         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9572         (tdesc_predefined_types): Add i387_ext, i386_eflags and
9573         i386_mxcsr.
9574         (tdesc_find_type): New.
9575         (tdesc_gdb_type): Use tdesc_find_type.  Handle TDESC_TYPE_I387_EXT,
9576         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9577
9578         * target-descriptions.h (tdesc_find_type): New.
9579
9580 2010-02-10  Michael Snyder  <msnyder@vmware.com>
9581
9582         * gdb-gdb.py: Comment fix.
9583
9584 2010-02-09  Tristan Gingold  <gingold@adacore.com>
9585
9586         * machoread.c (macho_symfile_relocate): New function.
9587         (macho_sym_fns): Use macho_symfile_relocate instead of
9588         default_symfile_relocate.
9589         (macho_oso_data): New type.
9590         (current_oso): New variable.
9591         (macho_add_oso_symfile): Do not compute section_addr_info, but
9592         instead set vma of sections.
9593         Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9594         Set and clear current_oso.
9595
9596 2010-02-09  Joel Brobecker  <brobecker@adacore.com>
9597
9598         Wrong type description for tagged type parameter.
9599         * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9600         EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9601         reference to a tagged type.
9602
9603 2010-02-09  Tristan Gingold  <gingold@adacore.com>
9604
9605         * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9606         brothers of the parent.
9607
9608 2010-02-08  Tom Tromey  <tromey@redhat.com>
9609
9610         PR c++/8017:
9611         * value.h: Update.
9612         * valops.c (search_struct_field): Make 'name' const.
9613         (search_struct_method): Likewise.
9614         (find_method_list): Make 'method' const.
9615         (value_struct_elt): Make 'name' and 'err' const.
9616         (value_find_oload_method_list): Make 'method' const.
9617         (find_overload_match): Make 'name' const.
9618         * eval.c (evaluate_subexp_standard): New locals function,
9619         function_name.
9620         <OP_FUNCALL>: Handle OP_SCOPE specially.
9621
9622 2010-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
9623
9624         * infrun.c (handle_inferior_event): Do not look up regcache
9625         for exited processes.
9626
9627 2010-02-08  Chris Moller  <moller@mollerware.com>
9628
9629         PR gdb/10728
9630         * valarith.c (value_ptrdiff): Added a test for a zero type length,
9631         warn if found, and assume length = 1.
9632
9633 2010-02-08  Chris Moller  <cmoller@redhat.com>
9634
9635         PR gdb/9067
9636         * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
9637         (cp_print_static_field)  Fix use of obstacks.
9638
9639 2010-02-08  Pedro Alves  <pedro@codesourcery.com>
9640
9641         * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9642         resumed LWPs as resumed.
9643         (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9644         we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9645         of throwing an internal error.  If an LWP of a process we're not
9646         waiting for reports a signal, don't force collecting a SIGSTOP,
9647         and if it was breakpoint hit in non-stop mode, cancel it.  Don't
9648         go through all LWPs cancelling breakpoints in non-stop mode.
9649         (resume_stopped_resumed_lwps): New.
9650         (linux_nat_wait): Use it.
9651
9652 2010-02-07  H.J. Lu  <hongjiu.lu@intel.com>
9653
9654         * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9655         i386/amd64 and i386/amd64-linux.
9656         (i386/i386-expedite): New.
9657         (i386/i386-linux-expedite): Likewise.
9658         (i386/amd64-expedite):Likewise.
9659         (i386/amd64-linux-expedite): Likewise.
9660         ($(outdir)/i386/i386-linux.dat): Likewise.
9661         ($(outdir)/i386/amd64.dat): Likewise.
9662         ($(outdir)/i386/amd64-linux.dat): Likewise.
9663
9664         * features/i386/32bit-core.xml: New.
9665         * features/i386/32bit-linux.xml: Likewise.
9666         * features/i386/32bit-sse.xml: Likewise.
9667         * features/i386/64bit-core.xml: Likewise.
9668         * features/i386/64bit-linux.xml: Likewise.
9669         * features/i386/64bit-sse.xml: Likewise.
9670         * features/i386/i386-linux.xml: Likewise.
9671         * features/i386/i386.xml: Likewise.
9672         * features/i386/amd64-linux.xml: Likewise.
9673         * features/i386/amd64.xml: Likewise.
9674         * features/i386/i386-linux.c: Likewise.
9675         * features/i386/i386.c: Likewise.
9676         * features/i386/amd64-linux.c: Likewise.
9677         * features/i386/amd64.c: Likewise.
9678
9679 2010-02-05  Sami Wagiaalla  <swagiaal@redhat.com>
9680
9681         PR c++/7935:
9682         * cp-support.h: Added char* alias element to using_direct data
9683         struct.
9684         (cp_add_using): Added char* alias argument.
9685         (cp_add_using_directive): Ditto.
9686         * cp-namespace.c: Updated with the above changes.
9687         (cp_lookup_symbol_imports): Check for aliases.
9688         * dwarf2read.c (read_import_statement): Figure out local alias
9689         for the import and pass it on to cp_add_using.
9690         (read_namespace): Pass alias argument to cp_add_using.
9691
9692 2010-02-05  Hui Zhu  <teawater@gmail.com>
9693
9694         * defs.h (gdb_bfd_errmsg): New extern.
9695         * exec.c (exec_file_attach): Change bfd_errmsg to
9696         gdb_bfd_errmsg.
9697         * utils.c (AMBIGUOUS_MESS1): New macro.
9698         (AMBIGUOUS_MESS2): New macro.
9699         (gdb_bfd_errmsg): New function.
9700
9701 2010-02-04  Doug Evans  <dje@google.com>
9702
9703         * solib-svr4.c (enable_break): Add comment.
9704
9705 2010-02-04  Anthony Green  <green@moxielogic.com>
9706
9707         * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
9708         gracefully.
9709
9710 2010-02-04  Tom Tromey  <tromey@redhat.com>
9711
9712         * valops.c (search_struct_field): Account for
9713         value_embedded_offset.  Fix check for virtual base past the end of
9714         the object.  Use value_copy when making a slice of the value.
9715
9716 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
9717
9718         PR tui/9622
9719         * tui/tui-interp.c (tui_init): Call tui_initialize_readline
9720         only if gdb_stdout is a tty.
9721
9722 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
9723
9724         * target-descriptions.c: Include "osabi.h".
9725         (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
9726         OSABI.
9727
9728 2010-02-04  Tristan Gingold  <gingold@adacore.com>
9729
9730         * machoread.c (macho_add_oso): Renamed to macho_register_oso.
9731         (macho_symtab_read): Adjust calls to macho_add_oso.
9732         (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
9733         (macho_symfile_read): Adjust call to macho_oso_symfile.
9734         (macho_new_init): Move this function after declarations.
9735         (macho_symfile_init): Ditto.
9736         * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9737         * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9738
9739 2010-02-04  Vladimir Prus  <vladimir@codesourcery.com>
9740
9741         Include MI command in remotelog.
9742
9743         * mi/mi-main.c (mi_execute_command): Call target_log_command.
9744
9745 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
9746
9747         * remote.c (remote_state): Remove gdbarch.
9748         (init_remote_state): Don't set gdbarch.
9749         (remote_query_supported): Pass target_gdbarch instead of
9750         rs->gdbarch to gdbarch_qsupported.
9751
9752 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
9753
9754         * gdbarch.sh: Add qsupported.
9755
9756         * gdbarch.c: Regenerated.
9757         * gdbarch.h: Likewise.
9758
9759         * remote.c (remote_state): Add gdbarch.
9760         (init_remote_state): Set gdbarch.
9761         (remote_query_supported): Support gdbarch_qsupported.
9762
9763 2010-02-03  Daniel Jacobowitz  <dan@codesourcery.com>
9764
9765         * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9766         __FreeBSD_kernel_version.
9767
9768 2010-02-03  Tristan Gingold  <gingold@adacore.com>
9769
9770         * symfile.h (struct sym_fns): Add sym_relocate field.
9771         (default_symfile_relocate): New prototype.
9772         (symfile_relocate_debug_section): First argument is now an objfile.
9773         * symfile.c (default_symfile_relocate): Rename from
9774         symfile_relocate_debug_section, first argument is now an objfile.
9775         (symfile_relocate_debug_section): New function.
9776         * coffread.c (coff_sym_fns): Set sym_relocate field.
9777         * somread.c (som_sym_fns): Ditto.
9778         * mipsread.c (ecoff_sym_fns): Ditto.
9779         * machoread.c (macho_sym_fns): Ditto.
9780         * elfread.c (elf_sym_fns): Ditto.
9781         * dwarf2read.c (dwarf2_read_section): Ditto.
9782         * xcoffread.c (xcoff_sym_fns): Ditto.
9783         * dbxread.c (aout_sym_fns): Ditto.
9784         (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9785         (elfstab_build_psymtabs): Ditto.
9786
9787 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
9788
9789         * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9790
9791 2010-02-02  Tom Tromey  <tromey@redhat.com>
9792
9793         * valops.c (value_cast_structs): Try downcasting using the RTTI
9794         type.
9795
9796 2010-02-02  Tom Tromey  <tromey@redhat.com>
9797
9798         * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9799         (gnuv2_baseclass_offset): Now static.
9800         * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9801         * gnu-v2-abi.h: Remove.
9802
9803 2010-02-02  Tom Tromey  <tromey@redhat.com>
9804
9805         * m2-typeprint.c (m2_record_fields): Don't use
9806         TYPE_DECLARED_TYPE.
9807         * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9808         (struct main_type) <flag_declared_class>: New field.
9809         (struct cplus_struct_type) <declared_type>: Remove.
9810         <ntemplate_args>: Move earlier.
9811         (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9812         (DECLARED_TYPE_TEMPLATE): Remove.
9813         (TYPE_DECLARED_TYPE): Remove.
9814         * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9815         * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9816         * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9817         TYPE_DECLARED_TYPE.
9818
9819 2010-02-02  Tom Tromey  <tromey@redhat.com>
9820
9821         PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9822         * valops.c (search_struct_field): Compute nbases after calling
9823         CHECK_TYPEDEF.
9824         (check_field): Call CHECK_TYPEDEF.
9825         * cp-valprint.c (cp_print_value): Pass correct address to
9826         baseclass_offset.  Fix check for virtual base past the end of the
9827         object.  Don't offset address passed to cp_print_value_fields or
9828         apply_val_pretty_printer.
9829         (cp_print_value_fields): Fix call to val_print.
9830         (cp_print_value_fields_rtti): New function.
9831         * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9832         * p-valprint.c (pascal_object_print_value_fields): Fix call to
9833         val_print.
9834         * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9835         offset to address.
9836         * language.h (struct language_defn) <la_val_print>: Document.
9837         * c-lang.h (cp_print_value_fields_rtti): Declare.
9838
9839 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9840
9841         PR libc/11214:
9842         * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9843         (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9844         (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9845
9846 2010-02-01  Michael Matz  <matz@suse.de>
9847             Daniel Jacobowitz  <dan@codesourcery.com>
9848
9849         * i386-tdep.c (i386_frame_cache): Assume valid anonymous
9850         functions use a frame pointer.
9851
9852 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9853
9854         * solib-svr4.c (scan_dyntag): New variable dyn_addr.  Replace gdb_assert
9855         by a conditional setting DYN_ADDR.  Use DYN_ADDR.
9856         * config/djgpp/fnchange.lst: Add translations for
9857         symbol-without-target_section.exp and symbol-without-target_section.c.
9858
9859 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
9860
9861         * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9862         (remote_breakpoint_for_pc): Correct invalid_p check.
9863         * gdbarch.c: Regenerated.
9864
9865 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
9866
9867         * arm-tdep.c (arm_find_mapping_symbol): New function, from
9868         arm_pc_is_thumb.
9869         (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9870         (extend_buffer_earlier): New function.
9871         (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9872         (arm_adjust_breakpoint_address): New function.
9873         (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9874
9875 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
9876
9877         * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9878         (arm_linux_thumb2_le_breakpoint): New constants.
9879         (arm_linux_init_abi): Set thumb2_breakpoint and
9880         thumb2_breakpoint_size.
9881         * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9882         (thumb_get_next_pc): Add a comment.  Rename IT to ITSTATE.
9883         Implement support for single stepping through IT blocks if
9884         a 32-bit Thumb breakpoint instruction is available.
9885         (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9886         is available, use it when needed.
9887         (arm_remote_breakpoint_from_pc): New function.
9888         (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9889         * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9890         comment.  Add thumb2_breakpoint and thumb2_breakpoint_size.
9891
9892 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
9893
9894         * arch-utils.c (default_remote_breakpoint_from_pc): New function.
9895         * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
9896         * gdbarch.c, gdbarch.h: Regenerated.
9897         * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
9898         * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
9899         gdbarch_remote_breakpoint_from_pc.
9900
9901 2010-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
9902
9903         * infrun.c (prepare_to_proceed): Handle other signals which might
9904         match a breakpoint.
9905         (handle_inferior_event): Move the check for unusual breakpoint
9906         signals earlier.
9907
9908 2010-01-29  Paul Hilfinger  <hilfinger@adacore.com>
9909
9910         amd64 - function returning record with field straddling 2 registers.
9911         * amd64-tdep.c (amd_classify_aggregate): Handle the case of
9912         a record of length <= 16 in which a field straddles the two
9913         eightbytes.
9914
9915 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
9916
9917         Implement return values on amd64-windows.
9918         * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
9919         (amd64_windows_return_value): New function.
9920         (amd64_windows_init_abi): Call set_gdbarch_return_value with
9921         amd64_windows_return_value.
9922
9923 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
9924
9925         amd64-windows: 32 bytes allocated on stack by caller for integer
9926         parameter registers.
9927         * i386-tdep.h (struct gdbarch_tdep): Add new field
9928         integer_param_regs_saved_in_caller_frame.
9929         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9930         tdep->integer_param_regs_saved_in_caller_frame to 1.
9931         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
9932         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
9933
9934 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
9935
9936         amd64-windows: memory args passed by pointer during function calls.
9937         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
9938         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
9939         where tdep->memory_args_by_pointer is non-zero.
9940         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9941         tdep->memory_args_by_pointer to 1.
9942
9943 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
9944
9945         amd64-windows: Integer parameters in function calls.
9946         * i386-tdep.h (enum amd64_reg_class): New, moved here from
9947         amd64-tdep.c.
9948         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
9949         call_dummy_integer_regs, and classify.
9950         * amd64-tdep.h (amd64_classify): Add declaration.
9951         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
9952         (amd64_reg_class): Delete, moved to i386-tdep.h.
9953         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
9954         Replace call to amd64_classify by call to tdep->classify.
9955         (amd64_push_arguments): Get the list of registers to use for
9956         passing integer parameters from the gdbarch tdep structure,
9957         rather than using a hardcoded one.  Replace calls to amd64_classify
9958         by calls to tdep->classify.
9959         (amd64_push_dummy_call): Get the register number used for
9960         the "hidden" argument from tdep->call_dummy_integer_regs.
9961         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
9962         and tdep->call_dummy_integer_regs.  Set tdep->classify.
9963         * amd64-windows-tdep.c: Add include of gdbtypes.h.
9964         (amd64_windows_dummy_call_integer_regs): New static global.
9965         (amd64_windows_classify): New function.
9966         (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
9967         tdep->call_dummy_integer_regs and tdep->classify.
9968
9969 2010-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
9970
9971         * regcache.c (regcache_xmalloc): Add aspace argument.  Use it
9972         for the new regcache.  All callers updated.
9973         (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
9974         (get_thread_arch_regcache): Do not set aspace here.
9975         * regcache.h (regcache_xmalloc): Update declaration.
9976
9977         * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
9978         regcache_xmalloc updated.
9979
9980 2010-01-28  Joel Brobecker  <brobecker@adacore.com>
9981
9982         Another -Wunused-function error in procfs.c (sparc-solaris)
9983         * procfs.c (insert_dbx_link_breakpoint): Delete declaration.  Move up.
9984         Only define if SYS_syssgi is defined.
9985         (remove_dbx_link_breakpoint): Delete declaration.  Move up.
9986         (dbx_link_addr, insert_dbx_link_bpt_in_file)
9987         (insert_dbx_link_bpt_in_region): Move up.  Only define if SYS_syssgi
9988         is itself defined.
9989
9990 2010-01-27  Christopher Faylor  <me+cygwin@cgf.cx>
9991
9992         * windows-nat.c (windows_initialization_done): New variable.
9993         (get_windows_debug_event): Issue error when process dies before
9994         completely initializing.
9995         (do_initial_windows_stuff): Set flag to indicate when we are done with
9996         the initial steps of attaching to the child.
9997
9998 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9999
10000         * symtab.h (struct symbol <symtab>): New comment on NULL values.
10001
10002 2010-01-27  Doug Evans  <dje@google.com>
10003
10004         * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10005
10006         * breakpoint.c (bpstat_stop_status): Delete useless code.
10007
10008 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10009
10010         * printcmd.c (display_uses_solib_p): Remove variable section.  Access
10011         objfile via SYMBOL_SYMTAB.
10012
10013 2010-01-26  Tom Tromey  <tromey@redhat.com>
10014
10015         PR exp/7643:
10016         * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10017         coerce_array on result.
10018
10019 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
10020
10021         * cp-namespace.c (cp_lookup_symbol_namespace): Added
10022         search_parent argument.
10023         (cp_add_using): Initialize 'searched' field.
10024         (reset_directive_searched): New function.
10025         * cp-support.h: Add 'searched' field to using_direct struct.
10026         (cp_lookup_symbol_imports): Ditto.
10027         * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10028         Perform recursive search.
10029         Implement non parent search.
10030         * valops.c (value_maybe_namespace_elt): Updated.
10031
10032 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
10033
10034         PR gdb/10929:
10035         * dwarf2read.c (read_lexical_block_scope): Create blocks for
10036         scopes which contain using directives even if they contain no
10037         declarations.
10038         * symtab.c (lookup_symbol_aux): Pass lowest level block to
10039         la_lookup_symbol_nonlocal.
10040         * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10041         cp_lookup_symbol_namespace.
10042         (cp_lookup_symbol_namespace): Perform an import lookup at every
10043         block level.
10044         (cp_lookup_symbol_imports): New function.
10045         (cp_lookup_symbol_in_namespace): New function.
10046
10047 2010-01-25  Tom Tromey  <tromey@redhat.com>
10048
10049         PR gdb/11049:
10050         * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10051         result.
10052
10053 2010-01-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10054
10055         * configure.ac: Only use host_os part when disabling TUI on osf.
10056         Use test to check variables, prefix strings with x.
10057         * configure: Regenerate.
10058
10059         * solib-osf.c (osf_current_sos): Initialize tail.
10060
10061 2010-01-25  gingold  <gingold@adacore.com>
10062
10063         * windows-nat.c (windows_continue): Use %x to print thread id.
10064         (get_windows_debug_event): Ditto.
10065
10066 2010-01-22  Tom Tromey  <tromey@redhat.com>
10067
10068         PR symtab/11199:
10069         * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10070         type and arguments.  Use smash_to_methodptr_type.
10071         (read_structure_type): Call quirk_gcc_member_function_pointer
10072         later.
10073         * gdbtypes.h (smash_to_methodptr_type): Declare.
10074         * gdbtypes.c (smash_to_methodptr_type): New function.
10075         (lookup_methodptr_type): Use it.
10076
10077 2010-01-21  Tom Tromey  <tromey@redhat.com>
10078
10079         PR symtab/11198:
10080         * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10081         * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10082         * glibc-tdep.c (find_minsym_and_objfile): Remove.
10083         (glibc_skip_solib_resolver): Use
10084         lookup_minimal_symbol_and_objfile.
10085
10086 2010-01-21  Kai Tietz  <kai.tietz@onevision.com>
10087
10088         * inflow.c (check_syscall): Guard by #if clause for GO32 and
10089         WIN32 targets.
10090
10091 2010-01-20  Tom Tromey  <tromey@redhat.com>
10092
10093         PR backtrace/10770:
10094         * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10095         BINOP_GEQ.  Handle BINOP_NOTEQUAL in the signed case.
10096         * dwarf2expr.c (new_dwarf_expr_context): Allocate
10097         dwarf_stack_values, not CORE_ADDRs.
10098         (execute_stack_op): Change DW_OP_div and comparison operators to
10099         use signed operands.
10100
10101 2010-01-20  Vladimir Prus  <vladimir@codesourcery.com>
10102
10103         Per-inferior args and tty and environment.
10104
10105         * infcmd.c (inferior_args): Rename to ...
10106         (inferior_args_scratch): ... this.
10107         (inferior_io_terminal): Rename to ...
10108         (inferior_io_terminal_scratch): ... this.
10109         (inferior_argc, inferior_argv): Remove.
10110         (set_inferior_io_terminal, get_inferior_io_terminal): Store
10111         inside current_inferior().
10112         (set_inferior_tty_command, show_inferior_tty_command): New.
10113         (get_inferior_args, set_inferior_args): Store inside
10114         current_inferior().
10115         (notice_args_set): Likewise and rename to...
10116         (set_args_command): ... this.
10117         (set_inferior_args_vector): Likewise.
10118         (notice_args_read): Rename to...
10119         (show_args_command): ...new.
10120         (tty_command): Remove.
10121         (run_command_1): Don't free old args, as they are freed by
10122         set_inferior_arg now.
10123         (run_no_args_command): Likewise.
10124         (inferior_environ): Remove.
10125         (run_command_1): Use environment of the current inferior.
10126         (environment_info, set_environment_command)
10127         (unset_environment_command, path_info, path_command): Likewise.
10128         (_initialize_infcmd): Adjust for function and variable renames.
10129         Do not init inferior_environ.
10130         * inferior.h (set_inferior_arg): Adjust prototype.
10131         (struct inferior): New fields args, argc, argv, terminal, environment.
10132         (inferior_environ): Remove declaration.
10133         * inferior.c (free_inferior): Free new fields.
10134         (add_inferior_silent): Initialize 'environment' field.
10135         * main.c (captured_main): Set arguments only after the initial
10136         inferior has been created.  Set set_inferior_io_terminal,
10137         not tty_command.
10138         * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10139         inferior.
10140         (_initialize_mi_cmd_env): Adjust for disappearance of global
10141         inferior_environ.
10142         * solib.c (solib_find): Use environment of the current inferior.
10143
10144 2010-01-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10145
10146         * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10147         HAVE_PYTHON.
10148         (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10149
10150 2010-01-20  Joel Brobecker  <brobecker@adacore.com>
10151
10152         Get rid of ada-lang.c:function_name_from_pc.
10153         * ada-lang.c: Add "stack.h" #include.
10154         (function_name_from_pc): Delete.
10155         (is_known_support_routine): Replace call to function_name_from_pc
10156         by call to find_frame_funname.
10157         (ada_unhandled_exception_name_addr_from_raise): Likewise.
10158
10159 2010-01-19  Tom Tromey  <tromey@redhat.com>
10160
10161         PR c++/11026:
10162         * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10163         objfile obstack.
10164
10165 2010-01-19  Tom Tromey  <tromey@redhat.com>
10166
10167         * top.c (stop_sig, float_handler, do_nothing): Remove.
10168
10169 2010-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10170
10171         * breakpoint.c (watchpoint_check): Check the call
10172         gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10173         Extend the comment.
10174         * config/djgpp/fnchange.lst: Add translations for
10175         watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10176         watchpoint-cond-gone-stripped.c.
10177
10178 2010-01-19  Tom Tromey  <tromey@redhat.com>
10179
10180         PR c++/8000:
10181         * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10182         into parent scope, and enumerator into grandparent scope.
10183
10184 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10185
10186         * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10187
10188 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10189
10190         * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10191         i[34567]86-*-solaris2.1[0-9]*.
10192         * configure.tgt: Likewise.
10193
10194 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10195
10196         * NEWS: Document the source command enhancement allowing it
10197         to load Python scripts. Document the "set/show script-extension"
10198         commands.
10199
10200 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10201
10202         Add -Wunused-function to compile flags.
10203         * configure.ac: Add -Wunused-function to build_warnings.
10204         * configure: Regenerate.
10205
10206 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10207
10208         "delete" ada-lex.c:input function, not used.
10209         * ada-lex.l: #define YY_NO_INPUT.
10210
10211 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10212
10213         Delete free_named_symtabs and associated cleanup.
10214         * symfile.h (free_named_symtabs): Delete declaration.
10215         * symfile.c: Remove some commented out code (clear_symtab_users_once).
10216         (cashier_psymtab): Comment function out.
10217         Delete declaration.
10218         (free_named_symtabs): Delete.
10219         * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10220         * dbxread.c (end_psymtab): Likewise.
10221         * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10222         * exec.c (exec_close_1): Ditto.
10223         * xcoffread.c (xcoff_end_psymtab): Likewise.
10224
10225 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10226
10227         * stack.c (print_block_frame_labels): Comment function out.
10228
10229 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10230
10231         Delete unused or undefined functions.
10232         * breakpoint.c (ep_parse_optional_filename): Delete.
10233         * dcache.c (dcache_write_line): Remove declaration.
10234         * infrun.c (build_infrun): Remove declaration.
10235         * tracepoint.c (tracepoint_save_command): Remove declaration.
10236         * linux-nat.c (init_lwp_list): Delete. No longer used.
10237         * event-loop.c (check_async_signal_handlers): Delete declaration.
10238         * infrun.c (init_execution_control_state): Delete.
10239         (proceed): Update comment to avoid mentioning
10240         init_execution_control_state.
10241         * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10242         * ada-lang.c (ada_to_static_fixed_value): Delete.
10243         * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10244         * cp-namespace.c (cp_copy_usings): Delete.
10245         * xml-syscall.c (xml_number_of_syscalls): Delete.
10246         * progspace.c (find_program_space_by_num): Delete.
10247         * inflow.c (handle_sigio): Delete declaration.
10248         * hppa-tdep.c (hppa_alignof): Delete.
10249         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10250         (mipsnbsd_core_osabi_sniffer): Delete.
10251
10252 2010-01-18  Tom Tromey  <tromey@redhat.com>
10253
10254         PR c++/9680:
10255         * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10256         (CONST_CAST): New tokens.
10257         (exp): Add new productions.
10258         (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10259         reinterpret_cast.
10260         (is_cast_operator): New function.
10261         (yylex): Handle cast operators specially.
10262         * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10263         UNOP_REINTERPRET_CAST>: New cases.
10264         * expprint.c (print_subexp_standard): Likewise.
10265         (op_name_standard): Likewise.
10266         (dump_subexp_body_standard): Likewise.
10267         * parse.c (operator_length_standard): Likewise.
10268         * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10269         UNOP_REINTERPRET_CAST.
10270         * gdbtypes.c (class_types_same_p): New function.
10271         (is_ancestor): Use it.
10272         (is_public_ancestor): New function.
10273         (is_unique_ancestor_worker): Likewise.
10274         (is_unique_ancestor): Likewise.
10275         * gdbtypes.h (class_types_same_p, is_public_ancestor)
10276         (is_unique_ancestor): Declare.
10277         * valops.c (value_reinterpret_cast): New function.
10278         (dynamic_cast_check_1): Likewise.
10279         (dynamic_cast_check_2): Likewise.
10280         (value_dynamic_cast): Likewise.
10281         * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10282
10283 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
10284
10285         Fix build failure when building without Python support.
10286         * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10287         is not defined.
10288
10289 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
10290
10291         Use XVS field type instead of doing a parallel lookup.
10292         * ada-lang.c (ada_get_base_type): Follow the XVS field type
10293         if it is a reference type instead of doing a type lookup using
10294         the XVS field name.
10295
10296 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
10297
10298         Trust PAD types instead of using PAD___XVS.
10299         * ada-lang.c (trust_pad_over_xvs): New static variable.
10300         (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10301         parallel XVS type, follow the XVS type instead of the PAD type.
10302         (unwrap_value): Make sure that there is no parallel XVE type
10303         before returning the value as is.
10304         (set_ada_list, show_ada_list): New static variables.
10305         (set_ada_command, show_ada_command): New functions.
10306         (_initialize_ada_language): Add new "set/show ada" prefix commands.
10307         Add new "set/show ada trust-PAD-over-XVS" setting.
10308
10309 2010-01-18  Tom Tromey  <tromey@redhat.com>
10310             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10311
10312         Allow "source" to load python scripts.
10313         * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10314         * python/python.c (source_python_script): New function.
10315         * python/python.h (source_python_script): Add declaration.
10316         * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10317         (script_ext_off, script_ext_soft, script_ext_strict)
10318         (script_ext_enums, script_ext_mode): New static constants.
10319         (show_script_ext_mode, find_and_open_script): New functions.
10320         (source_script): Enhance to handle Python scripts.
10321         (init_cli_cmds): Add set/show script-extension commands.
10322
10323 2010-01-16  Stan Shebs  <stan@codesourcery.com>
10324
10325         * tracepoint.h (struct trace_status): Use unsigned long long
10326         instead of size_t.
10327         * tracepoint.c (trace_status_command): Fix printf directive.
10328         (trace_save_command): Check fwrite returns, fix printf directive.
10329         (trace_filename): New global.
10330         (tfile_open): Set it, check read returns.
10331         (tfile_close): Free trace_filename.
10332         (tfile_get_traceframe_address): Check read returns.
10333         (tfile_trace_find): Ditto.
10334         (tfile_fetch_registers): Ditto.
10335         (tfile_xfer_partial): Ditto.
10336         (tfile_get_trace_state_variable_value): Ditto.
10337
10338 2010-01-15  Stan Shebs  <stan@codesourcery.com>
10339
10340         Add trace file support.
10341         * tracepoint.h (enum trace_stop_reason): New enum.
10342         (struct trace_status): New struct.
10343         (parse_trace_status): Declare.
10344         (struct uploaded_tp): Move here from remote.c,
10345         add fields for actions.
10346         (struct uploaded_tsv): New struct.
10347         * tracepoint.c (tfile_ops): New target vector.
10348         (trace_fd): New global.
10349         (tfile_open): New function.
10350         (tfile_close): New function.
10351         (tfile_files_info): New function.
10352         (tfile_get_trace_status): New function.
10353         (tfile_get_traceframe_address): New function.
10354         (tfile_trace_find): New function.
10355         (tfile_fetch_registers): New function.
10356         (tfile_xfer_partial): New function.
10357         (tfile_get_trace_state_variable_value): New function.
10358         (init_tfile_ops): New function.
10359         (_initialize_tracepoint): Call it, add tfile target.
10360         (trace_status): New global.
10361         (current_trace_status): New function.
10362         (trace_running_p): Remove, change all users to get from
10363         current_trace_status()->running.
10364         (get_trace_status): Remove.
10365         (trace_status_command): Call target_get_trace_status directly,
10366         report more detail including tracing stop reasons.
10367         (trace_find_command): Always allow tfind on a file.
10368         (trace_find_pc_command): Ditto.
10369         (trace_find_tracepoint_command): Ditto.
10370         (trace_find_line_command): Ditto.
10371         (trace_find_range_command): Ditto.
10372         (trace_find_outside_command): Ditto.
10373         (trace_frames_offset, cur_offset): Declare as off_t.
10374         (trace_regblock_size): Rename from reg_size, update users.
10375         (parse_trace_status): New function.
10376         (tfile_interp_line): New function.
10377         (disconnect_or_stop_tracing): Ensure current trace
10378         status before asking what to do.
10379         (stop_reason_names): New global.
10380         (trace_save_command): New command.
10381         (get_uploaded_tp): Move here from remote.c.
10382         (find_matching_tracepoint): Ditto.
10383         (merge_uploaded_tracepoints): New function.
10384         (parse_trace_status): Use stop_reason_names.
10385         (_initialize_tracepoint): Define tsave command.
10386         * target.h (target_ops): New fields to_save_trace_data,
10387         to_upload_tracepoints, to_upload_trace_state_variables,
10388         to_get_raw_trace_data, change to_get_trace_status
10389         to take a pointer to a status struct.
10390         (target_save_trace_data): New macro.
10391         (target_upload_tracepoints): New macro.
10392         (target_upload_trace_state_variables): New macro.
10393         (target_get_raw_trace_data): New macro.
10394         * target.c (update_current_target): Add new methods, change
10395         signature of to_get_trace_status.
10396         * remote.c (hex2bin): Make globally visible.
10397         (bin2hex): Ditto.
10398         (remote_download_trace_state_variable): Download name also.
10399         (remote_get_trace_status): Update parameter, use
10400         parse_trace_status.
10401         (remote_save_trace_data): New function.
10402         (remote_upload_tracepoints): New function.
10403         (remote_upload_trace_state_variables): New function.
10404         (remote_get_raw_trace_data): New function.
10405         (remote_start_remote): Use them.
10406         (_initialize_remote_ops): Add operations.
10407         * ax-gdb.c: Include breakpoint.h.
10408         * breakpoint.c (create_tracepoint_from_upload): Use
10409         break_command_really, return tracepoint, warn about unimplemented
10410         parts.
10411         * NEWS: Mention trace file addition.
10412
10413 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10414
10415         Fix compilation warning on gcc-3.4.
10416         * exec.c (print_section_info): Move the `displacement' variable
10417         initialization to its declaration.
10418
10419 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10420
10421         * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10422         comparison.
10423
10424 2010-01-15  Eric Botcazou  <botcazou@adacore.com>
10425
10426         "info tasks" broken by typedefs in ATCB type definitions.
10427         * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10428         ada_check_typedef before retrieving the length of the type for
10429         regular fields.
10430
10431 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
10432
10433         Do not use name-based lookup for unconstrained packed arrays.
10434         * ada-lang.c (find_parallel_type_by_descriptive_type):
10435         Limit the fallback to name-based lookups to the case where
10436         the type is a constrained packed array.
10437
10438 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
10439
10440         Enhance gdb-gdb.py to handle main_type.type_specific.
10441         * gdb-gdb.py: Print the type-specific part of struct main_type.
10442
10443 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10444
10445         * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10446         * configure: Regenerate.
10447         * config.in: Regenerate.
10448         * utils.c: Include sys/resource.h.
10449         (dump_core, can_dump_core): New.
10450         (internal_vproblem): Update the comment.  Check can_dump_core while
10451         setting dump_core_p.  Replace two abort calls by dump_core calls.
10452
10453 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10454             Eli Zaretskii  <eliz@gnu.org>
10455
10456         * NEWS: Document the PIE support.
10457
10458 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10459
10460         * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10461         (check_is_pie_binary, _initialize_linux_tdep): Remove.
10462
10463 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10464
10465         * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10466         Replace exec_entry_point call by bfd_get_start_address.
10467
10468 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10469
10470         Support Valgrind attachments broken by the PIE support.
10471         * auxv.c: Include gdbcore.h.
10472         (procfs_xfer_auxv): Make static.  Reduce its comment.  Drop its
10473         parameters ops, object and annex.  Remove their assertions.
10474         (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10475         * auxv.h (procfs_xfer_auxv): Remove comment.  Rename to ...
10476         (memory_xfer_auxv): ... here.
10477         * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10478         memory_xfer_auxv.
10479         * procfs.c (procfs_xfer_partial): Likewise.
10480         * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10481         (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10482         (svr4_solib_create_inferior_hook): Conditionalize the
10483         svr4_relocate_main_executable call.
10484
10485 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10486
10487         * solib-svr4.c (scan_dyntag): Remove variable dyn_addr.  New variable
10488         target_section.  Find SECT in current_target_sections, gdb_assert it.
10489         (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10490         New variable abfd.
10491         * symtab.c (lookup_objfile_from_block): Return the binary file instead
10492         of separate debug info file.
10493
10494 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10495
10496         Support PIEs with no symfile_objfile.
10497         * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10498         * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10499
10500 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10501
10502         * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10503         code part to ...
10504         (svr4_static_exec_displacement): ... a new function.
10505         (svr4_exec_displacement): New function.
10506         (svr4_relocate_main_executable): Call svr4_exec_displacement.  Allocate
10507         new_offsets using alloca now.  Remove variable old_chain and changed.
10508         Call objfile_relocate unconditionally now.
10509
10510 2010-01-14  Doug Evans  <dje@google.com>
10511
10512         * gdbtypes.c (arch_flags_type): Fix comment.
10513         * gdbtypes.h (arch_composite_type): Fix comment.
10514
10515 2009-01-14  Tristan Gingold  <gingold@adacore.com>
10516
10517         * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10518         Call xstrdup for abfd->filename.  Pass symfile_flags and objfile flags
10519         to symbol_file_add_from_bfd.  Add OSO as separate objfile.
10520         (macho_oso_symfile): Add symfile_flags parameter.  Pass it to
10521         macho_add_oso_symfile.
10522         (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10523
10524 2010-01-14  Joel Brobecker  <brobecker@adacore.com>
10525
10526         Tru64: Dead threads are never deleted.
10527         * dec-thread.c (dec_thread_ptid_is_alive): New function.
10528         (dec_thread_count_gdb_threads): Fix counter increment.
10529         (dec_thread_add_gdb_thread): Fix *listp increment.
10530         (resync_thread_list): Fix bug in deletion of dead threads that
10531         caused all threads to be deleted, instead of just the dead ones.
10532
10533 2010-01-13  Phil Muldoon  <pmuldoon@redhat.com>
10534
10535         PR python/10705
10536
10537         * python/python-internal.h: Add lazy_string_object_type
10538         definition.
10539         (create_lazy_string_object, gdbpy_initialize_lazy_string)
10540         (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10541         * python/py-value.c (valpy_lazy_string): New function.
10542         (convert_value_from_python): Add lazy string conversion.
10543         * python/py-prettyprint.c (pretty_print_one_value): Check if
10544         return is also a lazy string.
10545         (print_string_repr): Add lazy string printing branch.
10546         (print_children): Likewise.
10547         * python/py-lazy-string.c: New file. Implement lazy strings.
10548         * python/python.c (_initialize_python): Call
10549         gdbpy_initialize_lazy_string.
10550         * varobj.c (value_get_print_value): Add lazy string printing
10551         branch.  Account for encoding.
10552         * c-lang.c (c_printstr): Account for new encoding argument.  If
10553         encoding is NULL, find encoding suited for type, otherwise use
10554         user encoding.
10555         * language.h (language_defn): Add encoding argument.
10556         (LA_PRINT_STRING): Likewise.
10557         * language.c (unk_lang_printstr): Update to reflect new encoding
10558         argument to language_defn.
10559         * ada-lang.h (ada_printstr): Likewise.
10560         * c-lang.h (c_printstr): Likewise.
10561         * p-lang.h (pascal_printstr);
10562         * f-lang.c (f_printstr): Likewise.
10563         * m2-lang.c (m2_printstr): Likewise.
10564         * objc-lang.c (objc_printstr): Likewise.
10565         * p-lang.c (pascal_printstr): Likewise.
10566         * scm-lang.c (scm_printstr): Likewise.
10567         * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10568         encoding argument.
10569         * ada-valprint.c (ada_printstr): Likewise.
10570         * f-valprint.c (f_val_print): Likewise
10571         * m2-valprint.c (m2_val_print): Likewise.
10572         * p-valprint.c (pascal_val_print): Likewise.
10573         * expprint.c (print_subexp_standard): Likewise.
10574         * valprint.c (val_print_string): Likewise.
10575         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10576         (SUBDIR_PYTHON_SRCS): Likewise.
10577         (py-lazy-string.o): New rule.
10578
10579 2010-01-13  Doug Evans  <dje@google.com>
10580
10581         * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10582         uninitialized" warning from gcc on local `tree'.
10583
10584 2010-01-13  Vladimir Prus  <vladimir@codesourcery.com>
10585
10586         Implement core awareness.
10587
10588         * bcache.c (compare_ints): Remove
10589         (print_percentage): Use compare_positive_ints.
10590         * defs.h (compare_positive_ints): Declare.
10591         * linux-nat.h (struct lin_lwp): New field core.
10592         (linux_nat_core_of_thread_1): Declare.
10593         * linux-nat.c (add_lwp): Init the 'core' field.
10594         (linux_nat_wait_1): Record the core.
10595         (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10596         (linux_nat_add_target): Register the above.
10597         * linux-thread-db.c (update_thread_core): New.
10598         (thread_db_find_new_threads): Update core information for
10599         every thread.
10600         * remote.c (struct private_thread_info): New.
10601         (free_private_thread_info, demand_private_info): New.
10602         (PACKET_qXfer_threads, use_osdata_threads): New.
10603         (struct thread_item, threads_parsing_context
10604         (start_thread, end_thread, thread_attributes)
10605         (thread_children, threads_children, threads_elements): New.
10606         (remote_threads_info): Try qXfer:threads before anything
10607         else.
10608         (remote_protocol_packets): Register qXfer:threads.
10609         (remote_open_1): Init use_osdata_threads.
10610         (struct stop_reply): New field 'core'.
10611         (remote_parse_stop_reply): Parse core number.
10612         (process_stop_reply): Record core number.
10613         (remote_xfer_partial): Handle qXfer:threads.
10614         (remote_core_of_thread): New.
10615         (init_remote_ops): Register remote_core_of_thread.
10616         (_initialize_remote): Register qXfer:read.
10617         * target.c (target_core_of_thread): New
10618         * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10619         (struct target_ops): New field to_core_of_threads.
10620         (target_core_of_thread): Declare.
10621         * gdbthread.h (struct thread_info): New field private_dtor.
10622         * thread.c (print_thread_info): Report the core.
10623         * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10624         * utils.c (compare_positive_ints): New.
10625         * features/threads.dtd: New.
10626         * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10627         * mi/mi-main.c (struct collect_cores_data, collect_cores)
10628         (do_nothing, free_vector_of_osdata_items)
10629         (splay_tree_int_comparator, free_splay_tree): New.
10630         (print_one_inferior_data): Implemented printing of selected
10631         inferiors.  Collect and print cores.
10632         (output_cores): New.
10633         (mi_cmd_list_thread_groups): Support --recurse.  Permit specifying
10634         thread groups together with --available.
10635
10636 2010-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10637
10638         * configure: Regenerate (for _STRUCTURED_PROC).
10639
10640 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
10641
10642         Delete dead function.
10643         * ada-lang.c (extract_string): Delete.  No longer used.
10644
10645 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
10646
10647         Fix -Wunused warning in dec-thread.c.
10648         * dec-thread.c (dec_thread_count_gdb_threads)
10649         (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10650
10651 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
10652
10653         * ada-valprint.c (ada_print_floating): Remove trailing space.
10654
10655 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
10656
10657         Add support for DW_AT_GNAT_descriptive_type.
10658         * gdbtypes.h (enum type_specific_kind): New enum.
10659         (struct main_type) [type_specific_field]: New component.
10660         [type_specific]: Add new component "gnat_stuff".
10661         (struct gnat_aux_type): New type.
10662         (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10663         (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10664         (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10665         (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10666         (TYPE_SPECIFIC_FIELD): New macros.
10667         (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10668         type does not hold any cplus-specific data.
10669         (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10670         (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10671         (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10672         cplus-specific data.
10673         * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10674         Set new component TYPE_SPECIFIC_FIELD (type).
10675         (gnat_aux_default): New constant.
10676         (allocate_gnat_aux_type): New function.
10677         (init_type): Add initialization the type-specific stuff for
10678         TYPE_CODE_FLT and TYPE_CODE_FUNC types.
10679         (print_gnat_stuff): New function.
10680         (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
10681         specific data.  Adjust code that prints the contents of the
10682         type-specific union using the TYPE_SPECIFIC_FIELD value.
10683         * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
10684         the type cplus stuff for Ada types.
10685         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
10686         Error out if these routines are called with an Ada type.
10687         (read_structure_type, read_array_type, read_subrange_type):
10688         Add call to set_descriptive_type.
10689         (set_die_type): Initialize the gnat-specific data if necessary.
10690         (need_gnat_info, die_descriptive_type, set_descriptive_type):
10691         New functions.
10692         * ada-lang.c (decode_constrained_packed_array_type): Use
10693         decode_constrained_packed_array_type instead of doing a standard
10694         lookup to locate a parallel type.
10695         (find_parallel_type_by_descriptive_type): New function.
10696         (ada_find_parallel_type_with_name): New function.
10697         (ada_find_parallel_type): Reimplement using
10698         ada_find_parallel_type_with_name.
10699         * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
10700         to check if type has a cplus stuff.
10701         * linespec.c (total_number_of_methods): Likewise.
10702         * mdebugread.c (new_type): Likewise.
10703
10704 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10705
10706         * NEWS: Document the 0b binary number prefix parsing.
10707
10708 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10709
10710         * objfiles.c (objfile_relocate1): Change the return type to int.
10711         Describe the new return value.  Return non-zero if data changed.
10712         (objfile_relocate): New variable changed.  Set it.  Call
10713         breakpoint_re_set depending on CHANGED.
10714
10715 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10716
10717         Implement binary numbers parsing.
10718         * c-exp.y (parse_number): New case 'b' and 'B'.
10719
10720 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10721             Tristan Gingold  <gingold@adacore.com>
10722
10723         * solib.c (info_sharedlibrary_command): Replace
10724         objfile_has_partial_symbols and objfile_has_full_symbols calls by
10725         objfile_has_symbols.
10726
10727 2010-01-10  Joel Brobecker  <brobecker@adacore.com>
10728
10729         * NEWS: Document the improvements made to the mips-irix port.
10730
10731 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10732
10733         Fix the documentation of valprint.c:value_print.
10734         * valprint.c (value_print): Update the function description to
10735         mention that the syntax of the output follows the current_language,
10736         not necessarily C.
10737
10738 2010-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10739
10740         Fix displacement of separate debug info files.
10741         * objfiles.c (objfile_relocate): Rename to ...
10742         (objfile_relocate1): ... here and make it static.  Extend the comment.
10743         (objfile_relocate): New function.
10744         * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10745         SYMFILE_OBJFILE is NULL.  Remove variables objfile and old_chain.
10746         Remove following of SEPARATE_DEBUG_OBJFILE.  new_offsets is now
10747         allocated using alloca.
10748         * symfile.c (copy_section_addr_info): Remove.
10749         (build_section_addr_info_from_objfile): Make it global.  New variables
10750         addr_bit and mask, use them.
10751         * symfile.h (build_section_addr_info_from_objfile): New prototype.
10752         (copy_section_addr_info): Remove.
10753
10754 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10755
10756         Signal unwinder for mips-irix N32.
10757         * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10758         tramp-frame.h.
10759         (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10760         (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
10761         (SIGCONTEXT_LO_OFF): New macros.
10762         (mips_irix_n32_tramp_frame_init): New function.
10763         (mips_irix_n32_tramp_frame): New static constant.
10764         (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10765
10766 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10767
10768         Breakpoint in shared library does not work on mips-irix.
10769         * procfs.c: #include "observer.h".
10770         (procfs_inferior_created): New function, moving here the code
10771         which unsets the syssgi syscall-exit notifications.
10772         (procfs_create_inferior): Remove the code which unsets the syssgi
10773         syscall-exit notifications. It is too early to do this here.
10774         (_initialize_procfs): Attach the procfs_inferior_created observer.
10775
10776 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10777
10778         Wrong return convention for arrays (mips-irix).
10779         * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10780         128 bits or smaller are returned the same way as structs
10781         and unions of the the same size.
10782
10783 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10784
10785         Cannot set the PC on mips-irix.
10786         * irix5-nat.c (fill_gregset): Check regno against the raw PC
10787         register number, no the cooked one.
10788
10789 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10790
10791         Error while loading core file on mips-irix.
10792         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10793         if debugging from a core file.
10794
10795 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10796
10797         GDB hangs when attaching to process on mips-irix.
10798         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10799         attaching to a process.
10800
10801 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10802
10803         Use the correct breakpoint instruction on mips-irix.
10804         * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10805         containing the correct breakpoint instruction to use on mips-irix.
10806         Use it when the osabi is GDB_OSABI_IRIX.
10807
10808 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10809
10810         -Wunused warning in procfs.c (mips-irix only).
10811         * procfs.c (gdb_praddset, gdb_prdelset): New macros.  Use them
10812         throughout instead of using praddset and prdelset respectively.
10813
10814 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10815
10816         GDB crash while stepping into function.
10817         * infrun.c (handle_inferior_event): Refetch the current frame
10818         after handling what.main_action, in case that pointer became
10819         dangling.
10820
10821 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10822
10823         Fix build failure of solaris-hosted cross debuggers.
10824         * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10825
10826 2010-01-09  Daniel Gutson  <dgutson@codesourcery.com>
10827
10828         Fix build failure on sparc-solaris.
10829         * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10830
10831 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10832
10833         Move some symfile code into subroutines.
10834         * symfile.h (relative_addr_info_to_section_offsets)
10835         (addr_info_make_relative): New prototypes.
10836         * symfile.c (default_symfile_offsets): Move a part to ...
10837         (relative_addr_info_to_section_offsets): ... this new function.
10838         (default_symfile_offsets): Call it.
10839         (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10840         this part to ...
10841         (addr_info_make_relative): ... this new function.
10842
10843 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10844
10845         Add from_tty to solib_create_inferior_hook.
10846         * infcmd.c (post_create_inferior): Move solib_add after
10847         solib_create_inferior_hook.  Pass from_tty to
10848         solib_create_inferior_hook.  Call solib_add and SOLIB_ADD with
10849         0 from_tty and comment why.
10850         * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10851         * linux-nat.c (linux_child_follow_fork): Likewise.
10852         * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10853         * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10854         from_tty.
10855         * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10856         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10857         * solib-null.c (null_solib_create_inferior_hook): Likewise.
10858         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10859         * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10860         * solib-som.c (som_solib_create_inferior_hook): Likewise.
10861         * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10862         Pass it to svr4_so_ops.solib_create_inferior_hook.
10863         * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10864         from_tty.
10865         * solib-svr4.c (enable_break): New parameter from_tty.  Pass it to
10866         solib_add.
10867         (svr4_solib_create_inferior_hook): New parameter from_tty.  Pass it to
10868         enable_break.
10869         * solib-target.c (solib_target_solib_create_inferior_hook): New
10870         parameter from_tty.
10871         * solib.c (solib_create_inferior_hook): New parameter from_tty.  Pass
10872         it to ops->solib_create_inferior_hook.
10873         (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10874         Move solib_add after solib_create_inferior_hook, call it now with
10875         from_tty as 0.  New comment there.
10876         * solib.h (solib_create_inferior_hook): New parameter from_tty.
10877         * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10878         Likewise.
10879
10880 2010-01-08  Vladimir Prus  <vladimir@codesourcery.com>
10881
10882         Fix multiexec race.
10883         * infrun.c (handle_inferior_event): Use get_thread_regcache
10884         with events ptid, not get_current_regcache.
10885
10886 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
10887
10888         GDB crash with empty executable name (MinGW).
10889         * source.c (openp): Add assert that parameter string is not NULL.
10890         if parameter string is an empty string, then return with a failure
10891         immediately.
10892
10893 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
10894
10895         Get rid of support for VAX Floats.
10896         * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10897         (ada_vax_float_print_function): Delete.
10898         * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10899         (ada_vax_float_print_function): Delete.
10900         * ada-typeprint.c (print_vax_floating_point_type): Delete.
10901         (ada_print_type): Remove support for VAX floats.
10902         * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
10903
10904 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10905
10906         * stabsread.c (read_args): Handle zero arguments.
10907
10908 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
10909
10910         Cannot find in-tree libiconv.a after reconfigure.
10911         * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
10912         that we can use, then cache the path to this archive.
10913         * configure: Regenerate.
10914
10915 2010-01-07  Stan Shebs  <stan@codesourcery.com>
10916
10917         Make tracepoint operations go through target vector.
10918         * target.h (enum trace_find_type): New enum.
10919         (struct target_ops): New fields to_trace_init,
10920         to_download_tracepoint, to_download_trace_state_variable,
10921         to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
10922         to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
10923         to_set_disconnected_tracing.
10924         (target_trace_init): New macro.
10925         (target_download_tracepoint): New macro.
10926         (target_download_trace_state_variable): New macro.
10927         (target_trace_start): New macro.
10928         (target_trace_set_readonly_regions): New macro.
10929         (target_get_trace_status): New macro.
10930         (target_trace_stop): New macro.
10931         (target_trace_find): New macro.
10932         (target_get_trace_state_variable_value): New macro.
10933         (target_set_disconnected_tracing): New macro.
10934         * target.c (update_current_target): Inherit and set defaults for
10935         tracepoint operations.
10936         * tracepoint.c (default_collect): Make globally visible.
10937         (target_is_remote): Remove, along with all calls.
10938         (tvariables_info): Call target_get_trace_state_variable_value.
10939         (remote_set_transparent_ranges): Remove.
10940         (trace_start_command): Call target_trace_init,
10941         target_download_tracepoint, etc.
10942         (download_tracepoint): Remove.
10943         (trace_stop_command): Simplify.
10944         (stop_tracing): Call target_trace_stop.
10945         (get_trace_status): Call target_get_trace_status.
10946         (trace_status_command): Add case for targets that cannot trace.
10947         (finish_tfind_command): Change to take numerical arguments, call
10948         target_trace_find.
10949         (trace_find_command): Update call to finish_tfind_command.
10950         (trace_find_pc_command): Ditto.
10951         (trace_find_tracepoint_command): Ditto.
10952         (trace_find_line_command): Ditto.
10953         (trace_find_range_command): Ditto.
10954         (trace_find_outside_command): Ditto.
10955         (set_disconnected_tracing_value): Call
10956         target_set_disconnected_tracing.
10957         * remote.c: Add protocol encoding bits from tracepoint.c.
10958         (trace_error): Move from tracepoint.c.
10959         (remote_get_noisy_reply): Ditto.
10960         (free_actions_list_cleanup_wrapper): Ditto.
10961         (free_actions_list): Ditto.
10962         (remote_trace_init): New function.
10963         (remote_download_tracepoint): New function.
10964         (remote_download_trace_state_variable): New function.
10965         (remote_trace_set_readonly_regions): New function.
10966         (remote_trace_start): New function.
10967         (remote_get_trace_status): New function.
10968         (remote_trace_stop): New function.
10969         (remote_trace_find): New function.
10970         (remote_download_trace_state_variable): New function.
10971         (remote_set_disconnected_tracing): New function.
10972         (init_remote_ops): Add tracepoint operations.
10973
10974         * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
10975
10976 2010-01-07  Tristan Gingold  <gingold@adacore.com>
10977
10978         * symfile.c (build_section_addr_info_from_objfile): New function.
10979         (symbol_file_add_separate): Don't use offsets from objfile but
10980         built an addr info.
10981
10982 2010-01-06  Stan Shebs  <stan@codesourcery.com>
10983
10984         Support disconnected tracing.
10985         * infcmd.c (detach_command): Ask whether to stop tracing.
10986         * cli/cli-cmds.c (quit_command): Ditto.
10987         * breakpoint.h (struct breakpoint): New field number_on_target.
10988         * breakpoint.c (create_tracepoint_from_upload): New function.
10989         (get_tracepoint_by_number_on_target): New function.
10990         * remote.c (struct remote): New field disconnected_tracing.
10991         (remote_disconnected_tracing_feature): New function.
10992         (remote_protocol_features): Add DisconnectedTracing.
10993         (struct uploaded_tp): New struct.
10994         (uploaded_tps): New global.
10995         (get_uploaded_tp): New function.
10996         (find_matching_tracepoint): New function.
10997         (remote_get_tracing_state): New function.
10998         (remote_start_remote): Call it.
10999         * tracepoint.c (disconnected_tracing): New global.
11000         (trace_start_command): Initialize number_on_target.
11001         (stop_tracing): New function, split out from...
11002         (trace_stop_command): Call stop_tracing.
11003         (get_trace_status): New function, split out from...
11004         (trace_status_command): Call get_trace_status, add info on
11005         disconnection behavior.
11006         (disconnect_or_stop_tracing): New function.
11007         (finish_tfind_command): Translate from number on target.
11008         (trace_find_tracepoint_command): Translate to number on target.
11009         (send_disconnected_tracing_value): New function.
11010         (set_disconnected_tracing): New function.
11011         (_initialize_tracepoint): Add disconnected-tracing variable.
11012         * NEWS: Mention disconnected tracing.
11013
11014 2010-01-06  Tristan Gingold  <gingold@adacore.com>
11015
11016         * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11017         parameter to main_objfile.  Iterate on all separate debug objfiles.
11018         * symfile.h (symbol_file_add_separate)
11019         (find_separate_debug_file_by_debuglink): Remove parameter names.
11020         * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11021         (reread_symbols): Use free_objfile_separate_debug.
11022         * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11023         Adjust comment.
11024         (objfile_separate_debug_iterate, add_separate_debug_objfile)
11025         (free_objfile_separate_debug): New prototypes.
11026         * objfiles.c (objfile_separate_debug_iterate): New function.
11027         (add_separate_debug_objfile, free_objfile_separate_debug): New
11028         functions.
11029         (free_objfile): Use free_objfile_separate_debug.  Adjust for
11030         multiple separate debug objfile.
11031         (objfile_has_symbols): Adjust comment.  Iterate on all separate
11032         debug objfiles.
11033         * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11034         debug objfile.
11035         (lookup_minimal_symbol_text): Ditto.
11036         (lookup_minimal_symbol_by_pc_name): Ditto.
11037         (lookup_minimal_symbol_solib_trampoline): Ditto.
11038         (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11039         debug objfiles.
11040
11041 2010-01-05  Stan Shebs  <stan@codesourcery.com>
11042
11043         Add fast tracepoints.
11044         * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11045         * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11046         * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11047         * breakpoint.c (tracepoint_type): New function.
11048         (ALL_TRACEPOINTS): Use it.
11049         (should_be_inserted): Ditto.
11050         (bpstat_check_location): Ditto.
11051         (print_one_breakpoint_location): Ditto.
11052         (user_settable_breakpoint): Ditto.
11053         (set_breakpoint_location_function): Ditto.
11054         (disable_breakpoints_in_shlibs): Ditto.
11055         (delete_trace_command): Ditto.
11056         (print_it_typical): Add bp_fast_tracepoint case.
11057         (bpstat_what): Ditto.
11058         (print_one_breakpoint_location): Ditto.
11059         (allocate_bp_location): Ditto.
11060         (mention): Ditto.
11061         (breakpoint_re_set_one): Ditto.
11062         (disable_command): Ditto.
11063         (enable_command): Ditto.
11064         (check_fast_tracepoint_sals): New function.
11065         (break_command_really): Call it.
11066         (ftrace_command): New function.
11067         (_initialize_breakpoint): Add ftrace command.
11068         * gdbarch.sh (fast_tracepoint_valid_at): New.
11069         * gdbarch.h, gdbarch.c: Regenerate.
11070         * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11071         (i386_gdbarch_init): Use it.
11072         * remote.c (struct remote_state): New field fast_tracepoints.
11073         (PACKET_FastTracepoints): New packet config type.
11074         (remote_fast_tracepoint_feature): New function.
11075         (remote_protocol_features): Add FastTracepoints.
11076         (remote_supports_fast_tracepoints): New function.
11077         (_initialize_remote): Add FastTracepoints.
11078         * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11079         * NEWS: Mention fast tracepoints.
11080
11081 2010-01-06  Joel Brobecker  <brobecker@adacore.com>
11082
11083         * gdb-gdb.py: New file.
11084
11085 2010-01-05  Michael Snyder  <msnyder@vmware.com>
11086
11087         * infrun.c (handle_inferior_event): Fix typo in comment.
11088
11089 2010-01-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
11090
11091         * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11092
11093 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11094
11095         * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11096         and s390x-linux64.
11097         (s390-linux32-expedite): Define.
11098         (s390-linux64-expedite): Define.
11099         (s390x-linux64-expedite): Define.
11100         * features/s390-acr.xml: New file.
11101         * features/s390-fpr.xml: New file.
11102         * features/s390-core32.xml: New file.
11103         * features/s390-core64.xml: New file.
11104         * features/s390x-core64.xml: New file.
11105         * features/s390-linux32.xml: New file.
11106         * features/s390-linux64.xml: New file.
11107         * features/s390x-linux64.xml: New file.
11108         * features/s390-linux32.c: New generated file.
11109         * features/s390-linux64.c: New generated file.
11110         * features/s390x-linux64.c: New generated file.
11111
11112         * regformats/s390-linux32.dat: New generated file.
11113         * regformats/s390-linux64.dat: New generated file.
11114         * regformats/s390x-linux64.dat: New generated file.
11115         * regformats/reg-s390.dat: Remove.
11116         * regformats/reg-s390x.dat: Remove.
11117
11118         * s390-nat.c: Include "auxv.h" and <elf.h>.
11119         (HWCAP_S390_HIGH_GPRS): Define if undefined.
11120         (s390_target_wordsize): New function.
11121         (s390_auxv_parse): Likewise.
11122         (s390_get_hwcap): Likewise.
11123         (s390_read_description): Likewise.
11124         (_initialize_s390_nat): Install s390_auxv_parse and
11125         s390_read_description.
11126
11127         * s390-tdep.c: Include "features/s390-linux32.c",
11128         "features/s390-linux64.c", and "features/s390x-linux64.c".
11129         (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11130         (s390_register_call_saved): New function.
11131         (s390_register_name): Remove.
11132         (s390_register_type): Remove.
11133         (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11134         (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11135         (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11136         (s390_pseudo_register_name): New function.
11137         (s390_pseudo_register_type): New function.
11138         (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11139         Handle full GPR pesudos and varying pseudo register numbers.
11140         (s390_pseudo_register_write): Likewise
11141         (s390x_pseudo_register_read): Remove.
11142         (s390x_pseudo_register_write): Likewise.
11143         (s390_register_group): Remove.
11144         (s390_pseudo_register_group): New function.
11145         (s390_regmap_gregset): Add GPR upper halves.
11146         (s390x_regmap_gregset): Likewise.
11147         (s390_regmap_fpregset): Likewise.
11148         (s390_regmap_upper): New global variable.
11149         (s390_upper_regset): New global variable.
11150         (s390_upper_regset_sections): New global variable.
11151         (s390_regset_from_core_section): Handle GPR upper halves.
11152         (s390_core_read_description): New function.
11153         (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11154         register information.  Handle varying pseudo register numbers.
11155         (s390_backchain_frame_unwind_cache): Likewise.
11156         (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11157         (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11158         (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11159         PC and CC pseudos.  Unwind upper halves and full GPRs as appropriate.
11160         Handle varying pseudo register numbers.
11161         (s390_unwind_pc): Handle varying pseudo register numbers.
11162         (s390_dwarf2_prev_register): New function.
11163         (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11164         register information.  Handle varying pseudo register numbers.
11165         Install s390_dwarf2_prev_register to unwind full GPRs.
11166         (s390_gdbarch_init): Handle target descriptions.  Assign varying
11167         pseudo register numbers.  Install s390_adjust_frame_regnum.
11168         (_initialize_s390_tdep): Initialize target descriptions.
11169
11170         * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11171         (S390_NUM_REGS): Redefine to include upper half registers.
11172         (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11173         (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11174         (tdesc_s390_linux32): Add declaration.
11175         (tdesc_s390_linux64): Likewise.
11176         (tdesc_s390x_linux64): Likewise.
11177
11178 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11179
11180         * regset.h (struct core_regset_section): Add HUMAN_NAME.
11181         * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11182         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11183         (ppc_linux_vmx_regset_sections): Likewise.
11184         (ppc_linux_fp_regset_sections): Likewise.
11185
11186         * corelow.c (get_core_register_section): Constify arguments.
11187         (get_core_registers): Use gdbarch_core_regset_sections instead
11188         of hard-coded platform-specific register section names.
11189
11190 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11191
11192         * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11193         a register, assume the least-significant part is used.
11194         (write_pieced_value): Likewise.
11195
11196 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11197
11198         * printcmd.c: Include "arch-utils.h".
11199         (do_one_display): Re-parse expression if current architecture changed.
11200
11201 2010-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11202             Joel Brobecker  <brobecker@adacore.com>
11203
11204         * gdbtypes.c (check_typedef): New comment on type length.
11205         * value.c (allocate_value_lazy): Remove the unused atype variable.  New
11206         comment on type length.
11207         (value_primitive_field): Keep the original TYPE value, new comment.
11208
11209 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11210
11211         * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11212         p_start.  Change != comparisons to > and < comparisons.
11213
11214 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11215
11216         * cli/cli-script.c (process_next_line): Check P2 overrun.
11217
11218 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
11219
11220         Update the copyright hearder to add year 2010 for most GDB files.
11221
11222 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
11223
11224         Fix build failure in inf-ptrace.c.
11225         * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11226
11227 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
11228
11229         * top.c (print_gdb_version): Update copyright year.
11230
11231 2010-01-01, 10  Joel Brobecker  <brobecker@adacore.com>
11232
11233         Fix break *FUN'address thread NUM.
11234         * ada-lex.l (task): Expand rule to also match the thread keyword.
11235
11236 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
11237
11238         Fix break *FUN'address task NUM.
11239         * ada-lex.l (task): New rule.
11240         * ada-lang.c (valid_task_id): Make sure the Ada task list has
11241         been built before using it.
11242
11243 For older changes see ChangeLog-2009.
11244 \f
11245 Local Variables:
11246 mode: change-log
11247 left-margin: 8
11248 fill-column: 74
11249 version-control: never
11250 coding: utf-8
11251 End: