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