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