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