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