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