2010-06-08 Michael Snyder <msnyder@vmware.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2010-06-08  Michael Snyder  <msnyder@vmware.com>
2
3         * remote.c (remote_close): Set inferior_ptid to null_ptid.
4
5 2010-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6
7         * configure.ac <"${have_libpython}" != no>: New workaround of
8         python#4434.
9         * configure: Regenerate.
10
11 2010-06-08  Hui Zhu  <teawater@gmail.com>
12
13         * record.c (record_wait): Move signal out of replay code.
14
15 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
16
17         Fix PR 10640.
18         * dwarf2-frame.c (no_dwarf_call): New function.
19         (execute_stack_op): Set CTX->DWARF_CALL.
20         * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
21         * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
22         (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
23         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
24         (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
25         (needs_frame_dwarf_call): New function.
26         (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
27         * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
28         Update the comment.  Move variables die, offset and error call to ...
29         (follow_die_ref): ... a new function.
30         (dwarf2_fetch_die_location_block): New function.
31         * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
32
33 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
34
35         * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
36         (dwarf_expr_tls_address): Use per_cu instead of objfile.
37         (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
38         Initialize new BATON.PER_CU.  Adjust CTX->GDBARCH initialization for
39         this change.
40         (struct needs_frame_baton): New field per_cu.
41         (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
42         * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
43
44 2010-06-07  Sami Wagiaalla  <swagiaal@redhat.com>
45
46         * cp-support.c (make_symbol_overload_list_namespace): Only search
47         static and global blocks.
48         (make_symbol_overload_list_block): New function.
49         (make_symbol_overload_list): Separate namespace search from block
50         search.
51         (make_symbol_overload_list_qualified): Use
52         make_symbol_overload_list_block.
53
54 2010-06-07  Sami Wagiaalla  <swagiaal@redhat.com>
55
56         * value.h: Created oload_search_type enum.
57         (find_overload_match): Use oload_search_type enum.
58         * valops.c (find_overload_match): Support combined member and
59         non-member search.
60         * eval.c (evaluate_subexp_standard): Calls to
61         find_overload_match now use oload_search_type enum.
62         (oload_method_static): Verify index is a proper value.
63         * valarith.c (value_user_defined_cpp_op): Search for and handle
64         both member and non-member operators.
65         (value_user_defined_cpp_op): New function.
66         (value_user_defined_op): New function.
67         (value_x_unop): Use value_user_defined_op.
68         (value_x_binop): Ditto.
69         * cp-support.c (make_symbol_overload_list_using): Added block
70         iteration.
71         Add check for namespace aliases and imported declarations.
72
73 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
74
75         * breakpoint.h (owner): Extend the comment.
76
77 2010-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
78
79         Clear stale specific bp_location from former whole breakpoint.
80         * breakpoint.c (delete_breakpoint): Move the stale referencing clear
81         code ...
82         (free_bp_location): ... here.  Rename there the called function to
83         bpstat_remove_bp_location_callback.
84         (bpstat_remove_breakpoint_callback): Rename to ...
85         (bpstat_remove_bp_location_callback): ... here, change DATA resolution
86         to struct bp_location.  Change the called function to
87         bpstat_remove_bp_location.  Create new declaration for the function.
88         (bpstat_remove_breakpoint): Rename to ...
89         (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
90         code for the new parameter type.
91
92 2010-06-07  Nathan Sidwell  <nathan@codesourcery.com>
93
94         * README: Make version-agnostic.
95
96 2010-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
97
98         Fix duplicate types for single DIE.
99         * dwarf2read.c (read_structure_type): Move set_descriptive_type after
100         set_die_type.
101         (read_array_type): Remove type initialization.  Recheck get_die_type
102         after initial die_type.  Move set_die_type before set_descriptive_type.
103         (read_set_type): New variable domain_type.  Recheck get_die_type after
104         initial die_type.  Move attr initialization later.
105         (read_tag_pointer_type, read_tag_reference_type): New variable
106         target_type.  Recheck get_die_type after initial die_type.
107         (read_tag_ptr_to_member_type): Recheck get_die_type after initial
108         die_type and die_containing_type.
109         (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
110         Recheck get_die_type after initial die_type.
111         (read_subrange_type): Recheck get_die_type after initial die_type.
112         Move set_die_type before set_descriptive_type.
113         (set_die_type): Extend the function comment.  Call complaint if DIE has
114         some type already set.
115
116 2010-06-05  Vladimir Prus  <vladimir@codesourcery.com>
117
118         * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
119         for current naming of thread groups (iN, not N).
120
121 2010-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
122
123         * ada-lang.c (ada_operator_length): Constify `struct expression'.
124         * parse.c (operator_length): Likewise.
125         (operator_length_standard): Likewise.
126         * parser-defs.h (operator_length): Likewise.
127         (operator_length_standard): Likewise.
128         (struct exp_descriptor <operator_length>): Likewise.
129
130 2010-06-04  Doug Evans  <dje@google.com>
131
132         Add support for enabling/disabling individual pretty-printers.
133         * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
134         * python/python-internal.h (gdbpy_enabled_cst): Declare.
135         * python/python.c (gdbpy_enabled_cst): Define.
136         (_initialize_python): Initialize gdbpy_enabled_cst.
137         * NEWS: Add entry.
138
139 2010-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
140
141         * breakpoint.c (update_global_location_list): Fix comment typo.
142
143 2010-06-04  Hui Zhu  <teawater@gmail.com>
144
145         * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
146
147 2010-06-03  Doug Evans  <dje@google.com>
148
149         * configure.ac: Don't fail if python is unusable when
150         configured with --with-python=auto.
151         * configure: Regenerate.
152
153 2010-06-03  Sami Wagiaalla  <swagiaal@redhat.com>
154
155         * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
156
157 2010-06-03  Pierre Muller  <muller@ics.u-strasbg.fr>
158
159         * valprint.h (get_array_bounds): Change low and high parameter types
160         to LONGEST *.
161         * valprint.c (get_array_bounds): Use get_discrete_bounds call to 
162         compute bounds.
163         (val_print_array_elements): Adapt to change above.
164         * ada-valprint.c (print_optional_low_bound): Adapt to change above.
165         * p-valprint.c (pascal_val_print): Likewise.
166
167 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
168
169         * symfile.c (init_filename_language_table): New extensions .for, .FOR,
170         .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
171         .F08.
172
173 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
174
175         Support DW_TAG_module as separate namespaces.
176         * dwarf2read.c (typename_concat): New parameter physname.
177         (read_module_type): New function and declaration.
178         (scan_partial_symbols): Scan also DW_TAG_module children.
179         (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
180         to typename_concat backward compatible physname value 0.
181         (partial_die_full_name, read_namespace_type): Pass to typename_concat
182         backward compatible physname value 0.
183         (add_partial_module, read_module): Remove FIXME comment.
184         (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
185         (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
186         DIEs under DW_TAG_module.
187         (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
188         DW_AT_MIPS_linkage_name first, extend it for language_fortran
189         && physname and return there instead of just setting NAME.  Extend
190         the main block for language_fortran.  Pass physname parameter to the
191         typename_concat call.
192         (read_import_statement, read_func_scope, get_scope_pc_bounds)
193         (load_partial_dies, determine_prefix): Support also DW_TAG_module.
194         (new_symbol): Fill in cplus_specific.demangled_name if it is still
195         missing from SYMBOL_SET_NAMES in the language_fortran case.
196         (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
197         variables.
198         (read_type_die) <DW_TAG_module>: New.
199         (MAX_SEP_LEN): Increase to 7.
200         (typename_concat): New parameter physname.  New variable lead.  Support
201         also language_fortran.
202         * f-exp.y (yylex): Consider : also as a symbol name character class.
203         * f-lang.c: Include cp-support.h.
204         (f_word_break_characters, f_make_symbol_completion_list): New functions.
205         (f_language_defn): Use cp_lookup_symbol_nonlocal,
206         f_word_break_characters and f_make_symbol_completion_list.
207         * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
208         * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
209         * symtab.c (symbol_init_language_specific): Support language_fortran.
210         (symbol_find_demangled_name): New comment on language_fortran.
211         (symbol_natural_name, symbol_demangled_name): Use demangled_name even
212         for language_fortran.
213         (lookup_symbol_aux_local): Check imports also for language_fortran.
214         (default_make_symbol_completion_list): Rename to ...
215         (default_make_symbol_completion_list_break_on): ... this name.  New
216         parameter break_on, use it.
217         (default_make_symbol_completion_list): New stub.
218         * symtab.h (default_make_symbol_completion_list_break_on): New
219         prototype.
220
221 2010-06-02  Joel Brobecker  <brobecker@adacore.com>
222
223         * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
224         to error.
225
226 2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
227
228         * dwarf2read.c (typename_concat): Add const to the variable sep.
229
230 2010-06-02  Tom Tromey  <tromey@redhat.com>
231
232         * dwarf2loc.h (dwarf2_per_cu_data): Declare.
233         * dwarf2read.c (dwarf_stack_op_name): No longer static.  Return
234         type is const.  Add 'def' argument.  Add missing operators, remove
235         unhandled ones.
236         (decode_locdesc): Update.
237         (dwarf2_always_disassemble): New global.
238         (show_dwarf2_always_disassemble): New function.
239         (_initialize_dwarf2_read): Add always-disassemble.
240         (dwarf2_per_cu_offset_size): New function.
241         * dwarf2loc.c (dwarf2_always_disassemble): Declare.
242         (piece_end_p): New function.
243         (locexpr_describe_location_piece): Replace 'size' argument with
244         'end'.  Use piece_end_p.  Rewrite recognition of TLS.  Recognize
245         some constants.  Remove errors.
246         (disassemble_dwarf_expression): New function.
247         (locexpr_describe_location_1): Use disassemble_dwarf_expression.
248         Add 'offset_size' argument.
249         (loclist_describe_location): Change output formatting.
250         * dwarf2expr.h (dwarf_stack_op_name): Declare.
251
252 2010-06-02  Sami Wagiaalla  <swagiaal@redhat.com>
253
254         * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
255         anonymous type case.
256
257 2010-06-02  Pierre Muller  <muller@ics.u-strasbg.fr>
258
259         * dwarf2read.c (read_subrange_type): Handle missing base type
260         according to Dwarf-2 specifications.
261
262 2010-06-01  Sergio Durigan Junior  <sergiodj@redhat.com>
263
264         * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
265         BINOP_EXCL.
266         (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
267         UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
268         (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
269         BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
270         UNOP_CHMAX, UNOP_CHMIN.
271         * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
272         UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
273         UNOP_CHMIN>: Remove opcodes.
274
275 2010-06-01  Pierre Muller  <muller@ics.u-strasbg.fr>
276
277         * dwarf2read.c (read_func_scope): Do not complain for
278         external function if bounds are not found.
279
280 2010-06-01  Pedro Alves  <pedro@codesourcery.com>
281
282         * NEWS: Mention gdbserver fast tracepoints support.
283
284 2010-05-31  Pierre Muller  <muller@ics.u-strasbg.fr>
285
286         * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
287         New macros.
288         (windows_set_console_info): New function.
289         (windows_create_inferior): Call windows_set_console_info
290         if NEW_CONSOLE is true.
291         (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
292         (_initialize_loadable): Initialize GetConsoleFontSize and
293         GetCurrentConsoleFont.
294
295 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
296
297         * Makefile.in (RDYNAMIC): New.
298         (SFILES): Add proc-service.list.
299         * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
300         (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
301         * config/arm/linux.mh: Likewise.
302         * config/i386/linux.mh: Likewise.
303         * config/i386/linux64.mh: Likewise.
304         * config/ia64/linux.mh: Likewise.
305         * config/m32r/linux.mh: Likewise.
306         * config/m68k/linux.mh: Likewise.
307         * config/mips/linux.mh: Likewise.
308         * config/pa/linux.mh: Likewise.
309         * config/powerpc/linux.mh: Likewise.
310         * config/powerpc/ppc64-linux.mh: Likewise.
311         * config/s390/s390.mh: Likewise.
312         * config/sparc/linux.mh: Likewise.
313         * config/sparc/linux64.mh: Likewise.
314         * config/xtensa/linux.mh: Likewise.
315         * configure.ac: New RDYNAMIC on native host and GCC.
316         (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
317         * configure: Regenerate.
318         * proc-service.list: New.
319
320 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
321
322         * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
323         CONTENT.
324
325 2010-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
326
327         * linux-nat.c (linux_nat_wait_1): Do not call
328         linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
329         TARGET_WAITKIND_SIGNALLED.
330
331 2010-05-27  Joel Brobecker  <brobecker@adacore.com>
332
333         * ada-lang.c (ada_inferior_data): New struct.
334         (ada_inferior_data): New static global.
335         (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
336         (ada_get_tsd_type): New functions.
337         (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
338         to look the tsd type up.
339         (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
340         event.  Set ada_inferior_data.
341
342 2010-05-27  Pedro Alves  <pedro@codesourcery.com>
343
344         * remote.c (unpack_varlen_hex): Remove forward declaration.
345         (remote_console_output): Make static, and add forward declaration.
346         * remote.h: Drop FIXME comment.
347         (unpack_varlen_hex): Declare.
348         (remote_console_output, remote_cisco_objfile_relocate)
349         (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
350         Delete declarations.
351         * tracepoint.c: Include "remote.h".
352         (unpack_varlen_hex): Delete declaration.
353
354 2010-05-27  Tom Tromey  <tromey@redhat.com>
355
356         * dwarf2loc.c (struct piece_closure) <refc>: New field.
357         (allocate_piece_closure): Initialize refc.
358         (copy_pieced_value_closure): Use refc.
359         (free_pieced_value_closure): Likewise.
360
361 2010-05-27  Tom Tromey  <tromey@redhat.com>
362
363         * arm-tdep.c (push_stack_item): 'contents' now const.
364         (arm_push_dummy_call): Make 'val' const.  Use value_contents, not
365         value_contents_writeable.  Introduce new temporary.
366
367 2010-05-27  Tom Tromey  <tromey@redhat.com>
368
369         * findcmd.c (parse_find_args): Use value_contents, not
370         value_contents_raw.
371
372 2010-05-27  Tom Tromey  <tromey@redhat.com>
373
374         * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
375         const.  Use value_contents, not value_contents_writeable.
376
377 2010-05-27  Joel Brobecker  <brobecker@adacore.com>
378
379         * ada-lang.c (ensure_lval): Replace call to value_contents_raw
380         by call to value_contents.
381
382 2010-05-27  Ozkan Sezer  <sezeroz@gmail.com>
383
384         * MAINTAINERS: Add myself for write after approval privileges.
385
386 2010-05-26  Doug Evans  <dje@google.com>
387
388         Allow python to find its files if moved from original location.
389         * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
390         (GDB_AC_WITH_DIR): Call it.
391         * configure.ac: Define WITH_PYTHON_PATH if we can find the
392         python installation directory.
393         * config.in: Regenerate.
394         * configure: Regenerate.
395         * defs.h (python_libdir): Declare.
396         * main.c (python_libdir): Define.
397         (captured_main): Initialize python_libdir.
398         * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
399         call Py_SetProgramName to make sure python can find its libraries
400         and modules.
401
402         * configure.ac: Try to use python's distutils to fetch compilation
403         parameters.
404         * configure: Regenerate.
405         * python/python-config.py: New file.
406
407 2010-05-26  Ozkan Sezer  <sezeroz@gmail.com>
408
409         * ser-tcp.c (net_open): Check error return from socket() call by its
410         equality to -1 not by it being negative.
411         (net_close): Likewise.
412
413 2010-05-26  Pedro Alves  <pedro@codesourcery.com>
414
415         * NEWS: Mention the `qRelocInsn' feature.
416         * gdbarch.sh (relocate_instruction): New.
417         * amd64-tdep.c (rip_relative_offset): New.
418         (append_insns): New.
419         (amd64_relocate_instruction): New.
420         (amd64_init_abi): Install it.
421         * i386-tdep.c (append_insns): New.
422         (i386_relocate_instruction): New.
423         (i386_gdbarch_init): Install it.
424         * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
425         * gdbarch.h, gdbarch.c: Regenerate.
426
427 2010-05-26  Tom Tromey  <tromey@redhat.com>
428
429         * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
430         (struct dwarf2_loclist_baton) <data>: Likewise.
431         * dwarf2loc.c (find_location_expression): Constify return type.
432         (dwarf2_evaluate_loc_desc): Make 'data' argument const.
433         (dwarf2_loc_desc_needs_frame): Likewise.
434         (loclist_read_variable): Constify.
435         (loclist_describe_location): Likewise.
436         (loclist_tracepoint_var_ref): Likewise.
437
438 2010-05-25  Tom Tromey  <tromey@redhat.com>
439
440         * dwarf2loc.c (dwarf_expr_frame_base): Constify.
441         (dwarf_expr_frame_base_1): Likewise.
442         (read_pieced_value): Update.
443         (needs_frame_frame_base): Constify.
444         (dwarf2_tracepoint_var_loc): Likewise.
445         (dwarf2_tracepoint_var_access): Likewise.
446         (locexpr_describe_location_piece): Likewise.
447         (locexpr_describe_location_1): Likewise.
448         * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
449         Constify.
450         (data): Now const.
451         (struct dwarf_expr_piece) <v.literal.data>: Likewise.
452         (dwarf_expr_eval, read_uleb128, read_sleb128)
453         (dwarf2_read_address): Update.
454         * dwarf2expr.c (dwarf_expr_eval): Constify.
455         (read_uleb128): Likewise.
456         (read_sleb128): Likewise.
457         (dwarf2_read_address): Likewise.
458         (require_composition): Likewise.
459         (execute_stack_op): Likewise.
460         * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
461         "const gdb_byte *".
462         * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
463         Now const.
464         (no_get_frame_base): Constify.
465         (execute_stack_op): Likewise.
466         (execute_cfa_program): Likewise.
467         (read_encoded_value): Likewise.
468
469 2010-05-25  Doug Evans  <dje@google.com>
470
471         * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
472
473         * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
474         * event-loop.c: ... here.
475         * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
476         `error' for clarity.
477         (tui_getc): Pass correct value for `error' parameter to
478         tui_readline_output.
479
480         Add python gdb.GdbError and gdb.string_to_argv.
481         * NEWS: Document them.
482         * python/py-cmd.c (cmdpy_function): Don't print a traceback if
483         the exception is gdb.GdbError.  Print a second traceback if there's
484         an error computing the error message.
485         (gdbpy_string_to_argv): New function.
486         * python/py-utils.c (gdbpy_obj_to_string): New function.
487         (gdbpy_exception_to_string): New function.
488         * python/python-internal.h (gdbpy_string_to_argv): Declare.
489         (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
490         (gdbpy_gdberror_exc): Declare.
491         * python/python.c (gdbpy_gdberror_exc): New global.
492         (_initialize_python): Initialize gdbpy_gdberror_exc and create
493         gdb.GdbError.
494         (GdbMethods): Add string_to_argv.
495
496 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
497
498         * windows-nat.c (display_selector): Call GetLastError to give better
499         failure explanation.
500
501 2010-05-24  Pedro Alves  <pedro@codesourcery.com>
502
503         * config.in: Regenerate.
504
505 2010-05-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
506
507         Code cleanup.
508         * target.c (push_target): Return only void.  Remove the return value
509         comment.
510         * target.h (push_target): Return only void.
511
512 2010-05-23  Pedro Alves  <pedro@codesourcery.com>
513
514         Update gnulib from latest git.
515         (250b80067c1e1d8faa0c42fb572f721975b929c5)
516
517         * gnulib/memcmp.c: Removed.
518         * gnulib/memchr.valgrind: New.
519         * gnulib/stddef.in.h: New.
520         * gnulib/Makefile.am: Updated.
521         * gnulib/memchr.c: Updated.
522         * gnulib/memmem.c: Updated.
523         * gnulib/stdint.in.h: Updated.
524         * gnulib/str-two-way.h: Updated.
525         * gnulib/string.in.h: Updated.
526         * gnulib/wchar.in.h: Updated.
527
528         * gnulib/extra/link-warning.h: Removed.
529         * gnulib/extra/c++defs.h: New.
530         * gnulib/extra/warn-on-use.h: New.
531         * gnulib/extra/arg-nonnull.h: Updated.
532
533         * gnulib/m4/extensions.m4: Updated.
534         * gnulib/m4/gnulib-cache.m4: Updated.
535         * gnulib/m4/gnulib-common.m4: Updated.
536         * gnulib/m4/gnulib-comp.m4: Updated.
537         * gnulib/m4/gnulib-tool.m4: Updated.
538         * gnulib/m4/include_next.m4: Updated.
539         * gnulib/m4/longlong.m4: Updated.
540         * gnulib/m4/memchr.m4: Updated.
541         * gnulib/m4/memmem.m4: Updated.
542         * gnulib/m4/stdint.m4: Updated.
543         * gnulib/m4/string_h.m4: Updated.
544         * gnulib/m4/memcmp.m4: Removed.
545         * gnulib/m4/onceonly_2_57.m4: Removed.
546         * gnulib/m4/00gnulib.m4: New.
547         * gnulib/m4/mmap-anon.m4: New.
548         * gnulib/m4/multiarch.m4: New.
549         * gnulib/m4/onceonly.m4: New.
550         * gnulib/m4/stddef_h.m4: New.
551         * gnulib/m4/warn-on-use.m4: New.
552         * gnulib/m4/wchar.m4: Removed.
553         * gnulib/m4/wchar_h.m4: New.
554         * gnulib/m4/wchar_t.m4: New.
555         * gnulib/m4/wint_t.m4: New.
556
557         * aclocal.m4: Regenerate.
558         * config.in: Likewise.
559         * configure: Likewise.
560         * gnulib/Makefile.in: Likewise.
561
562 2010-05-21  Tom Tromey  <tromey@redhat.com>
563
564         * dwarf2loc.c (extract_bits_primitive): New function.
565         (extract_bits): Likewise.
566         (insert_bits): Likewise.
567         (copy_bitwise): Likewise.
568         (read_pieced_value): Do all operations in bits.
569         (write_pieced_value): Likewise.
570         * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
571         * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
572         Always use xrealloc to resize piece array.
573         (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
574         <DW_OP_piece>: Update.
575         <DW_OP_bit_piece>: New case.
576
577 2010-05-21  Tom Tromey  <tromey@redhat.com>
578
579         * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
580         <DWARF_VALUE_OPTIMIZED_OUT>: New case.
581         * dwarf2expr.h (enum dwarf_value_location)
582         <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
583         * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
584         (add_piece): Handle empty piece.
585         (execute_stack_op) <DW_OP_piece>: Handle
586         DWARF_VALUE_OPTIMIZED_OUT.
587
588 2010-05-21  Tom Tromey  <tromey@redhat.com>
589
590         * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
591         evaluate_subexp, not evaluate_subexp_with_coercion.
592
593 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
594
595         * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
596         attribute.
597
598 2010-05-21  Tom Tromey  <tromey@redhat.com>
599
600         * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
601         offset.
602         (write_pieced_value): Likewise.
603
604 2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
605
606         * dwarf2read.c (process_die): Also allow DW_TAG_const_type
607         and DW_TAG_volatile_type.
608         (new_symbol): Likewise.
609
610 2010-05-20  Pierre Muller  <muller@ics.u-strasbg.fr>
611
612         * p-valprint.c (pascal_val_print): Call get_array_bounds
613         to obtain the number of elements in an array.
614
615 2010-05-19  Doug Evans  <dje@google.com>
616
617         * python.c (gdbpy_print_stack): Ensure output ends with a newline.
618
619         * python.c (source_python_script): Add comment.
620         (source_python_script_for_objfile): Remove unnecessary call to
621         gdbpy_print_stack.
622
623 2010-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
624             Sergio Durigan Junior  <sergiodj@redhat.com>
625
626         Code cleanup.
627         * parse.c (exp_iterate): Use operator_length wrapper function.
628
629 2010-05-18  Michael Snyder  <msnyder@vmware.com>
630
631         * ada-lang.c: White space.
632         * ada-typeprint.c: White space.
633         * ada-valprint.c: White space.
634         * addrmap.c: White space.
635         * auxv.c: White space.
636         * ax-gdb.c: White space.
637
638 2010-05-18  Hui Zhu  <teawater@gmail.com>
639
640         * linux-fork.c (inferior_call_waitpid_cleanup): Add check
641         for oldfp.
642         (inferior_call_waitpid): Move make_cleanup out of check.
643         Check the return of waitpid.
644         (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
645
646 2010-05-17  Michael Snyder  <msnyder@vmware.com>
647
648         * tui/tui.c: White space.
649         * tui/tui-data.c: White space.
650         * tui/tui-disasm.c: White space.
651         * tui/tui-file.c: White space.
652         * tui/tui-interp.c: White space.
653         * tui/tui-main.c: White space.
654         * tui/tui-out.c: White space.
655         * tui/tui-regs.c: White space.
656         * tui/tui-source.c: White space.
657         * tui/tui-stack.c: White space.
658         * tui/tui-win.c: White space.
659         * tui/tui-winsource.c: White space.
660
661         * procfs.c: White space.
662
663         * python/py-auto-load.c: White space.
664         * python/py-block.c: White space.
665         * python/py-breakpoint.c: White space.
666         * python/py-cmd.c: White space.
667         * python/py-function.c: White space.
668         * python/py-lazy-string.c: White space.
669         * python/py-objfile.c: White space.
670         * python/py-param.c: White space.
671         * python/py-prettyprint.c: White space.
672         * python/py-progspace.c: White space.
673         * python/py-symtab.c: White space.
674         * python/python.c: White space.
675         * python/py-type.c: White space.
676         * python/py-utils.c: White space.
677         * python/py-value.c: White space.
678
679         * mi/mi-cmd-break.c: White space.
680         * mi/mi-cmd-env.c: White space.
681         * mi/mi-cmds.c: White space.
682         * mi/mi-cmd-stack.c: White space.
683         * mi/mi-cmd-var.c: White space.
684         * mi/mi-console.c: White space.
685         * mi/mi-getopt.c: White space.
686         * mi/mi-interp.c: White space.
687         * mi/mi-main.c: White space.
688         * mi/mi-out.c: White space.
689         * mi/mi-parse.c: White space.
690
691         * cli/cli-cmds.c: White space.
692         * cli/cli-decode.c: White space.
693         * cli/cli-dump.c: White space.
694         * cli/cli-interp.c: White space.
695         * cli/cli-logging.c: White space.
696         * cli/cli-script.c: White space.
697         * cli/cli-setshow.c: White space.
698
699         * valarith.c: White space.
700         * valops.c: White space.
701         * valprint.c: White space.
702         * value.c: White space.
703         * varobj.c: White space.
704         * xcoffread.c: White space.
705         * xml-support.c: White space.
706         * xml-tdesc.c: White space.
707
708 2010-05-17  Andreas Schwab  <schwab@redhat.com>
709
710         PR gdb/11092
711         * c-lang.c (c_printstr): Compute real length of NUL terminated
712         string at first.
713
714 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
715
716         * parse.c (parse_exp_in_context): When block is not NULL, use
717         its associated language to parse the expression instead of
718         the current_language.
719
720 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
721
722         * jv-lang.c (java_lookup_class): Remove commented out code.
723         (type_from_class): Likewise.
724         (java_op_print_tab): Remove commented-out elements.
725
726 2010-05-17  Joel Brobecker  <brobecker@adacore.com>
727
728         * ada-lang.c (to_fixed_range_type): The the raw index type as
729         argument instead of the raw type name.  Remove orig_type parameter.
730         Update calls throughout.
731         (ada_fixup_array_indexes_type): New function.
732         (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
733         * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
734         * ada-typeprint.c (print_range_type): Renames print_range_type_named.
735         Remove name parameter.
736         (print_array_type): Add call to ada_fixup_array_indexes_type.
737         Update calls to print_range_type.
738         (ada_print_type): Update calls to print_range_type.
739
740 2010-05-17  Pierre Muller  <muller@ics.u-strasbg.fr>
741
742         * dwarf2read.c (read_set_type): Set type length if
743         DW_AT_byte_size attribute is present.
744
745 2010-05-17  Pierre Muller  <muller@ics.u-strasbg.fr>
746
747         * p-valprint.c (pascal_val_print): Handle set type if range limits
748         are undefined but size is known.
749
750 2010-05-17  Pedro Alves  <pedro@codesourcery.com>
751
752         * procfs.c: Reformat.
753
754 2010-05-16  Michael Snyder  <msnyder@vmware.com>
755
756         * target.c: White space.
757         * target-descriptions.c: White space.
758         * target-memory.c: White space.
759         * thread.c: White space.
760         * top.c: White space.
761         * tracepoint.c: White space.
762         * trad-frame.c: White space.
763         * tramp-frame.c: White space.
764         * ui-file.c: White space.
765         * ui-out.c: White space.
766         * user-regs.c: White space.
767         * utils.c: White space.
768
769         * scm-exp.c: White space.
770         * scm-lang.c: White space.
771         * scm-valprint.c: White space.
772         * sentinel-frame.c: White space.
773         * ser-base.c: White space.
774         * ser-go32.c: White space.
775         * serial.c: White space.
776         * ser-mingw.c: White space.
777         * ser-pipe.c: White space.
778         * ser-tcp.c: White space.
779         * ser-unix.c: White space.
780         * solib.c: White space.
781         * solib-darwin.c: White space.
782         * solib-frv.c: White space.
783         * solib-irix.c: White space.
784         * solib-osf.c: White space.
785         * solib-pa64.c: White space.
786         * solib-som.c: White space.
787         * solib-spu.c: White space.
788         * solib-svr4.c: White space.
789         * solib-target.c: White space.
790         * source.c: White space.
791         * stabsread.c: White space.
792         * stack.c: White space.
793         * std-regs.c: White space.
794         * symfile.c: White space.
795         * symmisc.c: White space.
796         * symtab.c: White space.
797
798 2010-05-16  Michael Snyder  <msnyder@vmware.com>
799
800         * source.c (_initialize_source): Add "rev" as an abbreviation
801         for the "reverse-search" command.
802
803 2010-05-16  Michael Snyder  <msnyder@vmware.com>
804
805         * record.c: White space.
806         * regcache.c: White space.
807         * reggroups.c: White space.
808         * remote-fileio.c: White space.
809         * remote-m32r-sdi.c: White space.
810         * remote-mips.c: White space.
811         * remote-sim.c: White space.
812         * remote.c: White space.
813         (process_g_packet): Remove orphan braces.
814
815 2010-05-15  Michael Snyder  <msnyder@vmware.com>
816
817         * parse.c: White space.
818         * p-lang.c: White space.
819         * posix-hdep.c: White space.
820         * printcmd.c: White space.
821         * progspace.c: White space.
822         * prologue-value.c: White space.
823         * psymtab.c: White space.
824         * p-typeprint.c: White space.
825         * p-valprint.c: White space.
826
827         * objc-lang.c: White space.
828         * objfiles.c: White space.
829         * observer.c: White space.
830         * osabi.c: White space.
831         * osdata.c: White space.
832
833         * m2-lang.c: White space.
834         * m2-valprint.c: White space.
835         * macrocmd.c: White space.
836         * macroexp.c: White space.
837         * macroscope.c: White space.
838         * macrotab.c: White space.
839         * main.c: White space.
840         * maint.c: White space.
841         * mdebugread.c: White space.
842         * memattr.c: White space.
843         * minsyms.c: White space.
844         * monitor.c: White space.
845
846 2010-05-14  Michael Snyder  <msnyder@vmware.com>
847
848         * jv-lang.c: White space.
849         * jv-typeprint.c: White space.
850         * jv-valprint.c: White space.
851         * language.c: White space.
852         * libunwind-frame.c: White space.
853         * linespec.c: White space.
854         * linux-nat.c: White space.
855         * linux-record.c: White space.
856         * linux-thread-db.c: White space.
857
858         * infcall.c: White space.
859         * inf-child.c: White space.
860         * infcmd.c: White space.
861         * inferior.c: White space.
862         * inf-loop.c: White space.
863         * inflow.c: White space.
864         * inline-frame.c: White space.
865         * interps.c: White space.
866
867         * gcore.c: White space.
868         * gdb.c: White space.
869         * gdbtypes.c: White space.
870         * gnu-nat.c: White space.
871         * gnu-v2-abi.c: White space.
872         * gnu-v3-abi.c: White space.
873
874         * findcmd.c: White space.
875         * findvar.c: White space.
876         * fork-child.c: White space.
877         * frame-base.c: White space.
878         * frame.c: White space.
879         * frame-unwind.c: White space.
880         * f-valprint.c: White space.
881
882         * elfread.c: White space.
883         * environ.c: White space.
884         * eval.c: White space.
885         * event-loop.c: White space.
886         * event-top.c: White space.
887         * exceptions.c: White space.
888         * exec.c: White space.
889         * expprint.c: White space.
890
891         * dbxread.c: White space.
892         * dcache.c: White space.
893         * disasm.c: White space.
894         * doublest.c: White space.
895         * dsrec.c: White space.
896         * dummy-frame.c: White space.
897         * dwarf2expr.c: White space.
898         * dwarf2-frame.c: White space.
899         * dwarf2loc.c: White space.
900         * dwarf2read.c: White space.
901
902 2010-05-14  Phil Muldoon  <pmuldoon@redhat.com>
903
904         PR python/11482
905
906         * python/py-value.c (valpy_hash): New function.
907         (value_object_type): Register valpy_hash.
908
909 2010-05-14  Hui Zhu  <teawater@gmail.com>
910             Michael Snyder  <msnyder@vmware.com>
911
912         * linux-fork.c (gdbthread.h): New include.
913         (fork_info): Add parent_ptid.
914         (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
915         functions.
916         (delete_checkpoint_command): Call inferior_call_waitpid.
917         (checkpoint_command): Set parent_ptid.
918
919 2010-05-13  Michael Snyder  <msnyder@vmware.com>
920
921         * dictionary.c: Re-indent to GNU coding standard.
922
923         * charset.c: White space.
924         * c-lang.c: White space.
925         * cli-out.c: White space.
926         * coffread.c: White space.
927         * complaints.c: White space.
928         * completer.c: White space.
929         * corefile.c: White space.
930         * corelow.c: White space.
931         * cp-abi.c: White space.
932         * cp-namespace.c: White space.
933         * cp-support.c: White space.
934         * cp-valprint.c: White space.
935         * c-typeprint.c: White space.
936         * c-valprint.c: White space.
937         * blockframe.c: White space.
938         * breakpoint.c: White space.
939         * buildsym.c: White space.
940         * blockframe.c: White space.
941         * bcache.c: White space.
942         * gdbarch.sh: White space, add blank lines.
943         * arch-utils.c: Ditto.
944         * gdbarch.c: Regenerate.
945         * frame.c: White space, add blank lines.
946         * stack.c: White space, add blank lines.
947         (initialize_stack): Remove long-dead code.
948
949 2010-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
950
951         Code cleanup.
952         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
953         (locexpr_read_variable, loclist_read_variable): Update the callers.
954
955 2010-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
956
957         Code cleanup.
958         * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
959         Remove check of NULL returned by tag_type_to_type.
960         (die_containing_type): Remove variable type.  Remove type_die variable
961         initialization.  Remove check of NULL returned by tag_type_to_type.
962
963 2010-05-11  Pierre Muller  <muller@ics.u-strasbg.fr>
964
965         PR exp/11530.
966         * gdbtypes.c (lookup_struct_elt_type): Also lookup
967         names of unnamed structures or unions.
968
969 2010-05-11  Pierre Muller  <muller@ics.u-strasbg.fr>
970
971         * procfs.c (proc_watchpoint_address): New function.
972         (procfs_stopped_by_watchpoint): Remove useless check after 
973         find_procinfo_or_die call.
974         (procfs_stopped_data_address): New function.
975         (procfs_use_watchpoints): Register new watchpoint related function.
976
977 2010-05-11  Tom Tromey  <tromey@redhat.com>
978
979         * eval.c (evaluate_subexp_standard): Revert inadvertent change.
980
981 2010-05-10  Michael Snyder  <msnyder@vmware.com>
982
983         * utils.c: White space cleanup.
984
985 2010-05-10  Tom Tromey  <tromey@redhat.com>
986
987         * eval.c (ptrmath_type_p): Add 'lang' argument.
988         (evaluate_subexp_standard): Update.
989         (evaluate_subexp_with_coercion): Update.
990         * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
991
992 2010-05-10  Michael Snyder  <msnyder@vmware.com>
993
994         * utils.c (do_fclose_cleanup) Restore local variable.
995
996 2010-05-09  Doug Evans  <dje@google.com>
997
998         * record.c (init_record_core_ops): Rename record_core to record-core.
999
1000 2010-05-08  Joel Brobecker  <brobecker@adacore.com>
1001
1002         Implement task switching on pa-hpux.
1003         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
1004         (inf_ttrace_target): Set t->to_get_ada_task_ptid.
1005
1006 2010-05-08  Pierre Muller  <muller@ics.u-strasbg.fr>
1007
1008         * valops.c (find_overload_match): Add missing i18n markup.
1009
1010 2010-05-08  Pierre Muller  <muller@ics.u-strasbg.fr>
1011
1012         * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
1013
1014 2010-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
1015
1016         * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
1017         list for the obconcat call.
1018         * mdebugread.c (parse_symbol): Likewise.
1019         * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
1020         Likewise.
1021         * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
1022         New variable ap.  Remove variables len and val.
1023         * symfile.h (obconcat): Likewise for the prototype.
1024
1025 2010-05-07  Michael Snyder  <msnyder@vmware.com>
1026
1027         * python/python.c (execute_gdb_command): Remove unused variables.
1028         * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
1029         * python/py-breakpoint.c (gdbpy_breakpoint_created): 
1030         Remove unused variable.
1031         * python/py-cmd.c (cmdpy_function): Remove unused variable.
1032         (cmdpy_completer): Remove unused variable.
1033         * python/py-frame.c (frapy_find_sal): Remove unused variable.
1034         * python/py-function.c (fnpy_call): Remove unused variable.
1035         * python/py-objfile.c (objfile_to_objfile_object):
1036         Remove unused variable.
1037         * python/py-param.c (parmpy_init): Remove unused variable.
1038         * python/py-prettyprint.c (apply_varobj_pretty_printer): 
1039         Remove unused variable.
1040         (gdbpy_default_visualizer): Remove unused variable.
1041         * python/py-progspace.c (pspace_to_pspace_object):
1042         Remove unused variable.
1043         * python/py-symtab.c (symtab_and_line_to_sal_object): 
1044         Remove unused variable.
1045         * python/py-type.c (typy_template_argument): 
1046         Remove unused variable.
1047         * python/py-value.c (valpy_string): Remove unused variable.
1048         (convert_value_from_python): Remove unused variables.
1049
1050 2010-05-07  Michael Snyder  <msnyder@vmware.com>
1051
1052         * valops.c (value_cast_pointers): Restore unused variable 'type1',
1053         and use it to compute variable 't1'.
1054
1055 2010-05-07  Joel Brobecker  <brobecker@adacore.com>
1056
1057         * ada-lang.c (assign_aggregate): Remove unused variable.
1058
1059 2010-05-07  Sami Wagiaalla  <swagiaal@redhat.com>
1060
1061         PR C++/7943:
1062         * valops.c (find_overload_match): Handle fsym == NULL case.
1063         Add int no_adl argument.
1064         (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
1065         when appropriate.
1066         Add int no_adl argument.
1067         (find_oload_champ_namespace):   Add int no_adl argument.
1068         * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
1069         expression.
1070         * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
1071         * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
1072         Evaluate arguments and use them to perform ADL lookup.
1073         Pass no_adl argument to find_overload_match.
1074         Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
1075         * cp-support.h: Added prototype for
1076         make_symbol_overload_list_namespace.
1077         * cp-support.c (make_symbol_overload_list_namespace): New function.
1078         (make_symbol_overload_list_adl_namespace): New function.
1079         (make_symbol_overload_list_adl): New function.
1080         (make_symbol_overload_list_using): Moved code to add function to
1081         overload set to make_symbol_overload_list_namespace.
1082         * c-exp.y: create UNKNOWN_CPP_NAME token.
1083         Add parse rule for ADL functions.
1084         (classify_name): Recognize an UNKNOWN_CPP_NAME.
1085
1086 2010-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1087
1088         * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
1089         sentinel.
1090
1091 2010-05-07  Joel Brobecker  <brobecker@adacore.com>
1092
1093         Implement task switching on solaris targets.
1094         * sol-thread.c (thread_db_find_thread_from_tid)
1095         (sol_get_ada_task_ptid): New functions.
1096         (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
1097
1098 2010-05-07  Pedro Alves  <pedro@codesourcery.com>
1099
1100         * remote.c (remote_query_supported_append): Use reconcat.
1101         (remote_query_supported): Install a cleanup.  Use reconcat.
1102
1103 2010-05-07  Pedro Alves  <pedro@codesourcery.com>
1104
1105         * gdbarch.sh (qsupported): Delete.
1106         * gdbarch.h, gdbarch.c: Regenerate.
1107         * remote.c (remote_query_supported): Remove use of
1108         gdbarch_qsupported.
1109
1110 2010-05-06  Sergio Durigan Junior  <sergiodj@redhat.com>
1111
1112         * xml-syscall.c (syscall_start_syscalls_info): Remove unused
1113         function.
1114
1115 2010-05-06  Michael Snyder  <msnyder@vmware.com>
1116
1117         * xml-support.c (xinclude_start_include): Delete unused variable.
1118         (xml_process_xincludes): Delete unused variable.
1119         * xml-syscall.c (syscall_parse_xml): Delete unused variable.
1120         * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
1121         (tdesc_find_arch_register): Delete unused variable.
1122         (tdesc_use_registers): Delete unused variable.
1123         * xml-tdesc.c (tdesc_start_target): Delete unused variable.
1124         * inferior.c (print_inferior): Delete unused variable.
1125         * record.c (record_open_1): Delete unused variable.
1126         (record_restore): Delete unused variable.
1127         (cmd_record_save): Delete unused variable.
1128         * gcore.c (derive_heap_segment): Delete unused variable.
1129         (objfile_find_memory_regions): Use unused variable.
1130         * jit.c (jit_inferior_init): Delete unused variable.
1131         * progspace.c (clone_program_space): Delete unused variable.
1132         (pspace_empty_p): Delete unused variable.
1133         
1134         * frame-unwind.c (frame_unwind_find_by_frame): 
1135         Delete unused variable.
1136         * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
1137         * cp-support.c (mangled_name_to_comp): Delete unused variable.
1138         (method_name_from_physname): Delete unused variable.
1139         (cp_func_name): Delete unused variable.
1140         (cp_validate_operator): Delete unused variable.
1141         * cp-namespace.c (cp_scan_for_anonymous_namespaces): 
1142         Delete unused variable.
1143         * trad-frame.c (trad_frame_get_prev_register): 
1144         Delete unused variable.
1145         * tramp-frame.c (tramp_frame_cache): Delete unused variable.
1146
1147         * serial.c (serial_for_fd): Delete unused variable.
1148         * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
1149         * top.c (execute_command): Delete unused variable.
1150         (init_main): Delete unused variable.
1151         * utils.c (do_fclose_cleanup): Delete unused variable.
1152         (do_all_inferior_continuations): Delete unused variable.
1153         (initialize_utils): Delete unused variable.
1154         (internal_problem_mode): Delete unused global.
1155         * frame.c (get_prev_frame): Delete unused global.
1156         (get_frame_locals_address): Delete unused global.
1157         (get_frame_args_address): Delete unused global.
1158
1159         * p-typeprint.c (pascal_type_print_base): Delete unused variable.
1160         (pascal_type_print_varspec_prefix): Delete unused variable.
1161         * f-typeprint.c (f_type_print_base): Delete unused variable.
1162         (f_type_print_varspec_suffix): Delete unused variable.
1163         * m2-typeprint.c (m2_print_type): Delete unused variable.
1164         (m2_long_set): Delete unused variable.
1165         * ada-valprint.c (ada_val_print_1): Delete unused variable.
1166         * d-valprint.c (dynamic_array_type): Delete unused variable.
1167         * f-valprint.c (f77_get_dynamic_length_of_aggregate): 
1168         Delete unused variable.
1169         (f77_create_arrayprint_offset_tbl): Delete unused variable.
1170         * m2-valprint.c (m2_val_print): Delete unused variable.
1171
1172         * ui-out.c (ui_out_field_int): Delete unused variable.
1173         (ui_out_field_fmt_int): Delete unused variable.
1174         * varobj.c (varobj_list_children): Delete unused variable.
1175         (varobj_set_value): Delete unused variable.
1176         (install_new_value_visualizer): Delete unused variable.
1177         (varobj_set_visualizer): Delete unused variable.
1178         (varobj_update): Delete unused variable.
1179         (varobj_editable_p): Delete unused variable.
1180         (c_value_of_root): Delete unused variable.
1181         (cplus_describe_child): Delete unused variable.
1182
1183         * ada-lang.c (add_defn_to_vec): Delete unused variable.
1184         (decode_constrained_packed_array_type): Delete unused variable.
1185         (add_defn_to_vec): Delete unused variable.
1186         (symbol_completion_match): Delete unused variable.
1187         (value_tag_from_contents_and_address): Delete unused variable.
1188         (ada_evaluate_subexp): Delete unused variable.
1189         * c-lang.c (classify_type): Delete unused variable.
1190         * f-lang.c (f_printstr): Delete unused variable.
1191         * objc-lang.c (objc_printstr): Delete unused variable.
1192         * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
1193         * jv-lang.c (type_from_class): ifdef unused variable.
1194         (java_class_name_from_physname): Delete unused variable.
1195         * m2-lang.c (m2_printstr): Delete unused variable.
1196
1197         * objfiles.c (objfile_relocate): Delete unused variable.
1198         * maint.c (_initialize_maint_cmds): Delete unused variable.
1199         * demangle.c (_initialize_demangler): Delete unused variable.
1200         * corefile.c (reopen_exec_file): Delete unused variable.
1201         * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
1202         * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
1203
1204         * osabi.c (_initialize_gdb_osabi): Delete unused variable.
1205         * memattr.c (mem_delete): Delete unused variable.
1206         (invalidate_target_mem_regions): Delete unused variable.
1207         * mem-break.c (default_memory_insert_breakpoint):
1208         Delete unused variable.
1209         * target.c (target_get_osdata): Delete unused variable.
1210         * parse.c (length_of_subexp): Delete unused variable.
1211         (prefixify_subexp): Delete unused variable.
1212         (exp_iterate): Delete unused variable.
1213         * reverse.c (delete_bookmark_command): Delete unused variable.
1214
1215         * macrocmd.c (_initialize_macrocmd): Delete unused variable.
1216         * macroexp.c (gather_arguments): Delete unused variable.
1217         (substitute_args): Delete unused variable.
1218         * completer.c (gdb_completer_loc_break_characters): Unused, delete.
1219         * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
1220         (_initialize_gdbarch): Delete unused variable.
1221         * gdbarch.c, gdbarch.h: Regenerate.
1222         * arch-utils.c (initialize_current_architecture): 
1223         Delete unused variable.
1224         (_initialize_gdbarch_utils): Delete unused variable.
1225         * gdbtypes.c (make_cv_type): Delete unused variable.
1226         (make_type_with_address_space): Delete unused variable.
1227
1228         * linespec.c (decode_compound): Delete unused variable.
1229         * dictionary.c (iterator_next_hashed): Delete unused variable.
1230         * infcall.c (call_function_by_hand): Delete unused variable.
1231         * infcmd.c (step_1): Delete unused variable.
1232         (registers_info): Delete unused variable.
1233         (attach_command): Delete unused variable.
1234         * infrun.c (follow_exec): Delete unused variable.
1235         (handle_step_into_function_backwards): Delete unused variable.
1236         (_initialize_infrun): Delete unused variable.
1237         * stack.c (parse_frame_specification_1): Delete unused variable.
1238         (frame_info): Delete unused variable.
1239         (backtrace_command_1): Delete unused variable.
1240         (catch_info): Delete unused variable.
1241
1242         * eval.c (evaluate_subexp_standard): Delete unused variable.
1243         * valops.c (value_cast_pointers): Delete unused variable.
1244         (value_dynamic_cast): Delete unused variable.
1245         (value_array): Delete unused variable.
1246         (find_overload_match): Delete unused variable.
1247         * valarith.c (value_subscript): Delete unused variable.
1248         (value_binop): Delete unused variable.
1249         * valprint.c (_initialize_valprint): Delete unused variable.
1250         * printcmd.c (print_command_1): Delete unused variable.
1251         (address_info): Delete unused variable.
1252         (printf_command): Delete unused variable.
1253
1254         * auxv.c (target_auxv_search): Delete unused variable.
1255         * blockframe.c (get_frame_block): Delete unused variable.
1256         * regcache.c (regcache_cpy): Delete unused variable.
1257         (regcache_cpy_no_passthrough): Delete unused variable.
1258         * charset.c (wchar_iterate): Delete unused variable.
1259         (find_charset_names): Delete unused variable.
1260         (_initialize_charset): Delete unused variable.
1261         * disasm.c (do_mixed_source_and_assembly): 
1262         Delete unused variable.
1263         * source.c (set_default_source_symtab_and_line): 
1264         Delete unused variable.
1265         (set_substitute_path_command): Delete unused variable.
1266         * value.c (preserve_values): Delete unused variable.
1267         (value_from_double): Delete unused variable.
1268
1269 2010-05-05  Michael Snyder  <msnyder@vmware.com>
1270
1271         * psymtab.c (lookup_partial_symbol): Delete unused variable.
1272         (find_last_source_symtab_from_partial): Delete unused variable.
1273         * symfile.c (place_section): Delete unused variable.
1274         (default_symfile_offsets): Delete unused variable.
1275         (get_debug_link_info): Delete unused variable.
1276         (find_separate_debug_file_by_debuglink): Delete unused variable.
1277         (add_symbol_file_command): Delete unused variable.
1278         (symfile_find_segment_sections): Delete unused variable.
1279         * symmisc.c (free_symtab): Delete unused variable.
1280         (dump_symtab_1): Delete unused variable.
1281         * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
1282         (find_pc_sect_symtab): Delete unused variable.
1283         (skip_prologue_using_lineinfo): Delete unused variable.
1284         (sources_info): Delete unused variable.
1285         (completion_list_add_name): Delete unused variable.
1286         (expand_line_sal): Delete unused variable.
1287
1288         * breakpoint.c (validate_commands_for_breakpoint): 
1289         Delete unused variables.
1290         (insert_catchpoint): Delete unused variable.
1291         (update_watchpoint): Delete unused variable.
1292         (insert_bp_location): Delete unused variable.
1293         (insert_breakpoint_locations): Delete unused variable.
1294         (remove_breakpoint_1): Delete unused variable.
1295         (software_breakpoint_inserted_here_p): Delete unused variable.
1296         (watchpoints_triggered): Delete unused variable.
1297         (bpstat_check_watchpoint): Delete unused variable.
1298         (bpstat_stop_status): Delete unused variable.
1299         (print_one_breakpoint_location): Delete unused variable.
1300         (allocate_bp_location): Delete unused variable.
1301         (create_breakpoint): Delete unused variable.
1302         (watch_command_1): Delete unused variable.
1303         (catch_exception_command_1): Delete unused variable.
1304         (catch_ada_exception_command): Delete unused variable.
1305         (delete_breakpoint): Delete unused variable.
1306         (breakpoint_re_set_one): Delete unused variable.
1307         (do_enable_breakpoint): Delete unused variable.
1308
1309 2010-05-06  Pedro Alves  <pedro@codesourcery.com>
1310
1311         * amd64-tdep.c: Include disasm.h.
1312         (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
1313         (amd64_insn_length): Moved to disasm.c and renamed.
1314         (fixup_riprel): Adjust.
1315         * disasm.c (do_ui_file_delete): New.
1316         (gdb_insn_length): New.
1317         (gdb_buffered_insn_length_fprintf)
1318         (gdb_buffered_insn_length_init_dis)
1319         (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
1320         renamed.
1321         * disasm.h (gdb_insn_length): Declare.
1322         (gdb_buffered_insn_length): Declare.
1323
1324 2010-05-06  Pedro Alves  <pedro@codesourcery.com>
1325
1326         * remote.c (clear_threads_parsing_context): New.
1327         (remote_threads_info): Delete unused null_cleanup.  Install a
1328         cleanup to clear the threads_parsing_context in case parsing
1329         throws.
1330
1331 2010-05-05  Michael Snyder  <msnyder@vmware.com>
1332
1333         * c-exp.y (parse_string_or_char): Delete unused variable.
1334         (c_lex): Delete unused variable.
1335         * cp-name-parser.y (cpname_lex): Delete unused variable.
1336         * ada-exp.y (find_primitive_type): Delete unused variable.
1337         (write_var_or_type): Delete unused variable.
1338         * jv-exp.y (java_parse): Delete unused variable.
1339         (push_expression_name): Delete unused variable.
1340         * p-exp.y (pascal_lex): Delete unused variable.
1341
1342 2010-05-05  Pedro Alves  <pedro@codesourcery.com>
1343
1344         * remote.c (remote_threads_info): Really revert previous previous
1345         change.
1346
1347 2010-05-05  Michael Snyder  <msnyder@vmware.com>
1348
1349         * elfread.c (elf_symtab_read): Delete unused variable.
1350         (find_separate_debug_file_by_buildid): Delete unused variables.
1351         (elf_symfile_read): Delete unused variable.
1352
1353         * coffread.c (coff_symfile_read): Delete unused variables.
1354
1355         * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
1356         (read_pe_exported_syms): Delete unused variable.
1357
1358         * stabsread.c (define_symbol): Delete unused variable.
1359
1360         * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
1361         (process_psymtab_comp_unit): Delete unused variable.
1362         (dwarf2_build_psymtabs_hard): Delete unused variable.
1363         (load_partial_comp_unit): Delete unused variable.
1364         (create_all_comp_units): Delete unused variable.
1365         (scan_partial_symbols): Delete unused variable.
1366         (add_partial_symbol): Delete unused variable.
1367         (add_partial_namespace): Delete unused variable.
1368         (add_partial_enumeration): Delete unused variable.
1369         (load_full_comp_unit): Delete unused variable.
1370         (process_full_comp_unit): Delete unused variable.
1371         (read_file_scope): Delete unused variable.
1372         (read_type_unit_scope): Delete unused variable.
1373         (process_structure_scope): Delete unused variable.
1374         (process_enumeration_scope): Delete unused variable.
1375         (read_tag_ptr_to_member_type): Delete unused variable.
1376         (read_typedef): Delete unused variable.
1377         (read_partial_die): Delete unused variable.
1378         (decode_locdesc): Delete unused variable.
1379         (zeroed_partial_die): Delete unused global variable.
1380
1381         * tui/tui-interp.c (_initialize_tui_interp): 
1382         Delete unused variable.
1383         * tui/tui-regs.c tui_display_registers_from): 
1384         Delete unused variable.
1385         (tui_check_register_values): Delete unused variable.
1386         (tui_register_format): Delete unused variable.
1387         * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
1388         * tui/tui-windata.c (tui_display_data_from_line): 
1389         Delete unused variables.
1390         (tui_vertical_data_scroll): Delete unused variables.
1391
1392 2010-05-05  Michael Snyder  <msnyder@vmware.com>
1393
1394         * remote.c (remote_threads_info): Revert questionable part of
1395         the previous change.
1396
1397 2010-05-05  Michael Snyder  <msnyder@vmware.com>
1398
1399         * mi/mi-out.c (mi_table_begin): Delete unused variable.
1400         * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
1401         (mi_cmd_var_list_children): Delete unused variable.
1402         (varobj_update_one): Delete unused variable.
1403         * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
1404         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): 
1405         Delete unused variable.
1406         (mi_cmd_stack_list_variables): Delete unused variable.
1407         (list_args_or_locals): Delete unused variable.
1408         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): 
1409         Delete unused variables.
1410         (mi_cmd_file_list_exec_source_files): Delete unused variable.
1411         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): 
1412         Delete unused variable.
1413         * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
1414         (mi_cmd_interpreter_exec): Delete unused variable.
1415         (mi_on_normal_stop): Delete unused variable.
1416         * mi/mi-main.c (run_one_inferior): Delete unused variable.
1417         (print_one_inferior): Delete unused variables.
1418         (mi_execute_command): Delete unused variable.
1419         (mi_cmd_execute): Delete unused variable.
1420         (timestamp): Delete unused variable.
1421
1422         * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
1423         (restore_binary_file): Delete unused variable.
1424         * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
1425         * cli/cli-script.c (define_command): Delete unused variables.
1426         (recurse_read_control_structure): Delete unused variable.
1427         (script_from_file): Delete unused variable.
1428         * cli/cli-cmds.c (complete_command): Delete unused variable.
1429         (disassemble_command): Delete unused variable.
1430
1431         * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
1432         * tracepoint.c (delete_trace_variable_command): 
1433         Delete unused variables.
1434         (encode_actions_1): Delete unused variables.
1435         (start_tracing): Delete unused variable.
1436         (trace_status_mi): Delete unused variable.
1437         (tfind_1): Delete unused variable.
1438         (trace_find_pc_command): Delete unused variable.
1439         (trace_find_line_command): Delete unused variables.
1440         (trace_find_range_command): Delete unused variables.
1441         (trace_find_outside_command): Delete unused variables.
1442         (parse_tracepoint_definition): Delete unused variables.
1443         (tfile_fetch_registers): Delete unused variable.
1444
1445         * dcache.c (dcache_init): Delete unused variable.
1446         (dcache_info): Delete unused variable.
1447
1448         * remote.c (remote_threads_info): Delete unused variable.
1449         (process_stop_reply) :Delete unused variable.
1450         (remote_get_trace_status): Delete unused variables.
1451
1452         * linux-thread-db.c (add_thread_db_info): Delete unused variable.
1453         (thread_from_lwp): Delete unused variable.
1454         (enable_thread_event_reporting): Delete unused variable.
1455         (check_for_thread_db): Delete unused variables.
1456         (thread_db_find_new_threads_2): Delete unused variable.
1457         
1458         * linux-fork.c (info_checkpoints_command): Delete unused variables.
1459         (checkpoint_command): Delete unused variable.
1460         (linux_fork_context): Delete unused variables.
1461
1462         * linux-nat.c (linux_parent_pid): Delete unused global variable.
1463         (linux_tracefork_child): Delete unused variable.
1464         (linux_child_follow_fork): Delete unused variable.
1465         (linux_nat_detach): Delete unused variable.
1466         (linux_handle_extended_wait): Delete unused variable.
1467         (linux_nat_has_pending_sigint): Delete unused variable.
1468         (linux_nat_find_memory_regions): Delete unused variable.
1469         (linux_nat_make_corefile_notes): Delete unused variables.
1470         (linux_nat_info_proc_cmd): Delete unused variable.
1471         (linux_proc_pending_signals): Delete unused variable.
1472         (linux_nat_stop_lwp): Delete unused variables.
1473         (_initialize_linux_nat): Delete unused variable.
1474
1475         * ser-pipe.c (pipe_ops): Delete unused global variable.
1476
1477         * linux-record.c (record_linux_system_call): 
1478         Delete unused variables.
1479
1480         * corelow.c (core_xfer_partial): Delete unused variables.
1481
1482         * solib-svr4.c (find_program_interpreter): Delete unused variable.
1483         (svr4_solib_create_inferior_hook): Add ifdef around 
1484         conditionally-used variable declarations.
1485
1486         * solib.c (solib_find): Delete unused variable.
1487         (free_so_symbols): Delete unused variable.
1488         (info_sharedlibrary_command): Delete unused variable.
1489         (reload_shared_libraries_1): Delete unused variable.
1490         (_initialize_solib): Delete unused variable.
1491
1492         * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
1493         (i386_collect_xstateregset): Delete unused variable.
1494         * i387-tdep.c (i387_print_float_info): Delete unused variable.
1495
1496         * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
1497         Delete unused variable 'type'.
1498
1499 2010-05-05  Joel Brobecker  <brobecker@adacore.com>
1500
1501         * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros.  *
1502         ada-lang.c: Remove comment mentioning these macros.
1503         * m2-exp.y: Delete commented out code.
1504
1505 2010-05-05  Joel Brobecker  <brobecker@adacore.com>
1506
1507         * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
1508         for array types.
1509         * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
1510
1511 2010-05-04  Pierre Muller  <muller@ics.u-strasbg.fr>
1512
1513         ARI fix: Remove ATTRIBUTE_UNUSED throughout.
1514         * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove 
1515         ATTRIBUTE_UNUSED.
1516         (cleanup_kernel_helper_return): Likewise.
1517         * arm-tdep.c (copy_unmodified): Likewise.
1518         (copy_preload): Likewise.
1519         (copy_copro_load_store): Likewise.
1520         (cleanup_branch): Likewise.
1521         (copy_b_bl_blx): Likewise.
1522         (copy_bx_blx_reg): Likewise.
1523         (copy_alu_imm): Likewise.
1524         (copy_alu_reg): Likewise.
1525         (copy_alu_shifted_reg): Likewise.
1526         (cleanup_load): Likewise.
1527         (cleanup_store): Likewise.
1528         (cleanup_block_load_pc): Likewise.
1529         (cleanup_svc): Likewise.
1530         (copy_undef): Likewise.
1531         (copy_unpred): Likewise.
1532         * remote.c (register_remote_support_xml): Likewise.
1533
1534 2010-05-05  Hui Zhu  <teawater@gmail.com>
1535
1536         * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
1537
1538 2010-05-04  Mark Kettenis  <kettenis@gnu.org>
1539
1540         * remote.c (register_remote_support_xml)
1541         (remote_query_supported_append, remote_query_supported): Add cast
1542         to NULL used as sentinel.
1543         * tracepoint.c (tvariables_info_1): Likewise.
1544         * utils.c (add_internal_problem_command): Likewise.
1545
1546 2010-05-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1547
1548         * dwarf2loc.c (read_pieced_value, write_pieced_value,
1549         dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
1550         registers gracefully.
1551
1552 2010-05-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1553
1554         * exec.c (print_section_info): Display entry point without arch 
1555         specific parts.
1556
1557 2010-05-04  Pierre Muller  <muller@ics.u-strasbg.fr>
1558
1559         PR exp/11349.
1560         * printcmd.c (x_command): Only dereference once implicitly for
1561         TYPE_CODE_REF.
1562
1563 2010-05-03  Doug Evans  <dje@google.com>
1564
1565         * event-loop.c (gdb_timer): Delete unused global.
1566         (create_timer): Update.
1567
1568 2010-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1569
1570         * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
1571         CURRENT->DECLARATION case.
1572         * cp-support.h (struct using_direct): Provide extended comment.
1573
1574 2010-05-03  Mark Kettenis  <kettenis@gnu.org>
1575
1576         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
1577         HPPABSD_SIZEOF_GREGS.
1578         (HPPAOBSD_SIZEOF_FPREGS): New define.
1579         (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
1580         (hppaobsd_supply_fpregset): New function.
1581         (hppaobsd_gregset): Renamed from hppabsd_gregset.
1582         (hppaobsd_fpregset): New variable.
1583         (hppaobsd_regset_from_core_section): Handle floating-point registers.
1584         (_initialize_hppabsd_tdep): Remove spurious blank line.
1585
1586 2010-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
1587
1588         PR pascal/11349.
1589         * p-valprint.c (pascal_value_print): Always dereference a value with
1590         type code TYPE_CODE_REF.
1591         
1592 2010-05-03  Pedro Alves  <pedro@codesourcery.com>
1593
1594         * remote.c (remote_notice_signals): New.
1595         (remote_start_remote): In non-stop mode, update the remote end on
1596         which signals it can silently pass.
1597         (init_remote_ops): Install remote_notice_signals.
1598
1599 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1600
1601         * cli/cli-cmds.h (error_no_arg): Remove.  Move the comment ...
1602         * command.h (error_no_arg): ... here.  Remove NORETURN, change
1603         ATTR_NORETURN to ATTRIBUTE_NORETURN.
1604         * defs.h (NORETURN, ATTR_NORETURN): Remove.
1605         (perror_with_name, verror, error, error_stream, vfatal, fatal)
1606         (internal_verror, internal_error, nomem): Remove NORETURN, change
1607         ATTR_NORETURN to ATTRIBUTE_NORETURN.
1608         * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
1609         (throw_vfatal, throw_error): Remove NORETURN.
1610         (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
1611         * exceptions.h (throw_exception, throw_verror, throw_vfatal)
1612         (throw_error, deprecated_throw_reason): Remove NORETURN, change
1613         ATTR_NORETURN to ATTRIBUTE_NORETURN.
1614         * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
1615         to ATTRIBUTE_NORETURN for prototype, for the definition only remove
1616         NORETURN.
1617         * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
1618         * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
1619         ATTRIBUTE_NORETURN.
1620         * target.c (tcomplain): Likewise.
1621         * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
1622         ATTRIBUTE_NORETURN.
1623         * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
1624         (internal_error, perror_with_name, nomem): Remove NORETURN.
1625         * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
1626         ATTRIBUTE_NORETURN.
1627
1628 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1629
1630         * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1631         * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
1632         * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
1633         (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1634         * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
1635         (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1636         * complaints.h (complaint, internal_complaint): Likewise.
1637         * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
1638         (ATTR_FORMAT): Remove.
1639         (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
1640         (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
1641         (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
1642         (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
1643         (xsnprintf, verror, error, vfatal, fatal, internal_verror)
1644         (internal_error, internal_vwarning, internal_warning, warning)
1645         (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1646         * disasm.c (fprintf_disasm): Likewise.
1647         * exceptions.c (throw_it): Likewise.
1648         * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
1649         (throw_error): Likewise.
1650         * language.h (type_error, range_error): Likewise.
1651         * linespec.c (cplusplus_error): Likewise.
1652         * mi/mi-interp.c (mi_interp_query_hook): Likewise.
1653         * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
1654         * monitor.c (monitor_debug): Likewise.
1655         * parser-defs.h (parser_fprintf): Likewise.
1656         * serial.h (serial_printf): Likewise.
1657         * tui/tui-hooks.c (tui_query_hook): Likewise.
1658         * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
1659         (uo_message): Likewise.
1660         * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
1661         * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
1662         Likewise.
1663         * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
1664
1665 2010-05-02  Pedro Alves  <pedro@codesourcery.com>
1666
1667         * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
1668         (cli_table_header, cli_begin, cli_end, cli_field_int)
1669         (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
1670         (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
1671         Delete forward declarations.
1672         (cli_ui_out_impl): Move below the callbacks.
1673         (_initialize_cli_out): Delete.
1674
1675 2010-05-02  Pedro Alves  <pedro@codesourcery.com>
1676
1677         * README: Use consistent `GDB' and `GDBserver' spellings.
1678
1679 2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1680
1681         * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
1682
1683 2010-05-01  Pedro Alves  <pedro@codesourcery.com>
1684
1685         * infrun.c (prepare_for_detach): In non-stop, context switch to
1686         the thread that got the event before handling the event.
1687
1688 2010-04-30  Tom Tromey  <tromey@redhat.com>
1689
1690         * symtab.c (symbol_set_names): Fix typo.
1691
1692 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
1693
1694         * python/py-param.c (parm_constants): Avoid ARI warning
1695         by adding ARI comment.
1696         (parmpy_init): Likewise.
1697
1698 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
1699
1700         * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
1701         and created type for re-use.
1702
1703 2010-04-30  Pierre Muller  <muller@ics.u-strasbg.fr>
1704
1705         * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
1706
1707 2010-04-29  Doug Evans  <dje@google.com>
1708
1709         * ser-base.h (reschedule): Delete prototype.
1710         * ser-base.c (reschedule): Make static.
1711
1712 2010-04-29  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1713
1714         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
1715         (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
1716         (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for 
1717         EABI.
1718         (arm_linux_init_abi): Set up JB_PC field dependent on FP model in 
1719         use.
1720
1721 2010-04-29  Pedro Alves  <pedro@codesourcery.com>
1722
1723         PR gdb/11557
1724
1725         * regcache.c (registers_changed): Rename to ...
1726         (registers_changed_ptid): ... this, and only delete register cache
1727         entries matching the ptid filter argument.
1728         (registers_changed): Reimplement on top of registers_changed_ptid.
1729         * regcache.h (registers_changed_ptid): Declare.
1730         * target.c (target_resume): Flush register caches.
1731
1732 2010-04-29  Phil Muldoon  <pmuldoon@redhat.com>
1733             Tom Tromey  <tromey@redhat.com>
1734             Thiago Jung Bauermann  <bauerman@br.ibm.com>
1735
1736         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
1737         (SUBDIR_PYTHON_SRCS): Likewise.
1738         (py-parameter.o): New rule.
1739         * python/py-parameter.c: New file.
1740         * python/python-internal.h (gdbpy_initialize_parameter)
1741         (gdbpy_parameter, gdbpy_parameter_value)
1742         (gdbpy_parse_command_name): Declare.
1743         * python/py-cmd.c (parse_command_name): Rename to
1744         gdbpy_parse_command_name.
1745         (gdbpy_parse_command_name): Accept a starting list parameter and
1746         use over cmdlist.
1747         (cmdpy_init): Use gdbpy_parse_command_name.
1748         * python/python.c (parameter_to_python): Rename to
1749         gdbpy_parameter_to_python.  Accept enum var_types and value.
1750         (gdbpy_parameter): Use gdbpy_parameter_value.
1751         (_initialize_python): Call gdbpy_initialize_parameters.
1752
1753 2010-04-29  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1754
1755         * MAINTAINERS: Add myself for write after approval privileges.
1756
1757 2010-04-29  Mihail Zenkov  <mihail.zenkov@gmail.com>
1758
1759         D language support.
1760         * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
1761         (COMMON_OBS): Add d-lang.o d-valprint.o.
1762         (HFILES_NO_SRCDIR): Add d-lang.h.
1763         * NEWS: Mention D language support.
1764         * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
1765         * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
1766         * d-lang.c: New file.
1767         * d-lang.h: New file.
1768         * d-valprint.c: New file.
1769         * defs.h (enum language): Add language_d.
1770         * dwarf2read.c (set_cu_language): Add DW_LANG_D.
1771         * language.c (binop_result_type, integral_type, character_type)
1772         (string_type, boolean_type, structured_type): Add language_d.
1773         * symfile.c (init_filename_language_table): Add language_d.
1774         * symtab.c: Include d-lang.h.
1775         (symbol_init_language_specific, symbol_find_demangled_name)
1776         (symbol_natural_name, lookup_symbol_in_language)
1777         (symbol_demangled_name, symbol_matches_domain): Add language_d.
1778
1779 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
1780
1781         * solib-svr4.c (solib_svr4_r_map): Expand function description.
1782
1783 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
1784
1785         * symfile.c (init_filename_language_table): Register .dg files
1786         with language_ada.
1787
1788 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
1789
1790         * gdbtypes.h (struct main_type): Expand comment about target_type
1791         field.
1792
1793 2010-04-27  Pedro Alves  <pedro@codesourcery.com>
1794             Tristan Gingold  <gingold@adacore.com>
1795
1796         * symfile.c (reread_symbols): Also search for file in libraries.
1797         Update comment.
1798
1799 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
1800
1801         * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
1802         in terms of configuration.
1803
1804 2010-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1805
1806         * objfiles.c: Include solist.h.
1807         (free_all_objfiles): New variable so.  Check stale solist objfiles.
1808         * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
1809         and no_shared_libraries.
1810
1811 2010-04-27  Joel Brobecker  <brobecker@adacore.com>
1812
1813         ARI warning fix.
1814         * python/py-auto-load.c (source_section_scripts): Remove trailing
1815         new-line in i18n string.
1816
1817 2010-04-26  Doug Evans  <dje@google.com>
1818
1819         * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
1820
1821 2010-04-26  Tom Tromey  <tromey@redhat.com>
1822
1823         * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
1824         command list.
1825
1826 2010-04-26  Pierre Muller  <muller@ics.u-strasbg.fr>
1827
1828         Removal of config/i386/nm-i386sol2.h native configuration file.
1829         * config/i386/nm-i386sol2.h: Remove file.
1830         * config/i386/i386sol2.mh: Remove NAT_FILE definition.
1831         * config/i386/sol2-64.mh: Idem.
1832         * config/djgpp/fnchange.lst: Remove reference to that file.
1833         * Makefile.in (HFILES_NO_SRCDIR): Idem.
1834
1835 2010-04-26  Pierre Muller  <muller@ics.u-strasbg.fr>
1836
1837         PR breakpoints/11531.
1838         * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
1839         macro definition and related comment.
1840         * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
1841         (resume): Remove code and comment related to this macro.
1842
1843 2010-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1844
1845         * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
1846         Fix whitespace.
1847
1848 2010-04-24  Pedro Alves  <pedro@codesourcery.com>
1849
1850         * defs.h: Adjust comment.
1851         * filesystem.h, filesystem.c: New files.
1852         * Makefile.in (SFILES): Add filesystem.c.
1853         (COMMON_OBS): Add filesystem.o.
1854         * solib.c (solib_find): Handle DOS-based filesystems.  Handle
1855         different target and host path flavours.
1856         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
1857         has_dos_based_file_system on the gdbarch.
1858         * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
1859         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
1860         * i386-tdep.c (i386_go32_init_abi): Ditto.
1861         * gdbarch.sh (has_dos_based_file_system): New.
1862         * gdbarch.h, gdbarch.c: Regenerate.
1863         * NEWS: Mention improved support for remote targets with DOS-based
1864         filesystems.  Mention new `set/show target-file-system-kind'
1865         commands.
1866
1867 2010-04-23  Stan Shebs  <stan@codesourcery.com>
1868
1869         * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
1870         comments.
1871         (struct agent_reqs): Remove.
1872         (ax_reg_mask): Declare.
1873         * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
1874         (free_agent_expr): Free reg_mask.
1875         (ax_print): Add scope and register mask info.
1876         (ax_reqs): Remove agent_reqs argument, use agent expression
1877         fields, and move part of register mask computation to...
1878         (ax_reg_mask): New function.
1879         * ax-gdb.c (gen_trace_static_fields): Call it.
1880         (gen_traced_pop): Ditto.
1881         (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
1882         (gen_trace_for_var): Pass gdbarch to new_agent_expr.
1883         (gen_trace_for_expr): Ditto, and clear optimized_out flag.
1884         (gen_eval_for_expr): Ditto, and require an rvalue.
1885         (agent_command): Call ax_reqs.
1886         (agent_eval_command): Ditto.
1887         * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
1888         (validate_action_line): Ditto.
1889         (collect_symbol): Ditto.
1890         (encode_actions_1): Ditto.
1891
1892 2010-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
1893             Paul Pluzhnikov  <ppluzhnikov@google.com>
1894             Jan Kratochvil  <jan.kratochvil@redhat.com>
1895
1896         Fix deadlock on looped list of loaded shared objects.
1897         * solib-svr4.c (LM_PREV): New function.
1898         (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
1899         (svr4_current_sos): Check for correct l_prev.  New variables prev_lm
1900         and next_lm.  Clear prev_lm for solib_svr4_r_ldsomap.
1901         * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
1902
1903 2010-04-23  Doug Evans  <dje@google.com>
1904
1905         * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
1906         python.
1907         * configure: Regenerate.
1908         * main.c: #include "python/python.h".
1909         (captured_main): Defer loading auto-loaded scripts until after
1910         local_gdbinit has been sourced.
1911         * python/py-auto-load.c (gdbpy_global_auto_load): New global.
1912         (load_auto_scripts_for_objfile): New function.
1913         (auto_load_new_objfile): Call it.
1914         * python/python.h (gdbpy_global_auto_load): Declare.
1915         (load_auto_scripts_for_objfile): Declare.
1916
1917         Add support for auto-loading scripts from .debug_gdb_scripts section.
1918         * NEWS: Add entry for .debug_gdb_scripts.
1919         * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
1920         (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
1921         (py-auto-load.o): New rule.
1922         * cli/cli-cmds.c (find_and_open_script): Make externally visible.
1923         * cli/cli-cmds.h (find_and_open_script): Update prototype.
1924         * python/py-auto-load.c: New file.
1925         * python/python-internal.h: #include <stdio.h>.
1926         (set_python_list, show_python_list): Declare.
1927         (gdbpy_initialize_auto_load): Declare.
1928         (source_python_script_for_objfile): Declare.
1929         * python/python.c: Remove #include of observer.h.
1930         (gdbpy_auto_load): Moved to py-auto-load.c.
1931         (GDBPY_AUTO_FILENAME): Ditto.
1932         (gdbpy_new_objfile): Delete.
1933         (source_python_script_for_objfile): New function.
1934         (set_python_list, show_python_list): Make externally visible.
1935         (_initialize_python): Move "auto-load" command to py-auto-load.c
1936         and observer_attach_new_objfile to py-auto-load.c.
1937
1938 2010-04-23  Jerome Guitton  <guitton@adacore.com>
1939     
1940         * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
1941         (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
1942         (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
1943         New constants.
1944         (alpha_heuristic_analyze_probing_loop): New function.
1945         (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
1946         and handle cases when a stack probe loop is generated.
1947         * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
1948         (alpha_mdebug_max_frame_size_exceeded): New function.
1949         (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
1950         (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
1951         Return 0 when the maximum debuggable frame size has been exceeded.
1952
1953 2010-04-23  Joel Brobecker  <brobecker@adacore.com>
1954
1955         Fix ARI warning.
1956         * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
1957
1958 2010-04-20  Chris Moller  <cmoller@redhat.com>
1959
1960         PR 10179
1961
1962         * symtab.c (rbreak_command): Added code to include a filename
1963         specification in the rbreak argument.
1964         * NEWS: Added a brief description of filename-qualified rbreak.
1965
1966 2010-04-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1967
1968         Fix crashes on dangling display expressions.
1969         * ada-lang.c (ada_operator_check): New function.
1970         (ada_exp_descriptor): Fill-in the field operator_check.
1971         * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
1972         * jv-lang.c (exp_descriptor_java): Likewise.
1973         * m2-lang.c (exp_descriptor_modula2): Likewise.
1974         * scm-lang.c (exp_descriptor_scm): Likewise.
1975         * parse.c (exp_descriptor_standard): Likewise.
1976         (operator_check_standard): New function.
1977         (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
1978         * parser-defs.h (struct exp_descriptor): New field operator_check.
1979         (operator_check_standard, exp_uses_objfile): New declarations.
1980         * printcmd.c: Remove the inclusion of solib.h.
1981         (display_uses_solib_p): Remove the function.
1982         (clear_dangling_display_expressions): Call lookup_objfile_from_block
1983         and exp_uses_objfile instead of display_uses_solib_p.
1984         * solist.h (struct so_list) <objfile>: New comment.
1985         * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
1986         * symtab.h (lookup_objfile_from_block): New declaration.
1987         (struct general_symbol_info) <obj_section>: Extend the comment.
1988
1989 2010-04-22  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
1990             Thiago Jung Bauermann  <bauerman@br.ibm.com>
1991
1992         * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
1993         (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
1994         ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
1995         PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
1996         PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
1997         PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
1998         PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
1999         PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
2000         PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
2001         PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
2002         PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
2003         PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
2004         PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
2005         Define, in case <ptrace.h> doesn't provide it.
2006         (booke_debug_info): New variable.
2007         (max_slots_number): Ditto.
2008         (hw_break_tuple): New struct.
2009         (thread_points): Ditto.
2010         (ppc_threads): New variable.
2011         (PPC_DEBUG_CURRENT_VERSION): New define.
2012         (have_ptrace_new_debug_booke): New function.
2013         (ppc_linux_check_watch_resources): Renamed to ...
2014         (ppc_linux_can_use_hw_breakpoint): ... this.  Handle BookE processors.
2015         (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
2016         (booke_cmp_hw_point): New function.
2017         (booke_find_thread_points_by_tid): Ditto.
2018         (booke_insert_point): Ditto.
2019         (booke_remove_point): Ditto.
2020         (ppc_linux_insert_hw_breakpoint): Ditto.
2021         (ppc_linux_remove_hw_breakpoint): Ditto.
2022         (get_trigger_type): Ditto.
2023         (ppc_linux_insert_watchpoint): Handle BookE processors.
2024         (ppc_linux_remove_watchpoint): Ditto.
2025         (ppc_linux_new_thread): Ditto.
2026         (ppc_linux_thread_exit): New function..
2027         (ppc_linux_stopped_data_address): Handle BookE processors.
2028         (ppc_linux_watchpoint_addr_within_range): Ditto.
2029         (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
2030         to_remove_hw_breakpoint fields of the target operations struct.
2031         Add observe for the thread_exit event.
2032
2033 2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>
2034
2035         * i386-linux-nat.c (regmap): Removed.
2036         (fetch_register): Replace regmap with
2037         i386_linux_gregset_reg_offset.
2038         (store_register): Likewise.
2039         (supply_gregset): Likewise.
2040         (fill_gregset): Likewise.
2041
2042         * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
2043         global.
2044
2045         * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
2046
2047 2010-04-22  Chris Moller  <cmoller@redhat.com>
2048
2049         * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2050         method of popping recursion-detection stack with a method based on
2051         obstack_object_size().  (Similar to the PR9167 patch below, but for
2052         the static array obstack rather than the static member obstack.)
2053
2054 2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>
2055
2056         * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
2057         (_initialize_amd64_linux_nat): Replace
2058         amd64_linux_gregset64_reg_offset with
2059         amd64_linux_gregset_reg_offset.
2060
2061         * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
2062         global.
2063
2064         * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
2065
2066 2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
2067
2068         PR stabs/11479.
2069         * stabsread.c (set_length_in_type_chain): New function.
2070         (read_struct_type): Call set_length_in_type_chain function.
2071         (read_enum_type): Idem.
2072
2073 2010-04-21  Stan Shebs  <stan@codesourcery.com>
2074             Nathan Sidwell  <nathan@codesourcery.com>
2075
2076         * tracepoint.c (trace_save): Open in binary mode.
2077
2078 2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
2079
2080         * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
2081         fields.
2082         * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and 
2083         builtin_char32 fields.
2084         * printcmd.c (decode_format): Set char size to '\0'
2085         for strings unless explicit size is given.
2086         (print_formatted): Correct calculation of NEXT_ADDRESS
2087         for 16 or 32 bit strings.
2088         (do_examine): Do not force byte size for strings.
2089         Use builtin_char16 and builtin_char32 types to display
2090         16 or 32 bit-wide strings. 
2091         (x_command): Set LAST_SIZE to 'b' for string type.
2092
2093 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
2094
2095         PR corefiles/11523
2096         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
2097         XCR0 first.
2098
2099         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
2100         there is no .reg-xstate section.
2101         (i386_linux_core_read_description): Check XCR0 first.
2102
2103 2010-04-21  Mike Frysinger  <vapier@gentoo.org>
2104
2105         * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
2106         for len <= 8.
2107
2108 2010-04-21  Chris Moller  <cmoller@redhat.com>
2109
2110         PR 9167
2111         * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2112         method of popping recursion-detection stack with a method based on
2113         obstack_object_size().
2114
2115 2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
2116
2117         PR pascal/11492.
2118         * p-valprint.c (pascal_val_print): Fix default printing of integer
2119         arrays.
2120
2121 2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
2122
2123         Fix compilation warning on gcc-4.1.2.
2124         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
2125         local variable`pc' to zero.
2126
2127 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
2128
2129         Implement thread support with core files on alpha-tru64.
2130         * dec-thread.c (dec_thread_find_new_threads): New function,
2131         extracted from resync_thread_list.
2132         (resync_thread_list): Add OPS parameter.  Replace extracted-out
2133         code by call to dec_thread_find_new_threads.
2134         (dec_thread_wait): Update call to resync_thread_list.
2135         (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
2136
2137 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
2138
2139         * ada-lang.c (value_pointer): New function.
2140         (make_array_descriptor): Call value_pointer to convert addresses to
2141         pointers.
2142
2143 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
2144
2145         * rs6000-aix-tdep.c: #include exceptions.h.
2146         (rs6000_convert_from_func_ptr_addr): If an exception is thrown
2147         while reading the memory at ADDR, then ADDR cannot be a function
2148         descriptor.
2149
2150 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
2151
2152         * ada-typeprint.c (ada_print_typedef): New function.
2153         * ada-lang.h (ada_print_typedef): Add declaration.
2154         * ada-lang.c (ada_language_defn): set la_print_typdef field
2155         to ada_print_typedef.
2156
2157 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
2158
2159         * procfs.c (procfs_address_to_host_pointer): Only define when used.
2160
2161 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
2162
2163         * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
2164         (iterate_over_mappings): Adjust function profile. Add declaration.
2165         (insert_dbx_link_bpt_in_region, info_mappings_callback):
2166         Adjust accordingly.
2167
2168 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
2169
2170         * procfs.c (solib_mappings_callback): Move function up to avoid
2171         a compiler warning.
2172
2173 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
2174
2175         * procfs.c (find_signalled_thread, find_stop_signal): Move
2176         these functions down to define them only when used.
2177
2178 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
2179
2180         * valprint.c (common_val_print): Fix the value before extracting
2181         its contents.
2182         * ada-lang.c (ada_to_fixed_value): Make this function extern.
2183         * ada-lang.h (ada_to_fixed_value): New function declaration.
2184         * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
2185         to avoid code duplication and fix a bug in the handling of
2186         fixed types contents.
2187
2188 2010-04-20  Tom Tromey  <tromey@redhat.com>
2189
2190         * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
2191         (read_partial_die): Likewise.
2192         (dwarf_attr_name): Likewise.
2193
2194 2010-04-20  Chris Moller  <cmoller@redhat.com>
2195         
2196         PR 10867
2197
2198         * cp-valprint.c (global): Adding new static array recursion
2199         detection obstack.
2200         (cp_print_value_fields, cp_print_static_field): Added new static
2201         array recursion detection code.
2202
2203 2010-04-20  Mark Kettenis  <kettenis@gnu.org>
2204
2205         * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
2206         general-purpose register set should be 68 instead of 144.
2207         (i386_linux_sse_regset_sections): Likewise.
2208         (i386_linux_avx_regset_sections): Likewise.
2209
2210 2010-04-20  Stan Shebs  <stan@codesourcery.com>
2211             Nathan Sidwell  <nathan@codesourcery.com>
2212
2213         * dwarf2loc.c (struct axs_var_loc): New struct.
2214         (dwarf2_tracepoint_var_loc): New function.
2215         (dwarf2_tracepoint_var_access): New function.
2216         (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
2217         with DW_OP_piece.
2218         (locexpr_describe_location_piece): New function.
2219         (locexpr_describe_location_1): New function.
2220         (locexpr_describe_location): Call it, update signature.
2221         (loclist_describe_location): Rewrite to loop over locations,
2222         update signature.
2223         * symtab.h (struct symbol_computed_ops): Add address to
2224         describe_location arguments, return void.
2225         * printcmd.c (address_info): Get context PC, pass to computed
2226         location description.
2227         * tracepoint.c (scope_info): Ditto.
2228         * ax-gdb.c (trace_kludge): Export.
2229
2230 2010-04-20  Tom Tromey  <tromey@redhat.com>
2231
2232         * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
2233         (struct dwarf2_cie) <segment_size>: New field.
2234         * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
2235         (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
2236         DW_FORM_exprloc.
2237         (read_attribute_value): Handle DW_FORM_flag_present,
2238         DW_FORM_sec_offset, DW_FORM_exprloc.
2239         (dump_die_shallow): Likewise.
2240         (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
2241         (dwarf2_const_value): Handle DW_FORM_exprloc.
2242         (attr_form_is_block): Likewise.
2243         (struct line_header) <maximum_ops_per_instruction>: New field.
2244         (dwarf_decode_line_header): Set new field.
2245         (dwarf_decode_lines): Handle new field.
2246
2247 2010-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2248
2249         * f-exp.y: Add new production to recognize the `logical*8' type.
2250         (LOGICAL_S8_KEYWORD): New token.
2251         * f-lang.c (enum f_primitive_types)
2252         <f_primitive_type_logical_s8>: New field.
2253         (f_language_arch_info): Handling `logical*8' type.
2254         (build_fortran_types): Building `logical*8' type.
2255         * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
2256
2257 2010-04-19  Doug Evans  <dje@google.com>
2258
2259         * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
2260         * ser-pipe.c (pipe_open): Fix file descriptor leaks.
2261         (pipe_close): Ditto.
2262
2263 2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2264
2265         * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
2266
2267 2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2268
2269         * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
2270         type to void function.
2271
2272 2010-04-19  Stan Shebs  <stan@codesourcery.com>
2273             Vladimir Prus  <vladimir@codesourcery.com>
2274
2275         * tracepoint.c (tfind_1): Add missing newline, report exit from
2276         tfind mode as such.
2277         * target.c (update_current_target): Make default
2278         to_trace_find return -1.
2279
2280 2010-04-19  Mike Frysinger  <vapier@gentoo.org>
2281
2282         * objc-lang.c (find_methods): Move symname check up.
2283
2284 2010-04-19  Pedro Alves  <pedro@codesourcery.com>
2285
2286         * ada-lang.c (print_recreate_exception)
2287         <ex_catch_exception_unhandled>: It's "catch exception unhandled",
2288         not "catch unhandled".
2289
2290 2010-04-19  Pedro Alves  <pedro@codesourcery.com>
2291
2292         PR breakpoints/8554.
2293
2294         Implement `save-breakpoints'.
2295
2296         * breakpoint.c (save_cmdlist): New.
2297         (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
2298         to save_cmdlist.
2299         (print_recreate_catch_fork): New.
2300         (catch_fork_breakpoint_ops): Install it.
2301         (print_recreate_catch_vfork): New.
2302         (catch_vfork_breakpoint_ops): Install it.
2303         (print_recreate_catch_syscall): New.
2304         (catch_syscall_breakpoint_ops): Install it.
2305         (print_recreate_catch_exec): New.
2306         (catch_exec_breakpoint_ops): Install it.
2307         (print_recreate_exception_catchpoint): New.
2308         (gnu_v3_exception_catchpoint_ops): Install it.
2309         (save_breakpoints): New, based on tracepoint_save_command, but
2310         handle all breakpoint types.
2311         (save_breakpoints_command): New.
2312         (tracepoint_save_command): Rename to...
2313         (save_tracepoints_command): ... this, and reimplement using
2314         save_breakpoints.
2315         (save_command): New.
2316         (_initialize_breakpoints): Install the "save" command prefix.
2317         Install the "save breakpoints" command.  Make "save-tracepoints" a
2318         deprecated alias for "save tracepoints".
2319         * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
2320         * ada-lang.c (print_recreate_exception): New.
2321         (print_recreate_catch_exception): New.
2322         (catch_exception_breakpoint_ops): Install it.
2323         (print_recreate_catch_exception_unhandled): New.
2324         (catch_exception_unhandled_breakpoint_ops): Install it.
2325         (print_recreate_catch_assert): New.
2326         (catch_assert_breakpoint_ops): Install it.
2327
2328         * NEWS: Mention the new `save breakpoints' command.  Mention the
2329         new `save tracepoints' alias and that `save-tracepoints' is now
2330         deprecated.
2331
2332 2010-04-18  Pedro Alves  <pedro@codesourcery.com>
2333
2334         PR tui/9217
2335
2336         * tui/tui-out.c: Include cli-out.h.
2337         (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2338         (tui_begin, tui_end, tui_field_int, tui_field_skip)
2339         (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
2340         (tui_message, tui_wrap_hint, tui_flush): Delete forward
2341         declarations.
2342         (struct ui_out_data): Rename to...
2343         (struct tui_ui_out_data): ... this.  Remove `stream' and
2344         `suppress_output' fields, and inherit cli_ui_out_data.
2345         (tui_out_data): New typedef.
2346         (tui_ui_out_impl): Don't initialize fields staticaly.
2347         (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2348         (tui_begin, tui_end): Delete.
2349         (tui_field_int): Adjust to delegate most work to the base type.
2350         (tui_field_skip): Delete.
2351         (tui_field_string, tui_field_fmt): Adjust comment.  Adjust to
2352         delegate most work to the base type.
2353         (tui_spaces): Delete.
2354         (tui_text): Adjust to delegate most work to the base type.
2355         (tui_message): Delete.
2356         (tui_wrap_hint): Delete.
2357         (tui_flush): Delete.
2358         (out_field_fmt): Delete.
2359         (field_separator): Delete.
2360         (tui_out_new): Adjust to initialize the base type.
2361         (_initialize_tui_out): Initialize tui_ui_out_impl.
2362         * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
2363         cli_ui_out_data.
2364         (cli_out_data): Adjust.
2365         (cli_ui_out_impl): Make extern.
2366         (cli_table_header, cli_field_int, cli_field_skip): Use
2367         uo_field_string instead of cli_field_string.
2368         (cli_redirect): Adjust to use cli_out_data.
2369         (cli_out_data_ctor): New.
2370         (cli_out_new): Use it.
2371         * cli-out.h (struct ui_file): Remove forward declaration.
2372         (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
2373         (cli_ui_out_impl): Declare.
2374         (cli_out_data_ctor): Declare.
2375         * ui-out.c (struct ui_out) <data>: Change type to void pointer.
2376         (uo_field_string): No longer static.
2377         (ui_out_data): Change return type to void pointer.
2378         (ui_out_new): Change `data' parameter type to void pointer.
2379         * ui-out.h (struct ui_out_data): Don't forward declare.
2380         (ui_out_data): Change return type to void pointer.
2381         (ui_out_new): Change `data' parameter type to void pointer.
2382         (uo_field_string): Declare.
2383
2384 2010-04-17  Pedro Alves  <pedro@codesourcery.com>
2385
2386         * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
2387         instead of always false.
2388
2389 2010-04-17  H.J. Lu  <hongjiu.lu@intel.com>
2390
2391         PR corefiles/11511
2392         * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
2393         orig_rax.
2394
2395 2010-04-17  Pedro Alves  <pedro@codesourcery.com>
2396
2397         * breakpoint.c (watchpoints_triggered): Use
2398         is_hardware_watchpoint.
2399         (watchpoints_triggered): Ditto.
2400         (bpstat_check_location): Use is_watchpoint and
2401         is_hardware_watchpoint.
2402         (bpstat_check_watchpoint): Use is_watchpoint and
2403         is_hardware_watchpoint.
2404         (bpstat_stop_status): Fix comment.
2405         (user_settable_breakpoint): Use is_watchpoint.
2406         (hw_watchpoint_used_count): Use is_hardware_watchpoint.
2407         (disable_watchpoints_before_interactive_call_start): Use
2408         is_watchpoint.
2409         (enable_watchpoints_after_interactive_call_stop): Use
2410         is_watchpoint.
2411         (clear_command): Use is_watchpoint.
2412         (do_enable_breakpoint): Use is_watchpoint.
2413
2414 2010-04-16  Mike Frysinger  <vapier@gentoo.org>
2415
2416         * solib-frv.c (enable_break1_done): Delete.
2417         (enable_break2): Do not check enable_break1_done.  Move the
2418         enable_break2_done setting and call to
2419         remove_solib_event_breakpoints() to the end.  Return without
2420         warning when the contents of _dl_debug_addr are 0.
2421         (enable_break): Do not set enable_break1_done.
2422         (frv_clear_solib): Likewise.
2423
2424 2010-04-16  Kevin Buettner  <kevinb@redhat.com>
2425
2426         * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
2427         instead of an error if no PLT entry is found.  Return a
2428         potentially useful result.
2429         (m32c_m16c_pointer_to_address): Add code to search for function
2430         address when no .plt entry is found.
2431
2432 2010-04-16  Stan Shebs  <stan@codesourcery.com>
2433
2434         * tracepoint.c (trace_variable_command): Run a cleanup.
2435
2436 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
2437
2438         * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
2439
2440 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
2441
2442         Support for Windows OS Thread Information Block.
2443         * NEWS: Document new feature.
2444         * remote.c (PACKET_qGetTIBAddr): New enum element.
2445         (remote_get_tib_address): New function.
2446         (init_remote_ops): Set to_get_tib_address field
2447         to remote_get_tib_address.
2448         (_initialize_remote): Add add_packet_config_cmd
2449         for PACKET_qGetTIBAddr.
2450         * target.c (update_current_target): Set default value for
2451         new to_get_tib_address field.
2452         * target.h (target_ops): New field to_get_tib_address.
2453         (target_get_tib_address): New macro.
2454         * windows-nat.c (thread_info): Add thread_local_base field.
2455         (windows_add_thread): Add tlb argument of type 'void *'.
2456         (fake_create_process): Adapt windows_add_thread call.
2457         (get_windows_debug_event): Idem.
2458         (windows_get_tib_address): New function.
2459         (init_windows_ops): Set to_get_tib_address field
2460         to remote_get_tib_address.
2461         (_initialize_windows_nat): Replace info_w32_cmdlist
2462         initialization by a call to init_w32_command_list.
2463         (info_w32_command, info_w32_cmdlist): Removed from here...
2464         to windows-tdep.c file.
2465         * windows-tdep.h (info_w32_cmdlist): Declare.
2466         (init_w32_command_list): New external function 
2467         declaration.
2468         * windows-tdep.c: Add several headers.
2469         (info_w32_cmdlist): to here, made global.
2470         (thread_information_32): New struct.
2471         (thread_information_64): New struct.
2472         (TIB_NAME): New char array.
2473         (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
2474         (maint_display_all_tib): New static variable.
2475         (windows_get_tlb_type): New function.
2476         (tlb_value_read, tlb_value_write): New functions.
2477         (tlb_value_funcs): New static struct.
2478         (tlb_make_value): New function.
2479         (display_one_tib): New function.
2480         (display_tib): New function.
2481         (show_maint_show_all_tib):New function.
2482         (info_w32_command): Moved from windows-nat.c.
2483         (init_w32_command_list): New function.
2484         (_initialize_windows_tdep): New function.
2485         New "maint set/show show-all-tib" command
2486         New "$_tlb" internal variable.
2487
2488 2010-04-16  Joel Brobecker  <brobecker@adacore.com>
2489
2490         * tui/tui-regs.c (tui_display_register): Add comment about
2491         a couple of casts.
2492         * tui/tui-stack.c (tui_show_locator_content): Ditto.
2493
2494 2010-04-15  Stan Shebs  <stan@codesourcery.com>
2495
2496         * frame.c: Include tracepoint.h.
2497         (get_current_frame): Allow a trace frame to be an alternate source
2498         of stack frame data.
2499         * tracepoint.c (tfind_1): Don't try to get current stack frame if
2500         it won't succeed.
2501
2502 2010-04-15  Pedro Alves  <pedro@codesourcery.com>
2503
2504         * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
2505         flags.
2506         * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
2507
2508 2010-04-15  Doug Evans  <dje@google.com>
2509
2510         * NEWS: Add entry for python program space support.
2511         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
2512         (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
2513         (py-progspace.o): New rule.
2514         * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
2515         function.
2516         (find_pretty_printer_from_progspace): New function.
2517         (find_pretty_printer_from_gdb): New function.
2518         (find_pretty_printer): Rewrite.
2519         * python/py-progspace.c: New file.
2520         * python/python-internal.h (program_space): Add forward decl.
2521         (pspace_to_pspace_object, pspy_get_printers): Declare.
2522         (gdbpy_initialize_pspace): Declare.
2523         * python/python.c: #include "progspace.h".
2524         (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
2525         (_initialize_python): Call gdbpy_initialize_pspace.
2526         (GdbMethods): Add current_progspace, progspaces.
2527
2528         Add -s option to source command.
2529         * NEWS: Document new option.
2530         * cli/cli-cmds.c (find_and_open_script): Add function comment.
2531         Delete from_tty and cleanupp args.  Split filep arg into file and
2532         full_pathp.  New arg search_path.
2533         (source_script_from_stream): New function.
2534         (source_script_with_search): New function.
2535         (source_script): Rewrite.
2536         (source_command): Parse "-s" option.
2537         (init_cli_cmds): Add "-s" docs to source command help, and reformat.
2538         * python/python.c (source_python_script): Make file arg a const char *.
2539         Don't call fclose, leave for caller.
2540         * python/python.h (source_python_script): Update.
2541
2542 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
2543             Pedro Alves  <pedro@codesourcery.com>
2544
2545         Avoid rereading shared libraries that haven't changed.
2546
2547         * solib.c (free_so_symbols): New function, from ...
2548         (free_so): ... here.  Call it.
2549         (solib_read_symbols): Don't warn here if symbols have already been
2550         loaded.
2551         (solib_add): Warn here instead, if a pattern was specified.
2552         (reload_shared_libraries_1): New.
2553         (reload_shared_libraries): Rewrite to not fetch the library list.
2554
2555 2010-04-14  Doug Evans  <dje@google.com>
2556
2557         * source.c (openp): Strip DOS drive letter if present before
2558         concatenating string to search path.
2559
2560 2010-04-14  Pedro Alves  <pedro@codesourcery.com>
2561
2562         * objfiles.h (gdb_bfd_close_or_warn): Declare.
2563         * objfiles.c (gdb_bfd_close_or_warn): New.
2564         * corelow.c: Include objfiles.h
2565         (core_close): Use gdb_bfd_close_or_warn.
2566         * elfread.c (build_id_verify): Ditto.
2567         * exec.c (exec_close, exec_close_1): Ditto.
2568
2569 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
2570             Pedro Alves  <pedro@codesourcery.com>
2571
2572         Group errors for many missing shared libraries.
2573
2574         * solist.h (struct so_list): Remove from_tty.
2575         * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
2576         (solib_map_sections): Take so_list argument.  Return 0 if we
2577         failed to open a BFD.  Add target sections here.
2578         (symbol_add_stub): Delete.
2579         (solib_read_symbols): Inline symbol_add_stub.  Use current flags,
2580         not from_tty copied from the so_list.  Don't warn a second time
2581         for a missing library.
2582         (update_solib_list): Don't save from_tty.  Use TRY_CATCH.  Do not
2583         add to the section table here.  Print out a single warning for all
2584         missing libraries.
2585         * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
2586         flags.
2587
2588 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
2589
2590         * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
2591         error/warning messages.  Capitalize and use complete sentences.
2592         (blpy_block_syms_iternext): Likewise.
2593         * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
2594         * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
2595         (frame_info_to_frame_object, frapy_read_var)
2596         (gdbpy_frame_stop_reason_string): Likewise.
2597         * python/py-lazy-string.c (stpy_convert_to_value)
2598         (gdbpy_create_lazy_string_object): Likewise.
2599         * python/py-objfile.c (objfpy_set_printers): Likewise.
2600         * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
2601         * python/python.c (parameter_to_python): Likewise.
2602         * python/py-type.c (typy_range, typy_target): Likewise.
2603         * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
2604         (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
2605
2606
2607 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
2608
2609         PR python/11381
2610
2611         * python/py-prettyprint.c (pretty_print_one_value): Test for
2612         Py_None.
2613         (print_string_repr): Test for Py_None.  Set flags accordingly.
2614         Return value depending on return type.
2615         (print_children): Take a value indicating whether data was printed
2616         before this function was called.  Alter output accordingly.
2617         (apply_val_pretty_printer): Capture return value from
2618         print_string_repr and pass to print_children.
2619
2620 2010-04-13  Mark Kettenis  <kettenis@gnu.org>
2621
2622         PR corefiles/11481
2623         * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
2624         register note sections.
2625         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2626         New variables.
2627         (i386_linux_init_abi): Install list of supported register note
2628         sections that matches the target description.
2629
2630 2010-04-13  Pedro Alves  <pedro@codesourcery.com>
2631
2632         * remote.c (remote_get_noisy_reply): Don't error out on empty
2633         replies.
2634         (remote_start_remote): Update and merge tracepoints and trace
2635         state variables as long as the target supports tracepoints.
2636         (remote_trace_init): Fix prototype.
2637         (remote_download_trace_state_variable): Validate reply.
2638         (remote_trace_set_readonly_regions): Fix prototype.
2639         (remote_trace_start): Fix prototype.  Check for empty reply.
2640         (remote_get_trace_status): Small cleanup.
2641         (remote_trace_stop): Fix prototype.  Check for empty reply.
2642         (remote_trace_find): Check for empty reply.
2643         (remote_save_trace_data): Validate reply.
2644         (remote_set_disconnected_tracing): Check for empty reply, and
2645         validate reply.
2646         (remote_set_circular_trace_buffer): Ditto.
2647
2648 2010-04-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2649
2650         Suppress unused value warning during compilation.
2651         * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
2652         calls to void.
2653         * tui/tui-stack.c (tui_show_locator_content): Likewise.
2654
2655 2010-04-12  Stan Shebs  <stan@codesourcery.com>
2656
2657         * tracepoint.c (tfile_xfer_partial): Check read result.
2658
2659 2010-04-12  Mike Frysinger  <vapier@gentoo.org>
2660
2661         * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
2662         * remote-sim.c (gdbsim_files_info): Likewise.
2663
2664 2010-04-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
2665
2666         * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
2667         * arm-linux-nat.c (arm_linux_vfp_register_count): New
2668         variable.
2669         (fetch_vfp_registers): New function to fetch VFP registers.
2670         (store_vfp_registers): New function to store VFP registers.
2671         (arm_linux_fetch_inferior_registers): Add support for VFP
2672         registers.
2673         (arm_linux_store_inferior_registers): Likewise.
2674         (arm_linux_read_description): Likewise.
2675         (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
2676         until we need it.
2677
2678 2010-04-11  H.J. Lu  <hongjiu.lu@intel.com>
2679
2680         * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
2681         tdep.
2682         (amd64_collect_xstateregset): Likewise.
2683
2684 2010-04-09  Stan Shebs  <stan@codesourcery.com>
2685
2686         * tracepoint.c (trace_status_mi): Report frames created.
2687
2688         * tracepoint.c (trace_dump_command): Include default-collect
2689         expressions.
2690
2691 2010-04-09  Ulrich Weigand  <uweigand@de.ibm.com>
2692
2693         * symtab.c (find_function_start_sal): Never return SAL pointing
2694         before function start address, even if line info is missing.
2695
2696 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
2697
2698         * NEWS: Mention tracepoints support.
2699
2700 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
2701
2702         * tracepoint.c (trace_status_mi): Report disconnected tracing and
2703         circular trace buffer statuses.
2704
2705 2010-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2706
2707         * config/djgpp/fnchange.lst: Fix typo in translations for
2708         symbol-without-target_section.exp and symbol-without-target_section.c.
2709
2710 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
2711
2712         * breakpoint.c (condition_command): Pass condition expression to
2713         set_breakpoint_condition stripped from breakpoint number.
2714
2715 2010-04-09  Phil Muldoon  <pmuldoon@redhat.com>
2716             Thiago Jung Bauermann  <bauerman@br.ibm.com>
2717             Tom Tromey  <tromey@redhat.com>
2718
2719         * breakpoint.c (condition_command): Simplify.  Move condition
2720         setting code to ...
2721         (set_breakpoint_condition): ... here.  New function.
2722         * breakpoint.h  (set_breakpoint_condition): Declare.
2723         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
2724         (SUBDIR_PYTHON_SRCS): Likewise.
2725         (py-breakpoint.o): New rule.
2726         * python/py-breakpoint.c: New file.
2727         * python/python-internal.h (gdbpy_breakpoints)
2728         (gdbpy_initialize_breakpoints): Declare.
2729         (GDB_PY_SET_HANDLE_EXCEPTION) Define.
2730
2731 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
2732
2733         * regformats/regdat.sh: Include server.h.  Don't include
2734         regcache.h.
2735
2736 2010-04-08  Stan Shebs  <stan@codesourcery.com>
2737             Pedro Alves  <pedro@codesourcery.com>
2738
2739         * tracepoint.h (struct trace_status): New fields disconnected_tracing
2740         and circular_buffer.
2741         (disconnect_tracing): Rename from disconnect_or_stop_tracing.
2742         * tracepoint.c (trace_status_command): Display target's status for
2743         disconnected tracing and circular buffer.
2744         (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
2745         query for non-disconnected-tracing case, remove the stop_tracing
2746         call.
2747         (tfile_open): Clear disconnected and circular buffer status.
2748         (trace_save): Save disconnected and circular buffer status.
2749         (parse_trace_status): Parse disconnected and circular buffer status,
2750         also recognize disconnected as a stop reason.
2751         * remote.c (remote_set_disconnected_tracing): Only set
2752         QTDisconnected if the remote end supports disconnected tracing.
2753         Warn otherwise, if trying to enable disconnected tracing.
2754         * infcmd.c (detach_command): Update disconnect_tracing call.
2755         * cli/cli-cmds.c (quit_command): Ditto.
2756
2757 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
2758
2759         * i387-tdep.c (i387_collect_xsave): Replace abort with
2760         internal_error.
2761
2762 2010-04-08  Stan Shebs  <stan@codesourcery.com>
2763
2764         * breakpoint.c (default_collect_info): New function.
2765         (breakpoints_info): Call it.
2766         (maintenance_info_breakpoints): Ditto.
2767         (tracepoints_info): Ditto.
2768
2769 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
2770
2771         * i387-tdep.c (i387_collect_xsave): Re-indent.
2772
2773 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
2774
2775         * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
2776         if HAVE_PTRACE_GETFPXREGS is defined.
2777         (i386_linux_read_description): Set have_ptrace_getfpxregs and
2778         have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
2779
2780         * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
2781         (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
2782         if .reg-xfp section doesn't exist.
2783         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
2784
2785         * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
2786
2787         * i386-tdep.c: Include "features/i386/i386-mmx.c".
2788         (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
2789         (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional.  Set
2790         xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
2791         (i386_gdbarch_init): Update comments.
2792         (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
2793
2794         * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
2795
2796         * config/djgpp/fnchange.lst: Add i386 MMX XML files.
2797
2798         * features/Makefile (i386/i386-mmx-expedite): New.
2799         (i386/i386-mmx-linux-expedite): Likewise.
2800         ($(outdir)/i386/i386-mmx.dat): Likewise.
2801         ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
2802
2803         * features/i386/i386-mmx-linux.c: New.
2804         * features/i386/i386-mmx-linux.xml: Likewise.
2805         * features/i386/i386-mmx.c: Likewise.
2806         * features/i386/i386-mmx.xml: Likewise.
2807         * regformats/i386/i386-mmx-linux.dat: Likewise.
2808         * regformats/i386/i386-mmx.dat: Likewise.
2809
2810         * features/Makefile (WHICH): Add i386/i386-mmx and
2811         i386/i386-mmx-linux.
2812
2813 2010-04-08  Doug Evans  <dje@google.com>
2814
2815         * source.c (openp): Skip $cdir in PATH.
2816
2817 2010-04-08  Phil Muldoon  <pmuldoon@redhat.com>
2818
2819         PR python/11417
2820         * python/py-lazy-string.c (stpy_convert_to_value): Check for
2821         a NULL address.
2822         (gdbpy_create_lazy_string_object): Allow strings with a NULL
2823         address and a zero length.
2824
2825 2010-04-08  Hui Zhu  <teawater@gmail.com>
2826
2827         * i386-tdep.c (i386_process_record): Add support for insn
2828         rdtsc.
2829
2830 2010-04-07  Doug Evans  <dje@google.com>
2831
2832         * python/python.c (source_python_script): Use ensure_python_env
2833         to prepare environment for script.
2834
2835 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
2836
2837         * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
2838         <sys/uio.h> and "i386-xstate.h".
2839         (PTRACE_GETREGSET): New.
2840         (PTRACE_SETREGSET): Likewise.
2841         (have_ptrace_getregset): Likewise.
2842         (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
2843         registers.
2844         (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
2845         registers.
2846         (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
2847         (amd64_linux_store_inferior_registers): Likewise.
2848         (amd64_linux_read_description): Check and enable AVX target
2849         descriptions.
2850
2851         * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
2852         and "features/i386/amd64-avx-linux.c".
2853         (amd64_linux_regset_sections): New.
2854         (amd64_linux_core_read_description): Check and enable AVX
2855         target description.
2856         (amd64_linux_init_abi): Set xsave_xcr0_offset.  Call
2857         set_gdbarch_core_regset_sections.
2858         (_initialize_amd64_linux_tdep): Call
2859         initialize_tdesc_amd64_avx_linux.
2860
2861         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
2862         AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
2863         (tdesc_amd64_avx_linux): New.
2864         (amd64_linux_update_xstateregset): Likewise.
2865
2866         * amd64-tdep.c: Include "features/i386/amd64-avx.c".
2867         (amd64_ymm_names): New.
2868         (amd64_ymmh_names): Likewise.
2869         (amd64_register_name): Likewise.
2870         (amd64_supply_xstateregset): Likewise.
2871         (amd64_collect_xstateregset): Likewise.
2872         (amd64_supply_xsave): Likewise.
2873         (amd64_collect_xsave): Likewise.
2874         (AMD64_NUM_REGS): Removed.
2875         (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
2876         %xmmN if AVX is available.
2877         (amd64_pseudo_register_name): Support pseudo YMM registers.
2878         (amd64_regset_from_core_section): Support .reg-xstate section.
2879         (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
2880         and ymm0h_regnum.  Call set_gdbarch_register_name.
2881         (amd64_init_abi): Call initialize_tdesc_amd64_avx.
2882
2883         * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
2884         AMD64_YMM15H_REGNUM.
2885         (AMD64_NUM_REGS): New.
2886         (amd64_supply_xsave): Likewise.
2887         (amd64_collect_xsave): Likewise.
2888         (amd64_register_name): Removed.
2889         (amd64_register_type): Likewise.
2890
2891 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
2892
2893         * i387-tdep.c: Include "i386-xstate.h".
2894         (XSAVE_XSTATE_BV_ADDR): New.
2895         (xsave_avxh_offset): Likewise.
2896         (XSAVE_AVXH_ADDR): Likewise.
2897         (i387_supply_xsave): Likewise.
2898         (i387_collect_xsave): Likewise.
2899
2900         * i387-tdep.h (I387_NUM_YMM_REGS): New.
2901         (I387_YMM0H_REGNUM): Likewise.
2902         (I387_YMMENDH_REGNUM): Likewise.
2903         (i387_supply_xsave): Likewise.
2904         (i387_collect_xsave): Likewise.
2905
2906 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
2907
2908         * i386-linux-nat.c: Include "regset.h", "elf/common.h",
2909         <sys/uio.h> and "i386-xstate.h".
2910         (PTRACE_GETREGSET): New.
2911         (PTRACE_SETREGSET): Likewise.
2912         (fetch_xstateregs): Likewise.
2913         (store_xstateregs): Likewise.
2914         (GETXSTATEREGS_SUPPLIES): Likewise.
2915         (regmap): Include 8 upper YMM registers.
2916         (i386_linux_fetch_inferior_registers): Support XSAVE extended
2917         state.
2918         (i386_linux_store_inferior_registers): Likewise.
2919         (i386_linux_read_description): Check and enable AVX target
2920         descriptions.
2921
2922         * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
2923         "i386-xstate.h" and "features/i386/i386-avx-linux.c".
2924         (i386_linux_regset_sections): Add ".reg-xstate".
2925         (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
2926         (i386_linux_core_read_xcr0): New.
2927         (i386_linux_core_read_description): Check and enable AVX target
2928         description.
2929         (i386_linux_init_abi): Set xsave_xcr0_offset.
2930         (_initialize_i386_linux_tdep): Call
2931         initialize_tdesc_i386_avx_linux.
2932
2933         * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
2934         I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
2935         (i386_linux_core_read_xcr0): New.
2936         (tdesc_i386_avx_linux): Likewise.
2937         (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
2938
2939         * i386-tdep.c: Include "i386-xstate.h" and
2940         "features/i386/i386-avx.c".
2941         (i386_ymm_names): New.
2942         (i386_ymmh_names): Likewise.
2943         (i386_ymmh_regnum_p): Likewise.
2944         (i386_ymm_regnum_p): Likewise.
2945         (i386_xmm_regnum_p): Likewise.
2946         (i386_register_name): Likewise.
2947         (i386_ymm_type): Likewise.
2948         (i386_supply_xstateregset): Likewise.
2949         (i386_collect_xstateregset): Likewise.
2950         (i386_sse_regnum_p): Removed.
2951         (i386_pseudo_register_name): Support pseudo YMM registers.
2952         (i386_pseudo_register_type): Likewise.
2953         (i386_pseudo_register_read): Likewise.
2954         (i386_pseudo_register_write): Likewise.
2955         (i386_dbx_reg_to_regnum): Return %ymmN register number for
2956         %xmmN if AVX is available.
2957         (i386_regset_from_core_section): Support .reg-xstate section.
2958         (i386_register_reggroup_p): Supper upper YMM and YMM registers.
2959         (i386_process_record): Replace i386_sse_regnum_p with
2960         i386_xmm_regnum_p.
2961         (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
2962         Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
2963         (i386_gdbarch_init): Set xstateregset.  Set xsave_xcr0_offset.
2964         Call set_gdbarch_register_name.  Replace I386_SSE_NUM_REGS with
2965         I386_AVX_NUM_REGS.  Set ymmh_register_names, ymm0h_regnum and
2966         num_ymm_regs.  Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
2967         Set ymm0_regnum.
2968         (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
2969
2970         * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
2971         xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
2972         i386_ymm_type.
2973         (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
2974         (I386_AVX_NUM_REGS): New.
2975         (i386_xmm_regnum_p): Likewise.
2976         (i386_ymm_regnum_p): Likewise.
2977         (i386_ymmh_regnum_p): Likewise.
2978
2979         * common/i386-xstate.h: New.
2980
2981 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
2982
2983         * config/djgpp/fnchange.lst: Add x86 AVX XML files.
2984
2985         * features/Makefile (WHICH): Add i386/i386-avx,
2986         i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
2987         (i386/i386-avx-expedite): New.
2988         (i386/i386-avx-linux-expedite): Likewise.
2989         (i386/x86-64-avx-expedite):Likewise.
2990         (i386/x86-64-avx-linux-expedite): Likewise.
2991         ($(outdir)/i386/i386-avx.dat): New dependency.
2992         ($(outdir)/i386/i386-avx-linux.dat): Likewise.
2993         ($(outdir)/i386/x86-avx-64.dat): Likewise.
2994         ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
2995
2996         * features/i386/32bit-avx.xml: New.
2997         * features/i386/64bit-avx.xml: Likewise.
2998         * features/i386/i386-avx-linux.c: Likewise.
2999         * features/i386/i386-avx-linux.xml: Likewise.
3000         * features/i386/i386-avx.c: Likewise.
3001         * features/i386/i386-avx.xml: Likewise.
3002         * features/i386/x86-64-avx-linux.c: Likewise.
3003         * features/i386/x86-64-avx-linux.xml: Likewise.
3004         * features/i386/x86-64-avx.c: Likewise.
3005         * features/i386/x86-64-avx.xml: Likewise.
3006         * regformats/i386/i386-avx-linux.dat: Likewise.
3007         * regformats/i386/i386-avx.dat: Likewise.
3008         * regformats/i386/x86-64-avx-linux.dat: Likewise.
3009         * regformats/i386/x86-64-avx.dat: Likewise.
3010
3011 2010-04-07  Doug Evans  <dje@google.com>
3012
3013         * top.c (source_file_name): Make const char *.
3014         * top.h (source_file_name): Update.
3015         * cli/cli-script.c (source_cleanup_lines_args): Make old_file
3016         const char *.
3017         (script_from_file): Change `file' arg to const char *.
3018         * cli/cli-script.h (script_from_file): Update.
3019
3020 2010-04-06  Doug Evans  <dje@google.com>
3021
3022         * cli/cli-cmds.c (source_command): Run cleanups.
3023
3024 2010-04-06  Stan Shebs  <stan@codesourcery.com>
3025
3026         * defs.h (char_ptr): Move typedef here from...
3027         * ada-lang.c (char_ptr): Remove.
3028         * charset.c (char_ptr): Remove.
3029         * tracepoint.h (struct uploaded_string): Remove.
3030         (struct uploaded_tp): Use vectors for string arrays.
3031         * tracepoint.c (trace_save): Use vectors of actions.
3032         (parse_tracepoint_definition): Ditto.
3033         (get_uploaded_tp): Clear vectors.
3034         * breakpoint.c (create_tracepoint_from_upload): Use vectors.
3035         (next_cmd): Change to an int.
3036         (read_next_cmd): Use vector of command strings.
3037
3038 2010-04-06  Doug Evans  <dje@google.com>
3039
3040         * top.h (source_script, cd_command): Delete.
3041         * main.c: #include "cli/cli-cmds.h"
3042
3043 2010-04-06  Kevin Buettner  <kevinb@redhat.com>
3044
3045         * m32c-tdep.c (make_types): When calling `arch_type', pass size of
3046         type in bytes, not bits.
3047
3048 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
3049
3050         * stabsread.c (define_symbol): Add support for char
3051         and string constants.
3052
3053 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
3054
3055         Remove remaining "%ll" uses.
3056         * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
3057         hex_string call.
3058         * rs6000-nat.c (rs6000_ptrace64): Idem.
3059         * solib-pa64.c (pa64_current_sos): Idem.
3060         * solib-spu.c (spu_current_sos): Idem.
3061         * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
3062         plongest call.
3063         * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
3064         phex (VAR, 8) call.
3065         * sh64-tdep.c (sh64_show_media_regs): Idem.
3066
3067 2010-04-05  Stan Shebs  <stan@codesourcery.com>
3068
3069         * tracepoint.c: Include gdbcore.h.
3070         (tfile_xfer_partial): Return partial results, also try reading
3071         from executable.
3072         (tfile_has_all_memory): New function.
3073         (init_tfile_ops): Use it.
3074
3075 2010-04-05  Sergio Durigan Junior  <sergiodj@redhat.com>
3076
3077         PR gdb/10736:
3078         * xml-syscall.c (my_gdb_datadir): New variable to keep track of
3079         the changes in data-directory.
3080         (init_sysinfo): Reload the syscall XML file if the data-directory
3081         has changed.
3082
3083 2010-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3084
3085         Code cleanup.
3086         * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
3087
3088 2010-04-04  Stan Shebs  <stan@codesourcery.com>
3089             Nathan Sidwell  <nathan@codesourcery.com>
3090
3091         * breakpoint.c (breakpoint_1): Add filter argument, return number of
3092         breakpoints printed.
3093         (is_hardware_watchpoint): Make argument const.
3094         (is_watchpoint): Ditto.
3095         (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
3096         use it everywhere.
3097         (breakpoints_info): Pass NULL to breakpoint_1.
3098         (maintenance_info_breakpoints): Ditto.
3099         (watchpoints_info): New function.
3100         (tracepoints_info): Use breakpoint_1 filter.
3101         (set_ignore_count): Warn that tracepoint ignore count will be ignored.
3102         (_initialize_breakpoint): Make "info watchpoints" its own command.
3103         * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
3104         * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
3105
3106 2010-04-04  Stan Shebs  <stan@codesourcery.com>
3107
3108         * tracepoint.c (tfile_fetch_registers): Add fallback case.
3109
3110 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3111
3112         * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
3113         * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
3114
3115 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3116
3117         * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
3118         * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
3119
3120 2010-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3121
3122         * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
3123         code form.
3124
3125 2010-04-02  Hui Zhu  <teawater@gmail.com>
3126
3127         * i386-tdep.c (OT_DQUAD): New enum.
3128         (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
3129         SSE3, SSSE3 and SSE4.
3130
3131 2010-04-02  Hui Zhu  <teawater@gmail.com>
3132
3133         * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
3134         "*addr = 0".
3135
3136 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
3137
3138         * tracepoint.c (trace_dump_actions): New, factored out from
3139         trace_dump_command, and adjusted to recurse into while-stepping's
3140         action list.
3141         (trace_dump_command): Use it.
3142
3143 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
3144
3145         * breakpoint.h (struct counted_command_line): Moved definition to
3146         breakpoint.c, and forward declare.
3147         (breakpoint_commands): Declare.
3148         * breakpoint.c (struct counted_command_line): Moved here.
3149         (breakpoint_commands): New.
3150         * tracepoint.c (encode_actions): Use breakpoint_commands.
3151         * remote.c (remote_download_tracepoint): Ditto.
3152
3153 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
3154
3155         * remote.c (remote_parse_stop_reply): Use hex_string instead
3156         of phex_nz for error.
3157
3158 2010-04-01  Stan Shebs  <stan@codesourcery.com>
3159             Nathan Sidwell  <nathan@codesourcery.com>
3160
3161         * tracepoint.h (enum actionline_type): Remove.
3162         (validate_actionline): Change return to void.
3163         * tracepoint.c (report_agent_reqs_errors): New function.
3164         (validate_actionline): Call it, change return to void, report errors
3165         more consistently.
3166         (collect_symbol): Call report_agent_reqs_errors.
3167         (encode_actions_1): Ditto.
3168         (encode_actions): Don't expect a result from validate_actionline.
3169
3170 2010-04-01  Stan Shebs  <stan@codesourcery.com>
3171
3172         * tracepoint.c (trace_start_command): Confirm if trace is running.
3173         (trace_stop_command): Error if trace not running.
3174
3175 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
3176
3177         * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
3178         (AMD64_NUM_LOWER_BYTE_REGS): New.
3179         (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
3180         (amd64_pseudo_register_write): Likewise.
3181         (amd64_init_abi): Set num_byte_regs to 20.
3182
3183 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
3184
3185         * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
3186         (prev_breakpoint_count): New.
3187         (set_breakpoint_count): Adjust.
3188         (rbreak_start_breakpoint_count): New.
3189         (start_rbreak_breakpoints): Adjust.
3190         (end_rbreak_breakpoints): Adjust.
3191         (struct commands_info) <arg>: New field.
3192         (do_map_commands_command): Tweak output to include breakpoint spec
3193         range.
3194         (commands_command_1): Adjust.  Avoid setting an xfree cleanup if
3195         ARG was empty on entry.  Set INFO's arg.
3196         (create_breakpoint): Adjust.
3197
3198         * NEWS: Clarify `commands' changes.
3199
3200 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
3201
3202         * tracepoint.c: Include stack.h.
3203         (struct add_local_symbols_data): New.
3204         (do_collect_symbol): New.
3205         (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
3206         iterate_over_block_local_vars.
3207         * stack.c (print_block_frame_locals): Rewrite as ...
3208         (iterate_over_block_locals): ... this.  Take a callback function
3209         pointer and generic data pointer, and call that instead of
3210         print_variable_and_value.
3211         (struct print_variable_and_value_data): New.
3212         (do_print_variable_and_value): New.
3213         (iterate_over_block_local_vars): New, abstracted out from
3214         print_frame_local_vars.
3215         (print_frame_local_vars): Rewrite using
3216         iterate_over_block_local_vars.
3217         (iterate_over_block_arg_vars): New, abstracted out from
3218         print_frame_arg_vars.
3219         (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
3220         * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
3221         (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
3222
3223 2010-03-31  Richard Earnshaw  <rearnsha@arm.com>
3224
3225         * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
3226         instructions.  Use the PC+4 if the base of the TBB or TBH is the
3227         PC register.
3228
3229 2010-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
3230
3231         Fix crash on reading wrong function declaration DWARF.
3232         * dwarf2read.c (read_subroutine_type): New variable void_type.
3233         Pre-fill all TYPE_FIELD_TYPEs.  Move nparams and iparams initialization
3234         more close to their use.
3235
3236 2010-03-31  Stan Shebs  <stan@codesourcery.com>
3237
3238         * breakpoint.c (tracepoint_save_command): Include variables,
3239         conditionals, tracepoint types, and default-collect.
3240         * tracepoint.c (save_trace_state_variables): New function.
3241         * tracepoint.h (save_trace_state_variables): Declare it.
3242
3243 2010-03-31  Pierre Muller  <muller@ics.u-strasbg.fr>
3244
3245         * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
3246
3247 2010-03-30  Keith Seitz  <keiths@redhat.com>
3248
3249         * c-typeprint.c (c_type_print_args): Don't print "void"
3250         for java, regardless of whether it is TYPE_PROTOTYPED.
3251         Use the passed-in language instead of current_language.
3252         (c_type_print_varspec_suffix): Use current_language instead
3253         of assuming language_c.
3254         * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
3255         any return type specifier from the physname.
3256
3257 2010-03-30  Pedro Alves  <pedro@codesourcery.com>
3258
3259         * tui/tui-interp.c (tui_is_toplevel): New.
3260         (tui_init): Set it.
3261         (tui_allowed_p): New.
3262         * tui/tui.c (tui_enable): Check if the TUI is allowed before
3263         enabling it.
3264         * tui/tui.h (tui_allowed_p): Declare.
3265
3266 2010-03-30  Ozkan Sezer  <sezeroz@gmail.com>
3267
3268         * serial.h: Include winsock2.h before windows.h.
3269
3270 2010-03-30  H.J. Lu  <hongjiu.lu@intel.com>
3271
3272         * NEWS: Mention xmlRegisters= in qSupported packet.
3273
3274         * i386-tdep.c: Include "remote.h".
3275         (_initialize_i386_tdep): Call register_remote_support_xml.
3276
3277         * remote.c (remote_support_xml): New.
3278         (register_remote_support_xml): Likewise.
3279         (remote_query_supported_append): Likewise.
3280         (remote_query_supported): Support remote_support_xml.
3281
3282         * remote.h (register_remote_support_xml): New.
3283
3284 2010-03-29  Stan Shebs  <stan@codesourcery.com>
3285
3286         * tracepoint.c (trace_find_line_command): Remove dead code.
3287
3288         * tracepoint.h (struct uploaded_string): New struct.
3289         (struct uploaded_tp): New fields for source strings.
3290         * breakpoint.c (this_utp, next_cmd): New globals.
3291         (read_uploaded_action): New function.
3292         (create_tracepoint_from_upload): Fill in more parts
3293         of a tracepoint.
3294         * tracepoint.c (encode_source_string): New function.
3295         (trace_save): Write out source strings, fix error checks.
3296         (parse_tracepoint_definition): Add source string parsing.
3297         * remote.c (PACKET_TracepointSource): New packet type.
3298         (remote_download_command_source): New function.
3299         (remote_download_tracepoint): Download source pieces also.
3300         (_initialize_remote): Add packet config command.
3301
3302         * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
3303         expression handler.
3304
3305         * tracepoint.c (start_tracing): Check tracepoints before sending
3306         commands to target, don't start if all tracepoints disabled.
3307
3308 2010-03-28  Pedro Alves  <pedro@codesourcery.com>
3309
3310         * cli/cli-script.c (process_next_line): Handle 'stepping'.
3311
3312 2010-03-26  Stan Shebs  <stan@codesourcery.com>
3313
3314         * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
3315
3316 2010-03-26  Tom Tromey  <tromey@redhat.com>
3317
3318         * breakpoint.c (commands_command_1): Duplicate 'arg'.
3319
3320 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
3321
3322         * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
3323         (skip_prologue_sal): Remove local definition.
3324         (resolve_sal_pc): Remove now unnecessary code.
3325         * linespec.c (minsym_found): Call skip_prologue_sal.
3326         * symtab.c (find_function_start_pc): Remove.
3327         (find_function_start_sal): Extract prologue skipping into ...
3328         (skip_prologue_sal): ... this new function.  Handle code both
3329         with and without debug info.  Respect SAL's explicit_pc and
3330         explicit_line flags.  Inline old find_function_start_pc.
3331         * symtab.h (find_function_start_pc): Remove.
3332         (skip_prologue_sal): Add prototype.
3333
3334 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
3335
3336         * dwarf2read.c (read_func_scope): Also scan specification DIEs
3337         for DW_TAG_imported_module children.
3338
3339 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
3340
3341         * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
3342         ignoring spurious DW_AT_name attributes for unnamed structs or unions.
3343         * completer.c (add_struct_fields): Fix inverted logic.
3344
3345 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
3346
3347         * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
3348
3349 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
3350
3351         * tracepoint.c (current_trace_status): Don't make sure error_desc
3352         is non-NULL here.
3353         (parse_trace_status): Release a previous error_desc string, and
3354         set it to NULL by default.  If stop reason is tracepoint_error,
3355         make sure error_desc is not left NULL.
3356
3357 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
3358
3359         * tracepoint.c (trace_save): Remove X from tracepoint error
3360         description.
3361
3362 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
3363
3364         * tracepoint.c (parse_trace_status): Don't allow plain strings in
3365         the terror description.  Don't expect an X prefix.
3366
3367 2010-03-25  Stan Shebs  <stan@codesourcery.com>
3368
3369         * tracepoint.h (trace_stop_reason): Add tracepoint_error.
3370         (struct trace_status): New field error_desc.
3371         * tracepoint.c (stop_reason_names): Add terror.
3372         (current_trace_status): Ensure non-NULL error description.
3373         (trace_status_command): Add error report.
3374         (trace_status_mi): Ditto.
3375         (trace_save): Add special case for error description.
3376         (parse_trace_status): Add case for errors.
3377
3378 2010-03-25  Keith Seitz  <keiths@redhat.com>
3379
3380         * dwarf2read.c (read_subroutine_type): If the compilation unit
3381         language is Java, mark any formal parameter named "this" as
3382         artificial (GCC/43521).
3383         (dwarf2_name): Add special handling for Java constructors.
3384
3385 2010-03-25  Tom Tromey  <tromey@redhat.com>
3386
3387         PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
3388         * infrun.c (handle_inferior_event): Change initialization of
3389         stop_stack_dummy.
3390         (handle_inferior_event): Change assignment to stop_stack_dummy.
3391         (normal_stop): Update use of stop_stack_dummy.
3392         (struct inferior_status) <stop_stack_dummy>: Change type.
3393         * inferior.h (stop_stack_dummy): Update.
3394         * infcmd.c (stop_stack_dummy): Change type.
3395         * infcall.c (cleanup_delete_std_terminate_breakpoint): New
3396         function.
3397         (call_function_by_hand): Call set_std_terminate_breakpoint.
3398         Rewrite std::terminate handling.
3399         * breakpoint.h (enum bptype) <bp_std_terminate,
3400         bp_std_terminate_master>: New.
3401         (enum stop_stack_kind): New.
3402         (struct bpstat_what) <call_dummy>: Change type.
3403         (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
3404         Declare.
3405         * breakpoint.c (create_std_terminate_master_breakpoint): New
3406         function.
3407         (update_breakpoints_after_exec): Handle bp_std_terminate_master.
3408         Call create_std_terminate_master_breakpoint.
3409         (print_it_typical): Handle new breakpoint kinds.
3410         (bpstat_stop_status): Handle bp_std_terminate_master.
3411         (bpstat_what): Correctly set call_dummy field.  Handle
3412         bp_std_terminate_master and bp_std_terminate.
3413         (print_one_breakpoint_location): Update.
3414         (allocate_bp_location): Update.
3415         (set_std_terminate_breakpoint): New function.
3416         (delete_std_terminate_breakpoint): Likewise.
3417         (create_thread_event_breakpoint): Update.
3418         (delete_command): Update.
3419         (breakpoint_re_set_one): Update.
3420         (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
3421
3422 2010-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3423
3424         * symfile.c (build_section_addr_info_from_bfd): New.
3425         (build_section_addr_info_from_objfile): Base it on
3426         build_section_addr_info_from_bfd.
3427         (addrs_section_compar, addrs_section_sort): New.
3428         (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
3429         addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs.  Build
3430         addrs_to_abfd_addrs.  Use it for recalculating ADDRS.
3431
3432 2010-03-24  Michael Snyder  <msnyder@localhost.localdomain>
3433
3434         * elfread.c (find_separate_debug_file_by_buildid):
3435         Remove unused local variable.
3436
3437 2010-03-24  Tom Tromey  <tromey@redhat.com>
3438
3439         PR breakpoints/9352:
3440         * NEWS: Mention changes to `commands' and `rbreak'.
3441         * symtab.c (do_end_rbreak_breakpoints): New function.
3442         (rbreak_command): Call start_rbreak_breakpoints; arrange to call
3443         end_rbreak_breakpoints.
3444         * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
3445         (set_breakpoint_count): Likewise.  Clear last_was_multi.
3446         (multi_start, multi_end, last_was_multi): New globals.
3447         (start_rbreak_breakpoints, end_rbreak_breakpoints): New
3448         functions.
3449         (struct commands_info): New
3450         (do_map_commands_command): New function.
3451         (commands_command_1): New function.
3452         (commands_command): Use it.
3453         (commands_from_control_command): Likewise.
3454         (do_delete_breakpoint): New function.
3455         (delete_command): Use it.
3456         (map_breakpoint_numbers): Add 'data' argument.  Pass to callback.
3457         (do_map_disable_breakpoint): New function.
3458         (disable_command): Use it.
3459         (do_map_enable_breakpoint): New function.
3460         (enable_command): Use it.
3461         (enable_once_breakpoint): Add argument.
3462         (enable_once_command): Update.
3463         (enable_delete_breakpoint): Add argument.
3464         (enable_delete_command): Update.
3465         (break_command_really): Set last_was_multi when needed.
3466         (check_tracepoint_command): Fix formatting.
3467         (validate_commands_for_breakpoint): New function.
3468         (breakpoint_set_commands): Use it.
3469         (tracepoint_save_command): Update.
3470         * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
3471         Declare.
3472
3473 2010-03-24  Tom Tromey  <tromey@redhat.com>
3474
3475         * breakpoint.h (struct counted_command_line): New struct.
3476         (struct breakpoint) <commands>: Change type.
3477         (struct bpstats) <commands>: Change type.
3478         <commands_left>: New field.
3479         * breakpoint.c (alloc_counted_command_line): New function.
3480         (incref_counted_command_line): Likewise.
3481         (decref_counted_command_line): Likewise.
3482         (do_cleanup_counted_command_line): Likewise.
3483         (make_cleanup_decref_counted_command_line): Likewise.
3484         (breakpoint_set_commands): Use decref_counted_command_line and
3485         alloc_counted_command_line.
3486         (commands_command): Don't error if breakpoint commands are
3487         executing.
3488         (commands_from_control_command): Likewise.
3489         (bpstat_free): Update.
3490         (bpstat_copy): Likewise.
3491         (bpstat_clear_actions): Likewise.
3492         (bpstat_do_actions_1): Likewise.
3493         (bpstat_stop_status): Likewise.
3494         (print_one_breakpoint_location): Likewise.
3495         (delete_breakpoint): Likewise.
3496         (bpstat_alloc): Initialize new field.
3497         (tracepoint_save_command): Update.
3498         * tracepoint.c (encode_actions): Update.
3499         (trace_dump_command): Update.
3500
3501 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
3502
3503         * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
3504         * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
3505         (read_structure_type): For RealView, set TYPE_STUB on structures with
3506         no byte size and no children.
3507         (read_subroutine_type): Mark functions as prototyped by default.
3508         * symtab.c (producer_is_realview): New function.
3509         * symtab.h (expand_line_sal): Fix declaration formatting.
3510         (producer_is_realview): Declare.
3511
3512 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
3513
3514         * arm-tdep.c (skip_prologue_function): New function.
3515         (submask, bit, bits, sbits, BranchDest): Move higher in the file.
3516         (thumb_analyze_prologue): Document return value.  Recognize more
3517         Thumb instructions, skippable calls, and some Thumb-2 instructions.
3518         Add debug output.
3519         (arm_skip_prologue): Remove call dummy check.  Check the prologue
3520         for non-GNU compilers.
3521         (arm_instruction_changes_pc): New function.
3522         (arm_analyze_prologue): New function, broken out from
3523         arm_scan_prologue.  Recognize more ARM instructions and skippable
3524         calls.  Update comments.  Handle NULL cache.  Return the address
3525         of the first unrecognized instruction.  Do not skip past other
3526         instructions which change control flow.  Add debug output.
3527         (arm_scan_prologue): Use arm_analyze_prologue.
3528         (ARM_PC_32): Delete.
3529         (shifted_reg_val): Simplify ARM_PC_32 check.
3530
3531 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
3532
3533         * tracepoint.c (tvariables_info_1): Actually compute
3534         the number of rows in the result.
3535
3536 2010-03-24  Pedro Alves  <pedro@codesourcery.com>
3537
3538         * remote.c (crc32): Constify `buf' parameter.
3539         (remote_verify_memory): New, abstracted out from...
3540         (compare_sections_command): ... this.  Remove hardcoded target
3541         checks.
3542         (init_remote_ops): Install remote_verify_memory.
3543         * target.c (target_verify_memory): New.
3544         * target.h (struct target_ops) <to_verify_memory>: New field.
3545         (target_verify_memory): Declare.
3546
3547 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
3548
3549         Implement -trace-save.
3550
3551         * mi-cmds.h (mi_cmds_trace_save): Declare.
3552         * mi-cmds.c (mi_cmds): Register -trace-save.
3553         * mi/mi-main.c (mi_cmd_trace_save): New.
3554         * remote.c (remote_save_trace_data): Take const parameter.
3555         * target.h (struct target_ops::to_save_trace_data): Take
3556         const parameter.
3557         * target.c (update_current_target): Adjust to the above.
3558         * tracepoint.c (trave_save): New, extracted from
3559         (trace_save_command): ...this.
3560         (tfile_trace_find): Remove message that is unnecessary now
3561         that 'tfind' reports found frame.
3562         * tracepoint.h (trace_save): Declare.
3563
3564 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
3565
3566         Implement -trace-find.
3567
3568         * mi/mi-cmds.c (mi_cmds): Register -trace-find.
3569         * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
3570         * mi/mi-main.c (mi_cmd_trace_find): New.
3571         * target.h (struct target_ops): Document to_trace_find.
3572         * tracepoint.h (tfind_1): Declare.
3573         * tracepoint.c (finish_tfind_command): Rename to...
3574         (tfind_1): ...this.
3575         * remote.c (remote_trace_find): Return -1 if target say
3576         there's no frame.  Improve error diagnostics.
3577
3578 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
3579
3580         -trace-define-variable and -trace-list-variables.
3581
3582         * tracepoint.c (create_trace_state_variable): Make
3583         private copy of name, as opposed to assuming the
3584         pointer lives forever.
3585         (tvariables_info_1): New.
3586         (tvariables_info): Use the above.
3587         * tracepoint.h (create_trace_state_variable, tvariables_info_1):
3588         Declare.
3589         * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
3590         and -trace-list-variables.
3591         * mi/mi-cmds.h (mi_cmd_trace_define_variable)
3592         (mi_cmd_trace_list_variables): New.
3593         * mi/mi-main.c (mi_cmd_trace_define_variable)
3594         (mi_cmd_trace_list_variables): New.
3595
3596 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
3597
3598         Implement -break-passcount.
3599
3600         * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
3601         * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
3602         * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
3603
3604 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
3605
3606         -trace-start/-trace-end/-trace-status.
3607
3608         * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
3609         and -trace-stop.
3610         * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
3611         (mi_cmd_trace_stop): Declare.
3612         * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
3613         (mi_cmd_trace_stop): New.
3614         * tracepoint.c (start_tracing): New, extracted from...
3615         (trace_start_command): ...this.
3616         (trace_status_mi): New.
3617         * tracepoint.h (struct trace_status): Document
3618         stopping_tracepoint.
3619         (start_tracing, stop_tracing, trace_status_mi): Declare.
3620
3621 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
3622
3623         Implement creating tracepoints with -break-insert.
3624
3625         * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
3626         to mean that tracepoint should be created.
3627
3628 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
3629
3630         * breakpoint.c (check_no_tracepoint_commands): Use
3631         current spelling of 'teval'.
3632
3633 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
3634
3635         Unify actions and commands
3636
3637         * defs.h (read_command_lines, read_command_lines_1): New
3638         parameters validator and closure.
3639         * tracepoint.h (struct action_line): Remove.
3640         * breakpoint.h (struct breakpoint): Remove the 'actions'
3641         field.
3642         * defs.h (enum command_control_type): New value
3643         while_stepping_control.
3644         (struct command_line): Add comments.
3645         * breakpoint.c (breakoint_is_tracepoint): New.
3646         (breakpoint_set_commands): For tracepoints,
3647         verify the commands are permissible.
3648         (check_tracepoint_commands): New.
3649         (commands_command): Require that each new line is validated using
3650         check_tracepoint_command, if we set commands for a tracepoint.
3651         (create_tracepoint_from_upload): Likewise.
3652         (print_one_breakpoint_location): Remove the code to print
3653         actions specifically.
3654         (tracepoint_save_command): Relay to print_command_lines.
3655         * cli/cli-script.c (process_next_line): New parameters validator
3656         and closure. Handle 'while-stepping'. Call validator if not null.
3657         (read_command_lines, read_command_lines1): Likewise.
3658         (recurse_read_control_structure): New parameters validator and
3659         closure. Handle while_stepping_control.
3660         (print_command_lines): Handle while-stepping.
3661         (get_command_line, define_command, document_command): Adjust.
3662         * remote.c (remote_download_tracepoint): Adjust.
3663         * tracepoint.c (make_cleanup_free_actions, read_actions)
3664         (free_actions, do_free_actions_cleanup): Remove.
3665         (trace_actions_command): Use read_command_lines.
3666         (validate_actionline): Use error in one place.
3667         (encode_actions_1): New, extracted from...
3668         (encode_actions): ...this. Also use cleanups for exception
3669         safety.
3670         (trace_dump_command): Adjust.
3671         * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
3672         it's tracepoint.
3673
3674 2010-03-23  Mike Frysinger  <vapier@gentoo.org>
3675
3676         * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
3677
3678 2010-03-22  Stan Shebs  <stan@codesourcery.com>
3679
3680         * value.c (value_static_field): Be lazy about the field's value.
3681
3682 2010-03-22  Reid Kleckner  <reid@kleckner.net>
3683
3684         PR gdb/11094
3685         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
3686         bp_jit_event.
3687         (disable_breakpoints_in_shlibs): Likewise.
3688
3689 2010-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
3690
3691         * dwarf2read.c (partial_die_parent_scope): Work around buggy
3692         GCC 4.1 debug info generation (GCC PR c++/28460).
3693         (determine_prefix): Likewise.
3694
3695 2010-03-20  Daniel Jacobowitz  <dan@codesourcery.com>
3696
3697         * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
3698         get_current_arch.
3699         * tui/tui-layout.c (extract_display_start_addr): Likewise.
3700
3701 2010-03-19  Stan Shebs  <stan@codesourcery.com>
3702
3703         * ax-gdb.c (gen_fetch): Handle bool.
3704         (gen_usual_unary): Ditto.
3705         (gen_cast): Ditto.
3706         (gen_equal): New function.
3707         (gen_less): New function.
3708         (gen_expr_binop_rest): Call them, also return integer type from
3709         logical operations.
3710         (gen_expr): Ditto.
3711
3712 2010-03-19  Tom Tromey  <tromey@redhat.com>
3713
3714         * jv-lang.c (jv_dynamics_objfile_data_key)
3715         (jv_type_objfile_data_key): New globals.
3716         (class_symtab): Move earlier.
3717         (jv_per_objfile_free): New function.
3718         (get_dynamics_objfile): Call set_objfile_data.  Add 'gdbarch'
3719         parameter.
3720         Remove ancient #if 1.
3721         (add_class_symbol): Remove redundant declaration.
3722         (java_lookup_class): Use alloc_type, not alloc_type_arch.
3723         (java_link_class_type): Mark as static.  Update.
3724         (jv_clear_object_type): New function.
3725         (set_java_object_type): Likewise.
3726         (get_java_object_type): Use set_java_object_type.
3727         (is_object_type): Likewise.
3728         (_initialize_java_language): Register new objfile keys.
3729         (get_java_class_symtab): Add 'gdbarch' parameter.
3730         (add_class_symtab_symbol): Update.
3731         (type_from_class): Update.
3732
3733 2010-03-19  Stan Shebs  <stan@codesourcery.com>
3734
3735         * ax-general.c (ax_const_l): Fix a sizing bug.
3736
3737 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
3738
3739         GDB 7.1 released.
3740
3741 2010-03-18  Stan Shebs  <stan@codesourcery.com>
3742             Pedro Alves  <pedro@codesourcery.com>
3743
3744         * target.h (struct target_ops): New method
3745         to_set_circular_trace_buffer.
3746         (target_set_circular_trace_buffer): New macro.
3747         * target.c (update_current_target): Add
3748         to_set_circular_trace_buffer, fix to_set_disconnected_tracing
3749         default behavior.
3750         * remote.c (remote_set_circular_trace_buffer): New function.
3751         (init_remote_ops): Add it to vector.
3752         * tracepoint.h (struct trace_status): New field traceframes_created,
3753         change buffer_size and buffer_free to int.
3754         * tracepoint.c (circular_trace_buffer): New global.
3755         (start_tracing): Send values of disconnected tracing and circular
3756         trace buffer settings.
3757         (set_circular_trace_buffer): New function.
3758         (parse_trace_state): Handle total space and frames created.
3759         (trace_status_command): Display total space and total frames
3760         created.
3761         (trace_save): Write out new status values.
3762         (parse_trace_status): Set traceframe_count, traceframes_created,
3763         buffer_free and buffer_size to -1 by default.
3764         (_initialize_tracepoint): New setshow for circular-trace-buffer.
3765         * NEWS: Mention the circular trace buffer option.
3766
3767 2010-03-18  Tom Tromey  <tromey@redhat.com>
3768
3769         * infcmd.c (finish_command_continuation): Wrap print_return_value
3770         in TRY_CATCH.
3771
3772 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
3773
3774         * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
3775         DIE has a name before creating the associated partial symbol.
3776         (read_func_scope): Emit a complaint if the subprogram does not
3777         have a name or when we can't extract the subprogram PC bounds.
3778
3779 2010-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
3780
3781         * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
3782         instead of selected frame architecture.
3783
3784 2010-03-18  Pedro Alves  <pedro@codesourcery.com>
3785
3786         * infcmd.c (until_command): Use ERROR_NO_INFERIOR.  Ensure there's
3787         a valid selected thread, and that it is not running.
3788         (advance_command): Ditto.
3789         (finish_command): Ditto.
3790
3791 2010-03-17 Stan Shebs  <stan@codesourcery.com>
3792
3793         * ax-gdb.c (require_rvalue): Disallow non-scalars.
3794
3795         * infcall.c: Include tracepoint.h.
3796         (call_function_by_hand): Disallow calls in tfind mode.
3797         * infcmd.c: Include tracepoint.h.
3798         (ensure_not_tfind_mode): New function.
3799         (continue_1): Call it.
3800         (step_1) Ditto.
3801         (jump_command): Ditto.
3802         (signal_command): Ditto.
3803         (advance_command): Ditto.
3804         (until_command): Ditto.
3805         (finish_command): Ditto.
3806         * tracepoint.h (disconnect_or_stop_tracing): Declare.
3807
3808         * ax-gdb.h (struct axs_value): New field optimized_out.
3809         (gen_trace_for_var): Add gdbarch argument.
3810         * ax-gdb.c (gen_trace_static_fields): New function.
3811         (gen_traced_pop): Call it, add gdbarch argument.
3812         (gen_trace_for_expr): Update call to it.
3813         (gen_trace_for_var): Ditto, and report optimized-out variables.
3814         (gen_struct_ref_recursive): Check for optimized-out value.
3815         (gen_struct_elt_for_reference): Ditto.
3816         (gen_static_field): Pass gdbarch instead of expression, assume
3817         optimization if field not found.
3818         (gen_var_ref): Set the optimized_out flag.
3819         (gen_expr): Error on optimized-out variable.
3820         * tracepoint.c (collect_symbol): Handle struct-valued vars as
3821         expressions, skip optimized-out variables with computed locations.
3822         * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
3823         erroring out if location expression missing.
3824         (loclist_tracepoint_var_ref): Don't error out here.
3825
3826 2010-03-17  Tom Tromey  <tromey@redhat.com>
3827
3828         * dwarf2read.c (dwarf2_get_section_info): Handle case where no
3829         DWARF data is available.
3830
3831 2010-03-17  Daniel Jacobowitz  <dan@codesourcery.com>
3832
3833         * symfile.c (generic_load): Reset breakpoints after loading.
3834
3835 2010-03-17  Tom Tromey  <tromey@redhat.com>
3836
3837         * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
3838
3839 2010-03-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3840
3841         * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
3842         create_breakpoint call, adjust the parameters.
3843
3844 2010-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
3845             Chandru <chandru@in.ibm.com>
3846
3847         * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
3848         * valarith.c (value_subscripted_rvalue): Suppress error if
3849         TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
3850
3851 2010-03-16  Holger Hans Peter Freyther  <zecke@selfish.org>
3852
3853         * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
3854
3855 2010-03-16  Joel Brobecker  <brobecker@adacore.com>
3856
3857         * ada-tasks.c (task_command_1): Check that the task ptid is valid
3858         before doing the associated thread switch.
3859
3860 2010-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
3861
3862         * MAINTAINERS: Update my email address.
3863
3864 2010-03-16  Vladimir Prus  <vladimir@codesourcery.com>
3865
3866         Simplify MI breakpoint setting.
3867
3868         * breakpoint.c (break_command_really): Make nonstatic and
3869         rename to...
3870         (create_breakpoint): ...this. Rename prior function by this name
3871         to...
3872         (create_breakpoint_sal): ...this.
3873         (create_breakpoints): Rename to...
3874         (create_breakpoints_sal): ...this.
3875         (set_breakpoint): Remove.
3876         * breakpoint.h: Adjust to above changes.
3877         * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
3878
3879 2010-03-15 Stan Shebs  <stan@codesourcery.com>
3880
3881         * ax-gdb.c: Include cp-support.h.
3882         (find_field): Remove.
3883         (gen_primitive_field): New function.
3884         (gen_struct_ref_recursive): New function.
3885         (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
3886         of find_field.
3887         (gen_static_field): New function.
3888         (gen_struct_elt_for_reference): New.
3889         (gen_namespace_elt): New.
3890         (gen_maybe_namespace_elt): New.
3891         (gen_aggregate_elt_ref): New.
3892         (gen_expr): Add OP_SCOPE, display opcode name in error message.
3893
3894 2010-03-15  Tom Tromey  <tromey@redhat.com>
3895
3896         * dwarf2read.c (die_needs_namespace): Also return 0 for
3897         DW_TAG_subprogram.
3898
3899 2010-03-15  Sami Wagiaalla  <swagiaal@redhat.com>
3900
3901         PR c++/7936:
3902         * cp-support.h: Added char *declaration element to using_direct
3903         data struct.
3904         (cp_add_using): Added char *declaration argument.
3905         (cp_add_using_directive): Ditto.
3906         (cp_lookup_symbol_imports): made extern.
3907         * cp-namespace.c: Updated with the above changes.
3908         * dwarf2read.c (read_import_statement): Ditto.
3909         (read_namespace): Ditto.
3910         (read_import_statement): Support import declarations.
3911         * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
3912         declarations.
3913         Added support for 'declaration_only' search.
3914         (cp_lookup_symbol_namespace): Attempt to search for the name as
3915         is before consideration of imports.
3916         * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
3917         search at every block level search.
3918         Now takes language argument.
3919         (lookup_symbol_aux): Updated.
3920
3921 2010-03-15  Tom Tromey  <tromey@redhat.com>
3922
3923         * c-exp.y (name_not_typename): Add 'operator' clause.
3924
3925 2010-03-15  Ralf Corsepius  <ralf.corsepius@rtems.org>  (tiny change)
3926
3927         * configure.ac: Exit if ${gdb_target_obs}" is not set.
3928         * configure: Regenerate.
3929
3930 2010-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3931
3932         * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
3933         and ".sdynbss".  Update the comment.
3934
3935 2010-03-15  Jie Zhang  <jie@codesourcery.com>
3936
3937         * MAINTAINERS: Update my email address.
3938
3939 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
3940
3941         * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
3942
3943 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
3944
3945         * charset.c [USE_WIN32API]: Include <windows.h>.
3946          (_initialize_charset): Correct type of w32_host_default_charset.
3947
3948 2010-03-14  Pedro Alves  <pedro@codesourcery.com>
3949
3950         * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
3951
3952 2010-03-12  Tom Tromey  <tromey@redhat.com>
3953
3954         PR c++/9708:
3955         * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
3956         in a lexical block does not need a namespace.
3957         (new_symbol) <DW_TAG_variable>: Put extern variables on
3958         list_in_scope in all cases.
3959
3960 2010-03-12 Stan Shebs  <stan@codesourcery.com>
3961
3962         * ax-gdb.c (gen_expr): Add shift expressions.
3963         (gen_expr_binop_rest): Ditto.
3964
3965 2010-03-12  Sami Wagiaalla  <swagiaal@redhat.com>
3966
3967         * buildsym.c (finish_block): Reset using_directives pointer
3968         after block initialization.
3969
3970 2010-03-12  H.J. Lu  <hongjiu.lu@intel.com>
3971
3972         * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
3973         * i386-tdep.c (i386_word_names): Likewise.
3974
3975 2010-03-12  Pedro Alves  <pedro@codesourcery.com>
3976
3977         * target.c (memory_xfer_partial): Don't use the stack cache if
3978         inspecting trace frames.
3979         * tracepoint.c (finish_tfind_command): Invalidate the target
3980         dcache.
3981
3982 2010-03-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3983
3984         * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
3985         for the PIC displacement, print also the displacement value.
3986         (svr4_exec_displacement):  Print DISPLACEMENT if INFO_VERBOSE.
3987
3988 2010-03-10  Kevin Buettner  <kevinb@redhat.com>
3989
3990         * remote-mips.c (close_ports, mips_initialize_cleanups)
3991         (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
3992         (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
3993         (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
3994         (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
3995         (pmon_check_entry_address, pmon_check_total, pmon_end_download)
3996         (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
3997         comments describing each of these functions.
3998         (mips_enter_debug, mips_exit_debug, common_open)
3999         (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
4000         blank line after the comment describing the function.
4001
4002 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
4003
4004         * solib-svr4.c (svr4_exec_displacement): Return now success, new
4005         parameter displacementp.  Update comment.
4006         (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
4007         element exists.  Return if svr4_exec_displacement was not successful.
4008         Update comment.
4009
4010 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
4011             Daniel Jacobowitz  <dan@codesourcery.com>
4012
4013         * solib-svr4.c (read_program_header): Support type == -1 to read
4014         all program headers.
4015         (read_program_headers_from_bfd): New function.
4016         (svr4_static_exec_displacement): Remove and move the comment ...
4017         (svr4_exec_displacement): ... here.  Remove variable found.  New
4018         variable displacement.  Check also DYNAMIC.  Verify DISPLACEMENT
4019         alignment for ELF targets.  Compare target vs. exec_bfd PHDRs for ELF
4020         targets using read_program_headers_from_bfd.  Remove the call of
4021         svr4_static_exec_displacement.
4022
4023 2010-03-10  Tom Tromey  <tromey@redhat.com>
4024
4025         * dwarf2read.c (struct pubnames_header): Remove.
4026         (_PUBNAMES_HEADER): Remove.
4027         (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
4028         (struct aranges_header): Remove.
4029         (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
4030         (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
4031         (PUBNAMES_SECTION): Remove.
4032         (ARANGES_SECTION): Remove.
4033         (dwarf2_locate_sections): Don't handle pubnames or aranges.
4034         (dwarf2_build_psymtabs): Remove dead code.
4035         (dwarf2_build_psymtabs_easy): Remove.
4036
4037 2010-03-10  Tom Tromey  <tromey@redhat.com>
4038
4039         * elfread.c (elf_symfile_read): Don't call
4040         dwarf2_build_frame_info.
4041         * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
4042         (struct dwarf2_per_objfile) <objfile>: New field.
4043         (dwarf2_has_info): Now idempotent.  Set objfile field.
4044         (dwarf2_read_section): Check and set readin field.  Call
4045         posix_madvise.
4046         (dwarf2_build_psymtabs): Don't read all sections.
4047         (read_type_comp_unit_head): Read types section.
4048         (create_debug_types_hash_table): Likewise.
4049         (init_cu_die_reader): Add asserts.
4050         (process_type_comp_unit): Add assert.
4051         (dwarf2_build_psymtabs_hard): Read info section.
4052         (load_partial_comp_unit): Add assert.
4053         (create_all_comp_units): Read info section.
4054         (load_full_comp_unit): Likewise.
4055         (dwarf2_ranges_read): Read ranges section.
4056         (dwarf2_record_block_ranges): Add assert.
4057         (dwarf2_read_abbrevs): Read abbrev section.
4058         (read_indirect_string): Read str section.
4059         (dwarf_decode_line_header): Read line section.
4060         (read_signatured_type_at_offset): Read types section.
4061         (dwarf_decode_macros): Read macinfo section.
4062         (dwarf2_symbol_mark_computed): Read loc section.
4063         * dwarf2-frame.c (dwarf2_frame_find_fde): Call
4064         dwarf2_build_frame_info.
4065         (dwarf2_build_frame_info): Unconditionally set
4066         dwarf2_frame_objfile_data on the objfile.
4067         * configure.ac: Check for posix_madvise.
4068         * config.in, configure: Rebuild.
4069
4070 2010-03-10  Tom Tromey  <tromey@redhat.com>
4071
4072         * xcoffread.c (xcoff_start_psymtab): Update.
4073         (xcoff_end_psymtab): Update.
4074         * psymtab.c (allocate_psymtab): Remove dead code.
4075         * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
4076         void*.
4077         * mdebugread.c (parse_partial_symbols): Update.
4078         (new_psymtab): Likewise.
4079         * dwarf2read.c (process_psymtab_comp_unit): Update.
4080         (psymtab_to_symtab_1): Update.
4081         * dbxread.c (start_psymtab): Update.
4082         (end_psymtab): Likewise.
4083
4084 2010-03-10  Tom Tromey  <tromey@redhat.com>
4085
4086         * xcoffread.c: Include psymtab.h.
4087         (xcoff_sym_fns): Update.
4088         * symtab.h (struct partial_symbol): Remove.
4089         (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
4090         (struct partial_symtab): Remove.
4091         (PSYMTAB_TO_SYMTAB): Remove.
4092         (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
4093         (find_pc_sect_psymtab): Remove.
4094         (find_pc_sect_symtab_via_partial): Declare.
4095         (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
4096         (find_main_psymtab): Remove.
4097         (find_main_filename): Declare.
4098         (fixup_psymbol_section): Remove.
4099         (fixup_section): Declare.
4100         * symtab.c: Include psymtab.h.
4101         (lookup_symtab): Use lookup_symtab method.
4102         (lookup_partial_symtab): Remove.
4103         (find_pc_sect_psymtab_closer): Remove.
4104         (find_pc_sect_psymtab): Remove.
4105         (find_pc_sect_symtab_via_partial): New function.
4106         (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
4107         (fixup_section): No longer static.
4108         (fixup_psymbol_section): Remove.
4109         (lookup_symbol_aux): Use lookup_symbol_aux_quick.
4110         (lookup_global_symbol_from_objfile): Likewise.
4111         (lookup_symbol_aux_psymtabs): Remove.
4112         (lookup_symbol_aux_quick): New function.
4113         (lookup_symbol_global): Use lookup_symbol_aux_quick.
4114         (lookup_partial_symbol): Remove.
4115         (basic_lookup_transparent_type_quick): New function.
4116         (basic_lookup_transparent_type): Use it.
4117         (find_main_psymtab): Remove.
4118         (find_main_filename): New function.
4119         (find_pc_sect_symtab): Use find_pc_sect_symtab method.
4120         (find_line_symtab): Use expand_symtabs_with_filename method.
4121         (output_partial_symbol_filename): New function.
4122         (sources_info): Use map_partial_symbol_filenames.
4123         (struct search_symbols_data): New type.
4124         (search_symbols_file_matches): New function.
4125         (search_symbols_name_matches): Likewise.
4126         (search_symbols): Use expand_symtabs_matching method.
4127         (struct add_name_data): Rename from add_macro_name_data.
4128         (add_macro_name): Update.
4129         (add_partial_symbol_name): New function.
4130         (default_make_symbol_completion_list): Use
4131         map_partial_symbol_names.
4132         (struct add_partial_symbol_name): New type.
4133         (maybe_add_partial_symtab_filename): New function.
4134         (make_source_files_completion_list): Use
4135         map_partial_symbol_filenames.
4136         (expand_line_sal): Use expand_symtabs_with_filename method.
4137         * symmisc.c: Include psymtab.h.
4138         (print_objfile_statistics): Use print_stats method.
4139         (dump_objfile): Use dump method.
4140         (dump_psymtab, maintenance_print_psymbols)
4141         (maintenance_info_psymtabs, maintenance_check_symtabs)
4142         (extend_psymbol_list): Remove.
4143         * symfile.h (struct quick_symbol_functions): New struct.
4144         (struct sym_fns) <qf>: New field.
4145         (sort_pst_symbols): Remove.
4146         (increment_reading_symtab): Declare.
4147         * symfile.c: Include psymtab.h.
4148         (compare_psymbols, sort_pst_symbols): Remove.
4149         (psymtab_to_symtab): Remove.
4150         (increment_reading_symtab): New function.
4151         (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
4152         method.
4153         (set_initial_language): Use find_main_filename.
4154         (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
4155         (free_named_symtabs): Remove unused code.
4156         (start_psymtab_common, add_psymbol_to_bcache)
4157         (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
4158         Remove.
4159         * stack.c: Include psymtab.h, symfile.h.
4160         (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
4161         * source.h (psymtab_to_fullname): Don't declare.
4162         * source.c: Include psymtab.h.
4163         (select_source_symtab): Use find_last_source_symtab method.
4164         (forget_cached_source_info): Use forget_cached_source_info
4165         method.
4166         (find_and_open_source): No longer static.
4167         (psymtab_to_fullname): Remove.
4168         * somread.c: Include psymtab.h.
4169         (som_sym_fns): Update.
4170         * psympriv.h: New file.
4171         * psymtab.h: New file.
4172         * psymtab.c: New file.
4173         * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
4174         (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
4175         * objfiles.c: Include psymtab.h.
4176         (objfile_relocate1): Use relocate method.
4177         (objfile_has_partial_symbols): Use has_symbols method.
4178         * mipsread.c: Include psymtab.h.
4179         (ecoff_sym_fns): Update.
4180         * mi/mi-cmd-file.c: Include psymtab.h.
4181         (print_partial_file_name): New function.
4182         (mi_cmd_file_list_exec_source_files): Use
4183         map_partial_symbol_filenames.
4184         * mdebugread.c: Include psympriv.h.
4185         * machoread.c: Include psympriv.h.
4186         (macho_sym_fns): Update.
4187         * m2-exp.y (yylex): Use lookup_symtab.
4188         * elfread.c: Include psympriv.h.
4189         (elf_sym_fns): Update.
4190         * dwarf2read.c: Include psympriv.h.
4191         * dbxread.c: Include psympriv.h.
4192         (aout_sym_fns): Update.
4193         * cp-support.c: Include psymtab.h.
4194         (read_in_psymtabs): Remove.
4195         (make_symbol_overload_list_qualified): Use
4196         expand_symtabs_for_function method.
4197         * coffread.c: Include psympriv.h.
4198         (coff_sym_fns): Update.
4199         * blockframe.c: Include psymtab.h.
4200         (find_pc_partial_function): Use find_pc_sect_symtab method.
4201         * ada-lang.h (ada_update_initial_language): Update.
4202         * ada-lang.c: Include psymtab.h.
4203         (ada_update_initial_language): Remove 'main_pst' argument.
4204         (ada_lookup_partial_symbol): Remove.
4205         (struct ada_psym_data): New type.
4206         (ada_add_psyms): New function.
4207         (ada_add_non_local_symbols): Use map_ada_symtabs method.
4208         (struct add_partial_datum): New type.
4209         (ada_add_partial_symbol_completions): New function.
4210         (ada_make_symbol_completion_list): Use map_partial_symbol_names.
4211         (ada_exception_support_info_sniffer): Update.
4212         * Makefile.in (SFILES): Add psymtab.c.
4213         (COMMON_OBS): Add psymtab.o.
4214         (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
4215
4216 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
4217
4218         * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
4219
4220 2010-03-10  Sami Wagiaalla  <swagiaal@redhat.com>
4221
4222         PR C++/11236:
4223         * cp-namespace.c (cp_add_using): Deleted.
4224         (cp_add_using_directive): Use obstack allocations.
4225         Merged the function cp_add_using into this one.
4226         Added 'struct obstack *' argument.
4227         (cp_scan_for_anonymous_namespaces): Updated.
4228         * cp-support.h: Updated.
4229         * dwarf2read.c (read_import_statement): Updated.
4230         (read_namespace): Updated.
4231
4232 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
4233
4234         * windows-nat.c (cygwin_conv_path): Remove old macro.
4235
4236 2010-03-10  Pedro Alves  <pedro@codesourcery.com>
4237
4238         * breakpoint.c (condition_command): Handle watchpoint conditions.
4239         (is_hardware_watchpoint): Add comment.
4240         (is_watchpoint): New.
4241         (update_watchpoint): Don't reparse the watchpoint's condition
4242         unless necessary.
4243         (WP_IGNORE): New.
4244         (watchpoint_check): Use it.
4245         (bpstat_check_watchpoint): Handle it.
4246         (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
4247         conditions in a frame where it makes sense.
4248         (watch_command_1): Store the innermost block of the condition
4249         expression.
4250         (delete_breakpoint): Delete the watchpoint condition expression.
4251         * breakpoint.h (struct bp_location) <cond>: Update comment.
4252         (struct breakpoint): New field `cond_exp_valid_block'.
4253
4254 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
4255
4256         Adjust handling of Ada DIEs after dwarf2_physname patch.
4257         * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
4258
4259 2010-03-09  Christopher Faylor  <me+cygwin@cgf.cx>
4260             Pierre Muller  <muller@ics.u-strasbg.fr>
4261
4262         * windows-nat.c (cygwin_conv_path): Redefine to properly convert
4263         from/to posix/win32.
4264         (windows_make_so): Use non-Cygwin 1.7 specific function.
4265         (windows_create_inferior): Make sure that cygallargs points to
4266         original args in non Cygwin 1.7. case.
4267
4268 2010-03-09  Michael Snyder  <msnyder@vmware.com>
4269
4270         * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
4271         after target_read_memory to get host byte order.
4272         (i386_process_record): Ditto.
4273
4274 2010-03-09  Keith Seitz  <keiths@redhat.com>
4275
4276         Based on work from Daniel Jacobowitz  <dan@codesourcery.com>
4277         * c-typeprint.c (cp_type_print_method_args): For non-static methods,
4278         print out const or volatile qualifiers, too.
4279         (c_type_print_args): Add parameters show_artificial and language.
4280         Skip artificial parameters when requested.
4281         Use the appropriate language printer.
4282         (c_type_print_varspec): Tell c_type_print_args to skip artificial
4283         parameters and pass language_c.
4284         * dwarf2read.c (die_list): New file global.
4285         (struct partial_die_info): Update comments for name field.
4286         (pdi_needs_namespace): Renamed to ...
4287         (die_needs_namespace): ... this. Rewrite.
4288         (dwarf2_linkage_name): Remove.
4289         (add_partial_symbol): Do not predicate the call to
4290         partial_die_full_name based on pdi_needs_namespace.
4291         Remove call to cp_check_possible_namespace_symbols and associated
4292         outdated comments.
4293         (guess_structure_name): Do not inspect child subprogram DIEs.
4294         (dwarf2_fullname): Update comments.
4295         Use die_needs_namespace to assist in computing the name.
4296         (read_func_scope): Use dwarf2_name to get the DIE's name.
4297         Use dwarf2_physname to get the "linkage name" of the DIE.
4298         (dwarf2_add_member_field): Use dwarf2_physname instead of
4299         dwarf2_linkage_name.
4300         (read_structure_type): For structs and classes, set TYPE_NAME, too.
4301         (determine_class): Remove.
4302         (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
4303         except Ada.
4304         (new_symbol): Unconditionally call dwarf2_name.
4305         Compute the "linkage name" using dwarf2_physname.
4306         Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
4307         When determining to scan for anonymous C++ namespaces, ignore
4308         the linkage name.
4309         (dwarf2_physname): New function.
4310         (dwarf2_full_name): Move content to new function and call
4311         that.
4312         (dwarf2_compute_name): "New" function.
4313         (_initialize_dwarf2_read): Initialize die_list.
4314         * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
4315         physname.
4316         (gnu_v3_print_method_ptr): Use the physname for virtual methods
4317         without a demangled name.
4318         Print out type information for non-virtual methods.
4319         * linespec.c (decode_line_1): Force ANY string using "::" (or
4320         "." for java) to use decode_compound, and clean up any stray quoting.
4321         If we found a file symtab, re-evaluate whether the remainder is_quoted.
4322         (decode_compound): Stop consuming at an open parenthesis.
4323         Keep template parameters.
4324         Keep any overload information.
4325         Keep keywords like "const".
4326         Remove paren_pointer.
4327         Move is_quoted check from set_flags to here.
4328         Remove #if 0 code from 2000. Ten years is long enough.
4329         (find_method): Before comparing symbol names, canonicalize the string
4330         from the user.
4331         If a specific overload is requested, find it. Otherwise throw an error.
4332         (find_method_overload_end): New function.
4333         (set_flags): Remove.
4334         (decode_compound): Assume that parentheses are matched.
4335         It's a lot easier.
4336         * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
4337         to cplus_demangle.
4338         * linespec.c (decode_line_1): Keep important keywords like
4339         "const" and "volatile".
4340         * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
4341         * typeprint.h (c_type_print_args): Add declaration.
4342         * ui-file.c (do_ui_file_obsavestring): New function.
4343         (ui_file_obsavestring): New function.
4344         * ui-file.h (ui_file_obsavestring): Add declaration.
4345         * valops.c (find_overload_match): Resolve the object to
4346         a non-pointer type.
4347         If the object is a data member, search the object for the member
4348         and return with staticp set.
4349         Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
4350         Do not attempt to extract a function name from non-function types.
4351         If the extracted function name and the original name are the same,
4352         we don't have a C++ method.
4353
4354         From Jan Kratochvil  <jan.kratochvil@redhat.com>:
4355         * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
4356
4357         * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
4358         and arguments from symbol lookups.
4359         * ax-gdb.c (gen_expr): Likewise.
4360         * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
4361         cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
4362         lookup_possible_namespace_symbol): Likewise.
4363         * cp-support.c (read_in_psymtabs): Likewise.
4364         * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
4365         * language.h (la_lookup_symbol_nonlocal): Likewise.
4366         * scm-valprint.c (scm_inferior_print): Likewise.
4367         * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
4368         * solib-svr.c (elf_lookup_lib): Likewise.
4369         * solib.c (show_auto_solib_add): Likewise.
4370         * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
4371         * symmisc.c (maintenance_check_symtabs): Likewise.
4372         * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
4373         lookup_symbol_aux_local, lookup_symbol_aux_block,
4374         lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
4375         lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
4376         lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
4377         basic_lookup_transparent_type, find_main_psymtab,
4378         lookup_block_symbol): Likewise.
4379         * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
4380         lookup_symbol_global, lookup_symbol_aux_block,
4381         lookup_symbol_partial_symbol, lookup_block_symbol,
4382         lookup_global_symbol, value_maybe_namespace_elt): Likewise.
4383
4384 2010-03-09  Pierre Muller  <muller@ics.u-strasbg.fr>
4385
4386         * python/python-internal.h: Include symtab.h.
4387
4388 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
4389             Pierre Muller  <muller@ics.u-strasbg.fr>
4390
4391         * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
4392         * p-valprint.c (pascal_val_print): Remove undeed block and fix
4393         indentation.
4394
4395 2010-03-08  Tom Tromey  <tromey@redhat.com>
4396
4397         * breakpoint.c (breakpoint_1): Add "QUIT".
4398
4399 2010-03-08  Daniel Jacobowitz  <dan@codesourcery.com>
4400             Pedro Alves  <pedro@codesourcery.com>
4401
4402         * solib.c (solib_find): Replace extension if
4403         solib_symbols_extension is set in the target gdbarch.
4404         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4405         solib_symbols_extension to "sym".
4406         * gdbarch.sh (solib_symbols_extension): New variable.
4407         (pstring): New function.
4408         * gdbarch.h, gdbarch.c: Regenerate.
4409
4410 2010-03-08  Tom Tromey  <tromey@redhat.com>
4411
4412         PR cli/9591:
4413         * NEWS: Update.
4414         * utils.c: Include main.h.
4415         (fputs_maybe_filtered): Don't paginate if `batch_flag'.
4416         (defaulted_query): Use default answer if `batch_flag'.
4417         * main.h (batch_flag): Declare.
4418         * main.c (batch_flag): New global.
4419         (captured_main): Remove 'batch'.  Update.
4420
4421 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
4422
4423         From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
4424         and Kevin Buettner:
4425
4426         * remote-mips.c (rockhopper_ops): New target_ops struct.
4427         (MON_ROCKHOPPER): New mips_monitor_type.
4428         (read_hex_value): New function.
4429         (mips_request): Send 8-byte values with a 'T' packet.  Read the
4430         packet argument as a string and use read_hex_value to parse it.
4431         (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
4432         (rockhopper_open): New function.
4433         (mips_wait): Read the PC, FP and SP fields as strings.  Use
4434         read_hex_value to parse them and mips_set_register to commit them.
4435         (mips_set_register): New function.
4436         (mips_fetch_registers): Do not cast register value to "unsigned"
4437         when reading a MON_ROCKHOPPER 't' packet.  Use mips_set_register.
4438         (mips_store_registers): Use a 'T' packet to set registers when
4439         using MON_ROCKHOPPER.
4440         (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
4441         and expect the total to be printed before the entry address.
4442         (_initialize_remote_mips): Initialize and add rockhopper_ops.
4443
4444 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
4445
4446         * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
4447         Change return value to int.  Store value fetched in location
4448         addressed by `val'.  Use function's return value as success
4449         or failure indicator.  Adjust all callers.
4450
4451 2010-03-08  Pierre Muller  <muller@ics.u-strasbg.fr>
4452
4453         * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
4454
4455 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4456             Hui Zhu  <teawater@gmail.com>
4457
4458         * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
4459         tmp_to_stopped_data_address.
4460         (record_open): Reset tmp_to_stopped_by_watchpoint and
4461         tmp_to_stopped_data_address.
4462         * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
4463         to_stopped_data_address.
4464
4465 2010-03-08  Hui Zhu  <teawater@gmail.com>
4466
4467         * i386-tdep.c (i386_process_record): Initialize regnum.
4468
4469 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4470
4471         * symfile.c (addr_info_make_relative): New variable sect_name, use it.
4472         Do not warn on ".gnu.liblist" and ".gnu.conflict".
4473
4474 2010-03-08  Joel Brobecker  <brobecker@adacore.com>
4475
4476         Memory error when reading wrong core file.
4477         * solib-svr4.c (solib_svr4_r_map): catch and print all exception
4478         errors while reading the inferior memory, and return zero if
4479         an exception was raised.
4480
4481 2010-03-07  Michael Snyder  <msnyder@vmware.com>
4482
4483         * record.c (record_restore): Rename tmpu8 to rectype.
4484
4485         * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
4486         tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
4487
4488         (i386_record_push): Rename local tmpulongest to addr.
4489
4490         (i386_process_record): Rename local tmpulongest to addr.
4491
4492         Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
4493         addr64.
4494
4495         Rename local variable tmpu8 to opcode8 and regnum.
4496
4497 2010-03-07  Joel Brobecker  <brobecker@adacore.com>
4498
4499         * remote.c (remote_get_ada_task_ptid): New function.
4500         (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
4501
4502 2010-03-06  Christopher Faylor  <me+cygwin@cgf.cx>
4503
4504         * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
4505         block.  Define helper macros to reduce ifdefs in code.
4506         (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
4507         size.  Call unadorned GetModuleFileNameEx rather than
4508         GetModuleFileNameEx*.
4509         (windows_make_so): Use __PMAX to denote maximum buffer size and
4510         cygwin_buf_t for buffer type.  Use GetSystemDirectory{W,A} as
4511         appropriate.
4512         (get_image_name): Use __PMAX to denote maximum buffer size.
4513         (handle_load_dll): Likewise.
4514         (windows_pid_to_exec_file): Likewise.
4515         (windows_create_inferior): Add many accommodations for older Cygwin and
4516         non-Cygwin.
4517         (bad_GetModuleFileNameExW): Control inclusion of this function based on
4518         __USEWIDE conditional.
4519         (bad_GetModuleFileNameExA): Likewise.
4520         (_initialize_loadable): Just use real function names without the dyn_
4521         part since they are defined earlier.
4522
4523 2010-03-05  Corinna Vinschen  <vinschen@redhat.com>
4524             Tom Tromey  <tromey@redhat.com>
4525
4526         * utils.c (host_char_to_target): Add 'gdbarch' argument.
4527         (parse_escape): Likewise.
4528         * python/py-utils.c (unicode_to_target_string): Update.
4529         (unicode_to_target_python_string): Update.
4530         (target_string_to_unicode): Update.
4531         * printcmd.c (printf_command): Update.
4532         * p-exp.y (yylex): Update.
4533         * objc-exp.y (yylex): Update.
4534         * mi/mi-parse.c: Include charset.h.
4535         (mi_parse_escape): New function.
4536         (mi_parse_argv): Use it.
4537         * jv-exp.y (yylex): Update.
4538         * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
4539         function.
4540         (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
4541         * gdbarch.sh (auto_charset, auto_wide_charset): New.
4542         * gdbarch.c: Rebuild.
4543         * gdbarch.h: Rebuild.
4544         * defs.h (parse_escape): Update.
4545         * cli/cli-setshow.c: Include arch-utils.h.
4546         (do_setshow_command): Update.
4547         * cli/cli-cmds.c (echo_command): Update.
4548         * charset.h (target_charset, target_wide_charset): Update.
4549         * charset.c: Include arch-utils.h.
4550         (target_charset_name): Default to "auto".
4551         (target_wide_charset_name): Likewise.
4552         (show_target_charset_name): Handle "auto".
4553         (show_target_wide_charset_name): Likewise.
4554         (be_le_arch): New global.
4555         (set_be_le_names): Add 'gdbarch' argument.
4556         (validate): Likewise.  Don't call set_be_le_names.
4557         (set_charset_sfunc, set_host_charset_sfunc)
4558         (set_target_charset_sfunc, set_target_wide_charset_sfunc):
4559         Update.
4560         (target_charset): Add 'gdbarch' argument.
4561         (target_wide_charset): Likewise.  Remove 'byte_order' argument.
4562         (auto_target_charset_name): New global.
4563         (default_auto_charset, default_auto_wide_charset): New functions.
4564         (_initialize_charset): Set auto_target_charset_name.  Allow "auto"
4565         for target charsets.  Copy result of nl_langinfo.  Use GetACP if
4566         USE_WIN32API.
4567         * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
4568         remove 'byte_order' argument.  Update.
4569         (classify_type): Likewise.
4570         (c_emit_char): Update.
4571         (c_printchar): Update.
4572         (c_printstr): Update.
4573         (c_get_string): Update.
4574         (evaluate_subexp_c): Update.
4575         * arch-utils.h (default_auto_charset, default_auto_wide_charset):
4576         Declare.
4577         * python/python.c (gdbpy_target_charset): New function.
4578         (gdbpy_target_wide_charset): Likewise.
4579         (GdbMethods): Update.
4580         * NEWS: Update.
4581
4582 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
4583
4584         * symfile.c (build_section_addr_info_from_objfile): Do not mask
4585         off high address bits.
4586
4587 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
4588
4589         * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
4590         address as UnsignedLongLong, not LongLong.
4591
4592 2010-03-05  Kevin Buettner  <kevinb@redhat.com>
4593             Pedro Alves  <pedro@codesourcery.com>
4594
4595         * remote-mips.c (gdbthread.h): Include.
4596         (remote_mips_ptid): Declare.
4597         (mips_error): Only mourn the inferior when inferior_ptid is non-null.
4598         (common_open): Set inferior_ptid, add it as an inferior, and
4599         as a thread too.  Delete FIXME comment regarding start_remote().
4600         (mips_close): Invoke generic_mourn_inferior().
4601         (mips_kill): Make sure that target_mourn_inferior is invoked.
4602         (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
4603         it's now invoked from mips_close().
4604         (mips_load): Don't null out inferior_ptid.  Don't call
4605         clear_symtab_users().
4606         (mips_thread_alive, mips_pid_to_str): New functions.
4607         (_initialize_remote_mips): Initialize remote_mips_ptid.  Initialize
4608         to_thread_alive and to_pid_to_str operations.
4609
4610 2010-03-04  Tom Tromey  <tromey@redhat.com>
4611
4612         * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
4613         in DWARF 3 and later.
4614         (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
4615
4616 2010-03-04  Keith Seitz  <keiths@redhat.com>
4617
4618         * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
4619         If the filename portion of the linespec was quoted, recheck the
4620         remainder for additional quoting.
4621         (locate_first_half): Skip over completer chars, too.
4622
4623 2010-03-04  Tom Tromey  <tromey@redhat.com>
4624
4625         * printcmd.c (printf_command): Pass dummy argument to
4626         printf_filtered.
4627
4628 2010-03-04  Doug Evans  <dje@google.com>
4629
4630         * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
4631         unwound_fp.
4632
4633         * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
4634
4635 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
4636
4637         * breakpoint.c (update_watchpoint): Create a sentinel location if
4638         the software watchpoint isn't watching any memory.
4639         (breakpoint_address_bits): Skip dummy software watchpoint locations.
4640
4641 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
4642
4643         * utils.c (fputs_maybe_filtered): Check if there's already a top
4644         level interpreter before dereferencing it.  If there isn't one,
4645         don't paginate either.
4646
4647 2010-03-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4648
4649         * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
4650         the state right when single stepping.
4651         (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
4652         Get the next PC along with the instruction state.
4653         (thumb_get_next_pc): Remove.
4654         (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
4655
4656 2010-03-04  Hui Zhu  <teawater@gmail.com>
4657
4658         * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
4659
4660 2010-03-03  Pedro Alves  <pedro@codesourcery.com>
4661
4662         * utils.c (fputs_maybe_filtered): Always disable pagination if the
4663         top level interpreter is MI.
4664
4665 2010-03-03 Stan Shebs  <stan@codesourcery.com>
4666
4667         * remote.c (remote_download_tracepoint): Iterate over locations.
4668         * tracepoint.c (validate_actionline): Ditto.
4669         (encode_actions): Add location argument.
4670         (trace_dump_command): Check all locations to see if stepping
4671         frame.
4672
4673 2010-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4674             Eli Zaretskii  <eliz@gnu.org>
4675
4676         * NEWS: Add X86 general purpose registers section.
4677
4678 2010-03-03  Tom Tromey  <tromey@redhat.com>
4679
4680         PR mi/11098:
4681         * varobj.c (install_new_value): Handle case where new print_value
4682         is NULL.
4683
4684 2010-03-03  Dainis Jonitis  <jonitis@gmail.com>
4685
4686         PR gdb/11345:
4687         * printcmd.c (printf_command): Print end of format string using
4688         printf_filtered.
4689
4690 2010-03-02  Tom Tromey  <tromey@redhat.com>
4691
4692         * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
4693         * defs.h (read_command_lines_1): Add missing 'void'.
4694         * cli/cli-script.c (recurse_read_control_structure): Add missing
4695         'void'.
4696         (read_next_line): Likewise.
4697         (read_command_lines_1): Likewise.
4698
4699 2010-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
4700
4701         * spu-tdep.c (spu_analyze_prologue): Track instruction to
4702         store backchain as part of prologue.
4703
4704 2010-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
4705
4706         * progspace.c (update_address_spaces): Update inferior address spaces
4707         also.
4708
4709 2010-03-02  Doug Evans  <dje@google.com>
4710
4711         * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
4712         lowpc,highpc args to addrmap_set_empty.
4713
4714 2010-03-02  H.J. Lu  <hongjiu.lu@intel.com>
4715
4716         * amd64-tdep.c (amd64_byte_names): New.
4717         (amd64_word_names): Likewise.
4718         (amd64_dword_names): Likewise.
4719         (amd64_pseudo_register_name): Likewise.
4720         (amd64_pseudo_register_read): Likewise.
4721         (amd64_pseudo_register_write): Likewise.
4722         (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
4723         and num_mmx_regs.  Call set_gdbarch_pseudo_register_read,
4724         set_gdbarch_pseudo_register_write and
4725         set_tdesc_pseudo_register_name.  Don't call
4726         set_gdbarch_num_pseudo_regs.  Don't set mm0_regnum.
4727
4728         * i386-tdep.c (i386_num_mmx_regs): Removed.
4729         (i386_num_pseudo_regs): Likewise.
4730         (i386_byte_names): New.
4731         (i386_word_names): Likewise.
4732         (i386_byte_regnum_p): Likewise.
4733         (i386_word_regnum_p): Likewise.
4734         (i386_mmx_regnum_p): Updated.
4735         (i386_pseudo_register_name): Make it global.  Handle byte and
4736         word pseudo-registers.
4737         (i386_pseudo_register_read): Likewise.
4738         (i386_pseudo_register_write): Likewise.
4739         (i386_pseudo_register_type): Handle byte, word and dword
4740         pseudo-registers
4741         (i386_register_reggroup_p): Don't include pseudo
4742         registers, except for MXX, in any register groups.  Don't
4743         include pseudo byte, word, dword registers in general_reggroup.
4744         (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
4745         num_dword_regs, al_regnum, ax_regnum and eax_regnum.  Put MMX
4746         pseudo-registers after word pseudo-registers.  Call
4747         set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
4748
4749         * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
4750         al_regnum, num_word_regs, ax_regnum, num_dword_regs and
4751         eax_regnum.
4752         (i386_byte_regnum_p): New.
4753         (i386_word_regnum_p): Likewise.
4754         (i386_dword_regnum_p): Likewise.
4755         (i386_pseudo_register_name): Likewise.
4756         (i386_pseudo_register_read): Likewise.
4757         (i386_pseudo_register_write): Likewise.
4758
4759 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4760
4761         * target-descriptions.c (tdesc_type): Remove
4762         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
4763         (tdesc_predefined_types): Likewise.
4764         (tdesc_gdb_type): Likewise.  Pass NULL to append_flags_type_flag
4765         if flag name is empty.
4766         (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
4767
4768         * features/i386/32bit-core.xml: Define i386_eflags.
4769         * features/i386/64bit-core.xml: Likewise.
4770
4771         * features/i386/32bit-sse.xml: Define i386_mxcsr.
4772         * features/i386/64bit-sse.xml: Likewise.
4773
4774         * features/i386/amd64-linux.c: Regenerated.
4775         * features/i386/amd64.c: Likewise.
4776         * features/i386/i386-linux.c: Likewise.
4777         * features/i386/i386.c: Likewise.
4778
4779 2010-03-01  Daniel Jacobowitz  <dan@codesourcery.com>
4780
4781         * gdbtypes.c (append_composite_type_field_raw): New.
4782         (append_composite_type_field_aligned): Use the new function.
4783         * gdbtypes.h (append_composite_type_field_raw): Declare.
4784         * target-descriptions.c (struct tdesc_type_field): Add start and end.
4785         (struct tdesc_type_flag): New type.
4786         (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
4787         kind.  Add size to u.u.  Add u.f for flags.
4788         (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
4789         (tdesc_free_type): Likewise.
4790         (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
4791         (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
4792         (tdesc_add_bitfield, tdesc_add_flag): New.
4793         * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
4794         (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
4795         * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
4796         current_type.  Add current_type_size and current_type_is_flags.
4797         (tdesc_start_union): Clear the new fields.
4798         (tdesc_start_struct, tdesc_start_flags): New.
4799         (tdesc_start_field): Handle struct fields, including bitfields.
4800         (field_attributes): Make type optional.  Add start and end.
4801         (union_children): Rename to struct_union_children.
4802         (union_attributes): Rename to struct_union_attributes.  Add optional
4803         size.
4804         (flags_attributes): New.
4805         (feature_children): Add struct and flags.
4806         * features/gdb-target.dtd: Add flags and struct to features.
4807         Make field type optional.  Add field start and end.
4808
4809 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4810
4811         * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
4812         (amd64_linux_read_description): Likewise.
4813         (_initialize_amd64_linux_nat): Set to_read_description to
4814         amd64_linux_read_description.
4815
4816         * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
4817         (amd64_linux_register_name): Removed.
4818         (amd64_linux_register_type): Likewise.
4819         (amd64_linux_core_read_description): New.
4820         (amd64_linux_init_abi): Set target description to
4821         tdesc_amd64_linux if needed.  Support orig_rax in target
4822         description.  Don't call set_gdbarch_register_name nor
4823         set_gdbarch_register_type.  Call
4824         set_gdbarch_core_read_description.
4825         (_initialize_amd64_linux_tdep): Call
4826         initialize_tdesc_amd64_linux.
4827
4828         * amd64-linux-tdep.h (tdesc_amd64_linux): New.
4829
4830         * amd64-tdep.c:  Include "features/i386/amd64.c".
4831         (amd64_register_names): Removed.
4832         (amd64_register_name): Likewise.
4833         (amd64_register_type): Likewise.
4834         (amd64_init_abi):  Set num_core_regs and register_names.  Set
4835         target description to tdesc_amd64 if needed.  Don't call
4836         set_gdbarch_register_name nor set_gdbarch_register_type.
4837         (_initialize_amd64_tdep): New.
4838
4839         * i386-linux-nat.c (i386_linux_read_description): New.
4840         (_initialize_i386_linux_nat): Set to_read_description to
4841         i386_linux_read_description.
4842
4843         * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
4844         (i386_linux_register_name): Removed.
4845         (i386_linux_core_read_description): New.
4846         (i386_linux_read_description): Likewise.
4847         (i386_linux_init_abi): Don't call set_gdbarch_register_name.
4848         Set target description to tdesc_i386_linux if needed.  Support
4849         orig_eax.  Set register_reggroup_p.  Call
4850         set_gdbarch_core_read_description.
4851         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
4852
4853         * i386-linux-tdep.h (tdesc_i386_linux): New.
4854
4855         * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
4856         with I387_NUM_REGS.
4857
4858         * i386-tdep.c: Include "features/i386/i386.c".
4859         (i386_register_names): Make it const.
4860         (i386_mmx_names): Likewise.
4861         (i386_num_register_names): Removed.
4862         (i386_register_name): Likewise.
4863         (i386_eflags_type): Likewise.
4864         (i386_mxcsr_type): Likewise.
4865         (i386_sse_type): Likewise.
4866         (i386_register_type): Likewise.
4867         (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
4868         (i386_pseudo_register_name): New.
4869         (i386_pseudo_register_type): Likewise.
4870         (i386_mmx_type): Make it static.
4871         (i386_gdbarch_init): Check arch.  Replace I386_NUM_FREGS with
4872         I387_NUM_REGS.  Set num_core_regs and register_names.  Don't
4873         call set_gdbarch_register_name nor set_gdbarch_register_type.
4874         Set register_reggroup_p.  Set target description to tdesc_i386
4875         if needed.  Call set_tdesc_pseudo_register_type,
4876         set_tdesc_pseudo_register_name and tdesc_use_registers.
4877         (_initialize_i386_tdep): Call initialize_tdesc_i386.
4878         initialize_tdesc_x86_64.
4879
4880         * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
4881         i386_mxcsr_type and i386_sse_type.  Add num_core_regs,
4882         register_names, tdesc and register_reggroup_p.
4883         (I386_NUM_FREGS): Removed.
4884         (i386_eflags_type): Likewise.
4885         (i386_mxcsr_type): Likewise.
4886         (i386_mmx_type): Likewise.
4887         (i386_sse_type): Likewise.
4888         (i386_register_name): Likewise.
4889         (i386_regnum): Add I386_MXCSR_REGNUM.
4890         (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
4891
4892         * i387-tdep.h (I387_NUM_REGS): New.
4893
4894         * regformats/i386/i386-linux.dat: Generated.
4895         * regformats/i386/i386.dat: Likewise.
4896         * regformats/i386/amd64-linux.dat: Likewise.
4897         * regformats/i386/amd64.dat: Likewise.
4898
4899         * regformats/reg-i386-linux.dat: Removed.
4900         * regformats/reg-i386.dat: Likewise.
4901         * regformats/reg-x86-64-linux.dat: Likewise.
4902         * regformats/reg-x86-64.dat: Likewise.
4903
4904 2010-03-01  Corinna Vinschen  <vinschen@redhat.com>
4905
4906         * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
4907         cygwin_conv_path API rather than the deprecated
4908         cygwin_conv_to_full_posix_path.
4909         * windows-nat.c:
4910         (GetModuleFileNameExA): Undefine for Cygwin.
4911         (GetModuleFileNameExW): Define for Cygwin.
4912         (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
4913         Call GetModuleFileNameExW and convert path to POSIX using
4914         cygwin_conv_path.
4915         (windows_make_so): Always define p.  Drop unused variable m.
4916         Don't use Win32 functions to check file existance, rather use
4917         access on Cygwin.  Fetch system directory using GetSystemDirectoryW.
4918         Use canonicalize_file_name to get full path.
4919         (get_image_name): Use wcstombs, rather than WideCharToMultiByte
4920         to convert Unicode pathname to multibyte on Cygwin.  Otherwise,
4921         use correct target buffer size in call to WideCharToMultiByte.
4922         (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
4923         (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
4924         (windows_create_inferior): Convert all paths and arguments to wchar_t
4925         and use CreateProcessW on Cygwin.
4926         (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
4927         (bad_GetModuleFileNameExA): Undefine for Cygwin.
4928         (bad_GetModuleFileNameExW): Define for Cygwin.
4929         (_initialize_loadable): Load GetModuleFileNameExW into
4930         dyn_GetModuleFileNameExW on Cygwin.  Don't load ANSI function on Cygwin.
4931
4932 2010-02-28  Phil Muldoon  <pmuldoon@redhat.com>
4933
4934         PR python/11036
4935         * python/py-frame.c (frapy_read_var): Add block argument and logic
4936         to cope with user provided blocks.
4937
4938 2010-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4939
4940         * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
4941         New comment.
4942
4943 2010-02-28  Corinna Vinschen  <vinschen@redhat.com>
4944
4945         * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
4946         (COMMON_OBS): ... to here since it's used unconditionally.
4947         (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
4948         (SFILES): To here.
4949
4950 2010-02-26  David Daney  <ddaney@caviumnetworks.com>
4951
4952         * mips-linux-tdep.c: Update struct sigframe comments.
4953         (SIGFRAME_CODE_OFFSET): Delete macro.
4954         (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
4955         this_frame's sp.
4956         (mips_linux_n32n64_sigframe_init): Same.
4957
4958 2010-02-26  Kevin Buettner  <kevinb@redhat.com>
4959
4960         * remote-mips.c (mips_load): Don't use pseudo-register when
4961         invalidating regcache.
4962
4963 2010-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
4964
4965         * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
4966
4967 2010-02-26  Pedro Alves  <pedro@codesourcery.com>
4968
4969         * NEWS: Add "New targets" section, and mention ARM Symbian
4970         support.
4971
4972 2010-02-26  Ulrich Weigand  <uweigand@de.ibm.com>
4973
4974         * dwarf2loc.c (struct piece_closure): Remove ARCH member,
4975         add ADDR_SIZE member.
4976         (allocate_piece_closure): Update.
4977         (copy_pieced_value_closure): Likewise.
4978         (dwarf2_evaluate_loc_desc): Likewise.
4979         (read_pieced_value): Use DWARF address size instead of
4980         GDB's gdbarch_addr_bit as size of values on the DWARF stack.
4981
4982 2010-02-26  Phil Muldoon  <pmuldoon@redhat.com>
4983             Tom Tromey  <tromey@redhat.com>
4984
4985         * python/py-type.c (typy_lookup_typename): Add in block argument.
4986         If provided restrict lookup to specified blocks.
4987         (gdbpy_lookup_type): Likewise.
4988         (typy_lookup_type): Likewise.
4989
4990 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
4991
4992         Symbian config
4993
4994         gdb/
4995         * arm-symbian-tdep.c: New.
4996         * configure.tgt (arm*-*-symbianelf*): New target.
4997         (*-*-symbianelf*): New OS.
4998         * osabi.c (gdb_osabi_names): Add Symbian.
4999         * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
5000         * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
5001         (ALLDEPFILES): Add arm-symbian-tdep.c.
5002
5003 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
5004
5005         * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
5006
5007 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
5008
5009         * mi/mi-main.c (mi_cmd_execute): Fix typo.
5010
5011 2010-02-24  Phil Muldoon  <pmuldoon@redhat.com>
5012             Tom Tromey  <tromey@redhat.com>
5013             Thiago Jung Bauermann  <bauerman@br.ibm.com>
5014
5015         * python/python.c (_initialize_python): Call
5016         gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
5017         gdbpy_initialize_blocks.
5018         * python/python-internal.h: Declare struct symbol, block and
5019         symtab_and_line.  Declare block_object_type and
5020         symbol_object_type
5021         (gdbpy_lookup_symbol gdbpy_block_for_pc)
5022         (symtab_and_line_to_sal_object, symtab_to_symtab_object)
5023         (symbol_to_symbol_object,  block_to_block_object)
5024         (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
5025         (gdbpy_initialize_blocks ): Declare.
5026         * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
5027         (frapy_select): Add methods.
5028         (frapy_read_var): Add symbol branch.
5029         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
5030         py-block.
5031         (SUBDIR_PYTHON_SRCS): Likewise.
5032         (py-symbol.o): New rule.
5033         (py-symtab.o): Likewise.
5034         (py-block.o): Likewise.
5035         * python/py-symbol.c: New file.
5036         * python/py-symtab.c: Likewise.
5037         * python/py-block.c: Likewise.
5038
5039 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
5040
5041         PR gdb/11321
5042
5043         * inferior.h (prepare_for_detach): Declare.
5044         (struct inferior) <detaching>: New field.
5045         * infrun.c (prepare_for_detach): New.
5046         (handle_inferior_event) <random signal>: Don't stop if detaching.
5047         * target.c (target_detach): Call prepare_for_detach.
5048
5049 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
5050
5051         Per-process displaced stepping queue.
5052
5053         * infrun.c (displaced_step_ptid, displaced_step_request_queue)
5054         (displaced_step_gdbarch, displaced_step_closure,
5055         (displaced_step_original, displaced_step_copy): Move globals to
5056         this...
5057         (struct displaced_step_inferior_state): ... new structure.
5058         (displaced_step_inferior_states): New global.
5059         (get_displaced_stepping_state, add_displaced_stepping_state)
5060         (remove_displaced_stepping_state, infrun_inferior_exit): New
5061         functions.
5062         (displaced_step_clear): Add displaced_step_inferior_state
5063         parameter, and adjust to handle it.
5064         (displaced_step_clear_cleanup): Parameter is now a
5065         displaced_step_inferior_state.  Adjust.
5066         (displaced_step_prepare): Adjust.
5067         (displaced_step_fixup, displaced_step_fixup)
5068         (infrun_thread_ptid_changed, resume): Adjust.
5069         (init_wait_for_inferior): Don't call displaced_step_clear.
5070         (infrun_thread_stop_requested): Rewrite.
5071         (_initialize_infrun): Install infrun_inferior_exit as
5072         inferior_exit observer.
5073
5074 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
5075
5076         * inferior.h (ptid_match): Declare.
5077         * infrun.c (ptid_match): New.
5078         * remote.c (queued_stop_reply): Rewrite and use ptid_match.
5079         (handle_notification): Add debug output.
5080         * linux-nat.c (ptid_match): Delete.
5081
5082 2010-02-24  David S. Miller  <davem@davemloft.net>
5083
5084         * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
5085         * syscalls/sparc-linux.xml: New.
5086         * syscalls/sparc64-linux.xml: New.
5087         * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
5088         * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
5089         (sparc32_linux_get_syscall_number): New function.
5090         (sparc32_linux_init_abi): Set syscall XML file name and hook up
5091         syscall number fetcher.
5092         * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
5093         (sparc64_linux_get_syscall_number): New function.
5094         (sparc64_linux_init_abi): Set syscall XML file name and hook up
5095         syscall number fetcher.
5096
5097 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
5098
5099         Multiexec MI
5100
5101         * breakpoint.c (clear_syscall_counts): Take struct inferior*.
5102         * inferior.c (add_inferior_silent): Notify inferior_added
5103         observer.
5104         (delete_inferior_1): Notify inferior_removed observer.
5105         (exit_inferior_1): Pass inferior, not pid, to observer.
5106         (inferior_appeared): Likewise.
5107         (add_inferior_with_spaces): New.
5108         (add_inferior_command): Use the above.
5109         * inferior.h (delete_inferior_1, add_inferior_with_spaces):
5110         Declare.
5111
5112         * inflow.c (inflow_inferior_exit): Likewise.
5113         * jit.c (jit_inferior_exit_hook): Likewise.
5114
5115         * mi/mi-cmds.c (mi_cmds): Register add-inferior and
5116         remove-inferior.
5117         * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5118         * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
5119         (report_initial_inferior): New.
5120         (mi_inferior_removed): Register the above. Make sure
5121         inferior_added observer is called on the first inferior.
5122         (mi_new_thread, mi_thread_exit): Thread group is now identified by
5123         inferior number, not pid.
5124         (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
5125         affected.
5126         * mi/mi-main.c (current_context): New.
5127         (proceed_thread_callback): Use typed closure.
5128         Proceed everything if pid is 0. Most implementation split into
5129         (proceed_thread): ... this.
5130         (run_one_inferior): New.
5131         (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
5132         Adjust for multiexec behaviour.
5133         (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5134         (mi_cmd_execute): Handle the 'thread-group' option here.
5135         Do some extra checks.
5136         * mi-parse.c (mi_parse): Handle the --all and --thread-group
5137         options.
5138         * mi-parse.h (struct mi_parse): New fields all and thread_group.
5139
5140 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
5141
5142         Make -exec-run a proper MI commands.
5143
5144         * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
5145         * mi/mi-cmds.c (mi_cmds): Adjust.
5146         * mi/mi-main.c (mi_cmd_exec_run): New.
5147
5148 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
5149             Stan Shebs  <stan@codesourcery.com>
5150
5151         * tracepoint.h (set_traceframe_number)
5152         (cleanup_restore_current_traceframe): Declare.
5153         * tracepoint.c (set_traceframe_number): New.
5154         (struct current_traceframe_cleanup): New.
5155         (do_restore_current_traceframe_cleanup)
5156         (restore_current_traceframe_cleanup_dtor)
5157         (make_cleanup_restore_current_traceframe): New.
5158         * infrun.c: Include tracepoint.h.
5159         (fetch_inferior_event): Switch out and in of tfind mode.
5160
5161 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
5162
5163         * breakpoint.c (breakpoint_init_inferior): Also delete
5164         bp_shlib_event breakpoints.
5165         * solib-frv.c (enable_break): Remove call to
5166         remove_solib_event_breakpoints.
5167         * solib-svr4.c (enable_break): Ditto.
5168         * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
5169         * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
5170         * solib-som.c (som_solib_create_inferior_hook): Ditto.
5171         * solib-spu.c (spu_enable_break): Ditto.
5172
5173 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
5174
5175         * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
5176
5177 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
5178
5179         * varobj.c (varobj_update): Avoid non-constants in initializers.
5180
5181 2010-02-23  Tom Tromey  <tromey@redhat.com>
5182
5183         * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
5184         handle big-endian values.
5185         (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
5186
5187 2010-02-22  Pedro Alves  <pedro@codesourcery.com>
5188
5189         PR9605
5190
5191         gdb/
5192         * breakpoint.c (insert_bp_location): If inserting the read
5193         watchpoint failed, fallback to an access watchpoint.
5194         (bpstat_check_watchpoint): Stop for read watchpoint triggers even
5195         if the value changed, if not watching the same memory for writes.
5196         (watchpoint_locations_match): Add comment.
5197         (update_global_location_list): Copy the location's watchpoint type.
5198         * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
5199         handle read watchpoints here.
5200         (i386_insert_watchpoint): Read watchpoints aren't supported.
5201         * remote.c (remote_insert_watchpoint): Return 1 for unsupported
5202         packets.
5203         * target.h (target_insert_watchpoint): Update description.
5204
5205 2010-02-19  Tom Tromey  <tromey@redhat.com>
5206
5207         * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
5208         * m2-typeprint.c (m2_print_type): Update.
5209         * gdbtypes.c (recursive_dump_type): Update.
5210         (copy_type_recursive): Update.
5211         * c-typeprint.c (c_type_print_varspec_prefix): Update.
5212         (c_type_print_base): Update.
5213         * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
5214         Remove.
5215         (struct cplus_struct_type) <ntemplate_args>: Remove.
5216         <struct template_arg>: Remove.
5217         <is_dynamic>: Move earlier.
5218         (TYPE_TEMPLATE_ARGS): Remove.
5219         (TYPE_NTEMPLATE_ARGS): Remove.
5220         (TYPE_TEMPLATE_ARG): Remove.
5221
5222 2010-02-19  Tom Tromey  <tromey@redhat.com>
5223
5224         PR c++/8693, PR c++/9496:
5225         * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
5226         * c-exp.y (lex_one_token): Rename from yylex.  Don't call
5227         write_dollar_variable.  Don't try to classify NAME tokens.
5228         (token_and_value): New type.
5229         (token_fifo, popping, name_obstack): New globals.
5230         (classify_name): New function.
5231         (classify_inner_name): Likewise.
5232         (yylex): Likewise.
5233         (VARIABLE): Now has type sval.
5234         (exp : VARIABLE): Call write_dollar_variable.
5235         (qualified_name): Use TYPENAME, not typebase.  Add production for
5236         multiple "::" instances.
5237         (variable): Use name_not_typename.
5238         (qualified_type): Remove.
5239         (typebase): Update.
5240
5241 2010-02-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
5242
5243         * symfile.c (addr_info_make_relative): Extend comment.  Move SECT to
5244         a more inner block.  Initialize ADDR by LOWER_OFFSET only if it was
5245         found by bfd_get_section_by_name.
5246         * symfile.h (struct section_addr_info) <sectindex>: New comment.
5247
5248 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
5249
5250         * NEWS: Add new "[...] since 7.1" section.  Rename the "[...] since
5251         7.0 section" into "Changes in 7.1".
5252
5253 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
5254
5255         GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
5256         * version.in: Bump version to 7.1.50.20100219-cvs.
5257
5258 2010-02-18  Harald Koenig  <H.Koenig@science-computing.de>
5259
5260         * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
5261         * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
5262
5263 2010-02-17  Tom Tromey  <tromey@redhat.com>
5264
5265         * NEWS: Add Python API Improvements section.
5266
5267 2010-02-18  Daniel Jacobowitz  <dan@codesourcery.com>
5268
5269         * NEWS: Correct typo.
5270
5271 2010-02-17  Tom Tromey  <tromey@redhat.com>
5272
5273         * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
5274
5275 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5276
5277         * symfile.c (build_section_addr_info_from_objfile): Include sections
5278         only if they are SEC_ALLOC or SEC_LOAD.
5279
5280 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
5281
5282         PR shlibs/11293
5283         * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
5284         of ULONGEST for address size.
5285
5286 2010-02-17  Tom Tromey  <tromey@redhat.com>
5287
5288         * NEWS: Add C++ improvements section.
5289
5290 2010-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
5291
5292         * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
5293         PyThreadState_Swap): Avoid "statement with no effect" warning.
5294
5295 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5296
5297         * solib-svr4.c (enable_break <target_auxv_search>): New variable
5298         addr_bit.  Adjust LOAD_ADDR sign for cross-arch inferiors.
5299
5300 2010-02-17  Tristan Gingold  <gingold@adacore.com>
5301             Petr Hluzin  <petr.hluzin@gmail.com>
5302
5303         * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
5304         gdb_assert.  Fix info->size for SIG prologue.
5305
5306 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
5307
5308         * infcmd.c (show_inferior_tty_command): Check for NULL.
5309         Correct output message.
5310
5311 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
5312
5313         * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
5314         FUNCTION contains parentheses.  Improve removal of a trailing
5315         single quote.
5316
5317 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
5318
5319         * gcore.c (do_bfd_delete_cleanup): New function.
5320         (gcore_command): Use it.  Discard the cleanup after success.
5321         (gcore_copy_callback): Delete dead code.
5322
5323 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
5324
5325         * symfile.c (addr_info_make_relative): Always use
5326         find_lowest_section.
5327
5328 2010-02-16  Sami Wagiaalla <swagiaal@redhat.com>
5329
5330         * NEWS: Added entry for namespace fixes.
5331
5332 2010-02-15  Tom Tromey  <tromey@redhat.com>
5333
5334         * dwarf2read.c (guess_structure_name): Allocate name on the
5335         objfile obstack.
5336
5337 2010-02-15  Tom Tromey  <tromey@redhat.com>
5338
5339         * c-typeprint.c (c_type_print_base): Reverse order of test.
5340
5341 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5342
5343         * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize.  Optionally
5344         initialize it from ELF BFD.  Extend the prelink condition by it.
5345
5346 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5347
5348         * defs.h (parse_pid_to_attach): New.
5349         * utils.c (parse_pid_to_attach): New.
5350         * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
5351         * gnu-nat.c (gnu_attach): Likewise.
5352         * nto-procfs.c (procfs_attach): Likewise.
5353         * procfs.c (procfs_attach): Likewise.
5354         * windows-nat.c (windows_attach): Likewise.
5355         * inf-ptrace.c (inf_ptrace_attach): Likewise.  Remove variable dummy.
5356         * inf-ttrace.c (inf_ttrace_attach): Likewise.
5357         * remote.c (extended_remote_attach_1): Likewise.  New comment on getpid
5358         check.
5359
5360 2010-02-14  Masaki Muranaka  <monaka@monami-software.com>
5361
5362         * MAINTAINERS: Add myself for write after approval privileges.
5363
5364 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5365
5366         * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
5367         block.
5368
5369 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5370
5371         * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
5372         only if INFO_VERBOSE.
5373
5374 2010-02-12  Tomas Holmberg <th@virtutech.com>
5375
5376         * mi/mi-main.c: Added the --reverse flag to the following MI
5377         commands: exec-continue, exec-finish, exec-next, exec-step,
5378         exec-next-instruction, exec-step-instruction. This is to
5379         support reverse execution over the MI interface to gdb.
5380
5381 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
5382
5383         * tracepoint.c (_initialize_tracepoint): Specify that the address
5384         range of `tfind outsize' is exclusive, and that the address range
5385         of `tfind range' is inclusive, in the commands' help strings.
5386
5387 2010-02-12  Joel Brobecker  <brobecker@adacore.com>
5388
5389         Spurious "dll not found" error messages on x64-windows.
5390         * windows-nat.c: Add include of complaints.h.
5391         (handle_unload_dll): Change dll-not-found error into a complaint.
5392
5393 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
5394
5395         * breakpoint.c (allocate_bp_location): Use bp_loc_other for
5396         bp_tracepoint and bp_fast_tracepoint, not
5397         bp_loc_software_breakpoint.
5398         (update_global_location_list): Tracepoints are never duplicates of
5399         anything.
5400
5401 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
5402
5403         * breakpoint.c (break_command_really): Change return type to int.
5404         Return false if no breakpoint was created, true otherwise.
5405         (trace_command): Don't set the tracepoint count if no tracepoint
5406         was created.
5407         (ftrace_command): Ditto.
5408         (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
5409         created in the breakpoints table.
5410
5411 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5412             Ulrich Weigand  <uweigand@de.ibm.com>
5413
5414         * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
5415
5416 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
5417
5418         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
5419         the offset value isn't of integral type.
5420
5421 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5422
5423         * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
5424         New.
5425
5426 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
5427
5428         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
5429         non-subscriptable types.
5430         * valarith.c (binop_types_user_defined_p): New, abstracted out
5431         from ...
5432         (binop_user_defined_p): ... this.
5433         * value.h (binop_types_user_defined_p): Declare.
5434
5435 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
5436
5437         * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
5438         Merge uploaded TSVs before merging uploaded tracepoints.
5439
5440 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
5441
5442         * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
5443
5444 2010-02-11  Vladimir Prus  <vladimir@codesourcery.com>
5445
5446         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
5447         whitespace character after a dot in comment.
5448         (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
5449         Likewise.
5450         (list_args_or_locals): For the 'all' (that is
5451         -stack-list-variables) case, always output list of tuples.
5452         Output 'arg' field if variable is argument.
5453
5454 2010-02-10  Tom Tromey  <tromey@redhat.com>
5455
5456         * parser-defs.h (parser_debug): Declare.
5457         * parse.c (_initialize_parse): Install "debug parser" set/show
5458         command.
5459         (parser_debug): New global.
5460         (show_parserdebug): New function.
5461         * c-exp.y (c_parse): Set yydebug.
5462
5463 2010-02-10  H.J. Lu  <hongjiu.lu@intel.com>
5464
5465         * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
5466         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5467         (tdesc_predefined_types): Add i387_ext, i386_eflags and
5468         i386_mxcsr.
5469         (tdesc_find_type): New.
5470         (tdesc_gdb_type): Use tdesc_find_type.  Handle TDESC_TYPE_I387_EXT,
5471         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5472
5473         * target-descriptions.h (tdesc_find_type): New.
5474
5475 2010-02-10  Michael Snyder  <msnyder@vmware.com>
5476
5477         * gdb-gdb.py: Comment fix.
5478
5479 2010-02-09  Tristan Gingold  <gingold@adacore.com>
5480
5481         * machoread.c (macho_symfile_relocate): New function.
5482         (macho_sym_fns): Use macho_symfile_relocate instead of
5483         default_symfile_relocate.
5484         (macho_oso_data): New type.
5485         (current_oso): New variable.
5486         (macho_add_oso_symfile): Do not compute section_addr_info, but
5487         instead set vma of sections.
5488         Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
5489         Set and clear current_oso.
5490
5491 2010-02-09  Joel Brobecker  <brobecker@adacore.com>
5492
5493         Wrong type description for tagged type parameter.
5494         * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
5495         EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
5496         reference to a tagged type.
5497
5498 2010-02-09  Tristan Gingold  <gingold@adacore.com>
5499
5500         * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
5501         brothers of the parent.
5502
5503 2010-02-08  Tom Tromey  <tromey@redhat.com>
5504
5505         PR c++/8017:
5506         * value.h: Update.
5507         * valops.c (search_struct_field): Make 'name' const.
5508         (search_struct_method): Likewise.
5509         (find_method_list): Make 'method' const.
5510         (value_struct_elt): Make 'name' and 'err' const.
5511         (value_find_oload_method_list): Make 'method' const.
5512         (find_overload_match): Make 'name' const.
5513         * eval.c (evaluate_subexp_standard): New locals function,
5514         function_name.
5515         <OP_FUNCALL>: Handle OP_SCOPE specially.
5516
5517 2010-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
5518
5519         * infrun.c (handle_inferior_event): Do not look up regcache
5520         for exited processes.
5521
5522 2010-02-08  Chris Moller  <moller@mollerware.com>
5523
5524         PR gdb/10728
5525         * valarith.c (value_ptrdiff): Added a test for a zero type length,
5526         warn if found, and assume length = 1.
5527
5528 2010-02-08  Chris Moller  <cmoller@redhat.com>
5529
5530         PR gdb/9067
5531         * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
5532         cp_print_static_field)  Fix use of obstacks.
5533
5534 2010-02-08  Pedro Alves  <pedro@codesourcery.com>
5535
5536         * linux-nat.c (linux_nat_resume): In non-stop, also only tag
5537         resumed LWPs as resumed.
5538         (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
5539         we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
5540         of throwing an internal error.  If an LWP of a process we're not
5541         waiting for reports a signal, don't force collecting a SIGSTOP,
5542         and if it was breakpoint hit in non-stop mode, cancel it.  Don't
5543         go through all LWPs cancelling breakpoints in non-stop mode.
5544         (resume_stopped_resumed_lwps): New.
5545         (linux_nat_wait): Use it.
5546
5547 2010-02-07  H.J. Lu  <hongjiu.lu@intel.com>
5548
5549         * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
5550         i386/amd64 and i386/amd64-linux.
5551         (i386/i386-expedite): New.
5552         (i386/i386-linux-expedite): Likewise.
5553         (i386/amd64-expedite):Likewise.
5554         (i386/amd64-linux-expedite): Likewise.
5555         ($(outdir)/i386/i386-linux.dat): Likewise.
5556         ($(outdir)/i386/amd64.dat): Likewise.
5557         ($(outdir)/i386/amd64-linux.dat): Likewise.
5558
5559         * features/i386/32bit-core.xml: New.
5560         * features/i386/32bit-linux.xml: Likewise.
5561         * features/i386/32bit-sse.xml: Likewise.
5562         * features/i386/64bit-core.xml: Likewise.
5563         * features/i386/64bit-linux.xml: Likewise.
5564         * features/i386/64bit-sse.xml: Likewise.
5565         * features/i386/i386-linux.xml: Likewise.
5566         * features/i386/i386.xml: Likewise.
5567         * features/i386/amd64-linux.xml: Likewise.
5568         * features/i386/amd64.xml: Likewise.
5569         * features/i386/i386-linux.c: Likewise.
5570         * features/i386/i386.c: Likewise.
5571         * features/i386/amd64-linux.c: Likewise.
5572         * features/i386/amd64.c: Likewise.
5573
5574 2010-02-05  Sami Wagiaalla  <swagiaal@redhat.com>
5575
5576         PR c++/7935:
5577         * cp-support.h: Added char* alias element to using_direct data
5578         struct.
5579         (cp_add_using): Added char* alias argument.
5580         (cp_add_using_directive): Ditto.
5581         * cp-namespace.c: Updated with the above changes.
5582         (cp_lookup_symbol_imports): Check for aliases.
5583         * dwarf2read.c (read_import_statement): Figure out local alias
5584         for the import and pass it on to cp_add_using.
5585         (read_namespace): Pass alias argument to cp_add_using.
5586
5587 2010-02-05  Hui Zhu  <teawater@gmail.com>
5588
5589         * defs.h (gdb_bfd_errmsg): New extern.
5590         * exec.c (exec_file_attach): Change bfd_errmsg to
5591         gdb_bfd_errmsg.
5592         * utils.c (AMBIGUOUS_MESS1): New macro.
5593         (AMBIGUOUS_MESS2): New macro.
5594         (gdb_bfd_errmsg): New function.
5595
5596 2010-02-04  Doug Evans  <dje@google.com>
5597
5598         * solib-svr4.c (enable_break): Add comment.
5599
5600 2010-02-04  Anthony Green  <green@moxielogic.com>
5601
5602         * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
5603         gracefully.
5604
5605 2010-02-04  Tom Tromey  <tromey@redhat.com>
5606
5607         * valops.c (search_struct_field): Account for
5608         value_embedded_offset.  Fix check for virtual base past the end of
5609         the object.  Use value_copy when making a slice of the value.
5610
5611 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
5612
5613         PR tui/9622
5614         * tui/tui-interp.c (tui_init): Call tui_initialize_readline
5615         only if gdb_stdout is a tty.
5616
5617 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
5618
5619         * target-descriptions.c: Include "osabi.h".
5620         (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
5621         OSABI.
5622
5623 2010-02-04  Tristan Gingold  <gingold@adacore.com>
5624
5625         * machoread.c (macho_add_oso): Renamed to macho_register_oso.
5626         (macho_symtab_read): Adjust calls to macho_add_oso.
5627         (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
5628         (macho_symfile_read): Adjust call to macho_oso_symfile.
5629         (macho_new_init): Move this function after declarations.
5630         (macho_symfile_init): Ditto.
5631         * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
5632         * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
5633
5634 2010-02-04  Vladimir Prus  <vladimir@codesourcery.com>
5635
5636         Include MI command in remotelog.
5637
5638         * mi/mi-main.c (mi_execute_command): Call target_log_command.
5639
5640 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
5641
5642         * remote.c (remote_state): Remove gdbarch.
5643         (init_remote_state): Don't set gdbarch.
5644         (remote_query_supported): Pass target_gdbarch instead of
5645         rs->gdbarch to gdbarch_qsupported.
5646
5647 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
5648
5649         * gdbarch.sh: Add qsupported.
5650
5651         * gdbarch.c: Regenerated.
5652         * gdbarch.h: Likewise.
5653
5654         * remote.c (remote_state): Add gdbarch.
5655         (init_remote_state): Set gdbarch.
5656         (remote_query_supported): Support gdbarch_qsupported.
5657
5658 2010-02-03  Daniel Jacobowitz  <dan@codesourcery.com>
5659
5660         * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
5661         __FreeBSD_kernel_version.
5662
5663 2010-02-03  Tristan Gingold  <gingold@adacore.com>
5664
5665         * symfile.h (struct sym_fns): Add sym_relocate field.
5666         (default_symfile_relocate): New prototype.
5667         (symfile_relocate_debug_section): First argument is now an objfile.
5668         * symfile.c (default_symfile_relocate): Rename from
5669         symfile_relocate_debug_section, first argument is now an objfile.
5670         (symfile_relocate_debug_section): New function.
5671         * coffread.c (coff_sym_fns): Set sym_relocate field.
5672         * somread.c (som_sym_fns): Ditto.
5673         * mipsread.c (ecoff_sym_fns): Ditto.
5674         * machoread.c (macho_sym_fns): Ditto.
5675         * elfread.c (elf_sym_fns): Ditto.
5676         * dwarf2read.c (dwarf2_read_section): Ditto.
5677         * xcoffread.c (xcoff_sym_fns): Ditto.
5678         * dbxread.c (aout_sym_fns): Ditto.
5679         (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
5680         (elfstab_build_psymtabs): Ditto.
5681
5682 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
5683
5684         * defs.h (MAX_REGISTER_SIZE): Increase to 32.
5685
5686 2010-02-02  Tom Tromey  <tromey@redhat.com>
5687
5688         * valops.c (value_cast_structs): Try downcasting using the RTTI
5689         type.
5690
5691 2010-02-02  Tom Tromey  <tromey@redhat.com>
5692
5693         * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
5694         (gnuv2_baseclass_offset): Now static.
5695         * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
5696         * gnu-v2-abi.h: Remove.
5697
5698 2010-02-02  Tom Tromey  <tromey@redhat.com>
5699
5700         * m2-typeprint.c (m2_record_fields): Don't use
5701         TYPE_DECLARED_TYPE.
5702         * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
5703         (struct main_type) <flag_declared_class>: New field.
5704         (struct cplus_struct_type) <declared_type>: Remove.
5705         <ntemplate_args>: Move earlier.
5706         (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
5707         (DECLARED_TYPE_TEMPLATE): Remove.
5708         (TYPE_DECLARED_TYPE): Remove.
5709         * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
5710         * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
5711         * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
5712         TYPE_DECLARED_TYPE.
5713
5714 2010-02-02  Tom Tromey  <tromey@redhat.com>
5715
5716         PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
5717         * valops.c (search_struct_field): Compute nbases after calling
5718         CHECK_TYPEDEF.
5719         (check_field): Call CHECK_TYPEDEF.
5720         * cp-valprint.c (cp_print_value): Pass correct address to
5721         baseclass_offset.  Fix check for virtual base past the end of the
5722         object.  Don't offset address passed to cp_print_value_fields or
5723         apply_val_pretty_printer.
5724         (cp_print_value_fields): Fix call to val_print.
5725         (cp_print_value_fields_rtti): New function.
5726         * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
5727         * p-valprint.c (pascal_object_print_value_fields): Fix call to
5728         val_print.
5729         * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
5730         offset to address.
5731         * language.h (struct language_defn) <la_val_print>: Document.
5732         * c-lang.h (cp_print_value_fields_rtti): Declare.
5733
5734 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5735
5736         PR libc/11214:
5737         * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
5738         (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
5739         (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
5740
5741 2010-02-01  Michael Matz  <matz@suse.de>
5742             Daniel Jacobowitz  <dan@codesourcery.com>
5743
5744         * i386-tdep.c (i386_frame_cache): Assume valid anonymous
5745         functions use a frame pointer.
5746
5747 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5748
5749         * solib-svr4.c (scan_dyntag): New variable dyn_addr.  Replace gdb_assert
5750         by a conditional setting DYN_ADDR.  Use DYN_ADDR.
5751         * config/djgpp/fnchange.lst: Add translations for
5752         symbol-without-target_section.exp and symbol-without-target_section.c.
5753
5754 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
5755
5756         * gdbarch.sh: Set LANG and LC_ALL to C, not c.
5757         (remote_breakpoint_for_pc): Correct invalid_p check.
5758         * gdbarch.c: Regenerated.
5759
5760 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
5761
5762         * arm-tdep.c (arm_find_mapping_symbol): New function, from
5763         arm_pc_is_thumb.
5764         (arm_pc_is_thumb): Use arm_find_mapping_symbol.
5765         (extend_buffer_earlier): New function.
5766         (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
5767         (arm_adjust_breakpoint_address): New function.
5768         (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
5769
5770 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
5771
5772         * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
5773         (arm_linux_thumb2_le_breakpoint): New constants.
5774         (arm_linux_init_abi): Set thumb2_breakpoint and
5775         thumb2_breakpoint_size.
5776         * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
5777         (thumb_get_next_pc): Add a comment.  Rename IT to ITSTATE.
5778         Implement support for single stepping through IT blocks if
5779         a 32-bit Thumb breakpoint instruction is available.
5780         (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
5781         is available, use it when needed.
5782         (arm_remote_breakpoint_from_pc): New function.
5783         (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
5784         * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
5785         comment.  Add thumb2_breakpoint and thumb2_breakpoint_size.
5786
5787 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
5788
5789         * arch-utils.c (default_remote_breakpoint_from_pc): New function.
5790         * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
5791         * gdbarch.c, gdbarch.h: Regenerated.
5792         * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
5793         * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
5794         gdbarch_remote_breakpoint_from_pc.
5795
5796 2010-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
5797
5798         * infrun.c (prepare_to_proceed): Handle other signals which might
5799         match a breakpoint.
5800         (handle_inferior_event): Move the check for unusual breakpoint
5801         signals earlier.
5802
5803 2010-01-29  Paul Hilfinger  <hilfinger@adacore.com>
5804
5805         amd64 - function returning record with field straddling 2 registers.
5806         * amd64-tdep.c (amd_classify_aggregate): Handle the case of
5807         a record of length <= 16 in which a field straddles the two
5808         eightbytes.
5809
5810 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
5811
5812         Implement return values on amd64-windows.
5813         * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
5814         (amd64_windows_return_value): New function.
5815         (amd64_windows_init_abi): Call set_gdbarch_return_value with
5816         amd64_windows_return_value.
5817
5818 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
5819
5820         amd64-windows: 32 bytes allocated on stack by caller for integer
5821         parameter registers.
5822         * i386-tdep.h (struct gdbarch_tdep): Add new field
5823         integer_param_regs_saved_in_caller_frame.
5824         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5825         tdep->integer_param_regs_saved_in_caller_frame to 1.
5826         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
5827         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
5828
5829 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
5830
5831         amd64-windows: memory args passed by pointer during function calls.
5832         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
5833         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
5834         where tdep->memory_args_by_pointer is non-zero.
5835         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5836         tdep->memory_args_by_pointer to 1.
5837
5838 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
5839
5840         amd64-windows: Integer parameters in function calls.
5841         * i386-tdep.h (enum amd64_reg_class): New, moved here from
5842         amd64-tdep.c.
5843         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
5844         call_dummy_integer_regs, and classify.
5845         * amd64-tdep.h (amd64_classify): Add declaration.
5846         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
5847         (amd64_reg_class): Delete, moved to i386-tdep.h.
5848         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
5849         Replace call to amd64_classify by call to tdep->classify.
5850         (amd64_push_arguments): Get the list of registers to use for
5851         passing integer parameters from the gdbarch tdep structure,
5852         rather than using a hardcoded one.  Replace calls to amd64_classify
5853         by calls to tdep->classify.
5854         (amd64_push_dummy_call): Get the register number used for
5855         the "hidden" argument from tdep->call_dummy_integer_regs.
5856         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
5857         and tdep->call_dummy_integer_regs.  Set tdep->classify.
5858         * amd64-windows-tdep.c: Add include of gdbtypes.h.
5859         (amd64_windows_dummy_call_integer_regs): New static global.
5860         (amd64_windows_classify): New function.
5861         (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
5862         tdep->call_dummy_integer_regs and tdep->classify.
5863
5864 2010-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
5865
5866         * regcache.c (regcache_xmalloc): Add aspace argument.  Use it
5867         for the new regcache.  All callers updated.
5868         (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
5869         (get_thread_arch_regcache): Do not set aspace here.
5870         * regcache.h (regcache_xmalloc): Update declaration.
5871
5872         * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
5873         regcache_xmalloc updated.
5874
5875 2010-01-28  Joel Brobecker  <brobecker@adacore.com>
5876
5877         Another -Wunused-function error in procfs.c (sparc-solaris)
5878         * procfs.c (insert_dbx_link_breakpoint): Delete declaration.  Move up.
5879         Only define if SYS_syssgi is defined.
5880         (remove_dbx_link_breakpoint): Delete declaration.  Move up.
5881         (dbx_link_addr, insert_dbx_link_bpt_in_file)
5882         (insert_dbx_link_bpt_in_region): Move up.  Only define if SYS_syssgi
5883         is itself defined.
5884
5885 2010-01-27  Christopher Faylor  <me+cygwin@cgf.cx>
5886
5887         * windows-nat.c (windows_initialization_done): New variable.
5888         (get_windows_debug_event): Issue error when process dies before
5889         completely initializing.
5890         (do_initial_windows_stuff): Set flag to indicate when we are done with
5891         the initial steps of attaching to the child.
5892
5893 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
5894
5895         * symtab.h (struct symbol <symtab>): New comment on NULL values.
5896
5897 2010-01-27  Doug Evans  <dje@google.com>
5898
5899         * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
5900
5901         * breakpoint.c (bpstat_stop_status): Delete useless code.
5902
5903 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
5904
5905         * printcmd.c (display_uses_solib_p): Remove variable section.  Access
5906         objfile via SYMBOL_SYMTAB.
5907
5908 2010-01-26  Tom Tromey  <tromey@redhat.com>
5909
5910         PR exp/7643:
5911         * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
5912         coerce_array on result.
5913
5914 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
5915
5916         * cp-namespace.c (cp_lookup_symbol_namespace): Added
5917         search_parent argument.
5918         (cp_add_using): Initialize 'searched' field.
5919         (reset_directive_searched): New function.
5920         * cp-support.h: Add 'searched' field to using_direct struct.
5921         (cp_lookup_symbol_imports): Ditto.
5922         * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
5923         Perform recursive search.
5924         Implement non parent search.
5925         * valops.c (value_maybe_namespace_elt): Updated.
5926
5927 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
5928
5929         PR gdb/10929:
5930         * dwarf2read.c (read_lexical_block_scope): Create blocks for
5931         scopes which contain using directives even if they contain no
5932         declarations.
5933         * symtab.c (lookup_symbol_aux): Pass lowest level block to
5934         la_lookup_symbol_nonlocal.
5935         * cp-namespace.c (cp_lookup_symbol_nonlocal): call
5936         cp_lookup_symbol_namespace.
5937         (cp_lookup_symbol_namespace): Perform an import lookup at every
5938         block level.
5939         (cp_lookup_symbol_imports): New function.
5940         (cp_lookup_symbol_in_namespace): New function.
5941
5942 2010-01-25  Tom Tromey  <tromey@redhat.com>
5943
5944         PR gdb/11049:
5945         * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
5946         result.
5947
5948 2010-01-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5949
5950         * configure.ac: Only use host_os part when disabling TUI on osf.
5951         Use test to check variables, prefix strings with x.
5952         * configure: Regenerate.
5953
5954         * solib-osf.c (osf_current_sos): Initialize tail.
5955
5956 2010-01-25  gingold  <gingold@adacore.com>
5957
5958         * windows-nat.c (windows_continue): Use %x to print thread id.
5959         (get_windows_debug_event): Ditto.
5960
5961 2010-01-22  Tom Tromey  <tromey@redhat.com>
5962
5963         PR symtab/11199:
5964         * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
5965         type and arguments.  Use smash_to_methodptr_type.
5966         (read_structure_type): Call quirk_gcc_member_function_pointer
5967         later.
5968         * gdbtypes.h (smash_to_methodptr_type): Declare.
5969         * gdbtypes.c (smash_to_methodptr_type): New function.
5970         (lookup_methodptr_type): Use it.
5971
5972 2010-01-21  Tom Tromey  <tromey@redhat.com>
5973
5974         PR symtab/11198:
5975         * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
5976         * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
5977         * glibc-tdep.c (find_minsym_and_objfile): Remove.
5978         (glibc_skip_solib_resolver): Use
5979         lookup_minimal_symbol_and_objfile.
5980
5981 2010-01-21  Kai Tietz  <kai.tietz@onevision.com>
5982
5983         * inflow.c (check_syscall): Guard by #if clause for GO32 and
5984         WIN32 targets.
5985
5986 2010-01-20  Tom Tromey  <tromey@redhat.com>
5987
5988         PR backtrace/10770:
5989         * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
5990         BINOP_GEQ.  Handle BINOP_NOTEQUAL in the signed case.
5991         * dwarf2expr.c (new_dwarf_expr_context): Allocate
5992         dwarf_stack_values, not CORE_ADDRs.
5993         (execute_stack_op): Change DW_OP_div and comparison operators to
5994         use signed operands.
5995
5996 2010-01-20  Vladimir Prus  <vladimir@codesourcery.com>
5997
5998         Per-inferior args and tty and environment.
5999
6000         * infcmd.c (inferior_args): Rename to ...
6001         (inferior_args_scratch): ... this.
6002         (inferior_io_terminal): Rename to ...
6003         (inferior_io_terminal_scratch): ... this.
6004         (inferior_argc, inferior_argv): Remove.
6005         (set_inferior_io_terminal, get_inferior_io_terminal): Store
6006         inside current_inferior().
6007         (set_inferior_tty_command, show_inferior_tty_command): New.
6008         (get_inferior_args, set_inferior_args): Store inside
6009         current_inferior().
6010         (notice_args_set): Likewise and rename to...
6011         (set_args_command): ... this.
6012         (set_inferior_args_vector): Likewise.
6013         (notice_args_read): Rename to...
6014         (show_args_command): ...new.
6015         (tty_command): Remove.
6016         (run_command_1): Don't free old args, as they are freed by
6017         set_inferior_arg now.
6018         (run_no_args_command): Likewise.
6019         (inferior_environ): Remove.
6020         (run_command_1): Use environment of the current inferior.
6021         (environment_info, set_environment_command)
6022         (unset_environment_command, path_info, path_command): Likewise.
6023         (_initialize_infcmd): Adjust for function and variable renames.
6024         Do not init inferior_environ.
6025         * inferior.h (set_inferior_arg): Adjust prototype.
6026         (struct inferior): New fields args, argc, argv, terminal, environment.
6027         (inferior_environ): Remove declaration.
6028         * inferior.c (free_inferior): Free new fields.
6029         (add_inferior_silent): Initialize 'environment' field.
6030         * main.c (captured_main): Set arguments only after the initial
6031         inferior has been created.  Set set_inferior_io_terminal,
6032         not tty_command.
6033         * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
6034         inferior.
6035         (_initialize_mi_cmd_env): Adjust for disappearance of global
6036         inferior_environ.
6037         * solib.c (solib_find): Use environment of the current inferior.
6038
6039 2010-01-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6040
6041         * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
6042         HAVE_PYTHON.
6043         (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
6044
6045 2010-01-20  Joel Brobecker  <brobecker@adacore.com>
6046
6047         Get rid of ada-lang.c:function_name_from_pc.
6048         * ada-lang.c: Add "stack.h" #include.
6049         (function_name_from_pc): Delete.
6050         (is_known_support_routine): Replace call to function_name_from_pc
6051         by call to find_frame_funname.
6052         (ada_unhandled_exception_name_addr_from_raise): Likewise.
6053
6054 2010-01-19  Tom Tromey  <tromey@redhat.com>
6055
6056         PR c++/11026:
6057         * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
6058         objfile obstack.
6059
6060 2010-01-19  Tom Tromey  <tromey@redhat.com>
6061
6062         * top.c (stop_sig, float_handler, do_nothing): Remove.
6063
6064 2010-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
6065
6066         * breakpoint.c (watchpoint_check): Check the call
6067         gdbarch_in_function_epilogue_p before calling frame_find_by_id.
6068         Extend the comment.
6069         * config/djgpp/fnchange.lst: Add translations for
6070         watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
6071         watchpoint-cond-gone-stripped.c.
6072
6073 2010-01-19  Tom Tromey  <tromey@redhat.com>
6074
6075         PR c++/8000:
6076         * dwarf2read.c (partial_die_parent_scope): Put enumeration type
6077         into parent scope, and enumerator into grandparent scope.
6078
6079 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
6080
6081         * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
6082
6083 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
6084
6085         * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
6086         i[34567]86-*-solaris2.1[0-9]*.
6087         * configure.tgt: Likewise.
6088
6089 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
6090
6091         * NEWS: Document the source command enhancement allowing it
6092         to load Python scripts. Document the "set/show script-extension"
6093         commands.
6094
6095 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
6096
6097         Add -Wunused-function to compile flags.
6098         * configure.ac: Add -Wunused-function to build_warnings.
6099         * configure: Regenerate.
6100
6101 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
6102
6103         "delete" ada-lex.c:input function, not used.
6104         * ada-lex.l: #define YY_NO_INPUT.
6105
6106 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
6107
6108         Delete free_named_symtabs and associated cleanup.
6109         * symfile.h (free_named_symtabs): Delete declaration.
6110         * symfile.c: Remove some commented out code (clear_symtab_users_once).
6111         (cashier_psymtab): Comment function out.
6112         Delete declaration.
6113         (free_named_symtabs): Delete.
6114         * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
6115         * dbxread.c (end_psymtab): Likewise.
6116         * dwarf2read.c (process_psymtab_comp_unit): Ditto.
6117         * exec.c (exec_close_1): Ditto.
6118         * xcoffread.c (xcoff_end_psymtab): Likewise.
6119
6120 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
6121
6122         * stack.c (print_block_frame_labels): Comment function out.
6123
6124 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
6125
6126         Delete unused or undefined functions.
6127         * breakpoint.c (ep_parse_optional_filename): Delete.
6128         * dcache.c (dcache_write_line): Remove declaration.
6129         * infrun.c (build_infrun): Remove declaration.
6130         * tracepoint.c (tracepoint_save_command): Remove declaration.
6131         * linux-nat.c (init_lwp_list): Delete. No longer used.
6132         * event-loop.c (check_async_signal_handlers): Delete declaration.
6133         * infrun.c (init_execution_control_state): Delete.
6134         (proceed): Update comment to avoid mentioning
6135         init_execution_control_state.
6136         * target.c (kill_or_be_killed, nosupport_runtime): Delete.
6137         * ada-lang.c (ada_to_static_fixed_value): Delete.
6138         * scm-lang.c (evaluate_subexp_scm): Delete declaration.
6139         * cp-namespace.c (cp_copy_usings): Delete.
6140         * xml-syscall.c (xml_number_of_syscalls): Delete.
6141         * progspace.c (find_program_space_by_num): Delete.
6142         * inflow.c (handle_sigio): Delete declaration.
6143         * hppa-tdep.c (hppa_alignof): Delete.
6144         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
6145         (mipsnbsd_core_osabi_sniffer): Delete.
6146
6147 2010-01-18  Tom Tromey  <tromey@redhat.com>
6148
6149         PR c++/9680:
6150         * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
6151         (CONST_CAST): New tokens.
6152         (exp): Add new productions.
6153         (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
6154         reinterpret_cast.
6155         (is_cast_operator): New function.
6156         (yylex): Handle cast operators specially.
6157         * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
6158         UNOP_REINTERPRET_CAST>: New cases.
6159         * expprint.c (print_subexp_standard): Likewise.
6160         (op_name_standard): Likewise.
6161         (dump_subexp_body_standard): Likewise.
6162         * parse.c (operator_length_standard): Likewise.
6163         * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
6164         UNOP_REINTERPRET_CAST.
6165         * gdbtypes.c (class_types_same_p): New function.
6166         (is_ancestor): Use it.
6167         (is_public_ancestor): New function.
6168         (is_unique_ancestor_worker): Likewise.
6169         (is_unique_ancestor): Likewise.
6170         * gdbtypes.h (class_types_same_p, is_public_ancestor)
6171         (is_unique_ancestor): Declare.
6172         * valops.c (value_reinterpret_cast): New function.
6173         (dynamic_cast_check_1): Likewise.
6174         (dynamic_cast_check_2): Likewise.
6175         (value_dynamic_cast): Likewise.
6176         * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
6177
6178 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
6179
6180         Fix build failure when building without Python support.
6181         * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
6182         is not defined.
6183
6184 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
6185
6186         Use XVS field type instead of doing a parallel lookup.
6187         * ada-lang.c (ada_get_base_type): Follow the XVS field type
6188         if it is a reference type instead of doing a type lookup using
6189         the XVS field name.
6190
6191 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
6192
6193         Trust PAD types instead of using PAD___XVS.
6194         * ada-lang.c (trust_pad_over_xvs): New static variable.
6195         (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
6196         parallel XVS type, follow the XVS type instead of the PAD type.
6197         (unwrap_value): Make sure that there is no parallel XVE type
6198         before returning the value as is.
6199         (set_ada_list, show_ada_list): New static variables.
6200         (set_ada_command, show_ada_command): New functions.
6201         (_initialize_ada_language): Add new "set/show ada" prefix commands.
6202         Add new "set/show ada trust-PAD-over-XVS" setting.
6203
6204 2010-01-18  Tom Tromey  <tromey@redhat.com>
6205             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6206
6207         Allow "source" to load python scripts.
6208         * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
6209         * python/python.c (source_python_script): New function.
6210         * python/python.h (source_python_script): Add declaration.
6211         * cli/cli-cmds.c: #include exceptions.h and python/python.h.
6212         (script_ext_off, script_ext_soft, script_ext_strict)
6213         (script_ext_enums, script_ext_mode): New static constants.
6214         (show_script_ext_mode, find_and_open_script): New functions.
6215         (source_script): Enhance to handle Python scripts.
6216         (init_cli_cmds): Add set/show script-extension commands.
6217
6218 2010-01-16  Stan Shebs  <stan@codesourcery.com>
6219
6220         * tracepoint.h (struct trace_status): Use unsigned long long
6221         instead of size_t.
6222         * tracepoint.c (trace_status_command): Fix printf directive.
6223         (trace_save_command): Check fwrite returns, fix printf directive.
6224         (trace_filename): New global.
6225         (tfile_open): Set it, check read returns.
6226         (tfile_close): Free trace_filename.
6227         (tfile_get_traceframe_address): Check read returns.
6228         (tfile_trace_find): Ditto.
6229         (tfile_fetch_registers): Ditto.
6230         (tfile_xfer_partial): Ditto.
6231         (tfile_get_trace_state_variable_value): Ditto.
6232
6233 2010-01-15  Stan Shebs  <stan@codesourcery.com>
6234
6235         Add trace file support.
6236         * tracepoint.h (enum trace_stop_reason): New enum.
6237         (struct trace_status): New struct.
6238         (parse_trace_status): Declare.
6239         (struct uploaded_tp): Move here from remote.c,
6240         add fields for actions.
6241         (struct uploaded_tsv): New struct.
6242         * tracepoint.c (tfile_ops): New target vector.
6243         (trace_fd): New global.
6244         (tfile_open): New function.
6245         (tfile_close): New function.
6246         (tfile_files_info): New function.
6247         (tfile_get_trace_status): New function.
6248         (tfile_get_traceframe_address): New function.
6249         (tfile_trace_find): New function.
6250         (tfile_fetch_registers): New function.
6251         (tfile_xfer_partial): New function.
6252         (tfile_get_trace_state_variable_value): New function.
6253         (init_tfile_ops): New function.
6254         (_initialize_tracepoint): Call it, add tfile target.
6255         (trace_status): New global.
6256         (current_trace_status): New function.
6257         (trace_running_p): Remove, change all users to get from
6258         current_trace_status()->running.
6259         (get_trace_status): Remove.
6260         (trace_status_command): Call target_get_trace_status directly,
6261         report more detail including tracing stop reasons.
6262         (trace_find_command): Always allow tfind on a file.
6263         (trace_find_pc_command): Ditto.
6264         (trace_find_tracepoint_command): Ditto.
6265         (trace_find_line_command): Ditto.
6266         (trace_find_range_command): Ditto.
6267         (trace_find_outside_command): Ditto.
6268         (trace_frames_offset, cur_offset): Declare as off_t.
6269         (trace_regblock_size): Rename from reg_size, update users.
6270         (parse_trace_status): New function.
6271         (tfile_interp_line): New function.
6272         (disconnect_or_stop_tracing): Ensure current trace
6273         status before asking what to do.
6274         (stop_reason_names): New global.
6275         (trace_save_command): New command.
6276         (get_uploaded_tp): Move here from remote.c.
6277         (find_matching_tracepoint): Ditto.
6278         (merge_uploaded_tracepoints): New function.
6279         (parse_trace_status): Use stop_reason_names.
6280         (_initialize_tracepoint): Define tsave command.
6281         * target.h (target_ops): New fields to_save_trace_data,
6282         to_upload_tracepoints, to_upload_trace_state_variables,
6283         to_get_raw_trace_data, change to_get_trace_status
6284         to take a pointer to a status struct.
6285         (target_save_trace_data): New macro.
6286         (target_upload_tracepoints): New macro.
6287         (target_upload_trace_state_variables): New macro.
6288         (target_get_raw_trace_data): New macro.
6289         * target.c (update_current_target): Add new methods, change
6290         signature of to_get_trace_status.
6291         * remote.c (hex2bin): Make globally visible.
6292         (bin2hex): Ditto.
6293         (remote_download_trace_state_variable): Download name also.
6294         (remote_get_trace_status): Update parameter, use
6295         parse_trace_status.
6296         (remote_save_trace_data): New function.
6297         (remote_upload_tracepoints): New function.
6298         (remote_upload_trace_state_variables): New function.
6299         (remote_get_raw_trace_data): New function.
6300         (remote_start_remote): Use them.
6301         (_initialize_remote_ops): Add operations.
6302         * ax-gdb.c: Include breakpoint.h.
6303         * breakpoint.c (create_tracepoint_from_upload): Use
6304         break_command_really, return tracepoint, warn about unimplemented
6305         parts.
6306         * NEWS: Mention trace file addition.
6307
6308 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6309
6310         Fix compilation warning on gcc-3.4.
6311         * exec.c (print_section_info): Move the `displacement' variable
6312         initialization to its declaration.
6313
6314 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6315
6316         * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
6317         comparison.
6318
6319 2010-01-15  Eric Botcazou  <botcazou@adacore.com>
6320
6321         "info tasks" broken by typedefs in ATCB type definitions.
6322         * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
6323         ada_check_typedef before retrieving the length of the type for
6324         regular fields.
6325
6326 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
6327
6328         Do not use name-based lookup for unconstrained packed arrays.
6329         * ada-lang.c (find_parallel_type_by_descriptive_type):
6330         Limit the fallback to name-based lookups to the case where
6331         the type is a constrained packed array.
6332
6333 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
6334
6335         Enhance gdb-gdb.py to handle main_type.type_specific.
6336         * gdb-gdb.py: Print the type-specific part of struct main_type.
6337
6338 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6339
6340         * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
6341         * configure: Regenerate.
6342         * config.in: Regenerate.
6343         * utils.c: Include sys/resource.h.
6344         (dump_core, can_dump_core): New.
6345         (internal_vproblem): Update the comment.  Check can_dump_core while
6346         setting dump_core_p.  Replace two abort calls by dump_core calls.
6347
6348 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6349             Eli Zaretskii  <eliz@gnu.org>
6350
6351         * NEWS: Document the PIE support.
6352
6353 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6354
6355         * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
6356         (check_is_pie_binary, _initialize_linux_tdep): Remove.
6357
6358 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6359
6360         * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
6361         Replace exec_entry_point call by bfd_get_start_address.
6362
6363 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6364
6365         Support Valgrind attachments broken by the PIE support.
6366         * auxv.c: Include gdbcore.h.
6367         (procfs_xfer_auxv): Make static.  Reduce its comment.  Drop its
6368         parameters ops, object and annex.  Remove their assertions.
6369         (ld_so_xfer_auxv, memory_xfer_auxv): New function.
6370         * auxv.h (procfs_xfer_auxv): Remove comment.  Rename to ...
6371         (memory_xfer_auxv): ... here.
6372         * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
6373         memory_xfer_auxv.
6374         * procfs.c (procfs_xfer_partial): Likewise.
6375         * solib-svr4.c (svr4_relocate_main_executable): New prototype.
6376         (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
6377         (svr4_solib_create_inferior_hook): Conditionalize the
6378         svr4_relocate_main_executable call.
6379
6380 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6381
6382         * solib-svr4.c (scan_dyntag): Remove variable dyn_addr.  New variable
6383         target_section.  Find SECT in current_target_sections, gdb_assert it.
6384         (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
6385         New variable abfd.
6386         * symtab.c (lookup_objfile_from_block): Return the binary file instead
6387         of separate debug info file.
6388
6389 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6390
6391         Support PIEs with no symfile_objfile.
6392         * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
6393         * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
6394
6395 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6396
6397         * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
6398         code part to ...
6399         (svr4_static_exec_displacement): ... a new function.
6400         (svr4_exec_displacement): New function.
6401         (svr4_relocate_main_executable): Call svr4_exec_displacement.  Allocate
6402         new_offsets using alloca now.  Remove variable old_chain and changed.
6403         Call objfile_relocate unconditionally now.
6404
6405 2010-01-14  Doug Evans  <dje@google.com>
6406
6407         * gdbtypes.c (arch_flags_type): Fix comment.
6408         * gdbtypes.h (arch_composite_type): Fix comment.
6409
6410 2009-01-14  Tristan Gingold  <gingold@adacore.com>
6411
6412         * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
6413         Call xstrdup for abfd->filename.  Pass symfile_flags and objfile flags
6414         to symbol_file_add_from_bfd.  Add OSO as separate objfile.
6415         (macho_oso_symfile): Add symfile_flags parameter.  Pass it to
6416         macho_add_oso_symfile.
6417         (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
6418
6419 2010-01-14  Joel Brobecker  <brobecker@adacore.com>
6420
6421         Tru64: Dead threads are never deleted.
6422         * dec-thread.c (dec_thread_ptid_is_alive): New function.
6423         (dec_thread_count_gdb_threads): Fix counter increment.
6424         (dec_thread_add_gdb_thread): Fix *listp increment.
6425         (resync_thread_list): Fix bug in deletion of dead threads that
6426         caused all threads to be deleted, instead of just the dead ones.
6427
6428 2010-01-13  Phil Muldoon  <pmuldoon@redhat.com>
6429
6430         PR python/10705
6431
6432         * python/python-internal.h: Add lazy_string_object_type
6433         definition.
6434         (create_lazy_string_object, gdbpy_initialize_lazy_string)
6435         (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
6436         * python/py-value.c (valpy_lazy_string): New function.
6437         (convert_value_from_python): Add lazy string conversion.
6438         * python/py-prettyprint.c (pretty_print_one_value): Check if
6439         return is also a lazy string.
6440         (print_string_repr): Add lazy string printing branch.
6441         (print_children): Likewise.
6442         * python/py-lazy-string.c: New file. Implement lazy strings.
6443         * python/python.c (_initialize_python): Call
6444         gdbpy_initialize_lazy_string.
6445         * varobj.c (value_get_print_value): Add lazy string printing
6446         branch.  Account for encoding.
6447         * c-lang.c (c_printstr): Account for new encoding argument.  If
6448         encoding is NULL, find encoding suited for type, otherwise use
6449         user encoding.
6450         * language.h (language_defn): Add encoding argument.
6451         (LA_PRINT_STRING): Likewise.
6452         * language.c (unk_lang_printstr): Update to reflect new encoding
6453         argument to language_defn.
6454         * ada-lang.h (ada_printstr): Likewise.
6455         * c-lang.h (c_printstr): Likewise.
6456         * p-lang.h (pascal_printstr);
6457         * f-lang.c (f_printstr): Likewise.
6458         * m2-lang.c (m2_printstr): Likewise.
6459         * objc-lang.c (objc_printstr): Likewise.
6460         * p-lang.c (pascal_printstr): Likewise.
6461         * scm-lang.c (scm_printstr): Likewise.
6462         * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
6463         encoding argument.
6464         * ada-valprint.c (ada_printstr): Likewise.
6465         * f-valprint.c (f_val_print): Likewise
6466         * m2-valprint.c (m2_val_print): Likewise.
6467         * p-valprint.c (pascal_val_print): Likewise.
6468         * expprint.c (print_subexp_standard): Likewise.
6469         * valprint.c (val_print_string): Likewise.
6470         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
6471         (SUBDIR_PYTHON_SRCS): Likewise.
6472         (py-lazy-string.o): New rule.
6473
6474 2010-01-13  Doug Evans  <dje@google.com>
6475
6476         * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
6477         uninitialized" warning from gcc on local `tree'.
6478
6479 2010-01-13  Vladimir Prus  <vladimir@codesourcery.com>
6480
6481         Implement core awareness.
6482
6483         * bcache.c (compare_ints): Remove
6484         (print_percentage): Use compare_positive_ints.
6485         * defs.h (compare_positive_ints): Declare.
6486         * linux-nat.h (struct lin_lwp): New field core.
6487         (linux_nat_core_of_thread_1): Declare.
6488         * linux-nat.c (add_lwp): Init the 'core' field.
6489         (linux_nat_wait_1): Record the core.
6490         (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
6491         (linux_nat_add_target): Register the above.
6492         * linux-thread-db.c (update_thread_core): New.
6493         (thread_db_find_new_threads): Update core information for
6494         every thread.
6495         * remote.c (struct private_thread_info): New.
6496         (free_private_thread_info, demand_private_info): New.
6497         (PACKET_qXfer_threads, use_osdata_threads): New.
6498         (struct thread_item, threads_parsing_context
6499         (start_thread, end_thread, thread_attributes)
6500         (thread_children, threads_children, threads_elements): New.
6501         (remote_threads_info): Try qXfer:threads before anything
6502         else.
6503         (remote_protocol_packets): Register qXfer:threads.
6504         (remote_open_1): Init use_osdata_threads.
6505         (struct stop_reply): New field 'core'.
6506         (remote_parse_stop_reply): Parse core number.
6507         (process_stop_reply): Record core number.
6508         (remote_xfer_partial): Handle qXfer:threads.
6509         (remote_core_of_thread): New.
6510         (init_remote_ops): Register remote_core_of_thread.
6511         (_initialize_remote): Register qXfer:read.
6512         * target.c (target_core_of_thread): New
6513         * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
6514         (struct target_ops): New field to_core_of_threads.
6515         (target_core_of_thread): Declare.
6516         * gdbthread.h (struct thread_info): New field private_dtor.
6517         * thread.c (print_thread_info): Report the core.
6518         * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
6519         * utils.c (compare_positive_ints): New.
6520         * features/threads.dtd: New.
6521         * mi/mi-interp.c (mi_on_normal_stop): Report the core.
6522         * mi/mi-main.c (struct collect_cores_data, collect_cores)
6523         (do_nothing, free_vector_of_osdata_items)
6524         (splay_tree_int_comparator, free_splay_tree): New.
6525         (print_one_inferior_data): Implemented printing of selected
6526         inferiors.  Collect and print cores.
6527         (output_cores): New.
6528         (mi_cmd_list_thread_groups): Support --recurse.  Permit specifying
6529         thread groups together with --available.
6530
6531 2010-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
6532
6533         * configure: Regenerate (for _STRUCTURED_PROC).
6534
6535 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
6536
6537         Delete dead function.
6538         * ada-lang.c (extract_string): Delete.  No longer used.
6539
6540 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
6541
6542         Fix -Wunused warning in dec-thread.c.
6543         * dec-thread.c (dec_thread_count_gdb_threads)
6544         (dec_thread_add_gdb_thread): Prevent -Wunused warning.
6545
6546 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
6547
6548         * ada-valprint.c (ada_print_floating): Remove trailing space.
6549
6550 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
6551
6552         Add support for DW_AT_GNAT_descriptive_type.
6553         * gdbtypes.h (enum type_specific_kind): New enum.
6554         (struct main_type) [type_specific_field]: New component.
6555         [type_specific]: Add new component "gnat_stuff".
6556         (struct gnat_aux_type): New type.
6557         (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
6558         (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
6559         (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
6560         (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
6561         (TYPE_SPECIFIC_FIELD): New macros.
6562         (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
6563         type does not hold any cplus-specific data.
6564         (TYPE_RAW_CPLUS_SPECIFIC): New macro.
6565         (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
6566         (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
6567         cplus-specific data.
6568         * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
6569         Set new component TYPE_SPECIFIC_FIELD (type).
6570         (gnat_aux_default): New constant.
6571         (allocate_gnat_aux_type): New function.
6572         (init_type): Add initialization the type-specific stuff for
6573         TYPE_CODE_FLT and TYPE_CODE_FUNC types.
6574         (print_gnat_stuff): New function.
6575         (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
6576         specific data.  Adjust code that prints the contents of the
6577         type-specific union using the TYPE_SPECIFIC_FIELD value.
6578         * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
6579         the type cplus stuff for Ada types.
6580         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
6581         Error out if these routines are called with an Ada type.
6582         (read_structure_type, read_array_type, read_subrange_type):
6583         Add call to set_descriptive_type.
6584         (set_die_type): Initialize the gnat-specific data if necessary.
6585         (need_gnat_info, die_descriptive_type, set_descriptive_type):
6586         New functions.
6587         * ada-lang.c (decode_constrained_packed_array_type): Use
6588         decode_constrained_packed_array_type instead of doing a standard
6589         lookup to locate a parallel type.
6590         (find_parallel_type_by_descriptive_type): New function.
6591         (ada_find_parallel_type_with_name): New function.
6592         (ada_find_parallel_type): Reimplement using
6593         ada_find_parallel_type_with_name.
6594         * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
6595         to check if type has a cplus stuff.
6596         * linespec.c (total_number_of_methods): Likewise.
6597         * mdebugread.c (new_type): Likewise.
6598
6599 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6600
6601         * NEWS: Document the 0b binary number prefix parsing.
6602
6603 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6604
6605         * objfiles.c (objfile_relocate1): Change the return type to int.
6606         Describe the new return value.  Return non-zero if data changed.
6607         (objfile_relocate): New variable changed.  Set it.  Call
6608         breakpoint_re_set depending on CHANGED.
6609
6610 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6611
6612         Implement binary numbers parsing.
6613         * c-exp.y (parse_number): New case 'b' and 'B'.
6614
6615 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6616             Tristan Gingold  <gingold@adacore.com>
6617
6618         * solib.c (info_sharedlibrary_command): Replace
6619         objfile_has_partial_symbols and objfile_has_full_symbols calls by
6620         objfile_has_symbols.
6621
6622 2010-01-10  Joel Brobecker  <brobecker@adacore.com>
6623
6624         * NEWS: Document the improvements made to the mips-irix port.
6625
6626 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
6627
6628         Fix the documentation of valprint.c:value_print.
6629         * valprint.c (value_print): Update the function description to
6630         mention that the syntax of the output follows the current_language,
6631         not necessarily C.
6632
6633 2010-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
6634
6635         Fix displacement of separate debug info files.
6636         * objfiles.c (objfile_relocate): Rename to ...
6637         (objfile_relocate1): ... here and make it static.  Extend the comment.
6638         (objfile_relocate): New function.
6639         * solib-spu.c (spu_relocate_main_executable): Explicitly check if
6640         SYMFILE_OBJFILE is NULL.  Remove variables objfile and old_chain.
6641         Remove following of SEPARATE_DEBUG_OBJFILE.  new_offsets is now
6642         allocated using alloca.
6643         * symfile.c (copy_section_addr_info): Remove.
6644         (build_section_addr_info_from_objfile): Make it global.  New variables
6645         addr_bit and mask, use them.
6646         * symfile.h (build_section_addr_info_from_objfile): New prototype.
6647         (copy_section_addr_info): Remove.
6648
6649 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
6650
6651         Signal unwinder for mips-irix N32.
6652         * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
6653         tramp-frame.h.
6654         (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
6655         (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
6656         (SIGCONTEXT_LO_OFF): New macros.
6657         (mips_irix_n32_tramp_frame_init): New function.
6658         (mips_irix_n32_tramp_frame): New static constant.
6659         (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
6660
6661 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
6662
6663         Breakpoint in shared library does not work on mips-irix.
6664         * procfs.c: #include "observer.h".
6665         (procfs_inferior_created): New function, moving here the code
6666         which unsets the syssgi syscall-exit notifications.
6667         (procfs_create_inferior): Remove the code which unsets the syssgi
6668         syscall-exit notifications. It is too early to do this here.
6669         (_initialize_procfs): Attach the procfs_inferior_created observer.
6670
6671 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
6672
6673         Wrong return convention for arrays (mips-irix).
6674         * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
6675         128 bits or smaller are returned the same way as structs
6676         and unions of the the same size.
6677
6678 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
6679
6680         Cannot set the PC on mips-irix.
6681         * irix5-nat.c (fill_gregset): Check regno against the raw PC
6682         register number, no the cooked one.
6683
6684 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
6685
6686         Error while loading core file on mips-irix.
6687         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
6688         if debugging from a core file.
6689
6690 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
6691
6692         GDB hangs when attaching to process on mips-irix.
6693         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
6694         attaching to a process.
6695
6696 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
6697
6698         Use the correct breakpoint instruction on mips-irix.
6699         * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
6700         containing the correct breakpoint instruction to use on mips-irix.
6701         Use it when the osabi is GDB_OSABI_IRIX.
6702
6703 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
6704
6705         -Wunused warning in procfs.c (mips-irix only).
6706         * procfs.c (gdb_praddset, gdb_prdelset): New macros.  Use them
6707         throughout instead of using praddset and prdelset respectively.
6708
6709 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
6710
6711         GDB crash while stepping into function.
6712         * infrun.c (handle_inferior_event): Refetch the current frame
6713         after handling what.main_action, in case that pointer became
6714         dangling.
6715
6716 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
6717
6718         Fix build failure of solaris-hosted cross debuggers.
6719         * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
6720
6721 2010-01-09  Daniel Gutson  <dgutson@codesourcery.com>
6722
6723         Fix build failure on sparc-solaris.
6724         * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
6725
6726 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6727
6728         Move some symfile code into subroutines.
6729         * symfile.h (relative_addr_info_to_section_offsets)
6730         (addr_info_make_relative): New prototypes.
6731         * symfile.c (default_symfile_offsets): Move a part to ...
6732         (relative_addr_info_to_section_offsets): ... this new function.
6733         (default_symfile_offsets): Call it.
6734         (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
6735         this part to ...
6736         (addr_info_make_relative): ... this new function.
6737
6738 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6739
6740         Add from_tty to solib_create_inferior_hook.
6741         * infcmd.c (post_create_inferior): Move solib_add after
6742         solib_create_inferior_hook.  Pass from_tty to
6743         solib_create_inferior_hook.  Call solib_add and SOLIB_ADD with
6744         0 from_tty and comment why.
6745         * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
6746         * linux-nat.c (linux_child_follow_fork): Likewise.
6747         * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
6748         * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
6749         from_tty.
6750         * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
6751         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
6752         * solib-null.c (null_solib_create_inferior_hook): Likewise.
6753         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
6754         * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
6755         * solib-som.c (som_solib_create_inferior_hook): Likewise.
6756         * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
6757         Pass it to svr4_so_ops.solib_create_inferior_hook.
6758         * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
6759         from_tty.
6760         * solib-svr4.c (enable_break): New parameter from_tty.  Pass it to
6761         solib_add.
6762         (svr4_solib_create_inferior_hook): New parameter from_tty.  Pass it to
6763         enable_break.
6764         * solib-target.c (solib_target_solib_create_inferior_hook): New
6765         parameter from_tty.
6766         * solib.c (solib_create_inferior_hook): New parameter from_tty.  Pass
6767         it to ops->solib_create_inferior_hook.
6768         (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
6769         Move solib_add after solib_create_inferior_hook, call it now with
6770         from_tty as 0.  New comment there.
6771         * solib.h (solib_create_inferior_hook): New parameter from_tty.
6772         * solist.h (struct target_so_ops <solib_create_inferior_hook>):
6773         Likewise.
6774
6775 2010-01-08  Vladimir Prus  <vladimir@codesourcery.com>
6776
6777         Fix multiexec race.
6778         * infrun.c (handle_inferior_event): Use get_thread_regcache
6779         with events ptid, not get_current_regcache.
6780
6781 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
6782
6783         GDB crash with empty executable name (MinGW).
6784         * source.c (openp): Add assert that parameter string is not NULL.
6785         if parameter string is an empty string, then return with a failure
6786         immediately.
6787
6788 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
6789
6790         Get rid of support for VAX Floats.
6791         * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
6792         (ada_vax_float_print_function): Delete.
6793         * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
6794         (ada_vax_float_print_function): Delete.
6795         * ada-typeprint.c (print_vax_floating_point_type): Delete.
6796         (ada_print_type): Remove support for VAX floats.
6797         * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
6798
6799 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6800
6801         * stabsread.c (read_args): Handle zero arguments.
6802
6803 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
6804
6805         Cannot find in-tree libiconv.a after reconfigure.
6806         * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
6807         that we can use, then cache the path to this archive.
6808         * configure: Regenerate.
6809
6810 2010-01-07  Stan Shebs  <stan@codesourcery.com>
6811
6812         Make tracepoint operations go through target vector.
6813         * target.h (enum trace_find_type): New enum.
6814         (struct target_ops): New fields to_trace_init,
6815         to_download_tracepoint, to_download_trace_state_variable,
6816         to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
6817         to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
6818         to_set_disconnected_tracing.
6819         (target_trace_init): New macro.
6820         (target_download_tracepoint): New macro.
6821         (target_download_trace_state_variable): New macro.
6822         (target_trace_start): New macro.
6823         (target_trace_set_readonly_regions): New macro.
6824         (target_get_trace_status): New macro.
6825         (target_trace_stop): New macro.
6826         (target_trace_find): New macro.
6827         (target_get_trace_state_variable_value): New macro.
6828         (target_set_disconnected_tracing): New macro.
6829         * target.c (update_current_target): Inherit and set defaults for
6830         tracepoint operations.
6831         * tracepoint.c (default_collect): Make globally visible.
6832         (target_is_remote): Remove, along with all calls.
6833         (tvariables_info): Call target_get_trace_state_variable_value.
6834         (remote_set_transparent_ranges): Remove.
6835         (trace_start_command): Call target_trace_init,
6836         target_download_tracepoint, etc.
6837         (download_tracepoint): Remove.
6838         (trace_stop_command): Simplify.
6839         (stop_tracing): Call target_trace_stop.
6840         (get_trace_status): Call target_get_trace_status.
6841         (trace_status_command): Add case for targets that cannot trace.
6842         (finish_tfind_command): Change to take numerical arguments, call
6843         target_trace_find.
6844         (trace_find_command): Update call to finish_tfind_command.
6845         (trace_find_pc_command): Ditto.
6846         (trace_find_tracepoint_command): Ditto.
6847         (trace_find_line_command): Ditto.
6848         (trace_find_range_command): Ditto.
6849         (trace_find_outside_command): Ditto.
6850         (set_disconnected_tracing_value): Call
6851         target_set_disconnected_tracing.
6852         * remote.c: Add protocol encoding bits from tracepoint.c.
6853         (trace_error): Move from tracepoint.c.
6854         (remote_get_noisy_reply): Ditto.
6855         (free_actions_list_cleanup_wrapper): Ditto.
6856         (free_actions_list): Ditto.
6857         (remote_trace_init): New function.
6858         (remote_download_tracepoint): New function.
6859         (remote_download_trace_state_variable): New function.
6860         (remote_trace_set_readonly_regions): New function.
6861         (remote_trace_start): New function.
6862         (remote_get_trace_status): New function.
6863         (remote_trace_stop): New function.
6864         (remote_trace_find): New function.
6865         (remote_download_trace_state_variable): New function.
6866         (remote_set_disconnected_tracing): New function.
6867         (init_remote_ops): Add tracepoint operations.
6868
6869         * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
6870
6871 2010-01-07  Tristan Gingold  <gingold@adacore.com>
6872
6873         * symfile.c (build_section_addr_info_from_objfile): New function.
6874         (symbol_file_add_separate): Don't use offsets from objfile but
6875         built an addr info.
6876
6877 2010-01-06  Stan Shebs  <stan@codesourcery.com>
6878
6879         Support disconnected tracing.
6880         * infcmd.c (detach_command): Ask whether to stop tracing.
6881         * cli/cli-cmds.c (quit_command): Ditto.
6882         * breakpoint.h (struct breakpoint): New field number_on_target.
6883         * breakpoint.c (create_tracepoint_from_upload): New function.
6884         (get_tracepoint_by_number_on_target): New function.
6885         * remote.c (struct remote): New field disconnected_tracing.
6886         (remote_disconnected_tracing_feature): New function.
6887         (remote_protocol_features): Add DisconnectedTracing.
6888         (struct uploaded_tp): New struct.
6889         (uploaded_tps): New global.
6890         (get_uploaded_tp): New function.
6891         (find_matching_tracepoint): New function.
6892         (remote_get_tracing_state): New function.
6893         (remote_start_remote): Call it.
6894         * tracepoint.c (disconnected_tracing): New global.
6895         (trace_start_command): Initialize number_on_target.
6896         (stop_tracing): New function, split out from...
6897         (trace_stop_command): Call stop_tracing.
6898         (get_trace_status): New function, split out from...
6899         (trace_status_command): Call get_trace_status, add info on
6900         disconnection behavior.
6901         (disconnect_or_stop_tracing): New function.
6902         (finish_tfind_command): Translate from number on target.
6903         (trace_find_tracepoint_command): Translate to number on target.
6904         (send_disconnected_tracing_value): New function.
6905         (set_disconnected_tracing): New function.
6906         (_initialize_tracepoint): Add disconnected-tracing variable.
6907         * NEWS: Mention disconnected tracing.
6908
6909 2010-01-06  Tristan Gingold  <gingold@adacore.com>
6910
6911         * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
6912         parameter to main_objfile.  Iterate on all separate debug objfiles.
6913         * symfile.h (symbol_file_add_separate)
6914         (find_separate_debug_file_by_debuglink): Remove parameter names.
6915         * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
6916         (reread_symbols): Use free_objfile_separate_debug.
6917         * objfiles.h (struct objfile): Add separate_debug_objfile_link.
6918         Adjust comment.
6919         (objfile_separate_debug_iterate, add_separate_debug_objfile)
6920         (free_objfile_separate_debug): New prototypes.
6921         * objfiles.c (objfile_separate_debug_iterate): New function.
6922         (add_separate_debug_objfile, free_objfile_separate_debug): New
6923         functions.
6924         (free_objfile): Use free_objfile_separate_debug.  Adjust for
6925         multiple separate debug objfile.
6926         (objfile_has_symbols): Adjust comment.  Iterate on all separate
6927         debug objfiles.
6928         * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
6929         debug objfile.
6930         (lookup_minimal_symbol_text): Ditto.
6931         (lookup_minimal_symbol_by_pc_name): Ditto.
6932         (lookup_minimal_symbol_solib_trampoline): Ditto.
6933         (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
6934         debug objfiles.
6935
6936 2010-01-05  Stan Shebs  <stan@codesourcery.com>
6937
6938         Add fast tracepoints.
6939         * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
6940         * arch-utils.c (default_fast_tracepoint_valid_at): New function.
6941         * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
6942         * breakpoint.c (tracepoint_type): New function.
6943         (ALL_TRACEPOINTS): Use it.
6944         (should_be_inserted): Ditto.
6945         (bpstat_check_location): Ditto.
6946         (print_one_breakpoint_location): Ditto.
6947         (user_settable_breakpoint): Ditto.
6948         (set_breakpoint_location_function): Ditto.
6949         (disable_breakpoints_in_shlibs): Ditto.
6950         (delete_trace_command): Ditto.
6951         (print_it_typical): Add bp_fast_tracepoint case.
6952         (bpstat_what): Ditto.
6953         (print_one_breakpoint_location): Ditto.
6954         (allocate_bp_location): Ditto.
6955         (mention): Ditto.
6956         (breakpoint_re_set_one): Ditto.
6957         (disable_command): Ditto.
6958         (enable_command): Ditto.
6959         (check_fast_tracepoint_sals): New function.
6960         (break_command_really): Call it.
6961         (ftrace_command): New function.
6962         (_initialize_breakpoint): Add ftrace command.
6963         * gdbarch.sh (fast_tracepoint_valid_at): New.
6964         * gdbarch.h, gdbarch.c: Regenerate.
6965         * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
6966         (i386_gdbarch_init): Use it.
6967         * remote.c (struct remote_state): New field fast_tracepoints.
6968         (PACKET_FastTracepoints): New packet config type.
6969         (remote_fast_tracepoint_feature): New function.
6970         (remote_protocol_features): Add FastTracepoints.
6971         (remote_supports_fast_tracepoints): New function.
6972         (_initialize_remote): Add FastTracepoints.
6973         * tracepoint.c (download_tracepoint): Add fast tracepoint option.
6974         * NEWS: Mention fast tracepoints.
6975
6976 2010-01-06  Joel Brobecker  <brobecker@adacore.com>
6977
6978         * gdb-gdb.py: New file.
6979
6980 2010-01-05  Michael Snyder  <msnyder@vmware.com>
6981
6982         * infrun.c (handle_inferior_event): Fix typo in comment.
6983
6984 2010-01-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
6985
6986         * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
6987
6988 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
6989
6990         * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
6991         and s390x-linux64.
6992         (s390-linux32-expedite): Define.
6993         (s390-linux64-expedite): Define.
6994         (s390x-linux64-expedite): Define.
6995         * features/s390-acr.xml: New file.
6996         * features/s390-fpr.xml: New file.
6997         * features/s390-core32.xml: New file.
6998         * features/s390-core64.xml: New file.
6999         * features/s390x-core64.xml: New file.
7000         * features/s390-linux32.xml: New file.
7001         * features/s390-linux64.xml: New file.
7002         * features/s390x-linux64.xml: New file.
7003         * features/s390-linux32.c: New generated file.
7004         * features/s390-linux64.c: New generated file.
7005         * features/s390x-linux64.c: New generated file.
7006
7007         * regformats/s390-linux32.dat: New generated file.
7008         * regformats/s390-linux64.dat: New generated file.
7009         * regformats/s390x-linux64.dat: New generated file.
7010         * regformats/reg-s390.dat: Remove.
7011         * regformats/reg-s390x.dat: Remove.
7012
7013         * s390-nat.c: Include "auxv.h" and <elf.h>.
7014         (HWCAP_S390_HIGH_GPRS): Define if undefined.
7015         (s390_target_wordsize): New function.
7016         (s390_auxv_parse): Likewise.
7017         (s390_get_hwcap): Likewise.
7018         (s390_read_description): Likewise.
7019         (_initialize_s390_nat): Install s390_auxv_parse and
7020         s390_read_description.
7021
7022         * s390-tdep.c: Include "features/s390-linux32.c",
7023         "features/s390-linux64.c", and "features/s390x-linux64.c".
7024         (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
7025         (s390_register_call_saved): New function.
7026         (s390_register_name): Remove.
7027         (s390_register_type): Remove.
7028         (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
7029         (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
7030         (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
7031         (s390_pseudo_register_name): New function.
7032         (s390_pseudo_register_type): New function.
7033         (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
7034         Handle full GPR pesudos and varying pseudo register numbers.
7035         (s390_pseudo_register_write): Likewise
7036         (s390x_pseudo_register_read): Remove.
7037         (s390x_pseudo_register_write): Likewise.
7038         (s390_register_group): Remove.
7039         (s390_pseudo_register_group): New function.
7040         (s390_regmap_gregset): Add GPR upper halves.
7041         (s390x_regmap_gregset): Likewise.
7042         (s390_regmap_fpregset): Likewise.
7043         (s390_regmap_upper): New global variable.
7044         (s390_upper_regset): New global variable.
7045         (s390_upper_regset_sections): New global variable.
7046         (s390_regset_from_core_section): Handle GPR upper halves.
7047         (s390_core_read_description): New function.
7048         (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
7049         register information.  Handle varying pseudo register numbers.
7050         (s390_backchain_frame_unwind_cache): Likewise.
7051         (s390_frame_prev_register): Unwind full GPRs to show lower halves.
7052         (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
7053         (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
7054         PC and CC pseudos.  Unwind upper halves and full GPRs as appropriate.
7055         Handle varying pseudo register numbers.
7056         (s390_unwind_pc): Handle varying pseudo register numbers.
7057         (s390_dwarf2_prev_register): New function.
7058         (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
7059         register information.  Handle varying pseudo register numbers.
7060         Install s390_dwarf2_prev_register to unwind full GPRs.
7061         (s390_gdbarch_init): Handle target descriptions.  Assign varying
7062         pseudo register numbers.  Install s390_adjust_frame_regnum.
7063         (_initialize_s390_tdep): Initialize target descriptions.
7064
7065         * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
7066         (S390_NUM_REGS): Redefine to include upper half registers.
7067         (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
7068         (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
7069         (tdesc_s390_linux32): Add declaration.
7070         (tdesc_s390_linux64): Likewise.
7071         (tdesc_s390x_linux64): Likewise.
7072
7073 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
7074
7075         * regset.h (struct core_regset_section): Add HUMAN_NAME.
7076         * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
7077         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
7078         (ppc_linux_vmx_regset_sections): Likewise.
7079         (ppc_linux_fp_regset_sections): Likewise.
7080
7081         * corelow.c (get_core_register_section): Constify arguments.
7082         (get_core_registers): Use gdbarch_core_regset_sections instead
7083         of hard-coded platform-specific register section names.
7084
7085 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
7086
7087         * dwarf2loc.c (read_pieced_value): If a piece occupies part of
7088         a register, assume the least-significant part is used.
7089         (write_pieced_value): Likewise.
7090
7091 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
7092
7093         * printcmd.c: Include "arch-utils.h".
7094         (do_one_display): Re-parse expression if current architecture changed.
7095
7096 2010-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7097             Joel Brobecker  <brobecker@adacore.com>
7098
7099         * gdbtypes.c (check_typedef): New comment on type length.
7100         * value.c (allocate_value_lazy): Remove the unused atype variable.  New
7101         comment on type length.
7102         (value_primitive_field): Keep the original TYPE value, new comment.
7103
7104 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7105
7106         * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
7107         p_start.  Change != comparisons to > and < comparisons.
7108
7109 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7110
7111         * cli/cli-script.c (process_next_line): Check P2 overrun.
7112
7113 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
7114
7115         Update the copyright hearder to add year 2010 for most GDB files.
7116
7117 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
7118
7119         Fix build failure in inf-ptrace.c.
7120         * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
7121
7122 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
7123
7124         * top.c (print_gdb_version): Update copyright year.
7125
7126 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
7127
7128         Fix break *FUN'address thread NUM.
7129         * ada-lex.l (task): Expand rule to also match the thread keyword.
7130
7131 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
7132
7133         Fix break *FUN'address task NUM.
7134         * ada-lex.l (task): New rule.
7135         * ada-lang.c (valid_task_id): Make sure the Ada task list has
7136         been built before using it.
7137
7138 For older changes see ChangeLog-2009.
7139 \f
7140 Local Variables:
7141 mode: change-log
7142 left-margin: 8
7143 fill-column: 74
7144 version-control: never
7145 coding: utf-8
7146 End: