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