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