OSDN Git Service

* mips-tdep.c (mips_print_register): Remove unused ALL argument.
[pf3gnuchains/pf3gnuchains4x.git] / gdb / ChangeLog
1 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
2
3         * mips-tdep.c (mips_print_register): Remove unused ALL argument.
4         (print_gp_register_row): Stop before printing a register bigger
5         than the ABI register size.
6         (mips_print_registers_info): Update call to mips_print_register.
7
8 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
9
10         * expression.h (enum exp_opcode): Document a register name for
11         OP_REGISTER.
12         * parse.c (write_dollar_variable): Write the register name for
13         OP_REGISTER.
14         (operator_length_standard): Expect the register name following
15         OP_REGISTER.
16         * ada-lang.c (resolve_subexp): Likewise.
17         * ax-gdb.c (gen_expr): Likewise.
18         * eval.c (evaluate_subexp_standard): Likewise.
19         * expprint.c (print_subexp_standard, dump_subexp_body_standard):
20         Likewise.
21         * tracepoint.c (encode_actions): Likewise.
22
23 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
24
25         * utils.c (set_screen_size): Use INT_MAX for default columns.
26
27 2007-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
28
29         * remote.c (remote_protocol_features): Add qXfer:spu:read and
30         qXfer:spu:write packet types.
31
32 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
33
34         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
35         * gdbarch.c, gdbarch.h: Regenerate.
36
37 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
38
39         * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
40         gdbarch_stab_reg_to_regnum.
41         * stabsread.c (define_symbol): Likewise.
42         * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
43         gdbarch_ecoff_reg_to_regnum.
44         * mdebugread.c (parse_symbol): Likewise.
45         * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
46         * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
47         gdbarch_dwarf_reg_to_regnum.
48         * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
49         * coffread.c (process_coff_symbol): Likewise.
50         * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
51         gdbarch_dwarf2_reg_to_regnum.
52         * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
53         (locexpr_describe_location): Likewise.
54         * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
55         (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
56         * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
57         * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
58         * gdbarch.c, gdbarch.h: Regenerate.
59
60 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
61
62         * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
63         gdbarch_smash_text_address.
64         * somread.c (som_symtab_read): Likewise.
65         * elfread.c (record_minimal_symbol): Likewise.
66         * dbxread.c (process_one_symbol): Likewise.
67         * coffread.c (coff_symtab_read): Likewise.
68         * gdbarch.c, gdbarch.h: Regenerate.
69
70 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
71
72         * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
73         * findvar.c (value_from_register): Likewise.
74         * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
75         * valops.c (value_assign): Likewise.
76         * gdbarch.sh (CONVERT_REGISTER_P): Replace by
77         gdbarch_convert_register_p.
78         * findvar.c (value_from_register): Likewise.
79         * valops.c (value_assign): Likewise.
80         * gdbarch.c, gdbarch.h: Regenerate.
81
82 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
83
84         * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
85         gdbarch_register_sim_regno.
86         * sim-regno.h (sim_regno): Likewise (comment).
87         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
88         * gdbarch.c, gdbarch.h: Regenerate.
89
90 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
91
92         * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
93         gdbarch_virtual_frame_pointer.
94         * tracepoint.c (encode_actions): Likewise.
95         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
96         * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
97         * gdbarch.c, gdbarch.h: Regenerate.
98
99 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
100
101         * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
102         * p-lang.c (pascal_create_fundamental_type): Likewise.
103         * objc-lang.c (objc_create_fundamental_type): Likewise.
104         * mdebugread.c (_initialize_mdebugread): Likewise.
105         * m2-lang.c (m2_create_fundamental_type)
106         (_initialize_m2_language): Likewise.
107         * gdbtypes.c (build_gdbtypes): Likewise.
108         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
109         * doublest.c (floatformat_from_length): Likewise.
110         * c-lang.c (c_create_fundamental_type): Likewise.
111         * ada-lang.c (ada_create_fundamental_type)
112         (ada_language_arch_info): Likewise.
113         * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
114         * value.c (unpack_double): Likewise (comment).
115         * gdbtypes.c (build_gdbtypes): Likewise.
116         * doublest.c (floatformat_from_length): Likewise.
117         * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
118         * valarith.c (value_binop): Likewise.
119         * p-lang.c (pascal_create_fundamental_type): Likewise.
120         * objc-lang.c (objc_create_fundamental_type): Likewise.
121         * mdebugread.c (_initialize_mdebugread): Likewise.
122         * m2-lang.c (m2_create_fundamental_type): Likewise.
123         * gdbtypes.c (build_gdbtypes): Likewise.
124         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
125         * doublest.c (floatformat_from_length): Likewise.
126         * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
127         * c-lang.c (c_create_fundamental_type): Likewise.
128         * ada-lex.l (processReal): Likewise.
129         * ada-lang.c (ada_create_fundamental_type)
130         (ada_language_arch_info): Likewise.
131         * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
132         * value.c (unpack_double): Likewise (comment).
133         * gdbtypes.c (build_gdbtypes): Likewise.
134         * doublest.c (floatformat_from_length): Likewise.
135         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
136         gdbarch_long_double_bit.
137         * p-lang.c (pascal_create_fundamental_type): Likewise.
138         * objc-lang.c (objc_create_fundamental_type): Likewise.
139         * m2-lang.c (m2_create_fundamental_type): Likewise.
140         * gdbtypes.c (build_gdbtypes): Likewise.
141         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
142         * doublest.c (floatformat_from_length): Likewise.
143         * c-lang.c (c_create_fundamental_type): Likewise.
144         * ada-lex.l (processReal): Likewise.
145         * ada-lang.c (ada_create_fundamental_type)
146         (ada_language_arch_info): Likewise.
147         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
148         gdbarch_long_double_format.
149         * gdbtypes.c (build_gdbtypes): Likewise.
150         * doublest.c (floatformat_from_length): Likewise.
151         * gdbarch.c, gdbarch.h: Regenerate.
152
153 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
154
155         * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
156         * ada-lang.c (ada_create_fundamental_type)
157         (ada_language_arch_info): Likewise.
158         * c-lang.c (c_create_fundamental_type): Likewise.
159         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
160         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
161         * m2-lang.c (m2_create_fundamental_type): Likewise.
162         * objc-lang.c (objc_create_fundamental_type): Likewise.
163         * p-lang.c (pascal_create_fundamental_type): Likewise.
164         * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
165         * c-exp.y (parse_number): Likewise.
166         * objc-exp.y (parse_number): Likewise.
167         * ada-lex.l (processInt): Likewise.
168         * f-exp.y (parse_number): Likewise.
169         * p-exp.y (parse_number): Likewise.
170         * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
171         (gdbtypes_post_init, build_gdbtypes): Likewise.
172         * p-lang.c (pascal_create_fundamental_type): Likewise.
173         * parse.c (build_parse): Likewise.
174         * xcoffread.c (_initialize_xcoffread): Likewise.
175         * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
176         (read_range_type): Likewise.
177         * objc-lang.c (objc_create_fundamental_type): Likewise.
178         * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
179         * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
180         (m2_create_fundamental_type): Likewise.
181         * c-lang.c (c_create_fundamental_type): Likewise.
182         * coffread.c (coff_read_enum_type): Likewise.
183         * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
184         * dwarf2read.c (new_symbol): Likewise.
185         * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
186         * c-exp.y (parse_number): Likewise.
187         * objc-exp.y (parse_number): Likewise.
188         * ada-lex.l (processInt): Likewise.
189         * f-exp.y (parse_number): Likewise.
190         * p-exp.y (parse_number): Likewise.
191         * valarith.c (value_binop): Likewise.
192         * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
193         * ada-lang.c (ada_create_fundamental_type)
194         (ada_language_arch_info): Likewise.
195         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
196         * symfile.c (TARGET_LONG_BYTES): Likewise.
197         * p-lang.c (pascal_create_fundamental_type): Likewise.
198         * objc-lang.c (objc_create_fundamental_type): Likewise.
199         * m2-lang.c (m2_create_fundamental_type): Likewise.
200         * f-lang.c (f_create_fundamental_type): Likewise.
201         * c-lang.c (c_create_fundamental_type): Likewise.
202         * coffread.c (decode_base_type): Likewise.
203         * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
204         * c-exp.y (parse_number): Likewise.
205         * objc-exp.y (parse_number): Likewise.
206         * p-exp.y (parse_number): Likewise.
207         * ada-lang.c (ada_create_fundamental_type)
208         (ada_language_arch_info): Likewise.
209         * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
210         * stabsread.c (read_range_type): Likewise.
211         * p-lang.c (pascal_create_fundamental_type): Likewise.
212         * objc-lang.c (objc_create_fundamental_type): Likewise.
213         * m2-lang.c (m2_create_fundamental_type): Likewise.
214         * f-lang.c (f_create_fundamental_type): Likewise.
215         * c-lang.c (c_create_fundamental_type): Likewise.
216         * gdbarch.c, gdbarch.h: Regenerate.
217
218 2007-06-12  Andreas Schwab  <schwab@suse.de>
219
220         * frame-unwind.h (frame_dealloc_cache_ftype): Define.
221         (struct frame_unwind): Add dealloc_cache.
222         * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
223
224         * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
225         * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
226         (libunwind_frame_unwind): Set dealloc_cache.
227         * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
228
229 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
230             Markus Deuling  <deuling@de.ibm.com>
231
232         * remote.c (remote_write_qxfer): New function.
233         (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
234         (remote_read_qxfer): Do not cache empty objects.
235         (_initialize_remote): Add PACKET_qXfer_spu_read and
236         PACKET_qXfer_spu_write.
237
238 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
239
240         * target.h (enum target_object): Add TARGET_OBJECT_SPU.
241         * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
242
243         * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
244         (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
245         SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
246         * spu-tdep.c (infospucmdlist): New variable.
247         (spu_register_name): Handle additional pseudo registers.
248         (spu_register_type): Likewise.
249         (spu_pseudo_register_read): Likewise.
250         (spu_pseudo_register_write): Likewise.
251         (spu_pseudo_register_read_spu): New function.
252         (spu_pseudo_register_write_spu): Likewise.
253         (info_spu_event_command): New function.
254         (info_spu_signal_command): Likewise.
255         (info_spu_mailbox_list): Likewise.
256         (info_spu_mailbox_command): Likewise.
257         (spu_mfc_get_bitfield): Likewise.
258         (info_spu_dma_cmdlist): Likewise.
259         (info_spu_dma_command): Likewise.
260         (info_spu_proxydma_command): Likewise.
261         (info_spu_command): Likewise.
262         (_initialize_spu_tdep): Install "info spu" commands.
263
264 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
265
266         * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
267         accessing non-seekable spufs files.
268
269 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
270
271         * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
272         gdbarch_skip_trampoline_code.
273         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
274         * objc-lang.c (objc_skip_trampoline)
275         (objc_submethod_helper_data): Likewise.
276         * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
277         * infrun.c (handle_inferior_event): Likewise.
278         * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
279         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
280         gdbarch_in_solib_return_trampoline.
281         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
282         * infrun.c (handle_inferior_event): Likewise.
283         * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
284         * gdbarch.c, gdbarch.h: Regenerate.
285
286 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
287
288         * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
289         * symtab.c (find_function_start_sal, in_prologue): Likewise.
290         * linespec.c (minsym_found): Likewise.
291         * infrun.c (step_into_function): Likewise.
292         * gdbarch.c, gdbarch.h: Regenerate.
293
294 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
295
296         * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
297         * valops.c (value_allocate_space_in_inferior): Likewise.
298         * gdbarch.c, gdbarch.h: Regenerate.
299
300 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
301
302         * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
303         gdbarch_memory_insert_breakpoint.
304         * mem-break.c (memory_insert_breakpoint): Likewise.
305         * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
306         gdbarch_memory_remove_breakpoint.
307         * mem-break.c (memory_remove_breakpoint): Likewise.
308         * gdbarch.c, gdbarch.h: Regenerate.
309
310 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
311
312         * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
313         gdbarch_fetch_tls_load_module_address.
314         * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
315         gdbarch_fetch_tls_load_module_address_p.
316         * gdbarch.c, gdbarch.h: Regenerate.
317
318 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
319
320         * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
321         gdbarch_decr_pc_after_break.
322         * tracepoint.c (trace_dump_command): Likewise.
323         * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
324         * linux-thread-db.c (check_event): Likewise.
325         * linux-nat.c (cancel_breakpoints_callback): Likewise.
326         * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
327         * frame.h: Likewise (comment).
328         * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
329         * aix-thread.c (aix_thread_wait): Likewise.
330         * gdbarch.c, gdbarch.h: Regenerate.
331
332 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
333
334         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
335         gdbarch_address_class_type_flags.
336         * dwarf2read.c (read_tag_pointer_type): Likewise.
337         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
338         gdbarch_address_class_type_flags_p.
339         * dwarf2read.c (read_tag_pointer_type): Likewise.
340         * gdbarch.c, gdbarch.h: Regenerate.
341
342 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
343
344         * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
345         * value.c (value_as_address): Likewise (comment).
346         * remote-mips.c (common_breakpoint): Likewise.
347         * regcache.c (read_pc_pid): Likewise.
348         * printcmd.c (do_one_display): Likewise.
349         * monitor.c (monitor_write_memory, monitor_read_memory)
350         (monitor_insert_breakpoint): Likewise.
351         * mips-tdep.c (heuristic_proc_start): Likewise.
352         * infrun.c (insert_step_resume_breakpoint_at_frame)
353         (insert_step_resume_breakpoint_at_caller): Likewise.
354         * buildsym.c (record_line): Likewise.
355         * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
356         (arm_get_next_pc): Likewise.
357         * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
358         (store_regs): Likewise.
359         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
360         * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
361         * gdbarch.c, gdbarch.h: Regenerate.
362
363 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
364
365         * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
366         * tracepoint.c (scope_info): Likewise.
367         * target.c (debug_print_register): Likewise.
368         * stack.c (frame_info): Likewise.
369         * sh-tdep.c (sh_register_reggroup_p): Likewise.
370         * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
371         (sh64_media_print_registers_info)
372         (sh64_compact_print_registers_info): Likewise.
373         * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
374         * remote-sim.c (gdbsim_fetch_register): Likewise.
375         * remote.c (packet_reg): Likewise (comment).
376         * reggroups.c (default_register_reggroup_p): Likewise.
377         * regcache.c (regcache_dump): Likewise.
378         * printcmd.c (address_info): Likewise.
379         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
380         * mt-dep.c (mt_registers_info): Likewise.
381         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
382         * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
383         (mips_read_fp_register_double, mips_print_fp_register)
384         (mips_print_register, print_gp_register_row, mips_print_registers_info)
385         (mips_register_sim_regno): Likewise.
386         * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
387         * inf-ptrace.c (inf_ptrace_fetch_register)
388         (inf_ptrace_store_register): Likewise.
389         * infcmd.c (default_print_registers_info): Likewise.
390         * ia64-linux-nat.c (ia64_linux_fetch_register)
391         (ia64_linux_store_register): Likewise.
392         * i386-linux-nat.c (fetch_register, store_register): Likewise.
393         * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
394         * hppa-linux-nat.c (fetch_register, store_register): Likewise.
395         * hppa-hpux-nat.c (hppa_hpux_fetch_register)
396         (hppa_hpux_store_register): Likewise.
397         * findvar.c (locate_var_value): Likewise.
398         * dwarf2loc.c (locexpr_describe_location): Likewise.
399         * dwarf2-frame.c (execute_cfa_program): Likewise.
400         * arm-tdep.c (arm_push_dummy_call): Likewise.
401         * arch-utils.c (legacy_register_sim_regno): Likewise.
402         * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
403         * alpha-nat.c (fetch_osf_core_registers): Likewise.
404         * mi/mi-main.c (mi_cmd_data_list_register_names)
405         (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
406         (mi_cmd_data_write_register_values): Likewise.
407         * gdbarch.c, gdbarch.h: Regenerate.
408
409 2007-06-07  Daniel Jacobowitz  <dan@codesourcery.com>
410
411         * target-memory.c (blocks_to_erase): Correct off-by-one error.
412
413 2007-06-06  Vladimir Prus  <vladimir@codesourcery.com>
414         
415         * remote.c (process_g_packet): Don't check size.
416         * gdbarch.sh: Remove register_bytes_ok.
417         * gdbarch.c: Regenerated.
418         * gdbarch.h: Regenerated.
419         * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
420         (m68k_register_bytes_ok): Remove.
421         (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
422         
423 2007-06-06  Andreas Schwab  <schwab@suse.de>
424
425         * libunwind-frame.c (unw_destroy_addr_space_p): Define.
426         (destroy_addr_space_name): Define.
427         (libunwind_load): Get address of destroy_addr_space function.
428         (libunwind_frame_cache): Destroy unw_addr_space_t object before
429         returning unsuccessfully.
430         (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
431         returning.
432         (libunwind_sigtramp_frame_sniffer): Likewise.
433         (libunwind_get_reg_special): Likewise.
434
435 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
436
437         * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
438         gdbarch_fetch_pointer_argument.
439         * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
440         * gdbarch.c, gdbarch.h: Regenerate.
441
442 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
443
444         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
445         gdbarch_have_nonsteppable_watchpoint.
446         * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
447         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
448         gdbarch_cannot_step_breakpoint.
449         * infrun.c (resume): Likewise.
450         * gdbarch.c, gdbarch.h: Regenerate.
451
452 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
453
454         * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
455         * stack.c (print_frame_args): Likewise.
456         * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
457         * stack.c (print_args_stub, frame_info): Likewise.
458         * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
459         * stack.c (print_args_stub, frame_info): Likewise.
460         * gdbarch.c, gdbarch.h: Regenerate.
461
462 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
463
464         * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
465         gdbarch_coff_make_msymbol_special.
466         * coffread.c (coff_symtab_read): Likewise.
467         * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
468         gdbarch_elf_make_msymbol_special.
469         * elfread.c (elf_symtab_read): Likewise.
470         * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
471         * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
472         * gdbarch.c, gdbarch.h: Regenerate.
473
474 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
475
476         * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
477         gdbarch_frame_red_zone_size.
478         * gdbarch.c, gdbarch.h: Regenerate.
479
480 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
481
482         * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
483         * infcall.c (call_function_by_hand): Likewise.
484         * gcore.c (derive_stack_segment): Likewise.
485         * frame.c (frame_id_inner): Likewise.
486         * arch-utils.c (core_addr_lessthan): Likewise (comment).
487         * ada-lang.c (ensure_lval): Likewise.
488         * gdbarch.c, gdbarch.h: Regenerate.
489
490 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
491
492         * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
493         gdbarch_address_to_pointer.
494         * findvar.c (store_typed_address): Likewise.
495         * gdbtypes.c (make_pointer_type): Likewise (comment).
496         * procfs.c (procfs_address_to_host_pointer): Likewise.
497         * std-regs.c (value_of_builtin_frame_reg): Likewise.
498         (value_of_builtin_frame_fp_reg): Likewise.
499         (value_of_builtin_frame_pc_reg): Likewise.
500         * utils.c (paddress): Likewise (comment).
501         * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
502         gdbarch_pointer_to_address.
503         * findvar.c (extract_typed_address): Likewise.
504         * gdbtypes.c (make_pointer_type): Likewise (comment).
505         * valops.c (value_cast): Likewise (comment).
506         * gdbarch.c, gdbarch.h: Regenerate.
507
508 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
509
510         * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
511         * infrun.c (handle_inferior_event): Likewise.
512         * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
513         gdbarch_get_longjmp_target_p.
514         * breakpoint.c (breakpoint_re_set): Likewise.
515         * infrun.c (handle_inferior_event): Likewise.
516         * gdbarch.c, gdbarch.h: Regenerate.
517
518 2007-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
519
520         * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
521         HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
522         HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
523         hp_cxx_exception_support, hp_cxx_exception_support_initialized,
524         eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
525         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
526         find_stub_with_shl_get, cover_find_stub_with_shl_get,
527         initialize_hp_cxx_exception_support, child_enable_exception_callback,
528         current_ex_event, child_get_current_exception_event): Remove.
529         (hppa_hpux_inferior_created): Remove.
530         (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
531
532         * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
533         (deprecated_exception_support_initialized): Remove.
534         * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
535         (deprecated_exception_support_initialized): Remove.
536         (breakpoint_init_inferior): Remove handling of non-zero
537         deprecated_exception_catchpoints_are_fragile.
538
539         * symtab.h (deprecated_hp_som_som_object_present): Remove.
540         * symtab.c (deprecated_hp_som_som_object_present): Remove.
541         * c-typeprint.c (c_type_print_base): Remove handling of non-zero
542         deprecated_hp_som_som_object_present.
543         * eval.c (evaluate_subexp_standard): Likewise.
544         * valops.c (value_cast): Likewise.
545
546         * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
547         * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
548         * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
549
550 2007-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
551
552         * objfiles.h (ImportEntry, ExportEntry): Remove types.
553         (struct objfile): Remove import_list, import_list_size,
554         export_list, export_list_size members.
555         (is_in_import_list): Remove prototype.
556         * objfiles.c (is_in_import_list): Remove.
557         * somread.c (init_import_symbols, init_export_symbols): Remove.
558         (som_symfile_read): Do not call init_import_symbols.  Do not
559         set objfile->export_list and objfile->export_list_size.
560
561 2007-06-05  Daniel Jacobowitz  <dan@codesourcery.com>
562
563         * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
564         Use the original objfile if necessary.
565
566 2007-06-04  Daniel Jacobowitz  <dan@codesourcery.com>
567
568         * defs.h (ldirname): New prototype.
569         * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
570         missing.
571         * utils.c (ldirname): New function.
572         * xml-tdesc.c (file_read_description_xml): Use ldirname.
573
574 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
575
576         * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
577
578 2007-06-01  Joel Brobecker  <brobecker@adacore.com>
579
580         * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
581
582 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
583
584         * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
585
586 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
587
588         * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
589         INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
590         (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
591         PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
592         (ppc_linux_in_sigtramp, insn_is_sigreturn,
593         ppc_linux_at_sigtramp_return_path): Remove.
594
595 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
596
597         * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
598         (xtensa_register_write_masked, xtensa_register_read_masked)
599         (xtensa_extract_return_value, xtensa_store_return_value
600         (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace 
601         TARGET_BYTE_ORDER by gdbarch_byte_order.
602         * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
603         (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
604         (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
605         * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
606         (sh64_push_dummy_call, sh64_extract_return_value)
607         (sh64_store_return_value, sh64_register_convert_to_virtual)
608         (sh64_register_convert_to_raw, sh64_pseudo_register_read)
609         (sh64_pseudo_register_write, sh64_do_fp_register)
610         (sh64_frame_prev_register): Likewise.
611         * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
612         (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
613         * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
614         (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
615         * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
616         * ppc-linux-nat.c (store_register): Likewise.
617         * nto-tdep.c (nto_find_and_open_solib)
618         (nto_init_solib_absolute_prefix): Likewise.
619         * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
620         (mips_convert_register_p, mips_eabi_push_dummy_call)
621         (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
622         (mips_o32_push_dummy_call, mips_o32_return_value)
623         (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
624         (mips_read_fp_register_single, mips_read_fp_register_double)
625         (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
626         (mips_breakpoint_from_pc): Likewise.
627         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
628         * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
629         (mips_linux_o32_sigframe_init): Likewise.
630         * m32r-tdep.c (m32r_memory_insert_breakpoint)
631         (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
632         * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
633         (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
634         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
635         * coffread.c (process_coff_symbol): Likewise.
636         * arm-tdep.c (convert_from_extended, convert_to_extended)
637         (gdb_print_insn_arm): Likewise.
638
639 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
640
641         * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
642         * i386-tdep.c (i386_dbx_reg_to_regnum)
643         (i386_svr4_reg_to_regnum): Likewise.
644         * inf-ptrace.c (inf_ptrace_fetch_registers)
645         (inf_ptrace_store_registers): Likewise.
646         * corelow.c (get_core_registers): Likewise.
647         * i386-linux-nat.c (supply_gregset, fill_gregset)
648         (i386_linux_fetch_inferior_registers)
649         (i386_linux_store_inferior_registers): Likewise.
650         * remote.c (init_remote_state,packet_reg_from_regnum)
651         (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
652         (remote_prepare_to_store,store_registers_using_G)
653         (remote_store_registers,remote_arch_state): Likewise.
654         * tracepoint.c (encode_actions): Likewise.
655         * mi/mi-main.c (mi_cmd_data_list_register_names)
656         (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
657         (mi_cmd_data_write_register_values): Likewise.
658         * tui/tui-regs.c (tui_show_register_group)
659         (tui_show_register_group): Likewise.
660         * xtensa-tdep.h (FP_ALIAS): Likewise.
661         * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
662         (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
663         (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
664         * win32-nat.c (do_win32_fetch_inferior_registers)
665         (do_win32_store_inferior_registers,fetch_elf_core_registers
666         * user-regs.h: Likewise (comment).
667         * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
668         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
669         * target-descriptions.h: Likewise (comment).
670         * target-descriptions.c (tdesc_use_registers): Likewise (comment).
671         * target.c (debug_print_register): Likewise.
672         * stack.c (frame_info): Likewise.
673         * stabsread.c (define_symbol): Likewise.
674         * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
675         (sh64_media_print_registers_info)
676         (sh64_compact_print_registers_info): Likewise.
677         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
678         * rs6000-nat.c (fetch_register,store_register): Likewise.
679         * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
680         (gdbsim_fetch_register,gdbsim_store_register): Likewise.
681         * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
682         * remote-m32r-sdi.c (m32r_fetch_registers)
683         (m32r_store_registers): Likewise.
684         * reggroups.c (default_register_reggroup_p): Likewise.
685         * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
686         (regcache_restore,regcache_dump): Likewise.
687         * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
688         * mips-tdep.c (mips_xfer_register,mips_register_name)
689         (mips_register_reggroup_p,mips_pseudo_register_read)
690         (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
691         (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
692         (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
693         (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
694         (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
695         (print_gp_register_row,mips_print_registers_info)
696         (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
697         (mips_register_sim_regno): Likewise.
698         * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
699         (mips_linux_n32n64_sigframe_init): Likewise.
700         * mips-linux-nat.c (mips_linux_register_addr)
701         (mips64_linux_register_addr): Likewise.
702         * findvar.c (value_of_register): Likewise.
703         * infcmd.c (default_print_registers_info,registers_info)
704         (print_vector_info,print_float_info): Likewise.
705         * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
706         * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
707         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
708         * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
709         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
710         * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
711         (ia64_cannot_store_register,ia64_linux_fetch_registers)
712         (ia64_linux_store_registers): Likewise.
713         * hpux-thread.c (hpux_thread_fetch_registers)
714         (hpux_thread_store_registers): Likewise.
715         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
716         (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
717         (h8300_register_type): Likewise.
718         * dwarf2-frame.c (dwarf2_frame_cache)
719         (dwarf2_frame_state_alloc_regs): Likewise.
720         * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
721         (cris_cannot_store_register,crisv32_cannot_fetch_register)
722         (crisv32_cannot_store_register,cris_register_name): Likewise.
723         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
724         * arch-utils.c (legacy_register_sim_regno)
725         (legacy_virtual_frame_pointer): Likewise.
726         * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
727         * arm-tdep.h: Likewise (comment).
728         * frv-tdep.c (frv_register_sim_regno): Likewise.
729         * m68klinux-nat.c (old_fetch_inferior_registers)
730         (old_store_inferior_registers): Likewise.
731         * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
732         * irix5-nat.c (fetch_core_registers): Likewise.
733         * hppa-tdep.c (hppa_frame_cache): Likewise.
734         * hppa-linux-nat.c (hppa_linux_register_addr)
735         (hppa_linux_fetch_inferior_registers)
736         (hppa_linux_store_inferior_registers): Likewise.
737         * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
738         (hppa_hpux_store_inferior_registers): Likewise.
739         * amd64-nat.c (amd64_native_gregset_reg_offset)
740         (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
741         * dbug-rom.c (dbug_regname): Likewise.
742         * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
743         (HARD_PAGE_REGNUM (comment)): Likewise.
744         * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
745         * i386-tdep.c (i386_dbx_reg_to_regnum)
746         (i386_svr4_reg_to_regnum): Likewise.
747         * mi/mi-main.c (mi_cmd_data_list_register_names)
748         (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
749         (mi_cmd_data_write_register_values): Likewise.
750         * gdbarch.c, gdbarch.h: Regenerate.
751         * tui/tui-regs.c (tui_show_register_group): Likewise.
752         * xtensa-tdep.h (FP_ALIAS): Likewise.
753         * user-regs.h: Likewise (comment).
754         * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
755         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
756         * target-descriptions.h: Likewise (comment).
757         * target.c (debug_print_register): Likewise.
758         * stack.c (frame_info): Likewise.
759         * stabsread.c (define_symbol): Likewise.
760         * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
761         (sh64_compact_print_registers_info): Likewise.
762         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
763         * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
764         (regcache_restore,regcache_dump): Likewise.
765         * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
766         (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
767         (mips_stab_reg_to_regnum): Likewise.
768         * findvar.c (value_of_register): Likewise.
769         * infcmd.c (default_print_registers_info,registers_info)
770         (print_vector_info,print_float_info): Likewise.
771         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
772         * h8300-tdep.c (h8300_register_type): Likewise.
773         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
774         * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
775         * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
776         (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
777         * parse.c: Remove comment.
778         * gdbarch.c, gdbarch.h: Regenerate
779
780 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
781
782         * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
783         gdbarch_cannot_fetch_register.
784         * alpha-nat.c (fetch_osf_core_registers): Likewise.
785         * hppa-linux-nat.c (fetch_register): Likewise.
786         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
787         * m68klinux-nat.c (fetch_register): Likewise.
788         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
789         Likewise.
790         * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
791         gdbarch_cannot_store_register.
792         * hppa-linux-nat.c (store_register): Likewise.
793         * inf-ptrace.c (inf_ptrace_store_register): Likewise.
794         * regcache.c (regcache_raw_write): Likewise.
795         * m68klinux-nat.c (store_register): Likewise.
796         * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
797         * gdbarch.c, gdbarch.h: Regenerate.
798
799 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
800
801         * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
802         * gdbarch.c, gdbarch.h: Regenerate.
803
804 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
805
806         * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
807         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
808         * gdbarch.c, gdbarch.h: Regenerate.
809
810 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
811
812         * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
813         * ax-gdb.c (gen_bitfield_ref): Likewise.
814         * mi/mi-main.c (get_register): Likewise.
815         * findvar.c (default_value_from_register, extract_signed_integer)
816         (extract_unsigned_integer, extract_long_unsigned_integer)
817         (store_signed_integer, store_unsigned_integer): Likewise.
818         * regcache.c (regcache_dump): Likewise.
819         * value.c (lookup_internalvar, value_of_internalvar)
820         (set_internalvar): Likewise.
821         * defs.h: Likewise.
822         * valprint.c (print_binary_chars, print_octal_chars)
823         (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
824         * infcmd.c (default_print_registers_info): Likewise.
825         * arch-utils.c (selected_byte_order, show_endian): Likewise.
826         * stabsread.c (define_symbol): Likewise.
827         * doublest.c (floatformat_from_length, floatformat_from_type)
828         (extract_typed_floating, store_typed_floating): Likewise.
829         * gdbarch.c, gdbarch.h: Regenerate.
830
831 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
832
833         * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
834         gdbarch_call_dummy_location.
835         * infcall.c (call_function_by_hand): Likewise.
836         * inferior.h: Change comment.
837         * arch-utils.c: Change comment.
838         * gdbarch.c, gdbarch.h: Regenerate.
839
840 2007-05-28  Joel Brobecker  <brobecker@adacore.com>
841
842         * solib-aix5.c: Delete.
843         * Makefile.in (solib-aix5.o): Delete rule.
844
845 2007-05-23  Daniel Jacobowitz  <dan@codesourcery.com>
846
847         * breakpoint.h (enum bpstat_what_main_action): Remove
848         BPSTAT_WHAT_THROUGH_SIGTRAMP.
849         * infrun.c (process_event_stop_test): Do not check for it.
850
851 2007-05-22  Chris Dearman  <chris@mips.com>
852             Maciej W. Rozycki  <macro@mips.com>
853
854         * ser-unix.c (show_serial_hwflow): New function.
855         (hardwire_raw): Add hardware flow control support.
856         (_initialize_ser_hardwire): Add "set/show remoteflow".
857         * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
858         * NEWS: Document the new command.
859
860 2007-05-21  Ulrich Weigand  <uweigand@de.ibm.com>
861
862         * config/i386/tm-linux.h (sys_quotactl): Do not define.
863         * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
864         define for i[[3456]]86-*-linux* native configurations.
865         * config.in, configure: Regenerate.
866
867 2007-05-19  Joel Brobecker  <brobecker@adacore.com>
868
869         * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
870         a core file. Add comment in the function description.
871
872 2007-05-18  Caroline Tice  <ctice@apple.com>
873
874         * c-valprint.c (c_value_print):  If the initialized field of the
875         value struct is 0, print out "[uninitialized]" before the value.
876         * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field; 
877         allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a 
878         DW_OP_regx op; add case for DW_OP_GNU_uninit and update
879         ctx->initialized appropriately. Verify no location op follows
880         DW_OP_GNU_uninit.
881         * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
882         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to 
883         set_value_initialized.
884         * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
885         (decode_locdesc): Add case for DW_OP_GNU_uninit.
886         * value.c (struct value):  New field, initialized.
887         (allocate_value): Initialize new field.
888         (set_value_initialized): New function.
889         (value_initialized): New function.
890         * value.h (value_initialized): New extern declaration.
891         (set_value_initialized): Likewise.
892         
893 2007-05-18  Caroline Tice  <ctice@apple.com>
894
895         * MAINTAINERS (Write After Approval): Add self.
896         
897 2007-05-17  Joel Brobecker  <brobecker@adacore.com>
898
899         * gdbtypes.c (make_reference_type): Preserve the type chain
900         and set the length of all the variants of the pointer type.
901
902 2007-05-17  Joel Brobecker  <brobecker@adacore.com>
903
904         * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
905         and set the length of all the variants of the pointer type.
906
907 2007-05-17  Maciej W. Rozycki  <macro@mips.com>
908
909         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
910         comment.
911         (mips_o64_push_dummy_call): Reformat a comment.
912
913 2007-05-17  Qinwei  <qinwei@sunnorth.com.cn>
914
915         * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
916         (score_prologue_frame_base_address): Return fp to keep gdb print
917         local variables correctly when debugging information is stabs.
918
919         (score_analyze_prologue): For software watchpoint, fetch all the
920         instructions from range [startaddr, pc] once and identify them locally
921         to reduce memory access.
922         (score_malloc_and_get_memblock, score_free_memblock)
923         (score_adjust_memblock_ptr): New functions.
924         (score_fetch_inst): Fetch single instruction or mutiple instructions.
925
926         (score_target_can_use_watch, score_stopped_by_watch)
927         (score_target_insert_watchpoint, score_target_remove_watchpoint)
928         (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
929         New functions for remote & local hw-watchpoint and hw-breakpoint.
930
931 2007-05-16  Alfred M. Szmidt  <ams@gnu.org>
932
933         * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
934         declarations as well.
935
936 2007-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
937
938         * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
939         * config/arm/tm-embed.h: Delete file.
940
941         * arm-tdep.h (arm_software_single_step): Declare.
942         * arm-tdep.c (arm_software_single_step): Make global.
943         (arm_gdbarch_init): Move set_gdbarch_software_single_step call
944         from here to ...
945         * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
946         * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
947         * armobsd-tdep.c (armobsd_init_abi): ... here ...
948         * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
949
950         * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
951         allow defines to be overriden by TM file.
952         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise.  Also,
953         change default to {0xbe,0xbe}.
954         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
955         arm_obsd_thumb_be_breakpoint): New global variables.
956         (armobsd_init_abi): Override tdep->thumb_breakpoint and
957         tdep->thumb_breakpoint_size.
958         * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
959         (arm_wince_init_abi): Override tdep->thumb_breakpoint and 
960         tdep->thumb_breakpoint_size.
961
962         * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
963
964 2007-05-16  Daniel Jacobowitz  <dan@codesourcery.com>
965
966         * NEWS: Mention removed "set mips stack-arg-size" and "set mips
967         saved-gpreg-size".
968
969         * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
970         (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
971         (mips_stack_argsize_string, mips_stack_argsize): Delete.
972         (mips_abi_regsize): Simplify.
973         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
974         (mips_n32n64_return_value, mips_o32_push_dummy_call)
975         (mips_o32_return_value, mips_o64_push_dummy_call)
976         (mips_o64_return_value): Propogate constant register sizes.  Use the
977         ABI register size instead of mips_stack_argsize.
978         (mips_dump_tdep): Don't print mips_stack_argsize.
979         (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
980         settings.
981
982 2007-05-16  Daniel Jacobowitz  <dan@codesourcery.com>
983
984         * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
985         * config/mips/tm-linux.h: Delete.
986         * mips-linux-tdep.c (mips_svr4_so_ops): New.
987         (mips_linux_in_dynsym_resolve_code): Make static.  Use
988         svr4_in_dynsym_resolve_code.
989         (mips_linux_init_abi): Initialize mips_svr4_so_ops.  Call
990         set_solib_ops.
991         * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
992         global.
993         * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
994         * Makefile.in (mips-linux-tdep.o): Update.
995         * solib.c (set_solib_ops): New.
996         (current_target_so_ops): Update comment.
997         * solib.h (set_solib_ops): New prototype.
998
999 2007-05-16  Chris Dearman  <chris@mips.com>
1000
1001         * printcmd.c (do_examine): Fix typos in a comment.
1002
1003 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
1004
1005         * configure.ac: Allow sysroots to be relocated under $prefix as
1006         well as $exec_prefix.
1007         * configure: Regenerate.
1008
1009 2007-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
1010
1011         * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
1012         (offsetof): Do not define.
1013         (find_stub_with_shl_get): Use numerical value 3 instead of
1014         symbolic value TYPE_PROCEDURE.
1015
1016 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
1017
1018         * gdb_proc_service.h (paddr_t): Delete typedef.
1019         * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
1020         (ps_xfer_memory): Take a psaddr_t.  Use ps_addr_to_core_addr.
1021         (ps_pglobal_lookup): Take a psaddr_t *.  Use core_addr_to_ps_addr.
1022         (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
1023         * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
1024         * Makefile.in (proc-service.o): Update.
1025
1026 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
1027
1028         * Makefile.in (mips-tdep.o): Update.
1029         * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
1030         unwinder.
1031
1032 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
1033
1034         * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
1035         instead of store_typed_address.
1036         * value.c (pack_long): New.
1037         (value_from_longest): Use it.
1038         * value.h (pack_long): New prototype.
1039
1040 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
1041
1042         * dwarf2-frame.c (read_encoded_value): Correct typo.  Use
1043         DW_EH_PE_signed if appropriate.
1044
1045 2007-05-14  Paul Brook  <paul@codesourcery.com>
1046             Daniel Jacobowitz  <dan@codesourcery.com>
1047
1048         * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
1049         function.
1050         (dwarf_decode_lines): Check for line info without a file.
1051
1052 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
1053
1054         * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
1055         as hexadecimal.
1056
1057 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
1058
1059         * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
1060         STRUCTOP_STRUCT.
1061         * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
1062         STRUCTOP_STRUCT.
1063         * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
1064
1065 2007-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
1066
1067         * gdbarch.sh (read_sp): Remove.
1068         * gdbarch.c, gdbarch.h: Regenerate.
1069         * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
1070
1071         * avr-tdep.c (avr_read_sp): Remove.
1072         (avr_unwind_sp): New function.
1073         (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
1074         * mips-tdep.c (mips_read_sp): Remove.
1075         (mips_unwind_sp): New function.
1076         (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
1077         * score-tdep.c (score_read_unsigned_register): Remove.
1078         (score_read_sp): Remove.
1079         (score_unwind_sp): New function.
1080         (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
1081
1082 2007-05-14  Maxim Grigoriev  <maxim2405@gmail.com>
1083
1084         * buildsym.c (start_subfile): Handle absolute pathnames
1085         while comparing subfile names.
1086
1087 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
1088
1089         * hppa-hpux-tdep.c: Include "regcache.h".
1090         * hppa-linux-tdep.c: Likewise.
1091         * hppa-tdep.c: Include "gdb_stdint.h".
1092         (find_unwind_entry): Cast host pointer to uintptr_t before passing
1093         it to paddr_nz.
1094         * Makefile.in: Update dependencies.
1095
1096 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
1097
1098         * blockframe.c: Remove obsolete comments.
1099         * alpha-nat.c (fetch_osf_core_registers): Update comment.
1100         * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
1101         * hppa-tdep.h (enum hppa_regnum): Likewise.
1102         * mips-tdep.h: Likewise.
1103         * m68hc11-tdep.c: Likewise.
1104
1105 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
1106
1107         * inferior.h (read_sp): Remove prototype.
1108         * regcache.c (read_sp): Remove.
1109         * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
1110         * infcall.c (call_function_by_hand): Likewise.
1111         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
1112         of calling read_sp.
1113         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
1114
1115 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1116
1117         * i386-linux-nat.c (i386_linux_resume): Use regcache functions 
1118         instead of read_register and read_register_pid.
1119
1120         * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE 
1121         argument instead of PTID.  Use regcache functions instead of
1122         read_register_pid.
1123         (ia64_linux_insert_watchpoint): Update call.
1124         (ia64_linux_stopped_data_address): Use regcache functions
1125         instead of read_register_pid and write_register_pid.
1126
1127 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1128
1129         * libunwind-frame.h (struct regcache): Add forward declaration.
1130         (libunwind_get_reg_special): Add REGCACHE argument.
1131         * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
1132         argument.  Pass it to unw_init_remote_p.
1133
1134         * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
1135         libunwind_get_reg_special.
1136         (ia64_access_reg): Remove "write" case.
1137         (ia64_access_fpreg): Likewise.  Read from next_frame passed
1138         as callback argument instead of from current_regcache.
1139         (ia64_access_rse_reg): Remove "write" case.  Read from regcache
1140         passed as callback argument instead of from current_regcache.
1141         (ia64_access_rse_fpreg): New function.
1142         (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
1143
1144 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1145
1146         * NEWS: Mention SPU overlay support.
1147
1148 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1149
1150         * spu-tdep.c (spu_frame_unwind_cache): Add comment.
1151
1152 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1153
1154         * breakpoint.c (remove_breakpoint): Do not remove software
1155         breakpoints in unmapped overlay sections.
1156
1157 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1158
1159         * spu-tdep.c: Include "observer.h".
1160         (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
1161         (spu_overlay_data): New variable.
1162         (struct spu_overlay_table): New type.
1163         (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
1164         spu_overlay_new_objfile): New functions.
1165         (spu_gdbarch_init): Install spu_overlay_update.
1166         (_initialize_spu_tdep): Register spu_overlay_new_objfile, 
1167         allocate spu_overlay_data objfile data.
1168
1169 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1170
1171         * gdbarch.sh (overlay_update): New gdbarch function.
1172         (struct obj_section): Add forward declaration.
1173         * gdbarch.c, gdbarch.h: Regenerate.
1174
1175         * symfile.c (simple_overlay_update): Make global.
1176         (target_overlay_update): Remove variable.
1177         (overlay_is_mapped): Call gdbarch_overlay_update instead of
1178         target_overlay_update.
1179         (overlay_load_command): Likewise.
1180         * symfile.h (struct obj_section): Add forward declaration.
1181         (simple_overlay_update): Add prototype.
1182
1183         * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
1184
1185 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1186
1187         * observer.sh: Add "struct objfile" forward declaration.
1188         * target.h (deprecated_target_new_objfile_hook): Remove.
1189         * symfile.c (deprecated_target_new_objfile_hook): Remove.
1190         (clear_symtab_users): Call observer_notify_new_objfile.
1191         (symbol_file_add_with_addrs_or_offsets): Likewise.
1192         * rs6000-nat.c: Include "observer.h".
1193         (vmap_ldinfo): Call observer_notify_new_objfile.
1194         (xcoff_relocate_core): Likewise.
1195         * remote.c (remote_new_objfile_chain): Remove.
1196         (remote_new_objfile): Do not call remote_new_objfile_chain.
1197         (_initialize_remote): Use observer_attach_new_objfile.
1198         * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
1199         (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
1200         (_initialize_tui_hooks): Use observer_attach_new_objfile.
1201         * aix-thread.c: Include "observer.h".
1202         (target_new_objfile_chain): Remove.
1203         (new_objfile): Do not call target_new_objfile_chain.
1204         (_initialize_aix_thread): Use observer_attach_new_objfile.
1205         * hpux-thread.c: Include "observer.h"
1206         (target_new_objfile_chain): Remove.
1207         (hpux_thread_new_objfile): Make static.  Do not call
1208         target_new_objfile_chain.
1209         (_initialize_hpux_thread): Use observer_attach_new_objfile.
1210         * linux-thread-db.c: Include "observer.h".
1211         (target_new_objfile_chain): Remove.
1212         (thread_db_new_objfile): Do not call target_new_objfile_chain.
1213         (_initialize_thread_db): Use observer_attach_new_objfile.
1214         * sol-thread.c: Include "observer.h".
1215         (target_new_objfile_chain): Remove.
1216         (sol_thread_new_objfile): Make static.  Do not call
1217         target_new_objfile_chain.
1218         (_initialize_sol_thread): Use observer_attach_new_objfile.
1219         * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
1220         rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
1221         $(observer_h).
1222
1223 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1224
1225         * gdbarch.sh (remote_translate_xfer_address): Remove.
1226         * gdbarch.h, gdbarch.c: Regenerate.
1227         * arch-utils.c (generic_remote_translate_xfer_address): Remove.
1228         * arch-utils.h (generic_remote_translate_xfer_address): Remove.
1229         * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
1230         call gdbarch_remote_translate_xfer_address.
1231         * frv-tdep.c (frv_gdbarch_init): Do not call
1232         set_gdbarch_remote_translate_xfer_address.
1233         * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
1234         (ia64_gdbarch_init): Do not install it.
1235
1236 2007-05-11  Bob Wilson  <bob.wilson@acm.org>
1237
1238         * NEWS: Mention change in handling the -tui option.
1239
1240 2007-05-11  Daniel Jacobowitz  <dan@codesourcery.com>
1241
1242         * linux-thread-db.c (enable_thread_event_reporting): Fix comment
1243         typo.
1244
1245 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1246
1247         * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
1248         (breakpoint_inserted_here_p): Call it.
1249         (software_breakpoint_inserted_here_p): Likewise.
1250
1251 2007-05-10  Ulrich Weigand  <uweigand@de.ibm.com>
1252
1253         * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
1254         (inf_ptrace_fetch_register): Add register_u_offset callback parameters
1255         GDBARCH and STORE_P.  Handle callback (CORE_ADDR) -1 return value.
1256         (inf_ptrace_store_register): Likewise.
1257         (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
1258         * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
1259
1260         * vax-nat.c (vax_register_u_offset): Adapt parameter list.
1261
1262         * linux-nat.c (linux_trad_target): Adapt parameter list.
1263         * linux-nat.h (linux_trad_target): Likewise.
1264
1265         * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
1266
1267         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
1268         (mips_linux_cannot_store_register): Likewise.
1269         (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
1270         Return (CORE_ADDR) -1 for registers that cannot be fetched or
1271         stored via ptrace.  Use GDBARCH instead of current_gdbarch.
1272         (mips64_linux_register_addr): Likewise.
1273         (mips_linux_register_u_offset): Adapt parameter list.  Pass
1274         GDBARCH and STORE_P on to mips{64}_linux_register_addr.
1275
1276         * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
1277         * config/mips/nm-linux.h: Delete file.
1278
1279 2007-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>
1280
1281         * remote.c (remote_detach): Error out if remote can't detach.
1282
1283 2007-05-10  Luis Machado  <luisgpm@br.ibm.com>
1284
1285         * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
1286         instruction's opcode in the "opcode" variable and declares new
1287         variable "closing_insn".
1288
1289 2007-05-10  Chris Dearman  <chris@mips.com>
1290             Maciej W. Rozycki  <macro@mips.com>
1291
1292         * cli/cli-setshow.c (do_setshow_command): Remove trailing
1293         whitespace when setting a var_filename.
1294
1295 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
1296         
1297         * main.c (captured_main): Recognize -tui option and print an error
1298         message when the TUI is not configured.
1299         
1300 2007-05-09  Andreas Schwab  <schwab@suse.de>
1301
1302         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
1303         set removed members.
1304         (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
1305
1306 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
1307
1308         * gdbarch.sh (deprecated_store_struct_return): Remove.
1309         * gdbarch.c, gdbarch.h: Regenerate.
1310         * frv-tdep.c (frv_store_struct_return): Remove.
1311         (frv_gdbarch_init): Do not install it.
1312
1313 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
1314
1315         * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
1316         * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
1317         * config/nm-linux.h (USE_PROC_FS): Do not undefine.
1318
1319 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
1320
1321         * spu-linux-nat.c: Include "gdb_stdint.h".
1322         (fetch_ppc_register): Use uint64_t instead of unsigned long long.
1323         (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
1324         (fetch_ppc_memory, store_ppc_memory): Fix coding style.
1325         (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
1326         (spu_child_wait): Mark up string for translation.
1327
1328 2007-05-08  Paul Gilliam  <pgilliam@us.ibm.com>
1329             Luis Machado  <luisgpm@br.ibm.com>
1330
1331         * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
1332         STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
1333         BC_INSTRUCTION): Define.
1334         (deal_with_atomic_sequence): New function.
1335         (rs6000_software_single_step): Call deal_with_atomic_sequence.
1336         (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
1337         gdbarch_software_single_step routine.
1338
1339 2007-05-07  Ulrich Weigand  <uweigand@de.ibm.com>
1340
1341         * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
1342         store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
1343         parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
1344         spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
1345         spu_child_post_attach, spu_fetch_inferior_registers,
1346         spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
1347         memory addresses as ULONGEST, not CORE_ADDR.
1348
1349 2007-05-07  Ulrich Weigand  <uweigand@de.ibm.com>
1350
1351         * gdbarch.sh: Add skip_permanent_breakpoint callback.
1352         * gdbarch.h, gdbarch.c: Regenerate.
1353
1354         * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
1355         (resume): Call gdbarch_skip_permanent_breakpoint instead of
1356         SKIP_PERMANENT_BREAKPOINT.  Inline default case.
1357
1358         * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
1359         Add REGCACHE argument.  Use it instead of read/write_register.
1360         (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
1361
1362         * config/pa/tm-hppah.h: Delete file.
1363         * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
1364         * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
1365
1366 2007-05-07  Daniel Jacobowitz  <dan@codesourcery.com>
1367
1368         * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
1369         * NEWS: Mention improved C++ thunk support.
1370         * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
1371         * cp-abi.c (cplus_skip_trampoline): New.
1372         * cp-abi.h (cplus_skip_trampoline): New prototype.
1373         (struct cp_abi_ops): Add skip_trampoline member.
1374         * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
1375         (init_gnuv3_ops): Set skip_trampoline.
1376
1377 2007-05-06  Daniel Jacobowitz  <dan@codesourcery.com>
1378
1379         * rs6000-tdep.c (struct frame_extra_info): Delete.
1380
1381 2007-05-06  Daniel Jacobowitz  <dan@codesourcery.com>
1382
1383         * linux-thread-db.c: Update some FIXME comments.
1384         (thread_db_xfer_partial): Delete.
1385         (init_thread_db_ops): Do not set to_xfer_partial.
1386
1387 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1388
1389         * inftarg.c, infptrace.c: Remove files.
1390         * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
1391         (inftarg.o, infptrace.o): Remove rules.
1392         * gdbcore.h (register_addr): Remove prototype.
1393         * inferior.h (kill_inferior, store_inferior_registers,
1394         fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
1395         call_ptrace, pre_fork_inferior): Remove prototypes.
1396         * target.h (child_xfer_memory, child_pid_to_exec_file, 
1397         child_core_file_to_sym_file, child_post_attach,
1398         child_post_startup_inferior, child_acknowledge_created_inferior,
1399         child_insert_fork_catchpoint, child_remove_fork_catchpoint,
1400         child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
1401         child_insert_exec_catchpoint, child_remove_exec_catchpoint,
1402         child_follow_fork, child_reported_exec_events_per_exec_call,
1403         child_has_exited, child_thread_alive): Remove prototypes.
1404
1405 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1406
1407         * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
1408         (sparc_store_inferior_registers): Likewise.
1409         * sparc-nat.c (fetch_inferior_registers): Rename to ...
1410         (sparc_fetch_inferior_registers): ... this.
1411         (store_inferior_registers): Rename to ...
1412         (sparc_store_inferior_registers): ... this.
1413         (sparc_target): Update callback names.
1414         * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise. 
1415         * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise. 
1416
1417 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1418
1419         * linux-nat.c (child_post_attach): Rename to ...
1420         (linux_child_post_attach): ... this.  Make static.
1421         (child_follow_fork): Rename to ...
1422         (linux_child_follow_fork): ... this.  Make static.
1423         (child_insert_fork_catchpoint): Rename to ...
1424         (linux_child_insert_fork_catchpoint): ... this.  Make static.
1425         (child_insert_vfork_catchpoint): Rename to ...
1426         (linux_child_insert_vfork_catchpoint): ... this.  Make static.
1427         (child_insert_exec_catchpoint): Rename to ...
1428         (linux_child_insert_exec_catchpoint): ... this.  Make static.
1429         (child_pid_to_exec_file): Rename to ...
1430         (linux_child_pid_to_exec_file): ... this.  Make static.
1431         Add prototype.
1432         (linux_handle_extended_wait): Update call.
1433         (linux_xfer_partial): Update callback routine names.
1434
1435 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1436
1437         * configure.host (alpha*-*-osf[12]*): Remove support.
1438         * NEWS: Mention removed configurations.
1439
1440         * config/alpha/alpha-osf1.mh: Delete file.
1441         * config/alpha/alpha-osf2.mh: Delete file.
1442         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
1443         and infptrace.o.
1444         * config/alpha/nm-osf.h: Delete file.
1445         * config/alpha/nm-osf2.h: Delete file.
1446         * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
1447         (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
1448         (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
1449
1450         * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
1451         (register_addr, kernel_u_size): Remove.
1452         Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
1453
1454 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1455
1456         * regcache.c (regcache_invalidate): New function.
1457         (register_cached): Remove.
1458         (set_register_cached): Remove.
1459         (deprecated_registers_fetched): Remove.
1460         (registers_changed): Use regcache_invalidate instead
1461         of set_register_cached.
1462         (regcache_raw_read): Update comment.
1463
1464         * regcache.h (regcache_invalidate): Add prototype.
1465         (register_cached): Remove.
1466         (set_register_cached): Remove.
1467         (deprecated_registers_fetched): Remove.
1468
1469         * findvar.c (value_of_register): Do not call register_cached.
1470         * frame.c (frame_register): Likewise.
1471         * tui/tui-regs.c (tui_get_register): Likewise.
1472
1473         * remote.c (fetch_register_using_p): Do not call set_register_cached.
1474         (process_g_packet): Likewise.
1475         (remote_fetch_registers): Likewise.
1476         * remote-sim.c (gdbsim_fetch_register): Likewise.
1477         * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
1478         by regcache_invalidate.
1479         (mt_pseudo_register_write): Likewise.
1480         * sh-tdep.c (sh_pseudo_register_write): Likewise.
1481
1482         * corelow.c (get_core_registers): Replace deprecated_registers_fetched
1483         call by loop over regcache_raw_supply (..., NULL).
1484
1485 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1486
1487         * target.h (struct target_ops): Add REGCACHE parameter to
1488         to_prepare_to_store.
1489         (target_prepare_to_store): Likewise.
1490         * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
1491         (update_current_target): Adapt prepare_to_store de_fault rule.
1492
1493         * regcache.c (regcache_raw_write): Pass regcache to
1494         target_prepare_to_store.
1495
1496         * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
1497         Do not call CHILD_PREPARE_TO_STORE.
1498         * gnu-nat.c (gnu_prepare_to_store): Likewise.
1499         * procfs.c (procfs_prepare_to_store): Likewise.
1500
1501         * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
1502         * go32-nat.c (go32_prepare_to_store): Likewise.
1503         * monitor.c (monitor_prepare_to_store): Likewise.
1504         * nto-procfs.c (procfs_prepare_to_store): Likewise.
1505         * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
1506         * remote-mips.c (mips_prepare_to_store): Likewise.
1507         * remote-sim.c (gdbsim_prepare_to_store): Likewise.
1508         * win32-nat.c (win32_prepare_to_store): Likewise.
1509
1510         * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
1511         Use it instead of current_regcache.
1512
1513         * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
1514         parameter.  Pass it on to next target.
1515         * sol-thread.c (sol_thread_prepare_to_store): Likewise.
1516
1517 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1518
1519         * target.h (struct regcache): Add forward declaration.
1520         (struct target_ops): Add REGCACHE parameter to to_fetch_registers
1521         and to_store_registers target operations.
1522         (target_fetch_registers, target_store_registers): Update.
1523
1524         * regcache.c (regcache_raw_read): Replace register_cached by
1525         regcache_valid_p.  Pass regcache to target_fetch_registers.
1526         (regcache_raw_write): Pass regcache to target_store_registers.
1527
1528         * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
1529         store_regs, store_wmmx_regs): Replace register_cached by
1530         regcache_valid_p.
1531
1532         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
1533         to target_fetch_registers calls.
1534         * corelow.c (core_open): Likewise.
1535         * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
1536         * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
1537         ps_lsetfpregs): Likewise.
1538         * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
1539         ps_lsetfpregs): Likewise.
1540         * win32-nat.c (win32_resume): Likewise.
1541         * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
1542         to target_store_registers call.
1543         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
1544
1545         * inferior.h (store_inferior_registers): Update prototype.
1546         (fetch_inferior_registers): Likewise.
1547         * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
1548         * mips-linux-nat.c (super_fetch_registers, super_store_registers):
1549         Update function pointer signatures.
1550
1551         * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
1552         use it instead of current_regcache, update calls.
1553         (aix_thread_store_registers): Likewise.
1554         * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
1555         (alphabsd_store_inferior_registers): Likewise.
1556         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
1557         (amd64bsd_store_inferior_registers): Likewise.
1558         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
1559         (amd64_linux_store_inferior_registers): Likewise.
1560         * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
1561         store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
1562         fetch_wmmx_regs, store_wmmx_regs): Likewise.
1563         (arm_linux_fetch_inferior_registers): Likewise.
1564         (arm_linux_store_inferior_registers): Likewise.
1565         * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
1566         fetch_fp_regs, armnbsd_fetch_registers): Likewise.
1567         (store_register, store_regs, store_fp_register, store_fp_regs,
1568         armnbsd_store_registers): Likewise.
1569         * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
1570         * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
1571         (bsd_uthread_store_registers): Likewise.
1572         * corelow.c (get_core_registers): Likewise.
1573         * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
1574         go32_store_registers): Likewise.
1575         * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
1576         (hppabsd_store_registers): Likewise.
1577         * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
1578         (hppa_hpux_fetch_inferior_registers): Likewise.
1579         (hppa_hpux_store_register): Likewise.
1580         (hppa_hpux_store_inferior_registers): Likewise.
1581         * hppa-linux-nat.c (fetch_register, store_register): Likewise.
1582         (hppa_linux_fetch_inferior_registers): Likewise.
1583         (hppa_linux_store_inferior_registers): Likewise.
1584         * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
1585         (hpux_thread_store_registers): Likewise.
1586         * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
1587         (i386bsd_store_inferior_registers): Likewise.
1588         * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
1589         gnu_store_registers): Likewise.
1590         * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
1591         store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
1592         Likewise.
1593         (i386_linux_fetch_inferior_registers): Likewise.
1594         (i386_linux_store_inferior_registers): Likewise.
1595         * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
1596         (ia64_linux_fetch_registers): Likewise.
1597         (ia64_linux_store_register): Likewise.
1598         (ia64_linux_store_registers): Likewise.
1599         * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
1600         (inf_child_store_inferior_registers): Likewise.
1601         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1602         (inf_ptrace_fetch_registers): Likewise.
1603         (inf_ptrace_store_register): Likewise.
1604         (inf_ptrace_store_registers): Likewise.
1605         * infptrace.c (fetch_register, store_register): Likewise.
1606         (fetch_inferior_registers, store_inferior_registers): Likewise.
1607         * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
1608         (m32r_linux_fetch_inferior_registers): Likewise.
1609         (m32r_linux_store_inferior_registers): Likewise.
1610         * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
1611         (m68kbsd_store_inferior_registers): Likewise.
1612         * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
1613         store_register, old_store_inferior_registers, fetch_regs, store_regs,
1614         fetch_fpregs, store_fpregs): Likewise.
1615         (m68k_linux_fetch_inferior_registers): Likewise.
1616         (m68k_linux_store_inferior_registers): Likewise.
1617         * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
1618         (m88kbsd_store_inferior_registers): Likewise.
1619         * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
1620         (mips64obsd_store_inferior_registers): Likewise.
1621         * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
1622         (mips64_linux_regsets_store_registers): Likewise.
1623         (mips64_linux_fetch_registers): Likewise.
1624         (mips64_linux_store_registers): Likewise.
1625         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
1626         (mipsnbsd_store_inferior_registers): Likewise.
1627         * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
1628         (monitor_fetch_registers, monitor_store_registers): Likewise.
1629         * nto-procfs.c (procfs_fetch_registers): Likewise.
1630         (procfs_store_registers): Likewise.
1631         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
1632         fetch_register, supply_vrregset, fetch_altivec_registers,
1633         fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
1634         (store_altivec_register, store_spe_register, store_register, 
1635         fill_vrregset, store_altivec_registers, store_ppc_registers,
1636         ppc_linux_store_inferior_registers): Likewise.
1637         * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
1638         (ppcnbsd_store_inferior_registers): Likewise.
1639         * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
1640         (ppcobsd_store_registers): Likewise.
1641         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1642         * remote.c (fetch_register_using_p, process_g_packet,
1643         fetch_registers_using_g, remote_fetch_registers): Likewise.
1644         (store_register_using_P, store_registers_using_G, 
1645         remote_store_registers): Likewise.
1646         * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
1647         m32r_store_register, m32r_store_register): Likewise.
1648         * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
1649         * remote-sim.c (gdbsim_fetch_register): Likewise.
1650         (gdbsim_store_register): Likewise.
1651         * rs6000-nat.c (fetch_register, store_register): Likewise.
1652         (rs6000_fetch_inferior_registers): Likewise.
1653         (rs6000_store_inferior_registers): Likewise.
1654         * s390-nat.c (fetch_regs, store_regs): Likewise.
1655         (fetch_fpregs, store_fpregs): Likewise.
1656         (s390_linux_fetch_inferior_registers): Likewise.
1657         (s390_linux_store_inferior_registers): Likewise.
1658         * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
1659         (shnbsd_store_inferior_registers): Likewise.
1660         * sol-thread.c (sol_thread_fetch_registers): Likewise.
1661         (sol_thread_store_registers): Likewise.
1662         * sparc-nat.c (fetch_inferior_registers): Likewise.
1663         (store_inferior_registers): Likewise.
1664         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
1665         (spu_store_inferior_registers): Likewise.
1666         * target.c (debug_print_register): Likewise.
1667         (debug_to_fetch_registers, debug_to_store_registers): Likewise.
1668         * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
1669         (vaxbsd_store_inferior_registers): Likewise.
1670         * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
1671         (win32_fetch_inferior_registers): Likewise.
1672         (win32_store_inferior_registers): Likewise.
1673
1674 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1675
1676         * gdbcore.h (struct regcache): Add forward declaration.
1677         (struct core_fns): Add REGCACHE argument to core_read_registers
1678         callback.
1679         * corelow.c (get_core_register_section): Add REGCACHE argument,
1680         use it instead of current_regcache, pass it to core_read_registers
1681         callback.
1682         (get_core_registers): Add current_regcache as parameter to
1683         get_core_register_section calls.
1684
1685         * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
1686         use it instead of current_regcache.
1687         * armnbsd-nat.c (fetch_core_registers): Likewise.
1688         (fetch_elfcore_registers): Likewise.
1689         * core-regset.c (fetch_core_registers): Likewise.
1690         * cris-tdep.c (fetch_core_registers): Likewise.
1691         * irix5-nat.c (fetch_core_registers): Likewise.
1692         * m68klinux-nat.c (fetch_core_registers): Likewise.
1693         * mips-linux-tdep.c (fetch_core_registers): Likewise.
1694         * win32-nat.c (fetch_elf_core_registers): Likewise.
1695
1696 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1697
1698         * gregset.h (struct regcache): Add forward declaration.
1699         (supply_gregset): Add REGCACHE parameter, make GREGS const.
1700         (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
1701         (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
1702         (fill_gregset): Add REGCACHE parameter.
1703         (fill_fpregset): Likewise.
1704         (fill_fpxregset): Likewise.
1705
1706         Update all definitions accordingly:
1707         * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
1708         arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
1709         i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c, 
1710         m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
1711         s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c 
1712         (supply_gregset): Add REGCACHE parameter, use it instead of 
1713         current_regcache.  Make GREGSETP parameter const, adapt casts.
1714         (supply_fpregset): Add REGCACHE parameter, use it instead of
1715         current_regcache.  Make FPREGSETP parameter const, adapt casts.
1716         (fill_gregset): Add REGCACHE parameter, use it instead of
1717         current_regcache.
1718         (fill_fpregset): Likewise.
1719
1720         Update all callers to pass in current_regcache as the new argument:
1721         * core-regset.c: Include "regcache.h".
1722         (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
1723         * procfs.c: Include "regcache.h".
1724         (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
1725         (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
1726         (procfs_do_thread_registers): Likewise.
1727         (procfs_make_note_section): Likewise.
1728         * proc-service.c: Include "regcache.h".
1729         (ps_lgetregs): Update fill_gregset call.
1730         (ps_lsetregs): Update supply_gregset call.
1731         (ps_lgetfpregs): Update fill_fpregset call.
1732         (ps_lsetfpregs): Update supply_fpregset call.
1733         * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
1734         supply_fpregset calls.
1735         (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
1736         (ps_lgetregs): Update fill_gregset call.
1737         (ps_lsetregs): Update supply_gregset call.
1738         (ps_lgetfpregs): Update fill_fpregset call.
1739         (ps_lsetfpregs): Update supply_fpregset call.
1740         
1741         * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
1742         fill_fpregset, and fill_fpxregset calls.
1743         * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
1744         (store_regs): Update fill_gregset call.
1745         (fetch_fpregs): Update supply_fpregset call.
1746         (store_fpregs): Update fill_fpregset call.
1747         (fetch_fpxregs): Update supply_fpxregset call.
1748         (store_fpxregs): Update fill_fpxregset call.
1749         * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
1750         (store_regs): Update fill_gregset call.
1751         * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
1752         (store_regs): Update fill_gregset call.
1753         (fetch_fpregs): Update supply_fpregset call.
1754         (store_fpregs): Update fill_fpregset call.
1755         (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
1756         * s390-nat.c (fetch_regs): Update supply_gregset call.
1757         (store_regs): Update fill_gregset call.
1758         (fetch_fpregs): Update supply_fpregset call.
1759         (store_fpregs): Update fill_fpregset call.
1760
1761         * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
1762         dependencies.
1763
1764 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1765
1766         * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
1767         it instead of current_regcache.
1768         (parse_register_dump): Add REGCACHE parameter, pass it to 
1769         supply_register callback.
1770         (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
1771         parse_register_dump.
1772         (monitor_dump_regs): Add REGCACHE parameter, pass it to
1773         parse_register_dump and dumpregs callback.
1774         (monitor_wait): Pass current_regcache to parse_register_dump and
1775         monitor_dump_regs.
1776         (monitor_fetch_register): Pass current_regcache to
1777         monitor_supply_register.
1778         (monitor_fetch_registers): Pass current_regcache to
1779         monitor_dump_regs.
1780         * monitor.h (struct monitor_ops): Add REGCACHE parameter to
1781         supply_register and dumpregs callbacks.
1782         (monitor_supply_register, monitor_dump_reg_block): Update
1783         prototypes.
1784         * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter.  Pass
1785         it to monitor_supply_register.
1786         * dink32-rom.c (dink32_supply_register): Likewise.
1787         * ppcbug-rom.c (ppcbug_supply_register): Likewise.
1788         * m32r-rom.c (m32r_supply_register): Likewise.  Also, use REGCACHE
1789         instead of current_regcache.
1790
1791 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1792
1793         * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
1794         Add REGCACHE parameter.  Use it instead of current_regcache.
1795         (i386nto_supply_regset): Add REGCACHE parameter, pass it to
1796         i386nto_supply_gregset and i386nto_supply_fpregset.
1797         (i386nto_regset_fill): Add REGCACHE parameter; use it instead
1798         of current_regcache.
1799
1800         * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
1801         nto_supply_ helper functions.
1802         (procfs_store_registers): Pass current_regcache to nto_regset_fill.
1803
1804         * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
1805
1806         * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
1807         supply_greget, supply_fpregset, supply_altregset, supply_regset,
1808         and regset_fill member function pointers.
1809         (nto_dummy_supply_regset): Adapt prototype.
1810
1811 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1812
1813         * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
1814         instead of current_regcache.  Make REGS const.
1815         (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
1816         * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
1817         prototypes.
1818         * shnbsd-nat.c: Include "regcache.h".
1819         (shnbsd_fetch_inferior_registers): Pass current_regcache to
1820         shnbsd_supply_reg.
1821         (shnbsd_store_inferior_registers): Pass current_regcache to
1822         shnbsd_fill_reg.
1823         * Makefile.in (shbsd-nat.o): Update dependencies.
1824
1825 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1826
1827         * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter.  Use it
1828         instead of current_regcache.
1829         (mips_supply_gregset): Likewise.  Pass REGCACHE to supply_32bit_reg.
1830         Make GREGSETP const, remove superfluous casts.
1831         (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
1832         (mips_supply_fpregset): Likewise.  Make FPREGSETP const, remove 
1833         superfluous casts.
1834         (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
1835         (supply_64bit_reg): Likewise
1836         (mips64_supply_gregset): Likewise.  Pass REGCACHE to supply_64bit_reg.
1837         Make GREGSETP const, adapt casts accordingly.
1838         (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
1839         (mips64_supply_fpregset): Likewise.  Make FPREGSET const, adapt
1840         casts accordingly.
1841         (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
1842         (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
1843         helper routines.
1844         * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
1845         mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
1846         mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
1847         Adapt prototypes.
1848         * mips-linux-nat.c: Include "regcache.h".
1849         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
1850         current_regcache to mips{64}_(supply|fill)_ helper routines.
1851         (mips64_linux_regsets_fetch_registers): Likewise.
1852         (mips64_linux_regsets_store_registers): Likewise.
1853
1854         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
1855         REGCACHE argument; replace current_regcache.  Make REGS const.
1856         (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
1857         replace current_regcache.
1858         * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
1859         mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
1860         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
1861         mipsnbsd_store_inferior_registers): Pass current_regcache to
1862         mipsnbsd_(supply|fill)_... helper routines.
1863
1864         * Makefile.in (mips-linux-nat.o): Update dependencies.
1865
1866 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1867
1868         * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
1869         * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
1870         * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
1871         i387_fill_fsave and i387_fill_fxsave calls by inline copies.
1872         * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
1873         * i386gnu-nat.c (store_fpregs): Likewise.
1874         * i386v4-nat.c (fill_fpregset): Likewise.
1875         * go32-nat.c (store_register, go32_store_registers): Likewise.
1876
1877 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1878
1879         * cris-tdep.c (supply_gregset): Rename to ...
1880         (cris_supply_gregset): ... this.  Add REGCACHE parameter.  Use it
1881         instead of current_regcache.
1882         (fetch_core_registers): Update call.  Pass current_regcache.
1883
1884 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1885
1886         * arnmnbsd-nat.c (supply_gregset): Rename to ...
1887         (arm_supply_gregset): ... this.  Add REGCACHE parameter.
1888         Use it instead of current_regcache.
1889         (supply_fparegset): Rename to ...
1890         (arm_supply_fparegset): ... this.  Add REGCACHE parameter.
1891         Use it instead of current_regcache.
1892         (fetch_regs, fetch_fp_regs): Update calls.  Pass current_regcache.
1893         (fetch_core_registers, fetch_elfcore_registers): Likewise.
1894
1895 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1896
1897         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
1898         alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
1899         use it instead of current_regcache.
1900         * alpha-tdep.h (struct regcache): Add forward declaration.
1901         (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
1902         alpha_fill_fp_regs): Update prototypes.
1903
1904         * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
1905         fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
1906         * alpha-linux-nat.c: Include "regcache.h".
1907         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
1908         current_regcache to alpha_supply/fill_ routines.
1909
1910         * alphabsd-tdep.c: Include "regcache.h".
1911         (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
1912         pass it to alpha_supply_ routines.  Make REGS const.
1913         (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
1914         pass it to alpha_fill_ routines.
1915         * alphabsd-tdep.h (struct regcache): Add forward declaration.
1916         (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
1917         alphabsd_fill_fpreg): Update prototypes.
1918
1919         * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
1920         fill_fpregset, alphabsd_fetch_inferior_registers,
1921         alphabsd_store_inferior_registers): Pass current_regcache to
1922         alphabsd_supply/fill_ routines.
1923
1924         * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
1925         dependencies.
1926
1927 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1928
1929         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
1930         supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
1931         instead of current_regcache.
1932         (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
1933         REGCACHE parameter, pass it to supply_ routines.
1934         (aix_thread_fetch_registers): Pass current_regcache to
1935         fetch_regs_user_thread and fetch_regs_kernel_thread.
1936
1937         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
1938         Add REGCACHE parameter, use it instead of current_regcache.
1939         Call regcache_valid_p instead of register_cached.
1940         (store_regs_user_thread, store_regs_kernel_thread): Likewise.
1941         Also, pass REGCACHE to fill_ routines.
1942         (aix_thread_store_registers): Pass current_regcache to
1943         store_regs_user_thread and store_regs_kernel_thread.
1944
1945 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1946
1947         * m32r-linux-nat.c (supply_gregset): Do not modify contents
1948         pointed to by GREGSETP.
1949
1950 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1951
1952         * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
1953         of regcache_raw_read_signed.
1954         (fill_fpregset): Use regcache_raw_collect instead of
1955         regcache_raw_read.
1956
1957 2007-05-03  Kevin Buettner  <kevinb@redhat.com>
1958
1959         * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
1960         point arguments, test explicitly for use of the EABI32 ABI
1961         instead of inferring this condition from tests on register
1962         sizes.
1963
1964 2007-05-03  Kevin Buettner  <kevinb@redhat.com>
1965
1966         * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
1967         prior to allocating its location.
1968
1969 2007-05-02  Maciej W. Rozycki  <macro@mips.com>
1970
1971         * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
1972         based on mips_abi_regsize() whose result is known in advance.
1973         (mips_o64_push_dummy_call): Likewise.
1974
1975 2007-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
1976
1977         * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
1978         * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
1979
1980         * mips-linux-nat.c: Include "gregset.h".
1981         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
1982         from mips-linux-tdep.c.  Change parameter type to gdb_gregset_t.
1983         * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
1984         fill_fpregset): Move to mips-linux-nat.c.
1985
1986         * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
1987
1988 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
1989
1990         * regcache.c (deprecated_read_register_gen): Remove, inline ...
1991         (read_register): ... here.
1992         (deprecated_write_register_gen): Remove, inline ...
1993         (write_register): ... here.
1994         * regcache.h (deprecated_read_register_gen): Remove prototype.
1995         (deprecated_write_register_gen): Likewise.
1996
1997         * remote-sim.c (gdbsim_store_register): Replace call to
1998         deprecated_read_register_gen with regcache_cooked_read.
1999         * target.c (debug_print_register): Replace calls to
2000         deprecated_read_register_gen and read_register with
2001         regcache_cooked_read.
2002
2003 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
2004
2005         * hpux-thread.c (hpux_thread_store_registers): Use
2006         regcache_raw_collect, not regcache_raw_read.
2007         * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
2008         not regcache_raw_write.
2009
2010 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
2011
2012         * gdbarch.sh: Remove deprecated_register_byte.
2013         * gdbarch.c, gdbarch.h: Regenerate.
2014         * arch-utils.h (generic_register_size, generic_register_byte): Remove.
2015         * arch-utils.c (generic_register_size, generic_register_byte): Remove.
2016
2017         * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
2018         * regcache.c (regcache_valid_p): Allow to query cooked registers in
2019         read-only register caches.  Make REGCACHE parameter const.
2020         (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
2021
2022         * mi/mi-main.c (old_regs): Remove.
2023         (mi_setup_architecture_data, _initialize_mi_main): Remove.
2024         (register_changed_p): Reimplement to compare two register caches.
2025         (mi_cmd_data_list_changed_registers): Update caller.
2026         * mi/mi-main.h (mi_setup_architecture_data): Remove.
2027         * mi/mi-interp.c (mi_interpreter_init): Do not call
2028         mi_setup_architecture_data.
2029
2030 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
2031
2032         * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
2033         inline definition at the places the macros are used.
2034         * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
2035
2036 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
2037
2038         * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
2039         "gdb_string.h".
2040         (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
2041         (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
2042         (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
2043         (rs6000_aix_regset_from_core_section): New function.
2044         (rs6000_aix_init_osabi): Register it.
2045         (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
2046         sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000. 
2047         * rs6000-nat.c (CoreRegs): Do not define type.
2048         (fetch_core_registers, rs6000_core_fns): Remove.
2049         (_initialize_core_rs6000): Do not register it.  Rename to ...
2050         (_initialize_rs6000_nat): ... this.
2051         * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
2052
2053 2007-04-27  Kevin Buettner  <kevinb@redhat.com>
2054
2055         * dwarf2expr.c (unsigned_address_type): Add forward declaration.
2056         (dwarf2_read_address): Sign extend return address as required by
2057         target architecture.
2058
2059 2007-04-27  Kevin Buettner  <kevinb@redhat.com>
2060
2061         * solib-frv.c (lm_base): Bail out if the main executable has
2062         not been relocated.
2063
2064 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2065
2066         * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
2067         of FPCR register in fpregset.
2068
2069 2007-04-27  Maciej W. Rozycki  <macro@mips.com>
2070
2071         * Makefile.in (gdbtk-wrapper.o): Update dependencies.
2072         (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
2073
2074 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2075
2076         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
2077         * rs6000-nat.c (rs6000_wait): New function.
2078         (_initialize_core_rs6000): Install it as to_wait target method.
2079         * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
2080
2081 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2082
2083         * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
2084         * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
2085         * rs6000-nat.c (super_create_inferior): New variable.
2086         (rs6000_create_inferior): Make static.  Adapt argument list.  Call
2087         original version of create_inferior via super_create_inferior.
2088         (_initialize_core_rs6000): Install to_create_inferior target method.
2089
2090 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2091
2092         * aix-thread.c (aix_thread_xfer_memory): Replace by ...
2093         (aix_thread_xfer_partial): ... this.
2094         (init_aix_thread_ops): Install to_xfer_partial instead
2095         of deprecated_xfer_memory target method.
2096
2097         * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
2098         and inftarg.o, add inf-ptrace.o.
2099         * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
2100         CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
2101         * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
2102         (fetch_inferior_registers): Rename to ...
2103         (rs6000_fetch_inferior_registers): ... this.  Make static.
2104         (store_inferior_registers): Rename to ...
2105         (rs6000_store_inferior_registers): ... this.  Make static.
2106         (read_word, child_xfer_memory): Remove.
2107         (rs6000_xfer_partial): New function.
2108         (kernel_u_size): Remove.
2109         (_initialize_core_rs6000): Add inf_ptrace-based target.
2110         * Makefile.in (rs6000-nat.o): Update dependencies.
2111
2112 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2113
2114         * inf-ptrace.c: Include "gdb_stdint.h".
2115         (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as 
2116         intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
2117         (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
2118         before casting CORE_ADDR to PTRACE_TYPE_ARG3.
2119         (inf_ptrace_store_register): Likewise.
2120         * Makefile.in (inf-ptrace.o): Update dependencies.
2121
2122 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2123
2124         * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
2125         * configure.tgt (rs6000-*-*): Likewise.
2126         * config/rs6000/aix4.mh: Delete file.
2127         * config/rs6000/aix4.mt: Delete file.
2128         * config/rs6000/rs6000.mh: Delete file.
2129         * config/rs6000/rs6000.mt: Delete file.
2130
2131         * config/powerpc/nm-aix.h: Delete file.
2132         * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
2133
2134 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2135
2136         * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
2137         Remove obsolete part of comment.
2138         (store_regs_user_thread): Use uint32_t temporaries when calling
2139         fill_sprs32.
2140         (store_regs_kernel_thread): Likewise.  Add assertion to verify
2141         correct size of struct ptsprs members.
2142         (aix_thread_xfer_memory): Fix type of myaddr.
2143         (aix_thread_extra_thread_info): Fix compiler warning.
2144         * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
2145         (fetch_register, store_register): Adapt callers.
2146
2147 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2148
2149         * vec.h (vec_free): Rename to vec_free_.  Adapt users.
2150
2151 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
2152
2153         * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
2154         and "regcache.h".
2155         (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
2156         (alpha_linux_gregset, alpha_linux_fpregset): New variables.
2157         (alpha_linux_regset_from_core_section): New function.
2158         (alpha_linux_init_abi): Install it.
2159         * alpha-linux-nat.c: Do not include "gdbcore.h".  Include
2160         "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
2161         <sys/procfs.h>, and "gregset.h".
2162         (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
2163         Move from config/alpha/nm-linux.h.
2164         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
2165         from alpha-nat.c.
2166         (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
2167         * alpha-nat.c: Remove #ifdef __linux__ section.
2168         (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
2169         (_initialize_core_alpha): Do not register alpha_elf_core_fns.
2170         (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
2171         (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
2172         * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
2173         (NATDEPFILES): Remove alpha-nat.o.
2174         * config/alpha/nm-linux.h: Delete file.
2175         * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
2176         * Makefile.in (alpha-linux-nat.o): Update dependencies.
2177         (alpha-linux-tdep.o): Likewise.
2178
2179 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
2180
2181         * mips-linux-nat.c: No longer include "gdbcore.h".
2182         (mips_linux_register_addr): Move from mips-linux-tdep.c.
2183         (mips64_linux_register_addr): Likewise.
2184         (mips_linux_register_u_offset): Call mips_linux_register_addr or
2185         mips64_linux_register_addr instead of register_addr.
2186         * mips-linux-tdep.c (mips_linux_register_addr,
2187         mips64_linux_register_addr): Move to mips-linux-nat.c.
2188         (register_addr): Remove.
2189         (register_addr_data, init_register_addr_data): Remove.
2190         (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
2191         (set_mips_linux_register_addr): Remove.
2192         (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
2193         * Makefile.in (mips-linux-nat.o): Update dependencies.
2194
2195 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
2196
2197         * linux-nat.c (linux_register_u_offset): Remove.
2198         (linux_target_install_ops): New function.
2199         (linux_target): Use it.
2200         (linux_trad_target): New function.
2201         * linux-nat.h (linux_trad_target): Declare.
2202
2203         * alpha-linux-nat.c: Include "gdbcore.h".
2204         (alpha_linux_register_u_offset): New function.
2205         (_initialize_alpha_linux_nat): Use linux_trad_target.
2206
2207         * mips-linux-nat.c: Include "gdbcore.h".
2208         (mips_linux_register_u_offset): New function.
2209         (_initialize_mips_linux_nat): Use linux_trad_target.
2210
2211         * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2212         * config/arm/nm-linux.h: Delete file.
2213
2214         * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
2215         * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
2216
2217         * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2218         * config/ia64/nm-linux.h: Delete file.
2219
2220         * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2221         * config/m32r/nm-linux.h: Delete file.
2222
2223         * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2224         * config/m68k/nm-linux.h: Delete file.
2225
2226         * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2227         * config/pa/nm-linux.h: Delete file.
2228
2229         * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2230         * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
2231         * config/powerpc/nm-linux.h: Delete file.
2232
2233         * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
2234         * config/s390/nm-linux.h: Delete file.
2235
2236         * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2237         * config/sparc/linux64.mh (NAT_FILE): Likewise.
2238         * config/sparc/nm-linux.h: Delete file.
2239
2240         * Makefile.in (alpha-linux-nat.o): Update dependencies.
2241         (mips-linux-nat.o): Likewise.
2242
2243 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
2244
2245         * core-aout.c: Delete file.
2246         * Makefile.in (ALLDEPFILES): Remove core-aout.c.
2247         (core-aout.o): Delete rule.
2248         * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
2249
2250         * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
2251
2252         * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
2253         * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
2254         KERNEL_U_ADDR): Remove.
2255
2256         * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
2257         (cannot_fetch_register, cannot_store_register): Remove.
2258         (fetch_register): Inline cannot_fetch_register and register_addr.
2259         (store_register): Inline cannot_store_register and register_addr.
2260         * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
2261         * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
2262         REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
2263         Remove.
2264
2265         * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
2266         (fetch_register): Inline register_addr.
2267         (store_register): Inline register_addr.
2268         * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
2269         * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
2270         U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
2271
2272         * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
2273         * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
2274         REGISTER_U_ADDR): Remove.
2275
2276         * hppa-linux-nat.c (register_addr): Rename to ...
2277         (hppa_linux_register_addr): ... this.  Make static.
2278         (fetch_register, store_register): Adapt callers.
2279         * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
2280
2281         * ppc-linux-nat.c (kernel_u_size): Remove.
2282         * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
2283
2284         * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
2285         * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
2286         (NAT_FILE): Remove.
2287         * config/vax/nm-vax.h: Delete file.
2288
2289 2007-04-20  Mark Shinwell  <shinwell@codesourcery.com>
2290
2291         * MAINTAINERS (Write After Approval): Add myself.
2292
2293 2007-04-20  Mark Shinwell  <shinwell@codesourcery.com>
2294
2295         * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
2296         * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
2297         (m68k_linux_sigcontext_reg_offset): Fix typo.
2298         (target_is_uclinux): New.
2299         (m68k_linux_inferior_created): New.
2300         (m68k_linux_get_sigtramp_info):  Check for uClinux or
2301         normal Linux.  Use m68k_uclinux_sigcontext_reg_offset for
2302         uClinux.
2303         (_initialize_m68k_linux_tdep): Register
2304         m68k_linux_inferior_created.
2305
2306 2007-04-19  Pedro Alves  <pedro_alves@portugalmail.pt>
2307
2308         * win32-nat.c (win32_detach): Remove delete_command call.
2309         Resume inferior with win32_resume instead of win32_continue.
2310
2311 2007-04-19  Jerome Guitton  <guitton@adacore.com>
2312
2313         * ser-mingw.c (fd_is_file): New function.
2314         (file_select_thread): New function.
2315         (ser_console_wait_handle): Add special handling for files.
2316
2317 2007-04-18  Denis Pilat  <denis.pilat@st.com>
2318
2319         * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
2320         when missing from DW_TAG_subrange_type.  Remove the handling of null
2321         return from die_type.
2322
2323 2007-04-18  Maciej W. Rozycki  <macro@mips.com>
2324
2325         * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
2326         change to rearrange some brackets.
2327         (mips_n32n64_push_dummy_call): Likewise.
2328         (mips_o32_push_dummy_call): Likewise.
2329         (mips_o64_push_dummy_call): Likewise.
2330
2331 2007-04-18  Denis Pilat  <denis.pilat@st.com>
2332
2333         * infcmd.c (post_create_inferior): Start with a call to 
2334         target_terminal_ours.
2335
2336 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
2337
2338         * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
2339         brackets.
2340         (mips_n32n64_push_dummy_call): Likewise.  Reformat some
2341         expressions.
2342         (mips_o32_push_dummy_call): Likewise.
2343         (mips_o64_push_dummy_call): Likewise.
2344
2345 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
2346
2347         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
2348         comment.
2349
2350 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
2351
2352         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
2353         comment.
2354         (mips_o32_push_dummy_call): Likewise.
2355
2356 2007-04-17  Andreas Schwab  <schwab@suse.de>
2357
2358         * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
2359         sal to be bigger than the end of the function.
2360
2361 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
2362             Nigel Stephens  <nigel@mips.com>
2363
2364         * mips-tdep.c (mips_o32_push_dummy_call): Take account of
2365         argument alignment requirements when calculating stack space
2366         required.  When aligning an arg register to eight bytes
2367         boundary, align stack_offset too.  Write floating-point
2368         arguments to the appropriate integer register if need go there.
2369         (mips_o64_push_dummy_call): Likewise.
2370
2371 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
2372
2373         * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
2374         "sig" arguments, add "regcache" argument.
2375         * gdbarch.c, gdbarch.h: Regenerate.
2376
2377         * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
2378         (handle_inferior_event): Call remove_single_step_breakpoints directly
2379         instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
2380
2381         * alpha-tdep.c (alpha_software_single_step): Update argument list.
2382         Remove handling of !insert_breakpoints_p case.
2383         * arm-tdep.c (arm_software_single_step): Likewise.
2384         * cris-tdep.c (cris_software_single_step): Likewise.
2385         * mips-tdep.c (mips_software_single_step): Likewise.
2386         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
2387         * sparc-tdep.c (sparc_software_single_step): Likewise.
2388         * spu-tdep.c (spu_software_single_step): Likewise.
2389
2390         * alpha-tdep.h (alpha_software_single_step): Update prototype.
2391         * mips-tdep.h (mips_software_single_step): Likewise.
2392         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
2393         * sparc-tdep.h (sparc_software_single_step): Likewise.
2394
2395 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
2396
2397         * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
2398         when removing single-step breakpoints.
2399
2400 2007-04-14  Vladimir Prus  <vladimir@codesourcery.com>
2401
2402         * varobj.h (varobj_set_frozen): New
2403         (varobj_get_frozen): New.
2404         (varobj_update): New parameter explicit.
2405         * varobj.c (struct varobj): New fields frozen
2406         and not_fetched.
2407         (varobj_set_frozen, varobj_get_frozen): New.
2408         (install_new_value): Don't fetch values for 
2409         frozen variable object, or children thereof.  Allow
2410         a frozen variable object to have non-fetched value.
2411         (varobj_update): Allow updating child variables.
2412         Don't traverse frozen children.
2413         (new_variable): Initialize the frozen field.
2414         (c_value_of_variable): Return NULL for frozen
2415         variable without any value yet. 
2416         * mi/mi-cmd-var.c (varobj_update_one): New parameter
2417         'explicit'.
2418         (mi_cmd_var_create): Output the 'frozen' field,
2419         as soon as testsuite is adjusted to expect that field.
2420         (mi_cmd_var_set_frozen): New.
2421         (mi_cmd_var_update): Pass the 'explicit' parameter to
2422         varobj_update_one.
2423         * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
2424         * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
2425         
2426 2007-04-13  Paul Brook  <paul@codesourcery.com>
2427
2428         * target-descriptions.c (tdesc_named_type): Add ieee_single and
2429         ieee_double.
2430         * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
2431
2432 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
2433
2434         * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
2435         remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
2436         scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
2437         ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
2438         * Makefile.in: Remove references to deleted files.
2439         * README: Do not mention deleted ROM monitor interfaces.
2440         * defs.h (enum language): Delete language_scm.
2441         * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
2442         (dump_subexp_body_standard): Likewise.
2443         * parse.c (operator_length_standard): Likewise.
2444         * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
2445         * remote-mips.c: Do not include remote-utils.h.
2446         * remote-sim.c: Likewise.  Use remote_debug instead of sr_get_debug
2447         throughout.
2448         * value.c: Do not include scm-lang.h.
2449         (unpack_long): Delete scm_unpack call.
2450         * config/h8300/h8300.mt, config/mips/embed.mt,
2451         config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
2452         config/sh/embed.mt, config/sh/linux.mt: Remove references to
2453         deleted files.
2454         * NEWS: Mention removed files.
2455
2456 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
2457
2458         * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
2459         * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
2460
2461 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
2462
2463         * NEWS: Mention removal of HP aCC support.
2464
2465 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
2466
2467         * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
2468         first entry for static executables.
2469         (breakpoint_addr): Delete unused variable.
2470         (elf_locate_base): Search for _r_debug in static executables.
2471         (enable_break): Do not set breakpoint_addr.  Scan solib_break_names
2472         also.
2473
2474 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
2475
2476         * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
2477         (bpstat_what, print_one_breakpoint, allocate_bp_location)
2478         (mention): Remove bp_through_sigtramp support.
2479         * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
2480
2481 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
2482
2483         * breakpoint.c (bpstat_what): Give step-resume higher priority than
2484         shlib events.
2485
2486 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
2487
2488         * infrun.c: Doc fixes.
2489         (handle_inferior_event): Clarify debug message.
2490         (insert_step_resume_breakpoint_at_sal): Print a debug message.
2491
2492 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
2493
2494         * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
2495
2496 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
2497
2498         * config/m68k/tm-monitor.h: Delete file.
2499         * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
2500         * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
2501         call moved to ...
2502         * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
2503         * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
2504
2505 2007-04-12  Luis Machado  <luisgpm@br.ibm.com>
2506
2507         * gdbarch.sh (software_single_step): Change the return type
2508         from void to int and reformatted some comments to <= 80
2509         columns.
2510         * gdbarch.c, gdbarch.h: Regenerated.
2511         * alpha-tdep.c (alpha_software_single_step): Likewise.
2512         * alpha-tdep.h (alpha_software_single_step): Likewise.
2513         * arm-tdep.c (arm_software_single_step): Likewise.
2514         * cris-tdep.c (cris_software_single_step): Likewise.
2515         * mips-tdep.c (mips_software_single_step): Likewise.
2516         * mips-tdep.h (mips_software_single_step): Likewise.
2517         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
2518         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
2519         * sparc-tdep.c (sparc_software_single_step): Likewise.
2520         * sparc-tdep.h (sparc_software_single_step): Likewise.
2521         * spu-tdep.c (spu_software_single_step): Likewise.
2522         * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
2523         and act accordingly.
2524
2525 2007-04-11  Steve Ellcey  <sje@cup.hp.com>
2526
2527         * configure.ac (build_warnings): Add -Wno-char-subscripts.
2528         * configure: Regenerate.
2529         * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
2530
2531 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2532
2533         * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
2534
2535 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2536
2537         * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
2538         macros.
2539         (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
2540         distinct on the TYPE_STUB_SUPPORTED debug targets.
2541         * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
2542
2543 2007-04-11  Joel Brobecker  <brobecker@adacore.com>
2544
2545         * sparc-tdep.c (X_RS2): New macro.
2546         (sparc_skip_stack_check): New function.
2547         (sparc_analyze_prologue): Adjust PC past stack probing
2548         sequence if necessary.
2549
2550 2007-04-10  Andreas Schwab  <schwab@suse.de>
2551
2552         * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
2553         register.
2554
2555 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
2556
2557         * breakpoint.c (gdb_breakpoint_query): Really return an
2558         enum gdb_rc.
2559         (gdb_breakpoint): Likewise.
2560         * thread.c (gdb_list_thread_ids): Likewise.
2561         (gdb_thread_select): Likewise.
2562         * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
2563         (mi_cmd_thread_list_ids): Remove bogus initialization.
2564
2565 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
2566
2567         * Makefile.in (SFILES): Remove hpacc-abi.c.
2568         (COMMON_OBS): Remove hpacc-abi.o.
2569         (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
2570         (hpacc-abi.o, hpread.o): Delete rules.
2571         * somread.c: Delete extern declarations from hpread.c.
2572         (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
2573         (som_symfile_finish): Do not call hpread_symfile_finish.
2574         (som_symfile_init): Do not call hpread_symfile_init.
2575         * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
2576         * config/pa/hppahpux.mt (TDEPFILES): Likewise.
2577         * hpacc-abi.c, hpread.c: Deleted.
2578
2579 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
2580
2581         * solib-svr4.c (enable_break): Simplify return value.
2582         (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
2583
2584 2007-04-10  Andreas Schwab  <schwab@suse.de>
2585
2586         * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
2587         l_ld_size, l_next_size, l_prev_size, l_name_size.
2588
2589         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
2590         to extract addresses from link map.
2591         (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
2592         (LM_NEXT): Likewise.
2593         (LM_NAME): Likewise.
2594         (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
2595         (elf_locate_base): Likewise.
2596         (open_symbol_file_object): Likewise.
2597         (svr4_fetch_objfile_link_map): Likewise.
2598         (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
2599         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
2600         l_ld_size.
2601         (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
2602         (svr4_lp64_fetch_link_map_offsets): Likewise.
2603
2604         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
2605         removed members.  Set l_ld_offset to -1 if not present.
2606
2607 2007-04-08  Vladimir Prus  <vladimir@codesourcery.com>
2608         
2609         Pass stderr of program run with "target remote |"
2610         via gdb_stderr.
2611         * serial.c (serial_open): Set error_fd to -1.
2612         * serial.h (struct serial): New field error_fd.
2613         (struct serial_opts): New field avail.
2614         * ser-pipe.c (pipe_open): Create another pair
2615         of sockets.  Pass stderr to gdb.
2616         * ser-mingw.c (pipe_windows_open): Pass
2617         PEX_STDERR_TO_PIPE to pex_run.  Initialize
2618         sd->error_fd.
2619         (pipe_avail): New.
2620         (_initialize_ser_windows): Hook pipe_avail.
2621         * ser-base.c (generic_readchar): Check if there's
2622         anything in stderr channel and route that to gdb_stderr.
2623
2624 2007-04-03  Pedro Alves  <pedro_alves@portugalmail.pt>
2625
2626         * dbxread.c (read_ofile_symtab): Move current_objfile
2627         clearing to after end_stabs.
2628
2629 2007-04-01  Andreas Schwab  <schwab@suse.de>
2630
2631         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
2632         gdbarch instead of current_gdbarch.
2633
2634 2007-04-01  Vladimir Prus  <vladimir@codesourcery.com>
2635
2636         * varobj.c (varobj_create): Keep varobj value
2637         NULL when evaluating the type.
2638         
2639 2007-03-31  Pedro Alves  <pedro_alves@portugalmail.pt>
2640
2641         * NEWS: Mention new Windows CE support.
2642
2643 2007-03-30  Pedro Alves  <pedro_alves@portugalmail.pt>
2644
2645         * configure.tgt: Move mips*-*-pe and sh*-*-pe to 
2646         the obsoletion stanza.
2647         * NEWS: Mention deleted targets.
2648
2649         * config/sh/tm-wince.h: Remove.
2650         * config/sh/wince.mt: Remove.
2651         * config/mips/tm-wince.h: Remove.
2652         * config/mips/wince.mt: Remove.
2653
2654         * wince.c: Remove.
2655         * wince-stub.c: Remove.
2656         * wince-stub.h: Remove.
2657         * Makefile.in (wince.o): Remove rule.
2658         (wince-stub.o): Likewise.
2659
2660         * mips-tdep.c (mips_next_pc): Make static.
2661         * mips-tdep.h (mips_next_pc): Remove declaration.
2662         * arm-tdep.c (arm_pc_is_thumb): Make static.
2663         (thumb_get_next_pc): Likewise.
2664         (arm_get_next_pc): Likewise.
2665         * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
2666         (arm_pc_is_thumb): Likewise.
2667         (thumb_get_next_pc): Likewise.
2668         (arm_get_next_pc): Likewise.
2669
2670 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
2671
2672         * MAINTAINERS: Remove d10v entry.
2673         * Makefile.in (SFILES): Remove dwarfread.c.
2674         (COMMON_OBS): Remove dwarfread.o.
2675         (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
2676         (remote-est.o, rom68k-rom.o): Delete.
2677         * NEWS: Mention removal of d10v, target abug, target cpu32bug,
2678         target est, target rom68k, and DWARF 1.
2679         * configure.tgt: Mark d10v as removed.
2680         * dwarf2read.c: Doc update.
2681         * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
2682         and lnsize.
2683         (elf_locate_sections): Do not set them.
2684         (elf_symfile_read): Do not call dwarf_build_psymtabs.
2685         * symfile.h (dwarf_build_psymtabs): Delete prototype.
2686         * config/m68k/monitor.mt (TDEPFILES): Prune.
2687         * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
2688         remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
2689
2690 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
2691
2692         * doublest.c (convert_floatformat_to_doublest): Use
2693         floatformat_classify.
2694         (floatformat_is_nan): Rename to...
2695         (floatformat_classify): ...this.  Return more information.
2696         * doublest.h (enum float_kind): New.
2697         (floatformat_is_nan): Replace prototype...
2698         (floatformat_classify): ...with this one.
2699         * valprint.c (print_floating): Use floatformat_classify.  Handle
2700         infinity.
2701
2702 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
2703
2704         * README: Mention ISO C library requirement.
2705
2706 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
2707
2708         * Makefile.in (SFILES): Remove nlmread.c.
2709         (COMMON_OBS): Remove nlmread.o.
2710         (nlmread.o): Delete rule.
2711         * README: Delete reference to remote-st.c.
2712         * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
2713         * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
2714         GDB_OSABI_LYNXOS.
2715         * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
2716         (_initialize_i386_tdep): Do not reference them.
2717         * nlmread.c: Delete file.
2718         * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
2719         * target.c: Doc update.
2720         * thread.c: Delete commented include.
2721         * config/alpha/tm-alpha.h: Doc update.
2722
2723 2007-03-30  Chris Dearman  <chris@mips.com>
2724
2725         * utils.c (string_to_core_addr): Comment typo.
2726
2727 2007-03-30  Chris Dearman  <chris@mips.com>
2728
2729         * mips-tdep.c: Comment typo.
2730
2731 2007-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
2732
2733         * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
2734         * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
2735         * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
2736         * config/powerpc/nm-ppc64-linux.h: Remove file.
2737         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
2738         * inferior.h (PTRACE_ARG3_TYPE): Do not define.
2739         (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
2740         * infptrace.c (call_ptrace): Likewise.
2741         * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
2742         (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
2743         and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
2744         (store_register): Likewise.
2745
2746 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
2747
2748         * Makefile.in (varobj.o): Add missing dependency.
2749
2750 2007-03-29  Michael Snyder  <msnyder@access-company.com>
2751
2752         * MAINTAINERS: Update my email address.
2753
2754 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
2755
2756         Add support for exception handling with multiple versions of
2757         the Ada runtime:
2758         * ada-lang.c: Update general comments on how Ada exception catchpoints
2759         are implemented.
2760         (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
2761         (__gnat_raise_nodefer_with_msg): Delete.
2762         (ada_unhandled_exception_name_addr_ftype): New type.
2763         (exception_support_info): New type.
2764         (ada_unhandled_exception_name_addr): Add forward declaration.
2765         (ada_unhandled_exception_name_addr_from_raise): Likewise.
2766         (default_exception_support_info): New constant.
2767         (exception_support_info_fallback): Likewise.
2768         (exception_info): New global variable.
2769         (ada_exception_support_info_sniffer): New function.
2770         (ada_executable_changed_observer): Likewise.
2771         (ada_unhandled_exception_name_addr_from_raise): Renamed from
2772         ada_unhandled_exception_name_addr.
2773         (ada_unhandled_exception_name_addr): Reimplement to match the
2774         latest Ada runtime implementation.
2775         (error_breakpoint_runtime_sym_not_found): Delete.
2776         (ada_exception_sym_name): Get the exception sym name from
2777         exception_info rather than hardcoding it.
2778         (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
2779         Update error handling.
2780         * Makefile.in (ada-lang.o): Add dependency on observer.h.
2781
2782 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
2783
2784         * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
2785         (remote-st.o, uw-thread.o): Delete.
2786         (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
2787         * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
2788         i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
2789         i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
2790         i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
2791         i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
2792         rs6000-*-lynxos* to an obsoletion stanza.
2793         * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
2794         i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
2795         and rs6000-*-lynxos* to an obsoletion stanza.  Do not mention
2796         i[34567]86-*-netware*.
2797         * NEWS: Mention deleted targets.
2798
2799         * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
2800         uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
2801         config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
2802         config/i386/i386v4.mh, config/i386/i386v42mp.mh,
2803         config/i386/ncr3000.mh, config/i386/ncr3000.mt,
2804         config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
2805         config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
2806         config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
2807         config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
2808         config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
2809         config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
2810         config/rs6000/tm-rs6000ly.h: Delete files.
2811
2812 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
2813
2814         * defs.h (deprecated_registers_changed_hook): Delete declaration.
2815         * interps.c (clear_interpreter_hooks): Do not clear
2816         deprecated_registers_changed_hook.
2817         * regcache.c (registers_changed): Do not call it.
2818         * top.c (deprecated_registers_changed_hook): Do not define it.
2819         * mi/mi-interp.c (mi_command_loop): Do not clear it.
2820         * tui/tui-hooks.c (tui_install_hooks): Do not install it.
2821         (tui_remove_hooks): Do not remove it.
2822         (tui_selected_frame_level_changed_hook): Check for negative level.
2823         Use get_selected_frame.
2824         (tui_registers_changed_hook): Deleted.
2825
2826 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
2827
2828         * stabsread.c (add_undefined_type): Add extra parameter.
2829         Now handles nameless types separately.
2830         (struct nat): New type.
2831         (noname_undefs, noname_undefs_allocated, noname_undefs_length):
2832         New static variables.
2833         (read_type): Update calls to add_undefined_type.
2834         (add_undefined_type_noname): New function.
2835         (add_undefined_type_1): Renames from add_undefined_type.
2836         (cleanup_undefined_types_noname): New function.
2837         (cleanup_undefined_types_1): Renames cleanup_undefined_types.
2838         (cleanup_undefined_types): New handles nameless types separately.
2839         (_initialize_stabsread): Initialize our new static constants.
2840
2841 2007-03-29  Denis Pilat  <denis.pilat@st.com>
2842
2843         * configure.ac: Test for signal.h.
2844         * configure, config.in: Regenerate.
2845
2846 2007-03-29  Denis Pilat  <denis.pilat@st.com>
2847
2848         * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
2849         * infrun.c (normal_stop): Remove MI specific frame printing treatment.
2850
2851 2007-03-29  Pedro Alves  <pedro_alves@portugalmail.pt>
2852
2853         * arm-wince-tdep.c: New.
2854         * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
2855         (MT_CFLAGS): Delete.
2856         (TM_CLIBS): Delete.
2857         (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
2858         solib-legacy.o, solib-svr4.o, and remove wince.o.
2859         * configure.tgt (arm*-*-mingw32ce*): Add.
2860         * signals/signals.c [HAVE_SIGNAL_H]: Check.
2861         (do_target_signal_to_host): Silence 'not used' warning.
2862         * config/arm/tm-wince.h: Remove.
2863
2864 2007-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
2865
2866         * arch-utils.c (legacy_pc_in_sigtramp): Remove.
2867         * arch-utils.h (legacy_pc_in_sigtramp): Remove.
2868
2869         * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
2870         * config/ia64/tm-linux.h: Remove file.
2871         * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
2872         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
2873         legacy_pc_in_sigtramp.
2874         (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
2875         * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
2876         Remove func_name argument.
2877         (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
2878
2879         * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
2880         * target.c (update_current_target): Add to_have_steppable_watchpoint.
2881         * target.h (struct target_ops):  Add to_have_steppable_watchpoint.
2882         (HAVE_STEPPABLE_WATCHPOINT): Define.
2883
2884         * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
2885         * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
2886         CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
2887         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
2888         STOPPED_BY_WATCHPOINT, target_stopped_data_address,
2889         target_insert_watchpoint, target_remove_watchpoint): Remove.
2890         (FETCH_INFERIOR_REGISTERS): Define.
2891         * ia64-linux-nat.c (ia64_register_addr): Make static.
2892         (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2893         (ia64_linux_insert_watchpoint): Make static.  Remove ptid_p argument.
2894         (ia64_linux_remove_watchpoint): Likewise.  Add type argument.
2895         (ia64_linux_stopped_data_address): Make static.  Add target_ops.
2896         (ia64_linux_stopped_by_watchpoint): Make static.
2897         (ia64_linux_can_use_hw_breakpoint): New function.
2898         (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
2899         (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
2900         (_initialize_ia64_linux_nat): Install register and watchpoint ops.
2901
2902 2007-03-28  Pedro Alves  <pedro_alves@portugalmail.pt>
2903
2904         * linespec.c: Include language.h.
2905         (find_methods): Add language parameter.  Call
2906         lookup_symbol_in_language.  Pass language down.
2907         (add_matching_methods): Likewise.  Call
2908         lookup_symbol_in_language.
2909         (add_constructors): Likewise.
2910         (find_method): Pass sym_class to collect_methods.
2911         (collect_methods): Add sym_class parameter.  Pass language
2912         down.
2913         * symtab.c (lookup_symbol): Rename to ...
2914         (lookup_symbol_in_language): ... this.  Add language
2915         parameter.  Use passed language instead of current_language.
2916         (lookup_symbol): New as wrapper around
2917         lookup_symbol_in_language.
2918         (lookup_symbol_aux): Add language parameter.  Use passed
2919         language instead of current_language.
2920         (search_symbols): Indent.
2921         * symtab.h (enum language): Forward declare.
2922         (lookup_symbol_in_language): Declare.
2923         (lookup_symbol): Update description.
2924         * ada-lang.h (lookup_symbol_in_language): Remove declaration.
2925         * ada-lang.c (restore_language): Remove.
2926         (lookup_symbol_in_language): Remove.
2927
2928 2007-03-27  Pedro Alves  <pedro_alves@portugalmail.pt>
2929
2930         * breakpoint.c (bpstat_num): Add int *num parameter.
2931         * breakpoint.h (bpstat_num): Likewise.
2932         * infcmd.c (continue_command): Adjust to new bpstat_num
2933         interface.
2934         (program_info): Likewise.
2935
2936 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
2937
2938         * config/sh/tm-sh.h: Remove file.
2939         * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
2940         * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
2941         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2942         * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
2943
2944 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
2945
2946         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
2947         DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
2948         * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
2949         DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
2950         * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
2951         sequence if target_shortname is "remote".
2952
2953 2007-03-27  Anton Blanchard  <anton@samba.org>
2954
2955         * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
2956         instead of wordsize when looking for the LR in a stack frame.
2957
2958 2007-03-27  Andreas Schwab  <schwab@suse.de>
2959             Daniel Jacobowitz  <dan@codesourcery.com>
2960
2961         * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
2962         (dwarf2_frame_adjust_regnum): ...this.  Make static.  Add eh_frame_p
2963         argument.  Update all callers.
2964         (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
2965         (dwarf2_frame_set_eh_frame_regnum): Rename to...
2966         (dwarf2_frame_set_adjust_regnum): ...this.  Update argument type.
2967         * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
2968         (dwarf2_frame_set_adjust_regnum): ...this.
2969         (dwarf2_frame_eh_frame_regnum): Delete prototype.
2970         * rs6000-tdep.c: Include "dwarf2-frame.h".
2971         (rs6000_adjust_frame_regnum): Define.
2972         (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
2973         Register rs6000_adjust_frame_regnum.
2974
2975         * Makefile.in (rs6000-tdep.o): Update dependencies.
2976
2977 2007-03-27  Brooks Moses  <brooks.moses@codesourcery.com>
2978
2979         * Makefile.in: Add support for a "pdf" target.
2980
2981 2007-03-27  Daniel Jacobowitz  <dan@codesourcery.com>
2982
2983         * amd64-tdep.c (amd64_init_frame_cache): New function.
2984         (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
2985
2986 2007-03-26  Nigel Stephens  <nigel@mips.com>
2987             Maciej W. Rozycki  <macro@mips.com>
2988
2989         * ui-out.c (ui_out_field_core_addr): Truncate address to
2990         TARGET_ADDR_BIT size before printing.
2991
2992 2007-03-22  Nigel Stephens  <nigel@mips.com>
2993             Maciej W. Rozycki  <macro@mips.com>
2994
2995         * remote-mips.c (mips_xfer_memory): Update prototype.
2996
2997 2007-03-22  Joel Brobecker  <brobecker@adacore.com>
2998
2999         * symfile.h: #include "symtab.h"
3000
3001 2007-03-22  Denis Pilat  <denis.pilat@st.com>
3002
3003         * utils.c (pagination_on_command, pagination_off_command):
3004         Remove useless prototypes.
3005
3006 2007-03-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3007
3008         Fix PR pascal/2232.
3009         * p-valprint.c (pascal_object_print_value): Use type_name_no_tag 
3010         instead of TYPE_NAME for object base class name.
3011
3012
3013 2007-03-19  Kevin Buettner  <kevinb@redhat.com>
3014
3015         * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
3016         Specify frame type in calls to frame_func_unwind().
3017
3018 2007-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
3019
3020         * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
3021         (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
3022         (refine_prologue_limit): Delete.
3023         (skip_prologue): Don't call it.  Use extract_unsigned_integer.
3024         Assume lim_pc is set.  Correct check for incomplete prologues.
3025         Do not skip clobbers of the frame pointer.
3026         * symtab.c (skip_prologue_using_sal): Fail if there is only one
3027         sal.
3028
3029 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
3030
3031         * frame.c (frame_pop): Check to see whether there's a frame to
3032         which we can pop first.
3033
3034 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
3035
3036         * MAINTAINERS (Write After Approval): Add myself.
3037
3038 2007-03-09  Markus Deuling  <deuling@de.ibm.com>
3039
3040         * infrun.c (breakpoints_failed): Remove unnecessary variable.
3041         (handle_inferior_event): Remove unnecessary braces.
3042         * breakpoint.c (bpstat_what): Remove wrong comment.
3043
3044 2007-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
3045
3046         * spu-tdep.c (spu_in_function_epilogue_p): New function.
3047         (spu_gdbarch_init): Install it.
3048
3049 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
3050
3051         * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
3052         object types, not 0.
3053
3054 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
3055
3056         * spu-tdep.c (spu_frame_align): New function.
3057         (spu_gdbarch_init): Install it.  Set call dummy location to ON_STACK.
3058
3059 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
3060
3061         * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
3062         (spu_software_single_step): Likewise.
3063         (spu_read_pc, spu_write_pc): New functions.
3064         (spu_gdbarch_init): Install them.
3065
3066 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
3067
3068         * cli/cli-dump.c (struct callback_data): load_offset needs to 
3069         have signed long type.
3070
3071 2007-03-07  Joel Brobecker  <brobecker@adacore.com>
3072
3073         * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
3074         Revert the previous change that had some unexpected side-effects
3075         on mips32.
3076         (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
3077         function to get the address of the calling instruction.
3078
3079 2007-03-07  Denis Pilat  <denis.pilat@st.com>
3080
3081         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
3082         get_selected_frame by deprecated_safe_get_selected_frame.
3083
3084 2007-03-02  Mark Kettenis  <kettenis@gnu.org>
3085
3086         * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
3087         "gdb_string.h".  Don't include "nbsd-tdep.h".
3088         (SIZEOF_STRUCT_REG): Remove.
3089         (SHNBSD_SIZEOF_GREGS): New.
3090         (shnbsd_supply_gregset, shnbsd_collect_gregset)
3091         (shnbsd_regset_from_core_section): New functions.
3092         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
3093         (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
3094         shnbsd_supply_gregset, shnbsd_collect_gregset.
3095         (shnbsd_gregset): New variable.
3096         (shnbsd_init_abi): Set regset_from_core_section.
3097         (GDB_OSABI_NETBSD_CORE): New define.
3098         (shnbsd_core_osabi_sniffer): New function.
3099         (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
3100         * Makefile.in (shnbsd-tdep.o): Update dependencies.
3101         * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
3102         nbsd-tdep.o.
3103         * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
3104
3105 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
3106
3107         * gdbtypes.c (replace_type): Fix typo that caused us to not update
3108         length of the types referenced by the new type CV ring.
3109
3110 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
3111
3112         * frame.c (frame_pop, frame_observer_target_changed): Call
3113         reinit_frame_cache.
3114         (flush_cached_frames): Rename to reinit_frame_cache and delete
3115         old implementation.
3116         * frame.h (flush_cached_frames): Delete prototype and update comment.
3117
3118         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
3119         reinit_frame_cache instead of flush_cached_frames.  Do not call
3120         select_frame after reinit_frame_cache.
3121         * corelow.c (core_open): Likewise.
3122         * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
3123         * infrun.c (prepare_to_proceed, context_switch)
3124         (handle_inferior_event): Likewise.
3125         * linux-fork.c (fork_load_infrun_state): Likewise.
3126         * ocd.c (ocd_start_remote): Likewise.
3127         * remote-e7000.c (e7000_start_remote): Likewise.
3128         * remote-mips.c (device): Likewise.
3129         * thread.c (switch_to_thread): Likewise.
3130         * tracepoint.c (finish_tfind_command): Likewise.
3131         * gdbarch.c: Regenerated.
3132
3133 2007-02-28  Jerome Guitton  <guitton@adacore.com>
3134             Joel Brobecker  <brobecker@adacore.com>
3135
3136         * gdbtypes.c (check_typedef): Do not replace stub type if
3137         the resolved type is not defined in the same objfile.
3138
3139 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
3140
3141         * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
3142
3143 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
3144
3145         * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
3146         symbol for Ada units when the symbol is defined using 't' rather
3147         than 'Tt' as symbol descriptor.
3148
3149 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
3150
3151         * config/mips/tm-nbsd.h: Delete file.
3152         * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
3153         * config/sh/tm-nbsd.h: Delete file.
3154         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
3155
3156 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
3157
3158         * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
3159         unused WRONG_PARAM value since it was recently deleted.
3160
3161 2007-02-28  Vladimir Prus  <vladimir@codesourcery.com>
3162
3163         * varobj.c (varobj_update): Free temporary vectors.
3164
3165 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
3166
3167         * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
3168         * config/powerpc/tm-linux.h: Delete file.
3169         * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
3170         (PROCESS_LINENUMBER_HOOK): Do not undefine.
3171         (TEXT_SEGMENT_BASE): Do not redefine.
3172         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
3173         from config/rs6000/tm-rs6000.h.
3174         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
3175         * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
3176         (TEXT_SEGMENT_BASE): Remove.
3177         (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
3178         (rs6000_in_solib_return_trampoline): Remove.
3179         (SKIP_TRAMPOLINE_CODE): Remove.
3180         (rs6000_skip_trampoline_code): Remove.
3181         (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
3182         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
3183         (FP0_REGNUM): Remove.
3184         (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
3185         (rs6000_set_host_arch_hook): Remove.
3186         * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
3187         (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
3188         * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
3189         * rs6000-aix-tdep.c: Include "ppc-tdep.h".
3190         (rs6000_aix_init_osabi): Set text_segment_base tdep field.
3191         * rs6000-nat.c: Include "rs6000-tdep.h".
3192         (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
3193         (set_host_arch): Rename to ...
3194         (rs6000_create_inferior): ... this.  Make public.
3195         (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
3196         * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
3197         (rs6000_create_inferior): Remove.
3198         (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
3199         (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
3200         set_gdbarch_in_solib_return_trampoline, and
3201         set_gdbarch_skip_trampoline_code.
3202         * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
3203         from config/rs6000/tm-rs6000.h.
3204
3205 2007-02-27  Joel Brobecker  <brobecker@adacore.com>
3206
3207         * buildsym.c (record_producer): Do nothing if no producer is provided.
3208
3209 2007-02-27  Nick Roberts  <nickrob@snap.net.nz>
3210
3211         * varobj.c (varobj_update): Remove unused local.  Use gdb_assert
3212         to check changelist is non-NULL.  Call error if the frontend tries
3213         to update a non-root variable.
3214
3215         * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
3216
3217 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
3218
3219         * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
3220         (dwarf2_frame_sniffer): Update.
3221         (dwarf2_signal_frame_this_id): New function.
3222         (dwarf2_signal_frame_unwind): Use it.
3223         (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
3224         * frame.c (frame_func_unwind): Add this_type argument.
3225         (get_frame_func): Update.
3226         (frame_unwind_address_in_block): Add this_type argument and check it.
3227         Fix a typo.
3228         (get_frame_address_in_block): Update.
3229         * frame.h (enum frame_type): Move higher in the file.
3230         (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
3231         argument.
3232
3233         * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
3234         arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
3235         hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
3236         libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
3237         m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
3238         mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
3239         score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
3240         sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
3241         xstormy16-tdep.c, xtensa-tdep.c: Update calls to
3242         frame_func_unwind and frame_unwind_address_in_block to specify
3243         the frame type.  Use frame_unwind_address_in_block instead of
3244         frame_pc_unwind in sniffers.
3245
3246 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
3247
3248         * frame.c (deprecated_selected_frame): Rename to...
3249         (selected_frame): ...this.  Make static.
3250         (get_selected_frame, select_frame): Update.
3251         * frame.h (deprected_select_frame): Delete.
3252         (deprecated_safe_get_selected_frame): Update comments.
3253
3254         * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
3255         infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
3256         tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
3257         parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
3258         tui/tui.c: Replace references to deprecated_selected_frame.
3259
3260 2007-02-27  Fred Fish  <fnf@specifix.com>
3261
3262         * rs6000-tdep.c (skip_prologue): Recognize addi instructions that 
3263         directly decrement the stack pointer, accumulate their operand into 
3264         the stack offset, and mark the function as not being frameless.
3265
3266 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
3267
3268         * arch-utils.c (selected_byte_order): New.
3269         * arch-utils.h (selected_byte_order): New prototype.
3270         * remote-sim.c (gdbsim_open): Use selected_byte_order.
3271
3272 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
3273
3274         * symfile.c (place_section): Check SEC_ALLOC.  Do not check VMA.
3275         (default_symfile_offsets): Check VMA here.  Update section VMAs.
3276
3277 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
3278
3279         * remote.c (init_remote_state): Add special handling for placeholder
3280         registers.
3281
3282 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
3283
3284         * Makefile.in (XMLFILES): Include $(TDEP_XML).
3285         (filenames_h): New variable.
3286         (clean): Clean up xml-builtin.c and stamp-xml.
3287         (arm-linux-nat.o): Update.
3288         * config/arm/linux.mh (TDEP_XML): Define.
3289         * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
3290         (arm_linux_has_wmmx_registers): New.
3291         (GET_THREAD_ID): Fix typo.
3292         (IWMMXT_REGS_SIZE): Define.
3293         (fetch_wmmx_regs, store_wmmx_regs): New.
3294         (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
3295         (arm_linux_store_inferior_registers): Use store_wmmx_regs.
3296         (super_xfer_partial, arm_linux_xfer_partial): New.
3297         (_initialize_arm_linux_nat): Use them.
3298         * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
3299         (xml_builtin_xfer_partial): New function.
3300         * xml-support.h (xml_builtin_xfer_partial): New prototype.
3301         * NEWS: Update mention of iWMMXt support.
3302
3303 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
3304
3305         * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
3306         if there are no FPA registers.
3307         (arm_dwarf_reg_to_regnum): New function.
3308         (arm_register_type, arm_register_name): Return minimal values for
3309         unsupported registers.
3310         (arm_register_sim_regno): Handle iWMMXt registers.
3311         (arm_gdbarch_init): Record missing FPA registers if indicated by
3312         a target description.  Recognize iWMMXt registers.  Only register
3313         "info float" for FPA.  Use ARM_NUM_REGS.  Register
3314         arm_dwarf_reg_to_regnum.
3315         * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
3316         constants.
3317         (struct gdbarch_tdep): Add have_fpa_registers.
3318         * features/xscale-iwmmxt.xml: Update capitalization.
3319         * regformats/arm-with-iwmmxt.dat: Regenerated.
3320
3321 2007-02-24  Kevin Buettner  <kevinb@redhat.com>
3322
3323         * NEWS (New targets): Add entry for the Toshiba Media Processor.
3324
3325 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
3326
3327         * MAINTAINERS (mep): New target.
3328
3329 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
3330
3331         From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
3332         Richard Sandiford:
3333         * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
3334         (mep-tdep.o): New rule.
3335         * configure.tgt (mep-*-*): New target.
3336         * mep-tdep.c: New file.
3337         * config/mep/mep.mt: New file.
3338
3339 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
3340
3341         * infrun.c (inferior_stop_reason, print_stop_reason): Remove
3342         BREAKPOINT_HIT and STOP_UNKNOWN.
3343
3344 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
3345
3346         * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT. 
3347
3348 2007-02-20  Joel Brobecker  <brobecker@adacore.com>
3349
3350         * gdb_expat.h (XMLCALL): Define if not already defined.
3351
3352 2007-02-20  Andreas Schwab  <schwab@suse.de>
3353
3354         * Makefile.in (symfile.o): Update dependencies.
3355
3356 2007-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
3357
3358         * MAINTAINERS: Disable -Werror for cris simulator.  Build
3359         sparc64-solaris2.10 instead of the broken sparc-elf.
3360         * solib-frv.c: Include "solib.h".
3361         * Makefile.in (solib-frv.o): Update.
3362         * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
3363         * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
3364         (xtensa_frame_this_id, xtensa_frame_prev_register)
3365         (xtensa_push_dummy_call): Use %p.
3366
3367 2007-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
3368
3369         * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
3370         ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
3371         sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
3372         * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
3373         (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
3374         (sparc-linux-tdep.o): Update.
3375
3376 2007-02-15  Maxim Grigoriev  <maxim2405@gmail.com>
3377
3378         * xtensa-tdep.h (xtensa_reg_mask_t): New.
3379         (xtensa_mask_t): Change mask field to be a separate array.
3380         * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
3381         (xtensa_pseudo_register_write, xtensa_unwind_pc)
3382         (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
3383         (xtensa_breakpoint_from_pc): Remove implicit type casting.
3384         * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
3385         (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
3386         (mask14, mask15): Rename to
3387         (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
3388         (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
3389         (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
3390         (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
3391         (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
3392         (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
3393         (xtensa_submask8, xtensa_submask9, xtensa_submask10)
3394         (xtensa_submask11, xtensa_submask12, xtensa_submask13)
3395         (xtensa_submask14, xtensa_submask15): New.
3396         (rmap): Follow strict aliasing rules doing static initialization.
3397
3398 2007-02-13  Daniel Jacobowitz  <dan@codesourcery.com>
3399
3400         * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
3401         handling from here...
3402         (tdesc_register_type): ...to here.
3403         * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
3404         * features/arm-core.xml: Use code_ptr and data_ptr.
3405
3406 2007-02-13  Denis Pilat  <denis.pilat@st.com>
3407
3408         * varobj.h (enum varobj_update_error): New enum.
3409         * varobj.c (struct varobj_root): Add is_valid member.
3410         (varobj_get_type): Check for invalid varobj.
3411         (varobj_get_attributes): Likewise.
3412         (variable_editable):Likewise.
3413         (varobj_update): Likewise.  Use varobj_update_error.
3414         (new_root_variable): Set root varobj as valid by default.
3415         (varobj_invalidate): New function.
3416         * symfile.c (clear_symtab_users): Use varobj_invalidate.
3417         * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
3418         Use varobj_update_error.
3419
3420 2007-02-12  Pierre Muller  <muller@ics.u-strasbg.fr>
3421
3422         Fix PR pascal/2223.
3423         * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
3424         Pascal language marker.
3425         * dwarf2read.c (set_cu_language): Likewise.
3426
3427 2007-02-12  Corinna Vinschen  <vinschen@redhat.com>
3428
3429         * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
3430         (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
3431         instead of target_terminal_init since inferior_ptid isn't set yet.
3432
3433 2007-02-10  Pedro Alves  <pedro_alves@portugalmail.pt>
3434
3435         * MAINTAINERS (Write After Approval): Add myself.
3436
3437 2007-02-09  Fred Fish  <fnf@specifix.com>
3438
3439         Based on work by Apple Computer, Inc.
3440         * event-top.c (async_request_quit): Call quit() whenever either
3441         quit_flag is set or immediate_quit is set.
3442
3443 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3444
3445         * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
3446         type to a pointer to const struct block.
3447         (ada_lookup_symbol_list): Don't cast away constness when calling
3448         remove_out_of_scope_renamings.
3449
3450 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3451
3452         * linux-nat.c (linux_nat_find_memory_regions): Don't check the
3453         address of 'filename'; it is always non null.
3454
3455 2007-02-09  Joel Brobecker  <brobecker@adacore.com>
3456
3457         * exec.c (add_to_section_table): Do not discard empty sections.
3458
3459 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
3460
3461         * features/Makefile, features/arm-with-iwmmxt.xml,
3462         features/gdbserver-regs.xsl, features/number-regs.xsl,
3463         features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
3464         * regformats/arm-with-iwmmxt.dat: Generate.
3465         * NEWS: Mention iWMMXt.
3466
3467 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
3468
3469         * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
3470         (xml-tdesc.o): Update.
3471         * xml-support.c: Add a comment.
3472         (gdb_xml_enums_boolean): New variable.
3473         (gdb_xml_parse_attr_enum): Use strcasecmp.
3474         * xml-support.h (gdb_xml_enums_boolean): Declare.
3475         * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
3476         next_regnum, and current_union.
3477         (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
3478         (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
3479         (field_attributes, union_children, reg_attributes, union_attributes)
3480         (vector_attributes, feature_attributes, feature_children): New.
3481         (target_children): Make static.  Add <feature>.
3482         (tdesc_elements): Make static.
3483         * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
3484         (struct tdesc_feature, tdesc_feature_p): New types.
3485         (struct target_desc): Add features member.
3486         (struct tdesc_arch_data, tdesc_data): New.
3487         (target_find_description): Clarify error message.  Warn about
3488         ignored register descriptions.
3489         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
3490         (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
3491         (tdesc_data_cleanup, tdesc_numbered_register)
3492         (tdesc_numbered_register_choices, tdesc_find_register)
3493         (tdesc_register_name, tdesc_register_type)
3494         (tdesc_remote_register_number, tdesc_register_reggroup_p)
3495         (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
3496         (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
3497         (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
3498         (tdesc_create_feature, tdesc_record_type): New.
3499         (free_target_description): Free features.
3500         (_initialize_target_descriptions): Initialize tdesc_data.
3501         * arch-utils.c (default_remote_register_number): New.
3502         * arch-utils.h (default_remote_register_number): New prototype.
3503         * target-descriptions.h (set_tdesc_pseudo_register_name)
3504         (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
3505         (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
3506         (tdesc_numbered_register, tdesc_numbered_register_choices)
3507         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
3508         (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
3509         (tdesc_create_reg): Declare.
3510         * gdbarch.sh (remote_register_number): New entry.
3511         * gdbarch.c, gdbarch.h: Regenerate.
3512         * remote.c (init_remote_state): Use gdbarch_remote_register_number.
3513         * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
3514
3515         * arm-tdep.c (arm_register_aliases): New.
3516         (arm_register_name_strings): Rename to...
3517         (arm_register_names): ...this.  Make const.  Delete the old version.
3518         (current_option, arm_register_byte): Delete.
3519         (set_disassembly_style): Simplify.  Do not adjust arm_register_names.
3520         (value_of_arm_user_reg): New.
3521         (arm_gdbarch_init): Verify any described registers.  Call
3522         tdesc_use_registers.  Don't use arm_register_byte.  Create aliases
3523         for standard register names.
3524         (_initialize_arm_tdep): Do not adjust arm_register_names.
3525         * user-regs.c (struct user_reg): Add baton member.
3526         (append_user_reg, user_reg_add_builtin, user_regs_init)
3527         (user_reg_add, value_of_user_reg): Use a baton for user
3528         register functions.
3529         * std-regs.c: Update.
3530         * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
3531         (user_reg_add): Add baton argument.
3532         * NEWS: Mention target description register support.
3533         * features/arm-core.xml, features/arm-fpa.xml: New.
3534         * eval.c (evaluate_subexp_standard): Allow ptype $register
3535         when the program is not running.
3536
3537 2007-02-09  Nick Roberts  <nickrob@snap.net.nz>
3538
3539         * mi/mi-cmd-var.c (mi_cmd_var_create):  Add value field.
3540
3541 2007-02-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3542
3543         * rs6000-tdep.c (gdb_print_insn_powerpc): Set
3544         info->disassembler_options to "any".
3545
3546 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
3547
3548         * varobj.c (install_new_value): Only call value_get_print_value
3549         if changeable.
3550
3551 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
3552
3553         Reported by timeless@gmail.com:
3554         * gdb/target.c (target_flash_erase): Do not return void value.
3555         (target_flash_done): Likewise.
3556         * gdb/cli/cli-cmds.c (source_command): Likewise.
3557
3558 2007-02-08  Fred Fish  <fnf@specifix.com>
3559
3560         Based on work by Apple Computer, Inc.
3561         * event-top.c (handle_sigint): Set quit_flag.
3562         (async_request_quit): Don't set quit_flag.  Avoid calling quit()
3563         if quit_flag has already been reset.
3564
3565 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
3566
3567         * ser-mingw.c (pipe_windows_close): Move variable initialization back
3568         up.
3569
3570 2007-02-08  Fred Fish  <fnf@specifix.com>
3571
3572         * defs.h (request_quit): Remove declaration.
3573         * utils.c (request_quit): Remove definition.
3574
3575 2007-02-08  Joel Brobecker  <brobecker@gnat.com>
3576             Jan Kratochvil  <jan.kratochvil@redhat.com>
3577             Daniel Jacobowitz  <dan@codesourcery.com>
3578
3579         * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
3580         (skip_prologue): Allow bl->blrl used by PIC code.
3581
3582 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
3583             Daniel Jacobowitz  <dan@codesourcery.com>
3584
3585         * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
3586         initialize tmp_obstack.
3587         * p-valprint.c (pascal_object_print_value_fields)
3588         (pascal_object_print_value): Likewise.
3589
3590 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
3591
3592         * features/feature_to_c.sh: Use %s to avoid problems with nawk.
3593
3594 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
3595
3596         * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
3597         * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
3598
3599 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
3600
3601         * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
3602         (xml_cache): New.
3603         (tdesc_parse_xml): Cache expanded descriptions.
3604
3605 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
3606
3607         * Makefile.in (XMLFILES): New.
3608         (COMMON_OBS): Add xml-builtin.o.
3609         (xml-builtin.c, stamp-xml): New rules.
3610         (xml-tdesc.o): Update.
3611         * features/feature_to_c.sh: New file.
3612         * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
3613         (struct gdb_xml_parser): Add dtd_name and is_xinclude.
3614         (gdb_xml_start_element): Initialize scope after possibly reallocating
3615         scopes.  Move cleanup later.  Handle the XInclude description
3616         specially.
3617         (gdb_xml_end_element): Only parse the body if there is a current element.
3618         Call XML_DefaultCurrent if there is no element.
3619         (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
3620         (struct xinclude_parsing_data, xinclude_start_include)
3621         (xinclude_end_include, xml_xinclude_default)
3622         (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
3623         (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
3624         (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
3625         * xml-support.h (xml_fetch_another, xml_process_xincludes)
3626         (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
3627         * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument.  Expand
3628         XInclude directives.  Use the compiled in DTD.
3629         (fetch_xml_from_file): Add baton argument.  Treat it as a containing
3630         directory name.  Do not warn here.
3631         (file_read_description_xml): Update call.  Warn here instead.  Pass
3632         a dirname as baton.
3633         (fetch_available_features_from_target): New.
3634         (target_read_description_xml): Use it.
3635         * features/gdb-target.dtd: Add copyright notice.  Use xinclude.dtd
3636         to handle XInclude.
3637         * features/xinclude.dtd: New file.
3638
3639 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
3640
3641         * linux-thread-db.c (check_for_thread_db): Return early if we have
3642         no libthread_db support.
3643
3644 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
3645
3646         * mi/mi-parse.h: Include <sys/time.h>.
3647
3648 2007-02-05  Nick Roberts  <nickrob@snap.net.nz>
3649
3650         * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
3651         instead of print_variable_value to print values.
3652
3653 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
3654
3655         * mi/mi-main.c: Numerous formatting changes.
3656         (mi_cmd_data_write_register_values): Replace clause inadvertantly
3657         removed in my previous change.
3658
3659 2007-02-03   Eli Zaretskii  <eliz@gnu.org>
3660
3661         * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
3662         Use 1000000L instead of 1000000.
3663
3664 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
3665
3666             Based on work by Apple Computer, Inc.
3667
3668         * configure.ac: Test for sys/resource.h and getrusage.
3669         * configure, config.in: Regenerate.
3670
3671         * mi/mi-main.c: Include <sys/resource.h> if present.
3672         (rusage): Declare if HAVE_GETRUSAGE.
3673         (current_command_ts, do_timings): New static variables.
3674         (timestamp, print_diff_now, print_diff, timeval_diff):
3675         New static timing functions.
3676         (mi_cmd_enable_timings): New function for new MI command.
3677         (captured_mi_execute_command, mi_execute_async_cli_command): 
3678         Call timing functions.
3679
3680         * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
3681         -enable-timings.
3682
3683         * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
3684
3685         * mi/mi-parse.h: (mi_timestamp): New structure.
3686         (mi_parse): Add mi_timestamp* member.
3687
3688 2007-02-02  Denis Pilat  <denis.pilat@st.com>
3689
3690         * thread.c (make_cleanup_restore_current_thread): New function.
3691         (info_threads_command): Use of make_cleanup_restore_current_thread
3692         to restore the current thread and the selected frame.
3693         (restore_selected_frame): New function.
3694         (struct current_thread_cleanup): Add frame_id field.
3695         (do_restore_current_thread_cleanup): Add restoring of the selected
3696         frame.
3697         (make_cleanup_restore_current_thread): Likewise.
3698         (thread_apply_all_command): backup the selected frame while 
3699         entering the function and restore it at exit.
3700         (thread_apply_command): Likewise.
3701
3702 2007-02-02  Denis Pilat  <denis.pilat@st.com>
3703
3704         * MAINTAINERS (Write After Approval): Add myself to the list.
3705
3706 2007-02-01  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3707
3708         * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
3709         (m32r_store_register): Ditto.
3710
3711 2007-01-30  Vladimir Prus  <vladimir@codesourcery.com>
3712
3713         * ser-mingw.c (pipe_windows_open)
3714         (pipe_windows_read, pipe_windows_write): Declare
3715         variables at the top of the function.
3716
3717 2007-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
3718
3719         * doublest.c (floatformat_from_length): Use the right element from
3720         gdbarch floatformats.
3721         (floatformat_from_type, extract_typed_floating)
3722         (store_typed_floating): Likewise.
3723         * doublest.h: Remove declarations for undefined floatformat arrays.
3724         * gdbarch.sh (float_format, double_format, long_double_format): Change
3725         to pairs.
3726         (pformat): Update for pairs.
3727         * gdbarch.c, gdbarch.h: Regenerated.
3728         * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
3729         (floatformats_ieee_double_littlebyte_bigword)
3730         (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
3731         (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
3732         (floatformats_vax_d): New variables.
3733         (builtin_type_ieee_single, builtin_type_ieee_double)
3734         (builtin_type_arm_ext, builtin_type_ia64_spill)
3735         (builtin_type_ia64_quad): Replace arrays with individual types.
3736         (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
3737         (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
3738         (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
3739         (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
3740         (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
3741         (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
3742         (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
3743         unused and endian-specific types.
3744         (recursive_dump_type): Update for floatformat pairs.
3745         (build_flt): Move higher.  Handle bit == -1.  Take a floatformat pair.
3746         (build_gdbtypes): Use build_flt.
3747         (_initialize_gdbtypes): Update set of initialized types.
3748         * gdbtypes.h: Update declarations to match gdbtypes.c.
3749         (struct main_type): Store a pointer to two floatformats.
3750         * arch-utils.c (default_float_format, default_double_format): Delete.
3751         * arch-utils.h (default_float_format, default_double_format): Delete.
3752
3753         * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
3754         ia64-tdep.c,  iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
3755         mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
3756         sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
3757         vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
3758
3759 2007-01-29  Joel Brobecker  <brobecker@adacore.com>
3760
3761         * target.c (maintenance_print_target_stack): New function.
3762         (initialize_targets): Add new "maintenance print target-stack"
3763         command.
3764
3765 2007-01-28  Mark Kettenis  <kettenis@gnu.org>
3766
3767         * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
3768
3769 2007-01-27  Daniel Jacobowitz  <dan@codesourcery.com>
3770
3771         * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
3772         (struct dwarf2_loclist_baton): Likewise.
3773
3774 2007-01-27  Eli Zaretskii  <eliz@gnu.org>
3775
3776         * cli/cli-script.c: Include breakpoint.h.
3777         (build_command_line): Require arguments only for if and while
3778         commands.
3779         (get_command_line, execute_user_command, execute_control_command):
3780         Fix wording of warning messages.
3781         (print_command_lines): Print breakpoint commands.
3782         (execute_control_command): Call commands_from_control_command to
3783         handle the `commands' command inside a body of a flow-control
3784         command.
3785         (read_next_line): Recognize the `commands' command and build a
3786         command line structure for it.
3787         (recurse_read_control_structure, read_command_lines): Handle
3788         `commands' similarly to `if' and `while'.
3789
3790         * breakpoint.c (get_number_trailer): Document the special meaning
3791         of NULL as the first argument PP.
3792         (commands_from_control_command): New function.
3793
3794         * breakpoint.h (commands_from_control_command): Add prototype.
3795
3796         * defs.h (commands_control): New enumerated value for enum
3797         command_control_type.
3798
3799 2007-01-26  Joel Brobecker  <brobecker@adacore.com>
3800
3801         * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
3802         (ada_exception_sal): Update accordingly.
3803
3804 2007-01-26  Jan Kratochvil <jan.kratochvil@redhat.com>
3805
3806         * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
3807         * NEWS: Describe CHAR array vs. string identifcation rules.
3808
3809 2007-01-25  Paul Brook  <paul@codesourcery.com>
3810
3811         * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
3812
3813 2007-01-24  Jim Blandy  <jimb@codesourcery.com>
3814
3815         * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
3816         expression is empty, bother to return the 'optimized out' value we
3817         construct.  (Thanks to Carl Burch.)
3818
3819 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
3820
3821         * varobj.c (c_value_of_root, c_value_of_child)
3822         (cplus_describe_child): Don't call release_value.
3823
3824 2007-01-24  Thiemo Seufer  <ths@mips.com>
3825
3826         * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
3827         initialization.
3828
3829 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
3830
3831         Refactor getting children name, value and type access 
3832         for varobjs in C++.
3833         * varobj.c (get_type_deref): Remove.
3834         (adjust_value_for_child_access): New.
3835         (c_number_of_children): Use the above.
3836         (c_describe_child): Likewise.
3837         (enum accessibility): New.
3838         (match_accessibility): New function.
3839         (cplus_describe_child): New function.
3840         (cplus_name_of_child, cplus_value_of_child)
3841         (cplus_type_of_child): Reimplement in terms
3842         of cplus_describe_child.
3843         (cplus_number_of_children): Use 
3844         adjust_value_for_child_access.
3845         
3846 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
3847
3848         Fix computation of the 'editable' attribute and
3849         value changeability for for references.
3850         * varobj.c (get_value_type): New function.
3851         (c_variable_editable): Use get_value_type.
3852         (varobj_value_is_changeable): Likewise.
3853                 
3854 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
3855
3856         * source.c (find_and_open_source): Try rewriting the source
3857         path inside filename if dirname is NULL.
3858
3859 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
3860
3861         * dwarf2read.c (add_partial_symbol): Create an extra partial
3862         symbol in the VAR_DOMAIN for Ada structures, unions or enums.
3863         (new_symbol): Likewise for symbols.
3864
3865 2007-01-24  Nick Roberts  <nickrob@snap.net.nz>
3866
3867         * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
3868
3869 2007-01-23  Vladimir Prus  <vladimir@codesourcery.com>
3870         
3871         * value.c (value_primitive_field): Copy the full 'location' 
3872         contents, instead of assuming that copying ADDRESS will 
3873         bring over everything in the union.  Remove obsolete comment.
3874         
3875 2007-01-23  Masaki Muranaka  <monaka@monami-software.com>
3876
3877         * m32c-tdep.c (make_regs, m32c_analyze_prologue)
3878         (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
3879         (m32c_m16c_pointer_to_address): Separate code from declarations.
3880
3881 2007-01-23  Nick Hudson  <nick.hudson@dsl.pipex.com>
3882
3883         * target.c (update_current_target): Correct typo.
3884
3885 2007-01-22  Masaki Muranaka  <monaka@monami-software.com>
3886
3887         * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
3888         declaration.
3889
3890 2007-01-11  Andrew Cagney  <cagney@redhat.com>
3891             Daniel Jacobowitz  <dan@codesourcery.com>
3892             Jan Kratochvil  <jan.kratochvil@redhat.com>
3893
3894         * dwarf2-frame.c (execute_cfa_program): New support of
3895         `DW_CFA_GNU_negative_offset_extended'.
3896
3897 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
3898
3899         * NEWS: Mention flash support for "load" and new remote packets.
3900
3901 2007-01-21  Markus Deuling  <deuling@de.ibm.com>
3902
3903         * breakpoint.c (delete_command): Skip redundant loop iterations.
3904
3905 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
3906
3907         * gdbarch.sh (register_type): Update comment.
3908         * gdbarch.h: Regenerated.
3909         * arch-utils.c (generic_register_size): Call register_type.
3910         * ia64-tdep.c (ia64_extract_return_value): Likewise.
3911         * m32c-tdep.c (check_for_saved): Likewise.
3912         * mips-tdep.c (mips_print_register, print_gp_register_row)
3913         (mips_print_registers_info): Likewise.
3914         * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
3915         Likewise.
3916         * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
3917         (sh64_do_register, sh64_print_register)
3918         (sh64_media_print_registers_info): Likewise.
3919         * tui/tui-regs.c (tui_register_format): Likewise.
3920
3921 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
3922
3923         * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
3924
3925         * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
3926         (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
3927         * cp-support.c (make_symbol_overload_list_qualified): Likewise.
3928         * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
3929         (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
3930         (make_symbol_completion_list): Likewise.
3931
3932 2007-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3933             Daniel Jacobowitz  <dan@codesourcery.com>
3934
3935         * buildsym.c (end_symtab): Use preallocated symtab if available.
3936         Fill in SYMBOL_SYMTAB.
3937         * buildsym.h (struct subfile): Add symtab member.
3938         * dwarf2read.c (struct dwarf2_cu): Add line_header.
3939         (struct file_entry): Add symtab.
3940         (free_cu_line_header): New function.
3941         (read_file_scope): Use it.  Save line_header in the cu.  Process
3942         lines before DIEs.
3943         (add_file_name): Initialize new symtab member.
3944         (dwarf_decode_lines): Create symtabs for included files.
3945         (new_symbol): Set SYMBOL_SYMTAB.
3946         * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
3947         (search_symbols): Likewise.
3948         * symtab.h (struct symbol): Add symtab member.
3949         (SYMBOL_SYMTAB): Define.
3950
3951 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
3952
3953         * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
3954
3955 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
3956
3957         * arch-utils.c (show_endian): Correct reversed condition.
3958
3959 2007-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3960
3961         * MAINTAINERS (Write After Approval): Add myself.
3962
3963 2007-01-16  Daniel Jacobowitz  <dan@codesourcery.com>
3964             Vladimir Prus  <vladimir@codesourcery.com>
3965
3966         Fix 'selected frame' varobjs.
3967         * varobj.c (struct varobj): Remove the error field.
3968         (varobj_set_value): Don't check var->error.
3969         (install_new_value): Don't set var->error.
3970         (varobj_update): Always pass the new value
3971         of the root via install_new_value.
3972         (create_child): Don't set error field.
3973         (new_variable): Likewise.
3974         (c_value_of_root): Always reevaluate the value
3975         of selected frame varobjs in the selected frame.
3976         Don't call reinit_frame_cache.
3977
3978 2007-01-15  Joel Brobecker  <brobecker@adacore.com>
3979
3980         * source.c (_initialize_source): Improve the help text of
3981         the substitute-path commands.
3982
3983 2007-01-14  Mark Kettenis  <kettenis@gnu.org>
3984
3985         * frv-tdep.c (frv_gdbarch_init, frv_register_name)
3986         (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
3987         (frv_skip_prologue): Remove prototypes.
3988         (frv_adjust_breakpoint_address): Renamed from
3989         frv_gdbarch_adjust_breakpoint_address.
3990         (frv_gdbarch_init): Adjust.
3991
3992 2007-01-13  Mark Kettenis  <kettenis@gnu.org>
3993
3994         * gdbarch.sh (deprecated_extract_return_value)
3995         (deprecated_store_return_value): Remove.
3996         (extract_return_value, store_return_value): Remove default values.
3997         * gdbarch.c, gdbarch.h: Regenerate.
3998         * arch-utils.c, arch-utils.h (legacy_extract_return_value)
3999         (legacy_store_return_value): Remove.
4000         * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
4001         Remove.
4002
4003         * mi/mi-main.c: Remove obsolete comment.
4004
4005         * regcache.c, regcache.h (deprecated_register_bytes)
4006         (deprecated_read_register_bytes)
4007         (deprecated_write_register_bytes): Remove.
4008
4009         * frame.c (get_frame_register_bytes, put_frame_register_bytes):
4010         Don't forget to move destination pointer.
4011
4012 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
4013
4014         * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
4015
4016 2007-01-11  Ulrich Weigand  <uweigand@de.ibm.com>
4017
4018         * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
4019         past entry function with recent newlib.
4020
4021 2007-01-11  Vladimir Prus  <vladimir@codesourcery.com>
4022
4023         * gdb.texinfo (GDB/MI Variable Objects): Improve the 
4024         introduction.  Specify -var-update more exactly.
4025
4026 2007-01-11  Daniel Jacobowitz  <dan@codesourcery.com>
4027
4028         * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
4029
4030 2007-01-10  Jim Blandy  <jimb@codesourcery.com>
4031
4032         * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
4033         the Global Maintainers' invitation to be a global maintainer.
4034
4035 2007-01-10  Daniel Jacobowitz  <dan@codesourcery.com>
4036
4037         * infrun.c (singlestep_pc): New variable.
4038         (resume): Set singlestep_pc.
4039         (context_switch): Add a debugging message.  Flush the frame cache.
4040         (handle_inferior_event): Add debugging messages.  Handle thread
4041         hops when a software single step has completed.  Let context_switch
4042         handle flushing the frame cache.
4043
4044 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4045
4046         * NEWS: Mention target descriptions, "set tdesc filename",
4047         "unset tdesc filename", "show tdesc filename", and
4048         qXfer:features:read.
4049         * arch-utils.c (choose_architecture_for_target): New function.
4050         (gdbarch_info_fill): Call it.
4051         * target-descriptions.c (struct property): Make members non-const.
4052         (struct target_desc): Add arch member.
4053         (target_description_filename): New variable.
4054         (target_find_description): Try via XML first.
4055         (tdesc_architecture): New.
4056         (free_target_description, make_cleanup_free_target_description): New.
4057         (set_tdesc_property): Call xstrdup.
4058         (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
4059         (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
4060         (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
4061         (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
4062         * target-descriptions.h (tdesc_architecture)
4063         (make_cleanup_free_target_description, set_tdesc_architecture): New
4064         prototypes.
4065         * Makefile.in (SFILES): Add xml-tdesc.c.
4066         (COMMON_OBS): Add xml-tdesc.o.
4067         (target-descriptions.o): Update.
4068         (xml-tdesc.o): New rule.
4069         * xml-tdesc.c, xml-tdesc.h: New files.
4070         * remote.c (PACKET_qXfer_features): New enum.
4071         (remote_protocol_features): Add qXfer:features:read.
4072         (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
4073         (_initialize_remote): Register qXfer:features:read.
4074         * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
4075         * features/gdb-target.dtd: New file.
4076
4077 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4078
4079         * copyright.sh: Clarify error.
4080
4081 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
4082
4083         * symtab.c (matching_bfd_sections): Fix VMA matching for
4084         prelinked objects.
4085
4086 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
4087
4088         * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
4089         nested symbols.
4090
4091 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4092
4093         Updated copyright notices for most files.
4094
4095 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4096
4097         * copyright.sh (prunes): Add step-line.inp and step-line.c.
4098
4099 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4100
4101         * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
4102         exec_prefix.
4103         (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
4104         '${prefix}'.
4105         * configure, config.in: Regenerate.
4106         * defs.h (debug_file_directory): Declare.
4107         * main.c (captured_main): Canonicalize gdb_sysroot.  Assume
4108         TARGET_SYSTEM_ROOT is defined.  Initialize debug_file_directory and
4109         relocate it if DEBUGDIR_RELOCATABLE.
4110         * symfile.c (debug_file_directory): Make non-static.
4111         (find_separate_debug_file): Look for debug info for SYSROOT/PATH
4112         in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
4113         (_initialize_symfile): Don't initialize debug_file_directory here.
4114
4115 2007-01-09  Jim Blandy  <jimb@codesourcery.com>
4116
4117         * score-tdep.c (score_push_dummy_call): Don't mix declarations and
4118         statements.
4119
4120 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4121
4122         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
4123         frame_unwind_register to recurse.
4124         * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
4125         (alpha_heuristic_frame_prev_register): Likewise.
4126         * h8300-tdep.c (h8300_frame_prev_register): Likewise.
4127         * m32c-tdep.c (m32c_prev_register): Likewise.
4128         * frame.c (frame_register_unwind_location): Remove FIXME.
4129
4130 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4131             Eli Zaretskii  <eliz@gnu.org>
4132
4133         * copyright.sh: New file.
4134
4135 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4136
4137         * configure.ac: Check for XML_StopParser.
4138         * xml-support.c (gdb_xml_body_text): Check for an error.
4139         (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
4140         (gdb_xml_end_element_wrapper): Likewise.
4141         * config.in, configure: Regenerated.
4142
4143 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
4144
4145         * varobj.c (install_new_value): Always update print_value.
4146         (value_get_print_value): Immediately return NULL for missing
4147         values.
4148
4149 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
4150
4151         * configure.ac: Tighten pattern for extracting value of
4152         DEPRECATED_TM_FILE from the target makefile fragment.
4153         * configure: Regenerated.
4154
4155 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
4156
4157         * linux-nat.c (struct simple_pid_list): Add status.
4158         (add_to_pid_list): Record the PID's status.
4159         (linux_record_stopped_pid): Likewise.  Make static.
4160         (pull_pid_from_list): Return the saved status.
4161         (linux_nat_handle_extended): Deleted.
4162         (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
4163         Make static.  Handle non-SIGSTOP for a new thread's first signal.
4164         (flush_callback): Handle unexpected pending signals.
4165         (linux_nat_wait): Update calls to changed functions.
4166         * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
4167         Remove prototypes for newly static functions.
4168
4169 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
4170
4171         * gdbarch.sh (value_from_register): New gdbarch function.
4172         * gdbarch.c, gdbarch.h: Regenerate.
4173         * findvar.c (default_value_from_register): New function.
4174         (value_from_register): Use gdbarch_value_from_register.
4175         * value.h (default_value_from_register): Declare.
4176         * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
4177         spu_value_to_register): Remove.
4178         (spu_value_from_register): New function.
4179         (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
4180         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
4181         Call set_gdbarch_value_from_register.
4182         * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
4183         s390_value_to_register): Remove.
4184         (s390_value_from_register): New function.
4185         (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
4186         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
4187         Call set_gdbarch_value_from_register.
4188
4189 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
4190
4191         * NEWS: Add "set sysroot" and "show sysroot".
4192         * solib.c (solib_absolute_prefix): Delete.  Replace
4193         all uses with gdb_sysroot.
4194         (_initialize_solib): Add "set sysroot" and "show sysroot".
4195         Make "solib-absolute-prefix" an alias to it.
4196
4197 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
4198
4199         * frame.c (get_frame_register_bytes): New function.
4200         (put_frame_register_bytes): Likewise.
4201         * frame.h (get_frame_register_bytes): Declare.
4202         (put_frame_register_bytes): Likewise.
4203         * findvar.c (value_from_register): Always construct lval_register
4204         values.  Use get_frame_register_bytes.
4205         * valops.c (value_assign): Use get_frame_register_bytes and
4206         put_frame_register_bytes.
4207
4208 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
4209
4210         * MAINTAINERS: Update Stan Shebs' email address.
4211
4212 2007-01-07  Joel Brobecker  <brobecker@adacore.com>
4213
4214         * ada-lang.c (is_known_support_routine): Improve the implementation.
4215
4216 2007-01-06  Joel Brobecker  <brobecker@adacore.com>
4217
4218         * ada-lang.c: Add include of source.h.
4219         (is_known_support_routine): Improve the check verifying that the file
4220         associated to this frame exists.
4221         * Makefile.in (ada-lang.o): Add dependency on source.h.
4222
4223 2007-01-07  Jim Blandy  <jimb@codesourcery.com>
4224
4225         * ax-general.c (ax_const_l): Select proper opcode for the given
4226         value.
4227
4228 2007-01-05  Vladimir Prus  <vladimir@codesourcery.com>
4229
4230         * varobj.c (c_value_of_root): Don't select frame if variable
4231         object is out of scope.
4232
4233 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
4234
4235         * varobj.c (struct varobj): New member print_value.
4236         (install_new_value): Compare last printed value with current one
4237         instead of contents.
4238         (new_variable): Initialize var->print_value to NULL.
4239         (free_variable): Free var->print_value.
4240         (value_get_print_value): New function derived from
4241         c_value_of_variable.
4242         (c_value_of_variable): Use value_get_print_value.
4243
4244 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
4245
4246         * i386-tdep.c (i386_analyze_stack_align): Add comment.
4247
4248 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
4249
4250         * NEWS: Add entries for new catch commands.
4251
4252 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
4253
4254         * dwarf2read.c (partial_die_info): Add field has_byte_size.
4255         (add_partial_symbol): Correct identification of external references.
4256         (process_structure_scope): Likewise.
4257         (read_partial_die): Handle DW_AT_byte_size attribute.
4258
4259 2007-01-05  Daniel Jacobowitz  <dan@codesourcery.com>
4260
4261         * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
4262
4263 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
4264
4265         * varobj.c (get_type_deref): Fix variable objects for references to
4266         pointers.
4267
4268 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
4269
4270         * symtab.c (find_pc_sect_psymtab): Add comments.  Handle psymtabs
4271         with no symbols.
4272
4273 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
4274
4275         * memory-map.c (struct_memory_map_parsing_data): Remove most
4276         members.  Make property_name an array.
4277         (free_memory_map_parsing_data, memory_map_start_element)
4278         (memory_map_end_element, memory_map_character_data): Delete.
4279         (memory_map_start_memory, memory_map_end_memory)
4280         (memory_map_start_property, memory_map_end_property): New functions.
4281         (property_attributes, memory_children, memory_type_enum)
4282         (memory_attributes, memory_map_children, memory_map_elements): New.
4283         (parse_memory_map): Rewrite.
4284         * xml-support.c (debug_xml): New.
4285         (xml_get_required_attribute, xml_get_integer_attribute)
4286         (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
4287         Delete.
4288         (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
4289         (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
4290         (gdb_xml_start_element, gdb_xml_start_element_wrapper)
4291         (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
4292         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
4293         (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
4294         (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
4295         New.
4296         * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
4297         (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
4298         (enum gdb_xml_element_flag, struct gdb_xml_element)
4299         (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
4300         (struct gdb_xml_enum): New.
4301         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
4302         (gdb_xml_error, gdb_xml_parse_attr_ulongest)
4303         (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
4304         (xml_get_required_attribute, xml_get_integer_attribute)
4305         (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
4306         * Makefile.in (xml_support_h, xml-support.o): Update.
4307
4308 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
4309
4310         * Makefile.in (eval.o): Update dependencies.
4311         * eval.c: Include "ui-out.h" and "exceptions.h".
4312         (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
4313         Use value_zero if an error occurs when avoiding side effects.
4314         * varobj.c (c_value_of_root): Initialize new_val.
4315
4316 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
4317
4318         * varobj.c (varobj_list_children): Stop if the number of children is
4319         unknown.
4320         (c_number_of_children):
4321
4322 2007-01-04  Mark Kettenis  <kettenis@gnu.org>
4323
4324         * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
4325         (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
4326         (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
4327         (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
4328         sizeof, instead of hardcoded constants.
4329
4330 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
4331
4332         * CONTRIBUTE: Use sourceware.org.
4333
4334 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
4335
4336         * buildsym.c (start_subfile): Handle producer.
4337         (record_producer): New function.
4338         * buildsym.h (struct subfile): Include producer.
4339         (record_producer): New prototype.
4340         * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
4341         (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
4342         armcc_cfa_offsets_reversed.
4343         (execute_cfa_program): Handle armcc_cfa_offsets_sf.
4344         (dwarf2_frame_find_quirks): New function.
4345         (dwarf2_frame_cache): Call it.  Handle armcc_cfa_offsets_reversed.
4346         (decode_frame_entry_1): Record the CIE version.  Record the
4347         augmentation.  Skip armcc augmentations.
4348         * dwarf2read.c (read_file_scope): Save the producer.
4349         * symtab.h (struct symtab): Rename unused version member to
4350         producer.
4351
4352 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
4353
4354         * configure.ac (build_warnings): Use -Wall and
4355         -Wdeclaration-after-statement.
4356         * configure: Regenerated.
4357
4358 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
4359
4360         Simplify access to variours properties of child
4361         variable objects in C.
4362         * varobj.c (value_struct_element_index): New function.
4363         (c_describe_child): New function.
4364         (c_name_of_child, c_value_of_child)
4365         (c_type_of_child): Rewrite to use c_describe_child.
4366
4367 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
4368
4369         gdb/
4370         * varobj.c: Include "vec.h". 
4371         (varobj_p): New typedef, declare vector of those.
4372         (struct varobj): Use vector for the 'children' member.
4373         (child_exists): Remove.
4374         (save_child_in_parent): Remove.
4375         (remove_child_from_parent): Remove.
4376         (struct varobj_child): Remove.
4377         (struct vstack): Remove.
4378         (vpush, vpop): Remove.
4379         (varobj_list_children): Adjust to work work vector.
4380         (varobj_update): Likewise. Use vectors for
4381         working stack and result.
4382         (delete_variable_1): Likewise.
4383         * Makefile.in (varobj.o): Update dependencies.
4384
4385 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
4386
4387         Port from Apple's version.
4388         gdb/
4389         * varobj.c (type_changeable): Rename to...
4390         (varobj_value_is_changeable_p): ...this. Adjust all callers.
4391         (is_root_p): New function. Use it everywhere.
4392
4393 2007-01-04  Jim Blandy  <jimb@codesourcery.com>
4394
4395         * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
4396         then plain 'fixup'.
4397
4398 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
4399
4400         * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
4401
4402 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
4403
4404         * hpread.c (hpread_type_lookup): Fix compilation failure.
4405
4406 2007-01-04  Qinwei  <qinwei@sunnorth.com.cn>
4407
4408         * NEWS: New port to S+core.
4409         * MAINTAINERS (Write After Approval, Responsible Maintainers):
4410         Add myself.
4411
4412         * Makefile.in: Add dependencies for S+core files.
4413         * configure.tgt (score*, score-*-*): Add S+core target.
4414         * config/score/embed.mt: New file.
4415         * score-tdep.c: New file.
4416         * score-tdep.h: New file.
4417
4418 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
4419
4420         * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
4421         the appropriate type rather than a bogus void type.
4422
4423 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
4424
4425         * ada-lang.h (ada_find_printable_frame): Remove.
4426         (ada_exception_catchpoint_p, ada_decode_exception_location)
4427         (ada_decode_assert_location): Add declaration.
4428         * ada-lang.c: Add include of annotate.h and valprint.h.
4429         (exception_catchpoint_kind): New enum.
4430         (function_name_from_pc, is_known_support_routine)
4431         (ada_find_printable_frame, ada_unhandled_exception_name_addr)
4432         (ada_exception_name_addr_1, ada_exception_name_addr)
4433         (print_it_exception, print_one_exception, print_mention_exception)
4434         (print_it_catch_exception, print_one_catch_exception)
4435         (print_mention_catch_exception, catch_exception_breakpoint_ops)
4436         (print_it_catch_exception_unhandled)
4437         (print_one_catch_exception_unhandled)
4438         (print_mention_catch_exception_unhandled, print_it_catch_assert)
4439         (print_one_catch_assert, print_mention_catch_assert)
4440         (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
4441         (ada_get_next_arg, catch_ada_exception_command_split)
4442         (ada_exception_sym_name, ada_exception_sym_name)
4443         (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
4444         (ada_parse_catchpoint_condition, ada_exception_sal)
4445         (ada_decode_exception_location)
4446         (ada_decode_assert_location): New function.
4447         (catch_exception_unhandled_breakpoint_ops): New global variable.
4448         (catch_assert_breakpoint_ops): New global variable.
4449         * breakpoint.c: Add include of ada-lang.h.
4450         (print_one_breakpoint): Do not print the condition for Ada
4451         exception catchpoints.
4452         (create_ada_exception_breakpoint): New function.
4453         (catch_ada_exception_command, catch_assert_command): New function.
4454         (catch_command_1): Add support for the new "catch exception" and
4455         "catch assert" commands.
4456         (_initialize_breakpoint): Add help description for the new catch
4457         commands.
4458         * Makefile.in (ada-lang.o): Add dependency on annotate.h and
4459         valprint.h.
4460         (breakpoint.o): Add dependency on ada-lang.h.
4461
4462 2007-01-03  Pedro Alves  <pedro_alves@portugalmail.pt>
4463
4464         * coffread.c (cs_to_section): If bfd_section is found, always
4465         return its section index.
4466         (coff_symtab_read): Determine the minimal_symbol_type using the
4467         bfd_section flags.
4468
4469 2007-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4470             Daniel Jacobowitz  <dan@codesourcery.com>
4471
4472         * Makefile.in (top.o): Update.
4473         * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
4474         (saved_after_char_processing_hook, gdb_readline_wrapper_line)
4475         (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
4476         New.
4477         (gdb_readline_wrapper): Rewrite to use asynchronous readline.
4478
4479 2007-01-03  Mark Kettenis  <kettenis@gnu.org>
4480
4481         * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
4482         (arm_linux_init_abi): Don't set deprecated_extract_return_value.
4483
4484 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
4485
4486         * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
4487         * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
4488         * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
4489         greater than or equal to zero.
4490         * m2-typeprint.c (m2_array): Likewise.
4491         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4492         * gdbtypes.c (copy_type_recursive): Correct == typo.
4493         * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
4494         * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
4495         greater than zero.
4496         * macroscope.c (sal_macro_scope): Don't name a local variable "main".
4497         (default_macro_scope): Remove unused variable.
4498         * prologue-value.h (pv_area_find_reg): Don't name an argument
4499         "register".
4500         * remote-fileio.c (remote_fio_func_map): Add missing braces.
4501         * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
4502         type.
4503         (cleanup_sigint_signal_handler): Remove casts.
4504         * valprint.c (val_print): Use a volatile local for the modified
4505         argument.
4506         * varobj.c (languages): Remove extra array dimension.
4507         (varobj_create): Correct access to languages array.
4508         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
4509         missing braces.
4510         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
4511         * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
4512         * mi/mi-getopt.c (mi_valid_noargs): Likewise.
4513         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
4514         (mi_cmd_data_write_memory): Likewise.
4515         * signals/signals.c (target_signal_to_string): Cast to int before
4516         comparing.
4517         * tui/tui-layout.c (init_and_make_win): Take and return a void *.
4518         Update all callers.
4519
4520 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
4521
4522         * NEWS: Mention pointer to member improvements.
4523         * Makefile.in (gnu-v3-abi.o): Delete special rule.
4524         (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
4525         * ada-valprint.c (ada_print_scalar): Update for new type codes.
4526         * c-typeprint.c (c_print_type): Update for new type codes.
4527         (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
4528         (c_type_print_base): Likewise.
4529         (c_type_print_args): Rewrite.
4530         * c-valprint.c (c_val_print): Update for new type codes.  Remove
4531         support for references to members.  Treat methods like functions.
4532         * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
4533         (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
4534         * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
4535         (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
4536         (struct cp_abi_ops): Add corresponding members.
4537         * cp-valprint.c (cp_print_class_method): Delete.
4538         (cp_find_class_member): New function.
4539         (cp_print_class_member): Use it.  Simplify support for bogus
4540         member pointers.
4541         * dwarf2read.c (quirk_gcc_member_function_pointer): Use
4542         lookup_methodptr_type.
4543         (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
4544         * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
4545         OP_SCOPE.  Update call to value_aggregate_elt.  Rewrite member
4546         pointer support.
4547         (evaluate_subexp_for_address): Handle OP_SCOPE explicitly.  Handle
4548         references returned by user defined operators.
4549         * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
4550         (f_type_print_varspec_suffix): Remove support for member pointers.
4551         * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
4552         and adjusted.
4553         (smash_to_memberptr_type): Likewise, from smash_to_member_type.
4554         (lookup_methodptr_type): New.
4555         (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
4556         (recursive_dump_type): Update for new types.
4557         * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
4558         TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
4559         (lookup_memberptr_type, lookup_methodptr_type)
4560         (smash_to_memberptr_type): New prototypes.
4561         (smash_to_method_type): Formatting fix.
4562         (lookup_member_type, smash_to_member_type): Delete prototypes.
4563         * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
4564         Do not rely on debug information for the vptr or the method's
4565         enclosing type.  Handle function descriptors for IA64.
4566         (gnuv3_virtual_fn_field): Rewrite using the new functions.
4567         (gnuv3_find_method_in, gnuv3_print_method_ptr)
4568         (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
4569         (gnuv3_method_ptr_to_value): New.
4570         (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
4571         * hpread.c (hpread_type_lookup): Update for new types.
4572         * infcall.c (value_arg_coerce): Likewise.
4573         * m2-typeprint.c (m2_print_type): Remove explicit support
4574         for member pointers.
4575         * m2-valprint.c (m2_val_print): Likewise.
4576         * p-typeprint.c (pascal_type_print_varspec_prefix)
4577         (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
4578         * p-valprint.c (pascal_val_print): Likewise.
4579         (pascal_object_print_class_method, pascal_object_print_class_member):
4580         Delete.
4581         * p-lang.h (pascal_object_print_class_method)
4582         (pascal_object_print_class_member): Delete prototypes.
4583         * stabsread.c (read_type): Update for new types.
4584         * typeprint.c (print_type_scalar): Likewise.
4585         * valops.c (value_struct_elt_for_reference, value_namespace_elt)
4586         (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
4587         argument.  Construct a pointer to member if the address of a
4588         function or data member is requested.
4589         (value_cast_pointers): Don't modify the input value.
4590         (value_cast): Adjust pointer to member handling for new types.
4591         Allow null pointer to member constants.  Don't modify the input
4592         value.
4593         (value_ind): Remove pointer to member check.  Handle function
4594         descriptors for function pointers.
4595         (value_struct_elt, value_find_oload_method_list, check_field):
4596         Remove pointer to member checks.
4597         * value.c (unpack_long): Allow pointers to data members.
4598         (value_from_longest): Allow member pointers.
4599         * value.h (value_aggregate_elt): Add want_address.
4600         * varobj.c (c_variable_editable): Remove check for members.
4601         * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
4602         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
4603         in virtual tables.
4604         (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
4605         * c-lang.h (cp_print_class_method): Delete prototype.
4606         * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
4607         * mips-tdep.c (mips_gdbarch_init): Likewise.
4608         * gdbarch.c, gdbarch.h: Regenerated.
4609
4610 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
4611
4612         * rs6000-tdep.c (rs6000_use_struct_convention)
4613         (rs6000_extract_return_value, rs6000_store_return_value)
4614         (rs6000_extract_struct_value_address): Remove.
4615         (rs6000_return_value): New function.
4616         (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
4617         store_return_value, deprecated_extract_struct_value_address and
4618         deprecated_use_struct_convention.  Use rs6000_return_value
4619         instead.
4620
4621 2007-01-02  Nick Roberts  <nickrob@snap.net.nz>
4622
4623         * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
4624         -display-disable, -display-enable, -display-insert and
4625         -display-list.
4626
4627 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
4628
4629         * breakpoint.c (remove_breakpoint): Remove dead code.
4630
4631 2007-01-01  Nick Roberts  <nickrob@snap.net.nz>
4632
4633         * varobj.c: Include block.h.
4634         (c_value_of_root): Check scope within nested statements.
4635
4636 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
4637
4638         * mi/mi-main.c (mi_cmd_data_write_register_values): Use
4639         regcache_cooked_write_signed instead of
4640         deprecated_write_register_bytes.
4641
4642 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
4643
4644         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
4645
4646 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
4647
4648         Followed the Start of New Year Procedure:
4649         * ChangeLog-2006: New file, containing all the entries for 2006.
4650         * ChangeLog: Removed all 2006 entries, and changed the reference
4651         to the previous ChangeLog to point to ChangeLog 2006.
4652         * top.c (print_gdb_version): Update copyright year.
4653
4654 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
4655
4656         * Makefile.in (remote-sds.o): Remove.
4657         * remote-sds.c: Delete.
4658
4659 For older changes see ChangeLog-2006.
4660 \f
4661 Local Variables:
4662 mode: change-log
4663 left-margin: 8
4664 fill-column: 74
4665 version-control: never
4666 End: