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