6734f150f1167c75244fe93e25260e4119cb00d4
[external/binutils.git] / gdb / ChangeLog
1 2010-04-26  Pierre Muller  <muller@ics.u-strasbg.fr>
2
3         PR breakpoints/11531.
4         * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5         macro definition and related comment.
6         * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
7         (resume): Remove code and comment related to this macro.
8
9 2010-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10
11         * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
12         Fix whitespace.
13
14 2010-04-24  Pedro Alves  <pedro@codesourcery.com>
15
16         * defs.h: Adjust comment.
17         * filesystem.h, filesystem.c: New files.
18         * Makefile.in (SFILES): Add filesystem.c.
19         (COMMON_OBS): Add filesystem.o.
20         * solib.c (solib_find): Handle DOS-based filesystems.  Handle
21         different target and host path flavours.
22         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
23         has_dos_based_file_system on the gdbarch.
24         * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
25         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
26         * i386-tdep.c (i386_go32_init_abi): Ditto.
27         * gdbarch.sh (has_dos_based_file_system): New.
28         * gdbarch.h, gdbarch.c: Regenerate.
29         * NEWS: Mention improved support for remote targets with DOS-based
30         filesystems.  Mention new `set/show target-file-system-kind'
31         commands.
32
33 2010-04-23  Stan Shebs  <stan@codesourcery.com>
34
35         * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
36         comments.
37         (struct agent_reqs): Remove.
38         (ax_reg_mask): Declare.
39         * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
40         (free_agent_expr): Free reg_mask.
41         (ax_print): Add scope and register mask info.
42         (ax_reqs): Remove agent_reqs argument, use agent expression
43         fields, and move part of register mask computation to...
44         (ax_reg_mask): New function.
45         * ax-gdb.c (gen_trace_static_fields): Call it.
46         (gen_traced_pop): Ditto.
47         (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
48         (gen_trace_for_var): Pass gdbarch to new_agent_expr.
49         (gen_trace_for_expr): Ditto, and clear optimized_out flag.
50         (gen_eval_for_expr): Ditto, and require an rvalue.
51         (agent_command): Call ax_reqs.
52         (agent_eval_command): Ditto.
53         * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
54         (validate_action_line): Ditto.
55         (collect_symbol): Ditto.
56         (encode_actions_1): Ditto.
57
58 2010-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
59             Paul Pluzhnikov  <ppluzhnikov@google.com>
60             Jan Kratochvil  <jan.kratochvil@redhat.com>
61
62         Fix deadlock on looped list of loaded shared objects.
63         * solib-svr4.c (LM_PREV): New function.
64         (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
65         (svr4_current_sos): Check for correct l_prev.  New variables prev_lm
66         and next_lm.  Clear prev_lm for solib_svr4_r_ldsomap.
67         * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
68
69 2010-04-23  Doug Evans  <dje@google.com>
70
71         * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
72         python.
73         * configure: Regenerate.
74         * main.c: #include "python/python.h".
75         (captured_main): Defer loading auto-loaded scripts until after
76         local_gdbinit has been sourced.
77         * python/py-auto-load.c (gdbpy_global_auto_load): New global.
78         (load_auto_scripts_for_objfile): New function.
79         (auto_load_new_objfile): Call it.
80         * python/python.h (gdbpy_global_auto_load): Declare.
81         (load_auto_scripts_for_objfile): Declare.
82
83         Add support for auto-loading scripts from .debug_gdb_scripts section.
84         * NEWS: Add entry for .debug_gdb_scripts.
85         * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
86         (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
87         (py-auto-load.o): New rule.
88         * cli/cli-cmds.c (find_and_open_script): Make externally visible.
89         * cli/cli-cmds.h (find_and_open_script): Update prototype.
90         * python/py-auto-load.c: New file.
91         * python/python-internal.h: #include <stdio.h>.
92         (set_python_list, show_python_list): Declare.
93         (gdbpy_initialize_auto_load): Declare.
94         (source_python_script_for_objfile): Declare.
95         * python/python.c: Remove #include of observer.h.
96         (gdbpy_auto_load): Moved to py-auto-load.c.
97         (GDBPY_AUTO_FILENAME): Ditto.
98         (gdbpy_new_objfile): Delete.
99         (source_python_script_for_objfile): New function.
100         (set_python_list, show_python_list): Make externally visible.
101         (_initialize_python): Move "auto-load" command to py-auto-load.c
102         and observer_attach_new_objfile to py-auto-load.c.
103
104 2010-04-23  Jerome Guitton  <guitton@adacore.com>
105     
106         * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
107         (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
108         (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
109         New constants.
110         (alpha_heuristic_analyze_probing_loop): New function.
111         (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
112         and handle cases when a stack probe loop is generated.
113         * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
114         (alpha_mdebug_max_frame_size_exceeded): New function.
115         (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
116         (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
117         Return 0 when the maximum debuggable frame size has been exceeded.
118
119 2010-04-23  Joel Brobecker  <brobecker@adacore.com>
120
121         Fix ARI warning.
122         * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
123
124 2010-04-20  Chris Moller  <cmoller@redhat.com>
125
126         PR 10179
127
128         * symtab.c (rbreak_command): Added code to include a filename
129         specification in the rbreak argument.
130         * NEWS: Added a brief description of filename-qualified rbreak.
131
132 2010-04-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
133
134         Fix crashes on dangling display expressions.
135         * ada-lang.c (ada_operator_check): New function.
136         (ada_exp_descriptor): Fill-in the field operator_check.
137         * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
138         * jv-lang.c (exp_descriptor_java): Likewise.
139         * m2-lang.c (exp_descriptor_modula2): Likewise.
140         * scm-lang.c (exp_descriptor_scm): Likewise.
141         * parse.c (exp_descriptor_standard): Likewise.
142         (operator_check_standard): New function.
143         (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
144         * parser-defs.h (struct exp_descriptor): New field operator_check.
145         (operator_check_standard, exp_uses_objfile): New declarations.
146         * printcmd.c: Remove the inclusion of solib.h.
147         (display_uses_solib_p): Remove the function.
148         (clear_dangling_display_expressions): Call lookup_objfile_from_block
149         and exp_uses_objfile instead of display_uses_solib_p.
150         * solist.h (struct so_list) <objfile>: New comment.
151         * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
152         * symtab.h (lookup_objfile_from_block): New declaration.
153         (struct general_symbol_info) <obj_section>: Extend the comment.
154
155 2010-04-22  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
156             Thiago Jung Bauermann  <bauerman@br.ibm.com>
157
158         * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
159         (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
160         ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
161         PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
162         PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
163         PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
164         PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
165         PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
166         PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
167         PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
168         PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
169         PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
170         PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
171         Define, in case <ptrace.h> doesn't provide it.
172         (booke_debug_info): New variable.
173         (max_slots_number): Ditto.
174         (hw_break_tuple): New struct.
175         (thread_points): Ditto.
176         (ppc_threads): New variable.
177         (PPC_DEBUG_CURRENT_VERSION): New define.
178         (have_ptrace_new_debug_booke): New function.
179         (ppc_linux_check_watch_resources): Renamed to ...
180         (ppc_linux_can_use_hw_breakpoint): ... this.  Handle BookE processors.
181         (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
182         (booke_cmp_hw_point): New function.
183         (booke_find_thread_points_by_tid): Ditto.
184         (booke_insert_point): Ditto.
185         (booke_remove_point): Ditto.
186         (ppc_linux_insert_hw_breakpoint): Ditto.
187         (ppc_linux_remove_hw_breakpoint): Ditto.
188         (get_trigger_type): Ditto.
189         (ppc_linux_insert_watchpoint): Handle BookE processors.
190         (ppc_linux_remove_watchpoint): Ditto.
191         (ppc_linux_new_thread): Ditto.
192         (ppc_linux_thread_exit): New function..
193         (ppc_linux_stopped_data_address): Handle BookE processors.
194         (ppc_linux_watchpoint_addr_within_range): Ditto.
195         (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
196         to_remove_hw_breakpoint fields of the target operations struct.
197         Add observe for the thread_exit event.
198
199 2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>
200
201         * i386-linux-nat.c (regmap): Removed.
202         (fetch_register): Replace regmap with
203         i386_linux_gregset_reg_offset.
204         (store_register): Likewise.
205         (supply_gregset): Likewise.
206         (fill_gregset): Likewise.
207
208         * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
209         global.
210
211         * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
212
213 2010-04-22  Chris Moller  <cmoller@redhat.com>
214
215         * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
216         method of popping recursion-detection stack with a method based on
217         obstack_object_size().  (Similar to the PR9167 patch below, but for
218         the static array obstack rather than the static member obstack.)
219
220 2010-04-22  H.J. Lu  <hongjiu.lu@intel.com>
221
222         * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
223         (_initialize_amd64_linux_nat): Replace
224         amd64_linux_gregset64_reg_offset with
225         amd64_linux_gregset_reg_offset.
226
227         * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
228         global.
229
230         * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
231
232 2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
233
234         PR stabs/11479.
235         * stabsread.c (set_length_in_type_chain): New function.
236         (read_struct_type): Call set_length_in_type_chain function.
237         (read_enum_type): Idem.
238
239 2010-04-21  Stan Shebs  <stan@codesourcery.com>
240             Nathan Sidwell  <nathan@codesourcery.com>
241
242         * tracepoint.c (trace_save): Open in binary mode.
243
244 2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
245
246         * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
247         fields.
248         * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and 
249         builtin_char32 fields.
250         * printcmd.c (decode_format): Set char size to '\0'
251         for strings unless explicit size is given.
252         (print_formatted): Correct calculation of NEXT_ADDRESS
253         for 16 or 32 bit strings.
254         (do_examine): Do not force byte size for strings.
255         Use builtin_char16 and builtin_char32 types to display
256         16 or 32 bit-wide strings. 
257         (x_command): Set LAST_SIZE to 'b' for string type.
258
259 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
260
261         PR corefiles/11523
262         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
263         XCR0 first.
264
265         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
266         there is no .reg-xstate section.
267         (i386_linux_core_read_description): Check XCR0 first.
268
269 2010-04-21  Mike Frysinger  <vapier@gentoo.org>
270
271         * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
272         for len <= 8.
273
274 2010-04-21  Chris Moller  <cmoller@redhat.com>
275
276         PR 9167
277         * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
278         method of popping recursion-detection stack with a method based on
279         obstack_object_size().
280
281 2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
282
283         PR pascal/11492.
284         * p-valprint.c (pascal_val_print): Fix default printing of integer
285         arrays.
286
287 2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
288
289         Fix compilation warning on gcc-4.1.2.
290         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
291         local variable`pc' to zero.
292
293 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
294
295         Implement thread support with core files on alpha-tru64.
296         * dec-thread.c (dec_thread_find_new_threads): New function,
297         extracted from resync_thread_list.
298         (resync_thread_list): Add OPS parameter.  Replace extracted-out
299         code by call to dec_thread_find_new_threads.
300         (dec_thread_wait): Update call to resync_thread_list.
301         (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
302
303 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
304
305         * ada-lang.c (value_pointer): New function.
306         (make_array_descriptor): Call value_pointer to convert addresses to
307         pointers.
308
309 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
310
311         * rs6000-aix-tdep.c: #include exceptions.h.
312         (rs6000_convert_from_func_ptr_addr): If an exception is thrown
313         while reading the memory at ADDR, then ADDR cannot be a function
314         descriptor.
315
316 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
317
318         * ada-typeprint.c (ada_print_typedef): New function.
319         * ada-lang.h (ada_print_typedef): Add declaration.
320         * ada-lang.c (ada_language_defn): set la_print_typdef field
321         to ada_print_typedef.
322
323 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
324
325         * procfs.c (procfs_address_to_host_pointer): Only define when used.
326
327 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
328
329         * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
330         (iterate_over_mappings): Adjust function profile. Add declaration.
331         (insert_dbx_link_bpt_in_region, info_mappings_callback):
332         Adjust accordingly.
333
334 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
335
336         * procfs.c (solib_mappings_callback): Move function up to avoid
337         a compiler warning.
338
339 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
340
341         * procfs.c (find_signalled_thread, find_stop_signal): Move
342         these functions down to define them only when used.
343
344 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
345
346         * valprint.c (common_val_print): Fix the value before extracting
347         its contents.
348         * ada-lang.c (ada_to_fixed_value): Make this function extern.
349         * ada-lang.h (ada_to_fixed_value): New function declaration.
350         * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
351         to avoid code duplication and fix a bug in the handling of
352         fixed types contents.
353
354 2010-04-20  Tom Tromey  <tromey@redhat.com>
355
356         * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
357         (read_partial_die): Likewise.
358         (dwarf_attr_name): Likewise.
359
360 2010-04-20  Chris Moller  <cmoller@redhat.com>
361         
362         PR 10867
363
364         * cp-valprint.c (global): Adding new static array recursion
365         detection obstack.
366         (cp_print_value_fields, cp_print_static_field): Added new static
367         array recursion detection code.
368
369 2010-04-20  Mark Kettenis  <kettenis@gnu.org>
370
371         * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
372         general-purpose register set should be 68 instead of 144.
373         (i386_linux_sse_regset_sections): Likewise.
374         (i386_linux_avx_regset_sections): Likewise.
375
376 2010-04-20  Stan Shebs  <stan@codesourcery.com>
377             Nathan Sidwell  <nathan@codesourcery.com>
378
379         * dwarf2loc.c (struct axs_var_loc): New struct.
380         (dwarf2_tracepoint_var_loc): New function.
381         (dwarf2_tracepoint_var_access): New function.
382         (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
383         with DW_OP_piece.
384         (locexpr_describe_location_piece): New function.
385         (locexpr_describe_location_1): New function.
386         (locexpr_describe_location): Call it, update signature.
387         (loclist_describe_location): Rewrite to loop over locations,
388         update signature.
389         * symtab.h (struct symbol_computed_ops): Add address to
390         describe_location arguments, return void.
391         * printcmd.c (address_info): Get context PC, pass to computed
392         location description.
393         * tracepoint.c (scope_info): Ditto.
394         * ax-gdb.c (trace_kludge): Export.
395
396 2010-04-20  Tom Tromey  <tromey@redhat.com>
397
398         * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
399         (struct dwarf2_cie) <segment_size>: New field.
400         * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
401         (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
402         DW_FORM_exprloc.
403         (read_attribute_value): Handle DW_FORM_flag_present,
404         DW_FORM_sec_offset, DW_FORM_exprloc.
405         (dump_die_shallow): Likewise.
406         (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
407         (dwarf2_const_value): Handle DW_FORM_exprloc.
408         (attr_form_is_block): Likewise.
409         (struct line_header) <maximum_ops_per_instruction>: New field.
410         (dwarf_decode_line_header): Set new field.
411         (dwarf_decode_lines): Handle new field.
412
413 2010-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
414
415         * f-exp.y: Add new production to recognize the `logical*8' type.
416         (LOGICAL_S8_KEYWORD): New token.
417         * f-lang.c (enum f_primitive_types)
418         <f_primitive_type_logical_s8>: New field.
419         (f_language_arch_info): Handling `logical*8' type.
420         (build_fortran_types): Building `logical*8' type.
421         * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
422
423 2010-04-19  Doug Evans  <dje@google.com>
424
425         * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
426         * ser-pipe.c (pipe_open): Fix file descriptor leaks.
427         (pipe_close): Ditto.
428
429 2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
430
431         * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
432
433 2010-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
434
435         * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
436         type to void function.
437
438 2010-04-19  Stan Shebs  <stan@codesourcery.com>
439             Vladimir Prus  <vladimir@codesourcery.com>
440
441         * tracepoint.c (tfind_1): Add missing newline, report exit from
442         tfind mode as such.
443         * target.c (update_current_target): Make default
444         to_trace_find return -1.
445
446 2010-04-19  Mike Frysinger  <vapier@gentoo.org>
447
448         * objc-lang.c (find_methods): Move symname check up.
449
450 2010-04-19  Pedro Alves  <pedro@codesourcery.com>
451
452         * ada-lang.c (print_recreate_exception)
453         <ex_catch_exception_unhandled>: It's "catch exception unhandled",
454         not "catch unhandled".
455
456 2010-04-19  Pedro Alves  <pedro@codesourcery.com>
457
458         PR breakpoints/8554.
459
460         Implement `save-breakpoints'.
461
462         * breakpoint.c (save_cmdlist): New.
463         (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
464         to save_cmdlist.
465         (print_recreate_catch_fork): New.
466         (catch_fork_breakpoint_ops): Install it.
467         (print_recreate_catch_vfork): New.
468         (catch_vfork_breakpoint_ops): Install it.
469         (print_recreate_catch_syscall): New.
470         (catch_syscall_breakpoint_ops): Install it.
471         (print_recreate_catch_exec): New.
472         (catch_exec_breakpoint_ops): Install it.
473         (print_recreate_exception_catchpoint): New.
474         (gnu_v3_exception_catchpoint_ops): Install it.
475         (save_breakpoints): New, based on tracepoint_save_command, but
476         handle all breakpoint types.
477         (save_breakpoints_command): New.
478         (tracepoint_save_command): Rename to...
479         (save_tracepoints_command): ... this, and reimplement using
480         save_breakpoints.
481         (save_command): New.
482         (_initialize_breakpoints): Install the "save" command prefix.
483         Install the "save breakpoints" command.  Make "save-tracepoints" a
484         deprecated alias for "save tracepoints".
485         * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
486         * ada-lang.c (print_recreate_exception): New.
487         (print_recreate_catch_exception): New.
488         (catch_exception_breakpoint_ops): Install it.
489         (print_recreate_catch_exception_unhandled): New.
490         (catch_exception_unhandled_breakpoint_ops): Install it.
491         (print_recreate_catch_assert): New.
492         (catch_assert_breakpoint_ops): Install it.
493
494         * NEWS: Mention the new `save breakpoints' command.  Mention the
495         new `save tracepoints' alias and that `save-tracepoints' is now
496         deprecated.
497
498 2010-04-18  Pedro Alves  <pedro@codesourcery.com>
499
500         PR tui/9217
501
502         * tui/tui-out.c: Include cli-out.h.
503         (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
504         (tui_begin, tui_end, tui_field_int, tui_field_skip)
505         (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
506         (tui_message, tui_wrap_hint, tui_flush): Delete forward
507         declarations.
508         (struct ui_out_data): Rename to...
509         (struct tui_ui_out_data): ... this.  Remove `stream' and
510         `suppress_output' fields, and inherit cli_ui_out_data.
511         (tui_out_data): New typedef.
512         (tui_ui_out_impl): Don't initialize fields staticaly.
513         (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
514         (tui_begin, tui_end): Delete.
515         (tui_field_int): Adjust to delegate most work to the base type.
516         (tui_field_skip): Delete.
517         (tui_field_string, tui_field_fmt): Adjust comment.  Adjust to
518         delegate most work to the base type.
519         (tui_spaces): Delete.
520         (tui_text): Adjust to delegate most work to the base type.
521         (tui_message): Delete.
522         (tui_wrap_hint): Delete.
523         (tui_flush): Delete.
524         (out_field_fmt): Delete.
525         (field_separator): Delete.
526         (tui_out_new): Adjust to initialize the base type.
527         (_initialize_tui_out): Initialize tui_ui_out_impl.
528         * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
529         cli_ui_out_data.
530         (cli_out_data): Adjust.
531         (cli_ui_out_impl): Make extern.
532         (cli_table_header, cli_field_int, cli_field_skip): Use
533         uo_field_string instead of cli_field_string.
534         (cli_redirect): Adjust to use cli_out_data.
535         (cli_out_data_ctor): New.
536         (cli_out_new): Use it.
537         * cli-out.h (struct ui_file): Remove forward declaration.
538         (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
539         (cli_ui_out_impl): Declare.
540         (cli_out_data_ctor): Declare.
541         * ui-out.c (struct ui_out) <data>: Change type to void pointer.
542         (uo_field_string): No longer static.
543         (ui_out_data): Change return type to void pointer.
544         (ui_out_new): Change `data' parameter type to void pointer.
545         * ui-out.h (struct ui_out_data): Don't forward declare.
546         (ui_out_data): Change return type to void pointer.
547         (ui_out_new): Change `data' parameter type to void pointer.
548         (uo_field_string): Declare.
549
550 2010-04-17  Pedro Alves  <pedro@codesourcery.com>
551
552         * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
553         instead of always false.
554
555 2010-04-17  H.J. Lu  <hongjiu.lu@intel.com>
556
557         PR corefiles/11511
558         * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
559         orig_rax.
560
561 2010-04-17  Pedro Alves  <pedro@codesourcery.com>
562
563         * breakpoint.c (watchpoints_triggered): Use
564         is_hardware_watchpoint.
565         (watchpoints_triggered): Ditto.
566         (bpstat_check_location): Use is_watchpoint and
567         is_hardware_watchpoint.
568         (bpstat_check_watchpoint): Use is_watchpoint and
569         is_hardware_watchpoint.
570         (bpstat_stop_status): Fix comment.
571         (user_settable_breakpoint): Use is_watchpoint.
572         (hw_watchpoint_used_count): Use is_hardware_watchpoint.
573         (disable_watchpoints_before_interactive_call_start): Use
574         is_watchpoint.
575         (enable_watchpoints_after_interactive_call_stop): Use
576         is_watchpoint.
577         (clear_command): Use is_watchpoint.
578         (do_enable_breakpoint): Use is_watchpoint.
579
580 2010-04-16  Mike Frysinger  <vapier@gentoo.org>
581
582         * solib-frv.c (enable_break1_done): Delete.
583         (enable_break2): Do not check enable_break1_done.  Move the
584         enable_break2_done setting and call to
585         remove_solib_event_breakpoints() to the end.  Return without
586         warning when the contents of _dl_debug_addr are 0.
587         (enable_break): Do not set enable_break1_done.
588         (frv_clear_solib): Likewise.
589
590 2010-04-16  Kevin Buettner  <kevinb@redhat.com>
591
592         * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
593         instead of an error if no PLT entry is found.  Return a
594         potentially useful result.
595         (m32c_m16c_pointer_to_address): Add code to search for function
596         address when no .plt entry is found.
597
598 2010-04-16  Stan Shebs  <stan@codesourcery.com>
599
600         * tracepoint.c (trace_variable_command): Run a cleanup.
601
602 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
603
604         * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
605
606 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
607
608         Support for Windows OS Thread Information Block.
609         * NEWS: Document new feature.
610         * remote.c (PACKET_qGetTIBAddr): New enum element.
611         (remote_get_tib_address): New function.
612         (init_remote_ops): Set to_get_tib_address field
613         to remote_get_tib_address.
614         (_initialize_remote): Add add_packet_config_cmd
615         for PACKET_qGetTIBAddr.
616         * target.c (update_current_target): Set default value for
617         new to_get_tib_address field.
618         * target.h (target_ops): New field to_get_tib_address.
619         (target_get_tib_address): New macro.
620         * windows-nat.c (thread_info): Add thread_local_base field.
621         (windows_add_thread): Add tlb argument of type 'void *'.
622         (fake_create_process): Adapt windows_add_thread call.
623         (get_windows_debug_event): Idem.
624         (windows_get_tib_address): New function.
625         (init_windows_ops): Set to_get_tib_address field
626         to remote_get_tib_address.
627         (_initialize_windows_nat): Replace info_w32_cmdlist
628         initialization by a call to init_w32_command_list.
629         (info_w32_command, info_w32_cmdlist): Removed from here...
630         to windows-tdep.c file.
631         * windows-tdep.h (info_w32_cmdlist): Declare.
632         (init_w32_command_list): New external function 
633         declaration.
634         * windows-tdep.c: Add several headers.
635         (info_w32_cmdlist): to here, made global.
636         (thread_information_32): New struct.
637         (thread_information_64): New struct.
638         (TIB_NAME): New char array.
639         (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
640         (maint_display_all_tib): New static variable.
641         (windows_get_tlb_type): New function.
642         (tlb_value_read, tlb_value_write): New functions.
643         (tlb_value_funcs): New static struct.
644         (tlb_make_value): New function.
645         (display_one_tib): New function.
646         (display_tib): New function.
647         (show_maint_show_all_tib):New function.
648         (info_w32_command): Moved from windows-nat.c.
649         (init_w32_command_list): New function.
650         (_initialize_windows_tdep): New function.
651         New "maint set/show show-all-tib" command
652         New "$_tlb" internal variable.
653
654 2010-04-16  Joel Brobecker  <brobecker@adacore.com>
655
656         * tui/tui-regs.c (tui_display_register): Add comment about
657         a couple of casts.
658         * tui/tui-stack.c (tui_show_locator_content): Ditto.
659
660 2010-04-15  Stan Shebs  <stan@codesourcery.com>
661
662         * frame.c: Include tracepoint.h.
663         (get_current_frame): Allow a trace frame to be an alternate source
664         of stack frame data.
665         * tracepoint.c (tfind_1): Don't try to get current stack frame if
666         it won't succeed.
667
668 2010-04-15  Pedro Alves  <pedro@codesourcery.com>
669
670         * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
671         flags.
672         * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
673
674 2010-04-15  Doug Evans  <dje@google.com>
675
676         * NEWS: Add entry for python program space support.
677         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
678         (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
679         (py-progspace.o): New rule.
680         * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
681         function.
682         (find_pretty_printer_from_progspace): New function.
683         (find_pretty_printer_from_gdb): New function.
684         (find_pretty_printer): Rewrite.
685         * python/py-progspace.c: New file.
686         * python/python-internal.h (program_space): Add forward decl.
687         (pspace_to_pspace_object, pspy_get_printers): Declare.
688         (gdbpy_initialize_pspace): Declare.
689         * python/python.c: #include "progspace.h".
690         (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
691         (_initialize_python): Call gdbpy_initialize_pspace.
692         (GdbMethods): Add current_progspace, progspaces.
693
694         Add -s option to source command.
695         * NEWS: Document new option.
696         * cli/cli-cmds.c (find_and_open_script): Add function comment.
697         Delete from_tty and cleanupp args.  Split filep arg into file and
698         full_pathp.  New arg search_path.
699         (source_script_from_stream): New function.
700         (source_script_with_search): New function.
701         (source_script): Rewrite.
702         (source_command): Parse "-s" option.
703         (init_cli_cmds): Add "-s" docs to source command help, and reformat.
704         * python/python.c (source_python_script): Make file arg a const char *.
705         Don't call fclose, leave for caller.
706         * python/python.h (source_python_script): Update.
707
708 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
709             Pedro Alves  <pedro@codesourcery.com>
710
711         Avoid rereading shared libraries that haven't changed.
712
713         * solib.c (free_so_symbols): New function, from ...
714         (free_so): ... here.  Call it.
715         (solib_read_symbols): Don't warn here if symbols have already been
716         loaded.
717         (solib_add): Warn here instead, if a pattern was specified.
718         (reload_shared_libraries_1): New.
719         (reload_shared_libraries): Rewrite to not fetch the library list.
720
721 2010-04-14  Doug Evans  <dje@google.com>
722
723         * source.c (openp): Strip DOS drive letter if present before
724         concatenating string to search path.
725
726 2010-04-14  Pedro Alves  <pedro@codesourcery.com>
727
728         * objfiles.h (gdb_bfd_close_or_warn): Declare.
729         * objfiles.c (gdb_bfd_close_or_warn): New.
730         * corelow.c: Include objfiles.h
731         (core_close): Use gdb_bfd_close_or_warn.
732         * elfread.c (build_id_verify): Ditto.
733         * exec.c (exec_close, exec_close_1): Ditto.
734
735 2010-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
736             Pedro Alves  <pedro@codesourcery.com>
737
738         Group errors for many missing shared libraries.
739
740         * solist.h (struct so_list): Remove from_tty.
741         * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
742         (solib_map_sections): Take so_list argument.  Return 0 if we
743         failed to open a BFD.  Add target sections here.
744         (symbol_add_stub): Delete.
745         (solib_read_symbols): Inline symbol_add_stub.  Use current flags,
746         not from_tty copied from the so_list.  Don't warn a second time
747         for a missing library.
748         (update_solib_list): Don't save from_tty.  Use TRY_CATCH.  Do not
749         add to the section table here.  Print out a single warning for all
750         missing libraries.
751         * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
752         flags.
753
754 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
755
756         * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
757         error/warning messages.  Capitalize and use complete sentences.
758         (blpy_block_syms_iternext): Likewise.
759         * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
760         * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
761         (frame_info_to_frame_object, frapy_read_var)
762         (gdbpy_frame_stop_reason_string): Likewise.
763         * python/py-lazy-string.c (stpy_convert_to_value)
764         (gdbpy_create_lazy_string_object): Likewise.
765         * python/py-objfile.c (objfpy_set_printers): Likewise.
766         * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
767         * python/python.c (parameter_to_python): Likewise.
768         * python/py-type.c (typy_range, typy_target): Likewise.
769         * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
770         (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
771
772
773 2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
774
775         PR python/11381
776
777         * python/py-prettyprint.c (pretty_print_one_value): Test for
778         Py_None.
779         (print_string_repr): Test for Py_None.  Set flags accordingly.
780         Return value depending on return type.
781         (print_children): Take a value indicating whether data was printed
782         before this function was called.  Alter output accordingly.
783         (apply_val_pretty_printer): Capture return value from
784         print_string_repr and pass to print_children.
785
786 2010-04-13  Mark Kettenis  <kettenis@gnu.org>
787
788         PR corefiles/11481
789         * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
790         register note sections.
791         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
792         New variables.
793         (i386_linux_init_abi): Install list of supported register note
794         sections that matches the target description.
795
796 2010-04-13  Pedro Alves  <pedro@codesourcery.com>
797
798         * remote.c (remote_get_noisy_reply): Don't error out on empty
799         replies.
800         (remote_start_remote): Update and merge tracepoints and trace
801         state variables as long as the target supports tracepoints.
802         (remote_trace_init): Fix prototype.
803         (remote_download_trace_state_variable): Validate reply.
804         (remote_trace_set_readonly_regions): Fix prototype.
805         (remote_trace_start): Fix prototype.  Check for empty reply.
806         (remote_get_trace_status): Small cleanup.
807         (remote_trace_stop): Fix prototype.  Check for empty reply.
808         (remote_trace_find): Check for empty reply.
809         (remote_save_trace_data): Validate reply.
810         (remote_set_disconnected_tracing): Check for empty reply, and
811         validate reply.
812         (remote_set_circular_trace_buffer): Ditto.
813
814 2010-04-13  Pierre Muller  <muller@ics.u-strasbg.fr>
815
816         Suppress unused value warning during compilation.
817         * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
818         calls to void.
819         * tui/tui-stack.c (tui_show_locator_content): Likewise.
820
821 2010-04-12  Stan Shebs  <stan@codesourcery.com>
822
823         * tracepoint.c (tfile_xfer_partial): Check read result.
824
825 2010-04-12  Mike Frysinger  <vapier@gentoo.org>
826
827         * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
828         * remote-sim.c (gdbsim_files_info): Likewise.
829
830 2010-04-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
831
832         * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
833         * arm-linux-nat.c (arm_linux_vfp_register_count): New
834         variable.
835         (fetch_vfp_registers): New function to fetch VFP registers.
836         (store_vfp_registers): New function to store VFP registers.
837         (arm_linux_fetch_inferior_registers): Add support for VFP
838         registers.
839         (arm_linux_store_inferior_registers): Likewise.
840         (arm_linux_read_description): Likewise.
841         (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
842         until we need it.
843
844 2010-04-11  H.J. Lu  <hongjiu.lu@intel.com>
845
846         * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
847         tdep.
848         (amd64_collect_xstateregset): Likewise.
849
850 2010-04-09  Stan Shebs  <stan@codesourcery.com>
851
852         * tracepoint.c (trace_status_mi): Report frames created.
853
854         * tracepoint.c (trace_dump_command): Include default-collect
855         expressions.
856
857 2010-04-09  Ulrich Weigand  <uweigand@de.ibm.com>
858
859         * symtab.c (find_function_start_sal): Never return SAL pointing
860         before function start address, even if line info is missing.
861
862 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
863
864         * NEWS: Mention tracepoints support.
865
866 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
867
868         * tracepoint.c (trace_status_mi): Report disconnected tracing and
869         circular trace buffer statuses.
870
871 2010-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
872
873         * config/djgpp/fnchange.lst: Fix typo in translations for
874         symbol-without-target_section.exp and symbol-without-target_section.c.
875
876 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
877
878         * breakpoint.c (condition_command): Pass condition expression to
879         set_breakpoint_condition stripped from breakpoint number.
880
881 2010-04-09  Phil Muldoon  <pmuldoon@redhat.com>
882             Thiago Jung Bauermann  <bauerman@br.ibm.com>
883             Tom Tromey  <tromey@redhat.com>
884
885         * breakpoint.c (condition_command): Simplify.  Move condition
886         setting code to ...
887         (set_breakpoint_condition): ... here.  New function.
888         * breakpoint.h  (set_breakpoint_condition): Declare.
889         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
890         (SUBDIR_PYTHON_SRCS): Likewise.
891         (py-breakpoint.o): New rule.
892         * python/py-breakpoint.c: New file.
893         * python/python-internal.h (gdbpy_breakpoints)
894         (gdbpy_initialize_breakpoints): Declare.
895         (GDB_PY_SET_HANDLE_EXCEPTION) Define.
896
897 2010-04-09  Pedro Alves  <pedro@codesourcery.com>
898
899         * regformats/regdat.sh: Include server.h.  Don't include
900         regcache.h.
901
902 2010-04-08  Stan Shebs  <stan@codesourcery.com>
903             Pedro Alves  <pedro@codesourcery.com>
904
905         * tracepoint.h (struct trace_status): New fields disconnected_tracing
906         and circular_buffer.
907         (disconnect_tracing): Rename from disconnect_or_stop_tracing.
908         * tracepoint.c (trace_status_command): Display target's status for
909         disconnected tracing and circular buffer.
910         (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
911         query for non-disconnected-tracing case, remove the stop_tracing
912         call.
913         (tfile_open): Clear disconnected and circular buffer status.
914         (trace_save): Save disconnected and circular buffer status.
915         (parse_trace_status): Parse disconnected and circular buffer status,
916         also recognize disconnected as a stop reason.
917         * remote.c (remote_set_disconnected_tracing): Only set
918         QTDisconnected if the remote end supports disconnected tracing.
919         Warn otherwise, if trying to enable disconnected tracing.
920         * infcmd.c (detach_command): Update disconnect_tracing call.
921         * cli/cli-cmds.c (quit_command): Ditto.
922
923 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
924
925         * i387-tdep.c (i387_collect_xsave): Replace abort with
926         internal_error.
927
928 2010-04-08  Stan Shebs  <stan@codesourcery.com>
929
930         * breakpoint.c (default_collect_info): New function.
931         (breakpoints_info): Call it.
932         (maintenance_info_breakpoints): Ditto.
933         (tracepoints_info): Ditto.
934
935 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
936
937         * i387-tdep.c (i387_collect_xsave): Re-indent.
938
939 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
940
941         * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
942         if HAVE_PTRACE_GETFPXREGS is defined.
943         (i386_linux_read_description): Set have_ptrace_getfpxregs and
944         have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
945
946         * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
947         (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
948         if .reg-xfp section doesn't exist.
949         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
950
951         * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
952
953         * i386-tdep.c: Include "features/i386/i386-mmx.c".
954         (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
955         (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional.  Set
956         xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
957         (i386_gdbarch_init): Update comments.
958         (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
959
960         * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
961
962         * config/djgpp/fnchange.lst: Add i386 MMX XML files.
963
964         * features/Makefile (i386/i386-mmx-expedite): New.
965         (i386/i386-mmx-linux-expedite): Likewise.
966         ($(outdir)/i386/i386-mmx.dat): Likewise.
967         ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
968
969         * features/i386/i386-mmx-linux.c: New.
970         * features/i386/i386-mmx-linux.xml: Likewise.
971         * features/i386/i386-mmx.c: Likewise.
972         * features/i386/i386-mmx.xml: Likewise.
973         * regformats/i386/i386-mmx-linux.dat: Likewise.
974         * regformats/i386/i386-mmx.dat: Likewise.
975
976         * features/Makefile (WHICH): Add i386/i386-mmx and
977         i386/i386-mmx-linux.
978
979 2010-04-08  Doug Evans  <dje@google.com>
980
981         * source.c (openp): Skip $cdir in PATH.
982
983 2010-04-08  Phil Muldoon  <pmuldoon@redhat.com>
984
985         PR python/11417
986         * python/py-lazy-string.c (stpy_convert_to_value): Check for
987         a NULL address.
988         (gdbpy_create_lazy_string_object): Allow strings with a NULL
989         address and a zero length.
990
991 2010-04-08  Hui Zhu  <teawater@gmail.com>
992
993         * i386-tdep.c (i386_process_record): Add support for insn
994         rdtsc.
995
996 2010-04-07  Doug Evans  <dje@google.com>
997
998         * python/python.c (source_python_script): Use ensure_python_env
999         to prepare environment for script.
1000
1001 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
1002
1003         * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
1004         <sys/uio.h> and "i386-xstate.h".
1005         (PTRACE_GETREGSET): New.
1006         (PTRACE_SETREGSET): Likewise.
1007         (have_ptrace_getregset): Likewise.
1008         (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
1009         registers.
1010         (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
1011         registers.
1012         (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
1013         (amd64_linux_store_inferior_registers): Likewise.
1014         (amd64_linux_read_description): Check and enable AVX target
1015         descriptions.
1016
1017         * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
1018         and "features/i386/amd64-avx-linux.c".
1019         (amd64_linux_regset_sections): New.
1020         (amd64_linux_core_read_description): Check and enable AVX
1021         target description.
1022         (amd64_linux_init_abi): Set xsave_xcr0_offset.  Call
1023         set_gdbarch_core_regset_sections.
1024         (_initialize_amd64_linux_tdep): Call
1025         initialize_tdesc_amd64_avx_linux.
1026
1027         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
1028         AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
1029         (tdesc_amd64_avx_linux): New.
1030         (amd64_linux_update_xstateregset): Likewise.
1031
1032         * amd64-tdep.c: Include "features/i386/amd64-avx.c".
1033         (amd64_ymm_names): New.
1034         (amd64_ymmh_names): Likewise.
1035         (amd64_register_name): Likewise.
1036         (amd64_supply_xstateregset): Likewise.
1037         (amd64_collect_xstateregset): Likewise.
1038         (amd64_supply_xsave): Likewise.
1039         (amd64_collect_xsave): Likewise.
1040         (AMD64_NUM_REGS): Removed.
1041         (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
1042         %xmmN if AVX is available.
1043         (amd64_pseudo_register_name): Support pseudo YMM registers.
1044         (amd64_regset_from_core_section): Support .reg-xstate section.
1045         (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
1046         and ymm0h_regnum.  Call set_gdbarch_register_name.
1047         (amd64_init_abi): Call initialize_tdesc_amd64_avx.
1048
1049         * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
1050         AMD64_YMM15H_REGNUM.
1051         (AMD64_NUM_REGS): New.
1052         (amd64_supply_xsave): Likewise.
1053         (amd64_collect_xsave): Likewise.
1054         (amd64_register_name): Removed.
1055         (amd64_register_type): Likewise.
1056
1057 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
1058
1059         * i387-tdep.c: Include "i386-xstate.h".
1060         (XSAVE_XSTATE_BV_ADDR): New.
1061         (xsave_avxh_offset): Likewise.
1062         (XSAVE_AVXH_ADDR): Likewise.
1063         (i387_supply_xsave): Likewise.
1064         (i387_collect_xsave): Likewise.
1065
1066         * i387-tdep.h (I387_NUM_YMM_REGS): New.
1067         (I387_YMM0H_REGNUM): Likewise.
1068         (I387_YMMENDH_REGNUM): Likewise.
1069         (i387_supply_xsave): Likewise.
1070         (i387_collect_xsave): Likewise.
1071
1072 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
1073
1074         * i386-linux-nat.c: Include "regset.h", "elf/common.h",
1075         <sys/uio.h> and "i386-xstate.h".
1076         (PTRACE_GETREGSET): New.
1077         (PTRACE_SETREGSET): Likewise.
1078         (fetch_xstateregs): Likewise.
1079         (store_xstateregs): Likewise.
1080         (GETXSTATEREGS_SUPPLIES): Likewise.
1081         (regmap): Include 8 upper YMM registers.
1082         (i386_linux_fetch_inferior_registers): Support XSAVE extended
1083         state.
1084         (i386_linux_store_inferior_registers): Likewise.
1085         (i386_linux_read_description): Check and enable AVX target
1086         descriptions.
1087
1088         * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
1089         "i386-xstate.h" and "features/i386/i386-avx-linux.c".
1090         (i386_linux_regset_sections): Add ".reg-xstate".
1091         (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
1092         (i386_linux_core_read_xcr0): New.
1093         (i386_linux_core_read_description): Check and enable AVX target
1094         description.
1095         (i386_linux_init_abi): Set xsave_xcr0_offset.
1096         (_initialize_i386_linux_tdep): Call
1097         initialize_tdesc_i386_avx_linux.
1098
1099         * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
1100         I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
1101         (i386_linux_core_read_xcr0): New.
1102         (tdesc_i386_avx_linux): Likewise.
1103         (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
1104
1105         * i386-tdep.c: Include "i386-xstate.h" and
1106         "features/i386/i386-avx.c".
1107         (i386_ymm_names): New.
1108         (i386_ymmh_names): Likewise.
1109         (i386_ymmh_regnum_p): Likewise.
1110         (i386_ymm_regnum_p): Likewise.
1111         (i386_xmm_regnum_p): Likewise.
1112         (i386_register_name): Likewise.
1113         (i386_ymm_type): Likewise.
1114         (i386_supply_xstateregset): Likewise.
1115         (i386_collect_xstateregset): Likewise.
1116         (i386_sse_regnum_p): Removed.
1117         (i386_pseudo_register_name): Support pseudo YMM registers.
1118         (i386_pseudo_register_type): Likewise.
1119         (i386_pseudo_register_read): Likewise.
1120         (i386_pseudo_register_write): Likewise.
1121         (i386_dbx_reg_to_regnum): Return %ymmN register number for
1122         %xmmN if AVX is available.
1123         (i386_regset_from_core_section): Support .reg-xstate section.
1124         (i386_register_reggroup_p): Supper upper YMM and YMM registers.
1125         (i386_process_record): Replace i386_sse_regnum_p with
1126         i386_xmm_regnum_p.
1127         (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
1128         Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
1129         (i386_gdbarch_init): Set xstateregset.  Set xsave_xcr0_offset.
1130         Call set_gdbarch_register_name.  Replace I386_SSE_NUM_REGS with
1131         I386_AVX_NUM_REGS.  Set ymmh_register_names, ymm0h_regnum and
1132         num_ymm_regs.  Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
1133         Set ymm0_regnum.
1134         (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
1135
1136         * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
1137         xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
1138         i386_ymm_type.
1139         (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
1140         (I386_AVX_NUM_REGS): New.
1141         (i386_xmm_regnum_p): Likewise.
1142         (i386_ymm_regnum_p): Likewise.
1143         (i386_ymmh_regnum_p): Likewise.
1144
1145         * common/i386-xstate.h: New.
1146
1147 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
1148
1149         * config/djgpp/fnchange.lst: Add x86 AVX XML files.
1150
1151         * features/Makefile (WHICH): Add i386/i386-avx,
1152         i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
1153         (i386/i386-avx-expedite): New.
1154         (i386/i386-avx-linux-expedite): Likewise.
1155         (i386/x86-64-avx-expedite):Likewise.
1156         (i386/x86-64-avx-linux-expedite): Likewise.
1157         ($(outdir)/i386/i386-avx.dat): New dependency.
1158         ($(outdir)/i386/i386-avx-linux.dat): Likewise.
1159         ($(outdir)/i386/x86-avx-64.dat): Likewise.
1160         ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
1161
1162         * features/i386/32bit-avx.xml: New.
1163         * features/i386/64bit-avx.xml: Likewise.
1164         * features/i386/i386-avx-linux.c: Likewise.
1165         * features/i386/i386-avx-linux.xml: Likewise.
1166         * features/i386/i386-avx.c: Likewise.
1167         * features/i386/i386-avx.xml: Likewise.
1168         * features/i386/x86-64-avx-linux.c: Likewise.
1169         * features/i386/x86-64-avx-linux.xml: Likewise.
1170         * features/i386/x86-64-avx.c: Likewise.
1171         * features/i386/x86-64-avx.xml: Likewise.
1172         * regformats/i386/i386-avx-linux.dat: Likewise.
1173         * regformats/i386/i386-avx.dat: Likewise.
1174         * regformats/i386/x86-64-avx-linux.dat: Likewise.
1175         * regformats/i386/x86-64-avx.dat: Likewise.
1176
1177 2010-04-07  Doug Evans  <dje@google.com>
1178
1179         * top.c (source_file_name): Make const char *.
1180         * top.h (source_file_name): Update.
1181         * cli/cli-script.c (source_cleanup_lines_args): Make old_file
1182         const char *.
1183         (script_from_file): Change `file' arg to const char *.
1184         * cli/cli-script.h (script_from_file): Update.
1185
1186 2010-04-06  Doug Evans  <dje@google.com>
1187
1188         * cli/cli-cmds.c (source_command): Run cleanups.
1189
1190 2010-04-06  Stan Shebs  <stan@codesourcery.com>
1191
1192         * defs.h (char_ptr): Move typedef here from...
1193         * ada-lang.c (char_ptr): Remove.
1194         * charset.c (char_ptr): Remove.
1195         * tracepoint.h (struct uploaded_string): Remove.
1196         (struct uploaded_tp): Use vectors for string arrays.
1197         * tracepoint.c (trace_save): Use vectors of actions.
1198         (parse_tracepoint_definition): Ditto.
1199         (get_uploaded_tp): Clear vectors.
1200         * breakpoint.c (create_tracepoint_from_upload): Use vectors.
1201         (next_cmd): Change to an int.
1202         (read_next_cmd): Use vector of command strings.
1203
1204 2010-04-06  Doug Evans  <dje@google.com>
1205
1206         * top.h (source_script, cd_command): Delete.
1207         * main.c: #include "cli/cli-cmds.h"
1208
1209 2010-04-06  Kevin Buettner  <kevinb@redhat.com>
1210
1211         * m32c-tdep.c (make_types): When calling `arch_type', pass size of
1212         type in bytes, not bits.
1213
1214 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
1215
1216         * stabsread.c (define_symbol): Add support for char
1217         and string constants.
1218
1219 2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
1220
1221         Remove remaining "%ll" uses.
1222         * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
1223         hex_string call.
1224         * rs6000-nat.c (rs6000_ptrace64): Idem.
1225         * solib-pa64.c (pa64_current_sos): Idem.
1226         * solib-spu.c (spu_current_sos): Idem.
1227         * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
1228         plongest call.
1229         * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
1230         phex (VAR, 8) call.
1231         * sh64-tdep.c (sh64_show_media_regs): Idem.
1232
1233 2010-04-05  Stan Shebs  <stan@codesourcery.com>
1234
1235         * tracepoint.c: Include gdbcore.h.
1236         (tfile_xfer_partial): Return partial results, also try reading
1237         from executable.
1238         (tfile_has_all_memory): New function.
1239         (init_tfile_ops): Use it.
1240
1241 2010-04-05  Sergio Durigan Junior  <sergiodj@redhat.com>
1242
1243         PR gdb/10736:
1244         * xml-syscall.c (my_gdb_datadir): New variable to keep track of
1245         the changes in data-directory.
1246         (init_sysinfo): Reload the syscall XML file if the data-directory
1247         has changed.
1248
1249 2010-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
1250
1251         Code cleanup.
1252         * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
1253
1254 2010-04-04  Stan Shebs  <stan@codesourcery.com>
1255             Nathan Sidwell  <nathan@codesourcery.com>
1256
1257         * breakpoint.c (breakpoint_1): Add filter argument, return number of
1258         breakpoints printed.
1259         (is_hardware_watchpoint): Make argument const.
1260         (is_watchpoint): Ditto.
1261         (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
1262         use it everywhere.
1263         (breakpoints_info): Pass NULL to breakpoint_1.
1264         (maintenance_info_breakpoints): Ditto.
1265         (watchpoints_info): New function.
1266         (tracepoints_info): Use breakpoint_1 filter.
1267         (set_ignore_count): Warn that tracepoint ignore count will be ignored.
1268         (_initialize_breakpoint): Make "info watchpoints" its own command.
1269         * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
1270         * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
1271
1272 2010-04-04  Stan Shebs  <stan@codesourcery.com>
1273
1274         * tracepoint.c (tfile_fetch_registers): Add fallback case.
1275
1276 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1277
1278         * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
1279         * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
1280
1281 2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1282
1283         * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
1284         * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
1285
1286 2010-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1287
1288         * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
1289         code form.
1290
1291 2010-04-02  Hui Zhu  <teawater@gmail.com>
1292
1293         * i386-tdep.c (OT_DQUAD): New enum.
1294         (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
1295         SSE3, SSSE3 and SSE4.
1296
1297 2010-04-02  Hui Zhu  <teawater@gmail.com>
1298
1299         * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
1300         "*addr = 0".
1301
1302 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
1303
1304         * tracepoint.c (trace_dump_actions): New, factored out from
1305         trace_dump_command, and adjusted to recurse into while-stepping's
1306         action list.
1307         (trace_dump_command): Use it.
1308
1309 2010-04-02  Pedro Alves  <pedro@codesourcery.com>
1310
1311         * breakpoint.h (struct counted_command_line): Moved definition to
1312         breakpoint.c, and forward declare.
1313         (breakpoint_commands): Declare.
1314         * breakpoint.c (struct counted_command_line): Moved here.
1315         (breakpoint_commands): New.
1316         * tracepoint.c (encode_actions): Use breakpoint_commands.
1317         * remote.c (remote_download_tracepoint): Ditto.
1318
1319 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
1320
1321         * remote.c (remote_parse_stop_reply): Use hex_string instead
1322         of phex_nz for error.
1323
1324 2010-04-01  Stan Shebs  <stan@codesourcery.com>
1325             Nathan Sidwell  <nathan@codesourcery.com>
1326
1327         * tracepoint.h (enum actionline_type): Remove.
1328         (validate_actionline): Change return to void.
1329         * tracepoint.c (report_agent_reqs_errors): New function.
1330         (validate_actionline): Call it, change return to void, report errors
1331         more consistently.
1332         (collect_symbol): Call report_agent_reqs_errors.
1333         (encode_actions_1): Ditto.
1334         (encode_actions): Don't expect a result from validate_actionline.
1335
1336 2010-04-01  Stan Shebs  <stan@codesourcery.com>
1337
1338         * tracepoint.c (trace_start_command): Confirm if trace is running.
1339         (trace_stop_command): Error if trace not running.
1340
1341 2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
1342
1343         * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
1344         (AMD64_NUM_LOWER_BYTE_REGS): New.
1345         (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
1346         (amd64_pseudo_register_write): Likewise.
1347         (amd64_init_abi): Set num_byte_regs to 20.
1348
1349 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
1350
1351         * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
1352         (prev_breakpoint_count): New.
1353         (set_breakpoint_count): Adjust.
1354         (rbreak_start_breakpoint_count): New.
1355         (start_rbreak_breakpoints): Adjust.
1356         (end_rbreak_breakpoints): Adjust.
1357         (struct commands_info) <arg>: New field.
1358         (do_map_commands_command): Tweak output to include breakpoint spec
1359         range.
1360         (commands_command_1): Adjust.  Avoid setting an xfree cleanup if
1361         ARG was empty on entry.  Set INFO's arg.
1362         (create_breakpoint): Adjust.
1363
1364         * NEWS: Clarify `commands' changes.
1365
1366 2010-04-01  Pedro Alves  <pedro@codesourcery.com>
1367
1368         * tracepoint.c: Include stack.h.
1369         (struct add_local_symbols_data): New.
1370         (do_collect_symbol): New.
1371         (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
1372         iterate_over_block_local_vars.
1373         * stack.c (print_block_frame_locals): Rewrite as ...
1374         (iterate_over_block_locals): ... this.  Take a callback function
1375         pointer and generic data pointer, and call that instead of
1376         print_variable_and_value.
1377         (struct print_variable_and_value_data): New.
1378         (do_print_variable_and_value): New.
1379         (iterate_over_block_local_vars): New, abstracted out from
1380         print_frame_local_vars.
1381         (print_frame_local_vars): Rewrite using
1382         iterate_over_block_local_vars.
1383         (iterate_over_block_arg_vars): New, abstracted out from
1384         print_frame_arg_vars.
1385         (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
1386         * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
1387         (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
1388
1389 2010-03-31  Richard Earnshaw  <rearnsha@arm.com>
1390
1391         * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
1392         instructions.  Use the PC+4 if the base of the TBB or TBH is the
1393         PC register.
1394
1395 2010-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1396
1397         Fix crash on reading wrong function declaration DWARF.
1398         * dwarf2read.c (read_subroutine_type): New variable void_type.
1399         Pre-fill all TYPE_FIELD_TYPEs.  Move nparams and iparams initialization
1400         more close to their use.
1401
1402 2010-03-31  Stan Shebs  <stan@codesourcery.com>
1403
1404         * breakpoint.c (tracepoint_save_command): Include variables,
1405         conditionals, tracepoint types, and default-collect.
1406         * tracepoint.c (save_trace_state_variables): New function.
1407         * tracepoint.h (save_trace_state_variables): Declare it.
1408
1409 2010-03-31  Pierre Muller  <muller@ics.u-strasbg.fr>
1410
1411         * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
1412
1413 2010-03-30  Keith Seitz  <keiths@redhat.com>
1414
1415         * c-typeprint.c (c_type_print_args): Don't print "void"
1416         for java, regardless of whether it is TYPE_PROTOTYPED.
1417         Use the passed-in language instead of current_language.
1418         (c_type_print_varspec_suffix): Use current_language instead
1419         of assuming language_c.
1420         * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
1421         any return type specifier from the physname.
1422
1423 2010-03-30  Pedro Alves  <pedro@codesourcery.com>
1424
1425         * tui/tui-interp.c (tui_is_toplevel): New.
1426         (tui_init): Set it.
1427         (tui_allowed_p): New.
1428         * tui/tui.c (tui_enable): Check if the TUI is allowed before
1429         enabling it.
1430         * tui/tui.h (tui_allowed_p): Declare.
1431
1432 2010-03-30  Ozkan Sezer  <sezeroz@gmail.com>
1433
1434         * serial.h: Include winsock2.h before windows.h.
1435
1436 2010-03-30  H.J. Lu  <hongjiu.lu@intel.com>
1437
1438         * NEWS: Mention xmlRegisters= in qSupported packet.
1439
1440         * i386-tdep.c: Include "remote.h".
1441         (_initialize_i386_tdep): Call register_remote_support_xml.
1442
1443         * remote.c (remote_support_xml): New.
1444         (register_remote_support_xml): Likewise.
1445         (remote_query_supported_append): Likewise.
1446         (remote_query_supported): Support remote_support_xml.
1447
1448         * remote.h (register_remote_support_xml): New.
1449
1450 2010-03-29  Stan Shebs  <stan@codesourcery.com>
1451
1452         * tracepoint.c (trace_find_line_command): Remove dead code.
1453
1454         * tracepoint.h (struct uploaded_string): New struct.
1455         (struct uploaded_tp): New fields for source strings.
1456         * breakpoint.c (this_utp, next_cmd): New globals.
1457         (read_uploaded_action): New function.
1458         (create_tracepoint_from_upload): Fill in more parts
1459         of a tracepoint.
1460         * tracepoint.c (encode_source_string): New function.
1461         (trace_save): Write out source strings, fix error checks.
1462         (parse_tracepoint_definition): Add source string parsing.
1463         * remote.c (PACKET_TracepointSource): New packet type.
1464         (remote_download_command_source): New function.
1465         (remote_download_tracepoint): Download source pieces also.
1466         (_initialize_remote): Add packet config command.
1467
1468         * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
1469         expression handler.
1470
1471         * tracepoint.c (start_tracing): Check tracepoints before sending
1472         commands to target, don't start if all tracepoints disabled.
1473
1474 2010-03-28  Pedro Alves  <pedro@codesourcery.com>
1475
1476         * cli/cli-script.c (process_next_line): Handle 'stepping'.
1477
1478 2010-03-26  Stan Shebs  <stan@codesourcery.com>
1479
1480         * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
1481
1482 2010-03-26  Tom Tromey  <tromey@redhat.com>
1483
1484         * breakpoint.c (commands_command_1): Duplicate 'arg'.
1485
1486 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
1487
1488         * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
1489         (skip_prologue_sal): Remove local definition.
1490         (resolve_sal_pc): Remove now unnecessary code.
1491         * linespec.c (minsym_found): Call skip_prologue_sal.
1492         * symtab.c (find_function_start_pc): Remove.
1493         (find_function_start_sal): Extract prologue skipping into ...
1494         (skip_prologue_sal): ... this new function.  Handle code both
1495         with and without debug info.  Respect SAL's explicit_pc and
1496         explicit_line flags.  Inline old find_function_start_pc.
1497         * symtab.h (find_function_start_pc): Remove.
1498         (skip_prologue_sal): Add prototype.
1499
1500 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
1501
1502         * dwarf2read.c (read_func_scope): Also scan specification DIEs
1503         for DW_TAG_imported_module children.
1504
1505 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
1506
1507         * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
1508         ignoring spurious DW_AT_name attributes for unnamed structs or unions.
1509         * completer.c (add_struct_fields): Fix inverted logic.
1510
1511 2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
1512
1513         * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
1514
1515 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
1516
1517         * tracepoint.c (current_trace_status): Don't make sure error_desc
1518         is non-NULL here.
1519         (parse_trace_status): Release a previous error_desc string, and
1520         set it to NULL by default.  If stop reason is tracepoint_error,
1521         make sure error_desc is not left NULL.
1522
1523 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
1524
1525         * tracepoint.c (trace_save): Remove X from tracepoint error
1526         description.
1527
1528 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
1529
1530         * tracepoint.c (parse_trace_status): Don't allow plain strings in
1531         the terror description.  Don't expect an X prefix.
1532
1533 2010-03-25  Stan Shebs  <stan@codesourcery.com>
1534
1535         * tracepoint.h (trace_stop_reason): Add tracepoint_error.
1536         (struct trace_status): New field error_desc.
1537         * tracepoint.c (stop_reason_names): Add terror.
1538         (current_trace_status): Ensure non-NULL error description.
1539         (trace_status_command): Add error report.
1540         (trace_status_mi): Ditto.
1541         (trace_save): Add special case for error description.
1542         (parse_trace_status): Add case for errors.
1543
1544 2010-03-25  Keith Seitz  <keiths@redhat.com>
1545
1546         * dwarf2read.c (read_subroutine_type): If the compilation unit
1547         language is Java, mark any formal parameter named "this" as
1548         artificial (GCC/43521).
1549         (dwarf2_name): Add special handling for Java constructors.
1550
1551 2010-03-25  Tom Tromey  <tromey@redhat.com>
1552
1553         PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
1554         * infrun.c (handle_inferior_event): Change initialization of
1555         stop_stack_dummy.
1556         (handle_inferior_event): Change assignment to stop_stack_dummy.
1557         (normal_stop): Update use of stop_stack_dummy.
1558         (struct inferior_status) <stop_stack_dummy>: Change type.
1559         * inferior.h (stop_stack_dummy): Update.
1560         * infcmd.c (stop_stack_dummy): Change type.
1561         * infcall.c (cleanup_delete_std_terminate_breakpoint): New
1562         function.
1563         (call_function_by_hand): Call set_std_terminate_breakpoint.
1564         Rewrite std::terminate handling.
1565         * breakpoint.h (enum bptype) <bp_std_terminate,
1566         bp_std_terminate_master>: New.
1567         (enum stop_stack_kind): New.
1568         (struct bpstat_what) <call_dummy>: Change type.
1569         (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
1570         Declare.
1571         * breakpoint.c (create_std_terminate_master_breakpoint): New
1572         function.
1573         (update_breakpoints_after_exec): Handle bp_std_terminate_master.
1574         Call create_std_terminate_master_breakpoint.
1575         (print_it_typical): Handle new breakpoint kinds.
1576         (bpstat_stop_status): Handle bp_std_terminate_master.
1577         (bpstat_what): Correctly set call_dummy field.  Handle
1578         bp_std_terminate_master and bp_std_terminate.
1579         (print_one_breakpoint_location): Update.
1580         (allocate_bp_location): Update.
1581         (set_std_terminate_breakpoint): New function.
1582         (delete_std_terminate_breakpoint): Likewise.
1583         (create_thread_event_breakpoint): Update.
1584         (delete_command): Update.
1585         (breakpoint_re_set_one): Update.
1586         (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
1587
1588 2010-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1589
1590         * symfile.c (build_section_addr_info_from_bfd): New.
1591         (build_section_addr_info_from_objfile): Base it on
1592         build_section_addr_info_from_bfd.
1593         (addrs_section_compar, addrs_section_sort): New.
1594         (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
1595         addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs.  Build
1596         addrs_to_abfd_addrs.  Use it for recalculating ADDRS.
1597
1598 2010-03-24  Michael Snyder  <msnyder@localhost.localdomain>
1599
1600         * elfread.c (find_separate_debug_file_by_buildid):
1601         Remove unused local variable.
1602
1603 2010-03-24  Tom Tromey  <tromey@redhat.com>
1604
1605         PR breakpoints/9352:
1606         * NEWS: Mention changes to `commands' and `rbreak'.
1607         * symtab.c (do_end_rbreak_breakpoints): New function.
1608         (rbreak_command): Call start_rbreak_breakpoints; arrange to call
1609         end_rbreak_breakpoints.
1610         * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
1611         (set_breakpoint_count): Likewise.  Clear last_was_multi.
1612         (multi_start, multi_end, last_was_multi): New globals.
1613         (start_rbreak_breakpoints, end_rbreak_breakpoints): New
1614         functions.
1615         (struct commands_info): New
1616         (do_map_commands_command): New function.
1617         (commands_command_1): New function.
1618         (commands_command): Use it.
1619         (commands_from_control_command): Likewise.
1620         (do_delete_breakpoint): New function.
1621         (delete_command): Use it.
1622         (map_breakpoint_numbers): Add 'data' argument.  Pass to callback.
1623         (do_map_disable_breakpoint): New function.
1624         (disable_command): Use it.
1625         (do_map_enable_breakpoint): New function.
1626         (enable_command): Use it.
1627         (enable_once_breakpoint): Add argument.
1628         (enable_once_command): Update.
1629         (enable_delete_breakpoint): Add argument.
1630         (enable_delete_command): Update.
1631         (break_command_really): Set last_was_multi when needed.
1632         (check_tracepoint_command): Fix formatting.
1633         (validate_commands_for_breakpoint): New function.
1634         (breakpoint_set_commands): Use it.
1635         (tracepoint_save_command): Update.
1636         * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
1637         Declare.
1638
1639 2010-03-24  Tom Tromey  <tromey@redhat.com>
1640
1641         * breakpoint.h (struct counted_command_line): New struct.
1642         (struct breakpoint) <commands>: Change type.
1643         (struct bpstats) <commands>: Change type.
1644         <commands_left>: New field.
1645         * breakpoint.c (alloc_counted_command_line): New function.
1646         (incref_counted_command_line): Likewise.
1647         (decref_counted_command_line): Likewise.
1648         (do_cleanup_counted_command_line): Likewise.
1649         (make_cleanup_decref_counted_command_line): Likewise.
1650         (breakpoint_set_commands): Use decref_counted_command_line and
1651         alloc_counted_command_line.
1652         (commands_command): Don't error if breakpoint commands are
1653         executing.
1654         (commands_from_control_command): Likewise.
1655         (bpstat_free): Update.
1656         (bpstat_copy): Likewise.
1657         (bpstat_clear_actions): Likewise.
1658         (bpstat_do_actions_1): Likewise.
1659         (bpstat_stop_status): Likewise.
1660         (print_one_breakpoint_location): Likewise.
1661         (delete_breakpoint): Likewise.
1662         (bpstat_alloc): Initialize new field.
1663         (tracepoint_save_command): Update.
1664         * tracepoint.c (encode_actions): Update.
1665         (trace_dump_command): Update.
1666
1667 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
1668
1669         * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
1670         * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
1671         (read_structure_type): For RealView, set TYPE_STUB on structures with
1672         no byte size and no children.
1673         (read_subroutine_type): Mark functions as prototyped by default.
1674         * symtab.c (producer_is_realview): New function.
1675         * symtab.h (expand_line_sal): Fix declaration formatting.
1676         (producer_is_realview): Declare.
1677
1678 2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
1679
1680         * arm-tdep.c (skip_prologue_function): New function.
1681         (submask, bit, bits, sbits, BranchDest): Move higher in the file.
1682         (thumb_analyze_prologue): Document return value.  Recognize more
1683         Thumb instructions, skippable calls, and some Thumb-2 instructions.
1684         Add debug output.
1685         (arm_skip_prologue): Remove call dummy check.  Check the prologue
1686         for non-GNU compilers.
1687         (arm_instruction_changes_pc): New function.
1688         (arm_analyze_prologue): New function, broken out from
1689         arm_scan_prologue.  Recognize more ARM instructions and skippable
1690         calls.  Update comments.  Handle NULL cache.  Return the address
1691         of the first unrecognized instruction.  Do not skip past other
1692         instructions which change control flow.  Add debug output.
1693         (arm_scan_prologue): Use arm_analyze_prologue.
1694         (ARM_PC_32): Delete.
1695         (shifted_reg_val): Simplify ARM_PC_32 check.
1696
1697 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
1698
1699         * tracepoint.c (tvariables_info_1): Actually compute
1700         the number of rows in the result.
1701
1702 2010-03-24  Pedro Alves  <pedro@codesourcery.com>
1703
1704         * remote.c (crc32): Constify `buf' parameter.
1705         (remote_verify_memory): New, abstracted out from...
1706         (compare_sections_command): ... this.  Remove hardcoded target
1707         checks.
1708         (init_remote_ops): Install remote_verify_memory.
1709         * target.c (target_verify_memory): New.
1710         * target.h (struct target_ops) <to_verify_memory>: New field.
1711         (target_verify_memory): Declare.
1712
1713 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
1714
1715         Implement -trace-save.
1716
1717         * mi-cmds.h (mi_cmds_trace_save): Declare.
1718         * mi-cmds.c (mi_cmds): Register -trace-save.
1719         * mi/mi-main.c (mi_cmd_trace_save): New.
1720         * remote.c (remote_save_trace_data): Take const parameter.
1721         * target.h (struct target_ops::to_save_trace_data): Take
1722         const parameter.
1723         * target.c (update_current_target): Adjust to the above.
1724         * tracepoint.c (trave_save): New, extracted from
1725         (trace_save_command): ...this.
1726         (tfile_trace_find): Remove message that is unnecessary now
1727         that 'tfind' reports found frame.
1728         * tracepoint.h (trace_save): Declare.
1729
1730 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
1731
1732         Implement -trace-find.
1733
1734         * mi/mi-cmds.c (mi_cmds): Register -trace-find.
1735         * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
1736         * mi/mi-main.c (mi_cmd_trace_find): New.
1737         * target.h (struct target_ops): Document to_trace_find.
1738         * tracepoint.h (tfind_1): Declare.
1739         * tracepoint.c (finish_tfind_command): Rename to...
1740         (tfind_1): ...this.
1741         * remote.c (remote_trace_find): Return -1 if target say
1742         there's no frame.  Improve error diagnostics.
1743
1744 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
1745
1746         -trace-define-variable and -trace-list-variables.
1747
1748         * tracepoint.c (create_trace_state_variable): Make
1749         private copy of name, as opposed to assuming the
1750         pointer lives forever.
1751         (tvariables_info_1): New.
1752         (tvariables_info): Use the above.
1753         * tracepoint.h (create_trace_state_variable, tvariables_info_1):
1754         Declare.
1755         * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
1756         and -trace-list-variables.
1757         * mi/mi-cmds.h (mi_cmd_trace_define_variable)
1758         (mi_cmd_trace_list_variables): New.
1759         * mi/mi-main.c (mi_cmd_trace_define_variable)
1760         (mi_cmd_trace_list_variables): New.
1761
1762 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
1763
1764         Implement -break-passcount.
1765
1766         * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
1767         * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
1768         * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
1769
1770 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
1771
1772         -trace-start/-trace-end/-trace-status.
1773
1774         * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
1775         and -trace-stop.
1776         * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
1777         (mi_cmd_trace_stop): Declare.
1778         * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
1779         (mi_cmd_trace_stop): New.
1780         * tracepoint.c (start_tracing): New, extracted from...
1781         (trace_start_command): ...this.
1782         (trace_status_mi): New.
1783         * tracepoint.h (struct trace_status): Document
1784         stopping_tracepoint.
1785         (start_tracing, stop_tracing, trace_status_mi): Declare.
1786
1787 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
1788
1789         Implement creating tracepoints with -break-insert.
1790
1791         * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
1792         to mean that tracepoint should be created.
1793
1794 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
1795
1796         * breakpoint.c (check_no_tracepoint_commands): Use
1797         current spelling of 'teval'.
1798
1799 2010-03-24  Vladimir Prus  <vladimir@codesourcery.com>
1800
1801         Unify actions and commands
1802
1803         * defs.h (read_command_lines, read_command_lines_1): New
1804         parameters validator and closure.
1805         * tracepoint.h (struct action_line): Remove.
1806         * breakpoint.h (struct breakpoint): Remove the 'actions'
1807         field.
1808         * defs.h (enum command_control_type): New value
1809         while_stepping_control.
1810         (struct command_line): Add comments.
1811         * breakpoint.c (breakoint_is_tracepoint): New.
1812         (breakpoint_set_commands): For tracepoints,
1813         verify the commands are permissible.
1814         (check_tracepoint_commands): New.
1815         (commands_command): Require that each new line is validated using
1816         check_tracepoint_command, if we set commands for a tracepoint.
1817         (create_tracepoint_from_upload): Likewise.
1818         (print_one_breakpoint_location): Remove the code to print
1819         actions specifically.
1820         (tracepoint_save_command): Relay to print_command_lines.
1821         * cli/cli-script.c (process_next_line): New parameters validator
1822         and closure. Handle 'while-stepping'. Call validator if not null.
1823         (read_command_lines, read_command_lines1): Likewise.
1824         (recurse_read_control_structure): New parameters validator and
1825         closure. Handle while_stepping_control.
1826         (print_command_lines): Handle while-stepping.
1827         (get_command_line, define_command, document_command): Adjust.
1828         * remote.c (remote_download_tracepoint): Adjust.
1829         * tracepoint.c (make_cleanup_free_actions, read_actions)
1830         (free_actions, do_free_actions_cleanup): Remove.
1831         (trace_actions_command): Use read_command_lines.
1832         (validate_actionline): Use error in one place.
1833         (encode_actions_1): New, extracted from...
1834         (encode_actions): ...this. Also use cleanups for exception
1835         safety.
1836         (trace_dump_command): Adjust.
1837         * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
1838         it's tracepoint.
1839
1840 2010-03-23  Mike Frysinger  <vapier@gentoo.org>
1841
1842         * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
1843
1844 2010-03-22  Stan Shebs  <stan@codesourcery.com>
1845
1846         * value.c (value_static_field): Be lazy about the field's value.
1847
1848 2010-03-22  Reid Kleckner  <reid@kleckner.net>
1849
1850         PR gdb/11094
1851         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
1852         bp_jit_event.
1853         (disable_breakpoints_in_shlibs): Likewise.
1854
1855 2010-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
1856
1857         * dwarf2read.c (partial_die_parent_scope): Work around buggy
1858         GCC 4.1 debug info generation (GCC PR c++/28460).
1859         (determine_prefix): Likewise.
1860
1861 2010-03-20  Daniel Jacobowitz  <dan@codesourcery.com>
1862
1863         * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
1864         get_current_arch.
1865         * tui/tui-layout.c (extract_display_start_addr): Likewise.
1866
1867 2010-03-19  Stan Shebs  <stan@codesourcery.com>
1868
1869         * ax-gdb.c (gen_fetch): Handle bool.
1870         (gen_usual_unary): Ditto.
1871         (gen_cast): Ditto.
1872         (gen_equal): New function.
1873         (gen_less): New function.
1874         (gen_expr_binop_rest): Call them, also return integer type from
1875         logical operations.
1876         (gen_expr): Ditto.
1877
1878 2010-03-19  Tom Tromey  <tromey@redhat.com>
1879
1880         * jv-lang.c (jv_dynamics_objfile_data_key)
1881         (jv_type_objfile_data_key): New globals.
1882         (class_symtab): Move earlier.
1883         (jv_per_objfile_free): New function.
1884         (get_dynamics_objfile): Call set_objfile_data.  Add 'gdbarch'
1885         parameter.
1886         Remove ancient #if 1.
1887         (add_class_symbol): Remove redundant declaration.
1888         (java_lookup_class): Use alloc_type, not alloc_type_arch.
1889         (java_link_class_type): Mark as static.  Update.
1890         (jv_clear_object_type): New function.
1891         (set_java_object_type): Likewise.
1892         (get_java_object_type): Use set_java_object_type.
1893         (is_object_type): Likewise.
1894         (_initialize_java_language): Register new objfile keys.
1895         (get_java_class_symtab): Add 'gdbarch' parameter.
1896         (add_class_symtab_symbol): Update.
1897         (type_from_class): Update.
1898
1899 2010-03-19  Stan Shebs  <stan@codesourcery.com>
1900
1901         * ax-general.c (ax_const_l): Fix a sizing bug.
1902
1903 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
1904
1905         GDB 7.1 released.
1906
1907 2010-03-18  Stan Shebs  <stan@codesourcery.com>
1908             Pedro Alves  <pedro@codesourcery.com>
1909
1910         * target.h (struct target_ops): New method
1911         to_set_circular_trace_buffer.
1912         (target_set_circular_trace_buffer): New macro.
1913         * target.c (update_current_target): Add
1914         to_set_circular_trace_buffer, fix to_set_disconnected_tracing
1915         default behavior.
1916         * remote.c (remote_set_circular_trace_buffer): New function.
1917         (init_remote_ops): Add it to vector.
1918         * tracepoint.h (struct trace_status): New field traceframes_created,
1919         change buffer_size and buffer_free to int.
1920         * tracepoint.c (circular_trace_buffer): New global.
1921         (start_tracing): Send values of disconnected tracing and circular
1922         trace buffer settings.
1923         (set_circular_trace_buffer): New function.
1924         (parse_trace_state): Handle total space and frames created.
1925         (trace_status_command): Display total space and total frames
1926         created.
1927         (trace_save): Write out new status values.
1928         (parse_trace_status): Set traceframe_count, traceframes_created,
1929         buffer_free and buffer_size to -1 by default.
1930         (_initialize_tracepoint): New setshow for circular-trace-buffer.
1931         * NEWS: Mention the circular trace buffer option.
1932
1933 2010-03-18  Tom Tromey  <tromey@redhat.com>
1934
1935         * infcmd.c (finish_command_continuation): Wrap print_return_value
1936         in TRY_CATCH.
1937
1938 2010-03-18  Joel Brobecker  <brobecker@adacore.com>
1939
1940         * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
1941         DIE has a name before creating the associated partial symbol.
1942         (read_func_scope): Emit a complaint if the subprogram does not
1943         have a name or when we can't extract the subprogram PC bounds.
1944
1945 2010-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
1946
1947         * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
1948         instead of selected frame architecture.
1949
1950 2010-03-18  Pedro Alves  <pedro@codesourcery.com>
1951
1952         * infcmd.c (until_command): Use ERROR_NO_INFERIOR.  Ensure there's
1953         a valid selected thread, and that it is not running.
1954         (advance_command): Ditto.
1955         (finish_command): Ditto.
1956
1957 2010-03-17 Stan Shebs  <stan@codesourcery.com>
1958
1959         * ax-gdb.c (require_rvalue): Disallow non-scalars.
1960
1961         * infcall.c: Include tracepoint.h.
1962         (call_function_by_hand): Disallow calls in tfind mode.
1963         * infcmd.c: Include tracepoint.h.
1964         (ensure_not_tfind_mode): New function.
1965         (continue_1): Call it.
1966         (step_1) Ditto.
1967         (jump_command): Ditto.
1968         (signal_command): Ditto.
1969         (advance_command): Ditto.
1970         (until_command): Ditto.
1971         (finish_command): Ditto.
1972         * tracepoint.h (disconnect_or_stop_tracing): Declare.
1973
1974         * ax-gdb.h (struct axs_value): New field optimized_out.
1975         (gen_trace_for_var): Add gdbarch argument.
1976         * ax-gdb.c (gen_trace_static_fields): New function.
1977         (gen_traced_pop): Call it, add gdbarch argument.
1978         (gen_trace_for_expr): Update call to it.
1979         (gen_trace_for_var): Ditto, and report optimized-out variables.
1980         (gen_struct_ref_recursive): Check for optimized-out value.
1981         (gen_struct_elt_for_reference): Ditto.
1982         (gen_static_field): Pass gdbarch instead of expression, assume
1983         optimization if field not found.
1984         (gen_var_ref): Set the optimized_out flag.
1985         (gen_expr): Error on optimized-out variable.
1986         * tracepoint.c (collect_symbol): Handle struct-valued vars as
1987         expressions, skip optimized-out variables with computed locations.
1988         * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
1989         erroring out if location expression missing.
1990         (loclist_tracepoint_var_ref): Don't error out here.
1991
1992 2010-03-17  Tom Tromey  <tromey@redhat.com>
1993
1994         * dwarf2read.c (dwarf2_get_section_info): Handle case where no
1995         DWARF data is available.
1996
1997 2010-03-17  Daniel Jacobowitz  <dan@codesourcery.com>
1998
1999         * symfile.c (generic_load): Reset breakpoints after loading.
2000
2001 2010-03-17  Tom Tromey  <tromey@redhat.com>
2002
2003         * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
2004
2005 2010-03-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2006
2007         * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
2008         create_breakpoint call, adjust the parameters.
2009
2010 2010-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2011             Chandru <chandru@in.ibm.com>
2012
2013         * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
2014         * valarith.c (value_subscripted_rvalue): Suppress error if
2015         TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
2016
2017 2010-03-16  Holger Hans Peter Freyther  <zecke@selfish.org>
2018
2019         * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
2020
2021 2010-03-16  Joel Brobecker  <brobecker@adacore.com>
2022
2023         * ada-tasks.c (task_command_1): Check that the task ptid is valid
2024         before doing the associated thread switch.
2025
2026 2010-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
2027
2028         * MAINTAINERS: Update my email address.
2029
2030 2010-03-16  Vladimir Prus  <vladimir@codesourcery.com>
2031
2032         Simplify MI breakpoint setting.
2033
2034         * breakpoint.c (break_command_really): Make nonstatic and
2035         rename to...
2036         (create_breakpoint): ...this. Rename prior function by this name
2037         to...
2038         (create_breakpoint_sal): ...this.
2039         (create_breakpoints): Rename to...
2040         (create_breakpoints_sal): ...this.
2041         (set_breakpoint): Remove.
2042         * breakpoint.h: Adjust to above changes.
2043         * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
2044
2045 2010-03-15 Stan Shebs  <stan@codesourcery.com>
2046
2047         * ax-gdb.c: Include cp-support.h.
2048         (find_field): Remove.
2049         (gen_primitive_field): New function.
2050         (gen_struct_ref_recursive): New function.
2051         (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
2052         of find_field.
2053         (gen_static_field): New function.
2054         (gen_struct_elt_for_reference): New.
2055         (gen_namespace_elt): New.
2056         (gen_maybe_namespace_elt): New.
2057         (gen_aggregate_elt_ref): New.
2058         (gen_expr): Add OP_SCOPE, display opcode name in error message.
2059
2060 2010-03-15  Tom Tromey  <tromey@redhat.com>
2061
2062         * dwarf2read.c (die_needs_namespace): Also return 0 for
2063         DW_TAG_subprogram.
2064
2065 2010-03-15  Sami Wagiaalla  <swagiaal@redhat.com>
2066
2067         PR c++/7936:
2068         * cp-support.h: Added char *declaration element to using_direct
2069         data struct.
2070         (cp_add_using): Added char *declaration argument.
2071         (cp_add_using_directive): Ditto.
2072         (cp_lookup_symbol_imports): made extern.
2073         * cp-namespace.c: Updated with the above changes.
2074         * dwarf2read.c (read_import_statement): Ditto.
2075         (read_namespace): Ditto.
2076         (read_import_statement): Support import declarations.
2077         * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
2078         declarations.
2079         Added support for 'declaration_only' search.
2080         (cp_lookup_symbol_namespace): Attempt to search for the name as
2081         is before consideration of imports.
2082         * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
2083         search at every block level search.
2084         Now takes language argument.
2085         (lookup_symbol_aux): Updated.
2086
2087 2010-03-15  Tom Tromey  <tromey@redhat.com>
2088
2089         * c-exp.y (name_not_typename): Add 'operator' clause.
2090
2091 2010-03-15  Ralf Corsepius  <ralf.corsepius@rtems.org>  (tiny change)
2092
2093         * configure.ac: Exit if ${gdb_target_obs}" is not set.
2094         * configure: Regenerate.
2095
2096 2010-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2097
2098         * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
2099         and ".sdynbss".  Update the comment.
2100
2101 2010-03-15  Jie Zhang  <jie@codesourcery.com>
2102
2103         * MAINTAINERS: Update my email address.
2104
2105 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
2106
2107         * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
2108
2109 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
2110
2111         * charset.c [USE_WIN32API]: Include <windows.h>.
2112          (_initialize_charset): Correct type of w32_host_default_charset.
2113
2114 2010-03-14  Pedro Alves  <pedro@codesourcery.com>
2115
2116         * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
2117
2118 2010-03-12  Tom Tromey  <tromey@redhat.com>
2119
2120         PR c++/9708:
2121         * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
2122         in a lexical block does not need a namespace.
2123         (new_symbol) <DW_TAG_variable>: Put extern variables on
2124         list_in_scope in all cases.
2125
2126 2010-03-12 Stan Shebs  <stan@codesourcery.com>
2127
2128         * ax-gdb.c (gen_expr): Add shift expressions.
2129         (gen_expr_binop_rest): Ditto.
2130
2131 2010-03-12  Sami Wagiaalla  <swagiaal@redhat.com>
2132
2133         * buildsym.c (finish_block): Reset using_directives pointer
2134         after block initialization.
2135
2136 2010-03-12  H.J. Lu  <hongjiu.lu@intel.com>
2137
2138         * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
2139         * i386-tdep.c (i386_word_names): Likewise.
2140
2141 2010-03-12  Pedro Alves  <pedro@codesourcery.com>
2142
2143         * target.c (memory_xfer_partial): Don't use the stack cache if
2144         inspecting trace frames.
2145         * tracepoint.c (finish_tfind_command): Invalidate the target
2146         dcache.
2147
2148 2010-03-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2149
2150         * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
2151         for the PIC displacement, print also the displacement value.
2152         (svr4_exec_displacement):  Print DISPLACEMENT if INFO_VERBOSE.
2153
2154 2010-03-10  Kevin Buettner  <kevinb@redhat.com>
2155
2156         * remote-mips.c (close_ports, mips_initialize_cleanups)
2157         (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
2158         (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
2159         (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
2160         (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
2161         (pmon_check_entry_address, pmon_check_total, pmon_end_download)
2162         (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
2163         comments describing each of these functions.
2164         (mips_enter_debug, mips_exit_debug, common_open)
2165         (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
2166         blank line after the comment describing the function.
2167
2168 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
2169
2170         * solib-svr4.c (svr4_exec_displacement): Return now success, new
2171         parameter displacementp.  Update comment.
2172         (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
2173         element exists.  Return if svr4_exec_displacement was not successful.
2174         Update comment.
2175
2176 2010-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
2177             Daniel Jacobowitz  <dan@codesourcery.com>
2178
2179         * solib-svr4.c (read_program_header): Support type == -1 to read
2180         all program headers.
2181         (read_program_headers_from_bfd): New function.
2182         (svr4_static_exec_displacement): Remove and move the comment ...
2183         (svr4_exec_displacement): ... here.  Remove variable found.  New
2184         variable displacement.  Check also DYNAMIC.  Verify DISPLACEMENT
2185         alignment for ELF targets.  Compare target vs. exec_bfd PHDRs for ELF
2186         targets using read_program_headers_from_bfd.  Remove the call of
2187         svr4_static_exec_displacement.
2188
2189 2010-03-10  Tom Tromey  <tromey@redhat.com>
2190
2191         * dwarf2read.c (struct pubnames_header): Remove.
2192         (_PUBNAMES_HEADER): Remove.
2193         (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
2194         (struct aranges_header): Remove.
2195         (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
2196         (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
2197         (PUBNAMES_SECTION): Remove.
2198         (ARANGES_SECTION): Remove.
2199         (dwarf2_locate_sections): Don't handle pubnames or aranges.
2200         (dwarf2_build_psymtabs): Remove dead code.
2201         (dwarf2_build_psymtabs_easy): Remove.
2202
2203 2010-03-10  Tom Tromey  <tromey@redhat.com>
2204
2205         * elfread.c (elf_symfile_read): Don't call
2206         dwarf2_build_frame_info.
2207         * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
2208         (struct dwarf2_per_objfile) <objfile>: New field.
2209         (dwarf2_has_info): Now idempotent.  Set objfile field.
2210         (dwarf2_read_section): Check and set readin field.  Call
2211         posix_madvise.
2212         (dwarf2_build_psymtabs): Don't read all sections.
2213         (read_type_comp_unit_head): Read types section.
2214         (create_debug_types_hash_table): Likewise.
2215         (init_cu_die_reader): Add asserts.
2216         (process_type_comp_unit): Add assert.
2217         (dwarf2_build_psymtabs_hard): Read info section.
2218         (load_partial_comp_unit): Add assert.
2219         (create_all_comp_units): Read info section.
2220         (load_full_comp_unit): Likewise.
2221         (dwarf2_ranges_read): Read ranges section.
2222         (dwarf2_record_block_ranges): Add assert.
2223         (dwarf2_read_abbrevs): Read abbrev section.
2224         (read_indirect_string): Read str section.
2225         (dwarf_decode_line_header): Read line section.
2226         (read_signatured_type_at_offset): Read types section.
2227         (dwarf_decode_macros): Read macinfo section.
2228         (dwarf2_symbol_mark_computed): Read loc section.
2229         * dwarf2-frame.c (dwarf2_frame_find_fde): Call
2230         dwarf2_build_frame_info.
2231         (dwarf2_build_frame_info): Unconditionally set
2232         dwarf2_frame_objfile_data on the objfile.
2233         * configure.ac: Check for posix_madvise.
2234         * config.in, configure: Rebuild.
2235
2236 2010-03-10  Tom Tromey  <tromey@redhat.com>
2237
2238         * xcoffread.c (xcoff_start_psymtab): Update.
2239         (xcoff_end_psymtab): Update.
2240         * psymtab.c (allocate_psymtab): Remove dead code.
2241         * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
2242         void*.
2243         * mdebugread.c (parse_partial_symbols): Update.
2244         (new_psymtab): Likewise.
2245         * dwarf2read.c (process_psymtab_comp_unit): Update.
2246         (psymtab_to_symtab_1): Update.
2247         * dbxread.c (start_psymtab): Update.
2248         (end_psymtab): Likewise.
2249
2250 2010-03-10  Tom Tromey  <tromey@redhat.com>
2251
2252         * xcoffread.c: Include psymtab.h.
2253         (xcoff_sym_fns): Update.
2254         * symtab.h (struct partial_symbol): Remove.
2255         (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
2256         (struct partial_symtab): Remove.
2257         (PSYMTAB_TO_SYMTAB): Remove.
2258         (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
2259         (find_pc_sect_psymtab): Remove.
2260         (find_pc_sect_symtab_via_partial): Declare.
2261         (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
2262         (find_main_psymtab): Remove.
2263         (find_main_filename): Declare.
2264         (fixup_psymbol_section): Remove.
2265         (fixup_section): Declare.
2266         * symtab.c: Include psymtab.h.
2267         (lookup_symtab): Use lookup_symtab method.
2268         (lookup_partial_symtab): Remove.
2269         (find_pc_sect_psymtab_closer): Remove.
2270         (find_pc_sect_psymtab): Remove.
2271         (find_pc_sect_symtab_via_partial): New function.
2272         (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
2273         (fixup_section): No longer static.
2274         (fixup_psymbol_section): Remove.
2275         (lookup_symbol_aux): Use lookup_symbol_aux_quick.
2276         (lookup_global_symbol_from_objfile): Likewise.
2277         (lookup_symbol_aux_psymtabs): Remove.
2278         (lookup_symbol_aux_quick): New function.
2279         (lookup_symbol_global): Use lookup_symbol_aux_quick.
2280         (lookup_partial_symbol): Remove.
2281         (basic_lookup_transparent_type_quick): New function.
2282         (basic_lookup_transparent_type): Use it.
2283         (find_main_psymtab): Remove.
2284         (find_main_filename): New function.
2285         (find_pc_sect_symtab): Use find_pc_sect_symtab method.
2286         (find_line_symtab): Use expand_symtabs_with_filename method.
2287         (output_partial_symbol_filename): New function.
2288         (sources_info): Use map_partial_symbol_filenames.
2289         (struct search_symbols_data): New type.
2290         (search_symbols_file_matches): New function.
2291         (search_symbols_name_matches): Likewise.
2292         (search_symbols): Use expand_symtabs_matching method.
2293         (struct add_name_data): Rename from add_macro_name_data.
2294         (add_macro_name): Update.
2295         (add_partial_symbol_name): New function.
2296         (default_make_symbol_completion_list): Use
2297         map_partial_symbol_names.
2298         (struct add_partial_symbol_name): New type.
2299         (maybe_add_partial_symtab_filename): New function.
2300         (make_source_files_completion_list): Use
2301         map_partial_symbol_filenames.
2302         (expand_line_sal): Use expand_symtabs_with_filename method.
2303         * symmisc.c: Include psymtab.h.
2304         (print_objfile_statistics): Use print_stats method.
2305         (dump_objfile): Use dump method.
2306         (dump_psymtab, maintenance_print_psymbols)
2307         (maintenance_info_psymtabs, maintenance_check_symtabs)
2308         (extend_psymbol_list): Remove.
2309         * symfile.h (struct quick_symbol_functions): New struct.
2310         (struct sym_fns) <qf>: New field.
2311         (sort_pst_symbols): Remove.
2312         (increment_reading_symtab): Declare.
2313         * symfile.c: Include psymtab.h.
2314         (compare_psymbols, sort_pst_symbols): Remove.
2315         (psymtab_to_symtab): Remove.
2316         (increment_reading_symtab): New function.
2317         (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
2318         method.
2319         (set_initial_language): Use find_main_filename.
2320         (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
2321         (free_named_symtabs): Remove unused code.
2322         (start_psymtab_common, add_psymbol_to_bcache)
2323         (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
2324         Remove.
2325         * stack.c: Include psymtab.h, symfile.h.
2326         (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
2327         * source.h (psymtab_to_fullname): Don't declare.
2328         * source.c: Include psymtab.h.
2329         (select_source_symtab): Use find_last_source_symtab method.
2330         (forget_cached_source_info): Use forget_cached_source_info
2331         method.
2332         (find_and_open_source): No longer static.
2333         (psymtab_to_fullname): Remove.
2334         * somread.c: Include psymtab.h.
2335         (som_sym_fns): Update.
2336         * psympriv.h: New file.
2337         * psymtab.h: New file.
2338         * psymtab.c: New file.
2339         * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
2340         (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
2341         * objfiles.c: Include psymtab.h.
2342         (objfile_relocate1): Use relocate method.
2343         (objfile_has_partial_symbols): Use has_symbols method.
2344         * mipsread.c: Include psymtab.h.
2345         (ecoff_sym_fns): Update.
2346         * mi/mi-cmd-file.c: Include psymtab.h.
2347         (print_partial_file_name): New function.
2348         (mi_cmd_file_list_exec_source_files): Use
2349         map_partial_symbol_filenames.
2350         * mdebugread.c: Include psympriv.h.
2351         * machoread.c: Include psympriv.h.
2352         (macho_sym_fns): Update.
2353         * m2-exp.y (yylex): Use lookup_symtab.
2354         * elfread.c: Include psympriv.h.
2355         (elf_sym_fns): Update.
2356         * dwarf2read.c: Include psympriv.h.
2357         * dbxread.c: Include psympriv.h.
2358         (aout_sym_fns): Update.
2359         * cp-support.c: Include psymtab.h.
2360         (read_in_psymtabs): Remove.
2361         (make_symbol_overload_list_qualified): Use
2362         expand_symtabs_for_function method.
2363         * coffread.c: Include psympriv.h.
2364         (coff_sym_fns): Update.
2365         * blockframe.c: Include psymtab.h.
2366         (find_pc_partial_function): Use find_pc_sect_symtab method.
2367         * ada-lang.h (ada_update_initial_language): Update.
2368         * ada-lang.c: Include psymtab.h.
2369         (ada_update_initial_language): Remove 'main_pst' argument.
2370         (ada_lookup_partial_symbol): Remove.
2371         (struct ada_psym_data): New type.
2372         (ada_add_psyms): New function.
2373         (ada_add_non_local_symbols): Use map_ada_symtabs method.
2374         (struct add_partial_datum): New type.
2375         (ada_add_partial_symbol_completions): New function.
2376         (ada_make_symbol_completion_list): Use map_partial_symbol_names.
2377         (ada_exception_support_info_sniffer): Update.
2378         * Makefile.in (SFILES): Add psymtab.c.
2379         (COMMON_OBS): Add psymtab.o.
2380         (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
2381
2382 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
2383
2384         * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
2385
2386 2010-03-10  Sami Wagiaalla  <swagiaal@redhat.com>
2387
2388         PR C++/11236:
2389         * cp-namespace.c (cp_add_using): Deleted.
2390         (cp_add_using_directive): Use obstack allocations.
2391         Merged the function cp_add_using into this one.
2392         Added 'struct obstack *' argument.
2393         (cp_scan_for_anonymous_namespaces): Updated.
2394         * cp-support.h: Updated.
2395         * dwarf2read.c (read_import_statement): Updated.
2396         (read_namespace): Updated.
2397
2398 2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
2399
2400         * windows-nat.c (cygwin_conv_path): Remove old macro.
2401
2402 2010-03-10  Pedro Alves  <pedro@codesourcery.com>
2403
2404         * breakpoint.c (condition_command): Handle watchpoint conditions.
2405         (is_hardware_watchpoint): Add comment.
2406         (is_watchpoint): New.
2407         (update_watchpoint): Don't reparse the watchpoint's condition
2408         unless necessary.
2409         (WP_IGNORE): New.
2410         (watchpoint_check): Use it.
2411         (bpstat_check_watchpoint): Handle it.
2412         (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
2413         conditions in a frame where it makes sense.
2414         (watch_command_1): Store the innermost block of the condition
2415         expression.
2416         (delete_breakpoint): Delete the watchpoint condition expression.
2417         * breakpoint.h (struct bp_location) <cond>: Update comment.
2418         (struct breakpoint): New field `cond_exp_valid_block'.
2419
2420 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
2421
2422         Adjust handling of Ada DIEs after dwarf2_physname patch.
2423         * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
2424
2425 2010-03-09  Christopher Faylor  <me+cygwin@cgf.cx>
2426             Pierre Muller  <muller@ics.u-strasbg.fr>
2427
2428         * windows-nat.c (cygwin_conv_path): Redefine to properly convert
2429         from/to posix/win32.
2430         (windows_make_so): Use non-Cygwin 1.7 specific function.
2431         (windows_create_inferior): Make sure that cygallargs points to
2432         original args in non Cygwin 1.7. case.
2433
2434 2010-03-09  Michael Snyder  <msnyder@vmware.com>
2435
2436         * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
2437         after target_read_memory to get host byte order.
2438         (i386_process_record): Ditto.
2439
2440 2010-03-09  Keith Seitz  <keiths@redhat.com>
2441
2442         Based on work from Daniel Jacobowitz  <dan@codesourcery.com>
2443         * c-typeprint.c (cp_type_print_method_args): For non-static methods,
2444         print out const or volatile qualifiers, too.
2445         (c_type_print_args): Add parameters show_artificial and language.
2446         Skip artificial parameters when requested.
2447         Use the appropriate language printer.
2448         (c_type_print_varspec): Tell c_type_print_args to skip artificial
2449         parameters and pass language_c.
2450         * dwarf2read.c (die_list): New file global.
2451         (struct partial_die_info): Update comments for name field.
2452         (pdi_needs_namespace): Renamed to ...
2453         (die_needs_namespace): ... this. Rewrite.
2454         (dwarf2_linkage_name): Remove.
2455         (add_partial_symbol): Do not predicate the call to
2456         partial_die_full_name based on pdi_needs_namespace.
2457         Remove call to cp_check_possible_namespace_symbols and associated
2458         outdated comments.
2459         (guess_structure_name): Do not inspect child subprogram DIEs.
2460         (dwarf2_fullname): Update comments.
2461         Use die_needs_namespace to assist in computing the name.
2462         (read_func_scope): Use dwarf2_name to get the DIE's name.
2463         Use dwarf2_physname to get the "linkage name" of the DIE.
2464         (dwarf2_add_member_field): Use dwarf2_physname instead of
2465         dwarf2_linkage_name.
2466         (read_structure_type): For structs and classes, set TYPE_NAME, too.
2467         (determine_class): Remove.
2468         (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
2469         except Ada.
2470         (new_symbol): Unconditionally call dwarf2_name.
2471         Compute the "linkage name" using dwarf2_physname.
2472         Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
2473         When determining to scan for anonymous C++ namespaces, ignore
2474         the linkage name.
2475         (dwarf2_physname): New function.
2476         (dwarf2_full_name): Move content to new function and call
2477         that.
2478         (dwarf2_compute_name): "New" function.
2479         (_initialize_dwarf2_read): Initialize die_list.
2480         * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
2481         physname.
2482         (gnu_v3_print_method_ptr): Use the physname for virtual methods
2483         without a demangled name.
2484         Print out type information for non-virtual methods.
2485         * linespec.c (decode_line_1): Force ANY string using "::" (or
2486         "." for java) to use decode_compound, and clean up any stray quoting.
2487         If we found a file symtab, re-evaluate whether the remainder is_quoted.
2488         (decode_compound): Stop consuming at an open parenthesis.
2489         Keep template parameters.
2490         Keep any overload information.
2491         Keep keywords like "const".
2492         Remove paren_pointer.
2493         Move is_quoted check from set_flags to here.
2494         Remove #if 0 code from 2000. Ten years is long enough.
2495         (find_method): Before comparing symbol names, canonicalize the string
2496         from the user.
2497         If a specific overload is requested, find it. Otherwise throw an error.
2498         (find_method_overload_end): New function.
2499         (set_flags): Remove.
2500         (decode_compound): Assume that parentheses are matched.
2501         It's a lot easier.
2502         * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
2503         to cplus_demangle.
2504         * linespec.c (decode_line_1): Keep important keywords like
2505         "const" and "volatile".
2506         * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
2507         * typeprint.h (c_type_print_args): Add declaration.
2508         * ui-file.c (do_ui_file_obsavestring): New function.
2509         (ui_file_obsavestring): New function.
2510         * ui-file.h (ui_file_obsavestring): Add declaration.
2511         * valops.c (find_overload_match): Resolve the object to
2512         a non-pointer type.
2513         If the object is a data member, search the object for the member
2514         and return with staticp set.
2515         Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
2516         Do not attempt to extract a function name from non-function types.
2517         If the extracted function name and the original name are the same,
2518         we don't have a C++ method.
2519
2520         From Jan Kratochvil  <jan.kratochvil@redhat.com>:
2521         * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
2522
2523         * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
2524         and arguments from symbol lookups.
2525         * ax-gdb.c (gen_expr): Likewise.
2526         * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
2527         cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
2528         lookup_possible_namespace_symbol): Likewise.
2529         * cp-support.c (read_in_psymtabs): Likewise.
2530         * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
2531         * language.h (la_lookup_symbol_nonlocal): Likewise.
2532         * scm-valprint.c (scm_inferior_print): Likewise.
2533         * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
2534         * solib-svr.c (elf_lookup_lib): Likewise.
2535         * solib.c (show_auto_solib_add): Likewise.
2536         * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
2537         * symmisc.c (maintenance_check_symtabs): Likewise.
2538         * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
2539         lookup_symbol_aux_local, lookup_symbol_aux_block,
2540         lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
2541         lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
2542         lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
2543         basic_lookup_transparent_type, find_main_psymtab,
2544         lookup_block_symbol): Likewise.
2545         * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
2546         lookup_symbol_global, lookup_symbol_aux_block,
2547         lookup_symbol_partial_symbol, lookup_block_symbol,
2548         lookup_global_symbol, value_maybe_namespace_elt): Likewise.
2549
2550 2010-03-09  Pierre Muller  <muller@ics.u-strasbg.fr>
2551
2552         * python/python-internal.h: Include symtab.h.
2553
2554 2010-03-09  Joel Brobecker  <brobecker@adacore.com>
2555             Pierre Muller  <muller@ics.u-strasbg.fr>
2556
2557         * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
2558         * p-valprint.c (pascal_val_print): Remove undeed block and fix
2559         indentation.
2560
2561 2010-03-08  Tom Tromey  <tromey@redhat.com>
2562
2563         * breakpoint.c (breakpoint_1): Add "QUIT".
2564
2565 2010-03-08  Daniel Jacobowitz  <dan@codesourcery.com>
2566             Pedro Alves  <pedro@codesourcery.com>
2567
2568         * solib.c (solib_find): Replace extension if
2569         solib_symbols_extension is set in the target gdbarch.
2570         * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2571         solib_symbols_extension to "sym".
2572         * gdbarch.sh (solib_symbols_extension): New variable.
2573         (pstring): New function.
2574         * gdbarch.h, gdbarch.c: Regenerate.
2575
2576 2010-03-08  Tom Tromey  <tromey@redhat.com>
2577
2578         PR cli/9591:
2579         * NEWS: Update.
2580         * utils.c: Include main.h.
2581         (fputs_maybe_filtered): Don't paginate if `batch_flag'.
2582         (defaulted_query): Use default answer if `batch_flag'.
2583         * main.h (batch_flag): Declare.
2584         * main.c (batch_flag): New global.
2585         (captured_main): Remove 'batch'.  Update.
2586
2587 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
2588
2589         From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
2590         and Kevin Buettner:
2591
2592         * remote-mips.c (rockhopper_ops): New target_ops struct.
2593         (MON_ROCKHOPPER): New mips_monitor_type.
2594         (read_hex_value): New function.
2595         (mips_request): Send 8-byte values with a 'T' packet.  Read the
2596         packet argument as a string and use read_hex_value to parse it.
2597         (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
2598         (rockhopper_open): New function.
2599         (mips_wait): Read the PC, FP and SP fields as strings.  Use
2600         read_hex_value to parse them and mips_set_register to commit them.
2601         (mips_set_register): New function.
2602         (mips_fetch_registers): Do not cast register value to "unsigned"
2603         when reading a MON_ROCKHOPPER 't' packet.  Use mips_set_register.
2604         (mips_store_registers): Use a 'T' packet to set registers when
2605         using MON_ROCKHOPPER.
2606         (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
2607         and expect the total to be printed before the entry address.
2608         (_initialize_remote_mips): Initialize and add rockhopper_ops.
2609
2610 2010-03-08  Kevin Buettner  <kevinb@redhat.com>
2611
2612         * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
2613         Change return value to int.  Store value fetched in location
2614         addressed by `val'.  Use function's return value as success
2615         or failure indicator.  Adjust all callers.
2616
2617 2010-03-08  Pierre Muller  <muller@ics.u-strasbg.fr>
2618
2619         * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
2620
2621 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2622             Hui Zhu  <teawater@gmail.com>
2623
2624         * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
2625         tmp_to_stopped_data_address.
2626         (record_open): Reset tmp_to_stopped_by_watchpoint and
2627         tmp_to_stopped_data_address.
2628         * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
2629         to_stopped_data_address.
2630
2631 2010-03-08  Hui Zhu  <teawater@gmail.com>
2632
2633         * i386-tdep.c (i386_process_record): Initialize regnum.
2634
2635 2010-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2636
2637         * symfile.c (addr_info_make_relative): New variable sect_name, use it.
2638         Do not warn on ".gnu.liblist" and ".gnu.conflict".
2639
2640 2010-03-08  Joel Brobecker  <brobecker@adacore.com>
2641
2642         Memory error when reading wrong core file.
2643         * solib-svr4.c (solib_svr4_r_map): catch and print all exception
2644         errors while reading the inferior memory, and return zero if
2645         an exception was raised.
2646
2647 2010-03-07  Michael Snyder  <msnyder@vmware.com>
2648
2649         * record.c (record_restore): Rename tmpu8 to rectype.
2650
2651         * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
2652         tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
2653
2654         (i386_record_push): Rename local tmpulongest to addr.
2655
2656         (i386_process_record): Rename local tmpulongest to addr.
2657
2658         Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
2659         addr64.
2660
2661         Rename local variable tmpu8 to opcode8 and regnum.
2662
2663 2010-03-07  Joel Brobecker  <brobecker@adacore.com>
2664
2665         * remote.c (remote_get_ada_task_ptid): New function.
2666         (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
2667
2668 2010-03-06  Christopher Faylor  <me+cygwin@cgf.cx>
2669
2670         * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
2671         block.  Define helper macros to reduce ifdefs in code.
2672         (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
2673         size.  Call unadorned GetModuleFileNameEx rather than
2674         GetModuleFileNameEx*.
2675         (windows_make_so): Use __PMAX to denote maximum buffer size and
2676         cygwin_buf_t for buffer type.  Use GetSystemDirectory{W,A} as
2677         appropriate.
2678         (get_image_name): Use __PMAX to denote maximum buffer size.
2679         (handle_load_dll): Likewise.
2680         (windows_pid_to_exec_file): Likewise.
2681         (windows_create_inferior): Add many accommodations for older Cygwin and
2682         non-Cygwin.
2683         (bad_GetModuleFileNameExW): Control inclusion of this function based on
2684         __USEWIDE conditional.
2685         (bad_GetModuleFileNameExA): Likewise.
2686         (_initialize_loadable): Just use real function names without the dyn_
2687         part since they are defined earlier.
2688
2689 2010-03-05  Corinna Vinschen  <vinschen@redhat.com>
2690             Tom Tromey  <tromey@redhat.com>
2691
2692         * utils.c (host_char_to_target): Add 'gdbarch' argument.
2693         (parse_escape): Likewise.
2694         * python/py-utils.c (unicode_to_target_string): Update.
2695         (unicode_to_target_python_string): Update.
2696         (target_string_to_unicode): Update.
2697         * printcmd.c (printf_command): Update.
2698         * p-exp.y (yylex): Update.
2699         * objc-exp.y (yylex): Update.
2700         * mi/mi-parse.c: Include charset.h.
2701         (mi_parse_escape): New function.
2702         (mi_parse_argv): Use it.
2703         * jv-exp.y (yylex): Update.
2704         * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
2705         function.
2706         (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
2707         * gdbarch.sh (auto_charset, auto_wide_charset): New.
2708         * gdbarch.c: Rebuild.
2709         * gdbarch.h: Rebuild.
2710         * defs.h (parse_escape): Update.
2711         * cli/cli-setshow.c: Include arch-utils.h.
2712         (do_setshow_command): Update.
2713         * cli/cli-cmds.c (echo_command): Update.
2714         * charset.h (target_charset, target_wide_charset): Update.
2715         * charset.c: Include arch-utils.h.
2716         (target_charset_name): Default to "auto".
2717         (target_wide_charset_name): Likewise.
2718         (show_target_charset_name): Handle "auto".
2719         (show_target_wide_charset_name): Likewise.
2720         (be_le_arch): New global.
2721         (set_be_le_names): Add 'gdbarch' argument.
2722         (validate): Likewise.  Don't call set_be_le_names.
2723         (set_charset_sfunc, set_host_charset_sfunc)
2724         (set_target_charset_sfunc, set_target_wide_charset_sfunc):
2725         Update.
2726         (target_charset): Add 'gdbarch' argument.
2727         (target_wide_charset): Likewise.  Remove 'byte_order' argument.
2728         (auto_target_charset_name): New global.
2729         (default_auto_charset, default_auto_wide_charset): New functions.
2730         (_initialize_charset): Set auto_target_charset_name.  Allow "auto"
2731         for target charsets.  Copy result of nl_langinfo.  Use GetACP if
2732         USE_WIN32API.
2733         * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
2734         remove 'byte_order' argument.  Update.
2735         (classify_type): Likewise.
2736         (c_emit_char): Update.
2737         (c_printchar): Update.
2738         (c_printstr): Update.
2739         (c_get_string): Update.
2740         (evaluate_subexp_c): Update.
2741         * arch-utils.h (default_auto_charset, default_auto_wide_charset):
2742         Declare.
2743         * python/python.c (gdbpy_target_charset): New function.
2744         (gdbpy_target_wide_charset): Likewise.
2745         (GdbMethods): Update.
2746         * NEWS: Update.
2747
2748 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
2749
2750         * symfile.c (build_section_addr_info_from_objfile): Do not mask
2751         off high address bits.
2752
2753 2010-03-05  Ulrich Weigand  <uweigand@de.ibm.com>
2754
2755         * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
2756         address as UnsignedLongLong, not LongLong.
2757
2758 2010-03-05  Kevin Buettner  <kevinb@redhat.com>
2759             Pedro Alves  <pedro@codesourcery.com>
2760
2761         * remote-mips.c (gdbthread.h): Include.
2762         (remote_mips_ptid): Declare.
2763         (mips_error): Only mourn the inferior when inferior_ptid is non-null.
2764         (common_open): Set inferior_ptid, add it as an inferior, and
2765         as a thread too.  Delete FIXME comment regarding start_remote().
2766         (mips_close): Invoke generic_mourn_inferior().
2767         (mips_kill): Make sure that target_mourn_inferior is invoked.
2768         (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
2769         it's now invoked from mips_close().
2770         (mips_load): Don't null out inferior_ptid.  Don't call
2771         clear_symtab_users().
2772         (mips_thread_alive, mips_pid_to_str): New functions.
2773         (_initialize_remote_mips): Initialize remote_mips_ptid.  Initialize
2774         to_thread_alive and to_pid_to_str operations.
2775
2776 2010-03-04  Tom Tromey  <tromey@redhat.com>
2777
2778         * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
2779         in DWARF 3 and later.
2780         (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
2781
2782 2010-03-04  Keith Seitz  <keiths@redhat.com>
2783
2784         * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
2785         If the filename portion of the linespec was quoted, recheck the
2786         remainder for additional quoting.
2787         (locate_first_half): Skip over completer chars, too.
2788
2789 2010-03-04  Tom Tromey  <tromey@redhat.com>
2790
2791         * printcmd.c (printf_command): Pass dummy argument to
2792         printf_filtered.
2793
2794 2010-03-04  Doug Evans  <dje@google.com>
2795
2796         * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
2797         unwound_fp.
2798
2799         * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
2800
2801 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
2802
2803         * breakpoint.c (update_watchpoint): Create a sentinel location if
2804         the software watchpoint isn't watching any memory.
2805         (breakpoint_address_bits): Skip dummy software watchpoint locations.
2806
2807 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
2808
2809         * utils.c (fputs_maybe_filtered): Check if there's already a top
2810         level interpreter before dereferencing it.  If there isn't one,
2811         don't paginate either.
2812
2813 2010-03-04  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
2814
2815         * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
2816         the state right when single stepping.
2817         (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
2818         Get the next PC along with the instruction state.
2819         (thumb_get_next_pc): Remove.
2820         (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
2821
2822 2010-03-04  Hui Zhu  <teawater@gmail.com>
2823
2824         * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
2825
2826 2010-03-03  Pedro Alves  <pedro@codesourcery.com>
2827
2828         * utils.c (fputs_maybe_filtered): Always disable pagination if the
2829         top level interpreter is MI.
2830
2831 2010-03-03 Stan Shebs  <stan@codesourcery.com>
2832
2833         * remote.c (remote_download_tracepoint): Iterate over locations.
2834         * tracepoint.c (validate_actionline): Ditto.
2835         (encode_actions): Add location argument.
2836         (trace_dump_command): Check all locations to see if stepping
2837         frame.
2838
2839 2010-03-03  H.J. Lu  <hongjiu.lu@intel.com>
2840             Eli Zaretskii  <eliz@gnu.org>
2841
2842         * NEWS: Add X86 general purpose registers section.
2843
2844 2010-03-03  Tom Tromey  <tromey@redhat.com>
2845
2846         PR mi/11098:
2847         * varobj.c (install_new_value): Handle case where new print_value
2848         is NULL.
2849
2850 2010-03-03  Dainis Jonitis  <jonitis@gmail.com>
2851
2852         PR gdb/11345:
2853         * printcmd.c (printf_command): Print end of format string using
2854         printf_filtered.
2855
2856 2010-03-02  Tom Tromey  <tromey@redhat.com>
2857
2858         * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
2859         * defs.h (read_command_lines_1): Add missing 'void'.
2860         * cli/cli-script.c (recurse_read_control_structure): Add missing
2861         'void'.
2862         (read_next_line): Likewise.
2863         (read_command_lines_1): Likewise.
2864
2865 2010-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
2866
2867         * spu-tdep.c (spu_analyze_prologue): Track instruction to
2868         store backchain as part of prologue.
2869
2870 2010-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
2871
2872         * progspace.c (update_address_spaces): Update inferior address spaces
2873         also.
2874
2875 2010-03-02  Doug Evans  <dje@google.com>
2876
2877         * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
2878         lowpc,highpc args to addrmap_set_empty.
2879
2880 2010-03-02  H.J. Lu  <hongjiu.lu@intel.com>
2881
2882         * amd64-tdep.c (amd64_byte_names): New.
2883         (amd64_word_names): Likewise.
2884         (amd64_dword_names): Likewise.
2885         (amd64_pseudo_register_name): Likewise.
2886         (amd64_pseudo_register_read): Likewise.
2887         (amd64_pseudo_register_write): Likewise.
2888         (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
2889         and num_mmx_regs.  Call set_gdbarch_pseudo_register_read,
2890         set_gdbarch_pseudo_register_write and
2891         set_tdesc_pseudo_register_name.  Don't call
2892         set_gdbarch_num_pseudo_regs.  Don't set mm0_regnum.
2893
2894         * i386-tdep.c (i386_num_mmx_regs): Removed.
2895         (i386_num_pseudo_regs): Likewise.
2896         (i386_byte_names): New.
2897         (i386_word_names): Likewise.
2898         (i386_byte_regnum_p): Likewise.
2899         (i386_word_regnum_p): Likewise.
2900         (i386_mmx_regnum_p): Updated.
2901         (i386_pseudo_register_name): Make it global.  Handle byte and
2902         word pseudo-registers.
2903         (i386_pseudo_register_read): Likewise.
2904         (i386_pseudo_register_write): Likewise.
2905         (i386_pseudo_register_type): Handle byte, word and dword
2906         pseudo-registers
2907         (i386_register_reggroup_p): Don't include pseudo
2908         registers, except for MXX, in any register groups.  Don't
2909         include pseudo byte, word, dword registers in general_reggroup.
2910         (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
2911         num_dword_regs, al_regnum, ax_regnum and eax_regnum.  Put MMX
2912         pseudo-registers after word pseudo-registers.  Call
2913         set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
2914
2915         * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
2916         al_regnum, num_word_regs, ax_regnum, num_dword_regs and
2917         eax_regnum.
2918         (i386_byte_regnum_p): New.
2919         (i386_word_regnum_p): Likewise.
2920         (i386_dword_regnum_p): Likewise.
2921         (i386_pseudo_register_name): Likewise.
2922         (i386_pseudo_register_read): Likewise.
2923         (i386_pseudo_register_write): Likewise.
2924
2925 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
2926
2927         * target-descriptions.c (tdesc_type): Remove
2928         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
2929         (tdesc_predefined_types): Likewise.
2930         (tdesc_gdb_type): Likewise.  Pass NULL to append_flags_type_flag
2931         if flag name is empty.
2932         (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
2933
2934         * features/i386/32bit-core.xml: Define i386_eflags.
2935         * features/i386/64bit-core.xml: Likewise.
2936
2937         * features/i386/32bit-sse.xml: Define i386_mxcsr.
2938         * features/i386/64bit-sse.xml: Likewise.
2939
2940         * features/i386/amd64-linux.c: Regenerated.
2941         * features/i386/amd64.c: Likewise.
2942         * features/i386/i386-linux.c: Likewise.
2943         * features/i386/i386.c: Likewise.
2944
2945 2010-03-01  Daniel Jacobowitz  <dan@codesourcery.com>
2946
2947         * gdbtypes.c (append_composite_type_field_raw): New.
2948         (append_composite_type_field_aligned): Use the new function.
2949         * gdbtypes.h (append_composite_type_field_raw): Declare.
2950         * target-descriptions.c (struct tdesc_type_field): Add start and end.
2951         (struct tdesc_type_flag): New type.
2952         (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
2953         kind.  Add size to u.u.  Add u.f for flags.
2954         (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
2955         (tdesc_free_type): Likewise.
2956         (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
2957         (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
2958         (tdesc_add_bitfield, tdesc_add_flag): New.
2959         * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
2960         (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
2961         * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
2962         current_type.  Add current_type_size and current_type_is_flags.
2963         (tdesc_start_union): Clear the new fields.
2964         (tdesc_start_struct, tdesc_start_flags): New.
2965         (tdesc_start_field): Handle struct fields, including bitfields.
2966         (field_attributes): Make type optional.  Add start and end.
2967         (union_children): Rename to struct_union_children.
2968         (union_attributes): Rename to struct_union_attributes.  Add optional
2969         size.
2970         (flags_attributes): New.
2971         (feature_children): Add struct and flags.
2972         * features/gdb-target.dtd: Add flags and struct to features.
2973         Make field type optional.  Add field start and end.
2974
2975 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
2976
2977         * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
2978         (amd64_linux_read_description): Likewise.
2979         (_initialize_amd64_linux_nat): Set to_read_description to
2980         amd64_linux_read_description.
2981
2982         * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
2983         (amd64_linux_register_name): Removed.
2984         (amd64_linux_register_type): Likewise.
2985         (amd64_linux_core_read_description): New.
2986         (amd64_linux_init_abi): Set target description to
2987         tdesc_amd64_linux if needed.  Support orig_rax in target
2988         description.  Don't call set_gdbarch_register_name nor
2989         set_gdbarch_register_type.  Call
2990         set_gdbarch_core_read_description.
2991         (_initialize_amd64_linux_tdep): Call
2992         initialize_tdesc_amd64_linux.
2993
2994         * amd64-linux-tdep.h (tdesc_amd64_linux): New.
2995
2996         * amd64-tdep.c:  Include "features/i386/amd64.c".
2997         (amd64_register_names): Removed.
2998         (amd64_register_name): Likewise.
2999         (amd64_register_type): Likewise.
3000         (amd64_init_abi):  Set num_core_regs and register_names.  Set
3001         target description to tdesc_amd64 if needed.  Don't call
3002         set_gdbarch_register_name nor set_gdbarch_register_type.
3003         (_initialize_amd64_tdep): New.
3004
3005         * i386-linux-nat.c (i386_linux_read_description): New.
3006         (_initialize_i386_linux_nat): Set to_read_description to
3007         i386_linux_read_description.
3008
3009         * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
3010         (i386_linux_register_name): Removed.
3011         (i386_linux_core_read_description): New.
3012         (i386_linux_read_description): Likewise.
3013         (i386_linux_init_abi): Don't call set_gdbarch_register_name.
3014         Set target description to tdesc_i386_linux if needed.  Support
3015         orig_eax.  Set register_reggroup_p.  Call
3016         set_gdbarch_core_read_description.
3017         (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
3018
3019         * i386-linux-tdep.h (tdesc_i386_linux): New.
3020
3021         * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
3022         with I387_NUM_REGS.
3023
3024         * i386-tdep.c: Include "features/i386/i386.c".
3025         (i386_register_names): Make it const.
3026         (i386_mmx_names): Likewise.
3027         (i386_num_register_names): Removed.
3028         (i386_register_name): Likewise.
3029         (i386_eflags_type): Likewise.
3030         (i386_mxcsr_type): Likewise.
3031         (i386_sse_type): Likewise.
3032         (i386_register_type): Likewise.
3033         (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
3034         (i386_pseudo_register_name): New.
3035         (i386_pseudo_register_type): Likewise.
3036         (i386_mmx_type): Make it static.
3037         (i386_gdbarch_init): Check arch.  Replace I386_NUM_FREGS with
3038         I387_NUM_REGS.  Set num_core_regs and register_names.  Don't
3039         call set_gdbarch_register_name nor set_gdbarch_register_type.
3040         Set register_reggroup_p.  Set target description to tdesc_i386
3041         if needed.  Call set_tdesc_pseudo_register_type,
3042         set_tdesc_pseudo_register_name and tdesc_use_registers.
3043         (_initialize_i386_tdep): Call initialize_tdesc_i386.
3044         initialize_tdesc_x86_64.
3045
3046         * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
3047         i386_mxcsr_type and i386_sse_type.  Add num_core_regs,
3048         register_names, tdesc and register_reggroup_p.
3049         (I386_NUM_FREGS): Removed.
3050         (i386_eflags_type): Likewise.
3051         (i386_mxcsr_type): Likewise.
3052         (i386_mmx_type): Likewise.
3053         (i386_sse_type): Likewise.
3054         (i386_register_name): Likewise.
3055         (i386_regnum): Add I386_MXCSR_REGNUM.
3056         (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
3057
3058         * i387-tdep.h (I387_NUM_REGS): New.
3059
3060         * regformats/i386/i386-linux.dat: Generated.
3061         * regformats/i386/i386.dat: Likewise.
3062         * regformats/i386/amd64-linux.dat: Likewise.
3063         * regformats/i386/amd64.dat: Likewise.
3064
3065         * regformats/reg-i386-linux.dat: Removed.
3066         * regformats/reg-i386.dat: Likewise.
3067         * regformats/reg-x86-64-linux.dat: Likewise.
3068         * regformats/reg-x86-64.dat: Likewise.
3069
3070 2010-03-01  Corinna Vinschen  <vinschen@redhat.com>
3071
3072         * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
3073         cygwin_conv_path API rather than the deprecated
3074         cygwin_conv_to_full_posix_path.
3075         * windows-nat.c:
3076         (GetModuleFileNameExA): Undefine for Cygwin.
3077         (GetModuleFileNameExW): Define for Cygwin.
3078         (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
3079         Call GetModuleFileNameExW and convert path to POSIX using
3080         cygwin_conv_path.
3081         (windows_make_so): Always define p.  Drop unused variable m.
3082         Don't use Win32 functions to check file existance, rather use
3083         access on Cygwin.  Fetch system directory using GetSystemDirectoryW.
3084         Use canonicalize_file_name to get full path.
3085         (get_image_name): Use wcstombs, rather than WideCharToMultiByte
3086         to convert Unicode pathname to multibyte on Cygwin.  Otherwise,
3087         use correct target buffer size in call to WideCharToMultiByte.
3088         (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
3089         (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
3090         (windows_create_inferior): Convert all paths and arguments to wchar_t
3091         and use CreateProcessW on Cygwin.
3092         (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
3093         (bad_GetModuleFileNameExA): Undefine for Cygwin.
3094         (bad_GetModuleFileNameExW): Define for Cygwin.
3095         (_initialize_loadable): Load GetModuleFileNameExW into
3096         dyn_GetModuleFileNameExW on Cygwin.  Don't load ANSI function on Cygwin.
3097
3098 2010-02-28  Phil Muldoon  <pmuldoon@redhat.com>
3099
3100         PR python/11036
3101         * python/py-frame.c (frapy_read_var): Add block argument and logic
3102         to cope with user provided blocks.
3103
3104 2010-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3105
3106         * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
3107         New comment.
3108
3109 2010-02-28  Corinna Vinschen  <vinschen@redhat.com>
3110
3111         * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
3112         (COMMON_OBS): ... to here since it's used unconditionally.
3113         (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
3114         (SFILES): To here.
3115
3116 2010-02-26  David Daney  <ddaney@caviumnetworks.com>
3117
3118         * mips-linux-tdep.c: Update struct sigframe comments.
3119         (SIGFRAME_CODE_OFFSET): Delete macro.
3120         (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
3121         this_frame's sp.
3122         (mips_linux_n32n64_sigframe_init): Same.
3123
3124 2010-02-26  Kevin Buettner  <kevinb@redhat.com>
3125
3126         * remote-mips.c (mips_load): Don't use pseudo-register when
3127         invalidating regcache.
3128
3129 2010-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
3130
3131         * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
3132
3133 2010-02-26  Pedro Alves  <pedro@codesourcery.com>
3134
3135         * NEWS: Add "New targets" section, and mention ARM Symbian
3136         support.
3137
3138 2010-02-26  Ulrich Weigand  <uweigand@de.ibm.com>
3139
3140         * dwarf2loc.c (struct piece_closure): Remove ARCH member,
3141         add ADDR_SIZE member.
3142         (allocate_piece_closure): Update.
3143         (copy_pieced_value_closure): Likewise.
3144         (dwarf2_evaluate_loc_desc): Likewise.
3145         (read_pieced_value): Use DWARF address size instead of
3146         GDB's gdbarch_addr_bit as size of values on the DWARF stack.
3147
3148 2010-02-26  Phil Muldoon  <pmuldoon@redhat.com>
3149             Tom Tromey  <tromey@redhat.com>
3150
3151         * python/py-type.c (typy_lookup_typename): Add in block argument.
3152         If provided restrict lookup to specified blocks.
3153         (gdbpy_lookup_type): Likewise.
3154         (typy_lookup_type): Likewise.
3155
3156 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
3157
3158         Symbian config
3159
3160         gdb/
3161         * arm-symbian-tdep.c: New.
3162         * configure.tgt (arm*-*-symbianelf*): New target.
3163         (*-*-symbianelf*): New OS.
3164         * osabi.c (gdb_osabi_names): Add Symbian.
3165         * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
3166         * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
3167         (ALLDEPFILES): Add arm-symbian-tdep.c.
3168
3169 2010-02-25  Daniel Jacobowitz  <dan@codesourcery.com>
3170
3171         * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
3172
3173 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
3174
3175         * mi/mi-main.c (mi_cmd_execute): Fix typo.
3176
3177 2010-02-24  Phil Muldoon  <pmuldoon@redhat.com>
3178             Tom Tromey  <tromey@redhat.com>
3179             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3180
3181         * python/python.c (_initialize_python): Call
3182         gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
3183         gdbpy_initialize_blocks.
3184         * python/python-internal.h: Declare struct symbol, block and
3185         symtab_and_line.  Declare block_object_type and
3186         symbol_object_type
3187         (gdbpy_lookup_symbol gdbpy_block_for_pc)
3188         (symtab_and_line_to_sal_object, symtab_to_symtab_object)
3189         (symbol_to_symbol_object,  block_to_block_object)
3190         (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
3191         (gdbpy_initialize_blocks ): Declare.
3192         * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
3193         (frapy_select): Add methods.
3194         (frapy_read_var): Add symbol branch.
3195         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
3196         py-block.
3197         (SUBDIR_PYTHON_SRCS): Likewise.
3198         (py-symbol.o): New rule.
3199         (py-symtab.o): Likewise.
3200         (py-block.o): Likewise.
3201         * python/py-symbol.c: New file.
3202         * python/py-symtab.c: Likewise.
3203         * python/py-block.c: Likewise.
3204
3205 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
3206
3207         PR gdb/11321
3208
3209         * inferior.h (prepare_for_detach): Declare.
3210         (struct inferior) <detaching>: New field.
3211         * infrun.c (prepare_for_detach): New.
3212         (handle_inferior_event) <random signal>: Don't stop if detaching.
3213         * target.c (target_detach): Call prepare_for_detach.
3214
3215 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
3216
3217         Per-process displaced stepping queue.
3218
3219         * infrun.c (displaced_step_ptid, displaced_step_request_queue)
3220         (displaced_step_gdbarch, displaced_step_closure,
3221         (displaced_step_original, displaced_step_copy): Move globals to
3222         this...
3223         (struct displaced_step_inferior_state): ... new structure.
3224         (displaced_step_inferior_states): New global.
3225         (get_displaced_stepping_state, add_displaced_stepping_state)
3226         (remove_displaced_stepping_state, infrun_inferior_exit): New
3227         functions.
3228         (displaced_step_clear): Add displaced_step_inferior_state
3229         parameter, and adjust to handle it.
3230         (displaced_step_clear_cleanup): Parameter is now a
3231         displaced_step_inferior_state.  Adjust.
3232         (displaced_step_prepare): Adjust.
3233         (displaced_step_fixup, displaced_step_fixup)
3234         (infrun_thread_ptid_changed, resume): Adjust.
3235         (init_wait_for_inferior): Don't call displaced_step_clear.
3236         (infrun_thread_stop_requested): Rewrite.
3237         (_initialize_infrun): Install infrun_inferior_exit as
3238         inferior_exit observer.
3239
3240 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
3241
3242         * inferior.h (ptid_match): Declare.
3243         * infrun.c (ptid_match): New.
3244         * remote.c (queued_stop_reply): Rewrite and use ptid_match.
3245         (handle_notification): Add debug output.
3246         * linux-nat.c (ptid_match): Delete.
3247
3248 2010-02-24  David S. Miller  <davem@davemloft.net>
3249
3250         * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
3251         * syscalls/sparc-linux.xml: New.
3252         * syscalls/sparc64-linux.xml: New.
3253         * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
3254         * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
3255         (sparc32_linux_get_syscall_number): New function.
3256         (sparc32_linux_init_abi): Set syscall XML file name and hook up
3257         syscall number fetcher.
3258         * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
3259         (sparc64_linux_get_syscall_number): New function.
3260         (sparc64_linux_init_abi): Set syscall XML file name and hook up
3261         syscall number fetcher.
3262
3263 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
3264
3265         Multiexec MI
3266
3267         * breakpoint.c (clear_syscall_counts): Take struct inferior*.
3268         * inferior.c (add_inferior_silent): Notify inferior_added
3269         observer.
3270         (delete_inferior_1): Notify inferior_removed observer.
3271         (exit_inferior_1): Pass inferior, not pid, to observer.
3272         (inferior_appeared): Likewise.
3273         (add_inferior_with_spaces): New.
3274         (add_inferior_command): Use the above.
3275         * inferior.h (delete_inferior_1, add_inferior_with_spaces):
3276         Declare.
3277
3278         * inflow.c (inflow_inferior_exit): Likewise.
3279         * jit.c (jit_inferior_exit_hook): Likewise.
3280
3281         * mi/mi-cmds.c (mi_cmds): Register add-inferior and
3282         remove-inferior.
3283         * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
3284         * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
3285         (report_initial_inferior): New.
3286         (mi_inferior_removed): Register the above. Make sure
3287         inferior_added observer is called on the first inferior.
3288         (mi_new_thread, mi_thread_exit): Thread group is now identified by
3289         inferior number, not pid.
3290         (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
3291         affected.
3292         * mi/mi-main.c (current_context): New.
3293         (proceed_thread_callback): Use typed closure.
3294         Proceed everything if pid is 0. Most implementation split into
3295         (proceed_thread): ... this.
3296         (run_one_inferior): New.
3297         (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
3298         Adjust for multiexec behaviour.
3299         (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
3300         (mi_cmd_execute): Handle the 'thread-group' option here.
3301         Do some extra checks.
3302         * mi-parse.c (mi_parse): Handle the --all and --thread-group
3303         options.
3304         * mi-parse.h (struct mi_parse): New fields all and thread_group.
3305
3306 2010-02-24  Vladimir Prus  <vladimir@codesourcery.com>
3307
3308         Make -exec-run a proper MI commands.
3309
3310         * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
3311         * mi/mi-cmds.c (mi_cmds): Adjust.
3312         * mi/mi-main.c (mi_cmd_exec_run): New.
3313
3314 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
3315             Stan Shebs  <stan@codesourcery.com>
3316
3317         * tracepoint.h (set_traceframe_number)
3318         (cleanup_restore_current_traceframe): Declare.
3319         * tracepoint.c (set_traceframe_number): New.
3320         (struct current_traceframe_cleanup): New.
3321         (do_restore_current_traceframe_cleanup)
3322         (restore_current_traceframe_cleanup_dtor)
3323         (make_cleanup_restore_current_traceframe): New.
3324         * infrun.c: Include tracepoint.h.
3325         (fetch_inferior_event): Switch out and in of tfind mode.
3326
3327 2010-02-24  Pedro Alves  <pedro@codesourcery.com>
3328
3329         * breakpoint.c (breakpoint_init_inferior): Also delete
3330         bp_shlib_event breakpoints.
3331         * solib-frv.c (enable_break): Remove call to
3332         remove_solib_event_breakpoints.
3333         * solib-svr4.c (enable_break): Ditto.
3334         * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
3335         * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
3336         * solib-som.c (som_solib_create_inferior_hook): Ditto.
3337         * solib-spu.c (spu_enable_break): Ditto.
3338
3339 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
3340
3341         * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
3342
3343 2010-02-23  Harald Koenig  <H.Koenig@science-computing.de>
3344
3345         * varobj.c (varobj_update): Avoid non-constants in initializers.
3346
3347 2010-02-23  Tom Tromey  <tromey@redhat.com>
3348
3349         * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
3350         handle big-endian values.
3351         (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
3352
3353 2010-02-22  Pedro Alves  <pedro@codesourcery.com>
3354
3355         PR9605
3356
3357         gdb/
3358         * breakpoint.c (insert_bp_location): If inserting the read
3359         watchpoint failed, fallback to an access watchpoint.
3360         (bpstat_check_watchpoint): Stop for read watchpoint triggers even
3361         if the value changed, if not watching the same memory for writes.
3362         (watchpoint_locations_match): Add comment.
3363         (update_global_location_list): Copy the location's watchpoint type.
3364         * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
3365         handle read watchpoints here.
3366         (i386_insert_watchpoint): Read watchpoints aren't supported.
3367         * remote.c (remote_insert_watchpoint): Return 1 for unsupported
3368         packets.
3369         * target.h (target_insert_watchpoint): Update description.
3370
3371 2010-02-19  Tom Tromey  <tromey@redhat.com>
3372
3373         * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
3374         * m2-typeprint.c (m2_print_type): Update.
3375         * gdbtypes.c (recursive_dump_type): Update.
3376         (copy_type_recursive): Update.
3377         * c-typeprint.c (c_type_print_varspec_prefix): Update.
3378         (c_type_print_base): Update.
3379         * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
3380         Remove.
3381         (struct cplus_struct_type) <ntemplate_args>: Remove.
3382         <struct template_arg>: Remove.
3383         <is_dynamic>: Move earlier.
3384         (TYPE_TEMPLATE_ARGS): Remove.
3385         (TYPE_NTEMPLATE_ARGS): Remove.
3386         (TYPE_TEMPLATE_ARG): Remove.
3387
3388 2010-02-19  Tom Tromey  <tromey@redhat.com>
3389
3390         PR c++/8693, PR c++/9496:
3391         * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
3392         * c-exp.y (lex_one_token): Rename from yylex.  Don't call
3393         write_dollar_variable.  Don't try to classify NAME tokens.
3394         (token_and_value): New type.
3395         (token_fifo, popping, name_obstack): New globals.
3396         (classify_name): New function.
3397         (classify_inner_name): Likewise.
3398         (yylex): Likewise.
3399         (VARIABLE): Now has type sval.
3400         (exp : VARIABLE): Call write_dollar_variable.
3401         (qualified_name): Use TYPENAME, not typebase.  Add production for
3402         multiple "::" instances.
3403         (variable): Use name_not_typename.
3404         (qualified_type): Remove.
3405         (typebase): Update.
3406
3407 2010-02-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3408
3409         * symfile.c (addr_info_make_relative): Extend comment.  Move SECT to
3410         a more inner block.  Initialize ADDR by LOWER_OFFSET only if it was
3411         found by bfd_get_section_by_name.
3412         * symfile.h (struct section_addr_info) <sectindex>: New comment.
3413
3414 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
3415
3416         * NEWS: Add new "[...] since 7.1" section.  Rename the "[...] since
3417         7.0 section" into "Changes in 7.1".
3418
3419 2010-02-19  Joel Brobecker  <brobecker@adacore.com>
3420
3421         GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
3422         * version.in: Bump version to 7.1.50.20100219-cvs.
3423
3424 2010-02-18  Harald Koenig  <H.Koenig@science-computing.de>
3425
3426         * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
3427         * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
3428
3429 2010-02-17  Tom Tromey  <tromey@redhat.com>
3430
3431         * NEWS: Add Python API Improvements section.
3432
3433 2010-02-18  Daniel Jacobowitz  <dan@codesourcery.com>
3434
3435         * NEWS: Correct typo.
3436
3437 2010-02-17  Tom Tromey  <tromey@redhat.com>
3438
3439         * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
3440
3441 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3442
3443         * symfile.c (build_section_addr_info_from_objfile): Include sections
3444         only if they are SEC_ALLOC or SEC_LOAD.
3445
3446 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
3447
3448         PR shlibs/11293
3449         * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
3450         of ULONGEST for address size.
3451
3452 2010-02-17  Tom Tromey  <tromey@redhat.com>
3453
3454         * NEWS: Add C++ improvements section.
3455
3456 2010-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
3457
3458         * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
3459         PyThreadState_Swap): Avoid "statement with no effect" warning.
3460
3461 2010-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3462
3463         * solib-svr4.c (enable_break <target_auxv_search>): New variable
3464         addr_bit.  Adjust LOAD_ADDR sign for cross-arch inferiors.
3465
3466 2010-02-17  Tristan Gingold  <gingold@adacore.com>
3467             Petr Hluzín <petr.hluzin@gmail.com>
3468
3469         * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
3470         gdb_assert.  Fix info->size for SIG prologue.
3471
3472 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
3473
3474         * infcmd.c (show_inferior_tty_command): Check for NULL.
3475         Correct output message.
3476
3477 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
3478
3479         * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
3480         FUNCTION contains parentheses.  Improve removal of a trailing
3481         single quote.
3482
3483 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
3484
3485         * gcore.c (do_bfd_delete_cleanup): New function.
3486         (gcore_command): Use it.  Discard the cleanup after success.
3487         (gcore_copy_callback): Delete dead code.
3488
3489 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
3490
3491         * symfile.c (addr_info_make_relative): Always use
3492         find_lowest_section.
3493
3494 2010-02-16  Sami Wagiaalla <swagiaal@redhat.com>
3495
3496         * NEWS: Added entry for namespace fixes.
3497
3498 2010-02-15  Tom Tromey  <tromey@redhat.com>
3499
3500         * dwarf2read.c (guess_structure_name): Allocate name on the
3501         objfile obstack.
3502
3503 2010-02-15  Tom Tromey  <tromey@redhat.com>
3504
3505         * c-typeprint.c (c_type_print_base): Reverse order of test.
3506
3507 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3508
3509         * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize.  Optionally
3510         initialize it from ELF BFD.  Extend the prelink condition by it.
3511
3512 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3513
3514         * defs.h (parse_pid_to_attach): New.
3515         * utils.c (parse_pid_to_attach): New.
3516         * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
3517         * gnu-nat.c (gnu_attach): Likewise.
3518         * nto-procfs.c (procfs_attach): Likewise.
3519         * procfs.c (procfs_attach): Likewise.
3520         * windows-nat.c (windows_attach): Likewise.
3521         * inf-ptrace.c (inf_ptrace_attach): Likewise.  Remove variable dummy.
3522         * inf-ttrace.c (inf_ttrace_attach): Likewise.
3523         * remote.c (extended_remote_attach_1): Likewise.  New comment on getpid
3524         check.
3525
3526 2010-02-14  Masaki Muranaka  <monaka@monami-software.com>
3527
3528         * MAINTAINERS: Add myself for write after approval privileges.
3529
3530 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3531
3532         * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
3533         block.
3534
3535 2010-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3536
3537         * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
3538         only if INFO_VERBOSE.
3539
3540 2010-02-12  Tomas Holmberg <th@virtutech.com>
3541
3542         * mi/mi-main.c: Added the --reverse flag to the following MI
3543         commands: exec-continue, exec-finish, exec-next, exec-step,
3544         exec-next-instruction, exec-step-instruction. This is to
3545         support reverse execution over the MI interface to gdb.
3546
3547 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
3548
3549         * tracepoint.c (_initialize_tracepoint): Specify that the address
3550         range of `tfind outsize' is exclusive, and that the address range
3551         of `tfind range' is inclusive, in the commands' help strings.
3552
3553 2010-02-12  Joel Brobecker  <brobecker@adacore.com>
3554
3555         Spurious "dll not found" error messages on x64-windows.
3556         * windows-nat.c: Add include of complaints.h.
3557         (handle_unload_dll): Change dll-not-found error into a complaint.
3558
3559 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
3560
3561         * breakpoint.c (allocate_bp_location): Use bp_loc_other for
3562         bp_tracepoint and bp_fast_tracepoint, not
3563         bp_loc_software_breakpoint.
3564         (update_global_location_list): Tracepoints are never duplicates of
3565         anything.
3566
3567 2010-02-12  Pedro Alves  <pedro@codesourcery.com>
3568
3569         * breakpoint.c (break_command_really): Change return type to int.
3570         Return false if no breakpoint was created, true otherwise.
3571         (trace_command): Don't set the tracepoint count if no tracepoint
3572         was created.
3573         (ftrace_command): Ditto.
3574         (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
3575         created in the breakpoints table.
3576
3577 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3578             Ulrich Weigand  <uweigand@de.ibm.com>
3579
3580         * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
3581
3582 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
3583
3584         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
3585         the offset value isn't of integral type.
3586
3587 2010-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3588
3589         * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
3590         New.
3591
3592 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
3593
3594         * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
3595         non-subscriptable types.
3596         * valarith.c (binop_types_user_defined_p): New, abstracted out
3597         from ...
3598         (binop_user_defined_p): ... this.
3599         * value.h (binop_types_user_defined_p): Declare.
3600
3601 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
3602
3603         * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
3604         Merge uploaded TSVs before merging uploaded tracepoints.
3605
3606 2010-02-11  Pedro Alves  <pedro@codesourcery.com>
3607
3608         * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
3609
3610 2010-02-11  Vladimir Prus  <vladimir@codesourcery.com>
3611
3612         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
3613         whitespace character after a dot in comment.
3614         (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
3615         Likewise.
3616         (list_args_or_locals): For the 'all' (that is
3617         -stack-list-variables) case, always output list of tuples.
3618         Output 'arg' field if variable is argument.
3619
3620 2010-02-10  Tom Tromey  <tromey@redhat.com>
3621
3622         * parser-defs.h (parser_debug): Declare.
3623         * parse.c (_initialize_parse): Install "debug parser" set/show
3624         command.
3625         (parser_debug): New global.
3626         (show_parserdebug): New function.
3627         * c-exp.y (c_parse): Set yydebug.
3628
3629 2010-02-10  H.J. Lu  <hongjiu.lu@intel.com>
3630
3631         * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
3632         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
3633         (tdesc_predefined_types): Add i387_ext, i386_eflags and
3634         i386_mxcsr.
3635         (tdesc_find_type): New.
3636         (tdesc_gdb_type): Use tdesc_find_type.  Handle TDESC_TYPE_I387_EXT,
3637         TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
3638
3639         * target-descriptions.h (tdesc_find_type): New.
3640
3641 2010-02-10  Michael Snyder  <msnyder@vmware.com>
3642
3643         * gdb-gdb.py: Comment fix.
3644
3645 2010-02-09  Tristan Gingold  <gingold@adacore.com>
3646
3647         * machoread.c (macho_symfile_relocate): New function.
3648         (macho_sym_fns): Use macho_symfile_relocate instead of
3649         default_symfile_relocate.
3650         (macho_oso_data): New type.
3651         (current_oso): New variable.
3652         (macho_add_oso_symfile): Do not compute section_addr_info, but
3653         instead set vma of sections.
3654         Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
3655         Set and clear current_oso.
3656
3657 2010-02-09  Joel Brobecker  <brobecker@adacore.com>
3658
3659         Wrong type description for tagged type parameter.
3660         * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
3661         EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
3662         reference to a tagged type.
3663
3664 2010-02-09  Tristan Gingold  <gingold@adacore.com>
3665
3666         * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
3667         brothers of the parent.
3668
3669 2010-02-08  Tom Tromey  <tromey@redhat.com>
3670
3671         PR c++/8017:
3672         * value.h: Update.
3673         * valops.c (search_struct_field): Make 'name' const.
3674         (search_struct_method): Likewise.
3675         (find_method_list): Make 'method' const.
3676         (value_struct_elt): Make 'name' and 'err' const.
3677         (value_find_oload_method_list): Make 'method' const.
3678         (find_overload_match): Make 'name' const.
3679         * eval.c (evaluate_subexp_standard): New locals function,
3680         function_name.
3681         <OP_FUNCALL>: Handle OP_SCOPE specially.
3682
3683 2010-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
3684
3685         * infrun.c (handle_inferior_event): Do not look up regcache
3686         for exited processes.
3687
3688 2010-02-08  Chris Moller  <moller@mollerware.com>
3689
3690         PR gdb/10728
3691         * valarith.c (value_ptrdiff): Added a test for a zero type length,
3692         warn if found, and assume length = 1.
3693
3694 2010-02-08  Chris Moller  <cmoller@redhat.com>
3695
3696         PR gdb/9067
3697         * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
3698         cp_print_static_field)  Fix use of obstacks.
3699
3700 2010-02-08  Pedro Alves  <pedro@codesourcery.com>
3701
3702         * linux-nat.c (linux_nat_resume): In non-stop, also only tag
3703         resumed LWPs as resumed.
3704         (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
3705         we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
3706         of throwing an internal error.  If an LWP of a process we're not
3707         waiting for reports a signal, don't force collecting a SIGSTOP,
3708         and if it was breakpoint hit in non-stop mode, cancel it.  Don't
3709         go through all LWPs cancelling breakpoints in non-stop mode.
3710         (resume_stopped_resumed_lwps): New.
3711         (linux_nat_wait): Use it.
3712
3713 2010-02-07  H.J. Lu  <hongjiu.lu@intel.com>
3714
3715         * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
3716         i386/amd64 and i386/amd64-linux.
3717         (i386/i386-expedite): New.
3718         (i386/i386-linux-expedite): Likewise.
3719         (i386/amd64-expedite):Likewise.
3720         (i386/amd64-linux-expedite): Likewise.
3721         ($(outdir)/i386/i386-linux.dat): Likewise.
3722         ($(outdir)/i386/amd64.dat): Likewise.
3723         ($(outdir)/i386/amd64-linux.dat): Likewise.
3724
3725         * features/i386/32bit-core.xml: New.
3726         * features/i386/32bit-linux.xml: Likewise.
3727         * features/i386/32bit-sse.xml: Likewise.
3728         * features/i386/64bit-core.xml: Likewise.
3729         * features/i386/64bit-linux.xml: Likewise.
3730         * features/i386/64bit-sse.xml: Likewise.
3731         * features/i386/i386-linux.xml: Likewise.
3732         * features/i386/i386.xml: Likewise.
3733         * features/i386/amd64-linux.xml: Likewise.
3734         * features/i386/amd64.xml: Likewise.
3735         * features/i386/i386-linux.c: Likewise.
3736         * features/i386/i386.c: Likewise.
3737         * features/i386/amd64-linux.c: Likewise.
3738         * features/i386/amd64.c: Likewise.
3739
3740 2010-02-05  Sami Wagiaalla  <swagiaal@redhat.com>
3741
3742         PR c++/7935:
3743         * cp-support.h: Added char* alias element to using_direct data
3744         struct.
3745         (cp_add_using): Added char* alias argument.
3746         (cp_add_using_directive): Ditto.
3747         * cp-namespace.c: Updated with the above changes.
3748         (cp_lookup_symbol_imports): Check for aliases.
3749         * dwarf2read.c (read_import_statement): Figure out local alias
3750         for the import and pass it on to cp_add_using.
3751         (read_namespace): Pass alias argument to cp_add_using.
3752
3753 2010-02-05  Hui Zhu  <teawater@gmail.com>
3754
3755         * defs.h (gdb_bfd_errmsg): New extern.
3756         * exec.c (exec_file_attach): Change bfd_errmsg to
3757         gdb_bfd_errmsg.
3758         * utils.c (AMBIGUOUS_MESS1): New macro.
3759         (AMBIGUOUS_MESS2): New macro.
3760         (gdb_bfd_errmsg): New function.
3761
3762 2010-02-04  Doug Evans  <dje@google.com>
3763
3764         * solib-svr4.c (enable_break): Add comment.
3765
3766 2010-02-04  Anthony Green  <green@moxielogic.com>
3767
3768         * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
3769         gracefully.
3770
3771 2010-02-04  Tom Tromey  <tromey@redhat.com>
3772
3773         * valops.c (search_struct_field): Account for
3774         value_embedded_offset.  Fix check for virtual base past the end of
3775         the object.  Use value_copy when making a slice of the value.
3776
3777 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
3778
3779         PR tui/9622
3780         * tui/tui-interp.c (tui_init): Call tui_initialize_readline
3781         only if gdb_stdout is a tty.
3782
3783 2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>
3784
3785         * target-descriptions.c: Include "osabi.h".
3786         (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
3787         OSABI.
3788
3789 2010-02-04  Tristan Gingold  <gingold@adacore.com>
3790
3791         * machoread.c (macho_add_oso): Renamed to macho_register_oso.
3792         (macho_symtab_read): Adjust calls to macho_add_oso.
3793         (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
3794         (macho_symfile_read): Adjust call to macho_oso_symfile.
3795         (macho_new_init): Move this function after declarations.
3796         (macho_symfile_init): Ditto.
3797         * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
3798         * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
3799
3800 2010-02-04  Vladimir Prus  <vladimir@codesourcery.com>
3801
3802         Include MI command in remotelog.
3803
3804         * mi/mi-main.c (mi_execute_command): Call target_log_command.
3805
3806 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
3807
3808         * remote.c (remote_state): Remove gdbarch.
3809         (init_remote_state): Don't set gdbarch.
3810         (remote_query_supported): Pass target_gdbarch instead of
3811         rs->gdbarch to gdbarch_qsupported.
3812
3813 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
3814
3815         * gdbarch.sh: Add qsupported.
3816
3817         * gdbarch.c: Regenerated.
3818         * gdbarch.h: Likewise.
3819
3820         * remote.c (remote_state): Add gdbarch.
3821         (init_remote_state): Set gdbarch.
3822         (remote_query_supported): Support gdbarch_qsupported.
3823
3824 2010-02-03  Daniel Jacobowitz  <dan@codesourcery.com>
3825
3826         * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
3827         __FreeBSD_kernel_version.
3828
3829 2010-02-03  Tristan Gingold  <gingold@adacore.com>
3830
3831         * symfile.h (struct sym_fns): Add sym_relocate field.
3832         (default_symfile_relocate): New prototype.
3833         (symfile_relocate_debug_section): First argument is now an objfile.
3834         * symfile.c (default_symfile_relocate): Rename from
3835         symfile_relocate_debug_section, first argument is now an objfile.
3836         (symfile_relocate_debug_section): New function.
3837         * coffread.c (coff_sym_fns): Set sym_relocate field.
3838         * somread.c (som_sym_fns): Ditto.
3839         * mipsread.c (ecoff_sym_fns): Ditto.
3840         * machoread.c (macho_sym_fns): Ditto.
3841         * elfread.c (elf_sym_fns): Ditto.
3842         * dwarf2read.c (dwarf2_read_section): Ditto.
3843         * xcoffread.c (xcoff_sym_fns): Ditto.
3844         * dbxread.c (aout_sym_fns): Ditto.
3845         (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
3846         (elfstab_build_psymtabs): Ditto.
3847
3848 2010-02-03  H.J. Lu  <hongjiu.lu@intel.com>
3849
3850         * defs.h (MAX_REGISTER_SIZE): Increase to 32.
3851
3852 2010-02-02  Tom Tromey  <tromey@redhat.com>
3853
3854         * valops.c (value_cast_structs): Try downcasting using the RTTI
3855         type.
3856
3857 2010-02-02  Tom Tromey  <tromey@redhat.com>
3858
3859         * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
3860         (gnuv2_baseclass_offset): Now static.
3861         * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
3862         * gnu-v2-abi.h: Remove.
3863
3864 2010-02-02  Tom Tromey  <tromey@redhat.com>
3865
3866         * m2-typeprint.c (m2_record_fields): Don't use
3867         TYPE_DECLARED_TYPE.
3868         * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
3869         (struct main_type) <flag_declared_class>: New field.
3870         (struct cplus_struct_type) <declared_type>: Remove.
3871         <ntemplate_args>: Move earlier.
3872         (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
3873         (DECLARED_TYPE_TEMPLATE): Remove.
3874         (TYPE_DECLARED_TYPE): Remove.
3875         * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
3876         * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
3877         * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
3878         TYPE_DECLARED_TYPE.
3879
3880 2010-02-02  Tom Tromey  <tromey@redhat.com>
3881
3882         PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
3883         * valops.c (search_struct_field): Compute nbases after calling
3884         CHECK_TYPEDEF.
3885         (check_field): Call CHECK_TYPEDEF.
3886         * cp-valprint.c (cp_print_value): Pass correct address to
3887         baseclass_offset.  Fix check for virtual base past the end of the
3888         object.  Don't offset address passed to cp_print_value_fields or
3889         apply_val_pretty_printer.
3890         (cp_print_value_fields): Fix call to val_print.
3891         (cp_print_value_fields_rtti): New function.
3892         * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
3893         * p-valprint.c (pascal_object_print_value_fields): Fix call to
3894         val_print.
3895         * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
3896         offset to address.
3897         * language.h (struct language_defn) <la_val_print>: Document.
3898         * c-lang.h (cp_print_value_fields_rtti): Declare.
3899
3900 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3901
3902         PR libc/11214:
3903         * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
3904         (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
3905         (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
3906
3907 2010-02-01  Michael Matz  <matz@suse.de>
3908             Daniel Jacobowitz  <dan@codesourcery.com>
3909
3910         * i386-tdep.c (i386_frame_cache): Assume valid anonymous
3911         functions use a frame pointer.
3912
3913 2010-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3914
3915         * solib-svr4.c (scan_dyntag): New variable dyn_addr.  Replace gdb_assert
3916         by a conditional setting DYN_ADDR.  Use DYN_ADDR.
3917         * config/djgpp/fnchange.lst: Add translations for
3918         symbol-without-target_section.exp and symbol-without-target_section.c.
3919
3920 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
3921
3922         * gdbarch.sh: Set LANG and LC_ALL to C, not c.
3923         (remote_breakpoint_for_pc): Correct invalid_p check.
3924         * gdbarch.c: Regenerated.
3925
3926 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
3927
3928         * arm-tdep.c (arm_find_mapping_symbol): New function, from
3929         arm_pc_is_thumb.
3930         (arm_pc_is_thumb): Use arm_find_mapping_symbol.
3931         (extend_buffer_earlier): New function.
3932         (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
3933         (arm_adjust_breakpoint_address): New function.
3934         (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
3935
3936 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
3937
3938         * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
3939         (arm_linux_thumb2_le_breakpoint): New constants.
3940         (arm_linux_init_abi): Set thumb2_breakpoint and
3941         thumb2_breakpoint_size.
3942         * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
3943         (thumb_get_next_pc): Add a comment.  Rename IT to ITSTATE.
3944         Implement support for single stepping through IT blocks if
3945         a 32-bit Thumb breakpoint instruction is available.
3946         (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
3947         is available, use it when needed.
3948         (arm_remote_breakpoint_from_pc): New function.
3949         (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
3950         * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
3951         comment.  Add thumb2_breakpoint and thumb2_breakpoint_size.
3952
3953 2010-02-01  Daniel Jacobowitz  <dan@codesourcery.com>
3954
3955         * arch-utils.c (default_remote_breakpoint_from_pc): New function.
3956         * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
3957         * gdbarch.c, gdbarch.h: Regenerated.
3958         * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
3959         * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
3960         gdbarch_remote_breakpoint_from_pc.
3961
3962 2010-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
3963
3964         * infrun.c (prepare_to_proceed): Handle other signals which might
3965         match a breakpoint.
3966         (handle_inferior_event): Move the check for unusual breakpoint
3967         signals earlier.
3968
3969 2010-01-29  Paul Hilfinger  <hilfinger@adacore.com>
3970
3971         amd64 - function returning record with field straddling 2 registers.
3972         * amd64-tdep.c (amd_classify_aggregate): Handle the case of
3973         a record of length <= 16 in which a field straddles the two
3974         eightbytes.
3975
3976 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
3977
3978         Implement return values on amd64-windows.
3979         * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
3980         (amd64_windows_return_value): New function.
3981         (amd64_windows_init_abi): Call set_gdbarch_return_value with
3982         amd64_windows_return_value.
3983
3984 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
3985
3986         amd64-windows: 32 bytes allocated on stack by caller for integer
3987         parameter registers.
3988         * i386-tdep.h (struct gdbarch_tdep): Add new field
3989         integer_param_regs_saved_in_caller_frame.
3990         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3991         tdep->integer_param_regs_saved_in_caller_frame to 1.
3992         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3993         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3994
3995 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
3996
3997         amd64-windows: memory args passed by pointer during function calls.
3998         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3999         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
4000         where tdep->memory_args_by_pointer is non-zero.
4001         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4002         tdep->memory_args_by_pointer to 1.
4003
4004 2010-01-29  Joel Brobecker  <brobecker@adacore.com>
4005
4006         amd64-windows: Integer parameters in function calls.
4007         * i386-tdep.h (enum amd64_reg_class): New, moved here from
4008         amd64-tdep.c.
4009         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
4010         call_dummy_integer_regs, and classify.
4011         * amd64-tdep.h (amd64_classify): Add declaration.
4012         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
4013         (amd64_reg_class): Delete, moved to i386-tdep.h.
4014         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
4015         Replace call to amd64_classify by call to tdep->classify.
4016         (amd64_push_arguments): Get the list of registers to use for
4017         passing integer parameters from the gdbarch tdep structure,
4018         rather than using a hardcoded one.  Replace calls to amd64_classify
4019         by calls to tdep->classify.
4020         (amd64_push_dummy_call): Get the register number used for
4021         the "hidden" argument from tdep->call_dummy_integer_regs.
4022         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
4023         and tdep->call_dummy_integer_regs.  Set tdep->classify.
4024         * amd64-windows-tdep.c: Add include of gdbtypes.h.
4025         (amd64_windows_dummy_call_integer_regs): New static global.
4026         (amd64_windows_classify): New function.
4027         (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
4028         tdep->call_dummy_integer_regs and tdep->classify.
4029
4030 2010-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
4031
4032         * regcache.c (regcache_xmalloc): Add aspace argument.  Use it
4033         for the new regcache.  All callers updated.
4034         (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
4035         (get_thread_arch_regcache): Do not set aspace here.
4036         * regcache.h (regcache_xmalloc): Update declaration.
4037
4038         * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
4039         regcache_xmalloc updated.
4040
4041 2010-01-28  Joel Brobecker  <brobecker@adacore.com>
4042
4043         Another -Wunused-function error in procfs.c (sparc-solaris)
4044         * procfs.c (insert_dbx_link_breakpoint): Delete declaration.  Move up.
4045         Only define if SYS_syssgi is defined.
4046         (remove_dbx_link_breakpoint): Delete declaration.  Move up.
4047         (dbx_link_addr, insert_dbx_link_bpt_in_file)
4048         (insert_dbx_link_bpt_in_region): Move up.  Only define if SYS_syssgi
4049         is itself defined.
4050
4051 2010-01-27  Christopher Faylor  <me+cygwin@cgf.cx>
4052
4053         * windows-nat.c (windows_initialization_done): New variable.
4054         (get_windows_debug_event): Issue error when process dies before
4055         completely initializing.
4056         (do_initial_windows_stuff): Set flag to indicate when we are done with
4057         the initial steps of attaching to the child.
4058
4059 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4060
4061         * symtab.h (struct symbol <symtab>): New comment on NULL values.
4062
4063 2010-01-27  Doug Evans  <dje@google.com>
4064
4065         * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
4066
4067         * breakpoint.c (bpstat_stop_status): Delete useless code.
4068
4069 2010-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4070
4071         * printcmd.c (display_uses_solib_p): Remove variable section.  Access
4072         objfile via SYMBOL_SYMTAB.
4073
4074 2010-01-26  Tom Tromey  <tromey@redhat.com>
4075
4076         PR exp/7643:
4077         * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
4078         coerce_array on result.
4079
4080 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
4081
4082         * cp-namespace.c (cp_lookup_symbol_namespace): Added
4083         search_parent argument.
4084         (cp_add_using): Initialize 'searched' field.
4085         (reset_directive_searched): New function.
4086         * cp-support.h: Add 'searched' field to using_direct struct.
4087         (cp_lookup_symbol_imports): Ditto.
4088         * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
4089         Perform recursive search.
4090         Implement non parent search.
4091         * valops.c (value_maybe_namespace_elt): Updated.
4092
4093 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>
4094
4095         PR gdb/10929:
4096         * dwarf2read.c (read_lexical_block_scope): Create blocks for
4097         scopes which contain using directives even if they contain no
4098         declarations.
4099         * symtab.c (lookup_symbol_aux): Pass lowest level block to
4100         la_lookup_symbol_nonlocal.
4101         * cp-namespace.c (cp_lookup_symbol_nonlocal): call
4102         cp_lookup_symbol_namespace.
4103         (cp_lookup_symbol_namespace): Perform an import lookup at every
4104         block level.
4105         (cp_lookup_symbol_imports): New function.
4106         (cp_lookup_symbol_in_namespace): New function.
4107
4108 2010-01-25  Tom Tromey  <tromey@redhat.com>
4109
4110         PR gdb/11049:
4111         * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
4112         result.
4113
4114 2010-01-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4115
4116         * configure.ac: Only use host_os part when disabling TUI on osf.
4117         Use test to check variables, prefix strings with x.
4118         * configure: Regenerate.
4119
4120         * solib-osf.c (osf_current_sos): Initialize tail.
4121
4122 2010-01-25  gingold  <gingold@adacore.com>
4123
4124         * windows-nat.c (windows_continue): Use %x to print thread id.
4125         (get_windows_debug_event): Ditto.
4126
4127 2010-01-22  Tom Tromey  <tromey@redhat.com>
4128
4129         PR symtab/11199:
4130         * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
4131         type and arguments.  Use smash_to_methodptr_type.
4132         (read_structure_type): Call quirk_gcc_member_function_pointer
4133         later.
4134         * gdbtypes.h (smash_to_methodptr_type): Declare.
4135         * gdbtypes.c (smash_to_methodptr_type): New function.
4136         (lookup_methodptr_type): Use it.
4137
4138 2010-01-21  Tom Tromey  <tromey@redhat.com>
4139
4140         PR symtab/11198:
4141         * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
4142         * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
4143         * glibc-tdep.c (find_minsym_and_objfile): Remove.
4144         (glibc_skip_solib_resolver): Use
4145         lookup_minimal_symbol_and_objfile.
4146
4147 2010-01-21  Kai Tietz  <kai.tietz@onevision.com>
4148
4149         * inflow.c (check_syscall): Guard by #if clause for GO32 and
4150         WIN32 targets.
4151
4152 2010-01-20  Tom Tromey  <tromey@redhat.com>
4153
4154         PR backtrace/10770:
4155         * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
4156         BINOP_GEQ.  Handle BINOP_NOTEQUAL in the signed case.
4157         * dwarf2expr.c (new_dwarf_expr_context): Allocate
4158         dwarf_stack_values, not CORE_ADDRs.
4159         (execute_stack_op): Change DW_OP_div and comparison operators to
4160         use signed operands.
4161
4162 2010-01-20  Vladimir Prus  <vladimir@codesourcery.com>
4163
4164         Per-inferior args and tty and environment.
4165
4166         * infcmd.c (inferior_args): Rename to ...
4167         (inferior_args_scratch): ... this.
4168         (inferior_io_terminal): Rename to ...
4169         (inferior_io_terminal_scratch): ... this.
4170         (inferior_argc, inferior_argv): Remove.
4171         (set_inferior_io_terminal, get_inferior_io_terminal): Store
4172         inside current_inferior().
4173         (set_inferior_tty_command, show_inferior_tty_command): New.
4174         (get_inferior_args, set_inferior_args): Store inside
4175         current_inferior().
4176         (notice_args_set): Likewise and rename to...
4177         (set_args_command): ... this.
4178         (set_inferior_args_vector): Likewise.
4179         (notice_args_read): Rename to...
4180         (show_args_command): ...new.
4181         (tty_command): Remove.
4182         (run_command_1): Don't free old args, as they are freed by
4183         set_inferior_arg now.
4184         (run_no_args_command): Likewise.
4185         (inferior_environ): Remove.
4186         (run_command_1): Use environment of the current inferior.
4187         (environment_info, set_environment_command)
4188         (unset_environment_command, path_info, path_command): Likewise.
4189         (_initialize_infcmd): Adjust for function and variable renames.
4190         Do not init inferior_environ.
4191         * inferior.h (set_inferior_arg): Adjust prototype.
4192         (struct inferior): New fields args, argc, argv, terminal, environment.
4193         (inferior_environ): Remove declaration.
4194         * inferior.c (free_inferior): Free new fields.
4195         (add_inferior_silent): Initialize 'environment' field.
4196         * main.c (captured_main): Set arguments only after the initial
4197         inferior has been created.  Set set_inferior_io_terminal,
4198         not tty_command.
4199         * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
4200         inferior.
4201         (_initialize_mi_cmd_env): Adjust for disappearance of global
4202         inferior_environ.
4203         * solib.c (solib_find): Use environment of the current inferior.
4204
4205 2010-01-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4206
4207         * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
4208         HAVE_PYTHON.
4209         (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
4210
4211 2010-01-20  Joel Brobecker  <brobecker@adacore.com>
4212
4213         Get rid of ada-lang.c:function_name_from_pc.
4214         * ada-lang.c: Add "stack.h" #include.
4215         (function_name_from_pc): Delete.
4216         (is_known_support_routine): Replace call to function_name_from_pc
4217         by call to find_frame_funname.
4218         (ada_unhandled_exception_name_addr_from_raise): Likewise.
4219
4220 2010-01-19  Tom Tromey  <tromey@redhat.com>
4221
4222         PR c++/11026:
4223         * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
4224         objfile obstack.
4225
4226 2010-01-19  Tom Tromey  <tromey@redhat.com>
4227
4228         * top.c (stop_sig, float_handler, do_nothing): Remove.
4229
4230 2010-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4231
4232         * breakpoint.c (watchpoint_check): Check the call
4233         gdbarch_in_function_epilogue_p before calling frame_find_by_id.
4234         Extend the comment.
4235         * config/djgpp/fnchange.lst: Add translations for
4236         watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
4237         watchpoint-cond-gone-stripped.c.
4238
4239 2010-01-19  Tom Tromey  <tromey@redhat.com>
4240
4241         PR c++/8000:
4242         * dwarf2read.c (partial_die_parent_scope): Put enumeration type
4243         into parent scope, and enumerator into grandparent scope.
4244
4245 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
4246
4247         * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
4248
4249 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
4250
4251         * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
4252         i[34567]86-*-solaris2.1[0-9]*.
4253         * configure.tgt: Likewise.
4254
4255 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
4256
4257         * NEWS: Document the source command enhancement allowing it
4258         to load Python scripts. Document the "set/show script-extension"
4259         commands.
4260
4261 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
4262
4263         Add -Wunused-function to compile flags.
4264         * configure.ac: Add -Wunused-function to build_warnings.
4265         * configure: Regenerate.
4266
4267 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
4268
4269         "delete" ada-lex.c:input function, not used.
4270         * ada-lex.l: #define YY_NO_INPUT.
4271
4272 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
4273
4274         Delete free_named_symtabs and associated cleanup.
4275         * symfile.h (free_named_symtabs): Delete declaration.
4276         * symfile.c: Remove some commented out code (clear_symtab_users_once).
4277         (cashier_psymtab): Comment function out.
4278         Delete declaration.
4279         (free_named_symtabs): Delete.
4280         * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
4281         * dbxread.c (end_psymtab): Likewise.
4282         * dwarf2read.c (process_psymtab_comp_unit): Ditto.
4283         * exec.c (exec_close_1): Ditto.
4284         * xcoffread.c (xcoff_end_psymtab): Likewise.
4285
4286 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
4287
4288         * stack.c (print_block_frame_labels): Comment function out.
4289
4290 2010-01-19  Joel Brobecker  <brobecker@adacore.com>
4291
4292         Delete unused or undefined functions.
4293         * breakpoint.c (ep_parse_optional_filename): Delete.
4294         * dcache.c (dcache_write_line): Remove declaration.
4295         * infrun.c (build_infrun): Remove declaration.
4296         * tracepoint.c (tracepoint_save_command): Remove declaration.
4297         * linux-nat.c (init_lwp_list): Delete. No longer used.
4298         * event-loop.c (check_async_signal_handlers): Delete declaration.
4299         * infrun.c (init_execution_control_state): Delete.
4300         (proceed): Update comment to avoid mentioning
4301         init_execution_control_state.
4302         * target.c (kill_or_be_killed, nosupport_runtime): Delete.
4303         * ada-lang.c (ada_to_static_fixed_value): Delete.
4304         * scm-lang.c (evaluate_subexp_scm): Delete declaration.
4305         * cp-namespace.c (cp_copy_usings): Delete.
4306         * xml-syscall.c (xml_number_of_syscalls): Delete.
4307         * progspace.c (find_program_space_by_num): Delete.
4308         * inflow.c (handle_sigio): Delete declaration.
4309         * hppa-tdep.c (hppa_alignof): Delete.
4310         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
4311         (mipsnbsd_core_osabi_sniffer): Delete.
4312
4313 2010-01-18  Tom Tromey  <tromey@redhat.com>
4314
4315         PR c++/9680:
4316         * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
4317         (CONST_CAST): New tokens.
4318         (exp): Add new productions.
4319         (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
4320         reinterpret_cast.
4321         (is_cast_operator): New function.
4322         (yylex): Handle cast operators specially.
4323         * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
4324         UNOP_REINTERPRET_CAST>: New cases.
4325         * expprint.c (print_subexp_standard): Likewise.
4326         (op_name_standard): Likewise.
4327         (dump_subexp_body_standard): Likewise.
4328         * parse.c (operator_length_standard): Likewise.
4329         * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
4330         UNOP_REINTERPRET_CAST.
4331         * gdbtypes.c (class_types_same_p): New function.
4332         (is_ancestor): Use it.
4333         (is_public_ancestor): New function.
4334         (is_unique_ancestor_worker): Likewise.
4335         (is_unique_ancestor): Likewise.
4336         * gdbtypes.h (class_types_same_p, is_public_ancestor)
4337         (is_unique_ancestor): Declare.
4338         * valops.c (value_reinterpret_cast): New function.
4339         (dynamic_cast_check_1): Likewise.
4340         (dynamic_cast_check_2): Likewise.
4341         (value_dynamic_cast): Likewise.
4342         * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
4343
4344 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
4345
4346         Fix build failure when building without Python support.
4347         * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
4348         is not defined.
4349
4350 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
4351
4352         Use XVS field type instead of doing a parallel lookup.
4353         * ada-lang.c (ada_get_base_type): Follow the XVS field type
4354         if it is a reference type instead of doing a type lookup using
4355         the XVS field name.
4356
4357 2010-01-18  Joel Brobecker  <brobecker@adacore.com>
4358
4359         Trust PAD types instead of using PAD___XVS.
4360         * ada-lang.c (trust_pad_over_xvs): New static variable.
4361         (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
4362         parallel XVS type, follow the XVS type instead of the PAD type.
4363         (unwrap_value): Make sure that there is no parallel XVE type
4364         before returning the value as is.
4365         (set_ada_list, show_ada_list): New static variables.
4366         (set_ada_command, show_ada_command): New functions.
4367         (_initialize_ada_language): Add new "set/show ada" prefix commands.
4368         Add new "set/show ada trust-PAD-over-XVS" setting.
4369
4370 2010-01-18  Tom Tromey  <tromey@redhat.com>
4371             Thiago Jung Bauermann  <bauerman@br.ibm.com>
4372
4373         Allow "source" to load python scripts.
4374         * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
4375         * python/python.c (source_python_script): New function.
4376         * python/python.h (source_python_script): Add declaration.
4377         * cli/cli-cmds.c: #include exceptions.h and python/python.h.
4378         (script_ext_off, script_ext_soft, script_ext_strict)
4379         (script_ext_enums, script_ext_mode): New static constants.
4380         (show_script_ext_mode, find_and_open_script): New functions.
4381         (source_script): Enhance to handle Python scripts.
4382         (init_cli_cmds): Add set/show script-extension commands.
4383
4384 2010-01-16  Stan Shebs  <stan@codesourcery.com>
4385
4386         * tracepoint.h (struct trace_status): Use unsigned long long
4387         instead of size_t.
4388         * tracepoint.c (trace_status_command): Fix printf directive.
4389         (trace_save_command): Check fwrite returns, fix printf directive.
4390         (trace_filename): New global.
4391         (tfile_open): Set it, check read returns.
4392         (tfile_close): Free trace_filename.
4393         (tfile_get_traceframe_address): Check read returns.
4394         (tfile_trace_find): Ditto.
4395         (tfile_fetch_registers): Ditto.
4396         (tfile_xfer_partial): Ditto.
4397         (tfile_get_trace_state_variable_value): Ditto.
4398
4399 2010-01-15  Stan Shebs  <stan@codesourcery.com>
4400
4401         Add trace file support.
4402         * tracepoint.h (enum trace_stop_reason): New enum.
4403         (struct trace_status): New struct.
4404         (parse_trace_status): Declare.
4405         (struct uploaded_tp): Move here from remote.c,
4406         add fields for actions.
4407         (struct uploaded_tsv): New struct.
4408         * tracepoint.c (tfile_ops): New target vector.
4409         (trace_fd): New global.
4410         (tfile_open): New function.
4411         (tfile_close): New function.
4412         (tfile_files_info): New function.
4413         (tfile_get_trace_status): New function.
4414         (tfile_get_traceframe_address): New function.
4415         (tfile_trace_find): New function.
4416         (tfile_fetch_registers): New function.
4417         (tfile_xfer_partial): New function.
4418         (tfile_get_trace_state_variable_value): New function.
4419         (init_tfile_ops): New function.
4420         (_initialize_tracepoint): Call it, add tfile target.
4421         (trace_status): New global.
4422         (current_trace_status): New function.
4423         (trace_running_p): Remove, change all users to get from
4424         current_trace_status()->running.
4425         (get_trace_status): Remove.
4426         (trace_status_command): Call target_get_trace_status directly,
4427         report more detail including tracing stop reasons.
4428         (trace_find_command): Always allow tfind on a file.
4429         (trace_find_pc_command): Ditto.
4430         (trace_find_tracepoint_command): Ditto.
4431         (trace_find_line_command): Ditto.
4432         (trace_find_range_command): Ditto.
4433         (trace_find_outside_command): Ditto.
4434         (trace_frames_offset, cur_offset): Declare as off_t.
4435         (trace_regblock_size): Rename from reg_size, update users.
4436         (parse_trace_status): New function.
4437         (tfile_interp_line): New function.
4438         (disconnect_or_stop_tracing): Ensure current trace
4439         status before asking what to do.
4440         (stop_reason_names): New global.
4441         (trace_save_command): New command.
4442         (get_uploaded_tp): Move here from remote.c.
4443         (find_matching_tracepoint): Ditto.
4444         (merge_uploaded_tracepoints): New function.
4445         (parse_trace_status): Use stop_reason_names.
4446         (_initialize_tracepoint): Define tsave command.
4447         * target.h (target_ops): New fields to_save_trace_data,
4448         to_upload_tracepoints, to_upload_trace_state_variables,
4449         to_get_raw_trace_data, change to_get_trace_status
4450         to take a pointer to a status struct.
4451         (target_save_trace_data): New macro.
4452         (target_upload_tracepoints): New macro.
4453         (target_upload_trace_state_variables): New macro.
4454         (target_get_raw_trace_data): New macro.
4455         * target.c (update_current_target): Add new methods, change
4456         signature of to_get_trace_status.
4457         * remote.c (hex2bin): Make globally visible.
4458         (bin2hex): Ditto.
4459         (remote_download_trace_state_variable): Download name also.
4460         (remote_get_trace_status): Update parameter, use
4461         parse_trace_status.
4462         (remote_save_trace_data): New function.
4463         (remote_upload_tracepoints): New function.
4464         (remote_upload_trace_state_variables): New function.
4465         (remote_get_raw_trace_data): New function.
4466         (remote_start_remote): Use them.
4467         (_initialize_remote_ops): Add operations.
4468         * ax-gdb.c: Include breakpoint.h.
4469         * breakpoint.c (create_tracepoint_from_upload): Use
4470         break_command_really, return tracepoint, warn about unimplemented
4471         parts.
4472         * NEWS: Mention trace file addition.
4473
4474 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4475
4476         Fix compilation warning on gcc-3.4.
4477         * exec.c (print_section_info): Move the `displacement' variable
4478         initialization to its declaration.
4479
4480 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4481
4482         * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
4483         comparison.
4484
4485 2010-01-15  Eric Botcazou  <botcazou@adacore.com>
4486
4487         "info tasks" broken by typedefs in ATCB type definitions.
4488         * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
4489         ada_check_typedef before retrieving the length of the type for
4490         regular fields.
4491
4492 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
4493
4494         Do not use name-based lookup for unconstrained packed arrays.
4495         * ada-lang.c (find_parallel_type_by_descriptive_type):
4496         Limit the fallback to name-based lookups to the case where
4497         the type is a constrained packed array.
4498
4499 2010-01-15  Joel Brobecker  <brobecker@adacore.com>
4500
4501         Enhance gdb-gdb.py to handle main_type.type_specific.
4502         * gdb-gdb.py: Print the type-specific part of struct main_type.
4503
4504 2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4505
4506         * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
4507         * configure: Regenerate.
4508         * config.in: Regenerate.
4509         * utils.c: Include sys/resource.h.
4510         (dump_core, can_dump_core): New.
4511         (internal_vproblem): Update the comment.  Check can_dump_core while
4512         setting dump_core_p.  Replace two abort calls by dump_core calls.
4513
4514 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4515             Eli Zaretskii  <eliz@gnu.org>
4516
4517         * NEWS: Document the PIE support.
4518
4519 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4520
4521         * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
4522         (check_is_pie_binary, _initialize_linux_tdep): Remove.
4523
4524 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4525
4526         * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
4527         Replace exec_entry_point call by bfd_get_start_address.
4528
4529 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4530
4531         Support Valgrind attachments broken by the PIE support.
4532         * auxv.c: Include gdbcore.h.
4533         (procfs_xfer_auxv): Make static.  Reduce its comment.  Drop its
4534         parameters ops, object and annex.  Remove their assertions.
4535         (ld_so_xfer_auxv, memory_xfer_auxv): New function.
4536         * auxv.h (procfs_xfer_auxv): Remove comment.  Rename to ...
4537         (memory_xfer_auxv): ... here.
4538         * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
4539         memory_xfer_auxv.
4540         * procfs.c (procfs_xfer_partial): Likewise.
4541         * solib-svr4.c (svr4_relocate_main_executable): New prototype.
4542         (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
4543         (svr4_solib_create_inferior_hook): Conditionalize the
4544         svr4_relocate_main_executable call.
4545
4546 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4547
4548         * solib-svr4.c (scan_dyntag): Remove variable dyn_addr.  New variable
4549         target_section.  Find SECT in current_target_sections, gdb_assert it.
4550         (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
4551         New variable abfd.
4552         * symtab.c (lookup_objfile_from_block): Return the binary file instead
4553         of separate debug info file.
4554
4555 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4556
4557         Support PIEs with no symfile_objfile.
4558         * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
4559         * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
4560
4561 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4562
4563         * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
4564         code part to ...
4565         (svr4_static_exec_displacement): ... a new function.
4566         (svr4_exec_displacement): New function.
4567         (svr4_relocate_main_executable): Call svr4_exec_displacement.  Allocate
4568         new_offsets using alloca now.  Remove variable old_chain and changed.
4569         Call objfile_relocate unconditionally now.
4570
4571 2010-01-14  Doug Evans  <dje@google.com>
4572
4573         * gdbtypes.c (arch_flags_type): Fix comment.
4574         * gdbtypes.h (arch_composite_type): Fix comment.
4575
4576 2009-01-14  Tristan Gingold  <gingold@adacore.com>
4577
4578         * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
4579         Call xstrdup for abfd->filename.  Pass symfile_flags and objfile flags
4580         to symbol_file_add_from_bfd.  Add OSO as separate objfile.
4581         (macho_oso_symfile): Add symfile_flags parameter.  Pass it to
4582         macho_add_oso_symfile.
4583         (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
4584
4585 2010-01-14  Joel Brobecker  <brobecker@adacore.com>
4586
4587         Tru64: Dead threads are never deleted.
4588         * dec-thread.c (dec_thread_ptid_is_alive): New function.
4589         (dec_thread_count_gdb_threads): Fix counter increment.
4590         (dec_thread_add_gdb_thread): Fix *listp increment.
4591         (resync_thread_list): Fix bug in deletion of dead threads that
4592         caused all threads to be deleted, instead of just the dead ones.
4593
4594 2010-01-13  Phil Muldoon  <pmuldoon@redhat.com>
4595
4596         PR python/10705
4597
4598         * python/python-internal.h: Add lazy_string_object_type
4599         definition.
4600         (create_lazy_string_object, gdbpy_initialize_lazy_string)
4601         (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
4602         * python/py-value.c (valpy_lazy_string): New function.
4603         (convert_value_from_python): Add lazy string conversion.
4604         * python/py-prettyprint.c (pretty_print_one_value): Check if
4605         return is also a lazy string.
4606         (print_string_repr): Add lazy string printing branch.
4607         (print_children): Likewise.
4608         * python/py-lazy-string.c: New file. Implement lazy strings.
4609         * python/python.c (_initialize_python): Call
4610         gdbpy_initialize_lazy_string.
4611         * varobj.c (value_get_print_value): Add lazy string printing
4612         branch.  Account for encoding.
4613         * c-lang.c (c_printstr): Account for new encoding argument.  If
4614         encoding is NULL, find encoding suited for type, otherwise use
4615         user encoding.
4616         * language.h (language_defn): Add encoding argument.
4617         (LA_PRINT_STRING): Likewise.
4618         * language.c (unk_lang_printstr): Update to reflect new encoding
4619         argument to language_defn.
4620         * ada-lang.h (ada_printstr): Likewise.
4621         * c-lang.h (c_printstr): Likewise.
4622         * p-lang.h (pascal_printstr);
4623         * f-lang.c (f_printstr): Likewise.
4624         * m2-lang.c (m2_printstr): Likewise.
4625         * objc-lang.c (objc_printstr): Likewise.
4626         * p-lang.c (pascal_printstr): Likewise.
4627         * scm-lang.c (scm_printstr): Likewise.
4628         * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
4629         encoding argument.
4630         * ada-valprint.c (ada_printstr): Likewise.
4631         * f-valprint.c (f_val_print): Likewise
4632         * m2-valprint.c (m2_val_print): Likewise.
4633         * p-valprint.c (pascal_val_print): Likewise.
4634         * expprint.c (print_subexp_standard): Likewise.
4635         * valprint.c (val_print_string): Likewise.
4636         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
4637         (SUBDIR_PYTHON_SRCS): Likewise.
4638         (py-lazy-string.o): New rule.
4639
4640 2010-01-13  Doug Evans  <dje@google.com>
4641
4642         * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
4643         uninitialized" warning from gcc on local `tree'.
4644
4645 2010-01-13  Vladimir Prus  <vladimir@codesourcery.com>
4646
4647         Implement core awareness.
4648
4649         * bcache.c (compare_ints): Remove
4650         (print_percentage): Use compare_positive_ints.
4651         * defs.h (compare_positive_ints): Declare.
4652         * linux-nat.h (struct lin_lwp): New field core.
4653         (linux_nat_core_of_thread_1): Declare.
4654         * linux-nat.c (add_lwp): Init the 'core' field.
4655         (linux_nat_wait_1): Record the core.
4656         (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
4657         (linux_nat_add_target): Register the above.
4658         * linux-thread-db.c (update_thread_core): New.
4659         (thread_db_find_new_threads): Update core information for
4660         every thread.
4661         * remote.c (struct private_thread_info): New.
4662         (free_private_thread_info, demand_private_info): New.
4663         (PACKET_qXfer_threads, use_osdata_threads): New.
4664         (struct thread_item, threads_parsing_context
4665         (start_thread, end_thread, thread_attributes)
4666         (thread_children, threads_children, threads_elements): New.
4667         (remote_threads_info): Try qXfer:threads before anything
4668         else.
4669         (remote_protocol_packets): Register qXfer:threads.
4670         (remote_open_1): Init use_osdata_threads.
4671         (struct stop_reply): New field 'core'.
4672         (remote_parse_stop_reply): Parse core number.
4673         (process_stop_reply): Record core number.
4674         (remote_xfer_partial): Handle qXfer:threads.
4675         (remote_core_of_thread): New.
4676         (init_remote_ops): Register remote_core_of_thread.
4677         (_initialize_remote): Register qXfer:read.
4678         * target.c (target_core_of_thread): New
4679         * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
4680         (struct target_ops): New field to_core_of_threads.
4681         (target_core_of_thread): Declare.
4682         * gdbthread.h (struct thread_info): New field private_dtor.
4683         * thread.c (print_thread_info): Report the core.
4684         * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
4685         * utils.c (compare_positive_ints): New.
4686         * features/threads.dtd: New.
4687         * mi/mi-interp.c (mi_on_normal_stop): Report the core.
4688         * mi/mi-main.c (struct collect_cores_data, collect_cores)
4689         (do_nothing, free_vector_of_osdata_items)
4690         (splay_tree_int_comparator, free_splay_tree): New.
4691         (print_one_inferior_data): Implemented printing of selected
4692         inferiors.  Collect and print cores.
4693         (output_cores): New.
4694         (mi_cmd_list_thread_groups): Support --recurse.  Permit specifying
4695         thread groups together with --available.
4696
4697 2010-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
4698
4699         * configure: Regenerate (for _STRUCTURED_PROC).
4700
4701 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
4702
4703         Delete dead function.
4704         * ada-lang.c (extract_string): Delete.  No longer used.
4705
4706 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
4707
4708         Fix -Wunused warning in dec-thread.c.
4709         * dec-thread.c (dec_thread_count_gdb_threads)
4710         (dec_thread_add_gdb_thread): Prevent -Wunused warning.
4711
4712 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
4713
4714         * ada-valprint.c (ada_print_floating): Remove trailing space.
4715
4716 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
4717
4718         Add support for DW_AT_GNAT_descriptive_type.
4719         * gdbtypes.h (enum type_specific_kind): New enum.
4720         (struct main_type) [type_specific_field]: New component.
4721         [type_specific]: Add new component "gnat_stuff".
4722         (struct gnat_aux_type): New type.
4723         (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
4724         (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
4725         (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
4726         (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
4727         (TYPE_SPECIFIC_FIELD): New macros.
4728         (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
4729         type does not hold any cplus-specific data.
4730         (TYPE_RAW_CPLUS_SPECIFIC): New macro.
4731         (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
4732         (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
4733         cplus-specific data.
4734         * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
4735         Set new component TYPE_SPECIFIC_FIELD (type).
4736         (gnat_aux_default): New constant.
4737         (allocate_gnat_aux_type): New function.
4738         (init_type): Add initialization the type-specific stuff for
4739         TYPE_CODE_FLT and TYPE_CODE_FUNC types.
4740         (print_gnat_stuff): New function.
4741         (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
4742         specific data.  Adjust code that prints the contents of the
4743         type-specific union using the TYPE_SPECIFIC_FIELD value.
4744         * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
4745         the type cplus stuff for Ada types.
4746         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
4747         Error out if these routines are called with an Ada type.
4748         (read_structure_type, read_array_type, read_subrange_type):
4749         Add call to set_descriptive_type.
4750         (set_die_type): Initialize the gnat-specific data if necessary.
4751         (need_gnat_info, die_descriptive_type, set_descriptive_type):
4752         New functions.
4753         * ada-lang.c (decode_constrained_packed_array_type): Use
4754         decode_constrained_packed_array_type instead of doing a standard
4755         lookup to locate a parallel type.
4756         (find_parallel_type_by_descriptive_type): New function.
4757         (ada_find_parallel_type_with_name): New function.
4758         (ada_find_parallel_type): Reimplement using
4759         ada_find_parallel_type_with_name.
4760         * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
4761         to check if type has a cplus stuff.
4762         * linespec.c (total_number_of_methods): Likewise.
4763         * mdebugread.c (new_type): Likewise.
4764
4765 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4766
4767         * NEWS: Document the 0b binary number prefix parsing.
4768
4769 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4770
4771         * objfiles.c (objfile_relocate1): Change the return type to int.
4772         Describe the new return value.  Return non-zero if data changed.
4773         (objfile_relocate): New variable changed.  Set it.  Call
4774         breakpoint_re_set depending on CHANGED.
4775
4776 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4777
4778         Implement binary numbers parsing.
4779         * c-exp.y (parse_number): New case 'b' and 'B'.
4780
4781 2010-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4782             Tristan Gingold  <gingold@adacore.com>
4783
4784         * solib.c (info_sharedlibrary_command): Replace
4785         objfile_has_partial_symbols and objfile_has_full_symbols calls by
4786         objfile_has_symbols.
4787
4788 2010-01-10  Joel Brobecker  <brobecker@adacore.com>
4789
4790         * NEWS: Document the improvements made to the mips-irix port.
4791
4792 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4793
4794         Fix the documentation of valprint.c:value_print.
4795         * valprint.c (value_print): Update the function description to
4796         mention that the syntax of the output follows the current_language,
4797         not necessarily C.
4798
4799 2010-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
4800
4801         Fix displacement of separate debug info files.
4802         * objfiles.c (objfile_relocate): Rename to ...
4803         (objfile_relocate1): ... here and make it static.  Extend the comment.
4804         (objfile_relocate): New function.
4805         * solib-spu.c (spu_relocate_main_executable): Explicitly check if
4806         SYMFILE_OBJFILE is NULL.  Remove variables objfile and old_chain.
4807         Remove following of SEPARATE_DEBUG_OBJFILE.  new_offsets is now
4808         allocated using alloca.
4809         * symfile.c (copy_section_addr_info): Remove.
4810         (build_section_addr_info_from_objfile): Make it global.  New variables
4811         addr_bit and mask, use them.
4812         * symfile.h (build_section_addr_info_from_objfile): New prototype.
4813         (copy_section_addr_info): Remove.
4814
4815 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4816
4817         Signal unwinder for mips-irix N32.
4818         * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
4819         tramp-frame.h.
4820         (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
4821         (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
4822         (SIGCONTEXT_LO_OFF): New macros.
4823         (mips_irix_n32_tramp_frame_init): New function.
4824         (mips_irix_n32_tramp_frame): New static constant.
4825         (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
4826
4827 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4828
4829         Breakpoint in shared library does not work on mips-irix.
4830         * procfs.c: #include "observer.h".
4831         (procfs_inferior_created): New function, moving here the code
4832         which unsets the syssgi syscall-exit notifications.
4833         (procfs_create_inferior): Remove the code which unsets the syssgi
4834         syscall-exit notifications. It is too early to do this here.
4835         (_initialize_procfs): Attach the procfs_inferior_created observer.
4836
4837 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4838
4839         Wrong return convention for arrays (mips-irix).
4840         * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
4841         128 bits or smaller are returned the same way as structs
4842         and unions of the the same size.
4843
4844 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4845
4846         Cannot set the PC on mips-irix.
4847         * irix5-nat.c (fill_gregset): Check regno against the raw PC
4848         register number, no the cooked one.
4849
4850 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4851
4852         Error while loading core file on mips-irix.
4853         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
4854         if debugging from a core file.
4855
4856 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4857
4858         GDB hangs when attaching to process on mips-irix.
4859         * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
4860         attaching to a process.
4861
4862 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4863
4864         Use the correct breakpoint instruction on mips-irix.
4865         * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
4866         containing the correct breakpoint instruction to use on mips-irix.
4867         Use it when the osabi is GDB_OSABI_IRIX.
4868
4869 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4870
4871         -Wunused warning in procfs.c (mips-irix only).
4872         * procfs.c (gdb_praddset, gdb_prdelset): New macros.  Use them
4873         throughout instead of using praddset and prdelset respectively.
4874
4875 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4876
4877         GDB crash while stepping into function.
4878         * infrun.c (handle_inferior_event): Refetch the current frame
4879         after handling what.main_action, in case that pointer became
4880         dangling.
4881
4882 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
4883
4884         Fix build failure of solaris-hosted cross debuggers.
4885         * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
4886
4887 2010-01-09  Daniel Gutson  <dgutson@codesourcery.com>
4888
4889         Fix build failure on sparc-solaris.
4890         * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
4891
4892 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4893
4894         Move some symfile code into subroutines.
4895         * symfile.h (relative_addr_info_to_section_offsets)
4896         (addr_info_make_relative): New prototypes.
4897         * symfile.c (default_symfile_offsets): Move a part to ...
4898         (relative_addr_info_to_section_offsets): ... this new function.
4899         (default_symfile_offsets): Call it.
4900         (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
4901         this part to ...
4902         (addr_info_make_relative): ... this new function.
4903
4904 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4905
4906         Add from_tty to solib_create_inferior_hook.
4907         * infcmd.c (post_create_inferior): Move solib_add after
4908         solib_create_inferior_hook.  Pass from_tty to
4909         solib_create_inferior_hook.  Call solib_add and SOLIB_ADD with
4910         0 from_tty and comment why.
4911         * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
4912         * linux-nat.c (linux_child_follow_fork): Likewise.
4913         * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
4914         * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
4915         from_tty.
4916         * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
4917         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4918         * solib-null.c (null_solib_create_inferior_hook): Likewise.
4919         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4920         * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
4921         * solib-som.c (som_solib_create_inferior_hook): Likewise.
4922         * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
4923         Pass it to svr4_so_ops.solib_create_inferior_hook.
4924         * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
4925         from_tty.
4926         * solib-svr4.c (enable_break): New parameter from_tty.  Pass it to
4927         solib_add.
4928         (svr4_solib_create_inferior_hook): New parameter from_tty.  Pass it to
4929         enable_break.
4930         * solib-target.c (solib_target_solib_create_inferior_hook): New
4931         parameter from_tty.
4932         * solib.c (solib_create_inferior_hook): New parameter from_tty.  Pass
4933         it to ops->solib_create_inferior_hook.
4934         (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
4935         Move solib_add after solib_create_inferior_hook, call it now with
4936         from_tty as 0.  New comment there.
4937         * solib.h (solib_create_inferior_hook): New parameter from_tty.
4938         * solist.h (struct target_so_ops <solib_create_inferior_hook>):
4939         Likewise.
4940
4941 2010-01-08  Vladimir Prus  <vladimir@codesourcery.com>
4942
4943         Fix multiexec race.
4944         * infrun.c (handle_inferior_event): Use get_thread_regcache
4945         with events ptid, not get_current_regcache.
4946
4947 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
4948
4949         GDB crash with empty executable name (MinGW).
4950         * source.c (openp): Add assert that parameter string is not NULL.
4951         if parameter string is an empty string, then return with a failure
4952         immediately.
4953
4954 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
4955
4956         Get rid of support for VAX Floats.
4957         * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
4958         (ada_vax_float_print_function): Delete.
4959         * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
4960         (ada_vax_float_print_function): Delete.
4961         * ada-typeprint.c (print_vax_floating_point_type): Delete.
4962         (ada_print_type): Remove support for VAX floats.
4963         * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
4964
4965 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4966
4967         * stabsread.c (read_args): Handle zero arguments.
4968
4969 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
4970
4971         Cannot find in-tree libiconv.a after reconfigure.
4972         * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
4973         that we can use, then cache the path to this archive.
4974         * configure: Regenerate.
4975
4976 2010-01-07  Stan Shebs  <stan@codesourcery.com>
4977
4978         Make tracepoint operations go through target vector.
4979         * target.h (enum trace_find_type): New enum.
4980         (struct target_ops): New fields to_trace_init,
4981         to_download_tracepoint, to_download_trace_state_variable,
4982         to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
4983         to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
4984         to_set_disconnected_tracing.
4985         (target_trace_init): New macro.
4986         (target_download_tracepoint): New macro.
4987         (target_download_trace_state_variable): New macro.
4988         (target_trace_start): New macro.
4989         (target_trace_set_readonly_regions): New macro.
4990         (target_get_trace_status): New macro.
4991         (target_trace_stop): New macro.
4992         (target_trace_find): New macro.
4993         (target_get_trace_state_variable_value): New macro.
4994         (target_set_disconnected_tracing): New macro.
4995         * target.c (update_current_target): Inherit and set defaults for
4996         tracepoint operations.
4997         * tracepoint.c (default_collect): Make globally visible.
4998         (target_is_remote): Remove, along with all calls.
4999         (tvariables_info): Call target_get_trace_state_variable_value.
5000         (remote_set_transparent_ranges): Remove.
5001         (trace_start_command): Call target_trace_init,
5002         target_download_tracepoint, etc.
5003         (download_tracepoint): Remove.
5004         (trace_stop_command): Simplify.
5005         (stop_tracing): Call target_trace_stop.
5006         (get_trace_status): Call target_get_trace_status.
5007         (trace_status_command): Add case for targets that cannot trace.
5008         (finish_tfind_command): Change to take numerical arguments, call
5009         target_trace_find.
5010         (trace_find_command): Update call to finish_tfind_command.
5011         (trace_find_pc_command): Ditto.
5012         (trace_find_tracepoint_command): Ditto.
5013         (trace_find_line_command): Ditto.
5014         (trace_find_range_command): Ditto.
5015         (trace_find_outside_command): Ditto.
5016         (set_disconnected_tracing_value): Call
5017         target_set_disconnected_tracing.
5018         * remote.c: Add protocol encoding bits from tracepoint.c.
5019         (trace_error): Move from tracepoint.c.
5020         (remote_get_noisy_reply): Ditto.
5021         (free_actions_list_cleanup_wrapper): Ditto.
5022         (free_actions_list): Ditto.
5023         (remote_trace_init): New function.
5024         (remote_download_tracepoint): New function.
5025         (remote_download_trace_state_variable): New function.
5026         (remote_trace_set_readonly_regions): New function.
5027         (remote_trace_start): New function.
5028         (remote_get_trace_status): New function.
5029         (remote_trace_stop): New function.
5030         (remote_trace_find): New function.
5031         (remote_download_trace_state_variable): New function.
5032         (remote_set_disconnected_tracing): New function.
5033         (init_remote_ops): Add tracepoint operations.
5034
5035         * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
5036
5037 2010-01-07  Tristan Gingold  <gingold@adacore.com>
5038
5039         * symfile.c (build_section_addr_info_from_objfile): New function.
5040         (symbol_file_add_separate): Don't use offsets from objfile but
5041         built an addr info.
5042
5043 2010-01-06  Stan Shebs  <stan@codesourcery.com>
5044
5045         Support disconnected tracing.
5046         * infcmd.c (detach_command): Ask whether to stop tracing.
5047         * cli/cli-cmds.c (quit_command): Ditto.
5048         * breakpoint.h (struct breakpoint): New field number_on_target.
5049         * breakpoint.c (create_tracepoint_from_upload): New function.
5050         (get_tracepoint_by_number_on_target): New function.
5051         * remote.c (struct remote): New field disconnected_tracing.
5052         (remote_disconnected_tracing_feature): New function.
5053         (remote_protocol_features): Add DisconnectedTracing.
5054         (struct uploaded_tp): New struct.
5055         (uploaded_tps): New global.
5056         (get_uploaded_tp): New function.
5057         (find_matching_tracepoint): New function.
5058         (remote_get_tracing_state): New function.
5059         (remote_start_remote): Call it.
5060         * tracepoint.c (disconnected_tracing): New global.
5061         (trace_start_command): Initialize number_on_target.
5062         (stop_tracing): New function, split out from...
5063         (trace_stop_command): Call stop_tracing.
5064         (get_trace_status): New function, split out from...
5065         (trace_status_command): Call get_trace_status, add info on
5066         disconnection behavior.
5067         (disconnect_or_stop_tracing): New function.
5068         (finish_tfind_command): Translate from number on target.
5069         (trace_find_tracepoint_command): Translate to number on target.
5070         (send_disconnected_tracing_value): New function.
5071         (set_disconnected_tracing): New function.
5072         (_initialize_tracepoint): Add disconnected-tracing variable.
5073         * NEWS: Mention disconnected tracing.
5074
5075 2010-01-06  Tristan Gingold  <gingold@adacore.com>
5076
5077         * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
5078         parameter to main_objfile.  Iterate on all separate debug objfiles.
5079         * symfile.h (symbol_file_add_separate)
5080         (find_separate_debug_file_by_debuglink): Remove parameter names.
5081         * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
5082         (reread_symbols): Use free_objfile_separate_debug.
5083         * objfiles.h (struct objfile): Add separate_debug_objfile_link.
5084         Adjust comment.
5085         (objfile_separate_debug_iterate, add_separate_debug_objfile)
5086         (free_objfile_separate_debug): New prototypes.
5087         * objfiles.c (objfile_separate_debug_iterate): New function.
5088         (add_separate_debug_objfile, free_objfile_separate_debug): New
5089         functions.
5090         (free_objfile): Use free_objfile_separate_debug.  Adjust for
5091         multiple separate debug objfile.
5092         (objfile_has_symbols): Adjust comment.  Iterate on all separate
5093         debug objfiles.
5094         * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
5095         debug objfile.
5096         (lookup_minimal_symbol_text): Ditto.
5097         (lookup_minimal_symbol_by_pc_name): Ditto.
5098         (lookup_minimal_symbol_solib_trampoline): Ditto.
5099         (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
5100         debug objfiles.
5101
5102 2010-01-05  Stan Shebs  <stan@codesourcery.com>
5103
5104         Add fast tracepoints.
5105         * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
5106         * arch-utils.c (default_fast_tracepoint_valid_at): New function.
5107         * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
5108         * breakpoint.c (tracepoint_type): New function.
5109         (ALL_TRACEPOINTS): Use it.
5110         (should_be_inserted): Ditto.
5111         (bpstat_check_location): Ditto.
5112         (print_one_breakpoint_location): Ditto.
5113         (user_settable_breakpoint): Ditto.
5114         (set_breakpoint_location_function): Ditto.
5115         (disable_breakpoints_in_shlibs): Ditto.
5116         (delete_trace_command): Ditto.
5117         (print_it_typical): Add bp_fast_tracepoint case.
5118         (bpstat_what): Ditto.
5119         (print_one_breakpoint_location): Ditto.
5120         (allocate_bp_location): Ditto.
5121         (mention): Ditto.
5122         (breakpoint_re_set_one): Ditto.
5123         (disable_command): Ditto.
5124         (enable_command): Ditto.
5125         (check_fast_tracepoint_sals): New function.
5126         (break_command_really): Call it.
5127         (ftrace_command): New function.
5128         (_initialize_breakpoint): Add ftrace command.
5129         * gdbarch.sh (fast_tracepoint_valid_at): New.
5130         * gdbarch.h, gdbarch.c: Regenerate.
5131         * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
5132         (i386_gdbarch_init): Use it.
5133         * remote.c (struct remote_state): New field fast_tracepoints.
5134         (PACKET_FastTracepoints): New packet config type.
5135         (remote_fast_tracepoint_feature): New function.
5136         (remote_protocol_features): Add FastTracepoints.
5137         (remote_supports_fast_tracepoints): New function.
5138         (_initialize_remote): Add FastTracepoints.
5139         * tracepoint.c (download_tracepoint): Add fast tracepoint option.
5140         * NEWS: Mention fast tracepoints.
5141
5142 2010-01-06  Joel Brobecker  <brobecker@adacore.com>
5143
5144         * gdb-gdb.py: New file.
5145
5146 2010-01-05  Michael Snyder  <msnyder@vmware.com>
5147
5148         * infrun.c (handle_inferior_event): Fix typo in comment.
5149
5150 2010-01-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
5151
5152         * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
5153
5154 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
5155
5156         * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
5157         and s390x-linux64.
5158         (s390-linux32-expedite): Define.
5159         (s390-linux64-expedite): Define.
5160         (s390x-linux64-expedite): Define.
5161         * features/s390-acr.xml: New file.
5162         * features/s390-fpr.xml: New file.
5163         * features/s390-core32.xml: New file.
5164         * features/s390-core64.xml: New file.
5165         * features/s390x-core64.xml: New file.
5166         * features/s390-linux32.xml: New file.
5167         * features/s390-linux64.xml: New file.
5168         * features/s390x-linux64.xml: New file.
5169         * features/s390-linux32.c: New generated file.
5170         * features/s390-linux64.c: New generated file.
5171         * features/s390x-linux64.c: New generated file.
5172
5173         * regformats/s390-linux32.dat: New generated file.
5174         * regformats/s390-linux64.dat: New generated file.
5175         * regformats/s390x-linux64.dat: New generated file.
5176         * regformats/reg-s390.dat: Remove.
5177         * regformats/reg-s390x.dat: Remove.
5178
5179         * s390-nat.c: Include "auxv.h" and <elf.h>.
5180         (HWCAP_S390_HIGH_GPRS): Define if undefined.
5181         (s390_target_wordsize): New function.
5182         (s390_auxv_parse): Likewise.
5183         (s390_get_hwcap): Likewise.
5184         (s390_read_description): Likewise.
5185         (_initialize_s390_nat): Install s390_auxv_parse and
5186         s390_read_description.
5187
5188         * s390-tdep.c: Include "features/s390-linux32.c",
5189         "features/s390-linux64.c", and "features/s390x-linux64.c".
5190         (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
5191         (s390_register_call_saved): New function.
5192         (s390_register_name): Remove.
5193         (s390_register_type): Remove.
5194         (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
5195         (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
5196         (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
5197         (s390_pseudo_register_name): New function.
5198         (s390_pseudo_register_type): New function.
5199         (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
5200         Handle full GPR pesudos and varying pseudo register numbers.
5201         (s390_pseudo_register_write): Likewise
5202         (s390x_pseudo_register_read): Remove.
5203         (s390x_pseudo_register_write): Likewise.
5204         (s390_register_group): Remove.
5205         (s390_pseudo_register_group): New function.
5206         (s390_regmap_gregset): Add GPR upper halves.
5207         (s390x_regmap_gregset): Likewise.
5208         (s390_regmap_fpregset): Likewise.
5209         (s390_regmap_upper): New global variable.
5210         (s390_upper_regset): New global variable.
5211         (s390_upper_regset_sections): New global variable.
5212         (s390_regset_from_core_section): Handle GPR upper halves.
5213         (s390_core_read_description): New function.
5214         (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
5215         register information.  Handle varying pseudo register numbers.
5216         (s390_backchain_frame_unwind_cache): Likewise.
5217         (s390_frame_prev_register): Unwind full GPRs to show lower halves.
5218         (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
5219         (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
5220         PC and CC pseudos.  Unwind upper halves and full GPRs as appropriate.
5221         Handle varying pseudo register numbers.
5222         (s390_unwind_pc): Handle varying pseudo register numbers.
5223         (s390_dwarf2_prev_register): New function.
5224         (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
5225         register information.  Handle varying pseudo register numbers.
5226         Install s390_dwarf2_prev_register to unwind full GPRs.
5227         (s390_gdbarch_init): Handle target descriptions.  Assign varying
5228         pseudo register numbers.  Install s390_adjust_frame_regnum.
5229         (_initialize_s390_tdep): Initialize target descriptions.
5230
5231         * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
5232         (S390_NUM_REGS): Redefine to include upper half registers.
5233         (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
5234         (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
5235         (tdesc_s390_linux32): Add declaration.
5236         (tdesc_s390_linux64): Likewise.
5237         (tdesc_s390x_linux64): Likewise.
5238
5239 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
5240
5241         * regset.h (struct core_regset_section): Add HUMAN_NAME.
5242         * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
5243         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
5244         (ppc_linux_vmx_regset_sections): Likewise.
5245         (ppc_linux_fp_regset_sections): Likewise.
5246
5247         * corelow.c (get_core_register_section): Constify arguments.
5248         (get_core_registers): Use gdbarch_core_regset_sections instead
5249         of hard-coded platform-specific register section names.
5250
5251 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
5252
5253         * dwarf2loc.c (read_pieced_value): If a piece occupies part of
5254         a register, assume the least-significant part is used.
5255         (write_pieced_value): Likewise.
5256
5257 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
5258
5259         * printcmd.c: Include "arch-utils.h".
5260         (do_one_display): Re-parse expression if current architecture changed.
5261
5262 2010-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5263             Joel Brobecker  <brobecker@adacore.com>
5264
5265         * gdbtypes.c (check_typedef): New comment on type length.
5266         * value.c (allocate_value_lazy): Remove the unused atype variable.  New
5267         comment on type length.
5268         (value_primitive_field): Keep the original TYPE value, new comment.
5269
5270 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5271
5272         * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
5273         p_start.  Change != comparisons to > and < comparisons.
5274
5275 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5276
5277         * cli/cli-script.c (process_next_line): Check P2 overrun.
5278
5279 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
5280
5281         Update the copyright hearder to add year 2010 for most GDB files.
5282
5283 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
5284
5285         Fix build failure in inf-ptrace.c.
5286         * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
5287
5288 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
5289
5290         * top.c (print_gdb_version): Update copyright year.
5291
5292 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
5293
5294         Fix break *FUN'address thread NUM.
5295         * ada-lex.l (task): Expand rule to also match the thread keyword.
5296
5297 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
5298
5299         Fix break *FUN'address task NUM.
5300         * ada-lex.l (task): New rule.
5301         * ada-lang.c (valid_task_id): Make sure the Ada task list has
5302         been built before using it.
5303
5304 For older changes see ChangeLog-2009.
5305 \f
5306 Local Variables:
5307 mode: change-log
5308 left-margin: 8
5309 fill-column: 74
5310 version-control: never
5311 coding: utf-8
5312 End: