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