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