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