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