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