Stay compatible after the GCC PR fortran/29635 fix.
[external/binutils.git] / gdb / ChangeLog
1 2008-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2
3         Stay compatible after the GCC PR fortran/29635 fix.
4         * dwarf2read.c (process_die <DW_TAG_imported_module>)
5         (process_die <DW_TAG_imported_module>): Do not assert anything about
6         these unsupported tags.
7
8 2008-08-29  Tom Tromey  <tromey@redhat.com>
9
10         * maint.c (_initialize_maint_cmds): Fix typo.
11
12 2008-08-29  Tom Tromey  <tromey@redhat.com>
13
14         * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
15         obstack.
16
17 2008-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
18
19         * remote.c: Include "gdb_stat.h".
20
21 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
22
23         * dummy-frame.h (dummy_frame_pop): Add prototype.
24         * dummy-frame.c: Include "observer.h".
25         (dummy_frame_push): Do not check for stale frames.
26         (dummy_frame_pop): New function.
27         (cleanup_dummy_frames): New function.
28         (_initialize_dummy_frame): Install it as inferior_created observer.
29
30         * frame.h (struct frame_id): Update comments.
31         (frame_id_inner): Remove prototype.
32         * frame.c (frame_id_inner): Make static.  Add comments.
33         (frame_find_by_id): Update frame_id_inner safety net check to avoid
34         false positives for targets using non-contiguous stack ranges.
35         (get_prev_frame_1): Update frame_id_inner safety net check.
36         (frame_pop): Call dummy_frame_pop when popping a dummy frame.
37
38         * stack.c (return_command): Directly pop the selected frame.
39         * infrun.c (handle_inferior_event): Remove dead code.
40         * i386-tdep.c (i386_push_dummy_call): Update comment.
41
42 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
43
44         * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
45         breakpoint from shared library.
46
47 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
48
49         * solib-svr4.c (read_program_header): New function.
50         (scan_dyntag_auxv): New function.
51         (elf_locate_base): Use it if scan_dyntag fails.
52         (find_program_interpreter): New function.
53         (enable_break): Use it instead of .interp section.
54
55 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
56
57         * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
58         * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
59         remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
60         remote_bfd_open): New functions.
61         (remote_hostio_send_command): Fail safely if remote connection
62         is not set up.
63
64         * solist.h (solib_open): Remove prototype.
65         (solib_bfd_open): Add prototype.
66         * solib.c: Include "remote.h".
67         (solib_open): Remove, replace by ...
68         (solib_bfd_open): ... this new function.  Handle remote BFDs.
69         (solib_map_sections): Replace solib_open by solib_bfd_open.
70         * solib-frv.c: Include "exceptions.h".
71         (enable_break2): Replace solib_open by solib_bfd_open.
72         * solib-svr4.c: Include "exceptions.h".
73         (enable_break): Replace solib_open by solib_bfd_open.
74
75         * symfile.c: Include "remote.h".
76         (build_id_verify): Handle remote BFDs.
77         (separate_debug_file_exists): Use BFD to access file.  Handle
78         remote BFDs.
79         (symfile_bfd_open): Handle remote BFDs.
80         (reread_symbols): Handle remote BFDs.
81
82         * NEWS: Mention "remote:" argument prefix to "set sysroot".
83
84 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
85
86         * gdbarch.sh (target_gdbarch): New global variable.
87         (deprecated_current_gdbarch_select_hack): Set it.
88         * gdbarch.c, gdbarch.h: Regenerate.
89
90         * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
91         of current_gdbarch.
92         * target-descriptions.c (target_find_description): Likewise.
93         * arm-tdep.c (arm_update_current_architecture): Likewise.
94         (show_fp_model, arm_show_abi, arm_show_fallback_mode, 
95         arm_show_force_mode): Likewise.
96         * mips-tdep.c (show_mask_address, show_mipsfpu_command,
97         show_mips_abi): Likewise.
98         * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
99
100         * target.c (target_translate_tls_address): Use target_gdbarch
101         instead of current_gdbarch.
102         * remote.c (struct packet_reg): Likewise.
103         (get_remote_arch_state, packet_reg_from_regnum,
104         packet_reg_from_pnum, remote_check_symbols, remote_wait,
105         remote_address_masked, remote_insert_breakpoint,
106         remote_insert_hw_breakpoint, remote_read_description): Likewise.
107         * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
108         * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
109         * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
110
111         * solib.c (solib_open, solib_map_sections, solib_read_symbols,
112         solib_add, info_sharedlibrary_command, solib_address, 
113         solib_create_inferior_hook, in_solib_dynsym_resolve_code,
114         solib_global_lookup): Likewise.
115         * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
116         * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
117         Likewise.
118         * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
119         * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
120         set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
121         Likewise.
122         * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
123         nto_truncate_ptr): Likewise.
124         * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
125
126 2008-08-26  Luis Machado  <luisgpm@br.ibm.com>
127
128         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
129         (ppc_linux_vmx_regset_sections): New structure.
130         (ppc_linux_fp_regset_sections): New structure.
131         (ppc_linux_init_abi): Select core-file regset  based on target
132         features.
133
134 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
135
136         * target.c (debug_print_register): Use regcache_raw_collect
137         instead of regcache_cooked_read.  Only handle raw registers.
138
139 2008-08-25  Pedro Alves  <pedro@codesourcery.com>
140
141         * cp-name-parser.y: Include config.h before system headers.
142
143 2008-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
144
145         * m88k-tdep.c: Update for unwinder changes.
146
147 2008-08-24  Tom Tromey  <tromey@redhat.com>
148
149         * s390-tdep.c (s390_address_class_type_flags): Use
150         TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
151         (s390_address_class_type_flags_to_name): Likewise.
152         (s390_address_class_name_to_type_flags): Likewise.
153
154 2008-08-24  Tom Tromey  <tromey@redhat.com>
155
156         * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
157         TYPE_FLAGS.
158         * features/rs6000/powerpc-vsx32l.c
159         (initialize_tdesc_powerpc_vsx32l): Update.
160         * features/rs6000/powerpc-vsx32.c
161         (initialize_tdesc_powerpc_vsx32): Update.
162         * features/rs6000/powerpc-vsx64.c
163         (initialize_tdesc_powerpc_vsx64): Update.
164         * features/rs6000/powerpc-vsx64l.c
165         (initialize_tdesc_powerpc_vsx64l): Update.
166         * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
167         TYPE_VECTOR, not TYPE_FLAGS.
168
169 2008-08-24  Tom Tromey  <tromey@redhat.com>
170
171         * xml-tdesc.c (tdesc_end_union): Update.
172         * stabsread.c (define_symbol): Update.
173         (read_type): Update.
174         (read_struct_type): Update.
175         (read_enum_type): Update.
176         * spu-tdep.c (spu_builtin_type_vec128): Update.
177         * sh-tdep.c (sh_push_dummy_call_fpu): Update.
178         (sh_push_dummy_call_nofpu): Update.
179         * mdebugread.c (parse_symbol): Update.
180         (parse_symbol): Update.
181         (parse_symbol): Update.
182         (upgrade_type): Update.
183         * jv-lang.c (java_lookup_class): Update.
184         * iq2000-tdep.c (iq2000_pointer_to_address): Update.
185         * i386-tdep.c (i386_mmx_type): Update.
186         (i386_sse_type): Update.
187         * gdbtypes.h (enum type_flag_value): New enum.
188         (enum type_instance_flag_value): New enum.
189         (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
190         TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
191         TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
192         TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
193         TYPE_FLAG_NOTTEXT): Now enum constants.
194         (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
195         TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
196         TYPE_FLAG_ADDRESS_CLASS_2): Remove.
197         (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
198         TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
199         TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
200         TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
201         (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
202         TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
203         TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
204         TYPE_NOTTEXT): Update.
205         (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
206         (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
207         (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
208         TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
209         TYPE_ADDRESS_CLASS_ALL): Update.
210         (struct main_type) <flags>: Remove.
211         <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
212         flag_static, flag_prototyped, flag_incomplete, flag_varargs,
213         flag_vector, flag_stub_supported, flag_nottext,
214         flag_fixed_instance>: New fields.
215         <nfields, vptr_fieldno>: Move earlier.
216         (TYPE_FLAGS): Remove.
217         * gdbtypes.c (make_pointer_type): Update.
218         (address_space_name_to_int): Update.
219         (address_space_int_to_name): Update.
220         (make_type_with_address_space): Update.
221         (make_cv_type): Update.
222         (create_range_type): Update.
223         (get_discrete_bounds): Update.
224         (create_set_type): Update.
225         (make_vector_type): Update.
226         (smash_to_method_type): Update.
227         (check_typedef): Update.
228         (check_stub_method): Update.
229         (init_type): Individually assign flag fields.
230         (recursive_dump_type): Don't print entire TYPE_FLAGS field.  Do
231         print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
232         (copy_type_recursive): Copy the entire main type.  Don't use
233         TYPE_FLAGS.
234         * features/rs6000/powerpc-altivec64l.c
235         (initialize_tdesc_powerpc_altivec64l): Update.
236         * features/rs6000/powerpc-altivec64.c
237         (initialize_tdesc_powerpc_altivec64): Update.
238         * features/rs6000/powerpc-altivec32l.c
239         (initialize_tdesc_powerpc_altivec32l): Update.
240         * features/rs6000/powerpc-altivec32.c
241         (initialize_tdesc_powerpc_altivec32): Update.
242         * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
243         Update.
244         * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
245         Update.
246         * dwarf2read.c (read_structure_type): Update.
247         (read_enumeration_type): Likewise.
248         (process_enumeration_scope): Likewise.
249         (read_tag_pointer_type): Likewise.
250         (read_subroutine_type): Likewise.
251         (read_subroutine_type): Likewise.
252         (read_base_type): Likewise.
253         * coffread.c (coff_read_enum_type): Update.
254         * ada-valprint.c (adjust_type_signedness): Update.
255         * ada-typeprint.c (print_record_field_types): Update.
256         * ada-lang.c (packed_array_type): Update.
257         (empty_record): Don't reset TYPE_FLAGS.
258         (ada_template_to_fixed_record_type_1): Update.
259         (ada_template_to_fixed_record_type_1): Likewise.
260         (template_to_static_fixed_type): Likewise.
261         (to_record_with_fixed_variant_part): Likewise.
262         (to_fixed_record_type): Likewise.
263         (to_fixed_array_type): Likewise.
264         (to_static_fixed_type): Likewise.
265
266 2008-08-23  Jim Blandy  <jimb@redhat.com>
267
268         PR macros/607:
269         * symmisc.c (print_symbol_bcache_statistics): Include statistics
270         for the macro bcache.
271
272 2008-08-23  Tom Tromey  <tromey@redhat.com>
273
274         * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
275         (argc): Now 31 bits.
276
277 2008-08-22  Tom Tromey  <tromey@redhat.com>
278
279         * NEWS: Move macro entries back under "New commands".
280
281 2008-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
282
283         * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
284         (create_overlay_event_breakpoint_1): ... this.  Add OBJFILE parameter.
285         (create_overlay_event_breakpoint): Loop over all objfiles to install
286         multiple instances of the overlay event breakpoint if present.
287
288 2008-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
289
290         * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
291         (info_spu_event_command): Command only supported on SPU architecture.
292         (info_spu_signal_command): Likewise.
293         (info_spu_mailbox_command): Likewise.
294         (info_spu_dma_command): Likewise.
295         (info_spu_proxydma_command): Likewise.
296
297 2008-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
298
299         * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
300         if the thread has already exited.
301
302 2008-08-22  Pedro Alves  <pedro@codesourcery.com>
303
304         * infrun.c (proceed): Move back setting previous_inferior_ptid
305         from here ...
306         (wait_for_inferior): ... to here.
307         (fetch_inferior_event): ... and here.
308
309 2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
310
311         * gdbarch.sh: Include "regcache.h" into gdbarch.c.
312         (deprecated_current_gdbarch_select_hack): Call registers_changed
313         instead of reinit_frame_cache.
314         * gdbarch.c: Regenerate.
315
316 2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
317
318         * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
319
320 2008-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
321
322         * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
323
324 2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
325
326         * findvar.c (locate_var_value): Do not call get_frame_arch
327         with a NULL frame argument.
328
329 2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
330
331         * frame.h (frame_map_regnum_to_name): Remove prototype.
332         (frame_map_name_to_regnum): Remove prototype.
333         * frame.c (frame_map_regnum_to_name): Remove.
334         (frame_map_name_to_regnum): Remove.
335         (frame_unwind_register_value): Use user_reg_map_regnum_to_name
336         instead of frame_map_regnum_to_name.
337         * ax-gdb.c: Include "user-regs.h".
338         (gen_expr): Use user_reg_map_name_to_regnum instead of
339         frame_map_name_to_regnum.
340         * eval.c:  Include "user-regs.h".
341         (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
342         instead of frame_map_name_to_regnum.
343         * infcmd.c (registers_info): Likewise.
344         * parse.c: Include "user-regs.h".
345         (write_dollar_variable): Use user_reg_map_name_to_regnum
346         instead of frame_map_name_to_regnum.
347         * tracepoint.c: Include "user-regs.h".
348         (encode_actions): Use user_reg_map_name_to_regnum
349         instead of frame_map_name_to_regnum.
350         * valops.c: Include "user-regs.h".
351         (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
352         of frame_map_regnum_to_name.
353
354 2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
355
356         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
357         and manually relocate .opd contents from BFD instead of reading
358         them from target memory.
359
360 2008-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
361
362         * dwarf2read.c (processing_current_prefix): Delete static
363         variable.
364         (process_full_comp_unit): Do not set processing_current_prefix.
365         (dwarf2_full_name): New function.
366         (read_func_scope): Do not set processing_current_prefix.  Use
367         determine_prefix.
368         (read_structure_type): Do not set processing_current_prefix.  Remove
369         unused inner cleanup.
370         (process_structure_scope): Do not set processing_current_prefix.
371         (read_enumeration_type): Use dwarf2_full_name.
372         (determine_class_name): Return a const char *.  Put the result
373         on the objfile obstack.  Use dwarf2_full_name.
374         (read_namespace_type): New function.
375         (read_namespace): Do not create the type here.  Use
376         determine_prefix.
377         (read_typedef): Use dwarf2_full_name.  Do not pass the name
378         to init_type.
379         (read_base_type): Do not pass the name to init_type.  Handle
380         TYPE_FLAG_NOSIGN.
381         (read_unspecified_type): Do not pass the name to init_type.
382         (new_symbol): Use dwarf2_full_name instead of
383         processing_current_prefix.
384         (read_type_die): Do not set processing_current_prefix.  Handle
385         DW_TAG_namespace.
386         (determine_prefix): Handle specifications.  Return the result
387         on the objfile obstack.  Handle unions correctly.
388
389 2008-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
390
391         * buildsym.c (add_symbol_to_list): Do not call
392         cp_scan_for_anonymous_namespaces here.
393         (finish_block): Do not call cp_set_block_scope here.
394         * cp-namespace.c (processing_has_namespace_info)
395         (processing_current_prefix): Delete.
396         (cp_initialize_namespace): Do not initialize
397         processing_has_namespace_info.
398         (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME.  Do
399         not check processing_has_namespace_info.
400         (cp_set_block_scope): Take prefix and namespace info flag as
401         arguments.  Honor namespaces regardless of a demangled name.
402         * cp-support.h (processing_has_namespace_info)
403         (processing_current_prefix): Delete declarations.
404         (cp_set_block_scope): Update prototype.
405         * dwarf2read.c (processing_has_namespace_info)
406         (processing_current_prefix): New static variables.
407         (read_file_scope): Initialize processing_has_namespace_info.
408         (read_func_scope): Call cp_set_block_scope for C++.
409         (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
410         * symtab.c (symbol_demangled_name): Accept a const argument.
411         * symtab.h (symbol_demangled_name): Update prototype.
412
413 2008-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
414
415         * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
416         * blockframe.c (find_pc_partial_function): Likewise.
417         * buildsym.c (find_symbol_in_list): Likewise.
418         * c-valprint.c (c_val_print): Likewise.
419         * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
420         (coff_read_enum_type): Likewise.  Use SYMBOL_SET_LINKAGE_NAME.
421         * cp-support.c (cp_remove_params): Renamed from remove_params and
422         made global.
423         (overload_list_add_symbol): Update call to remove_params.
424         * cp-support.h (cp_remove_params): Declare.
425         * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
426         (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
427         * expprint.c (dump_subexp_body_standard): Likewise.
428         * f-valprint.c (info_common_command, there_is_a_visible_common_named):
429         Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
430         for messages.
431         * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
432         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
433         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
434         (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
435         symbols and SYMBOL_PRINT_NAME for messages.
436         * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
437         * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
438         * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
439         SYMBOL_SET_LINKAGE_NAME.
440         (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
441         * minsyms.c (add_minsym_to_demangled_hash_table): Use
442         SYMBOL_SEARCH_NAME.
443         (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
444         SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
445         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
446         * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
447         (address_info): Use SYMBOL_PRINT_NAME for messages and
448         SYMBOL_LINKAGE_NAME for lookups.
449         * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
450         * stabsread.c (patch_block_stabs, define_symbol)
451         (read_type, read_enum_type, common_block_end)
452         (cleanup_undefined_types_1, scan_file_globals): Use
453         SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
454         and SYMBOL_PRINT_NAME.
455         * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
456         (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output.  Use
457         cp_remove_params instead of cplus_demangle.
458         (print_block_frame_labels, print_frame_arg_vars): Use
459         SYMBOL_LINKAGE_NAME.
460         * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
461         SYMBOL_LINKAGE_NAME.
462         (dump_symtab_1, print_symbol, print_partial_symbols)
463         (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
464         * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
465         (SYMBOL_SET_LINKAGE_NAME): New.
466         (SYMBOL_SET_NAMES): Add a comment.
467         * tracepoint.c (set_traceframe_context, validate_actionline)
468         (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
469         lookups and SYMBOL_PRINT_NAME for output.
470         * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
471         * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
472
473 2008-08-21  Pedro Alves  <pedro@codesourcery.com>
474
475         * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
476         * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
477         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
478         obj_section_addr and obj_section_endaddr.
479         * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
480         * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
481         * ia64-tdep.c (ia64_find_global_pointer): Likewise.
482         (find_extant_func_descr): Likewise.
483         * solib-frv.c (frv_relocate_main_executable): Use
484         obj_section_addr.
485         * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
486         obj_section_addr and obj_section_endaddr.
487
488 2008-08-21  Paul N. Hilfinger  <hilfinger@adacore.com>
489
490         * NEWS: Amplify last entry on boolean types in Ada.
491
492 2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
493
494         * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
495         Make the dwarf2_cu * parameter output as well as input.  Update it if
496         we follow a reference to another CU.
497         (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
498         (die_type, die_containing_type): Update calls to changed functions.
499         Use the returned CU along with the returned DIE.
500         (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
501
502 2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
503
504         * dwarf2read.c (queue_comp_unit): Take an objfile argument.  Read
505         in the DIEs here.
506         (process_queue): Do not read in the DIEs here.
507         (psymtab_to_symtab_1): Update call to queue_comp_unit.
508         (read_full_die): Do not call queue_comp_unit from here.
509         (maybe_queue_comp_unit): New function.
510         (follow_die_ref): Use it.
511
512 2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
513
514         * dwarf2read.c (struct attribute): Move earlier.
515         (struct die_info): Change attrs to a trailing array.
516         (dwarf_alloc_die): Take the number of attributes.  Allocate space
517         for them.
518         (read_full_die): Update call to dwarf_alloc_die.  Do not manually
519         allocate attributes.
520
521 2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
522
523         * dwarf2read.c (REF_HASH_SIZE): Delete.
524         (struct dwarf2_cu): Replace die_ref_table with die_hash.
525         (struct die_info): Remove next_ref.
526         (store_in_ref_table): Remove offset argument.  Rewrite to use
527         htab_find_slot_with_hash.
528         (die_hash, die_eq): New.
529         (read_comp_unit): Allocate the die_hash.
530         (read_die_and_children): Update call to store_die_ref.
531         (follow_die_ref): Rewrite to use htab_find_with_hash.
532
533 2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
534
535         * dwarf2read.c (free_die_list, copy_die): Delete.
536         (dwarf_alloc_die): Take a CU argument.  Allocate the new DIE
537         on the obstack.
538         (read_full_die): Update call to dwarf_alloc_die.  Allocate
539         attributes on the CU obstack.
540         (free_one_comp_unit): Do not call free_die_list.
541
542 2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
543
544         * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
545         (read_die_and_siblings): Likewise.  Do not add padding DIEs to the
546         sibling list.
547         (read_full_die): Do not allocate DIEs for abbrev 0.
548         (follow_die_ref): Correct error message.
549
550 2008-08-20  Pedro Alves  <pedro@codesourcery.com>
551
552         * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
553         there are no symbols loaded, instead of throwing a generic error.
554         (decode_variable): Likewise.
555
556 2008-08-20  Pedro Alves  <pedro@codesourcery.com>
557
558         * objfiles.h (struct obj_section): Remove addr and endaddr fields.
559         (obj_section_offset, obj_section_addr, obj_section_endaddr): New
560         macros.
561         * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
562         and offset.  Use size_t instead of unsigned long.
563         (build_objfile_section_table): Use size_t instead of unsigned
564         long.
565         (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
566         gone.
567         (find_pc_sect_section): Use obj_section_addr and
568         obj_section_endaddr.
569         * symfile.c (symfile.c): Remove code that maps sections
570         offsets in "addr" to the object's sections.
571         * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
572         * gcore.c (gcore_create_callback): Use obj_section_addr and
573         obj_section_endaddr.
574         * maint.c (print_objfile_section_info): Likewise.
575         * printcmd.c (sym_info): Use obj_section_addr and
576         obj_section_endaddr.
577         * symtab.c (fixup_section): Likewise.
578
579 2008-08-20  Mark Kettenis  <kettenis@gnu.org>
580
581         * sparc-tdep.c: Make some comments catch up with reality.
582
583 2008-08-20  Vladimir Prus  <vladimir@codesourcery.com>
584
585         * NEWS: Mention 'set target-async'
586
587 2008-08-19  Vladimir Prus  <vladimir@codesourcery.com>
588
589         * infrun.c (resume): If the thread is placed to the deferred step
590         queue, mark it as running.
591
592 2008-08-19  Vladimir Prus  <vladimir@codesourcery.com>
593
594         Make sure target supports non-stop.
595         * infcmd.c (run_command_1, attach_command): If non-stop mode
596         is requested, verify the target supports it.
597         * linux-nat.c (linux_nat_supports_non_stop): New.
598         (linux_nat_add_target): Register the above.
599         * target.c (find_default_supports_non_stop)
600         (target_supports_non_stop): New.
601         (init_dummy_target): Register find_default_supports_non_stop.
602         * target.h (struct target_ops): New field to_supports_non_stop.
603         (target_supports_non_stop): New.
604
605 2008-08-19  Pedro Alves  <pedro@codesourcery.com>
606             Vladimir Prus  <vladimir@codesourcery.com>
607
608         * target.c (target_async_permitted, target_async_permitted_1)
609         (set_maintenance_target_async_permitted)
610         (show_maintenance_target_async_permitted): New.
611         (initialize_targets): Register 'set target-async'.
612         * target.h (target_async_permitted): Declare.
613         * linux-nat.c (linux_nat_async_enabled)
614         (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
615         (show_maintenance_linux_async_permitted): Remove.
616         (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
617         (get_pending_events, linux_nat_async): Use target_async_permitted.
618         (linux_nat_set_async_mode): Remove, moving the only used bits
619         into...
620         (linux_nat_setup_async): This.
621         (_initialize_linux_nat): Do not register 'maint set linux-async'.
622         Use linux_nat_setup_async.
623         * remote.c (remote_async_permitted, remote_async_permitted_set)
624         (set_maintenance_remote_async_permitted)
625         (show_maintenance_remote_async_permitted): Remove.
626         (remote_open_1, remote_terminal_inferior, remote_can_async_p)
627         (remote_is_async_p): Use target_async_permitted.
628         (_initialize_remote): Don't register 'main set remote-async'.
629         * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
630         * mi/mi-cmds.h (mi_cmd_list_target_features): New.
631         * mi/mi-main.c (mi_cmd_list_target_features): New.
632
633 2008-08-19  Vladimir Prus  <vladimir@codesourcery.com>
634
635         * target.c (maybe_kill_then_attach)
636         (maybe_kill_then_create_inferior): Remove.
637         (update_current_target): Do not default to_attach,
638         to_create_inferiour, to_is_async_p.
639
640 2008-08-19  Paul N. Hilfinger  <hilfinger@adacore.com>
641         
642         Changes for supporting boolean types in debugging data.
643         * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change 
644         API to return LONGEST values rather than struct values.
645         (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
646         and discrete_type_high_bound.
647         (to_fixed_range_type): Create a range type in cases where 
648         argument is base type and its limits are representable as ints.
649         (ada_is_modular_type): Correct so that base type must be integral.
650         * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false' 
651         keywords when they appear alone, since we are phasing out 
652         direct representation of these identifiers in debugging data.
653         * ada-exp.y: Define 'true' and 'false' as primaries.
654         (type_boolean): New function.
655         (type_int,type_long,type_long_long,type_floattype_double)
656         (type_long_double): Remove uses of current_gdbarch for consistency
657         with type_boolean.
658         (write_int): Change comment to indicate that it might write boolean 
659         constant as well.
660         * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
661         type, since will no longer be represented as enumerated type in 
662         debugging data.
663         * ada-valprint.c (print_optional_low_bound): Handle boolean case
664         as well.
665         * NEWS: Note support boolean types.
666         
667 2008-08-18  Pedro Alves  <pedro@codesourcery.com>
668
669         * bsd-uthread.c (bsd_uthread_close): New.
670         (bsd_uthread_deactivate): Don't cleanup here, just unpush the
671         target.
672         (bsd_uthread_solib_loaded): Fix typo.
673         (bsd_uthread_target): Register bsd_uthread_close.
674
675 2008-08-18  Pedro Alves  <pedro@codesourcery.com>
676
677         * corelow.c (core_open): Assume there was no upper layer left
678         behind from a previous inferior.
679         * target.c (pop_all_targets): Rename to ...
680         (pop_all_targets_above): ... this.  Add a target stratum
681         parameter.  Use it instead of hardcoding the dummy_stratum.
682         (pop_all_targets): New, defer to pop_all_targets_above.
683         (target_preopen): Use pop_all_targets_above.
684         * target.h (pop_all_targets_above): Declare.
685
686 2008-08-18  Pedro Alves  <pedro@codesourcery.com>
687
688         * gdbthread.h (thread_change_ptid): Declare.
689         * infrun.c (infrun_thread_ptid_changed): New.
690         (_initialize_infrun): Attach infrun_thread_ptid_changed to the
691         thread_ptid_changed observer.
692         * regcache.c (regcache_thread_ptid_changed): New.
693         (_initialize_regcache): Attach regcache_thread_ptid_changed to the
694         thread_ptid_changed observer.
695         * thread.c (thread_change_ptid): New.
696
697 2008-08-18  Tom Tromey  <tromey@redhat.com>
698
699         * symfile.c (reread_symbols): Update.
700         * solib-sunos.c (allocate_rt_common_objfile): Update.
701         * objfiles.c (allocate_objfile): Update.
702         * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
703         Remove.
704
705 2008-08-18  Tom Tromey  <tromey@redhat.com>
706
707         * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
708         obstack.
709
710 2008-08-18  Daniel Jacobowitz  <dan@codesourcery.com>
711
712         * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
713         lr_register.
714         (rs6000_in_function_epilogue_p): Check for bctr.
715         (skip_prologue): Initialize lr_register.  Set lr_reg to a register
716         number.  Set gpr_mask and used_bl.  Continue scanning while some
717         expected registers are not saved.  Set lr_register if LR is not
718         stored.
719         (rs6000_frame_cache): Handle gpr_mask and lr_register.
720
721 2008-08-17  Tom Tromey  <tromey@redhat.com>
722
723         PR gdb/1535:
724         * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
725         (ep_find_event_name_end): Remove.
726         (catch_fork_temporary, catch_vfork_temporary,
727         catch_fork_permanent, catch_vfork_permanent): New constants.
728         (catch_vfork, catch_fork): Remove.
729         (catch_fork_command_1): Add 'command' argument.  Remove
730         'fork_kind' and 'tempflag'.  Handle NULL 'arg'.  Update switch for
731         all cases.
732         (catch_exec_command_1): Add 'command' argument; remove
733         'tempflag'.  Handle NULL 'arg'.
734         (catch_load_command_1): Likewise.
735         (catch_unload_command_1): Likewise.
736         (catch_ada_exception_command): Likewise.
737         (catch_assert_command): Likewise.
738         (catch_catch_command): New function.
739         (catch_throw_command): Likewise.
740         (catch_command_1): Remove.
741         (catch_command): Just call error.
742         (tcatch_command): Likewise.
743         (catch_cmdlist): New global.
744         (tcatch_cmdlist): Likewise.
745         (add_catch_command): New function.
746         (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
747         commands.  Create all catch sub-commands.
748
749 2008-08-17  Pedro Alves  <pedro@codesourcery.com>
750
751         * gdbthread.h: Add comments.
752         * stack.c (get_selected_block): Return 0 on an exited thread.
753         * top.c (execute_command): Check for is_stopped, not !is_running.
754         * event-top.c (command_handler): Likewise.
755
756 2008-08-16  Pedro Alves  <pedro@codesourcery.com>
757
758         * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
759         (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
760         (mi_cmd_exec_finish): Remove "return".
761
762 2008-08-16  Pedro Alves  <pedro@codesourcery.com>
763
764         * target.h (pop_all_targets): Declare.
765         * target.c (pop_all_targets): New.
766         * top.c (quit_target): Pop all targets instead of just closing the
767         current.
768
769 2008-08-16  Vladimir Prus  <vladimir@codesourcery.com>
770             Thiago Jung Bauermann  <bauerman@br.ibm.com>
771
772         * cli-script.c (read_next_line): Add parse_commands argument.
773         (recurse_read_control_structure): Adapt to new read_next_line
774         signature.
775         (read_command_lines): Add parse_commands argument.
776         (define_command): Adapt to new read_command_lines signature.
777         (document_command): Likewise.
778         * breakpoint.c (commands_command): Likewise.
779         * defs.h (read_command_lines): Adjust function prototype.
780
781 2008-08-16  Paul N. Hilfinger  <hilfinger@adacore.com>
782
783         * ada-lang.c (pos_atr): Account for the possibility that the 
784         argument may be a reference.
785
786 2008-08-16  Paul N. Hilfinger  <hilfingr@adacore.com>
787
788         * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
789         ('F' format) for @FIX names generated by the loader, retaining only
790         the minimal symbols (and no partial symbol tables) for these names.
791         Fixes warning messages about symbols that are found in partial 
792         symbol tables, but not full symbol tables.
793
794 2008-08-16  Pedro Alves  <pedro@codesourcery.com>
795
796         * infrun.c (fetch_inferior_event): Only call normal_stop if not
797         stopping quietly.
798
799 2008-08-15  Luis Machado  <luisgpm@br.ibm.com>
800
801         * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
802         Include "features/rs6000/powerpc-vsx64.c".
803         (ppc_supply_vsxregset): New function.
804         (ppc_collect_vsxregset): New function.
805         (IS_VSX_PSEUDOREG): New macro.
806         (IS_EFP_PSEUDOREG): New macro.
807         (vsx_register_p): New function.
808         (ppc_vsx_support_p): New function.
809         (rs6000_builtin_type_vec128): New function.
810         (rs6000_register_name): Hide upper halves of vs0~vs31.  Return
811         correct names for VSX registers and EFPR registers.
812         (rs6000_pseudo_register_type): Return correct types for VSX
813         and EFPR registers.
814         (rs6000_pseudo_register_reggroup_p): Return correct group for
815         VSX and EFPR registers.
816         (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
817         (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
818         (vsx_pseudo_register_read): New function.
819         (vsx_pseudo_register_write): New function.
820         (efpr_pseudo_register_read): New function.
821         (efpr_pseudo_register_write): New function.
822         (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
823         (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
824         (rs6000_gdbarch_init): Declare have_vsx.
825         Initialize new upper half VSX registers.
826         Initialize VSX-related and EFPR-related pseudo-registers variables.
827         Adjust the number of pseudo registers accordingly.
828
829         * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
830         and SIZEOF_VSRREGS.
831         (gdb_vsxregset_t): New type.
832         (have_ptrace_getsetvsxregs): New variable.
833         (fetch_vsx_register): New function.
834         (fetch_register): Handle VSX registers.
835         (fetch_vsx_registers): New function.
836         (fetch_ppc_registers): Handle VSX registers.
837         (store_ppc_registers): Handle VSX registers.
838         (store_vsx_register): New function.
839         (store_register): Handle VSX registers.
840         (store_vsx_registers): New function.
841         (ppc_linux_read_description): Handle VSX-enabled inferiors.
842         (gdb_vsxregset_t): New type.
843         (supply_vsxregset): New function.
844         (fill_vsxregset): New function.
845
846         * ppc-tdep.h (vsx_register_p): New prototype.
847         (vsx_support_p): New prototype.
848         (ppc_vsr0_regnum): New variable.
849         (ppc_vsr0_upper_regnum): Likewise.
850         (ppc_efpr0_regnum): Likewise.
851         (ppc_builtin_type_vec128): New type.
852         (ppc_num_vsrs): New constant.
853         (ppc_num_vshrs): New constant.
854         (ppc_num_efprs): Likewise.
855         Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
856         (ppc_supply_vsxregset): New prototype.
857         (ppc_collect_vsxregset): New prototype.
858
859         * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
860         Include "features/rs6000/powerpc-vsx64l.c".
861         (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
862         (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
863         (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
864         (ppc_linux_regset_from_core_section): Handle VSX core section.
865         (ppc_linux_core_read_description): Support VSX-enabled core files.
866
867         * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
868         Declare tdesc_powerpc_vsx64l
869
870         * corelow.c (get_core_register_section): Support VSX-enabled
871         core files.
872
873         * features/rs6000/power-vsx.xml: New VSX descriptions.
874         * features/rs6000/powerpc-vsx32.xml: New file.
875         * features/rs6000/powerpc-vsx32l.xml: New file.
876         * features/rs6000/powerpc-vsx64.xml: New file.
877         * features/rs6000/powerpc-vsx64l.xml: New file.
878         * features/rs6000/powerpc-vsx32.c: New file (generated).
879         * features/rs6000/powerpc-vsx32l.c: New file (generated).
880         * features/rs6000/powerpc-vsx64.c: New file (generated).
881         * features/rs6000/powerpc-vsx64l.c: New file (generated).
882         * features/Makefile: Updated with new descriptions.
883         * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
884         * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
885
886 2008-08-15  Vladimir Prus  <vladimir@codesourcery.com>
887
888         * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
889         call linux_target twice.
890
891 2008-08-14  Aleksandar Ristovski  <aristovski@qnx.com>
892
893         * nto-tdep.c (lm_info): Updated struct lm_info definition from
894         solib-svr4.c
895         (LM_ADDR): Use l_addr if available; if not, use link map and set 
896         l_addr.
897
898 2008-08-14  Tom Tromey  <tromey@redhat.com>
899
900         * macrocmd.c (macro_define_command): Check for NULL argument.
901         (macro_undef_command): Likewise.
902
903 2008-08-14  Pedro Alves  <pedro@codesourcery.com>
904
905         * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
906
907 2008-08-13  Pedro Alves  <pedro@codesourcery.com>
908
909         * breakpoint.c (always_inserted_auto, always_inserted_on)
910         (always_inserted_off, always_inserted_enums): New.
911         (always_inserted_mode): Change type to char* and point to
912         always_inserted_auto.
913         (show_always_inserted_mode): In auto mode, also show the current
914         effect of the option.
915         (breakpoints_always_inserted_mode): Adjust for the new auto mode.
916         (_initialize_breakpoint): Make the "set breakpoints
917         always-inserted" command an enum command.  Extend help to describe
918         the auto mode.
919
920 2008-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
921
922         * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
923         query valid) bit.  Ignore bits outside the condition field.
924         (info_spu_proxydma_command): Ignore bits outside the field.
925
926 2008-08-12  Michael Snyder  <msnyder@vmware.com>
927
928         * MAINTAINERS: Update my email address.
929
930 2008-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
931
932         * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
933
934 2008-08-12  Pedro Alves  <pedro@codesourcery.com>
935
936         Add no-ack mode to the remote protocol --- optionally stop ACKing
937         packets and responses when we have a reliable communication
938         medium.
939
940         Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
941
942         * remote.c (struct remote_state): Add noack_mode field.
943         (PACKET_QStartNoAckMode): New.
944         (remote_start_remote): Don't any outstanding packet here.
945         (remote_open_1): Clear noack_mode.  Ack any outstanding packet
946         here.  Activate noack mode if requested.
947         (remote_protocol_features): Add QStartNoAckMode.
948         (remote_open_1):
949         (putpkt_binary): Don't send ack in noack mode.
950         (read_frame): Don't recompute the checksum in noack mode.
951         (getpkt_sane): Skip sending ack if in noack mode.
952         (_initialize_remote): Add set/show remote noack mode.
953         * NEWS:  Note the new features.
954
955 2008-08-11  Kevin Buettner  <kevinb@redhat.com>
956
957         * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
958         New macros.
959         (rs6000_skip_main_prologue): New function.
960         (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
961
962 2008-08-11  Sandra Loosemore  <sandra@codesourcery.com>
963
964         * MAINTAINERS (Write After Approval):  Add self.
965
966 2008-08-11  Stan Shebs  <stan@codesourcery.com>
967
968         ARM BE8 support.
969         * disasm.c (gdb_disassemble_info): Set endian_code.
970         * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
971         * gdbarch.h, gdbarch.c: Regenerate.
972         * arch-utils.c (initialize_current_architecture): Set the
973         default byte_order_for_code.
974         (gdbarch_info_init): Ditto.
975         (gdbarch_info_fill): Ditto.
976         * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
977         (thumb_analyze_prologue): Swap halfword if code endianness is
978         different from general endianness.
979         (arm_skip_prologue): Similarly.
980         (arm_scan_prologue): Ditto.
981         (thumb_get_next_pc): Ditto.
982         (arm_get_next_pc): Ditto.
983         (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
984         choose correct endianness for breakpoints.
985
986 2008-08-10  Pedro Alves  <pedro@codesourcery.com>
987
988         * bsd-kvm.c: Include "gdbthread.h".
989         (bsd_kvm_ptid): New.
990         (bsd_kvm_open): Add a main thread.
991         (bsd_kvm_close): Delete it.
992         (bsd_kvm_thread_alive): New.
993         (bsd_kvm_pid_to_str): New.
994         (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
995         bsd_kvm_pid_to_str.
996         (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
997
998 2008-08-09  Pedro Alves  <pedro@codesourcery.com>
999
1000         * buildsym.c (start_subfile): Properly cast sentinel in concat
1001         call.
1002         * cp-name-parser.y: Include "config.h".
1003         * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
1004         concat call.
1005         * gdb_select.h: Include sys/time.h if sys/select.h is not
1006         available.
1007
1008 2008-08-09  Pedro Alves  <pedro@codesourcery.com>
1009
1010         * go32-nat.c: Include "gdbthread.h".
1011         (go32_stop, go32_kill_inferior): Delete the main thread.
1012         (go32_create_inferior): Add it.
1013         (go32_thread_alive, go32_pid_to_str): New.
1014         (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
1015
1016 2008-08-09  Pedro Alves  <pedro@codesourcery.com>
1017
1018         * go32-nat.c (fetch_register, store_register): Pass the regcache
1019         gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
1020         (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
1021         (struct seg_descr, struct seg_descr): pack the whole struct
1022         instead of each member individually.
1023
1024 2008-08-09  Andreas Schwab  <schwab@suse.de>
1025
1026         * python/python.c (_initialize_python): Use unabbreviated commands
1027         in prefix name.
1028
1029 2008-08-09  Daniel Jacobowitz  <dan@codesourcery.com>
1030
1031         * Makefile.in (stamp-h): Also create .deps.
1032
1033 2008-08-09  Tom Tromey  <tromey@redhat.com>
1034
1035         * Makefile.in (generated_files): Add GNULIB_H.
1036
1037 2008-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1038
1039         * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
1040         DT_HP_DEBUG_PRIVATE.  Add warning if DT_HP_DEBUG_PRIVATE is not set.
1041         Revise comment.
1042         (pa64_current_sos): Remove map private warning warning.
1043         * solib-som.c: Include string.h and sys/utsname.h.
1044         (get_hpux_major_release): New function.
1045         (som_solib_create_inferior_hook): Read dynamic linker header.  Warn
1046         about shared library private mapping on HP-UX 11 and later.  Only force
1047         private mapping of shared libraries on HP-UX 10 and earlier.
1048         (link_map_start): Delete warning.
1049
1050 2008-08-09  Xuepeng Guo  <xuepeng.guo@intel.com>
1051             H.J. Lu  <hongjiu.lu@intel.com>
1052             Mark Kettenis <kettenis@gnu.org>
1053
1054         * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
1055         (amd64_init_frame_cache): Initialize saved_sp_reg.
1056         (amd64_analyze_stack_align): New.
1057         (amd64_analyze_prologue): Call it.
1058         (amd64_frame_cache): Use saved_sp_reg if it is invalid.  Don't set
1059         %rip to 8 when halfway aligning the stack.
1060
1061         * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
1062         AMD64_R14_REGNUM.
1063
1064         * i386-tdep.c (i386_frame_cache): Remove stack_align.  Add
1065         saved_sp_reg.
1066         (i386_alloc_frame_cache): Remove stack_align.  Initialize
1067         saved_sp_reg to -1.
1068         (i386_analyze_stack_align): Rewrite.
1069         (i386_frame_cache): Use saved_sp_reg if it is valid.
1070
1071 2008-08-09  Ulrich Weigand  <uweigand@de.ibm.com>
1072
1073         * target.c: Include "solib.h".
1074         (target_pre_inferior): Call no_shared_libraries.
1075         * infcmd.c (run_command_1): Do not call objfile_purge_solibs
1076         or clear_solib.
1077         (attach_command): Do not call clear_solib.
1078
1079 2008-08-09  Mark Kettenis  <kettenis@gnu.org>
1080
1081         * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
1082         the %eip register.
1083
1084 2008-08-08  Tom Tromey  <tromey@redhat.com>
1085
1086         * Makefile.in (python.o): Remove dependencies.  Use COMPILE and
1087         POSTCOMPILE.
1088         (python-utils.o): Likewise.
1089
1090 2008-08-08  Andreas Schwab  <schwab@suse.de>
1091
1092         * corefile.c (_initialize_core): Remove spurious paren from set
1093         gnutarget doc string.
1094
1095 2008-08-08  Luis Machado  <luisgpm@br.ibm.com>
1096
1097         * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
1098         Define PPC_FEATURE_BOOKE.
1099         (ppc_linux_get_hwcap): New function.
1100         (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
1101         4-bytes alignment restrictions.
1102         (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
1103         positioning of the read/write flags.
1104         (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
1105         4-bytes alignment.
1106
1107 2008-08-08  Pedro Alves  <pedro@codesourcery.com>
1108
1109         Use ptid_t.tid to store thread ids instead of ptid_t.pid.
1110
1111         * win32-nat.c (win32_add_thread): Change thread argument type to
1112         ptid_t.  Adjust.
1113         (win32_add_thread): Adjust.
1114         (win32_delete_thread): Change thread argument type to ptid_t.
1115         Adjust.
1116         (win32_fetch_inferior_registers, win32_store_inferior_registers)
1117         (win32_resume, get_win32_debug_event, get_win32_debug_event)
1118         (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
1119         (init_win32_ops): Put to_magic last.
1120         (win32_win32_thread_alive): Adjust.
1121
1122 2008-08-08  Pedro Alves  <pedro@codesourcery.com>
1123
1124         * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
1125         (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
1126
1127 2008-08-08  Pedro Alves  <pedro@codesourcery.com>
1128
1129         * remote-m32r-sdi.c: Include "gdbthread.h".
1130         (remote_m32r_ptid): New.
1131         (m32r_close): Delete the main thread.
1132         (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
1133         main thread.
1134         (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
1135         (_initialize_remote_m32r): Initialize remote_m32r_ptid.
1136
1137 2008-08-07  Tom Tromey  <tromey@redhat.com>
1138             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1139
1140         * aclocal.m4, configure: Rebuild.
1141         * configure.in: Call ZW_CREATE_DEPDIR,
1142         ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
1143         (MAKE, GMAKE): New substs.
1144         * acinclude.m4: Include depstand.m4.
1145         * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
1146         COMPILE, POSTCOMPILE, depcomp): New variables.
1147         Remove all _h variables.
1148         Remove many .o targets.
1149         ($(srcdir)/copying.c): avoid backslash-newline after comment
1150         sign (@maintainer_mode_true@).
1151         (HFILES_NO_SRCDIR): Regenerate.
1152         (generated_files): New variable.
1153         (all_gdbtk_cflags): Likewise.
1154         (.c.o): Rewrote.
1155         (init.o, version.o, copying.o): Remove.
1156         (distclean): Remove DEPDIR.
1157         (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
1158         printcmd.o, procfs.o, v850ice.o): Rewrite.
1159         (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
1160         cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
1161         (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
1162         gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
1163         gdbtk-wrapper.o): Likewise.
1164         (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
1165         mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
1166         mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
1167         mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
1168         tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
1169         tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
1170         tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
1171         tui-wingeneral.o, tui-winsource.o): Likewise.
1172         (all_object_files): New variable.
1173         ($(all_object_files)): New target.
1174         Include dependency files, when using GNU Make.
1175
1176 2008-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
1177
1178         * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
1179         the valid bit set.  Ensure display order respects partial
1180         order defined by dependency bits.
1181
1182 2008-08-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1183
1184         * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
1185         setup.
1186
1187 2008-08-06  Mark Kettenis  <kettenis@gnu.org>
1188
1189         * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
1190         OpenBSD 4.3.
1191
1192 2008-08-06  Vladimir Prus  <vladimir@codesourcery.com>
1193             Tom Tromey  <tromey@redhat.com>
1194             Thiago Jung Bauermann  <bauerman@br.ibm.com>
1195             Doug Evans  <dje@google.com>
1196
1197         * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
1198         SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
1199         PYTHON_CFLAGS): New.
1200         (python_h, python_internal_h): New.
1201         (cli-script.o): Depend on python.h
1202         (python.o, python-utils.o): New.
1203         * cli/cli-script.c (print_command_lines): Handle python_control.
1204         (execute_control_command): Handle python_control.
1205         (execute_control_command_untraced): New function.
1206         (while_command): Call execute_control_command_untraced.
1207         (if_command): Likewise.
1208         (get_command_line): Remove static attribute.
1209         (read_next_line): Handle "python".
1210         (recurse_read_control_structure): Handle python_control.
1211         (read_command_lines): Handle python_control.
1212         Include python.h.
1213         * cli/cli-script.h (get_command_line): Add prototype.
1214         (execute_control_command_untraced): Likewise.
1215         * configure.ac: Add --with-python.
1216         * defs.h (enum command_control_type) <python_control>: New
1217         constant.
1218         * python/python-internal.h: New file.
1219         * python/python.c: New file.
1220         * python/python.h: New file.
1221         * python/python-utils.c: New file.
1222         * NEWS: Mention Python scripting support and its new commands.
1223
1224 2008-08-06  Ulrich Weigand  <uweigand@de.ibm.com>
1225
1226         * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
1227
1228 2008-08-06  Phil Muldoon  <pmuldoon@redhat.com>
1229
1230         * MAINTAINERS (Write After Approval): Add self.
1231
1232 2008-08-06  Phil Muldoon  <pmuldoon@redhat.com>
1233
1234         * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
1235         (insert_breakpoint_locations): Likewise.
1236
1237 2008-08-05  Phil Muldoon  <pmuldoon@redhat.com>
1238
1239         * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
1240         breakpoint.
1241         (set_longjmp_breakpoint): Likewise.
1242
1243 2008-08-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1244
1245         PR build/2490
1246         * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
1247         defined.
1248
1249 2008-08-05  Tom Tromey  <tromey@redhat.com>
1250
1251         * bcache.c (deprecated_bcache_added): Initialize obstack.
1252         (bcache_xmalloc): Don't initialize obstack.
1253         (bcache_xfree): Conditionally free obstack.
1254         (bcache_memory_used): Update.
1255
1256 2008-08-05  Tom Tromey  <tromey@redhat.com>
1257
1258         * symfile.c (add_psymbol_to_bcache): Return a const pointer.  Use
1259         bcache_full.
1260         (append_psymbol_to_list): Accept a const pointer.
1261         (add_psymbol_to_list): Fix const correctness.
1262         * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
1263         (bcache_full): Declare.
1264         * bcache.c (bcache_data, deprecated_bcache): Remove.
1265         (bcache): Use bcache_full.
1266         (bcache_full): Rename from deprecated_bcache_added.  Change return
1267         type.
1268
1269 2008-08-04  Stan Shebs  <stan@codesourcery.com>
1270
1271         * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
1272         (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
1273         (enable_break): Remove test of BKPT_AT_SYMBOL.
1274
1275 2008-08-02  Keith Seitz  <keiths@redhat.com>
1276
1277         * acinclude.m4: Include ../config/tcl.m4 to pick up
1278         standard Tcl configury bits.
1279         Remove all Tcl, Tk, Itcl, Itk, etc definitions.
1280         * configure.ac: Don't check if ../itcl exists when building
1281         gdbtk. It could be installed.
1282         Rewrite gdbtk configury to allow for using system-supplied
1283         Tcl and Tk. Gdbtk no longer requires build-time access to
1284         itcl and itk.
1285         * Makefile.in: Remove everything related to itcl and itk.
1286         Rewrite the Tcl bits for gdbtk to correspond to rewrite of
1287         configure.ac.
1288         Remove v850ice.o build rule.
1289         (ALL_TCL_CFLAGS): New convenience defintion. Change all
1290         gdbtk sources to use it.
1291         * configure: Regenerate.
1292
1293 2008-07-31  Stan Shebs  <stan@codesourcery.com>
1294
1295         * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
1296
1297 2008-07-30  Stan Shebs  <stan@codesourcery.com>
1298
1299         * objfiles.c (TARGET_KEEP_SECTION): Remove.
1300         (add_to_objfile_sections): Remove use.
1301
1302 2008-07-29  Tom Tromey  <tromey@redhat.com>
1303
1304         * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
1305         (lookup_cmd_composition): Likewise.
1306
1307 2008-07-29  Tom Tromey  <tromey@redhat.com>
1308
1309         * cli/cli-cmds.c (edit_command): Remove unused variables.  Delete
1310         dead code.  Fix indentation.
1311
1312 2008-07-29  Stan Shebs  <stan@codesourcery.com>
1313
1314         * main.c (captured_main): Remove long-unused #if 0 blocks.
1315
1316 2008-07-28  Tom Tromey  <tromey@redhat.com>
1317
1318         * annotate.h (deprecated_annotate_starting_hook): Remove.
1319         (deprecated_annotate_stopped_hook): Remove.
1320         (deprecated_annotate_exited_hook): Remove.
1321         * Makefile.in (annotate.o): Depend on observer_h.
1322         * top.c (deprecated_delete_breakpoint_hook): Remove.
1323         (deprecated_create_breakpoint_hook): Likewise.
1324         (deprecated_modify_breakpoint_hook): Likewise.
1325         * interps.c (clear_interpreter_hooks): Update for removed hooks.
1326         * breakpoint.c (mention): Don't call removed hook.
1327         (delete_breakpoint): Likewise.
1328         (disable_breakpoint): Likewise.
1329         (do_enable_breakpoint): Likewise.
1330         * annotate.c: Include observer.h.
1331         (breakpoint_changed): Change type of argument.
1332         (_initialize_annotate): Register observers.
1333         (deprecated_annotate_starting_hook): Remove.
1334         (deprecated_annotate_stopped_hook): Remove.
1335         (deprecated_annotate_exited_hook): Remove.
1336         (annotate_starting): Update for hook removal.
1337         (annotate_stopped): Likewise.
1338         (annotate_exited): Likewise.
1339         * defs.h (deprecated_delete_breakpoint_hook): Remove.
1340         (deprecated_create_breakpoint_hook): Likewise.
1341         (deprecated_modify_breakpoint_hook): Likewise.
1342
1343 2008-07-28  Tom Tromey  <tromey@redhat.com>
1344
1345         * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
1346
1347 2008-07-27  Daniel Jacobowitz  <dan@codesourcery.com>
1348
1349         * configure.ac: Check for the GNU/Linux ptrace signature.
1350         * configure: Regenerated.
1351
1352 2008-07-27  Daniel Jacobowitz  <dan@codesourcery.com>
1353
1354         * linux-nat.c (resume_callback): Add more debugging output.
1355         (linux_nat_has_pending_sigint): New function, based on
1356         linux_nat_has_pending.
1357         (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
1358         (stop_wait_callback): Remove flush_mask handling.  Honor
1359         ignore_sigint.  Call maybe_clear_ignore_sigint.  Pass NULL
1360         to recursive calls.
1361         (linux_nat_has_pending, flush_callback): Remove.
1362         (linux_nat_filter_event): Check for ignore_sigint.
1363         (linux_nat_wait): Remove flush_mask support and call to
1364         flush_callback.  Use set_ignore_sigint and maybe_clear_ignore_sigint.
1365         * linux-nat.h (struct lwp_info): Add ignore_sigint field.
1366
1367 2008-07-27  Daniel Jacobowitz  <dan@codesourcery.com>
1368
1369         * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
1370         report events from resumed threads.
1371
1372 2008-07-27  Daniel Jacobowitz  <dan@codesourcery.com>
1373
1374         * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
1375         (mips_linux_init_abi): Set tdep->syscall_next_pc.
1376         * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
1377         mips-tdep.h.
1378         (mips32_next_pc): Handle the syscall instruction.
1379         * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
1380         from mips-tdep.c.  Add syscall_next_pc to gdbarch_tdep.
1381
1382 2008-07-26  Tom Tromey  <tromey@redhat.com>
1383
1384         PR gdb/1158:
1385         * valops.c (value_struct_elt): Treat function-valued field as a
1386         static method.
1387
1388 2008-07-26  Tom Tromey  <tromey@redhat.com>
1389
1390         PR gdb/1136:
1391         * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
1392         longer tokens first.
1393
1394 2008-07-26  Vladimir Prus  <vladimir@codesourcery.com>
1395
1396         Kill cmd_async_ok.
1397         * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
1398         (get_cmd_async_ok): Remove.
1399         * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
1400         * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
1401         * infcmd.c (_initialize_infcmd): Likewise.
1402         * thread.c (_initialize_thread): Likewise.
1403
1404 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
1405
1406         * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
1407         128-bit long doubles in even-odd pairs of FPRs.  Do not
1408         right-align float arguments for big-endian.
1409         (mips_n32n64_return_value): Apply return value convention for
1410         structs containing one or two floating-point values to soft-float
1411         as well as hard-float.  Handle 128-bit long doubles in such
1412         structs.
1413         (mips_o32_push_dummy_call): Only skip one integer register for a
1414         float argument passed in an FPR.
1415
1416 2008-07-25  Tom Tromey  <tromey@redhat.com>
1417
1418         * tui/tui-hooks.c: Include observer.h.
1419         (tui_event_default, tui_old_event_hooks, tui_event_hooks):
1420         Remove.
1421         (tui_bp_created_observer, tui_bp_deleted_observer,
1422         tui_bp_modified_observer): New globals.
1423         (tui_install_hooks): Use observers, not events.
1424         (tui_remove_hooks): Likewise.
1425         * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
1426         (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
1427         globals.
1428         (breakpoint_notify): Check mi_can_breakpoint_notify.
1429         (breakpoint_hooks): Remove.
1430         (mi_cmd_break_insert): Attach observers.  Don't use events.
1431         * tracepoint.c: Include observer.h, not gdb-events.h.
1432         (tracepoint_operation, trace_pass_command): Notify observer.
1433         * interps.c: Don't include gdb-events.h.
1434         (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
1435         * gdbarch.c: Rebuild.
1436         * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
1437         (deprecated_current_gdbarch_select_hack): Notify observer.
1438         * breakpoint.h: Don't include gdb-events.h.
1439         * breakpoint.c: Don't include gdb-events.h.
1440         (condition_command): Notify observer.
1441         (commands_command): Likewise.
1442         (commands_from_control_command): Likewise.
1443         (mention, delete_breakpoint, set_ignore_count): Likewise.
1444         (disable_breakpoint, do_enable_breakpoint): Likewise.
1445         * Makefile.in (gdb_events_h): Remove.
1446         (breakpoint_h): Update.
1447         (COMMON_OBS): Remove gdb-events.o.
1448         (gdb-events.o): Remove.
1449         (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
1450         gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
1451         * gdb-events.c: Remove.
1452         * gdb-events.h: Remove.
1453         * gdb-events.sh: Remove.
1454
1455 2008-07-24  Pedro Alves  <pedro@codesourcery.com>
1456
1457         * remote.c (remote_threads_extra_info): Don't query the remote
1458         server about info on the internally added main thread.
1459
1460 2008-07-24  Aleksandar Ristovski  <aristovski@qnx.com>
1461
1462         * nto-procfs.c (procfs_attach): Populate initial thread list.
1463         (procfs_wait): Return new pid, built from the inferior status.
1464
1465 2008-07-23  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1466
1467         * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
1468         * configure: Regenerate.
1469
1470 2008-07-23  Aleksandar Ristovski  <aristovski@qnx.com>
1471
1472         * nto-procfs.c (procfs_xfer_memory): Changed signature.
1473         (procfs_resume): Workaround for dereferencing type-punned pointer
1474         warning.
1475         * nto-tdep.c (nto_parse_redirection): Change signature to be const
1476         correct.
1477         * nto-tdep.h (nto_parse_redirection): Likewise.
1478
1479 2008-07-21  Stan Shebs  <stan@codesourcery.com>
1480
1481         Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
1482         * gdbarch.sh: Adjust comment to refer to
1483         in_solib_dynsym_resolve_code().
1484         * gdbarch.h, gdbarch.c: Update.
1485         * solib-osf.c: Ditto.
1486         * infrun.c: Ditto.
1487         (handle_inferior_event): Use in_solib_dynsym_resolve_code
1488         unconditionally.
1489         * config/mips/nm-irix5.h: Remove undef of
1490         IN_SOLIB_DYNSYM_RESOLVE_CODE.
1491
1492 2008-07-21  Tom Tromey  <tromey@redhat.com>
1493
1494         * symfile.c (reread_symbols): Don't pass argument to observer.
1495         * exec.c (exec_file_attach): Don't pass argument to observer.
1496         * ada-lang.c (ada_executable_changed_observer): Remove argument.
1497         * symtab.c (symtab_observer_executable_changed): Remove argument.
1498         * observer.sh: Handle functions with no arguments.
1499
1500 2008-07-20  Sergei Poselenov  <sposelenov@emcraft.com>
1501             Chris Demetriou  <cgd@google.com>
1502
1503         * elfread.c (elf_symfile_segments): Fix the check that each loadable
1504         section fits within an ELF segment to handle ELF segments that hit
1505         the end of the address space.
1506
1507 2008-07-20  Chris Demetriou  <cgd@google.com>
1508
1509         * MAINTAINERS (Write After Approval): Add self.
1510
1511 2008-07-18  Tom Tromey  <tromey@redhat.com>
1512
1513         PR gdb/855:
1514         * NEWS: Add entry for macro commands.
1515         * Makefile.in (macrocmd.o): Add gdb_string.h.
1516         * macroscope.h (user_macro_scope): Declare.
1517         (default_macro_scope): Update documentation.
1518         (macro_user_macros): Declare.
1519         * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
1520         Use user_macro_scope.
1521         (null_macro_lookup): Remove.
1522         * macrotab.h (macro_callback_fn): Declare.
1523         (macro_for_each): Likewise.
1524         (macro_allow_redefinitions): Likewise.
1525         * macrotab.c (foreach_macro): New function
1526         (macro_for_each): Likewise.
1527         (struct macro_table) <redef_ok>: New field.
1528         (macro_allow_redefinitions): New function.
1529         (new_macro_table): Update.
1530         (macro_define_function): Likewise.
1531         (macro_define_object): Likewise.
1532         * macroscope.c (user_macro_scope): New function.
1533         (default_macro_scope): Use it.
1534         (macro_user_macros): New global.
1535         (standard_macro_lookup): Look in macro_user_macros.
1536         (_initialize_macroscope): New function.
1537         * macroexp.h (macro_is_whitespace, macro_is_digit,
1538         macro_is_identifier_nondigit): Declare.
1539         * macroexp.c (macro_is_whitespace): Rename.  No longer static.
1540         (macro_is_digit): Likewise.
1541         (macro_is_identifier_nondigit): Likewise.
1542         (get_identifier): Update.
1543         (get_pp_number): Likewise.
1544         (get_token): Likewise.
1545         * macrocmd.c (skip_ws): New function.
1546         (extract_identifier): Likewise.
1547         (free_macro_definition_ptr): Likewise.
1548         (user_macros): Remove.
1549         (macro_define_command): Implement.
1550         (_initialize_macrocmd): Update.
1551         (macro_undef_command): Implement.
1552         (print_one_macro): New function.
1553         (macro_list_command): Implement.
1554
1555 2008-07-18  Joseph Myers  <joseph@codesourcery.com>
1556
1557         * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
1558         in BFD ELF check.
1559         * configure: Regenerate.
1560
1561 2008-07-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
1562
1563         * auxv.c (fprint_target_auxv): Stop at AT_NULL.
1564
1565 2008-07-15  Andreas Schwab  <schwab@suse.de>
1566
1567         * valops.c (value_cast_pointers): Follow typedefs when checking
1568         result of coercion.
1569
1570 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
1571
1572         * block.c (block_function): Renamed to ...
1573         (block_linkage_function): ... this.  All callers changed.
1574         * block.h (block_function): Renamed to ...
1575         (block_linkage_function): ... this.
1576
1577 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
1578
1579         * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
1580
1581 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
1582
1583         * frame.c (frame_sp_unwind): Delete.
1584         (get_frame_sp): Do not use it.
1585         * frame.h (frame_sp_unwind): Delete prototype.
1586
1587 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
1588
1589         * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
1590
1591 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
1592
1593         * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
1594         * frame.c (frame_unwind_address_in_block): Delete.
1595         (get_frame_address_in_block): Do not use it.  Check the type
1596         of the next frame first.
1597         (frame_cleanup_after_sniffer): Update comment.
1598         * frame.h (frame_unwind_address_in_block): Delete prototype.
1599         * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
1600
1601 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
1602
1603         * frame.c (frame_func_unwind): Delete.
1604         (get_frame_func): Do not use it.
1605         * frame.h (frame_func_unwind): Delete prototype.
1606         * hppa-tdep.c (hppa_frame_cache): Update comment.
1607         * rs6000-tdep.c (rs6000_frame_cache): Update comment.
1608
1609 2008-07-14  Stan Shebs  <stan@codesourcery.com>
1610
1611         * remote-sim.c (init_gdbsim_ops): Remove
1612         TARGET_REDEFINE_DEFAULT_OPS.
1613
1614 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
1615
1616         * findvar.c (read_var_value): Remove unused variable.
1617
1618 2008-07-15  Luis Machado  <luisgpm@br.ibm.com>
1619
1620         * infrun.c (handle_inferior_event): Tag threads as stopped
1621         before inserting breakpoints.
1622
1623 2008-07-15  Hui Zhu  <teawater@gmail.com>
1624
1625         * MAINTAINERS: Added myself to section Write After Approval.
1626
1627 2008-07-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
1628
1629         PR gdb/2477
1630         * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
1631
1632 2008-07-14  Pedro Alves  <pedro@codesourcery.com>
1633
1634         * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
1635         (i386_dicos_push_dummy_code): New.
1636         (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
1637         Register i386_dicos_push_dummy_code.
1638
1639 2008-07-14  Markus Deuling  <deuling@de.ibm.com>
1640
1641         * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
1642         (mips_n32n64_push_dummy_call, mips_o64_return_value)
1643         (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
1644
1645         (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
1646         (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
1647         (mips_n32n64_fp_arg_chunk_p): Update caller.
1648
1649         (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
1650         (mips_n32n64_push_dummy_call): Update caller.
1651
1652         (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
1653         current_gdbarch.
1654         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1655         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
1656
1657
1658         (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
1659         current_gdbarch.
1660         (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
1661         (mips_o64_push_dummy_call): Update caller.
1662
1663         (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
1664         (fp_register_arg_p, mips_dump_tdep): Update caller.
1665
1666         (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
1667         (mips16_scan_prologue, mips32_scan_prologue): Update caller.
1668
1669         (reset_saved_regs): Make static.  Add gdbarch as parameter.  Replace
1670         current_gdbarch.
1671         (mips32_scan_prologue): Update caller.
1672
1673         (heuristic_proc_start): Add gdbarch as parameter. Replace
1674         current_gdbarch.
1675         (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
1676
1677         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
1678         (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
1679         the current architecture. Update call to getregs_supplies.
1680         (getregs_supplies): Add gdbarch as parameter and replace
1681         current_gdbarch.
1682
1683         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
1684         get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
1685         NBSD_MIPS_JB_ELEMENT_SIZE.
1686         (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
1687         replace current_gdbarch.
1688
1689         * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
1690         current_gdbarch.
1691         (mips_fetch_registers, mips_store_registers): Update call
1692         to mips_map_regno.
1693         (mips_load): Use get_regcache_arch to get at the current_architecture
1694         and replace current_gdbarch.
1695
1696 2008-07-13  Pedro Alves  <pedro@codesourcery.com>
1697
1698         * thread.c (restore_selected_frame): On fail to restore, select
1699         the innermost frame, and don't crash when warning the user.
1700
1701 2008-07-13  Hui Zhu  <teawater@gmail.com>
1702
1703         * symtab.c (expand_line_sal): Fix a memory leak.
1704
1705 2008-07-13  Pedro Alves  <pedro@codesourcery.com>
1706
1707         * utils.c (struct continuation): Define as inheriting struct
1708         cleanup.
1709         (add_continuation, do_all_continuations)
1710         (discard_all_continuations, add_intermediate_continuation)
1711         (do_all_intermediate_continuations)
1712         (discard_all_intermediate_continuations): Adjust.
1713
1714 2008-07-13  Vladimir Prus  <vladimir@codesourcery.com>
1715
1716         Skip varobj in running threads.
1717         * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
1718         thread is not stopped, skip the varobj.
1719         * Makefile.in: Update dependencies.
1720
1721 2008-07-13  Vladimir Prus  <vladimir@codesourcery.com>
1722
1723         Enable all commands while inferiour is running
1724         * mi/mi-main.c (mi_cmd_execute): Don't check if
1725         inferiour is executing.
1726
1727 2008-07-13  Vladimir Prus  <vladimir@codesourcery.com>
1728
1729         Allow all CLI command even if target is executing.
1730         * gdb/top.c (execute_command_1): Don't check if the inferiour
1731         is running.
1732
1733 2008-07-13  Vladimir Prus  <vladimir@codesourcery.com>
1734
1735         * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
1736         Fix printing of frame, when frame is wrong.
1737
1738 2008-07-12  Ulrich Weigand  <uweigand@de.ibm.com>
1739
1740         * spu-tdep.c (spu_frame_unwind_cache): Do not error if
1741         backchain is unreadable.
1742
1743 2008-07-12  Ulrich Weigand  <uweigand@de.ibm.com>
1744
1745         * spu-linux-nat.c: Include "gdbthread.h".
1746         (spu_child_post_startup_inferior): Register main thread.
1747         (spu_child_post_attach): Likewise.
1748         * Makefile.in (spu-linux-nat.o): Update dependencies.
1749
1750 2008-07-12  Pedro Alves  <pedro@codesourcery.com>
1751
1752         Rewrite continuations internals on top of cleanups and plug
1753         continuation arguments leaks.
1754
1755         * defs.h (struct continuation): Make it opaque.
1756         (add_continuation, add_intermediate_continuation): Drop the int
1757         argument of the continuation hook argument.  Add
1758         continuation_free_args argument.
1759         (do_all_continuations, do_all_intermediate_continuations): Drop
1760         the error_p argument.
1761
1762         * utils.c (add_continuation): Drop the int argument of the
1763         continuation hook argument.  Add continuation_free_args argument.
1764         Reimplement on top of cleanups.
1765         (do_all_continuations): Drop error argument.  Reimplement on top
1766         of cleanups.
1767         (discard_all_continuations): Reimplement on top of cleanups.
1768         (add_intermediate_continuation): Drop the int argument of the
1769         continuation hook argument.  Add continuation_free_args argument.
1770         Reimplement on top of cleanups.
1771         (do_all_intermediate_continuations): Drop error argument.
1772         Reimplement on top of cleanups.
1773         (discard_all_intermediate_continuations): Reimplement on top of
1774         cleanups.
1775
1776         * breakpoint.c (until_break_command_continuation): Drop error
1777         argument.  Add xfree as continuation argument deleter.
1778
1779         * inf-loop.c (inferior_event_handler): On error, discard all
1780         continuations.  Adjust to new do_all_intermediate_continuations
1781         and do_all_continuations interfaces.
1782
1783         * infcmd.c (step_1_continuation): Drop error_p argument.  Adjust.
1784         Pass xfree as continuation argument deleter.
1785         (finish_command_continuation): Drop error_p argument.  Adjust.
1786         (finish_command_continuation_free_arg): New.
1787         (finish_command): Pass finish_command_continuation_free_arg as
1788         continuation argument deleter.  Adjust to new do_all_continuations
1789         interfaces.
1790         (attach_command_continuation): Drop error_p argument.
1791         (attach_command_continuation_free_args): New.
1792         (attach_command): Pass attach_command_continuation_free_args as
1793         continuation argument deleter.
1794
1795         * interps.c (interp_set): Adjust to new do_all_continuations
1796         interfaces.
1797
1798         * event-top.c (stdin_event_handler): In error, also discard the
1799         intermediate continuations.
1800
1801 2008-07-12  Pedro Alves  <pedro@codesourcery.com>
1802
1803         Replace struct continuation_args by void* and per command structs.
1804
1805         * top.c (execute_command): Remove unused arg1 and arg2 locals.
1806
1807         * breakpoint.c (struct until_break_command_continuation_args):
1808         New.
1809         (until_break_command_continuation): Take a void* instead of a
1810         continuations_arg.  Adjust.
1811         (until_break_command): Adjust to use struct
1812         until_break_command_continuation_args instead of struct
1813         continuation_arg.
1814
1815         * infcmd.c (struct step_1_continuation_args): New.
1816         (step_1_continuation): Take a void* instead of a
1817         continuations_arg.  Adjust to use struct step_1_continuation_args.
1818         (step_once): Adjust to use struct step_1_continuation_args.
1819
1820         (struct finish_command_continuation_args): New.
1821         (finish_command_continuation): Take a void* instead of a
1822         continuations_arg.  Adjust to use struct
1823         finish_command_continuation_args.
1824         (finish_command): Adjust to use struct
1825         finish_command_continuation_args.
1826         (struct attach_command_continuation_args): New.
1827         (attach_command_continuation): Take a void* instead of a
1828         continuations_arg.  Adjust to use struct
1829         attach_command_continuation_args.
1830         (attach_command): Adjust to use struct
1831         attach_command_continuation_args.
1832
1833         * defs.h (struct continuation_arg): Delete.
1834         (struct continuation): Replace the struct continuation_arg*
1835         parameter of continuation_hook by a void*.  Replace "arg_list"
1836         member by a new "args" member with void* type.
1837         (add_continuation, add_intermediate_continuation): Replace struct
1838         continuation_arg type usages by void* usages.
1839
1840         * utils.c (add_continuation, do_all_continuations)
1841         (add_intermediate_continuation)
1842         (do_all_intermediate_continuations): Replace struct
1843         continuation_arg type usages by void* usages.  Pass "args" instead
1844         of "arg_list".
1845
1846 2008-07-12  Pedro Alves  <pedro@codesourcery.com>
1847
1848         * infrun.c (struct thread_stepping_state): Delete sal member.
1849         (init_thread_stepping_state): Add local sal.  Use it instead of
1850         tss->sal.
1851         (handle_inferior_event): New local stop_pc_sal.  Use it instead of
1852         tss->sal.
1853         (step_into_function): Add local stop_func_sal.  Use it instead of
1854         tss->sal.
1855
1856 2008-07-12  Vladimir Prus  <vladimir@codesourcery.com>
1857
1858         Implement -exec-continue/-exec-interrupt --all.
1859         * infcmd.c (continue_1): New, extracted from
1860         (continue_command): ...here.
1861         (interrupt_target_1): New, extracted from
1862         (interrupt_target_command): ...here.
1863         * inferior.h (continue_1, interrupt_target_1): New.
1864         * mi/mi-main.c (mi_cmd_exec_continue)
1865         (mi_cmd_exec_interrupt): Handle --all.
1866
1867 2008-07-12  Vladimir Prus  <vladimir@codesourcery.com>
1868
1869         Implement --thread and --frame.
1870         * gdbthread.h (find_thread_id): Declare.
1871         * thread.c (find_thread_id): Make non-static.
1872         * mi/mi-main.c (mi_cmd_execute): Switch to the right
1873         thread and frame, if necessary.
1874         * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
1875         * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
1876
1877 2008-07-12  Vladimir Prus  <vladimir@codesourcery.com>
1878
1879         * infrun.c (resume): Discard cleanups on early exit path.
1880
1881 2008-07-12  Vladimir Prus  <vladimir@codesourcery.com>
1882
1883         * infrun.c (normal_stop): For MI, report which threads
1884         were stopped.
1885
1886 2008-07-12  Vladimir Prus  <vladimir@codesourcery.com>
1887
1888         Report thread state in -thread-info output.
1889         * thread.c (print_thread_info): Add new field "state".
1890
1891 2008-07-11  Pedro Alves  <pedro@codesourcery.com>
1892
1893         * infrun.c (handle_inferior_event): Also ignore a
1894         TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
1895
1896 2008-07-11  Tom Tromey  <tromey@redhat.com>
1897
1898         * completer.c (complete_line_internal): New function, from
1899         complete_line.  Add 'for_help' parameter.
1900         (complete_line): Use it.
1901         (command_completer): Move later.  Rewrite.
1902
1903 2008-07-11  Pedro Alves  <pedro@codesourcery.com>
1904
1905         * thread.c (thread_apply_command): Move making the cleanup out of
1906         the loop.
1907
1908 2008-07-11  Pedro Alves  <pedro@codesourcery.com>
1909
1910         Exited threads.
1911
1912         * thread.c (enum thread_state): New.
1913         (thread_state main_thread_running): Delete, in favor of...
1914         (thread_state main_thread_state): ... this.  Update throughout.
1915         (clear_thread_inferior_resources): New, split from free_thread.
1916         (free_thread): Call clear_thread_inferior_resources.
1917         (init_thread_list): Set main thread to stopped state.
1918         (add_thread_silent): Take care of PTID reuses.
1919         (delete_thread): If deleting inferior_ptid or a thread with
1920         refcount > 0, mark it as exited, but still keep it in the list.
1921         Only notify of thread exits, if we haven't done so yet.
1922         (iterate_over_threads): Make it safe to delete threads while
1923         iterating over them.
1924         (do_captured_list_thread_ids): Don't account for exited threads.
1925         (thread_alive): Check for the THREAD_EXITED state, and don't set
1926         ptid to -1 on exited threads.
1927         (set_running): Update to account for extra possible states.
1928         (is_thread_state): New.
1929         (is_stopped, is_exited): New.
1930         (is_running): Implement in terms of is_thread_state.
1931         (any_running): Update.
1932         (print_thread_info): Update.  Account for exited threads.  Don't
1933         warn about missed frame restoring here, its done in the cleanup.
1934         (switch_to_thread): Don't read from a thread that has gone.
1935         (restore_current_thread): In non-stop mode, do a full context
1936         switch.
1937         (restore_selected_frame): Add a frame_level argument.  Rewrite.
1938         (struct current_thread_cleanup): Add selected_frame_level and
1939         was_stopped members.
1940         (do_restore_current_thread_cleanup): Check if thread was stopped
1941         and still is, and if the target has registers, stack and memory
1942         before restoring the selected frame.  Don't delete the cleanup
1943         argument here.
1944         (restore_current_thread_cleanup_dtor): New.
1945         (make_cleanup_restore_current_thread): Remove all arguments.
1946         Rewrite.
1947         (thread_apply_all_command): Update.  Prune threads.
1948         (thread_apply_command): Update.
1949         (thread_command): Account for currently selected exited thread.
1950         (do_captured_thread_select): Check for a running thread.  Prune
1951         threads.
1952         (_initialize_thread): Make "info threads", "thread", "thread
1953         apply", and "thread apply all" appliable without a selected thread.
1954         * gdbthread.h (struct thread_info): Replace running_ by state_.
1955         Add refcount.
1956         (is_exited, is_stopped): Declare.
1957         (make_cleanup_restore_current_thread): Remove all arguments.
1958         * infrun.c: Include "event-top.h".
1959         (fetch_inferior_event): In non-stop mode, restore selected thread
1960         and frame after handling the event and running breakpoint
1961         commands.  Display GDB prompt if needed.
1962         (normal_stop): In non-stop mode, don't print thread switching
1963         notice.
1964         * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
1965         (get_cmd_no_selected_thread_ok): New.
1966         * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
1967         (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
1968         Declare.
1969         * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
1970         no-selected-thread ok.
1971         * top.c (execute_command): Check for non no-selected-thread-ok
1972         commands.
1973         * linux-nat.c (struct saved_ptids, threads_to_delete)
1974         (record_dead_thread, prune_lwps): Delete.
1975         (exit_lwp): Unconditionally delete thread.
1976         (linux_nat_resume): Remove prune_lwps call.
1977         * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
1978         of is_running.  Adjust to make_cleanup_restore_current_thread
1979         interface change.
1980         * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
1981         selected thread has exited.
1982         * inf-loop.c (inferior_event_handler): Don't display the prompt
1983         here.
1984         * varobj.c (c_value_of_root): Update.
1985         * defs.h (make_cleanup_dtor): Declare.
1986         * utils.c (make_cleanup_dtor): New.
1987
1988         * Makefile.in (infrun.o): Depend on $(event_top_h).
1989
1990 2008-07-11  Pedro Alves  <pedro@codesourcery.com>
1991
1992         Add "continue -a" and "interrupt -a" options for non-stop mode.
1993
1994         * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
1995         (continue_command): Add "-a" option.
1996         (interrupt_target_command): Add "-a" option.
1997         (_initialize_infcmd): Add extend help of continue and interrupt
1998         command to mention the new "-a" option.  Mark "continue" async ok.
1999
2000 2008-07-10  Doug Evans  <dje@google.com>
2001
2002         Add "set print symbol-loading on|off".
2003         * NEWS: Document new option.
2004         * symfile.h (print_symbol_loading): Declare.
2005         * symfile.c (print_symbol_loading): New global.
2006         (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
2007         from ..." if print_symbol_loading.
2008         (_initialize_symfile): Add set/show print symbol-loading.
2009         * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
2010         if print_symbol_loading.
2011
2012 2008-07-10  Pedro Alves  <pedro@codesourcery.com>
2013
2014         Non-stop linux native.
2015
2016         * linux-nat.c (linux_test_for_tracefork): Block events while we're
2017         here.
2018         (get_pending_status): Implement non-stop mode.
2019         (linux_nat_detach): Stop threads before detaching.
2020         (linux_nat_resume): In non-stop mode, always resume only a single
2021         PTID.
2022         (linux_handle_extended_wait): On a clone event, in non-stop mode,
2023         add new lwp to GDB's thread table, and mark as running, executing
2024         and stopped appropriately.
2025         (linux_nat_filter_event): Don't assume there are other running
2026         threads when a thread exits.
2027         (linux_nat_wait): Mark the main thread as running and executing.
2028         In non-stop mode, don't stop all lwps.
2029         (linux_nat_kill): Stop lwps before killing them.
2030         (linux_nat_thread_alive): Use signal 0 to detect if a thread is
2031         alive.
2032         (send_sigint_callback): New.
2033         (linux_nat_stop): New.
2034         (linux_nat_add_target): Set to_stop to linux_nat_stop.
2035
2036         * linux-nat.h (thread_db_attach_lwp): Declare.
2037
2038         * linux-thread-db.c (thread_get_info_callback): Check for new
2039         threads if we have none.
2040         (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
2041         stopped lwp.  Check for new threads if we have none.
2042         (thread_db_attach_lwp): New.
2043         (thread_db_init): Set proc_handle.pid to inferior_ptid.
2044         (check_event): Set proc_handle.pid to the stopped lwp.
2045         (thread_db_find_new_threads): Set proc_handle.pid to any stopped
2046         lwp available, bail out if there is none.
2047
2048         * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
2049         PTRACE_KILL.
2050
2051 2008-07-10  Kevin Buettner  <kevinb@redhat.com>
2052
2053         * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
2054         `current_pc' from CORE_ADDR to ULONGEST.
2055
2056         * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
2057         gdbsim_stop().
2058
2059 2008-07-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
2060
2061         * NEWS (New commands): Mention "set disable-randomization".
2062         * configure.ac: Add check for HAVE_PERSONALITY and
2063         HAVE_DECL_ADDR_NO_RANDOMIZE.
2064         * configure, config.in: Regenerate.
2065         * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
2066         [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
2067         ADDR_NO_RANDOMIZE.
2068         (disable_randomization, show_disable_randomization)
2069         (set_disable_randomization): New.
2070         (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
2071         PERSONALITY_ORIG and PERSONALITY_SET.  Disable randomization upon the
2072         variable DISABLE_RANDOMIZATION.
2073         (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
2074         DISABLE_RANDOMIZATION.
2075
2076 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
2077
2078         Adjust all targets to new target_stop interface.
2079
2080         * gnu-nat.c (gnu_stop): Add ptid argument.
2081         * go32-nat.c (go32_stop): Add ptid argument.
2082         (go32_create_inferior): Pass inferior_ptid to go32_stop.
2083         * hpux-thread.c (hpux_thread_stop): Add ptid argument.
2084         * monitor.c (monitor_stop): Add ptid argument.
2085         (monitor_open): Pass inferior_ptid to monitor_stop.
2086         (monitor_interrupt): Pass inferior_ptid to target_stop.
2087         (monitor_stop): Add ptid argument.
2088         * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
2089         (procfs_create_inferior): Add ptid argument.
2090         * procfs.c (procfs_stop): Add ptid argument.
2091         * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
2092         * remote-sim.c (gdbsim_stop): Add ptid argument.
2093         * sol-thread.c (sol_thread_stop): Add ptid argument.
2094         * win32-nat.c (win32_stop): Add ptid argument.
2095
2096 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
2097
2098         Non-stop inferior control.
2099
2100         * infrun.c (resume): In non-stop mode, always resume just one
2101         thread.
2102         (proceed): Don't call prepare_to_proceed in non-stop mode.
2103         (fetch_inferior_event): In non-stop mode, switch context before
2104         handling the event.
2105         (error_is_running, ensure_not_running): New.
2106         (handle_inferior_event): In non-stop mode: Mark only the event
2107         thread as stopped.  Require that the target module manages adding
2108         threads to the thread list.  Assert that there isn't a
2109         deferred_step_ptid set.  Don't switch to infwait_thread_hop_state.
2110         (normal_stop): Only mark not-running if inferior hasn't exited.
2111         In non-stop mode, only mark the event thread.
2112
2113         * thread.c:Include "cli/cli-decode.h".
2114         (print_thread_info): Don't read from a running thread.
2115         Output "(running)" if thread is running.
2116         (switch_to_thread): Don't read stop_pc if thread is executing.
2117         (do_restore_current_thread_cleanup): Don't write to a running
2118         thread.
2119         (thread_apply_all_command): Don't read from a running thread.  In
2120         non-stop mode, do a full context-switch instead of just switching
2121         threads.
2122         (thread_apply_command): In non-stop mode, do a full context-switch
2123         instead of just switching threads.
2124         (do_captured_thread_select): Likewise.  Inform user if selected
2125         thread is running.
2126         (_initialize_thread): Mark "info threads" and "thread" and
2127         async_ok.
2128
2129         * inf-loop.c (inferior_event_handler): In non-stop mode, don't
2130         unregister the target from the event loop.
2131
2132         * infcmd.c (continue_command, step_1, jump_command)
2133         (signal_command): Ensure the selected thread isn't running.
2134         (interrupt_target_command): In non-stop mode, interrupt only the
2135         selected thread.
2136
2137         * inferior.h (error_is_running, ensure_not_running): Declare.
2138
2139         * target.h (struct target_ops): Add ptid argument to the to_stop
2140         member.
2141         (target_stop): Add ptid_t argument.
2142
2143         * target.c (update_current_target): Add ptid argument to to_stop's
2144         type.
2145         (debug_to_stop): Add ptid_t argument.
2146         (debug_to_rcmd): Set to_stop_ptid.
2147
2148         * remote.c (remote_stop): Add ptid_t argument.
2149         (async_remote_interrupt): Add inferior_ptid to target_stop.
2150         * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
2151
2152         * Makefile.in (thread.o): Depend on $(cli_decode_h).
2153
2154 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
2155
2156         Don't rely on ecs->wait_for_more.
2157
2158         * infrun.c (proceed): Clear the stepping state, set
2159         previous_inferior_ptid and clear infwait state.
2160         (wait_for_inferior): Don't clear the stepping state, set
2161         previous_inferior_ptid, or clear the infwait state here.
2162         (fetch_inferior_event): Don't clear the stepping state, set
2163         previous_inferior_ptid, or clear the infwait state here.  Don't
2164         condition on wait_for_more.
2165
2166 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
2167
2168         Refactor infrun a bit.
2169
2170         * infrun.c (currently_stepping): Take a struct
2171         thread_stepping_state instead of an execution_control_state.
2172         (struct thread_stepping_state): New, split from
2173         execution_control_state.
2174         (gtss, tss): New globals.
2175         (proceed): Clear the stepping state, set previous_inferior_ptid
2176         and clear infwait state.
2177         (init_wait_for_inferior): Clear the stepping state,
2178         previous_inferior_ptid and infwait state.
2179         (waiton_ptid, infwait_state): New, split from
2180         execution_control_state.
2181         (struct execution_control_state): Members that persist through
2182         events moved out to either struct thred_stepping_state or made
2183         global.  Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
2184         (wait_for_inferior, fetch_inferior_event): Use local
2185         execution_control_state.  Update to execution_control_state split.
2186         (init_execution_control_state): Adjust.
2187         (init_thread_stepping_state): New, extracted from
2188         init_execution_control_state.
2189         (context_switch): Take a ptid instead of an
2190         execution_control_state.
2191         (context_switch_to): Adjust.
2192         (adjust_pc_after_break): Adjust.
2193         (init_infwait_state): New.
2194         (handle_inferior_event): Adjust.
2195
2196 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
2197             Vladimir Prus  <vladimir@codesourcery.com>
2198
2199         Per-thread commands.
2200
2201         * gdbthread.h: Remove unneeded forward declarations.
2202         Include "inferior.h".
2203         (struct thread_info): Add continuations,
2204         intermediate_continuations, proceed_to_finish, step_over_calls,
2205         stop_step, step_multi and stop_signal members.
2206         (save_infrun_state): Add continuations,
2207         intermediate_continuations, proceed_to_finish, step_over_calls,
2208         stop_step, step_multi, stop_signal and stop_bpstat parameters.
2209         (load_infrun_state): Add continuations,
2210         intermediate_continuations, proceed_to_finish, step_over_calls,
2211         stop_step, step_multi, stop_signal and stop_bpstat parameters.
2212
2213         * thread.c (load_infrun_state): In non-stop mode, load
2214         continuations, intermediate_continuations, proceed_to_finish,
2215         step_over_calls, stop_step, step_multi and stop_signal.
2216         (save_infrun_state): Store continuations,
2217         intermediate_continuations, proceed_to_finish, step_over_calls,
2218         stop_step, step_multi, stop_signal and stop_bpstat.
2219         (save_infrun_state): Store continuations,
2220         intermediate_continuations, proceed_to_finish, step_over_calls,
2221         stop_step, step_multi, stop_signal and stop_bpstat.
2222         (free_thread): Clear The thread's stop_bpstat.
2223
2224         * inferior.h (context_switch_to): Declare.
2225
2226         * infrun.c (ecss): New global.
2227         (context_switch): Context switch continuations,
2228         intermediate_continuations, proceed_to_finish, step_over_calls,
2229         stop_step, step_multi, stop_signal and stop_bpstat.
2230         (wait_for_inferior): Use global ecss.
2231         (async_ecss, async_ecs): Delete.
2232         (fetch_inferior_event): Use global ecss.
2233         (context_switch_to): New.
2234
2235         * top.c (execute_command): In non-stop, only check if the current
2236         thread is running, in all-stop, check if there's any thread
2237         running.
2238
2239         * breakpoint.c (bpstat_remove_breakpoint): New.
2240         (bpstat_remove_breakpoint_callback): New.
2241         (delete_breakpoint): Clear the stop_bpstats of all threads.
2242
2243         * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
2244         current thread is running, in all-stop, check if there's any
2245         thread running.
2246
2247         * Makefile.in (gdbthread_h): Depend on $(inferior_h).
2248
2249 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
2250
2251         Add non_stop global.
2252
2253         * inferior.h (non_stop): Declare.
2254         * infrun.c (non_stop, non_stop_1): New.
2255         (set_non_stop, show_non_stop): New.
2256         (_initialize_infrun): Add "set/show non-stop" command.
2257
2258 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
2259
2260         Adjust fork/vfork/exec to pass ptids around.
2261
2262         * target.h (struct target_waitstatus): Store related_pid as a ptid.
2263         (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
2264         Take a ptid_t.
2265         * breakpoint.h (struct breakpoint): Change forked_inferior_pid
2266         type to ptid.
2267         * breakpoint.c (print_it_typical, bpstat_check_location)
2268         (print_one_breakpoint_location, set_raw_breakpoint_without_location)
2269         (create_fork_vfork_event_catchpoint): Adjust.
2270         * infrun.c (fork_event): Change parent_pid and child_pid types to
2271         ptid.
2272         (follow_exec, inferior_has_forked, inferior_has_vforked)
2273         (inferior_has_execd): Take a ptid_t and don't trim it.
2274         * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
2275         * linux-nat.c (linux_child_follow_fork): Adjust.
2276         * inf-ptrace.c (inf_ptrace_wait): Adjust.
2277         * inf-ttrace.c (inf_ttrace_wait): Adjust.
2278         * win32-nat.c (get_win32_debug_event): Don't set related_pid.
2279
2280 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
2281
2282         Add "executing" property to threads.
2283
2284         * inferior.h (target_executing): Delete.
2285         * gdbthread.h (struct thread_info): Add executing_ field.
2286         (set_executing, is_executing): New.
2287         * thread.c (main_thread_executing): New.
2288         (init_thread_list): Clear it and also main_thread_running.
2289         (is_running): Return false if target has no execution.
2290         (any_running, is_executing, set_executing): New.
2291
2292         * top.c: Include "gdbthread.h".
2293         (target_executing): Delete.
2294         (execute_command): Replace target_executing check by any_running.
2295         * event-top.c: Include "gdbthread.h".
2296         (display_gdb_prompt, command_handler): Replace target_executing by
2297         is_running.
2298         * inf-loop.c: Include "gdbthread.h".  Don't mark as not executing
2299         here.  Replace target_executing by is_running.
2300         * infrun.c (handle_inferior_event): Mark all threads as
2301         not-executing.
2302         * linux-nat.c (linux_nat_resume): Don't mark thread as executing
2303         here.
2304         * stack.c (get_selected_block): Return null if inferior is
2305         executing.
2306         * target.c (target_resume): Mark resumed ptid as executing.
2307         * breakpoint.c (until_break_command): Replace target_executing
2308         check by is_executing.
2309         * remote.c (remote_async_resume): Don't mark inferior as executing
2310         here.
2311         * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
2312         by any_running.
2313
2314         * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
2315         (mi_execute_async_cli_command): Replace target_executing by
2316         is_running.
2317
2318         * frame.c (get_current_frame): Error out if the current thread is
2319         executing.
2320         (has_stack_frames): New.
2321         (get_selected_frame, deprecated_safe_get_selected_frame): Check
2322         has_stack_frames.
2323
2324         * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
2325         $(gdbthread_h).
2326
2327 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
2328
2329         * symfile.c (load_command): Reopen the exec file and reread
2330         symbols before anything else.
2331
2332 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
2333
2334         * remote-sim.c: Include gdbthread.h.
2335         (remote_sim_ptid): New global.
2336         (gdbsim_create_inferior): Silently add the main task to GDB's
2337         thread list.
2338         (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
2339         task from GDB's thread list.
2340         (gdbsim_resume): Adjust to use remote_sim_ptid.
2341         (gdbsim_thread_alive, gdbsim_pid_to_str): New.
2342         (init_gdbsim_ops): Register gdbsim_thread_alive and
2343         gdbsim_pid_to_str.
2344         (_initialize_remote_sim): Initialize remote_sim_ptid.
2345         * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
2346
2347 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
2348
2349         * monitor (monitor_ptid): New global.
2350         (monitor_open): Silently add the main task to GDB's thread list.
2351         (monitor_close, monitor_mourn_inferior): Silently delete the main
2352         task from GDB's thread list.
2353         (monitor_thread_alive, monitor_pid_to_str): New.
2354         (init_base_monitor_ops): Register monitor_thread_alive and
2355         monitor_pid_to_str.
2356         (_initialize_remote_monitors): Initialize monitor_ptid.
2357
2358         * gdbthread.h (delete_thread_silent): Declare.
2359         * thread.c (delete_thread): Rename to ...
2360         (delete_thread_1): ... this.  Add "silent" parameter.  If silent,
2361         don't do exit notifications.
2362         (delete_thread, delete_thread_silent): New, as wrappers to
2363         delete_thread_1.
2364
2365 2008-07-08  Pedro Alves  <pedro@codesourcery.com>
2366
2367         * breakpoint.c (update_global_location_list): Add boolean
2368         "should_insert" argument.  Only insert locations if caller told it
2369         too.
2370         (update_global_location_list_nothrow): Add boolean "should_insert"
2371         argument.  Pass it to update_global_location_list.
2372         (insert_breakpoints, create_longjmp_breakpoint)
2373         (create_overlay_event_breakpoint, enable_overlay_breakpoints)
2374         (create_thread_event_breakpoint, create_solib_event_breakpoint)
2375         (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
2376         (enable_watchpoints_after_interactive_call_stop)
2377         (set_momentary_breakpoint, create_breakpoints)
2378         (break_command_really, watch_command_1)
2379         (create_ada_exception_breakpoint, update_breakpoint_locations)
2380         (do_enable_breakpoint, enable_command): Pass true to
2381         update_global_location_list.
2382         (bpstat_stop_status, disable_overlay_breakpoints)
2383         (disable_watchpoints_before_interactive_call_start)
2384         (delete_breakpoint, disable_breakpoint, disable_command): Pass
2385         false to update_global_location_list.
2386         (update_breakpoints_after_exec): Don't temporarily disable
2387         always-inserted mode.
2388
2389 2008-07-08  Pedro Alves  <pedro@codesourcery.com>
2390
2391         * breakpoint.c (mark_breakpoints_out): Make public.
2392         (update_breakpoints_after_exec): Don't call mark_breakpoints_out
2393         here.  Update comment.
2394         * breakpoint.h (mark_breakpoints_out): Declare.
2395
2396         * linux-nat.c (linux_handle_extended_wait): On
2397         TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
2398         * inf-ttrace.c (inf_ttrace_wait): Likewise.
2399
2400 2008-07-08  Pedro Alves  <pedro@codesourcery.com>
2401
2402         * infrun.c (follow_exec): Reset shared libraries before adding the
2403         main exec file.
2404
2405 2008-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2406
2407         * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
2408
2409 2008-07-07  Pedro Alves  <pedro@codesourcery.com>
2410
2411         * i386-dicos-tdep.c: Include "inferior.h".
2412         (i386_dicos_frame_align): New.
2413         (i386_dicos_init_abi): Register i386_dicos_frame_align.  Set call
2414         dummy location ON_STACK.
2415         * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
2416
2417 2008-07-07  Joel Brobecker  <brobecker@adacore.com>
2418
2419         * gstdint.h: New file.
2420
2421 2008-07-05  Vladimir Prus  <vladimir@codesourcery.com>
2422
2423         * mi/mi-interp.c (mi_on_resume): Don't try to report
2424         resumed thread it the thread list is empty.
2425
2426 2008-07-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2427
2428         * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
2429         completer for set to filename_completer.
2430
2431         NEWS: Mention it.
2432
2433 2008-07-04  Vladimir Prus  <vladimir@codesourcery.com>
2434
2435         Implement -target-attach.
2436         * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
2437
2438 2008-06-21  Hui Zhu  <teawater@gmail.com>
2439
2440         * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
2441
2442 2008-07-03  Pedro Alves  <pedro@codesourcery.com>
2443
2444         * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
2445         * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
2446
2447         * target.h (struct target_ops): Add to_attach_no_wait member.
2448         (target_attach_no_wait): New.
2449         * target.c (update_current_target): Inherit to_attach_no_wait.
2450
2451         * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
2452         target_attach_no_wait runtime check.
2453
2454         * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
2455         * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
2456         win32_ops.
2457
2458 2008-07-03  Pedro Alves  <pedro@codesourcery.com>
2459
2460         * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
2461         on debug_displaced being set.
2462
2463 2008-06-30  Daniel Jacobowitz  <dan@codesourcery.com>
2464
2465         * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
2466         directly instead of get_frame_id.
2467
2468 2008-06-30  Luis Machado  <luisgpm@br.ibm.com>
2469
2470         * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
2471         (deal_with_atomic_sequence): Update BC masks.
2472         (rs6000_gdbarch_init): Init displaced stepping infra-structure.
2473         Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
2474
2475 2008-06-30  Daniel Jacobowitz  <dan@codesourcery.com>
2476
2477         * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
2478         register, not the previous frame's.
2479
2480 2008-06-30  Luis Machado  <luisgpm@br.ibm.com>
2481
2482         * source.c (select_source_symtab): Make sure we skip namespace
2483         symtabs when showing cpp source code.
2484
2485 2008-06-30  Hans-Peter Nilsson  <hp@axis.com>
2486
2487         * MAINTAINERS (Authorized committers): Fix my email address.
2488
2489 2008-06-28  Vladimir Prus  <vladimir@codesourcery.com>
2490
2491         * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
2492         -target-download and -target-select via CLI, so that
2493         the quoting rules are the same as they were (unfortunately)
2494         in all prior gdb releases.
2495         * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
2496         (mi_cmd_target_download, mi_cmd_target_select): Remove.
2497         * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
2498         (mi_cmd_target_download, mi_cmd_target_select): Remove.
2499         (mi_cmd_execute): Set current_token even for commands
2500         routed via CLI.
2501
2502 2008-06-28  Ulrich Weigand  <uweigand@de.ibm.com>
2503
2504         * alphafbsd-tdep.c: Update for unwinder changes.
2505         * alpha-linux-tdep.c: Likewise.
2506         * alphanbsd-tdep.c: Likewise.
2507         * alphaobsd-tdep.c: Likewise.
2508         * avr-tdep.c: Likewise.
2509         * cris-tdep.c: Likewise.
2510         * frv-linux-tdep.c: Likewise.
2511         * frv-tdep.c: Likewise.
2512         * h8300-tdep.c: Likewise.
2513         * hppa-linux-tdep.c: Likewise.
2514         * iq2000-tdep.c: Likewise.
2515         * m32c-tdep.c: Likewise.
2516         * m32r-linux-tdep.c: Likewise.
2517         * m32r-tdep.c: Likewise.
2518         * m68hc11-tdep.c: Likewise.
2519         * mep-tdep.c: Likewise.
2520         * mn10300-tdep.c: Likewise.
2521         * mt-tdep.c: Likewise.
2522         * score-tdep.c: Likewise.
2523         * sh64-tdep.c: Likewise.
2524         * sh-tdep.c: Likewise.
2525         * sparc64fbsd-tdep.c: Likewise.
2526         * sparc64nbsd-tdep.c: Likewise.
2527         * sparc64obsd-tdep.c: Likewise.
2528         * v850-tdep.c: Likewise.
2529         * vaxobsd-tdep.c: Likewise.
2530         * vax-tdep.c: Likewise.
2531         * xstormy16-tdep.c: Likewise.
2532
2533 2008-06-28  Vladimir Prus  <vladimir@codesourcery.com>
2534
2535         * mi/mi-main.c (enum captured_mi_execute_command_actions)
2536         (captured_mi_execute_command_args): Remove.
2537         (captured_mi_execute_command): Cast the closure to mi_parse
2538         pointer, not to captured_mi_execute_command_args, and don't
2539         set the action field thereof.
2540         (mi_execute_command): Pass struct mi_parse, not
2541         captured_mi_execute_command_args to captured_mi_execute_command.
2542         (mi_execute_command): Remove (dead) code for suppressing
2543         printing prompt.
2544
2545 2008-06-28  Pedro Alves  <pedro@codesourcery.com>
2546
2547         * linux-nat.c (enum sigchld_state): New.
2548         (linux_nat_async_events_state): Renamed from
2549         linux_nat_async_events_enabled.
2550         (linux_nat_event_pipe_push, my_waitpid): Adjust.
2551         (sigchld_default_action): New.
2552         (lin_lwp_attach_lwp): Adjust.  Call linux_nat_async_events
2553         unconditionally.
2554         (linux_nat_create_inferior): Set events state to sigchld_default
2555         state.
2556         (linux_nat_resume): Adjust.
2557         (linux_nat_wait): Call linux_nat_async_events unconditionally.
2558         (sigchld_handler): Adjust.
2559         (linux_nat_async_mask): Don't set SIGCHLD actions here.
2560         (get_pending_events): Adjust.
2561         (linux_nat_async_events): Rewrite to handle enum sigchld_state
2562         instead of a boolean.
2563         (linux_nat_async): Adjust.
2564         (_initialize_linux_nat): Capture default SIGCHLD action into
2565         sigchld_default_action.
2566
2567 2008-06-28  Vladimir Prus  <vladimir@codesourcery.com>
2568
2569         * breakpoint.c (moribund_locations): New.
2570         (bpstat_stop_status): Process moribund locations.
2571         (update_global_location_list): Add removed
2572         locations to moribund_locations.
2573         (breakpoint_retire_moribund): New.
2574         * breakpoint.h (struct bp_location): New field
2575         events_till_retirement.
2576         (breakpoint_retire_moribund): Declare.
2577         * thread.c (thread_count): New.
2578         * infrun.c (handle_inferior_event): Call
2579         breakpoint_retire_moribund.
2580         * gdbthread.h (thread_count): Declare.
2581
2582 2008-06-27  Joseph Myers  <joseph@codesourcery.com>
2583
2584         * dfp.c (decimal_convert): Call match_endianness before and after
2585         conversion.
2586
2587 2008-06-27  Jonathan Larmour  <jifl@eCosCentric.com>
2588
2589         * remote.c (remote_insert_breakpoint): Ensure that if Z0
2590         unsupported and we fall back to memory_insert_breakpoint, we
2591         use the unmodified requested address.
2592
2593 2008-06-27  Joel Brobecker  <brobecker@adacore.com>
2594
2595         * dwarf2read.c (read_attribute_value): Issue a complaint when
2596         adjusting size attribute values of 0xffffffff as zero.
2597
2598 2008-06-27  Joseph Myers  <joseph@codesourcery.com>
2599
2600         * i386-tdep.c (i386_16_byte_align_p): New.
2601         (i386_push_dummy_call): Determine stack space required for
2602         arguments going forwards allowing for 16-byte alignment, then push
2603         arguments going forwards.
2604
2605 2008-06-27  Pedro Alves  <pedro@codesourcery.com>
2606
2607         * infrun.c (start_remote): Don't clear thread list here.
2608         * monitor.c (monitor_open): Include "gdbthread.h".  Clear thread
2609         list here.
2610         * remote.c (record_currthread): Upgrade the main thread and its
2611         entry in the thread list if this is the first time we hear about
2612         threads.
2613         (remote_thread_alive): Consider magic_null_ptid or a ptid without
2614         a tid member always alive.
2615         (remote_find_new_threads): Don't update the main thread here.
2616         (remote_start_remote): Clear thread list here.  Always add the
2617         main thread.
2618         (extended_remote_attach_1): Add the main thread here.
2619         (extended_remote_mourn_1): Re-add the main thread here.
2620         (extended_remote_create_inferior_1): Add a main thread.
2621
2622         * Makefile.in (monitor.o): Depend on $(gdbthread_h).
2623
2624 2008-06-27  Pedro Alves  <pedro@codesourcery.com>
2625
2626         Use ptid_t.tid to store thread ids instead of ptid_t.pid.
2627
2628         * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
2629         globals.
2630         (general_thread, continue_thread): Change type to ptid_t.
2631         (record_currthread): Take a ptid_t parameter instead of an
2632         integer.
2633         (MAGIC_NULL_PID): Delete.
2634         (set_thread): Take a ptid_t parameter and adjust.
2635         (set_general_thread, set_continue_thread): New.
2636         (remote_thread_alive, remote_newthread_step)
2637         (remote_current_thread, remote_find_new_threads)
2638         (remote_threads_info, remote_start_remote, remote_vcont_resume)
2639         (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
2640         (threadalive_test, remote_pid_to_str)
2641         (remote_get_thread_local_address): Adjust.
2642         (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
2643         and any_thread_ptid.
2644
2645 2008-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2646
2647         * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
2648         * configure: Regenerated.
2649
2650 2008-06-26  Joel Brobecker  <brobecker@adacore.com>
2651
2652         * dwarf2read.c (read_attribute_value): Treat size attribute
2653         values of 0xffffffff as if the attribute value was zero.
2654
2655 2008-06-26  Vladimir Prus  <vladimir@codesourcery.com>
2656
2657         * linux-nat.c: Add description of overall logic.
2658
2659 2008-06-26  Daniel Jacobowitz  <dan@codesourcery.com>
2660
2661         * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
2662         (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete.  Remove
2663         all dependencies on $(gdb_stdint_h).
2664         (distclean): Do not delete gdb_stdint.h.
2665         * acinclude.m4: Do not use stdint.m4.
2666         * configure.ac: Set GNULIB_STDINT_H.  Remove tests for stdint.h,
2667         uintptr_t, and gdb_stdint.h.
2668         * defs.h: Include <stdint.h>.
2669         * gdb_thread_db.h: Assume stdint.h is already included.
2670         * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
2671         rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
2672         include gdb_stdint.h.
2673         * configure, config.in: Regenerate.
2674
2675 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
2676
2677         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
2678         decimal floating-point values in GPRs for soft-float.
2679         (do_ppc_sysv_return_value): Handle returning decimal
2680         floating-point values in GPRs for soft-float.
2681
2682 2008-06-26  Vladimir Prus  <vladimir@codesourcery.com>
2683
2684         * target.c (target_read_until_error): New.
2685         * target.h (target_read_until_error): Declare.
2686         * mi/mi-main.c (mi_cmd_data_read_memory): Use
2687         target_read_until_error.
2688
2689 2008-06-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2690
2691         Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
2692         * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
2693         after the DECFLOAT detection to fix a memory leak.  Remove the
2694         redundant NUM initialization.  Protect the DECFLOAT detection memory
2695         access before the P block.  Restore the P memory content for the
2696         DECFLOAT detection.
2697
2698 2008-06-25  Vladimir Prus  <vladimir@codesourcery.com>
2699
2700         Kill the return value for all MI command functions.
2701         * mi/mi-cmds.h (enum mi_cmd_result): Remove.
2702         (mi_cmd_argv_ftype): Change return type to void.
2703
2704         * mi/mi-main.c: Adjust all function that implement
2705         MI commands to return nothing.
2706         (struct captured_mi_execute_command_actions):
2707         Remove the rc field.
2708         (mi_cmd_execute): Return nothing.
2709         (mi_execute_async_cli_command): Return nothing.
2710         (mi_cmd_exec_interrupt): Don't print ^done here.
2711         (mi_cmd_target_select): Don't print ^connected here.
2712         (captured_mi_execute_command): Don't check for MI_CMD_DONE.
2713         Special-case -target-select and output ^connected, not ^done.
2714
2715         * mi/mi-cmd-break.c: Adjust.
2716         * mi/mi-cmd-disas.c: Adjust.
2717         * mi/mi-cmd-env.c: Adjust.
2718         * mi/mi-cmd-file.c: Adjust.
2719         * mi/mi-cmd-stack.c: Adjust.
2720         * mi/mi-cmd-target.c: Adjust.
2721         * mi/mi-cmd-var.c: Adjust.
2722         * mi/mi-interp.c: Adjust.
2723         * mi/mi-symbol-cmds.c: Adjust.
2724
2725 2008-06-25  Vladimir Prus  <vladimir@codesourcery.com>
2726
2727         Emit ^running via observer.
2728         * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
2729         ^running here.
2730         (mi_on_resume): Print ^running if not previously output.
2731         * mi/mi-main.c (running_result_record_printed): New.
2732         (captured_mi_execute_command): Reset
2733         running_result_record_printed.  Use running_result_record_printed
2734         to decide if we should skip ^done.
2735         (mi_execute_async_cli_command): Don't print ^running here.
2736         * mi/mi-main.h (current_token, running_result_record_printed):
2737         Declare.
2738
2739 2008-06-24  Michael Snyder  <msnyder@specifix.com>
2740
2741         * infrun.c (_initialize_infrun): White space and typo fix.
2742
2743 2008-06-23  Christopher Faylor  <me.gdb.changelog@cgf.cx>
2744
2745         * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
2746         (do_initial_win32_stuff): Fix problem with inability to set breakpoints
2747         when first loading DLL with "dll" command.
2748
2749 2008-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2750
2751         * gnu-nat.c (proc_string): Use capital T for "Thread".
2752
2753 2008-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2754
2755         * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
2756
2757 2008-06-18  Joel Brobecker  <brobecker@adacore.com>
2758
2759         * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
2760         the target cannot run.
2761
2762 2008-06-18  Joel Brobecker  <brobecker@adacore.com>
2763
2764         * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
2765         we're attaching to a running process.
2766
2767 2008-06-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2768
2769         * win32-nat.c (handle_load_dll): Give dll name and load address
2770         if debug_events is on.
2771         (handle_unload_dll): Likewise.
2772
2773 2008-06-14  Vladimir Prus  <vladimir@codesourcery.com>
2774
2775         Don't suppress *running when doing finish.
2776         * infcall.c (call_function_by_hand): Set both
2777         suppress_resume_observer and suppress_stop_observer.
2778         * infcmd.c (suppress_run_stop_observers): Split into...
2779         (suppress_resume_observer, suppress_stop_observer): ...those.
2780         (finish_command_continuation): Clear suppress_stop_observer.
2781         (finish_command): Set suppress_stop_observer.
2782         * inferior.h (suppress_run_stop_observers): Split into...
2783         (suppress_resume_observer, suppress_stop_observer): ...those.
2784         * infrun.c (normal_stop): Check for suppress_stop_observer.
2785         * thread.c (set_running): Check for suppress_resume_observer.
2786
2787 2008-06-12  Pedro Alves  <pedro_alves@portugalmail.pt>
2788             Pierre Muller  <muller@ics.u-strasbg.fr>
2789
2790         * gdbarch.sh (gdbarch_skip_main_prologue): New.
2791         * gdbarch.h, gdbarch.c: Regenerate.
2792         * i386-tdep.h (i386_skip_main_prologue): Declare.
2793         * i386-tdep.c (i386_skip_main_prologue): New.
2794         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
2795         i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
2796         * symtab.c (find_function_start_sal): When pc points at the "main"
2797         function, call gdbarch_skip_main_prologue.
2798
2799 2008-06-11  Daniel Jacobowitz  <dan@codesourcery.com>
2800
2801         * value.c (value_primitive_field): Fetch lazy register values.
2802
2803 2008-06-11  Pedro Alves  <pedro@codesourcery.com>
2804
2805         * NEWS: Mention support removal of undocumented S AA p PID stop
2806         reply packet.
2807
2808         * remote.c (remote_wait): Remove undocumented S AA p PID support.
2809
2810 2008-06-10  Stan Shebs  <stan@codesourcery.com>
2811
2812         * MAINTAINERS: Update my affiliation and address.
2813
2814 2008-06-10  Andreas Schwab  <schwab@suse.de>
2815
2816         * top.c (print_gdb_version): Don't print final newline.
2817
2818 2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
2819
2820         Implement *running.
2821         * Makefile.in: Update dependencies.
2822         * gdbthread.h (struct thread_info): New field
2823         running_.
2824         (set_running, is_running): New.
2825         * thread.c (set_running, is_running): New.
2826         * inferior.h (suppress_normal_stop_observer): Rename to...
2827         (suppress_run_stop_observers): ..this.
2828         * infcmd.c (suppress_normal_stop_observer): Rename to...
2829         (suppress_run_stop_observers): ..this.
2830         (finish_command_continuation, finish_command): Adjust.
2831         * infcall.c (call_function_by_hand): Adjust.
2832         * infrun.c (normal_stop): Call set_running.
2833         * target.c (target_resume): New.  Call set_running.
2834         * target.h (target_resume): Convert from macro to
2835         a function.
2836
2837         * mi/mi-interp.c (mi_on_resume): New.
2838         (mi_interpreter_init): Register mi_on_resume.
2839
2840 2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
2841
2842         Use observers to report stop events in MI.
2843         * mi/mi-interp.c (mi_on_normal_stop): New.
2844         (mi_interpreter_init): Register mi_on_normal_stop.
2845         (mi_interpreter_exec_continuation): Remove.
2846         (mi_cmd_interpreter_exec): Don't register the above.
2847         * mi/mi-main.c (captured_mi_execute_command): Don't care
2848         about sync_execution.
2849         (mi_execute_async_cli_command): Don't install continuation.  Don't
2850         print *stopped.
2851         (mi_exec_async_cli_cmd_continuation): Remove.
2852
2853 2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
2854
2855         Suppress normal stop observer when it's problematic.
2856         * inferior.h (suppress_normal_stop_observer): New.
2857         * infcall.c (call_function_by_hand): Disable stop events when
2858         doing function calls.
2859         * infmcd.c (suppress_normal_stop_observer): New.
2860         (finish_command_continuation): Call normal_stop observer
2861         explicitly.
2862         (finish_command): Disable stop events inside proceed.
2863         * infrun.c (normal_stop): Don't call normal stop observer if
2864         suppressed of if multi-step is in progress.
2865
2866 2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
2867
2868         Remove stale code.
2869         * infrun.c (finish_command): Don't pass cleanup
2870         to continuation.
2871         (finish_command_continuation): Don't grab cleanup from
2872         the passed data, as we don't use, and cannot, use it anyway.
2873
2874 2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
2875
2876         Introduce common cleanup for restoring integers.
2877         * defs.h (make_cleanup_restore_integer): New declaration.
2878         (struct cleanup): New field free_arg.
2879         (make_my_cleanup_2): New.
2880         * utils.c (restore_integer_closure, restore_integer)
2881         (make_cleanup_restore_integer): New.
2882         (make_my_cleanup): Initialize the free_arg field and
2883         renamed to make_my_cleanup_2.
2884         (do_my_cleanups): Call free_arg.
2885         (discard_cleanups): Call free_arg.
2886         * breakpoint.c (restore_always_inserted_mode): Remove.
2887         (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
2888
2889 2008-06-09  Doug Evans  <dje@google.com>
2890
2891         * remote.c (remote_wait): Include beginning of malformed packet
2892         in error output.
2893
2894 2008-06-09  Tom Tromey  <tromey@redhat.com>
2895
2896         * completer.c (complete_line): Don't special-case
2897         expression_completer.
2898         (expression_completer): Only pass last word to
2899         location_completer.
2900         * c-exp.y (yylex): Check 'token', not 'operator'.
2901
2902 2008-06-09  Daniel Jacobowitz  <dan@codesourcery.com>
2903
2904         * configure.ac (build_warnings): Add -Wno-format for mingw.
2905         * configure: Regenerated.
2906
2907 2008-06-07  Daniel Jacobowitz  <dan@codesourcery.com>
2908
2909         * NEWS: Make indentation consistent.  Move exec tracing entry out
2910         of remote packet list.
2911
2912 2008-06-06  Tom Tromey  <tromey@redhat.com>
2913
2914         * value.h (evaluate_subexpression_type, extract_field_op):
2915         Declare.
2916         * printcmd.c (_initialize_printcmd): Use expression_completer for
2917         'p', 'inspect', 'call'.
2918         * parser-defs.h (parse_field_expression): Declare.
2919         * parse.c: Include exceptions.h.
2920         (in_parse_field, expout_last_struct): New globals.
2921         (mark_struct_expression): New function.
2922         (prefixify_expression): Return int.
2923         (prefixify_subexp): Return int.  Use expout_last_struct.
2924         (parse_exp_1): Update.
2925         (parse_exp_in_context): Add 'out_subexp' argument.  Handle
2926         in_parse_field.
2927         (parse_field_expression): New function.
2928         * expression.h (parse_field_expression): Declare.
2929         (in_parse_field): Likewise.
2930         * eval.c (evaluate_subexpression_type): New function.
2931         (extract_field_op): Likewise.
2932         * completer.h (expression_completer): Declare.
2933         * completer.c (expression_completer): New function.
2934         (count_struct_fields, add_struct_fields): New functions.
2935         * c-exp.y (yyparse): Redefine.
2936         (COMPLETE): New token.
2937         (exp): New productions.
2938         (saw_name_at_eof, last_was_structop): New globals.
2939         (yylex): Return COMPLETE when needed.  Recognize in_parse_field.
2940         (c_parse): New function.
2941         * breakpoint.c (_initialize_breakpoint): Use expression_completer
2942         for watch, awatch, and rwatch.
2943         * Makefile.in (parse.o): Depend on exceptions_h.
2944
2945 2008-06-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
2946
2947         PR gdb/1147
2948         * gdb/valopts.c (find_overload_match): Handle references
2949         to pointers.
2950
2951 2008-06-06  Paul N. Hilfinger  <hilfinger@adacore.com>
2952
2953         * ada-lang.c (ada_value_assign): Correct big-endian case to take into
2954         account the bitsize of the 'from' operand.
2955
2956 2008-06-06  Pedro Alves  <pedro@codesourcery.com>
2957
2958         * annotate.h (annotate_thread_changed): Declare.
2959
2960 2008-06-06  Nick Roberts  <nickrob@snap.net.nz>
2961
2962         * annotate.c (annotate_thread_changed): New function.
2963         * thread.c (thread_command) : Use it.
2964         * infrun.c (normal_stop): Use it.
2965
2966 2008-06-05  Vladimir Prus  <vladimir@codesourcery.com>
2967             Nathan Sidwell  <nathan@codesourcery.com>
2968             Joseph Myers  <joseph@codesourcery.com>
2969
2970         * acinclude.m4: Include ../config/acx.m4.
2971         * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
2972         * configure, config.in: Regenerate.
2973         * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
2974         address.
2975         * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
2976
2977 2008-06-05  Pedro Alves  <pedro@codesourcery.com>
2978
2979         Replace 'target async' by 'maintenance set remote-async' and
2980         'target remote' combination.
2981
2982         * remote.c (remote_async_wait): Merge into remote_wait, and
2983         remove.
2984         (remote_async_permitted, remote_async_permitted_set): New
2985         variables.
2986         (set_maintenance_remote_async_permitted)
2987         (show_maintenance_remote_async_permitted): New functions.
2988         (remote_async_ops, extended_async_remote_ops): Delete.
2989         (remote_async_open, extended_remote_async_open): Delete.
2990         (remote_open_1): Drop async_p parameter.  Update callers.  Replace
2991         async_p with remote_async_permitted checks.
2992         (extended_async_remote_attach): Delete.
2993         (remote_resume, remote_async_resume): Merge and leave remote_resume.
2994         (remote_async_terminal_inferior): Rename to...
2995         (remote_terminal_inferior): ... this, and add
2996         remote_async_termitted check.
2997         (remote_async_terminal_ours): Rename to...
2998         (remote_terminal_ours): ... this, and add remote_async_termitted
2999         check.
3000         (remote_wait, remote_async_wait): Merge and leave remote_wait
3001         only.
3002         (remote_kill, remote_async_kill): Merge and leave remote_kill
3003         only.
3004         (remote_async_mourn, extended_async_remote_mourn): Delete.
3005         (extended_remote_create_inferior_1): Drop async_p parameter.
3006         Update callers.  Always use extended_remote_ops.
3007         (extended_remote_async_create_inferior): Delete.
3008         (remote_return_zero): Delete.
3009         (init_remote_ops): Register remote_can_async_p, remote_async,
3010         remote_async_mask, remote_terminal_inferior and
3011         remote_terminal_ours.
3012         (remote_can_async_p, remote_is_async_p): Check for
3013         remote_async_permitted.
3014         (init_remote_async_ops, init_extended_async_remote_ops): Remove.
3015         (set_remote_cmd): Don't add async and extended-async targets.
3016         (_initialize_remote): Add set/show remote-async maintenance
3017         commands.
3018
3019 2008-06-05  Pedro Alves  <pedro@codesourcery.com>
3020
3021         * remote.c (kill_kludge): Delete.
3022         (remote_wait, remote_async_wait): Don't set it.
3023         (remote_kill, remote_async_kill): Don't do anything with it.
3024
3025 2008-06-05  Pedro Alves  <pedro@codesourcery.com>
3026
3027         * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
3028
3029 2008-06-05  Aleksandar Ristovski  <aristovski@qnx.com>
3030
3031         * bcache.c (bcache_data): Call deprecated_bcache_added function.
3032         (deprecated_bcache_added): New function name. Body of function
3033         bcache_data is used here with the addition of 'added' argument.
3034         * bcache.h (deprecated_bcache_added): New function.
3035         * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
3036         work from add_psymbol_to_list - initialises partial symbol and stashes
3037         it in objfile's cache.
3038         (append_psymbol_to_list): New helper function, takes other part of
3039         work from add_psymbol_to_list - adds partial symbol to the given list.
3040         (add_psymbol_to_list): Call helper functions instead of doing work
3041         here. If adding to global list, do not duplicate partial symbols in the
3042         partial symtab.
3043
3044 2008-06-05  Aleksandar Ristovski  <aristovski@qnx.com>
3045
3046         * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
3047         'exception caught|thrown' message.
3048
3049 2008-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3050
3051         * Makefile.in: Update dependencies.
3052         * dwarf2expr.c: New include "gdb_assert.h".
3053         (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
3054         (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
3055         (execute_stack_op): Error out on too large RECURSION_DEPTH.
3056         Increase/decrease RECURSION_DEPTH around the function.
3057
3058 2008-06-05  Daniel Jacobowitz  <dan@codesourcery.com>
3059
3060         * remote.c (get_offsets): Handle a single segment.
3061         * symfile.c (symfile_map_offsets_to_segments): Allow more bases
3062         than segments.
3063
3064 2008-06-03  Daniel Jacobowitz  <dan@codesourcery.com>
3065
3066         * solib-svr4.c (struct lm_info): Add lm_addr.
3067         (main_lm_addr): New.
3068         (svr4_default_sos): Set lm_addr.
3069         (svr4_current_sos): Set lm_addr and main_lm_addr.
3070         (svr4_fetch_objfile_link_map): Rewrite.
3071         (svr4_clear_solib): Clear main_lm_addr.
3072
3073 2008-06-03  Michael Snyder  <msnyder@redhat.com>
3074             Joseph Myers  <joseph@codesourcery.com>
3075
3076         * mips-tdep.c (mips_eabi_return_value): Replace stub that always
3077         returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
3078
3079 2008-06-02  Roman Zippel <zippel@linux-m68k.org>
3080
3081         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
3082
3083 2008-06-02  Roman Zippel <zippel@linux-m68k.org>
3084
3085         * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
3086
3087 2008-06-01  Joel Brobecker  <brobecker@adacore.com>
3088
3089         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
3090         treat pointers in data space as function descriptors if the
3091         target address is also in the data space.
3092
3093 2008-05-30  Joel Brobecker  <brobecker@adacore.com>
3094
3095         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
3096         the trad-frame register value for the SP register.
3097
3098 2008-05-29  Mark Kettenis  <kettenis@gnu.org>
3099
3100         * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
3101
3102 2008-05-28  Joel Brobecker  <brobecker@adacore.com>
3103
3104         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
3105         that identifies function descriptors outside of the .opd section.
3106
3107 2008-05-28  Aleksandar Ristovski  <aristovski@qnx.com>
3108
3109         * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
3110         temporary catchpoints.  In MI add missing fields 'reason', 'disp',
3111         'bkptno'.
3112         (print_mention_exception_catchpoint): Add 'Temporary' for temporary
3113         catchpoints.
3114         (handle_gnu_v3_exceptions): Use tempflag.
3115
3116 2008-05-28  Vladimir Prus  <vladimir@codesourcery.com>
3117
3118         Refactor varobj_update interface.
3119         * varobj.c (varobj_update): Report changes as vector.  Also
3120         return not just a list of varobj, but a list of special structures
3121         that tell what exactly has changed.
3122         * varobj.h (enum varobj_update_error): Rename to
3123         varobj_scope_status.
3124         (struct varobj_update_result_t): New.
3125         (varobj_update): Adjust prototype.
3126         * mi/mi-cmd-var.c: Adjust for changes.
3127
3128 2008-05-28  Vladimir Prus  <vladimir@codesourcery.com>
3129
3130         * varobj.c (varobj_update): Fix comment typo.
3131         Fix indentation.
3132
3133 2008-05-26  Joel Brobecker  <brobecker@adacore.com>
3134
3135         Set the symtab field of symbols read from ECOFF debugging entries.
3136         * mdebugread.c (add_symbol): Add new parameter symtab.
3137         (parse_symbol): Update calls to add_symbol throughout.
3138
3139 2008-05-27  Andreas Schwab  <schwab@suse.de>
3140
3141         * symtab.h (enum address_class): Remove LOC_REGPARM and
3142         LOC_COMPUTED_ARG.
3143         (struct symbol): Add is_argument.
3144         (SYMBOL_IS_ARGUMENT): Define.
3145
3146         * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
3147         * buildsym.c (finish_block): Likewise.
3148         * stack.c (print_frame_args, print_block_frame_locals)
3149         (print_frame_arg_vars): Likewise.
3150         * symtab.c (lookup_block_symbol): Likewise.
3151         * tracepoint.c (add_local_symbols): Likewise.
3152         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3153
3154         * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
3155         * dwarf2read.c (new_symbol): Likewise.
3156         * mdebugread.c (parse_symbol): Likewise.
3157         * stabsread.c (define_symbol): Likewise.
3158
3159         * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
3160         and LOC_COMPUTED_ARG.
3161         * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
3162         * ax-gdb.c (gen_var_ref): Likewise.
3163         * eval.c (evaluate_subexp_for_address): Likewise.
3164         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
3165         * m2-exp.y (yylex): Likewise.
3166         * printcmd.c (address_info): Likewise.
3167         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
3168         * tracepoint.c (collect_symbol, scope_info): Likewise.
3169
3170 2008-05-24  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3171
3172         * gdbarch.sh: Added new gdbarch struct
3173         core_regset_sections.
3174         * gdbarch.c: Refreshed.
3175         * gdbarch.h: Refreshed.
3176         * regset.h (core_regset_section): Declared.
3177         * linux-nat.c (linux_nat_do_thread_registers): Added
3178         support for the new gdbarch struct core_regset_sections.
3179         * utils.c (host_address_to_string): New function.
3180         * defs.h (host_address_to_string): New prototype.
3181         * i386-linux-tdep.c (i386_regset_rections): New register
3182         sections list for i386.
3183           (i386_linux_init_abi): Initialized new gdbarch struct
3184           core_regset_sections.
3185         * Makefile.in: Updated to reflect dependency changes.
3186         * ppc-linux-tdep.c (ppc_regset_sections): Register
3187         sections list for ppc.
3188           (ppc_linux_init_abi): Initialized new gdbarch struct
3189           core_regset_sections
3190
3191 2008-05-24  Andreas Schwab  <schwab@suse.de>
3192
3193         * linespec.c (decode_objc): Save current language around call to
3194         get_selected_block.
3195
3196 2008-05-23  Joel Brobecker  <brobecker@adacore.com>
3197
3198         * valprint.h (get_array_bounds): Renames get_array_low_bound.
3199         * valprint.c (get_array_bounds): Renames get_array_low_bound.
3200         Return the proper bound value if the array index type is an
3201         enumerated type. Compute the high bound if requested.
3202         (val_print_array_elements): Handle the case when the array
3203         element has a null size.
3204         * ada-valprint.c (print_optional_low_bound): Add handling
3205         for empty arrays or arrays of zero-size elements.
3206         (ada_val_print_array): New function, extracted out from
3207         ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
3208         handle empty arrays and arrays of zero-size elements.
3209         (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
3210         code by call to ada_val_print_array.
3211         (ada_value_print): Remove handling of null array.  The handling
3212         was incomplete and is now better handled by ada_val_print_array.
3213
3214 2008-05-23 Markus Deuling  <deuling@de.ibm.com>
3215
3216         * annotate.c (annotate_source, annotate_frame_begin): Replace
3217         deprecated_print_address_numeric with paddress.
3218         * cli/cli-cmds.c (list_command, edit_command): Likewise.
3219         * tui/tui-stack.c (tui_make_status_line): Likewise.
3220
3221         * defs.h (deprecated_print_address_numeric): Remove.
3222         * printcmd.c (deprecated_print_address_numeric): Remove.
3223         * maint.c (maint_print_section_info): Fix comment.
3224
3225 2008-05-23 Markus Deuling  <deuling@de.ibm.com>
3226
3227         * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
3228         print_binary_chars, print_char_chars): Add byte_order parameter and
3229         replace gdbarch_byte_order.
3230         (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
3231         expressions and remove them.  Remove unused TWO_TO_FOURTH.
3232         (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
3233         endianness.  Update call to print_hex_chars.
3234         * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
3235         print_binary_chars, print_char_chars): Add byte_order parameter.
3236         * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
3237         get at the endianness.  Update print_*_char calls to use byte_order.
3238
3239 2008-05-22  Ulrich Weigand  <uweigand@de.ibm.com>
3240
3241         * symtab.h (struct symbol): Make "aux_value" member a void pointer
3242         instead of a union.
3243         (SYMBOL_LOCATION_BATON): Update.
3244
3245 2008-05-22  Ulrich Weigand  <uweigand@de.ibm.com>
3246
3247         * symtab.h (enum address_class): Remove LOC_BASEREG and
3248         LOC_BASEREG_ARG.
3249         (struct symbol): Remove "basereg" member of "aux_value" union.
3250         (SYMBOL_BASEREG): Remove.
3251
3252         * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
3253         or LOC_BASEREG_ARG.
3254         * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
3255         (ada_add_block_symbols): Likewise.
3256         * ax-gdb.c (gen_var_ref): Likewise.
3257         * buildsym.c (finish_block): Likewise.
3258         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
3259         * m2-exp.y (yylex): Likewise.
3260         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3261         * printcmd.c (address_info): Likewise.
3262         * stack.c (print_frame_args, print_block_frame_locals): Likewise.
3263         (print_frame_arg_vars): Likewise.
3264         * symmisc.c (print_symbol): Likewise.
3265         * symtab.c (lookup_block_symbol): Likewise.
3266         * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
3267         (scope_info): Likewise.
3268
3269 2008-05-22  Ulrich Weigand  <uweigand@de.ibm.com>
3270
3271         * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
3272
3273         * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
3274         * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
3275         (ada_add_block_symbols): Likewise.
3276         * ax-gdb.c (gen_var_ref): Likewise.
3277         * buildsyms.c (finish_block): Likewise.
3278         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
3279         * m2-exp.y (yylex): Likewise.
3280         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3281         * printcmd.c (address_info): Likewise.
3282         * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
3283         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
3284         * symtab.c (lookup_block_symbol): Likewise.
3285         * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
3286         (scope_info): Likewise.
3287
3288 2008-05-22  Ulrich Weigand  <uweigand@de.ibm.com>
3289
3290         * symtab.h (enum address_class): Remove LOC_INDIRECT and
3291         LOC_HP_THREAD_LOCAL_STATIC.
3292
3293         * findvar.c (symbol_read_needs_frame, read_var_value): Do not
3294         handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
3295         (read_var_value): Likewise.
3296         * buildsym.c (finish_block): Likewise.
3297         * objfiles.c (objfile_relocate): Likewise.
3298         * printcmd.c (address_info): Likewise.
3299         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
3300         * tracepoint.c (scope_info): Likewise.
3301
3302 2008-05-21 Markus Deuling  <deuling@de.ibm.com>
3303            Maxim Grigoriev  <maxim2405@gmail.com>
3304
3305         * xtensa-tdep.c (xtensa_read_register): Remove.
3306         (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
3307         argument litbase to call0_frame_cache().
3308         (call0_track_op, call0_analyze_prologue)
3309         (call0_frame_cache): Use extra argument litbase.
3310
3311 2008-05-21  Joel Brobecker  <brobecker@adacore.com>
3312
3313         * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
3314
3315 2008-05-21  Ulrich Weigand  <uweigand@de.ibm.com>
3316
3317         * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
3318
3319 2008-05-21  Ulrich Weigand  <uweigand@de.ibm.com>
3320
3321         * alpha-mdebug-tdep.c: Include "trad-frame.h".
3322         (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
3323         struct trad_frame_saved_reg *.
3324         (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
3325         trad_frame_alloc_saved_regs.  Update accesses.  Record previous
3326         value of SP as being vfp.
3327         (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
3328         * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
3329
3330 2008-05-21  Markus Deuling  <deuling@de.ibm.com>
3331
3332         * score-tdep.c (score_print_insn): Get the current endianess from
3333         disassemble_info instead of gdbarch_byte_order.
3334
3335 2008-05-21  Pedro Alves  <pedro@codesourcery.com>
3336
3337         * frame.c (get_prev_frame_1): Build frame id before setting
3338         this_frame->prev_p, not after.
3339
3340 2008-05-21  Nick Roberts  <nickrob@snap.net.nz>
3341
3342         * annotate.c (annotate_new_thread): New function for new-thread
3343         annotation.
3344         * annotate.h: (annotate_new_thread): New extern.
3345         * thread.c (add_thread_with_info): Use it.
3346         * Makefile.in (thread.o): Add dependency on annotate.h.
3347
3348 2008-05-20  Joel Brobecker  <brobecker@adacore.com>
3349
3350         * win32-nat.c (win32_wait): Block the control-c event while
3351         waiting for a debug event.
3352
3353 2008-05-19  Pedro Alves  <pedro@codesourcery.com>
3354
3355         * symtab.h (lookup_symbol_in_language): Update comment.
3356         * symtab.c (lookup_symbol_aux_block): Update comment.
3357         * ada-lang.c (ada_lookup_symbol_list): Update comment.
3358
3359 2008-05-19  Ulrich Weigand  <uweigand@de.ibm.com>
3360
3361         * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
3362         (lookup_symbol): Likewise.
3363         * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
3364         (lookup_symbol): Likewise.
3365         (search_symbols): Update.
3366
3367         * linespec.c (find_methods, collect_methods): Update.
3368         (add_matching_methods, add_constructors): Update.
3369         (decode_compound, decode_dollar, decode_variable): Update.
3370         (lookup_prefix_sym): Update.
3371
3372         (symbol_found): Remove SYM_SYMTAB parameter.
3373         Use SYMBOL_SYMTAB (sym) instead.
3374
3375         * gdbtypes.c (lookup_typename): Update.
3376         (lookup_struct, lookup_union, lookup_enum): Update.
3377         (lookup_template_type): Update.
3378         (check_typedef): Update.
3379         * language.c (lang_bool_type): Update.
3380         * mdebugread.c (parse_procedure): Update.
3381         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3382         * parse.c (write_dollar_variable): Update.
3383         * printcmd.c (address_info): Update.
3384         * source.c (select_source_symtab): Update.
3385         * stack.c (print_frame_args, print_frame_arg_vars): Update.
3386         * valops.c (find_function_in_inferior): Update.
3387         (value_struct_elt_for_reference): Update.
3388         * value.c (value_static_field, value_fn_field): Update.
3389
3390         * alpha-mdebug-tdep.c (find_proc_desc): Update.
3391         * arm-tdep.c (arm_skip_prologue): Update.
3392         * mt-tdep.c (mt_skip_prologue): Update.
3393         * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
3394
3395         * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
3396         * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
3397         (add_defn_to_vec): Likewise.
3398         (ada_add_block_symbols): Likewise.
3399         (lookup_cached_symbol, cache_symbol): Likewise.
3400         (standard_lookup): Update.
3401         (ada_lookup_symbol_list): Update.
3402
3403         * c-valprint.c (c_val_print): Update.
3404         * cp-support.c (cp_lookup_rtti_type): Update.
3405         * jv-lang.c (java_lookup_class, get_java_object_type): Update.
3406         * objc-lang.c (lookup_struct_typedef, find_imps): Update.
3407         * p-valprint.c (pascal_val_print): Update.
3408         * scm-lang.c (scm_lookup_name): Update.
3409
3410         * c-exp.y: Update.
3411         * f-exp.y: Update.
3412         * jv-exp.y: Update.
3413         * m2-exp.y: Update.
3414         * objc-exp.y: Update.
3415         * p-exp.y: Update.
3416
3417 2008-05-19  Ulrich Weigand  <uweigand@de.ibm.com>
3418
3419         * language.h (struct language_defn): Remove SYMTAB parameter from
3420         la_lookup_symbol_nonlocal callback function pointer.
3421
3422         * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
3423         (ada_lookup_encoded_symbol): Likewise.
3424         * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
3425         Always call fixup_symbol_section.
3426         (ada_lookup_symbol): Remove SYMTAB parameter.
3427         (ada_lookup_symbol_nonlocal): Likewise.
3428         * ada-exp.y (write_object_renaming): Update.
3429         (find_primitive_type): Likewise.
3430
3431         * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
3432         (cp_lookup_symbol_namespace): Likewise.
3433         * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
3434         (lookup_symbol_file): Likewise.
3435         (lookup_possible_namespace_symbol): Likewise.
3436         (cp_lookup_symbol_nonlocal): Likewise.
3437         (cp_lookup_symbol_namespace): Likewise.
3438         (cp_lookup_nested_type): Update.
3439
3440         * scm-valprint.c (scm_inferior_print): Update.
3441         * valops.c (value_maybe_namespace_elt): Update.
3442
3443         * solist.h (struct target_so_ops): Remove SYMTAB parameter from
3444         lookup_lib_global_symbol callback function pointer.
3445         (solib_global_lookup): Remove SYMTAB parameter.
3446         * solib.c (solib_global_lookup): Remove SYMTAB parameter.
3447         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
3448
3449         * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
3450         (lookup_symbol_static): Likewise.
3451         (lookup_symbol_global): Likewise.
3452         (lookup_symbol_aux_block): Likewise.
3453         (lookup_global_symbol_from_objfile): Likewise.
3454         * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
3455         (lookup_symbol_aux_local): Likewise.
3456         (lookup_symbol_aux_block): Likewise.
3457         (lookup_symbol_aux_symtabs): Likewise.
3458         (lookup_symbol_aux_psymtabs): Likewise.
3459         (lookup_global_symbol_from_objfile): Likewise.
3460         (basic_lookup_symbol_nonlocal): Likewise.
3461         (lookup_symbol_static): Likewise.
3462         (lookup_symbol_global): Likewise.
3463
3464         (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
3465
3466 2008-05-17  Pedro Alves  <pedro@codesourcery.com>
3467
3468         * remote.c (init_extended_remote_ops): Fix typo.
3469
3470 2008-05-16  Pedro Alves  <pedro@codesourcery.com>
3471
3472         * NEWS: Mention new DICOS x86 target configuration.
3473
3474 2008-05-16  Pedro Alves  <pedro@codesourcery.com>
3475             Ulrich Weigand  <uweigand@de.ibm.com>
3476
3477         * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
3478         * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
3479
3480         * symtab.c (fixup_section): Remove prototype.  Add ADDR parameter;
3481         use it instead of ginfo->value.address.  Look up minimal symbol by
3482         address and name.  Assume OBJFILE is non-NULL.
3483         (fixup_symbol_section): Ensure we always have an objfile to look
3484         into.  Extract and pass to fixup_section the symbol's address that
3485         will match the minimal symbol's address.
3486         (fixup_psymbol_section): Likewise.
3487
3488         (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
3489         overlays and the addrmap returned the wrong section.
3490
3491         * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
3492         calling fixup_symbol_section.
3493
3494 2008-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
3495
3496         * minsyms.c: Include "target.h".
3497         (find_solib_trampoline_target): Handle minimal symbols pointing
3498         to function descriptors as well.
3499         * Makefile.in (minsyms.o): Update dependencies.
3500
3501         * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
3502         (ppc64_standard_linkage1): ... this.  Fix optional instructions.
3503         (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
3504         (PPC64_STANDARD_LINKAGE1_LEN): ... this.
3505         (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
3506         (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
3507         (ppc64_standard_linkage_target): Rename to ...
3508         (ppc64_standard_linkage1_target): ... this.
3509         (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
3510         (ppc64_skip_trampoline_code): Support three variants of standard
3511         linkage stubs.  Call find_solib_trampoline_target to handle
3512         glink stubs.
3513
3514 2008-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
3515
3516         * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
3517         ppc64_sysv_abi_adjust_breakpoint_address.
3518         * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
3519         * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
3520
3521 2008-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
3522
3523         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
3524         (ppc_linux_init_abi): Install find_solib_trampoline_target instead
3525         of ppc_linux_skip_trampoline_code.
3526
3527 2008-05-15  Daniel Jacobowitz  <dan@codesourcery.com>
3528
3529         * gdbarch.sh: Delete dwarf_reg_to_regnum.
3530         * gdbarch.c, gdbarch.h: Regenerated.
3531         * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
3532         hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
3533         s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
3534
3535 2008-05-15  Pedro Alves  <pedro@codesourcery.com>
3536
3537         * linux-nat.c (trap_ptid): Delete.
3538         (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
3539         Adjust.
3540         * linux-thread-db.c (thread_db_wait): Adjust.
3541
3542 2008-05-15  Joel Brobecker  <brobecker@adacore.com>
3543
3544         * linespec.c (decode_line_1): Fix a couple of comments.
3545
3546 2008-05-15  Alan Modra  <amodra@bigpond.net.au>
3547
3548         * dbxread.c: Formatting.
3549         (INTERNALIZE_SYMBOL): Init n_other.
3550         (set_namestring): Take pointer to nlist arg rather than struct
3551         copy.  Update all callers.
3552
3553 2008-05-15  Andreas Schwab  <schwab@suse.de>
3554
3555         * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
3556         (dwarf2read.o): Add $(addrmap_h).
3557
3558 2008-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
3559
3560         * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
3561         (ppc64_linux_convert_from_func_ptr_addr): ... to this.  No longer try
3562         to handle ppc32 PLT entries.
3563         (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
3564         only on ppc64.
3565
3566 2008-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
3567
3568         * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
3569         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
3570         lookup_minimal_symbol_by_pc_section.  Prefer trampolines if requested.
3571         (lookup_minimal_symbol_by_pc_section): Use
3572         lookup_minimal_symbol_by_pc_section_1.
3573         (lookup_solib_trampoline_symbol_by_pc): Likewise.
3574
3575 2008-05-13  Joel Brobecker  <brobecker@adacore.com>
3576
3577         * findcmd.c: Add #include "gdb_stdint.h".
3578         * Makefile.in (findcmd.o): Update dependencies.
3579
3580 2008-05-11  David S. Miller  <davem@davemloft.net>
3581
3582         * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
3583         long double size override, Linux does use 128-bit now.
3584
3585         * sparc-linux-tdep.c (PSR_SYSCALL): Define.
3586         (sparc_linux_write_pc): New function.
3587         (sparc32_linux_init_abi): Register it.
3588         * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
3589         (sparc64_linux_write_pc): New function.
3590         (sparc64_linux_init_abi): Register it.
3591
3592         * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
3593         dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
3594
3595 2008-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
3596
3597         * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
3598         and info.tdep_info before calling gdbarch_init_osabi.
3599
3600 2008-05-09  Joel Brobecker  <brobecker@adacore.com>
3601
3602         * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
3603         the type of the right hand side of the assignment to the type
3604         of the left hand side if the left hand side is a convenience
3605         variable.
3606
3607 2008-05-09  Ulrich Weigand  <uweigand@de.ibm.com>
3608
3609         * NEWS: Mention gdbserver bi-arch capability.
3610
3611 2008-05-09  Doug Evans  <dje@google.com>
3612
3613         New "find" command.
3614         * NEWS: Document find command and qSearch:memory packet.
3615         * Makefile.in (SFILES): Add findcmd.c.
3616         (COMMON_OBJS): Add findcmd.o.
3617         (findcmd.o): New rule.
3618         * findcmd.c: New file.
3619         * target.h (target_ops): New member to_search_memory.
3620         (simple_search_memory): Declare.
3621         (target_search_memory): Declare.
3622         * target.c (simple_search_memory): New fn.
3623         (target_search_memory): New fn.
3624         * remote.c (PACKET_qSearch_memory): New packet kind.
3625         (remote_search_memory): New fn.
3626         (init_remote_ops): Init to_search_memory.
3627         (init_extended_remote_ops): Ditto.
3628         (_initialize_remote): Add qSearch:memory packet config command.
3629
3630 2008-05-09  Eli Zaretskii  <eliz@gnu.org>
3631
3632         * thread.c (_initialize_thread): Don't use commas and periods in
3633         first line of doc string of "set/show print thread-events".
3634
3635 2008-05-08  Joel Brobecker  <brobecker@adacore.com>
3636
3637         * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
3638         Update for unwinder changes.
3639
3640 2008-05-08  Joel Brobecker  <brobecker@adacore.com>
3641
3642         * frame.c (get_frame_base_address, get_frame_locals_address)
3643         (get_frame_args_address): Pass the correct frame when calling
3644         frame_base_find_by_frame.
3645
3646 2008-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
3647
3648         * remote.c (extended_remote_attach_1): Call target_find_description.
3649
3650 2008-05-08  Daniel Jacobowitz  <dan@codesourcery.com>
3651
3652         * remote.c (extended_remote_create_inferior_1): Clean up
3653         before marking the target running.
3654
3655 2008-05-08  Joel Brobecker  <brobecker@adacore.com>
3656
3657         * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
3658         changes.
3659
3660 2008-05-07  Joel Brobecker  <brobecker@adacore.com>
3661
3662         * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
3663         sparc64-sol2-tdep.c: Update for unwinder changes.
3664
3665 2008-05-07  Daniel Jacobowitz  <dan@codesourcery.com>
3666
3667         * cp-support.c (mangled_name_to_comp): Initialize storage.
3668         (unqualified_name_from_comp): Likewise.
3669
3670 2008-05-07  Jie Zhang  <jie.zhang@analog.com>
3671
3672         * remote.c (remote_insert_breakpoint): Call get_remote_state
3673         after gdbarch_breakpoint_from_pc is called.
3674         (remote_insert_hw_breakpoint): Likewise.
3675
3676 2008-05-06  Joel Brobecker  <brobecker@adacore.com>
3677
3678         * valprint.c (val_print): Add new language parameter and use it
3679         instead of using the current_language. Update calls to val_print
3680         throughout.
3681         (common_val_print): Add new langauge parameter and pass it to
3682         val_print.
3683         * value.h (struct language_defn): Add opaque declaration.
3684         (val_print, common_val_print): Update declarations.
3685         * stack.c (print_frame_args): Update call to common_val_print
3686         using the appropriate language.
3687         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3688         * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
3689         mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
3690         scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
3691         #include "language.h" if necessary.
3692         Update calls to val_print and common_val_print.
3693         * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
3694         Update dependencies.
3695
3696 2008-05-06  Joel Brobecker  <brobecker@adacore.com>
3697
3698         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
3699         pointing inside a non-executable section as function descriptors.
3700
3701 2008-05-06  Pedro Alves  <pedro@codesourcery.com>
3702
3703         * inf-loop.c (inferior_event_handler): Run all continuations and
3704         print any language change before running the breakpoint commands.
3705
3706 2008-05-06  Joel Brobecker  <brobecker@adacore.com>
3707
3708         * frame-unwind.c (frame_unwind_got_bytes): New function.
3709         * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
3710         * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
3711         for unwinder changes.
3712
3713 2008-05-05  Doug Evans  <dje@google.com>
3714
3715         * NEWS: Mention new /m modifier for disassemble command.
3716         * cli/cli-cmds.c (print_disassembly): New function.
3717         (disassemble_current_function): New function
3718         (disassemble_command): Recognize /m modifier, print mixed
3719         source+assembly.
3720         (init_cli_cmds): Update disassemble help text.
3721
3722 2008-05-05  Maxim Grigoriev  <maxim2405@gmail.com>
3723
3724         * xtensa-tdep.c: Update for unwinder changes.
3725
3726 2008-05-05  Andreas Schwab  <schwab@suse.de>
3727
3728         Update m68k port for unwinder changes.
3729         * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
3730         (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
3731         (m68k_frame_unwind): Use default_frame_sniffer.
3732         (m68k_frame_sniffer): Remove.
3733         (m68k_frame_base_address): Expect this_frame.
3734         (m68k_dummy_id): Renamed from m68k_unwind_dummy_id.  Expect
3735         this_frame.
3736         (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
3737         dwarf2_append_unwinders, and frame_unwind_append_unwinder.
3738         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
3739         parameter instead of pc value.
3740         (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
3741         Expect this_frame.
3742         (m68k_linux_sigtramp_frame_this_id)
3743         (m68k_linux_sigtramp_frame_prev_register)
3744         (m68k_linux_sigtramp_frame_sniffer): Update signature.
3745         (m68k_linux_sigtramp_frame_unwind): Use
3746         m68k_linux_sigtramp_frame_sniffer.
3747         (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
3748
3749         * m68klinux-nat.c (store_register): Fix typo.
3750
3751 2008-05-05  Pedro Alves  <pedro@codesourcery.com>
3752
3753         * infcmd.c (step_1): Put thread id on the stack to avoid possible
3754         NULL dereferencing.
3755
3756 2008-05-05  Luis Machado  <luisgpm@br.ibm.com>
3757
3758         * symfile.c (reread_symbols): Update objfile's entry point.
3759
3760 2008-05-05  Aleksandar Ristovski  <aristovski@qnx.com>
3761             Joel Brobecker  <brobecker@adacore.com>
3762
3763         * ada-lang.c: Update throughout to use symbol_matches_domain
3764         instead of matching the symbol domain explictly.
3765         * dwarf2read.c (add_partial_symbol): Do not add new psym for
3766         STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
3767         class as typedefs. See lookup_partial_symbol function.
3768         (new_symbol): Similar to add_partial_symbol, do not create
3769         symbol for the typedef. See lookup_block_symbol.
3770         * symtab.c (symbol_matches_domain): New function, takes care
3771         of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
3772         (lookup_partial_symbol): Use symbol_matches_domain to see if the
3773         found psym domain matches the given domain.
3774         (lookup_block_symbol): Likewise.
3775
3776 2008-05-05  Vladimir Prus  <vladimir@codesourcery.com>
3777
3778         * top.c (command_line_handler_continuation): Remove.
3779         (execute_command): Do not install the above.
3780
3781 2008-05-05  Vladimir Prus  <vladimir@codesourcery.com>
3782
3783         * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
3784         and catch all exceptions from it.
3785         * top.c (command_line_handler_continuation): Don't
3786         call bpstat_do_action here.
3787
3788 2008-05-04  Daniel Jacobowitz  <dan@codesourcery.com>
3789
3790         * dwarf2read.c (struct dwarf2_cu): Add type_hash.
3791         (struct die_info): Remove type.
3792         (read_type_die, read_typedef, read_base_type, read_subrange_type)
3793         (read_structure_type, read_enumeration_type, read_array_type)
3794         (read_tag_pointer_type, read_tag_ptr_to_member_type)
3795         (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
3796         (read_tag_string_type, read_subroutine_type, read_set_type)
3797         (read_unspecified_type): Delete prototypes.  Remove check for
3798         already-loaded type.  Return the new type.
3799         (set_die_type): Return the new type.
3800         (reset_die_and_siblings_types): Delete.
3801         (load_comp_unit, load_full_comp_unit): Set type_hash.
3802         (process_queue): Remove call to reset_die_and_siblings_types.
3803         (process_die): Do not read most types here.  Use read_type_die
3804         for others.
3805         (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
3806         (quirk_gcc_member_function_pointer): Return the new type.
3807         (process_structure_scope, process_enumeration_scope): Use
3808         get_die_type and read the DIE's type.
3809         (read_full_die): Do not initialize die->type.
3810         (tag_type_to_type): Use read_type_die.
3811         (read_type_die): Check for already defined types.  Return the
3812         type.
3813         (determine_prefix): Use get_die_type.
3814         (set_die_type): Return the type.
3815         (get_die_type): Take a CU argument.  Check for no type_hash.
3816
3817 2008-05-04  Daniel Jacobowitz  <dan@codesourcery.com>
3818
3819         * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
3820         locals.
3821
3822 2008-05-04  Pedro Alves  <pedro@codesourcery.com>
3823
3824         * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
3825         and bp_longjmp_resume breakpoints.
3826         (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
3827         meaningful.
3828         (create_longjmp_breakpoint): Don't create bp_longjmp_resume
3829         breakpoints.  Create bp_longjmp breakpoints as momentary
3830         breakpoints.
3831         (enable_longjmp_breakpoint): Delete.
3832         (set_longjmp_breakpoint): New.
3833         (disable_longjmp_breakpoint): Delete.
3834         (delete_longjmp_breakpoint): New.
3835         (set_longjmp_resume_breakpoint): Delete.
3836         (set_momentary_breakpoint_at_pc): New.
3837         (breakpoint_re_set_one): Don't delete bp_longjmp and
3838         bp_longjmp_resume breakpoints.
3839         (breakpoint_re_set): Don't create longjmp and longjmp-resume
3840         breakpoints.
3841
3842         * infrun.c (step_resume_breakpoint): Add comment.
3843         (struct execution_control_state): Delete handling_longjmp member.
3844         (init_execution_control_state). Don't clear handling_longjmp.
3845         (context_switch): Don't context switch handling_longjmp.
3846         (handle_inferior_event): If handling a bp_longjmp breakpoint,
3847         create a bp_longjmp_resume breakpoint, and set it as current
3848         step_resume_breakpoint, then step over the longjmp breakpoint.  If
3849         handling a bp_longjmp_resume breakpoint, don't delete the longjmp
3850         breakpoint, delete the longjmp-resume breakpoint, and stop
3851         stepping.
3852         (currently_stepping): Remove handling_longjmp from expression.
3853         (insert_step_resume_breakpoint_at_sal): Update comment.
3854         (insert_longjmp_resume_breakpoint): New.
3855
3856         * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
3857         (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
3858         declarations.
3859         (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
3860         (set_longjmp_resume_breakpoint): Delete declaration.
3861
3862         * gdbthread.h (save_infrun_state): Remove handling_longjmp
3863         parameter.
3864         (load_infrun_state): Delete *handling_longjmp parameter.
3865         * thread.c (save_infrun_state): Remove handling_longjmp parameter.
3866         Update body.
3867         (load_infrun_state): Delete *handling_longjmp parameter.  Update
3868         body.
3869
3870         * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
3871         (delete_longjmp_breakpoint_cleanup): New.
3872         (step_1): Call set_longjmp_breakpoint instead of
3873         enable_longjmp_breakpoint.  Use delete_longjmp_breakpoint_cleanup
3874         instead of disable_longjmp_breakpoint_cleanup when making cleanup.
3875         (step_1_continuation): Pass thread id in the continuation args to
3876         step_once.
3877         (step_once): Add thread parameter.  Pass thread id the the
3878         continuation.
3879
3880 2008-05-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3881
3882         Set CU BASE_ADDRESS already from partial DIEs.
3883         * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
3884         BASE_ADDRESS_TYPE.  Set these variables from DW_AT_LOW_PC and
3885         DW_AT_ENTRY_PC.  Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
3886         from these variables if it was still unset.
3887
3888         * Makefile.in: Update dependencies.
3889         * dwarf2read.c: Include "addrmap.h"
3890         (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
3891         (dwarf2_ranges_read): New prototype.
3892         (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
3893         Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
3894         HAS_RANGES_OFFSET, otherwise add there the contiguous range.
3895         (dwarf2_ranges_read): New parameter RANGES_PST, update the function
3896         comment for it.  Add the found ranges to RANGES_PST.  New variable
3897         BASEADDR, initialize it the common way.
3898         (dwarf2_get_pc_bounds): Update the caller for the new parameter.
3899         (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
3900         HAS_RANGES_OFFSET for the later processing.
3901         * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
3902         * symtab.c: Include "addrmap.h"
3903         (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
3904         Move the psymtab locator into ...
3905         (find_pc_sect_psymtab_closer): ... a new function.
3906
3907 2008-05-04  Ulrich Weigand  <uweigand@de.ibm.com>
3908
3909         * arch-utils.c (gdbarch_update_p): Use default values for
3910         info.abfd and info.target_desc if they are NULL.
3911         (gdbarch_from_bfd): Remove assertion.
3912         (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
3913         using the current target description.
3914         (gdbarch_info_fill): Do not use default values for info->abfd
3915         and info->target_desc.
3916
3917 2008-05-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3918
3919         * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
3920
3921 2008-05-04  Ulrich Weigand  <uweigand@de.ibm.com>
3922
3923         * inferior.h (read_pc_pid, write_pc_pid): Remove.
3924         * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
3925
3926         * regcache.c (read_pc_pid): Remove, replace by ...
3927         (regcache_read_pc): ... this function.
3928         (write_pc_pid): Remove, replace by ...
3929         (regcache_write_pc): ... this function.
3930         (read_pc, write_pc): Update.
3931
3932         * infrun.c (displaced_step_prepare): Replace read_pc_pid and
3933         write_pc_pid by regcache_read_pc and regcache_write_pc.
3934         (displaced_step_fixup): Likewise.
3935         (resume): Likewise.  Use regcache arch instead of current_gdbarch.
3936         (prepare_to_proceed): Likewise.
3937         (proceed): Likewise.
3938         (adjust_pc_after_break): Likewise.
3939         (handle_inferior_event): Likewise.
3940
3941         * linux-nat.c (cancel_breakpoint): Likewise.
3942         * linux-thread-db.c (check_event): Likewise.
3943         * aix-thread.c (aix_thread_wait): Likewise.
3944         * tracepoint.c (trace_dump_command): Likewise.
3945
3946 2008-05-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3947
3948         * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
3949         SYMBOL_LOCATION_BATON.
3950
3951 2008-05-04  Vladimir Prus  <vladimir@codesourcery.com>
3952
3953         * target.h (struct target_ops): New field to_auxv_parse.
3954         * auxv.c (default_auxv_parse): New, renamed from previous
3955         target_auxv_parse.
3956         (target_auxv_parse): Try to call target method.  Fallback to
3957         default_auxv_parse if not found.
3958         * procfs.c (procfs_auxv_parse): New.
3959         (init_procfs_ops): On Solaris, in 64-bit mode, install
3960         procfs_auxv_parse.
3961
3962 2008-05-03  Adam Nemet  <anemet@caviumnetworks.com>
3963
3964         * symfile.c (add_symbol_file_command):  Use paddress rather than
3965         hex_string to print the address.
3966
3967 2008-05-03  Ulrich Weigand  <uweigand@de.ibm.com>
3968
3969         * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
3970         return the null frame ID to terminate the backtrace.
3971
3972 2008-05-03  Ulrich Weigand  <uweigand@de.ibm.com>
3973
3974         * rs6000-tdep.c: Do not include "rs6000-tdep.h".
3975         (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
3976         (SIG_FRAME_PC_OFFSET): Likewise.
3977         (SIG_FRAME_LR_OFFSET): Likewise.
3978         (SIG_FRAME_FP_OFFSET): Likewise.
3979         (rs6000_push_dummy_call): Likewise.
3980         (rs6000_return_value): Likewise.
3981         (rs6000_convert_from_func_ptr_addr): Likewise.
3982         (branch_dest, rs6000_software_single_step): Likewise.
3983         (deal_with_atomic_sequence): Rename to ...
3984         (ppc_deal_with_atomic_sequence): ... this.  Adapt all callers.
3985         Do not call branch_dest; inline required parts of that function.
3986         (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
3987         with SYMBOL_LINKAGE_NAME.
3988         (struct reg, regsize): Delete.
3989         (read_memory_addr): Delete; inline into callers.
3990         (rs6000_skip_prologue): Move after skip_prologue.
3991         (skip_prologue): Remove prototype.
3992         (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
3993         initialization as if this variable were true.  Do not install
3994         ppc64_sysv_abi_adjust_breakpoint_address.
3995
3996         * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
3997         "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
3998         and "breakpoint.h".
3999         (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
4000         (SIG_FRAME_PC_OFFSET): Likewise.
4001         (SIG_FRAME_LR_OFFSET): Likewise.
4002         (SIG_FRAME_FP_OFFSET): Likewise.
4003         (rs6000_push_dummy_call): Likewise.
4004         (rs6000_return_value): Likewise.
4005         (rs6000_convert_from_func_ptr_addr): Likewise.
4006         (branch_dest, rs6000_software_single_step): Likewise.  Replace
4007         tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
4008         (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
4009         rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
4010         Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
4011         Set tdep->lr_frame_offset.  Do not set tdep->text_segment_base.
4012
4013         * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
4014         (AIX_TEXT_SEGMENT_BASE): New macro.
4015         * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
4016         by AIX_TEXT_SEGMENT_BASE.
4017
4018         * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
4019         (struct gdbarch_tdep): Remove text_segment_base member.
4020         * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
4021         ppc64_sysv_abi_adjust_breakpoint_address.
4022
4023         * Makefile.in (rs6000-tdep.o): Update dependencies.
4024         (rs6000-aix-tdep.o): Likewise.
4025
4026 2008-05-03  Luis Machado  <luisgpm@br.ibm.com>
4027             Thiago Jung Bauermann  <bauerman@br.ibm.com>
4028
4029         * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
4030         * doublest.c (convert_typed_floating): Fix typo in comment.
4031         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4032         * frame-unwind.h (frame_sniffer_ftype): Likewise.
4033         * frame.c (frame_unwind_address_in_block): Likewise.
4034         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
4035         * symtab.h (struct symbol): Likewise.
4036         * tramp-frame.h (struct trad_frame_cache): Likewise.
4037         * value.c (allocate_repeat_value): Likewise.
4038
4039 2008-05-03  Ulrich Weigand  <uweigand@de.ibm.com>
4040
4041         * infrun.c (handle_inferior_event): Do not insert breakpoints at
4042         TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
4043
4044 2008-05-03  Pedro Alves  <pedro@codesourcery.com>
4045
4046         * parse.c (parse_exp_in_context): Don't override
4047         expression_context_pc if get_selected_block returned a valid
4048         block.
4049
4050 2008-05-03  Daniel Jacobowitz  <dan@codesourcery.com>
4051
4052         * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
4053         * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
4054         * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
4055         Delete.
4056         * c-typeprint.c (c_type_print_base): Delete handling of template
4057         instantiations.
4058         * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
4059         (METHOD_PTR_TO_VOFFSET): Delete.
4060         * defs.h (QUIT_FIXME): Delete.
4061         * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
4062         (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
4063         * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
4064         ninstantiations, and instantiations.
4065         (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
4066         (TYPE_FN_FIELD_INLINED): Delete.
4067         * srec.h (SREC_BINARY): Delete.
4068         * symtab.c (symbol_init_demangled_name): Delete.
4069         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
4070         (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
4071         (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
4072         (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
4073         (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
4074         (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
4075         * target.h (enum thread_control_capabilities): Delete tc_switch.
4076         (target_can_switch_threads): Delete.
4077
4078 2008-05-03  Daniel Jacobowitz  <dan@codesourcery.com>
4079
4080         * Makefile.in (objfiles.o): Update.
4081         * exec.c (exec_set_section_address): Support p->addr != 0.
4082         * objfiles.c (objfile_relocate): Update exec_ops section
4083         addresses.
4084         * symfile.c (place_section): Move exec_set_section_address call...
4085         (default_symfile_offsets): ...to here.
4086
4087 2008-05-03  Ulrich Weigand  <uweigand@de.ibm.com>
4088
4089         * Makefile.in (ppc_linux_tdep_h): New macro.
4090         (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
4091         (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
4092         (powerpc_e500l_c): Likewise.
4093         (ppc-linux-nat.o): Update dependencies.
4094         (ppc-linux-tdep.o): Update dependencies.
4095         (rs6000-tdep.o): Update dependencies.
4096
4097         * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
4098         (ppc_linux_svr4_fetch_link_map_offsets): Remove.
4099         (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
4100         (ppc_supply_reg, ppc_collect_reg): Add prototypes.
4101         (tdesc_powerpc_e500): Remove.
4102
4103         * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
4104         and "features/rs6000/powerpc-altivec64.c".
4105         (ppc_supply_reg, ppc_collect_reg): Make global.
4106         (variants): Use tdesc_powerpc_32 for "powerpc" and
4107         tdesc_powerpc_altivec64 for "powerpc64".
4108         (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
4109
4110         * ppc-linux-tdep.h: New file.
4111
4112         * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
4113         Include "features/rs6000/powerpc-32l.c".
4114         Include "features/rs6000/powerpc-altivec32l.c".
4115         Include "features/rs6000/powerpc-64l.c".
4116         Include "features/rs6000/powerpc-altivec64l.c".
4117         Include "features/rs6000/powerpc-e500l.c".
4118         (ppc_linux_supply_gregset): New function.
4119         (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
4120         (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
4121         (ppc64_linux_gregset): Likewise.
4122         (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
4123         (ppc_linux_trap_reg_p): New function.
4124         (ppc_linux_write_pc): New function.
4125         (ppc_linux_core_read_description): New function.
4126         (ppc_linux_init_abi): Install ppc_linux_write_pc and
4127         ppc_linux_core_read_description.  Install orig_r3 and trap
4128         registers if present in the target description.
4129         (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
4130
4131         * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
4132         (PT_ORIG_R3, PT_TRAP): Define if necessary.
4133         (ppc_register_u_addr): Handle orig_r3 and trap registers.
4134         (fetch_ppc_registers): Likewise.
4135         (store_ppc_registers): Likewise.
4136         (store_register): Likewise.
4137         (ppc_linux_read_description): Check whether AltiVec is supported.
4138         Check whether inferior is 32-bit or 64-bit.  Return the appropriate
4139         Linux target description.
4140
4141         * features/Makefile (WHICH): Use rs6000/powerpc-32l and
4142         rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
4143         Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
4144         of rs6000/powerpc-64.  Use rs6000/powerpc-e500l instead of
4145         rs6000/powerpc-e500.  Update -expedite variables accordingly.
4146
4147         * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
4148         * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
4149         * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
4150         * features/rs6000/powerpc-e500.c: Regenerate.
4151         * features/rs6000/powerpc-32.c: Regenerate.
4152         * features/rs6000/powerpc-64.c: Regenerate.
4153
4154         * features/rs6000/power-linux.xml: New file.
4155         * features/rs6000/power64-linux.xml: New file.
4156         * features/rs6000/powerpc-32l.xml: New file.
4157         * features/rs6000/powerpc-altivec32l.xml: New file.
4158         * features/rs6000/powerpc-64l.xml: New file.
4159         * features/rs6000/powerpc-altivec64l.xml: New file.
4160         * features/rs6000/powerpc-e500l.xml: New file.
4161         * features/rs6000/powerpc-32l.c: New (generated) file.
4162         * features/rs6000/powerpc-altivec32l.c: New (generated) file.
4163         * features/rs6000/powerpc-64l.c: New (generated) file.
4164         * features/rs6000/powerpc-altivec64l.c: New (generated) file.
4165         * features/rs6000/powerpc-e500l.xml: New (generated) file.
4166
4167         * regformats/reg-ppc.dat: Remove.
4168         * regformats/reg-ppc64.dat: Remove.
4169         * regformats/rs6000/powerpc-32.dat: Remove.
4170         * regformats/rs6000/powerpc-64.dat: Remove.
4171         * regformats/rs6000/powerpc-e500.dat: Remove.
4172         * regformats/rs6000/powerpc-32l.dat: New (generated) file.
4173         * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
4174         * regformats/rs6000/powerpc-64l.dat: New (generated) file.
4175         * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
4176         * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
4177
4178 2008-05-03  Pedro Alves  <pedro@codesourcery.com>
4179
4180         * thread.c (delete_thread): Call observer_notify_thread_exit.
4181         * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
4182         thread_exit observer.
4183         (mi_thread_exit): New.
4184
4185 2008-05-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4186
4187         * breakpoint.c (create_exception_catchpoint): Remove prototype
4188         for already deleted function.
4189         * breakpoint.h (ep_is_exception_catchpoint): Likewise.
4190         * frame.h (show_stack_frame): Remove prototype.
4191         * stack.c (show_stack_frame): Remove empty, unused function.
4192         * source.c (symtab_to_fullname, print_source_lines): Small fix
4193         in comment.
4194         * value.c (show_values): Update comments to mention "show values"
4195         command instead of "info history".
4196
4197 2008-05-02  Ulrich Weigand  <uweigand@de.ibm.com>
4198
4199         * linespec.c: Include "target.h".
4200         (minsym_found): Handle minimal symbols pointing to function
4201         descriptors.  Use find_function_start_pc.
4202         * minsyms.c (msymbol_objfile): New function.
4203         * parse.c (write_exp_msymbol): Handle minimal symbols pointing
4204         to function descriptors.
4205         * symtab.c (fixup_section): Only use minimal symbol at the same
4206         address to determine section of a symbol.
4207         (find_function_start_pc): New function.
4208         (find_function_start_sal): Use it.
4209         * symtab.h (msymbol_objfile): Add prototype.
4210         (find_function_start_pc): Likewise.
4211         * value.c: Include "objfiles.h".
4212         (value_fn_field): Handle minimal symbols pointing to function
4213         descriptors.
4214         * Makefile.in (linespec.o): Update dependencies.
4215         (value.o): Likewise.
4216
4217 2008-05-02  Joel Brobecker  <brobecker@adacore.com>
4218
4219         * ada-lang.c (unwrap_value): Handle the case where the "F" field
4220         inside a PAD type is a bitfield.
4221
4222 2008-05-02  Ulrich Weigand  <uweigand@de.ibm.com>
4223
4224         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
4225         TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
4226         Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
4227         Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
4228         Allow typedefs when checking for function pointer arguments.
4229         Right-align small structs passed on the stack.
4230         (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
4231         TYPE_CODE_CHAR the same as TYPE_CODE_INT.
4232         Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
4233
4234 2008-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
4235
4236         * Makefile.in (arm-tdep.o): Update.
4237         * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
4238         (struct arm_per_objfile, arm_compare_mapping_symbols): New.
4239         (arm_pc_is_thumb): Use mapping symbols.
4240         (arm_objfile_data_cleanup, arm_record_special_symbol): New.
4241         (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
4242         (_initialize_arm_tdep): Initialize arm_objfile_data_key.
4243         * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
4244         * gdbarch.sh: Add record_special_symbol.
4245         * gdbarch.c, gdbarch.h: Regenerated.
4246         * objfiles.c (struct objfile_data): Add cleanup member.
4247         (register_objfile_data_with_cleanup): New function, from
4248         register_objfile_data.
4249         (register_objfile_data): Use it.
4250         (objfile_free_data): Call clear_objfile_data.
4251         (clear_objfile_data): Call cleanup functions.
4252         * objfiles.h (register_objfile_data_with_cleanup): Declare.
4253
4254 2008-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
4255
4256         * objfiles.c (init_entry_point_info): Handle shared libraries.
4257
4258 2008-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
4259
4260         * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
4261         lowest_pc.
4262
4263 2008-05-02  Jim Blandy  <jimb@codesourcery.com>
4264             Pedro Alves  <pedro@codesourcery.com>
4265
4266         Implement displaced stepping.
4267
4268         * gdbarch.sh (max_insn_length): New 'variable'.
4269         (displaced_step_copy, displaced_step_fixup)
4270         (displaced_step_free_closure, displaced_step_location): New
4271         functions.
4272         (struct displaced_step_closure): Add forward declaration.
4273         * gdbarch.c, gdbarch.h: Regenerated.
4274
4275         * arch-utils.c: #include "objfiles.h".
4276         (simple_displaced_step_copy_insn)
4277         (simple_displaced_step_free_closure)
4278         (displaced_step_at_entry_point): New functions.
4279         * arch-utils.h (simple_displaced_step_copy_insn)
4280         (simple_displaced_step_free_closure)
4281         (displaced_step_at_entry_point): New prototypes.
4282
4283         * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
4284         (I386_MAX_MATCHED_INSN_LEN): ... this.
4285         (i386_absolute_jmp_p, i386_absolute_call_p)
4286         (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
4287         (i386_displaced_step_fixup): New functions.
4288         (struct i386_insn, i386_match_insn): Update.
4289         (i386_gdbarch_init): Set gdbarch_max_insn_length.
4290         * i386-tdep.h (I386_MAX_INSN_LEN): New.
4291         (i386_displaced_step_fixup): New prototype.
4292         * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
4293         Register gdbarch_displaced_step_copy,
4294         gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
4295         and gdbarch_displaced_step_location functions.
4296
4297         * infrun.c (debug_displaced): New variable.
4298         (show_debug_displaced): New function.
4299         (struct displaced_step_request): New struct.
4300         (displaced_step_request_queue, displaced_step_ptid)
4301         (displaced_step_gdbarch, displaced_step_closure)
4302         (displaced_step_original, displaced_step_copy)
4303         (displaced_step_saved_copy, can_use_displaced_stepping): New
4304         variables.
4305         (show_can_use_displaced_stepping, use_displaced_stepping)
4306         (displaced_step_clear, cleanup_displaced_step_closure)
4307         (displaced_step_dump_bytes, displaced_step_prepare)
4308         (displaced_step_clear_cleanup, write_memory_ptid)
4309         (displaced_step_fixup): New functions.
4310         (resume): Call displaced_step_prepare.
4311         (proceed): Call read_pc once, and remember the value.  If using
4312         displaced stepping, don't remove breakpoints.
4313         (handle_inferior_event): Call displaced_step_fixup.  Add some
4314         debugging output.  When we try to step over a breakpoint, but get
4315         a signal to deliver to the thread instead, ensure the step-resume
4316         breakpoint is actually inserted.  If a thread hop is needed, and
4317         displaced stepping is enabled, don't remove breakpoints.
4318         (init_wait_for_inferior): Call displaced_step_clear.
4319         (_initialize_infrun): Add "set debug displaced" command.  Add
4320         "maint set can-use-displaced-stepping" command.  Clear
4321         displaced_step_ptid.
4322         * inferior.h (debug_displaced): Declare variable.
4323         (displaced_step_dump_bytes): Declare function.
4324
4325         * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
4326         dependencies.
4327
4328 2008-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
4329
4330         * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
4331         (arm_force_mode_string, arm_show_fallback_mode)
4332         (arm_show_force_mode): New.
4333         (arm_pc_is_thumb): Honor fallback-mode and force-mode.  Use
4334         arm_frame_is_thumb.
4335         (_initialize_arm_tdep): Add "set arm fallback-mode"
4336         and "set arm force-mode".
4337         * NEWS: Document new commands.
4338
4339 2008-05-02  Andrew Stubbs  <andrew.stubbs@st.com>
4340
4341         * main.h (batch_silent): Declare.
4342         * event-top.c: Include main.h.
4343         (gdb_setup_readline): Remove extern batch_silent declaration.
4344         * infrun.c (normal_stop): Don't print source location when running in
4345         --batch-silent mode.
4346         * Makefile.in (event-top.o): Add main.h dependency.
4347
4348 2008-05-02  Andreas Schwab  <schwab@suse.de>
4349
4350         * target.h (struct target_ops): Add
4351         to_watchpoint_addr_within_range.
4352         (target_watchpoint_addr_within_range): New function.
4353         * target.c (update_current_target): Inherit
4354         to_watchpoint_addr_within_range, defaulting to
4355         default_watchpoint_addr_within_range.
4356         (default_watchpoint_addr_within_range): New function.
4357         (debug_to_watchpoint_addr_within_range): New function.
4358         (setup_target_debug): Set to_watchpoint_addr_within_range.
4359         * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
4360         New function.
4361         (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
4362         * breakpoint.c (watchpoints_triggered): Use
4363         target_watchpoint_addr_within_range.
4364
4365 2008-05-01  Pedro Alves  <pedro@codesourcery.com>
4366
4367         * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
4368         (i[34567]86-*-dicos*, x86_64-*-dicos*):
4369         Set gdb_osabi to GDB_OSABI_DICOS.
4370
4371         * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
4372         * osabi.c (gdb_osabi_name): Add "DICOS".
4373
4374         * i386-dicos-tdep.c: New file.
4375
4376         * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
4377         (ALLDEPFILES): Add i386-dicos-tdep.c.
4378         (i386-dicos-tdep.o): New rule.
4379
4380 2008-05-01  Pedro Alves  <pedro@codesourcery.com>
4381
4382         * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
4383         and register the fork's PTID as a thread.
4384
4385 2008-05-01  Aleksandar Ristovski  <aristovski@qnx.com>
4386
4387         PR gdb/1665
4388         * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
4389         assign its value to the breakpoint created.
4390         (create_breakpoints): Add breakpoint_ops argument and pass it
4391         to create_breakpoint call.
4392         (break_command_really): Add breakpoint_ops argument and pass/assign
4393         appropriately.
4394         (break_command_1): Pass NULL as ops argument.
4395         (set_breakpoint): Pass NULL as ops argument.
4396         (print_one_exception_catchpoint): Print <PENDING> if no loc available.
4397         (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
4398         catch and throw catchpoints.
4399
4400 2008-05-01  Aleksandar Ristovski  <aristovski@qnx.com>
4401
4402         PR gdb/2343
4403         * corelow.c (core_open): Use gdbarch_target_signal_from_host to
4404         translate signal numeric value from the target to GDB's enum
4405         target_signal.
4406         * gdbarch.c, gdbarch.h: Regenerated.
4407         * gdbarch.sh: Added two new functions target_signal_from_host and
4408         target_signal_to_host.
4409         * target.h (default_target_signal_from_host,
4410         default_target_signal_to_host): New functions - declarations.
4411         * signals/signals.c (struct gdbarch): New declaration.
4412         (default_target_signal_to_host, default_target_signal_from_host): New
4413         functions.
4414
4415 2008-05-01  Daniel Jacobowitz  <dan@codesourcery.com>
4416             Pedro Alves  <pedro@codesourcery.com>
4417
4418         Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
4419         Johnston <jjohnstn@redhat.com>.
4420
4421         * NEWS: Mention attach to stopped process fix.
4422         * infcmd.c (detach_command, disconnect_command): Discard the thread
4423         list.
4424         * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
4425         attaching.  Use signal_stop_state.
4426         (signal_stop_state): Check stop_soon.
4427         * linux-nat.c (kill_lwp): Declare earlier.
4428         (pid_is_stopped, linux_nat_post_attach_wait): New.
4429         (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait.  Update
4430         comments.
4431         (linux_nat_attach): Use linux_nat_post_attach_wait.
4432         (detach_callback, linux_nat_detach): Improve handling for signalled
4433         processes.
4434         (linux_nat_pid_to_str): Always print out the LWP ID if it differs
4435         from the process ID.
4436         * Makefile.in (infcmd.o): Update.
4437
4438 2008-05-01  Daniel Jacobowitz  <dan@codesourcery.com>
4439
4440         * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
4441         * arm-tdep.c (arm_frame_is_thumb): New.
4442         (arm_pc_is_thumb): Clarify comment.
4443         (thumb_analyze_prologue): Remove PC special case.
4444         (thumb_scan_prologue): Take a block_addr argument.  Use it for
4445         find_pc_partial_function.  Remove unused variables.
4446         (arm_scan_prologue): Use arm_frame_is_thumb.  Use the block address
4447         for find_pc_partial_function.  Remove PC special case.
4448         (arm_prologue_prev_register): Add special handling for PC and CPSR.
4449         (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
4450         (arm_get_next_pc): Use arm_frame_is_thumb.
4451         (arm_write_pc): Use CPSR_T instead of 0x20.
4452         (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
4453         * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
4454         (CPSR_T): Define.
4455         * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
4456         DWARF2_FRAME_REG_FN.
4457         * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
4458         DWARF2_FRAME_REG_FN.
4459         (struct dwarf2_frame_state_reg): Add FN to loc union.
4460
4461 2008-05-01  Nick Roberts  <nickrob@snap.net.nz>
4462
4463         * exec.c (print_section_info): Add missing '\n'.
4464
4465 2008-05-01  Vladimir Prus  <vladimir@codesourcery.com>
4466
4467         * thread.c (add_thread): Move observer call to ...
4468         (add_thread_silent): ... here.
4469
4470 2008-04-30  Ulrich Weigand  <uweigand@de.ibm.com>
4471
4472         * rs6000-tdep.c: Update for unwinder changes.
4473         * ppcobsd-tdep.c: Likewise.
4474
4475 2008-04-30  Ulrich Weigand  <uweigand@de.ibm.com>
4476
4477         * s390-tdep.c: Update for unwinder changes.
4478
4479 2008-04-30  Ulrich Weigand  <uweigand@de.ibm.com>
4480
4481         * spu-tdep.c: Update for unwinder changes.
4482
4483 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
4484
4485         * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
4486         ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
4487         sparc64-linux-tdep.c: Update for unwinder changes.
4488
4489 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
4490
4491         * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
4492         for unwinder changes.
4493         * mips-tdep.c: Likewise.
4494         (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
4495         raw one.
4496
4497 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
4498
4499         * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
4500         unwinder changes.
4501
4502 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
4503
4504         Update i386 and amd64 ports for unwinder changes.
4505
4506         * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
4507         (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
4508         (amd64_frame_unwind): Use default_frame_sniffer.
4509         (amd64_frame_sniffer): Delete.
4510         (amd64_sigtramp_frame_cache): Expect this_frame.
4511         (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
4512         (amd64_sigtramp_frame_sniffer): Update signature.
4513         (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
4514         (amd64_frame_base_address): Expect this_frame.
4515         (amd64_dummy_id): Renamed from amd64_unwind_dummy_id.  Expect
4516         this_frame.
4517         (amd64_init_abi): Use set_gdbarch_dummy_id and
4518         frame_unwind_append_unwinder.
4519         * i386-tdep.c (i386_frame_cache): Expect this_frame.
4520         (i386_frame_this_id, i386_frame_prev_register): Update signature.
4521         (i386_frame_unwind): Use default_frame_sniffer.
4522         (i386_frame_sniffer): Delete.
4523         (i386_sigtramp_frame_cache): Expect this_frame.
4524         (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
4525         (i386_sigtramp_frame_sniffer): Update signature.
4526         (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
4527         (i386_frame_base_address): Update signature.
4528         (i386_dummy_id): Rename from i386_unwind_dummy_id.  Expect this_frame.
4529         (i386_push_dummy_call): Update comment.
4530         (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
4531         Expect this_frame.
4532         (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
4533         and frame_unwind_append_unwinder.
4534         * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
4535         amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
4536         i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
4537         i386nbsd-tdep.c: Update for unwinder changes.
4538
4539 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
4540
4541         * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
4542         (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
4543         this_frame.
4544         (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
4545         * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
4546         (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
4547         signature.
4548         * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
4549         this_frame.
4550         (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
4551         Update signature.
4552         * tramp-frame.h (struct tramp_frame): Update signature of init.
4553         * Makefile.in (trad-frame.o): Update.
4554
4555 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
4556
4557         * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
4558         (execute_stack_op): Put this_frame in the baton.
4559         (execute_cfa_program): Take this_frame.
4560         (struct dwarf2_frame_ops): Update comment for signal_frame_p.
4561         (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
4562         (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
4563         (dwarf2_frame_this_id): Adjust to work on this_frame.
4564         (dwarf2_signal_frame_this_id): Delete.
4565         (dwarf2_frame_prev_register): Update signature.  Use new frame
4566         unwind methods.
4567         (dwarf2_frame_sniffer): Update signature.  Expect this_frame.
4568         (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
4569         dwarf2_frame_sniffer.
4570         (dwarf2_append_unwinders): New.
4571         (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
4572         this_frame.
4573         * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
4574         (sparc32_dwarf2_frame_init_reg): Expect this_frame.
4575         * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
4576         * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
4577         * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
4578         * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
4579         * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
4580         * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
4581         (dwarf2_append_unwinders): Declare.
4582         (dwarf2_frame_base_sniffer): Update declaration.
4583         * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
4584         this_frame.
4585
4586 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
4587
4588         Convert frame unwinders to use the current frame and
4589         "struct value".
4590
4591         * frame.c (frame_debug): Make global.
4592         (get_frame_id): Pass this frame to unwinder routines.
4593         (frame_pc_unwind): Remove unused unwind->prev_pc support.
4594         (do_frame_register_read): Do not discard the return value of
4595         frame_register_read.
4596         (frame_register_unwind): Remove debug messages.  Use
4597         frame_unwind_register_value.
4598         (frame_unwind_register_value, get_frame_register_value): New
4599         functions.
4600         (create_new_frame, get_frame_base_address, get_frame_locals_address)
4601         (get_frame_args_address, get_frame_type): Pass this frame to
4602         unwinder routines.
4603         (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
4604         functions.
4605         * frame.h: Update comments.
4606         (frame_debug, frame_unwind_register_value, get_frame_register_value)
4607         (frame_prepare_for_sniffer): Declare.
4608         * frame-unwind.h: Update comments and parameter names.
4609         (default_frame_sniffer): Declare.
4610         (frame_prev_register_ftype): Return a struct value *.
4611         (struct frame_unwind): Remove prev_pc member.
4612         (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
4613         (frame_unwind_append_unwinder, frame_unwind_got_optimized)
4614         (frame_unwind_got_register, frame_unwind_got_memory)
4615         (frame_unwind_got_constant, frame_unwind_got_address): Declare.
4616         * frame-base.h: Update comments and parameter names.
4617         * valops.c (value_fetch_lazy): Use get_frame_register_value.  Iterate
4618         if necessary.  Add debugging output.
4619         * sentinel-frame.c (sentinel_frame_prev_register)
4620         (sentinel_frame_this_id): Update for new signature.
4621         (sentinel_frame_prev_pc): Delete.
4622         (sentinel_frame_unwinder): Remove prev_pc.
4623         * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
4624         prev_pc.
4625         * libunwind-frame.c (libunwind_frame_unwind): Likewise.
4626         * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
4627         (frame_unwind_append_sniffer): Delete.
4628         (frame_unwind_append_unwinder): New function.
4629         (frame_unwind_find_by_frame): Take this frame.  Only use sniffers
4630         from unwinders.  Use frame_prepare_for_sniffer.
4631         (default_frame_sniffer, frame_unwind_got_optimized)
4632         (frame_unwind_got_register, frame_unwind_got_memory)
4633         (frame_unwind_got_constant, frame_unwind_got_address): New functions.
4634         * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
4635         (dummy_frame_prev_register, dummy_frame_this_id): Update for new
4636         signature.
4637         * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
4638         * gdbarch.c, gdbarch.c: Regenerated.
4639         * frame-base.c (default_frame_base_address)
4640         (default_frame_locals_address, default_frame_args_address): Update
4641         for new signature.
4642         (frame_base_find_by_frame): Pass this frame to unwinder routines.
4643         * infcall.c (call_function_by_hand): Update comments.
4644         * Makefile.in (frame-unwind.o): Update dependencies.
4645
4646 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
4647
4648         * ada-lang.c (ada_value_primitive_packed_val): Only check
4649         value_lazy for memory lvals.
4650         * findvar.c (value_of_register_lazy): New function.
4651         (locate_var_value): Only check value_lazy for memory lvals.
4652         * valarith.c (value_subscripted_rvalue): Likewise.
4653         * valops.c (value_fetch_lazy): Handle both memory and register
4654         lvals.
4655         (search_struct_field, value_slice): Only check value_lazy for memory
4656         lvals.
4657         * value.c (struct value): Update comment for lazy.
4658         (value_primitive_field): Only check value_lazy for memory lvals.
4659         * value.h (value_lazy): Update comment.
4660         (value_of_register_lazy): Declare.
4661
4662 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
4663
4664         * corefile.c (reopen_exec_file): Close any open files.
4665
4666 2008-04-29  Joel Brobecker  <brobecker@adacore.com>
4667
4668         * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
4669         show_memory_breakpoints to 1 while reading the instruction bundle.
4670
4671 2008-04-29  Joel Brobecker  <brobecker@adacore.com>
4672
4673         * gdbarch.sh: Document the return_value method. Explain that
4674         the FUNCTYPE parameter might be NULL.
4675         * gdbarch.h: Regenerated.
4676         * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
4677         type when calling using_struct_return, as this is unnecessary
4678         on this target.
4679
4680 2008-04-28  Joel Brobecker  <brobecker@adacore.com>
4681
4682         * terminal.h (create_tty_session): Fix return type.
4683
4684 2008-04-26  Vladimir Prus  <vladimir@codesourcery.com>
4685
4686         * mi/mi-interp.c (mi_new_thread): Quote the thread id.
4687
4688 2008-04-26  Joel Brobecker  <brobecker@adacore.com>
4689
4690         * breakpoint.c (condition_command, commands_from_control_command)
4691         (break_command_really): Minor reformatting.
4692
4693 2008-04-25  Pedro Alves  <pedro@codesourcery.com>
4694
4695         * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
4696
4697 2008-04-25  Pedro Alves  <pedro@codesourcery.com>
4698
4699         * amd64-tdep.c (amd64_get_longjmp_target): New.
4700         (amd64_init_abi): Register amd64_get_longjmp_target as
4701         gdbarch_get_longjmp_target callback.
4702         * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
4703
4704 2008-04-25  Pedro Alves  <pedro@codesourcery.com>
4705
4706         * breakpoint.h (enum bpstat_what_main_action): Delete
4707         BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
4708
4709         * breakpoint.c (clrs): Delete.
4710         (bpstat_what): Update table.
4711
4712         * infrun.c (handle_inferior_event): Remove
4713         BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
4714
4715 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
4716
4717         * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
4718         Adjust all prototypes using mi_cmd_args_ftype to use
4719         mi_cmd_argv_ftype.
4720         (struct mi_cmd): Remove the args_func field.
4721         * mi/mi-cmds.c: Don't provide value for the args_func field.
4722         * mi/mi-main.c (mi_execute_async_cli_command)
4723         (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
4724         (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
4725         (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
4726         (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
4727         (mi_cmd_target_download): Adjust.
4728         (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
4729         (mi_cmd_execute): Do not check for args_func.
4730         (mi_execute_async_cli_command): Adjust.
4731         * mi/mi-parse.c: Don't check for args_func.
4732
4733 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
4734
4735         * breakpoint.c (bpstat_check_location)
4736         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
4737         New, extracted from bpstat_stop_status.
4738         (bpstat_stop_status): Use the above.
4739
4740 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
4741
4742         * mi/mi-main.c (last_async_command): Rename to current_token.
4743         (previous_async_command): Remove.
4744         (mi_cmd_gdb_exit): Adjust.
4745         (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
4746         (mi_cmd_target_select): Adjust.
4747         (mi_cmd_execute): Don't set previous_async_command.  Free token
4748         here even in async mode.
4749         (mi_execute_async_cli_command): Adjust.
4750         (mi_exec_async_cli_cmd_continuation): Adjust.  Do not free the
4751         token.
4752         (mi_load_progress): Adjust.
4753
4754 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
4755
4756         * infcmd.c (step_1_continuation): Always disable longjmp
4757         breakpoint if we're not going to do another step.
4758
4759 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
4760
4761         exec_cleanup murder.
4762         * breakpoint.c (until_break_command_continuation): Add
4763         the 'error' parameter.  Directly delete the breakoint as
4764         opposed to running cleanups.
4765         (until_break_command): Install continuation only
4766         after starting the target.  Don't use exec cleanups,
4767         use ordinary cleanups.  Discard cleanups is successfully
4768         started the target in async mode.
4769         (make_cleanup_delete_breakpoint): Remove.
4770         * breakpoint.h (make_cleanup_delete_breakpoint): Remove
4771         declaration.
4772         * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
4773         declarations.
4774         (struct continations): Add the 'error' parameter to the
4775         continuation_hook field.
4776         (add_continuation, do_all_continuations)
4777         (add_intermediate_continuation)
4778         (do_all_intermediate_continuations): Add the 'error' parameter.
4779         * exceptions.c (throw_exception): Don't call do_exec_cleanups.
4780         * inf-loop.c (inferior_event_handler): Instead of calling
4781         discard_all_continuations, use do_all_continuations with 1 as
4782         'error' parameter.  Pass 0 as 'error' parameter in existing uses
4783         of discard_all_continuations.
4784         * infcmd.c (step_1): Do not use exec cleanup.  For async case, discard
4785         cleanups.
4786         (step_once): Install continuation only after resuming the target.
4787         (step_1_continuation): Disable longjmp breakpoint on error.
4788         (finish_command_continuation): Add the error parameter.  Delete
4789         the finish breakpoint directly, do not use cleanups.
4790         (finish_command): Do not use exec_cleanups. Always setup
4791         continuation.  For sync case, immediately run them.
4792         (attach_command_continuation): Add the error parameter.
4793         * infrun.c (fetch_inferior_event): Do not use exec cleanups to
4794         remove step_resume_breakpoint -- adjust delete it directly.
4795         * interps.c (interp_set): Adjust call to do_all_continations.
4796         * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
4797         do exec cleanups.
4798         * mi/mi-main.c (mi_cmd_target_select): Do not do exec
4799         cleanups.
4800         (mi_cmd_execute): Do not use exec_cleanup.
4801         (mi_execute_async_cli_command): Simplify the string concatenation
4802         logic.  Do no use exec cleanup.
4803         (mi_exec_async_cli_cmd_continuation): New parameter error.
4804         Free last_async_command.
4805         * top.c (command_line_handler_continuation): New parameter error.
4806         * utils.c (exec_cleanup_chain, make_exec_cleanup)
4807         (do_exec_cleanups): Remove.
4808         (add_continuation, do_all_continations)
4809         (add_intermediate_continuation)
4810         (do_all_intermediate_continuations): New parameter error.
4811
4812 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
4813
4814         * breakpoint.h (bp_location_p): New typedef.
4815         Register a vector of bp_location_p.
4816         * breakpoint.c (always_inserted_mode)
4817         (show_always_inserted_mode): New.
4818         (unlink_locations_from_global_list): Remove.
4819         (update_global_location_list)
4820         (update_global_location_list_nothrow): New.
4821         (update_watchpoint): Don't free locations.
4822         (should_insert_location): New.
4823         (insert_bp_location): Use should_insert_location.
4824         (insert_breakpoint_locations): Copied from
4825         insert_breakpoints.
4826         (insert_breakpoint): Use insert_breakpoint_locations.
4827         (bpstat_stop_status): Call update_global_location_list
4828         when disabling breakpoint.
4829         (allocate_bp_location): Don't add to bp_location_chain.
4830         (set_raw_breakpoint)
4831         (create_longjmp_breakpoint, enable_longjmp_breakpoint)
4832         (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
4833         (enable_overlay_breakpoints, disable_overlay_breakpoints)
4834         (set_longjmp_resume_breakpoint)
4835         (enable_watchpoints_after_interactive_call_stop)
4836         (disable_watchpoints_before_interactive_call_start)
4837         (create_internal_breakpoint)
4838         (create_fork_vfork_event_catchpoint)
4839         (create_exec_event_catchpoint, set_momentary_breakpoint)
4840         (create_breakpoints, break_command_1, watch_command_1)
4841         (create_exception_catchpoint)
4842         (handle_gnu_v3_exceptions)
4843         (disable_breakpoint, breakpoint_re_set_one)
4844         (create_thread_event_breakpoint, create_solib_event_breakpoint)
4845         (create_ada_exception_breakpoint): : Don't call check_duplicates.
4846         Call update_global_location_list.
4847         (delete_breakpoint): Don't remove locations and don't
4848         try to reinsert them. Call update_global_location_list.
4849         (update_breakpoint_locations): Likewise.
4850         (restore_always_inserted_mode): New.
4851         (update_breakpoints_after_exec): Temporary disable
4852         always inserted mode.
4853         * Makefile.in: Update dependencies.
4854
4855         * infrun.c (proceed): Remove breakpoints while stepping
4856         over breakpoint.
4857         (handle_inferior_event): Don't remove or insert
4858         breakpoints.
4859         * linux-fork.c (checkpoint_command): Remove breakpoints
4860         before fork and insert after.
4861         (linux_fork_context): Remove breakpoints before switch
4862         and insert after.
4863         * target.c (target_disconnect, target_detach): Remove
4864         breakpoints from target.
4865
4866
4867 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
4868
4869         * breakpoint.c (print_one_breakpoint_location): In MI
4870         mode, report the location string the breakpoint was
4871         originally created with.
4872
4873 2008-04-23  Maxim Grigoriev  <maxim2405@gmail.com>
4874
4875         * Makefile.in (xtensa-tdep.o): Update dependencies.
4876         * configure.tgt (xtensa*): Update dependencies.
4877         * xtensa-tdep.c (arreg_number): Renamed from areg_number.
4878         Local variable areg renamed to arreg.
4879         (areg_number): New function.
4880         (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
4881         (xtensa_extract_return_value, xtensa_store_return_value): areg_number
4882         replaced by arreg_number.
4883         (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
4884         (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
4885         (xtensa_scan_prologue): New function.
4886         (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
4887         when ENTRY instraction hasn't been executed yet. Get the frame pointer
4888         value based on prologue analysis. Fix the bugs preventing WS and
4889         AR4-AR7/A11 registers from getting right values for intermediate frames,
4890         whose registers have been already spilled.
4891         (xtensa_frame_prev_register): Fix WS register value. Use are_number
4892         and arreg_number appropriately.
4893         (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
4894         svr4_ilp32_fetch_link_map_offsets.
4895
4896 2008-04-23  Andrew Stubbs  <andrew.stubbs@st.com>
4897
4898         * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
4899         (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
4900
4901 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
4902
4903         * acinclude.m4: Add override.m4.
4904         * configure: Regenerate.
4905
4906 2008-04-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4907
4908         * ada-lang.c (get_selections): Variable PROMPT made non-const and
4909         initialized with a trailing space now.  Use PROMPT_ARG of
4910         COMMAND_LINE_INPUT instead of printing it ourselves.
4911
4912 2008-04-22  Joel Brobecker  <brobecker@adacore.com>
4913
4914         * NEWS: Document support for 64-bit core file.
4915
4916 2008-04-22  Corinna Vinschen  <vinschen@redhat.com>
4917
4918         * NEWS: Add information on calling convention and new SH CLI options.
4919
4920         * sh-tdep.c (sh_cc_gcc): New static string.
4921         (sh_cc_renesas): Ditto.
4922         (sh_cc_enum): New static string array.
4923         (sh_active_calling_convention): New static string pointer denoting
4924         active user chosen ABI.
4925         (sh_is_renesas_calling_convention): New function to return function
4926         specific ABI, or user choice if necessary.
4927         (sh_use_struct_convention): Rename first argument and turn around its
4928         meaning.  Check for renesas ABI and return accordingly.
4929         (sh_use_struct_convention_nofpu): New function.
4930         (sh_next_flt_argreg): Get function type as third parameter.  Check
4931         for renesas ABI and choose floating registers accordingly.
4932         (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
4933         struct return slot accordingly.
4934         (sh_push_dummy_call_nofpu): Ditto.
4935         (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
4936         Evaluate ABI and give to sh_use_struct_convention_nofpu.
4937         (sh_return_value_fpu):  Evaluate ABI and give to
4938         sh_use_struct_convention.
4939         (show_sh_command): New function.
4940         (set_sh_command): Ditto.
4941         (_initialize_sh_tdep): Initialize `set/show sh calling-convention
4942         CLI command.
4943
4944         * gdbarch.sh (return_value): Add func_type argument.
4945         * gdbarch.c: Regenerate.
4946         * gdbarch.h: Ditto.
4947         * eval.c (evaluate_subexp_standard): Rename local variable value_type to
4948         val_type so as not to collide with value_type function.  Call
4949         using_struct_return with additional function type argument.
4950         * infcall.c (call_function_by_hand): Call using_struct_return and
4951         gdbarch_return_value with additional function type argument.
4952         * infcmd.c (print_return_value): Take addition func_type argument.
4953         Call gdbarch_return_value with additional function type argument.
4954         (finish_command_continuation): Call print_return_value with additional
4955         function type argument.
4956         (finish_command): Ditto.
4957         * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
4958         additional function type argument.
4959         * stack.c (return_command): Call using_struct_return and
4960         gdbarch_return_value with additional function type argument.
4961         * value.c (using_struct_return): Take additional function type argument.
4962         * value.h (using_struct_return): Accommodate declaration.
4963         * alpha-tdep.c (alpha_return_value): Add func_type argument.
4964         * amd64-tdep.c (amd64_return_value): Ditto.
4965         * arm-tdep.c (arm_return_value): Ditto.
4966         * avr-tdep.c (avr_return_value): Ditto.
4967         * cris-tdep.c (cris_return_value): Ditto.
4968         * frv-tdep.c (frv_return_value): Ditto.
4969         * h8300-tdep.c (h8300_return_value): Ditto.
4970         (h8300h_return_value): Ditto.
4971         * hppa-tdep.c (hppa32_return_value): Ditto.
4972         (hppa64_return_value): Ditto.
4973         * i386-tdep.c (i386_return_value): Ditto.
4974         * ia64-tdep.c (ia64_return_value): Ditto.
4975         * iq2000-tdep.c (iq2000_return_value): Ditto.
4976         * m32c-tdep.c (m32c_return_value): Ditto.
4977         * m32r-tdep.c (m32r_return_value): Ditto.
4978         * m68hc11-tdep.c (m68hc11_return_value): Ditto.
4979         * m68k-tdep.c (m68k_return_value): Ditto.
4980         (m68k_svr4_return_value): Ditto.
4981         * m88k-tdep.c  (m88k_return_value): Ditto.
4982         * mep-tdep.c (mep_return_value): Ditto.
4983         * mips-tdep.c (mips_eabi_return_value): Ditto.
4984         (mips_n32n64_return_value): Ditto.
4985         (mips_o32_return_value): Ditto.
4986         (mips_o64_return_value): Ditto.
4987         * mn10300-tdep.c (mn10300_return_value): Ditto.
4988         * mt-tdep.c (mt_return_value): Ditto.
4989         * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
4990         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
4991         (ppc_sysv_abi_broken_return_value): Ditto.
4992         (ppc64_sysv_abi_return_value): Ditto.
4993         * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
4994         (ppc_sysv_abi_broken_return_value): Ditto.
4995         (ppc64_sysv_abi_return_value): Ditto.
4996         * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
4997         * rs6000-tdep.c (rs6000_return_value): Ditto.
4998         * s390-tdep.c (s390_return_value): Ditto.
4999         * score-tdep.c (score_return_value): Ditto.
5000         * sh-tdep.c (sh_return_value_nofpu): Ditto.
5001         (sh_return_value_fpu): Ditto.
5002         * sh64-tdep.c (sh64_return_value): Ditto.
5003         * sparc-tdep.c (sparc32_return_value): Ditto.
5004         * sparc64-tdep.c (sparc64_return_value): Ditto.
5005         * spu-tdep.c (spu_return_value): Ditto.
5006         * v850-tdep.c (v850_return_value): Ditto.
5007         * vax-tdep.c (vax_return_value): Ditto.
5008         * xstormy16-tdep.c (xstormy16_return_value): Ditto.
5009         * xtensa-tdep.c (xtensa_return_value): Ditto.
5010
5011         * gdbtypes.h (struct type): Add calling_convention member.
5012         * dwarf2read.c (read_subroutine_type): Add calling convention read
5013         from DW_AT_calling_convention attribute to function type.
5014
5015 2008-04-22  Markus Deuling  <deuling@de.ibm.com>
5016
5017         * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
5018         multi_f77_subscript to support values from registers.
5019         * valarith.c (value_subscripted_rvalue): Remove prototype and static.
5020         * value.h (value_subscripted_rvalue): Add prototype.
5021
5022         * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
5023         Fix output.
5024         * f-valprint.c (f_val_print): Likewise.
5025
5026 2008-04-21  Craig Silverstein  <csilvers@google.com>
5027
5028         * dwarf2read.c (zlib_decompress_section): Define abfd in the
5029         !HAVE_ZLIB_H case.
5030
5031 2008-04-21  Pedro Alves  <pedro@codesourcery.com>
5032
5033         * symfile.c (syms_from_objfile): Don't warn if lowest loadable
5034         section is not a code section.
5035
5036 2008-04-19  Craig Silverstein  <csilvers@google.com>
5037
5038         * NEWS: Add information on compressed debug sections.
5039
5040 2008-04-19  Vladimir Prus  <vladimir@codesourcery.com>
5041
5042         * mi/mi-cmd-var.c (varobj_update_one): Print new
5043         value for variable objects that changed type.
5044
5045 2008-04-19  Vladimir Prus  <vladimir@codesourcery.com>
5046
5047         * varobj.c (varobj_invalidate): Don't touch floating
5048         varobjs.
5049
5050 2008-04-19  Mark Kettenis  <kettenis@gnu.org>
5051
5052         * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
5053         (multiple_symbols_cancel): Remove extra const.
5054         * symtab.h: Likewise.
5055
5056 2008-04-19  Nick Roberts  <nickrob@snap.net.nz>
5057
5058         * interps.c (top_level_interpreter): Rename static variable...
5059         (top_level_interpreter_ptr): ...to this.
5060         (top_level_interpreter): New function.
5061
5062         * interps.h: New extern for top_level_interpreter.
5063
5064         * linespec.c: Include interps.h and mi/mi-cmds.h.
5065         (decode_line_2): When using MI, always set all breakpoints in menu.
5066
5067         * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
5068
5069 2008-04-18  Craig Silverstein  <csilvers@google.com>
5070
5071         * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
5072         * config.in, configure: Regenerate.
5073         * dwarf2read.c: Include zlib.h if present.
5074         Modified *_SECTION macros.
5075         (section_is_p): New.
5076         (dwarf2_locate_sections): Use section_is_p instead of strcmp
5077         (dwarf2_resize_section): New.
5078         to determine whether a given section has a given name.
5079         (zlib_decompress_section): New.
5080         (dwarf2_read_section): Read the compressed section if present
5081         in the binary.
5082         * MAINTAINERS: Added myself to section Write After Approval.
5083
5084 2008-04-18  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5085
5086         * defs.h (exec_set_section_offsets): Remove prototype.
5087         * exec.c (exec_set_section_offsets): Remove function.
5088
5089 2008-04-18  Joel Brobecker  <brobecker@adacore.com>
5090
5091         * stabsread.c (cleanup_undefined_types_1): Add instance flags check
5092         in the search for the matching symbol.
5093
5094 2008-04-17  Marc Khouzam  <marc.khouzam@ericsson.com>
5095
5096         * breakpoint.c (update_watchpoint): Always reparse
5097         condition.
5098
5099 2008-04-17  Joel Brobecker  <brobecker@adacore.com>
5100
5101         * breakpoint.c (print_one_breakpoint_location): Make sure to print
5102         the breakpoint address only once.
5103
5104 2008-04-17  Dennis Roberts  <dennis.roberts@sunquestinfo.com>
5105
5106         * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
5107         rather than a hard-coded architecture, for xcoff executables.
5108
5109 2008-04-17  Doug Evans  <dje@google.com>
5110
5111         * buildsym.c (watch_main_source_file_lossage): New fn.
5112         (end_symtab): Call it.
5113
5114         * source.c (find_and_open_source): Add some comments clarifying
5115         handling of FULLNAME argument.  Make static.  Remove pointless
5116         xstrdup/xfree.
5117
5118 2008-04-17  Pedro Alves  <pedro@codesourcery.com>
5119
5120         * inf-loop.c (inferior_event_handler): Also run the intermediate
5121         continuations in the INF_EXEC_COMPLETE case.
5122
5123 2008-04-16  Tom Tromey  <tromey@redhat.com>
5124
5125         * cli/cli-decode.h (CMD_ASYNC_OK): New define.
5126         (set_cmd_async_ok, get_cmd_async_ok): Declare.
5127         * cli/cli-decode.c (set_cmd_async_ok): New function.
5128         (get_cmd_async_ok): New function.
5129         * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
5130         "show" as async-ok.
5131         * top.c (execute_command): Use get_cmd_async_ok.
5132         * infcmd.c: Include cli/cli-decode.h.
5133         (_initialize_infcmd): Mark "interrupt" as async-ok.
5134         * Makefile.in (infcmd.o): Depend on cli_decode_h.
5135
5136 2008-04-16  Daniel Jacobowitz  <dan@codesourcery.com>
5137
5138         PR gdb/2445
5139         * exec.c: Correct "arch-utils.h" include.
5140
5141 2008-04-15  Aleksandar Ristovski  <aristovski@qnx.com>
5142
5143         PR gdb/2424
5144         * infrun.c (normal_stop) Move breakpoint_auto_delete further down
5145         to allow printing to 'see' real reason of stop. This fixes PR 2424.
5146         * breakpoint.c (bpdisp_texst): New function. The function takes over
5147         the role of bpstats static array in print_one_breakpoint_location.
5148         (print_it_typical): Print "Temporary breakpoint" instead
5149         of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
5150         protocols, print disp field.
5151         (print_one_breakpoint_location): Removed bpdisps static definition.
5152         Call new bpstat_text function to get value for 'disp' field.
5153         (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
5154
5155 2008-04-15  Daniel Jacobowitz  <dan@codesourcery.com>
5156
5157         * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
5158         gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
5159         by rerunning gnulib-tool with --aux-dir=gnulib/extra.
5160         * gnulib/Makefile.in: Regenerate.
5161
5162 2008-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
5163
5164         * Makefile.in (GNULIB_H): New.  Trigger all-lib.
5165         (defs_h): Use $(GNULIB_H).
5166         (all-lib): Depend on gnulib/Makefile.
5167         (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
5168         * config.in, gnulib/Makefile.in: Regenerated.
5169
5170 2008-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
5171
5172         * Makefile.in (LIBGNU, INCGNU): Define.
5173         (INTERNAL_CFLAGS_BASE): Add INCGNU.
5174         (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
5175         (CLEANDIRS): New.
5176         ($(LIBGNU), all-lib): New rules.
5177         (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
5178         * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
5179         Simplify AC_CONFIG_AUX_DIR.  Generate gnulib/Makefile.
5180         * gnulib: New directory, from gnulib-tool.
5181         * configure, aclocal.m4: Regenerated.
5182
5183 2008-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
5184
5185         * linux-thread-db.c (have_threads_callback): Check thread->private.
5186
5187 2008-04-13  Nick Roberts  <nickrob@snap.net.nz>
5188             Vladimir Prus  <vladimir@codesourcery.com>
5189
5190         Fix @-varobjs.
5191         * varobj.c (value_of_root): Update the expression for
5192         floating varobjs.
5193         * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
5194         report that.
5195
5196 2008-04-09  Marc Khouzam  <marc.khouzam@ericsson.com>
5197
5198         * mi/mi-cmd-var.c: Include "mi-getopt.h".
5199         (mi_parse_format): New.  Factored out from mi_cmd_var_set_format.
5200         (mi_cmd_var_set_format): Use new mi_parse_format.
5201         (mi_cmd_var_evaluate_expression): Support for -f option to specify
5202         format.
5203         * Makefile.in (mi-cmd-var.o): Update dependencies.
5204
5205         * varobj.h (varobj_get_formatted_value): Declare.
5206         * varobj.c (my_value_of_variable): Added format parameter.
5207         (cplus_value_of_variable): Likewise.
5208         (java_value_of_variable): Likewise.
5209         (c_value_of_variable): Likewise.  Evaluate expression based
5210         on format parameter.
5211         (struct language_specific): Add format parameter to function member
5212         *value_of_variable.
5213         (varobj_get_formatted_value): New.
5214         (varobj_get_value): Added format parameter to method call.
5215
5216 2008-04-08  Joel Brobecker  <brobecker@adacore.com>
5217
5218         * stabsread.c (cleanup_undefined_types_noname): Manually set the
5219         instance flags of the undefined type before calling replace_type.
5220
5221 2008-04-08  Vladimir Prus  <vladimir@codesourcery.com>
5222
5223         * target.h (enum strata): Remove the download_stratum.
5224
5225 2008-04-07  Doug Evans  <dje@google.com>
5226
5227         * buildsym.h (last_source_file): Add dwarf info to comment.
5228         (last_source_start_addr): Ditto.
5229
5230 2008-04-07  Pedro Alves  <pedro@codesourcery.com>
5231
5232         * alphanbsd-tdep.c: Include "target.h".
5233         * mn10300-tdep.c: Include "target.h".
5234         * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
5235
5236 2008-04-06  Vladimir Prus  <vladimir@codesourcery.com>
5237
5238         Fix breakpoint condition that use member variables.
5239         * valops.c (check_field): Remove.
5240         (check_field_in): Rename to check_field.
5241         (value_of_this): Use la_name_of_this.
5242         * value.h (check_field): Adjust prototype.
5243
5244         * language.h (la_value_of_this): Rename to la_name_of_this.
5245         * language.c (unknown_language_defn): Specify "this" for
5246         name_of_this.
5247         (auto_language_defn): Likewise.
5248         (local_language_defn): Likewise.
5249         * ada-lang.c (ada_language_defn): Adjust comment.
5250         * c-lang.c (c_language_defn): Adjust comment.
5251         (cplus_language_defn): Specify "this" for name_of_this.
5252         (asm_language_defn): Adjust comment.
5253         (minimal_language_defn): Adjust comment.
5254         * f-lang.c (f_language_defn): Specify NULL for name_of_this.
5255         * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
5256         * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
5257         * objc-lang.c (objc_language_defn): Specify "self" for
5258         name_of_this.
5259         * p-lang.c (pascal_language_defn): Specify "this" for
5260         name_of_this.
5261         * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
5262
5263         * symtab.c (lookup_symbol_aux): Lookup "this" in the
5264         proper scope, and check for field in type of "this", without
5265         trying to create a value.
5266
5267 2008-04-04  Pedro Alves  <pedro@codesourcery.com>
5268
5269         * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
5270         (mi_error_message): Delete declaration.
5271         * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
5272         returning MI_CMD_ERROR.
5273         * mi/mi-main.c (mi_error_message): Delete.
5274         (mi_cmd_exec_interrupt):
5275         (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5276         (mi_cmd_thread_info): Call error instead of returning
5277         MI_CMD_ERROR.
5278         (mi_cmd_data_list_register_values): Call error instead of
5279         returning MI_CMD_ERROR.  Adapt to new get_register interface.
5280         (get_register): Change return typo to void.  Call error instead of
5281         returning MI_CMD_ERROR.
5282         (mi_cmd_data_write_register_values): Call error instead of
5283         returning MI_CMD_ERROR.
5284         (mi_cmd_list_features): Return MI_CMD_DONE.
5285         (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
5286         (mi_execute_command): Always print exceptions with -error.
5287
5288 2008-04-04  Joel Brobecker  <brobecker@adacore.com>
5289
5290         * NEWS: Mention new commands set/show multiple-symbols.
5291
5292 2008-04-03  Joel Brobecker  <brobecker@adacore.com>
5293
5294         * symtab.c (multiple_symbols_ask, multiple_symbols_all)
5295         (multiple_symbols_cancel): New constants.
5296         (multiple_symbols_modes, multiple_symbols_mode): New static globals.
5297         (multiple_symbols_select_mode): New function.
5298         (_initialize_symtab): Add new set/show multiple-symbols commands.
5299         * symtab.h (multiple_symbols_ask, multiple_symbols_all)
5300         (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
5301         * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
5302         setting.
5303         * linespec.c (decode_line_2): Likewise.
5304
5305 2008-04-03  Doug Evans  <dje@sebabeach.org>
5306
5307         * symtab.h (enum free_code): Delete free_contents, unused.
5308         * symmisc.c (free_symtab_block): Delete.
5309         (free_symtab, case free_code): Delete.
5310
5311 2008-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
5312
5313         * valops.c (value_cast_structs): New function. Cast related
5314         STRUCT types up/down and return cast value. The body of this
5315         function comes mostly from value_cast_pointers.
5316         (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
5317         to value_cast_structs. Now value_cast_pointers needs only create
5318         appropriate reference after using value_cast_structs for actual
5319         casting.
5320         (value_cast): Handle references.
5321
5322 2008-04-01  Marc Khouzam  <marc.khouzam@ericsson.com>
5323
5324         * MAINTAINERS: Added myself to section Write After Approval.
5325
5326 2008-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
5327
5328         * ia64-tdep.c (examine_prologue): Correct array access.
5329
5330 2008-03-28  Aleksandar Ristovski  <aristovski@qnx.com>
5331
5332         * cp-support.c (first_component_command): Return if no arguments.
5333
5334 2008-03-28  Carlos O'Donell  <carlos@codesourcery.com>
5335
5336         * ser-mingw.c (ser_windows_open): Open requested name.
5337
5338 2008-03-28  Aleksandar Ristovski  <aristovski@qnx.com>
5339
5340         * MAINTAINERS: Added myself.
5341
5342 2008-03-28  Pedro Alves  <pedro@codesourcery.com>
5343
5344         * target.c (find_default_run_target): Allow a NULL `do_mesg'
5345         parameter.  If it is NULL, don't call error.
5346         (find_default_can_async_p, find_default_is_async_p): Pass NULL as
5347         `do_mesg' parameter to find_default_run_target.  If no target was
5348         found, return 0.
5349
5350 2008-03-28  Daniel Jacobowitz  <dan@codesourcery.com>
5351
5352         * mips-linux-tdep.c: Update N32/N64 signal frame comments.
5353         (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
5354         (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
5355         Delete.
5356         (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
5357
5358 2008-03-27  Joel Brobecker  <brobecker@adacore.com>
5359
5360         GDB 6.8 released.
5361
5362 2008-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
5363
5364         * features/Makefile (%.dat): Set xmltarget to the base filename
5365         of the XML source, without subdirectory.
5366         * regformats/rs6000/powerpc-32.dat: Regenerate.
5367         * regformats/rs6000/powerpc-64.dat: Regenerate.
5368         * regformats/rs6000/powerpc-e500.dat: Regenerate.
5369
5370 2008-03-27  Markus Deuling  <deuling@de.ibm.com>
5371
5372         * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
5373         objfile arch.
5374
5375 2008-03-27  Nick Roberts  <nickrob@snap.net.nz>
5376
5377         * mi/mi-main.c (enum captured_mi_execute_command_actions):
5378         Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
5379
5380 2008-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
5381
5382         * objfiles.h (struct objfile): New GDBARCH member.
5383         (get_objfile_arch): Add prototype.
5384         * objfiles.c: Include "arch-utils.h".
5385         (allocate_objfile): Look up gdbarch associated with bfd.
5386         (get_objfile_arch): New function.
5387         * Makefile (objfiles.o): Update dependencies.
5388
5389         * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
5390         by objfile arch.
5391         * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
5392         by frame arch.
5393         (locexpr_describe_location): Replace current_gdbarch by
5394         objfile arch.
5395         * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
5396         (dwarf2_add_field): Likewise.
5397         (read_tag_pointer_type): Likewise.
5398         (read_base_type): Likewise.
5399         (new_symbol): Likewise.
5400
5401         * coffread.c (decode_type): Add OBJFILE argument.  Update callers.
5402         (decode_base_type, decode_function_type): Likewise.
5403         (coff_read_struct_type, coff_read_enum_type): Likewise.
5404         (coff_symtab_read): Replace current_gdbarch by objfile arch.
5405         (decode_base_type): Likewise.
5406         (coff_read_enum_type): Likewise.
5407         (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
5408         (coff_read_enum_type): Likewise.
5409
5410         * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
5411         (end_psymtab): Likewise.
5412         (process_one_symbol): Likewise.
5413
5414         * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
5415         (parse_procedure): Likewise.
5416         (parse_partial_symbols): Likewise.
5417
5418         * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
5419
5420         * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
5421         Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
5422         built-in types.
5423         (read_range_type): Replace current_gdbarch by objfile arch.  Replace
5424         static range_index_type by built-in type.
5425         (read_one_struct_field): Replace current_gdbarch by objfile arch.
5426         (read_enum_type): Likewise.
5427
5428         * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
5429         objfile arch.
5430
5431 2008-03-26  Vladimir Prus  <vladimir@codesourcery.com>
5432
5433         * varobj.h (varobj_floating_p): Declare.
5434         * varobj.c (varobj_floating_p): New.
5435         * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
5436         '@' as the name, update all floating varobjs.
5437
5438 2008-03-26  Vladimir Prus  <vladimir@codesourcery.com>
5439
5440         * varobj.c (struct varobj_root): Rename use_selected_frame to
5441         floating, and clarify the meaning.
5442         (varobj_create, varobj_update,  new_root_variable): Adjust.
5443         (value_of_root): Don't use type_changed as in variable,
5444         adjust comment.
5445         (c_value_of_root): Adjust.
5446
5447 2008-03-25  Pedro Alves  <pedro@codesourcery.com>
5448
5449         * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
5450         gdb's thread list.
5451         (linux_nat_wait): Add main lwp to gdb's thread list.
5452         * linux-thread-db.c (find_new_threads_callback): Also attach to
5453         already listed threads which thread_db didn't know about yet.
5454
5455 2008-03-25  Pedro Alves  <pedro@codesourcery.com>
5456
5457         * linux-nat.c (drain_queued_events): Fix comment typo.
5458         (linux_nat_attach): In async mode, don't rely on storing a pending
5459         status.  Instead place the wait status on the pipe.
5460         (linux_nat_resume): Remove unreacheable shortcut code in async
5461         mode.
5462         (stop_wait_callback): In async mode, don't store pending status.
5463         Instead, cancel breakpoints or resend the signal appropriatelly.
5464         (cancel_breakpoint): New, refactored from
5465         cancel_breakpoints_callback.
5466         (cancel_breakpoints_callback): Call cancel_breakpoint.
5467         (pipe_to_local_event_queue): Remove special token processing.
5468         (linux_nat_wait): Issue an internal error if a pending status is
5469         found in async mode.
5470
5471 2008-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
5472
5473         * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
5474
5475 2008-03-24  Nick Roberts  <nickrob@snap.net.nz>
5476             Vladimir Prus  <vladimir@codesourcery.com>
5477
5478         * varobj.c  (struct varobj_root): New component thread_id.
5479         (varobj_get_thread_id, check_scope): New functions.
5480         (c_value_of_root): Use check_scope.  Switch to the
5481         proper thread if necessary.
5482
5483         * varobj.h (varobj_get_thread_id): New extern.
5484
5485         * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
5486
5487 2008-03-23  Daniel Jacobowitz  <dan@codesourcery.com>
5488
5489         PR gdb/544
5490         * top.c: Revert 2008-03-21 changes.
5491
5492 2008-03-23  Vladimir Prus  <vladimir@codesourcery.com>
5493
5494         * thread.c (make_cleanup_restore_current_thread): Make it
5495         globally visible.
5496         * gdbthread.h (make_cleanup_restore_current_thread): Declare.
5497         * varobj.c (varobj_update): Don't save/restore frame.
5498         (c_value_of_root): Save/restore thread and frame here,
5499         using make_cleanup_restore_current_thread.
5500         * Makefile.in: Update dependecies.
5501
5502 2008-03-23  Vladimir Prus  <vladimir@codesourcery.com>
5503
5504         * varobj.c (struct varobj_root): Clarify
5505         comment on the frame field.
5506         (varobj_create): Don't set frame if we have no
5507         block.
5508
5509 2008-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
5510
5511         PR gdb/544
5512         Suggested by Jan Kratochvil:
5513         * top.c (gdb_rl_operate_and_get_next_completion): Call
5514         rl_redisplay_function.
5515         (gdb_rl_redisplay): New.
5516         (init_main): Set rl_redisplay_function.
5517
5518 2008-03-21  Thomas Mittelstaedt  <T.Mittelstaedt@cadenas.de>  (tiny change)
5519
5520         * aix-thread.c (pdc_read_regs): Fix compiler warning.
5521         (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
5522         (store_regs_kernel_thread): Likewise.
5523
5524 2008-03-21  Pedro Alves  <pedro@codesourcery.com>
5525
5526         Linux native async support.
5527
5528         * target.h (struct target_ops): Delete to_async_mask_value and add
5529         to_async_mask.
5530         (target_is_async_p, target_async): Formatting.
5531         (target_async_mask_value): Delete.
5532         (target_async_mask): Delete function declaration, and add new
5533         target macro with the same name.
5534
5535         * target.c (update_current_target): Replace to_async_mask_value by
5536         to_async_mask.  Default to_async_mask to return_one.
5537         (target_async_mask): Delete.
5538         (find_default_can_async_p, find_default_is_async_p): New.
5539         (init_dummy_target): register find_default_can_async_p and
5540         find_default_is_async_p on the dummy target.
5541
5542         * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
5543         (debug_linux_nat_async): New global.
5544         (show_debug_linux_nat_async): New function.
5545         (linux_nat_async_enabled, linux_nat_async_mask_value)
5546         (linux_nat_event_pipe, linux_nat_num_queued_events)
5547         (linux_nat_async_events_enabled): New globals.
5548         (struct waitpid_result): New struct.
5549         (waitpid_queue): New global.
5550         (queued_waitpid, push_waitpid, drain_queued_events): New.
5551         (my_waitpid): Call queued_waitpid.
5552         (linux_child_follow_fork): Disable async events during the call.
5553         (blocked_mask): Delete.
5554         (sync_sigchld_action, async_sigchld_action): New globals.
5555         (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD.  In
5556         async mode, block events during the call.
5557         (linux_nat_create_inferior): New.
5558         (linux_nat_attach): In sync mode, restore the mask states.  In
5559         async mode, wake the event loop immediatelly.
5560         (detach_callback): Drain all queued events of the lwp we're
5561         detaching from.
5562         (linux_nat_detach): Block async mode, and drain events of the main
5563         process.
5564         (linux_nat_resume): If in async mode, mask async events during the
5565         call.  If short circuiting, force event loop to wake up.  If
5566         resuming, set target_executing, and register target events in the
5567         event loop.
5568         (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
5569         (linux_nat_wait): In async mode, block events during the call.
5570         Only enable/disable passing SIGINT to the inferior in sync mode.
5571         Get events from local waitpid queue.  If no interesting events was
5572         found, return to events loop.  Reregister target events in the
5573         event loop on exit.  In sync mode, no need to reblock SIGCHLD.
5574         (linux_nat_kill): Disable events on entry.
5575         (linux_nat_mourn_inferior): In sync mode, don't restore the masks
5576         here.  Detach async mode from the event loop if there are no more
5577         forks available, otherwise leave it on.
5578         (sigchld_handler): Assure this is called only in sync mode.
5579         (linux_async_permitted, linux_async_permitted_1): New globals.
5580         (set_maintenance_linux_async_permitted)
5581         (show_maintenance_linux_async_permitted): New functions.
5582         (linux_nat_is_async_p, linux_nat_can_async_p)
5583         (linux_nat_async_mask): New.
5584         (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
5585         (get_pending_events, async_sigchld_handler): New.
5586         (linux_nat_async_events): New.
5587         (async_terminal_is_ours): New global.
5588         (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
5589         (async_client_callback, async_client_context): New.
5590         (linux_nat_async_file_handler, linux_nat_async)
5591         (linux_nat_disable_async, linux_nat_enable_async): New.
5592         (linux_nat_add_target): Register linux_nat_create_inferior,
5593         linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
5594         linux_nat_async_mask, linux_nat_terminal_inferior and
5595         linux_nat_terminal_ours.
5596         (_initialize_linux_nat): Remove local action variable, and update
5597         code that used it to use sync_sigchld_action.  Add new
5598         "lin-lwp-async" debug set/show command.  Put the "lin-lwp" debug
5599         set/show command in the maintenance class.  Add new "linux-async"
5600         maintenance set/show command.  Block SIGCHLD by default.  Setup
5601         async_sichld_action, and sync_sigchld_action.  Install the default
5602         async mode.
5603         (lin_thread_get_thread_signals): Use a local sigset_t for blocking
5604         the cancel signals.
5605
5606         * linux-thread-db.c (re_check_for_thread_db): New.
5607         (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
5608         (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
5609         (thread_db_async_mask): New.
5610         (init_thread_db_ops): Register thread_db_can_async_p,
5611         thread_db_is_async_p, thread_db_async and thread_db_async_mask.
5612
5613         * remote.c (remote_async_mask_value): New.
5614         (remote_return_zero): New.
5615         (init_remote_ops): Register remote_return_zero as callbacks of
5616         to_can_async_p and to_is_async_p.
5617         (remote_can_async_p, remote_is_async_p, remote_async): Update to
5618         use remote_async_mask_value.
5619         (remote_async_mask): New.
5620         (init_remote_async_ops): Remove to_async_mask_value setting and
5621         register remote_async_mask as to_async_mask callback in
5622         remote_async_ops.
5623
5624         * Makefile.in (linux-nat.o): Update.
5625
5626 2008-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
5627
5628         * gdbthread.h (add_thread_with_info): New.
5629         * linux-thread-db.c: Add some documentation.
5630         (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
5631         (struct private_thread_info): Remove th_valid and ti_valid.
5632         Replace ti with tid.
5633         (thread_get_info_callback): Do not add TID to the new ptid.  Do
5634         not cache th or ti.
5635         (thread_db_map_id2thr, lwp_from_thread): Delete functions.
5636         (thread_from_lwp): Assert that the LWP is set.  Do not add TID to the
5637         new PTID.
5638         (attach_thread): Handle an already-existing thread.  Use
5639         add_thread_with_info.  Cache the th and tid.
5640         (detach_thread): Verify that private was set.  Remove verbose
5641         argument and printing.  Update caller.
5642         (thread_db_detach): Do not adjust inferior_ptid.
5643         (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
5644         (check_event, find_new_threads_callback): Do not add TID to the new PTID.
5645         (thread_db_wait): Do not use lwp_from_thread.
5646         (thread_db_pid_to_str): Use the cached TID.
5647         (thread_db_extra_thread_info): Check that private is set.
5648         (same_ptid_callback): Delete.
5649         (thread_db_get_thread_local_address): Do not use it or check
5650         is_thread.  Check that private is set.  Assume that the thread
5651         handle is already cached.
5652         (init_thread_db_ops): Remove to_resume and to_kill.
5653         * thread.c (add_thread_with_info): New.
5654         (add_thread): Use it.
5655         * linux-nat.c (find_thread_from_lwp): Delete.
5656         (exit_lwp): Do not use it.  Check print_thread_events.  Print before
5657         deleting the thread.
5658         (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
5659         * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
5660         * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
5661         printf_unfiltered for thread exits.
5662         * procfs.c (procfs_wait): Likewise.
5663
5664 2008-03-21  Chris Demetriou  <cgd@google.com>
5665
5666         * symtab.c (rbreak_command): Quote symbol name before passing
5667         it to break_command.
5668
5669 2008-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
5670
5671         * eval.c (evaluate_subexp_for_address): Clarify error message.
5672         Use value_must_coerce_to_target.
5673         * infcall.c (value_arg_coerce): Call value_coerce_to_target.
5674         * valops.c (value_assign): Call value_coerce_to_target when
5675         assigning to anything but internalvars.  Leave GDB-side arrays
5676         as arrays when assigning to internalvars.
5677         (value_must_coerce_to_target, value_coerce_to_target): New.
5678         (value_coerce_array, value_addr): Call value_coerce_to_target.
5679         (value_array): Create the array in GDB's memory instead of
5680         the inferior's.
5681         * value.h (value_must_coerce_to_target, value_coerce_to_target):
5682         Declare.
5683
5684 2008-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
5685
5686         * top.c (quit_confirm): Warn that we will kill the program.
5687
5688 2008-03-19  Pedro Alves  <pedro@codesourcery.com>
5689
5690         * inflow.c (terminal_ours_1): Guard access to
5691         inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
5692
5693 2008-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
5694             Jim Blandy  <jimb@codesourcery.com>
5695             Daniel Jacobowitz  <drow@false.org>
5696
5697         * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
5698         (dwarf2_read_address): Update prototype.
5699
5700         * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
5701         (signed_address_type): Likewise.
5702         (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
5703         (execute_stack_op): Update calls to unsigned_address_type,
5704         signed_address_type and dwarf2_read_address.  Fix implementation
5705         of DW_OP_deref_size.
5706
5707         * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
5708         (dwarf2_per_cu_addr_size): Likewise.
5709         (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
5710         (struct dwarf2_loclist_baton): Likewise.
5711
5712         * dwarf2loc.c (find_location_expression): Update calls to
5713         dwarf2_read_address.  Use dwarf2_per_cu_objfile and
5714         dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
5715         (locexpr_describe_location): Likewise.
5716         (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
5717         Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
5718         (dwarf2_loc_desc_needs_frame): Add PER_CU parameter.  Set ctx->addr_size
5719         to dwarf2_per_cu_addr_size (per_cu).
5720         (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
5721         (loclist_read_variable): Likewise.
5722         (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
5723
5724         * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
5725         instead of baton->objfile.
5726         (dwarf2_per_cu_obfile): New function.
5727         (dwarf2_per_cu_addr_size): Likewise.
5728
5729         * dwarf2-frame.c (struct comp_unit): Move higher.
5730         (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
5731         (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
5732         (execute_cfa_program): Add FDE parameter.  Replace EH_FRAME_P
5733         parameter by using fde->eh_frame_p.  Use read_encoded_value
5734         to implement DW_CFA_set_loc.
5735         (struct dwarf2_frame_cache): Add ADDR_SIZE member.
5736         (dwarf2_frame_cache): Set cache->addr_size.  Update calls to
5737         execute_stack_op and execute_cfa_program.
5738         (dwarf2_frame_prev_register): Update calls to execute_stack_op.
5739         (size_of_encoded_value): Remove.
5740         (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
5741         Remove call to size_of_encoded_value.  Implement DW_EH_PE_funcrel.
5742         (add_cie): Set cie->unit backlink.
5743         (decode_frame_entry_1): Set cie->addr_size.  Update calls to
5744         read_encoded_value.
5745         (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
5746
5747 2008-03-17  Markus Deuling  <deuling@de.ibm.com>
5748
5749         * i386-tdep.c (i386_print_insn): Remove unnecessary call to
5750         gdbarch_bfd_arch_info.
5751
5752 2008-03-17  Joel Brobecker  <brobecker@adacore.com>
5753
5754         * aix-thread.c (pdc_read_regs): Minor reformatting.
5755
5756 2008-03-17  Vladimir Prus  <vladimir@codesourcery.com>
5757
5758         * thread.c (print_thread_info): Don't insist
5759         on having current thread if there are no
5760         threads at all.
5761
5762 2008-03-17  Pedro Alves  <pedro@codesourcery.com>
5763
5764         * infcmd.c (attach_command_post_wait)
5765         (attach_command_continuation): New.
5766         (attach_command): Support background async execution, and async
5767         execution in synchronous mode.
5768
5769 2008-03-17  Daniel Jacobowitz  <dan@codesourcery.com>
5770
5771         * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
5772         * symmisc.c (dump_symtab_1): Likewise.
5773         * wrapper.c (gdb_value_struct_elt): Likewise.
5774
5775 2008-03-17  Pedro Alves  <pedro@codesourcery.com>
5776
5777         * linux-nat.c (linux_nat_filter_event): Fix comment typo.
5778
5779 2008-03-17  Pedro Alves  <pedro@codesourcery.com>
5780
5781         * linux-nat.c (linux_nat_filter_event): New, refactored from
5782         linux_nat_wait.
5783         (linux_nat_wait): Call linux_nat_filter_event.
5784
5785 2008-03-17  Ulrich Weigand  <uweigand@de.ibm.com>
5786
5787         * top.c (execute_command): Fix uninitialized variable error.
5788
5789 2008-03-16  Nick Hudson  <nick.hudson@dsl.pipex.com>
5790
5791         * Makefile.in (amd64nbsd-nat.o): New dependency.
5792         * amd64nbsd-nat.c: Include "nbsd-nat.h".
5793         (_initialize_amd64nbsd_nat): Update target vector to use
5794         nbsd_pid_to_exec_file.
5795         * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
5796
5797 2008-03-15  Vladimir Prus  <vladimir@codesourcery.com>
5798
5799         Remove ignoring leading exec events code.
5800         * fork-child.c (startup_inferior): Do not set
5801         inferior_ignoring_leading_exec_events.
5802         * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
5803         (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
5804         * infrun.c (inferior_ignoring_leading_exec_events): Remove.
5805         (handle_inferior_event): Remove code for ignoring leading exec
5806         events.
5807         * target.c (update_current_target): Do not inherit, or default,
5808         to_reported_exec_events_per_exec_call.
5809         (debug_to_reported_exec_events_per_exec_call): Remove.
5810         (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
5811         * target.h (target_reported_exec_events_per_exec_call): Remove.
5812         (struct target): Remove the to_reported_exec_events_per_exec_call
5813         field.
5814
5815 2008-03-15  Vladimir Prus  <vladimir@codesourcery.com>
5816
5817         Implement -thread-info.
5818         * gdbthread.h (print_thread_info): Declare.
5819
5820         * thread.c (print_thread_info): New, extracted
5821         from info_threads_command and adjusted to
5822         work for CLI and MI.
5823         (info_threads_command): Use print_thread_info.
5824         * Makefile.in: Update dependencies.
5825
5826         * mi/mi-cmds.c (mi_cmds): Specify a handler
5827         for -thread-info.
5828         * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
5829         * mi/mi-main.c (mi_cmd_thread_info): New.
5830         (mi_cmd_list_features): Include 'thread-info'.
5831
5832 2008-03-14  Kevin Buettner  <kevinb@redhat.com>
5833
5834         * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
5835         to decide whether to match instruction patterns using "sw" and "sd".
5836
5837 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
5838
5839         * infcmd.c (jump_command): Postpone disabling stdin until after
5840         the possible query.
5841
5842 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
5843
5844         * inflow.c (gdb_getpgrp): New.
5845         (gdb_has_a_terminal): Use get_getpgrp.
5846         (terminal_ours_1): If attach_flag is set, don't refetch
5847         inferior_process_group.
5848
5849 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
5850
5851         * features/library-list.dtd: Allow "section" elements as children
5852         of "library".  Add "section" element and describe its attributes.
5853
5854         * solib-target.c (struct lm_info): Add section_bases member.
5855         (library_list_start_segment): Error out if seen a section element.
5856         (library_list_start_section): New.
5857         (library_list_end_library): New.
5858         (solib_target_free_library_list): Free section_bases.
5859         (section_attributes): New.
5860         (library_children): Make "segment" optional.  Add "section" child.
5861         (library_list_children): Register library_list_end_library.
5862         (solib_target_relocate_section_addresses): Handle section bases.
5863
5864         * NEWS: Mention new qXfer:libraries:read section offsets support.
5865
5866 2008-03-14  Vladimir Prus  <vladimir@codesourcery.com>
5867
5868         * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
5869         (make_exec_error_cleanup): Remove declarations.
5870         * utils.c (exec_error_cleanup_chain): Remove.
5871         (do_exec_error_cleanups, discard_exec_error_cleanups)
5872         (make_exec_error_cleanup): Remove.
5873         * event-loop.c (start_event_loop): Adjust call to
5874         async_enable_stdin.
5875         * event-top.c (async_enable_stdin): Remove the paramater dummy.
5876         (async_disable_stdin): Don't register async_enable_stdin via
5877         cleanup.
5878         * inf-loop.c (inferior_event_handler): Don't
5879         call do_exec_error_cleanups.  Call async_enable_stdin instead.
5880         * event-loop.c (start_event_loop): Adjust call to
5881         async_enable_stdin.
5882         * tui/tui-interp.c (tui_command_loop): Adjust call to
5883         async_enable_stdin.
5884
5885 2008-03-14  Vladimir Prus  <vladimir@codesourcery.com>
5886
5887         Async mode fixes.
5888         * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
5889         * breakpoint.c (bpstat_do_actions): In async mode,
5890         don't jump to top expecting stop_bpstat to be already
5891         updated.
5892         * event-loop.c (start_event_loop): Call async_enable_stdin
5893         on exception.
5894         * event-top.c (async_enable_stdin): Do nothing if sync_execution
5895         is not set.
5896         (command_handler): Do not setup continuation here.
5897         (command_line_handler_continuation): Move to...
5898         * top.c (command_line_handler_continuation): ... here.
5899         (execute_command): In async mode, register continuation.
5900         Don't check frame's language in running in async mode.
5901         * exceptions.c (throw_exception): Don't do exec_error_cleanups.
5902         * inf-loop.c (complete_execution): Inline into...
5903         (inferior_event_handler): ... here.  Clear target_executing before
5904         doing any cleanups.  Don't try to show prompt if the target was
5905         resumed.
5906         * infcmd.c (signal_command): Add support for async mode.
5907         (finish_command): Only add continuation if the target was
5908         successfully resumed.
5909         * remote.c (init_async_opts): Register to_get_thread_local_address
5910         handler.
5911         * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
5912         with sync_execution.
5913         * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
5914         on exception.
5915
5916 2008-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
5917
5918         * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
5919         * exec.c (exec_bfd_mtime): Define.
5920         (exec_close): Clear it.
5921         (exec_file_attach): Set it.
5922         * gdbcore.h (exec_bfd_mtime): Declare.
5923         * source.c (find_source_lines): Do not use bfd_get_mtime.
5924
5925 2008-03-14  Vladimir Prus  <vladimir@codesourcery.com>
5926
5927         * top.c (simplified_command_loop): Remove.
5928
5929 2008-03-14  Vladimir Prus  <vladimir@codesourcery.com>
5930
5931         Remove unused remote.c hooks.
5932         * remote.c (deprecated_target_resume_hook)
5933         (deprecated_target_wait_loop_hook): Remove.
5934         (remote_resume): Do not call deprecated_target_resume_hook.
5935         (remote_wait): Do not call deprecated_target_wait_loop_hook.
5936         (remote_async_wait): Likewise.
5937
5938 2008-03-14  Vladimir Prus  <vladimir@codesourcery.com>
5939
5940         Implement MI notification for new threads.
5941         * doc/observer.texi (new_thread): Document.
5942         * observer.sh: Forward declare struct thread_info.
5943         * thread.c (add_thread): Notify observer.
5944
5945         * interps.h (interp_init_ftype): New parameter
5946         top_level.
5947         (interp_set): Likewise.
5948         (top_level_interpreter_data): Declare.
5949         * interps.c (interp_set): New parameter top_level.
5950         Pass it to interpreter's init function.  Remember
5951         top level interpreter.
5952         (interpreter_exec_cmd): Adjust.
5953         (top_level_interpreter_data): New.
5954         * main.c (captured_main): Pass 1 for top_level
5955         parameter of interp_set.
5956         * cli/cli-interp.c (cli_interpreter_init): New
5957         parameter top_level.
5958         * tui/tui-interp.c (tui_init): New parameter top_level.
5959
5960         * mi/mi-interp.c (mi_new_thread): New.
5961         (mi_interpreter_init): If top level, register
5962         observer for new threads.
5963
5964         * Makefile.in (mi-interp.o, thread.o): Update dependencies.
5965
5966 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
5967
5968         * top.c (execute_command): Disable break and stop
5969         commands in async mode.
5970
5971 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
5972
5973         revert:
5974         2008-03-14  Pedro Alves  <pedro@codesourcery.com>
5975         * inf-loop.c (inferior_event_handler): Don't include remote.h.
5976         Call target_stop in the INF_QUIT_REQ case.
5977         * Makefile.in (inf-loop.o): Update.
5978
5979 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
5980
5981         * inf-loop.c (inferior_event_handler): Don't include remote.h.
5982         Call target_stop in the INF_QUIT_REQ case.
5983         * Makefile.in (inf-loop.o): Update.
5984
5985 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
5986
5987         * top.c (execute_command): Enable break, info and interrupt
5988         commands in async mode.
5989
5990 2008-03-13  Vladimir Prus  <vladimir@codesourcery.com>
5991             Daniel Jacobowitz  <dan@codesourcery.com>
5992
5993         * breakpoint.h (breakpoint_restore_shadows): New
5994         declaration.
5995         * breakpoint.c (breakpoint_restore_shadows): New.
5996         (read_memory_nobpt): Delete.
5997         * gdbcore.h (read_memory_nobpt): Delete declaration.
5998         * target.c (memory_xfer_partial): Call
5999         breakpoint_restore_shadows.
6000         (restore_show_memory_breakpoints)
6001         (make_show_memory_beakpoints_cleanup): New.
6002         (show_memory_breakpoints): New.
6003         * target.h (make_show_memory_beakpoints_cleanup): Declare.
6004         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
6005         Make sure we see memory breakpoints when checking if
6006         breakpoint is still there.
6007         * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
6008         hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
6009         m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
6010         sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
6011
6012 2008-03-12  Pedro Alves  <pedro@codesourcery.com>
6013
6014         * thread.c (add_thread): Use printf_unfiltered to print.
6015
6016 2008-03-12  Joel Brobecker  <brobecker@gnat.com>
6017
6018         * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
6019         that is true only on x86-solaris and x86_64-solaris.
6020         * procfs.c: Likewise. Move procfs_find_LDT_entry up together
6021         with proc_get_LDT_entry.
6022
6023 2008-03-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6024
6025         * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
6026         * config.in, configure: Regenerate.
6027         * fork-child.c (fork_inferior): Call create_tty_session.
6028         * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
6029         (create_tty_session): New function.
6030         * terminal.h: Declare create_tty_session.
6031
6032 2008-03-12  Alan Modra  <amodra@bigpond.net.au>
6033
6034         PR 5900
6035         * elfread.c (elf_symtab_read): Make shndx an unsigned int.
6036         * mipsread.c: Include elf/internal.h.
6037         (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
6038         to internal range.
6039
6040 2008-03-11  Markus Deuling  <deuling@de.ibm.com>
6041
6042         * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
6043         to get at the current architecture and at the target specific vector.
6044         Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
6045         remove define of I387_ST0_REGNUM.
6046
6047         * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
6048
6049         (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
6050         get at the current architecture
6051         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
6052         parameter.
6053
6054         * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
6055         I387_NUM_XMM_REGS and I387_MM0_REGNUM.
6056
6057         (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
6058         I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
6059         (I387_FSTAT_REGNUM): Add target specific vector as parameter.
6060
6061         (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
6062         at the target specific vector.
6063
6064         (i386_get_longjmp_target): Use get_frame_arch to get at the current
6065         architecture. Use gdbarch_tdep to get at the target specific vector.
6066
6067         (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
6068         update caller. Use gdbarch_tdep to get at the target specific vector.
6069
6070         (i386_register_to_value: Use get_frame_arch to get at the current
6071         architecture.
6072
6073         * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
6074         parameter.
6075
6076         * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
6077         I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
6078         I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
6079         FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
6080
6081         (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
6082         undef's.
6083
6084         (i387_convert_register_p, i387_register_to_value,
6085         i387_value_to_register): Update call for i386_fp_regnum_p.
6086
6087         * i387-tdep.h: Remove comment.
6088         (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
6089         (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
6090         I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
6091         I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
6092         I387_MXCSR_REGNUM): Add target specific vector as parameter.
6093
6094 2008-03-10  Daniel Jacobowitz  <dan@codesourcery.com>
6095
6096         * Makefile.in (fork-child.o): Update.
6097         * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
6098         argument.  Gather all gdbserver features together.
6099         * fork-child.c (exec_wrapper): New variable.
6100         (fork_inferior): Use it.
6101         (startup_inferior): Skip an extra trap if using "set exec-wrapper".
6102         (unset_exec_wrapper_command, _initialize_fork_child): New.
6103
6104 2008-03-10  Hidetaka Takano  <hidetaka.takano@glb.toshiba.co.jp>
6105
6106         * source.c (directory_command): Modify the determination of
6107         condition of terminal "from_tty".
6108
6109 2008-03-10  Matt Rice  <ratmice@gmail.com>
6110
6111         * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
6112
6113 2008-03-10  Hidetaka Takano  <hidetaka.takano@glb.toshiba.co.jp>
6114
6115         * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
6116         of the data passing to strtoulst function.
6117         (info_spu_signal_command): Likewise.
6118
6119 2008-03-08  Vladimir Prus  <vladimir@codesourcery.com>
6120
6121         * mi/mi-interp.c (mi_command_loop): Remove
6122         commented-out code.
6123
6124 2008-03-07  Joel Brobecker  <brobecker@adacore.com>
6125
6126         * remote.c (extended_remote_attach_1): Make local variable pid an int
6127         instead of a pid_t.
6128
6129 2008-03-07  Joel Brobecker  <brobecker@adacore.com>
6130
6131         * solib-svr4.c (svr4_same_1): New function, originally extracted
6132         from svr4_same and expanded to handle the sparc64 case.
6133         (svr4_same): Move up and reimplement using svr4_same_1.
6134         (enable_break): Use svr4_same_1 to do shared library name comparisons.
6135
6136 2008-03-07  Ramana Radhakrishnan  <ramana.r@gmail.com>
6137
6138         * MAINTAINERS: Move self to Paper trail.
6139
6140 2008-03-05  Daniel Jacobowitz  <dan@codesourcery.com>
6141
6142         * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
6143         * event-loop.c (call_async_signal_handler): New.
6144         * event-loop.h (call_async_signal_handler)
6145         (gdb_call_async_signal_handler): Declare.
6146         (mark_async_signal_handler): Add comments.
6147         * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
6148         * mingw-hdep.c (sigint_event, sigint_handler): New.
6149         (gdb_select): Use them.  Wait for the readline signal handler
6150         to finish.
6151         (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
6152         * posix-hdep.c (gdb_call_async_signal_handler): New function.
6153         * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
6154         New.
6155         (remote_fileio_ctrl_c_signal_handler): Use
6156         gdb_call_async_signal_handler.
6157         (initialize_remote_fileio): Initialize sigint_fileio_token.
6158         * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
6159         not initialize tokens here.
6160         (handle_remote_sigint_twice): Likewise.  Reinstall
6161         handle_remote_sigint.
6162         (async_remote_interrupt_twice): Just call interrupt_query.
6163         (cleanup_sigint_signal_handler): Do not delete tokens.
6164         (remote_interrupt, remote_interrupt_twice): Use
6165         gdb_call_async_signal_handler.
6166         (interrupt_query): Reinstall the default signal handler.
6167         (_initialize_remote): Initialize tokens here.
6168
6169 2008-03-04  Joel Brobecker  <brobecker@adacore.com>
6170
6171         * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
6172         features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
6173         Change the type of the lr register to code_ptr.
6174         * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
6175         features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
6176         features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
6177         features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
6178         features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
6179         features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
6180         features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
6181
6182 2008-03-03  James E. Wilson  <wilson@tuliptree.org>
6183
6184         * MAINTAINERS: Update my email address.
6185
6186 2008-03-03  Keith Seitz  <keiths@redhat.com>
6187
6188         From Dave Murphy  <davem@devkitpro.org>:
6189         * configure.ac: Set tcl configdir to win under mingw.
6190         * configure: Regenerate.
6191
6192 2008-03-03  Daniel Jacobowitz  <dan@codesourcery.com>
6193
6194         * breakpoint.c (fetch_watchpoint_value): New function.
6195         (update_watchpoint): Set and clear val_valid.  Use
6196         fetch_watchpoint_value.  Handle unreadable values on the
6197         value chain.  Correct check for user-requested array watchpoints.
6198         (breakpoint_init_inferior): Clear val_valid.
6199         (watchpoint_value_print): New function.
6200         (print_it_typical): Use it.  Do not free or clear old_val.  Print
6201         watchpoints even if old_val == NULL.
6202         (watchpoint_check): Use fetch_watchpoint_value.  Check for values
6203         becoming readable or unreadable.
6204         (watch_command_1): Use fetch_watchpoint_value.  Set val_valid.
6205         (do_enable_watchpoint): Likewise.
6206         * breakpoint.h (struct breakpoint): Update comment for val.  Add
6207         val_valid.
6208         * NEWS: Mention watchpoints on inaccessible memory.
6209
6210 2007-02-29  Daniel Jacobowitz  <dan@codesourcery.com>
6211
6212         * Makefile.in (i386-nat.o): Update.
6213         * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
6214         i386_use_watchpoints.
6215         * i386-linux-nat.c (_initialize_i386_linux_nat): Call
6216         i386_use_watchpoints.
6217         * i386-nat.c (i386_stopped_data_address): Take two arguments.
6218         (i386_stopped_by_watchpoint): Update call.
6219         (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
6220         * config/i386/nm-i386.h: Conditionalize definitions on
6221         ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
6222         (i386_use_watchpoints): Declare.
6223         (i386_stopped_data_address): Update.
6224         * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
6225         * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
6226
6227 2008-02-29  Joel Brobecker  <brobecker@adacore.com>
6228
6229         GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
6230         * version.in: Bump version to 6.8.50.20080229-cvs.
6231
6232 2008-02-28  Markus Deuling  <deuling@de.ibm.com>
6233
6234         * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
6235         properly.
6236
6237 2008-02-28  Tom Tromey  <tromey@redhat.com>
6238
6239         * infcmd.c (notice_args_read): Print result of get_inferior_args.
6240
6241 2008-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
6242
6243         * infcmd.c (kill_if_already_running): Make static.  Use
6244         target_require_runnable.
6245         * target.c (target_require_runnable): New.
6246         * target.h (target_require_runnable): Declare.
6247
6248 2008-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
6249
6250         * frame.c (reinit_frame_cache): Only annotate if frames were
6251         previously valid.
6252
6253 2008-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
6254
6255         * regformats/reg-ppc.dat: Rename "ps" to "msr".
6256         * regformats/reg-ppc64.dat: Likewise.
6257
6258 2008-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
6259
6260         * features/Makefile (%.dat): Emit xmltarget statement.
6261
6262         * regformats/regdat.sh: Support xmltarget and xmlarch statments.
6263         Generate code to set gdbserver_xmltarget in init_registers_${name}.
6264
6265         * regformats/arm-with-iwmmxt.dat: Regenerate.
6266         * regformats/mips64-linux.dat: Regenerate.
6267         * regformats/mips-linux.dat: Regenerate.
6268         * regformats/rs6000/powerpc-32.dat: Regenerate.
6269         * regformats/rs6000/powerpc-64.dat: Regenerate.
6270         * regformats/rs6000/powerpc-e500.dat: Regenerate.
6271
6272         * regformats/reg-arm.dat: Add xmlarch statement.
6273         * regformats/reg-i386.dat: Likewise.
6274         * regformats/reg-i386-linux.dat: Likewise.
6275         * regformats/reg-x86-64-linux.dat: Likewise.
6276         * regformats/reg-spu.dat: Likewise.
6277
6278 2008-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
6279
6280         * remote.c (remote_wait, remote_async_wait): Stop if we receive
6281         an error.
6282
6283 2008-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
6284
6285         * utils.c (debug_timestamp): New.
6286         (vfprintf_unfiltered): Print timestamps if requested.
6287         (show_debug_timestamp): New.
6288         (initialize_utils): Register "set debug timestamp".
6289         * NEWS: Mention "set debug timestamp".  Add GDB 6.8 section.
6290
6291 2008-02-27  Joel Brobecker  <brobecker@adacore.com>
6292
6293         * breakpoint.c (skip_prologue_sal): New function.
6294         (resolve_sal_pc): Adjust SAL past prologue if the SAL was
6295         computed from a line number.
6296
6297 2008-02-27  Joel Brobecker  <brobecker@adacore.com>
6298
6299         * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
6300         features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
6301         Set PC register type to "code_ptr".
6302         * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
6303         features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
6304         features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
6305         features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
6306         features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
6307         features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
6308         features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
6309         Regenerate.
6310
6311 2008-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
6312
6313         * regformats/regdat.sh: Rename init_registers function in
6314         generated file to init_registers_${name}.
6315
6316         * regformats/reg-crisv32.dat: Set "name" to crisv32.
6317         * regformats/reg-ppc64.dat: Set "name" to ppc64.
6318         * regformats/reg-s390x.dat: Set "name" to s390x.
6319
6320 2008-02-26  Greg Law  <glaw@undo-software.com>
6321
6322         * regcache.c (registers_changed): Call reinit_frame_cache.
6323
6324 2008-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
6325
6326         * configure.tgt (sh-*-linux*): Match sh*.  Add glibc-tdep.o.
6327         * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
6328         and svr4_fetch_objfile_link_map.
6329         * Makefile.in (sh-linux-tdep.o): Update.
6330
6331 2008-02-26  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6332
6333         * amd64-tdep.c (amd64_classify): Add support for decimal float
6334         types.
6335         * i386-tdep.c (i386_return_value): Make 128-bit decimal float
6336         use the struct return convention.
6337
6338 2008-02-26  Nick Roberts  <nickrob@snap.net.nz>
6339
6340         * breakpoint.c (print_one_breakpoint_location): Revert Enb field
6341         to old format.  Discard breakpoint address if shared library is
6342         unloaded.
6343         (breakpoint_1): Adjust formatting of table header accordingly.
6344
6345 2008-02-25  Vladimir Prus  <vladimir@codesourcery.com>
6346
6347        * remote.c (remote_get_threadlist): If the response
6348        is empty, don't try to parse it.
6349
6350 2008-02-23  Vladimir Prus  <vladimir@codesourcery.com>
6351
6352         Unbreak 'target async'.
6353         * serial.c (serial_async): Set the
6354         handler function before enabling async
6355         mode.
6356
6357 2008-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
6358
6359         * solib-svr4.c (enable_break): Convert r_brk to a code address.
6360
6361 2008-02-21  Pedro Alves  <pedro@codesourcery.com>
6362
6363         * remote.c (extended_remote_attach_1): Set attach_flag.
6364         (extended_remote_create_inferior_1): Clear attach_flag.
6365
6366 2008-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
6367
6368         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
6369         r_brk_offset.
6370         (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
6371         * solib-svr4.c (solib_svr4_r_brk): New.
6372         (open_symbol_file_object, svr4_current_sos): Always check the
6373         debug base.
6374         (svr4_fetch_objfile_link_map): Do not set debug_base.
6375         (enable_break): Use r_brk if it is set.
6376         (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
6377         (svr4_lp64_fetch_link_map_offsets): Likewise.
6378         * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
6379
6380 2008-02-20  Markus Deuling  <deuling@de.ibm.com>
6381             Mark Kettenis  <kettenis@gnu.org>
6382
6383         * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
6384         trad_frame_saved_reg.
6385         (trad-frame.h): New include.
6386
6387         (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
6388         instead of frame_obstack_zalloc.
6389         (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
6390
6391         * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
6392
6393 2008-02-20  Markus Deuling  <deuling@de.ibm.com>
6394
6395         * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
6396         from disassemble_info instead of gdbarch_byte_order.
6397
6398         * mips-tdep.c (gdb_print_insn_mips): Likewise.
6399         * arm-tdep.c (gdb_print_insn_arm): Likewise.
6400
6401 2008-02-20  Markus Deuling  <deuling@de.ibm.com>
6402
6403         * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
6404         gdbarch as parameter.
6405
6406         * gdbarch.{c,h}: Regenerate.
6407
6408         * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
6409         parameter.
6410         * mem-break.c (default_memory_insert_breakpoint)
6411         (default_memory_remove_breakpoint): Likewise.
6412         * target.h (default_memory_remove_breakpoint)
6413         (default_memory_insert_breakpoint): Likewise.
6414
6415         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
6416         parameter. Replace current_gdbarch by gdbarch.
6417         * m32r-tdep.c (m32r_memory_insert_breakpoint)
6418         (m32r_memory_remove_breakpoint): Likewise.
6419
6420 2008-02-19  Daniel Jacobowitz  <dan@codesourcery.com>
6421
6422         * MAINTAINERS: Add Vladimir Prus as MI maintainer.
6423
6424 2008-02-19  Joel Brobecker  <brobecker@adacore.com>
6425
6426         * NEWS: Add entry describing Add support improvements.
6427
6428 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
6429
6430         * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
6431         M68K_FP0_REGNUM.
6432
6433 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
6434
6435         * sentinel-frame.c (sentinel_frame_prev_register): Do not call
6436         register_offset_hack anymore.
6437
6438         * regcache.{c,h} (register_offset_hack): Remove.
6439
6440 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
6441
6442         * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
6443
6444         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
6445         current_gdbarch by gdbarch.
6446         (hppa64_hpux_find_global_pointer): Likewise.
6447         * hppa-tdep.c (hppa_find_global_pointer): Likewise.
6448         (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
6449         find_global_pointer.
6450
6451         * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
6452         parameter.
6453         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6454
6455         * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
6456         of gdbarch_num_regs.
6457
6458         * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
6459         replace current_gdbarch by gdbarch.
6460         (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
6461
6462 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
6463
6464         * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
6465         and replace current_gdbarch by gdbarch.
6466
6467         (store_register): Update call for exec_one_dummy_insn.
6468         (fetch_register, store_register): Update call of regmap.
6469
6470         * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
6471         parameter and replace current_gdbarch by gdbarch.
6472
6473         (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
6474         the current architecture. Update call for getregs_supplies and
6475         getfpregs_supplies.
6476         (ppcnbsd_fetch_inferior_registers): Likewise.
6477
6478         * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
6479         replace current_gdbarch by gdbarch.
6480         (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
6481         get_regcache_arch to get at the current architecture. Update call for
6482         getfpregs_supplies.
6483
6484 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
6485
6486         * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
6487         variables.
6488
6489 2008-02-15  Markus Deuling  <deuling@de.ibm.com>
6490
6491         * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
6492
6493 2008-02-14  Vladimir Prus  <vladimir@codesourcery.com>
6494
6495         * NEWS: Mention pending breakpints in MI.
6496
6497 2008-02-14  Markus Deuling  <deuling@de.ibm.com>
6498
6499         * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
6500
6501 2008-02-13  Markus Deuling  <deuling@de.ibm.com>
6502
6503         Add script to build and test GDB using enable-targets=all.
6504
6505         * gdb_buildall.sh: New file.
6506
6507 2008-02-11  Maxim Grigoriev  <maxim2405@gmail.com>
6508
6509         * NEWS (New native configurations): Xtensa GNU/Linux.
6510         (New targets): Xtensa GNU/Linux.
6511         * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
6512         xtensa-linux-tdep.o
6513         (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
6514         (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
6515         * configure.tgt (xtensa*-*-linux*): New entry.
6516         * xtensa-config.c (xtensa_tdep): New variable.
6517         (xtensa_config_byte_order, xtensa_config_tdep): Removed.
6518         (rmap): Change format based on new macro XTREG.
6519         (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
6520         * xtensa-linux-nat.c: New.
6521         * xtensa-linux-tdep.c: New.
6522         * xtensa-xtregs.c: New.
6523         * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
6524         (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
6525         (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
6526         (xtensa_register_t): New field coprocessor.
6527         (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
6528         * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
6529         (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
6530         Update to handle privileged registers.
6531         (xtensa_supply_gregset) Remove exccause and excvaddr registers.
6532         (xtensa_push_dummy_call): Set windowstart register correctly.
6533         (call0_analyze_prologue): Initialize xtensa_default_isa.
6534         (xtensa_derive_tdep): New.
6535         (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
6536         xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
6537         Call xtensa_derive_tdep().
6538         * config/xtensa/linux.mh: New.
6539         * regformats/reg-xtensa.dat: New.
6540
6541 2008-02-09  Aleksandar Ristovski  <aristovski@qnx.com>  (tiny change)
6542
6543         * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
6544         (filenames.h): New include.
6545         * Makefile.in (corelow.o): Add dependency for filenames.h.
6546
6547 2008-02-08  Doug Evans  <dje@google.com>
6548
6549         * source.c (find_and_open_source): Always rewrite absolute filenames.
6550
6551 2008-02-07  Doug Evans  <dje@google.com>
6552
6553         * breakpoint.c: #include "hashtab.h".
6554         (ambiguous_names_p): New fn.
6555         (update_breakpoint_locations): When restoring bp enable status, don't
6556         compare function names if any functions have same name.
6557         * Makefile.in (breakpoint.o): Add hashtab.h dependency.
6558
6559 2008-02-07  Joel Brobecker  <brobecker@adacore.com>
6560
6561         * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
6562         instead of just a VEC*. Update use of SV.
6563         (ada_make_symbol_completion_list): Update symbol_completion_add calls.
6564
6565 2007-02-07  Joel Brobecker  <brobecker@adacore.com>
6566
6567         * NEWS: Put all new commands since gdb-6.7 together.
6568
6569 2007-02-07  Joel Brobecker  <brobecker@adacore.com>
6570
6571         * ada-lang.c: #include "vec.h".
6572         (struct string_vector, new_string_vector, string_vector_append):
6573         Delete.
6574         (char_ptr): New typedef.
6575         (DEF_VEC_P (char_ptr)): New VEC type.
6576         (symbol_completion_add): Update profile to take the new VEC type
6577         instead of the old string_vector structure. Update code accordingly.
6578         (ada_make_symbol_completion_list): Use the new VEC type instead of
6579         the old string_vector structure, and update the code accordingly.
6580         * Makefile.in (ada-lang.o): Add dependency on vec.h.
6581
6582 2008-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
6583
6584         * p-exp.y: Set current_type in missing places.
6585         (leftdiv_is_integer): New static variable.
6586         Typecast right operand of BINOP_DIV to long_double if both operands
6587         are integers.
6588
6589 2008-02-06  Maciej W. Rozycki  <macro@mips.com>
6590
6591         * remote-mips.c (set_breakpoint): Rename to...
6592         (mips_set_breakpoint): ... this.
6593         (clear_breakpoint): Rename to...
6594         (mips_clear_breakpoint): ... this.
6595         (common_breakpoint): Rename to...
6596         (mips_common_breakpoint): ... this.
6597         (check_lsi_error): Rename to...
6598         (mips_check_lsi_error): ... this.
6599
6600 2007-02-05  Joel Brobecker  <brobecker@adacore.com>
6601
6602         * language.h (struct language_defn): Add new field
6603         la_make_symbol_completion_list.
6604         * symtab.c (default_make_symbol_completion_list): Renames
6605         make_symbol_completion_list.
6606         (make_symbol_completion_list): New function.
6607         * symtab.h (default_make_symbol_completion_list): Add declaration.
6608         * langauge.c (unknown_language): Set la_make_symbol_completion_list.
6609         (auto_language, local_language): Likewise.
6610         * objc-lang.c (objc_language_defn): Likewise.
6611         * scm-lang.c (scm_language_defn): Likewise.
6612         * m2-lang.c (m2_language_defn): Likewise.
6613         * f-lang.c (f_language_defn): Likewise.
6614         * jv-lang.c (java_language_defn): Likewise.
6615         * p-lang.c (pascal_language_defn): Likewise.
6616         * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
6617         (minimal_language_defn): Likewise.
6618         * ada-lang.c (struct string_vector): New structure.
6619         (new_string_vector, string_vector_append, ada_unqualified_name)
6620         (add_angle_brackets, symbol_completion_match, symbol_completion_add)
6621         (ada_make_symbol_completion_list): New functions.
6622         (ada_language_defn): Set la_make_symbol_completion_list.
6623         * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
6624         this function is static.
6625
6626 2008-02-05  Kevin Buettner  <kevinb@redhat.com>
6627
6628         * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
6629         to account for call site optimizations.
6630
6631 2008-02-05  Andrzej Zaborowski  <balrogg@gmail.com>
6632
6633         * tracepoint.c (read_actions): Handle end-of-text indicator
6634         in action list properly.  (Committed by Jim Blandy)
6635
6636 2008-02-05  Jim Blandy  <jimb@red-bean.com>
6637
6638         * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
6639         pseudoregister, not an internal error.
6640         Reported by: Andrzej Zaborowski
6641
6642 2008-02-04  Vladimir Prus  <vladimir@codesourcery.com>
6643
6644         * varobj.c (c_value_of_variable): Use xstrdup.
6645
6646 2008-02-04  Vladimir Prus  <vladimir@codesourcery.com>
6647
6648         Update stored rendition of varobj value when format changes.
6649         * varobj.c (varobj_set_display_format): Recomputed
6650         print_value.
6651         (c_value_of_variable): Return print_value.
6652
6653 2008-02-03  Doug Evans  <dje@google.com>
6654
6655         * eval.c (evaluate_subexp_standard): Fix type of result of mixed
6656         integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
6657         * valops.c (value_one): New function.
6658         * value.h (value_one): Declare.
6659
6660         Fix argument promotion for binary arithmetic ops for C.
6661         * valarith.c (unop_result_type): New fn.
6662         (binop_result_type): New fn.
6663         (value_binop): Move result type computation to binop_result_type.
6664         (value_pos, value_neg, value_complement): Move result type
6665         computation to unop_result_type.
6666
6667         PR 2384
6668         * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
6669         Return basetype, fieldno if found.  All callers updated.
6670         Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
6671         objfile.
6672         * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
6673         * symfile.h (fill_in_vptr_fieldno): Delete.
6674
6675 2008-02-02  Doug Evans  <dje@google.com>
6676
6677         * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
6678
6679         * typeprint.c (*): Whitespace cleanup.
6680
6681 2008-02-02  Mark Kettenis  <kettenis@gnu.org>
6682             Luis Machado  <luisgpm@br.ibm.com>
6683             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6684
6685         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
6686         don't fit into registerson the stack the way GCC does.
6687
6688 2008-02-01  Joel Brobecker  <brobecker@adacore.com>
6689
6690         * symtab.c (symbol_set_names): Do not add an entry in the demangling
6691         hash table for Ada symbols. Just store the linkage name as is,
6692         and leave the demangled_name as NULL.
6693
6694 2007-02-01  Joel Brobecker  <brobecker@adacore.com>
6695
6696         * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
6697         in the global scope.
6698         (new_symbol): Likewise.
6699
6700 2008-02-01  Vladimir Prus  <vladimir@codesourcery.com>
6701
6702         * breakpoint.c (break_command_1): Return void.
6703         (break_command_really): Return void.  Rethrow
6704         exceptions instead of returning.
6705         (gdb_breakpoint): Remove the error_message parameter.
6706         Return void.  Rename to set_breakpoint.
6707         * gdb.h (gdb_breakpoint): Rename and move to...
6708         * breakpoint.h (set_breakpoint): ...here.
6709         * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
6710         event hooks even if exception is thrown.  Adjust to
6711         gdb_breakpoint interface changes.
6712
6713
6714 2008-02-01  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6715
6716         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
6717         float in both first and second word in the doubleword, to support
6718         old and new ABIs.
6719
6720 2008-02-01  Vladimir Prus  <vladimir@codesourcery.com>
6721
6722         Properly rethrow exception.  This fixes errors
6723         about non-existent functions for -break-insert.
6724         * breakpoint.c (break_command_really): Use throw_exception
6725         for rethrowing.  If rethrowing, don't print the exception.
6726
6727 2008-01-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6728
6729         * NEWS: Mention Decimal Floating Point support.
6730
6731 2008-01-31  Joel Brobecker  <brobecker@adacore.com>
6732
6733         * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
6734         value type to builtin_type_void_func_ptr.
6735
6736 2008-01-31  Andreas Krebbel  <krebbel1@de.ibm.com>
6737
6738         * s390-tdep.c (is_float_singleton, is_float_like,
6739         alignment_of, s390_return_value): Make checks for
6740         TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
6741
6742 2008-01-31  Luis Machado  <luisgpm@br.ibm.com>
6743             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6744
6745         * infcmd.c (default_print_registers_info): Also print hex
6746         raw contents for TYPE_CODE_DECFLOAT registers.
6747         * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
6748         * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
6749         (rs6000_register_name): Add support for DFP pseudo-registers.
6750         (rs6000_pseudo_register_type): Likewise.
6751         rs6000_pseudo_register_reggroup_p): Likewise.
6752         (ppc_pseudo_register_read): New function.
6753         (ppc_pseudo_register_write): Likewise.
6754         (rs6000_pseudo_register_read): Likewise.
6755         (rs6000_pseudo_register_write): Likewise.
6756         (e500_pseudo_register_read): Move checks to
6757         rs6000_pseudo_register_read.
6758         (e500_pseudo_register_write): Move checks to
6759         rs6000_pseudo_register_write.
6760         (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum.  Install
6761         rs6000_pseudo_register_read and rs6000_pseudo_register_write
6762         in gdbarch if SPE or DFP is available.  Adjust gdbarch's
6763         num_pseudo_regs to account for DFP pseudo regs.
6764
6765 2008-01-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6766
6767         * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
6768         * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
6769         (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
6770         rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
6771         e500_pseudo_register_read, e500_pseudo_register_write): Use
6772         IS_SPE_PSEUDOREG macro.
6773         (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
6774         (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
6775         Remove initialization of tdep->ppc_ev31_regnum.
6776
6777 2008-01-08  Paul Hilfinger  <hilfinger@adacore.com>
6778
6779         * printcmd.c (print_formatted): Handle references as for unformatted
6780         prints.
6781
6782 2008-01-30  Joel Brobecker  <brobecker@adacore.com>
6783
6784         * eval.c (evaluate_subexp_standard): Add handling of user
6785         registers when in EVAL_AVOID_SIDE_EFFECTS mode.
6786
6787 2008-01-30  Pierre Muller  <muller@ics.u-strasbg.fr>
6788
6789         * eval.c (evaluate_subexp_standard): Support
6790         BINOP_INTDIV opcode.
6791
6792 2008-01-30  Paul N. Hilfinger  <hilfinger@adacore.com>
6793
6794         * valarith.c (value_binop): Add floating-point BINOP_MIN and
6795         BINOP_MAX cases.
6796         For BINOP_EXP, use length and signedness of left operand only for
6797         result, as for shifts.
6798         For integral operands to BINOP_EXP, use new integer_pow and
6799         uinteger_pow functions so as to get full range of results.
6800         (integer_pow): New function.
6801         (uinteger_pow): New function.
6802
6803 2008-01-30  Vladimir Prus  <vladimir@codesourcery.com>
6804
6805         Use vector for varobj_list_children interface.
6806         * gdb/varobj.c (varobj_list_children): Return vector
6807         of varobjs.
6808         * gdb/varobj.h (varobj_list_children): Adjust
6809         prototype.
6810         (varobj_p): Declare.  Declare vector thereof.
6811         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
6812         for varobj_list_children change.
6813         * Makefile.in (varobj_h): Update dependencies.
6814
6815 2008-01-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6816
6817         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
6818         TYPE_CODE_DECFLOAT arguments.
6819         (ppc64_sysv_abi_push_dummy_call) Likewise.
6820         (get_decimal_float_return_value): New function.
6821         (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
6822         values by calling get_decimal_float_return_value.
6823         (ppc64_sysv_abi_return_value): Likewise.
6824
6825 2008-01-30  Nick Roberts  <nickrob@snap.net.nz>
6826
6827         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):  Add field
6828         for preprocessor macro information.  Formatting changes.
6829
6830 2008-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
6831
6832         * remote.c (struct remote_state): Add cached_wait_status.
6833         (remote_exec_file): New variable.
6834         (PACKET_vAttach, PACKET_vRun): New constants.
6835         (extended_remote_restart): Do not query for status.
6836         (struct start_remote_args): New.
6837         (remote_start_remote): Take it as a second argument.  Check
6838         whether the target is running.  Issue an error for non-running
6839         non-extended targets.  Cache the wait status.  Set inferior_ptid
6840         here.
6841         (remote_open_1): Prompt to disconnect non-running targets.  Make
6842         sure the target is marked running.  Do not set inferior_ptid here.
6843         Update call to remote_start_remote.  Do not call remote_check_symbols
6844         if the target is not running.
6845         (remote_detach_1): Rename from remote_detach.  Take an EXTENDED
6846         argument.  Handle a non-running target.
6847         (remote_detach): Use it.
6848         (extended_remote_detach): New.
6849         (remote_disconnect): Fix typo.  Use remoute_mourn_1.
6850         (extended_remote_attach_1, extended_remote_attach)
6851         (extended_async_remote_attach): New.
6852         (remote_vcont_resume): Remove unused variable.
6853         (remote_wait, remote_async_wait): Use any cached wait status.
6854         (putpkt_binary, getpkt): Clear any cached wait status.
6855         (extended_remoute_mourn_1): New.
6856         (extended_remote_mourn): Use it.
6857         (extended_async_remote_mourn, extended_remote_run): New.
6858         (extended_remote_create_inferior_1): New.
6859         (extended_remote_create_inferior): Use it.
6860         (extended_remote_async_create_inferior): Likewise.
6861         (remote_xfer_partial): Skip for non-executing targets.
6862         (init_extended_remote_ops): Set to_detach and to_attach.
6863         (init_extended_async_remote_ops): Likewise.  Use
6864         extended_async_remote_mourn.
6865         (_initialize_remote): Register vAttach, vRun, and
6866         set remote exec-file.
6867         * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
6868
6869 2008-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
6870
6871         * Makefile.in (symfile.o): Update.
6872         * NEWS: Mention exec tracing support.
6873         * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
6874         exec events.
6875         * infcmd.c (kill_if_already_running, detach_command)
6876         (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
6877         * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
6878         (follow_exec): Do not check may_follow_exec.  Do not mourn and push
6879         targets.  Apply the sysroot path to the loaded executable.  Use
6880         no_shared_libraries.
6881         * linux-nat.c (linux_child_follow_fork): Print fork following
6882         messages if verbose.
6883         (kill_wait_callback): Kill again before waiting a second time.
6884         * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
6885         no_shared_libraries.
6886
6887 2008-01-29  Joel Brobecker  <brobecker@adacore.com>
6888
6889         * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
6890
6891 2008-01-29  Joel Brobecker  <brobecker@adacore.com>
6892
6893         * nto-tdep.h: Remove #include "defs.h".
6894         * nto-tdep.c: Add #include "defs.h".
6895         * Makefile.in (nto_tdep_h): Update dependencies.
6896         (nto-tdep.o): Likewise.
6897
6898 2008-01-29  Joel Brobecker  <brobecker@adacore.com>
6899
6900         * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
6901         and use it.
6902         (proceed, start_remote): Update call to wait_for_inferior.
6903         * inferior.h (wait_for_inferior): Update declaration.
6904         * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
6905         solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
6906         * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
6907         TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
6908
6909 2008-01-29  Aleksandar Ristovski  <aristovski@qnx.com>
6910
6911         * varobj (adjust_value_for_child_access): Added checking for
6912         returned value from gdb_value_ind.
6913         (c_describe_child): Likewise.
6914         (cplus_describe_child): Fixed a typo.
6915
6916 2008-01-29  Jim Blandy  <jimb@red-bean.com>
6917
6918         * MAINTAINERS: Update my info.
6919
6920 2008-01-29  Vladimir Prus  <vladimir@codesourcery.com>
6921
6922         Use multiple locations for hardware watchpoints.
6923         This eliminates the need to traverse value chain, doing
6924         various checks, in three different places.
6925
6926         * breakpoint.h (struct bp_location): New fields
6927         lengths and watchpoint_type.
6928         (struct breakpoint): Remove the val_chain field.
6929         * breakpoint.c (is_hardware_watchpoint): New.
6930         (free_valchain): Remove.
6931         (update_watchpoint): New.
6932         (insert_bp_location): For hardware watchpoint, just
6933         directly insert it.
6934         (insert_breakpoints): Call update_watchpoint_locations
6935         on all watchpoints.  If we have failed to insert
6936         any location of a hardware watchpoint, remove all inserted
6937         locations.
6938         (remove_breakpoint): For hardware watchpoints, directly
6939         remove location.
6940         (watchpoints_triggered): Iterate over locations.
6941         (bpstat_stop_status): Use only first location of
6942         a resource watchpoint.
6943         (delete_breakpoint): Don't call free_valchain.
6944         (print_one_breakpoint): Don't print all
6945         locations for watchpoints.
6946         (breakpoint_re_set_one): Use update_watchpoint for
6947         watchpoints.
6948
6949 2008-01-29  Vladimir Prus  <vladimir@codesourcery.com>
6950
6951         Don't reset watchpoint block on solib load.
6952
6953         * breakpoint.c (insert_bp_location): For watchpoints,
6954         recompute condition.
6955         (breakpoint_re_set_one): Instead of recomputing value
6956         and condition for watchpoints, just reset value and
6957         let insert_breakpoints/insert_bp_location recompute it.
6958         Don't do anything about disabled watchpoint.
6959
6960 2008-01-29  Pierre Muller  <muller@ics.u-strasbg.fr>
6961
6962         * valarith.c (value_binop): Handle unsigned integer
6963         division by zero.
6964
6965 2008-01-28  Kevin Buettner  <kevinb@redhat.com>
6966
6967         * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
6968         instruction pattern that appears frequently in position
6969         independent code.  Fix bug in code which looks for "fmov" and
6970         backtracks if no "fmov" is found.
6971
6972 2008-01-28  Doug Evans  <dje@google.com>
6973
6974         * dbxread.c (read_dbx_symtab): Fix indentation.
6975         Reformat comments to 80 columns.
6976         Move local var def closer to only use.
6977
6978 2008-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
6979
6980         * fork-child.c (SHELL_FILE): Remove #ifndef.
6981         (fork_inferior): Remove SHELL_COMMAND_CONCAT.
6982
6983 2008-01-25  Pierre Muller  <muller@ics.u-strasbg.fr>
6984
6985         * i386-tdep.c (i386_skip_noop): New function.
6986         (i386_analyze_prologue): Call i386_skip_noop function.
6987
6988 2008-01-24  Michael Snyder  <msnyder@specifix.com>
6989
6990         * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
6991         * win32-nat.c (win32_xfer_partial): Ditto.
6992         * target.c (default_xfer_partial): Minor whitespace adjustment.
6993
6994 2008-01-24  Pedro Alves  <pedro@codesourcery.com>
6995
6996         * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
6997         strip bit 1 even if pc doesn't point to thumb code.
6998
6999 2008-01-23  Daniel Jacobowitz  <dan@codesourcery.com>
7000
7001         * remote.c (remote_wait): Handle SIGINT between packets.
7002         (remote_async_wait): Likewise.
7003
7004 2008-01-23  Vladimir Prus  <vladimir@codesourcery.com>
7005             Chris Demetriou  <cgd@google.com>
7006
7007         * thread.c (add_thread_silent): Renamed
7008         from add_thread.
7009         (print_thread_events): New variable definition.
7010         (show_print_thread_events): New function.
7011         (_initialize_thread): Add "set print thread-events" and
7012         "show print thread-events" commands.
7013         (add_thread): Announce new thread.
7014         * gdbthread.h (add_thread_silent): Declare.
7015         (print_thread_events): New variable declaration.
7016         * inf-ttrace.c (inf_ttrace_wait): Don't
7017         inform about new thread, as add_thread is always
7018         called too, and will take care of that.
7019         * infrun.c (handle_inferior_event): Likewise.
7020         * procfs.c (procfs_wait): Likewise.
7021         * remote.c (remote_currthread): Likewise.
7022         * sol-thread.c (sol_thread_wait): Likewise.
7023         * win32-nat.c (get_win32_debug_event): Likewise.
7024         * linux-thread-db.c (attach_thread): Likewise.
7025         Remove the verbose parameter.
7026         (check_event): Make detach_thread be verbose
7027         only if print_thread_events is set.
7028         * linux-nat.c (lin_lwp_attach_lwp): Don't inform
7029         about new thread.  This is called only from
7030         linux-thread-db.c:attach_thread, which will take care.
7031         Remove the verbose parameter.
7032         * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
7033
7034 2008-01-23  Nick Roberts  <nickrob@snap.net.nz>
7035
7036         * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
7037
7038 2008-01-22  Vladimir Prus  <vladimir@codesourcery.com>
7039
7040         * breakpoint.c (break_command_really): New parameter
7041         ignore_count.
7042         (break_command_1): Pass 0 as
7043         ignore_count to break_command_really.
7044         (gdb_breakpoint): Pass ignore_count to
7045         break_command_really.
7046
7047 2008-01-21  Kevin Buettner  <kevinb@redhat.com>
7048
7049         * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
7050         sigcontext struct via pointer.
7051         (struct sigframe comment): Update to show new field `psc'.
7052
7053 2008-01-21  Vladimir Prus  <vladimir@codesourcery.com>
7054
7055         * infrun.c (handle_inferior_event): If
7056         we failed to remove breakpoints, error,
7057         don't try to increment PC by hand.
7058
7059 2008-01-18  Nick Hudson  <nick.hudson@dsl.pipex.com>
7060
7061         Add NetBSD/hppa target and host support.
7062
7063         * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
7064         (hppabsd_gregset): Move to ...
7065         (hppabsd_regset_from_core_section): Rename
7066         hppaobsd_regset_from_core_section and move to ...
7067         (hppabsd_find_global_pointer): Update comment.
7068         (hppabsd_init_abi): Make global. Do not register
7069         hppabsd_regset_from_core_section.
7070         (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
7071         move to ...
7072         (_initialize_hppabsd_tdep): Move to ...
7073         * hppaobsd-tdep.c: ... here. New file.
7074         * hppnbsd-tdep.c: New file.
7075         * hppnbsd-nat.c: New file.
7076         * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
7077         (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
7078         (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
7079         (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
7080         * configure.host (hppa*-*-netbsd*): New entry.
7081         * configure.tgt (hppa*-*-netbsd*): New entry.
7082         (hppa*-*-openbsd*): Update.
7083         * NEWS (New native configuration): Mention NetBSD/hppa.
7084         (New targets): Mention NetBSD/hppa.
7085
7086 2008-01-18  Markus Deuling  <deuling@de.ibm.com>
7087
7088         * gdbarch.sh (function_list): Add new property bits_big_endian to
7089         gdbarch structure.
7090         * gdbarch.{c,h}: Regenerate.
7091
7092         * value.c (struct value): Replace BITS_BIG_ENDIAN by
7093         gdbarch_bits_big_endian (comment).
7094         (unpack_field_as_long, modify_field): Likewise.
7095         * value.h: Likewise (comment).
7096         * valops.c (value_slice): Likewise.
7097         * valarith.c (value_subscript, value_bit_index): Likewise.
7098         * gdbtypes.h (field): Likewise (comment).
7099         * eval.c (evaluate_subexp_standard): Likewise.
7100         * dwarf2read.c (dwarf2_add_field): Likewise.
7101         * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
7102         (move_bits, ada_value_assign, value_assign_to_component): Likewise.
7103
7104         * defs.h (BITS_BIG_ENDIAN): Remove.
7105
7106 2008-01-18  Markus Deuling  <deuling@de.ibm.com>
7107
7108         * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
7109         function calls.
7110         * m2-exp.y (yylex): Likewise.
7111         * objc-exp.y (yylex): Likewise.
7112
7113         * defs.h (DEPRECATED_STREQN): Remove.
7114
7115 2008-01-17  H.J. Lu  <hjl.tools@gmail.com>
7116
7117         * MAINTAINERS: Update my email address.
7118
7119 2008-01-17  Jim Blandy  <jimb@codesourcery.com>
7120
7121         * README: Mention gdbserver/README.
7122
7123 2008-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
7124
7125         * valarith.c (value_binop): Handle BINOP_INTDIV
7126         for unsigned and signed integers.
7127
7128 2008-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
7129
7130         * s390-tdep.c (s390_gdbarch_init): Set default long double
7131         type to 128-bit IEEE quad.
7132
7133 2008-01-17  Joel Brobecker  <brobecker@adacore.com>
7134
7135         * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
7136
7137 2008-01-16  Mark Kettenis  <kettenis@gnu.org>
7138
7139         * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
7140
7141         * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
7142         * value.c: All callers changed.
7143
7144 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
7145
7146         * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
7147         DEPRECATED_STREQ by its expression.
7148         * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
7149         * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
7150         (scan_xcoff_symtab): Likewise.
7151         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
7152         * f-lang.c (find_common_for_function): Likewise.
7153         * objc-exp.y (parse_number): Likewise.
7154
7155         * defs.h (DEPRECATED_STREQ): Remove.
7156
7157 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
7158
7159         * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
7160         * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
7161         get_frame_arch to get at the current_architecture. Update AM33_MODE
7162         call.
7163         (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
7164         (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
7165         architecture.
7166         (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
7167
7168 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
7169
7170         * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
7171         parameter.
7172         * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
7173
7174         (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
7175         current_gdbarch by gdbarch. Update caller.
7176
7177         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
7178         (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
7179         the current architecture. Update calls of
7180         amd64_native_gregset_supplies_p.
7181         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
7182         (amd64bsd_store_inferior_registers): Likewise.
7183
7184 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
7185
7186         * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
7187         Replace current_gdbarch by gdbarch. Update caller.
7188
7189 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
7190
7191         * dbxread.c (repeated_header_complaint, dbx_symfile_init)
7192         (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
7193         (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
7194         (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
7195         (stabsect_build_psymtabs): Fix indentation.
7196
7197 2008-01-15  Michael Snyder  <msnyder@specifix.com>
7198
7199         * corelow.c (core_xfer_partial): Comment, cut/paste error.
7200
7201 2008-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
7202
7203         * win32-nat.c (win32_create_inferior): Restore code calling
7204         CloseHandle on ProcessInformation structure.
7205
7206 2008-01-13  Nick Hudson  <nick.hudson@dsl.pipex.com>
7207
7208         * configure.ac: Check for void * as 3 argument of ptrace.
7209         * configure: regenerate.
7210
7211 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
7212
7213         * alpha-tdep.c (alpha_heuristic_proc_start)
7214         (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
7215         current_gdbarch by gdbarch.
7216
7217         (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
7218         current architecture by frame_info. Update alpha_heuristic_proc_start
7219         call.
7220
7221         (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
7222         get_frame_arch to get at the current architecture by frame_info. Update
7223         alpha_sigtramp_register_address call.
7224
7225         * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
7226         current_gdbarch by gdbarch. Update caller.
7227         (convert_to_extended, convert_from_extended): Add endianess parameter
7228         for comparison. Update caller.
7229         (arm_extract_return_value, arm_store_return_value): Use
7230         get_regcache_arch to get at the current architecture.
7231
7232         * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
7233         current_gdbarch by gdbarch. Update caller.
7234         (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
7235         gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
7236
7237         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
7238         gdbarch as parameter. Update caller.
7239         (h8300_init_frame_cache): Add gdbarch as parameter. Replace
7240         current_gdbarch by gdbarch. Update caller.
7241
7242         * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
7243         update caller. Replace current_gdbarch by gdbarch.
7244
7245         * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
7246         the current architecture. Replace current_gdbarch by gdbarch.
7247         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
7248         (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
7249         expression. Add gdbarch as parameter and replace current_gdbarch with
7250         it. Update caller.
7251         (M6811_TDEP): Remove.
7252         (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
7253         architecture.
7254         (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
7255         current_gdbarch by gdbarch. Update caller.
7256
7257         * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
7258         update caller.
7259         (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
7260         by gdbarch.
7261
7262         * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
7263         caller. Relace current_gdbarch by gdbarch.
7264         (altivec_register_p, spe_register_p): Likewise.
7265         * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
7266         parameter.
7267         * ppc-linux-nat.c (fetch_register, store_register): Update caller of
7268         altivec_register_p and spe_register_p.
7269
7270         * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
7271         caller. Replace current_gdbarch by gdbarch.
7272         (score_analyze_prologue): use get_frame_arch to get at the current
7273         architecture.
7274
7275         * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
7276         * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
7277         current_gdbarch by gdbarch. Update caller.
7278         (sparc_frame_cache): Use get_frame_arch to get at the current
7279         architecture.
7280         * sparce64-tdep.c (sparc64_skip_prologue): Update call of
7281         sparc_analyze_prologue.
7282
7283         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
7284         parameter.
7285
7286 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
7287
7288         * exec.c: #include "arch-utils.h"
7289          (print_section_info): Use gdbarch_from_bfd to get at the
7290         current architecture. Replace current_gdbarch. Fix indention. Replace
7291         deprecated_print_address_numeric by paddress.
7292         * Makefile.in (exec.o) Add dependency to arch-utils.h.
7293
7294         * valprint.c (val_print_string): Replace
7295         deprecated_print_address_numeric.
7296         * tracepoint.c (trace_mention, scope_info): Likewise.
7297         * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
7298         (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
7299         (maintenance_check_symtabs): Likewise.
7300         * symfile.c (list_overlays_command): Likewise.
7301         * stack.c (frame_info, print_block_frame_labels): Likewise.
7302         * printcmd.c (print_address, print_address_demangle)
7303         (address_info): Likewise.
7304         * corefile.c (memory_error): Likewise.
7305         * infcmd.c (jump_command): Likewise.
7306         * breakpoint.c (insert_bp_location, describe_other_breakpoints)
7307         (mention, delete_breakpoint): Likewise.
7308         * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
7309         * dwarf2read.c (dump_die): Likewise.
7310         * ada-valprint.c (ada_val_print_1): Likewise.
7311         * f-valprint.c (f_val_print): Likewise.
7312         * linux-fork.c (info_forks_command): Likewise.
7313         * m32r-com.c (m32r_load_section, m32r_load)
7314         (m32r_upload_command): Likewise.
7315
7316         * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
7317
7318 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
7319
7320         * gdbarch.sh (skip_prologue): Add gdbarch
7321         as parameter.
7322         * gdbarch.{c,h}: Regenerate.
7323
7324         * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
7325         * amd64-tdep.c (amd64_skip_prologue): Likewise.
7326         * avr-tdep.c (avr_skip_prologue): Likewise.
7327         * cris-tdep.c (cris_skip_prologue): Likewise.
7328         * frv-tdep.c (frv_skip_prologue): Likewise.
7329         * h8300-tdep.c (h8300_skip_prologue): Likewise.
7330         * hppa-tdep.c (hppa_skip_prologue): Likewise.
7331         * i386-tdep.c (i386_skip_prologue): Likewise.
7332         * ia64-tdep.c (ia64_skip_prologue): Likewise.
7333         * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
7334         * m32r-tdep.c (m32r_skip_prologue): Likewise.
7335         * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
7336         * m68k-tdep.c (m68k_skip_prologue): Likewise.
7337         * m88k-tdep.c (m88k_skip_prologue): Likewise.
7338         * mep-tdep.c (mep_skip_prologue): Likewise.
7339         * mips-tdep.c (mips_skip_prologue): Likewise.
7340         * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
7341         * mt-tdep.c (mt_skip_prologue): Likewise.
7342         * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
7343         * score-tdep.c (score_skip_prologue): Likewise.
7344         * sh64-tdep.c (sh64_skip_prologue): Likewise.
7345         * sh-tdep.c (sh_skip_prologue): Likewise.
7346         * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
7347         * sparc-tdep.c (sparc32_skip_prologue): Likewise.
7348         * spu-tdep.c (spu_skip_prologue): Likewise.
7349         * v850-tdep.c (v850_skip_prologue): Likewise.
7350         * vax-tdep.c (vax_skip_prologue): Likewise.
7351         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
7352         * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
7353
7354         * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
7355         current_gdbarch by gdbarch.
7356         * m32c-tdep.c (m32c_skip_prologue): Likewise.
7357         * s390-tdep.c (s390_skip_prologue): Likewise.
7358
7359 2008-01-10  Doug Evans  <dje@google.com>
7360
7361         * defs.h (struct continuation_arg): Fix typo in comment.
7362         * target.c (target_translate_tls_address): Fix comment spelling error.
7363
7364 2008-01-09  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7365
7366         * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
7367         (DOUBLEST_SCAN_FORMAT): Likewise.
7368         * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
7369         * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
7370         * c-exp.y (parse_number): Likewise.
7371         * jv-exp.y (parse_number): Likewise.
7372         * objc-exp.y (parse_number): Likewise.
7373         * p-exp.y (parse_number): Likewise.
7374
7375 2008-01-09  Joel Brobecker  <brobecker@adacore.com>
7376
7377         * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
7378         (check_typedef): Likewise.
7379
7380 2008-01-09  Luis Machado  <luisgpm@br.ibm.com>
7381
7382         * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
7383         seen_double_big_d, treat the new H, D, and DD modifiers as length
7384         modifiers.
7385
7386 2008-01-08  Joel Brobecker  <brobecker@adacore.com>
7387
7388         * dwarf2read.c (read_enumeration_type): Add comment.
7389
7390 2008-01-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7391
7392         * config.in: Regenerate.
7393
7394 2008-01-08  Joel Brobecker  <brobecker@adacore.com>
7395
7396         * ada-lang.c (ada_convert_actual): Renames convert_actual.
7397         Make non-static.
7398         (ada_convert_actuals): Delete.
7399         * ada-lang.h (ada_convert_actual): Add declaration.
7400         (ada_convert_actuals): Remove declaration.
7401         * infcall.c: #include "ada-lang.h".
7402         (value_arg_coerce): Add new parameter sp.  Update function
7403         documetnation.  Add handling of Ada function call parameters.
7404         * Makefile.in (infcall.o): Update dependencies.
7405
7406 2008-01-08  Paul Hilfinger  <hilfinger@adacore.com>
7407
7408         * ada-lang.c (ensure_lval): Fix value lval kind.
7409         (convert_actual): Add handling for arguments passed by reference.
7410
7411 2008-01-08  Doug Evans  <dje@google.com>
7412
7413         * dbxread.c (read_dbx_symtab): Fix indentation.
7414
7415 2008-01-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7416
7417         * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
7418         (valarith.o): Depend on dfp.h.
7419         (valops.o): Likewise.
7420         * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
7421         (set_decnumber_context): New function.
7422         (decimal_check_errors): Likewise.
7423         (decimal_from_number): Likewise.
7424         (decimal_to_number): Likewise.
7425         (decimal_from_string): Use set_decnumber_context and
7426         decimal_check_errors.
7427         (decimal_from_integral): New function.
7428         (decimal_from_floating): Likewise.
7429         (decimal_to_double): Likewise.
7430         (promote_decimal): Likewise.
7431         (decimal_binop): Likewise.
7432         (decimal_is_zero): Likewise.
7433         (decimal_compare): Likewise.
7434         (decimal_convert): Likewise.
7435         * dfp.h (decimal_from_integral): New prototype.
7436         (decimal_from_floating): Likewise.
7437         (decimal_to_double): Likewise.
7438         (decimal_binop): Likewise.
7439         (decimal_is_zero): Likewise.
7440         (decimal_compare): Likewise.
7441         (decimal_convert): Likewise.
7442         * eval.c (evaluate_subexp_standard): Remove expect_type argument from
7443         call to value_from_decfloat.
7444         * valarith.c: Include dfp.h.
7445         (value_args_as_decimal): New function.
7446         (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
7447         (value_logical_not): Likewise.
7448         (value_equal): Likewise.
7449         (value_less): Likewise.
7450         (value_pos): Likewise.
7451         (value_neg): Formatting fix.
7452         * valops.c: Include dfp.h.
7453         (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
7454         * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
7455         (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
7456         (value_from_decfloat): Remove expect_type argument.
7457         * value.h (value_from_decfloat): Update prototype.
7458
7459 2008-01-07  Vladimir Prus  <vladimir@codesourcery.com>
7460
7461         Ignore change in name of dynamic linker during
7462         execution on Solaris.  This also unbreaks pending breakpoints.
7463
7464         * solist.h (struct target_so_ops): New field same.
7465         * solib-svr4.c (svr4_same): New.
7466         (_initialize_svr4_solib): Register svr4_same.
7467         * solib.c (update_solib_list): Use ops->same, if available.
7468
7469 2008-01-06  Christopher Faylor  <me+cygwin@cgf.cx>
7470
7471         * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
7472         when using MS-DOS paths.
7473
7474 2008-01-05  Pedro Alves  <pedro@codesourcery.com>
7475
7476         * NEWS: Mention --pid and --core command line behaviour changes.
7477
7478 2008-01-05  Pedro Alves  <pedro@codesourcery.com>
7479
7480         * main.c (captured_main): Remove 'count' varible and the
7481         ALIGN_STACK_ON_ENTRY block that used it.  Error out if --core and
7482         --pid options were issued simultaneously.  If an explicit pid
7483         option was passed, don't fallback to core file.  Detect extra
7484         arguments better in the presence of explicit pid or core
7485         arguments.
7486
7487 2008-01-05  Joel Brobecker  <brobecker@adacore.com>
7488
7489         * ada-lang.c (ada_which_variant_applies): Correctly compute
7490         the value of the discriminant when the variant record is packed.
7491
7492 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
7493
7494         * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
7495         that are used to differentiate homonyms.
7496
7497 2008-01-04  Jerome Guitton  <guitton@adacore.com>
7498
7499         * ada-lang.c (decode_packed_array_type): Avoid a seg fault
7500         when the type is an anonymous pointer type.
7501         (ada_check_typedef): Avoid a seg fault when the type is null.
7502         * ada-typeprint.c (print_array_type): Add support for pointer
7503         to packed arrays.
7504
7505 2008-01-04  Paul N. Hilfinger  <hilfinger@adacore.com>
7506
7507         * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
7508
7509 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
7510
7511         * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
7512         EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
7513
7514 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
7515
7516         * ada-exp.y (chop_separator): New function.
7517         (write_selectors): Rewrite to re-use chop_separator.
7518         (ada_nget_field_index, get_symbol_field_type): New functions.
7519         (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
7520         expressions.
7521
7522 2008-01-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7523
7524         * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
7525         of SYMBOL_VALUE when working with function symbols.
7526
7527 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
7528
7529         * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
7530         expressions.  These expressions do not need to be rewriten.
7531
7532 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
7533
7534         * dwarf2read.c (read_enumeration_type): Flag type as stub if
7535         the given die is a declaration.
7536
7537 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
7538
7539         * ada-lang.c (ada_array_bound_from_type): Make non-static.
7540         Handle properly the case when the index type is an enumerated type.
7541         Do not return the subtype of the bounds type, just return the
7542         bounds type directly - this is not needed and is more consistent
7543         with what we do for arrays when no XA parallel type exists.
7544
7545 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
7546
7547         * ada-lang.c (static_unwrap_type): Add forward declaration.
7548         (template_to_static_fixed_type): Fields of dynamic types sometimes
7549         also need to be unwrapped. Take this into account.
7550         (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
7551         (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
7552         * ada-typeprint.c (ada_print_type): Get the typename from
7553         the original type, not the base type.
7554
7555 2008-01-03  Jerome Guitton  <guitton@adacore.com>
7556
7557         * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
7558         (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
7559         Update calls to ada_to_fixed_type.
7560         (ada_template_to_fixed_record_type_1): Ditto, but without looking
7561         for the tag.
7562         (ada_to_fixed_type): Add check_tag parameter; do not look for
7563         tag if null.  When looking for a tag, use a fixed record type.
7564         * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
7565         * ada-valprint.c (printable_val_type, ada_value_print): Update
7566         calls to ada_to_fixed_type.
7567
7568 2008-01-03  Luis Machado  <luisgpm@br.ibm.com>
7569
7570         * doublest.c (convert_floatformat_to_doublest): Call
7571         floatformat_to_doublest instead of floatformat_to_double and use
7572         DOUBLEST variables.
7573         (convert_doublest_to_floatformat): Call floatformat_from_doublest
7574         instead of floatformat_from_double and use DOUBLEST variables.
7575
7576 2008-01-03  Nick Hudson  <nick.hudson@dsl.pipex.com>
7577
7578         * MAINTAINERS (Write After Approval): Add self.
7579
7580 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
7581
7582         * symfile.c (set_initial_language): Make non-static.
7583         * symfile.h (set_initial_language): Add declaration.
7584         * language.c: #include "symfile.h".
7585         (set_language): Call set_initial_language if the frame language
7586         could not be determined.
7587
7588 2008-01-03  Paul N. Hilfinger  <hilfinger@adacore.com>
7589
7590         * eval.c (evaluate_subexp_for_address): Provide frame address to
7591         locate_var_value only if it will be needed.
7592
7593 2008-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7594
7595         * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
7596
7597 2008-01-02  Joel Brobecker  <brobecker@adacore.com>
7598
7599         * ada-lang.c (ada_evaluate_subexp): Modify the value returned
7600         when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
7601         This is needed to make sure that any other treatment applied
7602         to the resulting value does not fail for spurious reason,
7603         such as trying to take the address of this value.
7604
7605 2008-01-02  Joel Brobecker  <brobecker@adacore.com>
7606
7607         * ada-lang.c (ada_value_equal): Dereference reference types when
7608         comparing arrays.
7609
7610 2008-01-01  Daniel Jacobowitz  <dan@codesourcery.com>
7611
7612         Updated copyright notices for most files.
7613
7614 2008-01-01  Christopher Faylor  <me+gdb@cgf.cx>
7615
7616         * win32-nat.c (psapi_module_handle): Remove static.
7617         (get_module_name): Rename from psapi_get_dll_name.  Revamp slightly to
7618         return first module found if base_address is zero.  Don't initialize
7619         psapi function pointers here.  Convert to cygwin paths when
7620         appropriate.
7621         (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
7622         executable name.  Use get_module_name when that fails or when
7623         !__CYGWIN__.
7624         (_initialize_psapi): New function.  Initialize psapi stuff before it is
7625         needed or issue a warning if it is not found.  Move psapi_module_handle
7626         here.
7627
7628 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
7629
7630         * ada-lang.c (ada_remove_trailing_digits): New function.
7631         (ada_remove_po_subprogram_suffix): New function.
7632         (ada_decode): Improve. Move the description of the algorithm
7633         directly inside the code, instead of in the function global
7634         description.
7635
7636 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
7637
7638         * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
7639         and always print the dereferenced value.
7640
7641 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
7642
7643         * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
7644         of the case where the first argument is a reference.
7645         (ada_evaluate_subexp, case BINOP_ADD): Likewise.
7646
7647 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
7648
7649         Implement support for Ada interface types.
7650
7651         * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
7652         (ada_is_ignored_field): Ignore fields that are a dispatch table
7653         of a tagged type.
7654
7655 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
7656
7657         * top.c (print_gdb_version): Update copyright year.
7658
7659 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
7660
7661         * ChangeLog-2007: New ChangeLog rotation.
7662         * ChangeLog: Reset for 2008.
7663         * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
7664         ChangeLog-2007.
7665
7666 For older changes see ChangeLog-2007.
7667 \f
7668 Local Variables:
7669 mode: change-log
7670 left-margin: 8
7671 fill-column: 74
7672 version-control: never
7673 coding: utf-8
7674 End: