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