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