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