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