OSDN Git Service

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