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