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