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