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