1 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
3 * configure.tgt: Recognize fido-*-elf.
5 2007-10-10 Joel Brobecker <brobecker@adacore.com>
9 2007-10-10 Markus Deuling <deuling@de.ibm.com>
11 * stack.c (print_frame_args, frame_info, return_command): Use
12 get_regcache_arch or get_frame_arch to get at the current architecture
13 by regcache or by frame, respectively.
15 2007-10-10 Markus Deuling <deuling@de.ibm.com>
17 * rs6000-nat.c (fetch_register, store_register)
18 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
19 get_regcache_arch to get at the current architecture by regcache.
21 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
22 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
23 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
24 current_gdbarch by gdbarch.
25 (rs6000_skip_trampoline_code, rs6000_register_to_value)
26 (rs6000_value_to_register): Use get_frame_arch to get at the current
27 architecture by frame_info.
29 2007-10-10 Markus Deuling <deuling@de.ibm.com>
31 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
32 get_regcache_arch to get at the current architecture by regcache.
34 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
35 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
36 get_regcache_arch to get at the current architecture by regcache.
38 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
39 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
40 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
41 current architecture by regcache.
43 2007-10-10 Markus Deuling <deuling@de.ibm.com>
45 * remote-mips.c (mips_wait, mips_fetch_registers)
46 (mips_store_registers): Use get_regcache_arch to get at the
47 current architecture by regcache.
49 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
50 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
51 get at the current architecture by regcache.
52 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
53 architecture by frame_info.
55 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
56 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
57 the current architecture by regcache.
59 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
60 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
61 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
62 current architecture by frame_info.
63 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
64 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
65 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
66 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
67 get at the current architecture by regcache.
69 * mips-linux-nat.c (mips_linux_register_addr)
70 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
71 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
72 (mips64_linux_regsets_fetch_registers)
73 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
74 the current architecture by regcache.
76 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
77 get at the current architecture by frame_info.
79 2007-10-10 Markus Deuling <deuling@de.ibm.com>
81 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
82 current architecture by regcache.
83 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
84 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
85 (mips_stub_frame_cache, mips_read_fp_register_single)
86 (mips_read_fp_register_double, mips_print_fp_register)
87 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
88 at the current architecture by frame_info.
89 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
90 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
91 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
92 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
93 (mips_o32_push_dummy_call, mips_o32_return_value)
94 (mips_o64_push_dummy_call, mips_o64_return_value)
95 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
98 2007-10-10 Markus Deuling <deuling@de.ibm.com>
100 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
101 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
102 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
103 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
104 (xtensa_register_write_masked, xtensa_register_read_masked)
105 (xtensa_supply_gregset, xtensa_store_return_value)
106 (xtensa_extract_return_value): Use get_regcache_arch to get at the
107 current architecture by regcache.
108 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
109 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
110 architecture by frame_info.
112 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
114 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
115 (thumb_analyze_prologue): Move pv_area_store_would_trash call
116 out of loop. Do not set cache->frameoffset.
117 (arm_scan_prologue): Use prologue-value mechanism. Do not set
118 frameoffset. Simplify framesize.
119 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
121 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
123 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
125 * target.c (update_current_target): Call setup_target_debug.
126 (push_target): Do not call it here.
128 2007-10-09 Michael Snyder <msnyder@specifix.com>
130 * MAINTAINERS: Update my email address.
132 2007-10-09 Markus Deuling <deuling@de.ibm.com>
134 * xtensa-tdep.c: Replace following current-gdbarch based macros by
136 (xtensa_pseudo_register_read)
137 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
138 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
139 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
140 (xtensa_pseudo_register_read)
141 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
142 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
143 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
144 (xtensa_frame_prev_register): NUM_AREGS.
145 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
146 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
147 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
148 (xtensa_supply_gregset, xtensa_frame_cache)
149 (xtensa_frame_prev_register): WS_REGNUM.
150 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
151 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
152 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
153 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
154 (xtensa_register_reggroup_p): REGMAP.
155 (call0_track_op): LITBASE_REGNUM.
156 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
157 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
158 (xtensa_frame_prev_register, AREG_NUMBER)
159 (xtensa_register_type): AR_BASE.
160 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
161 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
162 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
163 (xtensa_frame_cache, xtensa_frame_prev_register)
164 (xtensa_extract_return_value, xtensa_store_return_value)
165 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
166 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
167 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
168 (xtensa_frame_prev_register, xtensa_push_dummy_call)
169 (call0_frame_cache): A1_REGNUM.
170 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
171 (xtensa_push_dummy_call): A4_REGNUM.
172 (ARGS_FIRST_REG): A6_REGNUM.
173 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
174 (xtensa_frame_prev_register): A15_REGNUM.
175 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
176 them in the appropriate source file:
177 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
178 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
179 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
180 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
181 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
182 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
183 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
184 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
185 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
186 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
187 A13_REGNUM, A14_REGNUM, A15_REGNUM.
189 2007-10-09 Markus Deuling <deuling@de.ibm.com>
191 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
192 the current architecture by frame_info.
193 (h8300_frame_prev_register
194 (h8300_print_register): Replace current_gdbarch by gdbarch.
195 (h8300_print_registers_info, h8300_register_type)
196 (h8300_register_type): Likewise.
198 2007-10-09 Markus Deuling <deuling@de.ibm.com>
200 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
201 the current architecture by regcache.
202 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
203 (i386_linux_fetch_inferior_registers)
204 (i386_linux_store_inferior_registers): Likewise.
205 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
206 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
207 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
208 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
209 (i386_extract_return_value, i386_store_return_value): Likewise.
210 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
211 the current architecture by frame_info.
212 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
213 (i386_register_to_value, i386_value_to_register): Likewise.
215 2007-10-09 Markus Deuling <deuling@de.ibm.com>
217 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
218 the current architecture by regcache.
219 (monitor_store_register, monitor_store_registers): Likewise.
221 2007-10-09 Markus Deuling <deuling@de.ibm.com>
223 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
224 the current architecture by regcache.
226 2007-10-09 Markus Deuling <deuling@de.ibm.com>
228 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
231 2007-10-09 Markus Deuling <deuling@de.ibm.com>
233 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
234 architecture by frame.
235 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
236 (inside_main_func, frame_sp_unwind): Likewise.
238 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
240 * solib-svr4.c (enable_break): Add the dynamic linker also if
243 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
245 * MAINTAINERS (Write After Approval): Add self.
247 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
249 * stabsread.c (read_huge_number): Initialize local variable to 0.
251 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
253 * p-lang.h (pascal_main_name): Add declaration.
254 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
255 (GPC_MAIN_PROGRAM_NAME_2): New constants.
256 (pascal_main_name): New function.
257 * symtab.c: Include p-lang.h.
258 (find_main_name): Add call to pascal_main_name.
259 * Makefile.in (symtab.o): Add dependency on p-lang.h.
261 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
263 * stabsread.c (read_huge_number): Fix handling of octal
264 representation when the bit width is known.
265 (read_range_type): Record unsigned integral types with their size,
266 when the type size is known.
268 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
270 * MAINTAINERS (Write After Approval): Add self.
272 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
274 * breakpoint.c (print_one_breakpoint_location): ARI fix:
275 Replace asprintf by xstrprintf.
277 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
279 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
280 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
282 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
284 * linux-fork.c: Move "gdb_wait.h" include back to the position of
285 <sys/wait.h> include before last commit.
287 2007-10-08 Maciej W. Rozycki <macro@mips.com>
289 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
291 2007-10-08 Markus Deuling <deuling@de.ibm.com>
293 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
294 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
295 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
296 (store_regs_user_thread, store_regs_kernel_thread): Use
297 get_regcache_arch or get_frame_arch to get at the current architecture
298 by regcache or by frame, respectively.
300 2007-10-08 Markus Deuling <deuling@de.ibm.com>
302 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
303 (sh64_pseudo_register_read, sh64_pseudo_register_write)
304 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
305 (sh64_print_register, sh64_media_print_registers_info)
306 (sh64_compact_print_registers_info, sh64_unwind_sp)
307 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
308 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
309 (sh64_frame_prev_register): Use FRAME to recognize current
312 2007-10-08 Markus Deuling <deuling@de.ibm.com>
314 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
315 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
316 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
317 current_gdbarch by gdbarch.
318 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
319 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
320 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
321 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
322 recognize current architecture.
324 2007-10-08 Markus Deuling <deuling@de.ibm.com>
326 * remote.c (init_remote_state, fetch_register_using_p)
327 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
328 (store_register_using_P, store_registers_using_G)
329 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
330 get at the current architecture by regcache or by frame, respectively.
332 2007-10-08 Markus Deuling <deuling@de.ibm.com>
334 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
335 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
336 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
337 get_regcache_arch or get_frame_arch to get at the current architecture
338 by regcache or by frame, respectively.
339 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
340 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
341 (store_register, old_store_inferior_registers, supply_gregset)
342 (supply_fpregset, fill_fpregset): Likewise.
343 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
344 Replace current_gdbarch by gdbarch.
346 2007-10-08 Markus Deuling <deuling@de.ibm.com>
348 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
349 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
350 get_frame_arch to get at the current architecture by regcache or by
353 2007-10-08 Markus Deuling <deuling@de.ibm.com>
355 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
356 Replace current_gdbarch by gdbarch.
357 * ia64-tdep.c (ia64_frame_prev_register
358 (ia64_sigtramp_frame_prev_register)
359 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
360 get_frame_arch to get at the current architecture by regcache or by
362 * ia64-linux-nat.c (ia64_linux_fetch_register)
363 (ia64_linux_fetch_registers, ia64_linux_store_register)
364 (ia64_linux_store_registers): Likewise.
366 2007-10-08 Markus Deuling <deuling@de.ibm.com>
368 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
369 current_gdbarch by gdbarch.
370 * hppa-linux-nat.c (fetch_register, store_register)
371 (hppa_linux_fetch_inferior_registers)
372 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
373 get_frame_arch to get at the current architecture by regcache or by
375 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
376 (hppa_hpux_unwind_adjust_stub): Likewise.
377 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
378 (hppa_hpux_fetch_inferior_registers)
379 (hppa_hpux_store_inferior_registers): Likewise.
381 2007-10-08 Markus Deuling <deuling@de.ibm.com>
383 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
384 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
385 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
386 or get_frame_arch to get at the current architecture by regcache or by
388 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
389 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
390 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
391 current_gdbarch by gdbarch.
393 2007-10-08 Markus Deuling <deuling@de.ibm.com>
395 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
396 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
397 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
398 get at the current architecture by regcache or by·frame, respectively.
399 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
402 2007-10-08 Markus Deuling <deuling@de.ibm.com>
404 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
405 Use get_regcache_arch or get_frame_arch to get at the current
406 architecture by regcache or by frame, respectively.
407 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
408 * amd64-nat.c (amd64_supply_native_gregset)
409 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
411 2007-10-08 Markus Deuling <deuling@de.ibm.com>
413 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
415 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
416 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
417 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
418 get_frame_arch to get at the current architecture by regcache or by
420 * alpha-nat.c (fetch_osf_core_registers): Likewise.
422 2007-10-08 Markus Deuling <deuling@de.ibm.com>
424 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
425 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
426 current_gdbarch by gdbarch.
427 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
429 2007-10-08 Markus Deuling <deuling@de.ibm.com>
431 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
432 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
433 * regcache.c (regcache_raw_write): Use get_regcache_arch or
434 get_frame_arch to get at the current architecture by regcache or by
437 2007-10-08 Markus Deuling <deuling@de.ibm.com>
439 * findvar.c (value_of_register, locate_var_value): Use
440 get_regcache_arch or get_frame_arch to get at the current architecture
441 by regcache or by frame, respectively.
442 * findvar.c (default_value_from_register, value_from_register): Replace
443 current_gdbarch by gdbarch.
445 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
447 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
449 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
451 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
452 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
454 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
456 * remote.c (get_offsets): Only call free_symfile_segment_data if
459 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
461 * objc-exp.y: ARI fix: remove 4 PARAMS.
463 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
465 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
466 news. Mention XML support for M68K in GDB 6.7.
468 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
470 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
472 (init_vector_type): Use builtin_type_int32.
474 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
476 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
477 size to enable bi-arch generate-core-file support.
479 2007-10-02 Markus Deuling <deuling@de.ibm.com>
481 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
483 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
485 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
487 * tui/tui-win.c (tui_initialize_win): New function for
488 initializing tui's SIGWINCH signal handler.
489 * tui/tui-win.h (tui_initialize_win): Declare.
491 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
493 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
494 pointer to uintptr_t before casting to CORE_ADDR.
496 2007-10-02 Markus Deuling <deuling@de.ibm.com>
498 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
500 2007-10-02 Mark Mitchell <mark@codesourcery.com>
502 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
503 * ser-mingw.c (enum select_thread_state): New type.
504 (struct ser_console_state): Add have_started and thread_state.
505 (select_thread_wait): New function.
506 (thread_fn_type): New type.
507 (create_select_thread): New function.
508 (destroy_select_thread): Likewise.
509 (start_select_thread): Likewise.
510 (stop_select_thread): Likewise.
511 (console_select_thread): Use new functions.
512 (pipe_select_thread): Likewise.
513 (file_select_thread): Likewise.
514 (ser_console_wait_handle): Likewise.
515 (ser_console_done_wait_handle): Likewise.
516 (ser_console_close): Likewise.
517 (free_pipe_state): Likewise.
518 (pipe_wait_handle): Likewise.
519 (pipe_done_wait_handle): Likewise.
520 (struct net_windows_state): Derive from ser_console_state.
521 (net_windows_select_thread): Use new functions.
522 (net_windows_wait_handle): Likewise.
523 (net_windows_done_wait_handle): Likewise.
524 (net_windows_close): Likewise.
526 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
528 * inflow.c (terminal_ours_1): Remove useless line.
530 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
532 * mips-tdep.c (mips_read_fp_register_double): Correct check for
534 (mips_print_fp_register): Correct check for even FP registers.
535 (mips_virtual_frame_pointer): New function.
536 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
538 2007-09-30 Mike Frysinger <vapier@gentoo.org>
540 * value.h (lookup_only_internalvar): New prototype.
541 (create_internalvar): Likewise.
542 * value.c (lookup_only_internalvar): New function.
543 (create_internalvar): Likewise.
544 (lookup_internalvar): Use new lookup_only_internalvar and
545 create_internalvar functions.
546 * parse.c (write_dollar_variable): Look up $ symbols in internal
547 table first rather than last.
549 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
551 * linux-nat.c (linux_nat_new_thread): New variable.
552 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
553 linux_nat_switch_fork.
554 (lwp_list): Make public.
555 (add_lwp): Call linux_nat_new_thread.
556 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
558 (resume_callback): Clear lp->siginfo. Remove unused variable.
559 (linux_nat_resume): Assert that the LWP list is already initialized.
562 (stop_wait_callback, linux_nat_wait): Call it.
563 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
564 * linux-nat.h (struct lwp_info): Add siginfo.
565 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
568 * amd64-linux-nat.c (amd64_linux_dr): New.
569 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
570 (amd64_linux_dr_set): Take a PTID argument.
571 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
572 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
573 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
574 (amd64_linux_new_thread): New.
575 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
576 * i386-linux-nat.c (i386_linux_dr): New.
577 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
578 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
579 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
580 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
581 (i386_linux_new_thread): New.
582 (i386_linux_resume): Remove unnecessary PID check.
583 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
584 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
585 (fetch_debug_register, fetch_debug_register_pair): Delete.
586 (debug_registers): New.
587 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
588 ALL_LWPS and debug_registers.
589 (ia64_linux_new_thread): New.
590 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
591 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
592 * ppc-linux-nat.c (last_stopped_data_address): Delete.
593 (saved_dabr_value): New.
594 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
596 (ppc_linux_new_thread): New.
597 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
598 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
599 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
600 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
602 (s390_fix_watch_points): Take a PTID argument.
603 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
604 (_initialize_s390_nat): Call linux_nat_set_new_thread.
606 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
607 Jeff Johnston <jjohnstn@redhat.com>
609 * breakpoint.c (watchpoints_triggered): New.
610 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
611 Check watchpoint_triggered instead. Combine handling for software
612 and hardware watchpoints. Do not use target_stopped_data_address
613 here. Always check a watchpoint if its scope breakpoint triggers.
614 Do not stop for thread or overlay events. Improve check for
615 triggered watchpoints without a value change.
616 (watch_command_1): Insert the scope breakpoint first. Link the
617 scope breakpoint to the watchpoint.
618 * breakpoint.h (enum watchpoint_triggered): New.
619 (struct breakpoint): Add watchpoint_triggered.
620 (bpstat_stop_status): Update prototype.
621 (watchpoints_triggered): Declare.
622 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
623 (stepped_after_stopped_by_watchpoint): Delete.
624 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
625 local. Handle infwait_step_watch_state. Update calls to
626 bpstat_stop_status. Use watchpoints_triggered to check
628 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
629 (remote_stopped_data_address): Do not check it.
631 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
633 * configure.ac: Add $LIBINTL when testing libbfd.
634 * configure: Regenerated.
636 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
638 * NEW: Mention pending breakpoint changes and
639 support for breakpoints at multiple locations.
641 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
643 * arm-linux-tdep.c (arm_linux_software_single_step): New.
644 (arm_linux_init_abi): Use it.
645 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
647 * arm-tdep.h (arm_get_next_pc): Declare.
648 * Makefile.in (arm-linux-tdep.o): Update.
650 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
652 * varobj.c (install_new_value): Don't
653 call value_get_print_value when a value is
654 lazy. Update the print_value member in a
657 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
659 * breakpoint.c (create_breakpoint): Set
660 condition on each location, not on the first
661 location of breakpoint.
663 2007-09-26 Jim Blandy <jimb@codesourcery.com>
665 * remote.c (getpkt_sane): Fix error message. No animals were
666 harmed in the making of this debugger.
668 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
670 * p-typeprint.c: Fix 11 ARI reported problems.
671 (pascal_print_type): Fix 4 operator at end of line.
672 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
673 using strncmp function.
674 (pascal_type_print_base): Fix 2 operator at end of line.
675 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
676 using strncmp function.
679 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
682 dwarf2read.c (read_subroutine_type):
683 All pascal functions are prototyped.
685 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
688 p-valprint.c (pascal_val_print): correct current language check.
689 Also print array of char as strings.
692 2007-09-26 David Ung <davidu@mips.com>
693 Maciej W. Rozycki <macro@mips.com>
695 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
697 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
699 * p-exp.y: Fix 12 ARI reported problems.
700 (name_not_typename): Fix 2 operator at end of line issues.
701 (yylex): Fix 3 operator at end of line issues.
702 Replace 7 DEPRECATED_STREQ macros using strcmp function.
704 2007-09-25 David Ung <davidu@mips.com>
705 Maciej W. Rozycki <macro@mips.com>
707 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
708 rules return composite types in registers as appropriate.
710 2007-09-24 Jim Blandy <jimb@codesourcery.com>
712 * symfile.h (struct symfile_segment_data): Doc fixes.
713 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
714 Assert that we were passed some loaded segment addresses,
715 and that sections' segment numbers are valid.
716 Simplify offset calculation.
717 * remote.c (get_offsets): Clarify selection of relocate-by-segment
718 strategy, and set num_segments correctly. Delete redundant
719 assignments to do_sections.
721 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
723 * frame.c (get_prev_frame_1): Also check for PC in the same register.
725 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
727 * breakpoint.c (remove_sal): New.
728 (expand_line_sal_maybe): New.
729 (create_breakpoints): Call expand_line_sal_maybe.
730 (clear_command): Add comment.
731 (breakpoint_re_set_one): Call expand_line_sal_maybe.
732 * linespec.c (decode_indirect): Set explicit_pc to 1.
733 (decode_all_digits): Set explicit_line to 1.
734 (append_expanded_sal): New.
735 (expand_line_sal): New.
736 * linespec.h (expand_line_sal): Declare.
737 * symtab.c (init_sal): Initialize explicit_pc
739 * symtab.h (struct symtab_and_line): New fields
740 explicit_pc and explicit_line.
742 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
744 * infcall.c (call_function_by_hand): Handle language-specific
745 pass and return by reference.
747 * cp-abi.c (cp_pass_by_reference): New.
748 * cp-abi.h (cp_pass_by_reference): Declare.
749 (struct cp_abi_ops): Add pass_by_reference.
750 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
751 (init_gnuv3_ops): Set pass_by_reference.
753 * language.c (language_pass_by_reference): New.
754 (default_pass_by_reference): New.
755 (unknown_language_defn, auto_language_defn, local_language_defn): Add
756 default_pass_by_reference.
757 * langauge.h (struct language_defn): Add la_pass_by_reference.
758 (language_pass_by_reference, default_pass_by_reference): Declare.
759 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
760 * c-lang.c (c_language_defn, asm_language_defn)
761 (minimal_language_defn): Likewise.
762 (cplus_language_defn): Add cp_pass_by_reference.
763 * f-lang.c (f_language_defn): Add default_pass_by_reference.
764 * jv-lang.c (java_language_defn): Likewise.
765 * m2-lang.c (m2_language_defn): Likewise.
766 * objc-lang.c (objc_language_defn): Likewise.
767 * p-lang.c (pascal_language_defn): Likewise.
768 * scm-lang.c (scm_language_defn): Likewise
770 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
772 Allow a code breakpoint to have several locations
774 * breakpoint.h (enum enable_state): Remove the
775 bp_shlib_disabled enumerator.
776 (struct bp_location): New members shlib_disabled,
777 global_next, enabled and function_name.
778 Rename pending to condition_not_parsed.
780 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
781 (ALL_BP_LOCATIONS_SAFE): Likewise.
782 (breakpoint_enabled): Don't check for pending.
783 (condition_command): Free and update all locations of
785 (insert_bp_location): Adjust.
786 (software_breakpoint_inserted_here_p): Don't care
787 if breakpoint is enabled, as soon as it's inserted.
788 (print_it_typical): Print bpstat's location, not
789 bpstat's breakpoint's location.
790 (bpstat_stop_status): Iterate over all locations, not
792 (print_breakpoint_location): New.
793 (print_one_breakpoint): Renamed to
794 (print_one_breakpoint_location): ...this. Take
795 parameters to describe which location is being
796 printed. Modify code to properly print header
797 for several locations and individual locations.
798 (print_one_breakpoint): Print all locations.
799 (breakpoint_has_pc): New.
800 (describe_other_breakpoints): Use the above.
801 (check_duplicates): Renamed to...
802 (check_duplicates_for): .. this.
803 (check_duplicates): Use check_duplicates_for.
804 (allocate_bp_location): Adjust.
805 (set_raw_breakpoint_without_location): New,
806 extracted from set_raw_breakpoint.
807 (set_breakpoint_location_function): New.
808 (set_raw_breakpoint): Use
809 set_raw_breakpoint_without_location.
810 (make_breakpoint_permanent): Mark all locations
812 (disable_breakpoints_in_shlibs): Iterate over
814 (disable_breakpoints_in_unloaded_shlib): Likewise.
815 (re_enable_breakpoints_in_shlibs): Likewise.
816 (mention): Say "pending" when breakpoint has
817 zero locations. If breakpoint has more than one
819 (add_location_to_breakpoint): New.
820 (create_breakpoint): Accept symtabs_and_lines, not
821 symtab_and_line. Pass extra sals to
822 add_location_to_breakpoint.
823 (create_breakpoints): Pass symtabs_and_lines to
825 (break_command_1): Make pending breakpoints
827 (do_captured_breakpoint): Remove wrong allocation.
828 (clear_command): Iterate over all locations.
829 (unlink_locations_from_global_list): Renamed
830 from unlink_location_from_global_list. Remove
832 (delete_breakpoint): Remove all locations.
833 Iterate over all locations when deciding which
834 other location to re-enable.
835 (all_locations_are_pending): New.
836 (update_breakpoint_locations): Renamed from
837 update_breakpoint_location. Try to match old
838 and new locations using names of containing
840 (breakpoint_re_set_one): Adjust.
841 (find_location_by_number): New.
842 (disable_command): Allow disabling individual location.
843 (enable_command): Allow enabling individual location.
844 * breakpoint.c: Adjust all uses of breakpoint's
845 enable state to for bp_shlib_disabled change.
847 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
849 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
850 (resolve_pending_breakpoint): Remove.
851 (re_enable_breakpoints_in_shlibs): Remove.
852 (unlink_locations_from_global_list): New.
853 (update_breakpoint_locations): New.
854 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
855 Use parse_condition and update_breakpoint_location to
856 reset breakpoint. Ignore 'symbol not found' error from
858 (breakpoint_re_set): Don't emit newline before the
859 reason why breakpoint is not reset.
860 (do_enable_breakpoint): Don't specially process pending
862 (free_bp_location): New.
863 (break_command_1): For pending breakpoints, initialize
864 all fields of a sal with zeroes.
865 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
866 * infcmd.c (post_create_inferior): Don't call
867 re_enable_breakpoints_in_shlibs.
868 * infrun.c (handle_inferior_event): Likewise.
869 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
870 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
871 * win32-nat.c (get_win32_debug_event): Likewise.
873 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
875 * breakpoint.c (create_breakpoint): Split from
876 create_breakpoints, implementing most of its logic.
877 Take just a single sal, single address string and
878 single condition. Do not take parsed condition at
880 (create_breakpoints): Just call create_breakpoint
882 (find_condition_and_thread): New.
883 (break_command_1): Use find_condition_and_thread.
884 Do not keep parsed conditions.
885 (do_captured_breakpoint): Don't convert
886 condition string to struct expression.
888 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
890 * breakpoint.h (struct breakpoint): Move the cond
892 (struct bp_location): Here.
893 * breakpoint.c (condition_command, bpstat_stop_status)
894 (print_one_breakpoint, allocate_bp_location)
895 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
896 (create_exec_event_catchpoint, create_breakpoints)
897 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
898 (create_ada_exception_breakpoint, set_breakpoint_sal)
899 (delete_breakpoint, breakpoint_re_set_one): Adjust.
900 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
902 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
904 Associate bp_stat with bp_location, not breakpoint.
905 * breakpoint.h (breakpoint_at): Change type
907 * breakpoint.c (bpstat_alloc): Take bp_location,
909 (bpstat_find_breakpoint): Look at bpstat's location's
910 owner, not at bpstat->breakpoint_at.
911 (bpstat_find_step_resume_breakpoint): Likewise.
912 (bpstat_num): Likewise.
913 (print_it_typical): Likewise.
914 (print_bp_stop_message): Likewise.
915 (watchpoint_check): Likewise.
916 (bpstat_what): Likewise.
917 (bpstat_get_triggered_catchpoints): Likewise.
918 (breakpoint_auto_delete): Likewise.
919 (delete_breakpoint): Likewise.
920 (bpstat_stop_status): Pass location, not breakpoint,
921 to bpstat_alloc. Look at bpstat's location's
922 owner, not at bpstat->breakpoint_at.
924 2007-09-21 Jim Blandy <jimb@codesourcery.com>
926 * macrotab.h (new_macro_table): Document that removing information
927 from an obstack/bcache-managed macro table leaks memory.
928 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
929 that data is never freed in obstack/bcache-managed macro tables,
930 just leak the storage.
931 (macro_undef): If we're undefining a macro at exactly the same
932 source location that we defined it, simply remove the definition
935 2007-09-21 Joel Brobecker <brobecker@adacore.com>
937 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
938 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
939 Adjust the struct sym_fns object accordingly by setting
940 the new field to NULL.
941 * xcoffread.c (aix_process_linenos): Make static.
942 (xcoff_sym_fns): Set new field to aix_process_linenos.
943 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
944 by call to new the new sym_fns sym_read_linetable function.
945 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
946 * config/rs6000/tm-rs6000.h: Delete.
948 2007-09-21 David Ung <davidu@mips.com>
949 Maciej W. Rozycki <macro@mips.com>
951 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
952 rules do not treat composite types specially.
954 2007-09-20 Maciej W. Rozycki <macro@mips.com>
956 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
957 (mips16_in_function_epilogue_p): Likewise.
958 (mips_in_function_epilogue_p): Likewise.
959 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
961 2007-09-19 Joel Brobecker <brobecker@adacore.com>
963 * configure.ac: Add check for "etext".
964 * configure, config.in: Regenerate.
965 * maint.c (TEXTEND): Only define if either _etext or etext
967 Disable the profiling functionality if TEXTEND is not defined.
969 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
971 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
972 address register. Correct the call to frame_id_build.
973 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
976 2007-09-18 Joel Brobecker <brobecker@adacore.com>
978 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
979 the linetable past the function end.
981 2007-09-18 James E. Wilson <wilson@specifix.com>
983 * MAINTAINERS: Update my email address.
985 2007-09-18 Jerome Guitton <guitton@adacore.com>
987 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
988 (inf_ttrace_delete_dying_threads_callback): New function.
989 (inf_ttrace_resume): After resuming the execution, iterate over
990 the dying threads to delete them for the thread list.
991 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
992 mark the corresponding thread as dying instead of removing it
993 from the thread list.
994 (inf_ttrace_thread_alive): return 0 for dying threads.
996 2007-09-17 Joel Brobecker <brobecker@adacore.com>
998 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
999 that return_frame is not null.
1001 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1003 * solib-svr4.c: Add include of "auxv.h".
1004 (enable_break): Use the AT_BASE auxiliary entry if available.
1005 * Makefile.in (solib-svr4.o): Update dependencies.
1007 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1009 * NEWS: Create a new section for the next release branch.
1010 Rename the section of the current branch, now that it has
1013 2007-09-17 Jerome Guitton <guitton@adacore.com>
1015 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
1016 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
1018 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
1020 * mi/mi-cmds.c (mi_cmds): Register -list-features.
1021 * mi/mi-cmds.h (mi_cmd_list_features): New.
1022 * mi/mi-main.c (mi_cmd_list_features): New.
1024 2007-09-11 Joel Brobecker <brobecker@adacore.com>
1026 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
1027 * version.in: Bump version to 6.7.50-20070911-cvs.
1029 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1031 * thread.c (free_thread): Do not delete the step resume breakpoint
1034 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1036 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
1037 * corelow.c (core_read_description): New.
1038 (init_core_ops): Set to_read_description.
1039 * gdbarch.sh: Add gdbarch_core_read_description.
1040 * mips-linux-tdep.c (mips_linux_core_read_description): New.
1041 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
1042 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
1043 (mips_register_g_packet_guesses): Use them.
1044 (_initialize_mips_tdep): Initialize them.
1045 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
1046 * gdbarch.h, gdbarch.c: Regenerated.
1048 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1050 * infrun.c (stepping_past_breakpoint): New global variable.
1051 (stepping_past_breakpoint_ptid): Likewise.
1052 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
1053 Only switch threads if we need to single-step over a breakpoint hit
1054 in the previously selected thread. If stepping, remember previous
1055 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
1056 switch_to_thread instead of copying its contents.
1057 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
1058 prepare_to_proceed returns true.
1059 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
1060 (context_switch): Call switch_to_thread.
1061 (handle_inferior_event): Switch back to previous thread if requested
1062 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
1063 * gdbthread.h (switch_to_thread): Add prototype.
1064 * thread.c (switch_to_thread): Make global.
1066 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
1068 * p-valprint.c: Fix 7 ARI reported problems.
1069 (pascal_val_print): Fix one operator at end of line issue.
1070 Use paddress function to remove use of
1071 deprecated_print_address_numeric function (2 times).
1072 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
1073 (pascal_value_print): Fix 3 operator at end of line issues.
1075 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
1078 * arm-tdep.c (arm_in_call_stub): Delete.
1079 (arm_skip_stub): Handle from_arm and from_thumb stubs.
1081 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
1083 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
1086 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1087 Jim Blandy <jimb@codesourcery.com>
1089 * NEWS: Update description of string changes. Mention print/s.
1090 * c-valprint.c (textual_element_type): New.
1091 (c_val_print): Use it. Do not skip address printing for pointers
1092 with a string format.
1093 (c_value_print): Doc update.
1094 * dwarf2read.c (read_array_type): Use make_vector_type.
1095 * gdbtypes.c (make_vector_type): New.
1096 (init_vector_type): Use it.
1097 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1098 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1099 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1100 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1101 (make_vector_type): New.
1102 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1103 Call the language print routine for string format.
1104 (print_scalar_formatted): Call val_print for string format. Handle
1105 unsigned original types for char format.
1106 (validate_format): Do not reject string format.
1107 * stabsread.c (read_type): Use make_vector_type.
1108 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1110 2007-09-04 Michael Snyder <msnyder@access-company.com>
1112 * expprint.c (print_subexp_standard): Check strchr for null.
1113 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1115 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1117 * stabsread.c (patch_block_status): Guard against null.
1118 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1120 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1122 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1123 in internal error message.
1125 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1126 Daniel Jacobowitz <dan@codesourcery.com>
1128 * infcmd.c (post_create_inferior): Update comment.
1129 (run_command_1): Always call post_create_inferior with 0 as
1132 * i386-cygwin-tdep.h: New.
1133 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1134 (win32_xfer_shared_library): Make it extern.
1136 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1138 (win32_so_ops): Delete.
1139 (get_relocated_section_addrs): Delete.
1140 (solib_symbols_add): Delete.
1141 (register_loaded_dll): Delete.
1142 (win32_make_so): New.
1143 (handle_load_dll): Use win32_make_so.
1144 (win32_free_so): Free the passed in so.
1145 (win32_relocate_section_addresses): Delete.
1146 (win32_solib_create_inferior_hook): Delete.
1147 (handle_unload_dll): Don't add PE offset here. Free so with
1148 win32_free_so instead of free_so.
1149 (win32_special_symbol_handling): Delete.
1150 (get_win32_debug_event): Remove unneeded calls. Set state to
1151 TARGET_WAITKIND_LOADED on a dll unload.
1152 (do_initial_win32_stuff): Clear cygwin_load_start and
1154 (map_code_section_args): Delete.
1155 (dll_code_sections_add): Delete.
1156 (core_section_load_dll_symbols): Delete.
1157 (win32_xfer_shared_libraries): New.
1158 (win32_current_sos): Delete.
1159 (win32_xfer_partial): New.
1160 (open_symbol_file_object): Delete.
1161 (in_dynsym_resolve_code): Delete.
1162 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1163 of win32_ops. Remove win32_so_ops settings. Don't set
1164 current_target_so_ops here.
1166 * Makefile.in (i386_cygwin_tdep_h): New variable.
1167 (i386-cygwin-tdep.o): Update dependencies.
1168 (win32-nat.o): Update dependencies.
1170 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1171 Daniel Jacobowitz <dan@codesourcery.com>
1173 * gdbarch.sh (core_xfer_shared_libraries): New.
1175 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1177 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1179 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1180 (xml_escape_text): New.
1181 * xml-support.h (xml_escape_text): Declare.
1183 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1184 * config/i386/cygwin.mt (TDEPFILES): ... here.
1186 * win32-nat.c: (fetch_elf_core_registers): Delete.
1187 (win32_elf_core_fn): Delete.
1188 (_initialize_core_win32): Delete.
1190 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1191 "xml-support.h" and "gdbcore.h".
1192 (i386_win32_gregset_reg_offset): New.
1193 (I386_WIN32_SIZEOF_GREGSET): New.
1194 (i386_win32_regset_from_core_section): New.
1195 (win32_xfer_shared_library): New.
1196 (struct cpms_data): New.
1197 (core_process_module_section): New.
1198 (win32_core_xfer_shared_libraries): New.
1199 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1200 gregset_num_regs, sizeof_gregset members of tdep. Register
1201 regset_from_core_section and core_xfer_shared_libraries callbacks.
1203 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1204 * gdbarch.h, gdbarch.c: Regenerate.
1206 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1208 * corelow.c (core_xfer_partial): Pass writebuf to
1209 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1211 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1213 * arm-tdep.h (arm_skip_stub): Declare.
1214 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1216 (arm_pe_skip_trampoline_code): New function.
1217 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1218 gdbarch_skip_trampoline_code callback.
1219 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1221 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1223 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1225 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1227 * configure.ac: Add --with-expat.
1228 * configure: Regenerated.
1230 2007-09-03 Andreas Schwab <schwab@suse.de>
1232 * configure.ac: Accept --with-system-readline.
1233 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1234 * configure: Regenerate.
1235 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1237 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1239 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1240 Daniel Jacobowitz <dan@codesourcery.com>
1242 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1244 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1246 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1248 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1250 * top.c (print_gdb_version): Update for GPL version 3.
1252 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1254 * NEWS: Mention the build-id .debug files verification.
1256 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1258 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1260 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1262 * Makefile.in (symfile.o): Update dependencies.
1263 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1264 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1265 (struct build_id): New structure.
1266 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1267 (find_separate_debug_file): New variable BUILD_ID.
1268 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1270 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1272 * varobj.c (struct varobj): Fix comment
1273 for the type member not to lie when it can be
1276 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1278 Implement -var-info-path-expression.
1280 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1282 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1283 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1284 * varobj.c (struct varobj): New field 'path_expr'.
1285 (c_path_expr_of_child, cplus_path_expr_of_child)
1286 (java_path_expr_of_child): New.
1287 (struct language_specific): New field path_expr_of_child.
1288 (varobj_create): Initialize the path_expr field.
1289 (varobj_get_path_expr): New.
1290 (new_variable): Initialize the path_expr field.
1291 (free_variable): Free the path_expr field.
1292 (adjust_value_for_children_access): New parameter
1294 (c_number_of_children): Adjust.
1295 (c_describe_child): New parameter CFULL_EXPRESSION.
1296 Compute full expression.
1297 (c_value_of_child, c_type_of_child): Adjust.
1298 (cplus_number_of_children): Adjust.
1299 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1300 Compute full expression.
1301 (cplus_name_of_child, cplus_value_of_child)
1302 (cplus_type_of_child): Adjust.
1303 * varobj.h (varobj_get_path_expr): Declare.
1305 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1307 * mi/mi-cmd-var.c (print_varobj): If a varobj
1308 type is NULL, don't try to print it.
1310 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1312 * ppc-linux-nat.c (right_fill_reg): Delete.
1313 (supply_gregset): Use ppc_supply_gregset.
1314 (supply_fpregset): Use ppc_supply_fpregset.
1315 (fill_gregset): Use ppc_collect_gregset.
1316 (fill_fpregset): Use ppc_collect_fpregset.
1317 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1318 (right_supply_register, ppc_linux_supply_gregset): Delete.
1319 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1320 (ppc_linux_supply_fpregset): Delete.
1321 (ppc_linux_collect_gregset): New function.
1322 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1323 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1324 ppc_linux_supply_gregset, and ppc_collect_gregset.
1325 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1326 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1327 (ppc_linux_regset_from_core_section): Update.
1328 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1329 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1330 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1331 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1332 (ppcobsd_collect_gregset): Likewise.
1333 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1334 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1335 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1336 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1337 (rs6000_aix64_reg_offsets): Likewise.
1338 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1339 ppc_floating_point_unit_p.
1340 (rs6000_aix_collect_regset): Similarly.
1341 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1342 when regsize is larger than regcache register size.
1343 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1344 regcache register size.
1345 (ppc_greg_offset): New function, split out from..
1346 (ppc_supply_gregset): ..here. Separate code handling all regs from
1347 single reg case. Correct xer offset.
1348 (ppc_fpreg_offset): New function, split out from..
1349 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1351 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1352 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1353 a fp unit, instead return if no fp.
1355 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1357 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1358 this code has not been compiled for two years.
1360 2007-08-29 Michael Snyder <msnyder@access-company.com>
1362 * event-top.c (gdb_readline2): Return after EOF.
1364 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1366 * symtab.c: Remove a function that has been commented out 3 years ago.
1368 2007-08-29 Randolph Chung <tausq@debian.org>
1370 * hppa-tdep.c (hppa32_cannot_fetch_register)
1371 (hppa64_cannot_fetch_register): New functions.
1372 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1373 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1375 2007-08-28 Michael Snyder <msnyder@access-company.com>
1377 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1378 check for null before calling check_typedef.
1380 * NEWS: Mention Coverity bug fixes.
1382 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1384 * spu-tdep.c (spu_pointer_to_address): New function.
1385 (spu_integer_to_address): Likewise.
1386 (spu_gdbarch_init): Add spu_pointer_to_address and
1387 spu_integer_to_address to gdbarch.
1389 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1391 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1393 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1395 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1396 that contains the GDB license.
1397 * copying.awk: Adjust to the GPLv3 wording.
1398 * copying.c: Regenerate.
1400 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1402 * copying.awk: Protoization, and i18n markup.
1404 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1406 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1407 * copyright.sh: Likewise.
1408 * gdb-events.sh: Likewise.
1409 * gdb_gcore.sh: Likewise.
1410 * gdb_mbuild.sh: Likewise.
1411 * gdbarch.sh: Likewise.
1412 * observer.sh: Likewise.
1413 * features/feature_to_c.sh: Likewise.
1414 * regformats/regdat.sh: Likewise.
1416 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1418 Switch the license of all .c files to GPLv3.
1419 Switch the license of all .h files to GPLv3.
1420 Switch the license of all .cc files to GPLv3.
1422 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1424 * configure.ac: Switch license to GPLv3.
1426 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1428 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1429 determine the file's FPU type.
1431 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1433 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1434 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1435 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1437 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1439 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1441 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1442 (elf_lookup_lib_symbol): Fix formatting.
1444 2007-08-21 Michael Snyder <msnyder@access-company.com>
1446 * dbxread.c (read_dbx_symtab): Guard null deref.
1449 * valops.c (find_overload_match): Guard against NULL.
1451 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1453 * MAINTAINERS (Patch Champions): Remove self.
1455 2007-08-21 Chris Smith <chris.smith@st.com>
1457 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1460 2007-08-18 Michael Snyder <msnyder@access-company.com>
1462 * stabsread.c (dbx_lookup_type): Memory leak.
1464 * event-loop.c (delete_async_signal_handler): Move pointer null
1465 test to before pointer dereference.
1467 * ui-out.c (append_header_to_list): Possible cut and paste error.
1469 * MAINTAINERS: white space tweak.
1471 2007-08-17 Michael Snyder <msnyder@access-company.com>
1473 * stack.c (print_frame): Memory leak.
1475 * completer.c (filename_completer): Avoid memory leak.
1476 Remove unnecessary nested block.
1478 * c-exp.y (parse_number): Memory leak.
1480 * completer.c (location_completer): Must free 'fn_list', except
1481 in the one case where it is returned (as 'list').
1483 * varobj.c (value_of_root): Memory leak.
1485 * gdbtypes.h (virtual_base_list): Remove export decl.
1486 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1487 (virtual_base_index): Memory leak.
1488 (virtual_base_index_skip_primaries): Ditto.
1490 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1492 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1493 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1494 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1495 (xtensa_read_register): New function.
1496 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1497 (xtensa_insn_kind): New types.
1498 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1499 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1500 (xtensa_verify_config, xtensa_pseudo_register_read)
1501 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1502 (xtensa_store_return_value)
1503 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1504 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1505 (xtensa_frame_this_id, xtensa_frame_prev_register)
1506 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1507 (call0_frame_cache, call0_frame_get_reg_at_entry)
1508 (call0_classify_opcode, call0_track_op)
1509 (call0_analyze_prologue, call0_frame_cache): New functions.
1511 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1513 * breakpoint.c (bpstat_free): New.
1514 (bpstat_clear): Use bpstat_free.
1515 (delete_breakpoint): Document why we cannot
1516 remove bpstats from stop_bpstat.
1517 * breakpoint.h (bpstat_free): Declare.
1519 2007-08-16 Michael Snyder <msnyder@access-company.com>
1521 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1523 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1524 Joel Brobecker <brobecker@adacore.com>
1526 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1528 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1529 Joel Brobecker <brobecker@adacore.com>
1531 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1532 checkin guarding against NULL.
1534 2007-08-14 Michael Snyder <msnyder@access-company.com>
1536 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1537 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1538 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1539 go at beginning of new line.
1541 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1542 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1543 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1544 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1545 tui-winsource.h, tui.c, tui.h: Function declarations and
1546 definitions, wrap long lines.
1548 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1549 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1550 Reformat block comments to GNU standard.
1552 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1553 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1554 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1555 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1556 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1557 spaces after periods, etc).
1559 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1560 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1561 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1562 tui-winsource.h: Whitespace changes, fix pointer declarations
1565 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1566 Michael Snyder <msnyder@access-company.com>
1568 * ada-lang.c (field_alignment): Guard against NULL.
1570 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1572 * MAINTAINERS (Global Maintainers): Add self.
1574 2007-08-14 Michael Snyder <msnyder@access-company.com>
1576 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1578 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1580 * varobj.c (cplus_describe_child): Guard against null.
1581 Use "NULL" instead of "0" to initialize pointers.
1583 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1585 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1586 to match any gdbarch with matching OSABI. Set default ABI and FPU
1587 after running the OSABI handler.
1589 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1591 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1592 * config/i386/linux.mt (TDEPFILES): ...to here.
1594 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1596 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1597 the 'silent' parameter and code to implement that.
1598 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1600 * win32-nat.c: Adjust.
1603 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1605 * breakpoint.c (update_breakpoints_after_exec): Don't
1606 set address to zero.
1608 2007-08-13 Michael Snyder <msnyder@access-company.com>
1610 * valops.c: Whitespace clean-up.
1612 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1614 * event-top.c (command_line_handler): Memory leak.
1616 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1617 No need to make copy.
1619 * source.c (find_source_lines): Require symtab 's'.
1621 2007-08-11 Michael Snyder <msnyder@access-company.com>
1623 * completer.c: Spelling fix in comments.
1625 2007-08-10 Michael Snyder <msnyder@access-company.com>
1627 * gdbtypes.c: Coding standard cleanup.
1628 * gdbtypes.c: Comment/whitespace cleanup.
1630 * stabsread.c (read_huge_number): Attempt to compute value before
1631 values that it depends on.
1633 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1634 (decode_objc): Use "NULL" instead of 0.
1635 (find_method): Ditto.
1636 (decode_all_digits): Ditto.
1637 (decode_dollar): Ditto.
1639 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1641 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1643 * solib-svr4.c (enable_break): Don't free tmp_pathname until
1646 * completer.c: Comment/whitespace cleanup.
1648 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1650 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
1652 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
1654 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
1655 allocated file descriptors.
1657 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1659 * Makefile.in: Minor cleanup throughout; add some missing variables,
1660 add some missing rules, remove some rules that are no longer needed,
1661 and fix the dependencies in several rules.
1663 2007-08-10 Ludovic Courtès <ludo@gnu.org>
1665 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
1666 (scm_lang_h, scm_tags_h): New.
1667 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
1668 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
1669 * defs.h (enum language): Add `language_scm'.
1671 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
1674 2007-08-09 Ludovic Courtès <ludo@gnu.org>
1676 * MAINTAINERS (Write After Approval): Add myself.
1678 2007-08-09 Michael Snyder <msnyder@access-company.com>
1680 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
1682 2007-08-09 Joel Brobecker <brobecker@adacore.com>
1684 * solib-som.c (som_relocate_section_addresses): Stop saving
1685 the $CODE$ section in the so_list structure.
1687 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
1689 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
1690 (xtensa_register_group_t): Add entries for coprocessors.
1691 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
1692 (xtensa_add_reggroups): Likewise.
1693 (xtensa_register_reggroup_p): Likewise.
1694 (xtensa_coprocessor_register_group): New function.
1697 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1699 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
1701 2007-08-08 Michael Snyder <msnyder@access-company.com>
1703 * target.c (target_read_string): Guard against null.
1705 * varobj.c (value_of_root): Move alloc after return to avoid leak.
1707 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
1708 (tui_set_layout_for_display_command): Mem leak.
1710 * top.c (command_line_input): Memory leak.
1712 * solib-svr4.c (open_symbol_file_object): Memory leak.
1713 (svr4_current_sos): Ditto.
1714 (enable_break): Ditto.
1716 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
1718 * dwarf2read.c (add_partial_symbol): Memory leak.
1720 2007-08-06 Michael Snyder <msnyder@access-company.com>
1722 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
1724 2007-08-05 Jim Blandy <jimb@codesourcery.com>
1726 * macroexp.c (init_buffer): Remove testing code that overrides the
1727 caller's length guess.
1728 (gather_arguments): Use a larger initial size, now that the vector
1729 growth code has been exercised.
1731 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
1733 * solib-target.c (solib_target_relocate_section_addresses): Add
1734 orig_delta to addr_high.
1736 2007-08-04 Michael Snyder <msnyder@access-company.com>
1738 * remote-fileio.c (remote_fileio_func_write): Memory leak.
1740 * breakpoint.c (print_one_breakpoint): Off by one error.
1742 * tracepoint.c (add_register): Off by one error.
1743 (stringify_collection_list): Free malloc buffer.
1745 2007-08-03 Michael Snyder <msnyder@access-company.com>
1747 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
1748 stop memory leak, straighten out cleanups.
1750 * jv-lang.c (java_link_class_type): Guard against NULL.
1752 2007-08-02 Michael Snyder <msnyder@access-company.com>
1754 * gdbtypes.c (create_set_type): Test should only be done within
1755 the preceeding if block. Otherwise, variable is uninitialized.
1757 * gdbtypes.c (check_typedef): Guard NULL.
1759 2007-08-01 Michael Snyder <msnyder@access-company.com>
1761 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
1762 avoid dereference in lookup_cmd_1.
1764 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
1765 clean up long lines.
1766 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
1767 (tui_alloc_win_info): Ditto.
1768 (tui_add_content_elements): Ditto.
1769 * tui/tui-file.c (tui_file_magic): Ditto.
1771 2007-07-31 Michael Snyder <msnyder@access-company.com>
1773 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
1774 True and false paths are mutually exclusive.
1776 * event-top.c (command_line_handler): Add pedantic return.
1778 * f-valprint.c (info_common_command): Bail out to prevent null
1779 pointer deref. Break up a long line.
1781 * exec.c (xfer_memory): Remove redundant condition from 'if'.
1783 * symfile.c (reread_separate_symbols): Free xmalloced memory.
1785 * printcmd.c (build_address_symbolic): Remove dead code and dead
1788 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
1790 * linespec.c (minsym_found): Advance to the next line if possible.
1792 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
1794 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
1795 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
1796 solib-svr4.o, and add solib-target.o
1798 2007-07-27 Michael Snyder <msnyder@access-company.com>
1800 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
1802 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
1804 * MAINTAINERS (Write After Approval): Add myself.
1806 2007-07-26 Maciej W. Rozycki <macro@mips.com>
1808 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
1811 2007-07-25 Maciej W. Rozycki <macro@mips.com>
1813 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
1815 2007-07-24 Michael Snyder <msnyder@access-company.com>
1817 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
1818 'buffer' must cover both branches that call strcmp (Coverity).
1820 * stack.c (print_frame_args): Check return value of lookup_symbol.
1822 * ax-gdb.c (find_field): Guard against null ptr.
1824 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1826 * regformats/reg-spu.dat: Fix order of npc, id registers.
1828 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1830 * target.c (memory_xfer_partial): Accesses to unmapped overlay
1831 sections should always go to the executable file.
1833 2004-07-20 Chris Dearman <chris@mips.com>
1835 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
1836 prologue instructions.
1838 2007-07-20 Maciej W. Rozycki <macro@mips.com>
1840 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
1843 2007-07-20 Chris Dearman <chris@mips.com>
1844 Maciej W. Rozycki <macro@mips.com>
1846 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
1849 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
1850 Daniel Jacobowitz <dan@codesourcery.com>
1852 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
1853 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
1855 * NEWS: Mention gdbserver DLL support.
1857 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
1859 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
1861 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
1863 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
1866 2007-07-13 Kevin Buettner <kevinb@redhat.com>
1868 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
1871 2007-07-12 Kevin Buettner <kevinb@redhat.com>
1873 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
1874 (mep_analyze_prologue): Add case for BRA instruction.
1876 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
1878 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
1880 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
1882 * breakpoint.c: Include "top.h".
1883 (breakpoint_1): Don't set convenience variable $_ if server prefix
1885 (_initialize_breakpoint): Describe this behaviour in command help.
1887 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
1889 * solib-target.c (library_list_start_segment): Cast address to
1892 2007-07-06 Mark Kettenis <kettenis@gnu.org>
1894 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
1895 for terminated processes.
1897 2007-07-05 Michael Snyder <msnyder@access-company.com>
1899 * event-top.c (cli_command_loop): Prompt string can (and should)
1900 be freed after call to readline (Coverity). Also move local var
1901 declarations into block where they are used.
1903 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
1904 should) be freed after call to readline (Coverity). Also move
1905 local var declarations into block where they are used.
1907 2007-07-03 Andreas Schwab <schwab@suse.de>
1909 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
1912 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
1913 Thiago Bauermann <bauerman@br.ibm.com>
1914 Joseph S. Myers <joseph@codesourcery.com>
1915 Daniel Jacobowitz <dan@codesourcery.com>
1917 * remote.c (remote_check_symbols): Use
1918 gdbarch_convert_from_func_ptr_addr.
1919 * infcall.c (find_function_addr): Handle function descriptors
1920 without debugging information.
1921 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
1922 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
1923 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
1924 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
1925 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
1926 allow SEC_CODE and SEC_DATA.
1927 (enable_break): Update calls. Pass current_target to solib_add.
1928 Use gdbarch_convert_from_func_ptr_addr.
1930 2007-07-03 Ilko Iliev <iliev@ronetix.at>
1931 Daniel Jacobowitz <dan@codesourcery.com>
1933 * symfile.c (print_transfer_performance): Avoid integer overflow.
1936 2007-07-03 Markus Deuling <deuling@de.ibm.com>
1938 * cp-namespace.c (lookup_symbol_file): Add block to
1939 lookup_symbol_global call.
1940 * Makefile.in (solist_h): Add dependency on symtab header.
1941 (symtab.o): Add dependency on solist header.
1942 * solib.c (solib_global_lookup): New function.
1943 * solib-svr4.c (scan_dyntag): Likewise.
1944 (elf_locate_base): Call helper routine scan_dyntag.
1945 (elf_lookup_lib_symbol): New function.
1946 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
1947 * solist.h (symtab.h): New include.
1948 (struct target_so_ops): New member lookup_lib_global_symbol.
1949 (solib_global_lookup): New prototype.
1950 * symtab.c: New include solist.h.
1951 (lookup_objfile_from_block): New function.
1952 (lookup_global_symbol_from_objfile): New function.
1953 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
1954 (lookup_symbol_global): Call library-specific lookup procedure.
1955 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
1957 * NEWS: Document framework.
1959 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1961 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
1964 * cli/cli-script.c (build_command_line): Update NULL check.
1966 2007-07-02 Michael Snyder <msnyder@access-company.com>
1968 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
1970 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1972 * Makefile.in (XMLFILES): Add library-list.dtd.
1973 (ALLDEPFILES): Add solib-target.o.
1974 (solib-target.o): New rule.
1975 * remote.c (PACKET_qXfer_libraries): New constant.
1976 (remote_protocol_features): Add qXfer:libraries:read.
1977 (remote_wait): Recognize library stop replies.
1978 (remote_async_wait): Likewise. Fix typo.
1979 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1980 (init_remote_async_ops): Fix typo.
1981 (_initialize_remote): Register "set remote library-info-packet".
1982 * solib-som.c (som_current_sos): Set addr_low and addr_high.
1983 * solib-target.c: New file.
1984 * solib.c (solib_map_sections): Use addr_low and addr_high instead
1986 (info_sharedlibrary_command): Likewise.
1987 (solib_add_library, solib_remove_library): New.
1988 * solist.h (struct so_list): Replace textsection with addr_low and
1990 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
1991 * NEWS: Describe new qXfer:libraries:read and shared library
1993 * features/library-list.dtd: New.
1995 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1997 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
1998 (start_remote): Use STOP_QUIETLY_REMOTE.
1999 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
2000 support on a SOLIB_ADD definition. Update breakpoints_inserted.
2001 Update to match shared library event breakpoint support. Only
2002 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
2003 (normal_stop): Handle TARGET_WAITKIND_LOADED.
2004 * fork-child.c (startup_inferior): Do not set
2005 inferior_ignoring_startup_exec_events
2006 * inferior.h (inferior_ignoring_startup_exec_events): Delete
2008 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
2010 2007-07-02 Markus Deuling <deuling@de.ibm.com>
2012 * breakpoint.c (insert_bp_location): Remove dead code
2013 (DISABLE_UNSETTABLE_BREAK).
2014 (disable_breakpoints_in_shlibs)
2015 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
2017 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2019 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
2020 Call insert_bp_location.
2022 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
2024 * core-regset.c (fetch_core_registers): Work around gcc 3.4
2027 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2029 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
2032 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2034 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
2035 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
2036 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
2037 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
2038 to display_gdb_prompt.
2040 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2043 * target.c (memory_xfer_partial): Do not continue past targets with
2046 2007-06-30 Andreas Schwab <schwab@suse.de>
2048 * m68k-tdep.c (m68k_ps_type): New.
2049 (m68k_init_types): New.
2050 (m68k_register_type): Use m68k_ps_type for PS register.
2051 (_initialize_m68k_tdep): Call m68k_init_types.
2053 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
2054 from the generic m68k arch.
2056 2007-06-28 Michael Snyder <msnyder@access-company.com>
2058 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
2061 * linux-thread-db.c (thread_db_get_thread_local_address): Add
2062 gdb_assert before using return value of find_thread_pid (Coverity).
2064 * source.c (unset_substitute_path_command): Plug leak (Coverity).
2066 * cli/cli-script.c (build_command_line): Add null pointer guard
2069 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2071 * linux-thread-db.c (thread_db_attach): Delete.
2072 (thread_db_detach): Typo fix. Call target_mourn_inferior
2073 instead of fixing up proc_handle.
2074 (have_threads_callback, have_threads): New functions.
2075 (thread_db_wait): Remove dead proc_handle.pid check. Only
2076 translate PTIDs if we have registered threads. Check for new
2077 threads if we have none.
2078 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
2079 (find_new_threads_callback): Only enable event reporting if TID == 0.
2080 (same_ptid_callback): New.
2081 (thread_db_get_thread_local_address): Check for new threads.
2082 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
2083 or to_post_startup_inferior.
2085 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2087 * infrun.c (adjust_pc_after_break): Do not assume software single-step
2088 is always active if SOFTWARE_SINGLE_STEP_P is true.
2089 (resume): Use gdbarch_software_single_step[_p] instead of
2090 SOFTWARE_SINGLE_STEP[_P].
2091 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
2093 * gdbarch.sh (software_single_step): Remove target macro.
2094 * gdbarch.h, gdbarch.c: Regenerate.
2096 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2098 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2099 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2100 (struct gdbarch_swap, struct gdbarch_swap_registration,
2101 struct gdbarch_swap_registry, gdbarch_swap_registry,
2102 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2103 current_gdbarch_swap_in_hack): Remove.
2104 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2105 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2106 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2107 (deprecated_current_gdbarch_select_hack): Likewise.
2108 * gdbarch.h, gdbarch.c: Regenerate.
2110 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2112 * infrun.c (clear_proceed_status): Clean up stop_registers.
2113 (normal_stop): Allocate regcache for stop_registers.
2114 (struct inferior_status): Remove stop_registers member.
2115 (save_inferior_status): Do not save stop_registers.
2116 (restore_inferior_status): Do not restore stop_registers.
2117 (discard_inferior_status): Do not discard stop_registers.
2118 (build_infrun): Remove.
2119 (_initialize_infrun): Do not swap stop_registers.
2121 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2123 * remote.c (remote_address_masked): If remote_address_size is zero,
2124 default to target address size.
2125 (build_remote_gdbarch_data): Remove.
2126 (_initialize_remote): Do not swap remote_address_size.
2128 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2130 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2131 builtin_type_char, builtin_type_short, builtin_type_int,
2132 builtin_type_long, builtin_type_signed_char,
2133 builtin_type_unsigned_char, builtin_type_unsigned_short,
2134 builtin_type_unsigned_int, builtin_type_unsigned_long,
2135 builtin_type_float, builtin_type_double, builtin_type_long_double,
2136 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2137 builtin_type_bool, builtin_type_long_long,
2138 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2139 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2140 variable declaration with compatibility macro.
2141 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2142 builtin_type_char, builtin_type_short, builtin_type_int,
2143 builtin_type_long, builtin_type_signed_char,
2144 builtin_type_unsigned_char, builtin_type_unsigned_short,
2145 builtin_type_unsigned_int, builtin_type_unsigned_long,
2146 builtin_type_float, builtin_type_double, builtin_type_long_double,
2147 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2148 builtin_type_bool, builtin_type_long_long,
2149 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2150 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2151 (build_gdbtypes): Remove.
2152 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2153 opaque-type-resolution command here. Do not call
2154 deprecated_register_gdbarch_swap.
2156 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2158 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2159 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2160 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2162 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2163 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2164 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2165 (build_parse): Remove.
2166 (_initialize_parse): Do not call build_parse. Do not register
2167 msym_ types for gdbarch-swapping.
2169 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2170 instead of creating private type.
2172 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2173 (_initialize_xcoffread): Do not initialized them.
2174 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2176 * mdebugread.c (nodebug_func_symbol_type): Remove.
2177 (nodebug_var_symbol_type): Remove.
2178 (_initialize_mdebugread): Do not initialize them.
2179 (parse_symbol): Use builtin nodebug_ type instead of them.
2180 (parse_procedure): Likewise.
2182 2007-06-21 Chris Dearman <chris@mips.com>
2184 * printcmd.c (do_one_display): If display/i, start with an initial
2185 line feed to avoid bad layout if there is a branch delay slot.
2187 2007-06-21 Nigel Stephens <nigel@mips.com>
2188 Maciej W. Rozycki <macro@mips.com>
2190 * disasm.c (gdb_print_insn): Return the number of branch delay
2191 slot instructions too.
2192 * disasm.h (gdb_print_insn): Update prototype.
2193 * printcmd.c (branch_delay_insns): New variable to record the
2194 number of delay slot instructions after disassembling a branch.
2195 (print_formatted): Record the number of branch delay slot
2197 (do_examine): When disassembling, if the last instruction
2198 disassembled has any branch delay slots, then bump the count so
2199 that they get disassembled too.
2200 * tui/tui-disasm.c (tui_disassemble): Update the call to
2202 * NEWS: Document the new behaviour.
2204 2007-06-21 Andreas Schwab <schwab@suse.de>
2206 * regcache.c (write_pc_pid): Restore missing else.
2208 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2210 * regcache.c (regcache_print): Use get_current_regcache ()
2211 instead of current_regcache.
2213 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2216 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2217 instead of bfd_make_section_anyway.
2218 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2219 when clearing SEC_LOAD.
2221 2007-06-19 Joseph Myers <joseph@codesourcery.com>
2223 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2224 registers for big-endian.
2226 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2228 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2229 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2230 * gdbarch.c, gdbarch.h: Regenerate.
2232 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2234 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2235 gdbarch_believe_pcc_promotion.
2236 * stabsread.c (define_symbol): Likewise.
2237 Remove unnecessary definition.
2238 * coffread.c (process_coff_symbol): Remove unnecessary code.
2239 * gdbarch.c, gdbarch.h: Regenerate.
2241 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2243 * configure.ac: Do not use ${objdir}.
2244 * configure: Regenerated.
2246 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2248 * gdbarch.sh (deprecated_register_size): Remove.
2249 * gdbarch.h, gdbarch.c: Regenerate.
2251 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2252 by INT_REGISTER_SIZE.
2253 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2254 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2255 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2256 set_gdbarch_deprecated_register_size.
2258 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2260 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2261 gdbarch_deprecated_fp_regnum.
2262 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2263 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2264 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2265 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2267 * gdbarch.c, gdbarch.h: Regenerate.
2269 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2271 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2272 gdbarch_extract_return_value.
2273 * value.c (generic_use_struct_convention): Likewise (comment).
2274 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2275 * arch-utils.c (legacy_return_value): Likewise.
2276 * arch-utils.h (legacy_return_value): Likewise (comment).
2277 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2278 gdbarch_store_return_value.
2279 * stack.c (return_command): Likewise (comment).
2280 * arch-utils.h (legacy_return_value): Likewise (comment).
2281 * arch-utils.c (legacy_return_value): Likewise.
2282 * gdbarch.c, gdbarch.h: Regenerate.
2284 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2286 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2287 gdbarch_deprecated_use_struct_convention.
2288 * arch-utils.c (legacy_return_value): Likewise.
2289 * gdbarch.c, gdbarch.h: Regenerate.
2291 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2293 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2294 gdbarch_deprecated_function_start_offset.
2295 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2296 * linespec.c (minsym_found): Likewise.
2297 * infrun.c (handle_inferior_event): Likewise.
2298 * infcall.c (find_function_addr): Likewise.
2299 * cli/cli-cmds.c (disassemble_command): Likewise.
2300 * gdbarch.c, gdbarch.h: Regenerate.
2302 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2304 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2305 gdbarch_deprecated_reg_struct_has_addr.
2306 * infcall.c (call_function_by_hand): Likewise.
2307 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2308 * gdbarch_deprecated_reg_struct_has_addr_p.
2309 * infcall.c (call_function_by_hand): Likewise.
2310 * gdbarch.c, gdbarch.h: Regenerate.
2312 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2314 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2315 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2316 (sh_gdbarch_init): Remove
2317 set_gdbarch_deprecated_extract_struct_value_address.
2318 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2319 (sh64_gdbarch_init): Remove
2320 set_gdbarch_deprecated_extract_struct_value_address.
2321 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2322 (ia64_gdbarch_init): Remove
2323 set_gdbarch_deprecated_extract_struct_value_address.
2324 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2325 (frv_gdbarch_init): Remove
2326 set_gdbarch_deprecated_extract_struct_value_address.
2327 * gdbarch.c, gdbarch.h: Regenerate.
2329 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2331 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2332 * v850-tdep.c (v850_unwind_sp): Likewise.
2333 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2334 * stack.c (frame_info): Likewise.
2335 * stabsread.c (define_symbol): Likewise.
2336 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2337 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2338 (sh_unwind_sp): Likewise.
2339 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2340 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2341 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2342 (rs6000_frame_cache): Likewise.
2343 * rs6000-nat.c (store_register): Likewise.
2344 * remote-mips.c (mips_wait): Likewise.
2345 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2346 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2347 (ppc64_sysv_abi_push_dummy_call): Likewise.
2348 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2349 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2350 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2351 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2352 * m32r-rom.c (m32r_supply_register): Likewise.
2353 * frame.c (frame_sp_unwind): Likewise.
2354 * mips-tdep.c (mips_insn16_frame_cache)
2355 (mips_insn32_frame_cache): Likewise (comment).
2356 * m68klinux-nat.c (supply_gregset): Likewise.
2357 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2358 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2359 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2360 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2361 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2362 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2363 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2364 (cris_register_type, crisv32_register_type)
2365 (cris_dwarf2_frame_init_reg): Likewise.
2366 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2367 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2368 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2369 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2371 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2372 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2373 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2374 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2375 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2376 * v850-tdep.c (v850_unwind_pc): Likewise.
2377 * stack.c (frame_info): Likewise.
2378 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2379 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2380 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2381 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2382 (sh_dsp_show_regs): Likewise.
2383 * shnbsd-tdep.c (shnbsd_supply_gregset)
2384 (shnbsd_collect_gregset): Likewise.
2385 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2386 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2387 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2388 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2389 (6000_register_reggroup_p, rs6000_unwind_pc)
2390 (rs6000_frame_cache): Likewise.
2391 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2392 (rs6000_store_inferior_registers): Likewise.
2393 * remote-mips.c (mips_wait, mips_load): Likewise.
2394 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2395 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2396 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2397 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2398 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2399 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2400 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2401 (store_ppc_registers, fill_gregset): Likewise.
2402 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2403 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2404 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2405 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2406 * m68klinux-nat.c (supply_gregset): Likewise.
2407 * irix5-nat.c (fill_gregset): Likewise.
2408 * i386-tdep.c (i386_unwind_pc): Likewise.
2409 * i386-linux-nat.c (i386_linux_resume): Likewise.
2410 * frame.c (get_prev_frame_1): Likewise.
2411 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2412 * dbug-rom.c (dbug_supply_register): Likewise.
2413 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2414 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2415 (cris_register_type, crisv32_register_type, crisv32_register_name)
2416 (cris_dwarf2_frame_init_reg, find_step_target)
2417 (cris_software_single_step, cris_supply_gregset)
2418 (cris_regnums): Likewise.
2419 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2420 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2421 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2422 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2423 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2425 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2426 * dbug-rom.c (dbug_supply_register): Likewise.
2427 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2428 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2429 * win32-nat.c (win32_resume): Likewise.
2430 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2431 * m68k-tdep.c (m68k_register_type): Likewise.
2432 * m68klinux-nat.c (supply_gregset): Likewise.
2434 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2435 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2436 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2437 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2438 (fv_reg_base_num, dr_reg_base_num): Likewise.
2439 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2440 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2441 (sh64_extract_return_value, sh64_store_return_value)
2442 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2443 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2444 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2445 (invalidate_cache): Likewise.
2446 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2447 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2448 (mipsnbsd_fill_fpreg): Likewise.
2449 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2450 (mipsnbsd_store_inferior_registers): Likewise.
2451 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2452 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2453 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2454 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2455 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2456 (fill_fpregset): Likewise.
2457 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2458 * i386-tdep.h (struct_return): Likewise (comment).
2459 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2460 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2461 (go32_store_registers): Likewise.
2462 * alpha-tdep.c (alpha_next_pc): Likewise.
2463 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2464 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2465 (alphabsd_store_inferior_registers): Likewise.
2466 * core-regset.c (fetch_core_registers): Likewise.
2467 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2469 * gdbarch.c, gdbarch.h: Regenerate.
2471 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2473 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2474 * dbxread.c (start_psymtab): Check HAVE_ELF.
2475 (aout_sym_fns): Likewise.
2476 * elfread.c (elf_symfile_segments): New.
2477 (elf_sym_fns): Add elf_symfile_segments.
2478 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2479 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2480 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2481 * somread.c (som_sym_fns): Use default_symfile_segments.
2482 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2483 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2484 (default_symfile_segments): New function.
2485 (syms_from_objfile): Update call to find_sym_fns.
2486 (symfile_get_segment_data, free_symfile_segment_data): New.
2487 (symfile_map_offsets_to_segments): New.
2488 (symfile_find_segment_sections): New.
2489 * symfile.h (struct symfile_segment_data): New.
2490 (struct sym_fns): Add sym_segments.
2491 (default_symfile_segments, symfile_get_segment_data)
2492 (free_symfile_segment_data): New prototypes.
2493 (symfile_map_offsets_to_segments): Likewise.
2494 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2495 * Makefile.in (COMMON_OBS): Remove elfread.o.
2496 (elf_internal_h): New.
2497 (elfread.o): Update.
2498 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2500 * config.in, configure: Regenerated.
2501 * NEWS: Mention qOffsets changes.
2503 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2505 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2506 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2507 Replace global variable declaration with compatibility macro.
2508 (struct builtin_m2_type): New data type.
2509 (builtin_m2_type): Add prototype.
2510 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2511 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2512 Remove global variables.
2513 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2514 (build_m2_types): New function.
2515 (m2_type_data): New variable.
2516 (builtin_m2_type): New function.
2517 (_initialize_m2_language): Do not build data types. Register
2518 m2_type_data per-gdbarch data.
2520 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2522 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2523 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2524 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2525 builtin_type_f_real_s8, builtin_type_f_real_s16,
2526 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2527 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2528 variable declaration with compatibility macro.
2529 (struct builtin_f_type): New data type.
2530 (builtin_f_type): Add prototype.
2531 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2532 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2533 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2534 builtin_type_f_real_s8, builtin_type_f_real_s16,
2535 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2536 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2537 (f_language_arch_info): Use builtin_f_type instead of variables.
2538 (build_fortran_types): Build builtin_f_type structure instead of
2539 setting global type variables.
2540 (f_type_data): New variable.
2541 (builtin_f_type): New function.
2542 (_initialize_f_language): Do not call build_fortran_types. Do not
2543 swap global type variables. Register f_type_data per-gdbarch data.
2545 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2547 * f-lang.c (_initialize_f_language): Do not initialize or
2548 swap builtin_type_string.
2550 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2552 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2553 value_of_builtin_frame_reg): Remove.
2554 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2555 inactive call to value_of_builtin_frame_reg.
2557 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2559 * gdbarch.sh (bfd_vma_bit): Remove.
2560 * gdbarch.c, gdbarch.h: Regenerate.
2562 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2563 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2564 (build_gdbtypes): Do not initialize it.
2565 (_initialize_gdbtypes): Do not swap it.
2567 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2569 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2570 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2571 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2572 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2573 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2574 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2575 builtin_type_vec64, builtin_type_vec128): Remove.
2576 (init_simd_type): Remove.
2577 (init_vector_type): Make global.
2578 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2579 (build_gdbtypes): Do not build vector types.
2580 (_initialize_gdbtypes): Do not swap vector types.
2581 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2582 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2583 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2584 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2585 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2586 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2587 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2588 (init_vector_type): Add prototype.
2590 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2591 i386_sse_type members.
2592 (i386_mmx_type, i386_sse_type): Change from variables to functions.
2593 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2594 (i386_init_types): Do not build vector types.
2595 (i386_mmx_type, i386_sse_type): New functions.
2596 (i386_register_type): Call them instead of using global variables.
2597 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2598 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2599 of using global variable.
2601 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2602 and ppc_builtin_type_vec128 members.
2603 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2604 (rs6000_builtin_type_vec128): Likewise.
2605 (rs6000_register_type): Call them instead of using builtin_type_vec64
2606 and builtin_type_vec128.
2607 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2609 * spu-tdep.c (struct gdbarch_tdep): New data type.
2610 (spu_builtin_type_vec128): Remove variable.
2611 (spu_builtin_type_vec128): New function.
2612 (spu_register_type): Call it instead of using global variable.
2613 (spu_gdbarch_init): Allocate tdep structure.
2614 (spu_init_vector_type): Remove function.
2615 (_initialize_spu_tdep): Do not call it.
2617 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2619 * amd64-tdep.c (struct amd64_register_info): Remove.
2620 (amd64_register_info): Remove.
2621 (amd64_register_names): New static variable.
2622 (AMD64_NUM_REGS): Use amd64_register_names instead of
2623 amd64_register_info.
2624 (amd64_register_name): Likewise.
2625 (amd64_register_type): Do not refer to amd64_register_info.
2627 * s390-tdep.c (struct s390_register_info): Remove.
2628 (s390_register_info): Remove.
2629 (s390_register_name): Do not refer to s390_register_info.
2630 (s390_register_type): Likewise.
2632 * sparc64-tdep.c (struct sparc64_register_info): Remove.
2633 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2634 (sparc64_register_names, sparc64_pseudo_register_names): New.
2635 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2636 sparc64_register_names and sparc64_pseudo_register_names instead of
2637 sparc64_register_info and sparc64_pseudo_register_info.
2638 (sparc64_register_name): Likewise.
2639 (sparc64_register_type): Do not refer to sparc64_register_info
2640 and sparc64_pseudo_register_info.
2642 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2644 * c-lang.c (cplus_builtin_types): Remove.
2645 (enum cplus_primitive_types): New data type.
2646 (cplus_language_arch_info): New function.
2647 (cplus_language_defn): Set la_language_arch_info member. Do not set
2648 la_builtin_type_vector and string_char_type members.
2650 * f-lang.c (f_builtin_types): Remove.
2651 (enum f_primitive_types): New data type.
2652 (f_language_arch_info): New function.
2653 (f_language_de): Set la_language_arch_info member. Do not set
2654 la_builtin_type_vector and string_char_type members.
2656 * m2-lang.c (m2_builtin_types): Remove.
2657 (enum m2_primitive_types): New data type.
2658 (m2_language_arch_info): New function.
2659 (m2_language_defn): Set la_language_arch_info member. Do not set
2660 la_builtin_type_vector and string_char_type members.
2662 * objc-lang.c (objc_builtin_types): Remove.
2663 (objc_language): Set la_language_arch_info member. Do not set
2664 la_builtin_type_vector and string_char_type members.
2666 * p-lang.c (pascal_builtin_types): Remove.
2667 (enum pascal_primitive_types): New data type.
2668 (pascal_language_arch_info): New function.
2669 (pascal_language_defn): Set la_language_arch_info member. Do not set
2670 la_builtin_type_vector and string_char_type members.
2672 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2674 * regcache.c (struct regcache): Add ptid_t member.
2675 (regcache_xmalloc): Initialize it.
2676 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
2677 (regcache_dup): Likewise.
2678 (regcache_dup_no_passthrough): Likewise.
2679 (current_regcache): Make static.
2680 (registers_ptid): Remove variable.
2681 (get_thread_regcache): New function.
2682 (get_current_regcache): New function.
2683 (registers_changed): Implement by freeing current regcache.
2684 (regcache_raw_read): Do not refer to current_regcache. Set
2685 inferior_ptid to regcache->ptid while calling target routines.
2686 (regcache_raw_write): Likewise.
2687 (regcache_raw_supply): Do not refer to current_regcache.
2688 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
2689 (write_pc_pid): Likewise.
2690 (build_regcache): Remove.
2691 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
2692 or deprecated_register_gdbarch_swap. Do not initialize
2694 * regcache.h (get_current_regcache): Add prototype.
2695 (get_thread_regcache): Likewise.
2696 (current_regcache): Remove declaration.
2698 * corelow.c (core_open): Replace current_regcache by
2699 get_current_regcache ().
2700 * frame.c (frame_pop): Likewise.
2701 (put_frame_register): Likewise.
2702 (get_current_frame, create_new_frame): Likewise.
2703 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
2704 * stack.c (return_command): Likewise.
2705 * infcall.c (call_function_by_hand): Likewise.
2706 * infrun.c (resume): Likewise.
2707 (save_inferior_status, restore_inferior_status): Likewise.
2708 * linux-fork.c (fork_load_infrun_state): Likewise.
2709 (fork_save_infrun_state): Likewise.
2710 * win32-nat.c (win32_resume): Likewise.
2711 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
2712 * monitor.c (monitor_wait): Likewise.
2713 * remote.c (remote_wait): Likewise.
2714 * remote-mips.c (mips_wait): Likewise.
2716 * bsd-kvm.c (bsd_kvm_open): Likewise
2717 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
2718 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
2719 * i386-linux-nat.c (i386_linux_resume): Likewise.
2720 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2721 (ia64_linux_stopped_data_address): Likewise.
2723 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
2724 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2725 * mep-tdep.c (current_me_module, current_options): Likewise.
2726 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
2728 * linux-nat.c (linux_nat_do_thread_registers): Use thread
2729 regcache instead of current_regcache. Call target_fetch_registers.
2730 (linux_nat_corefile_thread_callback): Update call site.
2731 (linux_nat_do_registers): Likewise.
2732 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
2733 of current_regcache.
2734 (procfs_make_note_section): Likewise.
2735 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
2736 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2737 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
2738 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2740 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2742 * regcache.c (read_register, read_register_pid): Remove.
2743 (write_register, write_register_pid): Likewise.
2744 * regcache.h (read_register, read_register_pid): Remove prototype.
2745 (write_register, write_register_pid): Likewise.
2747 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2749 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
2750 (write_pc): Likewise. Remove default implementation, add predicate.
2751 * gdbarch.c, gdbarch.h: Regenerate.
2752 * regcache.c (read_pc_pid): Use current regcache instead of calling
2754 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
2756 (generic_target_write_pc): Remove.
2757 * inferior.h (generic_target_write_pc): Remove.
2758 * frv-tdep.c (frv_gdbarch_init): Do not install it.
2759 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2760 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2761 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2762 * sh-tdep.c (sh_gdbarch_init): Likewise.
2763 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2765 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
2766 argument. Use REGCACHE instead of calling read_register_pid.
2767 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
2768 * hppa-tdep.c (hppa_read_pc): Likewise.
2769 * hppa-tdep.h (hppa_read_pc): Likewise.
2770 * ia64-tdep.c (ia64_read_pc): Likewise.
2771 * m32r-tdep.c (m32r_read_pc): Likewise.
2772 * mep-tdep.c (mep_read_pc): Likewise.
2773 * mn10300-tdep.c (mn10300_read_pc): Likewise.
2774 * spu-tdep.c (spu_read_pc): Likewise.
2776 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
2777 argument. Use REGCACHE instead of calling write_register_pid.
2778 * avr-tdep.c (avr_write_pc): Likewise.
2779 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
2780 * hppa-tdep.c (hppa_write_pc): Likewise.
2781 * hppa-tdep.h (hppa_write_pc): Likewise.
2782 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
2783 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
2784 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
2785 * ia64-tdep.c (ia64_write_pc): Likewise.
2786 * ia64-tdep.h (ia64_write_pc): Likewise.
2787 * m32r-tdep.c (m32r_write_pc): Likewise.
2788 * m88k-tdep.c (m88k_write_pc): Likewise.
2789 * mep-tdep.c (mep_write_pc): Likewise.
2790 * mips-tdep.c (mips_write_pc): Likewise.
2791 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2792 * mn10300-tdep.c (mn10300_write_pc): Likewise.
2793 * sparc-tdep.c (sparc_write_pc): Likewise.
2794 * spu-tdep.c (spu_write_pc): Likewise.
2796 * mips-tdep.c (read_signed_register): Remove.
2797 (read_signed_register_pid): Likewise.
2798 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
2799 Use REGCACHE instead of calling read_signed_register_pid.
2801 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2803 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
2804 * gdbarch.c, gdbarch.h: Regenerate.
2805 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
2806 (push_dummy_code): Likewise. Pass it to callee.
2807 (call_function_by_hand): Pass current regcache to push_dummy_code.
2809 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
2810 argument. Use it instead of current_regcache.
2812 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
2813 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2815 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2817 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
2818 * gdbarch.c, gdbarch.h: Regenerate.
2819 * infrun.c (handle_inferior_event): Pass current frame to
2820 gdbarch_get_longjmp_target.
2822 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
2823 Read registers from FRAME instead of using read_register.
2824 Use get_frame_arch instead of current_gdbarch.
2825 * arm-tdep.c (arm_get_longjmp_target): Likewise.
2826 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2827 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2828 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
2829 (mips64_linux_get_longjmp_target): Likewise.
2830 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2832 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2834 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
2835 * gdbarch.c, gdbarch.h: Regenerate.
2836 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
2837 * arch-utils.h (generic_skip_trampoline_code): Likewise.
2838 * infrun.c (handle_inferior_event): Pass current frame to
2839 gdbarch_skip_trampoline_code and skip_language_trampoline.
2841 * language.c (unk_lang_trampoline): Add FRAME argument.
2842 (skip_language_trampoline): Add FRAME argument. Pass it to
2843 skip_trampoline callback.
2844 * language.h: Add forward declaration of struct frame_info.
2845 (struct language_defn): Add FRAME argument to skip_trampoline.
2846 (skip_language_trampoline): Add FRAME argument.
2847 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
2848 to skip_trampoline callback.
2849 * cp-abi.h: Add forward declaration of struct frame_info.
2850 (cplus_skip_trampoline): Add FRAME argument.
2851 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
2852 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
2853 to gdbarch_skip_trampoline_code.
2854 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
2855 to gdbarch_skip_trampoline_code.
2857 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
2858 * symtab.h (find_solib_trampoline_target): Likewise.
2859 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
2860 find_solib_trampoline_target.
2862 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
2863 from FRAME instead of calling read_register.
2865 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
2866 argument. Read registers from FRAME instead of using read_register.
2867 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
2868 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
2870 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
2873 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
2875 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
2876 registers from FRAME instead of using read_signed_register.
2878 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
2880 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
2881 instead of using read_register.
2882 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
2883 ppc64_standard_linkage_target.
2884 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
2885 Pass it to find_solib_trampoline_target. Read registers from FRAME
2886 instead of using read_register.
2888 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
2891 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2893 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
2895 * gdbarch.c, gdbarch.h: Regenerate.
2896 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
2898 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
2899 registers from FRAME instead of using read_register.
2900 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2901 to alpha_next_pc. Use get_frame_pc instead of read_pc.
2902 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
2905 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
2906 from FRAME instead of using read_register.
2907 (thumb_get_next_pc): Likewise.
2908 (arm_get_next_pc): Likewise.
2909 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2910 to arm_get_next_pc. Use get_frame_pc instead of read_register.
2911 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
2914 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
2915 from FRAME instead of using read_register.
2916 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2917 to find_step_target.
2919 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
2920 from FRAME instead of using read_register / read_signed_register.
2921 (extended_mips16_next_pc): Likewise.
2922 (mips16_next_pc): Likewise.
2923 (mips_next_pc): Likewise.
2924 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2925 to mips_next_pc. Use get_frame_pc instead of read_pc.
2926 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
2929 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
2930 of current frame. Read registers from FRAME.
2931 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
2932 branch_dest. Use get_frame_pc instead of read_pc.
2933 (rs6000_software_single_step): Likewise.
2934 (bl_to_blrl_insn_p): Do not call branch_dest.
2935 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
2938 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
2939 Read registers from FRAME instead of current regcache.
2940 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
2941 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
2942 * sparc-tdep.c (sparc_address_from_register): Remove.
2943 (sparc_analyze_control_transfer): Pass FRAME argument instead of
2944 GDBARCH. Pass FRAME to step_trap callback.
2945 (sparc_step_trap): Add FRAME argument.
2946 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2947 to sparc_analyze_control_transfer. Read registers from FRAME instead
2948 of calling sparc_address_from_register.
2949 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
2951 (sparc_address_from_register): Remove prototype.
2952 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
2953 (sparcnbsd_step_trap): Add FRAME argument.
2955 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
2956 by FRAME. Read registers from FRAME instead of REGCACHE.
2958 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2960 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
2961 instead of calling read_register.
2963 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
2964 calling write_register.
2966 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
2967 calling write_register.
2969 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
2970 instead of calling read_register.
2971 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
2972 instead of calling read_register and write_register.
2974 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
2975 instead of current_regcache.
2977 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
2978 of calling write_register.
2979 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
2980 parameter instead of current_regcache.
2982 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
2983 instead of calling read_register.
2984 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
2985 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
2986 (mips_n32n64_push_dummy_call): Likewise.
2987 (mips_o32_push_dummy_call): Likewise.
2988 (mips_o64_push_dummy_call): Likewise.
2990 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
2991 parameter instead of current_regcache.
2993 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
2994 Use it instead of read_register and write_register.
2995 (xtensa_register_read_masked): Likewise.
2996 (xtensa_pseudo_register_read): Update call.
2997 (xtensa_pseudo_register_write): Likewise.
2998 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
2999 instead of calling read_register.
3000 (xtensa_push_dummy_call): Update comment.
3002 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3004 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
3005 by frame_unwind_register_signed calls.
3006 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
3007 frame allocations when called with NULL NEXT_FRAME parameter.
3008 (read_next_frame_reg): Remove.
3010 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
3011 instead of reading the FPSCR register.
3012 (sh_frame_cache): Pass unwound FPSCR register value to
3013 sh_analyze_prologue.
3014 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
3016 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
3017 instead of reading the CTBP register.
3018 (v850_frame_cache): Pass unwound CTBP register value to
3019 v850_analyze_prologue.
3021 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3023 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
3024 * sh-tdep.c (sh_show_regs): Likewise.
3025 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
3026 (sh_generic_show_regs): Add FRAME parameter. Use register
3027 values from that frame instead of calling read_register.
3028 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
3029 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
3030 sh_dsp_show_regs): Likewise.
3031 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
3032 sh64_show_regs): Likewise.
3034 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3036 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
3037 current regcache instead of calling read_register.
3039 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3041 * mep-tdep.c (current_me_module): Read from current regcache
3042 instead of calling read_register.
3043 (current_options): Likewise.
3045 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3047 * cris-tdep.c (cris_stopped_data_address): Read register values
3048 from current frame instead of calling read_register.
3049 * frv-tdep.c (frv_stopped_data_address): Likewise.
3051 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3053 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
3054 instead of write_register (PC_REGNUM, ...).
3056 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3058 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
3059 explaining why the PC adjustment code is necessary.
3061 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
3063 * m68k-tdep.h (enum m68k_flavour): New.
3064 (struct gdbarch_tdep): New fields
3065 float_return, flavour and fpregs_present.
3066 * m68k-tdep.c (m68k_register_type): Use
3067 fpregs_present and conditionalize floating
3068 registers type on flavour.
3069 (m68k_register_names): New.
3070 (m68k_register_name): Use the above.
3071 (m68k_convert_register_p): Consult fpregs_present.
3072 (m68k_register_to_value, m68k_value_to_register):
3073 Use register_type to obtain the type of floating
3075 (m68k_svr4_extract_return_value): Check tdep->float_return.
3076 Use register_type to get the type of floating
3078 (m68k_svr4_store_return_value): Likewise.
3079 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
3080 (m68k_analyze_register_saves): Likewise.
3081 (m68k_gdbarch_init): Extract infromation
3082 from XML description, if present. Guess coldfire by
3083 looking at the file, if present. Conditionalize
3084 setting of long double format. Set decr_pc_after_break
3085 to 2 on coldfire and fido. Enable XML-driven
3086 register description.
3087 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
3088 size of tdep->fpreg_type, as opposed to hardcoded value.
3089 * Makefile.in (m68k-tdep.o): Update dependencies.
3091 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3093 * NEWS: Mention "info spu" commands and qXfer:spu:read and
3094 qXfer:spu:write remote packet types.
3096 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3098 * xml-tdesc.c (tdesc_start_target): New.
3099 (target_attributes): New.
3100 (tdesc_elements): Use it.
3101 * features/gdb-target.dtd: Add #FIXED version attribute for
3104 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
3106 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3108 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
3110 * fork-child.c (fork_inferior): Update comment.
3112 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3114 * features/Makefile: Generate regformats for mips-linux and
3116 * features/sort-regs.xsl: Correct typo.
3117 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3118 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3121 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3123 * config/mips/linux.mh (TDEP_XML): New.
3124 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3125 * mips-linux-nat.c (mips_linux_register_addr): Handle
3126 MIPS_RESTART_REGNUM.
3127 (mips64_linux_register_addr): Likewise.
3128 (super_xfer_partial, mips_linux_xfer_partial): New.
3129 (_initialize_mips_linux_nat): Add them to the target_ops.
3130 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3131 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3132 (mips_linux_o32_sigframe_init)
3133 (mips_linux_n32n64_sigframe_init): Likewise.
3134 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3135 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3136 "org.gnu.gdb.mips.linux" feature.
3137 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3138 (mips_linux_restart_reg_p): New prototype.
3139 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3140 initialization routine.
3141 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3143 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3145 * Makefile.in (mips-tdep.o): Update.
3146 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3147 (mips_n32_n64_aliases, mips_register_aliases): New.
3148 (mips_register_name): Call tdesc_register_name.
3149 (mips_tdesc_register_reggroup_p): New.
3150 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3151 (mips_gdbarch_init): Add target-described register support.
3152 Register aliases for register names.
3153 * target-descriptions.c (tdesc_register_name): Make global.
3154 (tdesc_register_in_reggroup_p): New function, broken out from
3155 tdesc_register_reggroup_p.
3156 (tdesc_register_reggroup_p): Use it.
3157 * target-descriptions.h (tdesc_register_name)
3158 (tdesc_register_in_reggroup_p): New prototypes.
3159 * NEWS: Correct formatting. Mention MIPS register support.
3160 * features/mips-cp0.xml, features/mips-fpu.xml,
3161 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3162 features/mips64-cpu.xml: New files.
3164 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3166 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3167 * valops.c (value_cast): Likewise.
3168 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3169 * ui-out.c (ui_out_field_core_addr): Likewise.
3170 * tracepoint.c (tracepoints_info): Likewise.
3171 * symtab.c (print_msymbol_info): Likewise.
3172 * solib-irix.c (irix_current_sos)
3173 (irix_open_symbol_file_object): Likewise.
3174 * remote.c (build_remote_gdbarch_data): Likewise.
3175 * prologue-value.c (make_pv_area): Likewise.
3176 * procfs.c (info_mappings_callback): Likewise.
3177 * printcmd.c (print_scalar_formatted)
3178 (deprecated_print_address_numeric): Likewise.
3179 * memattr.c (mem_info_command): Likewise.
3180 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3181 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3182 * exec.c (print_section_info): Likewise.
3183 * dwarf2read.c (read_subrange_type): Likewise.
3184 * dwarf2loc.c (find_location_expression): Likewise.
3185 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3186 (signed_address_type, execute_stack_op): Likewise.
3187 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3188 * gdbarch.c, gdbarch.h: Regenerate.
3190 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3192 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3193 * arch-utils.c (show_architecture): Likewise.
3194 * remote-mips.c (mips_open): Likewise
3195 * nto-tdep.c (nto_find_and_open_solib)
3196 (nto_init_solib_absolute_prefix): Likewise.
3197 * nto-procfs (procfs_open): Likewise.
3198 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3199 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3200 * gdbarch.c, gdbarch.h: Regenerate.
3202 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3204 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3205 * gdbtypes.c (build_flt): Likewise.
3206 * gdbarch.c, gdbarch.h: Regenerate.
3208 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3210 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3211 gdbarch_breakpoint_from_pc.
3212 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3213 * remote.c (remote_insert_breakpoint)
3214 (remote_insert_hw_breakpoint): Likewise.
3215 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3216 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3217 * breakpoint.h (bp_target_info): Likewise (comment).
3218 * breakpoint.c (read_memory_nobpt): Likewise.
3219 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3220 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3221 * gdbarch.c, gdbarch.h: Regenerate.
3223 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3225 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3226 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3227 * solib-pa64.c (read_dynamic_info): Likewise.
3228 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3229 * solib.c (info_sharedlibrary_command): Likewise.
3230 * s390-nat.c (SUBOFF): Likewise.
3231 * p-valprint.c (pascal_val_print): Likewise.
3232 * procfs.c (info_proc_mappings): Likewise.
3233 * printcmd.c (decode_format): Likewise.
3234 * nto-tdep.c (nto_truncate_ptr): Likewise.
3235 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3236 (mips64_linux_get_longjmp_target): Likewise.
3237 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3238 * jv-valprint.c (java_value_print): Likewise.
3239 * jv-lang.c (get_java_object_header_size): Likewise.
3240 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3241 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3242 (hppa_hpux_unwind_adjust_stub): Likewise.
3243 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3244 * gdbtypes.c (make_pointer_type, make_reference_type)
3245 (smash_to_memberptr_type): Likewise.
3246 * gdbarch.c, gdbarch.h: Regenerate.
3248 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3250 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3251 (print_gp_register_row): Stop before printing a register bigger
3252 than the ABI register size.
3253 (mips_print_registers_info): Update call to mips_print_register.
3255 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3257 * expression.h (enum exp_opcode): Document a register name for
3259 * parse.c (write_dollar_variable): Write the register name for
3261 (operator_length_standard): Expect the register name following
3263 * ada-lang.c (resolve_subexp): Likewise.
3264 * ax-gdb.c (gen_expr): Likewise.
3265 * eval.c (evaluate_subexp_standard): Likewise.
3266 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3268 * tracepoint.c (encode_actions): Likewise.
3270 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3272 * utils.c (set_screen_size): Use INT_MAX for default columns.
3274 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3276 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3277 qXfer:spu:write packet types.
3279 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3281 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3282 * gdbarch.c, gdbarch.h: Regenerate.
3284 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3286 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3287 gdbarch_stab_reg_to_regnum.
3288 * stabsread.c (define_symbol): Likewise.
3289 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3290 gdbarch_ecoff_reg_to_regnum.
3291 * mdebugread.c (parse_symbol): Likewise.
3292 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3293 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3294 gdbarch_dwarf_reg_to_regnum.
3295 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3296 * coffread.c (process_coff_symbol): Likewise.
3297 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3298 gdbarch_dwarf2_reg_to_regnum.
3299 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3300 (locexpr_describe_location): Likewise.
3301 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3302 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3303 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3304 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3305 * gdbarch.c, gdbarch.h: Regenerate.
3307 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3309 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3310 gdbarch_smash_text_address.
3311 * somread.c (som_symtab_read): Likewise.
3312 * elfread.c (record_minimal_symbol): Likewise.
3313 * dbxread.c (process_one_symbol): Likewise.
3314 * coffread.c (coff_symtab_read): Likewise.
3315 * gdbarch.c, gdbarch.h: Regenerate.
3317 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3319 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3320 * findvar.c (value_from_register): Likewise.
3321 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3322 * valops.c (value_assign): Likewise.
3323 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3324 gdbarch_convert_register_p.
3325 * findvar.c (value_from_register): Likewise.
3326 * valops.c (value_assign): Likewise.
3327 * gdbarch.c, gdbarch.h: Regenerate.
3329 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3331 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3332 gdbarch_register_sim_regno.
3333 * sim-regno.h (sim_regno): Likewise (comment).
3334 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3335 * gdbarch.c, gdbarch.h: Regenerate.
3337 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3339 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3340 gdbarch_virtual_frame_pointer.
3341 * tracepoint.c (encode_actions): Likewise.
3342 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3343 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3344 * gdbarch.c, gdbarch.h: Regenerate.
3346 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3348 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3349 * p-lang.c (pascal_create_fundamental_type): Likewise.
3350 * objc-lang.c (objc_create_fundamental_type): Likewise.
3351 * mdebugread.c (_initialize_mdebugread): Likewise.
3352 * m2-lang.c (m2_create_fundamental_type)
3353 (_initialize_m2_language): Likewise.
3354 * gdbtypes.c (build_gdbtypes): Likewise.
3355 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3356 * doublest.c (floatformat_from_length): Likewise.
3357 * c-lang.c (c_create_fundamental_type): Likewise.
3358 * ada-lang.c (ada_create_fundamental_type)
3359 (ada_language_arch_info): Likewise.
3360 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3361 * value.c (unpack_double): Likewise (comment).
3362 * gdbtypes.c (build_gdbtypes): Likewise.
3363 * doublest.c (floatformat_from_length): Likewise.
3364 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3365 * valarith.c (value_binop): Likewise.
3366 * p-lang.c (pascal_create_fundamental_type): Likewise.
3367 * objc-lang.c (objc_create_fundamental_type): Likewise.
3368 * mdebugread.c (_initialize_mdebugread): Likewise.
3369 * m2-lang.c (m2_create_fundamental_type): Likewise.
3370 * gdbtypes.c (build_gdbtypes): Likewise.
3371 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3372 * doublest.c (floatformat_from_length): Likewise.
3373 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3374 * c-lang.c (c_create_fundamental_type): Likewise.
3375 * ada-lex.l (processReal): Likewise.
3376 * ada-lang.c (ada_create_fundamental_type)
3377 (ada_language_arch_info): Likewise.
3378 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3379 * value.c (unpack_double): Likewise (comment).
3380 * gdbtypes.c (build_gdbtypes): Likewise.
3381 * doublest.c (floatformat_from_length): Likewise.
3382 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3383 gdbarch_long_double_bit.
3384 * p-lang.c (pascal_create_fundamental_type): Likewise.
3385 * objc-lang.c (objc_create_fundamental_type): Likewise.
3386 * m2-lang.c (m2_create_fundamental_type): Likewise.
3387 * gdbtypes.c (build_gdbtypes): Likewise.
3388 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3389 * doublest.c (floatformat_from_length): Likewise.
3390 * c-lang.c (c_create_fundamental_type): Likewise.
3391 * ada-lex.l (processReal): Likewise.
3392 * ada-lang.c (ada_create_fundamental_type)
3393 (ada_language_arch_info): Likewise.
3394 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3395 gdbarch_long_double_format.
3396 * gdbtypes.c (build_gdbtypes): Likewise.
3397 * doublest.c (floatformat_from_length): Likewise.
3398 * gdbarch.c, gdbarch.h: Regenerate.
3400 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3402 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3403 * ada-lang.c (ada_create_fundamental_type)
3404 (ada_language_arch_info): Likewise.
3405 * c-lang.c (c_create_fundamental_type): Likewise.
3406 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3407 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3408 * m2-lang.c (m2_create_fundamental_type): Likewise.
3409 * objc-lang.c (objc_create_fundamental_type): Likewise.
3410 * p-lang.c (pascal_create_fundamental_type): Likewise.
3411 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3412 * c-exp.y (parse_number): Likewise.
3413 * objc-exp.y (parse_number): Likewise.
3414 * ada-lex.l (processInt): Likewise.
3415 * f-exp.y (parse_number): Likewise.
3416 * p-exp.y (parse_number): Likewise.
3417 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3418 (gdbtypes_post_init, build_gdbtypes): Likewise.
3419 * p-lang.c (pascal_create_fundamental_type): Likewise.
3420 * parse.c (build_parse): Likewise.
3421 * xcoffread.c (_initialize_xcoffread): Likewise.
3422 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3423 (read_range_type): Likewise.
3424 * objc-lang.c (objc_create_fundamental_type): Likewise.
3425 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3426 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3427 (m2_create_fundamental_type): Likewise.
3428 * c-lang.c (c_create_fundamental_type): Likewise.
3429 * coffread.c (coff_read_enum_type): Likewise.
3430 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3431 * dwarf2read.c (new_symbol): Likewise.
3432 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3433 * c-exp.y (parse_number): Likewise.
3434 * objc-exp.y (parse_number): Likewise.
3435 * ada-lex.l (processInt): Likewise.
3436 * f-exp.y (parse_number): Likewise.
3437 * p-exp.y (parse_number): Likewise.
3438 * valarith.c (value_binop): Likewise.
3439 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3440 * ada-lang.c (ada_create_fundamental_type)
3441 (ada_language_arch_info): Likewise.
3442 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3443 * symfile.c (TARGET_LONG_BYTES): Likewise.
3444 * p-lang.c (pascal_create_fundamental_type): Likewise.
3445 * objc-lang.c (objc_create_fundamental_type): Likewise.
3446 * m2-lang.c (m2_create_fundamental_type): Likewise.
3447 * f-lang.c (f_create_fundamental_type): Likewise.
3448 * c-lang.c (c_create_fundamental_type): Likewise.
3449 * coffread.c (decode_base_type): Likewise.
3450 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3451 * c-exp.y (parse_number): Likewise.
3452 * objc-exp.y (parse_number): Likewise.
3453 * p-exp.y (parse_number): Likewise.
3454 * ada-lang.c (ada_create_fundamental_type)
3455 (ada_language_arch_info): Likewise.
3456 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3457 * stabsread.c (read_range_type): Likewise.
3458 * p-lang.c (pascal_create_fundamental_type): Likewise.
3459 * objc-lang.c (objc_create_fundamental_type): Likewise.
3460 * m2-lang.c (m2_create_fundamental_type): Likewise.
3461 * f-lang.c (f_create_fundamental_type): Likewise.
3462 * c-lang.c (c_create_fundamental_type): Likewise.
3463 * gdbarch.c, gdbarch.h: Regenerate.
3465 2007-06-12 Andreas Schwab <schwab@suse.de>
3467 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3468 (struct frame_unwind): Add dealloc_cache.
3469 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3471 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3472 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3473 (libunwind_frame_unwind): Set dealloc_cache.
3474 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3476 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3477 Markus Deuling <deuling@de.ibm.com>
3479 * remote.c (remote_write_qxfer): New function.
3480 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3481 (remote_read_qxfer): Do not cache empty objects.
3482 (_initialize_remote): Add PACKET_qXfer_spu_read and
3483 PACKET_qXfer_spu_write.
3485 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3487 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3488 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3490 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3491 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3492 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3493 * spu-tdep.c (infospucmdlist): New variable.
3494 (spu_register_name): Handle additional pseudo registers.
3495 (spu_register_type): Likewise.
3496 (spu_pseudo_register_read): Likewise.
3497 (spu_pseudo_register_write): Likewise.
3498 (spu_pseudo_register_read_spu): New function.
3499 (spu_pseudo_register_write_spu): Likewise.
3500 (info_spu_event_command): New function.
3501 (info_spu_signal_command): Likewise.
3502 (info_spu_mailbox_list): Likewise.
3503 (info_spu_mailbox_command): Likewise.
3504 (spu_mfc_get_bitfield): Likewise.
3505 (info_spu_dma_cmdlist): Likewise.
3506 (info_spu_dma_command): Likewise.
3507 (info_spu_proxydma_command): Likewise.
3508 (info_spu_command): Likewise.
3509 (_initialize_spu_tdep): Install "info spu" commands.
3511 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3513 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3514 accessing non-seekable spufs files.
3516 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3518 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3519 gdbarch_skip_trampoline_code.
3520 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3521 * objc-lang.c (objc_skip_trampoline)
3522 (objc_submethod_helper_data): Likewise.
3523 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3524 * infrun.c (handle_inferior_event): Likewise.
3525 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3526 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3527 gdbarch_in_solib_return_trampoline.
3528 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3529 * infrun.c (handle_inferior_event): Likewise.
3530 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3531 * gdbarch.c, gdbarch.h: Regenerate.
3533 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3535 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3536 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3537 * linespec.c (minsym_found): Likewise.
3538 * infrun.c (step_into_function): Likewise.
3539 * gdbarch.c, gdbarch.h: Regenerate.
3541 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3543 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3544 * valops.c (value_allocate_space_in_inferior): Likewise.
3545 * gdbarch.c, gdbarch.h: Regenerate.
3547 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3549 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3550 gdbarch_memory_insert_breakpoint.
3551 * mem-break.c (memory_insert_breakpoint): Likewise.
3552 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3553 gdbarch_memory_remove_breakpoint.
3554 * mem-break.c (memory_remove_breakpoint): Likewise.
3555 * gdbarch.c, gdbarch.h: Regenerate.
3557 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3559 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3560 gdbarch_fetch_tls_load_module_address.
3561 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3562 gdbarch_fetch_tls_load_module_address_p.
3563 * gdbarch.c, gdbarch.h: Regenerate.
3565 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3567 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3568 gdbarch_decr_pc_after_break.
3569 * tracepoint.c (trace_dump_command): Likewise.
3570 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3571 * linux-thread-db.c (check_event): Likewise.
3572 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3573 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3574 * frame.h: Likewise (comment).
3575 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3576 * aix-thread.c (aix_thread_wait): Likewise.
3577 * gdbarch.c, gdbarch.h: Regenerate.
3579 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3581 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3582 gdbarch_address_class_type_flags.
3583 * dwarf2read.c (read_tag_pointer_type): Likewise.
3584 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3585 gdbarch_address_class_type_flags_p.
3586 * dwarf2read.c (read_tag_pointer_type): Likewise.
3587 * gdbarch.c, gdbarch.h: Regenerate.
3589 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3591 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3592 * value.c (value_as_address): Likewise (comment).
3593 * remote-mips.c (common_breakpoint): Likewise.
3594 * regcache.c (read_pc_pid): Likewise.
3595 * printcmd.c (do_one_display): Likewise.
3596 * monitor.c (monitor_write_memory, monitor_read_memory)
3597 (monitor_insert_breakpoint): Likewise.
3598 * mips-tdep.c (heuristic_proc_start): Likewise.
3599 * infrun.c (insert_step_resume_breakpoint_at_frame)
3600 (insert_step_resume_breakpoint_at_caller): Likewise.
3601 * buildsym.c (record_line): Likewise.
3602 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3603 (arm_get_next_pc): Likewise.
3604 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3605 (store_regs): Likewise.
3606 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3607 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3608 * gdbarch.c, gdbarch.h: Regenerate.
3610 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3612 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3613 * tracepoint.c (scope_info): Likewise.
3614 * target.c (debug_print_register): Likewise.
3615 * stack.c (frame_info): Likewise.
3616 * sh-tdep.c (sh_register_reggroup_p): Likewise.
3617 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3618 (sh64_media_print_registers_info)
3619 (sh64_compact_print_registers_info): Likewise.
3620 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3621 * remote-sim.c (gdbsim_fetch_register): Likewise.
3622 * remote.c (packet_reg): Likewise (comment).
3623 * reggroups.c (default_register_reggroup_p): Likewise.
3624 * regcache.c (regcache_dump): Likewise.
3625 * printcmd.c (address_info): Likewise.
3626 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3627 * mt-dep.c (mt_registers_info): Likewise.
3628 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3629 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3630 (mips_read_fp_register_double, mips_print_fp_register)
3631 (mips_print_register, print_gp_register_row, mips_print_registers_info)
3632 (mips_register_sim_regno): Likewise.
3633 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3634 * inf-ptrace.c (inf_ptrace_fetch_register)
3635 (inf_ptrace_store_register): Likewise.
3636 * infcmd.c (default_print_registers_info): Likewise.
3637 * ia64-linux-nat.c (ia64_linux_fetch_register)
3638 (ia64_linux_store_register): Likewise.
3639 * i386-linux-nat.c (fetch_register, store_register): Likewise.
3640 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3641 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3642 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3643 (hppa_hpux_store_register): Likewise.
3644 * findvar.c (locate_var_value): Likewise.
3645 * dwarf2loc.c (locexpr_describe_location): Likewise.
3646 * dwarf2-frame.c (execute_cfa_program): Likewise.
3647 * arm-tdep.c (arm_push_dummy_call): Likewise.
3648 * arch-utils.c (legacy_register_sim_regno): Likewise.
3649 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
3650 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3651 * mi/mi-main.c (mi_cmd_data_list_register_names)
3652 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
3653 (mi_cmd_data_write_register_values): Likewise.
3654 * gdbarch.c, gdbarch.h: Regenerate.
3656 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3658 * target-memory.c (blocks_to_erase): Correct off-by-one error.
3660 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
3662 * remote.c (process_g_packet): Don't check size.
3663 * gdbarch.sh: Remove register_bytes_ok.
3664 * gdbarch.c: Regenerated.
3665 * gdbarch.h: Regenerated.
3666 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
3667 (m68k_register_bytes_ok): Remove.
3668 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
3670 2007-06-06 Andreas Schwab <schwab@suse.de>
3672 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
3673 (destroy_addr_space_name): Define.
3674 (libunwind_load): Get address of destroy_addr_space function.
3675 (libunwind_frame_cache): Destroy unw_addr_space_t object before
3676 returning unsuccessfully.
3677 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
3679 (libunwind_sigtramp_frame_sniffer): Likewise.
3680 (libunwind_get_reg_special): Likewise.
3682 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3684 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
3685 gdbarch_fetch_pointer_argument.
3686 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
3687 * gdbarch.c, gdbarch.h: Regenerate.
3689 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3691 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
3692 gdbarch_have_nonsteppable_watchpoint.
3693 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
3694 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
3695 gdbarch_cannot_step_breakpoint.
3696 * infrun.c (resume): Likewise.
3697 * gdbarch.c, gdbarch.h: Regenerate.
3699 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3701 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
3702 * stack.c (print_frame_args): Likewise.
3703 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
3704 * stack.c (print_args_stub, frame_info): Likewise.
3705 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
3706 * stack.c (print_args_stub, frame_info): Likewise.
3707 * gdbarch.c, gdbarch.h: Regenerate.
3709 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3711 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
3712 gdbarch_coff_make_msymbol_special.
3713 * coffread.c (coff_symtab_read): Likewise.
3714 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
3715 gdbarch_elf_make_msymbol_special.
3716 * elfread.c (elf_symtab_read): Likewise.
3717 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
3718 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
3719 * gdbarch.c, gdbarch.h: Regenerate.
3721 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3723 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
3724 gdbarch_frame_red_zone_size.
3725 * gdbarch.c, gdbarch.h: Regenerate.
3727 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3729 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
3730 * infcall.c (call_function_by_hand): Likewise.
3731 * gcore.c (derive_stack_segment): Likewise.
3732 * frame.c (frame_id_inner): Likewise.
3733 * arch-utils.c (core_addr_lessthan): Likewise (comment).
3734 * ada-lang.c (ensure_lval): Likewise.
3735 * gdbarch.c, gdbarch.h: Regenerate.
3737 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3739 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
3740 gdbarch_address_to_pointer.
3741 * findvar.c (store_typed_address): Likewise.
3742 * gdbtypes.c (make_pointer_type): Likewise (comment).
3743 * procfs.c (procfs_address_to_host_pointer): Likewise.
3744 * std-regs.c (value_of_builtin_frame_reg): Likewise.
3745 (value_of_builtin_frame_fp_reg): Likewise.
3746 (value_of_builtin_frame_pc_reg): Likewise.
3747 * utils.c (paddress): Likewise (comment).
3748 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
3749 gdbarch_pointer_to_address.
3750 * findvar.c (extract_typed_address): Likewise.
3751 * gdbtypes.c (make_pointer_type): Likewise (comment).
3752 * valops.c (value_cast): Likewise (comment).
3753 * gdbarch.c, gdbarch.h: Regenerate.
3755 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3757 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
3758 * infrun.c (handle_inferior_event): Likewise.
3759 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
3760 gdbarch_get_longjmp_target_p.
3761 * breakpoint.c (breakpoint_re_set): Likewise.
3762 * infrun.c (handle_inferior_event): Likewise.
3763 * gdbarch.c, gdbarch.h: Regenerate.
3765 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3767 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
3768 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
3769 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
3770 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
3771 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
3772 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
3773 find_stub_with_shl_get, cover_find_stub_with_shl_get,
3774 initialize_hp_cxx_exception_support, child_enable_exception_callback,
3775 current_ex_event, child_get_current_exception_event): Remove.
3776 (hppa_hpux_inferior_created): Remove.
3777 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
3779 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
3780 (deprecated_exception_support_initialized): Remove.
3781 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
3782 (deprecated_exception_support_initialized): Remove.
3783 (breakpoint_init_inferior): Remove handling of non-zero
3784 deprecated_exception_catchpoints_are_fragile.
3786 * symtab.h (deprecated_hp_som_som_object_present): Remove.
3787 * symtab.c (deprecated_hp_som_som_object_present): Remove.
3788 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
3789 deprecated_hp_som_som_object_present.
3790 * eval.c (evaluate_subexp_standard): Likewise.
3791 * valops.c (value_cast): Likewise.
3793 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
3794 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
3795 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
3797 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3799 * objfiles.h (ImportEntry, ExportEntry): Remove types.
3800 (struct objfile): Remove import_list, import_list_size,
3801 export_list, export_list_size members.
3802 (is_in_import_list): Remove prototype.
3803 * objfiles.c (is_in_import_list): Remove.
3804 * somread.c (init_import_symbols, init_export_symbols): Remove.
3805 (som_symfile_read): Do not call init_import_symbols. Do not
3806 set objfile->export_list and objfile->export_list_size.
3808 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
3810 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
3811 Use the original objfile if necessary.
3813 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
3815 * defs.h (ldirname): New prototype.
3816 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
3818 * utils.c (ldirname): New function.
3819 * xml-tdesc.c (file_read_description_xml): Use ldirname.
3821 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3823 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
3825 2007-06-01 Joel Brobecker <brobecker@adacore.com>
3827 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
3829 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3831 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
3833 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3835 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
3836 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
3837 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
3838 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
3839 (ppc_linux_in_sigtramp, insn_is_sigreturn,
3840 ppc_linux_at_sigtramp_return_path): Remove.
3842 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3844 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
3845 (xtensa_register_write_masked, xtensa_register_read_masked)
3846 (xtensa_extract_return_value, xtensa_store_return_value
3847 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
3848 TARGET_BYTE_ORDER by gdbarch_byte_order.
3849 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
3850 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
3851 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
3852 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
3853 (sh64_push_dummy_call, sh64_extract_return_value)
3854 (sh64_store_return_value, sh64_register_convert_to_virtual)
3855 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
3856 (sh64_pseudo_register_write, sh64_do_fp_register)
3857 (sh64_frame_prev_register): Likewise.
3858 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
3859 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
3860 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
3861 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
3862 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3863 * ppc-linux-nat.c (store_register): Likewise.
3864 * nto-tdep.c (nto_find_and_open_solib)
3865 (nto_init_solib_absolute_prefix): Likewise.
3866 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
3867 (mips_convert_register_p, mips_eabi_push_dummy_call)
3868 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
3869 (mips_o32_push_dummy_call, mips_o32_return_value)
3870 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
3871 (mips_read_fp_register_single, mips_read_fp_register_double)
3872 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
3873 (mips_breakpoint_from_pc): Likewise.
3874 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
3875 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
3876 (mips_linux_o32_sigframe_init): Likewise.
3877 * m32r-tdep.c (m32r_memory_insert_breakpoint)
3878 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
3879 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
3880 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
3881 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
3882 * coffread.c (process_coff_symbol): Likewise.
3883 * arm-tdep.c (convert_from_extended, convert_to_extended)
3884 (gdb_print_insn_arm): Likewise.
3886 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3888 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
3889 * i386-tdep.c (i386_dbx_reg_to_regnum)
3890 (i386_svr4_reg_to_regnum): Likewise.
3891 * inf-ptrace.c (inf_ptrace_fetch_registers)
3892 (inf_ptrace_store_registers): Likewise.
3893 * corelow.c (get_core_registers): Likewise.
3894 * i386-linux-nat.c (supply_gregset, fill_gregset)
3895 (i386_linux_fetch_inferior_registers)
3896 (i386_linux_store_inferior_registers): Likewise.
3897 * remote.c (init_remote_state,packet_reg_from_regnum)
3898 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
3899 (remote_prepare_to_store,store_registers_using_G)
3900 (remote_store_registers,remote_arch_state): Likewise.
3901 * tracepoint.c (encode_actions): Likewise.
3902 * mi/mi-main.c (mi_cmd_data_list_register_names)
3903 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3904 (mi_cmd_data_write_register_values): Likewise.
3905 * tui/tui-regs.c (tui_show_register_group)
3906 (tui_show_register_group): Likewise.
3907 * xtensa-tdep.h (FP_ALIAS): Likewise.
3908 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
3909 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
3910 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
3911 * win32-nat.c (do_win32_fetch_inferior_registers)
3912 (do_win32_store_inferior_registers,fetch_elf_core_registers
3913 * user-regs.h: Likewise (comment).
3914 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3915 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3916 * target-descriptions.h: Likewise (comment).
3917 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
3918 * target.c (debug_print_register): Likewise.
3919 * stack.c (frame_info): Likewise.
3920 * stabsread.c (define_symbol): Likewise.
3921 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
3922 (sh64_media_print_registers_info)
3923 (sh64_compact_print_registers_info): Likewise.
3924 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3925 * rs6000-nat.c (fetch_register,store_register): Likewise.
3926 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
3927 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
3928 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
3929 * remote-m32r-sdi.c (m32r_fetch_registers)
3930 (m32r_store_registers): Likewise.
3931 * reggroups.c (default_register_reggroup_p): Likewise.
3932 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
3933 (regcache_restore,regcache_dump): Likewise.
3934 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
3935 * mips-tdep.c (mips_xfer_register,mips_register_name)
3936 (mips_register_reggroup_p,mips_pseudo_register_read)
3937 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
3938 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
3939 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
3940 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
3941 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
3942 (print_gp_register_row,mips_print_registers_info)
3943 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3944 (mips_register_sim_regno): Likewise.
3945 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
3946 (mips_linux_n32n64_sigframe_init): Likewise.
3947 * mips-linux-nat.c (mips_linux_register_addr)
3948 (mips64_linux_register_addr): Likewise.
3949 * findvar.c (value_of_register): Likewise.
3950 * infcmd.c (default_print_registers_info,registers_info)
3951 (print_vector_info,print_float_info): Likewise.
3952 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
3953 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3954 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3955 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
3956 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3957 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
3958 (ia64_cannot_store_register,ia64_linux_fetch_registers)
3959 (ia64_linux_store_registers): Likewise.
3960 * hpux-thread.c (hpux_thread_fetch_registers)
3961 (hpux_thread_store_registers): Likewise.
3962 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
3963 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
3964 (h8300_register_type): Likewise.
3965 * dwarf2-frame.c (dwarf2_frame_cache)
3966 (dwarf2_frame_state_alloc_regs): Likewise.
3967 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
3968 (cris_cannot_store_register,crisv32_cannot_fetch_register)
3969 (crisv32_cannot_store_register,cris_register_name): Likewise.
3970 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
3971 * arch-utils.c (legacy_register_sim_regno)
3972 (legacy_virtual_frame_pointer): Likewise.
3973 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
3974 * arm-tdep.h: Likewise (comment).
3975 * frv-tdep.c (frv_register_sim_regno): Likewise.
3976 * m68klinux-nat.c (old_fetch_inferior_registers)
3977 (old_store_inferior_registers): Likewise.
3978 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3979 * irix5-nat.c (fetch_core_registers): Likewise.
3980 * hppa-tdep.c (hppa_frame_cache): Likewise.
3981 * hppa-linux-nat.c (hppa_linux_register_addr)
3982 (hppa_linux_fetch_inferior_registers)
3983 (hppa_linux_store_inferior_registers): Likewise.
3984 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
3985 (hppa_hpux_store_inferior_registers): Likewise.
3986 * amd64-nat.c (amd64_native_gregset_reg_offset)
3987 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
3988 * dbug-rom.c (dbug_regname): Likewise.
3989 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
3990 (HARD_PAGE_REGNUM (comment)): Likewise.
3991 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
3992 * i386-tdep.c (i386_dbx_reg_to_regnum)
3993 (i386_svr4_reg_to_regnum): Likewise.
3994 * mi/mi-main.c (mi_cmd_data_list_register_names)
3995 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3996 (mi_cmd_data_write_register_values): Likewise.
3997 * gdbarch.c, gdbarch.h: Regenerate.
3998 * tui/tui-regs.c (tui_show_register_group): Likewise.
3999 * xtensa-tdep.h (FP_ALIAS): Likewise.
4000 * user-regs.h: Likewise (comment).
4001 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4002 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4003 * target-descriptions.h: Likewise (comment).
4004 * target.c (debug_print_register): Likewise.
4005 * stack.c (frame_info): Likewise.
4006 * stabsread.c (define_symbol): Likewise.
4007 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
4008 (sh64_compact_print_registers_info): Likewise.
4009 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4010 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
4011 (regcache_restore,regcache_dump): Likewise.
4012 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
4013 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4014 (mips_stab_reg_to_regnum): Likewise.
4015 * findvar.c (value_of_register): Likewise.
4016 * infcmd.c (default_print_registers_info,registers_info)
4017 (print_vector_info,print_float_info): Likewise.
4018 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4019 * h8300-tdep.c (h8300_register_type): Likewise.
4020 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4021 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
4022 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
4023 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
4024 * parse.c: Remove comment.
4025 * gdbarch.c, gdbarch.h: Regenerate
4027 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4029 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
4030 gdbarch_cannot_fetch_register.
4031 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4032 * hppa-linux-nat.c (fetch_register): Likewise.
4033 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4034 * m68klinux-nat.c (fetch_register): Likewise.
4035 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
4037 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
4038 gdbarch_cannot_store_register.
4039 * hppa-linux-nat.c (store_register): Likewise.
4040 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
4041 * regcache.c (regcache_raw_write): Likewise.
4042 * m68klinux-nat.c (store_register): Likewise.
4043 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
4044 * gdbarch.c, gdbarch.h: Regenerate.
4046 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4048 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
4049 * gdbarch.c, gdbarch.h: Regenerate.
4051 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4053 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
4054 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4055 * gdbarch.c, gdbarch.h: Regenerate.
4057 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4059 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
4060 * ax-gdb.c (gen_bitfield_ref): Likewise.
4061 * mi/mi-main.c (get_register): Likewise.
4062 * findvar.c (default_value_from_register, extract_signed_integer)
4063 (extract_unsigned_integer, extract_long_unsigned_integer)
4064 (store_signed_integer, store_unsigned_integer): Likewise.
4065 * regcache.c (regcache_dump): Likewise.
4066 * value.c (lookup_internalvar, value_of_internalvar)
4067 (set_internalvar): Likewise.
4069 * valprint.c (print_binary_chars, print_octal_chars)
4070 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
4071 * infcmd.c (default_print_registers_info): Likewise.
4072 * arch-utils.c (selected_byte_order, show_endian): Likewise.
4073 * stabsread.c (define_symbol): Likewise.
4074 * doublest.c (floatformat_from_length, floatformat_from_type)
4075 (extract_typed_floating, store_typed_floating): Likewise.
4076 * gdbarch.c, gdbarch.h: Regenerate.
4078 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4080 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
4081 gdbarch_call_dummy_location.
4082 * infcall.c (call_function_by_hand): Likewise.
4083 * inferior.h: Change comment.
4084 * arch-utils.c: Change comment.
4085 * gdbarch.c, gdbarch.h: Regenerate.
4087 2007-05-28 Joel Brobecker <brobecker@adacore.com>
4089 * solib-aix5.c: Delete.
4090 * Makefile.in (solib-aix5.o): Delete rule.
4092 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
4094 * breakpoint.h (enum bpstat_what_main_action): Remove
4095 BPSTAT_WHAT_THROUGH_SIGTRAMP.
4096 * infrun.c (process_event_stop_test): Do not check for it.
4098 2007-05-22 Chris Dearman <chris@mips.com>
4099 Maciej W. Rozycki <macro@mips.com>
4101 * ser-unix.c (show_serial_hwflow): New function.
4102 (hardwire_raw): Add hardware flow control support.
4103 (_initialize_ser_hardwire): Add "set/show remoteflow".
4104 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4105 * NEWS: Document the new command.
4107 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4109 * config/i386/tm-linux.h (sys_quotactl): Do not define.
4110 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4111 define for i[[3456]]86-*-linux* native configurations.
4112 * config.in, configure: Regenerate.
4114 2007-05-19 Joel Brobecker <brobecker@adacore.com>
4116 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4117 a core file. Add comment in the function description.
4119 2007-05-18 Caroline Tice <ctice@apple.com>
4121 * c-valprint.c (c_value_print): If the initialized field of the
4122 value struct is 0, print out "[uninitialized]" before the value.
4123 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4124 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4125 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4126 ctx->initialized appropriately. Verify no location op follows
4128 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4129 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4130 set_value_initialized.
4131 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4132 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4133 * value.c (struct value): New field, initialized.
4134 (allocate_value): Initialize new field.
4135 (set_value_initialized): New function.
4136 (value_initialized): New function.
4137 * value.h (value_initialized): New extern declaration.
4138 (set_value_initialized): Likewise.
4140 2007-05-18 Caroline Tice <ctice@apple.com>
4142 * MAINTAINERS (Write After Approval): Add self.
4144 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4146 * gdbtypes.c (make_reference_type): Preserve the type chain
4147 and set the length of all the variants of the pointer type.
4149 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4151 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4152 and set the length of all the variants of the pointer type.
4154 2007-05-17 Maciej W. Rozycki <macro@mips.com>
4156 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4158 (mips_o64_push_dummy_call): Reformat a comment.
4160 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4162 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4163 (score_prologue_frame_base_address): Return fp to keep gdb print
4164 local variables correctly when debugging information is stabs.
4166 (score_analyze_prologue): For software watchpoint, fetch all the
4167 instructions from range [startaddr, pc] once and identify them locally
4168 to reduce memory access.
4169 (score_malloc_and_get_memblock, score_free_memblock)
4170 (score_adjust_memblock_ptr): New functions.
4171 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4173 (score_target_can_use_watch, score_stopped_by_watch)
4174 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4175 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4176 New functions for remote & local hw-watchpoint and hw-breakpoint.
4178 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
4180 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4181 declarations as well.
4183 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4185 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4186 * config/arm/tm-embed.h: Delete file.
4188 * arm-tdep.h (arm_software_single_step): Declare.
4189 * arm-tdep.c (arm_software_single_step): Make global.
4190 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4192 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4193 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4194 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4195 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4197 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4198 allow defines to be overriden by TM file.
4199 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4200 change default to {0xbe,0xbe}.
4201 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4202 arm_obsd_thumb_be_breakpoint): New global variables.
4203 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4204 tdep->thumb_breakpoint_size.
4205 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4206 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4207 tdep->thumb_breakpoint_size.
4209 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4211 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4213 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4216 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4217 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4218 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4219 (mips_abi_regsize): Simplify.
4220 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4221 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4222 (mips_o32_return_value, mips_o64_push_dummy_call)
4223 (mips_o64_return_value): Propogate constant register sizes. Use the
4224 ABI register size instead of mips_stack_argsize.
4225 (mips_dump_tdep): Don't print mips_stack_argsize.
4226 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4229 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4231 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4232 * config/mips/tm-linux.h: Delete.
4233 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4234 (mips_linux_in_dynsym_resolve_code): Make static. Use
4235 svr4_in_dynsym_resolve_code.
4236 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4238 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4240 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4241 * Makefile.in (mips-linux-tdep.o): Update.
4242 * solib.c (set_solib_ops): New.
4243 (current_target_so_ops): Update comment.
4244 * solib.h (set_solib_ops): New prototype.
4246 2007-05-16 Chris Dearman <chris@mips.com>
4248 * printcmd.c (do_examine): Fix typos in a comment.
4250 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4252 * configure.ac: Allow sysroots to be relocated under $prefix as
4253 well as $exec_prefix.
4254 * configure: Regenerate.
4256 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4258 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4259 (offsetof): Do not define.
4260 (find_stub_with_shl_get): Use numerical value 3 instead of
4261 symbolic value TYPE_PROCEDURE.
4263 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4265 * gdb_proc_service.h (paddr_t): Delete typedef.
4266 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4267 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4268 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4269 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4270 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4271 * Makefile.in (proc-service.o): Update.
4273 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4275 * Makefile.in (mips-tdep.o): Update.
4276 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4279 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4281 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4282 instead of store_typed_address.
4283 * value.c (pack_long): New.
4284 (value_from_longest): Use it.
4285 * value.h (pack_long): New prototype.
4287 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4289 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4290 DW_EH_PE_signed if appropriate.
4292 2007-05-14 Paul Brook <paul@codesourcery.com>
4293 Daniel Jacobowitz <dan@codesourcery.com>
4295 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4297 (dwarf_decode_lines): Check for line info without a file.
4299 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4301 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4304 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4306 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4308 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4310 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4312 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4314 * gdbarch.sh (read_sp): Remove.
4315 * gdbarch.c, gdbarch.h: Regenerate.
4316 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4318 * avr-tdep.c (avr_read_sp): Remove.
4319 (avr_unwind_sp): New function.
4320 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4321 * mips-tdep.c (mips_read_sp): Remove.
4322 (mips_unwind_sp): New function.
4323 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4324 * score-tdep.c (score_read_unsigned_register): Remove.
4325 (score_read_sp): Remove.
4326 (score_unwind_sp): New function.
4327 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4329 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4331 * buildsym.c (start_subfile): Handle absolute pathnames
4332 while comparing subfile names.
4334 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4336 * hppa-hpux-tdep.c: Include "regcache.h".
4337 * hppa-linux-tdep.c: Likewise.
4338 * hppa-tdep.c: Include "gdb_stdint.h".
4339 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4341 * Makefile.in: Update dependencies.
4343 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4345 * blockframe.c: Remove obsolete comments.
4346 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4347 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4348 * hppa-tdep.h (enum hppa_regnum): Likewise.
4349 * mips-tdep.h: Likewise.
4350 * m68hc11-tdep.c: Likewise.
4352 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4354 * inferior.h (read_sp): Remove prototype.
4355 * regcache.c (read_sp): Remove.
4356 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4357 * infcall.c (call_function_by_hand): Likewise.
4358 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4360 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4362 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4364 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4365 instead of read_register and read_register_pid.
4367 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4368 argument instead of PTID. Use regcache functions instead of
4370 (ia64_linux_insert_watchpoint): Update call.
4371 (ia64_linux_stopped_data_address): Use regcache functions
4372 instead of read_register_pid and write_register_pid.
4374 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4376 * libunwind-frame.h (struct regcache): Add forward declaration.
4377 (libunwind_get_reg_special): Add REGCACHE argument.
4378 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4379 argument. Pass it to unw_init_remote_p.
4381 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4382 libunwind_get_reg_special.
4383 (ia64_access_reg): Remove "write" case.
4384 (ia64_access_fpreg): Likewise. Read from next_frame passed
4385 as callback argument instead of from current_regcache.
4386 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4387 passed as callback argument instead of from current_regcache.
4388 (ia64_access_rse_fpreg): New function.
4389 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4391 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4393 * NEWS: Mention SPU overlay support.
4395 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4397 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4399 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4401 * breakpoint.c (remove_breakpoint): Do not remove software
4402 breakpoints in unmapped overlay sections.
4404 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4406 * spu-tdep.c: Include "observer.h".
4407 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4408 (spu_overlay_data): New variable.
4409 (struct spu_overlay_table): New type.
4410 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4411 spu_overlay_new_objfile): New functions.
4412 (spu_gdbarch_init): Install spu_overlay_update.
4413 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4414 allocate spu_overlay_data objfile data.
4416 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4418 * gdbarch.sh (overlay_update): New gdbarch function.
4419 (struct obj_section): Add forward declaration.
4420 * gdbarch.c, gdbarch.h: Regenerate.
4422 * symfile.c (simple_overlay_update): Make global.
4423 (target_overlay_update): Remove variable.
4424 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4425 target_overlay_update.
4426 (overlay_load_command): Likewise.
4427 * symfile.h (struct obj_section): Add forward declaration.
4428 (simple_overlay_update): Add prototype.
4430 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4432 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4434 * observer.sh: Add "struct objfile" forward declaration.
4435 * target.h (deprecated_target_new_objfile_hook): Remove.
4436 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4437 (clear_symtab_users): Call observer_notify_new_objfile.
4438 (symbol_file_add_with_addrs_or_offsets): Likewise.
4439 * rs6000-nat.c: Include "observer.h".
4440 (vmap_ldinfo): Call observer_notify_new_objfile.
4441 (xcoff_relocate_core): Likewise.
4442 * remote.c (remote_new_objfile_chain): Remove.
4443 (remote_new_objfile): Do not call remote_new_objfile_chain.
4444 (_initialize_remote): Use observer_attach_new_objfile.
4445 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4446 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4447 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4448 * aix-thread.c: Include "observer.h".
4449 (target_new_objfile_chain): Remove.
4450 (new_objfile): Do not call target_new_objfile_chain.
4451 (_initialize_aix_thread): Use observer_attach_new_objfile.
4452 * hpux-thread.c: Include "observer.h"
4453 (target_new_objfile_chain): Remove.
4454 (hpux_thread_new_objfile): Make static. Do not call
4455 target_new_objfile_chain.
4456 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4457 * linux-thread-db.c: Include "observer.h".
4458 (target_new_objfile_chain): Remove.
4459 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4460 (_initialize_thread_db): Use observer_attach_new_objfile.
4461 * sol-thread.c: Include "observer.h".
4462 (target_new_objfile_chain): Remove.
4463 (sol_thread_new_objfile): Make static. Do not call
4464 target_new_objfile_chain.
4465 (_initialize_sol_thread): Use observer_attach_new_objfile.
4466 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4467 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4470 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4472 * gdbarch.sh (remote_translate_xfer_address): Remove.
4473 * gdbarch.h, gdbarch.c: Regenerate.
4474 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4475 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4476 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4477 call gdbarch_remote_translate_xfer_address.
4478 * frv-tdep.c (frv_gdbarch_init): Do not call
4479 set_gdbarch_remote_translate_xfer_address.
4480 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4481 (ia64_gdbarch_init): Do not install it.
4483 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4485 * NEWS: Mention change in handling the -tui option.
4487 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4489 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4492 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4494 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4495 (breakpoint_inserted_here_p): Call it.
4496 (software_breakpoint_inserted_here_p): Likewise.
4498 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4500 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4501 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4502 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4503 (inf_ptrace_store_register): Likewise.
4504 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4505 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4507 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4509 * linux-nat.c (linux_trad_target): Adapt parameter list.
4510 * linux-nat.h (linux_trad_target): Likewise.
4512 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4514 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4515 (mips_linux_cannot_store_register): Likewise.
4516 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4517 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4518 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4519 (mips64_linux_register_addr): Likewise.
4520 (mips_linux_register_u_offset): Adapt parameter list. Pass
4521 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4523 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4524 * config/mips/nm-linux.h: Delete file.
4526 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4528 * remote.c (remote_detach): Error out if remote can't detach.
4530 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
4532 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4533 instruction's opcode in the "opcode" variable and declares new
4534 variable "closing_insn".
4536 2007-05-10 Chris Dearman <chris@mips.com>
4537 Maciej W. Rozycki <macro@mips.com>
4539 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4540 whitespace when setting a var_filename.
4542 2007-05-09 Bob Wilson <bob.wilson@acm.org>
4544 * main.c (captured_main): Recognize -tui option and print an error
4545 message when the TUI is not configured.
4547 2007-05-09 Andreas Schwab <schwab@suse.de>
4549 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4550 set removed members.
4551 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4553 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4555 * gdbarch.sh (deprecated_store_struct_return): Remove.
4556 * gdbarch.c, gdbarch.h: Regenerate.
4557 * frv-tdep.c (frv_store_struct_return): Remove.
4558 (frv_gdbarch_init): Do not install it.
4560 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4562 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4563 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4564 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4566 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4568 * spu-linux-nat.c: Include "gdb_stdint.h".
4569 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4570 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4571 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4572 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4573 (spu_child_wait): Mark up string for translation.
4575 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4576 Luis Machado <luisgpm@br.ibm.com>
4578 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4579 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4580 BC_INSTRUCTION): Define.
4581 (deal_with_atomic_sequence): New function.
4582 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4583 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4584 gdbarch_software_single_step routine.
4586 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4588 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4589 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4590 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4591 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4592 spu_child_post_attach, spu_fetch_inferior_registers,
4593 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4594 memory addresses as ULONGEST, not CORE_ADDR.
4596 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4598 * gdbarch.sh: Add skip_permanent_breakpoint callback.
4599 * gdbarch.h, gdbarch.c: Regenerate.
4601 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4602 (resume): Call gdbarch_skip_permanent_breakpoint instead of
4603 SKIP_PERMANENT_BREAKPOINT. Inline default case.
4605 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4606 Add REGCACHE argument. Use it instead of read/write_register.
4607 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4609 * config/pa/tm-hppah.h: Delete file.
4610 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4611 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4613 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4615 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4616 * NEWS: Mention improved C++ thunk support.
4617 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4618 * cp-abi.c (cplus_skip_trampoline): New.
4619 * cp-abi.h (cplus_skip_trampoline): New prototype.
4620 (struct cp_abi_ops): Add skip_trampoline member.
4621 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4622 (init_gnuv3_ops): Set skip_trampoline.
4624 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4626 * rs6000-tdep.c (struct frame_extra_info): Delete.
4628 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4630 * linux-thread-db.c: Update some FIXME comments.
4631 (thread_db_xfer_partial): Delete.
4632 (init_thread_db_ops): Do not set to_xfer_partial.
4634 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4636 * inftarg.c, infptrace.c: Remove files.
4637 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4638 (inftarg.o, infptrace.o): Remove rules.
4639 * gdbcore.h (register_addr): Remove prototype.
4640 * inferior.h (kill_inferior, store_inferior_registers,
4641 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4642 call_ptrace, pre_fork_inferior): Remove prototypes.
4643 * target.h (child_xfer_memory, child_pid_to_exec_file,
4644 child_core_file_to_sym_file, child_post_attach,
4645 child_post_startup_inferior, child_acknowledge_created_inferior,
4646 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4647 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4648 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
4649 child_follow_fork, child_reported_exec_events_per_exec_call,
4650 child_has_exited, child_thread_alive): Remove prototypes.
4652 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4654 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
4655 (sparc_store_inferior_registers): Likewise.
4656 * sparc-nat.c (fetch_inferior_registers): Rename to ...
4657 (sparc_fetch_inferior_registers): ... this.
4658 (store_inferior_registers): Rename to ...
4659 (sparc_store_inferior_registers): ... this.
4660 (sparc_target): Update callback names.
4661 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
4662 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
4664 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4666 * linux-nat.c (child_post_attach): Rename to ...
4667 (linux_child_post_attach): ... this. Make static.
4668 (child_follow_fork): Rename to ...
4669 (linux_child_follow_fork): ... this. Make static.
4670 (child_insert_fork_catchpoint): Rename to ...
4671 (linux_child_insert_fork_catchpoint): ... this. Make static.
4672 (child_insert_vfork_catchpoint): Rename to ...
4673 (linux_child_insert_vfork_catchpoint): ... this. Make static.
4674 (child_insert_exec_catchpoint): Rename to ...
4675 (linux_child_insert_exec_catchpoint): ... this. Make static.
4676 (child_pid_to_exec_file): Rename to ...
4677 (linux_child_pid_to_exec_file): ... this. Make static.
4679 (linux_handle_extended_wait): Update call.
4680 (linux_xfer_partial): Update callback routine names.
4682 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4684 * configure.host (alpha*-*-osf[12]*): Remove support.
4685 * NEWS: Mention removed configurations.
4687 * config/alpha/alpha-osf1.mh: Delete file.
4688 * config/alpha/alpha-osf2.mh: Delete file.
4689 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
4691 * config/alpha/nm-osf.h: Delete file.
4692 * config/alpha/nm-osf2.h: Delete file.
4693 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
4694 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
4695 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
4697 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
4698 (register_addr, kernel_u_size): Remove.
4699 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
4701 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4703 * regcache.c (regcache_invalidate): New function.
4704 (register_cached): Remove.
4705 (set_register_cached): Remove.
4706 (deprecated_registers_fetched): Remove.
4707 (registers_changed): Use regcache_invalidate instead
4708 of set_register_cached.
4709 (regcache_raw_read): Update comment.
4711 * regcache.h (regcache_invalidate): Add prototype.
4712 (register_cached): Remove.
4713 (set_register_cached): Remove.
4714 (deprecated_registers_fetched): Remove.
4716 * findvar.c (value_of_register): Do not call register_cached.
4717 * frame.c (frame_register): Likewise.
4718 * tui/tui-regs.c (tui_get_register): Likewise.
4720 * remote.c (fetch_register_using_p): Do not call set_register_cached.
4721 (process_g_packet): Likewise.
4722 (remote_fetch_registers): Likewise.
4723 * remote-sim.c (gdbsim_fetch_register): Likewise.
4724 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
4725 by regcache_invalidate.
4726 (mt_pseudo_register_write): Likewise.
4727 * sh-tdep.c (sh_pseudo_register_write): Likewise.
4729 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
4730 call by loop over regcache_raw_supply (..., NULL).
4732 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4734 * target.h (struct target_ops): Add REGCACHE parameter to
4735 to_prepare_to_store.
4736 (target_prepare_to_store): Likewise.
4737 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
4738 (update_current_target): Adapt prepare_to_store de_fault rule.
4740 * regcache.c (regcache_raw_write): Pass regcache to
4741 target_prepare_to_store.
4743 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
4744 Do not call CHILD_PREPARE_TO_STORE.
4745 * gnu-nat.c (gnu_prepare_to_store): Likewise.
4746 * procfs.c (procfs_prepare_to_store): Likewise.
4748 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
4749 * go32-nat.c (go32_prepare_to_store): Likewise.
4750 * monitor.c (monitor_prepare_to_store): Likewise.
4751 * nto-procfs.c (procfs_prepare_to_store): Likewise.
4752 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
4753 * remote-mips.c (mips_prepare_to_store): Likewise.
4754 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
4755 * win32-nat.c (win32_prepare_to_store): Likewise.
4757 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
4758 Use it instead of current_regcache.
4760 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
4761 parameter. Pass it on to next target.
4762 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
4764 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4766 * target.h (struct regcache): Add forward declaration.
4767 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
4768 and to_store_registers target operations.
4769 (target_fetch_registers, target_store_registers): Update.
4771 * regcache.c (regcache_raw_read): Replace register_cached by
4772 regcache_valid_p. Pass regcache to target_fetch_registers.
4773 (regcache_raw_write): Pass regcache to target_store_registers.
4775 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
4776 store_regs, store_wmmx_regs): Replace register_cached by
4779 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
4780 to target_fetch_registers calls.
4781 * corelow.c (core_open): Likewise.
4782 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
4783 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4784 ps_lsetfpregs): Likewise.
4785 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4786 ps_lsetfpregs): Likewise.
4787 * win32-nat.c (win32_resume): Likewise.
4788 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
4789 to target_store_registers call.
4790 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4792 * inferior.h (store_inferior_registers): Update prototype.
4793 (fetch_inferior_registers): Likewise.
4794 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
4795 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
4796 Update function pointer signatures.
4798 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
4799 use it instead of current_regcache, update calls.
4800 (aix_thread_store_registers): Likewise.
4801 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4802 (alphabsd_store_inferior_registers): Likewise.
4803 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4804 (amd64bsd_store_inferior_registers): Likewise.
4805 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
4806 (amd64_linux_store_inferior_registers): Likewise.
4807 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
4808 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
4809 fetch_wmmx_regs, store_wmmx_regs): Likewise.
4810 (arm_linux_fetch_inferior_registers): Likewise.
4811 (arm_linux_store_inferior_registers): Likewise.
4812 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
4813 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
4814 (store_register, store_regs, store_fp_register, store_fp_regs,
4815 armnbsd_store_registers): Likewise.
4816 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
4817 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4818 (bsd_uthread_store_registers): Likewise.
4819 * corelow.c (get_core_registers): Likewise.
4820 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
4821 go32_store_registers): Likewise.
4822 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
4823 (hppabsd_store_registers): Likewise.
4824 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
4825 (hppa_hpux_fetch_inferior_registers): Likewise.
4826 (hppa_hpux_store_register): Likewise.
4827 (hppa_hpux_store_inferior_registers): Likewise.
4828 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4829 (hppa_linux_fetch_inferior_registers): Likewise.
4830 (hppa_linux_store_inferior_registers): Likewise.
4831 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
4832 (hpux_thread_store_registers): Likewise.
4833 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
4834 (i386bsd_store_inferior_registers): Likewise.
4835 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
4836 gnu_store_registers): Likewise.
4837 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
4838 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
4840 (i386_linux_fetch_inferior_registers): Likewise.
4841 (i386_linux_store_inferior_registers): Likewise.
4842 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
4843 (ia64_linux_fetch_registers): Likewise.
4844 (ia64_linux_store_register): Likewise.
4845 (ia64_linux_store_registers): Likewise.
4846 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4847 (inf_child_store_inferior_registers): Likewise.
4848 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4849 (inf_ptrace_fetch_registers): Likewise.
4850 (inf_ptrace_store_register): Likewise.
4851 (inf_ptrace_store_registers): Likewise.
4852 * infptrace.c (fetch_register, store_register): Likewise.
4853 (fetch_inferior_registers, store_inferior_registers): Likewise.
4854 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
4855 (m32r_linux_fetch_inferior_registers): Likewise.
4856 (m32r_linux_store_inferior_registers): Likewise.
4857 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
4858 (m68kbsd_store_inferior_registers): Likewise.
4859 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
4860 store_register, old_store_inferior_registers, fetch_regs, store_regs,
4861 fetch_fpregs, store_fpregs): Likewise.
4862 (m68k_linux_fetch_inferior_registers): Likewise.
4863 (m68k_linux_store_inferior_registers): Likewise.
4864 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
4865 (m88kbsd_store_inferior_registers): Likewise.
4866 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
4867 (mips64obsd_store_inferior_registers): Likewise.
4868 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
4869 (mips64_linux_regsets_store_registers): Likewise.
4870 (mips64_linux_fetch_registers): Likewise.
4871 (mips64_linux_store_registers): Likewise.
4872 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4873 (mipsnbsd_store_inferior_registers): Likewise.
4874 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
4875 (monitor_fetch_registers, monitor_store_registers): Likewise.
4876 * nto-procfs.c (procfs_fetch_registers): Likewise.
4877 (procfs_store_registers): Likewise.
4878 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
4879 fetch_register, supply_vrregset, fetch_altivec_registers,
4880 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
4881 (store_altivec_register, store_spe_register, store_register,
4882 fill_vrregset, store_altivec_registers, store_ppc_registers,
4883 ppc_linux_store_inferior_registers): Likewise.
4884 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
4885 (ppcnbsd_store_inferior_registers): Likewise.
4886 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
4887 (ppcobsd_store_registers): Likewise.
4888 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4889 * remote.c (fetch_register_using_p, process_g_packet,
4890 fetch_registers_using_g, remote_fetch_registers): Likewise.
4891 (store_register_using_P, store_registers_using_G,
4892 remote_store_registers): Likewise.
4893 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
4894 m32r_store_register, m32r_store_register): Likewise.
4895 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
4896 * remote-sim.c (gdbsim_fetch_register): Likewise.
4897 (gdbsim_store_register): Likewise.
4898 * rs6000-nat.c (fetch_register, store_register): Likewise.
4899 (rs6000_fetch_inferior_registers): Likewise.
4900 (rs6000_store_inferior_registers): Likewise.
4901 * s390-nat.c (fetch_regs, store_regs): Likewise.
4902 (fetch_fpregs, store_fpregs): Likewise.
4903 (s390_linux_fetch_inferior_registers): Likewise.
4904 (s390_linux_store_inferior_registers): Likewise.
4905 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4906 (shnbsd_store_inferior_registers): Likewise.
4907 * sol-thread.c (sol_thread_fetch_registers): Likewise.
4908 (sol_thread_store_registers): Likewise.
4909 * sparc-nat.c (fetch_inferior_registers): Likewise.
4910 (store_inferior_registers): Likewise.
4911 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4912 (spu_store_inferior_registers): Likewise.
4913 * target.c (debug_print_register): Likewise.
4914 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
4915 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
4916 (vaxbsd_store_inferior_registers): Likewise.
4917 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
4918 (win32_fetch_inferior_registers): Likewise.
4919 (win32_store_inferior_registers): Likewise.
4921 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4923 * gdbcore.h (struct regcache): Add forward declaration.
4924 (struct core_fns): Add REGCACHE argument to core_read_registers
4926 * corelow.c (get_core_register_section): Add REGCACHE argument,
4927 use it instead of current_regcache, pass it to core_read_registers
4929 (get_core_registers): Add current_regcache as parameter to
4930 get_core_register_section calls.
4932 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
4933 use it instead of current_regcache.
4934 * armnbsd-nat.c (fetch_core_registers): Likewise.
4935 (fetch_elfcore_registers): Likewise.
4936 * core-regset.c (fetch_core_registers): Likewise.
4937 * cris-tdep.c (fetch_core_registers): Likewise.
4938 * irix5-nat.c (fetch_core_registers): Likewise.
4939 * m68klinux-nat.c (fetch_core_registers): Likewise.
4940 * mips-linux-tdep.c (fetch_core_registers): Likewise.
4941 * win32-nat.c (fetch_elf_core_registers): Likewise.
4943 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4945 * gregset.h (struct regcache): Add forward declaration.
4946 (supply_gregset): Add REGCACHE parameter, make GREGS const.
4947 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
4948 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
4949 (fill_gregset): Add REGCACHE parameter.
4950 (fill_fpregset): Likewise.
4951 (fill_fpxregset): Likewise.
4953 Update all definitions accordingly:
4954 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
4955 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
4956 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
4957 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
4958 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
4959 (supply_gregset): Add REGCACHE parameter, use it instead of
4960 current_regcache. Make GREGSETP parameter const, adapt casts.
4961 (supply_fpregset): Add REGCACHE parameter, use it instead of
4962 current_regcache. Make FPREGSETP parameter const, adapt casts.
4963 (fill_gregset): Add REGCACHE parameter, use it instead of
4965 (fill_fpregset): Likewise.
4967 Update all callers to pass in current_regcache as the new argument:
4968 * core-regset.c: Include "regcache.h".
4969 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
4970 * procfs.c: Include "regcache.h".
4971 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
4972 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
4973 (procfs_do_thread_registers): Likewise.
4974 (procfs_make_note_section): Likewise.
4975 * proc-service.c: Include "regcache.h".
4976 (ps_lgetregs): Update fill_gregset call.
4977 (ps_lsetregs): Update supply_gregset call.
4978 (ps_lgetfpregs): Update fill_fpregset call.
4979 (ps_lsetfpregs): Update supply_fpregset call.
4980 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
4981 supply_fpregset calls.
4982 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
4983 (ps_lgetregs): Update fill_gregset call.
4984 (ps_lsetregs): Update supply_gregset call.
4985 (ps_lgetfpregs): Update fill_fpregset call.
4986 (ps_lsetfpregs): Update supply_fpregset call.
4988 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
4989 fill_fpregset, and fill_fpxregset calls.
4990 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
4991 (store_regs): Update fill_gregset call.
4992 (fetch_fpregs): Update supply_fpregset call.
4993 (store_fpregs): Update fill_fpregset call.
4994 (fetch_fpxregs): Update supply_fpxregset call.
4995 (store_fpxregs): Update fill_fpxregset call.
4996 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
4997 (store_regs): Update fill_gregset call.
4998 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
4999 (store_regs): Update fill_gregset call.
5000 (fetch_fpregs): Update supply_fpregset call.
5001 (store_fpregs): Update fill_fpregset call.
5002 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
5003 * s390-nat.c (fetch_regs): Update supply_gregset call.
5004 (store_regs): Update fill_gregset call.
5005 (fetch_fpregs): Update supply_fpregset call.
5006 (store_fpregs): Update fill_fpregset call.
5008 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
5011 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5013 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
5014 it instead of current_regcache.
5015 (parse_register_dump): Add REGCACHE parameter, pass it to
5016 supply_register callback.
5017 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
5018 parse_register_dump.
5019 (monitor_dump_regs): Add REGCACHE parameter, pass it to
5020 parse_register_dump and dumpregs callback.
5021 (monitor_wait): Pass current_regcache to parse_register_dump and
5023 (monitor_fetch_register): Pass current_regcache to
5024 monitor_supply_register.
5025 (monitor_fetch_registers): Pass current_regcache to
5027 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
5028 supply_register and dumpregs callbacks.
5029 (monitor_supply_register, monitor_dump_reg_block): Update
5031 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
5032 it to monitor_supply_register.
5033 * dink32-rom.c (dink32_supply_register): Likewise.
5034 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
5035 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
5036 instead of current_regcache.
5038 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5040 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
5041 Add REGCACHE parameter. Use it instead of current_regcache.
5042 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
5043 i386nto_supply_gregset and i386nto_supply_fpregset.
5044 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
5045 of current_regcache.
5047 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
5048 nto_supply_ helper functions.
5049 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
5051 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
5053 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
5054 supply_greget, supply_fpregset, supply_altregset, supply_regset,
5055 and regset_fill member function pointers.
5056 (nto_dummy_supply_regset): Adapt prototype.
5058 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5060 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
5061 instead of current_regcache. Make REGS const.
5062 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
5063 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
5065 * shnbsd-nat.c: Include "regcache.h".
5066 (shnbsd_fetch_inferior_registers): Pass current_regcache to
5068 (shnbsd_store_inferior_registers): Pass current_regcache to
5070 * Makefile.in (shbsd-nat.o): Update dependencies.
5072 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5074 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
5075 instead of current_regcache.
5076 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
5077 Make GREGSETP const, remove superfluous casts.
5078 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5079 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
5081 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5082 (supply_64bit_reg): Likewise
5083 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
5084 Make GREGSETP const, adapt casts accordingly.
5085 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5086 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
5088 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5089 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
5091 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
5092 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
5093 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
5095 * mips-linux-nat.c: Include "regcache.h".
5096 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5097 current_regcache to mips{64}_(supply|fill)_ helper routines.
5098 (mips64_linux_regsets_fetch_registers): Likewise.
5099 (mips64_linux_regsets_store_registers): Likewise.
5101 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5102 REGCACHE argument; replace current_regcache. Make REGS const.
5103 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5104 replace current_regcache.
5105 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5106 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5107 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5108 mipsnbsd_store_inferior_registers): Pass current_regcache to
5109 mipsnbsd_(supply|fill)_... helper routines.
5111 * Makefile.in (mips-linux-nat.o): Update dependencies.
5113 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5115 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5116 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5117 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5118 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5119 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5120 * i386gnu-nat.c (store_fpregs): Likewise.
5121 * i386v4-nat.c (fill_fpregset): Likewise.
5122 * go32-nat.c (store_register, go32_store_registers): Likewise.
5124 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5126 * cris-tdep.c (supply_gregset): Rename to ...
5127 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5128 instead of current_regcache.
5129 (fetch_core_registers): Update call. Pass current_regcache.
5131 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5133 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5134 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5135 Use it instead of current_regcache.
5136 (supply_fparegset): Rename to ...
5137 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5138 Use it instead of current_regcache.
5139 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5140 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5142 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5144 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5145 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5146 use it instead of current_regcache.
5147 * alpha-tdep.h (struct regcache): Add forward declaration.
5148 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5149 alpha_fill_fp_regs): Update prototypes.
5151 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5152 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5153 * alpha-linux-nat.c: Include "regcache.h".
5154 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5155 current_regcache to alpha_supply/fill_ routines.
5157 * alphabsd-tdep.c: Include "regcache.h".
5158 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5159 pass it to alpha_supply_ routines. Make REGS const.
5160 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5161 pass it to alpha_fill_ routines.
5162 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5163 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5164 alphabsd_fill_fpreg): Update prototypes.
5166 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5167 fill_fpregset, alphabsd_fetch_inferior_registers,
5168 alphabsd_store_inferior_registers): Pass current_regcache to
5169 alphabsd_supply/fill_ routines.
5171 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5174 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5176 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5177 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5178 instead of current_regcache.
5179 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5180 REGCACHE parameter, pass it to supply_ routines.
5181 (aix_thread_fetch_registers): Pass current_regcache to
5182 fetch_regs_user_thread and fetch_regs_kernel_thread.
5184 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5185 Add REGCACHE parameter, use it instead of current_regcache.
5186 Call regcache_valid_p instead of register_cached.
5187 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5188 Also, pass REGCACHE to fill_ routines.
5189 (aix_thread_store_registers): Pass current_regcache to
5190 store_regs_user_thread and store_regs_kernel_thread.
5192 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5194 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5195 pointed to by GREGSETP.
5197 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5199 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5200 of regcache_raw_read_signed.
5201 (fill_fpregset): Use regcache_raw_collect instead of
5204 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5206 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5207 point arguments, test explicitly for use of the EABI32 ABI
5208 instead of inferring this condition from tests on register
5211 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5213 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5214 prior to allocating its location.
5216 2007-05-02 Maciej W. Rozycki <macro@mips.com>
5218 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5219 based on mips_abi_regsize() whose result is known in advance.
5220 (mips_o64_push_dummy_call): Likewise.
5222 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5224 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5225 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5227 * mips-linux-nat.c: Include "gregset.h".
5228 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5229 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5230 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5231 fill_fpregset): Move to mips-linux-nat.c.
5233 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5235 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5237 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5238 (read_register): ... here.
5239 (deprecated_write_register_gen): Remove, inline ...
5240 (write_register): ... here.
5241 * regcache.h (deprecated_read_register_gen): Remove prototype.
5242 (deprecated_write_register_gen): Likewise.
5244 * remote-sim.c (gdbsim_store_register): Replace call to
5245 deprecated_read_register_gen with regcache_cooked_read.
5246 * target.c (debug_print_register): Replace calls to
5247 deprecated_read_register_gen and read_register with
5248 regcache_cooked_read.
5250 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5252 * hpux-thread.c (hpux_thread_store_registers): Use
5253 regcache_raw_collect, not regcache_raw_read.
5254 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5255 not regcache_raw_write.
5257 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5259 * gdbarch.sh: Remove deprecated_register_byte.
5260 * gdbarch.c, gdbarch.h: Regenerate.
5261 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5262 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5264 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5265 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5266 read-only register caches. Make REGCACHE parameter const.
5267 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5269 * mi/mi-main.c (old_regs): Remove.
5270 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5271 (register_changed_p): Reimplement to compare two register caches.
5272 (mi_cmd_data_list_changed_registers): Update caller.
5273 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5274 * mi/mi-interp.c (mi_interpreter_init): Do not call
5275 mi_setup_architecture_data.
5277 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5279 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5280 inline definition at the places the macros are used.
5281 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5283 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5285 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5287 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5288 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5289 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5290 (rs6000_aix_regset_from_core_section): New function.
5291 (rs6000_aix_init_osabi): Register it.
5292 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5293 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5294 * rs6000-nat.c (CoreRegs): Do not define type.
5295 (fetch_core_registers, rs6000_core_fns): Remove.
5296 (_initialize_core_rs6000): Do not register it. Rename to ...
5297 (_initialize_rs6000_nat): ... this.
5298 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5300 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5302 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5303 (dwarf2_read_address): Sign extend return address as required by
5304 target architecture.
5306 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5308 * solib-frv.c (lm_base): Bail out if the main executable has
5311 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5313 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5314 of FPCR register in fpregset.
5316 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5318 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5319 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5321 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5323 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5324 * rs6000-nat.c (rs6000_wait): New function.
5325 (_initialize_core_rs6000): Install it as to_wait target method.
5326 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5328 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5330 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5331 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5332 * rs6000-nat.c (super_create_inferior): New variable.
5333 (rs6000_create_inferior): Make static. Adapt argument list. Call
5334 original version of create_inferior via super_create_inferior.
5335 (_initialize_core_rs6000): Install to_create_inferior target method.
5337 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5339 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5340 (aix_thread_xfer_partial): ... this.
5341 (init_aix_thread_ops): Install to_xfer_partial instead
5342 of deprecated_xfer_memory target method.
5344 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5345 and inftarg.o, add inf-ptrace.o.
5346 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5347 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5348 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5349 (fetch_inferior_registers): Rename to ...
5350 (rs6000_fetch_inferior_registers): ... this. Make static.
5351 (store_inferior_registers): Rename to ...
5352 (rs6000_store_inferior_registers): ... this. Make static.
5353 (read_word, child_xfer_memory): Remove.
5354 (rs6000_xfer_partial): New function.
5355 (kernel_u_size): Remove.
5356 (_initialize_core_rs6000): Add inf_ptrace-based target.
5357 * Makefile.in (rs6000-nat.o): Update dependencies.
5359 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5361 * inf-ptrace.c: Include "gdb_stdint.h".
5362 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5363 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5364 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5365 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5366 (inf_ptrace_store_register): Likewise.
5367 * Makefile.in (inf-ptrace.o): Update dependencies.
5369 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5371 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5372 * configure.tgt (rs6000-*-*): Likewise.
5373 * config/rs6000/aix4.mh: Delete file.
5374 * config/rs6000/aix4.mt: Delete file.
5375 * config/rs6000/rs6000.mh: Delete file.
5376 * config/rs6000/rs6000.mt: Delete file.
5378 * config/powerpc/nm-aix.h: Delete file.
5379 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5381 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5383 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5384 Remove obsolete part of comment.
5385 (store_regs_user_thread): Use uint32_t temporaries when calling
5387 (store_regs_kernel_thread): Likewise. Add assertion to verify
5388 correct size of struct ptsprs members.
5389 (aix_thread_xfer_memory): Fix type of myaddr.
5390 (aix_thread_extra_thread_info): Fix compiler warning.
5391 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5392 (fetch_register, store_register): Adapt callers.
5394 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5396 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5398 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5400 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5402 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5403 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5404 (alpha_linux_regset_from_core_section): New function.
5405 (alpha_linux_init_abi): Install it.
5406 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5407 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5408 <sys/procfs.h>, and "gregset.h".
5409 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5410 Move from config/alpha/nm-linux.h.
5411 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5413 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5414 * alpha-nat.c: Remove #ifdef __linux__ section.
5415 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5416 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5417 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5418 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5419 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5420 (NATDEPFILES): Remove alpha-nat.o.
5421 * config/alpha/nm-linux.h: Delete file.
5422 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5423 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5424 (alpha-linux-tdep.o): Likewise.
5426 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5428 * mips-linux-nat.c: No longer include "gdbcore.h".
5429 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5430 (mips64_linux_register_addr): Likewise.
5431 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5432 mips64_linux_register_addr instead of register_addr.
5433 * mips-linux-tdep.c (mips_linux_register_addr,
5434 mips64_linux_register_addr): Move to mips-linux-nat.c.
5435 (register_addr): Remove.
5436 (register_addr_data, init_register_addr_data): Remove.
5437 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5438 (set_mips_linux_register_addr): Remove.
5439 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5440 * Makefile.in (mips-linux-nat.o): Update dependencies.
5442 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5444 * linux-nat.c (linux_register_u_offset): Remove.
5445 (linux_target_install_ops): New function.
5446 (linux_target): Use it.
5447 (linux_trad_target): New function.
5448 * linux-nat.h (linux_trad_target): Declare.
5450 * alpha-linux-nat.c: Include "gdbcore.h".
5451 (alpha_linux_register_u_offset): New function.
5452 (_initialize_alpha_linux_nat): Use linux_trad_target.
5454 * mips-linux-nat.c: Include "gdbcore.h".
5455 (mips_linux_register_u_offset): New function.
5456 (_initialize_mips_linux_nat): Use linux_trad_target.
5458 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5459 * config/arm/nm-linux.h: Delete file.
5461 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5462 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5464 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5465 * config/ia64/nm-linux.h: Delete file.
5467 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5468 * config/m32r/nm-linux.h: Delete file.
5470 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5471 * config/m68k/nm-linux.h: Delete file.
5473 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5474 * config/pa/nm-linux.h: Delete file.
5476 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5477 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5478 * config/powerpc/nm-linux.h: Delete file.
5480 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5481 * config/s390/nm-linux.h: Delete file.
5483 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5484 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5485 * config/sparc/nm-linux.h: Delete file.
5487 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5488 (mips-linux-nat.o): Likewise.
5490 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5492 * core-aout.c: Delete file.
5493 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5494 (core-aout.o): Delete rule.
5495 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5497 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5499 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5500 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5501 KERNEL_U_ADDR): Remove.
5503 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5504 (cannot_fetch_register, cannot_store_register): Remove.
5505 (fetch_register): Inline cannot_fetch_register and register_addr.
5506 (store_register): Inline cannot_store_register and register_addr.
5507 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5508 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5509 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5512 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5513 (fetch_register): Inline register_addr.
5514 (store_register): Inline register_addr.
5515 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5516 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5517 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5519 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5520 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5521 REGISTER_U_ADDR): Remove.
5523 * hppa-linux-nat.c (register_addr): Rename to ...
5524 (hppa_linux_register_addr): ... this. Make static.
5525 (fetch_register, store_register): Adapt callers.
5526 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5528 * ppc-linux-nat.c (kernel_u_size): Remove.
5529 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5531 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5532 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5534 * config/vax/nm-vax.h: Delete file.
5536 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5538 * MAINTAINERS (Write After Approval): Add myself.
5540 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5542 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5543 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5544 (m68k_linux_sigcontext_reg_offset): Fix typo.
5545 (target_is_uclinux): New.
5546 (m68k_linux_inferior_created): New.
5547 (m68k_linux_get_sigtramp_info): Check for uClinux or
5548 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5550 (_initialize_m68k_linux_tdep): Register
5551 m68k_linux_inferior_created.
5553 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5555 * win32-nat.c (win32_detach): Remove delete_command call.
5556 Resume inferior with win32_resume instead of win32_continue.
5558 2007-04-19 Jerome Guitton <guitton@adacore.com>
5560 * ser-mingw.c (fd_is_file): New function.
5561 (file_select_thread): New function.
5562 (ser_console_wait_handle): Add special handling for files.
5564 2007-04-18 Denis Pilat <denis.pilat@st.com>
5566 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5567 when missing from DW_TAG_subrange_type. Remove the handling of null
5568 return from die_type.
5570 2007-04-18 Maciej W. Rozycki <macro@mips.com>
5572 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5573 change to rearrange some brackets.
5574 (mips_n32n64_push_dummy_call): Likewise.
5575 (mips_o32_push_dummy_call): Likewise.
5576 (mips_o64_push_dummy_call): Likewise.
5578 2007-04-18 Denis Pilat <denis.pilat@st.com>
5580 * infcmd.c (post_create_inferior): Start with a call to
5581 target_terminal_ours.
5583 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5585 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5587 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5589 (mips_o32_push_dummy_call): Likewise.
5590 (mips_o64_push_dummy_call): Likewise.
5592 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5594 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5597 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5599 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5601 (mips_o32_push_dummy_call): Likewise.
5603 2007-04-17 Andreas Schwab <schwab@suse.de>
5605 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5606 sal to be bigger than the end of the function.
5608 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5609 Nigel Stephens <nigel@mips.com>
5611 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5612 argument alignment requirements when calculating stack space
5613 required. When aligning an arg register to eight bytes
5614 boundary, align stack_offset too. Write floating-point
5615 arguments to the appropriate integer register if need go there.
5616 (mips_o64_push_dummy_call): Likewise.
5618 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5620 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5621 "sig" arguments, add "regcache" argument.
5622 * gdbarch.c, gdbarch.h: Regenerate.
5624 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5625 (handle_inferior_event): Call remove_single_step_breakpoints directly
5626 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5628 * alpha-tdep.c (alpha_software_single_step): Update argument list.
5629 Remove handling of !insert_breakpoints_p case.
5630 * arm-tdep.c (arm_software_single_step): Likewise.
5631 * cris-tdep.c (cris_software_single_step): Likewise.
5632 * mips-tdep.c (mips_software_single_step): Likewise.
5633 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5634 * sparc-tdep.c (sparc_software_single_step): Likewise.
5635 * spu-tdep.c (spu_software_single_step): Likewise.
5637 * alpha-tdep.h (alpha_software_single_step): Update prototype.
5638 * mips-tdep.h (mips_software_single_step): Likewise.
5639 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5640 * sparc-tdep.h (sparc_software_single_step): Likewise.
5642 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5644 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5645 when removing single-step breakpoints.
5647 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
5649 * varobj.h (varobj_set_frozen): New
5650 (varobj_get_frozen): New.
5651 (varobj_update): New parameter explicit.
5652 * varobj.c (struct varobj): New fields frozen
5654 (varobj_set_frozen, varobj_get_frozen): New.
5655 (install_new_value): Don't fetch values for
5656 frozen variable object, or children thereof. Allow
5657 a frozen variable object to have non-fetched value.
5658 (varobj_update): Allow updating child variables.
5659 Don't traverse frozen children.
5660 (new_variable): Initialize the frozen field.
5661 (c_value_of_variable): Return NULL for frozen
5662 variable without any value yet.
5663 * mi/mi-cmd-var.c (varobj_update_one): New parameter
5665 (mi_cmd_var_create): Output the 'frozen' field,
5666 as soon as testsuite is adjusted to expect that field.
5667 (mi_cmd_var_set_frozen): New.
5668 (mi_cmd_var_update): Pass the 'explicit' parameter to
5670 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
5671 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
5673 2007-04-13 Paul Brook <paul@codesourcery.com>
5675 * target-descriptions.c (tdesc_named_type): Add ieee_single and
5677 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
5679 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5681 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
5682 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
5683 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
5684 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
5685 * Makefile.in: Remove references to deleted files.
5686 * README: Do not mention deleted ROM monitor interfaces.
5687 * defs.h (enum language): Delete language_scm.
5688 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
5689 (dump_subexp_body_standard): Likewise.
5690 * parse.c (operator_length_standard): Likewise.
5691 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
5692 * remote-mips.c: Do not include remote-utils.h.
5693 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
5695 * value.c: Do not include scm-lang.h.
5696 (unpack_long): Delete scm_unpack call.
5697 * config/h8300/h8300.mt, config/mips/embed.mt,
5698 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
5699 config/sh/embed.mt, config/sh/linux.mt: Remove references to
5701 * NEWS: Mention removed files.
5703 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5705 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
5706 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
5708 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5710 * NEWS: Mention removal of HP aCC support.
5712 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5714 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
5715 first entry for static executables.
5716 (breakpoint_addr): Delete unused variable.
5717 (elf_locate_base): Search for _r_debug in static executables.
5718 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
5721 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5723 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
5724 (bpstat_what, print_one_breakpoint, allocate_bp_location)
5725 (mention): Remove bp_through_sigtramp support.
5726 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
5728 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5730 * breakpoint.c (bpstat_what): Give step-resume higher priority than
5733 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5735 * infrun.c: Doc fixes.
5736 (handle_inferior_event): Clarify debug message.
5737 (insert_step_resume_breakpoint_at_sal): Print a debug message.
5739 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5741 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
5743 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5745 * config/m68k/tm-monitor.h: Delete file.
5746 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
5747 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
5749 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
5750 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
5752 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
5754 * gdbarch.sh (software_single_step): Change the return type
5755 from void to int and reformatted some comments to <= 80
5757 * gdbarch.c, gdbarch.h: Regenerated.
5758 * alpha-tdep.c (alpha_software_single_step): Likewise.
5759 * alpha-tdep.h (alpha_software_single_step): Likewise.
5760 * arm-tdep.c (arm_software_single_step): Likewise.
5761 * cris-tdep.c (cris_software_single_step): Likewise.
5762 * mips-tdep.c (mips_software_single_step): Likewise.
5763 * mips-tdep.h (mips_software_single_step): Likewise.
5764 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5765 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5766 * sparc-tdep.c (sparc_software_single_step): Likewise.
5767 * sparc-tdep.h (sparc_software_single_step): Likewise.
5768 * spu-tdep.c (spu_software_single_step): Likewise.
5769 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
5770 and act accordingly.
5772 2007-04-11 Steve Ellcey <sje@cup.hp.com>
5774 * configure.ac (build_warnings): Add -Wno-char-subscripts.
5775 * configure: Regenerate.
5776 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
5778 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5780 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
5782 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5784 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
5786 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
5787 distinct on the TYPE_STUB_SUPPORTED debug targets.
5788 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
5790 2007-04-11 Joel Brobecker <brobecker@adacore.com>
5792 * sparc-tdep.c (X_RS2): New macro.
5793 (sparc_skip_stack_check): New function.
5794 (sparc_analyze_prologue): Adjust PC past stack probing
5795 sequence if necessary.
5797 2007-04-10 Andreas Schwab <schwab@suse.de>
5799 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
5802 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5804 * breakpoint.c (gdb_breakpoint_query): Really return an
5806 (gdb_breakpoint): Likewise.
5807 * thread.c (gdb_list_thread_ids): Likewise.
5808 (gdb_thread_select): Likewise.
5809 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
5810 (mi_cmd_thread_list_ids): Remove bogus initialization.
5812 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5814 * Makefile.in (SFILES): Remove hpacc-abi.c.
5815 (COMMON_OBS): Remove hpacc-abi.o.
5816 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
5817 (hpacc-abi.o, hpread.o): Delete rules.
5818 * somread.c: Delete extern declarations from hpread.c.
5819 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
5820 (som_symfile_finish): Do not call hpread_symfile_finish.
5821 (som_symfile_init): Do not call hpread_symfile_init.
5822 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
5823 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
5824 * hpacc-abi.c, hpread.c: Deleted.
5826 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5828 * solib-svr4.c (enable_break): Simplify return value.
5829 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
5831 2007-04-10 Andreas Schwab <schwab@suse.de>
5833 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
5834 l_ld_size, l_next_size, l_prev_size, l_name_size.
5836 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
5837 to extract addresses from link map.
5838 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
5839 (LM_NEXT): Likewise.
5840 (LM_NAME): Likewise.
5841 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
5842 (elf_locate_base): Likewise.
5843 (open_symbol_file_object): Likewise.
5844 (svr4_fetch_objfile_link_map): Likewise.
5845 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
5846 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
5848 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
5849 (svr4_lp64_fetch_link_map_offsets): Likewise.
5851 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
5852 removed members. Set l_ld_offset to -1 if not present.
5854 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
5856 Pass stderr of program run with "target remote |"
5858 * serial.c (serial_open): Set error_fd to -1.
5859 * serial.h (struct serial): New field error_fd.
5860 (struct serial_opts): New field avail.
5861 * ser-pipe.c (pipe_open): Create another pair
5862 of sockets. Pass stderr to gdb.
5863 * ser-mingw.c (pipe_windows_open): Pass
5864 PEX_STDERR_TO_PIPE to pex_run. Initialize
5867 (_initialize_ser_windows): Hook pipe_avail.
5868 * ser-base.c (generic_readchar): Check if there's
5869 anything in stderr channel and route that to gdb_stderr.
5871 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
5873 * dbxread.c (read_ofile_symtab): Move current_objfile
5874 clearing to after end_stabs.
5876 2007-04-01 Andreas Schwab <schwab@suse.de>
5878 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
5879 gdbarch instead of current_gdbarch.
5881 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
5883 * varobj.c (varobj_create): Keep varobj value
5884 NULL when evaluating the type.
5886 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
5888 * NEWS: Mention new Windows CE support.
5890 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
5892 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
5893 the obsoletion stanza.
5894 * NEWS: Mention deleted targets.
5896 * config/sh/tm-wince.h: Remove.
5897 * config/sh/wince.mt: Remove.
5898 * config/mips/tm-wince.h: Remove.
5899 * config/mips/wince.mt: Remove.
5902 * wince-stub.c: Remove.
5903 * wince-stub.h: Remove.
5904 * Makefile.in (wince.o): Remove rule.
5905 (wince-stub.o): Likewise.
5907 * mips-tdep.c (mips_next_pc): Make static.
5908 * mips-tdep.h (mips_next_pc): Remove declaration.
5909 * arm-tdep.c (arm_pc_is_thumb): Make static.
5910 (thumb_get_next_pc): Likewise.
5911 (arm_get_next_pc): Likewise.
5912 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
5913 (arm_pc_is_thumb): Likewise.
5914 (thumb_get_next_pc): Likewise.
5915 (arm_get_next_pc): Likewise.
5917 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5919 * MAINTAINERS: Remove d10v entry.
5920 * Makefile.in (SFILES): Remove dwarfread.c.
5921 (COMMON_OBS): Remove dwarfread.o.
5922 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
5923 (remote-est.o, rom68k-rom.o): Delete.
5924 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
5925 target est, target rom68k, and DWARF 1.
5926 * configure.tgt: Mark d10v as removed.
5927 * dwarf2read.c: Doc update.
5928 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
5930 (elf_locate_sections): Do not set them.
5931 (elf_symfile_read): Do not call dwarf_build_psymtabs.
5932 * symfile.h (dwarf_build_psymtabs): Delete prototype.
5933 * config/m68k/monitor.mt (TDEPFILES): Prune.
5934 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
5935 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
5937 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5939 * doublest.c (convert_floatformat_to_doublest): Use
5940 floatformat_classify.
5941 (floatformat_is_nan): Rename to...
5942 (floatformat_classify): ...this. Return more information.
5943 * doublest.h (enum float_kind): New.
5944 (floatformat_is_nan): Replace prototype...
5945 (floatformat_classify): ...with this one.
5946 * valprint.c (print_floating): Use floatformat_classify. Handle
5949 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5951 * README: Mention ISO C library requirement.
5953 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5955 * Makefile.in (SFILES): Remove nlmread.c.
5956 (COMMON_OBS): Remove nlmread.o.
5957 (nlmread.o): Delete rule.
5958 * README: Delete reference to remote-st.c.
5959 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
5960 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
5962 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
5963 (_initialize_i386_tdep): Do not reference them.
5964 * nlmread.c: Delete file.
5965 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
5966 * target.c: Doc update.
5967 * thread.c: Delete commented include.
5968 * config/alpha/tm-alpha.h: Doc update.
5970 2007-03-30 Chris Dearman <chris@mips.com>
5972 * utils.c (string_to_core_addr): Comment typo.
5974 2007-03-30 Chris Dearman <chris@mips.com>
5976 * mips-tdep.c: Comment typo.
5978 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
5980 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
5981 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5982 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5983 * config/powerpc/nm-ppc64-linux.h: Remove file.
5984 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
5985 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
5986 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
5987 * infptrace.c (call_ptrace): Likewise.
5988 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
5989 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
5990 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
5991 (store_register): Likewise.
5993 2007-03-29 Joel Brobecker <brobecker@adacore.com>
5995 * Makefile.in (varobj.o): Add missing dependency.
5997 2007-03-29 Michael Snyder <msnyder@access-company.com>
5999 * MAINTAINERS: Update my email address.
6001 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6003 Add support for exception handling with multiple versions of
6005 * ada-lang.c: Update general comments on how Ada exception catchpoints
6007 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
6008 (__gnat_raise_nodefer_with_msg): Delete.
6009 (ada_unhandled_exception_name_addr_ftype): New type.
6010 (exception_support_info): New type.
6011 (ada_unhandled_exception_name_addr): Add forward declaration.
6012 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6013 (default_exception_support_info): New constant.
6014 (exception_support_info_fallback): Likewise.
6015 (exception_info): New global variable.
6016 (ada_exception_support_info_sniffer): New function.
6017 (ada_executable_changed_observer): Likewise.
6018 (ada_unhandled_exception_name_addr_from_raise): Renamed from
6019 ada_unhandled_exception_name_addr.
6020 (ada_unhandled_exception_name_addr): Reimplement to match the
6021 latest Ada runtime implementation.
6022 (error_breakpoint_runtime_sym_not_found): Delete.
6023 (ada_exception_sym_name): Get the exception sym name from
6024 exception_info rather than hardcoding it.
6025 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
6026 Update error handling.
6027 * Makefile.in (ada-lang.o): Add dependency on observer.h.
6029 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6031 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
6032 (remote-st.o, uw-thread.o): Delete.
6033 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
6034 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6035 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
6036 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
6037 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
6038 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
6039 rs6000-*-lynxos* to an obsoletion stanza.
6040 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6041 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
6042 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
6043 i[34567]86-*-netware*.
6044 * NEWS: Mention deleted targets.
6046 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
6047 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
6048 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
6049 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
6050 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
6051 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
6052 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
6053 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
6054 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
6055 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
6056 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
6057 config/rs6000/tm-rs6000ly.h: Delete files.
6059 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6061 * defs.h (deprecated_registers_changed_hook): Delete declaration.
6062 * interps.c (clear_interpreter_hooks): Do not clear
6063 deprecated_registers_changed_hook.
6064 * regcache.c (registers_changed): Do not call it.
6065 * top.c (deprecated_registers_changed_hook): Do not define it.
6066 * mi/mi-interp.c (mi_command_loop): Do not clear it.
6067 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
6068 (tui_remove_hooks): Do not remove it.
6069 (tui_selected_frame_level_changed_hook): Check for negative level.
6070 Use get_selected_frame.
6071 (tui_registers_changed_hook): Deleted.
6073 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6075 * stabsread.c (add_undefined_type): Add extra parameter.
6076 Now handles nameless types separately.
6077 (struct nat): New type.
6078 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
6079 New static variables.
6080 (read_type): Update calls to add_undefined_type.
6081 (add_undefined_type_noname): New function.
6082 (add_undefined_type_1): Renames from add_undefined_type.
6083 (cleanup_undefined_types_noname): New function.
6084 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
6085 (cleanup_undefined_types): New handles nameless types separately.
6086 (_initialize_stabsread): Initialize our new static constants.
6088 2007-03-29 Denis Pilat <denis.pilat@st.com>
6090 * configure.ac: Test for signal.h.
6091 * configure, config.in: Regenerate.
6093 2007-03-29 Denis Pilat <denis.pilat@st.com>
6095 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
6096 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6098 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
6100 * arm-wince-tdep.c: New.
6101 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6102 (MT_CFLAGS): Delete.
6104 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6105 solib-legacy.o, solib-svr4.o, and remove wince.o.
6106 * configure.tgt (arm*-*-mingw32ce*): Add.
6107 * signals/signals.c [HAVE_SIGNAL_H]: Check.
6108 (do_target_signal_to_host): Silence 'not used' warning.
6109 * config/arm/tm-wince.h: Remove.
6111 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6113 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6114 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6116 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6117 * config/ia64/tm-linux.h: Remove file.
6118 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6119 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6120 legacy_pc_in_sigtramp.
6121 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6122 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6123 Remove func_name argument.
6124 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6126 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6127 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6128 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6129 (HAVE_STEPPABLE_WATCHPOINT): Define.
6131 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6132 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6133 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6134 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6135 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6136 target_insert_watchpoint, target_remove_watchpoint): Remove.
6137 (FETCH_INFERIOR_REGISTERS): Define.
6138 * ia64-linux-nat.c (ia64_register_addr): Make static.
6139 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6140 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6141 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6142 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6143 (ia64_linux_stopped_by_watchpoint): Make static.
6144 (ia64_linux_can_use_hw_breakpoint): New function.
6145 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6146 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6147 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6149 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6151 * linespec.c: Include language.h.
6152 (find_methods): Add language parameter. Call
6153 lookup_symbol_in_language. Pass language down.
6154 (add_matching_methods): Likewise. Call
6155 lookup_symbol_in_language.
6156 (add_constructors): Likewise.
6157 (find_method): Pass sym_class to collect_methods.
6158 (collect_methods): Add sym_class parameter. Pass language
6160 * symtab.c (lookup_symbol): Rename to ...
6161 (lookup_symbol_in_language): ... this. Add language
6162 parameter. Use passed language instead of current_language.
6163 (lookup_symbol): New as wrapper around
6164 lookup_symbol_in_language.
6165 (lookup_symbol_aux): Add language parameter. Use passed
6166 language instead of current_language.
6167 (search_symbols): Indent.
6168 * symtab.h (enum language): Forward declare.
6169 (lookup_symbol_in_language): Declare.
6170 (lookup_symbol): Update description.
6171 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6172 * ada-lang.c (restore_language): Remove.
6173 (lookup_symbol_in_language): Remove.
6175 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6177 * breakpoint.c (bpstat_num): Add int *num parameter.
6178 * breakpoint.h (bpstat_num): Likewise.
6179 * infcmd.c (continue_command): Adjust to new bpstat_num
6181 (program_info): Likewise.
6183 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6185 * config/sh/tm-sh.h: Remove file.
6186 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6187 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6188 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6189 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6191 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6193 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6194 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6195 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6196 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6197 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6198 sequence if target_shortname is "remote".
6200 2007-03-27 Anton Blanchard <anton@samba.org>
6202 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6203 instead of wordsize when looking for the LR in a stack frame.
6205 2007-03-27 Andreas Schwab <schwab@suse.de>
6206 Daniel Jacobowitz <dan@codesourcery.com>
6208 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6209 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6210 argument. Update all callers.
6211 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6212 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6213 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6214 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6215 (dwarf2_frame_set_adjust_regnum): ...this.
6216 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6217 * rs6000-tdep.c: Include "dwarf2-frame.h".
6218 (rs6000_adjust_frame_regnum): Define.
6219 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6220 Register rs6000_adjust_frame_regnum.
6222 * Makefile.in (rs6000-tdep.o): Update dependencies.
6224 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6226 * Makefile.in: Add support for a "pdf" target.
6228 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6230 * amd64-tdep.c (amd64_init_frame_cache): New function.
6231 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6233 2007-03-26 Nigel Stephens <nigel@mips.com>
6234 Maciej W. Rozycki <macro@mips.com>
6236 * ui-out.c (ui_out_field_core_addr): Truncate address to
6237 TARGET_ADDR_BIT size before printing.
6239 2007-03-22 Nigel Stephens <nigel@mips.com>
6240 Maciej W. Rozycki <macro@mips.com>
6242 * remote-mips.c (mips_xfer_memory): Update prototype.
6244 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6246 * symfile.h: #include "symtab.h"
6248 2007-03-22 Denis Pilat <denis.pilat@st.com>
6250 * utils.c (pagination_on_command, pagination_off_command):
6251 Remove useless prototypes.
6253 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6256 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6257 instead of TYPE_NAME for object base class name.
6260 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6262 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6263 Specify frame type in calls to frame_func_unwind().
6265 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6267 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6268 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6269 (refine_prologue_limit): Delete.
6270 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6271 Assume lim_pc is set. Correct check for incomplete prologues.
6272 Do not skip clobbers of the frame pointer.
6273 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6276 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6278 * frame.c (frame_pop): Check to see whether there's a frame to
6279 which we can pop first.
6281 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6283 * MAINTAINERS (Write After Approval): Add myself.
6285 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6287 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6288 (handle_inferior_event): Remove unnecessary braces.
6289 * breakpoint.c (bpstat_what): Remove wrong comment.
6291 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6293 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6294 (spu_gdbarch_init): Install it.
6296 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6298 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6299 object types, not 0.
6301 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6303 * spu-tdep.c (spu_frame_align): New function.
6304 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6306 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6308 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6309 (spu_software_single_step): Likewise.
6310 (spu_read_pc, spu_write_pc): New functions.
6311 (spu_gdbarch_init): Install them.
6313 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6315 * cli/cli-dump.c (struct callback_data): load_offset needs to
6316 have signed long type.
6318 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6320 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6321 Revert the previous change that had some unexpected side-effects
6323 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6324 function to get the address of the calling instruction.
6326 2007-03-07 Denis Pilat <denis.pilat@st.com>
6328 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6329 get_selected_frame by deprecated_safe_get_selected_frame.
6331 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6333 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6334 "gdb_string.h". Don't include "nbsd-tdep.h".
6335 (SIZEOF_STRUCT_REG): Remove.
6336 (SHNBSD_SIZEOF_GREGS): New.
6337 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6338 (shnbsd_regset_from_core_section): New functions.
6339 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6340 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6341 shnbsd_supply_gregset, shnbsd_collect_gregset.
6342 (shnbsd_gregset): New variable.
6343 (shnbsd_init_abi): Set regset_from_core_section.
6344 (GDB_OSABI_NETBSD_CORE): New define.
6345 (shnbsd_core_osabi_sniffer): New function.
6346 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6347 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6348 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6350 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6352 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6354 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6355 length of the types referenced by the new type CV ring.
6357 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6359 * frame.c (frame_pop, frame_observer_target_changed): Call
6361 (flush_cached_frames): Rename to reinit_frame_cache and delete
6363 * frame.h (flush_cached_frames): Delete prototype and update comment.
6365 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6366 reinit_frame_cache instead of flush_cached_frames. Do not call
6367 select_frame after reinit_frame_cache.
6368 * corelow.c (core_open): Likewise.
6369 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6370 * infrun.c (prepare_to_proceed, context_switch)
6371 (handle_inferior_event): Likewise.
6372 * linux-fork.c (fork_load_infrun_state): Likewise.
6373 * ocd.c (ocd_start_remote): Likewise.
6374 * remote-e7000.c (e7000_start_remote): Likewise.
6375 * remote-mips.c (device): Likewise.
6376 * thread.c (switch_to_thread): Likewise.
6377 * tracepoint.c (finish_tfind_command): Likewise.
6378 * gdbarch.c: Regenerated.
6380 2007-02-28 Jerome Guitton <guitton@adacore.com>
6381 Joel Brobecker <brobecker@adacore.com>
6383 * gdbtypes.c (check_typedef): Do not replace stub type if
6384 the resolved type is not defined in the same objfile.
6386 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6388 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6390 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6392 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6393 symbol for Ada units when the symbol is defined using 't' rather
6394 than 'Tt' as symbol descriptor.
6396 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6398 * config/mips/tm-nbsd.h: Delete file.
6399 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6400 * config/sh/tm-nbsd.h: Delete file.
6401 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6403 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6405 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6406 unused WRONG_PARAM value since it was recently deleted.
6408 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6410 * varobj.c (varobj_update): Free temporary vectors.
6412 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6414 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6415 * config/powerpc/tm-linux.h: Delete file.
6416 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6417 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6418 (TEXT_SEGMENT_BASE): Do not redefine.
6419 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6420 from config/rs6000/tm-rs6000.h.
6421 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6422 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6423 (TEXT_SEGMENT_BASE): Remove.
6424 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6425 (rs6000_in_solib_return_trampoline): Remove.
6426 (SKIP_TRAMPOLINE_CODE): Remove.
6427 (rs6000_skip_trampoline_code): Remove.
6428 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6429 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6430 (FP0_REGNUM): Remove.
6431 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6432 (rs6000_set_host_arch_hook): Remove.
6433 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6434 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6435 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6436 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6437 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6438 * rs6000-nat.c: Include "rs6000-tdep.h".
6439 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6440 (set_host_arch): Rename to ...
6441 (rs6000_create_inferior): ... this. Make public.
6442 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6443 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6444 (rs6000_create_inferior): Remove.
6445 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6446 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6447 set_gdbarch_in_solib_return_trampoline, and
6448 set_gdbarch_skip_trampoline_code.
6449 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6450 from config/rs6000/tm-rs6000.h.
6452 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6454 * buildsym.c (record_producer): Do nothing if no producer is provided.
6456 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6458 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6459 to check changelist is non-NULL. Call error if the frontend tries
6460 to update a non-root variable.
6462 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6464 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6466 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6467 (dwarf2_frame_sniffer): Update.
6468 (dwarf2_signal_frame_this_id): New function.
6469 (dwarf2_signal_frame_unwind): Use it.
6470 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6471 * frame.c (frame_func_unwind): Add this_type argument.
6472 (get_frame_func): Update.
6473 (frame_unwind_address_in_block): Add this_type argument and check it.
6475 (get_frame_address_in_block): Update.
6476 * frame.h (enum frame_type): Move higher in the file.
6477 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6480 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6481 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6482 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6483 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6484 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6485 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6486 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6487 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6488 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6489 frame_func_unwind and frame_unwind_address_in_block to specify
6490 the frame type. Use frame_unwind_address_in_block instead of
6491 frame_pc_unwind in sniffers.
6493 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6495 * frame.c (deprecated_selected_frame): Rename to...
6496 (selected_frame): ...this. Make static.
6497 (get_selected_frame, select_frame): Update.
6498 * frame.h (deprected_select_frame): Delete.
6499 (deprecated_safe_get_selected_frame): Update comments.
6501 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6502 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6503 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6504 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6505 tui/tui.c: Replace references to deprecated_selected_frame.
6507 2007-02-27 Fred Fish <fnf@specifix.com>
6509 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6510 directly decrement the stack pointer, accumulate their operand into
6511 the stack offset, and mark the function as not being frameless.
6513 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6515 * arch-utils.c (selected_byte_order): New.
6516 * arch-utils.h (selected_byte_order): New prototype.
6517 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6519 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6521 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6522 (default_symfile_offsets): Check VMA here. Update section VMAs.
6524 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6526 * remote.c (init_remote_state): Add special handling for placeholder
6529 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6531 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6532 (filenames_h): New variable.
6533 (clean): Clean up xml-builtin.c and stamp-xml.
6534 (arm-linux-nat.o): Update.
6535 * config/arm/linux.mh (TDEP_XML): Define.
6536 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6537 (arm_linux_has_wmmx_registers): New.
6538 (GET_THREAD_ID): Fix typo.
6539 (IWMMXT_REGS_SIZE): Define.
6540 (fetch_wmmx_regs, store_wmmx_regs): New.
6541 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6542 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6543 (super_xfer_partial, arm_linux_xfer_partial): New.
6544 (_initialize_arm_linux_nat): Use them.
6545 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6546 (xml_builtin_xfer_partial): New function.
6547 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6548 * NEWS: Update mention of iWMMXt support.
6550 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6552 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6553 if there are no FPA registers.
6554 (arm_dwarf_reg_to_regnum): New function.
6555 (arm_register_type, arm_register_name): Return minimal values for
6556 unsupported registers.
6557 (arm_register_sim_regno): Handle iWMMXt registers.
6558 (arm_gdbarch_init): Record missing FPA registers if indicated by
6559 a target description. Recognize iWMMXt registers. Only register
6560 "info float" for FPA. Use ARM_NUM_REGS. Register
6561 arm_dwarf_reg_to_regnum.
6562 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6564 (struct gdbarch_tdep): Add have_fpa_registers.
6565 * features/xscale-iwmmxt.xml: Update capitalization.
6566 * regformats/arm-with-iwmmxt.dat: Regenerated.
6568 2007-02-24 Kevin Buettner <kevinb@redhat.com>
6570 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6572 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6574 * MAINTAINERS (mep): New target.
6576 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6578 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6580 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6581 (mep-tdep.o): New rule.
6582 * configure.tgt (mep-*-*): New target.
6583 * mep-tdep.c: New file.
6584 * config/mep/mep.mt: New file.
6586 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6588 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6589 BREAKPOINT_HIT and STOP_UNKNOWN.
6591 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6593 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
6595 2007-02-20 Joel Brobecker <brobecker@adacore.com>
6597 * gdb_expat.h (XMLCALL): Define if not already defined.
6599 2007-02-20 Andreas Schwab <schwab@suse.de>
6601 * Makefile.in (symfile.o): Update dependencies.
6603 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6605 * MAINTAINERS: Disable -Werror for cris simulator. Build
6606 sparc64-solaris2.10 instead of the broken sparc-elf.
6607 * solib-frv.c: Include "solib.h".
6608 * Makefile.in (solib-frv.o): Update.
6609 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6610 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6611 (xtensa_frame_this_id, xtensa_frame_prev_register)
6612 (xtensa_push_dummy_call): Use %p.
6614 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6616 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6617 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6618 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6619 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6620 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6621 (sparc-linux-tdep.o): Update.
6623 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
6625 * xtensa-tdep.h (xtensa_reg_mask_t): New.
6626 (xtensa_mask_t): Change mask field to be a separate array.
6627 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6628 (xtensa_pseudo_register_write, xtensa_unwind_pc)
6629 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6630 (xtensa_breakpoint_from_pc): Remove implicit type casting.
6631 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6632 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6633 (mask14, mask15): Rename to
6634 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6635 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6636 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6637 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6638 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6639 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6640 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6641 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6642 (xtensa_submask14, xtensa_submask15): New.
6643 (rmap): Follow strict aliasing rules doing static initialization.
6645 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
6647 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
6648 handling from here...
6649 (tdesc_register_type): ...to here.
6650 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
6651 * features/arm-core.xml: Use code_ptr and data_ptr.
6653 2007-02-13 Denis Pilat <denis.pilat@st.com>
6655 * varobj.h (enum varobj_update_error): New enum.
6656 * varobj.c (struct varobj_root): Add is_valid member.
6657 (varobj_get_type): Check for invalid varobj.
6658 (varobj_get_attributes): Likewise.
6659 (variable_editable):Likewise.
6660 (varobj_update): Likewise. Use varobj_update_error.
6661 (new_root_variable): Set root varobj as valid by default.
6662 (varobj_invalidate): New function.
6663 * symfile.c (clear_symtab_users): Use varobj_invalidate.
6664 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
6665 Use varobj_update_error.
6667 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
6670 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
6671 Pascal language marker.
6672 * dwarf2read.c (set_cu_language): Likewise.
6674 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
6676 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
6677 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
6678 instead of target_terminal_init since inferior_ptid isn't set yet.
6680 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
6682 * MAINTAINERS (Write After Approval): Add myself.
6684 2007-02-09 Fred Fish <fnf@specifix.com>
6686 Based on work by Apple Computer, Inc.
6687 * event-top.c (async_request_quit): Call quit() whenever either
6688 quit_flag is set or immediate_quit is set.
6690 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6692 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
6693 type to a pointer to const struct block.
6694 (ada_lookup_symbol_list): Don't cast away constness when calling
6695 remove_out_of_scope_renamings.
6697 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6699 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
6700 address of 'filename'; it is always non null.
6702 2007-02-09 Joel Brobecker <brobecker@adacore.com>
6704 * exec.c (add_to_section_table): Do not discard empty sections.
6706 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6708 * features/Makefile, features/arm-with-iwmmxt.xml,
6709 features/gdbserver-regs.xsl, features/number-regs.xsl,
6710 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
6711 * regformats/arm-with-iwmmxt.dat: Generate.
6712 * NEWS: Mention iWMMXt.
6714 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6716 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
6717 (xml-tdesc.o): Update.
6718 * xml-support.c: Add a comment.
6719 (gdb_xml_enums_boolean): New variable.
6720 (gdb_xml_parse_attr_enum): Use strcasecmp.
6721 * xml-support.h (gdb_xml_enums_boolean): Declare.
6722 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
6723 next_regnum, and current_union.
6724 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
6725 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
6726 (field_attributes, union_children, reg_attributes, union_attributes)
6727 (vector_attributes, feature_attributes, feature_children): New.
6728 (target_children): Make static. Add <feature>.
6729 (tdesc_elements): Make static.
6730 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
6731 (struct tdesc_feature, tdesc_feature_p): New types.
6732 (struct target_desc): Add features member.
6733 (struct tdesc_arch_data, tdesc_data): New.
6734 (target_find_description): Clarify error message. Warn about
6735 ignored register descriptions.
6736 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6737 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
6738 (tdesc_data_cleanup, tdesc_numbered_register)
6739 (tdesc_numbered_register_choices, tdesc_find_register)
6740 (tdesc_register_name, tdesc_register_type)
6741 (tdesc_remote_register_number, tdesc_register_reggroup_p)
6742 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
6743 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
6744 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
6745 (tdesc_create_feature, tdesc_record_type): New.
6746 (free_target_description): Free features.
6747 (_initialize_target_descriptions): Initialize tdesc_data.
6748 * arch-utils.c (default_remote_register_number): New.
6749 * arch-utils.h (default_remote_register_number): New prototype.
6750 * target-descriptions.h (set_tdesc_pseudo_register_name)
6751 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
6752 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
6753 (tdesc_numbered_register, tdesc_numbered_register_choices)
6754 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6755 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
6756 (tdesc_create_reg): Declare.
6757 * gdbarch.sh (remote_register_number): New entry.
6758 * gdbarch.c, gdbarch.h: Regenerate.
6759 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
6760 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
6762 * arm-tdep.c (arm_register_aliases): New.
6763 (arm_register_name_strings): Rename to...
6764 (arm_register_names): ...this. Make const. Delete the old version.
6765 (current_option, arm_register_byte): Delete.
6766 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
6767 (value_of_arm_user_reg): New.
6768 (arm_gdbarch_init): Verify any described registers. Call
6769 tdesc_use_registers. Don't use arm_register_byte. Create aliases
6770 for standard register names.
6771 (_initialize_arm_tdep): Do not adjust arm_register_names.
6772 * user-regs.c (struct user_reg): Add baton member.
6773 (append_user_reg, user_reg_add_builtin, user_regs_init)
6774 (user_reg_add, value_of_user_reg): Use a baton for user
6776 * std-regs.c: Update.
6777 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
6778 (user_reg_add): Add baton argument.
6779 * NEWS: Mention target description register support.
6780 * features/arm-core.xml, features/arm-fpa.xml: New.
6781 * eval.c (evaluate_subexp_standard): Allow ptype $register
6782 when the program is not running.
6784 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
6786 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
6788 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6790 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
6791 info->disassembler_options to "any".
6793 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6795 * varobj.c (install_new_value): Only call value_get_print_value
6798 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6800 Reported by timeless@gmail.com:
6801 * gdb/target.c (target_flash_erase): Do not return void value.
6802 (target_flash_done): Likewise.
6803 * gdb/cli/cli-cmds.c (source_command): Likewise.
6805 2007-02-08 Fred Fish <fnf@specifix.com>
6807 Based on work by Apple Computer, Inc.
6808 * event-top.c (handle_sigint): Set quit_flag.
6809 (async_request_quit): Don't set quit_flag. Avoid calling quit()
6810 if quit_flag has already been reset.
6812 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6814 * ser-mingw.c (pipe_windows_close): Move variable initialization back
6817 2007-02-08 Fred Fish <fnf@specifix.com>
6819 * defs.h (request_quit): Remove declaration.
6820 * utils.c (request_quit): Remove definition.
6822 2007-02-08 Joel Brobecker <brobecker@gnat.com>
6823 Jan Kratochvil <jan.kratochvil@redhat.com>
6824 Daniel Jacobowitz <dan@codesourcery.com>
6826 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
6827 (skip_prologue): Allow bl->blrl used by PIC code.
6829 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6830 Daniel Jacobowitz <dan@codesourcery.com>
6832 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
6833 initialize tmp_obstack.
6834 * p-valprint.c (pascal_object_print_value_fields)
6835 (pascal_object_print_value): Likewise.
6837 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6839 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
6841 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6843 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6844 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
6846 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6848 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
6850 (tdesc_parse_xml): Cache expanded descriptions.
6852 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6854 * Makefile.in (XMLFILES): New.
6855 (COMMON_OBS): Add xml-builtin.o.
6856 (xml-builtin.c, stamp-xml): New rules.
6857 (xml-tdesc.o): Update.
6858 * features/feature_to_c.sh: New file.
6859 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
6860 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
6861 (gdb_xml_start_element): Initialize scope after possibly reallocating
6862 scopes. Move cleanup later. Handle the XInclude description
6864 (gdb_xml_end_element): Only parse the body if there is a current element.
6865 Call XML_DefaultCurrent if there is no element.
6866 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
6867 (struct xinclude_parsing_data, xinclude_start_include)
6868 (xinclude_end_include, xml_xinclude_default)
6869 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
6870 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
6871 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
6872 * xml-support.h (xml_fetch_another, xml_process_xincludes)
6873 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
6874 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
6875 XInclude directives. Use the compiled in DTD.
6876 (fetch_xml_from_file): Add baton argument. Treat it as a containing
6877 directory name. Do not warn here.
6878 (file_read_description_xml): Update call. Warn here instead. Pass
6880 (fetch_available_features_from_target): New.
6881 (target_read_description_xml): Use it.
6882 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
6884 * features/xinclude.dtd: New file.
6886 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6888 * linux-thread-db.c (check_for_thread_db): Return early if we have
6889 no libthread_db support.
6891 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6893 * mi/mi-parse.h: Include <sys/time.h>.
6895 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
6897 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
6898 instead of print_variable_value to print values.
6900 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6902 * mi/mi-main.c: Numerous formatting changes.
6903 (mi_cmd_data_write_register_values): Replace clause inadvertantly
6904 removed in my previous change.
6906 2007-02-03 Eli Zaretskii <eliz@gnu.org>
6908 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
6909 Use 1000000L instead of 1000000.
6911 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6913 Based on work by Apple Computer, Inc.
6915 * configure.ac: Test for sys/resource.h and getrusage.
6916 * configure, config.in: Regenerate.
6918 * mi/mi-main.c: Include <sys/resource.h> if present.
6919 (rusage): Declare if HAVE_GETRUSAGE.
6920 (current_command_ts, do_timings): New static variables.
6921 (timestamp, print_diff_now, print_diff, timeval_diff):
6922 New static timing functions.
6923 (mi_cmd_enable_timings): New function for new MI command.
6924 (captured_mi_execute_command, mi_execute_async_cli_command):
6925 Call timing functions.
6927 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
6930 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
6932 * mi/mi-parse.h: (mi_timestamp): New structure.
6933 (mi_parse): Add mi_timestamp* member.
6935 2007-02-02 Denis Pilat <denis.pilat@st.com>
6937 * thread.c (make_cleanup_restore_current_thread): New function.
6938 (info_threads_command): Use of make_cleanup_restore_current_thread
6939 to restore the current thread and the selected frame.
6940 (restore_selected_frame): New function.
6941 (struct current_thread_cleanup): Add frame_id field.
6942 (do_restore_current_thread_cleanup): Add restoring of the selected
6944 (make_cleanup_restore_current_thread): Likewise.
6945 (thread_apply_all_command): backup the selected frame while
6946 entering the function and restore it at exit.
6947 (thread_apply_command): Likewise.
6949 2007-02-02 Denis Pilat <denis.pilat@st.com>
6951 * MAINTAINERS (Write After Approval): Add myself to the list.
6953 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6955 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
6956 (m32r_store_register): Ditto.
6958 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
6960 * ser-mingw.c (pipe_windows_open)
6961 (pipe_windows_read, pipe_windows_write): Declare
6962 variables at the top of the function.
6964 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6966 * doublest.c (floatformat_from_length): Use the right element from
6967 gdbarch floatformats.
6968 (floatformat_from_type, extract_typed_floating)
6969 (store_typed_floating): Likewise.
6970 * doublest.h: Remove declarations for undefined floatformat arrays.
6971 * gdbarch.sh (float_format, double_format, long_double_format): Change
6973 (pformat): Update for pairs.
6974 * gdbarch.c, gdbarch.h: Regenerated.
6975 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
6976 (floatformats_ieee_double_littlebyte_bigword)
6977 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
6978 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
6979 (floatformats_vax_d): New variables.
6980 (builtin_type_ieee_single, builtin_type_ieee_double)
6981 (builtin_type_arm_ext, builtin_type_ia64_spill)
6982 (builtin_type_ia64_quad): Replace arrays with individual types.
6983 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
6984 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
6985 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
6986 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
6987 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
6988 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
6989 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
6990 unused and endian-specific types.
6991 (recursive_dump_type): Update for floatformat pairs.
6992 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
6993 (build_gdbtypes): Use build_flt.
6994 (_initialize_gdbtypes): Update set of initialized types.
6995 * gdbtypes.h: Update declarations to match gdbtypes.c.
6996 (struct main_type): Store a pointer to two floatformats.
6997 * arch-utils.c (default_float_format, default_double_format): Delete.
6998 * arch-utils.h (default_float_format, default_double_format): Delete.
7000 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7001 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
7002 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
7003 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
7004 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
7006 2007-01-29 Joel Brobecker <brobecker@adacore.com>
7008 * target.c (maintenance_print_target_stack): New function.
7009 (initialize_targets): Add new "maintenance print target-stack"
7012 2007-01-28 Mark Kettenis <kettenis@gnu.org>
7014 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
7016 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
7018 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
7019 (struct dwarf2_loclist_baton): Likewise.
7021 2007-01-27 Eli Zaretskii <eliz@gnu.org>
7023 * cli/cli-script.c: Include breakpoint.h.
7024 (build_command_line): Require arguments only for if and while
7026 (get_command_line, execute_user_command, execute_control_command):
7027 Fix wording of warning messages.
7028 (print_command_lines): Print breakpoint commands.
7029 (execute_control_command): Call commands_from_control_command to
7030 handle the `commands' command inside a body of a flow-control
7032 (read_next_line): Recognize the `commands' command and build a
7033 command line structure for it.
7034 (recurse_read_control_structure, read_command_lines): Handle
7035 `commands' similarly to `if' and `while'.
7037 * breakpoint.c (get_number_trailer): Document the special meaning
7038 of NULL as the first argument PP.
7039 (commands_from_control_command): New function.
7041 * breakpoint.h (commands_from_control_command): Add prototype.
7043 * defs.h (commands_control): New enumerated value for enum
7044 command_control_type.
7046 2007-01-26 Joel Brobecker <brobecker@adacore.com>
7048 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
7049 (ada_exception_sal): Update accordingly.
7051 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7053 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
7054 * NEWS: Describe CHAR array vs. string identifcation rules.
7056 2007-01-25 Paul Brook <paul@codesourcery.com>
7058 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
7060 2007-01-24 Jim Blandy <jimb@codesourcery.com>
7062 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
7063 expression is empty, bother to return the 'optimized out' value we
7064 construct. (Thanks to Carl Burch.)
7066 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7068 * varobj.c (c_value_of_root, c_value_of_child)
7069 (cplus_describe_child): Don't call release_value.
7071 2007-01-24 Thiemo Seufer <ths@mips.com>
7073 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
7076 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7078 Refactor getting children name, value and type access
7080 * varobj.c (get_type_deref): Remove.
7081 (adjust_value_for_child_access): New.
7082 (c_number_of_children): Use the above.
7083 (c_describe_child): Likewise.
7084 (enum accessibility): New.
7085 (match_accessibility): New function.
7086 (cplus_describe_child): New function.
7087 (cplus_name_of_child, cplus_value_of_child)
7088 (cplus_type_of_child): Reimplement in terms
7089 of cplus_describe_child.
7090 (cplus_number_of_children): Use
7091 adjust_value_for_child_access.
7093 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7095 Fix computation of the 'editable' attribute and
7096 value changeability for for references.
7097 * varobj.c (get_value_type): New function.
7098 (c_variable_editable): Use get_value_type.
7099 (varobj_value_is_changeable): Likewise.
7101 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7103 * source.c (find_and_open_source): Try rewriting the source
7104 path inside filename if dirname is NULL.
7106 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7108 * dwarf2read.c (add_partial_symbol): Create an extra partial
7109 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7110 (new_symbol): Likewise for symbols.
7112 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
7114 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7116 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7118 * value.c (value_primitive_field): Copy the full 'location'
7119 contents, instead of assuming that copying ADDRESS will
7120 bring over everything in the union. Remove obsolete comment.
7122 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
7124 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7125 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7126 (m32c_m16c_pointer_to_address): Separate code from declarations.
7128 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7130 * target.c (update_current_target): Correct typo.
7132 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
7134 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7137 2007-01-11 Andrew Cagney <cagney@redhat.com>
7138 Daniel Jacobowitz <dan@codesourcery.com>
7139 Jan Kratochvil <jan.kratochvil@redhat.com>
7141 * dwarf2-frame.c (execute_cfa_program): New support of
7142 `DW_CFA_GNU_negative_offset_extended'.
7144 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7146 * NEWS: Mention flash support for "load" and new remote packets.
7148 2007-01-21 Markus Deuling <deuling@de.ibm.com>
7150 * breakpoint.c (delete_command): Skip redundant loop iterations.
7152 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7154 * gdbarch.sh (register_type): Update comment.
7155 * gdbarch.h: Regenerated.
7156 * arch-utils.c (generic_register_size): Call register_type.
7157 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7158 * m32c-tdep.c (check_for_saved): Likewise.
7159 * mips-tdep.c (mips_print_register, print_gp_register_row)
7160 (mips_print_registers_info): Likewise.
7161 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7163 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7164 (sh64_do_register, sh64_print_register)
7165 (sh64_media_print_registers_info): Likewise.
7166 * tui/tui-regs.c (tui_register_format): Likewise.
7168 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7170 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7172 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7173 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7174 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7175 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7176 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7177 (make_symbol_completion_list): Likewise.
7179 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7180 Daniel Jacobowitz <dan@codesourcery.com>
7182 * buildsym.c (end_symtab): Use preallocated symtab if available.
7183 Fill in SYMBOL_SYMTAB.
7184 * buildsym.h (struct subfile): Add symtab member.
7185 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7186 (struct file_entry): Add symtab.
7187 (free_cu_line_header): New function.
7188 (read_file_scope): Use it. Save line_header in the cu. Process
7190 (add_file_name): Initialize new symtab member.
7191 (dwarf_decode_lines): Create symtabs for included files.
7192 (new_symbol): Set SYMBOL_SYMTAB.
7193 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7194 (search_symbols): Likewise.
7195 * symtab.h (struct symbol): Add symtab member.
7196 (SYMBOL_SYMTAB): Define.
7198 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7200 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7202 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7204 * arch-utils.c (show_endian): Correct reversed condition.
7206 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7208 * MAINTAINERS (Write After Approval): Add myself.
7210 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7211 Vladimir Prus <vladimir@codesourcery.com>
7213 Fix 'selected frame' varobjs.
7214 * varobj.c (struct varobj): Remove the error field.
7215 (varobj_set_value): Don't check var->error.
7216 (install_new_value): Don't set var->error.
7217 (varobj_update): Always pass the new value
7218 of the root via install_new_value.
7219 (create_child): Don't set error field.
7220 (new_variable): Likewise.
7221 (c_value_of_root): Always reevaluate the value
7222 of selected frame varobjs in the selected frame.
7223 Don't call reinit_frame_cache.
7225 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7227 * source.c (_initialize_source): Improve the help text of
7228 the substitute-path commands.
7230 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7232 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7233 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7234 (frv_skip_prologue): Remove prototypes.
7235 (frv_adjust_breakpoint_address): Renamed from
7236 frv_gdbarch_adjust_breakpoint_address.
7237 (frv_gdbarch_init): Adjust.
7239 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7241 * gdbarch.sh (deprecated_extract_return_value)
7242 (deprecated_store_return_value): Remove.
7243 (extract_return_value, store_return_value): Remove default values.
7244 * gdbarch.c, gdbarch.h: Regenerate.
7245 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7246 (legacy_store_return_value): Remove.
7247 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7250 * mi/mi-main.c: Remove obsolete comment.
7252 * regcache.c, regcache.h (deprecated_register_bytes)
7253 (deprecated_read_register_bytes)
7254 (deprecated_write_register_bytes): Remove.
7256 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7257 Don't forget to move destination pointer.
7259 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7261 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7263 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7265 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7266 past entry function with recent newlib.
7268 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7270 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7271 introduction. Specify -var-update more exactly.
7273 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7275 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7277 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7279 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7280 the Global Maintainers' invitation to be a global maintainer.
7282 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7284 * infrun.c (singlestep_pc): New variable.
7285 (resume): Set singlestep_pc.
7286 (context_switch): Add a debugging message. Flush the frame cache.
7287 (handle_inferior_event): Add debugging messages. Handle thread
7288 hops when a software single step has completed. Let context_switch
7289 handle flushing the frame cache.
7291 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7293 * NEWS: Mention target descriptions, "set tdesc filename",
7294 "unset tdesc filename", "show tdesc filename", and
7295 qXfer:features:read.
7296 * arch-utils.c (choose_architecture_for_target): New function.
7297 (gdbarch_info_fill): Call it.
7298 * target-descriptions.c (struct property): Make members non-const.
7299 (struct target_desc): Add arch member.
7300 (target_description_filename): New variable.
7301 (target_find_description): Try via XML first.
7302 (tdesc_architecture): New.
7303 (free_target_description, make_cleanup_free_target_description): New.
7304 (set_tdesc_property): Call xstrdup.
7305 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7306 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7307 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7308 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7309 * target-descriptions.h (tdesc_architecture)
7310 (make_cleanup_free_target_description, set_tdesc_architecture): New
7312 * Makefile.in (SFILES): Add xml-tdesc.c.
7313 (COMMON_OBS): Add xml-tdesc.o.
7314 (target-descriptions.o): Update.
7315 (xml-tdesc.o): New rule.
7316 * xml-tdesc.c, xml-tdesc.h: New files.
7317 * remote.c (PACKET_qXfer_features): New enum.
7318 (remote_protocol_features): Add qXfer:features:read.
7319 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7320 (_initialize_remote): Register qXfer:features:read.
7321 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7322 * features/gdb-target.dtd: New file.
7324 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7326 * copyright.sh: Clarify error.
7328 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7330 * symtab.c (matching_bfd_sections): Fix VMA matching for
7333 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7335 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7338 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7340 Updated copyright notices for most files.
7342 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7344 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7346 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7348 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7350 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7352 * configure, config.in: Regenerate.
7353 * defs.h (debug_file_directory): Declare.
7354 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7355 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7356 relocate it if DEBUGDIR_RELOCATABLE.
7357 * symfile.c (debug_file_directory): Make non-static.
7358 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7359 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7360 (_initialize_symfile): Don't initialize debug_file_directory here.
7362 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7364 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7367 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7369 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7370 frame_unwind_register to recurse.
7371 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7372 (alpha_heuristic_frame_prev_register): Likewise.
7373 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7374 * m32c-tdep.c (m32c_prev_register): Likewise.
7375 * frame.c (frame_register_unwind_location): Remove FIXME.
7377 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7378 Eli Zaretskii <eliz@gnu.org>
7380 * copyright.sh: New file.
7382 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7384 * configure.ac: Check for XML_StopParser.
7385 * xml-support.c (gdb_xml_body_text): Check for an error.
7386 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7387 (gdb_xml_end_element_wrapper): Likewise.
7388 * config.in, configure: Regenerated.
7390 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7392 * varobj.c (install_new_value): Always update print_value.
7393 (value_get_print_value): Immediately return NULL for missing
7396 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7398 * configure.ac: Tighten pattern for extracting value of
7399 DEPRECATED_TM_FILE from the target makefile fragment.
7400 * configure: Regenerated.
7402 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7404 * linux-nat.c (struct simple_pid_list): Add status.
7405 (add_to_pid_list): Record the PID's status.
7406 (linux_record_stopped_pid): Likewise. Make static.
7407 (pull_pid_from_list): Return the saved status.
7408 (linux_nat_handle_extended): Deleted.
7409 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7410 Make static. Handle non-SIGSTOP for a new thread's first signal.
7411 (flush_callback): Handle unexpected pending signals.
7412 (linux_nat_wait): Update calls to changed functions.
7413 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7414 Remove prototypes for newly static functions.
7416 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7418 * gdbarch.sh (value_from_register): New gdbarch function.
7419 * gdbarch.c, gdbarch.h: Regenerate.
7420 * findvar.c (default_value_from_register): New function.
7421 (value_from_register): Use gdbarch_value_from_register.
7422 * value.h (default_value_from_register): Declare.
7423 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7424 spu_value_to_register): Remove.
7425 (spu_value_from_register): New function.
7426 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7427 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7428 Call set_gdbarch_value_from_register.
7429 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7430 s390_value_to_register): Remove.
7431 (s390_value_from_register): New function.
7432 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7433 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7434 Call set_gdbarch_value_from_register.
7436 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7438 * NEWS: Add "set sysroot" and "show sysroot".
7439 * solib.c (solib_absolute_prefix): Delete. Replace
7440 all uses with gdb_sysroot.
7441 (_initialize_solib): Add "set sysroot" and "show sysroot".
7442 Make "solib-absolute-prefix" an alias to it.
7444 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7446 * frame.c (get_frame_register_bytes): New function.
7447 (put_frame_register_bytes): Likewise.
7448 * frame.h (get_frame_register_bytes): Declare.
7449 (put_frame_register_bytes): Likewise.
7450 * findvar.c (value_from_register): Always construct lval_register
7451 values. Use get_frame_register_bytes.
7452 * valops.c (value_assign): Use get_frame_register_bytes and
7453 put_frame_register_bytes.
7455 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7457 * MAINTAINERS: Update Stan Shebs' email address.
7459 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7461 * ada-lang.c (is_known_support_routine): Improve the implementation.
7463 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7465 * ada-lang.c: Add include of source.h.
7466 (is_known_support_routine): Improve the check verifying that the file
7467 associated to this frame exists.
7468 * Makefile.in (ada-lang.o): Add dependency on source.h.
7470 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7472 * ax-general.c (ax_const_l): Select proper opcode for the given
7475 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7477 * varobj.c (c_value_of_root): Don't select frame if variable
7478 object is out of scope.
7480 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7482 * varobj.c (struct varobj): New member print_value.
7483 (install_new_value): Compare last printed value with current one
7484 instead of contents.
7485 (new_variable): Initialize var->print_value to NULL.
7486 (free_variable): Free var->print_value.
7487 (value_get_print_value): New function derived from
7488 c_value_of_variable.
7489 (c_value_of_variable): Use value_get_print_value.
7491 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7493 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7495 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7497 * NEWS: Add entries for new catch commands.
7499 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7501 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7502 (add_partial_symbol): Correct identification of external references.
7503 (process_structure_scope): Likewise.
7504 (read_partial_die): Handle DW_AT_byte_size attribute.
7506 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7508 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7510 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7512 * varobj.c (get_type_deref): Fix variable objects for references to
7515 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7517 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7520 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7522 * memory-map.c (struct_memory_map_parsing_data): Remove most
7523 members. Make property_name an array.
7524 (free_memory_map_parsing_data, memory_map_start_element)
7525 (memory_map_end_element, memory_map_character_data): Delete.
7526 (memory_map_start_memory, memory_map_end_memory)
7527 (memory_map_start_property, memory_map_end_property): New functions.
7528 (property_attributes, memory_children, memory_type_enum)
7529 (memory_attributes, memory_map_children, memory_map_elements): New.
7530 (parse_memory_map): Rewrite.
7531 * xml-support.c (debug_xml): New.
7532 (xml_get_required_attribute, xml_get_integer_attribute)
7533 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7535 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7536 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7537 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7538 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7539 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7540 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7541 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7543 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7544 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7545 (enum gdb_xml_element_flag, struct gdb_xml_element)
7546 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7547 (struct gdb_xml_enum): New.
7548 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7549 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7550 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7551 (xml_get_required_attribute, xml_get_integer_attribute)
7552 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7553 * Makefile.in (xml_support_h, xml-support.o): Update.
7555 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7557 * Makefile.in (eval.o): Update dependencies.
7558 * eval.c: Include "ui-out.h" and "exceptions.h".
7559 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7560 Use value_zero if an error occurs when avoiding side effects.
7561 * varobj.c (c_value_of_root): Initialize new_val.
7563 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7565 * varobj.c (varobj_list_children): Stop if the number of children is
7567 (c_number_of_children):
7569 2007-01-04 Mark Kettenis <kettenis@gnu.org>
7571 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7572 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7573 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7574 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7575 sizeof, instead of hardcoded constants.
7577 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7579 * CONTRIBUTE: Use sourceware.org.
7581 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7583 * buildsym.c (start_subfile): Handle producer.
7584 (record_producer): New function.
7585 * buildsym.h (struct subfile): Include producer.
7586 (record_producer): New prototype.
7587 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7588 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7589 armcc_cfa_offsets_reversed.
7590 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7591 (dwarf2_frame_find_quirks): New function.
7592 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
7593 (decode_frame_entry_1): Record the CIE version. Record the
7594 augmentation. Skip armcc augmentations.
7595 * dwarf2read.c (read_file_scope): Save the producer.
7596 * symtab.h (struct symtab): Rename unused version member to
7599 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7601 * configure.ac (build_warnings): Use -Wall and
7602 -Wdeclaration-after-statement.
7603 * configure: Regenerated.
7605 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7607 Simplify access to variours properties of child
7608 variable objects in C.
7609 * varobj.c (value_struct_element_index): New function.
7610 (c_describe_child): New function.
7611 (c_name_of_child, c_value_of_child)
7612 (c_type_of_child): Rewrite to use c_describe_child.
7614 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7617 * varobj.c: Include "vec.h".
7618 (varobj_p): New typedef, declare vector of those.
7619 (struct varobj): Use vector for the 'children' member.
7620 (child_exists): Remove.
7621 (save_child_in_parent): Remove.
7622 (remove_child_from_parent): Remove.
7623 (struct varobj_child): Remove.
7624 (struct vstack): Remove.
7625 (vpush, vpop): Remove.
7626 (varobj_list_children): Adjust to work work vector.
7627 (varobj_update): Likewise. Use vectors for
7628 working stack and result.
7629 (delete_variable_1): Likewise.
7630 * Makefile.in (varobj.o): Update dependencies.
7632 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7634 Port from Apple's version.
7636 * varobj.c (type_changeable): Rename to...
7637 (varobj_value_is_changeable_p): ...this. Adjust all callers.
7638 (is_root_p): New function. Use it everywhere.
7640 2007-01-04 Jim Blandy <jimb@codesourcery.com>
7642 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7645 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7647 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
7649 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7651 * hpread.c (hpread_type_lookup): Fix compilation failure.
7653 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
7655 * NEWS: New port to S+core.
7656 * MAINTAINERS (Write After Approval, Responsible Maintainers):
7659 * Makefile.in: Add dependencies for S+core files.
7660 * configure.tgt (score*, score-*-*): Add S+core target.
7661 * config/score/embed.mt: New file.
7662 * score-tdep.c: New file.
7663 * score-tdep.h: New file.
7665 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7667 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
7668 the appropriate type rather than a bogus void type.
7670 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7672 * ada-lang.h (ada_find_printable_frame): Remove.
7673 (ada_exception_catchpoint_p, ada_decode_exception_location)
7674 (ada_decode_assert_location): Add declaration.
7675 * ada-lang.c: Add include of annotate.h and valprint.h.
7676 (exception_catchpoint_kind): New enum.
7677 (function_name_from_pc, is_known_support_routine)
7678 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
7679 (ada_exception_name_addr_1, ada_exception_name_addr)
7680 (print_it_exception, print_one_exception, print_mention_exception)
7681 (print_it_catch_exception, print_one_catch_exception)
7682 (print_mention_catch_exception, catch_exception_breakpoint_ops)
7683 (print_it_catch_exception_unhandled)
7684 (print_one_catch_exception_unhandled)
7685 (print_mention_catch_exception_unhandled, print_it_catch_assert)
7686 (print_one_catch_assert, print_mention_catch_assert)
7687 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
7688 (ada_get_next_arg, catch_ada_exception_command_split)
7689 (ada_exception_sym_name, ada_exception_sym_name)
7690 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
7691 (ada_parse_catchpoint_condition, ada_exception_sal)
7692 (ada_decode_exception_location)
7693 (ada_decode_assert_location): New function.
7694 (catch_exception_unhandled_breakpoint_ops): New global variable.
7695 (catch_assert_breakpoint_ops): New global variable.
7696 * breakpoint.c: Add include of ada-lang.h.
7697 (print_one_breakpoint): Do not print the condition for Ada
7698 exception catchpoints.
7699 (create_ada_exception_breakpoint): New function.
7700 (catch_ada_exception_command, catch_assert_command): New function.
7701 (catch_command_1): Add support for the new "catch exception" and
7702 "catch assert" commands.
7703 (_initialize_breakpoint): Add help description for the new catch
7705 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
7707 (breakpoint.o): Add dependency on ada-lang.h.
7709 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
7711 * coffread.c (cs_to_section): If bfd_section is found, always
7712 return its section index.
7713 (coff_symtab_read): Determine the minimal_symbol_type using the
7716 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7717 Daniel Jacobowitz <dan@codesourcery.com>
7719 * Makefile.in (top.o): Update.
7720 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
7721 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
7722 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
7724 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
7726 2007-01-03 Mark Kettenis <kettenis@gnu.org>
7728 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
7729 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
7731 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7733 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
7734 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
7735 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
7736 greater than or equal to zero.
7737 * m2-typeprint.c (m2_array): Likewise.
7738 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7739 * gdbtypes.c (copy_type_recursive): Correct == typo.
7740 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
7741 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
7743 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
7744 (default_macro_scope): Remove unused variable.
7745 * prologue-value.h (pv_area_find_reg): Don't name an argument
7747 * remote-fileio.c (remote_fio_func_map): Add missing braces.
7748 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
7750 (cleanup_sigint_signal_handler): Remove casts.
7751 * valprint.c (val_print): Use a volatile local for the modified
7753 * varobj.c (languages): Remove extra array dimension.
7754 (varobj_create): Correct access to languages array.
7755 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
7757 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
7758 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
7759 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
7760 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
7761 (mi_cmd_data_write_memory): Likewise.
7762 * signals/signals.c (target_signal_to_string): Cast to int before
7764 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
7767 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7769 * NEWS: Mention pointer to member improvements.
7770 * Makefile.in (gnu-v3-abi.o): Delete special rule.
7771 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
7772 * ada-valprint.c (ada_print_scalar): Update for new type codes.
7773 * c-typeprint.c (c_print_type): Update for new type codes.
7774 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
7775 (c_type_print_base): Likewise.
7776 (c_type_print_args): Rewrite.
7777 * c-valprint.c (c_val_print): Update for new type codes. Remove
7778 support for references to members. Treat methods like functions.
7779 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
7780 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
7781 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
7782 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
7783 (struct cp_abi_ops): Add corresponding members.
7784 * cp-valprint.c (cp_print_class_method): Delete.
7785 (cp_find_class_member): New function.
7786 (cp_print_class_member): Use it. Simplify support for bogus
7788 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
7789 lookup_methodptr_type.
7790 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
7791 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
7792 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
7794 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
7795 references returned by user defined operators.
7796 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
7797 (f_type_print_varspec_suffix): Remove support for member pointers.
7798 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
7800 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
7801 (lookup_methodptr_type): New.
7802 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
7803 (recursive_dump_type): Update for new types.
7804 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
7805 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
7806 (lookup_memberptr_type, lookup_methodptr_type)
7807 (smash_to_memberptr_type): New prototypes.
7808 (smash_to_method_type): Formatting fix.
7809 (lookup_member_type, smash_to_member_type): Delete prototypes.
7810 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
7811 Do not rely on debug information for the vptr or the method's
7812 enclosing type. Handle function descriptors for IA64.
7813 (gnuv3_virtual_fn_field): Rewrite using the new functions.
7814 (gnuv3_find_method_in, gnuv3_print_method_ptr)
7815 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
7816 (gnuv3_method_ptr_to_value): New.
7817 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
7818 * hpread.c (hpread_type_lookup): Update for new types.
7819 * infcall.c (value_arg_coerce): Likewise.
7820 * m2-typeprint.c (m2_print_type): Remove explicit support
7821 for member pointers.
7822 * m2-valprint.c (m2_val_print): Likewise.
7823 * p-typeprint.c (pascal_type_print_varspec_prefix)
7824 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
7825 * p-valprint.c (pascal_val_print): Likewise.
7826 (pascal_object_print_class_method, pascal_object_print_class_member):
7828 * p-lang.h (pascal_object_print_class_method)
7829 (pascal_object_print_class_member): Delete prototypes.
7830 * stabsread.c (read_type): Update for new types.
7831 * typeprint.c (print_type_scalar): Likewise.
7832 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
7833 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
7834 argument. Construct a pointer to member if the address of a
7835 function or data member is requested.
7836 (value_cast_pointers): Don't modify the input value.
7837 (value_cast): Adjust pointer to member handling for new types.
7838 Allow null pointer to member constants. Don't modify the input
7840 (value_ind): Remove pointer to member check. Handle function
7841 descriptors for function pointers.
7842 (value_struct_elt, value_find_oload_method_list, check_field):
7843 Remove pointer to member checks.
7844 * value.c (unpack_long): Allow pointers to data members.
7845 (value_from_longest): Allow member pointers.
7846 * value.h (value_aggregate_elt): Add want_address.
7847 * varobj.c (c_variable_editable): Remove check for members.
7848 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
7849 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
7851 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
7852 * c-lang.h (cp_print_class_method): Delete prototype.
7853 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
7854 * mips-tdep.c (mips_gdbarch_init): Likewise.
7855 * gdbarch.c, gdbarch.h: Regenerated.
7857 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7859 * rs6000-tdep.c (rs6000_use_struct_convention)
7860 (rs6000_extract_return_value, rs6000_store_return_value)
7861 (rs6000_extract_struct_value_address): Remove.
7862 (rs6000_return_value): New function.
7863 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
7864 store_return_value, deprecated_extract_struct_value_address and
7865 deprecated_use_struct_convention. Use rs6000_return_value
7868 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
7870 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
7871 -display-disable, -display-enable, -display-insert and
7874 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7876 * breakpoint.c (remove_breakpoint): Remove dead code.
7878 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
7880 * varobj.c: Include block.h.
7881 (c_value_of_root): Check scope within nested statements.
7883 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7885 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
7886 regcache_cooked_write_signed instead of
7887 deprecated_write_register_bytes.
7889 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7891 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
7893 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7895 Followed the Start of New Year Procedure:
7896 * ChangeLog-2006: New file, containing all the entries for 2006.
7897 * ChangeLog: Removed all 2006 entries, and changed the reference
7898 to the previous ChangeLog to point to ChangeLog 2006.
7899 * top.c (print_gdb_version): Update copyright year.
7901 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7903 * Makefile.in (remote-sds.o): Remove.
7904 * remote-sds.c: Delete.
7906 For older changes see ChangeLog-2006.
7912 version-control: never