* arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
[external/binutils.git] / gdb / ChangeLog
1 2010-11-14  Pierre Muller  <muller@ics.u-strasbg.fr>
2
3         * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
4         possible used of uninitialized variable.
5
6 2010-11-12  Nathan Froyd  <froydnj@codesourcery.com>
7
8         * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
9         (rs6000_gdbarch_init): Call it.
10
11 2010-11-12  Nathan Froyd  <froydnj@codesourcery.com>
12
13         * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
14         instructions if debugging an E500 binary.
15
16 2010-11-12  Tom Tromey  <tromey@redhat.com>
17
18         * varobj.c (value_get_print_value): Rearrange.  Pass stream to
19         apply_varobj_pretty_printer.
20         * c-lang.c: Include exceptions.h.
21         (c_get_string): Throw MEMORY_ERROR when appropriate.
22         * python/py-prettyprint.c (enum string_repr_result): New.
23         (print_stack_unless_memory_error): New function.
24         (print_string_repr): Change return type.  Use
25         print_stack_unless_memory_error.
26         (print_children): Use print_stack_unless_memory_error.
27         (apply_val_pretty_printer): Update.  Don't print children if
28         string representation threw an exception.
29         (apply_varobj_pretty_printer): Add 'stream' argument.  Use
30         print_stack_unless_memory_error.
31         * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
32         globals.
33         (_initialize_python): Initialize them.
34         * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
35         gdbpy_convert_exception.
36         (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
37         (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
38         (gdbpy_convert_exception): Declare.
39         (apply_varobj_pretty_printer): Update.
40         * python/py-utils.c (gdbpy_convert_exception): New function.
41
42 2010-11-12  Marc Khouzam  <marc.khouzam@ericsson.com>
43
44         * mi/mi-main.c (mi_cmd_target_detach): Accept new
45         thread-group id format.
46
47 2010-11-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
48
49         * spu-tdep.c (spu_catch_start): Fix compilation error typo.
50
51 2010-11-11  Phil Muldoon  <pmuldoon@redhat.com>
52
53         * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
54         NULL.
55         (BPPY_SET_REQUIRE_VALID): Ditto.
56         (bpnum_is_valid): Delete function.
57         (bppy_get_visibility): New function.
58         (bppy_new): Parse for, and validate internal keyword.  Pass
59         internal keyword to breakpoint or watchpoint functions.
60         (build_bp_list): New function.
61         (gdbpy_breakpoints): Rewrite.  Use build_bp_list and
62         iterate_over_breakpoints.
63         (gdbpy_breakpoint_created): Rewrite.  Do not store breakpoints in a
64         look-aside vector.
65         (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
66         to internal breakpoint chain.
67
68         * breakpoint.c (set_breakpoint_number): New function.
69         (breakpoint_1): Check if breakpoint number is more than zero.
70         (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
71         (create_breakpoint_sal): Take a new parameter called internal.
72         Call set_breakpoint_number with internal parameter.  Do not
73         mention internal breakpoints.  All callers updated.
74         (create_breakpoint): Ditto.
75         (create_breakpoints_sal): Ditto.
76         (watch_command_1): Ditto.
77         (watch_command_wrapper): Take a new parameter called internal.
78         All callers updated.
79         (rwatch_command_wrapper): Ditto.
80         (awatch_command_wrapper): Ditto.
81         (save_breakpoints): Update breakpoint save condition check.
82         (iterate_over_breakpoints): New function.
83         * breakpoint.h: Add conditional python includes.  Add py_bp_object
84         and comment to struct breakpoint.  Update all callers.
85         * defs.h: Add PyObject definition for GDB builds without Python.
86
87 2010-11-10  Doug Evans  <dje@google.com>
88
89         * python/lib/gdb/command/pretty_printers.py
90         (do_enable_pretty_printer_1): Handle printer.subprinters is None.
91
92         * value.c (set_value_enclosing_type): Renamed from
93         value_change_enclosing_type.  All callers updated.
94         * value.h (set_value_enclosing_type): Update.
95         * valops.c (value_full_object): Always return a copy if we need to
96         make changes to the input value.
97
98 2010-11-09  Pedro Alves  <pedro@codesourcery.com>
99
100         * breakpoint.c (watch_command_1): Get a pointer of the lazy
101         version of the expression's value, even if reading the value from
102         memory fails.  When creating a -location watchpoint, get the
103         value's address from the lazy value pointer.
104
105 2010-11-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
106
107         * infrun.c (restore_inferior_thread_state): Use
108         discard_inferior_thread_state to free the data.
109         (discard_inferior_thread_state): xfree also siginfo_data.
110
111 2010-11-05  Doug Evans  <dje@google.com>
112
113         Make gdb.parameter("directories") work.
114         New command "set directories".
115         * NEWS: Document them.
116         * source.c (set_directories_command): New function.
117         (show_directories_1): Renamed from show_directories.
118         All callers updated.
119         (show_directories_command): New function.
120         (_initialize_source): Install "directories" as a set/show
121         variable instead of just a show command.
122
123 2010-11-05  Ken Werner  <ken.werner@de.ibm.com>
124
125         * NEWS: Mention OpenCL C language support.
126         * Makefile.in (SFILES): Add opencl-lang.c.
127         (COMMON_OBS): Add opencl-lang.o.
128         * opencl-lang.c: New File
129         * defs.h (enum language): Add language_opencl.
130         * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
131         IBM XL C OpenCL compiler.
132         * c-lang.h: Include "parser-defs.h".
133         (evaluate_subexp_c): Declare.
134         * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
135         (c_op_print_tab): Add declaration.
136         * eval.c (binop_promote): Handle language_opencl.
137         * c-exp.y: Lookup the primitive types instead of referring to the
138         builtins.
139
140 2010-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
141
142         Fix configure --enable-plugins --without-python.
143         * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
144         * configure: Regenerate.
145
146 2010-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
147
148         * solib.c (solib_read_symbols): Call exception_fprintf even without
149         FROM_TTY.  Print also so->so_name.
150
151 2010-11-04  Sami Wagiaalla  <swagiaal@redhat.com>
152
153         * gdbtypes.h (struct rank): Created subrank.
154         * gdbtypes.c: Initialized subrank for all
155         'BADNESS' constants.
156         (distance_to_ancestor): New function.
157         (is_ancestor): Use distance_to_ancestor.
158         (is_public_ancestor): Ditto.
159         (sum_ranks): Handle subrank.
160         (compare_ranks): Ditto.
161         (rank_one_type): Subrank base conversions.
162
163 2010-11-04  Sami Wagiaalla  <swagiaal@redhat.com>
164
165         * gdbtypes.h: Create struct rank.
166         Convert all 'BADNESS' macros to const struct rank declarations.
167         (sum_ranks): New function.
168         (compare_ranks): New function.
169         * valops.c (find_oload_champ): Updated.
170         (classify_oload_match): Use compare_ranks.
171         Improved comments.
172         (compare_parameters): Use compare_ranks.
173         * gdbtypes.c: Initialize 'BADNESS' constants.
174         (sum_ranks): New function.
175         (compare_ranks): New function.
176         (compare_badness): Use compare_ranks.
177         (rank_function): Use global constants instead of literals.
178         (rank_one_type): Ditto.
179         Return struct rank.
180         Use sum_ranks.
181
182 2010-11-04  Doug Evans  <dje@google.com>
183
184         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
185         (find_pretty_printer): Fix comments.
186
187 2010-11-04  Hui Zhu  <teawater@gmail.com>
188
189         * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
190
191 2010-11-03  Joel Brobecker  <brobecker@adacore.com>
192
193         * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
194         and `len' declaration and computation inside block where they
195         are being used.
196
197 2010-11-03  Joel Brobecker  <brobecker@adacore.com>
198
199         * valprint.c (val_print_array_elements): Put back handling of
200         empty arrays.
201
202 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
203
204         * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
205         DIE and set the length of the type.
206         * gdbtypes.h (get_array_bounds): Move here from valprint.h.
207         * gdbtypes.c (get_array_bounds): Move here from valprint.c and
208         return 0 if the corresponding bounds of the type are undefined.
209         * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
210         * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
211         (val_print_array_elements): Use get_array_bounds to compute the number
212         of array elements instead of dividing the length of the array by the
213         length of the element types.
214         * valarith.c (vector_binop): Likewise.
215         * valops.c (value_cast): Likewise.
216         * c-valprint.c (c_val_print): Likewise.
217         * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
218
219 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
220
221         * valarith.c (value_pos, value_neg, value_complement): Handle
222         vector types.
223         * valops.c (value_one): Likewise.
224
225 2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
226
227         * value.h (value_non_lval): Declare.
228         * value.c (value_non_lval): New function.
229         * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
230         UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
231         non-lvalue.
232
233 2010-11-02  Doug Evans  <dje@google.com>
234
235         New python module gdb.printing, and new commands info pretty-printer,
236         enable pretty-printer, disable pretty-printer.
237         * NEWS: Mention them.
238         * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
239         gdb/command/__init__.py, gdb/command/pretty_printers.py.
240         * python/lib/gdb/__init__.py: Install pretty-printer commands.
241         * python/lib/gdb/printing.py: New file.
242         * python/lib/gdb/command/__init__.py: New file.
243         * python/lib/gdb/command/pretty_printers.py: New file.
244
245 2010-11-02  Tom Tromey  <tromey@redhat.com>
246
247         * NEWS: Mention Guile removal.
248         * defs.h (enum language) <language_scm>: Remove.
249         * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
250         scm-valprint.c.
251         (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
252         (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
253         * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
254         Remove.
255
256 2010-11-02  Doug Evans  <dje@google.com>
257
258         * top.c: #include "python/python.h".
259         (gdb_init): Add a comment regarding initialize_all_files.
260         Call finish_python_initialization at the end.
261         * python/python.h (finish_python_initialization): Declare.
262         * python/python.c (finish_python_initialization): New function.
263         (_initialize_python): Move python-implemented initialization there
264         and call it.
265         (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
266
267 2010-11-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
268
269         Revert:
270         2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
271                     Pedro Alves  <pedro@codesourcery.com>
272         * gdbthread.h (currently_stepping): New declaration.
273         * infrun.c (currently_stepping): Remove the forward declaration.
274         (currently_stepping): Make it global.
275         * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
276         variables tp and step, initialized them.  Pass STEP to to_resume.
277         Print also possibly "PTRACE_SINGLESTEP" if STEP.  Initialize LP->STEP.
278         * remote.c (currently_stepping_callback): New.
279         (remote_vcont_resume)
280         <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
281         New variable tp.  Call currently_stepping_callback and step such
282         thread.
283
284 2010-11-01  Hui Zhu  <teawater@gmail.com>
285
286         * tracepoint.c (tfile_xfer_partial): Change lma to vma.
287
288 2010-10-28  Hui Zhu  <teawater@gmail.com>
289
290         * tracepoint.c (trace_save): Change utp->actions to
291         utp->step_actions.
292
293 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
294
295         * (_FILE_OFFSET_BITS): Fix typo in comment.
296
297 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
298
299         * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
300         (PyEval_InitThreads): Remove duplicate. Define as nothing.
301         (PyEval_ReleaseLock): Define as nothing.
302
303 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
304
305         * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
306         by call to FILENAME_CMP.
307
308 2010-10-26  Joel Brobecker  <brobecker@adacore.com>
309
310         * dictionary.c (dict_hash): Move assignment out of if condition.
311
312 2010-10-22  Jie Zhang  <jie@codesourcery.com>
313
314         * Makefile.in (install): Remove dependency of install-only and
315         recursively invoke make for install-only.
316         * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
317         (install): Pass FLAGS_TO_PASS when recursively make install-only.
318
319 2010-10-20  Hui Zhu  <teawater@gmail.com>
320
321         * tracepoint.c (tfile_get_traceframe_address): Call
322         extract_signed_integer.
323         (tfile_trace_find): Call extract_signed_integer and
324         extract_unsigned_integer.  Change data_size to unsigned int.
325         (tfile_fetch_registers): Call extract_unsigned_integer.
326         (tfile_xfer_partial): Ditto.
327         (tfile_get_trace_state_variable_value): Call
328         extract_signed_integer and extract_unsigned_integer.
329
330 2010-10-20  Vladimir Prus  <vladimir@codesourcery.com>
331
332         * remote.c (remote_get_threadlist): If we got empty
333         response, bail out immediately, and don't emit any
334         warnings.
335
336 2010-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
337
338         * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
339         for "mov pc, REG" as well.
340         (thumb_instruction_changes_pc): Likewise.
341
342 2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>
343
344          PR C++/11500:
345         * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
346         * eval.c (evaluate_subexp_standard): Check for overload of
347         'operator->'.
348         * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
349         (value_x_unop): Ditto.
350         * valops.c: Include "exceptions.h".
351         (find_overload_match): Throw NOT_FOUND_ERROR.
352         (value_struct_elt): Ditto.
353
354 2010-10-19  Tom Tromey  <tromey@redhat.com>
355
356         * python/py-cmd.c (cmdpy_function): Unreference exception state.
357
358 2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>
359
360         * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
361         * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
362         for conversion.
363         Make all other conversions illegal.
364
365 2010-10-18  Doug Evans  <dje@google.com>
366
367         * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
368         assumptions of when this case happens.  Print "<unnamed typedef>".
369
370 2010-10-18  Tom Tromey  <tromey@redhat.com>
371
372         * valprint.c (val_print_string): Pass 'encoding' to
373         LA_PRINT_STRING.
374
375 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
376
377         Fix the `stopped language detection' testcase for gcc-4.5.
378         * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
379         * symfile.c (set_initial_language): Move variable filename to a more
380         inner block.  Prefer LANGUAGE_OF_MAIN.
381         * symtab.c (language_of_main): New variable.
382         (set_main_name): Always reset LANGUAGE_OF_MAIN.
383         * symtab.h (language_of_main): New declaration.
384
385 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
386             Pedro Alves  <pedro@codesourcery.com>
387
388         * gdbthread.h (currently_stepping): New declaration.
389         * infrun.c (currently_stepping): Remove the forward declaration.
390         (currently_stepping): Make it global.
391         * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
392         variables tp and step, initialized them.  Pass STEP to to_resume.
393         Print also possibly "PTRACE_SINGLESTEP" if STEP.  Initialize LP->STEP.
394         * remote.c (currently_stepping_callback): New.
395         (remote_vcont_resume)
396         <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
397         New variable tp.  Call currently_stepping_callback and step such
398         thread.
399
400 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
401
402         * infrun.c (follow_exec): Replace symbol_file_add_main by
403         symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
404         breakpoint_re_set.
405         * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
406         clear_symtab_users.
407         * objfiles.c (free_all_objfiles): Likewise.
408         * remote-m32r-sdi.c (m32r_load): Likewise.
409         * solib-som.c (som_solib_create_inferior_hook): Likewise.
410         * symfile.c (new_symfile_objfile): New comment for add_flags.  Call
411         clear_symtab_users with ADD_FLAGS.
412         (reread_symbols): Use parameter 0 for clear_symtab_users.
413         (clear_symtab_users): New parameter add_flags.  Do not call
414         breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
415         (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
416         * symtab.h (clear_symtab_users): New parameter add_flags.
417
418 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
419
420         Fix GCC false warning.
421         * varobj.c (value_get_print_value) <str_addr>: Initialize it.
422
423 2010-10-16  Pierre Muller  <muller@ics.u-strasbg.fr>
424
425         * p-typeprint.c (pascal_type_print_method_args): Fix problem in
426         display of type of method arguments.
427
428 2010-10-15  Tom Tromey  <tromey@redhat.com>
429
430         PR python/11948:
431         * varobj.c (value_get_print_value): Use val_print_string to print
432         lazy strings.
433         * python/py-prettyprint.c (print_string_repr): Use
434         val_print_string to print lazy strings.  Fix cleanup logic.
435         (print_children): Likewise.
436         * python/python-internal.h (gdbpy_extract_lazy_string): Update.
437         * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
438         Change return type to 'void', add 'addr' argument.
439         * value.h (val_print_string): Update.
440         * valprint.c (val_print_string): Add 'encoding' argument.
441         * printcmd.c (print_formatted): Update.
442         * p-valprint.c (pascal_val_print): Update.
443         * m2-valprint.c (print_unpacked_pointer): Update.
444         (m2_print_array_contents): Likewise.
445         * jv-valprint.c (java_value_print): Update.
446         * f-valprint.c (f_val_print): Update.
447         * c-valprint.c (c_val_print): Update.
448         * auxv.c (fprint_target_auxv): Update.
449
450 2010-10-15  Doug Evans  <dje@google.com>
451             Jan Kratochvil  <jan.kratochvil@redhat.com>
452
453         PR exp/12117
454         * gdbtypes.c (check_typedef): Clean up function comment.
455         Keep track of instance flags as we strip typedefs and create a new
456         type to preserve them if necessary.
457         * gdbtypes.h (type) <instance_flags>: Extend the comment.
458
459 2010-10-15  Pierre Muller  <muller@ics.u-strasbg.fr>
460
461         * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
462
463 2010-10-14  Sami Wagiaalla  <swagiaal@redhat.com>
464
465         * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
466         * gdbtypes.c (rank_one_type): Move type comparison code out of here
467         to...
468         (types_equal): ...here. And changed it as follows:
469         Outside of typedefs type must be of the same TYPE_CODE.
470         When compairing two pointers or references they are equal if their
471         targets are equal.
472         Correct pointer conversions.
473
474 2010-10-14  Pierre Muller  <muller@ics.u-strasbg.fr>
475
476         * p-lang.c (is_pascal_string_type): Avoid crashes on structures
477         having fields without names.
478
479 2010-10-13  Tom Tromey  <tromey@redhat.com>
480
481         * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
482
483 2010-10-13  Doug Evans  <dje@google.com>
484
485         New python module gdb.types.
486         * NEWS: Document it.
487         * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
488         * python/lib/gdb/types.py: New file.
489
490         * c-typeprint.c: Whitespace cleanup.
491         (cp_type_print_method_args): Remove unnecessary forward decl.
492         (cp_type_print_derivation_info): Ditto.
493         (c_type_print_varspec_prefix): Mark as static at definition.
494         (c_type_print_modifier): Fix arg descriptions.
495
496 2010-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
497
498         * python/py-breakpoint.c (bppy_set_condition): New comment.
499         * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
500         failed PyUnicode_Decode.
501         (cmdpy_completer): Skip element for failed
502         python_string_to_host_string.
503         (cmdpy_init): Return -1 on failed python_string_to_host_string.
504         * python/py-frame.c (frapy_read_var): Extend the function comment.
505         * python/py-function.c (fnpy_init): Return -1 on failed
506         python_string_to_host_string.
507         * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
508         the function comment.
509         (infpy_search_memory): Extend the function comment.  Remove the
510         PyErr_SetString call on already set error state.
511         * python/py-param.c (set_parameter_value): Extend the function
512         comment.  Return -1 on failed python_string_to_host_string, twice.
513         (set_attr): Extend the function comment.
514         (compute_enum_values): Extend the function comment.  New variable
515         back_to.  Protect self->enumeration by BACK_TO cleanups.  Return 0 on
516         failed python_string_to_host_string.
517         (get_doc_string): Call gdbpy_print_stack on failed
518         python_string_to_host_string.
519         (parmpy_init): Extend the function comment.
520         * python/py-prettyprint.c (pretty_print_one_value): Likewise.
521         (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
522         failed python_string_to_host_string.
523         * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
524         (valpy_binop, valpy_richcompare): Extend the function comment.
525         * python/python.c
526         (struct python_env) <error_type, error_value, error_traceback>: New
527         fields.
528         (restore_python_env): Handle PyErr_Occurred.  Call PyErr_Restore.
529         (ensure_python_env): Call PyErr_Fetch.
530         * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
531         failed convert_value_from_python.
532         (value_get_print_value): Call gdbpy_print_stack on failed
533         python_string_to_target_python_string.
534
535 2010-10-12  Tom Tromey  <tromey@redhat.com>
536
537         * python/py-prettyprint.c (search_pp_list): Fix error checking.
538
539 2010-10-12  Sami Wagiaalla  <swagiaal@redhat.com>
540
541         * gdbtypes.c (do_is_ancestor): New function.
542         (is_ancestor): Use do_is_ancestor.
543         (is_public_ancestor): Use do_is_ancestor.
544
545 2010-10-12  Pierre Muller  <muller@ics.u-strasbg.fr>
546
547         * ser-go32.c (struct dos_ops): Add missing fdopen field.
548
549 2010-10-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
550
551         * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
552
553 2010-10-11  Doug Evans  <dje@google.com>
554
555         * c-typeprint.c (c_type_print_modifier): Add note that this prints
556         the address space id too.
557
558 2010-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
559
560         Fix attaching to re-prelinked executables on ppc64.
561         * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
562         initialize it, try to adjust FILESZ field by it.
563
564 2010-10-08  Daniel Jacobowitz  <dan@codesourcery.com>
565
566         * tracepoint.c (merge_uploaded_trace_state_variables): Only print
567         messages if info_verbose.
568
569 2010-10-08  Ken Werner  <ken.werner@de.ibm.com>
570
571         * valops.c (value_cast): Handle vector types.
572         * valarith.c (value_binop): Widen scalar to vector if appropriate.
573
574 2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
575
576         * arm-tdep.c (thumb_expand_immediate): New function.
577         (thumb_instruction_changes_pc): Likewise.
578         (thumb2_instruction_changes_pc): Likewise.
579         (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
580         prologue parsing.  Improved support for optimized code.
581         (thumb_scan_prologue): Do not reply on line-number information,
582         use same heuristics as arm_scan_prologue insead.
583         (skip_prologue_function): Accept functions
584         "__tls_get_addr" and "__aeabi_read_tp".
585
586 2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
587             Daniel Jacobowitz  <dan@codesourcery.com>
588
589         * arm-tdep.c (thumb_in_function_epilogue_p)
590         (arm_in_function_epilogue_p): New.
591         (arm_gdbarch_init): Install arm_in_function_epilogue_p as
592         gdbarch_in_function_epilogue_p callback.
593
594 2010-10-07  Doug Evans  <dje@google.com>
595
596         * cc-with-index.sh (output_file): Default to a.out.
597
598         * dwarf2read.c (mapped_index): Rename member index_table to
599         symbol_table and index_table_slots to symbol_table_slots.
600         All uses updated.
601         (create_symbol_hash_table): Renamed from create_index_table.
602         All callers updated.
603         (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
604         (write_hash_table): Rename local index_table to symbol_hash_table.
605
606         * addrmap.h (addrmap_foreach_fn): New typedef.
607         (addrmap_foreach): Declare.
608         * addrmap.c (struct addrmap_funcs): New member foreach.
609         (addrmap_foreach): New function.
610         (addrmap_fixed_foreach): New function.
611         (addrmap_fixed_funcs): Update.
612         (struct mutable_foreach_data): New struct.
613         (addrmap_mutable_foreach_worker): New function.
614         (addrmap_mutable_foreach): New function.
615         (addrmap_mutable_funcs): Update.
616
617 2010-10-07  Paul Hilfinger  <hilfinger@adacore.com>
618
619         * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
620         more cases.
621
622 2010-10-07  Paul Hilfinger  <hilfinger@adacore.com>
623
624         * ada-lang.c (full_match): Declare.
625         (ada_match_name): Rename to match_name (we should avoid prefixing static
626         symbols with "ada_").
627         (match_name): New name for ada_match_name.
628         (struct ada_psym_data): Remove and replace with...
629         (struct match_data): User data for map_matching_symbols.
630         (ada_add_psyms): Remove.
631         (aux_add_nonlocal_symbols): New function, used as callback for
632         map_matching_symbols.
633         (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
634         symbols.
635         (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
636         (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
637         Rework to use map_matching_symbols instead of map_ada_symtabs.
638         (ada_lookup_symbol_list): Use add_nonlocal_symbols.
639         * psymtab.c: Include dependency on dictionary.h.
640         (match_partial_symbol): New function.
641         (ada_lookup_partial_symbol): Remove.
642         (map_block): New function, auxiliary to map_matching_symbols_psymtab.
643         (map_matching_symbols_psymtab): New function.
644         (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
645         * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
646
647 2010-10-06  Paul Hilfinger  <hilfinger@adacore.com>
648
649         * ada-lang.c (ada_match_name): Use new API for wild_match.
650         (wild_match): Change API to be consistent with that of strcmp_iw;
651         return 0 for a match, and switch operand order.
652         (full_match): New function.
653         (ada_add_block_symbols): Use dict_iter_match_{first,next} for
654         matching to allow use of hashing.
655         * dictionary.c (struct dict_vector): Generalize iter_name_first,
656         iter_name_next ot iter_match_first, iter_match_next.
657         (iter_name_first_hashed): Replace with iter_match_first_hashed.
658         (iter_name_next_hashed): Replace with iter_match_next_hashed.
659         (iter_name_first_linear): Replace with iter_match_first_linear.
660         (iter_name_next_linear): Replace with iter_match_next_linear.
661         (dict_iter_name_first): Re-implement to use dict_iter_match_first.
662         (dict_iter_name_next): Re-implement to use dict_iter_match_next.
663         (dict_iter_match_first): New function.
664         (dict_iter_match_next): New function.
665         (dict_hash): New function.
666         * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
667         * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
668
669 2010-10-06  Doug Evans  <dje@google.com>
670
671         * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
672
673 2010-10-06  Ken Werner  <ken.werner@de.ibm.com>
674
675         * dwarf2read.c (read_tag_const_type): Handle const arrays.
676
677 2010-10-06  Doug Evans  <dje@google.com>
678
679         * Makefile.in (REQUIRED_SUBDIRS): New var.
680         (subdir_do): Verify required subdir Makefiles exist.
681
682         Create subdir data-directory.
683         * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
684         data-directory/Makefile.in.
685         (SUBDIRS): Add data-directory.
686         (all): Remove xml-syscall-copy dependency.
687         (xml-syscall-copy): Moved to data-directory/Makefile.in as
688         stamp-syscalls.
689         (xml-syscall-install): Moved to data-directory/Makefile.in as
690         install-syscalls.
691         (install-only): Remove xml-syscall-install dependency.
692         (all-data-directory): New rule.
693         (data-directory/Makefile): New rule.
694         * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
695         * configure: Regenerate.
696         * data-directory/Makefile.in: New file.
697         * python/lib/gdb/__init__.py: New file.
698
699 2010-10-06  Joel Brobecker  <brobecker@adacore.com>
700
701         Fix ARI warnings in advance_wild_match.
702         * ada-lang.c (advance_wild_match): Delete local variable t2.
703         Adjust code accordingly.  Minor reformatting.
704
705 2010-10-06  Ken Werner  <ken.werner@de.ibm.com>
706
707         * gdbtypes.h (struct main_type): Remove flag_nottext.
708         (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
709         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
710         (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
711         * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
712         of TYPE_FLAG_NOTTEXT.
713         (init_type): Remove the initialization of the flag_nottext field.
714         (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
715         TYPE_FLAG_NOTTEXT.
716         * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
717
718 2010-10-04  Doug Evans  <dje@google.com>
719
720         * cc-with-index.sh: New file.
721
722         * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
723         function comment.
724         (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
725         (create_cus_from_index, create_addrmap_from_index): Ditto.
726         (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
727         (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
728         (dw2_do_expand_symtabs_matching): Ditto.
729         (eq_strtab_entry, create_strtab, add_string): Ditto.
730         (hash_strtab_entry): Ditto.
731         (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
732         (create_index_table, create_mapped_symtab, find_slot): Ditto.
733         (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
734         (write_hash_table, add_address_entry, write_psymbols): Ditto.
735         (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
736         (write_psymtabs_to_index): Ditto.
737
738 2010-10-04  Joel Brobecker  <brobecker@adacore.com>
739
740         * ada-lang.c: #include "value.h".
741         (ensure_lval): Delete advance declaration.  Remove gdbarch and sp
742         arguments.  Implement using value_allocate_space_in_inferior
743         instead of allocating memory from the stack.
744         (make_array_descriptor): Remove gdbarch and sp parameters.  Update
745         calls to ensure_lval.
746         (ada_convert_actual): Remove gdbarch and sp parameters.  Update
747         calls to make_array_descriptor and ensure_lval.
748         * ada-lang.h (ada_convert_actual): Update declaration.
749         * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
750
751 2010-10-04  Doug Evans  <dje@google.com>
752
753         * python/python.c (_initialize_python): Define new function
754         GdbSetPythonDirectory in python.  Use it to update sys.path and
755         gdb.__path__.
756
757 2010-10-03  Paul Hilfinger  <hilfinger@adacore.com>
758
759         * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
760         incorporating and generalizing print_record_field_types.
761         (print_record_field_types): Change return value and update comment.
762         Re-implement using print_selected_record_field_types.
763         (print_choices): Print "=>" here.
764         Handle case of unencoded variant branch.
765         (print_variant_clauses): Reformat comment.
766         Special-case unencoded variant branch.
767
768 2010-10-03  Paul Hilfinger  <hilfinger@adacore.com>
769
770         * ada-lang.c (wild_match): Reimplement.
771         Change API to eliminate unused length argument, reverse arguments and
772         make 0 the 'true' return value.
773         (advance_wild_match): New auxiliary function for wild_match to improve
774         readability.
775         (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
776         * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
777         API for wild_match.
778         * symfile.h (map_ada_symtabs): Modify declaration to use new API for
779         wild_match.
780         * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
781
782 2010-10-01  Doug Evans  <dje@google.com>
783
784         * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
785         for `save gdb-index' command.
786
787 2010-10-01  Tom Tromey  <tromey@redhat.com>
788
789         * symfile.h (allocate_symtab): Update.
790         * symfile.c (allocate_symtab): Make 'filename' const.
791         * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
792         (add_psymbol_to_list): Likewise.
793         * psympriv.h (struct partial_symtab) <filename, dirname>: Now
794         const.
795         (add_psymbol_to_list): Update.
796         * mdebugread.c (new_symtab): Make 'name' const.
797         (psymtab_to_symtab_1): Make 'filename' const.
798         * elfread.c (elfstab_offset_sections): Update.
799         * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
800         (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
801         (psymtab_include_file_name): Update.
802         * dbxread.c (find_stab_function_addr): Make 'filename' const.
803         * buildsym.h (start_subfile): Update.
804         * buildsym.c (start_subfile): Make arguments const.
805
806 2010-09-30  Ali Lakhia  <lakhia@alumni.utexas.net>
807
808         * fork-child.c (breakup_args): Fix crash if shell forking is
809         disabled at compile time.
810
811 2010-10-01  Joel Brobecker  <brobecker@adacore.com>
812
813         * ada-lang.c (desc_bounds): Add handling of the case where
814         the P_BOUNDS field is a pointer to a stub.
815         (desc_data_target_type): Same for P_ARRAY field.
816         (ada_check_typedef): Strip the typedef layers from the type
817         found by ada_find_any_type.
818
819 2010-10-01  Joel Brobecker  <brobecker@adacore.com>
820
821         * sparc-tdep.c (sparc32_frame_align): New function.
822         (sparc32_gdbarch_init): Set the frame_align gdbarch method.
823         * sparc64-tdep.c (sparc64_frame_align): New function.
824         (sparc64_gdbarch_init): Set the frame_align gdbarch method.
825
826 2010-09-30  H.J. Lu  <hongjiu.lu@intel.com>
827
828         * defs.h (MAX_REGISTER_SIZE): Set to 64.
829
830 2010-09-30  Tom Tromey  <tromey@redhat.com>
831
832         * symfile.h (struct sym_fns) <next>: Remove.
833         (add_symtab_fns): Update.
834         * symfile.c (sym_fns_ptr): New typedef.
835         (symtab_fns): Now a VEC.
836         (add_symtab_fns): Update.  Change argument type.
837         (find_sym_fns): Update.  Change return type.
838         (get_symfile_segment_data): Update.
839         * objfiles.h (struct objfile) <sf>: Now const.
840         * somread.c (som_sym_fns): Now const.  Update.
841         * xcoffread.c (xcoff_sym_fns): Now const.  Update.
842         * mipsread.c (ecoff_sym_fns): Now const.  Update.
843         * machoread.c (macho_sym_fns): Now const.  Update.
844         * elfread.c (elf_sym_fns): Now const.  Update.
845         (elf_sym_fns_gdb_index): Likewise.
846         * dbxread.c (aout_sym_fns): Now const.  Update.
847         * coffread.c (coff_sym_fns): Now const.  Update.
848
849 2010-09-30  Tom Tromey  <tromey@redhat.com>
850
851         * value.c (value_primitive_field): Take 'offset' into account for
852         packed field.
853
854 2010-09-30  Tom Tromey  <tromey@redhat.com>
855
856         * completer.c (count_struct_fields): Handle anonymous structs and
857         unions.
858         (add_struct_fields): Likewise.
859
860 2010-09-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
861
862         Fix printing parameters of inlined functions.
863         * ada-lang.c (is_known_support_routine)
864         (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
865         for find_frame_funname.
866         * python/py-frame.c (frapy_name): Likewise.
867         * stack.c (find_frame_funname): New parameter funcp.  Update the
868         function comment.  Fill it in.
869         (print_frame): New variable func.  Initialize it by
870         find_frame_funname.  Print arguments only if FUNC is not NULL.  Use
871         FUNC as the parameter of print_args_stub.
872         * stack.h (find_frame_funname): New parameter funcp.  Remove the
873         function declaration comment.
874
875 2010-09-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
876
877         PR corefiles/12071.
878         * inferior.c (have_live_inferiors): New variables old_chain, inf and
879         tp.  Iterate INFERIOR_LIST and call target_has_execution.
880
881 2010-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
882
883         Fix GDB crash on inferior calls with self-referencing classes.
884         * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
885         member fields.
886
887 2010-09-29  Doug Evans  <dje@google.com>
888
889         Workaround for gcc/45682.
890         * dwarf2read.c (partial_die_info): New fields fixup_called,
891         linkage_name.
892         (guess_partial_die_structure_name): Renamed from guess_structure_name.
893         Move definition next to use.  Use linkage_name to determine if class
894         is in a namespace.  All callers updated.
895         (fixup_partial_die): Return early if already called.
896         Set fixup_called when done.
897         (guess_full_die_structure_name): New function.
898         (determine_prefix): Call it for class/struct/union dies if c++ and
899         .debug_types section is present and parent is DW_TAG_compile_unit.
900
901 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
902
903         * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
904         (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
905
906 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
907
908         * NEWS: Announce Ravenscar Profile support.
909
910 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
911             Jerome Guitton  <guitton@adacore.com>
912
913         * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
914         New files.
915         * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
916         ravenscar-sparc-thread.o to gdb_target_obs.
917
918 2010-09-28  Joel Brobecker  <brobecker@adacore.com>
919
920         * ada-tasks.c (iterate_over_live_ada_tasks): New function.
921         * ada-lang.h (iterate_over_live_ada_tasks): Declare.
922
923 2010-09-27  Pierre Muller  <muller@ics.u-strasbg.fr>
924
925         * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
926         (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
927         skip_main_prologue method.
928
929 2010-09-27  Tom Tromey  <tromey@redhat.com>
930
931         * dwarf2read.c (dwarf2_read_index): Only allow version 3.
932         (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
933         Only emit a given psymbol once.
934         (struct signatured_type_index_data) <psyms_seen>: New field.
935         (write_one_signatured_type): Update.
936         (cleanup_htab): New function.
937         (write_psymtabs_to_index): Update.  Create psyms_seen hash.  Bump
938         version to 3.
939         (save_gdb_index_command): Update index documentation.
940
941 2010-09-27  Tom Tromey  <tromey@redhat.com>
942
943         * bcache.c (expand_hash_table): Use hash_function, not hash.
944
945 2010-09-27  Tom Tromey  <tromey@redhat.com>
946
947         * gdb_wchar.h: Change minimum libiconv to 0x108.
948
949 2010-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
950
951         Fix lost siginfo_t for inferior calls.
952         * infrun.c
953         (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
954         (save_inferior_thread_state): New variables regcache, gdbarch and
955         siginfo_data.  Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
956         Move INF_STATE allocation later, pre-clear it.  Initialize REGISTERS
957         using REGCACHE.
958         (restore_inferior_thread_state): New variables regcache and gdbarch.
959         Restore SIGINFO_DATA for matching GDBARCH.  Restore REGISTERS using
960         REGCACHE.  Free also SIGINFO_DATA.
961
962 2010-09-24  Tom Tromey  <tromey@redhat.com>
963
964         * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
965         MAYBE_SWAPs.
966         (dw2_map_symbol_names): Likewise.
967
968 2010-09-24  Sami Wagiaalla  <swagiaal@redhat.com>
969
970         * valops.c (find_oload_champ_namespace_loop): replace incorrect
971         discard_cleanups do_cleanups.
972
973 2010-09-24  Pedro Alves  <pedro@codesourcery.com>
974
975         PR gdb/11842
976
977         * amd64-linux-nat.c (compat_siginfo_from_siginfo)
978         (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
979         si_code is < 0.  Check for si_code == SI_TIMER before checking for
980         si_code < 0.
981
982 2010-09-24  Pedro Alves  <pedro@codesourcery.com>
983
984         * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
985
986 2010-09-22  Joel Brobecker  <brobecker@adacore.com>
987
988         * ada-tasks.c (read_atcb): Do not compute the task ptid when
989         debugging a core file.
990
991 2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
992
993         Code cleanup.
994         * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
995         (free_objfile) <objfile->name != NULL>: Remove the conditional around
996         xfree.
997         * objfiles.h (struct objfile) <name>: New comment it is never NULL.
998         * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
999         Remove.
1000         * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1001         Remove the conditional.
1002         * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1003
1004 2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1005
1006         * main.c: Include objfiles.h.
1007         (captured_main): New variable objfile.  Call
1008         load_auto_scripts_for_objfile for ALL_OBJFILES.
1009
1010 2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1011
1012         * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1013         DW_TAG_constant.
1014
1015 2010-09-22  Joel Brobecker  <brobecker@adacore.com>
1016
1017         * dwarf2read.c (scan_partial_symbols): Add handling of
1018         DW_TAG_constant DIEs.
1019         (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1020
1021 2010-09-22  Joel Brobecker  <brobecker@adacore.com>
1022
1023         * configure.ac: Add support for --enable-gdbserver.
1024         * configure: Regenerate.
1025
1026 2010-09-22  Sami Wagiaalla  <swagiaal@redhat.com>
1027
1028         PR C++/12028
1029         * valops.c (find_oload_champ_namespace_loop): removed incorrect
1030         'old_cleanups' reassignment.
1031
1032 2010-09-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1033
1034         * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1035         characters.
1036
1037 2010-09-16  Phil Muldoon  <pmuldoon@redhat.com>
1038
1039         PR mi/11407
1040         * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1041         read_var_value and common_val_print and print a warning.
1042
1043 2010-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1044
1045         * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1046         keep the list in alphabetical order.  Use longer e-mail address.
1047
1048 2010-09-15  Tom Tromey  <tromey@redhat.com>
1049
1050         * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1051
1052 2010-09-15  Tom Tromey  <tromey@redhat.com>
1053
1054         * charset.c (iconv_open): New define.
1055         (iconv): Likewise.
1056         (iconv_close): Likewise.
1057         (phony_iconv_open): Add "phony_" prefix.
1058         (phony_iconv_close): Likewise.
1059         (phony_iconv): Likewise.
1060         * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1061         Change how INTERMEDIATE_ENCODING is defined.
1062
1063 2010-09-15  Doug Evans  <dje@google.com>
1064
1065         * dwarf2read.c (struct die_info): Fix comment.
1066
1067 2010-09-15  Alan Modra  <amodra@gmail.com>
1068
1069         PR 4606
1070         * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1071         than setting SEC_NEVER_LOAD on sections that need not be copied.
1072
1073 2010-09-14  Tom Tromey  <tromey@redhat.com>
1074
1075         * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1076         (start_psymtab_common, allocate_psymtab, discard_psymtab):
1077         Declare.
1078         * symfile.h (extend_psymbol_list): Remove.
1079         (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1080         (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1081         * psymtab.c (extend_psymbol_list): Move earlier.  Now static.
1082
1083 2010-09-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
1084
1085         * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1086         Update the comment.
1087
1088 2010-09-14  Tom Tromey  <tromey@redhat.com>
1089
1090         PR symtab/8399:
1091         * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1092         for unrecognized frame base expression.
1093
1094 2010-09-14  Tom Tromey  <tromey@redhat.com>
1095
1096         PR exp/11803:
1097         * value.c (value_static_field): Use value_of_variable.
1098
1099 2010-09-14  Pierre Muller  <muller@ics.u-strasbg.fr>
1100
1101         * m32r-rom.c: Replace winsock.h with winsock2.h header.
1102         * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1103
1104 2010-09-13  Sami Wagiaalla  <swagiaal@redhat.com>
1105
1106         PR symtab/11992:
1107         * c-exp.y (classify_name): Check is_a_member_of_this before returning
1108         UNKNOWN_CPP_NAME.
1109
1110 2010-09-13  Joel Brobecker  <brobecker@adacore.com>
1111
1112         * NEWS: Add x86-lynxos to the list of platforms supported by
1113         gdbserver.
1114
1115 2010-09-13  Joel Brobecker  <brobecker@adacore.com>
1116
1117         * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1118
1119 2010-09-13  Tom Tromey  <tromey@redhat.com>
1120
1121         * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1122
1123 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1124
1125         * i386-tdep.c (i386_ymm_type): Set type name to
1126         builtin_type_vec256i.
1127
1128 2010-09-12  Michael Snyder  <msnyder@vmware.com>
1129
1130         * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1131
1132 2010-09-12  H.J. Lu  <hongjiu.lu@intel.com>
1133
1134         * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1135
1136 2010-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1137
1138         * amd64-tdep.c (amd64_register_name): Removed.
1139         (amd64_init_abi): Don't call set_gdbarch_register_name.
1140
1141         * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1142
1143         * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1144
1145 2010-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1146             Paul Bolle  <pebolle@tiscali.nl>
1147
1148         Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1149         * cli-logging.c (struct saved_output_files) <targerr>: New.
1150         (set_logging_redirect, pop_output_files, handle_redirections):
1151         Redirect also gdb_stdtargerr.
1152         * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1153         declarations.
1154         * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1155         also gdb_stdtargerr.
1156         * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1157         to the top.  Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1158         Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1159         * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1160         * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1161         New functions.
1162
1163 2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
1164
1165         * hppa-tdep.c (unwind_command): Use host_address_to_string function
1166         to display a host address.
1167         * monitor.c (monitor_read_memory): Likewise.
1168         * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1169
1170 2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
1171
1172         * coffread.c (struct coff_symbol): Change c_value type from `long' to
1173         `CORE_ADDRESS' as it might contain target addresses.
1174
1175 2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
1176
1177         * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1178         before cast to pointer to avoid warning.
1179
1180 2010-09-09  Kevin Buettner  <kevinb@redhat.com>
1181
1182         * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1183         type to be signed.
1184
1185 2010-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
1186
1187         * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1188         anonymous class partial DIEs.
1189
1190 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1191
1192         * dwarf2read.c (dwarf2_compute_name): Check that the first
1193         argument is a pointer.
1194
1195 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1196
1197         * dwarf2read.c (read_func_scope, read_structure_type)
1198         (read_common_block): Check for a NULL return from new_symbol.
1199
1200 2010-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
1201
1202         * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1203
1204 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1205
1206         * dwarf2read.c (read_structure_type): Move processing of
1207         fields and member functions from here...
1208         (process_structure_scope): ... to here.
1209
1210 2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1211
1212         * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1213         the domain type.
1214         (gnuv3_make_method_ptr): Likewise.
1215
1216 2010-09-08  Tom Tromey  <tromey@redhat.com>
1217
1218         * breakpoint.c (create_breakpoint): Add missing _().
1219
1220 2010-09-08  Doug Evans  <dje@google.com>
1221
1222         * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1223
1224 2010-09-08  Tom Tromey  <tromey@redhat.com>
1225
1226         Revert:
1227         2010-09-01  Tom Tromey  <tromey@redhat.com>
1228         * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1229         symtab.h: Revert earlier change.
1230
1231 2010-09-09  Sami Wagiaalla  <swagiaal@redhat.com>
1232
1233         * psymtab.c (add_psymbol_to_bcache): Initialize
1234         obj_section.
1235         memset psymbol.ginfo.value to 0.
1236
1237 2010-09-06  Pedro Alves  <pedro@codesourcery.com>
1238
1239         * infrun.c (resume): Extend comment on ignoring single-step
1240         requests on vfork parents waiting for a vfork-done.
1241
1242 2010-09-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1243             Pedro Alves  <pedro@codesourcery.com>
1244
1245         * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1246         is NULL.
1247         * fork-child.c (startup_inferior) <resume_signal>: Use enum
1248         target_signal type.
1249         * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1250         calling strsignal.  Use enum target_signal type for saved_signo.
1251         (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1252         (linux_nat_wait_1): Use enum target_signal type for signo.  Use
1253         target_signal_to_host before calling strsignal.
1254         * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1255         TARGET_SIGNAL_0.
1256
1257 2010-09-06  Pedro Alves  <pedro@codesourcery.com>
1258             Jan Kratochvil  <jan.kratochvil@redhat.com>
1259
1260         * common/signals.c (ANY): Remove.
1261         (SET): No longer use ANY.
1262
1263 2010-09-06  Yao Qi  <yao@codesourcery.com>
1264
1265         * infrunc(resume): When inferior is waiting_for_vfork_done,
1266         clear step and don't use displaced stepping.
1267
1268 2010-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
1269
1270         * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1271         value specially.
1272
1273 2010-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1274
1275         Code cleanup - split print_stop_reason.
1276         * infrun.c (enum inferior_stop_reason): Remove.
1277         (print_stop_reason): Remove by splitting into ...
1278         (print_exited_reason, print_signal_exited_reason)
1279         (print_no_history_reason, print_signal_received_reason)
1280         (print_end_stepping_range_reason): ... these new functions.  Update
1281         the preceding comment.
1282         (handle_inferior_event): Change the calls to print_exited_reason,
1283         print_signal_exited_reason, print_no_history_reason,
1284         print_signal_received_reason, print_end_stepping_range_reason.
1285         (handle_step_into_function, handle_step_into_function_backward):
1286         Change the calls to print_end_stepping_range_reason.
1287
1288 2010-09-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1289
1290         * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1291         * cli-out.c: Include vec.h.
1292         (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1293         variable stream, initialize it, use it.
1294         (cli_redirect): New function comment.  Replace the stream and
1295         original_stream fields by the new streams field.  Remove the
1296         original_stream != NULL conditional, assert error on NULL instead.
1297         (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1298         (cli_out_data_ctor): Assert non-NULL stream.  Replace the stream and
1299         original_stream fields by the new streams field.
1300         (cli_out_set_stream): Replace the stream field by the new streams
1301         field.
1302         * cli-out.h: Include vec.h.
1303         (ui_filep): New typedef, call DEF_VEC_P for it.
1304         (struct cli_ui_out_data): Replace the stream and original_stream
1305         fields by the new streams field.
1306         * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1307         NULL first.  Extend the comment.
1308         (handle_redirections): Call ui_out_redirect with output.
1309         * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1310         calls outside of the TRY_CATCH block.
1311
1312 2010-09-03  Joel Brobecker  <brobecker@adacore.com>
1313
1314         GDB 7.2 released.
1315
1316 2010-09-02  Joel Brobecker  <brobecker@adacore.com>
1317
1318         Back out the following change:
1319         | 2010-06-29  Hui Zhu  <teawater@gmail.com>
1320         | * record.c (set_record_pic_cmdlist,
1321         | show_record_pic_cmdlist): New variables.
1322         | (set_record_pic_command,
1323         | show_record_pic_command): New functions.
1324         | (record_pic_function, record_pic_line, record_pic_enum,
1325         | set_record_pic_type, record_pic_hide_nofunction,
1326         | record_pic_hide_nosource, record_pic_hide_same): New variables.
1327         | (record_pic_fputs): New function.
1328         | (function_list, node_list, edge_list): New struct.
1329         | (function_list, node_list, edge_list): New variables.
1330         | (record_pic_cleanups, record_pic_node,
1331         | record_pic_edge, cmd_record_pic): New functions.
1332         | (_initialize_record): Add new commands for record pic.
1333
1334 2010-09-02  Daniel Jacobowitz  <dan@codesourcery.com>
1335
1336         * config.in, configure: Regenerated.
1337         * configure.ac: Check for waitpid.
1338         * ser-pipe.c (pipe_close): Wait for the program to exit.
1339
1340 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1341
1342         * cli/cli-logging.c: Include gdb_assert.h.
1343         (set_logging_overwrite): New function.
1344         (logging_redirect): New comment.
1345         (logging_no_redirect_file, set_logging_redirect)
1346         (pop_output_files) <logging_no_redirect_file>: New.
1347         (handle_redirections) <!logging_redirect>: New variable
1348         no_redirect_file.  Remove file autoclose for tee_file_new.  No longer
1349         discard cleanup for the close of former OUTPUT.  Set
1350         LOGGING_NO_REDIRECT_FILE.
1351         (handle_redirections) <logging_redirect>: gdb_assert
1352         LOGGING_NO_REDIRECT_FILE.
1353         (show_logging_command) <logging_redirect handling>: Adjust messages
1354         for SAVED_FILENAME not NULL.
1355         (_initialize_cli_logging): Install set_logging_overwrite and
1356         set_logging_redirect.
1357
1358 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1359
1360         * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1361
1362 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1363
1364         * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1365         (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1366         add $(GDB_WARN_CFLAGS_NO_FORMAT).
1367         (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1368
1369 2010-09-02  Yao Qi  <yao@codesourcery.com>
1370
1371         * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1372         number from a WIFSIGNALED status.
1373
1374 2010-09-01  Tom Tromey  <tromey@redhat.com>
1375
1376         * symtab.h (lookup_type_symbol): Declare.
1377         * symtab.c (lookup_symbol_in_language_full): Rename from
1378         lookup_symbol_in_language.  Add 'for_type' argument.
1379         (lookup_symbol_in_language): New function.
1380         (lookup_type_symbol): Likewise.
1381         (lookup_symbol_aux): Add 'for_type' argument.
1382         (match_symbol_aux): New function.
1383         (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1384         (match_transparent_type): New function.
1385         (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1386         * symfile.h (struct quick_symbol_functions)
1387         <pre_expand_symtabs_matching>: Remove.
1388         <expand_one_symtab_matching>: New field.
1389         * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1390         (pre_expand_symtabs_matching_psymtabs): Remove.
1391         (psym_functions): Update.
1392         * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1393         * dwarf2read.c (dw2_lookup_symbol): Update comment.
1394         (dw2_pre_expand_symtabs_matching): Remove.
1395         (dw2_expand_one_symtab_matching): New function.
1396         (dwarf2_gdb_index_functions): Update.
1397
1398 2010-09-01  Joel Brobecker  <brobecker@adacore.com>
1399
1400         * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1401
1402 2010-09-01  Marc Khouzam  <marc.khouzam@ericsson.com>
1403
1404         * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1405         as a feature reported by -list-target-features.
1406
1407 2010-09-01  Joel Brobecker  <brobecker@adacore.com>
1408
1409         * features/Makefile (WHICH): Add rs6000/powerpc-32.
1410         (powerpc-32.o, powerpc-32.c): New rules.
1411         (clean): Also remove powerpc-32.c.
1412         * regformats/rs6000/powerpc-32.dat: Generate.
1413
1414 2010-08-31  Sami Wagiaalla  <swagiaal@redhat.com>
1415
1416         * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1417         psymbol_bcache_init.
1418         * psymtab.h (psymbol_bcache_init): New function prototype.
1419         (psymbol_bcache_free): New function prototype.
1420         (psymbol_bcache_get_bcache): New function prototype.
1421         * psymtab.c (psymbol_bcache_init): New function.
1422         (psymbol_bcache_free): New function.
1423         (psymbol_bcache_full): New function.
1424         (psymbol_bcache_get_bcache): New function.
1425         (add_psymbol_to_bcache): use psymbol_bcache_full.
1426         * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1427         psymbol_bcache.
1428         * symmisc.c (print_symbol_bcache_statistics): Updated.
1429         (print_objfile_statistics): Updated.
1430         * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1431         psymbol_cache.
1432         (free_objfile): Use psymbol_bcache_free.
1433
1434 2010-08-31  Tom Tromey  <tromey@redhat.com>
1435
1436         PR c++/11961:
1437         * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1438         Don't set TYPE_NAME on the type.
1439
1440 2010-08-31  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
1441
1442         * infrun.c (set_exec_direction_func): Error out if target does not
1443         support reverse execution.
1444
1445 2010-08-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1446
1447         Make linux_get_siginfo_type `type *' unique.
1448         * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1449         (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1450         (linux_get_siginfo_type): New variable linux_gdbarch_data.  Initialize
1451         it.  Use linux_gdbarch_data->siginfo_type as a persistent storage.
1452         (_initialize_linux_tdep): New.
1453
1454 2010-08-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1455
1456         Code cleanup.
1457         * defs.h (find_memory_region_ftype): New typedef.
1458         (exec_set_find_memory_regions): Use it.
1459         * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1460         * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1461         * gcore.c (objfile_find_memory_regions): Likewise.
1462         * gnu-nat.c (gnu_find_memory_regions): Likewise.
1463         * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1464         * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1465         (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1466         find_memory_region_ftype.
1467         (insert_dbx_link_bpt_in_region): Likewise.
1468         (iterate_over_mappings): Likewise.  Drop the comment part about the
1469         function prototype.
1470         (find_memory_regions_callback): Use find_memory_region_ftype.
1471         (proc_find_memory_regions): Likewise.
1472         (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1473         find_memory_region_ftype.
1474         * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1475         * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
1476
1477 2010-08-31  Sami Wagiaalla  <swagiaal@redhat.com>
1478
1479         * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
1480         'static partial_symbol psymbol'.
1481         (psymbol_hash): New function.
1482         (psymbol_compare): New function.
1483         * bcache.c (hash_continue): New.
1484         (hash): Use hash_continue.
1485         * bcache.c: Add hash_function and compare_function
1486         pointers to bcache struct.
1487         (bcache_full): Use bcache->hash_function, and
1488         bcache->compare_function.
1489         (bcache_compare): New function.
1490         (bcache_xmalloc): Take hash_function and
1491         compare_function arguments and initialize the
1492         bcach's pointers.
1493         Updated comment.
1494         * objfiles.c (allocate_objfile): Updated.
1495         * symfile.c (reread_symbols): Updated.
1496         * python/py-type.c (typy_richcompare): Updated.
1497
1498 2010-08-30  Andre Poenitz  <andre.poenitz@nokia.com>
1499             Tom Tromey  <tromey@redhat.com>
1500
1501         PR python/11792:
1502         * python/py-value.c (valpy_get_dynamic_type): New function.
1503         (value_object_getset): Add "dynamic_type".
1504         (valpy_get_type): Fail on error.
1505
1506 2010-08-30  Yao Qi  <yao@codesourcery.com>
1507
1508         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
1509         (arm_linux_syscall_next_pc): New.
1510         (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead. 
1511         (arm_linux_init_abi): Initialize syscall_next_pc.
1512         * arm-tdep.c (thumb_get_next_pc_raw):  Get next pc of SWI in Thumb mode.
1513         (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
1514         * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc. 
1515         Declare arm_frame_is_thumb.
1516
1517 2010-08-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
1518
1519         Code cleanup.
1520         * breakpoint.c (bpstat_alloc): Remove unused prototype.
1521         (bpstat_alloc): Change parameters cbs to bs_link_pointer.  Adjust the
1522         code.
1523         (bpstat_stop_status): Change root_bs into bs_head and bs_link.  Adjust
1524         calls of bpstat_alloc.  Remove explicit bs chain termination.
1525
1526 2010-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1527
1528         Code cleanup.
1529         * linux-nat.c (pull_pid_from_list): Rename status to statusp.
1530         (my_waitpid): Likewise.
1531
1532 2010-08-27  Doug Evans  <dje@google.com>
1533
1534         * dwarf2read.c (dw2_require_line_header): Read from .debug_types
1535         as appropriate.
1536
1537 2010-08-27  Tom Tromey  <tromey@redhat.com>
1538
1539         * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1540         TYPE_FIELD_IGNORE_BITS.
1541
1542 2010-08-27  Doug Evans  <dje@google.com>
1543
1544         * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1545         the order they're defined in.  munmap .debug_types buffer.
1546
1547 2010-08-26  Doug Evans  <dje@google.com>
1548
1549         * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1550         (dw2_forget_cached_source_info): Rename local cu to per_cu.
1551         (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1552         (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1553         (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1554         (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1555         (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
1556         (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1557         (write_psymtabs_to_index): Ditto.
1558
1559 2010-08-26  Pedro Alves  <pedro@codesourcery.com>
1560
1561         * NEWS: Mention libthread_db debugging with core files.
1562
1563 2010-08-26  Doug Evans  <dje@google.com>
1564
1565         * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1566         forward decl.  Pass pst->dirname to dwarf_decode_lines.
1567         (psymtab_include_file_name): New function.
1568         (dwarf_decode_lines): Call it.  Update comments.
1569
1570 2010-08-25  Pedro Alves  <pedro@codesourcery.com>
1571
1572         * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1573         compilation unit being different from target die's.
1574
1575 2010-08-24  Doug Evans  <dje@google.com>
1576
1577         PR symtab/11942
1578         * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1579         debug_types_type_hash.
1580         (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1581         All uses updated.
1582         (lookup_die_type): Renamed from tag_type_to_tag.  First look in
1583         appropriate type_hash table.  All callers updated.
1584         (allocate_signatured_type_table): Renamed from
1585         allocate_signatured_type_hash_table.  All callers updated.
1586         (create_signatured_type_table_from_index): Renamed from
1587         create_signatured_type_hash_from_index.  All callers updated.
1588         (read_die_type): Add comment.  Move actual reading to ...
1589         (read_die_type_1): ... here.  New function.
1590         (follow_die_ref_or_sig): Tweak comment.
1591         (set_die_type): Rewrite to use appropriate choice of
1592         debug_info_type_hash or debug_types_type_hash.
1593         (get_die_type_at_offset): New function.
1594         (get_die_type): Call it.
1595
1596 2010-08-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1597
1598         * python/py-type.c (typy_richcompare): Initialize worklist.
1599
1600 2010-08-24  Daniel Jacobowitz  <dan@codesourcery.com>
1601             Kazu Hirata  <kazu@codesourcery.com>
1602             Jonathan Larmour  <jifl@eCosCentric.com>
1603
1604         * arm-tdep.c: Include features/arm-with-m.c.
1605         (arm_psr_thumb_bit): New.  Update all uses of CPSR_T to
1606         call this function.
1607         (arm_pc_is_thumb): Add a gdbarch argument.  Update all callers.
1608         Check is_m after force-mode.
1609         (arm_gdbarch_init): Check the binary before the target description.
1610         Add check for M profile attribute.  If we have an M-profile device,
1611         but no target register description, use arm-with-m.  Recognize the
1612         new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1613         (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1614         * arm-tdep.h (XPSR_T): Define.
1615         (struct gdbarch_tdep): Add is_m member.
1616         * features/arm-m-profile.xml, features/arm-with-m.c,
1617         features/arm-with-m.xml: New files.
1618
1619 2010-08-23  Doug Evans  <dje@google.com>
1620
1621         * dwarf2read.c (read_structure_type): Add comment.
1622         (read_enumeration_type): Add comment.
1623         (process_enumeration_scope): Move definition of some locals
1624         closer to their use.
1625         (read_namespace_type): Add comment.
1626         (set_die_type): Fix typo in comment.
1627
1628 2010-08-23  Tom Tromey  <tromey@redhat.com>
1629
1630         PR python/11145:
1631         * python/py-value.c: Include expression.h.
1632         (valpy_do_cast): New function.
1633         (valpy_cast): Use it.
1634         (valpy_dynamic_cast): New function.
1635         (valpy_reinterpret_cast): Likewise.
1636         (value_object_methods): Add dynamic_cast, reinterpret_cast.
1637
1638 2010-08-23  Tom Tromey  <tromey@redhat.com>
1639
1640         PR python/11391:
1641         * python/py-value.c (valpy_nonzero): Don't throw error for other
1642         Value types.
1643
1644 2010-08-23  Tom Tromey  <tromey@redhat.com>
1645
1646         PR python/10676:
1647         * python/py-type.c: Include bcache.h, vec.h.
1648         (struct type_equality_entry): New.
1649         (compare_strings): New function.
1650         (check_types_equal): Likewise.
1651         (check_types_worklist): Likewise.
1652         (typy_richcompare): Likewise.
1653         (type_object_type): Set tp_richcompare field.
1654
1655 2010-08-23  Tom Tromey  <tromey@redhat.com>
1656
1657         PR python/10953:
1658         * python/py-type.c (typy_fields): Call check_typedef.
1659         (typy_template_argument): Add TRY_CATCH.
1660
1661 2010-08-23  Tom Tromey  <tromey@redhat.com>
1662
1663         PR python/11915:
1664         * python/py-type.c (typy_array): New function.
1665         (type_object_methods): Add "array".
1666
1667 2010-08-20  Pedro Alves  <pedro@codesourcery.com>
1668
1669         * python/python.c: Include "serial.h".
1670         (gdbpy_event_fds): Change type to `struct serial *' a array from
1671         int array.
1672         (gdbpy_run_events): Change parameters.  Use serial_readchar in
1673         place of read.
1674         (gdbpy_post_event): Use serial_write in place of write.
1675         (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1676         serial_async in place of add_file_handler.
1677
1678 2010-08-20  Pedro Alves  <pedro@codesourcery.com>
1679
1680         * serial.h (gdb_pipe, serial_pipe): Declare.
1681         * serial.c (serial_interface_lookup): Take a const char pointer.
1682         (serial_fdopen): Rename to ...
1683         (serial_fdopen_ops): ... this.  Add an OPS parameter and use it.
1684         Call the OPS' fdopen function if there is one.
1685         (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1686         (serial_pipe): New.
1687         (struct serial_ops) <fdopen>: New field.
1688
1689         * ser-mingw.c (free_pipe_state):
1690         (free_pipe_state): Close output on non-pex pipes.
1691         (pipe_windows_fdopen): New.
1692         (gdb_pipe): New.
1693         (_initialize_ser_windows): Register pipe_windows_fdopen.
1694         * ser-go32.c (gdb_pipe): New.
1695         * ser-pipe.c (pipe_close): Close file descriptor even if there's
1696         no state pointer.
1697         (pipe_ops): Delete.
1698         (gdb_pipe): New.
1699
1700 2010-08-20  Keith Seitz  <keiths@redhat.com>
1701
1702         PR symtab/11465:
1703         * dwarf2read.c (struct delayed_method_info): New struct.
1704         (struct dwarf2_cu): Add vector method_list.
1705         (scan_partial_symbols): Count methods for union, class, structure,
1706         and interface types.
1707         (add_to_method_list): New function.
1708         (free_delayed_list): New function.
1709         (compute_delayed_physnames): New function.
1710         (process_full_comp_unit): Make a cleanup for the CU's delayed
1711         physname list, compute the delayed physnames, and free the
1712         the list.
1713         (dwarf2_add_member_fn): For C++ and Java, delay the computation
1714         of the physname until after the CU is read.
1715
1716         * dwarf2read.c (read_structure_type): Check if the current
1717         DIE's type was already completed after dwarf2_full_name
1718         was called.
1719
1720 2010-08-19  Stan Shebs  <stan@codesourcery.com>
1721
1722         * NEWS: Mention some additional changes.
1723
1724 2010-08-19  Tom Tromey  <tromey@redhat.com>
1725
1726         * Makefile.in (install-python): Add DESTDIR.
1727
1728 2010-08-19  Doug Evans  <dje@google.com>
1729
1730         PR exp/11926
1731         * parser-defs.h (parse_float, parse_c_float): Declare.
1732         * parse.c (parse_float, parse_c_float): New function.
1733         * c-exp.y (parse_number): Call parse_c_float.
1734         * objc-exp.y (parse_number): Ditto.
1735         * p-exp.y (parse_number): Ditto.  Use ANSI/ISO-style definition.
1736         * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
1737
1738 2010-08-19  Joel Brobecker  <brobecker@adacore.com>
1739
1740         * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
1741         the arguments in the correct order.
1742         * symtab.c (maybe_add_partial_symtab_filename): Declare
1743         the arguments in the correct order.
1744
1745 2010-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1746
1747         * varobj.c (varobj_create): Replace variable old_fi with old_id,
1748         initialize it by null_frame_id, wrap its usage by get_frame_id,
1749         frame_id_p and frame_find_by_id.
1750
1751 2010-08-18  Tom Tromey  <tromey@redhat.com>
1752
1753         PR python/11900:
1754         * configure: Rebuild.
1755         * configure.ac: Add install-python to CONFIG_INSTALL.
1756         * Makefile.in (install-python): New.
1757
1758 2010-08-18  Doug Evans  <dje@google.com>
1759
1760         * gdb_assert.h (gdb_assert_not_reached): New macro.
1761         (gdb_assert_fail): Fix typo in comment.
1762         * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
1763         gdb_assert (0).
1764         * darwin-nat.c (darwin_check_new_threads): Ditto.
1765         * dwarf2read.c (dwarf2_get_section_info): Ditto.
1766         (munmap_section_buffer): Ditto.
1767         * m32c-tdep.c (make_types): Ditto.
1768         (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
1769         * macroexp.c (get_character_constant): Ditto.
1770         (get_string_literal): Ditto.
1771         * mep-tdep.c (mep_pseudo_cr_size): Ditto.
1772         (mep_pseudo_cr_index, mep_register_type): Ditto.
1773         (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
1774         (mep_get_insn, mep_analyze_prologue): Ditto.
1775         * objfiles.c (qsort_cmp): Ditto.
1776         * prologue-value.c (pv_is_identical): Ditto.
1777         * record.c (record_get_loc): Ditto.
1778         * value.c (value_static_field): Ditto.
1779         * xtensa-tdep.c (call0_track_op): Ditto.
1780
1781 2010-08-18  Tom Tromey  <tromey@redhat.com>
1782
1783         PR symtab/11919:
1784         * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
1785         * parse.c (parse_field_expression): Use RETURN_MASK_ERROR.  Move
1786         name-copying lower.  Document exception behavior.
1787         * completer.c (expression_completer): Catch exceptions from
1788         parse_field_expression.
1789
1790 2010-08-18  Pedro Alves  <pedro@codesourcery.com>
1791
1792         PR corefile/8210
1793
1794         * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
1795         workaround on core files.
1796         (try_thread_db_load_1): Don't try enabling thread event reporting
1797         on core files.
1798         (thread_db_load): Allow thread_db on core files.
1799         (attach_thread): Don't check thread signals on core files, nor try
1800         really attaching to the thread, nor enabling thread event event
1801         reporting.
1802         (thread_db_detach): Don't try disabing thread event reporting or
1803         removing thread event breakpoints when debugging a core file.
1804         (find_new_threads_callback): Don't try enabling thread event
1805         reporting on core files.
1806         (thread_db_find_new_threads_2): Don't look for a stopped lwp when
1807         debugging a core file.
1808         (thread_db_find_new_threads): Don't update thread
1809         cores (processors) when debugging a core (dump).
1810
1811 2010-08-18  Pedro Alves  <pedro@codesourcery.com>
1812
1813         PR corefile/8210
1814
1815         * corelow.c (add_to_thread_list): Don't use
1816         gdbarch_core_reg_section_encodes_pid.  Use bfd_core_file_pid.
1817         (get_core_register_section): Don't use
1818         gdbarch_core_reg_section_encodes_pid.
1819
1820         * gdbarch.sh (core_reg_section_encodes_pid): Delete.
1821         * gdbarch.h, gdbarch.c: Regenerate.
1822         * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
1823         gdbarch_core_reg_section_encodes_pid.
1824         * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
1825         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
1826         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1827
1828 2010-08-18  Yao Qi  <yao@codesourcery.com>
1829
1830         * MAINTAINERS : Add myself under Write After Approval.
1831
1832 2010-08-17  Tom Tromey  <tromey@redhat.com>
1833
1834         * NEWS: Mention template parameter support.
1835
1836 2010-08-17  Pedro Alves  <pedro@codesourcery.com>
1837
1838         PR breakpoints/11371
1839
1840         * breakpoint.c (decref_bp_location): Assert the reference count is
1841         sane.
1842
1843 2010-08-17  Pedro Alves  <pedro@codesourcery.com>
1844
1845         PR breakpoints/11371
1846
1847         * breakpoint.c (breakpoint_init_inferior): Decrement the
1848         location's reference count instead of deleting right away.
1849         (bpstat_free): Decrement the location's reference count.  Make
1850         static.
1851         (bpstat_copy): Increment the location's reference count.
1852         (bpstat_find_breakpoint): Adjust.
1853         (bpstat_num): Adjust.
1854         (print_it_typical): Adjust.  Use the breakpoint pointer in the
1855         bpstat instead of the location's owner.
1856         (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
1857         Adjust to record the location's owner in the bpstat.
1858         (watchpoint_check): Use the breakpoint pointer in the bpstat
1859         instead of the location's owner.
1860         (bpstat_check_breakpoint_conditions): Don't handle
1861         bp_watchpoint_scope here.  Use the breakpoint pointer in the
1862         bpstat instead of the location's owner.
1863         (bpstat_stop_status): Defer inferior function calls to after
1864         building the bpstat list.  Handle bp_watchpoint_scope here.  Use
1865         the breakpoint pointer in the bpstat instead of the location's
1866         owner.
1867         (bpstat_what): Use the breakpoint pointer in the bpstat instead of
1868         the location's owner.
1869         (free_bp_location): Don't walk bpstats clearing locations.
1870         (incref_bp_location): New.
1871         (decref_bp_location): New.
1872         (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
1873         instead of the location's owner.
1874         (update_global_location_list): Clear the location's owner, and
1875         decrement the location's reference count instead of deleting it
1876         right away.
1877         (breakpoint_retire_moribund): Decrement the location's reference
1878         count instead of deleting it right away.
1879         (bpstat_remove_bp_location): Delete.
1880         (bpstat_remove_breakpoint): New.
1881         (bpstat_remove_bp_location_callback): Delete.
1882         (bpstat_remove_breakpoint_callback): New.
1883         (delete_breakpoint): Iterate over all threads' stop_bpstat's
1884         clearing references to the breakpoint that is being deleted.
1885
1886         * breakpoint.h (struct bp_location) <refc>: New field.
1887         <owner>: Update comments.
1888         (bpstat_free): Delete declaration.
1889         (struct bpstats): Change the type of the breakpoint_at field to
1890         struct breakpoint point, from struct bp_location pointer.  Add new
1891         field bp_location_at.
1892
1893 2010-08-16  Tom Tromey  <tromey@redhat.com>
1894
1895         * NEWS: Fix typo.
1896
1897 2010-08-16  Tom Tromey  <tromey@redhat.com>
1898
1899         * NEWS: Mention watch -location.
1900
1901 2010-08-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1902
1903         * breakpoint.c (update_watchpoint): Add source empty line.  Prefer
1904         EXP_STRING_REPARSE to EXP_STRING.
1905         (watch_command_1): Set also EXP_STRING_REPARSE.
1906         (delete_breakpoint): Free also EXP_STRING_REPARSE.
1907         * breakpoint.h (struct breakpoint): New field exp_string_reparse.
1908         Update comment for exp_string.
1909
1910 2010-08-16  Tom Tromey  <tromey@redhat.com>
1911
1912         * value.c (release_value): Clear 'next' pointer.
1913         * breakpoint.c (watch_command_1): Add 'just_location' argument.
1914         (watch_command_wrapper): Update.
1915         (watch_maybe_just_location): New function.
1916         (watch_command): Update.
1917         (rwatch_command_wrapper): Update.
1918         (rwatch_command): Update.
1919         (awatch_command_wrapper): Update.
1920         (awatch_command): Update.
1921         (check_for_argument): New function.
1922         (_initialize_breakpoint): Update help text.
1923
1924 2010-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
1925
1926         * arm-tdep.c (arm_push_dummy_call): Handle pointers to
1927         typedef'ed function types correctly.
1928
1929 2010-08-13  Tom Tromey  <tromey@redhat.com>
1930
1931         * python/python-internal.h (gdbpy_get_hook_function): Don't
1932         declare.
1933
1934 2010-08-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1935
1936         * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
1937         static.
1938
1939 2010-08-13  Ken Werner  <ken.werner@de.ibm.com>
1940
1941         * python/python.c (gdbpy_solib_name): Remove the const qualifier of
1942         the format strings to be compatible with Python 2.4.
1943
1944 2010-08-13  Vladimir Prus  <vladimir@codesourcery.com>
1945
1946         Easier and more stubborn MI memory read commands.
1947
1948         * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
1949         and data-write-memory-bytes.
1950         * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
1951         (mi_cmd_data_write_memory_bytes): New.
1952         * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
1953         (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
1954         New.
1955         (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
1956         * target.c (target_read_until_error): Remove.
1957         (read_whatever_is_readable, free_memory_read_result_vector)
1958         (read_memory_robust): New.
1959         * target.h (target_read_until_error): Remove.
1960         (struct memory_read_result, free_memory_read_result_vector)
1961         (read_memory_robust): New.
1962
1963 2010-08-13  Hui Zhu  <teawater@gmail.com>
1964
1965         * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
1966         (read_comp_unit): Initialize back_to.
1967
1968 2010-08-12  Daniel Jacobowitz  <dan@codesourcery.com>
1969             Pedro Alves  <pedro@codesourcery.com>
1970
1971         * dwarf2read.c: Include "c-lang.h" and "valprint.h".
1972         (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
1973         (struct partial_die_info) <has_template_arguments>: New field.
1974         <num_attrs>: Change type to unsigned char.
1975         <building_fullname>: New field.
1976         (dwarf2_build_psymtabs_hard): Set reading_partial_symbols.  Only
1977         allocate a CU if we don't have one already.  Add a cleanup for the
1978         CU.
1979         (partial_die_full_name): Handle template arguments not in
1980         DW_AT_name.
1981         (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
1982         (load_full_comp_unit): Only allocate a CU if we don't have one
1983         already.
1984         (do_ui_file_peek_last): New.
1985         (dwarf2_compute_name): Handle template parameters not in
1986         DW_AT_name.
1987         (read_comp_unit): Read and free abbrevs if not read yet.
1988         (load_partial_dies): Handle template arguments not in DW_AT_name.
1989         (find_partial_die): If we have a CU, but no a partial dies yet,
1990         also read in the CU.
1991         (dwarf2_const_value_attr): New, abstracted out from
1992         dwarf2_const_value.
1993         (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
1994         dwarf2_const_value_attr.
1995         (determine_prefix): Detect and break loops created by RCVT's debug
1996         info.
1997         (maybe_queue_comp_unit): Bail out early if reading partial
1998         symbols.
1999         (follow_die_offset): Load full CU if we have no dies.
2000         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2001         * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2002
2003 2010-08-11  Tom Tromey  <tromey@redhat.com>
2004             Phil Muldoon  <pmuldoon@redhat.com>
2005
2006         * python/python.c (gdbpy_run_events): New function.
2007         (gdbpy_post_event): Likewise.
2008         (gdbpy_initialize_events): Likewise.
2009         (_initialize_python): Call gdbpy_initialize_events.
2010
2011 2010-08-11  Ken Werner  <ken.werner@de.ibm.com>
2012
2013         * gdb/valarith.c (vector_binop): New function.
2014         (scalar_binop): Likewise.
2015         (value_binop): Call scalar_binop or vector_binop depending on the types.
2016         * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2017         (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2018         to pointers.
2019         * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2020
2021 2010-08-11  Brad Roberts  <braddr@puremagic.com>
2022
2023         * d-lang.c (extract_identifiers): Handle multiple digits.
2024
2025 2010-08-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2026
2027         Code cleanup.
2028         * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2029         Rename to dummy_frame_unwind.
2030         (dummy_frame_unwind): Remove.
2031         * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2032         * frame-unwind.c (frame_unwind_init): Use address of
2033         dummy_frame_unwind and inline_frame_unwind.
2034         * frame.c (create_sentinel_frame): Use address of
2035         sentinel_frame_unwind.
2036         * inline-frame.c (inline_frame_unwinder): Rename to
2037         inline_frame_unwind.
2038         (inline_frame_unwind): Remove.
2039         * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2040         * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2041         sentinel_frame_unwind.
2042         (sentinel_frame_unwind): Remove.
2043         * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2044         struct.
2045
2046 2010-08-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2047
2048         Code cleanup.
2049         * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2050         and returned value.  New comment from frame-unwind.h.
2051         * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2052         Extend the comment.
2053         * frame.c (get_frame_id, frame_unwind_register_value)
2054         (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2055         (get_frame_type, frame_unwind_arch): Do not use the return value of
2056         frame_unwind_find_by_frame.
2057
2058 2010-08-11  Phil Muldoon  <pmuldoon@redhat.com>
2059             Thiago Jung Bauermann  <bauerman@br.ibm.com>
2060             Tom Tromey  <tromey@redhat.com>
2061
2062         * python/python.c (gdbpy_solib_address):  New function.
2063         (gdbpy_decode_line): Likewise.
2064
2065 2010-08-10  Tom Tromey  <tromey@redhat.com>
2066
2067         Revert gdb-add-index addition:
2068         * Makefile.in (install-only): Don't install gdb-add-index.
2069         * gdb-add-index.sh: Remove.
2070
2071 2010-08-09  Kevin Buettner  <kevinb@redhat.com>
2072
2073         * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2074         `target_has_execution' check with `to_has_memory' check.
2075         (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2076         (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2077         with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2078
2079 2010-08-09  Kevin Buettner  <kevinb@redhat.com>
2080
2081         * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2082         (resume_siggnal, resume_step): Move these static globals...
2083         (struct sim_inferior_data): ...into this new struct.
2084         (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2085         New static globals.
2086         (gdb_callback, callbacks_initialized): Move these globals to
2087         a point earlier in the file.
2088         (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2089         (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2090         (gdbsim_close_inferior, gdbsim_resume_inferior)
2091         (gdbsim_stop_inferior): New functions.
2092         (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2093         New constants.
2094         (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2095         (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2096         (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2097         (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2098         (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2099         (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2100         new local variable `sim_data' in each of these functions.  Use
2101         `sim_data' to reference former globals `program_loaded',
2102         `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2103         `resume_step'.
2104         (gdbsim_open): Remove local variable `argv'.  Put results of call
2105         to `gdb_buildargv' in `sim_argv' rather than in `argv'.  Don't
2106         make a cleanup for it.  Free it though when a sim instance cannot
2107         be obtained.
2108         (gdbsim_close): Free sim_argv and null it out as appropriate.
2109         Close sim instances in all inferiors.
2110         (gdbsim_cntrl_c): Stop all inferiors.
2111         (gdbsim_wait): 
2112         (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2113
2114 2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>
2115
2116         * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2117         function after symbol construction is complete.
2118         Do the same for template symbol addition to template_symbols list.
2119
2120 2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>
2121
2122         * symtab.c (symbol_get_demangled_name): Remove assertion and
2123         return NULL when language_specific.cplus_specific is not initialized.
2124         * stabsread.c (define_symbol): Set the name before calling
2125         cp_scan_for_anonymous_namespaces.
2126
2127 2010-08-09  Sami Wagiaalla  <swagiaal@redhat.com>
2128
2129         * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2130         SYMBOL_SET_LANGUAGE.
2131         (symbol_init_language_specific): Renamed to symbol_set_language.
2132         * symtab.c (symbol_init_language_specific): Removed redundant check
2133         for language_cplus.
2134         Renamed to symbol_set_language.
2135         * stabsread.c (define_symbol): Updated.
2136         (read_enum_type): Updated
2137         * psymtab.c (add_psymbol_to_bcache): Updated.
2138         * minsyms.c (install_minimal_symbols): Updated.
2139         * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2140         SYMBOL_LANGUAGE to set the language.
2141         * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2142         * mdebugread.c (new_symbol): Ditto.
2143         * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2144         * dwarf2read.c (new_symbol_full): Ditto.
2145         * jv-lang.c (add_class_symbol): Ditto.
2146
2147 2010-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2148
2149         * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2150         (make_cleanup_restore_page_info)
2151         (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2152         * gdbcmd.h (execute_command_to_string): New declaration.
2153         * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2154         (make_cleanup_restore_ui_file): Move to utils.c
2155         (execute_gdb_command) <to_string>: Move ...
2156         * top.c (execute_command_to_string): ... here.  Call
2157         set_batch_flag_and_make_cleanup_restore_page_info.
2158         * utils.c (make_cleanup_restore_integer): New source file blank line.
2159         (make_cleanup_restore_uinteger): New.
2160         (struct restore_ui_file_closure, do_restore_ui_file)
2161         (make_cleanup_restore_ui_file): Move here from python/python.c.
2162         (init_page_info) <batch_flag>
2163         (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2164         (set_batch_flag_and_make_cleanup_restore_page_info): New.
2165
2166 2010-08-06  Maciej W. Rozycki  <macro@codesourcery.com>
2167
2168         * thread.c (add_thread_silent): Use null_ptid instead of
2169         minus_one_ptid while getting rid of stale inferior_ptid.
2170
2171 2010-08-06  Corinna Vinschen  <vinschen@redhat.com>
2172
2173         * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2174         Throughout, call read_encoded_value with ptr_size rather than addr_size.
2175         (decode_frame_entry_1): Remove redundant setting of
2176         addr_size.  Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2177         to determine addr_size in Dwarf versions < 4.  Set ptr_size dependent
2178         on examined frame section.  Add comment to explain why.
2179         * gdbarch.sh (dwarf2_addr_size): Define as variable.  Add lengthy
2180         comment to explain usage.
2181         * gdbarch.c: Regenerate.
2182         * gdbarch.h: Regenerate.
2183
2184         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2185
2186 2010-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2187
2188         Code cleanup.
2189         * varobj.c (varobj_create): Move variables fi, old_fi and block to
2190         a more inner block.
2191
2192 2010-08-05  Pedro Alves  <pedro@codesourcery.com>
2193
2194         * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2195         (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2196         (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2197         (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2198         linux-tdep.o to gdb_target_obs.
2199
2200 2010-08-05  Marc Khouzam  <marc.khouzam@ericsson.com>
2201
2202         * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
2203         argument.
2204
2205 2010-08-05  Hui Zhu  <teawater@gmail.com>
2206
2207         * mips-linux-tdep.c(regset.h): New include.
2208         (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2209         mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2210         mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2211         mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2212         mips_linux_regset_from_core_section): New functions.
2213         (fetch_core_registers, regset_core_fns): Deleted.
2214         (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2215         Deleted regset_core_fns.
2216         * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2217         tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2218         * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2219         and fpregset64.
2220
2221 2010-08-04  Pedro Alves  <pedro@codesourcery.com>
2222
2223         * s390-tdep.c: Include linux-tdep.h.
2224         (s390_gdbarch_init): Call linux_init_abi.
2225
2226 2010-08-04  Pedro Alves  <pedro@codesourcery.com>
2227
2228         * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2229         instead of printing "Thread" here.
2230         * linux-tdep.c: Include inferior.h.
2231         (linux_core_pid_to_str): New.
2232         (linux_init_abi): New.
2233         * linux-tdep.h (linux_init_abi): Declare.
2234         * alpha-linux-tdep.c: Include linux-tdep.h.
2235         (alpha_linux_init_abi): Call linux_init_abi.
2236         * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2237         * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2238         * frv-linux-tdep.c: Include linux-tdep.h
2239         (frv_linux_init_abi): Call linux_init_abi.
2240         * hppa-linux-tdep.c: Include linux-tdep.h
2241         (hppa_linux_init_abi): Call linux_init_abi.
2242         * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2243         * ia64-linux-tdep.c: Include linux-tdep.h.
2244         (ia64_linux_init_abi): Call linux_init_abi.
2245         * m32r-linux-tdep.c: Include linux-tdep.h.
2246         (m32r_linux_init_abi): Call linux_init_abi.
2247         * m68klinux-tdep.c: Include linux-tdep.h.
2248         (m68k_linux_init_abi): Call linux_init_abi.
2249         * microblaze-linux-tdep.c: Include linux-tdep.h.
2250         (microblaze_linux_init_abi): Call linux_init_abi.
2251         * mips-linux-tdep.c: Include linux-tdep.h.
2252         (mips_linux_init_abi): Call linux_init_abi.
2253         * mn10300-linux-tdep.c: Include linux-tdep.h.
2254         (am33_linux_init_osabi): Call linux_init_abi.  Rename the
2255         'gdbinfo' parameter to 'info'.
2256         * ppc-linux-tdep.c: Include linux-tdep.h.
2257         (ppc_linux_init_abi): Call linux_init_abi.
2258         * sh-linux-tdep.c: Include linux-tdep.h.
2259         (sh_linux_init_abi): Call linux_init_abi.
2260         * sparc-linux-tdep.c: Include linux-tdep.h.
2261         (sparc32_linux_init_abi): Call linux_init_abi.
2262         * sparc64-linux-tdep.c: Include linux-tdep.h.
2263         (sparc64_linux_init_abi): Call linux_init_abi.
2264         * xtensa-linux-tdep.c: Include linux-tdep.h.
2265         (xtensa_linux_init_abi): Call linux_init_abi.
2266         * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2267         (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2268         callback.
2269
2270 2010-08-03  Doug Evans  <dje@google.com>
2271
2272         * breakpoint.c (bpdisp_text): Constify bpdisps.
2273         * solib-svr4.c (solib_break_names): Constify.
2274         (bkpt_names, main_name_list): Constify.
2275         (match_main): Constify soname arg.
2276         (bfd_lookup_symbol): Remove unnecessary forward decl.
2277         Constify symname arg.
2278         (enable_break): Constify bkpt_namep.
2279         * symtab.c (search_symbols): Constify types, types2, types3, types4.
2280         (symtab_symbol_info): Constify classnames.
2281
2282 2010-08-03  Phil Muldoon  <pmuldoon@redhat.com>
2283
2284         * NEWS: Document Python value inferior function calls.
2285
2286 2010-08-02  Doug Evans  <dje@google.com>
2287
2288         * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2289
2290 2010-07-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
2291
2292         * linux-thread-db.c (libthread_db_debug): New variable.
2293         (thread_db_find_new_threads_silently): Control verbosity with it.
2294         (try_thread_db_load_1, try_thread_db_load): Likewise.
2295         (find_new_threads_once): Likewise.
2296         (_initialize_thread_db): Set/show it.
2297
2298 2010-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2299
2300         * common/signals.c (signals): Move the content to signals.def.
2301         Include it.  Remove the INDENT comments.
2302
2303 2010-07-30  Tom Tromey  <tromey@redhat.com>
2304
2305         * Makefile.in (install-only): Install gdb-add-index.
2306         * gdb-add-index.sh: New file.
2307
2308 2010-07-31  Renquan Cheng  <crq@gcc.gnu.org>
2309
2310         * MAINTAINERS: Add myself for write after approval privileges.
2311
2312 2010-07-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
2313
2314         * symfile.c (addr_section_name): New function.
2315         (addrs_section_compar): Use it.
2316         (addr_info_make_relative): Use it.  Move variable sect_name into a more
2317         inner block.  Make ".dynbss" and ".sdynbss" checks more strict.
2318
2319 2010-07-30  Tom Tromey  <tromey@redhat.com>
2320
2321         * configure: Rebuild.
2322         * configure.ac: Add missing case for Python 2.7.
2323
2324 2010-07-29  DJ Delorie  <dj@redhat.com>
2325
2326         * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2327         conditions.
2328
2329 2010-07-29  Pedro Alves  <pedro@codesourcery.com>
2330
2331         * PROBLEMS: Remove mention of all problems.
2332
2333 2010-07-28  Pedro Alves  <pedro@codesourcery.com>
2334
2335         PR build/11848
2336         * configure.ac: Check for wresize.
2337         * configure, config.in: Regenerate.
2338         * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2339         with HAVE_WRESIZE.
2340
2341 2010-07-28  Tom Tromey  <tromey@redhat.com>
2342
2343         PR python/11060:
2344         * python/py-type.c (typy_legacy_template_argument): New function,
2345         extracted from typy_template_argument.
2346         (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT.  Return a
2347         value when needed.
2348
2349 2010-07-28  Oleg Nesterov  <oleg@redhat.com>
2350
2351         * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2352
2353 2010-07-27  Tom Tromey  <tromey@redhat.com>
2354
2355         * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2356
2357 2010-07-28  Daniel Jacobowitz  <dan@codesourcery.com>
2358
2359         * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2360         handling DW_AT_object_pointer, and workaround GCC PR 43053.
2361
2362 2010-07-28  Tom Tromey  <tromey@redhat.com>
2363
2364         * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2365
2366 2010-07-28  Joel Brobecker  <brobecker@adacore.com>
2367
2368         * remote.c (remote_download_tracepoint): Add missing gettext markup.
2369         * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2370
2371 2010-07-28  Joel Brobecker  <brobecker@adacore.com>
2372
2373         * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2374         down, just before the block that parse the breakpoint addr_string.
2375
2376 2010-07-28  Tom Tromey  <tromey@redhat.com>
2377
2378         PR c++/9946:
2379         * symfile.c (reread_symbols): Clear template_symbols.
2380         * symtab.h (struct symbol) <is_cplus_template_function>: New
2381         field.
2382         (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2383         (struct template_symbol): New.
2384         * symtab.c (lookup_symbol_aux_local): Use
2385         cp_lookup_symbol_imports_or_template.
2386         * objfiles.h (struct objfile) <template_symbols>: New field.
2387         * objfiles.c (relocate_one_symbol): New function.
2388         (objfile_relocate1): Use it.  Relocate isolated symbols.
2389         * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2390         template_arguments>: New fields.
2391         (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2392         (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2393         (TYPE_TEMPLATE_ARGUMENT): Likewise.
2394         (lookup_typename): Update.
2395         * gdbtypes.c (lookup_typename): Constify "block" argument.
2396         * dwarf2read.c: Include vec.h.
2397         (symbolp): New typedef.
2398         (read_func_scope): Read template arguments.  Allocate a
2399         template_symbol when needed.
2400         (read_structure_type): Read template arguments.
2401         (new_symbol_full): New function, from new_symbol.  Handle
2402         DW_TAG_template_type_param and DW_TAG_template_value_param.
2403         (new_symbol): Rewrite as wrapper.
2404         * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2405         * cp-namespace.c: Include language.h.
2406         (search_symbol_list): New function.
2407         (cp_lookup_symbol_imports_or_template): Likewise.
2408
2409 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
2410
2411         * tui/tui-win.c (make_visible_with_new_height): Resize and move
2412         the command window to the new size and position.
2413
2414 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
2415
2416         * tui/tui-win.c (tui_resize_all): Update the locator's origin's
2417         coordinates.
2418
2419 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
2420
2421         * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
2422         after a detecting a resize.
2423         * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
2424         call.
2425
2426 2010-07-28  Pedro Alves  <pedro@codesourcery.com>
2427
2428         * configure.ac: Check for resize_term.
2429         * configure, config.in: Regenerate.
2430
2431 2010-07-27  Joel Brobecker  <brobecker@adacore.com>
2432
2433         * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2434
2435 2010-07-27  Daniel Jacobowitz  <dan@codesourcery.com>
2436
2437         * dwarf2read.c (read_string): Rename to ...
2438         (read_direct_string): ... this.
2439         (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2440         (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2441
2442 2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2443
2444         * linux-nat.c (linux_nat_lp_status_is_event): New function.
2445         (count_events_callback, select_event_lwp_callback)
2446         (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2447
2448 2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2449
2450         * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2451         (_initialize_ia64_linux_nat): Install it.
2452         * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2453         (linux_nat_set_status_is_event): New.
2454         (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2455         cancel_breakpoints_callback, linux_nat_filter_event)
2456         (linux_nat_wait_1): Use linux_nat_status_is_event.
2457         * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2458
2459 2010-07-27  Tom Tromey  <tromey@redhat.com>
2460
2461         * NEWS: Mention labels, .gdb_index.
2462
2463 2010-07-28  CHENG Renquan  <rqcheng@smu.edu.sg>
2464
2465         * cli/cli-cmds.c (disassemble_command): Add support of disassemble
2466         "start,+length" form of arguments.
2467         * NEWS: Add "Changed commands" (disassemble) section for "Changes
2468         since GDB 7.1"; and merge two separated paragraphs of disassemble
2469         description in "Changes in GDB 7.0".
2470
2471 2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2472
2473         * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2474         * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2475         (fputs_maybe_filtered): Do not do filtering also on
2476         ! INPUT_FROM_TERMINAL_P.
2477
2478 2010-07-27  Joel Brobecker  <brobecker@adacore.com>
2479
2480         * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
2481         in warning message.
2482
2483 2010-07-27  Phil Muldoon  <pmuldoon@redhat.com>
2484
2485         * python/py-value.c (valpy_call): New Function.
2486
2487 2010-07-27  Ken Werner  <ken.werner@de.ibm.com>
2488
2489         * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
2490         types_list_elements variables.
2491
2492 2010-07-26  Tom Tromey  <tromey@redhat.com>
2493
2494         * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
2495         TLS with DW_OP_const4u or DW_OP_const8u.
2496
2497 2010-07-26  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2498
2499         * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
2500         VSX registers contents.
2501
2502 2010-07-26  Jerome Guitton  <guitton@adacore.com>
2503
2504         * dwarf2read.c (add_partial_symbol): Do not add a global variable if
2505         its adress is null. Add comment to explain why.
2506         (new_symbol): Ditto.
2507
2508 2010-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2509
2510         * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
2511         the host signal first.
2512
2513 2010-07-23  Tom Tromey  <tromey@redhat.com>
2514
2515         * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
2516         type_comp_units>: New fields.
2517         (dw2_get_cu): New function.
2518         (create_cus_from_index): Remove unused argument.
2519         (create_signatured_type_hash_from_index): New function.
2520         (create_addrmap_from_index): Update.
2521         (dwarf2_read_index): Handle version 2.
2522         (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
2523         (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
2524         (dw2_print_stats, dw2_expand_all_symtabs)
2525         (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
2526         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
2527         (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
2528         (allocate_signatured_type_hash_table): New function.
2529         (add_signatured_type_cu_to_list): Likewise.
2530         (create_debug_types_hash_table): Use them.  Set type_comp_units.
2531         (read_signatured_type): Ensure section data is available.
2532         (add_address_entry): Don't record empty ranges.
2533         (struct signatured_type_index_data): New.
2534         (write_one_signatured_type): New function.
2535         (write_psymtabs_to_index): Write type CUs.
2536         (save_gdb_index_command): Update comment.
2537         (process_type_comp_unit): Move inititalization of
2538         from_debug_types...
2539         (create_debug_types_hash_table): ... here.
2540
2541 2010-07-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
2542
2543         * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2544         cleanup and generating of gdb script to it.
2545         (gdb): Use redirection from /dev/null.  Use --nx.  Turn off pagination
2546         and terminal size.  Convert $tmpfile to a series of -ex-es.
2547
2548 2010-07-23  Keith Seitz  <keiths@redhat.com>
2549
2550         * symtab.c (basic_lookup_transparent_type): Call pre-expand
2551         hook for STATIC_BLOCK types, too.
2552
2553 2010-07-23  Keith Seitz  <keiths@redhat.com>
2554
2555         * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
2556         and vector definition.
2557
2558 2010-07-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
2559
2560         * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2561
2562 2010-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2563
2564         * dwarf2read.c: Include completer.h.
2565         (save_gdb_index_command): Use matching usage command name.
2566         (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2567         Set filename_completer for it.
2568
2569 2010-07-22  Tom Tromey  <tromey@redhat.com>
2570
2571         * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2572         type signature's per-CU data.
2573
2574 2010-07-22  Pedro Alves  <pedro@codesourcery.com>
2575
2576         * NEWS: Mention target reported shared libraries support by
2577         default.
2578
2579 2010-07-21  Pedro Alves  <pedro@codesourcery.com>
2580
2581         PR symtab/11827
2582
2583         Revert:
2584         2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
2585         * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2586         and DW_TAG_volatile_type.
2587         (new_symbol): Likewise.
2588
2589 2010-07-21  Sami Wagiaalla  <swagiaal@redhat.com>
2590
2591         * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2592         function symbols before overload resolution.
2593
2594 2010-07-21  Pedro Alves  <pedro@codesourcery.com>
2595
2596         * breakpoint.c (bptype_string): New, abstracted out from
2597         print_one_breakpoint_location.
2598         (print_one_breakpoint_location): Adjust.
2599         (breakpoint_1): Adjust the type column width dynamically.
2600
2601 2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2602
2603         * symfile.c (find_separate_debug_file_by_debuglink): Remove
2604         a gdb_assert call, new comment.
2605
2606 2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2607
2608         * linux-nat.c (linux_handle_extended_wait): Handle case when
2609         event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2610
2611 2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2612
2613         Code cleanup.
2614         * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2615         linux_nat_wait_1.  Use always LP->STATUS afterwards.
2616
2617 2010-07-20  Hui Zhu  <teawater@gmail.com>
2618
2619         * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2620         (inf_ptrace_attach): Ditto.
2621
2622 2010-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2623
2624         Make core files the process_stratum.
2625         * corefile.c (core_target): New variable.
2626         (core_file_command): Remove variable t, use core_target.
2627         * corelow.c (core_ops): Make it static.
2628         (init_core_ops): Change to process_stratum.  Initialize CORE_TARGET.
2629         * defs.h (make_cleanup_unpush_target): New prototype.
2630         * gdbarch.h: Regenerate.
2631         * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2632         * gdbcore.h (core_target): New declaration.
2633         * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2634         variables ops_already_pushed and back_to.  Use push_target,
2635         make_cleanup_unpush_target and discard_cleanups calls.
2636         * record.c (record_open): Replace core_stratum by a core_bfd check.
2637         * target.c (target_is_pushed): New function.
2638         (find_core_target): Remove.
2639         * target.h (enum strata) <core_stratum>: Remove.
2640         (target_is_pushed): New declaration.
2641         (find_core_target): Remove declaration.
2642         * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2643         * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2644
2645 2010-07-19  Hui Zhu  <teawater@gmail.com>
2646
2647         * breakpoint.c (single_step_breakpoints_inserted): New
2648         function.
2649         * breakpoint.h (single_step_breakpoints_inserted): Extern.
2650         * infrun.c (maybe_software_singlestep): Add check code.
2651         * record.c (record_resume): Add code for software single step.
2652         (record_wait): Ditto.
2653
2654 2010-07-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
2655
2656         * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2657         a more inner block.  Remove its unused declaration initializer.
2658
2659 2010-07-16  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2660
2661         * NEWS: Mention support for the new ptrace interface and hardware
2662         accelerated watchpoint conditions on powerpc-linux.
2663
2664 2010-07-16  Ozkan Sezer  <sezeroz@gmail.com>
2665
2666         * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2667         long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2668         and host_address_to_string() and %s for pointers.
2669         (debug_to_remove_breakpoint): Likewise.
2670         (debug_to_region_ok_for_hw_watchpoint): Likewise.
2671         (debug_to_can_accel_watchpoint_condition): Likewise.
2672         (debug_to_stopped_data_address): Likewise.
2673         (debug_to_watchpoint_addr_within_range): Likewise.
2674         (debug_to_insert_hw_breakpoint): Likewise.
2675         (debug_to_remove_hw_breakpoint): Likewise.
2676         (debug_to_insert_watchpoint): Likewise.
2677         (debug_to_remove_watchpoint): Likewise.
2678
2679 2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
2680
2681         * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2682         argument.
2683         (cplus_specific): New struct.
2684         * symtab.c (symbol_set_demangled_name): Updated.
2685         Use cplus_specific for cplus symbols.
2686         (symbol_get_demangled_name): Retrive the name from the cplus_specific
2687         struct for cplus symbols.
2688         (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2689         (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2690         * symtab.c (symbol_init_cplus_specific): New function.
2691
2692 2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
2693
2694         * symtab.h (symbol_set_demangled_name): New function.
2695         (symbol_get_demangled_name): New function.
2696         * symtab.c (symbol_set_demangled_name): New function.
2697         (symbol_get_demangled_name): New function.
2698         (symbol_init_language_specific): Use demangled_name setter and getter.
2699         (symbol_set_names): Ditto.
2700         (symbol_natural_name): Ditto.
2701         (symbol_demangled_name): Ditto.
2702         * dwarf2read.c (new_symbol): Ditto.
2703
2704 2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
2705
2706         * symtab.h: Renamed cplus_specific to mangled_lang.
2707         * symtab.c (symbol_init_language_specific): Updated.
2708         (symbol_set_names): Updated.
2709         (symbol_natural_name): Updated.
2710         (symbol_demangled_name): Updated.
2711         * ada-lang.c (ada_decode_symbol): Updated.
2712         * dwarf2read.c (new_symbol): Updated.
2713
2714 2010-07-14  Ken Werner  <ken.werner@de.ibm.com>
2715
2716         * valops.c (value_assign): Do not call to value_coerce_to_target.
2717         (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
2718
2719 2010-07-14  Ken Werner  <ken.werner@de.ibm.com>
2720
2721         * MAINTAINERS: Add myself for write after approval privileges.
2722
2723 2010-07-13  Emmanuel Thomé  <Emmanuel.Thome@gmail.com>
2724
2725         * c-valprint.c (c_val_print): Add embedded_offset to address in
2726         call to val_print_array_elements.
2727
2728 2010-07-13  Tom Tromey  <tromey@redhat.com>
2729
2730         * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2731
2732 2010-07-13  Tom Tromey  <tromey@redhat.com>
2733
2734         * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
2735         objfile.
2736
2737 2010-07-13  Tom Tromey  <tromey@redhat.com>
2738
2739         * symfile.c (set_initial_language): Update.
2740         (deduce_language_from_filename): Argument type now const.
2741         * symtab.h (find_main_filename): Update.
2742         (deduce_language_from_filename): Update.
2743         * symtab.c (find_main_filename): Make result const.
2744         * dwarf2read.c (dw2_find_symbol_file): Change return type.
2745         * psymtab.c (find_symbol_file_from_partial): Change return type.
2746         * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2747         Make result const.
2748
2749 2010-07-13  Tom Tromey  <tromey@redhat.com>
2750
2751         * breakpoint.c (save_cmdlist): No longer static.
2752         * gdbcmd.h (save_cmdlist): Declare.
2753         * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
2754         OBJF_READNOW on objfile if readnow_symbol_files.
2755         * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
2756         (elf_sym_fns_gdb_index): New global.
2757         * dwarf2read.c: Include exceptions.h.
2758         (offset_type): New.
2759         (struct mapped_index): New.
2760         (dwarf2_per_cu_data_ptr): New typedef.
2761         (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
2762         New fields.
2763         (GDB_INDEX_SECTION): New define.
2764         (struct dwarf2_per_cu_quick_data): New.
2765         (struct dwarf2_per_cu_data) <objfile>: New field.
2766         <psymtab>: Removed.
2767         <v>: New field.
2768         (byte_swap): New function.
2769         (MAYBE_SWAP): New macro.
2770         (INDEX_SUFFIX): New macro.
2771         (dw2_do_instantiate_symtab): New function.
2772         (dw2_instantiate_symtab): Likewise.
2773         (create_cus_from_index): Likewise.
2774         (create_addrmap_from_index): Likewise.
2775         (mapped_index_string_hash): Likewise.
2776         (find_slot_in_mapped_hash): Likewise.
2777         (dwarf2_read_index): Likewise.
2778         (dw2_setup): Likewise.
2779         (dw2_require_line_header): Likewise.
2780         (dw2_require_full_path): Likewise.
2781         (dw2_find_last_source_symtab): Likewise.
2782         (dw2_forget_cached_source_info): Likewise.
2783         (dw2_lookup_symtab): Likewise.
2784         (dw2_lookup_symbol): Likewise.
2785         (dw2_do_expand_symtabs_matching): Likewise.
2786         (dw2_pre_expand_symtabs_matching): Likewise.
2787         (dw2_print_stats): Likewise.
2788         (dw2_dump): Likewise.
2789         (dw2_relocate): Likewise.
2790         (dw2_expand_symtabs_for_function): Likewise.
2791         (dw2_expand_all_symtabs): Likewise.
2792         (dw2_expand_symtabs_with_filename): Likewise.
2793         (dw2_find_symbol_file): Likewise.
2794         (dw2_map_ada_symtabs): Likewise.
2795         (dw2_expand_symtabs_matching): Likewise.
2796         (dw2_find_pc_sect_symtab): Likewise.
2797         (dw2_map_symbol_names): Likewise.
2798         (dw2_map_symbol_filenames): Likewise.
2799         (dw2_has_symbols): Likewise.
2800         (dwarf2_gdb_index_functions): New global.
2801         (dwarf2_initialize_objfile): New function.
2802         (process_psymtab_comp_unit): Update.
2803         (add_partial_subprogram): Likewise.
2804         (dwarf2_psymtab_to_symtab): Likewise.
2805         (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
2806         (process_full_comp_unit): Update.
2807         (find_file_and_directory): New function.
2808         (read_file_scope): Use find_file_and_directory.
2809         (dwarf2_per_cu_objfile): Update.
2810         (dwarf2_per_cu_addr_size): Update.
2811         (dwarf2_per_cu_offset_size): Update.
2812         (dwarf2_free_objfile): Free the index, if needed.
2813         (dwarf2_per_objfile_free): Unmap the index, if needed.
2814         (struct strtab_entry): New.
2815         (hash_strtab_entry): New function.
2816         (eq_strtab_entry): Likewise.
2817         (create_strtab): Likewise.
2818         (add_string): Likewise.
2819         (struct symtab_index_entry): New.
2820         (struct mapped_symtab): New.
2821         (hash_symtab_entry): New function.
2822         (eq_symtab_entry): Likewise.
2823         (delete_symtab_entry): Likewise.
2824         (create_index_table): Likewise.
2825         (create_mapped_symtab): Likewise.
2826         (cleanup_mapped_symtab): Likewise.
2827         (find_slot): Likewise.
2828         (hash_expand): Likewise.
2829         (add_index_entry): Likewise.
2830         (add_indices_to_cpool): Likewise.
2831         (write_hash_table): Likewise.
2832         (add_address_entry): Likewise.
2833         (write_psymbols): Likewise.
2834         (write_obstack): Likewise.
2835         (unlink_if_set): Likewise.
2836         (write_psymtabs_to_index): Likewise.
2837         (save_gdb_index_command): Likewise.
2838         (_initialize_dwarf2_read): Install "save gdb-index"
2839         command.
2840         (create_all_comp_units): Initialize 'objfile' field of CU.
2841         (dwarf2_locate_sections): Check for .gdb_index.
2842         * psymtab.h (dwarf2_gdb_index_functions): Declare.
2843         * symfile.h (dwarf2_initialize_objfile): Declare.
2844
2845 2010-07-13  Tom Tromey  <tromey@redhat.com>
2846
2847         * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
2848         (basic_lookup_transparent_type): Likewise.
2849         * symfile.h (struct quick_symbol_functions)
2850         <pre_expand_symtabs_matching>: New field.
2851         * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
2852         (psym_functions): Update.
2853
2854 2010-07-13  Tom Tromey  <tromey@redhat.com>
2855
2856         PR breakpoints/8357:
2857         * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
2858         * linespec.c (decode_line_1): Update comment.  Call decode_label.
2859         (decode_label): New function.
2860         (symbol_found): Handle LOC_LABEL.
2861         * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
2862         domain.  Call add_symbol_to_list.
2863
2864 2010-07-13  Tom Tromey  <tromey@redhat.com>
2865
2866         * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
2867         * dwarf2loc.c (find_location_expression): Use
2868         dwarf2_per_cu_text_offset.
2869         (dwarf2_evaluate_loc_desc): Likewise.
2870         (dwarf2_loc_desc_needs_frame): Likewise.
2871         (compile_dwarf_to_ax): Likewise.
2872         (loclist_describe_location): Likewise.
2873         * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
2874         (dwarf2_per_cu_objfile): Update comment.
2875
2876 2010-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2877
2878         * dwarf2read.c (read_subrange_type): Call read_subrange_type.
2879         * p-lang.c (pascal_printstr): Likewise.
2880
2881 2010-07-09  Tom Tromey  <tromey@redhat.com>
2882
2883         * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
2884         'hint' if it is NULL.
2885
2886 2010-07-09  Hui Zhu  <teawater@gmail.com>
2887
2888         * source.c (print_source_lines_base): Add check for noprint.
2889
2890 2010-07-08  Joel Brobecker  <brobecker@adacore.com>
2891
2892         * python/python-config.py: Resync with Python 2.7 version of this
2893         script.
2894
2895 2010-07-08  Joel Brobecker  <brobecker@adacore.com>
2896
2897         * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
2898
2899 2010-07-07  Joel Brobecker  <brobecker@adacore.com>
2900
2901         * NEWS: Create a new section for the next release branch.
2902         Rename the section of the current branch, now that it has
2903         been cut.
2904
2905 2010-07-07  Joel Brobecker  <brobecker@adacore.com>
2906
2907         GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
2908         * version.in: Bump version to 7.2.50.20100707-cvs.
2909
2910 2010-07-07  Tom Tromey  <tromey@redhat.com>
2911
2912         * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
2913         LOC_COMPUTED symbol.
2914         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
2915         (dwarf2_loc_desc_needs_frame): Likewise.
2916         (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
2917         * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
2918         * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
2919         * dwarf2-frame.c (execute_stack_op): Set 'offset' field.  Add
2920         'offset' argument.
2921         (struct dwarf2_frame_cache) <text_offset>: New field.
2922         (dwarf2_frame_cache): Set new field.
2923         (dwarf2_frame_prev_register): Update.
2924         (dwarf2_frame_sniffer): Update.
2925         (dwarf2_frame_base_sniffer): Update.
2926         (dwarf2_frame_find_fde): Add 'out_offset' argument.
2927
2928 2010-07-07  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
2929             Thiago Jung Bauermann  <bauerman@br.ibm.com>
2930
2931         Support for hw accelerated condition watchpoints in booke powerpc.
2932
2933         * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
2934         and move to eval.c.  Change callers.
2935         (insert_bp_location): Pass watchpoint condition in
2936         target_insert_watchpoint.
2937         (remove_breakpoint_1) Pass watchpoint condition in
2938         target_remove_watchpoint.
2939         (watchpoint_locations_match): Call
2940         target_can_accel_watchpoint_condition.
2941         * eval.c: Include wrapper.h.
2942         (fetch_subexp_value): Moved from breakpoint.c.
2943         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
2944         Formatting fix.
2945         (can_use_watchpoint_cond_accel): New function.
2946         (calculate_dvc): Likewise.
2947         (num_memory_accesses): Likewise.
2948         (check_condition): Likewise.
2949         (ppc_linux_can_accel_watchpoint_condition): Likewise
2950         (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
2951         check_condition and calculate_dvc.
2952         (ppc_linux_remove_watchpoint): Likewise.
2953         (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
2954         ppc_linux_can_accel_watchpoint_condition
2955         * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
2956         condition.
2957         (debug_to_remove_watchpoint): Likewise.
2958         (debug_to_can_accel_watchpoint_condition): New function.
2959         (update_current_target): Set to_can_accel_watchpoint_condition.
2960         (setup_target_debug): Set to_can_accel_watchpoint_condition.
2961         * target.h: Add opaque declaration for struct expression.
2962         (struct target_ops) <to_insert_watchpoint>,
2963         <to_remove_watchpoint>: Add new arguments to pass the watchpoint
2964         <to_can_accel_watchpoint_condition>: New member.
2965         condition.  Update all callers and implementations.
2966         (target_can_accel_watchpoint_condition): New macro.
2967         * value.c (free_value_chain): New function.
2968         * value.h (fetch_subexp_value): New prototype.
2969         (free_value_chain): Likewise.
2970
2971 2010-07-07  Ulrich Weigand  <uweigand@de.ibm.com>
2972
2973         * linux-nat.c (linux_nat_do_thread_registers): Use section size
2974         from gdbarch_core_regset_sections also for .reg if present.
2975
2976         * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
2977         section size for .reg.
2978         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2979         (ppc_linux_vmx_regset_sections): Likewise.
2980         (ppc_linux_fp_regset_sections): Likewise.
2981         (ppc64_linux_vsx_regset_sections): New variable.
2982         (ppc64_linux_vmx_regset_sections): Likewise.
2983         (ppc64_linux_fp_regset_sections): Likewise.
2984         (ppc_linux_init_abi): Install core_regset_section lists appropriate
2985         for current word size.
2986
2987 2010-07-06  Joel Brobecker  <brobecker@adacore.com>
2988
2989         * server.c (myresume): Make static.
2990
2991 2010-07-06  Tom Tromey  <tromey@redhat.com>
2992
2993         * configure, config.in: Rebuild.
2994         * configure.ac (HAVE_LIBPYTHON2_7): New define.
2995         * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
2996
2997 2010-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2998
2999         * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3000         "clear".
3001
3002 2010-07-06  Ken Werner  <ken.werner@de.ibm.com>
3003
3004         * gdbtypes.h (floatformats_ieee_half): Add declaration.
3005         * gdbtypes.c (floatformats_ieee_half): New variable.
3006         * doublest.c (floatformat_from_length): Set format to
3007         gdbarch_half_format if length matches.
3008         * gdbarch.sh (half_bit): New architecture method.
3009         (half_format): Likewise.
3010         * gdbarch.h: Regenerate.
3011         * gdbarch.c: Likewise.
3012
3013 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3014             Joel Brobecker  <brobecker@adacore.com>
3015
3016         Fix re-run of PIE executable, PR shlibs/11776.
3017         * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3018         the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3019
3020 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3021             Joel Brobecker  <brobecker@adacore.com>
3022
3023         * auxv.c (memory_xfer_auxv): Update attach comment.
3024         * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3025         svr4_relocate_main_executable.
3026         (svr4_solib_create_inferior_hook): Make the call to
3027         svr4_relocate_main_executable unconditional.
3028
3029 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3030             Joel Brobecker  <brobecker@adacore.com>
3031
3032         * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3033
3034 2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3035             Joel Brobecker  <brobecker@adacore.com>
3036
3037         Fix attaching to PIEs prelinked on the disk after the process was
3038         started.
3039         * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3040         Verify it against bfd_get_arch_size.  Try to match arbitrary
3041         displacement for the phdrs comparison.
3042
3043 2010-07-02  Tom Tromey  <tromey@redhat.com>
3044
3045         PR exp/11780:
3046         * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3047         value as optimized-out.
3048
3049 2010-07-02  Ulrich Weigand  <uweigand@de.ibm.com>
3050             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3051
3052         * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3053         represent?" question in comment.  Change comment to a proper sentence.
3054
3055 2010-07-02  Ken Werner  <ken.werner@de.ibm.com>
3056
3057         * c-valprint.c (c_val_print): Fix printing of character vectors.
3058
3059 2010-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3060
3061         * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3062         create_breakpoint prototype.
3063
3064 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3065
3066         * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3067         usefulness suggestion of multiple breakpoints at same location.
3068
3069 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3070
3071         * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3072
3073 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3074
3075         * dwarf2loc.c (locexpr_tracepoint_var_ref)
3076         (loclist_tracepoint_var_ref): Handle optimized out values.
3077
3078 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3079
3080         * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3081         unnecessary space in string.
3082         * filesystem.c (_initialize_filesystem): Ditto.
3083         * frame.c (_initialize_frame): Ditto.
3084         * infcmd.c (step_once): Ditto.
3085         * infrun.c (_initialize_infrun): Ditto.
3086         * linux-nat.c (linux_child_follow_fork): Ditto.
3087         * maint.c (maintenance_deprecate): Ditto.
3088         * memattr.c (_initialize_mem): Ditto.
3089         * mips-tdep.c (_initialize_mips_tdep): Ditto.
3090         * monitor.c (monitor_open): Ditto.
3091         * procfs.c (procfs_xfer_memory): Ditto.
3092         * reverse.c (bookmarks_info): Ditto.
3093         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3094         * stack.c (_initialize_stack): Ditto.
3095         * tracepoint.c (_initialize_tracepoint): Ditto.
3096         * xtensa-tdep.c (xtensa_supply_gregset,
3097         xtensa_regset_from_core_section): Ditto.
3098
3099 2010-07-01  Tom Tromey  <tromey@redhat.com>
3100
3101         * value.h (struct lval_funcs) <check_any_valid>: Rename from
3102         check_all_valid.
3103         * value.c (value_entirely_optimized_out): Invert result.  Update
3104         for new function name.
3105
3106 2010-07-01  Pedro Alves  <pedro@codesourcery.com>
3107
3108         Static tracepoints support.
3109
3110         * NEWS: Mention new support for static tracepoints.
3111         (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3112         qXfer:statictrace:read.
3113         (New features in the GDB remote stub, GDBserver): Mention static
3114         tracepoints support using an UST based backend.
3115         (New commands): Mention "info static-tracepoint-markers" and
3116         "strace".
3117         * breakpoint.c (is_marker_spec): New.
3118         (is_tracepoint): Handle static tracepoints.
3119         (validate_commands_for_breakpoint): Static tracepoints can't do
3120         while-stepping.
3121         (static_tracepoints_here): New.
3122         (bpstat_what): Handle static tracepoints.
3123         (print_one_breakpoint_location, allocate_bp_location, mention):
3124         Ditto.
3125         (create_breakpoint_sal): Ditto.
3126         (decode_static_tracepoint_spec): New.
3127         (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3128         `type_wanted'.  Adjust.  Handle static tracepoint marker
3129         locations.
3130         (break_command_1): Adjust.
3131         (update_static_tracepoint): New.
3132         (update_breakpoint_locations): Handle static tracepoints.
3133         (breakpoint_re_set_one): Handle static tracepoint marker
3134         locations.
3135         (disable_command, enable_command): Handle static tracepoints.
3136         (trace_command, ftrace_command): Adjust.
3137         (strace_command): New.
3138         (create_tracepoint_from_upload): Adjust.
3139         (save_breakpoints): Handle static tracepoints.
3140         (_initialize_breakpoint): Install the "strace" command.
3141         * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3142         (struct breakpoint): New fields static_trace_marker_id and
3143         static_trace_marker_id_idx.
3144         (breakpoints_here_p): Declare.
3145         (create_breakpoint): Adjust.
3146         (static_tracepoints_here): Declare.
3147         * remote.c (struct remote_state) <static_tracepoints>: New field.
3148         (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3149         (remote_static_tracepoint_marker_at): New.
3150         (remote_static_tracepoint_markers_by_strid): New.
3151         (remote_static_tracepoint_feature): New.
3152         (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3153         (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3154         (remote_supports_static_tracepoints): New.
3155         (remote_download_tracepoint): Download static tracepoints.
3156         (init_remote_ops): Install remote_static_tracepoint_marker_at and
3157         remote_static_tracepoint_markers_by_strid.
3158         (_initialize_remote): Install set|show remote static-tracepoints,
3159         and set|show remote read-sdata-object commands.
3160         * target.c (update_current_target): Inherit and default
3161         to_static_tracepoint_marker_at, and
3162         to_static_tracepoint_markers_by_strid.
3163         * target.h (static_tracepoint_marker): Forward declare.
3164         (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3165         (static_tracepoint_marker_p): New typedef.
3166         (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3167         (struct target_ops): New fields to_static_tracepoint_marker_at and
3168         to_static_tracepoint_markers_by_strid.
3169         (target_static_tracepoint_marker_at)
3170         (target_static_tracepoint_markers_by_strid): New.
3171         * tracepoint.c: Include source.h.
3172         (validate_actionline): Handle $_sdata.
3173         (struct collection_list): New field strace_data.
3174         (add_static_trace_data): New.
3175         (clear_collection_list): Clear strace_data.
3176         (stringify_collection_list): Account for a possible static trace
3177         data collection.
3178         (encode_actions_1): Encode an $_sdata collection.
3179         (parse_tracepoint_definition): Handle static tracepoints.
3180         (parse_static_tracepoint_marker_definition): New.
3181         (release_static_tracepoint_marker): New.
3182         (print_one_static_tracepoint_marker): New.
3183         (info_static_tracepoint_markers_command): New.
3184         (sdata_make_value): New.
3185         (_initialize_tracepoint): Create the $_sdata convenience variable.
3186         Add the "info static-tracepoint-markers" command.
3187         Mention $_sdata in the "collect" command's help output.
3188         * tracepoint.h (struct static_tracepoint_marker): New.
3189         (parse_static_tracepoint_marker_definition)
3190         (release_static_tracepoint_marker): Declare.
3191         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3192         * python/py-breakpoint.c (bppy_new): Adjust.
3193
3194 2010-06-30  Joel Brobecker  <brobecker@adacore.com>
3195
3196         * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3197         including Python.h.
3198
3199 2010-06-29  Doug Evans  <dje@google.com>
3200
3201         PR gdb/11702
3202         * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3203         DW_AT_external is present.
3204
3205         PR gdb/11702
3206         * NEWS: Add entry.
3207         * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3208         create a symbol for the field and record the value.
3209         (new_symbol): Handle DW_TAG_member.
3210         * gdbtypes.c (field_is_static): Remove FIXME.
3211         * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3212         only ignore LOC_CONST symbols that are enums.
3213
3214         * dwarf2read.c: Remove trailing whitespace.
3215
3216         Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3217         * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3218         (struct main_type, field loc): Delete dwarf_block.
3219         (FIELD_DWARF_BLOCK): Delete.
3220         (SET_FIELD_DWARF_BLOCK): Delete.
3221         (TYPE_FIELD_DWARF_BLOCK): Delete.
3222         * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3223         Update.
3224
3225 2010-06-29  Hui Zhu  <teawater@gmail.com>
3226
3227         * record.c (set_record_pic_cmdlist,
3228         show_record_pic_cmdlist): New variables.
3229         (set_record_pic_command,
3230         show_record_pic_command): New functions.
3231         (record_pic_function, record_pic_line, record_pic_enum,
3232         set_record_pic_type, record_pic_hide_nofunction,
3233         record_pic_hide_nosource, record_pic_hide_same): New variables.
3234         (record_pic_fputs): New function.
3235         (function_list, node_list, edge_list): New struct.
3236         (function_list, node_list, edge_list): New variables.
3237         (record_pic_cleanups, record_pic_node,
3238         record_pic_edge, cmd_record_pic): New functions.
3239         (_initialize_record): Add new commands for record pic.
3240
3241 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3242
3243         * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3244         ALLOCATE_CPLUS_STRUCT_TYPE.
3245
3246 2010-06-28  Phil Muldoon  <pmuldoon@redhat.com>
3247             Tom Tromey  <tromey@redhat.com>
3248             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3249
3250         * value.c (pack_unsigned_long): New function.
3251         (value_from_ulongest): New function.
3252         * value.h (value_from_ulongest): Declare.
3253         * python/python.c (_initialize_python): Call
3254         gdbpy_initialize_thread and gdbpy_initialize_inferior.
3255         * python/python-internal.h: Define thread_object.
3256         (gdbpy_inferiors, gdbpy_selected_thread)
3257         (frame_info_to_frame_object, create_thread_object)
3258         (find_thread_object, find_inferior_object)
3259         (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3260         (gdbpy_is_value_object, get_addr_from_python): Declare.
3261         * python/py-value.c (builtin_type_upylong): Define.
3262         (convert_value_from_python): Add logic for ulongest.
3263         (gdbpy_is_value_object): New function.
3264         * python/py-utils.c (get_addr_from_python): New function.
3265         * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3266         (gdbpy_selected_frame): Use PyObject over frame_info.
3267         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3268         py-infthread.
3269         (SUBDIR_PYTHON_SRCS): Likewise.
3270         (py-inferior.o): New Rule.
3271         (py-infthread.o): New Rule.
3272         * python/py-inferior.c: New File.
3273         * python/py-infthread.c: New File.
3274
3275 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3276
3277         * c-typeprint.c (c_type_print_base): For no fields check include also
3278         TYPE_TYPEDEF_FIELD_COUNT.  Print new typedefs section.
3279         * dwarf2read.c (struct typedef_field_list)
3280         (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3281         (dwarf2_add_typedef): New.
3282         (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3283         Copy also FI.TYPEDEF_FIELD_LIST.
3284         * gdbtypes.h (struct typedef_field)
3285         (struct cplus_struct_type) <typedef_field, typedef_field_count>
3286         (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3287         (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3288
3289 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3290
3291         * cp-namespace.c (cp_lookup_nested_type): New variable
3292         concatenated_name.  Turn the current return condition into a reverse
3293         one.  Call also lookup_static_symbol_aux on the constructed qualified
3294         name.
3295         * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3296         other files into a called ...
3297         (lookup_static_symbol_aux): ... new function here.
3298         * symtab.h (lookup_static_symbol_aux): New prototype.
3299         * valops.c (value_maybe_namespace_elt): Call also
3300         lookup_static_symbol_aux if we failed otherwise.
3301
3302 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3303
3304         Fix PR c++/11703 and PR gdb/1448.
3305         * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3306         FIRST_ITER check.
3307
3308 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3309
3310         Fix modification of cplus_struct_default.
3311         * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3312         Call ALLOCATE_CPLUS_STRUCT_TYPE.
3313         * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3314
3315 2010-06-28  Joel Brobecker  <brobecker@adacore.com>
3316
3317         * NEWS: Add entry announcing the python directory.
3318
3319 2010-06-28  Tom Tromey  <tromey@redhat.com>
3320
3321         * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3322
3323 2010-06-28  Doug Evans  <dje@google.com>
3324
3325         * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3326         All callers updated.
3327
3328 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3329
3330         * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3331         obstack_begin after each obstack_free.
3332
3333 2010-06-27  Doug Evans  <dje@google.com>
3334
3335         * value.c (value_static_field): Use `switch' instead of `if'.
3336         Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3337
3338         * valops.c (search_struct_field): Fix typo in error message.
3339
3340 2010-06-26  Ulrich Weigand  <uweigand@de.ibm.com>
3341
3342         * dwarf2expr.c (execute_stack_op): Place preprocessor
3343         directives at the start of the source line.
3344
3345 2010-06-25  Paul Hilfinger  <hilfinger@adacore.com>
3346
3347         * defs.h (make_command_stats_cleanup): Declare.
3348         (set_display_time): Declare.
3349         (set_display_space): Declare.
3350         * event-top.c (command_handler): Use make_command_stats_cleanup.
3351         * main.c (display_time, display_space): Move definitions to utils.c.
3352         (captured_main): Use make_command_stats_cleanup to get start-up
3353         statistics.
3354         Use set_display_time and set_display_space for processing OPT_STATISTICS
3355         case.
3356         * maint.c (maintenance_time_display): Use set_display_time.
3357         (maintenance_space_display): Use set_display_space.
3358         * top.c (execute_command): Remove obsolete 'maint time' code.
3359         (command_loop): Use make_command_stats_cleanup.
3360         * utils.c (struct cmd_stats): Structure for storing initial time
3361         and space usage.
3362         (display_time, display_space): Move definitions here from utils.c.
3363         (set_display_time): New function.
3364         (set_display_space): New function.
3365         (make_command_stats_cleanup): New function.
3366         (report_command_stats): New auxiliary function for
3367         make_command_stats_cleanup.
3368
3369 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
3370
3371         * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3372         hosts where CORE_ADDR is long long.
3373
3374 2010-06-25  Tom Tromey  <tromey@redhat.com>
3375
3376         PR python/10808:
3377         * python/python.c (execute_gdb_command): Add keywords.  Accept
3378         "to_string" argument.
3379         (struct restore_ui_file_closure): New.
3380         (restore_ui_file): New function.
3381         (make_cleanup_restore_ui_file): Likewise.
3382         (GdbMethods) <execute>: Update.
3383
3384 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
3385
3386         * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3387         during inferior call stack frame setup.
3388
3389 2010-06-25  Ken Werner  <ken.werner@de.ibm.com>
3390
3391         * solib-spu.c: Include "exception.h".
3392         (ocl_program_data_key): New variable.
3393         (append_ocl_sos): New function.
3394         (ocl_enable_break): Likewise.
3395         (spu_current_sos): Call append_ocl_sos.
3396         (spu_solib_loaded): Call ocl_enable_break.
3397         (_initialize_spu_solib): Register ocl_program_data_key.
3398
3399 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
3400
3401         * cp-support.c (reset_directive_searched): New function.
3402         (make_symbol_overload_list_using): Prevent recursive calls.
3403
3404 2010-06-25  Phil Muldoon  <pmuldoon@redhat.com>
3405
3406         * printcmd.c (print_variable_and_value): Print error message on
3407         caught exception.
3408
3409 2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
3410
3411         * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3412         of stack values.
3413         (struct dwarf_expr_piece): Rename "expr" member to "mem".  Add new
3414         "value" member.
3415         (dwarf_expr_push): Change input type to ULONGEST.
3416         (dwarf_expr_fetch): Change return type to ULONGEST.
3417         (dwarf_expr_fetch_address): Add prototype.
3418         (dwarf2_read_address): Remove prototype.
3419         * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3420         Truncate stack values to ctx->addr_size bytes.
3421         (dwarf_expr_fetch): Change return value to ULONGEST.
3422         (dwarf_expr_fetch_address): New function.
3423         (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3424         when appropriate.  Update for struct dwarf_expr_piece changes.
3425         (dwarf2_read_address): Remove.
3426         (unsigned_address_type): Remove.
3427         (signed_address_type): Remove.
3428         (execute_stack_op): Use dwarf_expr_fetch_address instead of
3429         dwarf_expr_fetch when appropriate.  Use ULONGEST as type of stack
3430         values.  Perform operations on ULONGEST instead of on GDB values,
3431         sign-extending from ctx->addr_size bytes as needed.  Read DW_OP_addr
3432         values and DW_OP_deref results as unsigned integers.
3433         * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3434         changes.
3435         (write_pieced_value): Likewise.
3436         (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3437         dwarf_expr_fetch when appropriate.
3438         (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3439         * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3440         instead of dwarf_expr_fetch when appropriate.
3441
3442 2010-06-25  Pierre Muller  <muller@ics.u-strasbg.fr>
3443
3444         * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3445
3446 2010-06-24  Joel Brobecker  <brobecker@adacore.com>
3447
3448         * python/python.c (_initialize_python): Add new "constant"
3449         PYTHONDIR in gdb module.  Insert this path at the head of
3450         sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3451         exec its __init__.py script if it exists in that directory.
3452
3453 2010-06-24  Kevin Buettner  <kevinb@redhat.com>
3454
3455         * rx-tdep.c (RX_ACC_REGNUM): Define.
3456         (RX_NUM_REGS): Redefine to 26.
3457         (rx_register_name): Add register "acc".  Change order of several
3458         registers.  Change name of "vct" register to "fintv" to match RX
3459         documentation.
3460         (rx_register_type): Add case for RX_ACC_REGNUM.
3461
3462 2010-06-24  Tom Tromey  <tromey@redhat.com>
3463
3464         * psymtab.c (lookup_partial_symbol): Mark definition as static.
3465
3466 2010-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3467             Tom Tromey  <tromey@redhat.com>
3468
3469         Fix GDB startup on readonly filesystem.
3470         * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3471
3472 2010-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3473             Pedro Alves  <pedro@codesourcery.com>
3474
3475         Fix PR 9436.
3476         * breakpoint.c (handle_jit_event): New function.
3477         (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
3478         jit, err, table and bs_class.  New variables shlib_event, jit_event,
3479         this_action and bptype.  Change bs_class assignments to this_action
3480         assignments.  new unhandled bptype internal error.  Move here
3481         shlib_event and jit_event handling from handle_inferior_event.
3482         * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
3483         Reorder items.  Remove BPSTAT_WHAT_CHECK_SHLIBS and
3484         BPSTAT_WHAT_CHECK_JIT.
3485         * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
3486         * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
3487         (handle_inferior_event): Reinitialize frame and gdbarch after
3488         bpstat_what call.  Move BPSTAT_WHAT_CHECK_SHLIBS and
3489         BPSTAT_WHAT_CHECK_JIT handling to bpstat_what.  Reinitialize even
3490         gdbarch when frame gets reinitialized.
3491
3492 2010-06-24  Hui Zhu  <teawater@gmail.com>
3493
3494        * printcmd.c (ui_printf): New function.
3495        (printf_command): Call ui_printf.
3496        (_initialize_printcmd): New command "eval".
3497
3498 2010-06-23  Ulrich Weigand  <uweigand@de.ibm.com>
3499
3500         * infrun.c (handle_inferior_event): Handle presence of single-step
3501         breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
3502         Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
3503         TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
3504         * breakpoint.c (detach_single_step_breakpoints): New function.
3505         (detach_breakpoints): Call it.
3506         (cancel_single_step_breakpoints): New function.
3507         * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
3508
3509         * spu-tdep.c (spu_memory_remove_breakpoint): New function.
3510         (spu_gdbarch_init): Install it.
3511
3512 2010-06-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
3513
3514         * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
3515         * configure: Regenerate.
3516
3517 2010-06-22  Hui Zhu  <teawater@gmail.com>
3518
3519         * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
3520         (i386_process_record): Ditto.
3521         * record.c (record_memory_query): New variable.
3522         (_initialize_record): New command "set record memory-query".
3523         * record.h (record_memory_query): New extern.
3524
3525 2010-06-21  Doug Evans  <dje@google.com>
3526
3527         * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
3528         * i386-tdep.c (i386_displaced_step_copy_insn): New function.
3529         (i386_syscall_p): Change type of lengthp to int.
3530         (i386_displaced_step_fixup): Handle kernels that run one past a
3531         syscall insn.
3532         * i386-linux-tdep.c (i386_linux_init_abi): Use
3533         i386_displaced_step_copy_insn instead of
3534         simple_displaced_step_copy_insn.
3535
3536 2010-06-21  Tom Tromey  <tromey@redhat.com>
3537
3538         * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3539         (dwarf_type_encoding_name): Likewise.
3540
3541 2010-06-21  Tom Tromey  <tromey@redhat.com>
3542
3543         * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3544         * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3545         * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3546         * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3547         * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3548         * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3549         * dwarf2read.c (tag_type_to_type): Create a new error type on
3550         failure.
3551         * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3552         * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3553
3554 2010-06-21  Michael Snyder  <msnyder@vmware.com>
3555
3556         * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
3557         not add_abbrev_prefix_cmd, for "enable breakpoints".
3558
3559 2010-06-21  Ulrich Weigand  <uweigand@de.ibm.com>
3560
3561         * dwarf2loc.c (find_location_expression): Add relocation offset
3562         to base-address-selection entry base addresses.  Read addresses
3563         (and offsets) as signed/unsigned integers, depending on the
3564         BFD's sign_extend_vma flag.  Do not call dwarf2_read_address.
3565         (loclist_describe_location): Likewise.
3566         (disassemble_dwarf_expression): Read DW_OP_addr operand as
3567         unsigned integer.  Do not call dwarf2_read_address.
3568         (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3569
3570 2010-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
3571
3572         * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3573         value instead of hard-coded SPU_LS_SIZE.
3574         (spu_software_single_step): Likewise.
3575         * spu-tdep.h (SPU_LS_SIZE): Remove.
3576
3577 2010-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
3578
3579         * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3580         limit on local store memory accesses.
3581         * spu-linux-nat.c (spu_xfer_partial): Likewise.
3582         * spu-tdep.c (spu_lslr): Remove.
3583         (spu_pointer_to_address): Do not truncate addresses.
3584         (spu_integer_to_address): Likewise.
3585         (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3586         * spu-tdep.h: Add comments.
3587         (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3588         (SPU_OVERLAY_LMA): Define.
3589
3590 2010-06-18  Stan Shebs  <stan@codesourcery.com>
3591
3592         * osdata.c (get_osdata): Warn separately if target does not report
3593         type list.
3594         (info_osdata_command): Allow empty type, report error if target
3595         does not return available types of OS data.
3596         * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3597         types if no annex supplied.
3598
3599         * thread.c (thread_id_make_value): Make a value representing the
3600         current thread.
3601         (_initialize_thread): Create $_thread.
3602
3603 2010-06-17  Joel Brobecker  <brobecker@adacore.com>
3604
3605         * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3606         last local variable declaration.  No real code change.
3607
3608 2010-06-17  Tom Tromey  <tromey@redhat.com>
3609
3610         * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3611         (dwarf2_build_psymtabs_hard): Use it.  Create addrmap on a
3612         temporary obstack.
3613
3614 2010-06-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3615             Jan Kratochvil  <jan.kratochvil@redhat.com>
3616
3617         * breakpoint.c: Include parser-defs.h.
3618         (watchpoint_exp_is_const): New function.
3619         (watch_command_1): Call watchpoint_exp_is_const to check
3620         if the expression is constant.
3621
3622 2010-06-15  Andreas Schwab  <schwab@linux-m68k.org>
3623
3624         * configure.ac: Check for RDYNAMIC also for cross builds.
3625         * configure: Regenerate.
3626
3627 2010-06-15  Pedro Alves  <pedro@codesourcery.com>
3628
3629         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3630         (SFILES): Remove solib-null.c, add solib-target.c.
3631         (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3632         (ALLDEPFILES): Remove solib-target.c.
3633         * solib-target.c (_initialize_solib_target): Set
3634         current_target_so_ops to solib_target_so_ops if not already set.
3635         * solib-null.c: Delete.
3636
3637 2010-06-14  Pedro Alves  <pedro@codesourcery.com>
3638
3639         * NEWS: Mention GDBserver's JIT compilation of tracepoint
3640         bytecode.
3641
3642 2010-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
3643
3644         * cp-valprint.c (cp_print_static_field): Members of
3645         dont_print_stat_array_obstack are of type "struct type *".
3646         (_initialize_cp_valprint): Likewise.
3647
3648 2010-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
3649
3650         * frame.c (frame_register_unwind): Do not access contents
3651         of "optimized out" unwound register value.
3652
3653 2010-06-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
3654
3655         * ada-lang.h (ada_print_type): Make varstring const.
3656         * ada-typeprint.c (print_func_type): Make name const.
3657         (ada_print_type): Make varstring const.
3658         * c-lang.h (c_print_type): Make varstring const.
3659         * c-typeprint.c (c_print_type): Likewise.
3660         * f-lang.h (f_print_type): Likewise.
3661         * f-typeprint.c (f_print_type): Likewise.
3662         * jv-lang.h (java_print_type): Likewise.
3663         * jv-typeprint.c (java_print_type): Likewise.
3664         * language.c (unk_lang_print_type): Likewise.
3665         * language.h (struct language_defn) <la_print_type>: Likewise.
3666         * m2-lang.h (m2_print_type): Likewise.
3667         * m2-typeprint.c (m2_print_type): Likewise.
3668         * p-lang.h (pascal_print_type): Likewise.
3669         * p-typeprint.c (pascal_print_type): Likewise.
3670
3671 2010-06-11  Stan Shebs  <stan@codesourcery.com>
3672
3673         Add per-operation permission flags.
3674
3675         * target.h (struct target_ops): New method to_set_permissions.
3676         (target_set_permissions): New macro.
3677         (target_insert_breakpoint): Change macro to function.
3678         (target_remove_breakpoint): Ditto.
3679         (target_stop): Ditto.
3680         (may_write_registers): Declare.
3681         (may_write_memory): Declare.
3682         (may_insert_breakpoints): Declare.
3683         (may_insert_tracepoints): Declare.
3684         (may_insert_fast_tracepoints): Declare.
3685         (may_stop): Declare.
3686         * target.c (may_write_registers, may_write_registers_1): New globals.
3687         (may_write_memory, may_write_memory_1): New globals.
3688         (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3689         (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3690         (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3691         globals.
3692         (may_stop, may_stop_1): New global.
3693         (target_xfer_partial): Test for write permission.
3694         (target_store_registers): Ditto.
3695         (target_insert_breakpoint): New function.
3696         (target_remove_breakpoint): New function.
3697         (target_stop): New function.
3698         (_initialize_targets): Add new set/show variables.
3699         (set_write_memory_permission): New function.
3700         (update_target_permissions): New function.
3701         (set_target_permissions): New function.
3702         (update_current_target): Default to_set_permissions.
3703         (_initialize_targets): Use new globals and setter function.
3704         * tracepoint.c (start_tracing): Test for permission.
3705         * inferior.h (update_observer_mode): Declare.
3706         * infrun.c (non_stop_1): Define earlier.
3707         (observer_mode, observer_mode_1): New globals.
3708         (set_observer_mode, show_observer_mode): New functions.
3709         (update_observer_mode): New function.
3710         (_initialize_infrun): Define "set observer" command.
3711         * remote.c (PACKET_QAllow): New optional packet.
3712         (remote_protocol_features): Add QAllow.
3713         (remote_set_permissions): New function.
3714         (remote_start_remote): Call it.
3715         (init_remote_ops): Add it to target vector.
3716         (_initialize_remote): Add config command for QAllow.
3717
3718 2010-06-11  Tom Tromey  <tromey@redhat.com>
3719
3720         * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
3721         DW_AT_vtable_elem_location even when GCC extension is seen.
3722
3723 2010-06-11  Tom Tromey  <tromey@redhat.com>
3724
3725         PR gdb/9977, PR exp/11636:
3726         * value.h (value_offset): Update.
3727         (struct lval_funcs) <check_validity>: New field.
3728         <copy_closure>: Make argument const.
3729         (value_computed_closure): Update.
3730         (value_contents_for_printing): Declare.
3731         (value_bits_valid): Likewise.
3732         (val_print): Likewise.
3733         (set_value_component_location): Update.
3734         (value_entirely_optimized_out): Declare.
3735         * value.c (value_offset): Argument now const.
3736         (require_not_optimized_out): New function.
3737         (value_contents_for_printing): New function.
3738         (value_contents_all): Call require_not_optimized_out.
3739         (value_contents): Likewise.
3740         (value_bits_valid): New function.
3741         (value_computed_closure): Argument now const.
3742         (set_value_component_location): Make 'whole' argument const.
3743         (value_entirely_optimized_out): New function.
3744         (value_bitsize): Argument now 'const'.
3745         (value_bitpos): Likewise.
3746         (value_type): Likewise.
3747         * valprint.h (val_print_array_elements): Update.
3748         * valprint.c (val_print): Add 'val' argument.  Use
3749         valprint_check_validity.
3750         (valprint_check_validity): New function.
3751         (value_check_printable): Use value_entirely_optimized_out.
3752         (common_val_print): Update.
3753         (value_print): Likewise.
3754         (val_print_array_elements): Add 'val' argument.
3755         * valops.c (value_fetch_lazy): Use value_contents_for_printing,
3756         value_bits_valid.  Reinit frame cache for lval_computed.
3757         * sh64-tdep.c (sh64_do_register): Update.
3758         * scm-valprint.c (scm_val_print): Add 'val' argument.
3759         * scm-lang.h (scm_val_print): Update.
3760         * python/python.h (apply_val_pretty_printer): Update.
3761         * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
3762         argument.  Call set_value_component_location.
3763         * printcmd.c (print_scalar_formatted): Update.
3764         * p-valprint.c (pascal_val_print): Add 'val' argument.
3765         (pascal_object_print_value_fields): Likewise.
3766         (pascal_object_print_value): Likewise.
3767         (pascal_object_print_static_field): Update.
3768         * p-lang.h (pascal_val_print): Update.
3769         (pascal_object_print_value_fields): Update.
3770         * mt-tdep.c (mt_registers_info): Update.
3771         * mi/mi-main.c (get_register): Update.
3772         (mi_cmd_data_evaluate_expression): Use common_val_print.
3773         * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
3774         (m2_print_unbounded_array): Likewise.
3775         (m2_val_print): Likewise.
3776         * m2-lang.h (m2_val_print): Update.
3777         * language.h (struct language_defn) <la_val_print>: Add 'val'
3778         argument.
3779         (LA_VAL_PRINT): Likewise.
3780         * language.c (unk_lang_val_print): Add 'val' argument.
3781         * jv-valprint.c (java_print_value_fields): Add 'val' argument.
3782         (java_val_print): Likewise.
3783         * jv-lang.h (java_val_print): Add 'val' argument.
3784         * infcmd.c (default_print_registers_info): Update.
3785         * f-valprint.c (f77_print_array_1): Add 'val' argument.
3786         (f77_print_array): Likewise.
3787         (f_val_print): Likewise.
3788         * f-lang.h (f_val_print): Add 'val' argument.
3789         * dwarf2loc.c (read_pieced_value): Use value_bitsize and
3790         value_bitpos.
3791         <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning.  Call
3792         set_value_optimized_out.
3793         (write_pieced_value): Use value_bitsize and value_bitpos.
3794         <default>: Don't exit loop.
3795         (check_pieced_value_validity): New function.
3796         (pieced_value_funcs): Reference check_pieced_value_validity,
3797         check_pieced_value_invalid.
3798         (copy_pieced_value_closure): Update.
3799         (check_pieced_value_bits): New function.
3800         (check_pieced_value_invalid): New function.
3801         * d-valprint.c (dynamic_array_type): Add 'val' argument.
3802         (d_val_print): Likewise.
3803         * d-lang.h (d_val_print): Update.
3804         * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
3805         (cp_print_value_fields_rtti): Likewise.
3806         (cp_print_value): Likewise.
3807         (cp_print_static_field): Update.
3808         * c-valprint.c (c_val_print): Add 'val' argument.
3809         (c_value_print): Update.
3810         * c-lang.h (c_val_print): Update.
3811         (cp_print_value_fields): Likewise.
3812         (cp_print_value_fields_rtti): Likewise.
3813         * ada-valprint.c (struct ada_val_print_args): Remove.
3814         (val_print_packed_array_elements): Add 'val' argument.
3815         (ada_val_print): Likewise.  Rewrite.
3816         (ada_val_print_stub): Remove.
3817         (ada_val_print_array): Add 'val' argument.
3818         (ada_val_print_1): Likewise.
3819         (print_variant_part): Likewise.
3820         (ada_value_print): Update.
3821         (print_record): Add 'val' argument.
3822         (print_field_values): Likewise.
3823         * ada-lang.h (ada_val_print): Update.
3824
3825 2010-06-11  Tom Tromey  <tromey@redhat.com>
3826
3827         * vec.h (VEC_cleanup): New macro.
3828         (DEF_VEC_ALLOC_FUNC_I): Update.
3829         (DEF_VEC_ALLOC_FUNC_P): Likewise.
3830         (DEF_VEC_ALLOC_FUNC_O): Likewise.
3831         * dwarf2loc.c (struct axs_var_loc): Remove.
3832         (unimplemented): New function.
3833         (translate_register): Likewise.
3834         (access_memory): Likewise.
3835         (compile_dwarf_to_ax): Likewise.
3836         (dwarf2_tracepoint_var_loc): Remove.
3837         (dwarf2_tracepoint_var_access): Likewise.
3838         (dwarf2_tracepoint_var_ref): Likewise.
3839         (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
3840         (loclist_tracepoint_var_ref): Likewise.
3841         * dwarf2expr.h (dwarf_expr_require_composition): Declare.
3842         * dwarf2expr.c (dwarf_expr_require_composition): Rename from
3843         require_composition.  No longer static.
3844         (execute_stack_op): Update.
3845         * ax-gdb.h (trace_kludge): Declare.
3846
3847 2010-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3848
3849         * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
3850         (should_be_inserted): Return zero also on NULL OWNER.
3851         (breakpoint_program_space_exit): New OWNER comment.
3852         (insert_breakpoint_locations): Extend comment for OWNER.
3853         (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
3854         (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
3855         New OWNER comment.
3856         (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
3857         (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
3858         (bpstat_check_location): New assert on OWNER.
3859         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
3860         and B initializations to the code block.  New assert on them.
3861         (print_one_breakpoint_location): New OWNER comment.
3862         (watchpoint_locations_match): Assert on OWNER.
3863         (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
3864         initializations to the code block.  New assert on OWNER.
3865         (set_breakpoint_location_function): New assert on OWNER.
3866         (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
3867         (bp_location_compare, update_global_location_list)
3868         (update_global_location_list): New OWNER comment.
3869
3870 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
3871
3872         * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
3873
3874 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
3875
3876         * config/nm-linux.h (struct target_ops): Remove forward declaration.
3877         (lin_thread_get_thread_signals): Remove prototype.
3878         (GET_THREAD_SIGNALS): Remove.
3879         * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
3880         * linux-thread-db.c (check_thread_signals): Directly call
3881         lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
3882
3883 2010-06-09  Ulrich Weigand  <uweigand@de.ibm.com>
3884
3885         * gregset.h (GDB_FPXREGSET_T): Remove.
3886         (gdb_fpxregset_t): Likewise.
3887         (supply_fpxregset): Remove prototype.
3888         (fill_fpxregset): Likewise.
3889         * i386-linux-nat.c (supply_fpxregset): Remove.
3890         (fill_fpxregset): Likewise.
3891         (fetch_fpxregs): Inline supply_fpxregset call.
3892         (store_fpxregs): Inline fill_fpxregset call.
3893
3894         * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
3895         * config/i386/nm-linux.h: Remove file.
3896
3897 2010-06-09  Michael Snyder  <msnyder@vmware.com>
3898
3899         * target.c (update_current_target): Fix spelling error in comment.
3900         (target_mourn_inferior): Fix spelling error in error message.
3901
3902 2010-06-08  Paul Hilfinger  <hilfingr@adacore.com>
3903
3904       * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
3905       SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
3906
3907 2010-06-08  Michael Snyder  <msnyder@vmware.com>
3908
3909         * remote.c (remote_close): Set inferior_ptid to null_ptid.
3910
3911 2010-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3912
3913         * configure.ac <"${have_libpython}" != no>: New workaround of
3914         python#4434.
3915         * configure: Regenerate.
3916
3917 2010-06-08  Hui Zhu  <teawater@gmail.com>
3918
3919         * record.c (record_wait): Move signal out of replay code.
3920
3921 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3922
3923         Fix PR 10640.
3924         * dwarf2-frame.c (no_dwarf_call): New function.
3925         (execute_stack_op): Set CTX->DWARF_CALL.
3926         * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
3927         * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
3928         (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
3929         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
3930         (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
3931         (needs_frame_dwarf_call): New function.
3932         (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
3933         * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
3934         Update the comment.  Move variables die, offset and error call to ...
3935         (follow_die_ref): ... a new function.
3936         (dwarf2_fetch_die_location_block): New function.
3937         * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
3938
3939 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3940
3941         * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
3942         (dwarf_expr_tls_address): Use per_cu instead of objfile.
3943         (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
3944         Initialize new BATON.PER_CU.  Adjust CTX->GDBARCH initialization for
3945         this change.
3946         (struct needs_frame_baton): New field per_cu.
3947         (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
3948         * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
3949
3950 2010-06-07  Sami Wagiaalla  <swagiaal@redhat.com>
3951
3952         * cp-support.c (make_symbol_overload_list_namespace): Only search
3953         static and global blocks.
3954         (make_symbol_overload_list_block): New function.
3955         (make_symbol_overload_list): Separate namespace search from block
3956         search.
3957         (make_symbol_overload_list_qualified): Use
3958         make_symbol_overload_list_block.
3959
3960 2010-06-07  Sami Wagiaalla  <swagiaal@redhat.com>
3961
3962         * value.h: Created oload_search_type enum.
3963         (find_overload_match): Use oload_search_type enum.
3964         * valops.c (find_overload_match): Support combined member and
3965         non-member search.
3966         * eval.c (evaluate_subexp_standard): Calls to
3967         find_overload_match now use oload_search_type enum.
3968         (oload_method_static): Verify index is a proper value.
3969         * valarith.c (value_user_defined_cpp_op): Search for and handle
3970         both member and non-member operators.
3971         (value_user_defined_cpp_op): New function.
3972         (value_user_defined_op): New function.
3973         (value_x_unop): Use value_user_defined_op.
3974         (value_x_binop): Ditto.
3975         * cp-support.c (make_symbol_overload_list_using): Added block
3976         iteration.
3977         Add check for namespace aliases and imported declarations.
3978
3979 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3980
3981         * breakpoint.h (owner): Extend the comment.
3982
3983 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3984
3985         Clear stale specific bp_location from former whole breakpoint.
3986         * breakpoint.c (delete_breakpoint): Move the stale referencing clear
3987         code ...
3988         (free_bp_location): ... here.  Rename there the called function to
3989         bpstat_remove_bp_location_callback.
3990         (bpstat_remove_breakpoint_callback): Rename to ...
3991         (bpstat_remove_bp_location_callback): ... here, change DATA resolution
3992         to struct bp_location.  Change the called function to
3993         bpstat_remove_bp_location.  Create new declaration for the function.
3994         (bpstat_remove_breakpoint): Rename to ...
3995         (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
3996         code for the new parameter type.
3997
3998 2010-06-07  Nathan Sidwell  <nathan@codesourcery.com>
3999
4000         * README: Make version-agnostic.
4001
4002 2010-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4003
4004         Fix duplicate types for single DIE.
4005         * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4006         set_die_type.
4007         (read_array_type): Remove type initialization.  Recheck get_die_type
4008         after initial die_type.  Move set_die_type before set_descriptive_type.
4009         (read_set_type): New variable domain_type.  Recheck get_die_type after
4010         initial die_type.  Move attr initialization later.
4011         (read_tag_pointer_type, read_tag_reference_type): New variable
4012         target_type.  Recheck get_die_type after initial die_type.
4013         (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4014         die_type and die_containing_type.
4015         (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4016         Recheck get_die_type after initial die_type.
4017         (read_subrange_type): Recheck get_die_type after initial die_type.
4018         Move set_die_type before set_descriptive_type.
4019         (set_die_type): Extend the function comment.  Call complaint if DIE has
4020         some type already set.
4021
4022 2010-06-05  Vladimir Prus  <vladimir@codesourcery.com>
4023
4024         * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4025         for current naming of thread groups (iN, not N).
4026
4027 2010-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
4028
4029         * ada-lang.c (ada_operator_length): Constify `struct expression'.
4030         * parse.c (operator_length): Likewise.
4031         (operator_length_standard): Likewise.
4032         * parser-defs.h (operator_length): Likewise.
4033         (operator_length_standard): Likewise.
4034         (struct exp_descriptor <operator_length>): Likewise.
4035
4036 2010-06-04  Doug Evans  <dje@google.com>
4037
4038         Add support for enabling/disabling individual pretty-printers.
4039         * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4040         * python/python-internal.h (gdbpy_enabled_cst): Declare.
4041         * python/python.c (gdbpy_enabled_cst): Define.
4042         (_initialize_python): Initialize gdbpy_enabled_cst.
4043         * NEWS: Add entry.
4044
4045 2010-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4046
4047         * breakpoint.c (update_global_location_list): Fix comment typo.
4048
4049 2010-06-04  Hui Zhu  <teawater@gmail.com>
4050
4051         * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4052
4053 2010-06-03  Doug Evans  <dje@google.com>
4054
4055         * configure.ac: Don't fail if python is unusable when
4056         configured with --with-python=auto.
4057         * configure: Regenerate.
4058
4059 2010-06-03  Sami Wagiaalla  <swagiaal@redhat.com>
4060
4061         * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4062
4063 2010-06-03  Pierre Muller  <muller@ics.u-strasbg.fr>
4064
4065         * valprint.h (get_array_bounds): Change low and high parameter types
4066         to LONGEST *.
4067         * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4068         compute bounds.
4069         (val_print_array_elements): Adapt to change above.
4070         * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4071         * p-valprint.c (pascal_val_print): Likewise.
4072
4073 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4074
4075         * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4076         .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4077         .F08.
4078
4079 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4080
4081         Support DW_TAG_module as separate namespaces.
4082         * dwarf2read.c (typename_concat): New parameter physname.
4083         (read_module_type): New function and declaration.
4084         (scan_partial_symbols): Scan also DW_TAG_module children.
4085         (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4086         to typename_concat backward compatible physname value 0.
4087         (partial_die_full_name, read_namespace_type): Pass to typename_concat
4088         backward compatible physname value 0.
4089         (add_partial_module, read_module): Remove FIXME comment.
4090         (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4091         (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4092         DIEs under DW_TAG_module.
4093         (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4094         DW_AT_MIPS_linkage_name first, extend it for language_fortran
4095         && physname and return there instead of just setting NAME.  Extend
4096         the main block for language_fortran.  Pass physname parameter to the
4097         typename_concat call.
4098         (read_import_statement, read_func_scope, get_scope_pc_bounds)
4099         (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4100         (new_symbol): Fill in cplus_specific.demangled_name if it is still
4101         missing from SYMBOL_SET_NAMES in the language_fortran case.
4102         (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4103         variables.
4104         (read_type_die) <DW_TAG_module>: New.
4105         (MAX_SEP_LEN): Increase to 7.
4106         (typename_concat): New parameter physname.  New variable lead.  Support
4107         also language_fortran.
4108         * f-exp.y (yylex): Consider : also as a symbol name character class.
4109         * f-lang.c: Include cp-support.h.
4110         (f_word_break_characters, f_make_symbol_completion_list): New functions.
4111         (f_language_defn): Use cp_lookup_symbol_nonlocal,
4112         f_word_break_characters and f_make_symbol_completion_list.
4113         * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4114         * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4115         * symtab.c (symbol_init_language_specific): Support language_fortran.
4116         (symbol_find_demangled_name): New comment on language_fortran.
4117         (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4118         for language_fortran.
4119         (lookup_symbol_aux_local): Check imports also for language_fortran.
4120         (default_make_symbol_completion_list): Rename to ...
4121         (default_make_symbol_completion_list_break_on): ... this name.  New
4122         parameter break_on, use it.
4123         (default_make_symbol_completion_list): New stub.
4124         * symtab.h (default_make_symbol_completion_list_break_on): New
4125         prototype.
4126
4127 2010-06-02  Joel Brobecker  <brobecker@adacore.com>
4128
4129         * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4130         to error.
4131
4132 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4133
4134         * dwarf2read.c (typename_concat): Add const to the variable sep.
4135
4136 2010-06-02  Tom Tromey  <tromey@redhat.com>
4137
4138         * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4139         * dwarf2read.c (dwarf_stack_op_name): No longer static.  Return
4140         type is const.  Add 'def' argument.  Add missing operators, remove
4141         unhandled ones.
4142         (decode_locdesc): Update.
4143         (dwarf2_always_disassemble): New global.
4144         (show_dwarf2_always_disassemble): New function.
4145         (_initialize_dwarf2_read): Add always-disassemble.
4146         (dwarf2_per_cu_offset_size): New function.
4147         * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4148         (piece_end_p): New function.
4149         (locexpr_describe_location_piece): Replace 'size' argument with
4150         'end'.  Use piece_end_p.  Rewrite recognition of TLS.  Recognize
4151         some constants.  Remove errors.
4152         (disassemble_dwarf_expression): New function.
4153         (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4154         Add 'offset_size' argument.
4155         (loclist_describe_location): Change output formatting.
4156         * dwarf2expr.h (dwarf_stack_op_name): Declare.
4157
4158 2010-06-02  Sami Wagiaalla  <swagiaal@redhat.com>
4159
4160         * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4161         anonymous type case.
4162
4163 2010-06-02  Pierre Muller  <muller@ics.u-strasbg.fr>
4164
4165         * dwarf2read.c (read_subrange_type): Handle missing base type
4166         according to Dwarf-2 specifications.
4167
4168 2010-06-01  Sergio Durigan Junior  <sergiodj@redhat.com>
4169
4170         * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4171         BINOP_EXCL.
4172         (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4173         UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4174         (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4175         BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4176         UNOP_CHMAX, UNOP_CHMIN.
4177         * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4178         UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4179         UNOP_CHMIN>: Remove opcodes.
4180
4181 2010-06-01  Pierre Muller  <muller@ics.u-strasbg.fr>
4182
4183         * dwarf2read.c (read_func_scope): Do not complain for
4184         external function if bounds are not found.
4185
4186 2010-06-01  Pedro Alves  <pedro@codesourcery.com>
4187
4188         * NEWS: Mention gdbserver fast tracepoints support.
4189
4190 2010-05-31  Pierre Muller  <muller@ics.u-strasbg.fr>
4191
4192         * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4193         New macros.
4194         (windows_set_console_info): New function.
4195         (windows_create_inferior): Call windows_set_console_info
4196         if NEW_CONSOLE is true.
4197         (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4198         (_initialize_loadable): Initialize GetConsoleFontSize and
4199         GetCurrentConsoleFont.
4200
4201 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4202
4203         * Makefile.in (RDYNAMIC): New.
4204         (SFILES): Add proc-service.list.
4205         * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4206         (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4207         * config/arm/linux.mh: Likewise.
4208         * config/i386/linux.mh: Likewise.
4209         * config/i386/linux64.mh: Likewise.
4210         * config/ia64/linux.mh: Likewise.
4211         * config/m32r/linux.mh: Likewise.
4212         * config/m68k/linux.mh: Likewise.
4213         * config/mips/linux.mh: Likewise.
4214         * config/pa/linux.mh: Likewise.
4215         * config/powerpc/linux.mh: Likewise.
4216         * config/powerpc/ppc64-linux.mh: Likewise.
4217         * config/s390/s390.mh: Likewise.
4218         * config/sparc/linux.mh: Likewise.
4219         * config/sparc/linux64.mh: Likewise.
4220         * config/xtensa/linux.mh: Likewise.
4221         * configure.ac: New RDYNAMIC on native host and GCC.
4222         (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4223         * configure: Regenerate.
4224         * proc-service.list: New.
4225
4226 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4227
4228         * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4229         CONTENT.
4230
4231 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4232
4233         * linux-nat.c (linux_nat_wait_1): Do not call
4234         linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4235         TARGET_WAITKIND_SIGNALLED.
4236
4237 2010-05-27  Joel Brobecker  <brobecker@adacore.com>
4238
4239         * ada-lang.c (ada_inferior_data): New struct.
4240         (ada_inferior_data): New static global.
4241         (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4242         (ada_get_tsd_type): New functions.
4243         (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4244         to look the tsd type up.
4245         (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4246         event.  Set ada_inferior_data.
4247
4248 2010-05-27  Pedro Alves  <pedro@codesourcery.com>
4249
4250         * remote.c (unpack_varlen_hex): Remove forward declaration.
4251         (remote_console_output): Make static, and add forward declaration.
4252         * remote.h: Drop FIXME comment.
4253         (unpack_varlen_hex): Declare.
4254         (remote_console_output, remote_cisco_objfile_relocate)
4255         (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4256         Delete declarations.
4257         * tracepoint.c: Include "remote.h".
4258         (unpack_varlen_hex): Delete declaration.
4259
4260 2010-05-27  Tom Tromey  <tromey@redhat.com>
4261
4262         * dwarf2loc.c (struct piece_closure) <refc>: New field.
4263         (allocate_piece_closure): Initialize refc.
4264         (copy_pieced_value_closure): Use refc.
4265         (free_pieced_value_closure): Likewise.
4266
4267 2010-05-27  Tom Tromey  <tromey@redhat.com>
4268
4269         * arm-tdep.c (push_stack_item): 'contents' now const.
4270         (arm_push_dummy_call): Make 'val' const.  Use value_contents, not
4271         value_contents_writeable.  Introduce new temporary.
4272
4273 2010-05-27  Tom Tromey  <tromey@redhat.com>
4274
4275         * findcmd.c (parse_find_args): Use value_contents, not
4276         value_contents_raw.
4277
4278 2010-05-27  Tom Tromey  <tromey@redhat.com>
4279
4280         * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4281         const.  Use value_contents, not value_contents_writeable.
4282
4283 2010-05-27  Joel Brobecker  <brobecker@adacore.com>
4284
4285         * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4286         by call to value_contents.
4287
4288 2010-05-27  Ozkan Sezer  <sezeroz@gmail.com>
4289
4290         * MAINTAINERS: Add myself for write after approval privileges.
4291
4292 2010-05-26  Doug Evans  <dje@google.com>
4293
4294         Allow python to find its files if moved from original location.
4295         * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4296         (GDB_AC_WITH_DIR): Call it.
4297         * configure.ac: Define WITH_PYTHON_PATH if we can find the
4298         python installation directory.
4299         * config.in: Regenerate.
4300         * configure: Regenerate.
4301         * defs.h (python_libdir): Declare.
4302         * main.c (python_libdir): Define.
4303         (captured_main): Initialize python_libdir.
4304         * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4305         call Py_SetProgramName to make sure python can find its libraries
4306         and modules.
4307
4308         * configure.ac: Try to use python's distutils to fetch compilation
4309         parameters.
4310         * configure: Regenerate.
4311         * python/python-config.py: New file.
4312
4313 2010-05-26  Ozkan Sezer  <sezeroz@gmail.com>
4314
4315         * ser-tcp.c (net_open): Check error return from socket() call by its
4316         equality to -1 not by it being negative.
4317         (net_close): Likewise.
4318
4319 2010-05-26  Pedro Alves  <pedro@codesourcery.com>
4320
4321         * NEWS: Mention the `qRelocInsn' feature.
4322         * gdbarch.sh (relocate_instruction): New.
4323         * amd64-tdep.c (rip_relative_offset): New.
4324         (append_insns): New.
4325         (amd64_relocate_instruction): New.
4326         (amd64_init_abi): Install it.
4327         * i386-tdep.c (append_insns): New.
4328         (i386_relocate_instruction): New.
4329         (i386_gdbarch_init): Install it.
4330         * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4331         * gdbarch.h, gdbarch.c: Regenerate.
4332
4333 2010-05-26  Tom Tromey  <tromey@redhat.com>
4334
4335         * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4336         (struct dwarf2_loclist_baton) <data>: Likewise.
4337         * dwarf2loc.c (find_location_expression): Constify return type.
4338         (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4339         (dwarf2_loc_desc_needs_frame): Likewise.
4340         (loclist_read_variable): Constify.
4341         (loclist_describe_location): Likewise.
4342         (loclist_tracepoint_var_ref): Likewise.
4343
4344 2010-05-25  Tom Tromey  <tromey@redhat.com>
4345
4346         * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4347         (dwarf_expr_frame_base_1): Likewise.
4348         (read_pieced_value): Update.
4349         (needs_frame_frame_base): Constify.
4350         (dwarf2_tracepoint_var_loc): Likewise.
4351         (dwarf2_tracepoint_var_access): Likewise.
4352         (locexpr_describe_location_piece): Likewise.
4353         (locexpr_describe_location_1): Likewise.
4354         * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4355         Constify.
4356         (data): Now const.
4357         (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4358         (dwarf_expr_eval, read_uleb128, read_sleb128)
4359         (dwarf2_read_address): Update.
4360         * dwarf2expr.c (dwarf_expr_eval): Constify.
4361         (read_uleb128): Likewise.
4362         (read_sleb128): Likewise.
4363         (dwarf2_read_address): Likewise.
4364         (require_composition): Likewise.
4365         (execute_stack_op): Likewise.
4366         * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4367         "const gdb_byte *".
4368         * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4369         Now const.
4370         (no_get_frame_base): Constify.
4371         (execute_stack_op): Likewise.
4372         (execute_cfa_program): Likewise.
4373         (read_encoded_value): Likewise.
4374
4375 2010-05-25  Doug Evans  <dje@google.com>
4376
4377         * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4378
4379         * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4380         * event-loop.c: ... here.
4381         * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4382         `error' for clarity.
4383         (tui_getc): Pass correct value for `error' parameter to
4384         tui_readline_output.
4385
4386         Add python gdb.GdbError and gdb.string_to_argv.
4387         * NEWS: Document them.
4388         * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4389         the exception is gdb.GdbError.  Print a second traceback if there's
4390         an error computing the error message.
4391         (gdbpy_string_to_argv): New function.
4392         * python/py-utils.c (gdbpy_obj_to_string): New function.
4393         (gdbpy_exception_to_string): New function.
4394         * python/python-internal.h (gdbpy_string_to_argv): Declare.
4395         (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4396         (gdbpy_gdberror_exc): Declare.
4397         * python/python.c (gdbpy_gdberror_exc): New global.
4398         (_initialize_python): Initialize gdbpy_gdberror_exc and create
4399         gdb.GdbError.
4400         (GdbMethods): Add string_to_argv.
4401
4402 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
4403
4404         * windows-nat.c (display_selector): Call GetLastError to give better
4405         failure explanation.
4406
4407 2010-05-24  Pedro Alves  <pedro@codesourcery.com>
4408
4409         * config.in: Regenerate.
4410
4411 2010-05-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
4412
4413         Code cleanup.
4414         * target.c (push_target): Return only void.  Remove the return value
4415         comment.
4416         * target.h (push_target): Return only void.
4417
4418 2010-05-23  Pedro Alves  <pedro@codesourcery.com>
4419
4420         Update gnulib from latest git.
4421         (250b80067c1e1d8faa0c42fb572f721975b929c5)
4422
4423         * gnulib/memcmp.c: Removed.
4424         * gnulib/memchr.valgrind: New.
4425         * gnulib/stddef.in.h: New.
4426         * gnulib/Makefile.am: Updated.
4427         * gnulib/memchr.c: Updated.
4428         * gnulib/memmem.c: Updated.
4429         * gnulib/stdint.in.h: Updated.
4430         * gnulib/str-two-way.h: Updated.
4431         * gnulib/string.in.h: Updated.
4432         * gnulib/wchar.in.h: Updated.
4433
4434         * gnulib/extra/link-warning.h: Removed.
4435         * gnulib/extra/c++defs.h: New.
4436         * gnulib/extra/warn-on-use.h: New.
4437         * gnulib/extra/arg-nonnull.h: Updated.
4438
4439         * gnulib/m4/extensions.m4: Updated.
4440         * gnulib/m4/gnulib-cache.m4: Updated.
4441         * gnulib/m4/gnulib-common.m4: Updated.
4442         * gnulib/m4/gnulib-comp.m4: Updated.
4443         * gnulib/m4/gnulib-tool.m4: Updated.
4444         * gnulib/m4/include_next.m4: Updated.
4445         * gnulib/m4/longlong.m4: Updated.
4446         * gnulib/m4/memchr.m4: Updated.
4447         * gnulib/m4/memmem.m4: Updated.
4448         * gnulib/m4/stdint.m4: Updated.
4449         * gnulib/m4/string_h.m4: Updated.
4450         * gnulib/m4/memcmp.m4: Removed.
4451         * gnulib/m4/onceonly_2_57.m4: Removed.
4452         * gnulib/m4/00gnulib.m4: New.
4453         * gnulib/m4/mmap-anon.m4: New.
4454         * gnulib/m4/multiarch.m4: New.
4455         * gnulib/m4/onceonly.m4: New.
4456         * gnulib/m4/stddef_h.m4: New.
4457         * gnulib/m4/warn-on-use.m4: New.
4458         * gnulib/m4/wchar.m4: Removed.
4459         * gnulib/m4/wchar_h.m4: New.
4460         * gnulib/m4/wchar_t.m4: New.
4461         * gnulib/m4/wint_t.m4: New.
4462
4463         * aclocal.m4: Regenerate.
4464         * config.in: Likewise.
4465         * configure: Likewise.
4466         * gnulib/Makefile.in: Likewise.
4467
4468 2010-05-21  Tom Tromey  <tromey@redhat.com>
4469
4470         * dwarf2loc.c (extract_bits_primitive): New function.
4471         (extract_bits): Likewise.
4472         (insert_bits): Likewise.
4473         (copy_bitwise): Likewise.
4474         (read_pieced_value): Do all operations in bits.
4475         (write_pieced_value): Likewise.
4476         * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
4477         * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
4478         Always use xrealloc to resize piece array.
4479         (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
4480         <DW_OP_piece>: Update.
4481         <DW_OP_bit_piece>: New case.
4482
4483 2010-05-21  Tom Tromey  <tromey@redhat.com>
4484
4485         * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
4486         <DWARF_VALUE_OPTIMIZED_OUT>: New case.
4487         * dwarf2expr.h (enum dwarf_value_location)
4488         <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
4489         * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
4490         (add_piece): Handle empty piece.
4491         (execute_stack_op) <DW_OP_piece>: Handle
4492         DWARF_VALUE_OPTIMIZED_OUT.
4493
4494 2010-05-21  Tom Tromey  <tromey@redhat.com>
4495
4496         * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
4497         evaluate_subexp, not evaluate_subexp_with_coercion.
4498
4499 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
4500
4501         * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
4502         attribute.
4503
4504 2010-05-21  Tom Tromey  <tromey@redhat.com>
4505
4506         * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
4507         offset.
4508         (write_pieced_value): Likewise.
4509
4510 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
4511
4512         * dwarf2read.c (process_die): Also allow DW_TAG_const_type
4513         and DW_TAG_volatile_type.
4514         (new_symbol): Likewise.
4515
4516 2010-05-20  Pierre Muller  <muller@ics.u-strasbg.fr>
4517
4518         * p-valprint.c (pascal_val_print): Call get_array_bounds
4519         to obtain the number of elements in an array.
4520
4521 2010-05-19  Doug Evans  <dje@google.com>
4522
4523         * python.c (gdbpy_print_stack): Ensure output ends with a newline.
4524
4525         * python.c (source_python_script): Add comment.
4526         (source_python_script_for_objfile): Remove unnecessary call to
4527         gdbpy_print_stack.
4528
4529 2010-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4530             Sergio Durigan Junior  <sergiodj@redhat.com>
4531
4532         Code cleanup.
4533         * parse.c (exp_iterate): Use operator_length wrapper function.
4534
4535 2010-05-18  Michael Snyder  <msnyder@vmware.com>
4536
4537         * ada-lang.c: White space.
4538         * ada-typeprint.c: White space.
4539         * ada-valprint.c: White space.
4540         * addrmap.c: White space.
4541         * auxv.c: White space.
4542         * ax-gdb.c: White space.
4543
4544 2010-05-18  Hui Zhu  <teawater@gmail.com>
4545
4546         * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4547         for oldfp.
4548         (inferior_call_waitpid): Move make_cleanup out of check.
4549         Check the return of waitpid.
4550         (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4551
4552 2010-05-17  Michael Snyder  <msnyder@vmware.com>
4553
4554         * tui/tui.c: White space.
4555         * tui/tui-data.c: White space.
4556         * tui/tui-disasm.c: White space.
4557         * tui/tui-file.c: White space.
4558         * tui/tui-interp.c: White space.
4559         * tui/tui-main.c: White space.
4560         * tui/tui-out.c: White space.
4561         * tui/tui-regs.c: White space.
4562         * tui/tui-source.c: White space.
4563         * tui/tui-stack.c: White space.
4564         * tui/tui-win.c: White space.
4565         * tui/tui-winsource.c: White space.
4566
4567         * procfs.c: White space.
4568
4569         * python/py-auto-load.c: White space.
4570         * python/py-block.c: White space.
4571         * python/py-breakpoint.c: White space.
4572         * python/py-cmd.c: White space.
4573         * python/py-function.c: White space.
4574         * python/py-lazy-string.c: White space.
4575         * python/py-objfile.c: White space.
4576         * python/py-param.c: White space.
4577         * python/py-prettyprint.c: White space.
4578         * python/py-progspace.c: White space.
4579         * python/py-symtab.c: White space.
4580         * python/python.c: White space.
4581         * python/py-type.c: White space.
4582         * python/py-utils.c: White space.
4583         * python/py-value.c: White space.
4584
4585         * mi/mi-cmd-break.c: White space.
4586         * mi/mi-cmd-env.c: White space.
4587         * mi/mi-cmds.c: White space.
4588         * mi/mi-cmd-stack.c: White space.
4589         * mi/mi-cmd-var.c: White space.
4590         * mi/mi-console.c: White space.
4591         * mi/mi-getopt.c: White space.
4592         * mi/mi-interp.c: White space.
4593         * mi/mi-main.c: White space.
4594         * mi/mi-out.c: White space.
4595         * mi/mi-parse.c: White space.
4596
4597         * cli/cli-cmds.c: White space.
4598         * cli/cli-decode.c: White space.
4599         * cli/cli-dump.c: White space.
4600         * cli/cli-interp.c: White space.
4601         * cli/cli-logging.c: White space.
4602         * cli/cli-script.c: White space.
4603         * cli/cli-setshow.c: White space.
4604
4605         * valarith.c: White space.
4606         * valops.c: White space.
4607         * valprint.c: White space.
4608         * value.c: White space.
4609         * varobj.c: White space.
4610         * xcoffread.c: White space.
4611         * xml-support.c: White space.
4612         * xml-tdesc.c: White space.
4613
4614 2010-05-17  Andreas Schwab  <schwab@redhat.com>
4615
4616         PR gdb/11092
4617         * c-lang.c (c_printstr): Compute real length of NUL terminated
4618         string at first.
4619
4620 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
4621
4622         * parse.c (parse_exp_in_context): When block is not NULL, use
4623         its associated language to parse the expression instead of
4624         the current_language.
4625
4626 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
4627
4628         * jv-lang.c (java_lookup_class): Remove commented out code.
4629         (type_from_class): Likewise.
4630         (java_op_print_tab): Remove commented-out elements.
4631
4632 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
4633
4634         * ada-lang.c (to_fixed_range_type): The the raw index type as
4635         argument instead of the raw type name.  Remove orig_type parameter.
4636         Update calls throughout.
4637         (ada_fixup_array_indexes_type): New function.
4638         (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4639         * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4640         * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4641         Remove name parameter.
4642         (print_array_type): Add call to ada_fixup_array_indexes_type.
4643         Update calls to print_range_type.
4644         (ada_print_type): Update calls to print_range_type.
4645
4646 2010-05-17  Pierre Muller  <muller@ics.u-strasbg.fr>
4647
4648         * dwarf2read.c (read_set_type): Set type length if
4649         DW_AT_byte_size attribute is present.
4650
4651 2010-05-17  Pierre Muller  <muller@ics.u-strasbg.fr>
4652
4653         * p-valprint.c (pascal_val_print): Handle set type if range limits
4654         are undefined but size is known.
4655
4656 2010-05-17  Pedro Alves  <pedro@codesourcery.com>
4657
4658         * procfs.c: Reformat.
4659
4660 2010-05-16  Michael Snyder  <msnyder@vmware.com>
4661
4662         * target.c: White space.
4663         * target-descriptions.c: White space.
4664         * target-memory.c: White space.
4665         * thread.c: White space.
4666         * top.c: White space.
4667         * tracepoint.c: White space.
4668         * trad-frame.c: White space.
4669         * tramp-frame.c: White space.
4670         * ui-file.c: White space.
4671         * ui-out.c: White space.
4672         * user-regs.c: White space.
4673         * utils.c: White space.
4674
4675         * scm-exp.c: White space.
4676         * scm-lang.c: White space.
4677         * scm-valprint.c: White space.
4678         * sentinel-frame.c: White space.
4679         * ser-base.c: White space.
4680         * ser-go32.c: White space.
4681         * serial.c: White space.
4682         * ser-mingw.c: White space.
4683         * ser-pipe.c: White space.
4684         * ser-tcp.c: White space.
4685         * ser-unix.c: White space.
4686         * solib.c: White space.
4687         * solib-darwin.c: White space.
4688         * solib-frv.c: White space.
4689         * solib-irix.c: White space.
4690         * solib-osf.c: White space.
4691         * solib-pa64.c: White space.
4692         * solib-som.c: White space.
4693         * solib-spu.c: White space.
4694         * solib-svr4.c: White space.
4695         * solib-target.c: White space.
4696         * source.c: White space.
4697         * stabsread.c: White space.
4698         * stack.c: White space.
4699         * std-regs.c: White space.
4700         * symfile.c: White space.
4701         * symmisc.c: White space.
4702         * symtab.c: White space.
4703
4704 2010-05-16  Michael Snyder  <msnyder@vmware.com>
4705
4706         * source.c (_initialize_source): Add "rev" as an abbreviation
4707         for the "reverse-search" command.
4708
4709 2010-05-16  Michael Snyder  <msnyder@vmware.com>
4710
4711         * record.c: White space.
4712         * regcache.c: White space.
4713         * reggroups.c: White space.
4714         * remote-fileio.c: White space.
4715         * remote-m32r-sdi.c: White space.
4716         * remote-mips.c: White space.
4717         * remote-sim.c: White space.
4718         * remote.c: White space.
4719         (process_g_packet): Remove orphan braces.
4720
4721 2010-05-15  Michael Snyder  <msnyder@vmware.com>
4722
4723         * parse.c: White space.
4724         * p-lang.c: White space.
4725         * posix-hdep.c: White space.
4726         * printcmd.c: White space.
4727         * progspace.c: White space.
4728         * prologue-value.c: White space.
4729         * psymtab.c: White space.
4730         * p-typeprint.c: White space.
4731         * p-valprint.c: White space.
4732
4733         * objc-lang.c: White space.
4734         * objfiles.c: White space.
4735         * observer.c: White space.
4736         * osabi.c: White space.
4737         * osdata.c: White space.
4738
4739         * m2-lang.c: White space.
4740         * m2-valprint.c: White space.
4741         * macrocmd.c: White space.
4742         * macroexp.c: White space.
4743         * macroscope.c: White space.
4744         * macrotab.c: White space.
4745         * main.c: White space.
4746         * maint.c: White space.
4747         * mdebugread.c: White space.
4748         * memattr.c: White space.
4749         * minsyms.c: White space.
4750         * monitor.c: White space.
4751
4752 2010-05-14  Michael Snyder  <msnyder@vmware.com>
4753
4754         * jv-lang.c: White space.
4755         * jv-typeprint.c: White space.
4756         * jv-valprint.c: White space.
4757         * language.c: White space.
4758         * libunwind-frame.c: White space.
4759         * linespec.c: White space.
4760         * linux-nat.c: White space.
4761         * linux-record.c: White space.
4762         * linux-thread-db.c: White space.
4763
4764         * infcall.c: White space.
4765         * inf-child.c: White space.
4766         * infcmd.c: White space.
4767         * inferior.c: White space.
4768         * inf-loop.c: White space.
4769         * inflow.c: White space.
4770         * inline-frame.c: White space.
4771         * interps.c: White space.
4772
4773         * gcore.c: White space.
4774         * gdb.c: White space.
4775         * gdbtypes.c: White space.
4776         * gnu-nat.c: White space.
4777         * gnu-v2-abi.c: White space.
4778         * gnu-v3-abi.c: White space.
4779
4780         * findcmd.c: White space.
4781         * findvar.c: White space.
4782         * fork-child.c: White space.
4783         * frame-base.c: White space.
4784         * frame.c: White space.
4785         * frame-unwind.c: White space.
4786         * f-valprint.c: White space.
4787
4788         * elfread.c: White space.
4789         * environ.c: White space.
4790         * eval.c: White space.
4791         * event-loop.c: White space.
4792         * event-top.c: White space.
4793         * exceptions.c: White space.
4794         * exec.c: White space.
4795         * expprint.c: White space.
4796
4797         * dbxread.c: White space.
4798         * dcache.c: White space.
4799         * disasm.c: White space.
4800         * doublest.c: White space.
4801         * dsrec.c: White space.
4802         * dummy-frame.c: White space.
4803         * dwarf2expr.c: White space.
4804         * dwarf2-frame.c: White space.
4805         * dwarf2loc.c: White space.
4806         * dwarf2read.c: White space.
4807
4808 2010-05-14  Phil Muldoon  <pmuldoon@redhat.com>
4809
4810         PR python/11482
4811
4812         * python/py-value.c (valpy_hash): New function.
4813         (value_object_type): Register valpy_hash.
4814
4815 2010-05-14  Hui Zhu  <teawater@gmail.com>
4816             Michael Snyder  <msnyder@vmware.com>
4817
4818         * linux-fork.c (gdbthread.h): New include.
4819         (fork_info): Add parent_ptid.
4820         (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
4821         functions.
4822         (delete_checkpoint_command): Call inferior_call_waitpid.
4823         (checkpoint_command): Set parent_ptid.
4824
4825 2010-05-13  Michael Snyder  <msnyder@vmware.com>
4826
4827         * dictionary.c: Re-indent to GNU coding standard.
4828
4829         * charset.c: White space.
4830         * c-lang.c: White space.
4831         * cli-out.c: White space.
4832         * coffread.c: White space.
4833         * complaints.c: White space.
4834         * completer.c: White space.
4835         * corefile.c: White space.
4836         * corelow.c: White space.
4837         * cp-abi.c: White space.
4838         * cp-namespace.c: White space.
4839         * cp-support.c: White space.
4840         * cp-valprint.c: White space.
4841         * c-typeprint.c: White space.
4842         * c-valprint.c: White space.
4843         * blockframe.c: White space.
4844         * breakpoint.c: White space.
4845         * buildsym.c: White space.
4846         * blockframe.c: White space.
4847         * bcache.c: White space.
4848         * gdbarch.sh: White space, add blank lines.
4849         * arch-utils.c: Ditto.
4850         * gdbarch.c: Regenerate.
4851         * frame.c: White space, add blank lines.
4852         * stack.c: White space, add blank lines.
4853         (initialize_stack): Remove long-dead code.
4854
4855 2010-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4856
4857         Code cleanup.
4858         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
4859         (locexpr_read_variable, loclist_read_variable): Update the callers.
4860
4861 2010-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4862
4863         Code cleanup.
4864         * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
4865         Remove check of NULL returned by tag_type_to_type.
4866         (die_containing_type): Remove variable type.  Remove type_die variable
4867         initialization.  Remove check of NULL returned by tag_type_to_type.
4868
4869 2010-05-11  Pierre Muller  <muller@ics.u-strasbg.fr>
4870
4871         PR exp/11530.
4872         * gdbtypes.c (lookup_struct_elt_type): Also lookup
4873         names of unnamed structures or unions.
4874
4875 2010-05-11  Pierre Muller  <muller@ics.u-strasbg.fr>
4876
4877         * procfs.c (proc_watchpoint_address): New function.
4878         (procfs_stopped_by_watchpoint): Remove useless check after
4879         find_procinfo_or_die call.
4880         (procfs_stopped_data_address): New function.
4881         (procfs_use_watchpoints): Register new watchpoint related function.
4882
4883 2010-05-11  Tom Tromey  <tromey@redhat.com>
4884
4885         * eval.c (evaluate_subexp_standard): Revert inadvertent change.
4886
4887 2010-05-10  Michael Snyder  <msnyder@vmware.com>
4888
4889         * utils.c: White space cleanup.
4890
4891 2010-05-10  Tom Tromey  <tromey@redhat.com>
4892
4893         * eval.c (ptrmath_type_p): Add 'lang' argument.
4894         (evaluate_subexp_standard): Update.
4895         (evaluate_subexp_with_coercion): Update.
4896         * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
4897
4898 2010-05-10  Michael Snyder  <msnyder@vmware.com>
4899
4900         * utils.c (do_fclose_cleanup) Restore local variable.
4901
4902 2010-05-09  Doug Evans  <dje@google.com>
4903
4904         * record.c (init_record_core_ops): Rename record_core to record-core.
4905
4906 2010-05-08  Joel Brobecker  <brobecker@adacore.com>
4907
4908         Implement task switching on pa-hpux.
4909         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
4910         (inf_ttrace_target): Set t->to_get_ada_task_ptid.
4911
4912 2010-05-08  Pierre Muller  <muller@ics.u-strasbg.fr>
4913
4914         * valops.c (find_overload_match): Add missing i18n markup.
4915
4916 2010-05-08  Pierre Muller  <muller@ics.u-strasbg.fr>
4917
4918         * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
4919
4920 2010-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4921
4922         * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
4923         list for the obconcat call.
4924         * mdebugread.c (parse_symbol): Likewise.
4925         * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
4926         Likewise.
4927         * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
4928         New variable ap.  Remove variables len and val.
4929         * symfile.h (obconcat): Likewise for the prototype.
4930
4931 2010-05-07  Michael Snyder  <msnyder@vmware.com>
4932
4933         * python/python.c (execute_gdb_command): Remove unused variables.
4934         * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
4935         * python/py-breakpoint.c (gdbpy_breakpoint_created):
4936         Remove unused variable.
4937         * python/py-cmd.c (cmdpy_function): Remove unused variable.
4938         (cmdpy_completer): Remove unused variable.
4939         * python/py-frame.c (frapy_find_sal): Remove unused variable.
4940         * python/py-function.c (fnpy_call): Remove unused variable.
4941         * python/py-objfile.c (objfile_to_objfile_object):
4942         Remove unused variable.
4943         * python/py-param.c (parmpy_init): Remove unused variable.
4944         * python/py-prettyprint.c (apply_varobj_pretty_printer):
4945         Remove unused variable.
4946         (gdbpy_default_visualizer): Remove unused variable.
4947         * python/py-progspace.c (pspace_to_pspace_object):
4948         Remove unused variable.
4949         * python/py-symtab.c (symtab_and_line_to_sal_object):
4950         Remove unused variable.
4951         * python/py-type.c (typy_template_argument):
4952         Remove unused variable.
4953         * python/py-value.c (valpy_string): Remove unused variable.
4954         (convert_value_from_python): Remove unused variables.
4955
4956 2010-05-07  Michael Snyder  <msnyder@vmware.com>
4957
4958         * valops.c (value_cast_pointers): Restore unused variable 'type1',
4959         and use it to compute variable 't1'.
4960
4961 2010-05-07  Joel Brobecker  <brobecker@adacore.com>
4962
4963         * ada-lang.c (assign_aggregate): Remove unused variable.
4964
4965 2010-05-07  Sami Wagiaalla  <swagiaal@redhat.com>
4966
4967         PR C++/7943:
4968         * valops.c (find_overload_match): Handle fsym == NULL case.
4969         Add int no_adl argument.
4970         (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
4971         when appropriate.
4972         Add int no_adl argument.
4973         (find_oload_champ_namespace):   Add int no_adl argument.
4974         * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
4975         expression.
4976         * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
4977         * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
4978         Evaluate arguments and use them to perform ADL lookup.
4979         Pass no_adl argument to find_overload_match.
4980         Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
4981         * cp-support.h: Added prototype for
4982         make_symbol_overload_list_namespace.
4983         * cp-support.c (make_symbol_overload_list_namespace): New function.
4984         (make_symbol_overload_list_adl_namespace): New function.
4985         (make_symbol_overload_list_adl): New function.
4986         (make_symbol_overload_list_using): Moved code to add function to
4987         overload set to make_symbol_overload_list_namespace.
4988         * c-exp.y: create UNKNOWN_CPP_NAME token.
4989         Add parse rule for ADL functions.
4990         (classify_name): Recognize an UNKNOWN_CPP_NAME.
4991
4992 2010-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4993
4994         * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
4995         sentinel.
4996
4997 2010-05-07  Joel Brobecker  <brobecker@adacore.com>
4998
4999         Implement task switching on solaris targets.
5000         * sol-thread.c (thread_db_find_thread_from_tid)
5001         (sol_get_ada_task_ptid): New functions.
5002         (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5003
5004 2010-05-07  Pedro Alves  <pedro@codesourcery.com>
5005
5006         * remote.c (remote_query_supported_append): Use reconcat.
5007         (remote_query_supported): Install a cleanup.  Use reconcat.
5008
5009 2010-05-07  Pedro Alves  <pedro@codesourcery.com>
5010
5011         * gdbarch.sh (qsupported): Delete.
5012         * gdbarch.h, gdbarch.c: Regenerate.
5013         * remote.c (remote_query_supported): Remove use of
5014         gdbarch_qsupported.
5015
5016 2010-05-06  Sergio Durigan Junior  <sergiodj@redhat.com>
5017
5018         * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5019         function.
5020
5021 2010-05-06  Michael Snyder  <msnyder@vmware.com>
5022
5023         * xml-support.c (xinclude_start_include): Delete unused variable.
5024         (xml_process_xincludes): Delete unused variable.
5025         * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5026         * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5027         (tdesc_find_arch_register): Delete unused variable.
5028         (tdesc_use_registers): Delete unused variable.
5029         * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5030         * inferior.c (print_inferior): Delete unused variable.
5031         * record.c (record_open_1): Delete unused variable.
5032         (record_restore): Delete unused variable.
5033         (cmd_record_save): Delete unused variable.
5034         * gcore.c (derive_heap_segment): Delete unused variable.
5035         (objfile_find_memory_regions): Use unused variable.
5036         * jit.c (jit_inferior_init): Delete unused variable.
5037         * progspace.c (clone_program_space): Delete unused variable.
5038         (pspace_empty_p): Delete unused variable.
5039
5040         * frame-unwind.c (frame_unwind_find_by_frame):
5041         Delete unused variable.
5042         * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5043         * cp-support.c (mangled_name_to_comp): Delete unused variable.
5044         (method_name_from_physname): Delete unused variable.
5045         (cp_func_name): Delete unused variable.
5046         (cp_validate_operator): Delete unused variable.
5047         * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5048         Delete unused variable.
5049         * trad-frame.c (trad_frame_get_prev_register):
5050         Delete unused variable.
5051         * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5052
5053         * serial.c (serial_for_fd): Delete unused variable.
5054         * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5055         * top.c (execute_command): Delete unused variable.
5056         (init_main): Delete unused variable.
5057         * utils.c (do_fclose_cleanup): Delete unused variable.
5058         (do_all_inferior_continuations): Delete unused variable.
5059         (initialize_utils): Delete unused variable.
5060         (internal_problem_mode): Delete unused global.
5061         * frame.c (get_prev_frame): Delete unused global.
5062         (get_frame_locals_address): Delete unused global.
5063         (get_frame_args_address): Delete unused global.
5064
5065         * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5066         (pascal_type_print_varspec_prefix): Delete unused variable.
5067         * f-typeprint.c (f_type_print_base): Delete unused variable.
5068         (f_type_print_varspec_suffix): Delete unused variable.
5069         * m2-typeprint.c (m2_print_type): Delete unused variable.
5070         (m2_long_set): Delete unused variable.
5071         * ada-valprint.c (ada_val_print_1): Delete unused variable.
5072         * d-valprint.c (dynamic_array_type): Delete unused variable.
5073         * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5074         Delete unused variable.
5075         (f77_create_arrayprint_offset_tbl): Delete unused variable.
5076         * m2-valprint.c (m2_val_print): Delete unused variable.
5077
5078         * ui-out.c (ui_out_field_int): Delete unused variable.
5079         (ui_out_field_fmt_int): Delete unused variable.
5080         * varobj.c (varobj_list_children): Delete unused variable.
5081         (varobj_set_value): Delete unused variable.
5082         (install_new_value_visualizer): Delete unused variable.
5083         (varobj_set_visualizer): Delete unused variable.
5084         (varobj_update): Delete unused variable.
5085         (varobj_editable_p): Delete unused variable.
5086         (c_value_of_root): Delete unused variable.
5087         (cplus_describe_child): Delete unused variable.
5088
5089         * ada-lang.c (add_defn_to_vec): Delete unused variable.
5090         (decode_constrained_packed_array_type): Delete unused variable.
5091         (add_defn_to_vec): Delete unused variable.
5092         (symbol_completion_match): Delete unused variable.
5093         (value_tag_from_contents_and_address): Delete unused variable.
5094         (ada_evaluate_subexp): Delete unused variable.
5095         * c-lang.c (classify_type): Delete unused variable.
5096         * f-lang.c (f_printstr): Delete unused variable.
5097         * objc-lang.c (objc_printstr): Delete unused variable.
5098         * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5099         * jv-lang.c (type_from_class): ifdef unused variable.
5100         (java_class_name_from_physname): Delete unused variable.
5101         * m2-lang.c (m2_printstr): Delete unused variable.
5102
5103         * objfiles.c (objfile_relocate): Delete unused variable.
5104         * maint.c (_initialize_maint_cmds): Delete unused variable.
5105         * demangle.c (_initialize_demangler): Delete unused variable.
5106         * corefile.c (reopen_exec_file): Delete unused variable.
5107         * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5108         * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5109
5110         * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5111         * memattr.c (mem_delete): Delete unused variable.
5112         (invalidate_target_mem_regions): Delete unused variable.
5113         * mem-break.c (default_memory_insert_breakpoint):
5114         Delete unused variable.
5115         * target.c (target_get_osdata): Delete unused variable.
5116         * parse.c (length_of_subexp): Delete unused variable.
5117         (prefixify_subexp): Delete unused variable.
5118         (exp_iterate): Delete unused variable.
5119         * reverse.c (delete_bookmark_command): Delete unused variable.
5120
5121         * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5122         * macroexp.c (gather_arguments): Delete unused variable.
5123         (substitute_args): Delete unused variable.
5124         * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5125         * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5126         (_initialize_gdbarch): Delete unused variable.
5127         * gdbarch.c, gdbarch.h: Regenerate.
5128         * arch-utils.c (initialize_current_architecture):
5129         Delete unused variable.
5130         (_initialize_gdbarch_utils): Delete unused variable.
5131         * gdbtypes.c (make_cv_type): Delete unused variable.
5132         (make_type_with_address_space): Delete unused variable.
5133
5134         * linespec.c (decode_compound): Delete unused variable.
5135         * dictionary.c (iterator_next_hashed): Delete unused variable.
5136         * infcall.c (call_function_by_hand): Delete unused variable.
5137         * infcmd.c (step_1): Delete unused variable.
5138         (registers_info): Delete unused variable.
5139         (attach_command): Delete unused variable.
5140         * infrun.c (follow_exec): Delete unused variable.
5141         (handle_step_into_function_backwards): Delete unused variable.
5142         (_initialize_infrun): Delete unused variable.
5143         * stack.c (parse_frame_specification_1): Delete unused variable.
5144         (frame_info): Delete unused variable.
5145         (backtrace_command_1): Delete unused variable.
5146         (catch_info): Delete unused variable.
5147
5148         * eval.c (evaluate_subexp_standard): Delete unused variable.
5149         * valops.c (value_cast_pointers): Delete unused variable.
5150         (value_dynamic_cast): Delete unused variable.
5151         (value_array): Delete unused variable.
5152         (find_overload_match): Delete unused variable.
5153         * valarith.c (value_subscript): Delete unused variable.
5154         (value_binop): Delete unused variable.
5155         * valprint.c (_initialize_valprint): Delete unused variable.
5156         * printcmd.c (print_command_1): Delete unused variable.
5157         (address_info): Delete unused variable.
5158         (printf_command): Delete unused variable.
5159
5160         * auxv.c (target_auxv_search): Delete unused variable.
5161         * blockframe.c (get_frame_block): Delete unused variable.
5162         * regcache.c (regcache_cpy): Delete unused variable.
5163         (regcache_cpy_no_passthrough): Delete unused variable.
5164         * charset.c (wchar_iterate): Delete unused variable.
5165         (find_charset_names): Delete unused variable.
5166         (_initialize_charset): Delete unused variable.
5167         * disasm.c (do_mixed_source_and_assembly):
5168         Delete unused variable.
5169         * source.c (set_default_source_symtab_and_line):
5170         Delete unused variable.
5171         (set_substitute_path_command): Delete unused variable.
5172         * value.c (preserve_values): Delete unused variable.
5173         (value_from_double): Delete unused variable.
5174
5175 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5176
5177         * psymtab.c (lookup_partial_symbol): Delete unused variable.
5178         (find_last_source_symtab_from_partial): Delete unused variable.
5179         * symfile.c (place_section): Delete unused variable.
5180         (default_symfile_offsets): Delete unused variable.
5181         (get_debug_link_info): Delete unused variable.
5182         (find_separate_debug_file_by_debuglink): Delete unused variable.
5183         (add_symbol_file_command): Delete unused variable.
5184         (symfile_find_segment_sections): Delete unused variable.
5185         * symmisc.c (free_symtab): Delete unused variable.
5186         (dump_symtab_1): Delete unused variable.
5187         * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5188         (find_pc_sect_symtab): Delete unused variable.
5189         (skip_prologue_using_lineinfo): Delete unused variable.
5190         (sources_info): Delete unused variable.
5191         (completion_list_add_name): Delete unused variable.
5192         (expand_line_sal): Delete unused variable.
5193
5194         * breakpoint.c (validate_commands_for_breakpoint):
5195         Delete unused variables.
5196         (insert_catchpoint): Delete unused variable.
5197         (update_watchpoint): Delete unused variable.
5198         (insert_bp_location): Delete unused variable.
5199         (insert_breakpoint_locations): Delete unused variable.
5200         (remove_breakpoint_1): Delete unused variable.
5201         (software_breakpoint_inserted_here_p): Delete unused variable.
5202         (watchpoints_triggered): Delete unused variable.
5203         (bpstat_check_watchpoint): Delete unused variable.
5204         (bpstat_stop_status): Delete unused variable.
5205         (print_one_breakpoint_location): Delete unused variable.
5206         (allocate_bp_location): Delete unused variable.
5207         (create_breakpoint): Delete unused variable.
5208         (watch_command_1): Delete unused variable.
5209         (catch_exception_command_1): Delete unused variable.
5210         (catch_ada_exception_command): Delete unused variable.
5211         (delete_breakpoint): Delete unused variable.
5212         (breakpoint_re_set_one): Delete unused variable.
5213         (do_enable_breakpoint): Delete unused variable.
5214
5215 2010-05-06  Pedro Alves  <pedro@codesourcery.com>
5216
5217         * amd64-tdep.c: Include disasm.h.
5218         (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5219         (amd64_insn_length): Moved to disasm.c and renamed.
5220         (fixup_riprel): Adjust.
5221         * disasm.c (do_ui_file_delete): New.
5222         (gdb_insn_length): New.
5223         (gdb_buffered_insn_length_fprintf)
5224         (gdb_buffered_insn_length_init_dis)
5225         (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5226         renamed.
5227         * disasm.h (gdb_insn_length): Declare.
5228         (gdb_buffered_insn_length): Declare.
5229
5230 2010-05-06  Pedro Alves  <pedro@codesourcery.com>
5231
5232         * remote.c (clear_threads_parsing_context): New.
5233         (remote_threads_info): Delete unused null_cleanup.  Install a
5234         cleanup to clear the threads_parsing_context in case parsing
5235         throws.
5236
5237 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5238
5239         * c-exp.y (parse_string_or_char): Delete unused variable.
5240         (c_lex): Delete unused variable.
5241         * cp-name-parser.y (cpname_lex): Delete unused variable.
5242         * ada-exp.y (find_primitive_type): Delete unused variable.
5243         (write_var_or_type): Delete unused variable.
5244         * jv-exp.y (java_parse): Delete unused variable.
5245         (push_expression_name): Delete unused variable.
5246         * p-exp.y (pascal_lex): Delete unused variable.
5247
5248 2010-05-05  Pedro Alves  <pedro@codesourcery.com>
5249
5250         * remote.c (remote_threads_info): Really revert previous previous
5251         change.
5252
5253 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5254
5255         * elfread.c (elf_symtab_read): Delete unused variable.
5256         (find_separate_debug_file_by_buildid): Delete unused variables.
5257         (elf_symfile_read): Delete unused variable.
5258
5259         * coffread.c (coff_symfile_read): Delete unused variables.
5260
5261         * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5262         (read_pe_exported_syms): Delete unused variable.
5263
5264         * stabsread.c (define_symbol): Delete unused variable.
5265
5266         * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5267         (process_psymtab_comp_unit): Delete unused variable.
5268         (dwarf2_build_psymtabs_hard): Delete unused variable.
5269         (load_partial_comp_unit): Delete unused variable.
5270         (create_all_comp_units): Delete unused variable.
5271         (scan_partial_symbols): Delete unused variable.
5272         (add_partial_symbol): Delete unused variable.
5273         (add_partial_namespace): Delete unused variable.
5274         (add_partial_enumeration): Delete unused variable.
5275         (load_full_comp_unit): Delete unused variable.
5276         (process_full_comp_unit): Delete unused variable.
5277         (read_file_scope): Delete unused variable.
5278         (read_type_unit_scope): Delete unused variable.
5279         (process_structure_scope): Delete unused variable.
5280         (process_enumeration_scope): Delete unused variable.
5281         (read_tag_ptr_to_member_type): Delete unused variable.
5282         (read_typedef): Delete unused variable.
5283         (read_partial_die): Delete unused variable.
5284         (decode_locdesc): Delete unused variable.
5285         (zeroed_partial_die): Delete unused global variable.
5286
5287         * tui/tui-interp.c (_initialize_tui_interp):
5288         Delete unused variable.
5289         * tui/tui-regs.c tui_display_registers_from):
5290         Delete unused variable.
5291         (tui_check_register_values): Delete unused variable.
5292         (tui_register_format): Delete unused variable.
5293         * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
5294         * tui/tui-windata.c (tui_display_data_from_line):
5295         Delete unused variables.
5296         (tui_vertical_data_scroll): Delete unused variables.
5297
5298 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5299
5300         * remote.c (remote_threads_info): Revert questionable part of
5301         the previous change.
5302
5303 2010-05-05  Michael Snyder  <msnyder@vmware.com>
5304
5305         * mi/mi-out.c (mi_table_begin): Delete unused variable.
5306         * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5307         (mi_cmd_var_list_children): Delete unused variable.
5308         (varobj_update_one): Delete unused variable.
5309         * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
5310         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
5311         Delete unused variable.
5312         (mi_cmd_stack_list_variables): Delete unused variable.
5313         (list_args_or_locals): Delete unused variable.
5314         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
5315         Delete unused variables.
5316         (mi_cmd_file_list_exec_source_files): Delete unused variable.
5317         * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
5318         Delete unused variable.
5319         * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5320         (mi_cmd_interpreter_exec): Delete unused variable.
5321         (mi_on_normal_stop): Delete unused variable.
5322         * mi/mi-main.c (run_one_inferior): Delete unused variable.
5323         (print_one_inferior): Delete unused variables.
5324         (mi_execute_command): Delete unused variable.
5325         (mi_cmd_execute): Delete unused variable.
5326         (timestamp): Delete unused variable.
5327
5328         * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
5329         (restore_binary_file): Delete unused variable.
5330         * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5331         * cli/cli-script.c (define_command): Delete unused variables.
5332         (recurse_read_control_structure): Delete unused variable.
5333         (script_from_file): Delete unused variable.
5334         * cli/cli-cmds.c (complete_command): Delete unused variable.
5335         (disassemble_command): Delete unused variable.
5336
5337         * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
5338         * tracepoint.c (delete_trace_variable_command):
5339         Delete unused variables.
5340         (encode_actions_1): Delete unused variables.
5341         (start_tracing): Delete unused variable.
5342         (trace_status_mi): Delete unused variable.
5343         (tfind_1): Delete unused variable.
5344         (trace_find_pc_command): Delete unused variable.
5345         (trace_find_line_command): Delete unused variables.
5346         (trace_find_range_command): Delete unused variables.
5347         (trace_find_outside_command): Delete unused variables.
5348         (parse_tracepoint_definition): Delete unused variables.
5349         (tfile_fetch_registers): Delete unused variable.
5350
5351         * dcache.c (dcache_init): Delete unused variable.
5352         (dcache_info): Delete unused variable.
5353
5354         * remote.c (remote_threads_info): Delete unused variable.
5355         (process_stop_reply) :Delete unused variable.
5356         (remote_get_trace_status): Delete unused variables.
5357
5358         * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5359         (thread_from_lwp): Delete unused variable.
5360         (enable_thread_event_reporting): Delete unused variable.
5361         (check_for_thread_db): Delete unused variables.
5362         (thread_db_find_new_threads_2): Delete unused variable.
5363
5364         * linux-fork.c (info_checkpoints_command): Delete unused variables.
5365         (checkpoint_command): Delete unused variable.
5366         (linux_fork_context): Delete unused variables.
5367
5368         * linux-nat.c (linux_parent_pid): Delete unused global variable.
5369         (linux_tracefork_child): Delete unused variable.
5370         (linux_child_follow_fork): Delete unused variable.
5371         (linux_nat_detach): Delete unused variable.
5372         (linux_handle_extended_wait): Delete unused variable.
5373         (linux_nat_has_pending_sigint): Delete unused variable.
5374         (linux_nat_find_memory_regions): Delete unused variable.
5375         (linux_nat_make_corefile_notes): Delete unused variables.
5376         (linux_nat_info_proc_cmd): Delete unused variable.
5377         (linux_proc_pending_signals): Delete unused variable.
5378         (linux_nat_stop_lwp): Delete unused variables.
5379         (_initialize_linux_nat): Delete unused variable.
5380
5381         * ser-pipe.c (pipe_ops): Delete unused global variable.
5382
5383         * linux-record.c (record_linux_system_call):
5384         Delete unused variables.
5385
5386         * corelow.c (core_xfer_partial): Delete unused variables.
5387
5388         * solib-svr4.c (find_program_interpreter): Delete unused variable.
5389         (svr4_solib_create_inferior_hook): Add ifdef around
5390         conditionally-used variable declarations.
5391
5392         * solib.c (solib_find): Delete unused variable.
5393         (free_so_symbols): Delete unused variable.
5394         (info_sharedlibrary_command): Delete unused variable.
5395         (reload_shared_libraries_1): Delete unused variable.
5396         (_initialize_solib): Delete unused variable.
5397
5398         * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5399         (i386_collect_xstateregset): Delete unused variable.
5400         * i387-tdep.c (i387_print_float_info): Delete unused variable.
5401
5402         * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5403         Delete unused variable 'type'.
5404
5405 2010-05-05  Joel Brobecker  <brobecker@adacore.com>
5406
5407         * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros.  *
5408         ada-lang.c: Remove comment mentioning these macros.
5409         * m2-exp.y: Delete commented out code.
5410
5411 2010-05-05  Joel Brobecker  <brobecker@adacore.com>
5412
5413         * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5414         for array types.
5415         * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5416
5417 2010-05-04  Pierre Muller  <muller@ics.u-strasbg.fr>
5418
5419         ARI fix: Remove ATTRIBUTE_UNUSED throughout.
5420         * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
5421         ATTRIBUTE_UNUSED.
5422         (cleanup_kernel_helper_return): Likewise.
5423         * arm-tdep.c (copy_unmodified): Likewise.
5424         (copy_preload): Likewise.
5425         (copy_copro_load_store): Likewise.
5426         (cleanup_branch): Likewise.
5427         (copy_b_bl_blx): Likewise.
5428         (copy_bx_blx_reg): Likewise.
5429         (copy_alu_imm): Likewise.
5430         (copy_alu_reg): Likewise.
5431         (copy_alu_shifted_reg): Likewise.
5432         (cleanup_load): Likewise.
5433         (cleanup_store): Likewise.
5434         (cleanup_block_load_pc): Likewise.
5435         (cleanup_svc): Likewise.
5436         (copy_undef): Likewise.
5437         (copy_unpred): Likewise.
5438         * remote.c (register_remote_support_xml): Likewise.
5439
5440 2010-05-05  Hui Zhu  <teawater@gmail.com>
5441
5442         * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5443
5444 2010-05-04  Mark Kettenis  <kettenis@gnu.org>
5445
5446         * remote.c (register_remote_support_xml)
5447         (remote_query_supported_append, remote_query_supported): Add cast
5448         to NULL used as sentinel.
5449         * tracepoint.c (tvariables_info_1): Likewise.
5450         * utils.c (add_internal_problem_command): Likewise.
5451
5452 2010-05-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5453
5454         * dwarf2loc.c (read_pieced_value, write_pieced_value,
5455         dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5456         registers gracefully.
5457
5458 2010-05-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5459
5460         * exec.c (print_section_info): Display entry point without arch
5461         specific parts.
5462
5463 2010-05-04  Pierre Muller  <muller@ics.u-strasbg.fr>
5464
5465         PR exp/11349.
5466         * printcmd.c (x_command): Only dereference once implicitly for
5467         TYPE_CODE_REF.
5468
5469 2010-05-03  Doug Evans  <dje@google.com>
5470
5471         * event-loop.c (gdb_timer): Delete unused global.
5472         (create_timer): Update.
5473
5474 2010-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5475
5476         * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
5477         CURRENT->DECLARATION case.
5478         * cp-support.h (struct using_direct): Provide extended comment.
5479
5480 2010-05-03  Mark Kettenis  <kettenis@gnu.org>
5481
5482         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
5483         HPPABSD_SIZEOF_GREGS.
5484         (HPPAOBSD_SIZEOF_FPREGS): New define.
5485         (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
5486         (hppaobsd_supply_fpregset): New function.
5487         (hppaobsd_gregset): Renamed from hppabsd_gregset.
5488         (hppaobsd_fpregset): New variable.
5489         (hppaobsd_regset_from_core_section): Handle floating-point registers.
5490         (_initialize_hppabsd_tdep): Remove spurious blank line.
5491
5492 2010-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
5493
5494         PR pascal/11349.
5495         * p-valprint.c (pascal_value_print): Always dereference a value with
5496         type code TYPE_CODE_REF.
5497
5498 2010-05-03  Pedro Alves  <pedro@codesourcery.com>
5499
5500         * remote.c (remote_notice_signals): New.
5501         (remote_start_remote): In non-stop mode, update the remote end on
5502         which signals it can silently pass.
5503         (init_remote_ops): Install remote_notice_signals.
5504
5505 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5506
5507         * cli/cli-cmds.h (error_no_arg): Remove.  Move the comment ...
5508         * command.h (error_no_arg): ... here.  Remove NORETURN, change
5509         ATTR_NORETURN to ATTRIBUTE_NORETURN.
5510         * defs.h (NORETURN, ATTR_NORETURN): Remove.
5511         (perror_with_name, verror, error, error_stream, vfatal, fatal)
5512         (internal_verror, internal_error, nomem): Remove NORETURN, change
5513         ATTR_NORETURN to ATTRIBUTE_NORETURN.
5514         * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
5515         (throw_vfatal, throw_error): Remove NORETURN.
5516         (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
5517         * exceptions.h (throw_exception, throw_verror, throw_vfatal)
5518         (throw_error, deprecated_throw_reason): Remove NORETURN, change
5519         ATTR_NORETURN to ATTRIBUTE_NORETURN.
5520         * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
5521         to ATTRIBUTE_NORETURN for prototype, for the definition only remove
5522         NORETURN.
5523         * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
5524         * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
5525         ATTRIBUTE_NORETURN.
5526         * target.c (tcomplain): Likewise.
5527         * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
5528         ATTRIBUTE_NORETURN.
5529         * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
5530         (internal_error, perror_with_name, nomem): Remove NORETURN.
5531         * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
5532         ATTRIBUTE_NORETURN.
5533
5534 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5535
5536         * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5537         * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5538         * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5539         (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5540         * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5541         (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5542         * complaints.h (complaint, internal_complaint): Likewise.
5543         * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5544         (ATTR_FORMAT): Remove.
5545         (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5546         (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5547         (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5548         (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5549         (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5550         (internal_error, internal_vwarning, internal_warning, warning)
5551         (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5552         * disasm.c (fprintf_disasm): Likewise.
5553         * exceptions.c (throw_it): Likewise.
5554         * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5555         (throw_error): Likewise.
5556         * language.h (type_error, range_error): Likewise.
5557         * linespec.c (cplusplus_error): Likewise.
5558         * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5559         * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5560         * monitor.c (monitor_debug): Likewise.
5561         * parser-defs.h (parser_fprintf): Likewise.
5562         * serial.h (serial_printf): Likewise.
5563         * tui/tui-hooks.c (tui_query_hook): Likewise.
5564         * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5565         (uo_message): Likewise.
5566         * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5567         * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5568         Likewise.
5569         * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5570
5571 2010-05-02  Pedro Alves  <pedro@codesourcery.com>
5572
5573         * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5574         (cli_table_header, cli_begin, cli_end, cli_field_int)
5575         (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5576         (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5577         Delete forward declarations.
5578         (cli_ui_out_impl): Move below the callbacks.
5579         (_initialize_cli_out): Delete.
5580
5581 2010-05-02  Pedro Alves  <pedro@codesourcery.com>
5582
5583         * README: Use consistent `GDB' and `GDBserver' spellings.
5584
5585 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5586
5587         * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5588
5589 2010-05-01  Pedro Alves  <pedro@codesourcery.com>
5590
5591         * infrun.c (prepare_for_detach): In non-stop, context switch to
5592         the thread that got the event before handling the event.
5593
5594 2010-04-30  Tom Tromey  <tromey@redhat.com>
5595
5596         * symtab.c (symbol_set_names): Fix typo.
5597
5598 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
5599
5600         * python/py-param.c (parm_constants): Avoid ARI warning
5601         by adding ARI comment.
5602         (parmpy_init): Likewise.
5603
5604 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
5605
5606         * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5607         and created type for re-use.
5608
5609 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
5610
5611         * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5612
5613 2010-04-29  Doug Evans  <dje@google.com>
5614
5615         * ser-base.h (reschedule): Delete prototype.
5616         * ser-base.c (reschedule): Make static.
5617
5618 2010-04-29  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5619
5620         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5621         (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
5622         (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
5623         EABI.
5624         (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
5625         use.
5626
5627 2010-04-29  Pedro Alves  <pedro@codesourcery.com>
5628
5629         PR gdb/11557
5630
5631         * regcache.c (registers_changed): Rename to ...
5632         (registers_changed_ptid): ... this, and only delete register cache
5633         entries matching the ptid filter argument.
5634         (registers_changed): Reimplement on top of registers_changed_ptid.
5635         * regcache.h (registers_changed_ptid): Declare.
5636         * target.c (target_resume): Flush register caches.
5637
5638 2010-04-29  Phil Muldoon  <pmuldoon@redhat.com>
5639             Tom Tromey  <tromey@redhat.com>
5640             Thiago Jung Bauermann  <bauerman@br.ibm.com>
5641
5642         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5643         (SUBDIR_PYTHON_SRCS): Likewise.
5644         (py-parameter.o): New rule.
5645         * python/py-parameter.c: New file.
5646         * python/python-internal.h (gdbpy_initialize_parameter)
5647         (gdbpy_parameter, gdbpy_parameter_value)
5648         (gdbpy_parse_command_name): Declare.
5649         * python/py-cmd.c (parse_command_name): Rename to
5650         gdbpy_parse_command_name.
5651         (gdbpy_parse_command_name): Accept a starting list parameter and
5652         use over cmdlist.
5653         (cmdpy_init): Use gdbpy_parse_command_name.
5654         * python/python.c (parameter_to_python): Rename to
5655         gdbpy_parameter_to_python.  Accept enum var_types and value.
5656         (gdbpy_parameter): Use gdbpy_parameter_value.
5657         (_initialize_python): Call gdbpy_initialize_parameters.
5658
5659 2010-04-29  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5660
5661         * MAINTAINERS: Add myself for write after approval privileges.
5662
5663 2010-04-29  Mihail Zenkov  <mihail.zenkov@gmail.com>
5664
5665         D language support.
5666         * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5667         (COMMON_OBS): Add d-lang.o d-valprint.o.
5668         (HFILES_NO_SRCDIR): Add d-lang.h.
5669         * NEWS: Mention D language support.
5670         * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5671         * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5672         * d-lang.c: New file.
5673         * d-lang.h: New file.
5674         * d-valprint.c: New file.
5675         * defs.h (enum language): Add language_d.
5676         * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5677         * language.c (binop_result_type, integral_type, character_type)
5678         (string_type, boolean_type, structured_type): Add language_d.
5679         * symfile.c (init_filename_language_table): Add language_d.
5680         * symtab.c: Include d-lang.h.
5681         (symbol_init_language_specific, symbol_find_demangled_name)
5682         (symbol_natural_name, lookup_symbol_in_language)
5683         (symbol_demangled_name, symbol_matches_domain): Add language_d.
5684
5685 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
5686
5687         * solib-svr4.c (solib_svr4_r_map): Expand function description.
5688
5689 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
5690
5691         * symfile.c (init_filename_language_table): Register .dg files
5692         with language_ada.
5693
5694 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
5695
5696         * gdbtypes.h (struct main_type): Expand comment about target_type
5697         field.
5698
5699 2010-04-27  Pedro Alves  <pedro@codesourcery.com>
5700             Tristan Gingold  <gingold@adacore.com>
5701
5702         * symfile.c (reread_symbols): Also search for file in libraries.
5703         Update comment.
5704
5705 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
5706
5707         * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
5708         in terms of configuration.
5709
5710 2010-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
5711
5712         * objfiles.c: Include solist.h.
5713         (free_all_objfiles): New variable so.  Check stale solist objfiles.
5714         * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
5715         and no_shared_libraries.
5716
5717 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
5718
5719         ARI warning fix.
5720         * python/py-auto-load.c (source_section_scripts): Remove trailing
5721         new-line in i18n string.
5722
5723 2010-04-26  Doug Evans  <dje@google.com>
5724
5725         * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
5726
5727 2010-04-26  Tom Tromey  <tromey@redhat.com>
5728
5729         * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
5730         command list.
5731
5732 2010-04-26  Pierre Muller  <muller@ics.u-strasbg.fr>
5733
5734         Removal of config/i386/nm-i386sol2.h native configuration file.
5735         * config/i386/nm-i386sol2.h: Remove file.
5736         * config/i386/i386sol2.mh: Remove NAT_FILE definition.
5737         * config/i386/sol2-64.mh: Idem.
5738         * config/djgpp/fnchange.lst: Remove reference to that file.
5739         * Makefile.in (HFILES_NO_SRCDIR): Idem.
5740
5741 2010-04-26  Pierre Muller  <muller@ics.u-strasbg.fr>
5742
5743         PR breakpoints/11531.
5744         * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5745         macro definition and related comment.
5746         * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
5747         (resume): Remove code and comment related to this macro.
5748
5749 2010-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
5750
5751         * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
5752         Fix whitespace.
5753
5754 2010-04-24  Pedro Alves  <pedro@codesourcery.com>
5755
5756         * defs.h: Adjust comment.
5757         * filesystem.h, filesystem.c: New files.
5758         * Makefile.in (SFILES): Add filesystem.c.
5759         (COMMON_OBS): Add filesystem.o.
5760         * solib.c (solib_find): Handle DOS-based filesystems.  Handle
5761         different target and host path flavours.
5762         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5763         has_dos_based_file_system on the gdbarch.
5764         * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
5765         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
5766         * i386-tdep.c (i386_go32_init_abi): Ditto.
5767         * gdbarch.sh (has_dos_based_file_system): New.
5768         * gdbarch.h, gdbarch.c: Regenerate.
5769         * NEWS: Mention improved support for remote targets with DOS-based
5770         filesystems.  Mention new `set/show target-file-system-kind'
5771         commands.
5772
5773 2010-04-23  Stan Shebs  <stan@codesourcery.com>
5774
5775         * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
5776         comments.
5777         (struct agent_reqs): Remove.
5778         (ax_reg_mask): Declare.
5779         * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
5780         (free_agent_expr): Free reg_mask.
5781         (ax_print): Add scope and register mask info.
5782         (ax_reqs): Remove agent_reqs argument, use agent expression
5783         fields, and move part of register mask computation to...
5784         (ax_reg_mask): New function.
5785         * ax-gdb.c (gen_trace_static_fields): Call it.
5786         (gen_traced_pop): Ditto.
5787         (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
5788         (gen_trace_for_var): Pass gdbarch to new_agent_expr.
5789         (gen_trace_for_expr): Ditto, and clear optimized_out flag.
5790         (gen_eval_for_expr): Ditto, and require an rvalue.
5791         (agent_command): Call ax_reqs.
5792         (agent_eval_command): Ditto.
5793         * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
5794         (validate_action_line): Ditto.
5795         (collect_symbol): Ditto.
5796         (encode_actions_1): Ditto.
5797
5798 2010-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
5799             Paul Pluzhnikov  <ppluzhnikov@google.com>
5800             Jan Kratochvil  <jan.kratochvil@redhat.com>
5801
5802         Fix deadlock on looped list of loaded shared objects.
5803         * solib-svr4.c (LM_PREV): New function.
5804         (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
5805         (svr4_current_sos): Check for correct l_prev.  New variables prev_lm
5806         and next_lm.  Clear prev_lm for solib_svr4_r_ldsomap.
5807         * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
5808
5809 2010-04-23  Doug Evans  <dje@google.com>
5810
5811         * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
5812         python.
5813         * configure: Regenerate.
5814         * main.c: #include "python/python.h".
5815         (captured_main): Defer loading auto-loaded scripts until after
5816         local_gdbinit has been sourced.
5817         * python/py-auto-load.c (gdbpy_global_auto_load): New global.
5818         (load_auto_scripts_for_objfile): New function.
5819         (auto_load_new_objfile): Call it.
5820         * python/python.h (gdbpy_global_auto_load): Declare.
5821         (load_auto_scripts_for_objfile): Declare.
5822
5823         Add support for auto-loading scripts from .debug_gdb_scripts section.
5824         * NEWS: Add entry for .debug_gdb_scripts.
5825         * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
5826         (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
5827         (py-auto-load.o): New rule.
5828         * cli/cli-cmds.c (find_and_open_script): Make externally visible.
5829         * cli/cli-cmds.h (find_and_open_script): Update prototype.
5830         * python/py-auto-load.c: New file.
5831         * python/python-internal.h: #include <stdio.h>.
5832         (set_python_list, show_python_list): Declare.
5833         (gdbpy_initialize_auto_load): Declare.
5834         (source_python_script_for_objfile): Declare.
5835         * python/python.c: Remove #include of observer.h.
5836         (gdbpy_auto_load): Moved to py-auto-load.c.
5837         (GDBPY_AUTO_FILENAME): Ditto.
5838         (gdbpy_new_objfile): Delete.
5839         (source_python_script_for_objfile): New function.
5840         (set_python_list, show_python_list): Make externally visible.
5841         (_initialize_python): Move "auto-load" command to py-auto-load.c
5842         and observer_attach_new_objfile to py-auto-load.c.
5843
5844 2010-04-23  Jerome Guitton  <guitton@adacore.com>
5845
5846         * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
5847         (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
5848         (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
5849         New constants.
5850         (alpha_heuristic_analyze_probing_loop): New function.
5851         (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
5852         and handle cases when a stack probe loop is generated.
5853         * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
5854         (alpha_mdebug_max_frame_size_exceeded): New function.
5855         (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
5856         (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
5857         Return 0 when the maximum debuggable frame size has been exceeded.
5858
5859 2010-04-23  Joel Brobecker  <brobecker@adacore.com>
5860
5861         Fix ARI warning.
5862         * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
5863
5864 2010-04-20  Chris Moller  <cmoller@redhat.com>
5865
5866         PR 10179
5867
5868         * symtab.c (rbreak_command): Added code to include a filename
5869         specification in the rbreak argument.
5870         * NEWS: Added a brief description of filename-qualified rbreak.
5871
5872 2010-04-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5873
5874         Fix crashes on dangling display expressions.
5875         * ada-lang.c (ada_operator_check): New function.
5876         (ada_exp_descriptor): Fill-in the field operator_check.
5877         * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
5878         * jv-lang.c (exp_descriptor_java): Likewise.
5879         * m2-lang.c (exp_descriptor_modula2): Likewise.
5880         * scm-lang.c (exp_descriptor_scm): Likewise.
5881         * parse.c (exp_descriptor_standard): Likewise.
5882         (operator_check_standard): New function.
5883         (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
5884         * parser-defs.h (struct exp_descriptor): New field operator_check.
5885         (operator_check_standard, exp_uses_objfile): New declarations.
5886         * printcmd.c: Remove the inclusion of solib.h.
5887         (display_uses_solib_p): Remove the function.
5888         (clear_dangling_display_expressions): Call lookup_objfile_from_block
5889         and exp_uses_objfile instead of display_uses_solib_p.
5890         * solist.h (struct so_list) <objfile>: New comment.
5891         * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
5892         * symtab.h (lookup_objfile_from_block): New declaration.
5893         (struct general_symbol_info) <obj_section>: Extend the comment.
5894
5895 2010-04-22  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
5896             Thiago Jung Bauermann  <bauerman@br.ibm.com>
5897
5898         * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
5899         (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
5900         ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
5901         PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
5902         PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
5903         PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
5904         PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
5905         PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
5906         PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
5907         PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
5908         PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
5909         PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
5910         PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
5911         Define, in case <ptrace.h> doesn't provide it.
5912         (booke_debug_info): New variable.
5913         (max_slots_number): Ditto.
5914         (hw_break_tuple): New struct.
5915         (thread_points): Ditto.
5916         (ppc_threads): New variable.
5917         (PPC_DEBUG_CURRENT_VERSION): New define.
5918         (have_ptrace_new_debug_booke): New function.
5919         (ppc_linux_check_watch_resources): Renamed to ...
5920         (ppc_linux_can_use_hw_breakpoint): ... this.  Handle BookE processors.
5921         (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
5922         (booke_cmp_hw_point): New function.
5923         (booke_find_thread_points_by_tid): Ditto.
5924         (booke_insert_point): Ditto.
5925         (booke_remove_point): Ditto.
5926         (ppc_linux_insert_hw_breakpoint): Ditto.
5927         (ppc_linux_remove_hw_breakpoint): Ditto.
5928         (get_trigger_type): Ditto.
5929         (ppc_linux_insert_watchpoint): Handle BookE processors.
5930         (ppc_linux_remove_watchpoint): Ditto.
5931         (ppc_linux_new_thread): Ditto.
5932         (ppc_linux_thread_exit): New function..
5933         (ppc_linux_stopped_data_address): Handle BookE processors.
5934         (ppc_linux_watchpoint_addr_within_range): Ditto.
5935         (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
5936         to_remove_hw_breakpoint fields of the target operations struct.
5937         Add observe for the thread_exit event.
5938
5939 2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>
5940
5941         * i386-linux-nat.c (regmap): Removed.
5942         (fetch_register): Replace regmap with
5943         i386_linux_gregset_reg_offset.
5944         (store_register): Likewise.
5945         (supply_gregset): Likewise.
5946         (fill_gregset): Likewise.
5947
5948         * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
5949         global.
5950
5951         * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
5952
5953 2010-04-22  Chris Moller  <cmoller@redhat.com>
5954
5955         * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
5956         method of popping recursion-detection stack with a method based on
5957         obstack_object_size().  (Similar to the PR9167 patch below, but for
5958         the static array obstack rather than the static member obstack.)
5959
5960 2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>
5961
5962         * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
5963         (_initialize_amd64_linux_nat): Replace
5964         amd64_linux_gregset64_reg_offset with
5965         amd64_linux_gregset_reg_offset.
5966
5967         * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
5968         global.
5969
5970         * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
5971
5972 2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
5973
5974         PR stabs/11479.
5975         * stabsread.c (set_length_in_type_chain): New function.
5976         (read_struct_type): Call set_length_in_type_chain function.
5977         (read_enum_type): Idem.
5978
5979 2010-04-21  Stan Shebs  <stan@codesourcery.com>
5980             Nathan Sidwell  <nathan@codesourcery.com>
5981
5982         * tracepoint.c (trace_save): Open in binary mode.
5983
5984 2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
5985
5986         * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
5987         fields.
5988         * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
5989         builtin_char32 fields.
5990         * printcmd.c (decode_format): Set char size to '\0'
5991         for strings unless explicit size is given.
5992         (print_formatted): Correct calculation of NEXT_ADDRESS
5993         for 16 or 32 bit strings.
5994         (do_examine): Do not force byte size for strings.
5995         Use builtin_char16 and builtin_char32 types to display
5996         16 or 32 bit-wide strings.
5997         (x_command): Set LAST_SIZE to 'b' for string type.
5998
5999 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
6000
6001         PR corefiles/11523
6002         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6003         XCR0 first.
6004
6005         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6006         there is no .reg-xstate section.
6007         (i386_linux_core_read_description): Check XCR0 first.
6008
6009 2010-04-21  Mike Frysinger  <vapier@gentoo.org>
6010
6011         * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6012         for len <= 8.
6013
6014 2010-04-21  Chris Moller  <cmoller@redhat.com>
6015
6016         PR 9167
6017         * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6018         method of popping recursion-detection stack with a method based on
6019         obstack_object_size().
6020
6021 2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6022
6023         PR pascal/11492.
6024         * p-valprint.c (pascal_val_print): Fix default printing of integer
6025         arrays.
6026
6027 2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6028
6029         Fix compilation warning on gcc-4.1.2.
6030         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6031         local variable`pc' to zero.
6032
6033 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6034
6035         Implement thread support with core files on alpha-tru64.
6036         * dec-thread.c (dec_thread_find_new_threads): New function,
6037         extracted from resync_thread_list.
6038         (resync_thread_list): Add OPS parameter.  Replace extracted-out
6039         code by call to dec_thread_find_new_threads.
6040         (dec_thread_wait): Update call to resync_thread_list.
6041         (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6042
6043 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6044
6045         * ada-lang.c (value_pointer): New function.
6046         (make_array_descriptor): Call value_pointer to convert addresses to
6047         pointers.
6048
6049 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6050
6051         * rs6000-aix-tdep.c: #include exceptions.h.
6052         (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6053         while reading the memory at ADDR, then ADDR cannot be a function
6054         descriptor.
6055
6056 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6057
6058         * ada-typeprint.c (ada_print_typedef): New function.
6059         * ada-lang.h (ada_print_typedef): Add declaration.
6060         * ada-lang.c (ada_language_defn): set la_print_typdef field
6061         to ada_print_typedef.
6062
6063 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6064
6065         * procfs.c (procfs_address_to_host_pointer): Only define when used.
6066
6067 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6068
6069         * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6070         (iterate_over_mappings): Adjust function profile. Add declaration.
6071         (insert_dbx_link_bpt_in_region, info_mappings_callback):
6072         Adjust accordingly.
6073
6074 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6075
6076         * procfs.c (solib_mappings_callback): Move function up to avoid
6077         a compiler warning.
6078
6079 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6080
6081         * procfs.c (find_signalled_thread, find_stop_signal): Move
6082         these functions down to define them only when used.
6083
6084 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
6085
6086         * valprint.c (common_val_print): Fix the value before extracting
6087         its contents.
6088         * ada-lang.c (ada_to_fixed_value): Make this function extern.
6089         * ada-lang.h (ada_to_fixed_value): New function declaration.
6090         * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6091         to avoid code duplication and fix a bug in the handling of
6092         fixed types contents.
6093
6094 2010-04-20  Tom Tromey  <tromey@redhat.com>
6095
6096         * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6097         (read_partial_die): Likewise.
6098         (dwarf_attr_name): Likewise.
6099
6100 2010-04-20  Chris Moller  <cmoller@redhat.com>
6101
6102         PR 10867
6103
6104         * cp-valprint.c (global): Adding new static array recursion
6105         detection obstack.
6106         (cp_print_value_fields, cp_print_static_field): Added new static
6107         array recursion detection code.
6108
6109 2010-04-20  Mark Kettenis  <kettenis@gnu.org>
6110
6111         * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6112         general-purpose register set should be 68 instead of 144.
6113         (i386_linux_sse_regset_sections): Likewise.
6114         (i386_linux_avx_regset_sections): Likewise.
6115
6116 2010-04-20  Stan Shebs  <stan@codesourcery.com>
6117             Nathan Sidwell  <nathan@codesourcery.com>
6118
6119         * dwarf2loc.c (struct axs_var_loc): New struct.
6120         (dwarf2_tracepoint_var_loc): New function.
6121         (dwarf2_tracepoint_var_access): New function.
6122         (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6123         with DW_OP_piece.
6124         (locexpr_describe_location_piece): New function.
6125         (locexpr_describe_location_1): New function.
6126         (locexpr_describe_location): Call it, update signature.
6127         (loclist_describe_location): Rewrite to loop over locations,
6128         update signature.
6129         * symtab.h (struct symbol_computed_ops): Add address to
6130         describe_location arguments, return void.
6131         * printcmd.c (address_info): Get context PC, pass to computed
6132         location description.
6133         * tracepoint.c (scope_info): Ditto.
6134         * ax-gdb.c (trace_kludge): Export.
6135
6136 2010-04-20  Tom Tromey  <tromey@redhat.com>
6137
6138         * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6139         (struct dwarf2_cie) <segment_size>: New field.
6140         * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6141         (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6142         DW_FORM_exprloc.
6143         (read_attribute_value): Handle DW_FORM_flag_present,
6144         DW_FORM_sec_offset, DW_FORM_exprloc.
6145         (dump_die_shallow): Likewise.
6146         (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6147         (dwarf2_const_value): Handle DW_FORM_exprloc.
6148         (attr_form_is_block): Likewise.
6149         (struct line_header) <maximum_ops_per_instruction>: New field.
6150         (dwarf_decode_line_header): Set new field.
6151         (dwarf_decode_lines): Handle new field.
6152
6153 2010-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6154
6155         * f-exp.y: Add new production to recognize the `logical*8' type.
6156         (LOGICAL_S8_KEYWORD): New token.
6157         * f-lang.c (enum f_primitive_types)
6158         <f_primitive_type_logical_s8>: New field.
6159         (f_language_arch_info): Handling `logical*8' type.
6160         (build_fortran_types): Building `logical*8' type.
6161         * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6162
6163 2010-04-19  Doug Evans  <dje@google.com>
6164
6165         * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6166         * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6167         (pipe_close): Ditto.
6168
6169 2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6170
6171         * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6172
6173 2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6174
6175         * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6176         type to void function.
6177
6178 2010-04-19  Stan Shebs  <stan@codesourcery.com>
6179             Vladimir Prus  <vladimir@codesourcery.com>
6180
6181         * tracepoint.c (tfind_1): Add missing newline, report exit from
6182         tfind mode as such.
6183         * target.c (update_current_target): Make default
6184         to_trace_find return -1.
6185
6186 2010-04-19  Mike Frysinger  <vapier@gentoo.org>
6187
6188         * objc-lang.c (find_methods): Move symname check up.
6189
6190 2010-04-19  Pedro Alves  <pedro@codesourcery.com>
6191
6192         * ada-lang.c (print_recreate_exception)
6193         <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6194         not "catch unhandled".
6195
6196 2010-04-19  Pedro Alves  <pedro@codesourcery.com>
6197
6198         PR breakpoints/8554.
6199
6200         Implement `save-breakpoints'.
6201
6202         * breakpoint.c (save_cmdlist): New.
6203         (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6204         to save_cmdlist.
6205         (print_recreate_catch_fork): New.
6206         (catch_fork_breakpoint_ops): Install it.
6207         (print_recreate_catch_vfork): New.
6208         (catch_vfork_breakpoint_ops): Install it.
6209         (print_recreate_catch_syscall): New.
6210         (catch_syscall_breakpoint_ops): Install it.
6211         (print_recreate_catch_exec): New.
6212         (catch_exec_breakpoint_ops): Install it.
6213         (print_recreate_exception_catchpoint): New.
6214         (gnu_v3_exception_catchpoint_ops): Install it.
6215         (save_breakpoints): New, based on tracepoint_save_command, but
6216         handle all breakpoint types.
6217         (save_breakpoints_command): New.
6218         (tracepoint_save_command): Rename to...
6219         (save_tracepoints_command): ... this, and reimplement using
6220         save_breakpoints.
6221         (save_command): New.
6222         (_initialize_breakpoints): Install the "save" command prefix.
6223         Install the "save breakpoints" command.  Make "save-tracepoints" a
6224         deprecated alias for "save tracepoints".
6225         * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6226         * ada-lang.c (print_recreate_exception): New.
6227         (print_recreate_catch_exception): New.
6228         (catch_exception_breakpoint_ops): Install it.
6229         (print_recreate_catch_exception_unhandled): New.
6230         (catch_exception_unhandled_breakpoint_ops): Install it.
6231         (print_recreate_catch_assert): New.
6232         (catch_assert_breakpoint_ops): Install it.
6233
6234         * NEWS: Mention the new `save breakpoints' command.  Mention the
6235         new `save tracepoints' alias and that `save-tracepoints' is now
6236         deprecated.
6237
6238 2010-04-18  Pedro Alves  <pedro@codesourcery.com>
6239
6240         PR tui/9217
6241
6242         * tui/tui-out.c: Include cli-out.h.
6243         (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6244         (tui_begin, tui_end, tui_field_int, tui_field_skip)
6245         (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6246         (tui_message, tui_wrap_hint, tui_flush): Delete forward
6247         declarations.
6248         (struct ui_out_data): Rename to...
6249         (struct tui_ui_out_data): ... this.  Remove `stream' and
6250         `suppress_output' fields, and inherit cli_ui_out_data.
6251         (tui_out_data): New typedef.
6252         (tui_ui_out_impl): Don't initialize fields staticaly.
6253         (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6254         (tui_begin, tui_end): Delete.
6255         (tui_field_int): Adjust to delegate most work to the base type.
6256         (tui_field_skip): Delete.
6257         (tui_field_string, tui_field_fmt): Adjust comment.  Adjust to
6258         delegate most work to the base type.
6259         (tui_spaces): Delete.
6260         (tui_text): Adjust to delegate most work to the base type.
6261         (tui_message): Delete.
6262         (tui_wrap_hint): Delete.
6263         (tui_flush): Delete.
6264         (out_field_fmt): Delete.
6265         (field_separator): Delete.
6266         (tui_out_new): Adjust to initialize the base type.
6267         (_initialize_tui_out): Initialize tui_ui_out_impl.
6268         * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6269         cli_ui_out_data.
6270         (cli_out_data): Adjust.
6271         (cli_ui_out_impl): Make extern.
6272         (cli_table_header, cli_field_int, cli_field_skip): Use
6273         uo_field_string instead of cli_field_string.
6274         (cli_redirect): Adjust to use cli_out_data.
6275         (cli_out_data_ctor): New.
6276         (cli_out_new): Use it.
6277         * cli-out.h (struct ui_file): Remove forward declaration.
6278         (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6279         (cli_ui_out_impl): Declare.
6280         (cli_out_data_ctor): Declare.
6281         * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6282         (uo_field_string): No longer static.
6283         (ui_out_data): Change return type to void pointer.
6284         (ui_out_new): Change `data' parameter type to void pointer.
6285         * ui-out.h (struct ui_out_data): Don't forward declare.
6286         (ui_out_data): Change return type to void pointer.
6287         (ui_out_new): Change `data' parameter type to void pointer.
6288         (uo_field_string): Declare.
6289
6290 2010-04-17  Pedro Alves  <pedro@codesourcery.com>
6291
6292         * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6293         instead of always false.
6294
6295 2010-04-17  H.J. Lu  <hongjiu.lu@intel.com>
6296
6297         PR corefiles/11511
6298         * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6299         orig_rax.
6300
6301 2010-04-17  Pedro Alves  <pedro@codesourcery.com>
6302
6303         * breakpoint.c (watchpoints_triggered): Use
6304         is_hardware_watchpoint.
6305         (watchpoints_triggered): Ditto.
6306         (bpstat_check_location): Use is_watchpoint and
6307         is_hardware_watchpoint.
6308         (bpstat_check_watchpoint): Use is_watchpoint and
6309         is_hardware_watchpoint.
6310         (bpstat_stop_status): Fix comment.
6311         (user_settable_breakpoint): Use is_watchpoint.
6312         (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6313         (disable_watchpoints_before_interactive_call_start): Use
6314         is_watchpoint.
6315         (enable_watchpoints_after_interactive_call_stop): Use
6316         is_watchpoint.
6317         (clear_command): Use is_watchpoint.
6318         (do_enable_breakpoint): Use is_watchpoint.
6319
6320 2010-04-16  Mike Frysinger  <vapier@gentoo.org>
6321
6322         * solib-frv.c (enable_break1_done): Delete.
6323         (enable_break2): Do not check enable_break1_done.  Move the
6324         enable_break2_done setting and call to
6325         remove_solib_event_breakpoints() to the end.  Return without
6326         warning when the contents of _dl_debug_addr are 0.
6327         (enable_break): Do not set enable_break1_done.
6328         (frv_clear_solib): Likewise.
6329
6330 2010-04-16  Kevin Buettner  <kevinb@redhat.com>
6331
6332         * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6333         instead of an error if no PLT entry is found.  Return a
6334         potentially useful result.
6335         (m32c_m16c_pointer_to_address): Add code to search for function
6336         address when no .plt entry is found.
6337
6338 2010-04-16  Stan Shebs  <stan@codesourcery.com>
6339
6340         * tracepoint.c (trace_variable_command): Run a cleanup.
6341
6342 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6343
6344         * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6345
6346 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6347
6348         Support for Windows OS Thread Information Block.
6349         * NEWS: Document new feature.
6350         * remote.c (PACKET_qGetTIBAddr): New enum element.
6351         (remote_get_tib_address): New function.
6352         (init_remote_ops): Set to_get_tib_address field
6353         to remote_get_tib_address.
6354         (_initialize_remote): Add add_packet_config_cmd
6355         for PACKET_qGetTIBAddr.
6356         * target.c (update_current_target): Set default value for
6357         new to_get_tib_address field.
6358         * target.h (target_ops): New field to_get_tib_address.
6359         (target_get_tib_address): New macro.
6360         * windows-nat.c (thread_info): Add thread_local_base field.
6361         (windows_add_thread): Add tlb argument of type 'void *'.
6362         (fake_create_process): Adapt windows_add_thread call.
6363         (get_windows_debug_event): Idem.
6364         (windows_get_tib_address): New function.
6365         (init_windows_ops): Set to_get_tib_address field
6366         to remote_get_tib_address.
6367         (_initialize_windows_nat): Replace info_w32_cmdlist
6368         initialization by a call to init_w32_command_list.
6369         (info_w32_command, info_w32_cmdlist): Removed from here...
6370         to windows-tdep.c file.
6371         * windows-tdep.h (info_w32_cmdlist): Declare.
6372         (init_w32_command_list): New external function
6373         declaration.
6374         * windows-tdep.c: Add several headers.
6375         (info_w32_cmdlist): to here, made global.
6376         (thread_information_32): New struct.
6377         (thread_information_64): New struct.
6378         (TIB_NAME): New char array.
6379         (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6380         (maint_display_all_tib): New static variable.
6381         (windows_get_tlb_type): New function.
6382         (tlb_value_read, tlb_value_write): New functions.
6383         (tlb_value_funcs): New static struct.
6384         (tlb_make_value): New function.
6385         (display_one_tib): New function.
6386         (display_tib): New function.
6387         (show_maint_show_all_tib):New function.
6388         (info_w32_command): Moved from windows-nat.c.
6389         (init_w32_command_list): New function.
6390         (_initialize_windows_tdep): New function.
6391         New "maint set/show show-all-tib" command
6392         New "$_tlb" internal variable.
6393
6394 2010-04-16  Joel Brobecker  <brobecker@adacore.com>
6395
6396         * tui/tui-regs.c (tui_display_register): Add comment about
6397         a couple of casts.
6398         * tui/tui-stack.c (tui_show_locator_content): Ditto.
6399
6400 2010-04-15  Stan Shebs  <stan@codesourcery.com>
6401
6402         * frame.c: Include tracepoint.h.
6403         (get_current_frame): Allow a trace frame to be an alternate source
6404         of stack frame data.
6405         * tracepoint.c (tfind_1): Don't try to get current stack frame if
6406         it won't succeed.
6407
6408 2010-04-15  Pedro Alves  <pedro@codesourcery.com>
6409
6410         * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6411         flags.
6412         * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6413
6414 2010-04-15  Doug Evans  <dje@google.com>
6415
6416         * NEWS: Add entry for python program space support.
6417         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6418         (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6419         (py-progspace.o): New rule.
6420         * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6421         function.
6422         (find_pretty_printer_from_progspace): New function.
6423         (find_pretty_printer_from_gdb): New function.
6424         (find_pretty_printer): Rewrite.
6425         * python/py-progspace.c: New file.
6426         * python/python-internal.h (program_space): Add forward decl.
6427         (pspace_to_pspace_object, pspy_get_printers): Declare.
6428         (gdbpy_initialize_pspace): Declare.
6429         * python/python.c: #include "progspace.h".
6430         (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6431         (_initialize_python): Call gdbpy_initialize_pspace.
6432         (GdbMethods): Add current_progspace, progspaces.
6433
6434         Add -s option to source command.
6435         * NEWS: Document new option.
6436         * cli/cli-cmds.c (find_and_open_script): Add function comment.
6437         Delete from_tty and cleanupp args.  Split filep arg into file and
6438         full_pathp.  New arg search_path.
6439         (source_script_from_stream): New function.
6440         (source_script_with_search): New function.
6441         (source_script): Rewrite.
6442         (source_command): Parse "-s" option.
6443         (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6444         * python/python.c (source_python_script): Make file arg a const char *.
6445         Don't call fclose, leave for caller.
6446         * python/python.h (source_python_script): Update.
6447
6448 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
6449             Pedro Alves  <pedro@codesourcery.com>
6450
6451         Avoid rereading shared libraries that haven't changed.
6452
6453         * solib.c (free_so_symbols): New function, from ...
6454         (free_so): ... here.  Call it.
6455         (solib_read_symbols): Don't warn here if symbols have already been
6456         loaded.
6457         (solib_add): Warn here instead, if a pattern was specified.
6458         (reload_shared_libraries_1): New.
6459         (reload_shared_libraries): Rewrite to not fetch the library list.
6460
6461 2010-04-14  Doug Evans  <dje@google.com>
6462
6463         * source.c (openp): Strip DOS drive letter if present before
6464         concatenating string to search path.
6465
6466 2010-04-14  Pedro Alves  <pedro@codesourcery.com>
6467
6468         * objfiles.h (gdb_bfd_close_or_warn): Declare.
6469         * objfiles.c (gdb_bfd_close_or_warn): New.
6470         * corelow.c: Include objfiles.h
6471         (core_close): Use gdb_bfd_close_or_warn.
6472         * elfread.c (build_id_verify): Ditto.
6473         * exec.c (exec_close, exec_close_1): Ditto.
6474
6475 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
6476             Pedro Alves  <pedro@codesourcery.com>
6477
6478         Group errors for many missing shared libraries.
6479
6480         * solist.h (struct so_list): Remove from_tty.
6481         * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
6482         (solib_map_sections): Take so_list argument.  Return 0 if we
6483         failed to open a BFD.  Add target sections here.
6484         (symbol_add_stub): Delete.
6485         (solib_read_symbols): Inline symbol_add_stub.  Use current flags,
6486         not from_tty copied from the so_list.  Don't warn a second time
6487         for a missing library.
6488         (update_solib_list): Don't save from_tty.  Use TRY_CATCH.  Do not
6489         add to the section table here.  Print out a single warning for all
6490         missing libraries.
6491         * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
6492         flags.
6493
6494 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
6495
6496         * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
6497         error/warning messages.  Capitalize and use complete sentences.
6498         (blpy_block_syms_iternext): Likewise.
6499         * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
6500         * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
6501         (frame_info_to_frame_object, frapy_read_var)
6502         (gdbpy_frame_stop_reason_string): Likewise.
6503         * python/py-lazy-string.c (stpy_convert_to_value)
6504         (gdbpy_create_lazy_string_object): Likewise.
6505         * python/py-objfile.c (objfpy_set_printers): Likewise.
6506         * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
6507         * python/python.c (parameter_to_python): Likewise.
6508         * python/py-type.c (typy_range, typy_target): Likewise.
6509         * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
6510         (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
6511
6512
6513 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
6514
6515         PR python/11381
6516
6517         * python/py-prettyprint.c (pretty_print_one_value): Test for
6518         Py_None.
6519         (print_string_repr): Test for Py_None.  Set flags accordingly.
6520         Return value depending on return type.
6521         (print_children): Take a value indicating whether data was printed
6522         before this function was called.  Alter output accordingly.
6523         (apply_val_pretty_printer): Capture return value from
6524         print_string_repr and pass to print_children.
6525
6526 2010-04-13  Mark Kettenis  <kettenis@gnu.org>
6527
6528         PR corefiles/11481
6529         * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
6530         register note sections.
6531         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
6532         New variables.
6533         (i386_linux_init_abi): Install list of supported register note
6534         sections that matches the target description.
6535
6536 2010-04-13  Pedro Alves  <pedro@codesourcery.com>
6537
6538         * remote.c (remote_get_noisy_reply): Don't error out on empty
6539         replies.
6540         (remote_start_remote): Update and merge tracepoints and trace
6541         state variables as long as the target supports tracepoints.
6542         (remote_trace_init): Fix prototype.
6543         (remote_download_trace_state_variable): Validate reply.
6544         (remote_trace_set_readonly_regions): Fix prototype.
6545         (remote_trace_start): Fix prototype.  Check for empty reply.
6546         (remote_get_trace_status): Small cleanup.
6547         (remote_trace_stop): Fix prototype.  Check for empty reply.
6548         (remote_trace_find): Check for empty reply.
6549         (remote_save_trace_data): Validate reply.
6550         (remote_set_disconnected_tracing): Check for empty reply, and
6551         validate reply.
6552         (remote_set_circular_trace_buffer): Ditto.
6553
6554 2010-04-13  Pierre Muller  <muller@ics.u-strasbg.fr>
6555
6556         Suppress unused value warning during compilation.
6557         * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6558         calls to void.
6559         * tui/tui-stack.c (tui_show_locator_content): Likewise.
6560
6561 2010-04-12  Stan Shebs  <stan@codesourcery.com>
6562
6563         * tracepoint.c (tfile_xfer_partial): Check read result.
6564
6565 2010-04-12  Mike Frysinger  <vapier@gentoo.org>
6566
6567         * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6568         * remote-sim.c (gdbsim_files_info): Likewise.
6569
6570 2010-04-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6571
6572         * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6573         * arm-linux-nat.c (arm_linux_vfp_register_count): New
6574         variable.
6575         (fetch_vfp_registers): New function to fetch VFP registers.
6576         (store_vfp_registers): New function to store VFP registers.
6577         (arm_linux_fetch_inferior_registers): Add support for VFP
6578         registers.
6579         (arm_linux_store_inferior_registers): Likewise.
6580         (arm_linux_read_description): Likewise.
6581         (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6582         until we need it.
6583
6584 2010-04-11  H.J. Lu  <hongjiu.lu@intel.com>
6585
6586         * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6587         tdep.
6588         (amd64_collect_xstateregset): Likewise.
6589
6590 2010-04-09  Stan Shebs  <stan@codesourcery.com>
6591
6592         * tracepoint.c (trace_status_mi): Report frames created.
6593
6594         * tracepoint.c (trace_dump_command): Include default-collect
6595         expressions.
6596
6597 2010-04-09  Ulrich Weigand  <uweigand@de.ibm.com>
6598
6599         * symtab.c (find_function_start_sal): Never return SAL pointing
6600         before function start address, even if line info is missing.
6601
6602 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
6603
6604         * NEWS: Mention tracepoints support.
6605
6606 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
6607
6608         * tracepoint.c (trace_status_mi): Report disconnected tracing and
6609         circular trace buffer statuses.
6610
6611 2010-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
6612
6613         * config/djgpp/fnchange.lst: Fix typo in translations for
6614         symbol-without-target_section.exp and symbol-without-target_section.c.
6615
6616 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
6617
6618         * breakpoint.c (condition_command): Pass condition expression to
6619         set_breakpoint_condition stripped from breakpoint number.
6620
6621 2010-04-09  Phil Muldoon  <pmuldoon@redhat.com>
6622             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6623             Tom Tromey  <tromey@redhat.com>
6624
6625         * breakpoint.c (condition_command): Simplify.  Move condition
6626         setting code to ...
6627         (set_breakpoint_condition): ... here.  New function.
6628         * breakpoint.h  (set_breakpoint_condition): Declare.
6629         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6630         (SUBDIR_PYTHON_SRCS): Likewise.
6631         (py-breakpoint.o): New rule.
6632         * python/py-breakpoint.c: New file.
6633         * python/python-internal.h (gdbpy_breakpoints)
6634         (gdbpy_initialize_breakpoints): Declare.
6635         (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6636
6637 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
6638
6639         * regformats/regdat.sh: Include server.h.  Don't include
6640         regcache.h.
6641
6642 2010-04-08  Stan Shebs  <stan@codesourcery.com>
6643             Pedro Alves  <pedro@codesourcery.com>
6644
6645         * tracepoint.h (struct trace_status): New fields disconnected_tracing
6646         and circular_buffer.
6647         (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6648         * tracepoint.c (trace_status_command): Display target's status for
6649         disconnected tracing and circular buffer.
6650         (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6651         query for non-disconnected-tracing case, remove the stop_tracing
6652         call.
6653         (tfile_open): Clear disconnected and circular buffer status.
6654         (trace_save): Save disconnected and circular buffer status.
6655         (parse_trace_status): Parse disconnected and circular buffer status,
6656         also recognize disconnected as a stop reason.
6657         * remote.c (remote_set_disconnected_tracing): Only set
6658         QTDisconnected if the remote end supports disconnected tracing.
6659         Warn otherwise, if trying to enable disconnected tracing.
6660         * infcmd.c (detach_command): Update disconnect_tracing call.
6661         * cli/cli-cmds.c (quit_command): Ditto.
6662
6663 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
6664
6665         * i387-tdep.c (i387_collect_xsave): Replace abort with
6666         internal_error.
6667
6668 2010-04-08  Stan Shebs  <stan@codesourcery.com>
6669
6670         * breakpoint.c (default_collect_info): New function.
6671         (breakpoints_info): Call it.
6672         (maintenance_info_breakpoints): Ditto.
6673         (tracepoints_info): Ditto.
6674
6675 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
6676
6677         * i387-tdep.c (i387_collect_xsave): Re-indent.
6678
6679 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
6680
6681         * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6682         if HAVE_PTRACE_GETFPXREGS is defined.
6683         (i386_linux_read_description): Set have_ptrace_getfpxregs and
6684         have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6685
6686         * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6687         (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6688         if .reg-xfp section doesn't exist.
6689         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6690
6691         * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6692
6693         * i386-tdep.c: Include "features/i386/i386-mmx.c".
6694         (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
6695         (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional.  Set
6696         xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
6697         (i386_gdbarch_init): Update comments.
6698         (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
6699
6700         * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
6701
6702         * config/djgpp/fnchange.lst: Add i386 MMX XML files.
6703
6704         * features/Makefile (i386/i386-mmx-expedite): New.
6705         (i386/i386-mmx-linux-expedite): Likewise.
6706         ($(outdir)/i386/i386-mmx.dat): Likewise.
6707         ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
6708
6709         * features/i386/i386-mmx-linux.c: New.
6710         * features/i386/i386-mmx-linux.xml: Likewise.
6711         * features/i386/i386-mmx.c: Likewise.
6712         * features/i386/i386-mmx.xml: Likewise.
6713         * regformats/i386/i386-mmx-linux.dat: Likewise.
6714         * regformats/i386/i386-mmx.dat: Likewise.
6715
6716         * features/Makefile (WHICH): Add i386/i386-mmx and
6717         i386/i386-mmx-linux.
6718
6719 2010-04-08  Doug Evans  <dje@google.com>
6720
6721         * source.c (openp): Skip $cdir in PATH.
6722
6723 2010-04-08  Phil Muldoon  <pmuldoon@redhat.com>
6724
6725         PR python/11417
6726         * python/py-lazy-string.c (stpy_convert_to_value): Check for
6727         a NULL address.
6728         (gdbpy_create_lazy_string_object): Allow strings with a NULL
6729         address and a zero length.
6730
6731 2010-04-08  Hui Zhu  <teawater@gmail.com>
6732
6733         * i386-tdep.c (i386_process_record): Add support for insn
6734         rdtsc.
6735
6736 2010-04-07  Doug Evans  <dje@google.com>
6737
6738         * python/python.c (source_python_script): Use ensure_python_env
6739         to prepare environment for script.
6740
6741 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
6742
6743         * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
6744         <sys/uio.h> and "i386-xstate.h".
6745         (PTRACE_GETREGSET): New.
6746         (PTRACE_SETREGSET): Likewise.
6747         (have_ptrace_getregset): Likewise.
6748         (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
6749         registers.
6750         (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
6751         registers.
6752         (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
6753         (amd64_linux_store_inferior_registers): Likewise.
6754         (amd64_linux_read_description): Check and enable AVX target
6755         descriptions.
6756
6757         * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
6758         and "features/i386/amd64-avx-linux.c".
6759         (amd64_linux_regset_sections): New.
6760         (amd64_linux_core_read_description): Check and enable AVX
6761         target description.
6762         (amd64_linux_init_abi): Set xsave_xcr0_offset.  Call
6763         set_gdbarch_core_regset_sections.
6764         (_initialize_amd64_linux_tdep): Call
6765         initialize_tdesc_amd64_avx_linux.
6766
6767         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
6768         AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
6769         (tdesc_amd64_avx_linux): New.
6770         (amd64_linux_update_xstateregset): Likewise.
6771
6772         * amd64-tdep.c: Include "features/i386/amd64-avx.c".
6773         (amd64_ymm_names): New.
6774         (amd64_ymmh_names): Likewise.
6775         (amd64_register_name): Likewise.
6776         (amd64_supply_xstateregset): Likewise.
6777         (amd64_collect_xstateregset): Likewise.
6778         (amd64_supply_xsave): Likewise.
6779         (amd64_collect_xsave): Likewise.
6780         (AMD64_NUM_REGS): Removed.
6781         (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
6782         %xmmN if AVX is available.
6783         (amd64_pseudo_register_name): Support pseudo YMM registers.
6784         (amd64_regset_from_core_section): Support .reg-xstate section.
6785         (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
6786         and ymm0h_regnum.  Call set_gdbarch_register_name.
6787         (amd64_init_abi): Call initialize_tdesc_amd64_avx.
6788
6789         * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
6790         AMD64_YMM15H_REGNUM.
6791         (AMD64_NUM_REGS): New.
6792         (amd64_supply_xsave): Likewise.
6793         (amd64_collect_xsave): Likewise.
6794         (amd64_register_name): Removed.
6795         (amd64_register_type): Likewise.
6796
6797 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
6798
6799         * i387-tdep.c: Include "i386-xstate.h".
6800         (XSAVE_XSTATE_BV_ADDR): New.
6801         (xsave_avxh_offset): Likewise.
6802         (XSAVE_AVXH_ADDR): Likewise.
6803         (i387_supply_xsave): Likewise.
6804         (i387_collect_xsave): Likewise.
6805
6806         * i387-tdep.h (I387_NUM_YMM_REGS): New.
6807         (I387_YMM0H_REGNUM): Likewise.
6808         (I387_YMMENDH_REGNUM): Likewise.
6809         (i387_supply_xsave): Likewise.
6810         (i387_collect_xsave): Likewise.
6811
6812 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
6813
6814         * i386-linux-nat.c: Include "regset.h", "elf/common.h",
6815         <sys/uio.h> and "i386-xstate.h".
6816         (PTRACE_GETREGSET): New.
6817         (PTRACE_SETREGSET): Likewise.
6818         (fetch_xstateregs): Likewise.
6819         (store_xstateregs): Likewise.
6820         (GETXSTATEREGS_SUPPLIES): Likewise.
6821         (regmap): Include 8 upper YMM registers.
6822         (i386_linux_fetch_inferior_registers): Support XSAVE extended
6823         state.
6824         (i386_linux_store_inferior_registers): Likewise.
6825         (i386_linux_read_description): Check and enable AVX target
6826         descriptions.
6827
6828         * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
6829         "i386-xstate.h" and "features/i386/i386-avx-linux.c".
6830         (i386_linux_regset_sections): Add ".reg-xstate".
6831         (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
6832         (i386_linux_core_read_xcr0): New.
6833         (i386_linux_core_read_description): Check and enable AVX target
6834         description.
6835         (i386_linux_init_abi): Set xsave_xcr0_offset.
6836         (_initialize_i386_linux_tdep): Call
6837         initialize_tdesc_i386_avx_linux.
6838
6839         * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
6840         I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
6841         (i386_linux_core_read_xcr0): New.
6842         (tdesc_i386_avx_linux): Likewise.
6843         (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
6844
6845         * i386-tdep.c: Include "i386-xstate.h" and
6846         "features/i386/i386-avx.c".
6847         (i386_ymm_names): New.
6848         (i386_ymmh_names): Likewise.
6849         (i386_ymmh_regnum_p): Likewise.
6850         (i386_ymm_regnum_p): Likewise.
6851         (i386_xmm_regnum_p): Likewise.
6852         (i386_register_name): Likewise.
6853         (i386_ymm_type): Likewise.
6854         (i386_supply_xstateregset): Likewise.
6855         (i386_collect_xstateregset): Likewise.
6856         (i386_sse_regnum_p): Removed.
6857         (i386_pseudo_register_name): Support pseudo YMM registers.
6858         (i386_pseudo_register_type): Likewise.
6859         (i386_pseudo_register_read): Likewise.
6860         (i386_pseudo_register_write): Likewise.
6861         (i386_dbx_reg_to_regnum): Return %ymmN register number for
6862         %xmmN if AVX is available.
6863         (i386_regset_from_core_section): Support .reg-xstate section.
6864         (i386_register_reggroup_p): Supper upper YMM and YMM registers.
6865         (i386_process_record): Replace i386_sse_regnum_p with
6866         i386_xmm_regnum_p.
6867         (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
6868         Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
6869         (i386_gdbarch_init): Set xstateregset.  Set xsave_xcr0_offset.
6870         Call set_gdbarch_register_name.  Replace I386_SSE_NUM_REGS with
6871         I386_AVX_NUM_REGS.  Set ymmh_register_names, ymm0h_regnum and
6872         num_ymm_regs.  Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
6873         Set ymm0_regnum.
6874         (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
6875
6876         * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
6877         xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
6878         i386_ymm_type.
6879         (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
6880         (I386_AVX_NUM_REGS): New.
6881         (i386_xmm_regnum_p): Likewise.
6882         (i386_ymm_regnum_p): Likewise.
6883         (i386_ymmh_regnum_p): Likewise.
6884
6885         * common/i386-xstate.h: New.
6886
6887 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
6888
6889         * config/djgpp/fnchange.lst: Add x86 AVX XML files.
6890
6891         * features/Makefile (WHICH): Add i386/i386-avx,
6892         i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
6893         (i386/i386-avx-expedite): New.
6894         (i386/i386-avx-linux-expedite): Likewise.
6895         (i386/x86-64-avx-expedite):Likewise.
6896         (i386/x86-64-avx-linux-expedite): Likewise.
6897         ($(outdir)/i386/i386-avx.dat): New dependency.
6898         ($(outdir)/i386/i386-avx-linux.dat): Likewise.
6899         ($(outdir)/i386/x86-avx-64.dat): Likewise.
6900         ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
6901
6902         * features/i386/32bit-avx.xml: New.
6903         * features/i386/64bit-avx.xml: Likewise.
6904         * features/i386/i386-avx-linux.c: Likewise.
6905         * features/i386/i386-avx-linux.xml: Likewise.
6906         * features/i386/i386-avx.c: Likewise.
6907         * features/i386/i386-avx.xml: Likewise.
6908         * features/i386/x86-64-avx-linux.c: Likewise.
6909         * features/i386/x86-64-avx-linux.xml: Likewise.
6910         * features/i386/x86-64-avx.c: Likewise.
6911         * features/i386/x86-64-avx.xml: Likewise.
6912         * regformats/i386/i386-avx-linux.dat: Likewise.
6913         * regformats/i386/i386-avx.dat: Likewise.
6914         * regformats/i386/x86-64-avx-linux.dat: Likewise.
6915         * regformats/i386/x86-64-avx.dat: Likewise.
6916
6917 2010-04-07  Doug Evans  <dje@google.com>
6918
6919         * top.c (source_file_name): Make const char *.
6920         * top.h (source_file_name): Update.
6921         * cli/cli-script.c (source_cleanup_lines_args): Make old_file
6922         const char *.
6923         (script_from_file): Change `file' arg to const char *.
6924         * cli/cli-script.h (script_from_file): Update.
6925
6926 2010-04-06  Doug Evans  <dje@google.com>
6927
6928         * cli/cli-cmds.c (source_command): Run cleanups.
6929
6930 2010-04-06  Stan Shebs  <stan@codesourcery.com>
6931
6932         * defs.h (char_ptr): Move typedef here from...
6933         * ada-lang.c (char_ptr): Remove.
6934         * charset.c (char_ptr): Remove.
6935         * tracepoint.h (struct uploaded_string): Remove.
6936         (struct uploaded_tp): Use vectors for string arrays.
6937         * tracepoint.c (trace_save): Use vectors of actions.
6938         (parse_tracepoint_definition): Ditto.
6939         (get_uploaded_tp): Clear vectors.
6940         * breakpoint.c (create_tracepoint_from_upload): Use vectors.
6941         (next_cmd): Change to an int.
6942         (read_next_cmd): Use vector of command strings.
6943
6944 2010-04-06  Doug Evans  <dje@google.com>
6945
6946         * top.h (source_script, cd_command): Delete.
6947         * main.c: #include "cli/cli-cmds.h"
6948
6949 2010-04-06  Kevin Buettner  <kevinb@redhat.com>
6950
6951         * m32c-tdep.c (make_types): When calling `arch_type', pass size of
6952         type in bytes, not bits.
6953
6954 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
6955
6956         * stabsread.c (define_symbol): Add support for char
6957         and string constants.
6958
6959 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
6960
6961         Remove remaining "%ll" uses.
6962         * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
6963         hex_string call.
6964         * rs6000-nat.c (rs6000_ptrace64): Idem.
6965         * solib-pa64.c (pa64_current_sos): Idem.
6966         * solib-spu.c (spu_current_sos): Idem.
6967         * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
6968         plongest call.
6969         * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
6970         phex (VAR, 8) call.
6971         * sh64-tdep.c (sh64_show_media_regs): Idem.
6972
6973 2010-04-05  Stan Shebs  <stan@codesourcery.com>
6974
6975         * tracepoint.c: Include gdbcore.h.
6976         (tfile_xfer_partial): Return partial results, also try reading
6977         from executable.
6978         (tfile_has_all_memory): New function.
6979         (init_tfile_ops): Use it.
6980
6981 2010-04-05  Sergio Durigan Junior  <sergiodj@redhat.com>
6982
6983         PR gdb/10736:
6984         * xml-syscall.c (my_gdb_datadir): New variable to keep track of
6985         the changes in data-directory.
6986         (init_sysinfo): Reload the syscall XML file if the data-directory
6987         has changed.
6988
6989 2010-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
6990
6991         Code cleanup.
6992         * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
6993
6994 2010-04-04  Stan Shebs  <stan@codesourcery.com>
6995             Nathan Sidwell  <nathan@codesourcery.com>
6996
6997         * breakpoint.c (breakpoint_1): Add filter argument, return number of
6998         breakpoints printed.
6999         (is_hardware_watchpoint): Make argument const.
7000         (is_watchpoint): Ditto.
7001         (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7002         use it everywhere.
7003         (breakpoints_info): Pass NULL to breakpoint_1.
7004         (maintenance_info_breakpoints): Ditto.
7005         (watchpoints_info): New function.
7006         (tracepoints_info): Use breakpoint_1 filter.
7007         (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7008         (_initialize_breakpoint): Make "info watchpoints" its own command.
7009         * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7010         * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7011
7012 2010-04-04  Stan Shebs  <stan@codesourcery.com>
7013
7014         * tracepoint.c (tfile_fetch_registers): Add fallback case.
7015
7016 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
7017
7018         * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7019         * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7020
7021 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
7022
7023         * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7024         * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7025
7026 2010-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7027
7028         * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7029         code form.
7030
7031 2010-04-02  Hui Zhu  <teawater@gmail.com>
7032
7033         * i386-tdep.c (OT_DQUAD): New enum.
7034         (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7035         SSE3, SSSE3 and SSE4.
7036
7037 2010-04-02  Hui Zhu  <teawater@gmail.com>
7038
7039         * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7040         "*addr = 0".
7041
7042 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
7043
7044         * tracepoint.c (trace_dump_actions): New, factored out from
7045         trace_dump_command, and adjusted to recurse into while-stepping's
7046         action list.
7047         (trace_dump_command): Use it.
7048
7049 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
7050
7051         * breakpoint.h (struct counted_command_line): Moved definition to
7052         breakpoint.c, and forward declare.
7053         (breakpoint_commands): Declare.
7054         * breakpoint.c (struct counted_command_line): Moved here.
7055         (breakpoint_commands): New.
7056         * tracepoint.c (encode_actions): Use breakpoint_commands.
7057         * remote.c (remote_download_tracepoint): Ditto.
7058
7059 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
7060
7061         * remote.c (remote_parse_stop_reply): Use hex_string instead
7062         of phex_nz for error.
7063
7064 2010-04-01  Stan Shebs  <stan@codesourcery.com>
7065             Nathan Sidwell  <nathan@codesourcery.com>
7066
7067         * tracepoint.h (enum actionline_type): Remove.
7068         (validate_actionline): Change return to void.
7069         * tracepoint.c (report_agent_reqs_errors): New function.
7070         (validate_actionline): Call it, change return to void, report errors
7071         more consistently.
7072         (collect_symbol): Call report_agent_reqs_errors.
7073         (encode_actions_1): Ditto.
7074         (encode_actions): Don't expect a result from validate_actionline.
7075
7076 2010-04-01  Stan Shebs  <stan@codesourcery.com>
7077
7078         * tracepoint.c (trace_start_command): Confirm if trace is running.
7079         (trace_stop_command): Error if trace not running.
7080
7081 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
7082
7083         * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7084         (AMD64_NUM_LOWER_BYTE_REGS): New.
7085         (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7086         (amd64_pseudo_register_write): Likewise.
7087         (amd64_init_abi): Set num_byte_regs to 20.
7088
7089 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
7090
7091         * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7092         (prev_breakpoint_count): New.
7093         (set_breakpoint_count): Adjust.
7094         (rbreak_start_breakpoint_count): New.
7095         (start_rbreak_breakpoints): Adjust.
7096         (end_rbreak_breakpoints): Adjust.
7097         (struct commands_info) <arg>: New field.
7098         (do_map_commands_command): Tweak output to include breakpoint spec
7099         range.
7100         (commands_command_1): Adjust.  Avoid setting an xfree cleanup if
7101         ARG was empty on entry.  Set INFO's arg.
7102         (create_breakpoint): Adjust.
7103
7104         * NEWS: Clarify `commands' changes.
7105
7106 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
7107
7108         * tracepoint.c: Include stack.h.
7109         (struct add_local_symbols_data): New.
7110         (do_collect_symbol): New.
7111         (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7112         iterate_over_block_local_vars.
7113         * stack.c (print_block_frame_locals): Rewrite as ...
7114         (iterate_over_block_locals): ... this.  Take a callback function
7115         pointer and generic data pointer, and call that instead of
7116         print_variable_and_value.
7117         (struct print_variable_and_value_data): New.
7118         (do_print_variable_and_value): New.
7119         (iterate_over_block_local_vars): New, abstracted out from
7120         print_frame_local_vars.
7121         (print_frame_local_vars): Rewrite using
7122         iterate_over_block_local_vars.
7123         (iterate_over_block_arg_vars): New, abstracted out from
7124         print_frame_arg_vars.
7125         (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7126         * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7127         (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7128
7129 2010-03-31  Richard Earnshaw  <rearnsha@arm.com>
7130
7131         * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7132         instructions.  Use the PC+4 if the base of the TBB or TBH is the
7133         PC register.
7134
7135 2010-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
7136
7137         Fix crash on reading wrong function declaration DWARF.
7138         * dwarf2read.c (read_subroutine_type): New variable void_type.
7139         Pre-fill all TYPE_FIELD_TYPEs.  Move nparams and iparams initialization
7140         more close to their use.
7141
7142 2010-03-31  Stan Shebs  <stan@codesourcery.com>
7143
7144         * breakpoint.c (tracepoint_save_command): Include variables,
7145         conditionals, tracepoint types, and default-collect.
7146         * tracepoint.c (save_trace_state_variables): New function.
7147         * tracepoint.h (save_trace_state_variables): Declare it.
7148
7149 2010-03-31  Pierre Muller  <muller@ics.u-strasbg.fr>
7150
7151         * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7152
7153 2010-03-30  Keith Seitz  <keiths@redhat.com>
7154
7155         * c-typeprint.c (c_type_print_args): Don't print "void"
7156         for java, regardless of whether it is TYPE_PROTOTYPED.
7157         Use the passed-in language instead of current_language.
7158         (c_type_print_varspec_suffix): Use current_language instead
7159         of assuming language_c.
7160         * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7161         any return type specifier from the physname.
7162
7163 2010-03-30  Pedro Alves  <pedro@codesourcery.com>
7164
7165         * tui/tui-interp.c (tui_is_toplevel): New.
7166         (tui_init): Set it.
7167         (tui_allowed_p): New.
7168         * tui/tui.c (tui_enable): Check if the TUI is allowed before
7169         enabling it.
7170         * tui/tui.h (tui_allowed_p): Declare.
7171
7172 2010-03-30  Ozkan Sezer  <sezeroz@gmail.com>
7173
7174         * serial.h: Include winsock2.h before windows.h.
7175
7176 2010-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7177
7178         * NEWS: Mention xmlRegisters= in qSupported packet.
7179
7180         * i386-tdep.c: Include "remote.h".
7181         (_initialize_i386_tdep): Call register_remote_support_xml.
7182
7183         * remote.c (remote_support_xml): New.
7184         (register_remote_support_xml): Likewise.
7185         (remote_query_supported_append): Likewise.
7186         (remote_query_supported): Support remote_support_xml.
7187
7188         * remote.h (register_remote_support_xml): New.
7189
7190 2010-03-29  Stan Shebs  <stan@codesourcery.com>
7191
7192         * tracepoint.c (trace_find_line_command): Remove dead code.
7193
7194         * tracepoint.h (struct uploaded_string): New struct.
7195         (struct uploaded_tp): New fields for source strings.
7196         * breakpoint.c (this_utp, next_cmd): New globals.
7197         (read_uploaded_action): New function.
7198         (create_tracepoint_from_upload): Fill in more parts
7199         of a tracepoint.
7200         * tracepoint.c (encode_source_string): New function.
7201         (trace_save): Write out source strings, fix error checks.
7202         (parse_tracepoint_definition): Add source string parsing.
7203         * remote.c (PACKET_TracepointSource): New packet type.
7204         (remote_download_command_source): New function.
7205         (remote_download_tracepoint): Download source pieces also.
7206         (_initialize_remote): Add packet config command.
7207
7208         * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7209         expression handler.
7210
7211         * tracepoint.c (start_tracing): Check tracepoints before sending
7212         commands to target, don't start if all tracepoints disabled.
7213
7214 2010-03-28  Pedro Alves  <pedro@codesourcery.com>
7215
7216         * cli/cli-script.c (process_next_line): Handle 'stepping'.
7217
7218 2010-03-26  Stan Shebs  <stan@codesourcery.com>
7219
7220         * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7221
7222 2010-03-26  Tom Tromey  <tromey@redhat.com>
7223
7224         * breakpoint.c (commands_command_1): Duplicate 'arg'.
7225
7226 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7227
7228         * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7229         (skip_prologue_sal): Remove local definition.
7230         (resolve_sal_pc): Remove now unnecessary code.
7231         * linespec.c (minsym_found): Call skip_prologue_sal.
7232         * symtab.c (find_function_start_pc): Remove.
7233         (find_function_start_sal): Extract prologue skipping into ...
7234         (skip_prologue_sal): ... this new function.  Handle code both
7235         with and without debug info.  Respect SAL's explicit_pc and
7236         explicit_line flags.  Inline old find_function_start_pc.
7237         * symtab.h (find_function_start_pc): Remove.
7238         (skip_prologue_sal): Add prototype.
7239
7240 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7241
7242         * dwarf2read.c (read_func_scope): Also scan specification DIEs
7243         for DW_TAG_imported_module children.
7244
7245 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7246
7247         * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7248         ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7249         * completer.c (add_struct_fields): Fix inverted logic.
7250
7251 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7252
7253         * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7254
7255 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
7256
7257         * tracepoint.c (current_trace_status): Don't make sure error_desc
7258         is non-NULL here.
7259         (parse_trace_status): Release a previous error_desc string, and
7260         set it to NULL by default.  If stop reason is tracepoint_error,
7261         make sure error_desc is not left NULL.
7262
7263 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
7264
7265         * tracepoint.c (trace_save): Remove X from tracepoint error
7266         description.
7267
7268 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
7269
7270         * tracepoint.c (parse_trace_status): Don't allow plain strings in
7271         the terror description.  Don't expect an X prefix.
7272
7273 2010-03-25  Stan Shebs  <stan@codesourcery.com>
7274
7275         * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7276         (struct trace_status): New field error_desc.
7277         * tracepoint.c (stop_reason_names): Add terror.
7278         (current_trace_status): Ensure non-NULL error description.
7279         (trace_status_command): Add error report.
7280         (trace_status_mi): Ditto.
7281         (trace_save): Add special case for error description.
7282         (parse_trace_status): Add case for errors.
7283
7284 2010-03-25  Keith Seitz  <keiths@redhat.com>
7285
7286         * dwarf2read.c (read_subroutine_type): If the compilation unit
7287         language is Java, mark any formal parameter named "this" as
7288         artificial (GCC/43521).
7289         (dwarf2_name): Add special handling for Java constructors.
7290
7291 2010-03-25  Tom Tromey  <tromey@redhat.com>
7292
7293         PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7294         * infrun.c (handle_inferior_event): Change initialization of
7295         stop_stack_dummy.
7296         (handle_inferior_event): Change assignment to stop_stack_dummy.
7297         (normal_stop): Update use of stop_stack_dummy.
7298         (struct inferior_status) <stop_stack_dummy>: Change type.
7299         * inferior.h (stop_stack_dummy): Update.
7300         * infcmd.c (stop_stack_dummy): Change type.
7301         * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7302         function.
7303         (call_function_by_hand): Call set_std_terminate_breakpoint.
7304         Rewrite std::terminate handling.
7305         * breakpoint.h (enum bptype) <bp_std_terminate,
7306         bp_std_terminate_master>: New.
7307         (enum stop_stack_kind): New.
7308         (struct bpstat_what) <call_dummy>: Change type.
7309         (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7310         Declare.
7311         * breakpoint.c (create_std_terminate_master_breakpoint): New
7312         function.
7313         (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7314         Call create_std_terminate_master_breakpoint.
7315         (print_it_typical): Handle new breakpoint kinds.
7316         (bpstat_stop_status): Handle bp_std_terminate_master.
7317         (bpstat_what): Correctly set call_dummy field.  Handle
7318         bp_std_terminate_master and bp_std_terminate.
7319         (print_one_breakpoint_location): Update.
7320         (allocate_bp_location): Update.
7321         (set_std_terminate_breakpoint): New function.
7322         (delete_std_terminate_breakpoint): Likewise.
7323         (create_thread_event_breakpoint): Update.
7324         (delete_command): Update.
7325         (breakpoint_re_set_one): Update.
7326         (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7327
7328 2010-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7329
7330         * symfile.c (build_section_addr_info_from_bfd): New.
7331         (build_section_addr_info_from_objfile): Base it on
7332         build_section_addr_info_from_bfd.
7333         (addrs_section_compar, addrs_section_sort): New.
7334         (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7335         addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs.  Build
7336         addrs_to_abfd_addrs.  Use it for recalculating ADDRS.
7337
7338 2010-03-24  Michael Snyder  <msnyder@localhost.localdomain>
7339
7340         * elfread.c (find_separate_debug_file_by_buildid):
7341         Remove unused local variable.
7342
7343 2010-03-24  Tom Tromey  <tromey@redhat.com>
7344
7345         PR breakpoints/9352:
7346         * NEWS: Mention changes to `commands' and `rbreak'.
7347         * symtab.c (do_end_rbreak_breakpoints): New function.
7348         (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7349         end_rbreak_breakpoints.
7350         * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7351         (set_breakpoint_count): Likewise.  Clear last_was_multi.
7352         (multi_start, multi_end, last_was_multi): New globals.
7353         (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7354         functions.
7355         (struct commands_info): New
7356         (do_map_commands_command): New function.
7357         (commands_command_1): New function.
7358         (commands_command): Use it.
7359         (commands_from_control_command): Likewise.
7360         (do_delete_breakpoint): New function.
7361         (delete_command): Use it.
7362         (map_breakpoint_numbers): Add 'data' argument.  Pass to callback.
7363         (do_map_disable_breakpoint): New function.
7364         (disable_command): Use it.
7365         (do_map_enable_breakpoint): New function.
7366         (enable_command): Use it.
7367         (enable_once_breakpoint): Add argument.
7368         (enable_once_command): Update.
7369         (enable_delete_breakpoint): Add argument.
7370         (enable_delete_command): Update.
7371         (break_command_really): Set last_was_multi when needed.
7372         (check_tracepoint_command): Fix formatting.
7373         (validate_commands_for_breakpoint): New function.
7374         (breakpoint_set_commands): Use it.
7375         (tracepoint_save_command): Update.
7376         * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7377         Declare.
7378
7379 2010-03-24  Tom Tromey  <tromey@redhat.com>
7380
7381         * breakpoint.h (struct counted_command_line): New struct.
7382         (struct breakpoint) <commands>: Change type.
7383         (struct bpstats) <commands>: Change type.
7384         <commands_left>: New field.
7385         * breakpoint.c (alloc_counted_command_line): New function.
7386         (incref_counted_command_line): Likewise.
7387         (decref_counted_command_line): Likewise.
7388         (do_cleanup_counted_command_line): Likewise.
7389         (make_cleanup_decref_counted_command_line): Likewise.
7390         (breakpoint_set_commands): Use decref_counted_command_line and
7391         alloc_counted_command_line.
7392         (commands_command): Don't error if breakpoint commands are
7393         executing.
7394         (commands_from_control_command): Likewise.
7395         (bpstat_free): Update.
7396         (bpstat_copy): Likewise.
7397         (bpstat_clear_actions): Likewise.
7398         (bpstat_do_actions_1): Likewise.
7399         (bpstat_stop_status): Likewise.
7400         (print_one_breakpoint_location): Likewise.
7401         (delete_breakpoint): Likewise.
7402         (bpstat_alloc): Initialize new field.
7403         (tracepoint_save_command): Update.
7404         * tracepoint.c (encode_actions): Update.
7405         (trace_dump_command): Update.
7406
7407 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
7408
7409         * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7410         * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7411         (read_structure_type): For RealView, set TYPE_STUB on structures with
7412         no byte size and no children.
7413         (read_subroutine_type): Mark functions as prototyped by default.
7414         * symtab.c (producer_is_realview): New function.
7415         * symtab.h (expand_line_sal): Fix declaration formatting.
7416         (producer_is_realview): Declare.
7417
7418 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
7419
7420         * arm-tdep.c (skip_prologue_function): New function.
7421         (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7422         (thumb_analyze_prologue): Document return value.  Recognize more
7423         Thumb instructions, skippable calls, and some Thumb-2 instructions.
7424         Add debug output.
7425         (arm_skip_prologue): Remove call dummy check.  Check the prologue
7426         for non-GNU compilers.
7427         (arm_instruction_changes_pc): New function.
7428         (arm_analyze_prologue): New function, broken out from
7429         arm_scan_prologue.  Recognize more ARM instructions and skippable
7430         calls.  Update comments.  Handle NULL cache.  Return the address
7431         of the first unrecognized instruction.  Do not skip past other
7432         instructions which change control flow.  Add debug output.
7433         (arm_scan_prologue): Use arm_analyze_prologue.
7434         (ARM_PC_32): Delete.
7435         (shifted_reg_val): Simplify ARM_PC_32 check.
7436
7437 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7438
7439         * tracepoint.c (tvariables_info_1): Actually compute
7440         the number of rows in the result.
7441
7442 2010-03-24  Pedro Alves  <pedro@codesourcery.com>
7443
7444         * remote.c (crc32): Constify `buf' parameter.
7445         (remote_verify_memory): New, abstracted out from...
7446         (compare_sections_command): ... this.  Remove hardcoded target
7447         checks.
7448         (init_remote_ops): Install remote_verify_memory.
7449         * target.c (target_verify_memory): New.
7450         * target.h (struct target_ops) <to_verify_memory>: New field.
7451         (target_verify_memory): Declare.
7452
7453 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7454
7455         Implement -trace-save.
7456
7457         * mi-cmds.h (mi_cmds_trace_save): Declare.
7458         * mi-cmds.c (mi_cmds): Register -trace-save.
7459         * mi/mi-main.c (mi_cmd_trace_save): New.
7460         * remote.c (remote_save_trace_data): Take const parameter.
7461         * target.h (struct target_ops::to_save_trace_data): Take
7462         const parameter.
7463         * target.c (update_current_target): Adjust to the above.
7464         * tracepoint.c (trave_save): New, extracted from
7465         (trace_save_command): ...this.
7466         (tfile_trace_find): Remove message that is unnecessary now
7467         that 'tfind' reports found frame.
7468         * tracepoint.h (trace_save): Declare.
7469
7470 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7471
7472         Implement -trace-find.
7473
7474         * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7475         * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
7476         * mi/mi-main.c (mi_cmd_trace_find): New.
7477         * target.h (struct target_ops): Document to_trace_find.
7478         * tracepoint.h (tfind_1): Declare.
7479         * tracepoint.c (finish_tfind_command): Rename to...
7480         (tfind_1): ...this.
7481         * remote.c (remote_trace_find): Return -1 if target say
7482         there's no frame.  Improve error diagnostics.
7483
7484 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7485
7486         -trace-define-variable and -trace-list-variables.
7487
7488         * tracepoint.c (create_trace_state_variable): Make
7489         private copy of name, as opposed to assuming the
7490         pointer lives forever.
7491         (tvariables_info_1): New.
7492         (tvariables_info): Use the above.
7493         * tracepoint.h (create_trace_state_variable, tvariables_info_1):
7494         Declare.
7495         * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
7496         and -trace-list-variables.
7497         * mi/mi-cmds.h (mi_cmd_trace_define_variable)
7498         (mi_cmd_trace_list_variables): New.
7499         * mi/mi-main.c (mi_cmd_trace_define_variable)
7500         (mi_cmd_trace_list_variables): New.
7501
7502 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7503
7504         Implement -break-passcount.
7505
7506         * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
7507         * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
7508         * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
7509
7510 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7511
7512         -trace-start/-trace-end/-trace-status.
7513
7514         * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
7515         and -trace-stop.
7516         * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
7517         (mi_cmd_trace_stop): Declare.
7518         * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
7519         (mi_cmd_trace_stop): New.
7520         * tracepoint.c (start_tracing): New, extracted from...
7521         (trace_start_command): ...this.
7522         (trace_status_mi): New.
7523         * tracepoint.h (struct trace_status): Document
7524         stopping_tracepoint.
7525         (start_tracing, stop_tracing, trace_status_mi): Declare.
7526
7527 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7528
7529         Implement creating tracepoints with -break-insert.
7530
7531         * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
7532         to mean that tracepoint should be created.
7533
7534 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7535
7536         * breakpoint.c (check_no_tracepoint_commands): Use
7537         current spelling of 'teval'.
7538
7539 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
7540
7541         Unify actions and commands
7542
7543         * defs.h (read_command_lines, read_command_lines_1): New
7544         parameters validator and closure.
7545         * tracepoint.h (struct action_line): Remove.
7546         * breakpoint.h (struct breakpoint): Remove the 'actions'
7547         field.
7548         * defs.h (enum command_control_type): New value
7549         while_stepping_control.
7550         (struct command_line): Add comments.
7551         * breakpoint.c (breakoint_is_tracepoint): New.
7552         (breakpoint_set_commands): For tracepoints,
7553         verify the commands are permissible.
7554         (check_tracepoint_commands): New.
7555         (commands_command): Require that each new line is validated using
7556         check_tracepoint_command, if we set commands for a tracepoint.
7557         (create_tracepoint_from_upload): Likewise.
7558         (print_one_breakpoint_location): Remove the code to print
7559         actions specifically.
7560         (tracepoint_save_command): Relay to print_command_lines.
7561         * cli/cli-script.c (process_next_line): New parameters validator
7562         and closure. Handle 'while-stepping'. Call validator if not null.
7563         (read_command_lines, read_command_lines1): Likewise.
7564         (recurse_read_control_structure): New parameters validator and
7565         closure. Handle while_stepping_control.
7566         (print_command_lines): Handle while-stepping.
7567         (get_command_line, define_command, document_command): Adjust.
7568         * remote.c (remote_download_tracepoint): Adjust.
7569         * tracepoint.c (make_cleanup_free_actions, read_actions)
7570         (free_actions, do_free_actions_cleanup): Remove.
7571         (trace_actions_command): Use read_command_lines.
7572         (validate_actionline): Use error in one place.
7573         (encode_actions_1): New, extracted from...
7574         (encode_actions): ...this. Also use cleanups for exception
7575         safety.
7576         (trace_dump_command): Adjust.
7577         * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7578         it's tracepoint.
7579
7580 2010-03-23  Mike Frysinger  <vapier@gentoo.org>
7581
7582         * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7583
7584 2010-03-22  Stan Shebs  <stan@codesourcery.com>
7585
7586         * value.c (value_static_field): Be lazy about the field's value.
7587
7588 2010-03-22  Reid Kleckner  <reid@kleckner.net>
7589
7590         PR gdb/11094
7591         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7592         bp_jit_event.
7593         (disable_breakpoints_in_shlibs): Likewise.
7594
7595 2010-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
7596
7597         * dwarf2read.c (partial_die_parent_scope): Work around buggy
7598         GCC 4.1 debug info generation (GCC PR c++/28460).
7599         (determine_prefix): Likewise.
7600
7601 2010-03-20  Daniel Jacobowitz  <dan@codesourcery.com>
7602
7603         * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7604         get_current_arch.
7605         * tui/tui-layout.c (extract_display_start_addr): Likewise.
7606
7607 2010-03-19  Stan Shebs  <stan@codesourcery.com>
7608
7609         * ax-gdb.c (gen_fetch): Handle bool.
7610         (gen_usual_unary): Ditto.
7611         (gen_cast): Ditto.
7612         (gen_equal): New function.
7613         (gen_less): New function.
7614         (gen_expr_binop_rest): Call them, also return integer type from
7615         logical operations.
7616         (gen_expr): Ditto.
7617
7618 2010-03-19  Tom Tromey  <tromey@redhat.com>
7619
7620         * jv-lang.c (jv_dynamics_objfile_data_key)
7621         (jv_type_objfile_data_key): New globals.
7622         (class_symtab): Move earlier.
7623         (jv_per_objfile_free): New function.
7624         (get_dynamics_objfile): Call set_objfile_data.  Add 'gdbarch'
7625         parameter.
7626         Remove ancient #if 1.
7627         (add_class_symbol): Remove redundant declaration.
7628         (java_lookup_class): Use alloc_type, not alloc_type_arch.
7629         (java_link_class_type): Mark as static.  Update.
7630         (jv_clear_object_type): New function.
7631         (set_java_object_type): Likewise.
7632         (get_java_object_type): Use set_java_object_type.
7633         (is_object_type): Likewise.
7634         (_initialize_java_language): Register new objfile keys.
7635         (get_java_class_symtab): Add 'gdbarch' parameter.
7636         (add_class_symtab_symbol): Update.
7637         (type_from_class): Update.
7638
7639 2010-03-19  Stan Shebs  <stan@codesourcery.com>
7640
7641         * ax-general.c (ax_const_l): Fix a sizing bug.
7642
7643 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
7644
7645         GDB 7.1 released.
7646
7647 2010-03-18  Stan Shebs  <stan@codesourcery.com>
7648             Pedro Alves  <pedro@codesourcery.com>
7649
7650         * target.h (struct target_ops): New method
7651         to_set_circular_trace_buffer.
7652         (target_set_circular_trace_buffer): New macro.
7653         * target.c (update_current_target): Add
7654         to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7655         default behavior.
7656         * remote.c (remote_set_circular_trace_buffer): New function.
7657         (init_remote_ops): Add it to vector.
7658         * tracepoint.h (struct trace_status): New field traceframes_created,
7659         change buffer_size and buffer_free to int.
7660         * tracepoint.c (circular_trace_buffer): New global.
7661         (start_tracing): Send values of disconnected tracing and circular
7662         trace buffer settings.
7663         (set_circular_trace_buffer): New function.
7664         (parse_trace_state): Handle total space and frames created.
7665         (trace_status_command): Display total space and total frames
7666         created.
7667         (trace_save): Write out new status values.
7668         (parse_trace_status): Set traceframe_count, traceframes_created,
7669         buffer_free and buffer_size to -1 by default.
7670         (_initialize_tracepoint): New setshow for circular-trace-buffer.
7671         * NEWS: Mention the circular trace buffer option.
7672
7673 2010-03-18  Tom Tromey  <tromey@redhat.com>
7674
7675         * infcmd.c (finish_command_continuation): Wrap print_return_value
7676         in TRY_CATCH.
7677
7678 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
7679
7680         * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7681         DIE has a name before creating the associated partial symbol.
7682         (read_func_scope): Emit a complaint if the subprogram does not
7683         have a name or when we can't extract the subprogram PC bounds.
7684
7685 2010-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
7686
7687         * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7688         instead of selected frame architecture.
7689
7690 2010-03-18  Pedro Alves  <pedro@codesourcery.com>
7691
7692         * infcmd.c (until_command): Use ERROR_NO_INFERIOR.  Ensure there's
7693         a valid selected thread, and that it is not running.
7694         (advance_command): Ditto.
7695         (finish_command): Ditto.
7696
7697 2010-03-17 Stan Shebs  <stan@codesourcery.com>
7698
7699         * ax-gdb.c (require_rvalue): Disallow non-scalars.
7700
7701         * infcall.c: Include tracepoint.h.
7702         (call_function_by_hand): Disallow calls in tfind mode.
7703         * infcmd.c: Include tracepoint.h.
7704         (ensure_not_tfind_mode): New function.
7705         (continue_1): Call it.
7706         (step_1) Ditto.
7707         (jump_command): Ditto.
7708         (signal_command): Ditto.
7709         (advance_command): Ditto.
7710         (until_command): Ditto.
7711         (finish_command): Ditto.
7712         * tracepoint.h (disconnect_or_stop_tracing): Declare.
7713
7714         * ax-gdb.h (struct axs_value): New field optimized_out.
7715         (gen_trace_for_var): Add gdbarch argument.
7716         * ax-gdb.c (gen_trace_static_fields): New function.
7717         (gen_traced_pop): Call it, add gdbarch argument.
7718         (gen_trace_for_expr): Update call to it.
7719         (gen_trace_for_var): Ditto, and report optimized-out variables.
7720         (gen_struct_ref_recursive): Check for optimized-out value.
7721         (gen_struct_elt_for_reference): Ditto.
7722         (gen_static_field): Pass gdbarch instead of expression, assume
7723         optimization if field not found.
7724         (gen_var_ref): Set the optimized_out flag.
7725         (gen_expr): Error on optimized-out variable.
7726         * tracepoint.c (collect_symbol): Handle struct-valued vars as
7727         expressions, skip optimized-out variables with computed locations.
7728         * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
7729         erroring out if location expression missing.
7730         (loclist_tracepoint_var_ref): Don't error out here.
7731
7732 2010-03-17  Tom Tromey  <tromey@redhat.com>
7733
7734         * dwarf2read.c (dwarf2_get_section_info): Handle case where no
7735         DWARF data is available.
7736
7737 2010-03-17  Daniel Jacobowitz  <dan@codesourcery.com>
7738
7739         * symfile.c (generic_load): Reset breakpoints after loading.
7740
7741 2010-03-17  Tom Tromey  <tromey@redhat.com>
7742
7743         * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
7744
7745 2010-03-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7746
7747         * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
7748         create_breakpoint call, adjust the parameters.
7749
7750 2010-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7751             Chandru <chandru@in.ibm.com>
7752
7753         * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
7754         * valarith.c (value_subscripted_rvalue): Suppress error if
7755         TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
7756
7757 2010-03-16  Holger Hans Peter Freyther  <zecke@selfish.org>
7758
7759         * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
7760
7761 2010-03-16  Joel Brobecker  <brobecker@adacore.com>
7762
7763         * ada-tasks.c (task_command_1): Check that the task ptid is valid
7764         before doing the associated thread switch.
7765
7766 2010-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
7767
7768         * MAINTAINERS: Update my email address.
7769
7770 2010-03-16  Vladimir Prus  <vladimir@codesourcery.com>
7771
7772         Simplify MI breakpoint setting.
7773
7774         * breakpoint.c (break_command_really): Make nonstatic and
7775         rename to...
7776         (create_breakpoint): ...this. Rename prior function by this name
7777         to...
7778         (create_breakpoint_sal): ...this.
7779         (create_breakpoints): Rename to...
7780         (create_breakpoints_sal): ...this.
7781         (set_breakpoint): Remove.
7782         * breakpoint.h: Adjust to above changes.
7783         * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
7784
7785 2010-03-15 Stan Shebs  <stan@codesourcery.com>
7786
7787         * ax-gdb.c: Include cp-support.h.
7788         (find_field): Remove.
7789         (gen_primitive_field): New function.
7790         (gen_struct_ref_recursive): New function.
7791         (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
7792         of find_field.
7793         (gen_static_field): New function.
7794         (gen_struct_elt_for_reference): New.
7795         (gen_namespace_elt): New.
7796         (gen_maybe_namespace_elt): New.
7797         (gen_aggregate_elt_ref): New.
7798         (gen_expr): Add OP_SCOPE, display opcode name in error message.
7799
7800 2010-03-15  Tom Tromey  <tromey@redhat.com>
7801
7802         * dwarf2read.c (die_needs_namespace): Also return 0 for
7803         DW_TAG_subprogram.
7804
7805 2010-03-15  Sami Wagiaalla  <swagiaal@redhat.com>
7806
7807         PR c++/7936:
7808         * cp-support.h: Added char *declaration element to using_direct
7809         data struct.
7810         (cp_add_using): Added char *declaration argument.
7811         (cp_add_using_directive): Ditto.
7812         (cp_lookup_symbol_imports): made extern.
7813         * cp-namespace.c: Updated with the above changes.
7814         * dwarf2read.c (read_import_statement): Ditto.
7815         (read_namespace): Ditto.
7816         (read_import_statement): Support import declarations.
7817         * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
7818         declarations.
7819         Added support for 'declaration_only' search.
7820         (cp_lookup_symbol_namespace): Attempt to search for the name as
7821         is before consideration of imports.
7822         * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
7823         search at every block level search.
7824         Now takes language argument.
7825         (lookup_symbol_aux): Updated.
7826
7827 2010-03-15  Tom Tromey  <tromey@redhat.com>
7828
7829         * c-exp.y (name_not_typename): Add 'operator' clause.
7830
7831 2010-03-15  Ralf Corsepius  <ralf.corsepius@rtems.org>  (tiny change)
7832
7833         * configure.ac: Exit if ${gdb_target_obs}" is not set.
7834         * configure: Regenerate.
7835
7836 2010-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7837
7838         * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
7839         and ".sdynbss".  Update the comment.
7840
7841 2010-03-15  Jie Zhang  <jie@codesourcery.com>
7842
7843         * MAINTAINERS: Update my email address.
7844
7845 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
7846
7847         * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
7848
7849 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
7850
7851         * charset.c [USE_WIN32API]: Include <windows.h>.
7852          (_initialize_charset): Correct type of w32_host_default_charset.
7853
7854 2010-03-14  Pedro Alves  <pedro@codesourcery.com>
7855
7856         * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
7857
7858 2010-03-12  Tom Tromey  <tromey@redhat.com>
7859
7860         PR c++/9708:
7861         * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
7862         in a lexical block does not need a namespace.
7863         (new_symbol) <DW_TAG_variable>: Put extern variables on
7864         list_in_scope in all cases.
7865
7866 2010-03-12 Stan Shebs  <stan@codesourcery.com>
7867
7868         * ax-gdb.c (gen_expr): Add shift expressions.
7869         (gen_expr_binop_rest): Ditto.
7870
7871 2010-03-12  Sami Wagiaalla  <swagiaal@redhat.com>
7872
7873         * buildsym.c (finish_block): Reset using_directives pointer
7874         after block initialization.
7875
7876 2010-03-12  H.J. Lu  <hongjiu.lu@intel.com>
7877
7878         * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
7879         * i386-tdep.c (i386_word_names): Likewise.
7880
7881 2010-03-12  Pedro Alves  <pedro@codesourcery.com>
7882
7883         * target.c (memory_xfer_partial): Don't use the stack cache if
7884         inspecting trace frames.
7885         * tracepoint.c (finish_tfind_command): Invalidate the target
7886         dcache.
7887
7888 2010-03-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7889
7890         * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
7891         for the PIC displacement, print also the displacement value.
7892         (svr4_exec_displacement):  Print DISPLACEMENT if INFO_VERBOSE.
7893
7894 2010-03-10  Kevin Buettner  <kevinb@redhat.com>
7895
7896         * remote-mips.c (close_ports, mips_initialize_cleanups)
7897         (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
7898         (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
7899         (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
7900         (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
7901         (pmon_check_entry_address, pmon_check_total, pmon_end_download)
7902         (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
7903         comments describing each of these functions.
7904         (mips_enter_debug, mips_exit_debug, common_open)
7905         (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
7906         blank line after the comment describing the function.
7907
7908 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7909
7910         * solib-svr4.c (svr4_exec_displacement): Return now success, new
7911         parameter displacementp.  Update comment.
7912         (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
7913         element exists.  Return if svr4_exec_displacement was not successful.
7914         Update comment.
7915
7916 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7917             Daniel Jacobowitz  <dan@codesourcery.com>
7918
7919         * solib-svr4.c (read_program_header): Support type == -1 to read
7920         all program headers.
7921         (read_program_headers_from_bfd): New function.
7922         (svr4_static_exec_displacement): Remove and move the comment ...
7923         (svr4_exec_displacement): ... here.  Remove variable found.  New
7924         variable displacement.  Check also DYNAMIC.  Verify DISPLACEMENT
7925         alignment for ELF targets.  Compare target vs. exec_bfd PHDRs for ELF
7926         targets using read_program_headers_from_bfd.  Remove the call of
7927         svr4_static_exec_displacement.
7928
7929 2010-03-10  Tom Tromey  <tromey@redhat.com>
7930
7931         * dwarf2read.c (struct pubnames_header): Remove.
7932         (_PUBNAMES_HEADER): Remove.
7933         (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
7934         (struct aranges_header): Remove.
7935         (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
7936         (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
7937         (PUBNAMES_SECTION): Remove.
7938         (ARANGES_SECTION): Remove.
7939         (dwarf2_locate_sections): Don't handle pubnames or aranges.
7940         (dwarf2_build_psymtabs): Remove dead code.
7941         (dwarf2_build_psymtabs_easy): Remove.
7942
7943 2010-03-10  Tom Tromey  <tromey@redhat.com>
7944
7945         * elfread.c (elf_symfile_read): Don't call
7946         dwarf2_build_frame_info.
7947         * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
7948         (struct dwarf2_per_objfile) <objfile>: New field.
7949         (dwarf2_has_info): Now idempotent.  Set objfile field.
7950         (dwarf2_read_section): Check and set readin field.  Call
7951         posix_madvise.
7952         (dwarf2_build_psymtabs): Don't read all sections.
7953         (read_type_comp_unit_head): Read types section.
7954         (create_debug_types_hash_table): Likewise.
7955         (init_cu_die_reader): Add asserts.
7956         (process_type_comp_unit): Add assert.
7957         (dwarf2_build_psymtabs_hard): Read info section.
7958         (load_partial_comp_unit): Add assert.
7959         (create_all_comp_units): Read info section.
7960         (load_full_comp_unit): Likewise.
7961         (dwarf2_ranges_read): Read ranges section.
7962         (dwarf2_record_block_ranges): Add assert.
7963         (dwarf2_read_abbrevs): Read abbrev section.
7964         (read_indirect_string): Read str section.
7965         (dwarf_decode_line_header): Read line section.
7966         (read_signatured_type_at_offset): Read types section.
7967         (dwarf_decode_macros): Read macinfo section.
7968         (dwarf2_symbol_mark_computed): Read loc section.
7969         * dwarf2-frame.c (dwarf2_frame_find_fde): Call
7970         dwarf2_build_frame_info.
7971         (dwarf2_build_frame_info): Unconditionally set
7972         dwarf2_frame_objfile_data on the objfile.
7973         * configure.ac: Check for posix_madvise.
7974         * config.in, configure: Rebuild.
7975
7976 2010-03-10  Tom Tromey  <tromey@redhat.com>
7977
7978         * xcoffread.c (xcoff_start_psymtab): Update.
7979         (xcoff_end_psymtab): Update.
7980         * psymtab.c (allocate_psymtab): Remove dead code.
7981         * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
7982         void*.
7983         * mdebugread.c (parse_partial_symbols): Update.
7984         (new_psymtab): Likewise.
7985         * dwarf2read.c (process_psymtab_comp_unit): Update.
7986         (psymtab_to_symtab_1): Update.
7987         * dbxread.c (start_psymtab): Update.
7988         (end_psymtab): Likewise.
7989
7990 2010-03-10  Tom Tromey  <tromey@redhat.com>
7991
7992         * xcoffread.c: Include psymtab.h.
7993         (xcoff_sym_fns): Update.
7994         * symtab.h (struct partial_symbol): Remove.
7995         (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
7996         (struct partial_symtab): Remove.
7997         (PSYMTAB_TO_SYMTAB): Remove.
7998         (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
7999         (find_pc_sect_psymtab): Remove.
8000         (find_pc_sect_symtab_via_partial): Declare.
8001         (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8002         (find_main_psymtab): Remove.
8003         (find_main_filename): Declare.
8004         (fixup_psymbol_section): Remove.
8005         (fixup_section): Declare.
8006         * symtab.c: Include psymtab.h.
8007         (lookup_symtab): Use lookup_symtab method.
8008         (lookup_partial_symtab): Remove.
8009         (find_pc_sect_psymtab_closer): Remove.
8010         (find_pc_sect_psymtab): Remove.
8011         (find_pc_sect_symtab_via_partial): New function.
8012         (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8013         (fixup_section): No longer static.
8014         (fixup_psymbol_section): Remove.
8015         (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8016         (lookup_global_symbol_from_objfile): Likewise.
8017         (lookup_symbol_aux_psymtabs): Remove.
8018         (lookup_symbol_aux_quick): New function.
8019         (lookup_symbol_global): Use lookup_symbol_aux_quick.
8020         (lookup_partial_symbol): Remove.
8021         (basic_lookup_transparent_type_quick): New function.
8022         (basic_lookup_transparent_type): Use it.
8023         (find_main_psymtab): Remove.
8024         (find_main_filename): New function.
8025         (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8026         (find_line_symtab): Use expand_symtabs_with_filename method.
8027         (output_partial_symbol_filename): New function.
8028         (sources_info): Use map_partial_symbol_filenames.
8029         (struct search_symbols_data): New type.
8030         (search_symbols_file_matches): New function.
8031         (search_symbols_name_matches): Likewise.
8032         (search_symbols): Use expand_symtabs_matching method.
8033         (struct add_name_data): Rename from add_macro_name_data.
8034         (add_macro_name): Update.
8035         (add_partial_symbol_name): New function.
8036         (default_make_symbol_completion_list): Use
8037         map_partial_symbol_names.
8038         (struct add_partial_symbol_name): New type.
8039         (maybe_add_partial_symtab_filename): New function.
8040         (make_source_files_completion_list): Use
8041         map_partial_symbol_filenames.
8042         (expand_line_sal): Use expand_symtabs_with_filename method.
8043         * symmisc.c: Include psymtab.h.
8044         (print_objfile_statistics): Use print_stats method.
8045         (dump_objfile): Use dump method.
8046         (dump_psymtab, maintenance_print_psymbols)
8047         (maintenance_info_psymtabs, maintenance_check_symtabs)
8048         (extend_psymbol_list): Remove.
8049         * symfile.h (struct quick_symbol_functions): New struct.
8050         (struct sym_fns) <qf>: New field.
8051         (sort_pst_symbols): Remove.
8052         (increment_reading_symtab): Declare.
8053         * symfile.c: Include psymtab.h.
8054         (compare_psymbols, sort_pst_symbols): Remove.
8055         (psymtab_to_symtab): Remove.
8056         (increment_reading_symtab): New function.
8057         (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8058         method.
8059         (set_initial_language): Use find_main_filename.
8060         (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8061         (free_named_symtabs): Remove unused code.
8062         (start_psymtab_common, add_psymbol_to_bcache)
8063         (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8064         Remove.
8065         * stack.c: Include psymtab.h, symfile.h.
8066         (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8067         * source.h (psymtab_to_fullname): Don't declare.
8068         * source.c: Include psymtab.h.
8069         (select_source_symtab): Use find_last_source_symtab method.
8070         (forget_cached_source_info): Use forget_cached_source_info
8071         method.
8072         (find_and_open_source): No longer static.
8073         (psymtab_to_fullname): Remove.
8074         * somread.c: Include psymtab.h.
8075         (som_sym_fns): Update.
8076         * psympriv.h: New file.
8077         * psymtab.h: New file.
8078         * psymtab.c: New file.
8079         * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8080         (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8081         * objfiles.c: Include psymtab.h.
8082         (objfile_relocate1): Use relocate method.
8083         (objfile_has_partial_symbols): Use has_symbols method.
8084         * mipsread.c: Include psymtab.h.
8085         (ecoff_sym_fns): Update.
8086         * mi/mi-cmd-file.c: Include psymtab.h.
8087         (print_partial_file_name): New function.
8088         (mi_cmd_file_list_exec_source_files): Use
8089         map_partial_symbol_filenames.
8090         * mdebugread.c: Include psympriv.h.
8091         * machoread.c: Include psympriv.h.
8092         (macho_sym_fns): Update.
8093         * m2-exp.y (yylex): Use lookup_symtab.
8094         * elfread.c: Include psympriv.h.
8095         (elf_sym_fns): Update.
8096         * dwarf2read.c: Include psympriv.h.
8097         * dbxread.c: Include psympriv.h.
8098         (aout_sym_fns): Update.
8099         * cp-support.c: Include psymtab.h.
8100         (read_in_psymtabs): Remove.
8101         (make_symbol_overload_list_qualified): Use
8102         expand_symtabs_for_function method.
8103         * coffread.c: Include psympriv.h.
8104         (coff_sym_fns): Update.
8105         * blockframe.c: Include psymtab.h.
8106         (find_pc_partial_function): Use find_pc_sect_symtab method.
8107         * ada-lang.h (ada_update_initial_language): Update.
8108         * ada-lang.c: Include psymtab.h.
8109         (ada_update_initial_language): Remove 'main_pst' argument.
8110         (ada_lookup_partial_symbol): Remove.
8111         (struct ada_psym_data): New type.
8112         (ada_add_psyms): New function.
8113         (ada_add_non_local_symbols): Use map_ada_symtabs method.
8114         (struct add_partial_datum): New type.
8115         (ada_add_partial_symbol_completions): New function.
8116         (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8117         (ada_exception_support_info_sniffer): Update.
8118         * Makefile.in (SFILES): Add psymtab.c.
8119         (COMMON_OBS): Add psymtab.o.
8120         (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8121
8122 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
8123
8124         * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8125
8126 2010-03-10  Sami Wagiaalla  <swagiaal@redhat.com>
8127
8128         PR C++/11236:
8129         * cp-namespace.c (cp_add_using): Deleted.
8130         (cp_add_using_directive): Use obstack allocations.
8131         Merged the function cp_add_using into this one.
8132         Added 'struct obstack *' argument.
8133         (cp_scan_for_anonymous_namespaces): Updated.
8134         * cp-support.h: Updated.
8135         * dwarf2read.c (read_import_statement): Updated.
8136         (read_namespace): Updated.
8137
8138 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
8139
8140         * windows-nat.c (cygwin_conv_path): Remove old macro.
8141
8142 2010-03-10  Pedro Alves  <pedro@codesourcery.com>
8143
8144         * breakpoint.c (condition_command): Handle watchpoint conditions.
8145         (is_hardware_watchpoint): Add comment.
8146         (is_watchpoint): New.
8147         (update_watchpoint): Don't reparse the watchpoint's condition
8148         unless necessary.
8149         (WP_IGNORE): New.
8150         (watchpoint_check): Use it.
8151         (bpstat_check_watchpoint): Handle it.
8152         (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8153         conditions in a frame where it makes sense.
8154         (watch_command_1): Store the innermost block of the condition
8155         expression.
8156         (delete_breakpoint): Delete the watchpoint condition expression.
8157         * breakpoint.h (struct bp_location) <cond>: Update comment.
8158         (struct breakpoint): New field `cond_exp_valid_block'.
8159
8160 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
8161
8162         Adjust handling of Ada DIEs after dwarf2_physname patch.
8163         * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8164
8165 2010-03-09  Christopher Faylor  <me+cygwin@cgf.cx>
8166             Pierre Muller  <muller@ics.u-strasbg.fr>
8167
8168         * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8169         from/to posix/win32.
8170         (windows_make_so): Use non-Cygwin 1.7 specific function.
8171         (windows_create_inferior): Make sure that cygallargs points to
8172         original args in non Cygwin 1.7. case.
8173
8174 2010-03-09  Michael Snyder  <msnyder@vmware.com>
8175
8176         * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8177         after target_read_memory to get host byte order.
8178         (i386_process_record): Ditto.
8179
8180 2010-03-09  Keith Seitz  <keiths@redhat.com>
8181
8182         Based on work from Daniel Jacobowitz  <dan@codesourcery.com>
8183         * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8184         print out const or volatile qualifiers, too.
8185         (c_type_print_args): Add parameters show_artificial and language.
8186         Skip artificial parameters when requested.
8187         Use the appropriate language printer.
8188         (c_type_print_varspec): Tell c_type_print_args to skip artificial
8189         parameters and pass language_c.
8190         * dwarf2read.c (die_list): New file global.
8191         (struct partial_die_info): Update comments for name field.
8192         (pdi_needs_namespace): Renamed to ...
8193         (die_needs_namespace): ... this. Rewrite.
8194         (dwarf2_linkage_name): Remove.
8195         (add_partial_symbol): Do not predicate the call to
8196         partial_die_full_name based on pdi_needs_namespace.
8197         Remove call to cp_check_possible_namespace_symbols and associated
8198         outdated comments.
8199         (guess_structure_name): Do not inspect child subprogram DIEs.
8200         (dwarf2_fullname): Update comments.
8201         Use die_needs_namespace to assist in computing the name.
8202         (read_func_scope): Use dwarf2_name to get the DIE's name.
8203         Use dwarf2_physname to get the "linkage name" of the DIE.
8204         (dwarf2_add_member_field): Use dwarf2_physname instead of
8205         dwarf2_linkage_name.
8206         (read_structure_type): For structs and classes, set TYPE_NAME, too.
8207         (determine_class): Remove.
8208         (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8209         except Ada.
8210         (new_symbol): Unconditionally call dwarf2_name.
8211         Compute the "linkage name" using dwarf2_physname.
8212         Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8213         When determining to scan for anonymous C++ namespaces, ignore
8214         the linkage name.
8215         (dwarf2_physname): New function.
8216         (dwarf2_full_name): Move content to new function and call
8217         that.
8218         (dwarf2_compute_name): "New" function.
8219         (_initialize_dwarf2_read): Initialize die_list.
8220         * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8221         physname.
8222         (gnu_v3_print_method_ptr): Use the physname for virtual methods
8223         without a demangled name.
8224         Print out type information for non-virtual methods.
8225         * linespec.c (decode_line_1): Force ANY string using "::" (or
8226         "." for java) to use decode_compound, and clean up any stray quoting.
8227         If we found a file symtab, re-evaluate whether the remainder is_quoted.
8228         (decode_compound): Stop consuming at an open parenthesis.
8229         Keep template parameters.
8230         Keep any overload information.
8231         Keep keywords like "const".
8232         Remove paren_pointer.
8233         Move is_quoted check from set_flags to here.
8234         Remove #if 0 code from 2000. Ten years is long enough.
8235         (find_method): Before comparing symbol names, canonicalize the string
8236         from the user.
8237         If a specific overload is requested, find it. Otherwise throw an error.
8238         (find_method_overload_end): New function.
8239         (set_flags): Remove.
8240         (decode_compound): Assume that parentheses are matched.
8241         It's a lot easier.
8242         * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8243         to cplus_demangle.
8244         * linespec.c (decode_line_1): Keep important keywords like
8245         "const" and "volatile".
8246         * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8247         * typeprint.h (c_type_print_args): Add declaration.
8248         * ui-file.c (do_ui_file_obsavestring): New function.
8249         (ui_file_obsavestring): New function.
8250         * ui-file.h (ui_file_obsavestring): Add declaration.
8251         * valops.c (find_overload_match): Resolve the object to
8252         a non-pointer type.
8253         If the object is a data member, search the object for the member
8254         and return with staticp set.
8255         Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8256         Do not attempt to extract a function name from non-function types.
8257         If the extracted function name and the original name are the same,
8258         we don't have a C++ method.
8259
8260         From Jan Kratochvil  <jan.kratochvil@redhat.com>:
8261         * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
8262
8263         * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8264         and arguments from symbol lookups.
8265         * ax-gdb.c (gen_expr): Likewise.
8266         * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8267         cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8268         lookup_possible_namespace_symbol): Likewise.
8269         * cp-support.c (read_in_psymtabs): Likewise.
8270         * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8271         * language.h (la_lookup_symbol_nonlocal): Likewise.
8272         * scm-valprint.c (scm_inferior_print): Likewise.
8273         * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8274         * solib-svr.c (elf_lookup_lib): Likewise.
8275         * solib.c (show_auto_solib_add): Likewise.
8276         * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8277         * symmisc.c (maintenance_check_symtabs): Likewise.
8278         * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8279         lookup_symbol_aux_local, lookup_symbol_aux_block,
8280         lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8281         lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8282         lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8283         basic_lookup_transparent_type, find_main_psymtab,
8284         lookup_block_symbol): Likewise.
8285         * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8286         lookup_symbol_global, lookup_symbol_aux_block,
8287         lookup_symbol_partial_symbol, lookup_block_symbol,
8288         lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8289
8290 2010-03-09  Pierre Muller  <muller@ics.u-strasbg.fr>
8291
8292         * python/python-internal.h: Include symtab.h.
8293
8294 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
8295             Pierre Muller  <muller@ics.u-strasbg.fr>
8296
8297         * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8298         * p-valprint.c (pascal_val_print): Remove undeed block and fix
8299         indentation.
8300
8301 2010-03-08  Tom Tromey  <tromey@redhat.com>
8302
8303         * breakpoint.c (breakpoint_1): Add "QUIT".
8304
8305 2010-03-08  Daniel Jacobowitz  <dan@codesourcery.com>
8306             Pedro Alves  <pedro@codesourcery.com>
8307
8308         * solib.c (solib_find): Replace extension if
8309         solib_symbols_extension is set in the target gdbarch.
8310         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8311         solib_symbols_extension to "sym".
8312         * gdbarch.sh (solib_symbols_extension): New variable.
8313         (pstring): New function.
8314         * gdbarch.h, gdbarch.c: Regenerate.
8315
8316 2010-03-08  Tom Tromey  <tromey@redhat.com>
8317
8318         PR cli/9591:
8319         * NEWS: Update.
8320         * utils.c: Include main.h.
8321         (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8322         (defaulted_query): Use default answer if `batch_flag'.
8323         * main.h (batch_flag): Declare.
8324         * main.c (batch_flag): New global.
8325         (captured_main): Remove 'batch'.  Update.
8326
8327 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
8328
8329         From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8330         and Kevin Buettner:
8331
8332         * remote-mips.c (rockhopper_ops): New target_ops struct.
8333         (MON_ROCKHOPPER): New mips_monitor_type.
8334         (read_hex_value): New function.
8335         (mips_request): Send 8-byte values with a 'T' packet.  Read the
8336         packet argument as a string and use read_hex_value to parse it.
8337         (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8338         (rockhopper_open): New function.
8339         (mips_wait): Read the PC, FP and SP fields as strings.  Use
8340         read_hex_value to parse them and mips_set_register to commit them.
8341         (mips_set_register): New function.
8342         (mips_fetch_registers): Do not cast register value to "unsigned"
8343         when reading a MON_ROCKHOPPER 't' packet.  Use mips_set_register.
8344         (mips_store_registers): Use a 'T' packet to set registers when
8345         using MON_ROCKHOPPER.
8346         (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8347         and expect the total to be printed before the entry address.
8348         (_initialize_remote_mips): Initialize and add rockhopper_ops.
8349
8350 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
8351
8352         * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8353         Change return value to int.  Store value fetched in location
8354         addressed by `val'.  Use function's return value as success
8355         or failure indicator.  Adjust all callers.
8356
8357 2010-03-08  Pierre Muller  <muller@ics.u-strasbg.fr>
8358
8359         * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8360
8361 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8362             Hui Zhu  <teawater@gmail.com>
8363
8364         * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8365         tmp_to_stopped_data_address.
8366         (record_open): Reset tmp_to_stopped_by_watchpoint and
8367         tmp_to_stopped_data_address.
8368         * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8369         to_stopped_data_address.
8370
8371 2010-03-08  Hui Zhu  <teawater@gmail.com>
8372
8373         * i386-tdep.c (i386_process_record): Initialize regnum.
8374
8375 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8376
8377         * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8378         Do not warn on ".gnu.liblist" and ".gnu.conflict".
8379
8380 2010-03-08  Joel Brobecker  <brobecker@adacore.com>
8381
8382         Memory error when reading wrong core file.
8383         * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8384         errors while reading the inferior memory, and return zero if
8385         an exception was raised.
8386
8387 2010-03-07  Michael Snyder  <msnyder@vmware.com>
8388
8389         * record.c (record_restore): Rename tmpu8 to rectype.
8390
8391         * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8392         tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8393
8394         (i386_record_push): Rename local tmpulongest to addr.
8395
8396         (i386_process_record): Rename local tmpulongest to addr.
8397
8398         Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8399         addr64.
8400
8401         Rename local variable tmpu8 to opcode8 and regnum.
8402
8403 2010-03-07  Joel Brobecker  <brobecker@adacore.com>
8404
8405         * remote.c (remote_get_ada_task_ptid): New function.
8406         (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
8407
8408 2010-03-06  Christopher Faylor  <me+cygwin@cgf.cx>
8409
8410         * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8411         block.  Define helper macros to reduce ifdefs in code.
8412         (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8413         size.  Call unadorned GetModuleFileNameEx rather than
8414         GetModuleFileNameEx*.
8415         (windows_make_so): Use __PMAX to denote maximum buffer size and
8416         cygwin_buf_t for buffer type.  Use GetSystemDirectory{W,A} as
8417         appropriate.
8418         (get_image_name): Use __PMAX to denote maximum buffer size.
8419         (handle_load_dll): Likewise.
8420         (windows_pid_to_exec_file): Likewise.
8421         (windows_create_inferior): Add many accommodations for older Cygwin and
8422         non-Cygwin.
8423         (bad_GetModuleFileNameExW): Control inclusion of this function based on
8424         __USEWIDE conditional.
8425         (bad_GetModuleFileNameExA): Likewise.
8426         (_initialize_loadable): Just use real function names without the dyn_
8427         part since they are defined earlier.
8428
8429 2010-03-05  Corinna Vinschen  <vinschen@redhat.com>
8430             Tom Tromey  <tromey@redhat.com>
8431
8432         * utils.c (host_char_to_target): Add 'gdbarch' argument.
8433         (parse_escape): Likewise.
8434         * python/py-utils.c (unicode_to_target_string): Update.
8435         (unicode_to_target_python_string): Update.
8436         (target_string_to_unicode): Update.
8437         * printcmd.c (printf_command): Update.
8438         * p-exp.y (yylex): Update.
8439         * objc-exp.y (yylex): Update.
8440         * mi/mi-parse.c: Include charset.h.
8441         (mi_parse_escape): New function.
8442         (mi_parse_argv): Use it.
8443         * jv-exp.y (yylex): Update.
8444         * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8445         function.
8446         (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8447         * gdbarch.sh (auto_charset, auto_wide_charset): New.
8448         * gdbarch.c: Rebuild.
8449         * gdbarch.h: Rebuild.
8450         * defs.h (parse_escape): Update.
8451         * cli/cli-setshow.c: Include arch-utils.h.
8452         (do_setshow_command): Update.
8453         * cli/cli-cmds.c (echo_command): Update.
8454         * charset.h (target_charset, target_wide_charset): Update.
8455         * charset.c: Include arch-utils.h.
8456         (target_charset_name): Default to "auto".
8457         (target_wide_charset_name): Likewise.
8458         (show_target_charset_name): Handle "auto".
8459         (show_target_wide_charset_name): Likewise.
8460         (be_le_arch): New global.
8461         (set_be_le_names): Add 'gdbarch' argument.
8462         (validate): Likewise.  Don't call set_be_le_names.
8463         (set_charset_sfunc, set_host_charset_sfunc)
8464         (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8465         Update.
8466         (target_charset): Add 'gdbarch' argument.
8467         (target_wide_charset): Likewise.  Remove 'byte_order' argument.
8468         (auto_target_charset_name): New global.
8469         (default_auto_charset, default_auto_wide_charset): New functions.
8470         (_initialize_charset): Set auto_target_charset_name.  Allow "auto"
8471         for target charsets.  Copy result of nl_langinfo.  Use GetACP if
8472         USE_WIN32API.
8473         * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8474         remove 'byte_order' argument.  Update.
8475         (classify_type): Likewise.
8476         (c_emit_char): Update.
8477         (c_printchar): Update.
8478         (c_printstr): Update.
8479         (c_get_string): Update.
8480         (evaluate_subexp_c): Update.
8481         * arch-utils.h (default_auto_charset, default_auto_wide_charset):
8482         Declare.
8483         * python/python.c (gdbpy_target_charset): New function.
8484         (gdbpy_target_wide_charset): Likewise.
8485         (GdbMethods): Update.
8486         * NEWS: Update.
8487
8488 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
8489
8490         * symfile.c (build_section_addr_info_from_objfile): Do not mask
8491         off high address bits.
8492
8493 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
8494
8495         * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
8496         address as UnsignedLongLong, not LongLong.
8497
8498 2010-03-05  Kevin Buettner  <kevinb@redhat.com>
8499             Pedro Alves  <pedro@codesourcery.com>
8500
8501         * remote-mips.c (gdbthread.h): Include.
8502         (remote_mips_ptid): Declare.
8503         (mips_error): Only mourn the inferior when inferior_ptid is non-null.
8504         (common_open): Set inferior_ptid, add it as an inferior, and
8505         as a thread too.  Delete FIXME comment regarding start_remote().
8506         (mips_close): Invoke generic_mourn_inferior().
8507         (mips_kill): Make sure that target_mourn_inferior is invoked.
8508         (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
8509         it's now invoked from mips_close().
8510         (mips_load): Don't null out inferior_ptid.  Don't call
8511         clear_symtab_users().
8512         (mips_thread_alive, mips_pid_to_str): New functions.
8513         (_initialize_remote_mips): Initialize remote_mips_ptid.  Initialize
8514         to_thread_alive and to_pid_to_str operations.
8515
8516 2010-03-04  Tom Tromey  <tromey@redhat.com>
8517
8518         * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
8519         in DWARF 3 and later.
8520         (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
8521
8522 2010-03-04  Keith Seitz  <keiths@redhat.com>
8523
8524         * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
8525         If the filename portion of the linespec was quoted, recheck the
8526         remainder for additional quoting.
8527         (locate_first_half): Skip over completer chars, too.
8528
8529 2010-03-04  Tom Tromey  <tromey@redhat.com>
8530
8531         * printcmd.c (printf_command): Pass dummy argument to
8532         printf_filtered.
8533
8534 2010-03-04  Doug Evans  <dje@google.com>
8535
8536         * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
8537         unwound_fp.
8538
8539         * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8540
8541 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
8542
8543         * breakpoint.c (update_watchpoint): Create a sentinel location if
8544         the software watchpoint isn't watching any memory.
8545         (breakpoint_address_bits): Skip dummy software watchpoint locations.
8546
8547 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
8548
8549         * utils.c (fputs_maybe_filtered): Check if there's already a top
8550         level interpreter before dereferencing it.  If there isn't one,
8551         don't paginate either.
8552
8553 2010-03-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
8554
8555         * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
8556         the state right when single stepping.
8557         (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8558         Get the next PC along with the instruction state.
8559         (thumb_get_next_pc): Remove.
8560         (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8561
8562 2010-03-04  Hui Zhu  <teawater@gmail.com>
8563
8564         * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8565
8566 2010-03-03  Pedro Alves  <pedro@codesourcery.com>
8567
8568         * utils.c (fputs_maybe_filtered): Always disable pagination if the
8569         top level interpreter is MI.
8570
8571 2010-03-03 Stan Shebs  <stan@codesourcery.com>
8572
8573         * remote.c (remote_download_tracepoint): Iterate over locations.
8574         * tracepoint.c (validate_actionline): Ditto.
8575         (encode_actions): Add location argument.
8576         (trace_dump_command): Check all locations to see if stepping
8577         frame.
8578
8579 2010-03-03  H.J. Lu  <hongjiu.lu@intel.com>
8580             Eli Zaretskii  <eliz@gnu.org>
8581
8582         * NEWS: Add X86 general purpose registers section.
8583
8584 2010-03-03  Tom Tromey  <tromey@redhat.com>
8585
8586         PR mi/11098:
8587         * varobj.c (install_new_value): Handle case where new print_value
8588         is NULL.
8589
8590 2010-03-03  Dainis Jonitis  <jonitis@gmail.com>
8591
8592         PR gdb/11345:
8593         * printcmd.c (printf_command): Print end of format string using
8594         printf_filtered.
8595
8596 2010-03-02  Tom Tromey  <tromey@redhat.com>
8597
8598         * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8599         * defs.h (read_command_lines_1): Add missing 'void'.
8600         * cli/cli-script.c (recurse_read_control_structure): Add missing
8601         'void'.
8602         (read_next_line): Likewise.
8603         (read_command_lines_1): Likewise.
8604
8605 2010-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
8606
8607         * spu-tdep.c (spu_analyze_prologue): Track instruction to
8608         store backchain as part of prologue.
8609
8610 2010-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
8611
8612         * progspace.c (update_address_spaces): Update inferior address spaces
8613         also.
8614
8615 2010-03-02  Doug Evans  <dje@google.com>
8616
8617         * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8618         lowpc,highpc args to addrmap_set_empty.
8619
8620 2010-03-02  H.J. Lu  <hongjiu.lu@intel.com>
8621
8622         * amd64-tdep.c (amd64_byte_names): New.
8623         (amd64_word_names): Likewise.
8624         (amd64_dword_names): Likewise.
8625         (amd64_pseudo_register_name): Likewise.
8626         (amd64_pseudo_register_read): Likewise.
8627         (amd64_pseudo_register_write): Likewise.
8628         (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8629         and num_mmx_regs.  Call set_gdbarch_pseudo_register_read,
8630         set_gdbarch_pseudo_register_write and
8631         set_tdesc_pseudo_register_name.  Don't call
8632         set_gdbarch_num_pseudo_regs.  Don't set mm0_regnum.
8633
8634         * i386-tdep.c (i386_num_mmx_regs): Removed.
8635         (i386_num_pseudo_regs): Likewise.
8636         (i386_byte_names): New.
8637         (i386_word_names): Likewise.
8638         (i386_byte_regnum_p): Likewise.
8639         (i386_word_regnum_p): Likewise.
8640         (i386_mmx_regnum_p): Updated.
8641         (i386_pseudo_register_name): Make it global.  Handle byte and
8642         word pseudo-registers.
8643         (i386_pseudo_register_read): Likewise.
8644         (i386_pseudo_register_write): Likewise.
8645         (i386_pseudo_register_type): Handle byte, word and dword
8646         pseudo-registers
8647         (i386_register_reggroup_p): Don't include pseudo
8648         registers, except for MXX, in any register groups.  Don't
8649         include pseudo byte, word, dword registers in general_reggroup.
8650         (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8651         num_dword_regs, al_regnum, ax_regnum and eax_regnum.  Put MMX
8652         pseudo-registers after word pseudo-registers.  Call
8653         set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8654
8655         * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8656         al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8657         eax_regnum.
8658         (i386_byte_regnum_p): New.
8659         (i386_word_regnum_p): Likewise.
8660         (i386_dword_regnum_p): Likewise.
8661         (i386_pseudo_register_name): Likewise.
8662         (i386_pseudo_register_read): Likewise.
8663         (i386_pseudo_register_write): Likewise.
8664
8665 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
8666
8667         * target-descriptions.c (tdesc_type): Remove
8668         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8669         (tdesc_predefined_types): Likewise.
8670         (tdesc_gdb_type): Likewise.  Pass NULL to append_flags_type_flag
8671         if flag name is empty.
8672         (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8673
8674         * features/i386/32bit-core.xml: Define i386_eflags.
8675         * features/i386/64bit-core.xml: Likewise.
8676
8677         * features/i386/32bit-sse.xml: Define i386_mxcsr.
8678         * features/i386/64bit-sse.xml: Likewise.
8679
8680         * features/i386/amd64-linux.c: Regenerated.
8681         * features/i386/amd64.c: Likewise.
8682         * features/i386/i386-linux.c: Likewise.
8683         * features/i386/i386.c: Likewise.
8684
8685 2010-03-01  Daniel Jacobowitz  <dan@codesourcery.com>
8686
8687         * gdbtypes.c (append_composite_type_field_raw): New.
8688         (append_composite_type_field_aligned): Use the new function.
8689         * gdbtypes.h (append_composite_type_field_raw): Declare.
8690         * target-descriptions.c (struct tdesc_type_field): Add start and end.
8691         (struct tdesc_type_flag): New type.
8692         (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
8693         kind.  Add size to u.u.  Add u.f for flags.
8694         (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
8695         (tdesc_free_type): Likewise.
8696         (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
8697         (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
8698         (tdesc_add_bitfield, tdesc_add_flag): New.
8699         * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
8700         (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
8701         * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
8702         current_type.  Add current_type_size and current_type_is_flags.
8703         (tdesc_start_union): Clear the new fields.
8704         (tdesc_start_struct, tdesc_start_flags): New.
8705         (tdesc_start_field): Handle struct fields, including bitfields.
8706         (field_attributes): Make type optional.  Add start and end.
8707         (union_children): Rename to struct_union_children.
8708         (union_attributes): Rename to struct_union_attributes.  Add optional
8709         size.
8710         (flags_attributes): New.
8711         (feature_children): Add struct and flags.
8712         * features/gdb-target.dtd: Add flags and struct to features.
8713         Make field type optional.  Add field start and end.
8714
8715 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
8716
8717         * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
8718         (amd64_linux_read_description): Likewise.
8719         (_initialize_amd64_linux_nat): Set to_read_description to
8720         amd64_linux_read_description.
8721
8722         * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
8723         (amd64_linux_register_name): Removed.
8724         (amd64_linux_register_type): Likewise.
8725         (amd64_linux_core_read_description): New.
8726         (amd64_linux_init_abi): Set target description to
8727         tdesc_amd64_linux if needed.  Support orig_rax in target
8728         description.  Don't call set_gdbarch_register_name nor
8729         set_gdbarch_register_type.  Call
8730         set_gdbarch_core_read_description.
8731         (_initialize_amd64_linux_tdep): Call
8732         initialize_tdesc_amd64_linux.
8733
8734         * amd64-linux-tdep.h (tdesc_amd64_linux): New.
8735
8736         * amd64-tdep.c:  Include "features/i386/amd64.c".
8737         (amd64_register_names): Removed.
8738         (amd64_register_name): Likewise.
8739         (amd64_register_type): Likewise.
8740         (amd64_init_abi):  Set num_core_regs and register_names.  Set
8741         target description to tdesc_amd64 if needed.  Don't call
8742         set_gdbarch_register_name nor set_gdbarch_register_type.
8743         (_initialize_amd64_tdep): New.
8744
8745         * i386-linux-nat.c (i386_linux_read_description): New.
8746         (_initialize_i386_linux_nat): Set to_read_description to
8747         i386_linux_read_description.
8748
8749         * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
8750         (i386_linux_register_name): Removed.
8751         (i386_linux_core_read_description): New.
8752         (i386_linux_read_description): Likewise.
8753         (i386_linux_init_abi): Don't call set_gdbarch_register_name.
8754         Set target description to tdesc_i386_linux if needed.  Support
8755         orig_eax.  Set register_reggroup_p.  Call
8756         set_gdbarch_core_read_description.
8757         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
8758
8759         * i386-linux-tdep.h (tdesc_i386_linux): New.
8760
8761         * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
8762         with I387_NUM_REGS.
8763
8764         * i386-tdep.c: Include "features/i386/i386.c".
8765         (i386_register_names): Make it const.
8766         (i386_mmx_names): Likewise.
8767         (i386_num_register_names): Removed.
8768         (i386_register_name): Likewise.
8769         (i386_eflags_type): Likewise.
8770         (i386_mxcsr_type): Likewise.
8771         (i386_sse_type): Likewise.
8772         (i386_register_type): Likewise.
8773         (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
8774         (i386_pseudo_register_name): New.
8775         (i386_pseudo_register_type): Likewise.
8776         (i386_mmx_type): Make it static.
8777         (i386_gdbarch_init): Check arch.  Replace I386_NUM_FREGS with
8778         I387_NUM_REGS.  Set num_core_regs and register_names.  Don't
8779         call set_gdbarch_register_name nor set_gdbarch_register_type.
8780         Set register_reggroup_p.  Set target description to tdesc_i386
8781         if needed.  Call set_tdesc_pseudo_register_type,
8782         set_tdesc_pseudo_register_name and tdesc_use_registers.
8783         (_initialize_i386_tdep): Call initialize_tdesc_i386.
8784         initialize_tdesc_x86_64.
8785
8786         * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
8787         i386_mxcsr_type and i386_sse_type.  Add num_core_regs,
8788         register_names, tdesc and register_reggroup_p.
8789         (I386_NUM_FREGS): Removed.
8790         (i386_eflags_type): Likewise.
8791         (i386_mxcsr_type): Likewise.
8792         (i386_mmx_type): Likewise.
8793         (i386_sse_type): Likewise.
8794         (i386_register_name): Likewise.
8795         (i386_regnum): Add I386_MXCSR_REGNUM.
8796         (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
8797
8798         * i387-tdep.h (I387_NUM_REGS): New.
8799
8800         * regformats/i386/i386-linux.dat: Generated.
8801         * regformats/i386/i386.dat: Likewise.
8802         * regformats/i386/amd64-linux.dat: Likewise.
8803         * regformats/i386/amd64.dat: Likewise.
8804
8805         * regformats/reg-i386-linux.dat: Removed.
8806         * regformats/reg-i386.dat: Likewise.
8807         * regformats/reg-x86-64-linux.dat: Likewise.
8808         * regformats/reg-x86-64.dat: Likewise.
8809
8810 2010-03-01  Corinna Vinschen  <vinschen@redhat.com>
8811
8812         * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
8813         cygwin_conv_path API rather than the deprecated
8814         cygwin_conv_to_full_posix_path.
8815         * windows-nat.c:
8816         (GetModuleFileNameExA): Undefine for Cygwin.
8817         (GetModuleFileNameExW): Define for Cygwin.
8818         (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
8819         Call GetModuleFileNameExW and convert path to POSIX using
8820         cygwin_conv_path.
8821         (windows_make_so): Always define p.  Drop unused variable m.
8822         Don't use Win32 functions to check file existance, rather use
8823         access on Cygwin.  Fetch system directory using GetSystemDirectoryW.
8824         Use canonicalize_file_name to get full path.
8825         (get_image_name): Use wcstombs, rather than WideCharToMultiByte
8826         to convert Unicode pathname to multibyte on Cygwin.  Otherwise,
8827         use correct target buffer size in call to WideCharToMultiByte.
8828         (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
8829         (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
8830         (windows_create_inferior): Convert all paths and arguments to wchar_t
8831         and use CreateProcessW on Cygwin.
8832         (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
8833         (bad_GetModuleFileNameExA): Undefine for Cygwin.
8834         (bad_GetModuleFileNameExW): Define for Cygwin.
8835         (_initialize_loadable): Load GetModuleFileNameExW into
8836         dyn_GetModuleFileNameExW on Cygwin.  Don't load ANSI function on Cygwin.
8837
8838 2010-02-28  Phil Muldoon  <pmuldoon@redhat.com>
8839
8840         PR python/11036
8841         * python/py-frame.c (frapy_read_var): Add block argument and logic
8842         to cope with user provided blocks.
8843
8844 2010-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8845
8846         * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
8847         New comment.
8848
8849 2010-02-28  Corinna Vinschen  <vinschen@redhat.com>
8850
8851         * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
8852         (COMMON_OBS): ... to here since it's used unconditionally.
8853         (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
8854         (SFILES): To here.
8855
8856 2010-02-26  David Daney  <ddaney@caviumnetworks.com>
8857
8858         * mips-linux-tdep.c: Update struct sigframe comments.
8859         (SIGFRAME_CODE_OFFSET): Delete macro.
8860         (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
8861         this_frame's sp.
8862         (mips_linux_n32n64_sigframe_init): Same.
8863
8864 2010-02-26  Kevin Buettner  <kevinb@redhat.com>
8865
8866         * remote-mips.c (mips_load): Don't use pseudo-register when
8867         invalidating regcache.
8868
8869 2010-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
8870
8871         * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
8872
8873 2010-02-26  Pedro Alves  <pedro@codesourcery.com>
8874
8875         * NEWS: Add "New targets" section, and mention ARM Symbian
8876         support.
8877
8878 2010-02-26  Ulrich Weigand  <uweigand@de.ibm.com>
8879
8880         * dwarf2loc.c (struct piece_closure): Remove ARCH member,
8881         add ADDR_SIZE member.
8882         (allocate_piece_closure): Update.
8883         (copy_pieced_value_closure): Likewise.
8884         (dwarf2_evaluate_loc_desc): Likewise.
8885         (read_pieced_value): Use DWARF address size instead of
8886         GDB's gdbarch_addr_bit as size of values on the DWARF stack.
8887
8888 2010-02-26  Phil Muldoon  <pmuldoon@redhat.com>
8889             Tom Tromey  <tromey@redhat.com>
8890
8891         * python/py-type.c (typy_lookup_typename): Add in block argument.
8892         If provided restrict lookup to specified blocks.
8893         (gdbpy_lookup_type): Likewise.
8894         (typy_lookup_type): Likewise.
8895
8896 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
8897
8898         Symbian config
8899
8900         gdb/
8901         * arm-symbian-tdep.c: New.
8902         * configure.tgt (arm*-*-symbianelf*): New target.
8903         (*-*-symbianelf*): New OS.
8904         * osabi.c (gdb_osabi_names): Add Symbian.
8905         * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
8906         * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
8907         (ALLDEPFILES): Add arm-symbian-tdep.c.
8908
8909 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
8910
8911         * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
8912
8913 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
8914
8915         * mi/mi-main.c (mi_cmd_execute): Fix typo.
8916
8917 2010-02-24  Phil Muldoon  <pmuldoon@redhat.com>
8918             Tom Tromey  <tromey@redhat.com>
8919             Thiago Jung Bauermann  <bauerman@br.ibm.com>
8920
8921         * python/python.c (_initialize_python): Call
8922         gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
8923         gdbpy_initialize_blocks.
8924         * python/python-internal.h: Declare struct symbol, block and
8925         symtab_and_line.  Declare block_object_type and
8926         symbol_object_type
8927         (gdbpy_lookup_symbol gdbpy_block_for_pc)
8928         (symtab_and_line_to_sal_object, symtab_to_symtab_object)
8929         (symbol_to_symbol_object,  block_to_block_object)
8930         (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
8931         (gdbpy_initialize_blocks ): Declare.
8932         * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
8933         (frapy_select): Add methods.
8934         (frapy_read_var): Add symbol branch.
8935         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
8936         py-block.
8937         (SUBDIR_PYTHON_SRCS): Likewise.
8938         (py-symbol.o): New rule.
8939         (py-symtab.o): Likewise.
8940         (py-block.o): Likewise.
8941         * python/py-symbol.c: New file.
8942         * python/py-symtab.c: Likewise.
8943         * python/py-block.c: Likewise.
8944
8945 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
8946
8947         PR gdb/11321
8948
8949         * inferior.h (prepare_for_detach): Declare.
8950         (struct inferior) <detaching>: New field.
8951         * infrun.c (prepare_for_detach): New.
8952         (handle_inferior_event) <random signal>: Don't stop if detaching.
8953         * target.c (target_detach): Call prepare_for_detach.
8954
8955 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
8956
8957         Per-process displaced stepping queue.
8958
8959         * infrun.c (displaced_step_ptid, displaced_step_request_queue)
8960         (displaced_step_gdbarch, displaced_step_closure,
8961         (displaced_step_original, displaced_step_copy): Move globals to
8962         this...
8963         (struct displaced_step_inferior_state): ... new structure.
8964         (displaced_step_inferior_states): New global.
8965         (get_displaced_stepping_state, add_displaced_stepping_state)
8966         (remove_displaced_stepping_state, infrun_inferior_exit): New
8967         functions.
8968         (displaced_step_clear): Add displaced_step_inferior_state
8969         parameter, and adjust to handle it.
8970         (displaced_step_clear_cleanup): Parameter is now a
8971         displaced_step_inferior_state.  Adjust.
8972         (displaced_step_prepare): Adjust.
8973         (displaced_step_fixup, displaced_step_fixup)
8974         (infrun_thread_ptid_changed, resume): Adjust.
8975         (init_wait_for_inferior): Don't call displaced_step_clear.
8976         (infrun_thread_stop_requested): Rewrite.
8977         (_initialize_infrun): Install infrun_inferior_exit as
8978         inferior_exit observer.
8979
8980 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
8981
8982         * inferior.h (ptid_match): Declare.
8983         * infrun.c (ptid_match): New.
8984         * remote.c (queued_stop_reply): Rewrite and use ptid_match.
8985         (handle_notification): Add debug output.
8986         * linux-nat.c (ptid_match): Delete.
8987
8988 2010-02-24  David S. Miller  <davem@davemloft.net>
8989
8990         * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
8991         * syscalls/sparc-linux.xml: New.
8992         * syscalls/sparc64-linux.xml: New.
8993         * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
8994         * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
8995         (sparc32_linux_get_syscall_number): New function.
8996         (sparc32_linux_init_abi): Set syscall XML file name and hook up
8997         syscall number fetcher.
8998         * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
8999         (sparc64_linux_get_syscall_number): New function.
9000         (sparc64_linux_init_abi): Set syscall XML file name and hook up
9001         syscall number fetcher.
9002
9003 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
9004
9005         Multiexec MI
9006
9007         * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9008         * inferior.c (add_inferior_silent): Notify inferior_added
9009         observer.
9010         (delete_inferior_1): Notify inferior_removed observer.
9011         (exit_inferior_1): Pass inferior, not pid, to observer.
9012         (inferior_appeared): Likewise.
9013         (add_inferior_with_spaces): New.
9014         (add_inferior_command): Use the above.
9015         * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9016         Declare.
9017
9018         * inflow.c (inflow_inferior_exit): Likewise.
9019         * jit.c (jit_inferior_exit_hook): Likewise.
9020
9021         * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9022         remove-inferior.
9023         * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9024         * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9025         (report_initial_inferior): New.
9026         (mi_inferior_removed): Register the above. Make sure
9027         inferior_added observer is called on the first inferior.
9028         (mi_new_thread, mi_thread_exit): Thread group is now identified by
9029         inferior number, not pid.
9030         (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9031         affected.
9032         * mi/mi-main.c (current_context): New.
9033         (proceed_thread_callback): Use typed closure.
9034         Proceed everything if pid is 0. Most implementation split into
9035         (proceed_thread): ... this.
9036         (run_one_inferior): New.
9037         (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9038         Adjust for multiexec behaviour.
9039         (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9040         (mi_cmd_execute): Handle the 'thread-group' option here.
9041         Do some extra checks.
9042         * mi-parse.c (mi_parse): Handle the --all and --thread-group
9043         options.
9044         * mi-parse.h (struct mi_parse): New fields all and thread_group.
9045
9046 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
9047
9048         Make -exec-run a proper MI commands.
9049
9050         * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9051         * mi/mi-cmds.c (mi_cmds): Adjust.
9052         * mi/mi-main.c (mi_cmd_exec_run): New.
9053
9054 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9055             Stan Shebs  <stan@codesourcery.com>
9056
9057         * tracepoint.h (set_traceframe_number)
9058         (cleanup_restore_current_traceframe): Declare.
9059         * tracepoint.c (set_traceframe_number): New.
9060         (struct current_traceframe_cleanup): New.
9061         (do_restore_current_traceframe_cleanup)
9062         (restore_current_traceframe_cleanup_dtor)
9063         (make_cleanup_restore_current_traceframe): New.
9064         * infrun.c: Include tracepoint.h.
9065         (fetch_inferior_event): Switch out and in of tfind mode.
9066
9067 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
9068
9069         * breakpoint.c (breakpoint_init_inferior): Also delete
9070         bp_shlib_event breakpoints.
9071         * solib-frv.c (enable_break): Remove call to
9072         remove_solib_event_breakpoints.
9073         * solib-svr4.c (enable_break): Ditto.
9074         * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9075         * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9076         * solib-som.c (som_solib_create_inferior_hook): Ditto.
9077         * solib-spu.c (spu_enable_break): Ditto.
9078
9079 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
9080
9081         * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9082
9083 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
9084
9085         * varobj.c (varobj_update): Avoid non-constants in initializers.
9086
9087 2010-02-23  Tom Tromey  <tromey@redhat.com>
9088
9089         * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9090         handle big-endian values.
9091         (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9092
9093 2010-02-22  Pedro Alves  <pedro@codesourcery.com>
9094
9095         PR9605
9096
9097         gdb/
9098         * breakpoint.c (insert_bp_location): If inserting the read
9099         watchpoint failed, fallback to an access watchpoint.
9100         (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9101         if the value changed, if not watching the same memory for writes.
9102         (watchpoint_locations_match): Add comment.
9103         (update_global_location_list): Copy the location's watchpoint type.
9104         * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9105         handle read watchpoints here.
9106         (i386_insert_watchpoint): Read watchpoints aren't supported.
9107         * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9108         packets.
9109         * target.h (target_insert_watchpoint): Update description.
9110
9111 2010-02-19  Tom Tromey  <tromey@redhat.com>
9112
9113         * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9114         * m2-typeprint.c (m2_print_type): Update.
9115         * gdbtypes.c (recursive_dump_type): Update.
9116         (copy_type_recursive): Update.
9117         * c-typeprint.c (c_type_print_varspec_prefix): Update.
9118         (c_type_print_base): Update.
9119         * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9120         Remove.
9121         (struct cplus_struct_type) <ntemplate_args>: Remove.
9122         <struct template_arg>: Remove.
9123         <is_dynamic>: Move earlier.
9124         (TYPE_TEMPLATE_ARGS): Remove.
9125         (TYPE_NTEMPLATE_ARGS): Remove.
9126         (TYPE_TEMPLATE_ARG): Remove.
9127
9128 2010-02-19  Tom Tromey  <tromey@redhat.com>
9129
9130         PR c++/8693, PR c++/9496:
9131         * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9132         * c-exp.y (lex_one_token): Rename from yylex.  Don't call
9133         write_dollar_variable.  Don't try to classify NAME tokens.
9134         (token_and_value): New type.
9135         (token_fifo, popping, name_obstack): New globals.
9136         (classify_name): New function.
9137         (classify_inner_name): Likewise.
9138         (yylex): Likewise.
9139         (VARIABLE): Now has type sval.
9140         (exp : VARIABLE): Call write_dollar_variable.
9141         (qualified_name): Use TYPENAME, not typebase.  Add production for
9142         multiple "::" instances.
9143         (variable): Use name_not_typename.
9144         (qualified_type): Remove.
9145         (typebase): Update.
9146
9147 2010-02-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9148
9149         * symfile.c (addr_info_make_relative): Extend comment.  Move SECT to
9150         a more inner block.  Initialize ADDR by LOWER_OFFSET only if it was
9151         found by bfd_get_section_by_name.
9152         * symfile.h (struct section_addr_info) <sectindex>: New comment.
9153
9154 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
9155
9156         * NEWS: Add new "[...] since 7.1" section.  Rename the "[...] since
9157         7.0 section" into "Changes in 7.1".
9158
9159 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
9160
9161         GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9162         * version.in: Bump version to 7.1.50.20100219-cvs.
9163
9164 2010-02-18  Harald Koenig  <H.Koenig@science-computing.de>
9165
9166         * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9167         * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9168
9169 2010-02-17  Tom Tromey  <tromey@redhat.com>
9170
9171         * NEWS: Add Python API Improvements section.
9172
9173 2010-02-18  Daniel Jacobowitz  <dan@codesourcery.com>
9174
9175         * NEWS: Correct typo.
9176
9177 2010-02-17  Tom Tromey  <tromey@redhat.com>
9178
9179         * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9180
9181 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9182
9183         * symfile.c (build_section_addr_info_from_objfile): Include sections
9184         only if they are SEC_ALLOC or SEC_LOAD.
9185
9186 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
9187
9188         PR shlibs/11293
9189         * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9190         of ULONGEST for address size.
9191
9192 2010-02-17  Tom Tromey  <tromey@redhat.com>
9193
9194         * NEWS: Add C++ improvements section.
9195
9196 2010-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
9197
9198         * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9199         PyThreadState_Swap): Avoid "statement with no effect" warning.
9200
9201 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9202
9203         * solib-svr4.c (enable_break <target_auxv_search>): New variable
9204         addr_bit.  Adjust LOAD_ADDR sign for cross-arch inferiors.
9205
9206 2010-02-17  Tristan Gingold  <gingold@adacore.com>
9207             Petr Hluzin  <petr.hluzin@gmail.com>
9208
9209         * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9210         gdb_assert.  Fix info->size for SIG prologue.
9211
9212 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9213
9214         * infcmd.c (show_inferior_tty_command): Check for NULL.
9215         Correct output message.
9216
9217 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9218
9219         * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9220         FUNCTION contains parentheses.  Improve removal of a trailing
9221         single quote.
9222
9223 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9224
9225         * gcore.c (do_bfd_delete_cleanup): New function.
9226         (gcore_command): Use it.  Discard the cleanup after success.
9227         (gcore_copy_callback): Delete dead code.
9228
9229 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9230
9231         * symfile.c (addr_info_make_relative): Always use
9232         find_lowest_section.
9233
9234 2010-02-16  Sami Wagiaalla <swagiaal@redhat.com>
9235
9236         * NEWS: Added entry for namespace fixes.
9237
9238 2010-02-15  Tom Tromey  <tromey@redhat.com>
9239
9240         * dwarf2read.c (guess_structure_name): Allocate name on the
9241         objfile obstack.
9242
9243 2010-02-15  Tom Tromey  <tromey@redhat.com>
9244
9245         * c-typeprint.c (c_type_print_base): Reverse order of test.
9246
9247 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9248
9249         * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize.  Optionally
9250         initialize it from ELF BFD.  Extend the prelink condition by it.
9251
9252 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9253
9254         * defs.h (parse_pid_to_attach): New.
9255         * utils.c (parse_pid_to_attach): New.
9256         * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9257         * gnu-nat.c (gnu_attach): Likewise.
9258         * nto-procfs.c (procfs_attach): Likewise.
9259         * procfs.c (procfs_attach): Likewise.
9260         * windows-nat.c (windows_attach): Likewise.
9261         * inf-ptrace.c (inf_ptrace_attach): Likewise.  Remove variable dummy.
9262         * inf-ttrace.c (inf_ttrace_attach): Likewise.
9263         * remote.c (extended_remote_attach_1): Likewise.  New comment on getpid
9264         check.
9265
9266 2010-02-14  Masaki Muranaka  <monaka@monami-software.com>
9267
9268         * MAINTAINERS: Add myself for write after approval privileges.
9269
9270 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9271
9272         * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9273         block.
9274
9275 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9276
9277         * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9278         only if INFO_VERBOSE.
9279
9280 2010-02-12  Tomas Holmberg <th@virtutech.com>
9281
9282         * mi/mi-main.c: Added the --reverse flag to the following MI
9283         commands: exec-continue, exec-finish, exec-next, exec-step,
9284         exec-next-instruction, exec-step-instruction. This is to
9285         support reverse execution over the MI interface to gdb.
9286
9287 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
9288
9289         * tracepoint.c (_initialize_tracepoint): Specify that the address
9290         range of `tfind outsize' is exclusive, and that the address range
9291         of `tfind range' is inclusive, in the commands' help strings.
9292
9293 2010-02-12  Joel Brobecker  <brobecker@adacore.com>
9294
9295         Spurious "dll not found" error messages on x64-windows.
9296         * windows-nat.c: Add include of complaints.h.
9297         (handle_unload_dll): Change dll-not-found error into a complaint.
9298
9299 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
9300
9301         * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9302         bp_tracepoint and bp_fast_tracepoint, not
9303         bp_loc_software_breakpoint.
9304         (update_global_location_list): Tracepoints are never duplicates of
9305         anything.
9306
9307 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
9308
9309         * breakpoint.c (break_command_really): Change return type to int.
9310         Return false if no breakpoint was created, true otherwise.
9311         (trace_command): Don't set the tracepoint count if no tracepoint
9312         was created.
9313         (ftrace_command): Ditto.
9314         (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9315         created in the breakpoints table.
9316
9317 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9318             Ulrich Weigand  <uweigand@de.ibm.com>
9319
9320         * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9321
9322 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9323
9324         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9325         the offset value isn't of integral type.
9326
9327 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9328
9329         * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9330         New.
9331
9332 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9333
9334         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9335         non-subscriptable types.
9336         * valarith.c (binop_types_user_defined_p): New, abstracted out
9337         from ...
9338         (binop_user_defined_p): ... this.
9339         * value.h (binop_types_user_defined_p): Declare.
9340
9341 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9342
9343         * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9344         Merge uploaded TSVs before merging uploaded tracepoints.
9345
9346 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
9347
9348         * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9349
9350 2010-02-11  Vladimir Prus  <vladimir@codesourcery.com>
9351
9352         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9353         whitespace character after a dot in comment.
9354         (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9355         Likewise.
9356         (list_args_or_locals): For the 'all' (that is
9357         -stack-list-variables) case, always output list of tuples.
9358         Output 'arg' field if variable is argument.
9359
9360 2010-02-10  Tom Tromey  <tromey@redhat.com>
9361
9362         * parser-defs.h (parser_debug): Declare.
9363         * parse.c (_initialize_parse): Install "debug parser" set/show
9364         command.
9365         (parser_debug): New global.
9366         (show_parserdebug): New function.
9367         * c-exp.y (c_parse): Set yydebug.
9368
9369 2010-02-10  H.J. Lu  <hongjiu.lu@intel.com>
9370
9371         * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9372         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9373         (tdesc_predefined_types): Add i387_ext, i386_eflags and
9374         i386_mxcsr.
9375         (tdesc_find_type): New.
9376         (tdesc_gdb_type): Use tdesc_find_type.  Handle TDESC_TYPE_I387_EXT,
9377         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9378
9379         * target-descriptions.h (tdesc_find_type): New.
9380
9381 2010-02-10  Michael Snyder  <msnyder@vmware.com>
9382
9383         * gdb-gdb.py: Comment fix.
9384
9385 2010-02-09  Tristan Gingold  <gingold@adacore.com>
9386
9387         * machoread.c (macho_symfile_relocate): New function.
9388         (macho_sym_fns): Use macho_symfile_relocate instead of
9389         default_symfile_relocate.
9390         (macho_oso_data): New type.
9391         (current_oso): New variable.
9392         (macho_add_oso_symfile): Do not compute section_addr_info, but
9393         instead set vma of sections.
9394         Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9395         Set and clear current_oso.
9396
9397 2010-02-09  Joel Brobecker  <brobecker@adacore.com>
9398
9399         Wrong type description for tagged type parameter.
9400         * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9401         EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9402         reference to a tagged type.
9403
9404 2010-02-09  Tristan Gingold  <gingold@adacore.com>
9405
9406         * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9407         brothers of the parent.
9408
9409 2010-02-08  Tom Tromey  <tromey@redhat.com>
9410
9411         PR c++/8017:
9412         * value.h: Update.
9413         * valops.c (search_struct_field): Make 'name' const.
9414         (search_struct_method): Likewise.
9415         (find_method_list): Make 'method' const.
9416         (value_struct_elt): Make 'name' and 'err' const.
9417         (value_find_oload_method_list): Make 'method' const.
9418         (find_overload_match): Make 'name' const.
9419         * eval.c (evaluate_subexp_standard): New locals function,
9420         function_name.
9421         <OP_FUNCALL>: Handle OP_SCOPE specially.
9422
9423 2010-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
9424
9425         * infrun.c (handle_inferior_event): Do not look up regcache
9426         for exited processes.
9427
9428 2010-02-08  Chris Moller  <moller@mollerware.com>
9429
9430         PR gdb/10728
9431         * valarith.c (value_ptrdiff): Added a test for a zero type length,
9432         warn if found, and assume length = 1.
9433
9434 2010-02-08  Chris Moller  <cmoller@redhat.com>
9435
9436         PR gdb/9067
9437         * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
9438         (cp_print_static_field)  Fix use of obstacks.
9439
9440 2010-02-08  Pedro Alves  <pedro@codesourcery.com>
9441
9442         * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9443         resumed LWPs as resumed.
9444         (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9445         we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9446         of throwing an internal error.  If an LWP of a process we're not
9447         waiting for reports a signal, don't force collecting a SIGSTOP,
9448         and if it was breakpoint hit in non-stop mode, cancel it.  Don't
9449         go through all LWPs cancelling breakpoints in non-stop mode.
9450         (resume_stopped_resumed_lwps): New.
9451         (linux_nat_wait): Use it.
9452
9453 2010-02-07  H.J. Lu  <hongjiu.lu@intel.com>
9454
9455         * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9456         i386/amd64 and i386/amd64-linux.
9457         (i386/i386-expedite): New.
9458         (i386/i386-linux-expedite): Likewise.
9459         (i386/amd64-expedite):Likewise.
9460         (i386/amd64-linux-expedite): Likewise.
9461         ($(outdir)/i386/i386-linux.dat): Likewise.
9462         ($(outdir)/i386/amd64.dat): Likewise.
9463         ($(outdir)/i386/amd64-linux.dat): Likewise.
9464
9465         * features/i386/32bit-core.xml: New.
9466         * features/i386/32bit-linux.xml: Likewise.
9467         * features/i386/32bit-sse.xml: Likewise.
9468         * features/i386/64bit-core.xml: Likewise.
9469         * features/i386/64bit-linux.xml: Likewise.
9470         * features/i386/64bit-sse.xml: Likewise.
9471         * features/i386/i386-linux.xml: Likewise.
9472         * features/i386/i386.xml: Likewise.
9473         * features/i386/amd64-linux.xml: Likewise.
9474         * features/i386/amd64.xml: Likewise.
9475         * features/i386/i386-linux.c: Likewise.
9476         * features/i386/i386.c: Likewise.
9477         * features/i386/amd64-linux.c: Likewise.
9478         * features/i386/amd64.c: Likewise.
9479
9480 2010-02-05  Sami Wagiaalla  <swagiaal@redhat.com>
9481
9482         PR c++/7935:
9483         * cp-support.h: Added char* alias element to using_direct data
9484         struct.
9485         (cp_add_using): Added char* alias argument.
9486         (cp_add_using_directive): Ditto.
9487         * cp-namespace.c: Updated with the above changes.
9488         (cp_lookup_symbol_imports): Check for aliases.
9489         * dwarf2read.c (read_import_statement): Figure out local alias
9490         for the import and pass it on to cp_add_using.
9491         (read_namespace): Pass alias argument to cp_add_using.
9492
9493 2010-02-05  Hui Zhu  <teawater@gmail.com>
9494
9495         * defs.h (gdb_bfd_errmsg): New extern.
9496         * exec.c (exec_file_attach): Change bfd_errmsg to
9497         gdb_bfd_errmsg.
9498         * utils.c (AMBIGUOUS_MESS1): New macro.
9499         (AMBIGUOUS_MESS2): New macro.
9500         (gdb_bfd_errmsg): New function.
9501
9502 2010-02-04  Doug Evans  <dje@google.com>
9503
9504         * solib-svr4.c (enable_break): Add comment.
9505
9506 2010-02-04  Anthony Green  <green@moxielogic.com>
9507
9508         * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
9509         gracefully.
9510
9511 2010-02-04  Tom Tromey  <tromey@redhat.com>
9512
9513         * valops.c (search_struct_field): Account for
9514         value_embedded_offset.  Fix check for virtual base past the end of
9515         the object.  Use value_copy when making a slice of the value.
9516
9517 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
9518
9519         PR tui/9622
9520         * tui/tui-interp.c (tui_init): Call tui_initialize_readline
9521         only if gdb_stdout is a tty.
9522
9523 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
9524
9525         * target-descriptions.c: Include "osabi.h".
9526         (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
9527         OSABI.
9528
9529 2010-02-04  Tristan Gingold  <gingold@adacore.com>
9530
9531         * machoread.c (macho_add_oso): Renamed to macho_register_oso.
9532         (macho_symtab_read): Adjust calls to macho_add_oso.
9533         (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
9534         (macho_symfile_read): Adjust call to macho_oso_symfile.
9535         (macho_new_init): Move this function after declarations.
9536         (macho_symfile_init): Ditto.
9537         * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9538         * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9539
9540 2010-02-04  Vladimir Prus  <vladimir@codesourcery.com>
9541
9542         Include MI command in remotelog.
9543
9544         * mi/mi-main.c (mi_execute_command): Call target_log_command.
9545
9546 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
9547
9548         * remote.c (remote_state): Remove gdbarch.
9549         (init_remote_state): Don't set gdbarch.
9550         (remote_query_supported): Pass target_gdbarch instead of
9551         rs->gdbarch to gdbarch_qsupported.
9552
9553 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
9554
9555         * gdbarch.sh: Add qsupported.
9556
9557         * gdbarch.c: Regenerated.
9558         * gdbarch.h: Likewise.
9559
9560         * remote.c (remote_state): Add gdbarch.
9561         (init_remote_state): Set gdbarch.
9562         (remote_query_supported): Support gdbarch_qsupported.
9563
9564 2010-02-03  Daniel Jacobowitz  <dan@codesourcery.com>
9565
9566         * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9567         __FreeBSD_kernel_version.
9568
9569 2010-02-03  Tristan Gingold  <gingold@adacore.com>
9570
9571         * symfile.h (struct sym_fns): Add sym_relocate field.
9572         (default_symfile_relocate): New prototype.
9573         (symfile_relocate_debug_section): First argument is now an objfile.
9574         * symfile.c (default_symfile_relocate): Rename from
9575         symfile_relocate_debug_section, first argument is now an objfile.
9576         (symfile_relocate_debug_section): New function.
9577         * coffread.c (coff_sym_fns): Set sym_relocate field.
9578         * somread.c (som_sym_fns): Ditto.
9579         * mipsread.c (ecoff_sym_fns): Ditto.
9580         * machoread.c (macho_sym_fns): Ditto.
9581         * elfread.c (elf_sym_fns): Ditto.
9582         * dwarf2read.c (dwarf2_read_section): Ditto.
9583         * xcoffread.c (xcoff_sym_fns): Ditto.
9584         * dbxread.c (aout_sym_fns): Ditto.
9585         (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9586         (elfstab_build_psymtabs): Ditto.
9587
9588 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
9589
9590         * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9591
9592 2010-02-02  Tom Tromey  <tromey@redhat.com>
9593
9594         * valops.c (value_cast_structs): Try downcasting using the RTTI
9595         type.
9596
9597 2010-02-02  Tom Tromey  <tromey@redhat.com>
9598
9599         * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9600         (gnuv2_baseclass_offset): Now static.
9601         * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9602         * gnu-v2-abi.h: Remove.
9603
9604 2010-02-02  Tom Tromey  <tromey@redhat.com>
9605
9606         * m2-typeprint.c (m2_record_fields): Don't use
9607         TYPE_DECLARED_TYPE.
9608         * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9609         (struct main_type) <flag_declared_class>: New field.
9610         (struct cplus_struct_type) <declared_type>: Remove.
9611         <ntemplate_args>: Move earlier.
9612         (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9613         (DECLARED_TYPE_TEMPLATE): Remove.
9614         (TYPE_DECLARED_TYPE): Remove.
9615         * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9616         * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9617         * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9618         TYPE_DECLARED_TYPE.
9619
9620 2010-02-02  Tom Tromey  <tromey@redhat.com>
9621
9622         PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9623         * valops.c (search_struct_field): Compute nbases after calling
9624         CHECK_TYPEDEF.
9625         (check_field): Call CHECK_TYPEDEF.
9626         * cp-valprint.c (cp_print_value): Pass correct address to
9627         baseclass_offset.  Fix check for virtual base past the end of the
9628         object.  Don't offset address passed to cp_print_value_fields or
9629         apply_val_pretty_printer.
9630         (cp_print_value_fields): Fix call to val_print.
9631         (cp_print_value_fields_rtti): New function.
9632         * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9633         * p-valprint.c (pascal_object_print_value_fields): Fix call to
9634         val_print.
9635         * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9636         offset to address.
9637         * language.h (struct language_defn) <la_val_print>: Document.
9638         * c-lang.h (cp_print_value_fields_rtti): Declare.
9639
9640 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9641
9642         PR libc/11214:
9643         * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9644         (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9645         (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9646
9647 2010-02-01  Michael Matz  <matz@suse.de>
9648             Daniel Jacobowitz  <dan@codesourcery.com>
9649
9650         * i386-tdep.c (i386_frame_cache): Assume valid anonymous
9651         functions use a frame pointer.
9652
9653 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9654
9655         * solib-svr4.c (scan_dyntag): New variable dyn_addr.  Replace gdb_assert
9656         by a conditional setting DYN_ADDR.  Use DYN_ADDR.
9657         * config/djgpp/fnchange.lst: Add translations for
9658         symbol-without-target_section.exp and symbol-without-target_section.c.
9659
9660 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
9661
9662         * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9663         (remote_breakpoint_for_pc): Correct invalid_p check.
9664         * gdbarch.c: Regenerated.
9665
9666 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
9667
9668         * arm-tdep.c (arm_find_mapping_symbol): New function, from
9669         arm_pc_is_thumb.
9670         (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9671         (extend_buffer_earlier): New function.
9672         (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9673         (arm_adjust_breakpoint_address): New function.
9674         (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9675
9676 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
9677
9678         * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9679         (arm_linux_thumb2_le_breakpoint): New constants.
9680         (arm_linux_init_abi): Set thumb2_breakpoint and
9681         thumb2_breakpoint_size.
9682         * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9683         (thumb_get_next_pc): Add a comment.  Rename IT to ITSTATE.
9684         Implement support for single stepping through IT blocks if
9685         a 32-bit Thumb breakpoint instruction is available.
9686         (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9687         is available, use it when needed.
9688         (arm_remote_breakpoint_from_pc): New function.
9689         (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9690         * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9691         comment.  Add thumb2_breakpoint and thumb2_breakpoint_size.
9692
9693 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
9694
9695         * arch-utils.c (default_remote_breakpoint_from_pc): New function.
9696         * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
9697         * gdbarch.c, gdbarch.h: Regenerated.
9698         * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
9699         * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
9700         gdbarch_remote_breakpoint_from_pc.
9701
9702 2010-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
9703
9704         * infrun.c (prepare_to_proceed): Handle other signals which might
9705         match a breakpoint.
9706         (handle_inferior_event): Move the check for unusual breakpoint
9707         signals earlier.
9708
9709 2010-01-29  Paul Hilfinger  <hilfinger@adacore.com>
9710
9711         amd64 - function returning record with field straddling 2 registers.
9712         * amd64-tdep.c (amd_classify_aggregate): Handle the case of
9713         a record of length <= 16 in which a field straddles the two
9714         eightbytes.
9715
9716 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
9717
9718         Implement return values on amd64-windows.
9719         * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
9720         (amd64_windows_return_value): New function.
9721         (amd64_windows_init_abi): Call set_gdbarch_return_value with
9722         amd64_windows_return_value.
9723
9724 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
9725
9726         amd64-windows: 32 bytes allocated on stack by caller for integer
9727         parameter registers.
9728         * i386-tdep.h (struct gdbarch_tdep): Add new field
9729         integer_param_regs_saved_in_caller_frame.
9730         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9731         tdep->integer_param_regs_saved_in_caller_frame to 1.
9732         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
9733         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
9734
9735 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
9736
9737         amd64-windows: memory args passed by pointer during function calls.
9738         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
9739         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
9740         where tdep->memory_args_by_pointer is non-zero.
9741         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9742         tdep->memory_args_by_pointer to 1.
9743
9744 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
9745
9746         amd64-windows: Integer parameters in function calls.
9747         * i386-tdep.h (enum amd64_reg_class): New, moved here from
9748         amd64-tdep.c.
9749         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
9750         call_dummy_integer_regs, and classify.
9751         * amd64-tdep.h (amd64_classify): Add declaration.
9752         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
9753         (amd64_reg_class): Delete, moved to i386-tdep.h.
9754         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
9755         Replace call to amd64_classify by call to tdep->classify.
9756         (amd64_push_arguments): Get the list of registers to use for
9757         passing integer parameters from the gdbarch tdep structure,
9758         rather than using a hardcoded one.  Replace calls to amd64_classify
9759         by calls to tdep->classify.
9760         (amd64_push_dummy_call): Get the register number used for
9761         the "hidden" argument from tdep->call_dummy_integer_regs.
9762         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
9763         and tdep->call_dummy_integer_regs.  Set tdep->classify.
9764         * amd64-windows-tdep.c: Add include of gdbtypes.h.
9765         (amd64_windows_dummy_call_integer_regs): New static global.
9766         (amd64_windows_classify): New function.
9767         (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
9768         tdep->call_dummy_integer_regs and tdep->classify.
9769
9770 2010-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
9771
9772         * regcache.c (regcache_xmalloc): Add aspace argument.  Use it
9773         for the new regcache.  All callers updated.
9774         (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
9775         (get_thread_arch_regcache): Do not set aspace here.
9776         * regcache.h (regcache_xmalloc): Update declaration.
9777
9778         * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
9779         regcache_xmalloc updated.
9780
9781 2010-01-28  Joel Brobecker  <brobecker@adacore.com>
9782
9783         Another -Wunused-function error in procfs.c (sparc-solaris)
9784         * procfs.c (insert_dbx_link_breakpoint): Delete declaration.  Move up.
9785         Only define if SYS_syssgi is defined.
9786         (remove_dbx_link_breakpoint): Delete declaration.  Move up.
9787         (dbx_link_addr, insert_dbx_link_bpt_in_file)
9788         (insert_dbx_link_bpt_in_region): Move up.  Only define if SYS_syssgi
9789         is itself defined.
9790
9791 2010-01-27  Christopher Faylor  <me+cygwin@cgf.cx>
9792
9793         * windows-nat.c (windows_initialization_done): New variable.
9794         (get_windows_debug_event): Issue error when process dies before
9795         completely initializing.
9796         (do_initial_windows_stuff): Set flag to indicate when we are done with
9797         the initial steps of attaching to the child.
9798
9799 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9800
9801         * symtab.h (struct symbol <symtab>): New comment on NULL values.
9802
9803 2010-01-27  Doug Evans  <dje@google.com>
9804
9805         * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
9806
9807         * breakpoint.c (bpstat_stop_status): Delete useless code.
9808
9809 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9810
9811         * printcmd.c (display_uses_solib_p): Remove variable section.  Access
9812         objfile via SYMBOL_SYMTAB.
9813
9814 2010-01-26  Tom Tromey  <tromey@redhat.com>
9815
9816         PR exp/7643:
9817         * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
9818         coerce_array on result.
9819
9820 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
9821
9822         * cp-namespace.c (cp_lookup_symbol_namespace): Added
9823         search_parent argument.
9824         (cp_add_using): Initialize 'searched' field.
9825         (reset_directive_searched): New function.
9826         * cp-support.h: Add 'searched' field to using_direct struct.
9827         (cp_lookup_symbol_imports): Ditto.
9828         * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
9829         Perform recursive search.
9830         Implement non parent search.
9831         * valops.c (value_maybe_namespace_elt): Updated.
9832
9833 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
9834
9835         PR gdb/10929:
9836         * dwarf2read.c (read_lexical_block_scope): Create blocks for
9837         scopes which contain using directives even if they contain no
9838         declarations.
9839         * symtab.c (lookup_symbol_aux): Pass lowest level block to
9840         la_lookup_symbol_nonlocal.
9841         * cp-namespace.c (cp_lookup_symbol_nonlocal): call
9842         cp_lookup_symbol_namespace.
9843         (cp_lookup_symbol_namespace): Perform an import lookup at every
9844         block level.
9845         (cp_lookup_symbol_imports): New function.
9846         (cp_lookup_symbol_in_namespace): New function.
9847
9848 2010-01-25  Tom Tromey  <tromey@redhat.com>
9849
9850         PR gdb/11049:
9851         * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
9852         result.
9853
9854 2010-01-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9855
9856         * configure.ac: Only use host_os part when disabling TUI on osf.
9857         Use test to check variables, prefix strings with x.
9858         * configure: Regenerate.
9859
9860         * solib-osf.c (osf_current_sos): Initialize tail.
9861
9862 2010-01-25  gingold  <gingold@adacore.com>
9863
9864         * windows-nat.c (windows_continue): Use %x to print thread id.
9865         (get_windows_debug_event): Ditto.
9866
9867 2010-01-22  Tom Tromey  <tromey@redhat.com>
9868
9869         PR symtab/11199:
9870         * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
9871         type and arguments.  Use smash_to_methodptr_type.
9872         (read_structure_type): Call quirk_gcc_member_function_pointer
9873         later.
9874         * gdbtypes.h (smash_to_methodptr_type): Declare.
9875         * gdbtypes.c (smash_to_methodptr_type): New function.
9876         (lookup_methodptr_type): Use it.
9877
9878 2010-01-21  Tom Tromey  <tromey@redhat.com>
9879
9880         PR symtab/11198:
9881         * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
9882         * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
9883         * glibc-tdep.c (find_minsym_and_objfile): Remove.
9884         (glibc_skip_solib_resolver): Use
9885         lookup_minimal_symbol_and_objfile.
9886
9887 2010-01-21  Kai Tietz  <kai.tietz@onevision.com>
9888
9889         * inflow.c (check_syscall): Guard by #if clause for GO32 and
9890         WIN32 targets.
9891
9892 2010-01-20  Tom Tromey  <tromey@redhat.com>
9893
9894         PR backtrace/10770:
9895         * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
9896         BINOP_GEQ.  Handle BINOP_NOTEQUAL in the signed case.
9897         * dwarf2expr.c (new_dwarf_expr_context): Allocate
9898         dwarf_stack_values, not CORE_ADDRs.
9899         (execute_stack_op): Change DW_OP_div and comparison operators to
9900         use signed operands.
9901
9902 2010-01-20  Vladimir Prus  <vladimir@codesourcery.com>
9903
9904         Per-inferior args and tty and environment.
9905
9906         * infcmd.c (inferior_args): Rename to ...
9907         (inferior_args_scratch): ... this.
9908         (inferior_io_terminal): Rename to ...
9909         (inferior_io_terminal_scratch): ... this.
9910         (inferior_argc, inferior_argv): Remove.
9911         (set_inferior_io_terminal, get_inferior_io_terminal): Store
9912         inside current_inferior().
9913         (set_inferior_tty_command, show_inferior_tty_command): New.
9914         (get_inferior_args, set_inferior_args): Store inside
9915         current_inferior().
9916         (notice_args_set): Likewise and rename to...
9917         (set_args_command): ... this.
9918         (set_inferior_args_vector): Likewise.
9919         (notice_args_read): Rename to...
9920         (show_args_command): ...new.
9921         (tty_command): Remove.
9922         (run_command_1): Don't free old args, as they are freed by
9923         set_inferior_arg now.
9924         (run_no_args_command): Likewise.
9925         (inferior_environ): Remove.
9926         (run_command_1): Use environment of the current inferior.
9927         (environment_info, set_environment_command)
9928         (unset_environment_command, path_info, path_command): Likewise.
9929         (_initialize_infcmd): Adjust for function and variable renames.
9930         Do not init inferior_environ.
9931         * inferior.h (set_inferior_arg): Adjust prototype.
9932         (struct inferior): New fields args, argc, argv, terminal, environment.
9933         (inferior_environ): Remove declaration.
9934         * inferior.c (free_inferior): Free new fields.
9935         (add_inferior_silent): Initialize 'environment' field.
9936         * main.c (captured_main): Set arguments only after the initial
9937         inferior has been created.  Set set_inferior_io_terminal,
9938         not tty_command.
9939         * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
9940         inferior.
9941         (_initialize_mi_cmd_env): Adjust for disappearance of global
9942         inferior_environ.
9943         * solib.c (solib_find): Use environment of the current inferior.
9944
9945 2010-01-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9946
9947         * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
9948         HAVE_PYTHON.
9949         (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
9950
9951 2010-01-20  Joel Brobecker  <brobecker@adacore.com>
9952
9953         Get rid of ada-lang.c:function_name_from_pc.
9954         * ada-lang.c: Add "stack.h" #include.
9955         (function_name_from_pc): Delete.
9956         (is_known_support_routine): Replace call to function_name_from_pc
9957         by call to find_frame_funname.
9958         (ada_unhandled_exception_name_addr_from_raise): Likewise.
9959
9960 2010-01-19  Tom Tromey  <tromey@redhat.com>
9961
9962         PR c++/11026:
9963         * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
9964         objfile obstack.
9965
9966 2010-01-19  Tom Tromey  <tromey@redhat.com>
9967
9968         * top.c (stop_sig, float_handler, do_nothing): Remove.
9969
9970 2010-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9971
9972         * breakpoint.c (watchpoint_check): Check the call
9973         gdbarch_in_function_epilogue_p before calling frame_find_by_id.
9974         Extend the comment.
9975         * config/djgpp/fnchange.lst: Add translations for
9976         watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
9977         watchpoint-cond-gone-stripped.c.
9978
9979 2010-01-19  Tom Tromey  <tromey@redhat.com>
9980
9981         PR c++/8000:
9982         * dwarf2read.c (partial_die_parent_scope): Put enumeration type
9983         into parent scope, and enumerator into grandparent scope.
9984
9985 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
9986
9987         * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
9988
9989 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
9990
9991         * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
9992         i[34567]86-*-solaris2.1[0-9]*.
9993         * configure.tgt: Likewise.
9994
9995 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
9996
9997         * NEWS: Document the source command enhancement allowing it
9998         to load Python scripts. Document the "set/show script-extension"
9999         commands.
10000
10001 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10002
10003         Add -Wunused-function to compile flags.
10004         * configure.ac: Add -Wunused-function to build_warnings.
10005         * configure: Regenerate.
10006
10007 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10008
10009         "delete" ada-lex.c:input function, not used.
10010         * ada-lex.l: #define YY_NO_INPUT.
10011
10012 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10013
10014         Delete free_named_symtabs and associated cleanup.
10015         * symfile.h (free_named_symtabs): Delete declaration.
10016         * symfile.c: Remove some commented out code (clear_symtab_users_once).
10017         (cashier_psymtab): Comment function out.
10018         Delete declaration.
10019         (free_named_symtabs): Delete.
10020         * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10021         * dbxread.c (end_psymtab): Likewise.
10022         * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10023         * exec.c (exec_close_1): Ditto.
10024         * xcoffread.c (xcoff_end_psymtab): Likewise.
10025
10026 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10027
10028         * stack.c (print_block_frame_labels): Comment function out.
10029
10030 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
10031
10032         Delete unused or undefined functions.
10033         * breakpoint.c (ep_parse_optional_filename): Delete.
10034         * dcache.c (dcache_write_line): Remove declaration.
10035         * infrun.c (build_infrun): Remove declaration.
10036         * tracepoint.c (tracepoint_save_command): Remove declaration.
10037         * linux-nat.c (init_lwp_list): Delete. No longer used.
10038         * event-loop.c (check_async_signal_handlers): Delete declaration.
10039         * infrun.c (init_execution_control_state): Delete.
10040         (proceed): Update comment to avoid mentioning
10041         init_execution_control_state.
10042         * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10043         * ada-lang.c (ada_to_static_fixed_value): Delete.
10044         * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10045         * cp-namespace.c (cp_copy_usings): Delete.
10046         * xml-syscall.c (xml_number_of_syscalls): Delete.
10047         * progspace.c (find_program_space_by_num): Delete.
10048         * inflow.c (handle_sigio): Delete declaration.
10049         * hppa-tdep.c (hppa_alignof): Delete.
10050         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10051         (mipsnbsd_core_osabi_sniffer): Delete.
10052
10053 2010-01-18  Tom Tromey  <tromey@redhat.com>
10054
10055         PR c++/9680:
10056         * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10057         (CONST_CAST): New tokens.
10058         (exp): Add new productions.
10059         (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10060         reinterpret_cast.
10061         (is_cast_operator): New function.
10062         (yylex): Handle cast operators specially.
10063         * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10064         UNOP_REINTERPRET_CAST>: New cases.
10065         * expprint.c (print_subexp_standard): Likewise.
10066         (op_name_standard): Likewise.
10067         (dump_subexp_body_standard): Likewise.
10068         * parse.c (operator_length_standard): Likewise.
10069         * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10070         UNOP_REINTERPRET_CAST.
10071         * gdbtypes.c (class_types_same_p): New function.
10072         (is_ancestor): Use it.
10073         (is_public_ancestor): New function.
10074         (is_unique_ancestor_worker): Likewise.
10075         (is_unique_ancestor): Likewise.
10076         * gdbtypes.h (class_types_same_p, is_public_ancestor)
10077         (is_unique_ancestor): Declare.
10078         * valops.c (value_reinterpret_cast): New function.
10079         (dynamic_cast_check_1): Likewise.
10080         (dynamic_cast_check_2): Likewise.
10081         (value_dynamic_cast): Likewise.
10082         * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10083
10084 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
10085
10086         Fix build failure when building without Python support.
10087         * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10088         is not defined.
10089
10090 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
10091
10092         Use XVS field type instead of doing a parallel lookup.
10093         * ada-lang.c (ada_get_base_type): Follow the XVS field type
10094         if it is a reference type instead of doing a type lookup using
10095         the XVS field name.
10096
10097 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
10098
10099         Trust PAD types instead of using PAD___XVS.
10100         * ada-lang.c (trust_pad_over_xvs): New static variable.
10101         (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10102         parallel XVS type, follow the XVS type instead of the PAD type.
10103         (unwrap_value): Make sure that there is no parallel XVE type
10104         before returning the value as is.
10105         (set_ada_list, show_ada_list): New static variables.
10106         (set_ada_command, show_ada_command): New functions.
10107         (_initialize_ada_language): Add new "set/show ada" prefix commands.
10108         Add new "set/show ada trust-PAD-over-XVS" setting.
10109
10110 2010-01-18  Tom Tromey  <tromey@redhat.com>
10111             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10112
10113         Allow "source" to load python scripts.
10114         * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10115         * python/python.c (source_python_script): New function.
10116         * python/python.h (source_python_script): Add declaration.
10117         * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10118         (script_ext_off, script_ext_soft, script_ext_strict)
10119         (script_ext_enums, script_ext_mode): New static constants.
10120         (show_script_ext_mode, find_and_open_script): New functions.
10121         (source_script): Enhance to handle Python scripts.
10122         (init_cli_cmds): Add set/show script-extension commands.
10123
10124 2010-01-16  Stan Shebs  <stan@codesourcery.com>
10125
10126         * tracepoint.h (struct trace_status): Use unsigned long long
10127         instead of size_t.
10128         * tracepoint.c (trace_status_command): Fix printf directive.
10129         (trace_save_command): Check fwrite returns, fix printf directive.
10130         (trace_filename): New global.
10131         (tfile_open): Set it, check read returns.
10132         (tfile_close): Free trace_filename.
10133         (tfile_get_traceframe_address): Check read returns.
10134         (tfile_trace_find): Ditto.
10135         (tfile_fetch_registers): Ditto.
10136         (tfile_xfer_partial): Ditto.
10137         (tfile_get_trace_state_variable_value): Ditto.
10138
10139 2010-01-15  Stan Shebs  <stan@codesourcery.com>
10140
10141         Add trace file support.
10142         * tracepoint.h (enum trace_stop_reason): New enum.
10143         (struct trace_status): New struct.
10144         (parse_trace_status): Declare.
10145         (struct uploaded_tp): Move here from remote.c,
10146         add fields for actions.
10147         (struct uploaded_tsv): New struct.
10148         * tracepoint.c (tfile_ops): New target vector.
10149         (trace_fd): New global.
10150         (tfile_open): New function.
10151         (tfile_close): New function.
10152         (tfile_files_info): New function.
10153         (tfile_get_trace_status): New function.
10154         (tfile_get_traceframe_address): New function.
10155         (tfile_trace_find): New function.
10156         (tfile_fetch_registers): New function.
10157         (tfile_xfer_partial): New function.
10158         (tfile_get_trace_state_variable_value): New function.
10159         (init_tfile_ops): New function.
10160         (_initialize_tracepoint): Call it, add tfile target.
10161         (trace_status): New global.
10162         (current_trace_status): New function.
10163         (trace_running_p): Remove, change all users to get from
10164         current_trace_status()->running.
10165         (get_trace_status): Remove.
10166         (trace_status_command): Call target_get_trace_status directly,
10167         report more detail including tracing stop reasons.
10168         (trace_find_command): Always allow tfind on a file.
10169         (trace_find_pc_command): Ditto.
10170         (trace_find_tracepoint_command): Ditto.
10171         (trace_find_line_command): Ditto.
10172         (trace_find_range_command): Ditto.
10173         (trace_find_outside_command): Ditto.
10174         (trace_frames_offset, cur_offset): Declare as off_t.
10175         (trace_regblock_size): Rename from reg_size, update users.
10176         (parse_trace_status): New function.
10177         (tfile_interp_line): New function.
10178         (disconnect_or_stop_tracing): Ensure current trace
10179         status before asking what to do.
10180         (stop_reason_names): New global.
10181         (trace_save_command): New command.
10182         (get_uploaded_tp): Move here from remote.c.
10183         (find_matching_tracepoint): Ditto.
10184         (merge_uploaded_tracepoints): New function.
10185         (parse_trace_status): Use stop_reason_names.
10186         (_initialize_tracepoint): Define tsave command.
10187         * target.h (target_ops): New fields to_save_trace_data,
10188         to_upload_tracepoints, to_upload_trace_state_variables,
10189         to_get_raw_trace_data, change to_get_trace_status
10190         to take a pointer to a status struct.
10191         (target_save_trace_data): New macro.
10192         (target_upload_tracepoints): New macro.
10193         (target_upload_trace_state_variables): New macro.
10194         (target_get_raw_trace_data): New macro.
10195         * target.c (update_current_target): Add new methods, change
10196         signature of to_get_trace_status.
10197         * remote.c (hex2bin): Make globally visible.
10198         (bin2hex): Ditto.
10199         (remote_download_trace_state_variable): Download name also.
10200         (remote_get_trace_status): Update parameter, use
10201         parse_trace_status.
10202         (remote_save_trace_data): New function.
10203         (remote_upload_tracepoints): New function.
10204         (remote_upload_trace_state_variables): New function.
10205         (remote_get_raw_trace_data): New function.
10206         (remote_start_remote): Use them.
10207         (_initialize_remote_ops): Add operations.
10208         * ax-gdb.c: Include breakpoint.h.
10209         * breakpoint.c (create_tracepoint_from_upload): Use
10210         break_command_really, return tracepoint, warn about unimplemented
10211         parts.
10212         * NEWS: Mention trace file addition.
10213
10214 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10215
10216         Fix compilation warning on gcc-3.4.
10217         * exec.c (print_section_info): Move the `displacement' variable
10218         initialization to its declaration.
10219
10220 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10221
10222         * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10223         comparison.
10224
10225 2010-01-15  Eric Botcazou  <botcazou@adacore.com>
10226
10227         "info tasks" broken by typedefs in ATCB type definitions.
10228         * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10229         ada_check_typedef before retrieving the length of the type for
10230         regular fields.
10231
10232 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
10233
10234         Do not use name-based lookup for unconstrained packed arrays.
10235         * ada-lang.c (find_parallel_type_by_descriptive_type):
10236         Limit the fallback to name-based lookups to the case where
10237         the type is a constrained packed array.
10238
10239 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
10240
10241         Enhance gdb-gdb.py to handle main_type.type_specific.
10242         * gdb-gdb.py: Print the type-specific part of struct main_type.
10243
10244 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10245
10246         * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10247         * configure: Regenerate.
10248         * config.in: Regenerate.
10249         * utils.c: Include sys/resource.h.
10250         (dump_core, can_dump_core): New.
10251         (internal_vproblem): Update the comment.  Check can_dump_core while
10252         setting dump_core_p.  Replace two abort calls by dump_core calls.
10253
10254 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10255             Eli Zaretskii  <eliz@gnu.org>
10256
10257         * NEWS: Document the PIE support.
10258
10259 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10260
10261         * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10262         (check_is_pie_binary, _initialize_linux_tdep): Remove.
10263
10264 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10265
10266         * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10267         Replace exec_entry_point call by bfd_get_start_address.
10268
10269 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10270
10271         Support Valgrind attachments broken by the PIE support.
10272         * auxv.c: Include gdbcore.h.
10273         (procfs_xfer_auxv): Make static.  Reduce its comment.  Drop its
10274         parameters ops, object and annex.  Remove their assertions.
10275         (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10276         * auxv.h (procfs_xfer_auxv): Remove comment.  Rename to ...
10277         (memory_xfer_auxv): ... here.
10278         * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10279         memory_xfer_auxv.
10280         * procfs.c (procfs_xfer_partial): Likewise.
10281         * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10282         (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10283         (svr4_solib_create_inferior_hook): Conditionalize the
10284         svr4_relocate_main_executable call.
10285
10286 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10287
10288         * solib-svr4.c (scan_dyntag): Remove variable dyn_addr.  New variable
10289         target_section.  Find SECT in current_target_sections, gdb_assert it.
10290         (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10291         New variable abfd.
10292         * symtab.c (lookup_objfile_from_block): Return the binary file instead
10293         of separate debug info file.
10294
10295 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10296
10297         Support PIEs with no symfile_objfile.
10298         * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10299         * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10300
10301 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10302
10303         * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10304         code part to ...
10305         (svr4_static_exec_displacement): ... a new function.
10306         (svr4_exec_displacement): New function.
10307         (svr4_relocate_main_executable): Call svr4_exec_displacement.  Allocate
10308         new_offsets using alloca now.  Remove variable old_chain and changed.
10309         Call objfile_relocate unconditionally now.
10310
10311 2010-01-14  Doug Evans  <dje@google.com>
10312
10313         * gdbtypes.c (arch_flags_type): Fix comment.
10314         * gdbtypes.h (arch_composite_type): Fix comment.
10315
10316 2009-01-14  Tristan Gingold  <gingold@adacore.com>
10317
10318         * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10319         Call xstrdup for abfd->filename.  Pass symfile_flags and objfile flags
10320         to symbol_file_add_from_bfd.  Add OSO as separate objfile.
10321         (macho_oso_symfile): Add symfile_flags parameter.  Pass it to
10322         macho_add_oso_symfile.
10323         (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10324
10325 2010-01-14  Joel Brobecker  <brobecker@adacore.com>
10326
10327         Tru64: Dead threads are never deleted.
10328         * dec-thread.c (dec_thread_ptid_is_alive): New function.
10329         (dec_thread_count_gdb_threads): Fix counter increment.
10330         (dec_thread_add_gdb_thread): Fix *listp increment.
10331         (resync_thread_list): Fix bug in deletion of dead threads that
10332         caused all threads to be deleted, instead of just the dead ones.
10333
10334 2010-01-13  Phil Muldoon  <pmuldoon@redhat.com>
10335
10336         PR python/10705
10337
10338         * python/python-internal.h: Add lazy_string_object_type
10339         definition.
10340         (create_lazy_string_object, gdbpy_initialize_lazy_string)
10341         (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10342         * python/py-value.c (valpy_lazy_string): New function.
10343         (convert_value_from_python): Add lazy string conversion.
10344         * python/py-prettyprint.c (pretty_print_one_value): Check if
10345         return is also a lazy string.
10346         (print_string_repr): Add lazy string printing branch.
10347         (print_children): Likewise.
10348         * python/py-lazy-string.c: New file. Implement lazy strings.
10349         * python/python.c (_initialize_python): Call
10350         gdbpy_initialize_lazy_string.
10351         * varobj.c (value_get_print_value): Add lazy string printing
10352         branch.  Account for encoding.
10353         * c-lang.c (c_printstr): Account for new encoding argument.  If
10354         encoding is NULL, find encoding suited for type, otherwise use
10355         user encoding.
10356         * language.h (language_defn): Add encoding argument.
10357         (LA_PRINT_STRING): Likewise.
10358         * language.c (unk_lang_printstr): Update to reflect new encoding
10359         argument to language_defn.
10360         * ada-lang.h (ada_printstr): Likewise.
10361         * c-lang.h (c_printstr): Likewise.
10362         * p-lang.h (pascal_printstr);
10363         * f-lang.c (f_printstr): Likewise.
10364         * m2-lang.c (m2_printstr): Likewise.
10365         * objc-lang.c (objc_printstr): Likewise.
10366         * p-lang.c (pascal_printstr): Likewise.
10367         * scm-lang.c (scm_printstr): Likewise.
10368         * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10369         encoding argument.
10370         * ada-valprint.c (ada_printstr): Likewise.
10371         * f-valprint.c (f_val_print): Likewise
10372         * m2-valprint.c (m2_val_print): Likewise.
10373         * p-valprint.c (pascal_val_print): Likewise.
10374         * expprint.c (print_subexp_standard): Likewise.
10375         * valprint.c (val_print_string): Likewise.
10376         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10377         (SUBDIR_PYTHON_SRCS): Likewise.
10378         (py-lazy-string.o): New rule.
10379
10380 2010-01-13  Doug Evans  <dje@google.com>
10381
10382         * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10383         uninitialized" warning from gcc on local `tree'.
10384
10385 2010-01-13  Vladimir Prus  <vladimir@codesourcery.com>
10386
10387         Implement core awareness.
10388
10389         * bcache.c (compare_ints): Remove
10390         (print_percentage): Use compare_positive_ints.
10391         * defs.h (compare_positive_ints): Declare.
10392         * linux-nat.h (struct lin_lwp): New field core.
10393         (linux_nat_core_of_thread_1): Declare.
10394         * linux-nat.c (add_lwp): Init the 'core' field.
10395         (linux_nat_wait_1): Record the core.
10396         (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10397         (linux_nat_add_target): Register the above.
10398         * linux-thread-db.c (update_thread_core): New.
10399         (thread_db_find_new_threads): Update core information for
10400         every thread.
10401         * remote.c (struct private_thread_info): New.
10402         (free_private_thread_info, demand_private_info): New.
10403         (PACKET_qXfer_threads, use_osdata_threads): New.
10404         (struct thread_item, threads_parsing_context
10405         (start_thread, end_thread, thread_attributes)
10406         (thread_children, threads_children, threads_elements): New.
10407         (remote_threads_info): Try qXfer:threads before anything
10408         else.
10409         (remote_protocol_packets): Register qXfer:threads.
10410         (remote_open_1): Init use_osdata_threads.
10411         (struct stop_reply): New field 'core'.
10412         (remote_parse_stop_reply): Parse core number.
10413         (process_stop_reply): Record core number.
10414         (remote_xfer_partial): Handle qXfer:threads.
10415         (remote_core_of_thread): New.
10416         (init_remote_ops): Register remote_core_of_thread.
10417         (_initialize_remote): Register qXfer:read.
10418         * target.c (target_core_of_thread): New
10419         * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10420         (struct target_ops): New field to_core_of_threads.
10421         (target_core_of_thread): Declare.
10422         * gdbthread.h (struct thread_info): New field private_dtor.
10423         * thread.c (print_thread_info): Report the core.
10424         * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10425         * utils.c (compare_positive_ints): New.
10426         * features/threads.dtd: New.
10427         * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10428         * mi/mi-main.c (struct collect_cores_data, collect_cores)
10429         (do_nothing, free_vector_of_osdata_items)
10430         (splay_tree_int_comparator, free_splay_tree): New.
10431         (print_one_inferior_data): Implemented printing of selected
10432         inferiors.  Collect and print cores.
10433         (output_cores): New.
10434         (mi_cmd_list_thread_groups): Support --recurse.  Permit specifying
10435         thread groups together with --available.
10436
10437 2010-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10438
10439         * configure: Regenerate (for _STRUCTURED_PROC).
10440
10441 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
10442
10443         Delete dead function.
10444         * ada-lang.c (extract_string): Delete.  No longer used.
10445
10446 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
10447
10448         Fix -Wunused warning in dec-thread.c.
10449         * dec-thread.c (dec_thread_count_gdb_threads)
10450         (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10451
10452 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
10453
10454         * ada-valprint.c (ada_print_floating): Remove trailing space.
10455
10456 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
10457
10458         Add support for DW_AT_GNAT_descriptive_type.
10459         * gdbtypes.h (enum type_specific_kind): New enum.
10460         (struct main_type) [type_specific_field]: New component.
10461         [type_specific]: Add new component "gnat_stuff".
10462         (struct gnat_aux_type): New type.
10463         (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10464         (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10465         (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10466         (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10467         (TYPE_SPECIFIC_FIELD): New macros.
10468         (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10469         type does not hold any cplus-specific data.
10470         (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10471         (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10472         (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10473         cplus-specific data.
10474         * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10475         Set new component TYPE_SPECIFIC_FIELD (type).
10476         (gnat_aux_default): New constant.
10477         (allocate_gnat_aux_type): New function.
10478         (init_type): Add initialization the type-specific stuff for
10479         TYPE_CODE_FLT and TYPE_CODE_FUNC types.
10480         (print_gnat_stuff): New function.
10481         (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
10482         specific data.  Adjust code that prints the contents of the
10483         type-specific union using the TYPE_SPECIFIC_FIELD value.
10484         * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
10485         the type cplus stuff for Ada types.
10486         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
10487         Error out if these routines are called with an Ada type.
10488         (read_structure_type, read_array_type, read_subrange_type):
10489         Add call to set_descriptive_type.
10490         (set_die_type): Initialize the gnat-specific data if necessary.
10491         (need_gnat_info, die_descriptive_type, set_descriptive_type):
10492         New functions.
10493         * ada-lang.c (decode_constrained_packed_array_type): Use
10494         decode_constrained_packed_array_type instead of doing a standard
10495         lookup to locate a parallel type.
10496         (find_parallel_type_by_descriptive_type): New function.
10497         (ada_find_parallel_type_with_name): New function.
10498         (ada_find_parallel_type): Reimplement using
10499         ada_find_parallel_type_with_name.
10500         * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
10501         to check if type has a cplus stuff.
10502         * linespec.c (total_number_of_methods): Likewise.
10503         * mdebugread.c (new_type): Likewise.
10504
10505 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10506
10507         * NEWS: Document the 0b binary number prefix parsing.
10508
10509 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10510
10511         * objfiles.c (objfile_relocate1): Change the return type to int.
10512         Describe the new return value.  Return non-zero if data changed.
10513         (objfile_relocate): New variable changed.  Set it.  Call
10514         breakpoint_re_set depending on CHANGED.
10515
10516 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10517
10518         Implement binary numbers parsing.
10519         * c-exp.y (parse_number): New case 'b' and 'B'.
10520
10521 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10522             Tristan Gingold  <gingold@adacore.com>
10523
10524         * solib.c (info_sharedlibrary_command): Replace
10525         objfile_has_partial_symbols and objfile_has_full_symbols calls by
10526         objfile_has_symbols.
10527
10528 2010-01-10  Joel Brobecker  <brobecker@adacore.com>
10529
10530         * NEWS: Document the improvements made to the mips-irix port.
10531
10532 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10533
10534         Fix the documentation of valprint.c:value_print.
10535         * valprint.c (value_print): Update the function description to
10536         mention that the syntax of the output follows the current_language,
10537         not necessarily C.
10538
10539 2010-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10540
10541         Fix displacement of separate debug info files.
10542         * objfiles.c (objfile_relocate): Rename to ...
10543         (objfile_relocate1): ... here and make it static.  Extend the comment.
10544         (objfile_relocate): New function.
10545         * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10546         SYMFILE_OBJFILE is NULL.  Remove variables objfile and old_chain.
10547         Remove following of SEPARATE_DEBUG_OBJFILE.  new_offsets is now
10548         allocated using alloca.
10549         * symfile.c (copy_section_addr_info): Remove.
10550         (build_section_addr_info_from_objfile): Make it global.  New variables
10551         addr_bit and mask, use them.
10552         * symfile.h (build_section_addr_info_from_objfile): New prototype.
10553         (copy_section_addr_info): Remove.
10554
10555 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10556
10557         Signal unwinder for mips-irix N32.
10558         * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10559         tramp-frame.h.
10560         (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10561         (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
10562         (SIGCONTEXT_LO_OFF): New macros.
10563         (mips_irix_n32_tramp_frame_init): New function.
10564         (mips_irix_n32_tramp_frame): New static constant.
10565         (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10566
10567 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10568
10569         Breakpoint in shared library does not work on mips-irix.
10570         * procfs.c: #include "observer.h".
10571         (procfs_inferior_created): New function, moving here the code
10572         which unsets the syssgi syscall-exit notifications.
10573         (procfs_create_inferior): Remove the code which unsets the syssgi
10574         syscall-exit notifications. It is too early to do this here.
10575         (_initialize_procfs): Attach the procfs_inferior_created observer.
10576
10577 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10578
10579         Wrong return convention for arrays (mips-irix).
10580         * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10581         128 bits or smaller are returned the same way as structs
10582         and unions of the the same size.
10583
10584 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10585
10586         Cannot set the PC on mips-irix.
10587         * irix5-nat.c (fill_gregset): Check regno against the raw PC
10588         register number, no the cooked one.
10589
10590 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10591
10592         Error while loading core file on mips-irix.
10593         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10594         if debugging from a core file.
10595
10596 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10597
10598         GDB hangs when attaching to process on mips-irix.
10599         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10600         attaching to a process.
10601
10602 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10603
10604         Use the correct breakpoint instruction on mips-irix.
10605         * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10606         containing the correct breakpoint instruction to use on mips-irix.
10607         Use it when the osabi is GDB_OSABI_IRIX.
10608
10609 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10610
10611         -Wunused warning in procfs.c (mips-irix only).
10612         * procfs.c (gdb_praddset, gdb_prdelset): New macros.  Use them
10613         throughout instead of using praddset and prdelset respectively.
10614
10615 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10616
10617         GDB crash while stepping into function.
10618         * infrun.c (handle_inferior_event): Refetch the current frame
10619         after handling what.main_action, in case that pointer became
10620         dangling.
10621
10622 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
10623
10624         Fix build failure of solaris-hosted cross debuggers.
10625         * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10626
10627 2010-01-09  Daniel Gutson  <dgutson@codesourcery.com>
10628
10629         Fix build failure on sparc-solaris.
10630         * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10631
10632 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10633
10634         Move some symfile code into subroutines.
10635         * symfile.h (relative_addr_info_to_section_offsets)
10636         (addr_info_make_relative): New prototypes.
10637         * symfile.c (default_symfile_offsets): Move a part to ...
10638         (relative_addr_info_to_section_offsets): ... this new function.
10639         (default_symfile_offsets): Call it.
10640         (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10641         this part to ...
10642         (addr_info_make_relative): ... this new function.
10643
10644 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10645
10646         Add from_tty to solib_create_inferior_hook.
10647         * infcmd.c (post_create_inferior): Move solib_add after
10648         solib_create_inferior_hook.  Pass from_tty to
10649         solib_create_inferior_hook.  Call solib_add and SOLIB_ADD with
10650         0 from_tty and comment why.
10651         * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10652         * linux-nat.c (linux_child_follow_fork): Likewise.
10653         * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10654         * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10655         from_tty.
10656         * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10657         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10658         * solib-null.c (null_solib_create_inferior_hook): Likewise.
10659         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10660         * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10661         * solib-som.c (som_solib_create_inferior_hook): Likewise.
10662         * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10663         Pass it to svr4_so_ops.solib_create_inferior_hook.
10664         * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10665         from_tty.
10666         * solib-svr4.c (enable_break): New parameter from_tty.  Pass it to
10667         solib_add.
10668         (svr4_solib_create_inferior_hook): New parameter from_tty.  Pass it to
10669         enable_break.
10670         * solib-target.c (solib_target_solib_create_inferior_hook): New
10671         parameter from_tty.
10672         * solib.c (solib_create_inferior_hook): New parameter from_tty.  Pass
10673         it to ops->solib_create_inferior_hook.
10674         (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10675         Move solib_add after solib_create_inferior_hook, call it now with
10676         from_tty as 0.  New comment there.
10677         * solib.h (solib_create_inferior_hook): New parameter from_tty.
10678         * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10679         Likewise.
10680
10681 2010-01-08  Vladimir Prus  <vladimir@codesourcery.com>
10682
10683         Fix multiexec race.
10684         * infrun.c (handle_inferior_event): Use get_thread_regcache
10685         with events ptid, not get_current_regcache.
10686
10687 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
10688
10689         GDB crash with empty executable name (MinGW).
10690         * source.c (openp): Add assert that parameter string is not NULL.
10691         if parameter string is an empty string, then return with a failure
10692         immediately.
10693
10694 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
10695
10696         Get rid of support for VAX Floats.
10697         * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10698         (ada_vax_float_print_function): Delete.
10699         * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10700         (ada_vax_float_print_function): Delete.
10701         * ada-typeprint.c (print_vax_floating_point_type): Delete.
10702         (ada_print_type): Remove support for VAX floats.
10703         * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
10704
10705 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10706
10707         * stabsread.c (read_args): Handle zero arguments.
10708
10709 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
10710
10711         Cannot find in-tree libiconv.a after reconfigure.
10712         * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
10713         that we can use, then cache the path to this archive.
10714         * configure: Regenerate.
10715
10716 2010-01-07  Stan Shebs  <stan@codesourcery.com>
10717
10718         Make tracepoint operations go through target vector.
10719         * target.h (enum trace_find_type): New enum.
10720         (struct target_ops): New fields to_trace_init,
10721         to_download_tracepoint, to_download_trace_state_variable,
10722         to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
10723         to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
10724         to_set_disconnected_tracing.
10725         (target_trace_init): New macro.
10726         (target_download_tracepoint): New macro.
10727         (target_download_trace_state_variable): New macro.
10728         (target_trace_start): New macro.
10729         (target_trace_set_readonly_regions): New macro.
10730         (target_get_trace_status): New macro.
10731         (target_trace_stop): New macro.
10732         (target_trace_find): New macro.
10733         (target_get_trace_state_variable_value): New macro.
10734         (target_set_disconnected_tracing): New macro.
10735         * target.c (update_current_target): Inherit and set defaults for
10736         tracepoint operations.
10737         * tracepoint.c (default_collect): Make globally visible.
10738         (target_is_remote): Remove, along with all calls.
10739         (tvariables_info): Call target_get_trace_state_variable_value.
10740         (remote_set_transparent_ranges): Remove.
10741         (trace_start_command): Call target_trace_init,
10742         target_download_tracepoint, etc.
10743         (download_tracepoint): Remove.
10744         (trace_stop_command): Simplify.
10745         (stop_tracing): Call target_trace_stop.
10746         (get_trace_status): Call target_get_trace_status.
10747         (trace_status_command): Add case for targets that cannot trace.
10748         (finish_tfind_command): Change to take numerical arguments, call
10749         target_trace_find.
10750         (trace_find_command): Update call to finish_tfind_command.
10751         (trace_find_pc_command): Ditto.
10752         (trace_find_tracepoint_command): Ditto.
10753         (trace_find_line_command): Ditto.
10754         (trace_find_range_command): Ditto.
10755         (trace_find_outside_command): Ditto.
10756         (set_disconnected_tracing_value): Call
10757         target_set_disconnected_tracing.
10758         * remote.c: Add protocol encoding bits from tracepoint.c.
10759         (trace_error): Move from tracepoint.c.
10760         (remote_get_noisy_reply): Ditto.
10761         (free_actions_list_cleanup_wrapper): Ditto.
10762         (free_actions_list): Ditto.
10763         (remote_trace_init): New function.
10764         (remote_download_tracepoint): New function.
10765         (remote_download_trace_state_variable): New function.
10766         (remote_trace_set_readonly_regions): New function.
10767         (remote_trace_start): New function.
10768         (remote_get_trace_status): New function.
10769         (remote_trace_stop): New function.
10770         (remote_trace_find): New function.
10771         (remote_download_trace_state_variable): New function.
10772         (remote_set_disconnected_tracing): New function.
10773         (init_remote_ops): Add tracepoint operations.
10774
10775         * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
10776
10777 2010-01-07  Tristan Gingold  <gingold@adacore.com>
10778
10779         * symfile.c (build_section_addr_info_from_objfile): New function.
10780         (symbol_file_add_separate): Don't use offsets from objfile but
10781         built an addr info.
10782
10783 2010-01-06  Stan Shebs  <stan@codesourcery.com>
10784
10785         Support disconnected tracing.
10786         * infcmd.c (detach_command): Ask whether to stop tracing.
10787         * cli/cli-cmds.c (quit_command): Ditto.
10788         * breakpoint.h (struct breakpoint): New field number_on_target.
10789         * breakpoint.c (create_tracepoint_from_upload): New function.
10790         (get_tracepoint_by_number_on_target): New function.
10791         * remote.c (struct remote): New field disconnected_tracing.
10792         (remote_disconnected_tracing_feature): New function.
10793         (remote_protocol_features): Add DisconnectedTracing.
10794         (struct uploaded_tp): New struct.
10795         (uploaded_tps): New global.
10796         (get_uploaded_tp): New function.
10797         (find_matching_tracepoint): New function.
10798         (remote_get_tracing_state): New function.
10799         (remote_start_remote): Call it.
10800         * tracepoint.c (disconnected_tracing): New global.
10801         (trace_start_command): Initialize number_on_target.
10802         (stop_tracing): New function, split out from...
10803         (trace_stop_command): Call stop_tracing.
10804         (get_trace_status): New function, split out from...
10805         (trace_status_command): Call get_trace_status, add info on
10806         disconnection behavior.
10807         (disconnect_or_stop_tracing): New function.
10808         (finish_tfind_command): Translate from number on target.
10809         (trace_find_tracepoint_command): Translate to number on target.
10810         (send_disconnected_tracing_value): New function.
10811         (set_disconnected_tracing): New function.
10812         (_initialize_tracepoint): Add disconnected-tracing variable.
10813         * NEWS: Mention disconnected tracing.
10814
10815 2010-01-06  Tristan Gingold  <gingold@adacore.com>
10816
10817         * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
10818         parameter to main_objfile.  Iterate on all separate debug objfiles.
10819         * symfile.h (symbol_file_add_separate)
10820         (find_separate_debug_file_by_debuglink): Remove parameter names.
10821         * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
10822         (reread_symbols): Use free_objfile_separate_debug.
10823         * objfiles.h (struct objfile): Add separate_debug_objfile_link.
10824         Adjust comment.
10825         (objfile_separate_debug_iterate, add_separate_debug_objfile)
10826         (free_objfile_separate_debug): New prototypes.
10827         * objfiles.c (objfile_separate_debug_iterate): New function.
10828         (add_separate_debug_objfile, free_objfile_separate_debug): New
10829         functions.
10830         (free_objfile): Use free_objfile_separate_debug.  Adjust for
10831         multiple separate debug objfile.
10832         (objfile_has_symbols): Adjust comment.  Iterate on all separate
10833         debug objfiles.
10834         * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
10835         debug objfile.
10836         (lookup_minimal_symbol_text): Ditto.
10837         (lookup_minimal_symbol_by_pc_name): Ditto.
10838         (lookup_minimal_symbol_solib_trampoline): Ditto.
10839         (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
10840         debug objfiles.
10841
10842 2010-01-05  Stan Shebs  <stan@codesourcery.com>
10843
10844         Add fast tracepoints.
10845         * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
10846         * arch-utils.c (default_fast_tracepoint_valid_at): New function.
10847         * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
10848         * breakpoint.c (tracepoint_type): New function.
10849         (ALL_TRACEPOINTS): Use it.
10850         (should_be_inserted): Ditto.
10851         (bpstat_check_location): Ditto.
10852         (print_one_breakpoint_location): Ditto.
10853         (user_settable_breakpoint): Ditto.
10854         (set_breakpoint_location_function): Ditto.
10855         (disable_breakpoints_in_shlibs): Ditto.
10856         (delete_trace_command): Ditto.
10857         (print_it_typical): Add bp_fast_tracepoint case.
10858         (bpstat_what): Ditto.
10859         (print_one_breakpoint_location): Ditto.
10860         (allocate_bp_location): Ditto.
10861         (mention): Ditto.
10862         (breakpoint_re_set_one): Ditto.
10863         (disable_command): Ditto.
10864         (enable_command): Ditto.
10865         (check_fast_tracepoint_sals): New function.
10866         (break_command_really): Call it.
10867         (ftrace_command): New function.
10868         (_initialize_breakpoint): Add ftrace command.
10869         * gdbarch.sh (fast_tracepoint_valid_at): New.
10870         * gdbarch.h, gdbarch.c: Regenerate.
10871         * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
10872         (i386_gdbarch_init): Use it.
10873         * remote.c (struct remote_state): New field fast_tracepoints.
10874         (PACKET_FastTracepoints): New packet config type.
10875         (remote_fast_tracepoint_feature): New function.
10876         (remote_protocol_features): Add FastTracepoints.
10877         (remote_supports_fast_tracepoints): New function.
10878         (_initialize_remote): Add FastTracepoints.
10879         * tracepoint.c (download_tracepoint): Add fast tracepoint option.
10880         * NEWS: Mention fast tracepoints.
10881
10882 2010-01-06  Joel Brobecker  <brobecker@adacore.com>
10883
10884         * gdb-gdb.py: New file.
10885
10886 2010-01-05  Michael Snyder  <msnyder@vmware.com>
10887
10888         * infrun.c (handle_inferior_event): Fix typo in comment.
10889
10890 2010-01-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
10891
10892         * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
10893
10894 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
10895
10896         * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
10897         and s390x-linux64.
10898         (s390-linux32-expedite): Define.
10899         (s390-linux64-expedite): Define.
10900         (s390x-linux64-expedite): Define.
10901         * features/s390-acr.xml: New file.
10902         * features/s390-fpr.xml: New file.
10903         * features/s390-core32.xml: New file.
10904         * features/s390-core64.xml: New file.
10905         * features/s390x-core64.xml: New file.
10906         * features/s390-linux32.xml: New file.
10907         * features/s390-linux64.xml: New file.
10908         * features/s390x-linux64.xml: New file.
10909         * features/s390-linux32.c: New generated file.
10910         * features/s390-linux64.c: New generated file.
10911         * features/s390x-linux64.c: New generated file.
10912
10913         * regformats/s390-linux32.dat: New generated file.
10914         * regformats/s390-linux64.dat: New generated file.
10915         * regformats/s390x-linux64.dat: New generated file.
10916         * regformats/reg-s390.dat: Remove.
10917         * regformats/reg-s390x.dat: Remove.
10918
10919         * s390-nat.c: Include "auxv.h" and <elf.h>.
10920         (HWCAP_S390_HIGH_GPRS): Define if undefined.
10921         (s390_target_wordsize): New function.
10922         (s390_auxv_parse): Likewise.
10923         (s390_get_hwcap): Likewise.
10924         (s390_read_description): Likewise.
10925         (_initialize_s390_nat): Install s390_auxv_parse and
10926         s390_read_description.
10927
10928         * s390-tdep.c: Include "features/s390-linux32.c",
10929         "features/s390-linux64.c", and "features/s390x-linux64.c".
10930         (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
10931         (s390_register_call_saved): New function.
10932         (s390_register_name): Remove.
10933         (s390_register_type): Remove.
10934         (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
10935         (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
10936         (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
10937         (s390_pseudo_register_name): New function.
10938         (s390_pseudo_register_type): New function.
10939         (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
10940         Handle full GPR pesudos and varying pseudo register numbers.
10941         (s390_pseudo_register_write): Likewise
10942         (s390x_pseudo_register_read): Remove.
10943         (s390x_pseudo_register_write): Likewise.
10944         (s390_register_group): Remove.
10945         (s390_pseudo_register_group): New function.
10946         (s390_regmap_gregset): Add GPR upper halves.
10947         (s390x_regmap_gregset): Likewise.
10948         (s390_regmap_fpregset): Likewise.
10949         (s390_regmap_upper): New global variable.
10950         (s390_upper_regset): New global variable.
10951         (s390_upper_regset_sections): New global variable.
10952         (s390_regset_from_core_section): Handle GPR upper halves.
10953         (s390_core_read_description): New function.
10954         (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
10955         register information.  Handle varying pseudo register numbers.
10956         (s390_backchain_frame_unwind_cache): Likewise.
10957         (s390_frame_prev_register): Unwind full GPRs to show lower halves.
10958         (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
10959         (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
10960         PC and CC pseudos.  Unwind upper halves and full GPRs as appropriate.
10961         Handle varying pseudo register numbers.
10962         (s390_unwind_pc): Handle varying pseudo register numbers.
10963         (s390_dwarf2_prev_register): New function.
10964         (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
10965         register information.  Handle varying pseudo register numbers.
10966         Install s390_dwarf2_prev_register to unwind full GPRs.
10967         (s390_gdbarch_init): Handle target descriptions.  Assign varying
10968         pseudo register numbers.  Install s390_adjust_frame_regnum.
10969         (_initialize_s390_tdep): Initialize target descriptions.
10970
10971         * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
10972         (S390_NUM_REGS): Redefine to include upper half registers.
10973         (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
10974         (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
10975         (tdesc_s390_linux32): Add declaration.
10976         (tdesc_s390_linux64): Likewise.
10977         (tdesc_s390x_linux64): Likewise.
10978
10979 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
10980
10981         * regset.h (struct core_regset_section): Add HUMAN_NAME.
10982         * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
10983         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
10984         (ppc_linux_vmx_regset_sections): Likewise.
10985         (ppc_linux_fp_regset_sections): Likewise.
10986
10987         * corelow.c (get_core_register_section): Constify arguments.
10988         (get_core_registers): Use gdbarch_core_regset_sections instead
10989         of hard-coded platform-specific register section names.
10990
10991 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
10992
10993         * dwarf2loc.c (read_pieced_value): If a piece occupies part of
10994         a register, assume the least-significant part is used.
10995         (write_pieced_value): Likewise.
10996
10997 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
10998
10999         * printcmd.c: Include "arch-utils.h".
11000         (do_one_display): Re-parse expression if current architecture changed.
11001
11002 2010-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11003             Joel Brobecker  <brobecker@adacore.com>
11004
11005         * gdbtypes.c (check_typedef): New comment on type length.
11006         * value.c (allocate_value_lazy): Remove the unused atype variable.  New
11007         comment on type length.
11008         (value_primitive_field): Keep the original TYPE value, new comment.
11009
11010 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11011
11012         * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11013         p_start.  Change != comparisons to > and < comparisons.
11014
11015 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11016
11017         * cli/cli-script.c (process_next_line): Check P2 overrun.
11018
11019 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
11020
11021         Update the copyright hearder to add year 2010 for most GDB files.
11022
11023 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
11024
11025         Fix build failure in inf-ptrace.c.
11026         * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11027
11028 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
11029
11030         * top.c (print_gdb_version): Update copyright year.
11031
11032 2010-01-01, 10  Joel Brobecker  <brobecker@adacore.com>
11033
11034         Fix break *FUN'address thread NUM.
11035         * ada-lex.l (task): Expand rule to also match the thread keyword.
11036
11037 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
11038
11039         Fix break *FUN'address task NUM.
11040         * ada-lex.l (task): New rule.
11041         * ada-lang.c (valid_task_id): Make sure the Ada task list has
11042         been built before using it.
11043
11044 For older changes see ChangeLog-2009.
11045 \f
11046 Local Variables:
11047 mode: change-log
11048 left-margin: 8
11049 fill-column: 74
11050 version-control: never
11051 coding: utf-8
11052 End: