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