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