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