* emultempl/ppc64elf.em: Convert to C90 function definitions, remove
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5861a190
AC
12003-06-19 Andrew Cagney <cagney@redhat.com>
2
3 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4 (REGISTER_CONVERT_FROM_TYPE): Delete.
5 (mips_register_convert_to_type): Delete declaration.
6 (mips_register_convert_from_type): Delete declaration.
7 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
8 kernel/.
9
0274a8ce
MS
102003-06-19 Michael Snyder <msnyder@redhat.com>
11
12 * linux-nat.h: New file.
13 * linux-nat.c: Include linux-nat.h.
14 * lin-lwp.c: Include linux-nat.h.
15 Move struct lwp_info def to linux-nat.h.
16 * linux-proc.c: Include linux-nat.h.
17 (linux_make_note_section): Iterate over lwps instead of threads.
18 (linux_do_thread_registers): Use lwp instead of merged pid.
19 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
20 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
21 Add dependency on linux_nat_h.
22
adf5f719
TR
232003-06-19 Theodore A. Roth <troth@openavr.org>
24
25 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
26
6766a268
DJ
272003-06-19 Daniel Jacobowitz <drow@mvista.com>
28
29 * varobj.c (get_type, get_target_type): Use check_typedef.
30
1171114a
DJ
312003-06-19 Daniel Jacobowitz <drow@mvista.com>
32
33 * breakpoint.c (insert_catchpoint): Call internal_error.
34
adcf68a2
TR
352003-06-19 Theodore A. Roth <troth@openavr.org>
36
37 * avr-tdep.c (avr_push_dummy_code): Delete function.
38 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
39
ea67f13b
DJ
402003-06-19 Daniel Jacobowitz <drow@mvista.com>
41
42 * arch-utils.c (default_prepare_to_proceed): Remove.
43 (generic_prepare_to_proceed): Remove.
44 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
45 (generic_prepare_to_proceed): Remove prototype.
46 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
47 * gdbarch.c: Regenerate.
48 * gdbarch.h: Regenerate.
49 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
50 * hppah-nat.c (hppa_switched_threads): Remove.
51 * infrun.c (prepare_to_proceed): New static function, copied from
52 generic_prepare_to_proceed. Remove select_it argument.
53 (proceed): Call prepare_to_proceed.
54 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
55 variables.
56 (ptrace_wait): Don't set the removed variables.
57 (hppa_switched_threads): Remove.
58 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
59 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
60 (lin_lwp_prepare_to_proceed): Remove prototype.
61 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
62 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
63
4add8633
TR
642003-06-18 Theodore A. Roth <troth@openavr.org>
65
66 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
67 trad-frame.h.
68 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
69 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
70 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
71 (AVR_PROLOGUE_*): Enumerate prologue types.
72 (struct frame_extra_info): Remove.
73 (struct avr_unwind_cache): Define.
74 (avr_write_sp): Delete function.
75 (avr_read_fp): Ditto.
76 (avr_init_extra_frame_info): Ditto.
77 (avr_pop_frame): Ditto.
78 (avr_frame_saved_pc): Ditto.
79 (avr_saved_pc_after_call): Ditto.
80 (avr_push_return_address): Ditto.
81 (avr_frame_chain): Ditto.
82 (avr_store_struct_return): Ditto.
83 (avr_push_arguments): Ditto.
84 (avr_scan_prologue): Update comments. Changed to set up the info for
85 cache unwinding. Now returns end of prologue PC.
86 (avr_skip_prologue): Better handling of functions lacking a prologue
87 by using avr_scan_prologue.
88 (avr_scan_arg_moves): New function.
89 (avr_saved_regs_unwinder): Ditto.
90 (avr_frame_unwind_cache): Ditto.
91 (avr_unwind_pc): Ditto.
92 (avr_frame_this_id): Ditto.
93 (avr_frame_prev_register): Ditto.
94 (avr_frame_p): Ditto.
95 (avr_frame_base_address ): Ditto.
96 (avr_unwind_dummy_id): Ditto.
97 (avr_push_dummy_code): Ditto.
98 (push_stack_item): Ditto.
99 (pop_stack_item): Ditto.
100 (avr_push_dummy_call): Ditto.
101 (struct stack_item): Define.
102 (avr_frame_unwind): Declare structure.
103 (avr_frame_base): Ditto.
104 (avr_gdbarch_init): Remove calls to
105 set_gdbarch_deprecated_init_frame_pc,
106 set_gdbarch_deprecated_target_read_fp,
107 set_gdbarch_deprecated_dummy_write_sp,
108 set_gdbarch_deprecated_fp_regnum,
109 set_gdbarch_deprecated_push_arguments,
110 set_gdbarch_deprecated_push_return_address,
111 set_gdbarch_deprecated_pop_frame,
112 set_gdbarch_deprecated_store_struct_return,
113 set_gdbarch_deprecated_frame_init_saved_regs,
114 set_gdbarch_deprecated_init_extra_frame_info,
115 set_gdbarch_deprecated_frame_chain,
116 set_gdbarch_deprecated_frame_saved_pc,
117 set_gdbarch_deprecated_saved_pc_after_call.
118 Add calls to set_gdbarch_push_dummy_call,
119 set_gdbarch_push_dummy_code,
120 frame_unwind_append_predicate,
121 frame_base_set_default,
122 set_gdbarch_unwind_dummy_id,
123 set_gdbarch_unwind_pc.
124 Wrap a long line.
125
7be04a68
MS
1262003-06-18 Corinna Vinschen <vinschen@redhat.com>
127
128 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
129 registers for H8/300S.
130 (h8300_print_registers_info): Ditto.
131 (h8300_gdbarch_init): Accommodate register count for H8/300S.
132
ae087d01
DJ
1332003-06-18 Daniel Jacobowitz <drow@mvista.com>
134
135 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
136 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
137 (lin_lwp_wait): Likewise. Update comments.
138 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
139 (pull_pid_from_list, linux_record_stopped_pid): New.
140
07d8f827
SC
1412003-06-17 Stephane Carrez <stcarrez@nerim.fr>
142
143 * ada-lang.c (scan_discrim_bound): Name first argument.
144 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
145 declared by ALL_BLOCK_SYMBOLS.
146
7cb47b14
SC
1472003-06-17 Stephane Carrez <stcarrez@nerim.fr>
148
149 * ada-tasks.c (find_function_in_inferior): Don't declare it.
150 ("regcache.h"): Include it.
151 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
152
6ad8ae5c
DJ
1532003-06-17 Daniel Jacobowitz <drow@mvista.com>
154
155 * NEWS: Mention gdbserver detach change and "disconnect" command.
156 * infcmd.c (disconnect_command): New function.
157 (_initialize_infcmd): Add ``disconnect'' command.
158 * remote.c (remote_async_detach): Delete.
159 (remote_detach): Merge remote_async_detach.
160 (remote_disconnect): New.
161 (init_remote_ops): Set to_disconnect.
162 (init_remote_cisco_ops): Likewise.
163 (init_remote_async_ops): Likewise. Use remote_detach.
164 * target.c (cleanup_target): Default to_disconnect.
165 (update_current_target): Inherit to_disconnect.
166 (target_disconnect, debug_to_disconnect): New functions.
167 (setup_target_debug): Set to_disconnect.
168 * target.h (struct target_ops): Add to_disconnect.
169 (target_disconnect): Add prototype.
170
687595f9
DJ
1712003-06-17 Daniel Jacobowitz <drow@mvista.com>
172
173 * breakpoint.c (insert_catchpoint): New function.
174 (insert_breakpoints): Use catch_exceptions to call
175 insert_catchpoint. Disable catchpoints if they fail to insert.
176
29239a8f
DJ
1772003-06-17 Daniel Jacobowitz <drow@mvista.com>
178
179 * symfile.c (reread_symbols): Clear sym_private.
180
2cdf3c63
AC
1812003-06-17 Andrew Cagney <cagney@redhat.com>
182
183 * trad-frame.h (struct frame_info): Add opaque declaration.
184 * remote-fileio.h (struct cmd_list_element): Add opaque
185 declaration.
186 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
187 comments.
188
cf0e1e0d
DJ
1892003-06-17 Daniel Jacobowitz <drow@mvista.com>
190
191 * remote.c (remote_prepare_to_store): Replace call to
192 deprecated_read_register_bytes with multiple regcache_raw_read
193 calls.
194
192cdb19
KW
1952003-06-17 Kris Warkentin <kewarken@qnx.com>
196
197 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
198 (nto_find_and_open_solib): Likewise.
199 (nto_init_solib_absolute_prefix): Likewise.
200 (_initialize_nto_tdep): Fix indentation.
201
89929b45
KW
2022003-06-17 Kris Warkentin <kewarken@qnx.com>
203
204 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
205
46019f27
KW
2062003-06-17 Kris Warkentin <kewarken@qnx.com>
207
208 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
209
1a38736e
JB
2102003-06-17 Jim Blandy <jimb@redhat.com>
211
212 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
213
3605c34a
TR
2142003-06-16 Theodore A. Roth <troth@openavr.org>
215
216 * avr-tdep.c (avr_extract_return_value): New function.
217 (avr_gdbarch_init): Set extract_return_value method.
218
870b3035
AC
2192003-06-16 Andrew Cagney <cagney@redhat.com>
220
221 * frame.h (deprecated_get_next_frame_hack): Declare.
222 * frame.c (legacy_saved_regs_prev_register): Only require
223 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
224 there are always saved regs.
225 (deprecated_generic_get_saved_register): Do not require
226 DEPRECATED_FRAME_INIT_SAVED_REGS.
227 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
228 use frame ID unwind instead.
229 (deprecated_get_next_frame_hack): New function.
230
63d47a7d
CV
2312003-06-16 Corinna Vinschen <vinschen@redhat.com>
232
233 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
234 (h8300_push_dummy_call): ...this function. Some minor optimization.
235 (h8300_push_return_address): Remove.
236 (h8300_gdbarch_init): Remove calls to
237 set_gdbarch_deprecated_dummy_write_sp,
238 set_gdbarch_deprecated_push_arguments and
239 set_gdbarch_deprecated_push_return_address.
240 Add call to set_gdbarch_push_dummy_call.
241
4bb1dc5e
CV
2422003-06-16 Corinna Vinschen <vinschen@redhat.com>
243
244 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
245 (E_PSEUDO_EXR_REGNUM): Ditto.
246 (h8300_is_argument_spill): Check for instructions moving argument
247 registers into safe registers.
248 (h8300_skip_prologue): Check for stm instruction to push registers
249 used for register variables onto stack.
250 (gdb_print_insn_h8300): Remove.
251 (h8300_examine_prologue): Add a comment.
252 (h8300_register_name): Take pseudo registers into account.
253 (h8300s_register_name): Ditto.
254 (h8300sx_register_name): Ditto.
255 (h8300_print_register): Ditto.
256 (h8300_print_registers_info): Define "nice" printing order.
257 (h8300_saved_pc_after_call): Take pseudo registers into account.
258 (h8300_register_type): Ditto. Return type used for remote connection
259 when requesting real CCR or EXR register, return actual type when
260 requesting pseudo CCR or EXR.
261 (h8300_pseudo_register_read): New function.
262 (h8300_pseudo_register_write): Ditto.
263 (h8300_dbg_reg_to_regnum): Ditto.
264 (h8300s_dbg_reg_to_regnum): Ditto.
265 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
266 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
267 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
268 set_gdbarch_print_insn architecture dependent.
269 Call set_gdbarch_pseudo_register_read and
270 set_gdbarch_pseudo_register_write.
271 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
272
a59fe496
AC
2732003-06-16 Andrew Cagney <cagney@redhat.com>
274
275 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
276 * gdbarch.h, gdbarch.c: Re-generate.
277 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
278 * s390-tdep.c (s390_gdbarch_init): Update.
279 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
280 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
281 * mips-tdep.c (mips_gdbarch_init): Update.
282 * mcore-tdep.c (mcore_gdbarch_init): Update.
283 * cris-tdep.c (cris_gdbarch_init): Update.
284 * infcall.c (call_function_by_hand): Update.
285 * ia64-tdep.c (ia64_push_arguments): Update comment.
286 * frame.c (legacy_get_prev_frame): Do not assume
287 SAVE_DUMMY_FRAME_TOS_P.
288 * dummy-frame.c (find_dummy_frame): Update comment.
289
6f4e5a41
AC
2902003-06-16 Andrew Cagney <cagney@redhat.com>
291
292 * regcache.c (do_cooked_read): Do not use register_valid_p.
293
72fab697
TR
2942003-06-15 Theodore A. Roth <troth@openavr.org>
295
296 * avr-tdep.c (avr_register_type): Remove a blank line.
297 (avr_scan_prologue): Correct some comments.
298
e3d8b004
TR
2992003-06-15 Theodore A. Roth <troth@openavr.org>
300
301 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
302 prologue types.
303 Properly scan prologues generated by gcc with the -mcall-prologues
304 option.
305 Add code to scan -mcall-prologues for mega devices.
306
866b76ea
TR
3072003-06-15 Theodore A. Roth <troth@openavr.org>
308
309 * avr-tdep.c (avr_register_byte): Delete function.
310 (avr_register_raw_size): Delete function.
311 (avr_register_virtual_size): Delete function.
312 (avr_register_virtual_type): Delete function.
313 (avr_register_type): New function.
314 (avr_address_to_pointer): Remove unused code.
315 (avr_read_fp): Need to read FP as two separate bytes due to change to
316 avr_register_type() usage.
317 (avr_gdbarch_init): Don't set deprecated_register_size.
318 Don't set deprecated_register_bytes.
319 Don't set deprecated_register_byte.
320 Don't set deprecated_register_raw_size.
321 Don't set deprecated_max_register_raw_size.
322 Don't set deprecated_register_virtual_size.
323 Don't set deprecated_max_register_virtual_size.
324 Don't set deprecated_register_virtual_type.
325 Set register_type method.
326
3993f6b1
DJ
3272003-06-15 Daniel Jacobowitz <drow@mvista.com>
328
329 * Makefile.in (linux-nat.o): Add rule.
330 * linux-nat.c: New file.
331 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
332 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
333 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
334 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
335 * config/arm/linux.mh (NATDEPFILES): Likewise.
336 * config/i386/linux.mh (NATDEPFILES): Likewise.
337 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
338 * config/ia64/linux.mh (NATDEPFILES): Likewise.
339 * config/m68k/linux.mh (NATDEPFILES): Likewise.
340 * config/mips/linux.mh (NATDEPFILES): Likewise.
341 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
342 * config/s390/s390.mh (NATDEPFILES): Likewise.
343 * config/sparc/linux.mh (NATDEPFILES): Likewise.
344
786a90bb
MK
3452003-06-15 Mark Kettenis <kettenis@gnu.org>
346
347 * i387-tdep.c: Reorder includes, fix some whitespace issues and
348 replace out-of-date comment.
349
3bd3f01e
AC
3502003-06-15 Andrew Cagney <cagney@redhat.com>
351
352 * rdi-share/host.h (Fail): Change to a varargs function.
353 * remote-rdi.c (Fail): Update.
354
de5b9bb9
MK
3552003-06-15 Mark Kettenis <kettenis@gnu.org>
356
357 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
358 (i386_convert_register_p, i386_register_to_value,
359 i386_register_from_value): Handle types longer than 8 bytes.
360
d532c08f
MK
3612003-06-15 Mark Kettenis <kettenis@gnu.org>
362
363 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
364 Move floating-point code to new function in i387-tdep.c.
365 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
366 New functions containing code moved here from i386-tdep.c.
367 * i387-tdep.h: Add opaque declaration for `struct type'.
368 (i387_register_to_value, i387_value_to_register): New prototypes.
369 * x86-64-tdep.c (x86_64_convert_register_p): New function.
370 (x86_64_init_abi): Set convert_register_p, register_to_value and
371 value_to_register here.
372
42c466d7
AC
3732003-06-14 Andrew Cagney <cagney@redhat.com>
374
375 * mips-tdep.c (mips_register_to_value): Make static.
376 (mips_value_to_register): Make static.
377 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
378 * ia64-tdep.c (ia64_register_raw_size): Make static.
379 (ia64_register_virtual_size): Make static.
380 (ia64_register_byte): Make static.
381 * i387-tdep.c: Include "i387-tdep.h".
382 (print_387_control_word): Delete function.
383 (print_387_status_word): Delete function.
384 (print_387_status_bits): Delete function.
385 (print_387_control_bits): Delete function.
386 * Makefile.in (i387-tdep.o): Update dependencies.
387 * rdi-share/host.h (Fail): Declare.
388 * remote-rdi.c (Fail): Update to match declaration.
389
2a9cda49
AC
3902003-06-14 Andrew Cagney <cagney@redhat.com>
391
392 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
393 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
394 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
395 * config/djgpp/fnchange.lst: Delete "remote-array.c".
396 * README: Delete reference to remote-array.
397 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
398 (remote-array.o): Delete target.
399 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
400 * remote-array.c: Delete file.
401
ff2e87ac
AC
4022003-06-14 Andrew Cagney <cagney@redhat.com>
403 Mark Kettenis <kettenis@gnu.org>
404
405 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
406 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
407 parameter with "frame".
408 * gdbarch.h, gdbarch.c: Re-generate.
409 * frame.h (put_frame_register): Declare.
410 * frame.c (put_frame_register): New function.
411 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
412 (legacy_register_to_value): Rewrite, use "frame" to get the
413 register value.
414 (legacy_value_to_register): Rewrite, use "frame" to find the
415 register's location before storing.
416 * arch-utils.h (legacy_convert_register_p): Update.
417 (legacy_register_to_value, legacy_value_to_register): Update.
418 * findvar.c (value_from_register): Rewrite, eliminate use of
419 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
420 "frame" to REGISTER_TO_VALUE.
421 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
422 lval_reg_frame_relative + lval_register branch of the switch. Do
423 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
424 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
425 I386_EDI_REGNUM): New defines.
426 (i386_next_regnum, i386_convert_register_p,
427 i386_register_to_value, i386_value_to_register): New functions.
428 (i386_register_convertible, i386_register_convert_to_virtual,
429 i386_convert_to_raw): Remove functions.
430 (i386_gdbarch_init): Set convert_register_p, register_to_value and
431 value_to_register instead of register_convertible,
432 register_convert_to_virtual and register_convert_to_raw.
433 * mips-tdep.c (mips_convert_register_p): New function.
434 (mips_value_to_register): Replace mips_register_convert_from_type.
435 (mips_register_to_value): Replace mips_register_convert_to_type.
436 (mips_gdbarch_init): Set conver_register_p, value_to_register and
437 register_to_value.
438 * alpha-tdep.c (alpha_convert_register_p): Update.
439 (alpha_value_to_register): Update, store the register.
440 (alpha_register_to_value): Update, fetch the register.
441
98be1e77
TR
4422003-06-14 Theodore A. Roth <troth@openavr.org>
443
444 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
445 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
446 Don't set deprecated_call_dummy_words.
447 Remove commented out set_gdbarch_believe_pcc_promotion() call.
448 Don't set remote_translate_xfer_address.
449 (avr_io_reg_read_command): Remove commented out debug printf.
450 Wrap a long line.
451
57bc6122
TR
4522003-06-14 Theodore A. Roth <troth@openavr.org>
453
454 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
455 causes gdb to seg fault.
456
eb01fc62
DJ
4572003-06-14 Daniel Jacobowitz <drow@mvista.com>
458
459 * sparc-nat.c (fetch_inferior_registers): Correct
460 a reference to "registers".
461
3b3e6bee
DJ
4622003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
463
464 * Makefile.in (exc_request_U_h): Define
465 (exc_request_S_h): Likewise.
466 (msg_reply_S_h): Likewise.
467 (msg_U_h): Likewise.
468 (notify_S_h): Likewise.
469 (process_reply_S_h): Likewise.
470 (gnu-nat.o): Depend on gdb_obstack_h
471 * gnu-nat.c: Include "gdb_obstack.h".
472
b8de8283
AC
4732003-06-13 Andrew Cagney <cagney@redhat.com>
474
475 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
476 * gdbarch.h, gdbarch.c: Re-generate.
477
f3be58bc
AC
4782003-06-13 Andrew Cagney <cagney@redhat.com>
479
480 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
481 when deprecated REGISTER macros can be deleted.
482 * gdbarch.h, gdbarch.c: Re-generate.
483
4c0122c8
JB
4842003-06-13 Jim Blandy <jimb@redhat.com>
485
486 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
487 Linux entry point symbols for _dl_debug_state, too.
488
3e210248
AC
4892003-06-13 Andrew Cagney <cagney@redhat.com>
490
491 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
492 available, do not use the FP register, and always save the TOS.
493 * dummy-frame.c (dummy_frame_this_id): Do not assert
494 SAVE_DUMMY_FRAME_TOS.
495 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
496 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
497 (i386_push_dummy_call): Add 8 to the returned SP.
498 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
499 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
500 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
501 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
502 (x86_64_push_dummy_call): Return "sp + 16".
503 (x86_64_init_abi): Do not set save_dummy_frame_tos.
504 * alpha-tdep.c (alpha_gdbarch_init): Do not set
505 save_dummy_frame_tos.
506
0b65af49
JB
5072003-06-13 Jim Blandy <jimb@redhat.com>
508
509 * frv-tdep.c (frv_use_struct_convention): Delete static
510 declaration for function deleted in my change of 2003-06-12.
511
4ea2465e
TR
5122003-06-13 Theodore A. Roth <troth@openavr.org>
513
514 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
515 (avr_pointer_to_address): Shift code addrs left 1 bit.
516 (avr_convert_from_func_ptr_addr): Delete function since operation is
517 better handled by avr_address_to_pointer and avr_pointer_to_address.
518 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
519
1581182a
MK
5202003-06-13 Mark Kettenis <kettenis@gnu.org>
521
522 From Kelley Cook <kelleycook@wideopenwest.com>:
523 * configure.host: Accept i[34567]86 variants.
524 * configure.tgt: Likewise.
525 * nlm/configure.in: Likewise.
526 * nlm/configure: Regenerated.
527
7aa1783e
RE
5282003-06-13 Richard Earnshaw <rearnsha@arm.com>
529
530 * arm-tdep.c (solib-svr4.h): Dont' include it.
531 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
532 * arm-linux-tdep.c: ... here. Make static.
533 (arm_linux_init_abi): Register it.
534 (solib-svr4.h): Include it.
535 * Makefile.in: Update dependencies.
536 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
537 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
538
0261a0d0
CV
5392003-06-13 Corinna Vinschen <vinschen@redhat.com>
540
541 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
542 indicate registers used for return values.
543 (struct frame_extra_info): Drop args_pointer and locals_pointer.
544 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
545 members.
546 (h8300_init_extra_frame_info): Ditto.
547 (h8300_frame_locals_address): Removed.
548 (h8300_frame_args_address): Removed.
549 (h8300_extract_return_value): Use new regcache structure. Only care
550 for 16 bit CPUs.
551 (h8300h_extract_return_value): Same function for 32 bit CPUs.
552 (h8300_store_return_value): Use new regcache structure. Only care
553 for 16 bit CPUs.
554 (h8300h_store_return_value): Same function for 32 bit CPUs.
555 (h8300_store_struct_return): Removed.
556 (h8300_extract_struct_value_address): Use new regcache structure.
557 (h8300h_extract_struct_value_address): Removed.
558 (h8300_push_dummy_code): New function.
559 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
560 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
561 set_gdbarch_store_return_value architecture dependent.
562 Call set_gdbarch_push_dummy_code and
563 set_gdbarch_extract_struct_value_address.
564 Remove calls to set_gdbarch_frame_args_address,
565 set_gdbarch_frame_locals_address,
566 set_gdbarch_deprecated_store_struct_return,
567 set_gdbarch_deprecated_extract_return_value,
568 set_gdbarch_deprecated_extract_struct_value_address,
569 set_gdbarch_deprecated_call_dummy_words and
570 set_gdbarch_deprecated_sizeof_call_dummy_words.
571
055c394a
CV
5722003-06-13 Corinna Vinschen <vinschen@redhat.com>
573
574 * h8300-tdep.c (h8300_register_byte): Remove.
575 (h8300h_register_byte): Remove.
576 (h8300_register_virtual_type): Remove. Substitute by...
577 (h8300_register_type): New function.
578 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
579 (h8300h_extract_struct_value_address): Ditto.
580 (h8300_gdbarch_init): Drop calls to
581 set_gdbarch_deprecated_register_byte and
582 set_gdbarch_deprecated_register_virtual_type.
583 Add call to set_gdbarch_register_type.
584
9c04cab7
AC
5852003-06-13 Andrew Cagney <cagney@redhat.com>
586
587 * gdbarch.sh: Update comments on registers.
588 (deprecated_register_byte): Rename register_byte.
589 (deprecated_register_raw_size): Rename register_raw_size.
590 (deprecated_register_virtual_size): Rename register_virtual_size.
591 (deprecated_register_virtual_type): Rename register_virtual_type.
592 * gdbarch.h, gdbarch.c: Re-generate.
593 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
594 * vax-tdep.c (vax_gdbarch_init): Update.
595 * v850-tdep.c (v850_gdbarch_init): Update.
596 * sparc-tdep.c (sparc_gdbarch_init): Update.
597 * sh-tdep.c (sh_gdbarch_init): Update.
598 * s390-tdep.c (s390_gdbarch_init): Update.
599 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
600 * ns32k-tdep.c: Update.
601 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
602 * mips-tdep.c (mips_gdbarch_init): Update.
603 * mcore-tdep.c (mcore_gdbarch_init): Update.
604 * m68k-tdep.c (m68k_gdbarch_init): Update.
605 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
606 * ia64-tdep.c (ia64_gdbarch_init): Update.
607 * hppa-tdep.c (hppa_gdbarch_init): Update.
608 * h8300-tdep.c (h8300_gdbarch_init): Update.
609 * frv-tdep.c (frv_gdbarch_init): Update.
610 * cris-tdep.c (cris_gdbarch_init): Update.
611 * avr-tdep.c (avr_gdbarch_init): Update.
612 * alpha-tdep.c (alpha_gdbarch_init): Update.
613 * arm-tdep.c (arm_gdbarch_init): Update.
614
b060cbea
AC
6152003-06-13 Andrew Cagney <cagney@redhat.com>
616
617 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
618 mips_o32_use_struct_convention with always_use_struct_convention.
619
0fc9922a
DC
6202003-06-12 David Carlton <carlton@kealia.com>
621
622 * cp-namespace.c (cp_set_block_scope): Comment out
623 processing_has_namespace_info branch.
624
1fd35568
JB
6252003-06-12 Jim Blandy <jimb@redhat.com>
626
f470a70a
JB
627 Recognize and skip 64-bit PowerPC Linux linkage functions.
628 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
629 insn_pattern, insns_match_pattern, d_field, ds_field): New
630 functions, macros, and types for working with PPC instructions.
631 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
632 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
633 ppc64_skip_trampoline_code): New functions, variables, and macros
634 for recognizing and skipping linkage functions.
635 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
636 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
637
49ff75ad
JB
638 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
639 register offsets for both the 32- and 64-bit interfaces.
640
bd918c83
JB
641 Actually finish the job started by my change of 2003-05-29.
642 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
643 other #definition of this.
644 (ppc_linux_skip_trampoline_code): Remove declaration.
645 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
646 static.
647 (ppc_linux_init_abi): Register it as the skip_trampoline_code
648 method for GDBARCH.
649
650 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
651 'long' on ppc64-*-linux*.
652
f8c59253
JB
653 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
654 isn't #defined, assume the register doesn't exist: act as if
655 tdep->ppc_mq_regnum were -1.
656
8fbb30b1
JB
657 * configure.host, configure.tgt: Add entries for
658 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
659 powerpc/linux.mt.
660 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
661 New files.
662
1fd35568
JB
663 * arch-utils.c (always_use_struct_convention): New function.
664 * arch-utils.h (always_use_struct_convention): New prototype.
665 * alpha-tdep.c (alpha_use_struct_convention): Delete.
666 (alpha_gdbarch_init): Register always_use_struct_convention,
667 instead of alpha_use_struct_convention.
668 * cris-tdep.c (cris_use_struct_convention): Delete.
669 (cris_gdbarch_init): Register always_use_struct_convention,
670 instead of cris_use_struct_convention.
671 * frv-tdep.c (frv_use_struct_convention): Delete.
672 (frv_gdbarch_init): Register always_use_struct_convention,
673 instead of frv_use_struct_convention.
674 * h8300-tdep.c (h8300_use_struct_convention): Delete.
675 (h8300_gdbarch_init): Register always_use_struct_convention,
676 instead of h8300_use_struct_convention.
e3305dd9 677 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
678 (mips_o32_gdbarch_init): Register always_use_struct_convention,
679 instead of mips_o32_use_struct_convention.
680
e14e6e9c
AC
6812003-06-12 Andrew Cagney <cagney@redhat.com>
682
683 * wince.c: Include "mips-tdep.h".
684 * mips-tdep.h (mips_next_pc): Declare.
685 * mcore-tdep.c: Make more local functions static.
686 * Makefile.in (wince.o): Update dependencies.
687
2335f48e
DC
6882003-06-12 David Carlton <carlton@kealia.com>
689
690 * symtab.c (lookup_symbol_aux_minsyms): Replace
691 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
692 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
693 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
694 SYMBOL_NATURAL_NAME.
695
f70a7d61
AS
6962003-06-12 Andreas Schwab <schwab@suse.de>
697
698 * Makefile.in (tuiDisassem.o): Update dependencies.
699
b6429628
DC
7002003-06-12 David Carlton <carlton@bactrian.org>
701
702 * symtab.h: Delete declaration of make_symbol_overload_list.
703 Add declaration of lookup_partial_symbol.
704 * symtab.c (remove_params): Move to cp-support.c.
705 (overload_list_add_symbol, make_symbol_overload_list)
706 (sym_return_val_size, sym_return_val_index): Ditto.
707 (lookup_partial_symbol): Make extern.
708 * cp-support.h: Add declaration of make_symbol_overload_list.
709 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
710 symtab.h, and block.h.
711 (remove_params): Move here from symtab.c.
712 (overload_list_add_symbol, make_symbol_overload_list)
713 (sym_return_val_size, sym_return_val_index): Ditto.
714 * valops.c: Include cp-support.h.
715 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
716 frame_h, and block_h.
717 (valops.o): Depend on cp_support_h.
718
084edea5
CV
7192003-06-12 Corinna Vinschen <vinschen@redhat.com>
720
721 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
722 substitute by NUM_REGS throughout.
723 (h8300_register_name): Only care for H8/300 and H8/300H registers.
724 (h8300s_register_name): New function for H8S registers.
725 (h8300sx_register_name): Ditto for H8SX registers.
726 (h8300_print_register): Revise register printing, avoid depending
727 on 32 bit long.
0261a0d0 728 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
729 (h8300h_register_byte): New function for any other architecture.
730 (h8300_register_raw_size): Remove.
731 (h8300_register_virtual_type): Revise to return actually useful
732 type.
733 (h8300_extract_struct_value_address): Only care for H8/300 registers.
734 (h8300h_extract_struct_value_address): New function for any other
735 architecture.
736 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
737 set_gdbarch_register_name, set_gdbarch_register_byte,
738 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
739 Remove calls to set_gdbarch_deprecated_register_size,
740 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
741 set_gdbarch_deprecated_max_register_raw_size,
742 set_gdbarch_register_virtual_size and
743 set_gdbarch_deprecated_max_register_virtual_size entirely.
744 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
745 set_gdbarch_long_double_bit.
746
06194148
JJ
7472003-06-11 Jeff Johnston <jjohnstn@redhat.com>
748
749 * doublest.c (convert_doublest_to_floatformat): When dealing
750 with the implied integer bit, only alter mant_bits if we are
751 processing a full 32 bits of mantissa.
752
de4f826b
DC
7532003-06-11 David Carlton <carlton@bactrian.org>
754
755 * dictionary.h: New.
756 * dictionary.c: New.
757 * block.h: Add opaque declaration for struct dictionary.
758 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
759 'sym' members.
760 (BLOCK_DICT): New macro.
761 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
762 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
763 BLOCK_SHOULD_SORT.
764 (ALL_BLOCK_SYMBOLS): Update definition.
765 * Makefile.in (SFILES): Add dictionary.c.
766 (dictionary_h): New.
767 (COMMON_OBS): Add dictionary.o.
768 (dictionary.o): New.
769 (ada-lang.o): Depend on dictionary_h.
770 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
771 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
772 (mi-cmd-stack.o): Ditto.
773 (gdbtk-cmds.o): Update dependencies.
774 (gdbtk-stack.o): Ditto.
775 * ada-lang.c: Include dictionary.h.
776 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
777 (fill_in_ada_prototype, debug_print_block): Ditto.
778 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
779 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
780 'is_sorted'.
781 * mdebugread.c: Include dictionary.h.
782 (struct parse_stack): Delete 'maxsyms' member.
783 (parse_symbol): Update calls to new_block. Delete calls to
784 shrink_block. Use dictionary methods.
785 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
786 Update calls to new_symtab. Don't maintain maxsyms data.
787 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
788 (add_symbol): Just call dict_add_symbol.
789 (new_symtab): Delete 'maxsyms' argument.
790 (new_symtab): Update calls to new_block.
791 (new_block): Delete 'maxsyms' argument; add 'function' argument.
792 (shrink_block): Delete function.
793 (fixup_sigtramp): Update call to new_block. Add symbol via
794 dict_add_symbol.
795 * jv-lang.c: Include dictionary.h.
796 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
797 appropriately. Set class_symtab->free_func. Make sure the
798 blockvector is big enough to hold two blocks.
799 (add_class_symtab_symbol): Use dictionary methods.
800 (free_class_block): New function.
801 (type_from_class): Replace explicit iteration by
802 ALL_BLOCK_SYMBOLS.
803 * symtab.h (struct symtab): Replace 'free_ptr' method by
804 'free_func'.
805 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
806 sort_symtab_syms.
807 * dwarfread.c (psymtab_to_symtab_1): Delete call to
808 sort_symtab_syms.
809 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
810 Include dictionary.h.
811 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
812 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
813 sort_symtab_syms.
814 * objfiles.c: Include dictionary.h.
815 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
816 * buildsym.c: Include dictionary.h.
817 (finish_block): Use dictionary methods.
818 (end_symtab): Set free_func to NULL, not free_ptr.
819 * tracepoint.c: Include dictionary.h.
820 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
821 (scope_info): Ditto.
822 * stack.c: Include dictionary.h.
823 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
824 (print_block_frame_labels, print_frame_arg_vars)
825 (print_frame_args): Ditto.
826 * symmisc.c (free_symtab_block): Use dictionary methods.
827 (dump_symtab): Ditto.
828 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
829 Include dictionary.h.
830 * symfile.h: Delete declarations of sort_block_syms,
831 sort_symtab_syms.
832 * symfile.c (sort_block_syms): Delete.
833 (sort_symtab_syms): Delete.
834 * symtab.c: Include dictionary.h.
835 (lookup_block_symbol): Use dictionary iterators.
836 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
837 (search_symbols, make_symbol_completion_list): Ditto.
838 (make_symbol_overload_list): Ditto.
839 * valops.c (value_of_local): Use dict_empty.
840 Include dictionary.h.
841
a31f978c
JB
8422003-06-11 J. Brobecker <brobecker@gnat.com>
843
844 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
845
526e70c0
DC
8462003-06-11 David Carlton <carlton@bactrian.org>
847
848 * block.h (BLOCK_SHOULD_SORT): Delete.
849 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
850 blocks.
851 * ada-lang.c (ada_add_block_symbols): Ditto.
852 * symfile.c (sort_block_syms): Delete.
853 (sort_symtab_syms): Ditto.
854 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
855 declarations.
856 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
857 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
858 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
859 * dwarfread.c (psymtab_to_symtab_1): Ditto.
860 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
861 * mdebugread.c (psymtab_to_symtab_1): Ditto.
862 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
863
33c08150
JJ
8642003-06-11 Jeff Johnston <jjohnstn@redhat.com>
865
866 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
867 bits to 128.
868
781a750d
AC
8692003-06-11 Andrew Cagney <cagney@redhat.com>
870
871 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
872 REGISTER_CONVERTIBLE.
873 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
874 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
875 * gdbarch.h, gdbarch.c: Re-generate.
876 * arch-utils.h (deprecated_register_convertible_not): Rename
877 generic_register_convertible_not.
878 * arch-utils.c (deprecated_register_convertible_not): Rename
879 generic_register_convertible.
880 (legacy_convert_register_p, legacy_register_to_value): Update.
881 * sh-tdep.c (sh64_push_arguments): Update.
882 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
883 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
884 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
885 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
886 * arch-utils.c (legacy_value_to_register): Update.
887 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
888 (rs6000_register_convert_to_raw): Make parameter "from" const.
889 * mips-tdep.c (mips_gdbarch_init): Update.
890 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
891 * infcmd.c (default_print_registers_info): Update.
892 * ia64-tdep.c (ia64_gdbarch_init): Update.
893 (ia64_register_convert_to_raw): Make parameter "from" const.
894 * i386-tdep.c (i386_gdbarch_init): Update.
895 (i386_register_convert_to_raw): Update.
896
cd90e54f
AC
8972003-06-11 Andrew Cagney <cagney@redhat.com>
898
899 * remote-fileio.c: Include "remote-fileio.h".
900 * Makefile.in (remote-fileio.o): Update dependencies.
901 (remote_fileio_h): Fix typo.
902
a78f21af
AC
9032003-06-11 Andrew Cagney <cagney@redhat.com>
904
905 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
906 (xstormy16_save_dummy_frame_tos): Make static.
907 (_initialize_xstormy16_tdep): Add declaration.
908 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
909 * v850-tdep.c: Make local functions static.
910 (_initialize_v850_tdep): Add declaration.
911 * sparc-tdep.c: Make local functions static.
912 (_initialize_sparc_tdep): Add declaration.
913 * sh-tdep.c: Make local functions static.
914 (_initialize_sh_tdep): Add declaration.
915 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
916 * s390-tdep.c: Make local functions static.
917 (_initialize_s390_tdep): Add declaration.
918 * dbxread.c (find_stab_function_addr): Make static.
919 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
920 * ocd.c (_initialize_remote_ocd): Add declaration.
921 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
922 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
923 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
924 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
925 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
926 * remote-array.c (_initialize_array): Add declaration.
927 (_initialize_remote_monitors): Add declaration.
928 * remote-mips.c: Make local functions static.
929 (_initialize_remote_mips): Add declaration.
930 * mcore-tdep.c: Make all local functions static.
931 (_initialize_mcore_tdep): Add declaration.
932 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
933 * abug-rom.c (_initialize_abug_rom): Add declaration.
934 * rom68k-rom.c (_initialize_rom68k): Add declaration.
935 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
936 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
937 * remote-est.c (_initialize_est): Add declaration.
938 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
939 (m68hc11_call_dummy_address): Make static.
940 * ia64-tdep.c: Make local functions static.
941 (_initialize_ia64_tdep): Add declaration.
942 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
943 * monitor.c (monitor_wait_filter): Make static.
944 (_initialize_remote_monitors): Add declaration.
945 * remote-hms.c (_initialize_remote_hms): Add declaration.
946 * remote-e7000.c (fetch_regs_from_dump): Make static.
947 (expect_n): Make static.
948 (_initialize_remote_e7000): Add declaration.
949 * ser-e7kpc.c: Always include "defs.h".
950 (_initialize_ser_e7000pc): Add declaration.
951 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
952 * cris-tdep.c: Make all but one function static.
953 (_initialize_cris_tdep): Add declaration.
954 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
955 * solib.c (update_solib_list): Make static.
956 (_initialize_solib): Add declaration.
957 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
958 (_initialize_avr_tdep): Add declaration.
959 * remote-rdi.c (voiddummy): Make static.
960 (_initialize_remote_rdi): Add declaration.
961 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
962 * remote-rdp.c (send_rdp): Make static.
963 (_initialize_remote_rdp): Add declaration.
964 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
965
cbcdb1f5
CV
9662003-06-11 Corinna Vinschen <vinschen@redhat.com>
967
968 * remote-fileio.c: Make ari happy.
969
a191ea8d
JB
9702003-06-10 J. Brobecker <brobecker@gnat.com>
971
972 * rs6000-nat.c (child_xfer_memory): Compute the right address when
973 fetching the trailing bytes of the buffer we are about to write.
974
0ef75e11
AC
9752003-06-10 Andrew Cagney <cagney@redhat.com>
976
977 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
978 * Makefile.in (remote-fileio.o): Update dependencies.
979 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
980 include <setjmp.h>, or <sys/types.h> conditional on USG.
981 (remote_fio_jmp_buf): Delete global variable.
982
449092f6 9832003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 984 Martin M. Hunt <hunt@redhat.com>
449092f6 985
559fa028
AC
986 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
987 (SFILES): Add remote-fileio.c.
988 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
989 dependencies for building remote.o.
449092f6
CV
990 * remote-fileio.c: New file implementing the remote File-I/O protocol.
991 * remote-fileio.h: New header file defining remote File-I/O interface.
992 * remote.c (remote_write_bytes, remote_read_bytes): Remove
993 static storage class.
994 (remote_wait, remote_async_wait): Call remote_fileio_request() on
995 'F' packet.
996 (_initialize_remote): Call initialize_remote_fileio().
997 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
998 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
999 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
1000 (captured_main): Initialize new ui_files.
1001 * ui-file.c: Add read and fgets input functions.
1002 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
1003 (null_file_read): New function.
1004 (ui_file_read): New function.
1005 (set_ui_file_read): New function.
1006 (stdio_file_read): New function.
1007 * ui-file.h: New type ui_file_read_ftype.
1008 (set_ui_file_read): Declare.
1009 (ui_file_read): Declare.
1010
248de703
AC
10112003-06-09 Andrew Cagney <cagney@redhat.com>
1012
1013 * frame.h (deprecated_unwind_get_saved_register): Rename
1014 generic_unwind_get_saved_register, update comments.
1015 * mips-tdep.c (mips_get_saved_register): Update.
1016 * frame.c (deprecated_unwind_get_saved_register): Update.
1017
0ed8aa57
AC
10182003-06-09 Andrew Cagney <cagney@redhat.com>
1019
1020 * vax-tdep.c (vax_frame_locals_address): Delete function.
1021 (vax_gdbarch_init): Do not set frame_locals_address.
1022 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
1023 (m68hc11_gdbarch_init): Do not set frame_locals_address.
1024 * s390-tdep.c (s390_frame_args_address): Delete function.
1025 (s390_gdbarch_init): Do not set frame_args_address or
1026 frame_locals_address.
1027 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
1028 (ns32k_gdbarch_init): Do not set frame_locals_address.
1029 * hppa-tdep.c (hppa_frame_args_address): Delete function.
1030 (hppa_frame_locals_address): Delete function.
1031 (hppa_gdbarch_init): Do not set frame_args_address, or
1032 frame_locals_address.
1033 * arm-tdep.c (arm_frame_args_address): Delete.
1034 (arm_frame_locals_address): Delete.
1035 (arm_gdbarch_init): Do not set frame_args_address, or
1036 frame_locals_address.
1037
983a287a
AC
10382003-06-09 Andrew Cagney <cagney@redhat.com>
1039
1040 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
1041 * gdbarch.h, gdbarch.c: Re-generate.
1042 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
1043 * arch-utils.c (frame_num_args_unknown): Delete function.
1044 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
1045 (frame_info): Use FRAME_NUM_ARGS_P.
1046 * arm-tdep.c (arm_frame_num_args): Delete function.
1047 (arm_gdbarch_init): Do not set frame_num_args.
1048 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
1049 * hppa-tdep.c (hppa_frame_num_args): Delete function.
1050 (hppa_gdbarch_init): Do not set frame_num_args.
1051 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
1052 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1053 frame_num_args to default frame_num_args_unknown.
1054 * v850-tdep.c (v850_gdbarch_init): Ditto.
1055 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1056 * sh-tdep.c (sh_gdbarch_init): Ditto.
1057 * s390-tdep.c (s390_gdbarch_init): Ditto.
1058 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1059 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1060 * mips-tdep.c (mips_gdbarch_init): Ditto.
1061 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1062 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1064 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1065 * i386-tdep.c (i386_gdbarch_init): Ditto.
1066 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1067 * frv-tdep.c (frv_gdbarch_init): Ditto.
1068 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1069 * cris-tdep.c (cris_gdbarch_init): Ditto.
1070 * avr-tdep.c (avr_gdbarch_init): Ditto.
1071 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1072
8d3b0994
AC
10732003-06-09 Andrew Cagney <cagney@redhat.com>
1074
1075 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
1076 (print_frame_args): Moved to "stack.c".
1077 * stack.c: Include "gdb_assert.h".
1078 (print_frame_nameless_args): Moved from "printcmd.c", made static.
1079 (print_frame_args): Moved from "printcmd.c".
1080 * frame.h (print_frame_args): Delete declaration.
1081 * Makefile.in (stack.o): Update dependencies.
1082
25e3a86b
AC
10832003-06-08 Andrew Cagney <cagney@redhat.com>
1084
1085 * frame.c (get_prev_frame): Remove reference to
1086 frame_args_address_correct in comments.
1087 * frame-base.c (default_frame_args_address): Delete code
1088 conditional on FRAME_ARGS_ADDRESS_CORRECT.
1089 * vax-tdep.c (vax_frame_args_address_correct): Delete.
1090 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
1091 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
1092 (vax_frame_args_address_correct): Delete declaration.
1093
a9e5fdc2
AC
10942003-06-08 Andrew Cagney <cagney@redhat.com>
1095
1096 * gdbarch.sh (UNWIND_SP): Add.
1097 * gdbarch.h, gdbarch.c: Re-generate.
1098 * frame.c (frame_sp_unwind): New function.
1099 (get_frame_sp): New function.
1100 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
1101 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
1102 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
1103 value.
1104 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
1105 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
1106
8983bd83
AC
11072003-06-08 Andrew Cagney <cagney@redhat.com>
1108
7fec2c59
AC
1109 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
1110 REMOTE_BREAKPOINT.
1111 * remote.c: Update.
1112 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
1113 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
1114 * config/m68k/tm-sun3.h: Update.
1115 * config/m68k/tm-m68klynx.h: Update.
1116 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
1117
8983bd83
AC
1118 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
1119 trad_frame". Update comments.
1120 * d10v-tdep.c (struct d10v_unwind_cache): Update.
1121 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
1122 (trad_frame_register_value, trad_frame_prev_register): Update.
1123
b9362cc7
AC
11242003-06-08 Andrew Cagney <cagney@redhat.com>
1125
1126 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
1127 from GCC's acinclude.m4.
1128 * configure.in: Check for getopt's delcaration.
1129 * aclocal.m4, config.in, configure: Re-generate.
1130 * main.c (error_init): Delete declaration.
1131 * defs.h (error_init): Declare.
1132 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
1133 (rs6000_convert_from_func_ptr_addr): Make static.
1134 (_initialize_rs6000_tdep): Add declaration.
1135 * cli/cli-cmds.c (dont_repeat): Delete declaration.
1136 (show_commands, set_verbose, show_history): Delete declaration.
1137 * top.h (set_verbose): Add declaration.
1138 (show_history, set_history, show_commands): Add declaration.
1139 (do_restore_instream_cleanup): Add declaration.
1140 * objc-lang.c (specialcmp): Make static.
1141 (print_object_command): Make static.
1142 (find_objc_msgsend): Make static.
1143 (find_objc_msgcall_submethod_helper): Make static.
1144 (find_objc_msgcall_submethod): Make static.
1145 (_initialize_objc_language): Add declaration.
1146 (find_implementation_from_class): Make static.
1147 (find_implementation): Make static.
1148 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
1149 * objc-lang.h (lookup_struct_typedef): Add declaration.
1150 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
1151 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
1152 (do_restore_user_call_depth): Make static.
1153 (do_restore_instream_cleanup): Delete declaration.
1154 (dont_repeat): Delete declaration.
1155 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
1156 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
1157 * reggroups.c (_initialize_reggroup): Add declaration.
1158 * cp-support.c (_initialize_cp_support): Add declaration.
1159 * cp-abi.c (_initialize_cp_abi): Add declaration.
1160 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
1161 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
1162 (_initialize_gnu_v3_abi): Add declaration.
1163 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
1164 (_initialize_gnu_v2_abi): Add declaration.
1165 * frame-base.c (_initialize_frame_base): Add declaration.
1166 * doublest.c (floatformat_from_length): Make static.
1167 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
1168 * frame.c (create_sentinel_frame): Make static.
1169 (_initialize_frame): Add declaration.
1170 * top.c (do_catch_errors): Make static.
1171 (gdb_rl_operate_and_get_next_completion): Make static.
1172 * typeprint.c: Include "typeprint.h".
1173 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
1174 (sentinel_frame_this_id): Make static.
1175 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
1176 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
1177 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
1178 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
1179 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
1180 * maint.c (maintenance_print_architecture): Make static.
1181 * signals/signals.c (_initialize_signals): Add declaration.
1182 * std-regs.c (_initialize_frame_reg): Add declaration.
1183 * jv-exp.y (push_variable): ISO C definition.
1184 (push_qualified_expression_name): Ditto.
1185 * memattr.c (_initialize_mem): Add declaration.
1186 * remote.c (remote_check_watch_resources): Make static.
1187 (remote_stopped_by_watchpoint): Make static.
1188 (remote_stopped_data_address): Make static.
1189 * d10v-tdep.c (nr_dmap_regs): Make static.
1190 (a0_regnum): Make static.
1191 (d10v_frame_unwind_cache): Make static.
1192 (d10v_frame_p): Make static.
1193 * osabi.c (show_osabi): Make static.
1194 (_initialize_gdb_osabi): Add extern declaration.
1195 * gdbtypes.c (make_qualified_type): Make static.
1196 (safe_parse_type): Make static.
1197 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
1198 * macrotab.c (macro_bcache_free): Make static.
1199 * interps.c (interp_set_quiet): Make static.
1200 (interpreter_exec_cmd): Make static.
1201 * stack.h (select_frame_command): New file.
1202 * stack.c: Include "stack.h".
1203 (select_frame_command_wrapper): Delete function.
1204 (select_frame_command): Make global.
1205 * infcall.c: Include "infcall.h".
1206 * linespec.c: Include "linespec.h".
1207 * symfile.c (sections_overlap): Make static.
1208 * cp-support.h (cp_initialize_namespace): ISO C declaration.
1209 * charset.c (_initialize_charset): Add missing prototype.
1210 * regcache.c (init_legacy_regcache_descr): Make static.
1211 (do_regcache_xfree): Make static.
1212 (regcache_xfer_part): Make static.
1213 (_initialize_regcache): Add missing prototype.
1214 * breakpoint.c (parse_breakpoint_sals): Make static.
1215 (breakpoint_sals_to_pc): Make static.
1216 * interps.h (clear_interpreter_hooks): ISO C declaration.
1217 * Makefile.in (stack_h): Define.
1218 (stack.o, typeprint.o, mi-main.o): Update dependencies.
1219 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
1220
a0f267c7
AC
12212003-06-08 Andrew Cagney <cagney@redhat.com>
1222
1223 * Makefile.in (d10v-tdep.o): Update dependencies.
1224 (SFILES): Add trad-frame.c.
1225 (trad_frame_h): Define.
1226 (COMMON_OBS): Add trad-frame.o.
1227 (trad-frame.o): Specify dependencies.
1228 * d10v-tdep.c: Include "trad-frame.h".
1229 (saved_regs_unwinder): Delete function.
1230 (d10v_frame_prev_register): Use trad_frame_prev_register.
1231 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
1232 trad_frame", delete "regs" and "prev_sp".
1233 (prologue_find_regs): Use trad-frame.
1234 * trad-frame.h, trad-frame.c: New files.
1235
4538b4f4
MK
12362003-06-08 Mark Kettenis <kettenis@gnu.org>
1237
1238 * dwarf2cfi.c, dwarf2cfi.h: Remove.
1239
a0273b2f
AF
12402003-06-07 Adam Fedor <fedor@gnu.org>
1241
1242 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
1243 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
1244 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
1245 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
1246 resolve_msgsend_super, resolve_msgsend_super_stret):
1247 Use it.
1248
3a6c3343
AC
12492003-06-07 Andrew Cagney <cagney@redhat.com>
1250
1251 * symfile.h: Re-indent, clean up comments.
1252
b46e02f6
AC
12532003-06-07 Andrew Cagney <cagney@redhat.com>
1254
1255 * inferior.h (deprecated_write_sp): Replace
1256 generic_target_write_sp.
1257 * regcache.c (deprecated_write_sp): Replace
1258 generic_target_write_sp.
1259 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1260 * vax-tdep.c (vax_gdbarch_init): Update.
1261 * v850-tdep.c (v850_gdbarch_init): Update.
1262 * sparc-tdep.c (sparc_gdbarch_init): Update.
1263 * sh-tdep.c (sh_gdbarch_init): Update.
1264 * s390-tdep.c (s390_gdbarch_init): Update.
1265 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1266 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1267 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1268 * mcore-tdep.c (mcore_gdbarch_init): Update.
1269 * m68k-tdep.c (m68k_gdbarch_init): Update.
1270 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1271 * ia64-tdep.c (ia64_gdbarch_init): Update.
1272 * h8300-tdep.c (h8300_gdbarch_init): Update.
1273 * frv-tdep.c (frv_gdbarch_init): Update.
1274 * cris-tdep.c (cris_gdbarch_init): Update.
1275 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
1276
a42e117c
AC
12772003-06-07 Andrew Cagney <cagney@redhat.com>
1278
1279 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
1280 Assert that PC_REGNUM is valid.
1281 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
1282
bd1ce8ba
AC
12832003-06-07 Andrew Cagney <cagney@redhat.com>
1284
1285 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
1286 * gdbarch.h, gdbarch.c: Regenerate.
1287 * mn10300-tdep.c: Include "gdb_assert.h".
1288 (mn10300_read_fp): New function.
1289 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
1290 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
1291 * ia64-tdep.c: Include "gdb_assert.h".
1292 (ia64_read_fp): New function.
1293 (ia64_gdbarch_init): Set deprecated_target_read_fp to
1294 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
1295 * regcache.c (generic_target_read_sp): Delete function.
1296 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
1297 * inferior.h (generic_target_read_sp): Delete declaration.
1298 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
1299 generic_target_read_sp.
1300 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1301 * sparc-tdep.c (sparc_gdbarch_init): Ditto
1302 * sh-tdep.c (sh_gdbarch_init): Ditto.
1303 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1304 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
1305
ec5cbaec
AC
13062003-06-07 Andrew Cagney <cagney@redhat.com>
1307
1308 * gdbarch.sh: Comment each field of startup_gdbarch.
1309 * gdbarch.h, gdbarch.c: Re-generate.
1310
cde9ea48
AC
13112003-06-07 Andrew Cagney <cagney@redhat.com>
1312
1313 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
1314 * gdbarch.h, gdbarch.c: Re-generate.
1315 * regcache.c: Update comments on read_pc et.al.
1316 (generic_target_read_pc): Delete function.
1317 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
1318 * inferior.h (generic_target_read_pc): Delete declaration.
1319 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
1320 generic_target_read_pc.
1321 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1322 * sh-tdep.c (sh_gdbarch_init): Ditto.
1323 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1324 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1325
9a90a780
AC
13262003-06-07 Andrew Cagney <cagney@redhat.com>
1327
1328 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
1329 "index" with "special_local_sect". Use strcmp instead of STREQ.
1330 Append period to coments.
1331
a39a16c4
MM
13322003-06-06 Mark Mitchell <mark@codesourcery.com>
1333
1334 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
1335 (elfstab_offset_sections): Likewise.
1336 * gdb-stabs.h (stab_section_info): Likewise.
1337 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
1338 * objfiles.c (objfile_relocate): Likewise.
1339 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
1340 * remote.c (get_offsets): Likewise.
1341 (remote_cisco_objfile_relocate): Likewise.
1342 * somread.c (som_symfile_offsets): Likewise.
1343 * symfile.c (alloc_section_addr_info): New function.
1344 (build_section_addr_info_from_section_tab): Use it.
1345 (free_section_addr_info): Adjust.
1346 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
1347 (syms_from_objfile): Allocate local_addr dynamically.
1348 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
1349 dynamically.
1350 (add_symbol_file_command): Allocate sect_opts dynamically.
1351 (reread_symbols): Avoid use of SECT_OFF_MAX.
1352 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
1353 (alloc_section_addr_info): Declare it.
1354 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
1355 * win32-nat.c (solib_symbols_add): Allocate section_addrs
1356 dynamically.
1357 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
1358
20c6c2f8
AC
13592003-06-06 Andrew Cagney <cagney@redhat.com>
1360
1361 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
1362 (d10v_frame_unwind_cache): Do not set "return_pc".
1363
884a26c8
MS
13642003-06-06 Michael Snyder <msnyder@redhat.com>
1365
1366 * h8300-tdep.c: Make tidy (long lines).
1367
088ce440
ML
13682003-06-06 Michal Ludvig <mludvig@suse.cz>
1369
1370 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
1371 to regcache_collect().
1372
7d773d96
JB
13732003-06-05 J. Brobecker <brobecker@gnat.com>
1374
1375 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
1376 pc_in_sigtramp multiarch method.
1377 (hppa_hpux_som_init_abi): Use it.
1378 (hppa_hpux_elf_init_abi): Likewise.
1379 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
1380 macro has been multiarched.
1381 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
1382 macro here, as hppa64 isn't multiarched yet.
1383
1df6926e
AC
13842003-06-05 Andrew Cagney <cagney@redhat.com>
1385
1386 * Makefile.in (value_h): Add $(frame_h).
1387 * value.h: Include "frame.h".
1388 (struct value): Replace "frame_addr" with "frame_id".
1389 (VALUE_FRAME_ID): Replace VALUE_FRAME.
1390 * values.c (allocate_value): Use VALUE_FRAME_ID.
1391 (value_copy): Use VALUE_FRAME_ID.
1392 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
1393 * valops.c (value_assign): Update. Use frame_find_by_id.
1394
6b53acc6
ML
13952003-06-05 Michal Ludvig <mludvig@suse.cz>
1396
1397 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
1398 in each pass.
1399
4d9850d3
JJ
14002003-06-05 Jeff Johnston <jjohnstn@redhat.com>
1401
1402 * thread-db.c (check_event): For create/death event breakpoints,
1403 loop through all messages to ensure that we read the message
1404 corresponding to the breakpoint we are at.
1405
8efca6ba
MS
14062003-06-04 Michael Snyder <msnyder@redhat.com>
1407
1408 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
1409
0912c7f2
MK
14102003-06-04 Mark Kettenis <kettenis@gnu.org>
1411
1412 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
1413 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
1414 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
1415 when handling .eh_frame sections.
1416
4e370325
JB
14172003-06-04 J. Brobecker <brobecker@gnat.com>
1418
1419 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
1420 prepare_to_proceed procedure instead of the hppa-specific one.
1421 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
1422
b757528f
JJ
14232003-06-04 Jeff Johnston <jjohnstn@redhat.com>
1424
1425 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
1426 * config.in: Regenerated.
1427 * configure.in: Add test for syscall function and check for
1428 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
1429 * configure: Regenerated.
1430 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
1431 <sys/syscall.h>.
1432 (kill_lwp): New function that uses tkill syscall or
1433 uses kill, depending on whether threading model is nptl or not.
1434 All callers of kill() changed to use kill_lwp().
1435 (lin_lwp_wait): Make special check when WIFEXITED occurs to
1436 see if all threads have already exited in the nptl model.
1437 (stop_and_resume_callback): New callback function used by the
1438 lin_lwp_wait thread exit handling code.
1439 (stop_wait_callback): Check for threads already having exited and
1440 delete such threads fromt the lwp list when discovered.
1441 (stop_callback): Don't assert retcode of kill call.
1442
1443 Roland McGrath <roland@redhat.com>
1444 * i386-linux-nat.c (ps_get_thread_area): New function needed by
1445 nptl libthread_db.
1446
087779b1
RH
14472003-06-03 Richard Henderson <rth@redhat.com>
1448
b21fd293
RH
1449 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
1450 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
1451 (alpha_sigtramp_frame_prev_register): Likewise.
1452 (alpha_heuristic_frame_prev_register): Likewise.
1453 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
1454
087779b1
RH
1455 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
1456 alpha-specific register id names.
1457 (alpha_mdebug_frame_unwind_cache): Likewise.
1458 (alpha_mdebug_frame_prev_register): Likewise.
1459
baa490c4
RH
14602003-06-03 Richard Henderson <rth@redhat.com>
1461
1462 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
1463 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
1464 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
1465 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
1466 unwind routines.
1467 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
1468 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
1469 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
1470
1471 * alpha-linux-tdep.c: Remove unnecessary includes.
1472 * Makefile.in (alpha-linux-tdep.o): Update.
1473
14742003-06-03 Richard Henderson <rth@redhat.com>
1475
1476 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
1477 (alphabsd_fill_fpreg): Likewise.
1478
f534e522
JB
14792003-06-03 J. Brobecker <brobecker@gnat.com>
1480
1481 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
1482 references to struct frame_info fields by calls to the equivalent
1483 accessors. Necessary now that frame_info is opaque.
1484
4035536b
JB
14852003-06-03 J. Brobecker <brobecker@gnat.com>
1486
1487 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
1488 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
1489 structure, field no longer exists.
1490
0bd79c5c
JB
14912003-06-03 J. Brobecker <brobecker@gnat.com>
1492
1493 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
1494 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
1495
37bb6d9f
JB
14962003-06-03 J. Brobecker <brobecker@gnat.com>
1497
1498 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
1499 references to struct frame_info fields by calls to the equivalent
1500 accessors. Necessary now that frame_info is opaque.
1501
852ee05c
JB
15022003-06-03 J. Brobecker <brobecker@gnat.com>
1503
1504 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
1505 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
1506 structure, field no longer exists.
1507
7d58c67d
TR
15082003-06-03 Theodore A. Roth <troth@openavr.org>
1509
1510 * remote.c (init_remote_state): Compute sizeof_g_packet by
1511 accumulation of the size of all registers instead of blindly using
1512 DEPRECATED_REGISTER_BYTES.
1513
0a48e7e8
MS
15142003-06-03 Michael Snyder <msnyder@redhat.com>
1515
1516 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
1517 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
1518 for h8300sx.
1519
9798ab0d
JB
15202003-06-03 J. Brobecker <brobecker@gnat.com>
1521
1522 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
1523 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
1524
00b037e2
AC
15252003-06-03 Andrew Cagney <cagney@redhat.com>
1526
1527 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
1528 (sparc_convert_to_raw): Delete function.
1529 (sparc_gdbarch_init): Do not set register_convert_to_raw or
1530 register_convert_to_virtual.
1531
043b2f77
JJ
15322003-06-03 Jeff Johnston <jjohnstn@redhat.com>
1533
1534 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
1535 layer if not dealing with a statically-linked threaded program.
1536
f43caff8
KW
15372003-06-03 Kris Warkentin <kewarken@qnx.com>
1538
1539 * solib.c (solib_open): Update comment to reflect actual search order.
1540
ae1e7417
AC
15412003-06-03 Andrew Cagney <cagney@redhat.com>
1542
1543 * frame.c (get_frame_memory_signed): New function.
1544 (get_frame_memory, get_frame_memory_unsigned): New function.
1545 (get_frame_arch): New function.
1546 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
1547 (get_frame_memory, get_frame_unsigned_memory): Declare.
1548 * d10v-tdep.c (d10v_frame_unwind_cache): Use
1549 get_frame_memory_unsigned and get_frame_arch.
1550 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
1551
cb123844
RG
15522003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
1553
1554 * MAINTAINERS (write after approval): Add myself.
1555
1bb792e9
JB
15562003-06-03 Jim Blandy <jimb@redhat.com>
1557
1558 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
1559 elements of gregset_t are 64 bits each, but access registers
1560 are still 32 bits, so they're packed two per gregset_t
1561 element. Unpack/pack them properly.
1562
aee8d8ba
DC
15632003-06-02 David Carlton <carlton@bactrian.org>
1564
1565 * linespec.c (find_methods): Break out code into
1566 add_matching_methods and add_constructors.
1567 (add_matching_methods): New.
1568 (add_constructors): Ditto.
1569
bf7488d2
AC
15702003-06-02 Andrew Cagney <cagney@redhat.com>
1571
bf7488d2
AC
1572 * sparc-tdep.c (sparc_print_registers): Delete call to
1573 REGISTER_CONVERTIBLE.
1574 (sparc_gdbarch_init): Do not set register_convertible.
1575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1576 * frv-tdep.c (frv_gdbarch_init): Ditto.
1577 * cris-tdep.c (cris_gdbarch_init): Ditto.
1578
adedef68
EZ
15792003-06-02 Elena Zannoni <ezannoni@redhat.com>
1580
1581 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
1582 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
1583 (syms_from_objfile): Ditto.
1584
650fcc91
AS
15852003-06-03 Andreas Schwab <schwab@suse.de>
1586
1587 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
1588 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
1589
df4a182b
RH
15902003-06-02 Richard Henderson <rth@redhat.com>
1591
1592 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
1593 a member of all_reggroup.
1594
c483c494
RH
15952003-06-02 Richard Henderson <rth@redhat.com>
1596
1597 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
1598 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
1599 (alpha_lds, alpha_sts): New.
1600 (alpha_convert_register_p): Change from _register_convertible.
1601 (alpha_register_to_value): Change from _convert_to_virtual;
1602 restructure and fail for type sizes other than 4 or 8.
1603 (alpha_value_to_register): Similarly.
1604 (alpha_extract_return_value): Use alpha_sts.
1605 (alpha_store_return_value): Use alpha_lds.
1606 (alpha_gdbarch_init): Update hooks.
1607
b38b6be2
RH
16082003-06-02 Richard Henderson <rth@redhat.com>
1609
1610 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
1611 regnum identifiers.
1612 (alpha_sigtramp_register_address): Likewise.
1613
98a8e1e5
RH
16142003-06-02 Richard Henderson <rth@redhat.com>
1615
1616 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
1617 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
1618 * alpha-tdep.h: Declare them.
1619
1620 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
1621 Remove zerobuf. Don't error on UNIQUE.
1622 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
1623 (ALPHA_REGSET_UNIQUE): Provide default.
1624 (supply_gregset): Use alpha_supply_int_regs.
1625 (fill_gregset): Use alpha_fill_int_regs.
1626 (supply_fpregset): Use alpha_supply_fp_regs.
1627 (fill_fpregset): Use alpha_fill_fp_regs.
1628 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
1629 (alphabsd_supply_reg): Use alpha_supply_int_regs.
1630 (alphabsd_fill_reg): Use alpha_fill_int_regs.
1631 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
1632 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
1633 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
1634
67dfac52
RH
16352003-06-02 Richard Henderson <rth@redhat.com>
1636
f75d70cc
RH
1637 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
1638
67dfac52
RH
1639 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
1640 (alpha_store_return_value): Likewise.
1641
0cf566ec
DC
16422003-06-02 David Carlton <carlton@math.stanford.edu>
1643
1644 * block.c (contained_in): Add 'const' to arguments.
1645 (block_function): Ditto.
1646 * block.h: Update declarations for block_function and
1647 contained_in.
1648
cdef89d0
DC
16492003-06-02 David Carlton <carlton@math.stanford.edu>
1650
1651 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
1652 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
1653 * p-valprint.c (pascal_val_print): Ditto.
1654 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
1655
72667056
RH
16562003-06-02 Richard Henderson <rth@redhat.com>
1657
98a8e1e5
RH
1658 * alpha-tdep.c (alpha_push_dummy_call): Use
1659 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 1660
98a8e1e5
RH
1661 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
1662 sign-extension of 32-bit values.
1663 (alpha_store_return_value): Similarly.
0ede8eca 1664
98a8e1e5
RH
1665 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
1666 (alpha_extract_return_value): Likewise.
1667 (alpha_store_return_value): Likewise.
7b5e1cb3 1668
98a8e1e5
RH
1669 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
1670 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 1671
98a8e1e5
RH
1672 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
1673 (alpha_extract_struct_value_address): Likewise.
1674 (alpha_store_return_value): Likewise.
1675 (alpha_store_struct_return): Remove.
1676 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 1677
98a8e1e5
RH
1678 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
1679 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
1680 macros where appropriate.
1681 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
1682 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 1683
98a8e1e5
RH
1684 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
1685 for SP, GP; void_func_ptr for PC; non-language-specific types
1686 for all others.
1687 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 1688
6dd77b81
RH
16892003-06-02 Richard Henderson <rth@redhat.com>
1690
1691 * top.h (lim_at_start): Declare.
1692 * main.c (captured_main): Set it.
1693 * top.c (lim_at_start): Define.
1694 (command_loop): Use it instead of &environ.
1695 * event-top.c (command_handler): Likewise.
1696
f4dbdb54
JT
16972003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
1698
1699 * mipsnbsd-tdep.c: Update copyright years.
1700 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
1701
8f285956
RH
17022003-06-01 Richard Henderson <rth@redhat.com>
1703
98a8e1e5
RH
1704 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
1705 (alpha-linux-tdep.o): Update dependencies.
1706 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
1707 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 1708
615967cb
RH
17092003-06-01 Richard Henderson <rth@redhat.com>
1710
98a8e1e5
RH
1711 * alpha-tdep.c (alpha_register_reggroup_p): New.
1712 (alpha_gdbarch_init): Register it.
615967cb 1713
b59661bd
AC
17142003-06-02 Andrew Cagney <cagney@redhat.com>
1715
1716 * dwarfread.c: Eliminate "register"
1717 (decode_die_type): Eliminate assignment within "if".
1718 (struct_type, decode_array_element_type): Ditto.
1719 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
1720 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
1721 (decode_modified_type, completedieinfo): Ditto.
1722 * block.c: Eliminate "register".
1723 (blockvector_for_pc_sect): Eliminate assignment within "if".
1724 * cp-support.h (struct symbol): Opaque declaration.
1725 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
1726
5ef165c2
RH
17272003-06-01 Richard Henderson <rth@redhat.com>
1728
98a8e1e5
RH
1729 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
1730 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 1731
143985b7
AF
17322003-06-01 Adam Fedor <fedor@gnu.org>
1733
1734 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
1735 * gdbarch.[ch]: Regenerate.
1736 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
1737 (hppa_gdbarch_init): Set it in the gdbarch vector.
1738 * i386-tdep.c (i386_fetch_pointer_argument): New
1739 (i386_gdbarch_init): Set it into gdbarch.
1740 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
1741 (rs6000_gdbarch_init): Set it in gdbarch.
1742 * sparc-tdep.c (sparc_fetch_pointer_argument): New
1743 (sparc_gdbarch_init): Set it in gdbarch.
1744
ae0167b9
AC
17452003-06-01 Andrew Cagney <cagney@redhat.com>
1746
7c0b4a20
AC
1747 * defs.h (extract_address): Delete declaration.
1748 * findvar.c (extract_address): Delete function.
1749 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
1750 extract_address with the inline equivalent,
1751 extract_unsigned_integer.
1752 (xstormy16_extract_struct_value_address): Ditto.
1753 (xstormy16_pointer_to_address): Ditto.
1754 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
1755 * v850-tdep.c (v850_push_arguments): Ditto.
1756 (v850_extract_return_value): Ditto.
1757 (v850_extract_struct_value_address): Ditto.
1758 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
1759 (sparcnbsd_get_longjmp_target_64): Ditto.
1760 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
1761 (get_longjmp_target): Ditto.
1762 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
1763 (sh64_extract_struct_value_address): Ditto.
1764 (sh_push_arguments): Ditto.
1765 (sh64_push_arguments): Ditto.
1766 * remote-vxsparc.c (vx_read_register): Ditto.
1767 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
1768 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
1769 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
1770 * mipsv4-nat.c (get_longjmp_target): Ditto.
1771 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
1772 * mips-nat.c (get_longjmp_target): Ditto.
1773 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
1774 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
1775 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
1776 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
1777 * irix5-nat.c (get_longjmp_target): Ditto.
1778 * irix4-nat.c (get_longjmp_target): Ditto.
1779 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
1780 (ia64_push_arguments): Ditto.
1781 * hpux-thread.c (hpux_thread_store_registers): Ditto.
1782 * h8300-tdep.c (h8300_push_arguments): Ditto.
1783 (h8300_store_return_value): Ditto.
1784 (h8300_extract_struct_value_address): Ditto.
1785 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
1786 (frv_push_arguments): Ditto.
1787 * avr-tdep.c (avr_pointer_to_address): Ditto.
1788 (avr_push_arguments): Ditto.
1789 * arm-tdep.c (arm_push_dummy_call): Ditto.
1790 (arm_get_longjmp_target): Ditto.
1791 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
1792 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
1793 (alpha_get_longjmp_target): Ditto.
1794
ae0167b9
AC
1795 * solib-irix.c (extract_mips_address): Inline extract_address,
1796 replacing it with extract_signed_integer.
1797 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
1798 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
1799 (first_link_map_member, open_symbol_file_object): Ditto.
1800 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
1801 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
1802 (LM_NEXT, LM_NAME): Ditto.
1803
44d88583
RH
18042003-06-01 Richard Henderson <rth@redhat.com>
1805
98a8e1e5
RH
1806 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
1807 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
1808 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
1809 (alpha_cannot_store_register): Likewise.
1810 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
1811 * alpha-nat.c (supply_gregset): Likewise.
1812 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 1813
310e9b6a
AC
18142003-06-01 Andrew Cagney <cagney@redhat.com>
1815
1816 * infcall.c (call_function_by_hand): Update comment on
1817 DEPRECATED_DUMMY_WRITE_SP.
1818
1819 * mips-tdep.c (mips_gdbarch_init): Do not set
1820 deprecated_dummy_write_sp.
1821 (mips_eabi_push_dummy_call): Set the SP register.
1822 (mips_o64_push_dummy_call): Set the SP register.
1823 (mips_o32_push_dummy_call): Set the SP register.
1824 (mips_n32n64_push_dummy_call): Set the SP register.
1825
5ab84872
RH
18262003-06-01 Richard Henderson <rth@redhat.com>
1827
98a8e1e5
RH
1828 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
1829 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
1830 (supply_gregset): Likewise.
1831 * alpha-tdep.c (alpha_store_return_value): Likewise.
1832 (alpha_get_longjmp_target): Likewise.
1833 (alpha_register_name): Constify array.
1834 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
1835 deprecated_register_size, deprecated_register_bytes,
1836 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
1837 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
1838 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 1839
09cc52fd
RH
18402003-06-01 Richard Henderson <rth@redhat.com>
1841
1842 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
1843 from arg_reg_buffer to regcache to avoid double conversion.
1844
c7f16359
MK
18452003-06-01 Mark Kettenis <kettenis@gnu.org>
1846
1847 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
1848 SP_REGNUM.
1849 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
1850 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
1851
7131cb6e
RH
18522003-06-01 Richard Henderson <rth@redhat.com>
1853
98a8e1e5
RH
1854 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
1855 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 1856
f3e0f90b
RH
18572003-06-01 Richard Henderson <rth@redhat.com>
1858
98a8e1e5
RH
1859 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
1860 not overlapping PC_REGNUM.
f3e0f90b 1861
c88e30c0
RH
18622003-06-01 Richard Henderson <rth@redhat.com>
1863
98a8e1e5
RH
1864 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
1865 alpha_push_arguments. Don't dump argument register data to
1866 the target stack. Fix float and 128-bit long double semantics.
1867 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
1868 (alpha_fix_call_dummy): Remove.
1869 (alpha_call_dummy_words): Remove.
1870 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 1871
f1a559ae
RH
18722003-06-01 Richard Henderson <rth@redhat.com>
1873
1874 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
1875
5e045346
AC
18762003-06-01 Andrew Cagney <cagney@redhat.com>
1877
95404a3e
AC
1878 * mips-tdep.c (is_mips16_addr): New function.
1879 (make_mips16_addr, unmake_mips16_addr): New functions.
1880 (pc_is_mips16, mips_fetch_instruction): Use.
1881 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
1882 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
1883 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
1884 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
1885 TARGET_MIPS.
1886 * config/mips/tm-mips.h: Update copyright.
1887 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
1888 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
1889 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
1890 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
1891 (TM_PRINT_INSN_MACH): Delete.
1892 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
1893
5e045346
AC
1894 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
1895 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
1896 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
1897 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
1898 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
1899 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
1900 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
1901 mips*-*-riscos* and mips*-*-sysv* onto mips.
1902 * config/mips/mips64.mt: New file.
1903 * config/mips/mips.mt: New file.
1904 * config/mips/littlemips.mt: Delete file.
1905 * config/mips/decstation.mt: Delete file.
1906 * config/mips/vr4300el.mt: Delete file.
1907 * config/mips/vr5000el.mt: Delete file.
1908 * config/mips/vr5000.mt: Delete file.
1909 * config/mips/vr4100.mt: Delete file.
1910 * config/mips/vr4xxxel.mt: Delete file.
1911 * config/mips/vr4300.mt: Delete file.
1912 * config/mips/vr4xxx.mt: Delete file.
1913 * config/mips/bigmips.mt: Delete file.
1914 * config/mips/bigmips64.mt: Delete file.
1915 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
1916 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
1917 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
1918 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
1919 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
1920 "tm-bigmips.h".
1921 * config/mips/tm-irix3.h: Ditto.
1922 * config/mips/tm-mipsv4.h: Ditto.
1923 * config/mips/tm-embed.h: Ditto.
1924 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
1925 "tm-bigmips64.h".
1926 * config/mips/tm-vr5000el.h: Delete file.
1927 * config/mips/tm-tx39l.h: Delete file.
1928 * config/mips/tm-vr4300el.h: Delete file.
1929 * config/mips/tm-vr4xxxel.h: Delete file.
1930 * config/mips/tm-vr4300.h: Delete file.
1931 * config/mips/tm-vr4100.h: Delete file.
1932 * config/mips/tm-vr4xxx.h: Delete file.
1933 * config/mips/tm-vr5000.h: Delete file.
1934 * config/mips/tm-embedl64.h: Delete file.
1935 * config/mips/tm-embedl.h: Delete file.
1936 * config/mips/tm-embed64.h: Delete file.
1937 * config/mips/tm-bigmips64.h: Delete file.
1938 * config/mips/tm-bigmips.h: Delete file.
1939
2473a4a9
MK
19402003-06-01 Mark Kettenis <kettenis@gnu.org>
1941
97a5b208
MK
1942 Fix gdb/1216.
1943 * shnbsd-nat.c: Include "sh-tdep.h".
1944
2473a4a9
MK
1945 From Richard Henderson <rth@redhat.com>:
1946 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
1947
e0f7ec59
AC
19482003-05-31 Andrew Cagney <cagney@redhat.com>
1949
1950 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
1951 forward declaration.
1952 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
1953 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
1954 (mips_find_saved_regs): Use set_reg_offset.
1955 (mips_frame_init_saved_regs): Delete function.
1956 (mips_pop_frame): Call mips_find_saved_regs instead of
1957 DEPRECATED_FRAME_INIT_SAVED_REGS.
1958
68dcc709
AC
19592003-05-31 Andrew Cagney <cagney@redhat.com>
1960
1961 * mips-tdep.c (mips_gdbarch_init): Do not set
1962 deprecated_max_register_raw_size, register_virtual_size, and
1963 deprecated_max_register_virtual_size.
1964
cfc14b3a
MK
19652003-05-31 Mark Kettenis <kettenis@gnu.org>
1966
6405b0a6
MK
1967 * i386-tdep.c: Include "dwarf2-frame.h".
1968 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
1969 * Makefile.in (i386-tdep.o): Update dependencies.
1970
cfc14b3a
MK
1971 * dwarf2-frame.c, dwarf2-frame.h: New files.
1972 * Makefile.in (SFILES): Add dwarf2-frame.c.
1973 (dwarf2_frame_h): Define.
1974 (COMMON_OBS): Add dwarf2-frame.o.
1975 (dwarf2-frame.o): Add dependencies.
1976
6a2751d2
AJ
19772003-05-31 Andreas Jaeger <aj@suse.de>
1978
1979 * x86-64-linux-nat.c: Fix comment.
1980
1c3545ae
MK
19812003-05-31 Mark Kettenis <kettenis@gnu.org>
1982
10f93086
MK
1983 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
1984 function signature.
1985
1c3545ae
MK
1986 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
1987 have a sigcontext_addr handler.
1988 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
1989 sigcontext_addr handler.
1990
e11c53d2
AC
19912003-05-31 Andrew Cagney <cagney@redhat.com>
1992
1993 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
1994 (print_fp_register_row): Replace do_fp_register_row.
1995 (mips_print_fp_register): Add "file" and "frame" parameters.
1996 (mips_print_register): Add "file" and "frame" parameters.
1997 (mips_print_registers_info): Replace mips_do_registers_info.
1998 (mips_gdbarch_init): Set print_registers_info instead of
1999 deprecated_do_registers_info.
2000 (mips_read_fp_register_single): Add "frame" parameter.
2001 (mips_read_fp_register_double): Add "frame" parameter.
2002
a3386186
MK
20032003-05-31 Mark Kettenis <kettenis@gnu.org>
2004
70913449
MK
2005 * i386-tdep.c (i386_register_name): Check for MMX registers first.
2006 Fixes a bug where GDB would print the wrong register names for
2007 targets without SSE.
2008
2b5e0749
MK
2009 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
2010 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
2011 registers.
2012
2013 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
2014 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
2015 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2016 TDEP->sc_sp_offset.
2017
a3386186
MK
2018 From Michal Ludvig <mludvig@suse.cz>:
2019 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
2020 and `sc_num_regs'.
2021 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
2022 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
2023 I386_ST0_REGNUM): Move here from...
2024 * i386-tdep.c: ... here.
2025 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
2026 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
2027 registers if possible.
2028 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
2029 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
2030 Remove variables.
2031 (i386bsd_sc_reg_offset): New variable.
2032 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
2033 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2034 TDEP->sc_sp_offset.
2035 (i386fbsd_sc_reg_offset): New variable.
2036 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
2037 TDEP->sc_num_regs.
2038 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
2039 variables.
2040 (i386fbsd4_sc_reg_offset): New variable.
2041 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
2042 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2043 TDEP->sc_sp_offset.
2044 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
2045 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
2046 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
2047 Remove variables.
2048 (i386nbsd_sc_reg_offset): New variable.
2049 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
2050 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2051 TDEP->sc_sp_offset.
2052 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
2053 Remove variables.
2054 (i386obsd_sc_reg_offset): New variable.
2055 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
2056 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2057 TDEP->sc_sp_offset.
2058 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
2059 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
2060 for frame pointer offset in `struct sigcontext'.
2061
25ab4790
AC
20622003-05-31 Andrew Cagney <cagney@redhat.com>
2063
2064 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
2065 architecture methods call_dummy_words, sizeof_call_dummy_words,
2066 push_return_address, store_struct_return, and fix_call_dummy. Set
2067 push_dummy_call instead of deprecated_push_arguments.
2068 (mips_store_struct_return): Delete function.
2069 (mips_fix_call_dummy): Delete function.
2070 (mips_push_return_address): Delete function.
2071 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
2072 RA_REGNUM and T9_REGNUM.
2073 (mips_n32n64_push_dummy_call): Ditto for
2074 mips_n32n64_push_arguments.
2075 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
2076 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
2077
6a65450a
AC
20782003-05-31 Andrew Cagney <cagney@redhat.com>
2079
2080 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
2081 "dummy_addr" to "bp_addr".
2082 * infcall.c (call_function_by_hand): Pass "funaddr" to
2083 gdbarch_push_dummy_call.
2084 * gdbarch.h, gdbarch.c: Re-generate.
2085 * i386-tdep.c (i386_push_dummy_call): Update.
2086 * arm-tdep.c (arm_push_dummy_call): Update.
2087 * d10v-tdep.c (d10v_push_dummy_call): Update.
2088
c4f35dd8
MK
20892003-05-31 Mark Kettenis <kettenis@gnu.org>
2090
2091 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
2092 variable declarations.
2093 (x86_64_register_number, x86_64_register_name): Remove prototypes.
2094 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
2095 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
2096 x86_64_init_frame_pc, x86_64_init_frame_pc,
2097 x86_64_function_has_prologue): Remove prototypes.
2098 (X86_64_NUM_GREGS): New define.
2099 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
2100 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
2101 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
2102 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
2103 XMM1_REGNUM): Remove defines.
2104 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
2105 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
2106 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
2107 X86_64_XMM1_REGNUM): New defines.
2108 (struct x86_64_register_info): Renamed from `struct
2109 register_info'. Remove `size' member.
2110 (x86_64_register_info_table): Remove variable.
2111 (x86_64_register_info): New variable.
2112 (X86_64_NUM_REGS): New define.
2113 (X86_64_NUM_GREGS): Remove define.
2114 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
2115 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
2116 Remove variables.
2117 (x86_54_dwarf2_reg_to_regnum): Remove function.
2118 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
2119 (x86_64_dwarf_reg_to_regnum): New function.
2120 (x86_64_register_name): Rewrite.
2121 (x86_64_register_raw_size): Remove function.
2122 (x86_64_register_byte_table): Remove variable.
2123 (x86_64_register_byte): Remove function.
2124 (x86_64_register_virtual_type): Remove function.
2125 (x86_64_register_type): New function.
2126 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
2127 x86_64_register_convert_to_raw): Remove functions.
2128 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
2129 (x86_64_use_struct_convention): Make static. Adjust for renamed
2130 defines.
2131 (x86_64_frame_init_saved_regs): Remove function.
2132 (x86_64_push_arguments): Make static. Change to accept a regcache
2133 as argument.
2134 (x86_64_store_return_value, x86_64_extract_return_value): Make
2135 static. Rewrite based on i386 counterparts.
2136 (x86_64_push_dummy_call): New function.
2137 (X86_64_NUM_SAVED_REGS): New define.
2138 (x86_64_register_number): Remove function.
2139 (x86_64_store_struct_return): Remove function.
2140 (x86_64_frameless_function_invocation,
2141 x86_64_function_has_prologue): Remove functions.
2142 (PROLOG_BUFSIZE): Remove define.
2143 (struct x86_64_frame_cache): New structure.
2144 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
2145 x86_64_frame_cache, x86_64_frame_this_id,
2146 x86_64_frame_prev_register, x86_64_frame_p,
2147 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
2148 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
2149 functions.
2150 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
2151 variables.
2152 (x86_64_skip_prologue): Rewrite in terms of
2153 x86_64_analyze_prologue.
2154 (x86_64_frame_base_address): New function.
2155 (x86_64_frame_base): New variable.
2156 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
2157 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
2158 set deprecated_fp_regnum, deprecated_register_size,
2159 deprecated_register_bytes, register_raw_size, register_byte,
2160 register_virtual_type, register_convertiable,
2161 register_convert_to_virtual, convert_to_raw,
2162 deprecated_get_saved_register, deprecated_target_read_fp,
2163 deprecated_push_arguments, deprecated_push_return_address,
2164 deprecated_pop_frame, deprecated_store_struct_return,
2165 deprecated_frame_init_saved_regs, deprecated_frame_chain,
2166 frameless_function_invocation, deprecated_frame_saved_pc,
2167 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
2168 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
2169 deprecated_init_frame_pc and virtual_frame_pointer. Call
2170 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
2171 and x86_64_frame_p. Call frame_base_set_default to register
2172 x86_64_frame_base.
2173 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
2174 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
2175 (_initialize_x86_64_tdep): Remove function.
2176 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
2177 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
2178 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
2179 define.
2180 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
2181 (x86_64_linux_sigcontext_addr): Rewrite.
2182 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
2183 x86_64_linux_frame_saved_pc): Remove functions.
2184 (x86_64_linux_pc_in_sigtramp): Renamed from
2185 x86_64_linux_in_sigtramp. Try harder to recognize a signal
2186 trampoline.
2187 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
2188 Remove_functions.
2189 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
2190 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
2191 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
2192 (x86_64_regmap): Rename to regmap.
2193 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
2194 x86_64_num_gregs.
2195 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
2196 x86_64_regmap.
2197 (x86_64_fxsave_offset): Remove function.
2198 (supply_fpregset): Simply call x86_64_supply_fxsave.
2199 (fill_fpregset): Simply call x86_64_fill_fxsave.
2200 (fetch_inferior_registers, store_inferior_registers): Avoid
2201 asignment in if-statement.
2202 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
2203 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
2204 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
2205 (fetch_core_registers): Remove function.
2206 (linux_elf_core_fns): Remove.
2207 (offsetoff): Don't define.
2208 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
2209 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
2210 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
2211 add core-regset.o.
2212 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
2213 protection against multiple includes instead of NM_X86_64_h. Add
2214 various comments. Include "config/nm-linux.h". Don't include
2215 <signal.h>.
2216 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
2217 GET_THREAD_SIGNALS): Remove defines.
2218 (x86_64_register_u_addr, kernel_u_size,
2219 lin_thread_get_thread_signals): Remove prototypes.
2220 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
2221 [HAVE_LINK_H]: Don't include "solib.h".
2222 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
2223 * config/i386/tm-x86-64linux.h: Fix comments.
2224 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
2225 x86-64-tdep.o): Update dependencies.
2226
c25083af
AC
22272003-05-30 Andrew Cagney <cagney@redhat.com>
2228
c8f55a7b
AC
2229 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
2230 Change parameter type to a "struct regcache *".
2231
c25083af
AC
2232 * gdbarch.sh: Regardless of the multi-arch level, always define
2233 the macro when not already defined.
2234 * gdbarch.h, gdbarch.c: Re-generate.
2235
fbe586ae
RH
22362003-05-30 Richard Henderson <rth@redhat.com>
2237
2238 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
2239 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
2240 (alpha_mdebug_frame_this_id): Likewise.
2241 (alpha_mdebug_frame_prev_register): Likewise.
2242 (alpha_mdebug_frame_base_address): Likewise.
2243 (alpha_mdebug_frame_locals_address): Likewise.
2244 (alpha_mdebug_frame_args_address): Likewise.
2245 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
2246 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
2247 (alpha_heuristic_frame_unwind_cache): Make static; add missing
2248 loop increment.
2249 (alpha_heuristic_frame_this_id): Make static.
2250 (alpha_heuristic_frame_prev_register): Likewise.
2251 (alpha_heuristic_frame_base_address): Likewise.
2252 * alpha-tdep.h: Update.
2253
acd5c798
MK
22542003-05-30 Mark Kettenis <kettenis@gnu.org>
2255
2256 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
2257 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
2258 defenitions.
2259 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
2260 * i386-tdep.c: Mark functions that are 64-bit safe as such.
2261 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
2262 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
2263 I386_ST0_REGNUM): New defines.
2264 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
2265 codestream_get): Remove define.
2266 (codestream_next_addr, condestream_addr, condestream_buf,
2267 codestream_off, codestream_cnt): Remove variables.
2268 (codestream_fill, codestream_seek, codestream_read): Remove
2269 functions.
2270 (i386_follow_jump): Rewrite to avoid usage of removed codestream
2271 functionality.
2272 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
2273 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
2274 i386_frame_saved_pc, i386_saved_pc_after_call,
2275 i386_frame_num_args, i386_frame_init_saved_regs,
2276 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
2277 i386_push_arguments): Remove functions.
2278 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
2279 functionality. Use i386_analyze_prologue instead of
2280 i386_get_frame_setup.
2281 (I386_NUM_SAVED_REGS): New define.
2282 (struct i386_frame_cache): New structure.
2283 (i386_alloc_frame_cache, i386_analyze_struct_return,
2284 i386_skip_probe, i386_analyze_frame_setup,
2285 i386_analyze_register_saves, i386_analyze_prologue,
2286 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
2287 i386_frame_prev_register, i386_sigtramp_frame_cache,
2288 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
2289 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
2290 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
2291 New functions.
2292 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
2293 New variables.
2294 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
2295 I386_EAX_REGNUM and I386_EDX_REGNUM.
2296 (i386_extract_return_value, i386_store_return_value): Use
2297 I386_ST0_REGNUM where appropriate.
2298 (i386_extract_struct_value_address): Rewrite to use extract_address.
2299 (i386_svr4_pc_in_sigtramp): Add comment.
2300 (i386_svr4_sigcontext_addr): Rewrite.
2301 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
2302 TDEP->sc_sp_offset.
2303 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
2304 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
2305 of new defines. Set push_dummy_call, don't set
2306 deprecated_push_arguments, deprecated_push_return_address,
2307 deprecated_pop_frame. Don't set parm_boundary. Don't set
2308 deprecated_frame_chain, deprecated_frame_saved_pc,
2309 deprecated_saved_pc_after_call. Set unwind_dummy_id,
2310 save_dummy_frame_tos, unwind_pc. Call
2311 frame_unwind_append_predicate and frame_base_set_default. Don't
2312 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
2313 Don't set frameless_function_invocation. Don't set
2314 deprecated_register_bytes, deprecated_register_size,
2315 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
2316 * i386-linux-tdep.c: Fix formatting in some comments.
2317 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
2318 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
2319 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
2320 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
2321 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
2322 redundant parentheses.
2323 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
2324 (i386_linux_sigcontext_addr): Use it. Rewrite.
2325 (find_minsym_and_objfile): Change name of second argument.
2326 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
2327 changed. Use frame_pc_unwind instead of
2328 DEPRECATED_SAVED_PC_AFTER_CALL.
2329 (i386_linux_init_abi): Don't set deprecated_register_bytes.
2330 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
2331 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
2332 unwinder.
2333 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
2334 "dummy-frame.h".
2335 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
2336 (_initialize_i386_cygwin_tdep): New prototype.
2337 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
2338 deprecated_frame_chain_valid.
2339 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
2340 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
2341 Rely on the SVR4 defaults.
2342 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
2343 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
2344
c89b70f1
AC
23452003-05-30 Andrew Cagney <cagney@redhat.com>
2346
2347 * infcall.c (call_function_by_hand): Always call
2348 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
2349
85b32d22
RH
23502003-05-30 Richard Henderson <rth@redhat.com>
2351
c89b70f1
AC
2352 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
2353 increment.
85b32d22 2354
bfe51b1e
JB
23552003-05-29 Jim Blandy <jimb@redhat.com>
2356
2357 Use gdbarch methods for solib stuff on PowerPC Linux.
2358 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
2359 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
2360 show through.
2361 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2362 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
2363 giving the same effect as the #definitions above.
2364
1abf022c
AF
23652003-05-29 Adam Fedor <fedor@gnu.org>
2366
2367 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
2368 (find_implementation_from_class): Replace it with the standard
2369 case i.e. do nothing.
2370
d2427a71
RH
23712003-05-29 Richard Henderson <rth@redhat.com>
2372
2373 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
2374 (alpha_linux_sigtramp_offset): Use it. Make static.
2375 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
2376 update for new frame model.
2377 * alpha-mdebug-tdep.c: New file.
2378 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
2379 (alpha_osf1_init_abi): Install it.
2380 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
2381 (linked_proc_desc_table): Remove.
2382 (alpha_frame_past_sigtramp_frame): Remove.
2383 (alpha_dynamic_sigtramp_offset): Remove.
2384 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
2385 (alpha_proc_desc_is_dyn_sigtramp): Remove.
2386 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
2387 (push_sigtramp_desc): Remove.
2388 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
2389 (alpha_cannot_store_register): Likewise.
2390 (alpha_sigcontext_addr): Remove.
2391 (alpha_find_saved_regs): Remove.
2392 (alpha_frame_init_saved_regs): Remove.
2393 (alpha_init_frame_pc_first): Remove.
2394 (read_next_frame_reg): Remove.
2395 (alpha_frame_saved_pc): Remove.
2396 (alpha_saved_pc_after_call): Remove.
2397 (temp_proc_desc, temp_saved_regs): Remove.
2398 (alpha_about_to_return): Remove.
2399 (cached_proc_desc): Remove.
2400 (alpha_frame_chain): Remove.
2401 (alpha_print_extra_frame_info): Remove.
2402 (alpha_init_extra_frame_info): Remove.
2403 (alpha_frame_locals_address): Remove.
2404 (alpha_frame_args_address): Remove.
2405 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
2406 (alpha_push_dummy_frame): Remove.
2407 (alpha_pop_frame): Remove.
2408 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
2409 (alpha_read_insn): New.
2410 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
2411 for different insn encodings.
2412 (alpha_in_lenient_prologue): Remove.
2413 (struct alpha_sigtramp_unwind_cache): New.
2414 (alpha_sigtramp_frame_unwind_cache): New.
2415 (alpha_sigtramp_register_address): New.
2416 (alpha_sigtramp_frame_this_id): New.
2417 (alpha_sigtramp_frame_prev_register): New.
2418 (alpha_sigtramp_frame_unwind): New.
2419 (alpha_sigtramp_frame_p): New.
2420 (struct alpha_heuristic_unwind_cache): New.
2421 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
2422 don't count nop insns that occur between functions.
2423 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
2424 heuristic_proc_desc, but without the mdebug wrapping.
2425 (alpha_heuristic_frame_this_id): New.
2426 (alpha_heuristic_frame_prev_register): New.
2427 (alpha_heuristic_frame_unwind): New.
2428 (alpha_heuristic_frame_p): New.
2429 (alpha_heuristic_frame_base_address): New.
2430 (alpha_heuristic_frame_base): New.
2431 (alpha_unwind_dummy_id): New.
2432 (alpha_unwind_pc): New.
2433 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
2434 frame related deprecated initializations; install replacements.
2435 (alpha_dump_tdep): Remove.
2436 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
2437 (alpha_read_insn, alpha_after_prologue,
2438 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
2439 alpha_heuristic_frame_prev_register,
2440 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
2441 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2442 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
2443 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
2444
93ec1121
AC
24452003-05-29 Andrew Cagney <cagney@redhat.com>
2446
2447 * gdb_assert.h (gdb_assert_fail): Provide different definitions
2448 dependant on the availability of ASSERT_FUNCTION.
2449 (ASSERT_FUNCTION): Do not define when there is no function name.
2450
98f08d3d
KB
24512003-05-29 Kevin Buettner <kevinb@redhat.com>
2452
2453 From Jimi X <jimix@watson.ibm.com>:
2454 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
2455
0897f59b
JB
24562003-05-28 Jim Blandy <jimb@redhat.com>
2457
2458 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
2459 argument to ptrace to int; the system headers should give it the
2460 right type, and pointers don't fit in ints on powerpc64-*-*.
2461
14898363
L
24622003-05-28 H.J. Lu <hongjiu.lu@intel.com>
2463
2464 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
2465 DW_TAG_catch_block.
2466
a7a48797
EZ
24672003-05-26 Elena Zannoni <ezannoni@redhat.com>
2468
2469 * stabsread.c (dbx_lookup_type): Make static.
2470 (read_type): Ditto.
2471 (add_undefined_type): Ditto.
2472 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
2473 not export.
2474
f5479e9c
EZ
24752003-05-26 Elena Zannoni <ezannoni@redhat.com>
2476
2477 * hpread.c (hpread_has_name): Make static.
2478 (hpread_psymtab_to_symtab): Ditto.
2479 (file_exists): Ditto.
2480 (hpread_call_pxdb): Ditto.
2481 (hpread_pxdb_needed): Ditto.
2482 (hpread_quick_traverse): Ditto.
2483 (hpread_get_header): Ditto.
2484 (hpread_get_lntt): Ditto.
2485 (hpread_get_slt): Ditto.
2486 (class_of): Ditto.
2487
eb2e12d7
AS
24882003-05-25 Andreas Schwab <schwab@suse.de>
2489
78bf922a
AS
2490 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
2491 stack_align and deprecated_extra_stack_alignment_needed.
2492 (m68k_stack_align): Delete.
2493
eb2e12d7
AS
2494 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
2495 (m68k_register_virtual_size): Likewise.
2496 (altos_skip_prologue): Remove obsolete function.
2497 (isi_frame_num_args): Likewise.
2498 (news_frame_num_args): Likewise.
2499 (m68k_fix_call_dummy): Make static.
2500 (m68k_push_dummy_frame): Likewise.
2501 (m68k_pop_frame): Likewise.
2502 (m68k_skip_prologue): Likewise.
2503 (m68k_frame_init_saved_regs): Likewise.
2504 (m68k_saved_pc_after_call): Likewise.
2505 (m68k_get_longjmp_target): Make multi-arch.
2506 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
2507 structure. Register m68k_get_longjmp_target if enabled.
2508 * m68k-tdep.h (struct gdbarch_tdep): Define.
2509 * config/m68k/tm-m68k.h: Don't include "regcache.h".
2510
2511 * Makefile.in (config.status): Also depend on configure.tgt
2512 and configure.host.
2513 (m68klinux-tdep.o): Update dependencies.
2514 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
2515 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
2516 (M68K_LINUX_JB_PC): Define.
2517 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
2518 and take additional parameter.
2519 (m68k_linux_sigtramp_saved_pc): Update.
2520 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
2521 m68k_linux_pc_in_sigtramp, in_plt_section,
2522 find_solib_trampoline_target.
2523 * config/m68k/tm-linux.h: Don't include any tm headers.
2524 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
2525 (JB_ELEMENT_SIZE): Likewise.
2526 (JB_PC): Likewise.
2527 (GET_LONGJMP_TARGET): Likewise.
2528 (IN_SIGTRAMP): Likewise.
2529 (SVR4_SHARED_LIBS): Define this and include "solib.h".
2530
eb2c22dc
MK
25312003-05-25 Mark Kettenis <kettenis@gnu.org>
2532
2533 * sparc-tdep.c (sparc32_do_push_arguments): New function.
2534 (sparc32_push_arguments): Re-implement by calling
2535 sparc32_do_push_arguments.
2536
44b7b84e
MK
25372003-05-25 Mark Kettenis <kettenis@gnu.org>
2538
2539 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
2540 SPARC_O1_REGNUM): New defines.
2541 (sparc32_extract_return_value): Rewrite to operate on a regcache.
2542 (sparc32_store_return_value): New function.
2543 (sparc_extract_struct_value_address): Rewrite to operate on a
2544 regcache.
2545 (sparc_gdbarch_init): Don't set
2546 deprecated_extract_struct_value_address. Set
2547 extract_struct_value_address instead. Don't set
2548 deprecated_extract_return_value and deprecated_store_return_value
2549 for 32-bit targets. Set extract_return_value and
2550 store_return_value instead.
2551 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
2552 DEPRECTAED_EXTRACT_RETURN_VALUE,
2553 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
2554 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2555 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
2556 (sparc_store_return_value): Remove prototype.
2557 (sparc32_store_return_value): New prototype.
2558 (sparc32_extract_return_value, sparc_extract_struct_value_address):
2559 Adjust prototypes.
2560
f6ad61e3
MK
25612003-05-24 Mark Kettenis <kettenis@gnu.org>
2562
2563 * sparcnbsd-tdep.c: Include "gdb_string.h".
2564
b276f1bb
AC
25652003-05-23 Andrew Cagney <cagney@redhat.com>
2566
2567 * p-valprint.c (pascal_val_print): Replace extract_address with
2568 the inline equivalent extract_unsigned_integer.
2569 * jv-valprint.c (java_value_print): Ditto.
2570 * ada-valprint.c (ada_val_print_1): Ditto.
2571 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
2572
e76c5fcc
TR
25732003-05-23 Theodore A. Roth <troth@openavr.org>
2574
2575 * blockframe.c (frameless_look_for_prologue): Remove unused
2576 after_prologue variable.
2577
2cdd89cb
MK
25782003-05-23 Mark Kettenis <kettenis@gnu.org>
2579
2580 * blockframe.c (get_pc_function_start): Rewrite to avoid
2581 asignments in if-statements.
2582
182d43bc
EZ
25832003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
2584
2585 Committed by Elena Zannoni <ezannoni@redhat.com>.
2586 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
2587 files, don't relocate absolute symbols (and do use mst_abs).
2588
e8f3fcdd
AC
25892003-05-23 Andrew Cagney <cagney@redhat.com>
2590
2591 * objc-lang.c: Include "gdb_assert.h".
2592 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
2593 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
2594 (gdb_check, gdb_check_fatal): Delete functions.
2595 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
2596 gdb_assert.
2597 (parse_selector, parse_method, find_methods, find_imps): Ditto.
2598 * Makefile.in (objc-lang.o): Update dependencies.
2599
3c23e6fb
ILT
26002003-05-22 Ian Lance Taylor <ian@airs.com>
2601
2602 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
2603 with fprintf_filtered, not fprintf_unfiltered.
2604
af1342ab
AC
26052003-05-22 Andrew Cagney <cagney@redhat.com>
2606
2607 * stack.c (frame_info): Inline extract_address, replacing it with
2608 extract_unsigned_integer.
2609 * findvar.c (unsigned_pointer_to_address): Ditto.
2610 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
2611 * dwarf2expr.c (dwarf2_read_address): Ditto.
2612 * frame.c (frame_pc_unwind): Update comment.
2613 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
2614
47e242ec
JJ
26152003-05-22 Jeff Johnston <jjohnstn@redhat.com>
2616
2617 * infptrace.c (detach): Call print_sys_errmsg rather than
2618 perror_with_name to issue warning message when errno is non-zero
2619 after calling ptrace detach.
2620
e2ac8128
JB
26212003-05-21 J. Brobecker <brobecker@gnat.com>
2622
2623 * config/pa/tm-hppa.h: Delete some unused macros. Move some
2624 macro definitions from here...
2625 * hppa-tdep.c: ...to there.
2626
92b3541e
KB
26272003-05-20 Kevin Buettner <kevinb@redhat.com>
2628
2629 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
2630 register_ptrace_addr(). Fix all callers.
2631
55809acb
AS
26322003-05-21 Andreas Schwab <schwab@suse.de>
2633
2634 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2635 dependencies.
2636 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
2637 end.
2638 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
2639 (_initialize_m68k_linux_tdep): New function.
2640 (m68k_linux_frame_saved_pc): Make static.
2641 (m68k_linux_extract_return_value): Likewise.
2642 (m68k_linux_store_return_value): Likewise.
2643 (m68k_linux_extract_struct_value_address): Likewise.
2644 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
2645 Remove.
2646 (DEPRECATED_STORE_RETURN_VALUE): Remove.
2647 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2648 (DEPRECATED_FRAME_SAVED_PC): Remove.
2649
0fbc10f7
KW
26502003-05-20 Kris Warkentin <kewarken@qnx.com>
2651
2652 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
2653 regset numbering rather than our own.
2654
58da2eb2
DC
26552003-05-19 David Carlton <carlton@bactrian.org>
2656
2657 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
2658
1fcb5155
DC
26592003-05-19 David Carlton <carlton@bactrian.org>
2660
2661 Partial fix for PR c++/827.
2662 * cp-support.h: Include symtab.h.
2663 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
2664 * cp-namespace.c: Update contributors.
2665 (cp_lookup_symbol_nonlocal): New.
2666 (lookup_namespace_scope, cp_lookup_symbol_namespace)
2667 (lookup_symbol_file): Ditto.
2668 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
2669 * block.h: Declare block_scope, block_using, block_global_block.
2670 * block.c (block_scope): New.
2671 (block_using, block_global_block): Ditto.
2672 * Makefile.in (cp_support_h): Depend on symtab_h.
2673 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
2674
5f9a71c3
DC
26752003-05-19 David Carlton <carlton@bactrian.org>
2676
2677 * language.h (struct language_defn): Add 'la_value_of_this'
2678 and 'la_lookup_symbol_nonlocal' members.
2679 * symtab.h: Declare basic_lookup_symbol_nonlocal,
2680 lookup_symbol_static, lookup_symbol_global,
2681 lookup_symbol_aux_block.
2682 * symtab.c (lookup_symbol_aux): Call language hooks to determine
2683 if we should search fields of this and how to do static/global
2684 lookup.
2685 (lookup_symbol_aux_block): Make extern.
2686 (basic_lookup_symbol_nonlocal): New.
2687 (lookup_symbol_static, lookup_symbol_global): Ditto.
2688 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
2689 'la_lookup_symbol_nonlocal' members.
2690 * c-lang.c (c_language_defn, cplus_language_defn)
2691 (asm_language_defn, minimal_language_defn): Ditto.
2692 * jv-lang.c (java_language_defn): Ditto.
2693 * language.c (unknown_language_defn, auto_language_defn)
2694 (local_language_defn): Ditto.
2695 * m2-lang.c (m2_language_defn): Ditto.
2696 * objc-lang.c (objc_language_defn): Ditto.
2697 * scm-lang.c (scm_language_defn): Ditto.
2698 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
2699 * p-lang.c (pascal_language_defn): Ditto for both.
2700 * Makefile.in (f-lang.o): Depend on value_h.
2701 (p-lang.o): Ditto.
2702
89a9d1b1
DC
27032003-05-19 David Carlton <carlton@bactrian.org>
2704
2705 * block.h: Declare block_static_block.
2706 * block.c (block_static_block): New.
2707 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
2708 lookup_symbol_aux_local, calling block_static_block instead.
2709 (lookup_symbol_aux_local): Delete 'static_block' argument.
2710
eed3f8ab
DC
27112003-05-19 David Carlton <carlton@bactrian.org>
2712
2713 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
2714
a09d8bda
ML
27152003-05-19 Michal Ludvig <mludvig@suse.cz>
2716
2717 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
2718 register numbers mapping.
2719
69636828
AF
27202003-05-18 Adam Fedor <fedor@gnu.org>
2721
2722 * symtab.c (completion_list_objc_symbol): New function.
2723 (make_symbol_completion_list): Use it to add ObjC symbols
2724 when looking though the list.
2725 (language_search_unquoted_string): New function.
2726 (make_file_symbol_completion_list): Use it.
2727
55baeb84
AS
27282003-05-18 Andreas Schwab <schwab@suse.de>
2729
d0b45d99
AS
2730 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
2731 dependencies.
2732 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
2733 as m68k_linux_extract_return_value.
2734 (DEPRECATED_STORE_RETURN_VALUE): Define as
2735 m68k_linux_store_return_value.
2736 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
2737 m68k_linux_extract_struct_value_address.
2738 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
2739 get_next_frame, get_frame_base, get_frame_pc.
2740 (m68k_linux_frame_saved_pc): Use get_frame_base.
2741 (m68k_linux_extract_return_value): New function.
2742 (m68k_linux_store_return_value): New function.
2743 (m68k_linux_extract_struct_value_address): New function.
2744 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
2745
55baeb84
AS
2746 * c-exp.y (typebase): Remove duplicate occurence of
2747 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
2748 of lookup_signed_typename.
2749
b6b08ebf
MK
27502003-05-18 Mark Kettenis <kettenis@gnu.org>
2751
2752 * dwarf2loc.c (find_location_expression): Change type of second
2753 argument to `size_t *'.
2754 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
2755 for size variable.
2756
5ad1c190
DC
27572003-05-18 David Carlton <carlton@bactrian.org>
2758
2759 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
2760 'linkage_name'. Add comment.
2761 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
2762 'linkage_name'.
2763 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
2764 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
2765 (lookup_block_symbol): Ditto.
2766
b8b527c5
AC
27672003-05-16 Andrew Cagney <cagney@redhat.com>
2768
2769 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
2770 * gdbarch.h, gdbarch.c: Re-generate.
2771 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
2772 * TODO (REGISTER_BYTES): Delete reference.
2773 * alpha-tdep.c (alpha_gdbarch_init): Update.
2774 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2775 * x86-64-tdep.c (x86_64_init_abi): Update.
2776 * vax-tdep.c (vax_gdbarch_init): Update.
2777 * v850-tdep.c (v850_gdbarch_init): Update.
2778 * sparc-tdep.c (sparc_gdbarch_init): Update.
2779 * sh-tdep.c (sh_gdbarch_init): Update.
2780 * s390-tdep.c (s390_gdbarch_init): Update.
2781 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2782 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2783 (ns32k_gdbarch_init_32382): Update.
2784 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2785 * mcore-tdep.c (mcore_gdbarch_init): Update.
2786 * m68k-tdep.c (m68k_gdbarch_init): Update.
2787 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2788 * ia64-tdep.c (ia64_gdbarch_init): Update.
2789 * i386-tdep.c (i386_gdbarch_init): Update.
2790 * i386-linux-tdep.c (i386_linux_init_abi): Update.
2791 * hppa-tdep.c (hppa_gdbarch_init): Update.
2792 * h8300-tdep.c (h8300_gdbarch_init): Update.
2793 * frv-tdep.c (frv_gdbarch_init): Update.
2794 * cris-tdep.c (cris_gdbarch_init): Update.
2795 * avr-tdep.c (avr_gdbarch_init): Update.
2796 * arm-tdep.c (arm_gdbarch_init): Update.
2797 * sparc-tdep.c (sparc_pop_frame): Update.
2798 * rs6000-tdep.c (rs6000_pop_frame): Update.
2799 * remote.c (init_remote_state): Update.
2800 (remote_prepare_to_store): Update.
2801 * remote-vx.c (vx_prepare_to_store): Update.
2802 * remote-sds.c (sds_fetch_registers): Update.
2803 (sds_prepare_to_store): Update.
2804 * remote-array.c: Update.
2805 * regcache.c (init_legacy_regcache_descr): Update.
2806 (init_regcache_descr): Update.
2807 * mips-tdep.c (mips_eabi_extract_return_value): Update.
2808 (mips_o64_extract_return_value): Update.
2809 * irix5-nat.c (fetch_core_registers): Update.
2810 * irix4-nat.c (fetch_core_registers): Update.
2811 * i386-tdep.h: Update.
2812 * hppa-tdep.c (pa_do_registers_info): Update.
2813 (pa_do_strcat_registers_info): Update.
2814 * cris-tdep.c (cris_register_bytes_ok): Update.
2815 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2816 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
2817 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
2818 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
2819 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
2820 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
2821 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
2822 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
2823 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
2824 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
2825 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
2826 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
2827 (REGISTER_BYTES_OK): Update.
2828 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
2829 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
2830
ee2842e2
ILT
28312003-05-16 Ian Lance Taylor <ian@airs.com>
2832
2833 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
2834 (vax_print_insn, print_insn_arg): Remove static functions.
2835 (vax_gdbarch_init): Call set_gdbarch_print_insn with
2836 print_insn_vax from opcodes library.
2837 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
2838
973177d3
AC
28392003-05-15 Andrew Cagney <cagney@redhat.com>
2840
aaab4dba
AC
2841 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
2842 * target.h (memory_breakpoint_from_pc): Delete declaration.
2843 * mem-break.c (memory_breakpoint_from_pc): Delete function.
2844 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
2845 * monitor.c (monitor_insert_breakpoint): Use
2846 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
2847 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
2848 * gdbarch.h, gdbarch.c: Re-generate.
2849 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
2850 (sparc_gdbarch_init): Set breakpoint_from_pc to
2851 sparc_breakpoint_from_pc.
2852 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
2853 (BREAKPOINT_FROM_PC): Define.
2854 (sparc_breakpoint_from_pc): Declare.
2855 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
2856 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
2857 (BREAKPOINT_FROM_PC): Define.
2858 (BREAKPOINT): Delete macro.
2859 * target.h: Update comment.
2860 * s390-tdep.c (s390_gdbarch_init): Update comments.
2861 * remote.c: Update comments.
2862 * remote-mips.c: Update comments.
2863 * proc-api.c (write_with_trace): Do not check for a breakpoint.
2864 * mem-break.c: Update comment.
2865 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
2866 (ia64_memory_insert_breakpoint): Update.
2867 * config/sparc/tm-sparc.h: Update comment.
2868 * config/pa/tm-hppa64.h: Update comment.
2869 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
2870 (rs6000_breakpoint_from_pc): Update.
2871 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
2872 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
2873 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
2874 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
2875 (mips_breakpoint_from_pc): Update.
2876 (mips_dump_tdep): Update.
2877
e06963ff
AC
2878 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
2879 * minsyms.c (lookup_minimal_symbol): Inline
2880 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
2881
973177d3
AC
2882 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
2883 * p-valprint.c (pascal_object_print_value_fields): Ditto.
2884 * p-lang.c (pascal_printstr): Ditto.
2885 * objc-lang.c (objc_printstr): Ditto.
2886 * m2-lang.c (m2_printstr): Ditto.
2887 * jv-valprint.c (java_print_value_fields): Ditto.
2888 * f-lang.c (f_printstr): Ditto.
2889 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
2890 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
2891 for repeat_count_threshold.
2892 * Makefile.in (cp-valprint.o): Update dependencies.
2893
5ea2bd7f
JJ
28942003-05-15 Jeff Johnston <jjohnstn@redhat.com>
2895
2896 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
2897 (examine_prologue): Support looking through leaf functions, knowing
2898 they start with mov r2,r12. Support skipping over indirect stores
2899 of the input registers. Upon hitting a non-nop branch instruction
2900 or predicated instruction, bail out by setting lim_pc to the current
2901 pc value in the loop. At the end, if the lim_pc value is still
2902 beyond our calculated value and we have trust_limit set,
2903 use the lim_pc value.
2904
cc8c88f3
AC
29052003-05-15 Andrew Cagney <cagney@redhat.com>
2906
2907 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
2908 generic_find_dummy_frame.
2909 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
2910 (deprecated_generic_find_dummy_frame): Update.
2911 (deprecated_read_register_dummy): Update.
2912 * frame.c (deprecated_generic_get_saved_register): Update.
2913
909cd28e
TR
29142003-05-15 Theodore A. Roth <troth@openavr.org>
2915
2916 * avr-tdep.c (avr_breakpoint_from_pc): New function.
2917 (avr_gdbarch_init): Set breakpoint_from_pc method.
2918
b923b08d
AC
29192003-05-15 Andrew Cagney <cagney@redhat.com>
2920
2921 * regcache.c (build_regcache): Set deprecated_register_valid
2922 directly.
2923 (deprecated_grub_regcache_for_register_valid): Delete function.
2924 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
2925 declaration.
2926
ae2f03ac
EZ
29272003-05-15 David Carlton <carlton@bactrian.org>
2928
2929 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
2930 * symtab.c (lookup_symbol_aux): Delete calls to
2931 lookup_symbol_aux_minsyms.
2932 (lookup_symbol_aux_minsyms): Comment out function and
2933 prototype. Delete lookup by mangled name.
ae2f03ac 2934
18ec9831
KB
29352003-05-14 Kevin Buettner <kevinb@redhat.com>
2936
2937 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
2938 correctly indicate an empty stack and ``stack_allocated'' to the
2939 indicate the number of elements initially allocated.
2940 (dwarf_expr_grow_stack): Simplify method for computing new
2941 stack size. Don't loop infinitely if ``stack_len'' is zero.
2942 (execute_stack_op): Move ``ctx->in_reg'' initialization
2943 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
2944 be used in conjuction with DW_OP_piece. Revise error message
2945 accordingly.
2946
de18ac1f
TR
29472003-05-14 Theodore A. Roth <troth@openavr.org>
2948
2949 * MAINTAINERS: Update my email address.
2950 * avr-tdep.c: Ditto.
2951
176620f1
EZ
29522003-05-14 Elena Zannoni <ezannoni@redhat.com>
2953
2954 * symtab.h (enum domain_enum): Rename from namespace_enum.
2955 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
2956 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
2957 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
2958 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
2959 TYPES_NAMESPACE, METHODS_NAMESPACE.
2960 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
2961 (struct symbol, struct partial_symbol): Rename field
2962 'namespace_enum namespace' to 'domain_enum domain'.
2963 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
2964 Delete old define kludge for namespace.
2965
2966 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
2967 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
2968 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
2969 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
2970 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
2971 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
2972 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
2973 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
2974 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
2975 occurrences of the above.
2976
b7f31508
ILT
29772003-05-14 Ian Lance Taylor <ian@airs.com>
2978
2979 * Makefile.in (install-only): Use $(SHELL) when running
2980 mkinstalldirs.
2981
2fdbdd39
ILT
29822003-05-13 Ian Lance Taylor <ian@airs.com>
2983
a208d82c
ILT
2984 * MAINTAINERS (write after approval): Add myself.
2985
2fdbdd39
ILT
2986 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
2987 second and third arguments.
2988 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2989 * ser-unix.c (_initialize_ser_hardwire): Likewise.
2990
fbd9dcd3
AC
29912003-05-13 Andrew Cagney <cagney@redhat.com>
2992
2993 * defs.h (store_address): Delete declaration.
2994 findvar.c (store_address): Delete function.
2995 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
2996 store_unsigned_integer.
2997 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
2998 * v850-tdep.c (v850_push_arguments): Ditto.
2999 * sparc-tdep.c (sparc_get_saved_register): Ditto.
3000 * sh-tdep.c (sh64_get_saved_register): Ditto.
3001 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
3002 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
3003 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
3004 (mips_get_saved_register): Ditto.
3005 * ia64-tdep.c (ia64_get_saved_register): Ditto.
3006 (find_func_descr, ia64_push_arguments): Ditto.
3007 * i386-tdep.c (i386_push_arguments): Ditto.
3008 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
3009 * frv-tdep.c (frv_push_arguments): Ditto.
3010 * frame.c (legacy_saved_regs_prev_register): Ditto.
3011 (deprecated_generic_get_saved_register): Ditto.
3012 * findvar.c (unsigned_address_to_pointer): Ditto.
3013 * dwarf2read.c (dwarf2_const_value): Ditto.
3014 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3015 * alpha-tdep.c (alpha_push_arguments): Ditto.
3016
6760f9e6
JB
30172003-05-12 J. Brobecker <brobecker@gnat.com>
3018
3019 * NEWS: Mention that the hppa-hpux port has been partially
3020 multiarched (32bit ABIT only, so far).
3021
30e221b4
AC
30222003-05-11 Andrew Cagney <cagney@redhat.com>
3023
3024 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
3025 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
3026 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
3027 sim/testsuite/sim/arm/misaligned2.ms, and
3028 sim/testsuite/sim/arm/misaligned3.ms.
3029 * disasm.h (struct ui_file): Add opaque struct declaration.
3030 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
3031 * frame.h (struct ui_file): Ditto.
3032
dea7f9ba
MK
30332003-05-11 Mark Kettenis <kettenis@gnu.org>
3034
3035 * value.h: Pretty print.
3036
01986c48
MK
30372003-05-10 Mark Kettenis <kettenis@gnu.org>
3038
3039 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
3040
123a958e
AC
30412003-05-08 Andrew Cagney <cagney@redhat.com>
3042
3043 * regcache.h (max_register_size): Delete declaration.
3044 * regcache.c (max_register_size): Delete function.
3045 (struct regcache_descr): Delete field "max_register_size".
3046 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
3047 registers fit in MAX_REGISTER_SIZE.
3048 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
3049 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
3050 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
3051 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
3052 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
3053 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
3054 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
3055 * dve3900-rom.c, hppa-tdep.c: Ditto.
3056
eb294659
DC
30572003-05-08 David Carlton <carlton@math.stanford.edu>
3058
3059 * valops.c (push_word): Fix typo.
3060
d9d9c31f
AC
30612003-05-08 Andrew Cagney <cagney@redhat.com>
3062
3063 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
3064 * gdbarch.h: Re-generate.
3065 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
3066 (legacy_max_register_raw_size): Delete declaration.
3067 * regcache.c (legacy_max_register_raw_size): Delete function.
3068 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
3069 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
3070 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
3071 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
3072 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
3073 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
3074 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
3075 * findvar.c, dwarf2cfi.c: Ditto.
3076
22540ece
AC
30772003-05-08 Andrew Cagney <cagney@redhat.com>
3078
3079 * mips-tdep.c (read_signed_register): New function, moved to here
3080 from "regcache.c".
3081 (read_signed_register_pid): Ditto.
3082 * regcache.c (read_signed_register_pid): Delete function, moved to
3083 "mips-tdep.c".
3084 (read_signed_register): Ditto.
3085 * regcache.h (read_signed_register): Delete declaration.
3086 (read_signed_register_pid): Delete declaration.
3087
0c92afe8
AC
30882003-05-08 Andrew Cagney <cagney@redhat.com>
3089
3090 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
3091 * gdbarch.h: Re-generate.
3092 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
3093 (legacy_max_register_virtual_size): Delete declaration.
3094 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
3095 * d10v-tdep.c (d10v_print_registers_info): Ditto.
3096 * tracepoint.c (memrange_sortmerge): Ditto.
3097 * sparc-tdep.c (sparc_print_registers): Ditto.
3098 * regcache.c (legacy_max_register_virtual_size): Delete function.
3099
6037b830
JB
31002002-05-08 J. Brobecker <brobecker@gnat.com>
3101
3102 * fork-child.c (escape_bang_in_quoted_argument): New function.
3103 (fork_inferior): Escape '!' characters in quoted arguments
3104 only when needed.
3105
5d62c8b1
JB
31062003-05-08 J. Brobecker <brobecker@gnat.com>
3107
3108 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
3109 the language of the CU is not currently supported by GDB.
3110
20a0e81d
JB
31112003-05-08 J. Brobecker <brobecker@gnat.com>
3112
3113 * defs.h (language): Add language_minimal enum value.
3114 * c-lang.c (minimal_language_defn): New language definition.
3115 (_initialize_c_language): Add the new minimal language to the list
3116 of languages known to GDB.
3117
710ee10a
KB
31182003-05-08 Kevin Buettner <kevinb@redhat.com>
3119
3120 * frame.c (get_frame_type): Don't attempt to lazily initialize
3121 frame's unwinder for legacy frames.
3122
1750fa04
AC
31232003-05-07 Andrew Cagney <cagney@redhat.com>
3124
3125 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
3126 and "regcache" parameters.
3127 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
3128
ddf9f258
JJ
31292003-05-07 Jeff Johnston <jjohnstn@redhat.com>
3130
3131 * dwarf2read.c (dwarf_decode_lines): Only use output of
3132 check_cu_functions() when calling record_line(). Do not update
3133 the current address.
3134
87767c29
AC
31352003-05-07 Andrew Cagney <cagney@redhat.com>
3136
3137 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
3138 code.
3139
5e7b2f39
JB
31402003-05-07 Jim Blandy <jimb@redhat.com>
3141
3142 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
3143 'maint info symtabs' and 'maint info psymtabs'.
3144 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
3145 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
3146 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
3147 Declarations updated.
3148 * maint.c (maintenance_list_command): Delete.
3149 (_initialize_maint_cmds): Update calls to add_cmd.
3150 * gdbcmd.h (maintenancelistlist): Delete declaration.
3151 * cli/cli-cmds.c (maintenancelistlist): Delete.
3152 (init_cmd_lists): Don't initialize it.
3153 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
3154
f6684c31
AC
31552003-05-07 Andrew Cagney <cagney@redhat.com>
3156
3157 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
3158 "regcache".
3159 (d10v_print_registers_info): Update.
3160 (d10v_dmap_register, d10v_imap_register): Delete functions.
3161 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
3162 and "imap_register".
3163 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
3164 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
3165 * arch-utils.c (generic_remote_translate_xfer_address): Add
3166 "regcache" and "gdbarch" parameters.
3167 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
3168 parameter. Change class to multi-arch.
3169 * gdbarch.h, gdbarch.c: Re-generate.
3170 * remote.c (remote_xfer_memory): Use
3171 gdbarch_remote_translate_xfer_address.
3172
e4846b08
JJ
31732003-05-07 Jeff Johnston <jjohnstn@redhat.com>
3174
3175 * infrun.c (prev_pc): Move declaration ahead of proceed().
3176 (proceed): Refresh prev_pc value before resuming.
3177 (stop_stepping): Remove code to refresh prev_pc.
3178
6b71b8ac
KW
31792003-05-06 Kris Warkentin <kewarken@qnx.com>
3180
3181 * nto-tdep.c: Removed stray comment.
3182
47979a4b
KW
31832003-05-06 Kris Warkentin <kewarken@qnx.com>
3184
3185 * i386-nto-tdep.c: Fix old K&R function definitions.
3186 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
3187 Also change add_show_from_set() call to add_setshow_cmd().
3188 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
3189
00905d52
AC
31902003-05-05 Andrew Cagney <cagney@redhat.com>
3191
3192 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
3193 (fprint_dummy_frames): New function.
3194 (maintenance_print_dummy_frames): New function.
3195 (_initialize_dummy_frame): Add command "maint print dummy-frames".
3196 * frame.c (fprint_frame_id): Make global.
3197 * frame.h (fprint_frame_id): Declare.
3198 * Makefile.in (dummy-frame.o): Update dependencies.
3199
b1e29e33
AC
32002003-05-05 Andrew Cagney <cagney@redhat.com>
3201
3202 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
3203 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
3204 SIZEOF_CALL_DUMMY_WORDS.
3205 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
3206 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
3207 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
3208 CALL_DUMMY_BREAKPOINT_OFFSET.
3209 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
3210 CALL_DUMMY_START_OFFSET.
3211 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
3212 * gdbarch.h, gdbarch.c: Re-generate.
3213 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
3214 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
3215 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
3216 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
3217 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
3218 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
3219 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3220 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
3221 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
3222 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
3223 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
3224 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
3225 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
3226 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
3227 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
3228
32292003-05-05 Kris Warkentin <kewarken@qnx.com>
3230
3231 * configure.tgt: Add i[3456]86-*-nto*.
3232 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
3233 * nto-tdep.c: New file. Neutrino target support routines.
3234 * nto-tdep.h: New file. Neutrino target header.
3235 * config/tm-qnxnto.h: New file.
3236 * config/i386/i386nto.mt: New file.
3237 * config/i386/tm-i386nto.h: New file.
b1e29e33 3238
0ce3d317
AC
32392003-05-04 Andrew Cagney <cagney@redhat.com>
3240
3241 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
3242 (load_infrun_state): Ditto.
3243 (struct thread_info): Drop "prev_func_name" field.
3244 * thread.c (load_infrun_state): Update.
3245 (save_infrun_state): Update.
3246 * infrun.c (prev_func_name): Delete variable.
3247 (init_wait_for_inferior): Do not clear prev_func_name.
3248 (stop_stepping, keep_going, context_switch): Do not swap
3249 prev_func_name.
3250 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
3251 instead of PC_IN_SIGTRAMP.
3252
46654a5b
AC
32532003-05-04 Andrew Cagney <cagney@redhat.com>
3254
3255 * sentinel-frame.c (sentinel_frame_prev_register): Replace
3256 REGISTER_BYTE with register_offset_hack.
3257 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
3258 that REGISTER_BYTE is consistent with the regcache.
3259 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
3260 * gdbarch.h, gdbarch.c: Regenerate.
3261
14b08c1b
MK
32622003-05-04 Mark Kettenis <kettenis@gnu.org>
3263
04c8243f
MK
3264 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
3265 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
3266
14b08c1b
MK
3267 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
3268
c7a11e01
JB
32692003-05-03 J. Brobecker <brobecker@gnat.com>
3270
3271 From Thierry Schneider <tpschneider1@yahoo.com>
3272 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
3273 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
3274 (mi-cmd-symbol.o): Add rule.
3275
7043d8dc
AC
32762003-05-03 Andrew Cagney <cagney@redhat.com>
3277
3278 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
3279 comments noteing that it replaces the old FIX_CALL_DUMMY code.
3280 * gdbarch.h, gdbarch.c: Re-generate.
3281 * d10v-tdep.c (d10v_push_dummy_code): New function.
3282 (d10v_gdbarch_init): Set push_dummy_code.
3283 * infcall.c (legacy_push_dummy_code): New function.
3284 (generic_push_dummy_code): New function.
3285 (push_dummy_code): New function.
3286 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
3287 instead of dummy_addr, to push_dummy_call. Move call to
3288 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
3289 switch.
3290 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
3291
92bf2b80
AC
32922003-05-03 Andrew Cagney <cagney@redhat.com>
3293
3294 * disasm.h (print_insn): Declare.
3295 * disasm.c (init_gdb_disassemble_info): New function.
3296 (gdb_disassembly): Call init_gdb_disassemble_info.
3297 (gdb_print_insn): New function.
3298 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
3299 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
3300 * mcore-tdep.c: Include "disasm.h"
3301 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
3302 * d10v-tdep.c: Include "disasm.h".
3303 (display_trace): Call gdb_print_insn, instead of print_insn.
3304 (print_insn): Delete function.
3305 * printcmd.c: Include "disasm.h".
3306 (print_insn): Delete function.
3307 (print_formatted): Call gdb_print_insn, instead of print_insn.
3308 * Makefile.in (printcmd.o): Update dependencies.
3309 (mcore-tdep.o, d10v-tdep.o): Ditto.
3310
27d94c49
AC
33112003-05-02 Andrew Cagney <cagney@redhat.com>
3312
82de1e5b
AC
3313 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
3314 PC_REGNUM, re-indent.
3315 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
3316 PC_REGNUM isn't set.
3317
27d94c49
AC
3318 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
3319 * gdbarch.h, gdbarch.c: Re-generate.
3320 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
3321 register_virtual_size, pc_regnum, or register_bytes.
3322 (D10V_PC_REGNUM): Rename _PC_REGNUM.
3323 (d10v_register_type): Use D10V_PC_REGNUM.
3324 (d10v_print_registers_info, d10v_read_pc): Ditto.
3325 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
3326 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
3327
a9c0dc7f
DC
33282003-05-02 David Carlton <carlton@bactrian.org>
3329
3330 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
3331 the name with mstrsave.
3332
e33d66ec
EZ
33332003-05-02 Elena Zannoni <ezannoni@redhat.com>
3334
3335 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
3336 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
3337 (host_charset_name, target_charset_name): New vars for use by
3338 set/show commands.
3339 (host_charset_enum, target_charset_enum): New enums for set/show
3340 commands.
3341 (set_charset_sfunc, set_host_charset_sfunc,
3342 set_target_charset_sfunc): New functions.
3343 (set_host_charset, set_target_charset): Make static.
3344 (list_charsets, set_host_charset_command,
3345 set_target_charset_command): Delete functions.
3346 (show_charset_command): Rewrite as....
3347 (show_charset): Hook this up with the set/show command mechanism.
3348 (_initialize_charset): Change names of charsets to match the
3349 set/show enums. Use host_charset_name and target_charset_name.
3350 Use set/show mechanism for charset, host-charset, target-charset
3351 commands. Do not make 'show host-charset' and 'show
3352 target-charset' be aliases of 'show charset'.
3353
3354 * charset.h (set_host_charset, set_target_charset): Don't export,
3355 they are not used outside the file.
3356
2b6fd0d8
AC
33572003-05-01 Andrew Cagney <cagney@redhat.com>
3358
3359 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
3360 (gdb_disassembly): Make "di" non static, always initialize and
3361 cleanup. Always use dis_asm_read_memory.
3362 (gdb_dis_asm_read_memory): Delete function.
3363
6ae2f580
AC
33642003-05-01 Andrew Cagney <cagney@redhat.com>
3365
3366 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
3367 (d10v_gdbarch_init): Set frame_align instead of stack_align.
3368
810ecf9f
AC
33692003-04-30 Andrew Cagney <cagney@redhat.com>
3370
3371 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
3372 "tm_print_insn_info".
3373 (TARGET_PRINT_INSN_INFO): Delete macro.
3374 (dis_asm_read_memory): Delete function declaration.
3375 (dis_asm_memory_error, dis_asm_print_address): Ditto.
3376 (tm_print_insn_info): Delete variable definition.
3377 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
3378 * gdbarch.h, gdbarch.c: Re-generate.
3379 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
3380 "deprecated_tm_print_insn_info".
3381 * mcore-tdep.c (mcore_dump_insn): Ditto.
3382 * mips-tdep.c (mips_gdbarch_init): Ditto.
3383 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
3384 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
3385 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
3386 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
3387 instead of TARGET_PRINT_INSN_INFO, add comment.
3388 * s390-tdep.c (s390_get_frame_info): Instead of
3389 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
3390 (s390_check_function_end, s390_is_sigreturn): Ditto.
3391 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
3392 (dis_asm_memory_error, dis_asm_print_address): Ditto.
3393 * disasm.c: Include "gdbcore.h".
3394 (_initialize_disasm): New function, initialize
3395 "deprecated_tm_print_insn_info".
3396 (deprecated_tm_print_insn_info): New variable.
3397 (dis_asm_read_memory): Moved from "corefile.c", made static.
3398 (dis_asm_print_address, dis_asm_memory_error): Ditto.
3399 * Makefile.in (disasm.o): Update dependencies.
3400
07020390
AC
34012003-04-30 Andrew Cagney <cagney@redhat.com>
3402
3403 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
3404
a9fa03de
AF
34052003-04-29 Adam Fedor <fedor@gnu.org>
3406
3407 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
3408 * infcall.c (find_function_addr): Make non-static.
3409 * infcall.h (find_function_addr): Declare.
3410 * Makefile.in (eval.o): Update dependencies.
3411
1bae87b9
AF
34122003-04-28 Adam Fedor <fedor@gnu.org>
3413
3414 * symtab.c (symbol_find_demangled_name): Check for and demangle
3415 ObjC symbols.
3416 (symbol_init_demangled_name): Init for language_objc as well.
3417
0ba6dca9
AC
34182003-04-28 Andrew Cagney <cagney@redhat.com>
3419
3420 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
3421 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
3422 * gdbarch.h, gdbarch.c: Re-generate.
3423 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
3424 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
3425 * inferior.h (deprecated_read_fp): Rename read_fp.
3426 (generic_target_read_fp): Delete declaration.
3427 * regcache.c (generic_target_read_fp): Delete function.
3428 (deprecated_read_fp): Replace read_fp, use
3429 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
3430 * d10v-tdep.c (d10v_read_fp): Delete function.
3431 (d10v_gdbarch_init): Do not set deprecated_read_fp.
3432
3433 * sparc-tdep.c (sparc_gdbarch_init): Do not set
3434 deprecated_target_read_fp to generic_target_read_fp.
3435 * sh-tdep.c (sh_gdbarch_init): Ditto.
3436 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3437 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3438 * frv-tdep.c (frv_gdbarch_init): Ditto.
3439
3440 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
3441 deprecated_fp_regnum.
3442 * x86-64-tdep.c (x86_64_init_abi): Ditto.
3443 * vax-tdep.c (vax_gdbarch_init): Ditto.
3444 * v850-tdep.c (v850_gdbarch_init): Ditto.
3445 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3446 * sh-tdep.c (sh_gdbarch_init): Ditto.
3447 * s390-tdep.c (s390_gdbarch_init): Ditto.
3448 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3449 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3450 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3451 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3452 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3453 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3454 * i386-tdep.c (i386_gdbarch_init): Ditto.
3455 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3456 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3457 * frv-tdep.c (frv_gdbarch_init): Ditto.
3458 * cris-tdep.c (cris_gdbarch_init): Ditto.
3459 * avr-tdep.c (avr_gdbarch_init): Ditto.
3460 * arm-tdep.c (arm_gdbarch_init): Ditto.
3461 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3462
3463 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
3464 * v850-tdep.c (v850_gdbarch_init): Ditto.
3465 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3466 * sh-tdep.c (sh_gdbarch_init): Ditto.
3467 * s390-tdep.c (s390_gdbarch_init): Ditto.
3468 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3469 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3470 * mips-tdep.c (mips_gdbarch_init): Ditto.
3471 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3472 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3473 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3474 * frv-tdep.c (frv_gdbarch_init): Ditto.
3475 * avr-tdep.c (avr_gdbarch_init): Ditto.
3476 * arm-tdep.c (arm_gdbarch_init): Ditto.
3477
3478 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
3479 DEPRECATED_FP_REGNUM.
3480 (vax_push_dummy_frame, vax_pop_frame): Ditto.
3481 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
3482 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
3483 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
3484 (sparc32_register_virtual_type): Ditto.
3485 * sh-tdep.c (sh64_frame_chain): Ditto.
3486 (sh64_get_saved_register, sh64_pop_frame): Ditto.
3487 (sh_nofp_frame_init_saved_regs): Ditto.
3488 (sh64_nofp_frame_init_saved_regs): Ditto.
3489 (sh_fp_frame_init_saved_regs): Ditto.
3490 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3491 * remote-e7000.c (fetch_regs_from_dump): Ditto.
3492 * procfs.c (procfs_fetch_registers): Ditto.
3493 (procfs_store_registers): Ditto.
3494 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
3495 (store_inferior_registers, fetch_core_registers): Ditto.
3496 (fetch_kcore_registers, clear_regs): Ditto.
3497 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
3498 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
3499 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
3500 * nlm/i386.c (do_status): Ditto.
3501 * mipsv4-nat.c (supply_gregset): Ditto.
3502 * mips-tdep.c: Ditto for comments.
3503 * mips-nat.c (fetch_inferior_registers): Ditto.
3504 (store_inferior_registers, fetch_core_registers): Ditto.
3505 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
3506 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
3507 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
3508 (i386_do_pop_frame, i386_register_type): Ditto.
3509 * hppa-tdep.c (hppa_frame_chain): Ditto.
3510 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
3511 (hppa_pop_frame, hppa_read_fp): Ditto.
3512 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
3513 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
3514 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
3515 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
3516 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
3517 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
3518 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
3519 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
3520 * blockframe.c: Ditto for comments.
3521 * arch-utils.h: Ditto for comments.
3522 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
3523 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
3524 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
3525 * alpha-tdep.h: Ditto for comments.
3526 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
3527 (alpha_cannot_store_register): Ditto.
3528 (alpha_push_dummy_frame): Ditto.
3529 * alpha-nat.c (supply_gregset): Ditto.
3530
3531 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
3532 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
3533 * config/sparc/tm-sparc.h: Update comment.
3534
3535 * hppa-tdep.c (hppa_init_extra_frame_info): Use
3536 deprecated_read_fp instead of TARGET_READ_FP.
3537 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
3538 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
3539 * sparc-tdep.c (sparc_init_extra_frame_info): Use
3540 deprecated_read_fp instead of read_fp.
3541 * s390-tdep.c (s390_push_arguments): Ditto.
3542 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3543 * frame.h: Ditto in comments.
3544 * frame.c (legacy_get_prev_frame): Ditto.
3545 * dummy-frame.c (dummy_frame_this_id): Ditto.
3546 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
3547
d7a27068
AC
35482003-04-28 Andrew Cagney <cagney@redhat.com>
3549
3550 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
3551 * gdbarch.h, gdbarch.c: Re-generate.
3552 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
3553 * vax-tdep.c (_initialize_vax_tdep): Update.
3554 * v850-tdep.c (_initialize_v850_tdep): Update.
3555 * sparc-tdep.c (_initialize_sparc_tdep): Update.
3556 * s390-tdep.c (_initialize_s390_tdep): Update.
3557 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
3558 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
3559 * mips-tdep.c (_initialize_mips_tdep): Update.
3560 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3561 * m68k-tdep.c (_initialize_m68k_tdep): Update.
3562 * ia64-tdep.c (_initialize_ia64_tdep): Update.
3563 * hppa-tdep.c (_initialize_hppa_tdep): Update.
3564 * h8300-tdep.c (_initialize_h8300_tdep): Update.
3565 * frv-tdep.c (_initialize_frv_tdep): Update.
3566 * cris-tdep.c (cris_delayed_get_disassembler): Update.
3567 (_initialize_cris_tdep): Update.
3568 * arch-utils.c (legacy_print_insn): Update.
3569 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3570
d2630e69
AF
35712003-04-26 Adam Fedor <fedor@gnu.org>
3572
3573 * linespec.c (decode_objc): New function to decode ObjC calls
3574 (decode_line_1): Check for ObjC calls (using decode_objc)
3575 * Makefile (linespec.o): Update dependencies.
3576
3086aeae
DJ
35772003-04-26 Daniel Jacobowitz <drow@mvista.com>
3578
3579 * breakpoint.h (struct breakpoint_ops): New.
3580 (struct breakpoint): Add ops member.
3581
3582 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
3583 (mention): Use new breakpoint ops member.
3584 (set_raw_breakpoint): Initialize ops field to NULL.
3585 (print_exception_catchpoint, print_one_exception_catchpoint)
3586 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
3587 (gnu_v3_exception_catchpoint_ops): New.
3588 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
3589
1fbec6c3
AF
35902003-04-25 Adam Fedor <fedor@gnu.org>
3591
3592 * Makefile.in (COMMON_OBS): Add objc-lang.o
3593
0ef21242
AC
35942003-04-25 Andrew Cagney <cagney@redhat.com>
3595
3596 * d10v-tdep.c (print_insn): Delete function.
3597 (display_trace): Use TARGET_PRINT_INSN.
3598 (_initialize_d10v_tdep): Do not set tm_print_insn.
3599 (d10v_gdbarch_init): Set print_insn.
3600
f75493ed
AC
36012003-04-25 Andrew Cagney <cagney@redhat.com>
3602
3603 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
3604 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
3605 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
3606 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
3607 (nr_dmap_regs, a0_regnum): ... new functions.
3608 (d10v_print_registers_info): Use a0_regnum, use register_size.
3609 (d10v_register_byte): Delete function.
3610 (d10v_register_raw_size): Delete function.
3611 (d10v_register_type): Use a0_regnum.
3612 (d10v_print_registers_info): Use a0_regnum.
3613 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
3614 (d10v_gdbarch_init): Do not set register_byte or
3615 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
3616 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
3617 extract_address.
3618 (trace_command): Use XCALLOC.
3619 (print_insn): Delete reference to tm_print_insn.
3620 (saved_regs_unwinder): Use store_unsigned_integer instead of
3621 store_address.
3622 * frame.h (FRAME_OBSTACK_CALLOC): Define
3623
2202b100
DC
36242003-04-25 David Carlton <carlton@bactrian.org>
3625
3626 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
3627
4e45ca2e
AF
36282003-04-24 Adam Fedor <fedor@gnu.org>
3629
3630 * objc-lang.c: Include "valprint.h"
3631 * Makefile.in (objc-lang.o): Update dependencies.
3632
93de3e7f
AF
36332003-04-24 Adam Fedor <fedor@gnu.org>
3634
3635 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
3636 architecture dependant compilation and mark as unimplemented
3637 (until they get put in the gdbarch vector).
3638
0f20eeea
DC
36392003-04-23 David Carlton <carlton@bactrian.org>
3640
3641 * cp-support.c (cp_find_first_component): Accept 'operator' in
3642 more locations.
3643
74cfe982
AC
36442003-04-23 Andrew Cagney <cagney@redhat.com>
3645
3646 * infcall.c (call_function_by_hand): Eliminate redundant
3647 indentation. Move "saved_async" and "old_cleanups" to where they
3648 are needed.
3649
52557533
AC
36502003-04-23 Andrew Cagney <cagney@redhat.com>
3651
3652 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
3653 and "buffer". Move the "name" code to where it is needed.
3654
158775de
AC
36552003-04-23 Andrew Cagney <cagney@redhat.com>
3656
3657 * infcall.c (call_function_by_hand): Move variables "start_sp",
3658 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
3659 code to ON_STACK switch branch.
3660
ebc7896c
AC
36612003-04-23 Andrew Cagney <cagney@redhat.com>
3662
3663 * infcall.c (call_function_by_hand): Make declaration of "i",
3664 "sal", "bpt" and "old_sp" more local to their use. Delete #if
3665 lint.
3666
d727590f
AC
36672003-04-23 Andrew Cagney <cagney@redhat.com>
3668
3669 * infcall.c (call_function_by_hand): Delete variable
3670 "n_method_args". Localize "param_type"'s declaration to the loop
3671 that it is used. Reinstate code assigning to said variable -
3672 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
3673 Rationalize code using "param_type".
3674
d585e13a
AC
36752003-04-22 Andrew Cagney <cagney@redhat.com>
3676
3677 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
3678 compute the breakpoint address. Only call FIX_CALL_DUMMY when
3679 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
3680 to DEPRECATED_PUSH_RETURN_ADDRESS.
3681
051caad9
KB
36822003-04-22 Kevin Buettner <kevinb@redhat.com>
3683
3684 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
3685 on the DWARF2 register number prior to fetching a register.
3686
77296879
JB
36872003-04-22 J. Brobecker <brobecker@gnat.com>
3688
3689 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
3690 Update all the tests using SOFT_FLOAT considering the fact that
3691 this macro was always set to 0.
3692 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
3693 considering the fact that this macro was always set to 0.
3694 * hppa-tdep.h (hppa_store_return_value): Likewise.
3695 (hppa_extract_return_value): Likewise.
3696
4252f1df
JB
36972003-04-22 J. Brobecker <brobecker@gnat.com>
3698
3699 * config/pa/tm-hppa.h: Remove obsolete code, was used by
3700 the hppa-pro target only.
3701
14604c6b
JB
37022003-04-21 J. Brobecker <brobecker@gnat.com>
3703
3704 Ongoing multi-arch conversion effort for HP/UX:
3705 * config/pa/tm-hppa.h: Move all macro that are no longer
3706 defined now that GDB_MULTI_ARCH is now set to 1 from here...
3707 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
3708
77eb01d1
JB
37092003-04-21 J. Brobecker <brobecker@gnat.com>
3710
3711 * config/pa/tm-hppa.h: Obsolete a section that was only used
3712 for hppa-pro.
3713
61995b3b
JB
37142003-04-21 J. Brobecker <brobecker@gnat.com>
3715
3716 Ongoing multi-arch conversion for HP/UX.
3717 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
3718 if already defined (allows hppa64 to stay non-multiarched for now).
3719 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
3720
4aa79dcc
AC
37212003-04-21 Andrew Cagney <cagney@redhat.com>
3722
3723 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
3724
0f751ff2
AC
37252003-04-21 Andrew Cagney <cagney@redhat.com>
3726
3727 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
3728 "i386_num_mmx_regs".
3729
04714b91
AC
37302003-04-21 Andrew Cagney <cagney@redhat.com>
3731
3732 * infcall.c: New file.
3733 * infcall.h: New file.
3734 * valarith.c: Include "infcall.h".
3735 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
3736 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
3737 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
3738 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
3739 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
3740 (SFILES): Add "infcall.c"
3741 (COMMON_OBS): Add "infcall.o".
3742 (infcall.o): Specify dependencies.
3743 * value.h (call_function_by_hand): Delete declaration.
3744 * inferior.h (run_stack_dummy): Delete declaration.
3745 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
3746 (run_stack_dummy): Move to "infcall.c", merged into
3747 call_function_by_hand.
3748 * valops.c (call_function_by_hand): Moved to "infcall.c".
3749 (find_function_addr, value_arg_coerce): Ditto.
3750 (unwindonsignal_p, coerce_float_to_double): Ditto.
3751 (_initialize_valops): Move "set/show coerce-float-to-double", and
3752 "set/show unwindonsignal" commands to "infcall.c".
3753 * v850-tdep.c, target.h: Update comments.
3754 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
3755 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
3756 (sh64_init_extra_frame_info): Update comments.
3757 * mn10300-tdep.c: Update comments.
3758 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
3759 * config/sparc/tm-sparc.h: Update comments.
3760 * breakpoint.h: Update comments.
3761 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
3762 * arm-tdep.c: Update comment.
3763
f9d3c2a8
MK
37642003-04-19 Mark Kettenis <kettenis@gnu.org>
3765
c40e1eab
MK
3766 * i386-tdep.c (i386_num_register_names): New variable.
3767 (i386_num_mmx_regs): Renamed from mmx_num_regs.
3768 (MM0_REGNUM): Remove redundant parentheses in define.
3769 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
3770 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
3771 i386_mxcsr_regnum_p): Remove redundant parentheses.
3772 (i386_register_name): Use i386_num_register_names.
3773
94ea66b3
MK
3774 * i386-tdep.c (i386_extract_return_value,
3775 i386_store_return_value): Correct check for availability of
3776 floating-point registers.
3777
54299a1d
MK
3778 * i386-tdep.c (i386_frame_num_args): Remove function.
3779 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
3780
c86c27af
MK
3781 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
3782 mmx_regnum_to_fp_regnum. Adjust all callers.
3783
f9d3c2a8
MK
3784 * i386-tdep.c (i386_get_longjmp_target): Use
3785 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
3786 and TARGET_CHAR_BIT. Use extract_typed_address instead of
3787 extract_address.
3788
94ba74a9
MK
37892003-04-19 Mark Kettenis <kettenis@gnu.org>
3790
3791 * core-regset.c: Update comments to reflect reality. Re-order
3792 includes.
3793 (fetch_core_registers): Use switch instead of if. Remove
3794 redundant prototype.
3795
4074e13c
JB
37962003-04-18 Jim Blandy <jimb@redhat.com>
3797
3798 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 3799 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 3800
e3ab4aba
RH
38012003-04-17 Richard Henderson <rth@redhat.com>
3802
3803 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
3804
627bf7c1
EZ
38052003-04-17 Michael Snyder <msnyder@redhat.com>
3806 Karen Bennet <bennet@redhat.com>
3807
3808 Committed by Elena Zannoni <ezannoni@redhat.com>
3809 * gdb_gcore.sh: New script to create a core dump of a process.
3810
514621a9
EZ
38112003-04-17 Elena Zannoni <ezannoni@redhat.com>
3812
3813 * values.c (value_being_returned): Don't fetch the return
fbe586ae 3814 value if the return type is void.
514621a9 3815
b4acd559
JJ
38162003-04-17 Jeff Johnston <jjohnstn@redhat.com>
3817
3818 * thread-db.c: Reindented.
3819
530b167e
JJ
38202003-04-17 Jeff Johnston <jjohnstn@redhat.com>
3821
3822 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
3823 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
3824 as types.
3825
0a48e7e8
MS
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
ab9fe00e
KB
38502003-04-16 Kevin Buettner <kevinb@redhat.com>
3851
610a3745 3852 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
3853 the size of ``long double'' to 16, instead of 8.
3854
e64a344c
MK
38552003-04-16 Mark Kettenis <kettenis@gnu.org>
3856
3857 * i386-linux-nat.c: Add some whitespace to make things more
3858 readable.
3859 (fetch_register, store_register, fetch_inferior_registers,
3860 store_inferior_registers): Get rid of assignment in if-statement.
3861 (store_register): Fix typo in error message.
3862
25d41031
AC
38632003-04-16 Andrew Cagney <cagney@redhat.com>
3864
3865 * utils.c (xmmalloc): Always allocate something, matches
3866 libiberty/xmalloc's semantics.
3867 (xmrealloc, xmcalloc): Ditto.
3868
c50901fd
AC
38692003-04-16 Andrew Cagney <cagney@redhat.com>
3870
3871 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
3872 update comments.
3873 (get_frame_type): Initialize unwind and type when needed.
3874 (get_frame_id, frame_register_unwind): Ditto.
3875
f81824a9
AC
38762003-04-16 Andrew Cagney <cagney@redhat.com>
3877
3878 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
3879 obsolete.
3880 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
3881 * sparcl-stub.c: Obsolete file.
3882 * config/sparc/tm-sparclet.h: Obsolete file.
3883 * sparclet-stub.c: Obsolete file.
3884 * sparclet-rom.c: Obsolete file.
3885 * sparcl-tdep.c: Obsolete file.
3886 * config/sparc/tm-sparclite.h: Obsolete file.
3887 * config/sparc/sparclite.mt: Obsolete file.
3888 * config/sparc/sparclet.mt: Obsolete file.
3889 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
3890 sparc86x-*-* obsolete.
3891
9219021c
DC
38922003-04-15 David Carlton <carlton@math.stanford.edu>
3893
3894 * Makefile.in (SFILES): Add cp-namespace.c.
3895 (COMMON_OBS): Add cp-namespace.o.
3896 (block.o): Depend on gdb_obstack_h and cp_support_h.
3897 (buildsym.o): Depend on cp_support_h.
3898 (cp-namespace.o): New.
3899 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
3900 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
3901 (dwarf2read.o): Depend on cp_support_h.
3902 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
3903 * dwarf2read.c (process_die): Set processing_has_namespace_info,
3904 processing_current_namespace.
3905 (read_namespace): Update processing_current_namespace; check for
3906 anonymous namespaces.
3907 (dwarf2_name): New function.
3908 (dwarf2_extension): Ditto.
3909 * cp-support.h: Update copyright, contributors.
3910 Add inclusion guards.
3911 Add opaque declaration for structs obstack, block, symbol.
3912 (struct using_direct): New struct.
3913 Add declarations for cp_find_first_component,
3914 cp_entire_prefix_len, processing_has_namespace_info,
3915 processing_current_namespace, cp_is_anonymous,
3916 cp_add_using_directive, cp_initialize_namespace,
3917 cp_finalize_namespace, cp_set_block_scope,
3918 cp_scan_for_anonymous_namespaces.
3919 * cp-namespace.c: New file.
3920 * cp-support.c: Update copyright.
3921 Include ctype.h, gdb_assert.h, gdbcmd.h.
3922 New variable maint_cplus_cmd_list.
3923 (cp_find_first_component): New function.
3924 (cp_entire_prefix_len, maint_cplus_command)
3925 (first_component_command, _initialize_cp_support): Ditto.
3926 * buildsym.c: Include cp-support.h.
3927 New variable using_list.
3928 (add_symbol_to_list): Check for anonymous namespaces.
3929 (finish_block): Set block's scope.
3930 (start_symtab): Initialize C++ namespace support.
3931 (end_symtab): Finalize C++ namespace support.
3932 * block.h: Add opaque declarations for structs
3933 block_namespace_info, using_direct, and obstack.
3934 Add declarations for block_set_scope and block_set_using.
3935 (struct block): Add 'language_specific' member.
3936 (BLOCK_NAMESPACE): New macro.
3937 * block.c: Include gdb_obstack.h and cp-support.h.
3938 (struct block_namespace_info): New struct.
3939 (block_set_scope): New function.
3940 (block_set_using, block_initialize_namespace): Ditto.
3941
d5a921c9
KB
39422003-04-14 Kevin Buettner <kevinb@redhat.com>
3943
3944 * solib-svr4.c (svr4_have_link_map_offsets): New function.
3945 (locate_base): Return early if there aren't any link map offsets.
3946 (svr4_solib_create_inferior_hook): Warn if shared library support
3947 is unavailable.
3948
d2a52b27
DC
39492003-04-14 David Carlton <carlton@math.stanford.edu>
3950
3951 * symtab.c (symbol_set_names): Add prefix when storing Java names
3952 in hash table. Fix for PR java/1039.
3953
980cae7a
DC
39542003-04-14 David Carlton <carlton@math.stanford.edu>
3955
3956 * symtab.c (symbol_set_names): Rename 'name' arg to
3957 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
3958 * symtab.h: Change 'name' argument in declaration of
3959 symbol_set_names to 'linkage_name'.
3960 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
3961
e227b13c
AC
39622003-04-14 Andrew Cagney <cagney@redhat.com>
3963
3964 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
3965 return the fully sign-extended register value.
3966 (get_frame_pointer): Ditto.
3967 (mips_pop_frame): Initialize "proc_desc" after checking for a
3968 dummy frame.
3969
36712a20
AC
39702003-04-14 Andrew Cagney <cagney@redhat.com>
3971
3972 * mips-tdep.c (mips_push_dummy_frame): Delete function.
3973 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
3974 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
3975 (mips_push_register): Delete function.
3976 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
3977 PUSH_FP_REGNUM.
3978
44ea7b70
JB
39792003-04-14 Jim Blandy <jimb@redhat.com>
3980
3981 * symmisc.c: #include "gdb_regex.h".
3982 (maintenance_list_symtabs, maintenance_list_psymtabs): New
3983 functions.
3984 * maint.c (maintenance_list_command): New function.
3985 (_initialize_maint_cmds): Register the above as commands.
3986 * symtab.h (maintenance_list_symtabs,
3987 maintenance_list_psymtabs): New declarations.
3988 * cli/cli-cmds.c (maintenancelistlist): New variable.
3989 (init_cmd_lists): Initialize it.
3990 * cli/cli-cmds.h (maintenancelistlist): New declaration.
3991 * gdbcmd.h (maintenancelistlist): New declaration.
3992 * Makefile.in (symmisc.o): Update dependencies.
3993
2d0c7962
EZ
39942003-04-14 Elena Zannoni <ezannoni@redhat.com>
3995
3996 * s390-nat.c: Include asm/types.h for addr_t.
3997
1947a811
CV
39982003-04-14 Corinna Vinschen <vinschen@redhat.com>
3999
4000 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
4001 actually incoming type.
4002
adb616d7
AC
40032003-04-13 Andrew Cagney <cagney@redhat.com>
4004
4005 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
4006 get_next_frame and get_frame_saved_regs.
4007
9b5e151c
AC
40082003-04-13 Andrew Cagney <cagney@redhat.com>
4009
4010 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
4011 of gdbarch_num_regs.
4012
ef6e7e13
AC
40132003-04-13 Andrew Cagney <cagney@redhat.com>
4014
4015 * frame.h: Mention what replaced what in "struct frame_info".
4016 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
4017 deprecated_update_frame_base_hack and
4018 deprecated_update_frame_pc_hack.
4019 * hppa-tdep.c: Ditto.
4020
61fbb938
DJ
40212003-04-13 Daniel Jacobowitz <drow@mvista.com>
4022
4023 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
4024 to read_reg and update its comment. Remove regnum member.
4025 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
4026 Don't call read_reg when setting in_reg. Call read_reg to get
4027 the frame base if it's in a register. Return the register number
4028 on the stack instead of in the context. Remove extra arguments
4029 to read_reg.
4030 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
4031 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
4032 the register number on the expression stack.
4033 (needs_frame_read_reg): Remove extra arguments.
4034
0d53c4c4
DJ
40352003-04-13 Daniel Jacobowitz <drow@mvista.com>
4036
4037 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
4038 made non-static.
4039 (execute_stack_op): All callers updated.
4040 * dwarf2expr.h: Add prototype for dwarf2_read_address.
4041 * dwarf2loc.c (find_location_expression): New function.
4042 (dwarf_expr_frame_base): Call it.
4043 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
4044 (dwarf2_tracepoint_var_ref): New function, broken out from
4045 locexpr_tracepoint_var_ref.
4046 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
4047 Make static.
4048 (loclist_read_variable, loclist_read_needs_frame): New functions.
4049 (loclist_describe_location, loclist_tracepoint_var_ref): New
4050 functions.
4051 (dwarf2_loclist_funcs): New struct location_funcs.
4052 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
4053 (struct dwarf2_locexpr_baton): Add comments.
4054 (dwarf2_loclist_funcs): New extern.
4055 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
4056 base_address and base_known.
4057 (dwarf_loc_buffer): New variable.
4058 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
4059 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
4060 (dwarf2_has_info): Initialize dwarf_loc_offset.
4061 (dwarf2_build_psymtabs): Read in .debug_loc.
4062 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
4063 DWARF_LOC_SIZE.
4064 (psymtab_to_symtab_1): Likewise. Move base address calculation
4065 here, from...
4066 (dwarf2_get_pc_bounds): ... here. Use the base address from
4067 cu_header.
4068 (dwarf2_symbol_mark_computed): Handle location lists.
4069
6aca59a3
DJ
40702003-04-13 Daniel Jacobowitz <drow@mvista.com>
4071
4072 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
4073 if the linkage name demangled successfully.
4074
aca1fcd0
MK
40752003-04-13 Mark Kettenis <kettenis@gnu.org>
4076
97095916
MK
4077 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
4078 disassmbly_flavour): Removed.
4079
aca1fcd0
MK
4080 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
4081
562a961f
MK
40822003-04-13 Mark Kettenis <kettenis@gnu.org>
4083
4084 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
4085
bd013d54
AC
40862003-04-12 Andrew Cagney <cagney@redhat.com>
4087
4088 * frame.h (struct frame_info): Move definition from here ...
4089 * frame.c (struct frame_info): ... to here.
4090
167ef8b1
AC
40912003-04-12 Andrew Cagney <cagney@redhat.com>
4092
4093 * gdbthread.h (save_infrun_state): Delete parameter
4094 "prev_func_start".
4095 (struct thread_info): Delete field "prev_func_start".
4096 (load_infrun_state): Ditto.
4097 * thread.c (load_infrun_state, save_infrun_state): Update.
4098 * infrun.c (prev_func_start): Delete variable.
4099 (context_switch, init_wait_for_inferior): Update.
4100 (stop_stepping, keep_going): Update.
4101
da3331ec
AC
41022003-04-12 Andrew Cagney <cagney@redhat.com>
4103
4104 * gdbarch.sh: Add missing opaque declarations.
4105 * gdbarch.h: Regnerate.
4106 * symtab.h: Add missing opaque declarations.
4107 * value.h, target.h, symfile.h, stabsread.h: Ditto.
4108 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
4109 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
4110 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
4111 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
4112 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
4113 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
4114 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
4115 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
4116 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
4117 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
4118 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
4119 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
4120
18adea3f
AC
41212003-04-11 Andrew Cagney <cagney@redhat.com>
4122
4123 * frame.c (get_frame_id): Return this frame's "id".
4124 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
4125 function start.
4126 (legacy_saved_regs_this_id): Replace function body with
4127 internal-error.
4128 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
4129 FRAME_OBSTACK_ZALLOC.
4130 (create_new_frame): Mark the frame ID as valid.
4131
2252e863
AO
41322003-04-11 Alexandre Oliva <aoliva@redhat.com>
4133
4134 * Makefile.in (libbfd_h): Added missing setting.
4135 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
4136 according to the selected ABI.
4137
a8245ab8
JJ
41382003-04-11 Jeff Johnston <jjohnstn@redhat.com>
4139
4140 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
4141
6913c89a
AC
41422003-04-11 Andrew Cagney <cagney@redhat.com>
4143
4144 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
4145 SAVED_PC_AFTER_CALL.
4146 * gdbarch.h, gdbarch.c: Regenerate.
4147 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4148 * x86-64-tdep.c (x86_64_init_abi): Update.
4149 * vax-tdep.c (vax_gdbarch_init): Update.
4150 * v850-tdep.c (v850_gdbarch_init): Update.
4151 * sparc-tdep.c (sparc_gdbarch_init): Update.
4152 * sh-tdep.c (sh_gdbarch_init): Update.
4153 * s390-tdep.c (s390_gdbarch_init): Update.
4154 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4155 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4156 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4157 * mips-tdep.c (mips_gdbarch_init): Update.
4158 * mcore-tdep.c (mcore_gdbarch_init): Update.
4159 * m68k-tdep.c (m68k_gdbarch_init): Update.
4160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4161 * ia64-tdep.c (ia64_gdbarch_init): Update.
4162 (ia64_saved_pc_after_call): Update declaration.
4163 * i386ly-tdep.c (i386lynx_init_abi): Update.
4164 * i386-tdep.c (i386_gdbarch_init): Update.
4165 * hppa-tdep.c (hppa_gdbarch_init): Update.
4166 * h8300-tdep.c (h8300_gdbarch_init): Update.
4167 * frv-tdep.c (frv_gdbarch_init): Update.
4168 * cris-tdep.c (cris_gdbarch_init): Update.
4169 * avr-tdep.c (avr_gdbarch_init): Update.
4170 * arm-tdep.c (arm_gdbarch_init): Update.
4171 * alpha-tdep.c (alpha_gdbarch_init): Update.
4172 * ns32knbsd-nat.c (frame_num_args): Update.
4173 * ns32k-tdep.c (umax_frame_num_args): Update.
4174 * mips-tdep.c (mips_init_frame_pc_first): Update.
4175 * infrun.c (step_over_function): Update.
4176 * i386-linux-tdep.c (skip_hurd_resolver): Update.
4177 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
4178 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
4179 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4180 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4181 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
4182 * arm-linux-tdep.c (skip_hurd_resolver): Update.
4183 * arch-utils.c (init_frame_pc_default): Update.
4184 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4185 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
4186 declaration.
4187
38edeab8
AC
41882003-04-11 Andrew Cagney <cagney@redhat.com>
4189
4190 * i387-tdep.c: Update copyright.
4191 (i387_to_double): Delete function.
4192 (double_to_i387): Delete function.
4193
81f8a206
AC
41942003-04-10 Andrew Cagney <cagney@redhat.com>
4195
4196 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
4197 frame's function's address. Simplify.
4198 (d10v_frame_unwind_cache): Check that the frame's function is
4199 non-zero.
4200
6e691f7a
JB
42012003-04-10 Jim Blandy <jimb@redhat.com>
4202
4203 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
4204 call to set_gdbarch_deprecated_push_arguments.
4205
7f78e237
AC
42062003-04-10 Andrew Cagney <cagney@redhat.com>
4207
4208 * frame.c (fprint_frame_id): New function.
4209 (fprint_frame_type, fprint_frame): New function.
4210 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
4211 (create_sentinel_frame, get_frame_id): Ditto.
4212 (frame_id_p, frame_id_eq): Ditto.
4213 (frame_id_inner, create_new_frame): Ditto.
4214 (legacy_get_prev_frame, get_prev_frame): Ditto.
4215 (deprecated_update_frame_pc_hack): Ditto.
4216 (frame_register_unwind): Ditto.
4217 (deprecated_update_frame_base_hack): Ditto.
4218
f870b49b
CV
42192003-04-10 Corinna Vinschen <vinschen@redhat.com>
4220
4221 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
4222 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
4223 frame_chain function.
4224 * Makefile.in: Add dependencies due to above change.
4225
7c86889b
CV
42262003-04-10 Corinna Vinschen <vinschen@redhat.com>
4227
4228 * blockframe.c (legacy_frame_chain_valid): Move call to
4229 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
4230 inside_entry_file.
4231
d0a55772
AC
42322003-04-09 Andrew Cagney <cagney@redhat.com>
4233
4234 * frame.h (struct frame_id): Replace "pc" and "base" with
4235 "stack_addr" and "code_addr". Update comments.
4236 (frame_id_build): Update parameter names and comment.
4237 (struct frame_info): Replace "id_p" and "id" with "this_id".
4238 * dummy-frame.c (dummy_frame_this_id): Update.
4239 * breakpoint.c (print_one_breakpoint): Update.
4240 * frame.c (get_frame_id): Update.
4241 (get_frame_base, frame_id_build): Update.
4242 (create_sentinel_frame, legacy_get_prev_frame): Update.
4243 (deprecated_update_frame_base_hack): Update.
4244 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
4245 (frame_id_inner): Ditto.
4246
ac16bf07
AC
42472003-04-09 Andrew Cagney <cagney@redhat.com>
4248
4249 * defs.h (gdb_print_host_address): Make "addr" parameter a
4250 pointer constant.
4251 * utils.c (gdb_print_host_address): Update.
4252
366cfc9e
KB
42532003-04-09 Kevin Buettner <kevinb@redhat.com>
4254
4255 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
4256 register number for R0 is 0.
4257
cd983b5c
JB
42582003-04-09 J. Brobecker <brobecker@gnat.com>
4259
4260 * frame.h (struct gdbarch): Add opaque structure definition
4261 to avoid a compilation warning on LynxOS 4.0.
4262
d1340264
AC
42632003-04-09 Andrew Cagney <cagney@redhat.com>
4264
4265 * frame.h (struct frame_info): Delete field "pc". Replace
4266 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
4267 structure.
4268 * frame.c (frame_pc_unwind): Update.
4269 (create_sentinel_frame): Do not set "pc".
4270 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
4271 (get_frame_pc): Call frame_pc_unwind.
4272 (deprecated_update_frame_pc_hack): Update.
4273 (create_new_frame): Use "pc" not "->pc".
4274
90a6fffb
AC
42752003-04-09 Andrew Cagney <cagney@redhat.com>
4276
4277 * frame.c (get_frame_id): Eliminate code updating "frame".
4278 (legacy_get_prev_frame): Ditto.
4279 (get_frame_base): Return id.base directly.
4280 (deprecated_update_frame_base_hack): Update "id.base".
4281 * frame.h (struct frame_info): Delete field "frame".
4282
2fbce691
AC
42832003-04-09 Andrew Cagney <cagney@redhat.com>
4284
4285 * NEWS: Mention that the "Sequent family" is obsolete.
4286 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
4287 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
4288 * configure.host: Obsolete i[3456]86-sequent-bsd*,
4289 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
4290 * config/i386/tm-ptx4.h: Obsolete file.
4291 * config/i386/tm-ptx.h: Obsolete file.
4292 * symm-tdep.c: Obsolete file.
4293 * config/i386/symmetry.mt: Obsolete file.
4294 * config/i386/tm-symmetry.h: Obsolete file.
4295 * symm-nat.c: Obsolete file.
4296 * config/i386/nm-symmetry.h: Obsolete file.
4297 * config/i386/xm-symmetry.h: Obsolete file.
4298 * config/i386/symmetry.mh: Obsolete file.
4299 * config/i386/nm-ptx4.h: Obsolete file.
4300 * config/i386/ptx4.mh: Obsolete file.
4301 * config/i386/ptx.mt: Obsolete file.
4302 * config/i386/ptx.mh: Obsolete file.
4303 * config/i386/xm-ptx4.h: Obsolete file.
4304 * config/i386/xm-ptx.h: Obsolete file.
4305
78c43945
AC
43062003-04-09 Andrew Cagney <cagney@redhat.com>
4307
4308 Obsolete mips*-*-mach3*.
4309 * NEWS: Mention that mips*-*-mach3* is obsolete.
4310 * m3-nat.c: Obsolete file.
4311 * config/nm-m3.h: Obsolete file.
4312 * config/mips/tm-mipsm3.h: Obsolete file.
4313 * config/mips/mipsm3.mt: Obsolete file.
4314 * config/mips/mipsm3.mh: Obsolete file.
4315 * config/mips/xm-mipsm3.h: Obsolete file.
4316 * mipsm3-nat.c: Obsolete file.
4317 * configure.host: Obsolete mips-dec-mach3*.
4318 * configure.tgt: Obsolete mips*-*-mach3*.
4319
f1908289
AC
43202003-04-09 Andrew Cagney <cagney@redhat.com>
4321
4322 * doublest.h: Update copyright.
4323 (deprecated_store_floating, deprecated_extract_floating): Rename
4324 store_floating and extract_floating. Update comments.
4325 * doublest.c: Update copyright.
4326 (extract_floating_by_length): Replace extract_floating.
4327 (store_floating_by_length): Replace store_floating.
4328 (deprecated_extract_floating): New function.
4329 (deprecated_store_floating): New function.
4330 (extract_typed_floating): Call extract_floating_by_length.
4331 (store_typed_floating): Call store_floating_by_length.
4332 * x86-64-tdep.c (x86_64_store_return_value): Update.
4333 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
4334 (sh64_extract_return_value): Update.
4335 (sh_sh4_register_convert_to_virtual): Update.
4336 (sh_sh64_register_convert_to_virtual): Update.
4337 (sh_sh4_register_convert_to_raw): Update.
4338 (sh_sh64_register_convert_to_raw): Update.
4339 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
4340 (rs6000_register_convert_to_raw): Update.
4341 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
4342 (ia64_register_convert_to_raw): Update.
4343 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
4344 (REGISTER_CONVERT_TO_VIRTUAL): Update.
4345 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
4346 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
4347 (alpha_register_convert_to_raw): Update.
4348
4443bd83
AC
43492003-04-08 Andrew Cagney <cagney@redhat.com>
4350
4351 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
4352 * gdbarch.h, gdbarch.c: Re-generate.
4353 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
4354 (d10v_gdbarch_init): Do not set saved_pc_after_call.
4355 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
4356 conditionally, use frame_pc_unwind as an alternative. Add
4357 comments.
4358 * arch-utils.c (init_frame_pc_default): Only call
4359 SAVED_PC_AFTER_CALL when available.
4360
c0236d92
EZ
43612003-04-08 Elena Zannoni <ezannoni@redhat.com>
4362
fbe586ae 4363 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
4364 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
4365 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
4366 (start_remote): Ditto.
4367 (handle_inferior_event): Ditto.
4368 (save_inferior_status): Ditto.
4369 (restore_inferior_status): Ditto.
4370 * infcmd.c (attach_command): Ditto.
4371 * fork-child.c (startup_inferior): Ditto.
fbe586ae 4372 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
4373 * alpha-tdep.c (heuristic_proc_start): Ditto.
4374 * mips-tdep.c (heuristic_proc_start): Ditto.
4375 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
4376 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
4377 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
4378 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
4379 * remote-vx.c (vx_create_inferior): Ditto.
4380
43812003-04-08 Elena Zannoni <ezannoni@redhat.com>
4382
4383 * infrun.c (stop_soon_quietly): Make it an enum, to better
4384 override the default behavior of handle_inferior_event.
4385 (clear_proceed_status): Update uses of stop_soon_quietly to
4386 reflect that it is now an enum.
4387 (start_remote): Ditto.
4388 (handle_inferior_event): Change logic a bit if stop_soon_quietly
4389 is set to handle the new GNU/Linux kernel behavior for
4390 attach/sigstop. Update uses of stop_soon_quietly.
4391 * inferior.h (enum stop_kind): New enum.
4392 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
4393 Reset normal handle_inferior_event behavior, afterwards.
4394 * fork-child.c (startup_inferior): Update.
4395 * alpha-tdep.c (heuristic_proc_start): Update.
4396 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
4397 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
4398 * solib-osf.c (osf_solib_create_inferior_hook): Update.
4399 * solib-irix.c (irix_solib_create_inferior_hook): Update.
4400 * remote-vx.c (vx_create_inferior): Update.
4401 * mips-tdep.c (heuristic_proc_start): Update.
4402
1211bce3
EZ
44032003-04-07 Elena Zannoni <ezannoni@redhat.com>
4404
4405 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 4406 be freed more than once, causing wild memory corruptions.
1211bce3 4407 (gdb_disassembly): Look for the substring "-thread",
fbe586ae
RH
4408 instead of "-threads" in the target name, to make sure to find
4409 the 'multi-thread' target. Also, make sure we do the right thing
4410 with the "core" target.
1211bce3 4411
f0ef6b29
KB
44122003-04-07 Kevin Buettner <kevinb@redhat.com>
4413
4414 * mips-tdep.c (mips_print_fp_register): New function, created from
4415 do_fp_register_row(). Registers are now (also) printed as hex.
4416 Only one register is printed per row.
4417 (mips_print_register, do_fp_register_row): Print floating point
4418 registers with mips_print_fp_register().
4419
8cf71652
AC
44202003-04-06 Andrew Cagney <cagney@redhat.com>
4421
5e488a7b
AC
4422 * valprint.h (inspect_it): Add extern declaration.
4423 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
4424 (selectors_info, classes_info): Ditto.
4425 (find_objc_msgcall): Fix indentation.
4426 (objc_printstr): Delete extern declarations.
4427
8cf71652
AC
4428 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
4429
e6ba3bc9
AC
44302003-04-06 Andrew Cagney <cagney@redhat.com>
4431
4432 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
4433 Update comment.
4434 * frame.c (legacy_saved_regs_this_id): Update.
4435 (legacy_get_prev_frame): Update.
4436 * xstormy16-tdep.c: Update comment.
4437 * sparc-tdep.c (sparc_frame_chain): Update comment.
4438 * blockframe.c (legacy_frame_chain_valid): Update.
4439
55e1d7e7
AC
44402003-04-06 Andrew Cagney <cagney@redhat.com>
4441
996179ee
AC
4442 * valprint.c (val_print_type_code_int): Delete #ifdef
4443 PRINT_TYPELESS_INTEGER code.
4444
55e1d7e7
AC
4445 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
4446 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
4447 multi-arch definition.
4448 * gdbarch.h: Re-generate.
4449
43bd9a9e
AC
44502003-04-05 Andrew Cagney <cagney@redhat.com>
4451
4452 Eliminate FRAME_FIND_SAVED_REGS.
4453 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
4454 Change FSR parameter to a pointer.
4455 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
4456 Assume FSR parameter is a pointer.
4457 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
4458 Make fsr a pointer.
4459 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
4460 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
4461 saved_regs a pointer.
4462 (hppa_frame_saved_pc): Ditto.
4463 (find_dummy_frame_regs): Make frame_saved_regs a pointer
4464 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
4465 pointer.
4466 (restore_pc_queue): Make fsr a pointer.
4467 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
4468 (hppa_frame_chain): Make saved_regs a pointer, call
4469 hppa_frame_init_saved_regs.
4470 * sparc-tdep.c: Include "gdb_assert.h".
4471 (sparc_frame_find_saved_regs): Replace internal_error with
4472 gdb_assert.
4473 * remote-vxsparc.c (vx_read_register): Delete reference to
4474 FRAME_FIND_SAVED_REGS.
4475 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
4476 * gdbarch.h: Regenerate.
4477 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
4478 (deprecated_get_frame_saved_regs): Delete declaration.
4479 (struct frame_saved_regs): Delete definition.
4480 * frame.c (deprecated_get_frame_saved_regs): Delete function.
4481 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
4482 (hppa_frame_find_saved_regs): Delete declaration.
4483 (FRAME_FIND_SAVED_REGS): Delete macro.
4484 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
4485 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
4486 FRAME_FIND_SAVED_REGS in comment.
4487
be41e9f4
AC
44882003-04-05 Andrew Cagney <cagney@redhat.com>
4489
4490 * frame.c (frame_func_unwind, get_frame_func): New functions.
4491 * frame.h (get_frame_func, frame_func_unwind): Declare.
4492 (struct frame_info): Add field "prev_func" for caching the
4493 previous frame's function address.
4494 * arm-tdep.c (arm_frameless_function_invocation): Combine
4495 get_pc_function_start and get_frame_pc into get_frame_func.
4496 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
4497 (sh64_nofp_frame_init_saved_regs): Ditto.
4498 * s390-tdep.c (s390_function_start): Ditto.
4499 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
4500 (rs6000_frameless_function_invocation): Ditto.
4501 (rs6000_frame_saved_pc): Ditto.
4502 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
4503 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
4504 * i386-tdep.c (i386_frameless_signal_p): Ditto.
4505 (i386_frame_init_saved_regs): Ditto.
4506 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
4507 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
4508 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
4509 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4510 * blockframe.c (frameless_look_for_prologue): Ditto.
4511
a01dd7cc
AC
45122003-04-05 Andrew Cagney <cagney@redhat.com>
4513
4514 * frame.c (legacy_get_prev_frame): Link prev to next at the
4515 function start. Update comments.
4516
5e5592e6
AC
45172003-04-05 Andrew Cagney <cagney@redhat.com>
4518
4519 * frame.c (get_frame_id): Update comment.
4520 (legacy_get_prev_frame): Update comment.
4521 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
4522 * gdbarch.h: Regenerate.
4523 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
4524 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
4525
6fba5002
AC
45262003-04-05 Andrew Cagney <cagney@redhat.com>
4527
4528 * stack.c (print_frame_info): Use get_frame_pc.
4529
7df05f2b
AC
45302003-04-04 Andrew Cagney <cagney@redhat.com>
4531
4532 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
4533 the frame's type from the unwinder.
4534 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
4535 (create_new_frame, legacy_get_prev_frame): When the unwinder's
4536 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
4537 (get_frame_base_address): Use get_frame_type.
4538 (get_frame_locals_address, get_frame_args_address): Ditto.
4539 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
4540 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
4541 (struct frame_info): Add comment explaining why the frame contains
4542 a "type" field.
4543 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
4544 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
4545 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
4546 NORMAL_FRAME.
4547 * frame-unwind.h: Include "frame.h".
4548 (struct frame_unwind): Add "type" field.
4549 * Makefile.in (frame_unwind_h): Add $(frame_h).
4550
11889732
AC
45512003-04-04 Andrew Cagney <cagney@redhat.com>
4552
4553 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
4554 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
4555 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
4556 get_frame_base.
4557 (d10v_unwind_dummy_id): Use frame_id_build.
4558 * frame.c (find_frame_sal): Use get_frame_pc.
4559 (create_new_frame): Use deprecated_update_frame_pc_hack and
4560 deprecated_update_frame_base_hack.
4561 (create_sentinel_frame): Add comment about ->pc going away.
4562 (get_prev_frame): Add comment about ->pc going away.
4563 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
4564 frame_id_build, deprecated_update_frame_pc_hack and
4565 deprecated_update_frame_base_hack.
4566 (select_frame): Use get_frame_pc.
4567 (legacy_saved_regs_this_id): Use frame_id_build.
4568
50c46a0d
EZ
45692003-04-04 Elena Zannoni <ezannoni@redhat.com>
4570
fbe586ae
RH
4571 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
4572 signed integer case.
4573 (classify_argument): Handle enumerations and references.
50c46a0d 4574
50bbdbd9
AC
45752003-04-04 Andrew Cagney <cagney@redhat.com>
4576
4577 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
4578 ID to NULL.
4579
36018d2e
AF
45802003-04-01 Adam Fedor <fedor@gnu.org>
4581
4582 * gdb/objc-lang.c (selectors_info): Replace calls to
4583 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
4584 SYMBOL_NATURAL_NAME.
4585 (classes_info, find_methods): Likewise.
4586
35cec841
KB
45872003-04-03 Kevin Buettner <kevinb@redhat.com>
4588
4589 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
4590 ``mach'' to the value determined by bfd_default_set_arch_mach().
4591
43136899
BR
45922003-04-02 Bob Rossi <bob_rossi@cox.net>
4593
4594 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
4595 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
4596 (mi-cmd-file.o): Update dependencies.
4597
040b99fd
KB
45982003-04-01 Kevin Buettner <kevinb@redhat.com>
4599
4600 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4601 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
4602
9a3d7dfd
AF
46032003-04-01 Adam Fedor <fedor@gnu.org>
4604
4605 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
4606 * language.h (struct language_defn): Add la_demangle.
4607 (language_demangle): Declare.
4608 * language.c (language_demangle): New function.
4609 (unk_lang_demangle): Likewise.
4610 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 4611 Add ukn_lang_demangle.
9a3d7dfd 4612 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 4613 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
4614 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
4615 (cplus_language_defn): Add cplus_demangle for la_demangle element.
4616 * jv-lang.c (java_demangle): New function
4617 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
4618 * objc-lang.c (objc_demangle): Add options argument
4619 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
4620 * maint.c (maintenance_demangle): Replace switch with
4621 call to language_demangle.
4622 * utils.c (fprintf_symbol_filtered): Likewise.
4623
5e074003
AC
46242003-04-01 Andrew Cagney <cagney@redhat.com>
4625
4626 * printcmd.c (print_frame_nameless_args): Delete #ifdef
4627 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
4628 PRINT_TYPELESS_INTEGER.
4629 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
4630 PUSH_RETURN_ADDRESS.
4631
270cb5d6
AC
46322003-04-01 Andrew Cagney <cagney@redhat.com>
4633
4634 * Makefile.in (d10v-tdep.o): Update dependencies.
4635 * d10v-tdep.c: Include "frame-base.h".
4636 (d10v_frame_unwind): Make constant.
4637 (d10v_frame_base_address): New function.
4638 (d10v_frame_base): New variable.
4639 (d10v_gdbarch_init): Set frame_base default.
4640 (struct d10v_unwind_cache): Add the field "prev_sp". Update
4641 comment for base.
4642 (d10v_frame_unwind_cache): Set and use "prev_sp".
4643 (d10v_frame_this_id): Use the previous frame's inner most stack
4644 address and this frame's func address for the frame ID. Use
4645 frame_id_build. Don't analyze beyond the current instruction.
4646
6bfb3e36
AC
46472003-04-01 Andrew Cagney <cagney@redhat.com>
4648
4649 * frame.h (get_frame_locals_address, get_frame_args_address):
4650 Refer to the base address, instead of the address of the first
4651 local or parameter.
4652
da62e633
AC
46532003-04-01 Andrew Cagney <cagney@redhat.com>
4654
4655 Add frame debug info addresses:
4656 * frame-base.c: New file.
4657 * frame-base.h: New file.
4658 * frame.h (struct frame_base): Add opaque declaration.
4659 (get_frame_base): Update comment.
4660 (get_frame_base_address): Declare.
4661 (get_frame_locals_address): Declare.
4662 (get_frame_args_address): Declare.
4663 (struct frame_info): Add "base" and "base_cache". Update
4664 comments on the unwinder.
4665 * frame.c: Include "frame-base.h".
4666 (get_frame_locals_address): New function.
4667 (get_frame_base_address): New function.
4668 (get_frame_args_address): New function.
4669 * findvar.c (read_var_value): Use get_frame_locals_address and
4670 get_frame_args_address.
4671 * stack.c (frame_info): Use get_frame_locals_address and
4672 get_frame_args_address.
4673 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
4674 moved to "frame-base.c".
4675 * printcmd.c (print_frame_nameless_args): Ditto.
4676 * symtab.h (address_class): Update comments.
4677 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
4678 get_frame_base_address.
4679 * dwarf2expr.c (execute_stack_op): Ditto.
4680 * Makefile.in (frame_base_h): Define.
4681 (frame.o): Update dependencies.
4682 (frame-base.o): Add dependencies.
4683 (SFILES): Add frame-base.c.
4684 (COMMON_OBS): Add frame-base.o.
4685
3d30e9c2
AC
46862003-04-01 Andrew Cagney <cagney@redhat.com>
4687
4688 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
4689 CALL_DUMMY_LENGTH): Ditto.
4690 * gdbarch.c: Re-generate.
4691 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
4692 (CALL_DUMMY_LENGTH): Delete macro.
4693 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
4694 * arm-tdep.c (arm_gdbarch_init): Ditto.
4695 * avr-tdep.c (avr_gdbarch_init): Ditto.
4696 * cris-tdep.c (cris_gdbarch_init): Ditto.
4697 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4698 * frv-tdep.c (frv_gdbarch_init): Ditto.
4699 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4700 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4701 * i386-tdep.c (i386_gdbarch_init): Ditto.
4702 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4703 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4704 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4705 * mips-tdep.c (mips_gdbarch_init): Ditto.
4706 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4707 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4708 * s390-tdep.c (s390_gdbarch_init): Ditto.
4709 * sh-tdep.c (sh_gdbarch_init): Ditto.
4710 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4711 * v850-tdep.c (v850_gdbarch_init): Ditto.
4712 * vax-tdep.c (vax_gdbarch_init): Ditto.
4713 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4714
ce0c7262
CV
47152003-04-01 Corinna Vinschen <vinschen@redhat.com>
4716
4717 * frame.c (get_prev_frame): Disable call to inside_entry_file().
4718
73dd234f
AC
47192003-04-01 Andrew Cagney <cagney@redhat.com>
4720
4721 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
4722 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
4723 * gdbarch.h, gdbarch.c: Re-generate.
4724 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
4725 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
4726 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
4727 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
4728 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
4729 * infcmd.c (run_stack_dummy): Simplify assuming
4730 CALL_DUMMY_BREAKPOINT_OFFSET_P.
4731 * infrun.c (handle_inferior_event): Ditto.
4732 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4733 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
4734 * arm-tdep.c (arm_gdbarch_init): Ditto.
4735 * avr-tdep.c (avr_gdbarch_init): Ditto.
4736 * cris-tdep.c (cris_gdbarch_init): Ditto.
4737 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4738 * frv-tdep.c (frv_gdbarch_init): Ditto.
4739 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4740 * i386-tdep.c (i386_gdbarch_init): Ditto.
4741 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4742 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4743 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4744 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4745 * mips-tdep.c (mips_gdbarch_init): Ditto.
4746 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4747 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4748 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4749 * s390-tdep.c (s390_gdbarch_init): Ditto.
4750 * sh-tdep.c (sh_gdbarch_init): Ditto.
4751 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4752 * v850-tdep.c (v850_gdbarch_init): Ditto.
4753 * vax-tdep.c (vax_gdbarch_init): Ditto.
4754 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4755
97606a13
DJ
47562003-04-01 Daniel Jacobowitz <drow@mvista.com>
4757
4758 * symfile.c (symfile_relocate_debug_section): Update call to
4759 bfd_simple_get_relocated_section_contents.
4760
e8ab51f7
AC
47612003-03-31 Andrew Cagney <cagney@redhat.com>
4762
4763 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
4764 * gdbarch.h, gdbarch.c: Regenerate.
4765 * inferior.h (FIX_CALL_DUMMY): Delete macro.
4766 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
4767 available.
4768 * frame.h (generic_fix_call_dummy): Delete declaration.
4769 * dummy-frame.h: Update comment.
4770 * dummy-frame.c (generic_fix_call_dummy): Delete function.
4771 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4772 fix_call_dummy.
4773 * sh-tdep.c (sh_gdbarch_init): Ditto.
4774 * s390-tdep.c (s390_gdbarch_init): Ditto.
4775 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4776 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4777 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4778 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4779 * i386-tdep.c (i386_gdbarch_init): Ditto.
4780 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4781 * frv-tdep.c (frv_gdbarch_init): Ditto.
4782 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4783 * cris-tdep.c (cris_gdbarch_init): Ditto.
4784 * avr-tdep.c (avr_gdbarch_init): Ditto.
4785 * arm-tdep.c (arm_gdbarch_init): Ditto.
4786
018d1b48
JB
47872003-03-31 J. Brobecker <brobecker@gnat.com>
4788
4789 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
4790 (INIT_FRAME_AP): Likewise.
4791 (EXTRA_FRAME_INFO): Likewise.
4792
e9a2674e
AC
47932003-03-31 Andrew Cagney <cagney@redhat.com>
4794
4795 * gdbarch.sh: Include "symfile.h".
4796 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
4797 * gdbarch.h, gdbarch.c: Re-generate.
4798 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
4799 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4800 call_dummy_address, the default is at entry_point_address.
4801 * v850-tdep.c (v850_gdbarch_init): Ditto.
4802 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4803 * sh-tdep.c (sh_gdbarch_init): Ditto.
4804 * s390-tdep.c (s390_gdbarch_init): Ditto.
4805 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4806 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4807 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4808 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4809 * i386-tdep.c (i386_gdbarch_init): Ditto.
4810 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4811 * frv-tdep.c (frv_gdbarch_init): Ditto.
4812 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4813 * cris-tdep.c (cris_gdbarch_init): Ditto.
4814 * arm-tdep.c (arm_gdbarch_init): Ditto.
4815
e8a8712a
AC
48162003-03-31 Andrew Cagney <cagney@redhat.com>
4817
4818 * gdbarch.sh (CALL_DUMMY_P): Delete.
4819 * gdbarch.h, gdbarch.c: Re-generate.
4820 * inferior.h (CALL_DUMMY_P): Delete macro.
4821 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4822 * vax-tdep.c (vax_gdbarch_init): Update.
4823 * v850-tdep.c (v850_gdbarch_init): Update.
4824 * sparc-tdep.c (sparc_gdbarch_init): Update.
4825 * sh-tdep.c (sh_gdbarch_init): Update.
4826 * s390-tdep.c (s390_gdbarch_init): Update.
4827 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4828 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4829 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4830 * mips-tdep.c (mips_gdbarch_init): Update.
4831 * mcore-tdep.c (mcore_gdbarch_init): Update.
4832 * m68k-tdep.c (m68k_gdbarch_init): Update.
4833 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4834 * ia64-tdep.c (ia64_gdbarch_init): Update.
4835 * i386-tdep.c (i386_gdbarch_init): Update.
4836 * h8300-tdep.c (h8300_gdbarch_init): Update.
4837 * frv-tdep.c (frv_gdbarch_init): Update.
4838 * d10v-tdep.c (d10v_gdbarch_init): Update.
4839 * cris-tdep.c (cris_gdbarch_init): Update.
4840 * breakpoint.c (deprecated_frame_in_dummy): Update.
4841 * avr-tdep.c (avr_gdbarch_init): Update.
4842 * alpha-tdep.c (alpha_gdbarch_init): Update.
4843 * arm-tdep.c (arm_gdbarch_init): Update.
4844 * dummy-frame.c (dummy_frame_this_id): Update comments.
4845 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
4846 * frame.c (legacy_get_prev_frame): Ditto.
4847 * valops.c (call_function_by_hand): Delete function.
4848 (hand_function_call): Rename to call_function_by_hand
4849
ed234cf8
AC
48502003-03-30 Andrew Cagney <cagney@redhat.com>
4851
4852 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 4853 * value.h (struct value): Update comment.
ed234cf8 4854
06c77151
AC
48552003-03-30 Andrew Cagney <cagney@redhat.com>
4856
6c2b5168
AC
4857 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
4858 D10V_FP_REGNUM.
4859 (d10v_gdbarch_init): Do not set fp_regnum.
4860
06c77151
AC
4861 * frame.c (get_frame_base): Force ID initialization.
4862 (get_prev_frame): Move computation of the frame ID from here ...
4863 (get_frame_id): ... to here.
4864 (legacy_get_prev_frame): Mark the frame ID as valid.
4865 * frame.h (struct frame_info): Add field "id_p".
4866
97a1a11c
MK
48672003-03-30 Mark Kettenis <kettenis@gnu.org>
4868
4869 * i386-tdep.c (i386_store_struct_return): Removed.
4870 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
4871
6c0e89ed
AC
48722003-03-30 Andrew Cagney <cagney@redhat.com>
4873
4874 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
4875 * gdbarch.h, gdbarch.c: Regenerate.
4876 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
4877 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4878 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4879 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4880 * i386-tdep.c (i386_gdbarch_init): Ditto.
4881 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4882 * cris-tdep.c (cris_gdbarch_init): Ditto.
4883 * vax-tdep.c (vax_gdbarch_init): Ditto.
4884 * s390-tdep.c (s390_gdbarch_init): Ditto.
4885 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4886 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4887 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4888 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
4889 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4890 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
4891 * sparc-tdep.c (sparc_gdbarch_init): Update.
4892 * sh-tdep.c (sh_gdbarch_init): Update.
4893 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4894 * mips-tdep.c (mips_gdbarch_init): Update.
4895 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4896 * ia64-tdep.c (ia64_gdbarch_init): Update.
4897 * frv-tdep.c (frv_gdbarch_init): Update.
4898 * avr-tdep.c (avr_gdbarch_init): Update.
4899 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
4900 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
4901 instead of when push_dummy_call is not available.
4902
f7dd6af2
AC
49032003-03-30 Andrew Cagney <cagney@redhat.com>
4904
4905 * infttrace.c: Include "gdbthread.h".
4906 (parent_attach_all): Fix function signature.
4907 (call_ptrace): Update call.
4908 * Makefile.in (infttrace.o): Update dependencies.
4909
28f617b3
AC
49102003-03-30 Andrew Cagney <cagney@redhat.com>
4911
4912 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
4913 PUSH_RETURN_ADDRESS.
4914 * gdbarch.h, gdbarch.c: Regenerate.
4915 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4916 * x86-64-tdep.c (x86_64_init_abi): Update.
4917 * v850-tdep.c (v850_gdbarch_init): Update.
4918 * sparc-tdep.c (sparc_gdbarch_init): Update.
4919 * sh-tdep.c (sh_gdbarch_init): Update.
4920 * s390-tdep.c (s390_gdbarch_init): Update.
4921 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4922 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4923 * mips-tdep.c (mips_gdbarch_init): Update.
4924 * mcore-tdep.c (mcore_gdbarch_init): Update.
4925 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4926 * ia64-tdep.c (ia64_gdbarch_init): Update.
4927 * i386-tdep.c (i386_gdbarch_init): Update.
4928 * h8300-tdep.c (h8300_gdbarch_init): Update.
4929 * frv-tdep.c (frv_gdbarch_init): Update.
4930 * cris-tdep.c (cris_gdbarch_init): Update.
4931 * avr-tdep.c (avr_gdbarch_init): Update.
4932 * arm-tdep.c (arm_gdbarch_init): Update.
4933 * valops.c (hand_function_call): Update.
4934
4d628cd7
AC
49352003-03-29 Andrew Cagney <cagney@redhat.com>
4936
4937 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
4938 sizeof_call_dummy_words.
4939 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
4940 define.
4941 * gdbarch.h: Regenerate.
4942
65e82032
AC
49432003-03-29 Andrew Cagney <cagney@redhat.com>
4944
4945 * infttrace.h: New file.
4946 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
4947 (hpread_get_textlow): Detect an uninitialized dn_bufp.
4948 (hpread_read_doc_function_type): Detect an initialized type1.
4949 (hpread_quick_traverse): Initialize mod_name_string.
4950 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
4951 (som_solib_get_solib_by_pc): Declare.
4952 (so_lib_thread_start_addr): Declare.
4953 (no_shared_libraries): Declare.
4954 * somread.c (init_import_symbols): Make static. Add forward
4955 declaration.
4956 * config/pa/nm-hppah.h: Include "infttrace.h" for
4957 parent_attach_all.
4958 (hppa_insert_hw_watchpoint): Declare.
4959 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
4960 * hppah-nat.c: Include "gdb_string.h".
4961 (parent_attach_all): Delete extern declaration, moved to
4962 "infttrace.h".
4963 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
4964 int.
4965 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
4966 * Makefile.in (infttrace_h): Define.
4967 (hpread.o): Update dependencies.
4968 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
4969 * hppa-hpux-tdep.c: Include "gdb_string.h".
4970 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
4971 * infrun.c (handle_inferior_event): Always initialize
4972 stepped_after_stopped_by_watchpoint. Add default and remove
4973 fallthrough in switch statement.
4974 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
4975 parameter to int.
4976 (hppa_remove_hw_watchpoint): Ditto.
4977
2c3bbe77
AC
49782003-03-29 Andrew Cagney <cagney@redhat.com>
4979
4980 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
4981 offset.
4982
2dd604e7
RE
49832003-03-29 Richard Earnshaw <rearnsha@arm.com>
4984
4985 * arm-tdep.c (arm_push_arguments): Delete.
4986 (struct stack_item): New type.
4987 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
4988 (arm_store_struct_return): Delte.
4989 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
4990 arm_push_arguments or arm_store_struct_return.
4991
e8933a55
AC
49922003-03-28 Andrew Cagney <cagney@redhat.com>
4993
4994 * Makefile.in (d10v-tdep.o): Update dependencies.
4995 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
4996 * d10v-tdep.c: Include "remote.h".
4997 (target_resume_hook): Delete extern declaration.
4998 (target_wait_loop_hook): Ditto.
4999 (tdisassemble_command): Eliminate assignment in "if" conditional.
5000 (d10v_ts2_register_sim_regno): Eliminate call to
5001 legacy_register_sim_regno.
5002 (d10v_ts3_register_sim_regno): Ditto.
5003
6949171e
JJ
50042003-03-28 Jeff Johnston <jjohnstn@redhat.com>
5005
5006 * thread.c: Reindented.
5007 * lin-lwp.c: Ditto.
5008 * linux-proc.c: Ditto.
5009
98c7071f
BR
50102003-03-28 Bob Rossi <bob_rossi@cox.net>
5011
fbe586ae 5012 * MAINTAINERS (write after approval): Add myself.
98c7071f 5013
5edc9ca6
TR
50142003-03-27 Theodore A. Roth <troth@openavr.org>
5015
5016 * objc-exp.y: Add missing semi-colons.
5017
378bfd1b
AC
50182003-03-27 Andrew Cagney <cagney@redhat.com>
5019
5020 * regcache.c (write_sp): Delete function and references.
5021 * inferior.h (write_sp): Delete declaration.
5022 * valops.c (hand_function_call): Replace write_sp with
5023 TARGET_WRITE_SP.
5024 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
5025 (sparc_pop_frame): Ditto.
5026
56056df7
AC
50272003-03-27 Andrew Cagney <cagney@redhat.com>
5028
5029 * NEWS: Mention removal of support for hppa*-*-bsd* and
5030 hppa*-*-osf* natives, and hppa*-*-pro* target.
5031 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
5032 * config/pa/xm-pa.h: Obsolete file.
5033 * config/pa/xm-hppab.h: Obsolete file.
5034 * config/pa/nm-hppab.h: Obsolete file.
5035 * config/pa/tm-hppab.h: Obsolete file.
5036 * config/pa/tm-hppao.h: Obsolete file.
5037 * config/pa/nm-hppao.h: Obsolete file.
5038 * config/pa/tm-pro.h: Obsolete file.
5039 * config/pa/hppaosf.mt: Obsolete file.
5040 * config/pa/hppaosf.mh: Obsolete file.
5041 * config/pa/hppapro.mt: Obsolete file.
5042 * config/pa/hppabsd.mt: Obsolete file.
5043 * config/pa/hppabsd.mh: Obsolete file.
5044 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
5045 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
5046 hppa*-*-osf*.
5047
5873a88d
AC
50482003-03-27 Andrew Cagney <cagney@redhat.com>
5049
5050 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
5051 push_arguments. Don't set push_return_address or write_sp.
5052 (d10v_push_dummy_call): Replace d10v_push_arguments.
5053 (d10v_push_return_address, d10v_write_sp): Delete function,
5054 handled by push_dummy_call.
5055
b81774d8
AC
50562003-03-26 Andrew Cagney <cagney@redhat.com>
5057
5058 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
5059 (push_dummy_call): New pure multi-arch replacement with gdbarch,
5060 regcache and dummy_addr parameters.
5061 * gdbarch.h, gdbarch.c: Re-generate.
5062 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
5063 available; assume it will handle stack alignment and return
5064 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
5065 legacy_push_arguments.
5066 (legacy_push_arguments): Rename default_push_arguments.
5067 * value.h (legacy_push_arguments): Rename default_push_arguments.
5068 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
5069 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5070 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5071 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5072 * config/i386/tm-symmetry.h: Update.
5073 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5074 * x86-64-tdep.c (x86_64_init_abi): Update.
5075 * v850-tdep.c (v850_gdbarch_init): Update.
5076 * sparc-tdep.c (sparc_gdbarch_init): Update.
5077 * sh-tdep.c (sh_gdbarch_init): Update.
5078 * s390-tdep.c (s390_gdbarch_init): Update.
5079 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5080 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5081 * mips-tdep.c (mips_gdbarch_init): Update.
5082 * mcore-tdep.c (mcore_gdbarch_init): Update.
5083 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5084 * ia64-tdep.c (ia64_gdbarch_init): Update.
5085 * i386-tdep.c (i386_gdbarch_init): Update.
5086 * hppa-tdep.c (hppa_gdbarch_init): Update.
5087 * h8300-tdep.c (h8300_gdbarch_init): Update.
5088 * frv-tdep.c (frv_gdbarch_init): Update.
5089 * d10v-tdep.c (d10v_gdbarch_init): Update.
5090 * cris-tdep.c (cris_gdbarch_init): Update.
5091 * avr-tdep.c (avr_gdbarch_init): Update.
5092 * arm-tdep.c (arm_gdbarch_init): Update.
5093 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5094 * alpha-tdep.c (alpha_gdbarch_init): Update.
5095
f541410f
DJ
50962003-03-26 Daniel Jacobowitz <drow@mvista.com>
5097
5098 * signals/signals.c (do_target_signal_to_host): Correct realtime
5099 signal range test.
5100
69f567ae
DJ
51012003-03-26 Daniel Jacobowitz <drow@mvista.com>
5102
5103 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
5104 (struct sal_chain, map_catch_names): Remove.
5105 (catch_exception_command_1): Don't call
5106 handle_gnu_4_16_catch_command.
5107
d5d14a5a
DJ
51082003-03-26 Daniel Jacobowitz <drow@mvista.com>
5109
5110 From Mark Dettinger <dettinge@de.ibm.com>:
5111 * dwarf2cfi.c (read_2u): Increment pointer by two.
5112
bdd73e22
DJ
51132003-03-26 Daniel Jacobowitz <drow@mvista.com>
5114
5115 * signals/signals.c: Fix typos in last change.
5116
960cb555
DJ
51172003-03-26 Daniel Jacobowitz <drow@mvista.com>
5118
5119 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
5120 not already defined. Use __SIGRTMIN if available.
5121 (target_signal_from_host): Remove SIGRTMIN block.
5122 (do_target_signal_to_host): Remove SIGRTMIN block; check that
5123 the signal is within the realtime range.
5124
f636b87d
AF
51252003-03-25 Adam Fedor <fedor@gnu.org>
5126
5127 * Makefile.in (infrun.o): Add $(language_h)
5128 * infrun.c (handle_inferior_event): Use skip_language_trampoline
5129 for language specific trampolines.
5130 * language.h (struct language_defn): Add skip_trampoline.
5131 (skip_language_trampoline): Declare.
5132 * language.c (unk_lang_trampoline, skip_language_trampoline):
5133 New functions.
5134 (unknown_language_defn, auto_language_defn, local_language_defn):
5135 Add ukn_lang_trampoline.
5136 * ada-lang.c (ada_language_defn): Add NULL for language
5137 specific skip_trampoline.
5138 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
5139 scm-lang.c: Likewise.
5140 * objc-lang.c (objc_skip_trampoline): New function.
5141 (objc_language_defn): Add objc_skip_trampoline.
5142
28f617b3 51432003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
5144
5145 * frame.c (get_prev_frame): Delay validating a frame's ID -
5146 non-NULL, didn't go backwards - until an attempt to unwind it to
5147 the previous frame.
5148
f933a9c5
AC
51492003-03-25 Andrew Cagney <cagney@redhat.com>
5150
5151 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
5152 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
5153 * gdbarch.h, gdbarch.c: Re-generate.
5154 * config/sparc/tm-sparc.h
5155 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
5156 * sparc-tdep.c (sparc_gdbarch_init): Set
5157 deprecated_extra_stack_alignment_needed.
5158 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
5159 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
5160 extra_stack_alignment_needed.
5161 * v850-tdep.c (v850_gdbarch_init): Ditto.
5162 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5163 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5164 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5165 * cris-tdep.c (cris_gdbarch_init): Ditto.
5166 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5168
4183d812
AC
51692003-03-25 Andrew Cagney <cagney@redhat.com>
5170
5171 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
5172 STORE_STRUCT_RETURN.
5173 * gdbarch.h, gdbarch.c: Regenerate.
5174 * d10v-tdep.c (d10v_store_struct_return): Delete function.
5175 (d10v_push_arguments): Set the struct return register.
5176 (d10v_gdbarch_init): Update.
5177 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5178 * x86-64-tdep.c (x86_64_init_abi): Update.
5179 * vax-tdep.c (vax_gdbarch_init): Update.
5180 * v850-tdep.c (v850_gdbarch_init): Update.
5181 * sparc-tdep.c (sparc_gdbarch_init): Update.
5182 * sh-tdep.c (sh_gdbarch_init): Update.
5183 * s390-tdep.c (s390_gdbarch_init): Update.
5184 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5185 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5186 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5187 * mips-tdep.c (mips_gdbarch_init): Update.
5188 * mcore-tdep.c (mcore_gdbarch_init): Update.
5189 * m68k-tdep.c (m68k_gdbarch_init): Update.
5190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5191 * ia64-tdep.c (ia64_gdbarch_init): Update.
5192 * i386-tdep.c (i386_gdbarch_init): Update.
5193 * hppa-tdep.c (hppa_gdbarch_init): Update.
5194 * h8300-tdep.c (h8300_gdbarch_init): Update.
5195 * frv-tdep.c (frv_gdbarch_init): Update.
5196 * cris-tdep.c (cris_gdbarch_init): Update.
5197 * avr-tdep.c (avr_gdbarch_init): Update.
5198 * arm-tdep.c (arm_gdbarch_init): Update.
5199 * alpha-tdep.c (alpha_gdbarch_init): Update.
5200
1bf6d5cc
AC
52012003-03-25 Andrew Cagney <cagney@redhat.com>
5202
5203 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
5204 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
5205 CALL_DUMMY_STACK_ADJUST with a predicate variable.
5206 * gdbarch.h, gdbarch.c: Regenerate.
5207 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5208 call_dummy_stack_adjust_p.
5209 * vax-tdep.c (vax_gdbarch_init): Ditto.
5210 * v850-tdep.c (v850_gdbarch_init): Ditto.
5211 * sh-tdep.c (sh_gdbarch_init): Ditto.
5212 * s390-tdep.c (s390_gdbarch_init): Ditto.
5213 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5214 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5215 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5216 * mips-tdep.c (mips_gdbarch_init): Ditto.
5217 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5218 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5219 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5220 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5221 * i386-tdep.c (i386_gdbarch_init): Ditto.
5222 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5223 * frv-tdep.c (frv_gdbarch_init): Ditto.
5224 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5225 * cris-tdep.c (cris_gdbarch_init): Ditto.
5226 * avr-tdep.c (avr_gdbarch_init): Ditto.
5227 * arm-tdep.c (arm_gdbarch_init): Ditto.
5228 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5229 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
5230 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
5231 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
5232 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
5233 call_dummy_stack_adjust_p.
5234 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
5235 (CALL_DUMMY_STACK_ADJUST): Delete macro.
5236 * sparc-tdep.c (sparc32_push_arguments): Update.
5237 * valops.c (hand_function_call): Update.
5238
71c08af0
CV
52392003-03-25 Corinna Vinschen <vinschen@redhat.com>
5240
5241 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
5242 set_gdbarch_char_signed.
5243
30757f90
RE
52442003-03-25 Richard Earnshaw <rearnsha@arm.com>
5245
5246 PR cli/548
5247 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
5248
03d48a7d
RE
52492003-03-25 Richard Earnshaw <rearnsha@arm.com>
5250
5251 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
5252 (_initialize_arm_tdep): Don't set tm_print_insn.
5253
2cf6873c
AF
52542003-03-24 Adam Fedor <fedor@gnu.org>
5255
5256 * Makefile.in (YYOBJ): Add objc-exp.tab.o
5257 * objc-lang.h: Add multiple inclusion protection.
5258 (start_msglist, add_msglist, end_msglist): Additional declarations.
5259
17c0759e
RE
52602003-03-24 Richard Earnshaw <rearnsha@arm.com>
5261
5262 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
5263 value was renamed to ARM_FLOAT_SOFT_FPA.
5264
618ce49f
AC
52652003-03-23 Andrew Cagney <cagney@redhat.com>
5266
5267 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
5268 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
5269 * gdbarch.h, gdbarch.c: Regenerate.
5270 * valops.c (hand_function_call): Update.
5271 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
5272 * frame.c (legacy_saved_regs_this_id): Update.
5273 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
5274 * dummy-frame.h: Update.
5275 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
5276 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
5277 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
5278 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
5279 * config/m68k/tm-sun3.h: Update.
5280 * blockframe.c (inside_main_func, frame_chain_valid): Update.
5281 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5282 * x86-64-tdep.c (x86_64_init_abi): Update.
5283 * vax-tdep.c (vax_gdbarch_init): Update.
5284 * v850-tdep.c (v850_gdbarch_init): Update.
5285 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
5286 * sh-tdep.c (sh_gdbarch_init): Update.
5287 * s390-tdep.c (s390_gdbarch_init): Update.
5288 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
5289 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
5290 (frame_get_saved_regs): Update.
5291 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5292 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5293 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5294 * mips-tdep.c (mips_gdbarch_init): Update.
5295 * mcore-tdep.c (mcore_gdbarch_init): Update.
5296 * m68k-tdep.c (m68k_gdbarch_init): Update.
5297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5298 * ia64-tdep.c (ia64_gdbarch_init): Update.
5299 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
5300 * i386-interix-tdep.c (i386_interix_init_abi): Update.
5301 (i386_interix_back_one_frame): Update.
5302 * hppa-tdep.c (hppa_gdbarch_init): Update.
5303 (hppa_init_extra_frame_info): Update.
5304 * h8300-tdep.c (h8300_gdbarch_init): Update.
5305 * frv-tdep.c (frv_gdbarch_init): Update.
5306 * cris-tdep.c (cris_gdbarch_init): Update.
5307 * avr-tdep.c (avr_gdbarch_init): Update.
5308 * arm-tdep.c (arm_gdbarch_init): Update.
5309 * alpha-tdep.c (alpha_gdbarch_init): Update.
5310
fd50bc42
RE
53112003-03-22 Richard Earnshaw <rearnsha@arm.com>
5312
5313 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
5314 (arm_get_fp_model): Declare.
5315 * arm-tdep.c (fp_model_strings): New string array.
5316 (arm_fp_model, current_fp_model): New variables.
5317 (arm_get_fp_model): New function.
5318 (arm_set_fp): New function.
5319 (set_fp_model_sfunc): New function.
5320 (show_fp_model): New function.
5321 (_initialize_arm_tdep): Add new command to set/show the FPU.
5322 (arm_extract_return_value): Use arm_get_fp_model.
5323 (arm_store_return_value): Likewise.
5324 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
5325 to initialize the floating-point data types.
5326 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
5327 model is FPA.
5328
26304000
RE
53292003-03-22 Richard Earnshaw <rearnsha@arm.com>
5330
5331 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
5332 the current setting of each value.
5333 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
5334 new_set and new_show. Use add_setshow_cmd_full and
5335 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
5336 commands and add new version as subcommands of "set/show arm".
5337
afd7eef0
RE
53382003-03-22 Richard Earnshaw <rearnsha@arm.com>
5339
5340 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
5341 (set_arm_command, show_arm_command): New functions.
5342 (_initialize_arm_tdep): Add them.
5343 (num_disassembly_options): Renamed from num_flavor_options.
5344 (valid_disassembly_styles): Renamed from valid_flavors.
5345 (disassembly_style): Renamed from disassembly_flavor.
5346 (set_disassembly_style_sfunc): Renamed from
5347 set_disassembly_flavor_sfunc.
5348 (set_disassembly_style): Renamed from set_disassembly_flavor.
5349 (arm_othernames): Updated.
5350 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
5351 command. Add "set/show arm disassembly" commands. Deprecate
5352 "othernames" command.
5353
299a7944
RE
53542003-03-22 Richard Earnshaw <rearnsha@arm.com>
5355
5356 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
5357 (arm-tdep.o): Depend on elf_arm_h.
5358
c1dac9e6
RE
53592003-03-22 Richard Earnshaw <rearnsha@arm.com>
5360
5361 * Makefile.in (coff_internal_h): Define.
5362 (arm-tdep.o): Update dependencies.
5363
2702d96c
RE
53642003-03-22 Richard Earnshaw <rearnsha@arm.com>
5365
5366 * arm-tdep.c (prologue_cache): Delete.
5367 (check_prologue_cache, save_prologue_cache): Delete.
5368 (arm_scan_prologue): Don't check or update the prologue_cache.
5369 (arm_gdb_arch_init): Don't initialize it.
5370 (_initialize_arm_tdep): Likewise.
5371
27d5d74b
SC
53722003-03-21 Stephane Carrez <stcarrez@nerim.fr>
5373
5374 * MAINTAINERS (tui): Maintainer of tui code.
5375
1762d96d
CV
53762003-03-21 Corinna Vinschen <vinschen@redhat.com>
5377
5378 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
5379 (i386-cygwin-tdep.o): Add dependencies.
5380 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
5381 * i386-cygwin-tdep.c: New file.
5382 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
5383 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
5384
4c2e2391
AC
53852003-03-20 Andrew Cagney <cagney@redhat.com>
5386
f20d38b7
AC
5387 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
5388 (handle_inferior_event): Remove code calling
5389 DYNAMIC_TRAMPOLINE_NEXTPC.
5390
0022b738
AC
5391 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
5392 already has a full path.
5393
864dbc90
AC
5394 * main.c (gdb_main): Return 1.
5395 (captured_main): Call error to report an invalid interpreter.
5396
4c2e2391
AC
5397 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5398 * alpha-osf1-tdep.c: Include "gdb_string.h".
5399
5ef7553b
JB
54002003-03-19 J. Brobecker <brobecker@gnat.com>
5401
5402 Continuing work to convert the hppa targets to multiarch partial.
5403
5404 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
5405 method, now that hppa_push_dummy_frame has a conformant prototype.
5406 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
5407 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
5408 for the switch to multiarch partial.
5409
7bde8967
KB
54102003-03-19 Kevin Buettner <kevinb@redhat.com>
5411
5412 * mdebugread.c (parse_symbol): For stEnd, we're done counting
5413 when iss is issNull.
5414
b006a9e9
KB
54152003-03-18 Kevin Buettner <kevinb@redhat.com>
5416
5417 * mips-tdep.c (mips_register_name): Fix fencepost error involving
5418 NUM_REGS bounds check.
5419
5e2e9765
KB
54202003-03-18 Kevin Buettner <kevinb@redhat.com>
5421
5422 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
5423 * mips-tdep.c (gdb_assert.h): Include.
5424 (mips_generic_reg_names, mips_processor_reg_names): Make static.
5425 (mips_register_name): Handle integer registers explicitly. Add
5426 bounds checking.
5427 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
5428 (mips_lsi33k_reg_names): Don't list integer registers; they're
5429 handled by mips_register_name() now.
5430 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
5431 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
5432 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
5433 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
5434 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
5435
a2867626
AC
54362003-03-18 Andrew Cagney <cagney@redhat.com>
5437
5438 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
5439 a void pointer.
5440 * gdbtypes.h (print_scalar_formatted): Update declaration.
5441 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
5442
06600e06
JB
54432003-03-18 J. Brobecker <brobecker@gnat.com>
5444
5445 * infrun.c (observer.h): Add #include.
5446 (normal_stop): Add call to observer_notify_normal_stop.
5447 * Makefile.in (infrun.o): Add dependency on observer.h.
5448
7daf4f5b
JB
54492003-03-18 J. Brobecker <brobecker@gnat.com>
5450
5451 Continuing work to convert the hppa targets to multiarch partial.
5452 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
5453 parameter. Reformat comment.
5454 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
5455 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
5456 to match new profile.
5457
3371ccc0
JB
54582003-03-18 J. Brobecker <brobecker@gnat.com>
5459
5460 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
5461 appear to be working in any case.
5462
4fbe891e
JB
54632003-03-18 J. Brobecker <brobecker@gnat.com>
5464
5465 * observer.c (observer_test_first_observer): New static variable.
5466 (observer_test_second_observer): Likewise.
5467 (observer_test_third_observer): Likewise.
5468 (observer_test_first_notification_function): New static function.
5469 (observer_test_second_notification_function): Likewise.
5470 (observer_test_third_notification_function): Likewise.
5471
a7ff40e7
JB
54722003-03-17 J. Brobecker <brobecker@gnat.com>
5473
5474 * hppa-tdep.c (gdb_assert.h): Add missing #include.
5475 * somsolib.c (gdb_assert.h): Likewise.
5476 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
5477 (somsolib.o): Likewise.
5478
26ca4152
AC
54792003-03-17 Andrew Cagney <cagney@redhat.com>
5480
5481 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
5482 BFD. Simplify setting of di.endian.
5483
0a613259
AC
54842003-03-17 Andrew Cagney <cagney@redhat.com>
5485
5486 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
5487 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
5488
5489 From Elena Zannoni <ezannoni@redhat.com>
5490 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
5491 vector and floating-point parameters.
5492 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
5493 convention.
5494 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
5495
1132738f
FN
54962003-03-17 Fernando Nasser <fnasser@redhat.com>
5497
5498 * MAINTAINERS: Remove my name from several maintainership roles.
5499
6dc42492
AC
55002003-03-17 Andrew Cagney <cagney@redhat.com>
5501
5502 Fix frame off-by-one bug.
5503 * frame-unwind.h (frame_this_id_ftype): Replace
5504 frame_unwind_id_ftype.
5505 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
5506 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
5507 with "prev_register".
5508 * frame-unwind.c (frame_unwind_find_by_pc): Return
5509 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
5510 comment.
5511 * dummy-frame.c (cached_find_dummy_frame): Delete function.
5512 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
5513 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
5514 (dummy_frame_unwind): Update.
5515 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5516 sentinel_frame_register_unwind.
5517 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
5518 (sentinel_frame_unwinder): Update.
5519 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
5520 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
5521 * frame.c (create_sentinel_frame): Update. Initialize
5522 "prologue_cache" instead of "unwind_cache".
5523 (frame_register_unwind): Call this frame's prev_register with the
5524 next frame and this frame's prologue cache.
5525 (get_prev_frame): Simplify. Always call prev frame's this_id with
5526 this frame and prev frame's prologue cache. Document that this
5527 call is shifted one to the left when compared to the
5528 frame_register_unwind call.
5529 (legacy_saved_regs_prev_register): Replace
5530 frame_saved_regs_register_unwind.
5531 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
5532 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
5533 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
5534 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
5535 (d10v_frame_unwind): Update.
5536 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
5537 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
5538 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
5539 "saved_regs" with "this_saved_regs".
5540
efd710d6
AC
55412003-03-16 Andrew Cagney <cagney@redhat.com>
5542
5543 * frame.c (frame_pop): Don't call target_store_registers. Fix
5544 problem reported by Mark Kettenis.
5545
4e259f09
MK
55462003-03-16 Mark Kettenis <kettenis@gnu.org>
5547
5548 * i386-tdep.c (i386_register_type): Renamed from
5549 i386_register_virtual_type. Adjust function signature.
5550 (i386_gdbarch_init): Set register_type instead of
5551 deprecated_max_register_raw_size,
5552 deprecated_max_register_virtual_size and register_virtual_type.
5553
055bb976
AC
55542003-03-14 Andrew Cagney <cagney@redhat.com>
5555
5556 * frame.c (get_prev_frame): When a legacy frame, always call
5557 legacy_get_prev_frame. Simplify unwind code using assumption that
5558 the unwinder is new.
5559 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
5560 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
5561 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
5562
ac2adee5
AC
55632003-03-14 Andrew Cagney <cagney@redhat.com>
5564
5565 * frame.c (get_saved_register): Delete function.
5566 * frame.h (get_saved_register): Delete declaration.
5567 * xstormy16-tdep.c: Update comment.
5568 * regcache.h: Update comments.
5569 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
5570 get_saved_register and extract_address, use
5571 frame_read_unsigned_register.
5572 (sparc_frame_saved_pc): Ditto.
5573 (sparc_get_saved_register): Instead of get_saved_register, use
5574 frame_register.
5575 (sparc_pop_frame): Ditto.
5576 * findvar.c: Update comments.
5577 (value_of_register): Call frame_register instead of
5578 get_saved_register.
5579 (value_from_register): Ditto.
5580 * config/sparc/tm-sparc.h: Update comment.
5581 * breakpoint.c: Update comment.
5582
129c1cd6
AC
55832003-03-14 Andrew Cagney <cagney@redhat.com>
5584
5585 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
5586 GET_SAVED_REGISTER.
5587 * gdbarch.h, gdbarch.c: Re-generate.
5588 * frame.h: Update comments.
5589 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5590 * x86-64-tdep.c (x86_64_init_abi): Update.
5591 * sparc-tdep.c (sparc_gdbarch_init): Update.
5592 * sh-tdep.c (sh_gdbarch_init): Update.
5593 * mips-tdep.c (mips_gdbarch_init): Update.
5594 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5595 * cris-tdep.c (cris_gdbarch_init): Update.
5596 * ia64-tdep.c (ia64_gdbarch_init): Update.
5597 * frame.c (frame_register): Update.
5598 (get_saved_register): Update.
5599 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
5600
749b82f6
AC
56012003-03-13 Andrew Cagney <cagney@redhat.com>
5602
5603 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
5604 * gdbarch.h, gdbarch.c: Regenerate.
5605 * valops.c (hand_function_call): Update comment.
5606 * stack.c (return_command): Update comment.
5607 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
5608 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
5609 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5610 * x86-64-tdep.c (x86_64_init_abi): Update.
5611 * vax-tdep.c (vax_gdbarch_init): Update.
5612 * v850-tdep.c (v850_gdbarch_init): Update.
5613 * sparc-tdep.c (sparc_gdbarch_init): Update.
5614 * sh-tdep.c (sh_gdbarch_init): Update.
5615 * s390-tdep.c (s390_gdbarch_init): Update.
5616 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5617 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5618 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5619 * mips-tdep.c (mips_gdbarch_init): Update.
5620 * mcore-tdep.c (mcore_gdbarch_init): Update.
5621 * m68k-tdep.c (m68k_gdbarch_init): Update.
5622 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5623 * ia64-tdep.c (ia64_gdbarch_init): Update.
5624 * i386-tdep.c (i386_gdbarch_init): Update.
5625 * hppa-tdep.c (hppa_gdbarch_init): Update.
5626 * h8300-tdep.c (h8300_gdbarch_init): Update.
5627 * frv-tdep.c (frv_gdbarch_init): Update.
5628 * cris-tdep.c (cris_gdbarch_init): Update.
5629 * avr-tdep.c (avr_gdbarch_init): Update.
5630 * arm-tdep.c (arm_gdbarch_init): Update.
5631 * alpha-tdep.c (alpha_gdbarch_init): Update.
5632
1594fa56
AC
56332003-03-13 Andrew Cagney <cagney@redhat.com>
5634
5635 * frame.c (legacy_frame_p): New function.
5636 (get_prev_frame): Use legacy_frame_p.
5637 * frame.h (legacy_frame_p): Declare.
5638
7717fda3
V
56392003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
5640
fbe586ae 5641 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
5642 listing corrected.
5643
0c67cbe9
V
56442003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
5645
fbe586ae 5646 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 5647
03febf99
AC
56482003-03-12 Andrew Cagney <cagney@redhat.com>
5649
5650 * frame.c (get_prev_frame): Rename the frame parameter to
5651 "this_frame".
5652 (get_next_frame, legacy_get_prev_frame): Ditto.
5653
0a1e1ca1
AC
56542003-03-12 Andrew Cagney <cagney@redhat.com>
5655
5656 * frame.c (get_current_frame): Check target_has_registers before
5657 checking target_has_stack.
5658 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
5659 instead of deprecated_selected_frame.
5660 * findvar.c (value_of_register): Pass "frame", not
5661 deprecated_selected_frame, to value_of_builtin_reg.
5662
a66a9c23
AC
56632003-03-12 Andrew Cagney <cagney@redhat.com>
5664
5665 * regcache.c (regcache_cooked_write_signed): New function.
5666 (regcache_cooked_write_unsigned): New function.
5667 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
5668 (regcache_cooked_read_signed): Fix regnum in range assertion.
5669 * regcache.h (regcache_cooked_write_signed): Declare.
5670 (regcache_cooked_write_unsigned): Declare.
5671
8bedc050
AC
56722003-03-12 Andrew Cagney <cagney@redhat.com>
5673
5674 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
5675 * gdbarch.h, gdbarch.c: Re-generate.
5676 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5677 * x86-64-tdep.h: Update.
5678 * x86-64-tdep.c (x86_64_init_abi): Update.
5679 * v850-tdep.c (v850_gdbarch_init): Update.
5680 * sparc-tdep.c (sparc_gdbarch_init): Update.
5681 * sh-tdep.c (sh_gdbarch_init): Update.
5682 * s390-tdep.c (s390_gdbarch_init): Update.
5683 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5684 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5685 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5686 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5687 * mips-tdep.c (mips_gdbarch_init): Update.
5688 * mcore-tdep.c (mcore_gdbarch_init): Update.
5689 * m68k-tdep.c (m68k_gdbarch_init): Update.
5690 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5691 * ia64-tdep.c (ia64_gdbarch_init): Update.
5692 * i386-tdep.c (i386_gdbarch_init): Update.
5693 * i386-interix-tdep.c (i386_interix_init_abi): Update.
5694 * hppa-tdep.c (hppa_gdbarch_init): Update.
5695 * h8300-tdep.c (h8300_gdbarch_init): Update.
5696 * frv-tdep.c (frv_gdbarch_init): Update.
5697 * cris-tdep.c (cris_gdbarch_init): Update.
5698 * avr-tdep.c (avr_gdbarch_init): Update.
5699 * arm-tdep.c (arm_gdbarch_init): Update.
5700 * alpha-tdep.c (alpha_gdbarch_init): Update.
5701 * sh-tdep.c (sh_init_extra_frame_info): Update.
5702 (sh64_init_extra_frame_info): Update.
5703 * ns32knbsd-nat.c (frame_num_args): Update.
5704 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
5705 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
5706 (xstormy16_frame_chain_valid): Update.
5707 * vax-tdep.c (vax_saved_pc_after_call): Update.
5708 * v850-tdep.c (v850_frame_chain): Update.
5709 (v850_pop_frame): Update.
5710 (v850_init_extra_frame_info): Update.
5711 * sparc-tdep.c (setup_arbitrary_frame): Update.
5712 * ns32k-tdep.c (umax_frame_num_args): Update.
5713 * s390-tdep.c (s390_pop_frame_regular): Update.
5714 * mn10300-tdep.c (mn10300_frame_chain): Update.
5715 (mn10300_pop_frame_regular): Update.
5716 (mn10300_init_extra_frame_info): Update.
5717 * mips-tdep.c (mips_init_frame_pc_first): Update.
5718 (mips_frame_chain): Update.
5719 (mips_pop_frame): Update.
5720 * mcore-tdep.c (mcore_frame_chain): Update.
5721 (mcore_pop_frame): Update.
5722 (mcore_init_extra_frame_info): Update.
5723 * arch-utils.c (init_frame_pc_default): Update.
5724 * m68k-tdep.c (isi_frame_num_args): Update.
5725 (delta68_frame_num_args): Update.
5726 (news_frame_num_args): Update.
5727 * ia64-tdep.c (ia64_pop_frame_regular): Update.
5728 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5729 (alpha_frame_chain): Update.
5730 (alpha_pop_frame): Update.
5731 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
5732 (hppa_init_extra_frame_info): Update.
5733 (hppa_frame_chain): Update.
5734 (hppa_frame_chain_valid): Update.
5735 * cris-tdep.c (cris_init_extra_frame_info): Update.
5736 * avr-tdep.c (avr_init_extra_frame_info): Update.
5737 * arm-tdep.c (arm_frame_chain_valid): Update.
5738 (arm_init_extra_frame_info): Update.
5739 (arm_pop_frame): Update.
5740 * frame.c (frame_pc_unwind): Update.
5741 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
5742 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5743 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5744 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
5745 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
5746 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
5747
7a25a7c1
AC
57482003-03-12 Andrew Cagney <cagney@redhat.com>
5749
5750 Eliminate the need for POP_FRAME.
5751 * frame.c (do_frame_unwind_register): New function.
5752 (frame_pop): When no POP_FRAME, pop the frame using register
5753 unwind and a scratch regcache.
5754 (frame_saved_regs_pop): Delete function.
5755 (trad_frame_unwinder): Update.
5756 * d10v-tdep.c (d10v_frame_pop): Delete function.
5757 (d10v_frame_unwind): Update.
5758 * sentinel-frame.c (sentinel_frame_pop): Delete function.
5759 (sentinel_frame_unwinder): Update.
5760 * dummy-frame.c (dummy_frame_pop): Delete function.
5761 (dummy_frame_unwind): Update.
5762 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
5763 (struct frame_unwind): Update.
5764
2f38ef89
KB
57652003-03-11 Kevin Buettner <kevinb@redhat.com>
5766
5767 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
5768 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
5769 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
5770 Do range checks on register number obtained from debugging info.
5771 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
5772 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
5773 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
5774 mapping function.
5775 (do_fp_register_row): Fix typo which caused double type to be
5776 used when attempting to unpack a float.
5777
552f4abf
JB
57782003-03-11 J. Brobecker <brobecker@gnat.com>
5779
5780 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
5781
e0d2ae16
AC
57822003-03-11 Andrew Cagney <cagney@redhat.com>
5783
5784 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
5785 frame. Problem found by Corinna Vinschen.
5786
ddbfdd06
PM
57872003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
5788
5789 * doublest.c (floatformat_from_length): Accept also
5790 the real size of 'long double' type.
5791
088b2ddc 57922003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 5793
088b2ddc 5794 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
5795 * breakpoint.c (bpstat_copy): Copy the command lines as well
5796 as the old value, to match what is freed in bpstat_clear.
5797
f56f77c1
DC
57982003-03-10 David Carlton <carlton@math.stanford.edu>
5799
5800 * minsyms.c (add_minsym_to_hash_table): Replace
5801 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5802 (compare_minimal_symbols, compact_minimal_symbols)
5803 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
5804 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
5805 of DEPRECATED_SYMBOL_MATCHES_NAME.
5806 (lookup_minimal_symbol_solib_trampoline): Ditto.
5807
5602984a
AC
58082003-03-10 Andrew Cagney <cagney@redhat.com>
5809
5810 * regcache.h (regcache_cooked_read_ftype): Define.
5811 (regcache_save, regcache_restore): Add a cooked_read parameter.
5812 * regcache.c (regcache_save, regcache_restore): Update.
5813 (do_cooked_read): New function.
5814 (regcache_cpy): Pass do_cooked_read to regcache_save and
5815 regcache_restore.
5816
8bedc050
AC
58172003-03-10 Andrew Cagney <cagney@redhat.com>
5818
5819 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
5820 * gdbarch.h, gdbarch.c: Re-generate.
5821 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5822 * x86-64-tdep.h: Update.
5823 * x86-64-tdep.c (x86_64_init_abi): Update.
5824 * v850-tdep.c (v850_gdbarch_init): Update.
5825 * sparc-tdep.c (sparc_gdbarch_init): Update.
5826 * sh-tdep.c (sh_gdbarch_init): Update.
5827 * s390-tdep.c (s390_gdbarch_init): Update.
5828 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5829 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5830 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5831 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5832 * mips-tdep.c (mips_gdbarch_init): Update.
5833 * mcore-tdep.c (mcore_gdbarch_init): Update.
5834 * m68k-tdep.c (m68k_gdbarch_init): Update.
5835 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5836 * ia64-tdep.c (ia64_gdbarch_init): Update.
5837 * i386-tdep.c (i386_gdbarch_init): Update.
5838 * i386-interix-tdep.c (i386_interix_init_abi): Update.
5839 * hppa-tdep.c (hppa_gdbarch_init): Update.
5840 * h8300-tdep.c (h8300_gdbarch_init): Update.
5841 * frv-tdep.c (frv_gdbarch_init): Update.
5842 * cris-tdep.c (cris_gdbarch_init): Update.
5843 * avr-tdep.c (avr_gdbarch_init): Update.
5844 * arm-tdep.c (arm_gdbarch_init): Update.
5845 * alpha-tdep.c (alpha_gdbarch_init): Update.
5846 * sh-tdep.c (sh_init_extra_frame_info): Update.
5847 (sh64_init_extra_frame_info): Update.
5848 * ns32knbsd-nat.c (frame_num_args): Update.
5849 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
5850 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
5851 (xstormy16_frame_chain_valid): Update.
5852 * vax-tdep.c (vax_saved_pc_after_call): Update.
5853 * v850-tdep.c (v850_frame_chain): Update.
5854 (v850_pop_frame): Update.
5855 (v850_init_extra_frame_info): Update.
5856 * sparc-tdep.c (setup_arbitrary_frame): Update.
5857 * ns32k-tdep.c (umax_frame_num_args): Update.
5858 * s390-tdep.c (s390_pop_frame_regular): Update.
5859 * mn10300-tdep.c (mn10300_frame_chain): Update.
5860 (mn10300_pop_frame_regular): Update.
5861 (mn10300_init_extra_frame_info): Update.
5862 * mips-tdep.c (mips_init_frame_pc_first): Update.
5863 (mips_frame_chain): Update.
5864 (mips_pop_frame): Update.
5865 * mcore-tdep.c (mcore_frame_chain): Update.
5866 (mcore_pop_frame): Update.
5867 (mcore_init_extra_frame_info): Update.
5868 * arch-utils.c (init_frame_pc_default): Update.
5869 * m68k-tdep.c (isi_frame_num_args): Update.
5870 (delta68_frame_num_args): Update.
5871 (news_frame_num_args): Update.
5872 * ia64-tdep.c (ia64_pop_frame_regular): Update.
5873 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5874 (alpha_frame_chain): Update.
5875 (alpha_pop_frame): Update.
5876 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
5877 (hppa_init_extra_frame_info): Update.
5878 (hppa_frame_chain): Update.
5879 (hppa_frame_chain_valid): Update.
5880 * cris-tdep.c (cris_init_extra_frame_info): Update.
5881 * avr-tdep.c (avr_init_extra_frame_info): Update.
5882 * arm-tdep.c (arm_frame_chain_valid): Update.
5883 (arm_init_extra_frame_info): Update.
5884 (arm_pop_frame): Update.
5885 * frame.c (frame_pc_unwind): Update.
5886 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
5887 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5888 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5889 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
5890 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
5891 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
5892
12cc2063
AC
58932003-03-10 Andrew Cagney <cagney@redhat.com>
5894
5895 * gdbarch.sh (gdbarch_unwind_pc): New method.
5896 * gdbarch.h, gdbarch.c: Regenerate.
5897 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
5898 but use read_pc and FRAME_SAVED_PC as fall backs.
5899 (frame_saved_regs_pc_unwind): Delete function.
5900 (trad_frame_unwinder): Update.
5901 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
5902 (struct frame_unwind): Update.
5903 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
5904 (dummy_frame_unwind): Update.
5905 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
5906 (sentinel_frame_unwinder): Update.
5907 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
5908 (d10v_frame_unwind): Update.
5909 (d10v_unwind_pc): New function.
5910 (d10v_gdbarch_init): Set unwind_pc.
5911
ef840a37
AC
59122003-03-10 Andrew Cagney <cagney@redhat.com>
5913
a2ce2e56
AC
5914 * gdbarch.h: Re-generate.
5915
ef840a37
AC
5916 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
5917 PC.
5918 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
5919 the PC register.
5920
08f3424b
MK
59212003-03-08 Mark Kettenis <kettenis@gnu.org>
5922
5923 * gdbarch.sh (save_dummy_frame_tos): Add comment.
5924
1248ede2
AC
59252003-03-08 Andrew Cagney <cagney@redhat.com>
5926
5927 * cli-out.c: Update copyright.
5928 (cli_out_data): Define typedef. Use instead of ui_out_data.
5929
f49bacc8
AC
59302003-03-08 Andrew Cagney <cagney@redhat.com>
5931
5932 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
5933 the result.
5934
9b05f993
AC
59352003-03-07 Andrew Cagney <cagney@redhat.com>
5936
5937 * gdbarch.sh: Don't generate two macro definitions when an
5938 undefined macro taking no arguments.
5939 * gdbarch.h: Regenerate.
5940
166f4c7b
ML
59412002-03-07 Michal Ludvig <mludvig@suse.cz>
5942
5943 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
5944 (x86_64_unwind_dummy_id): New functions.
5945 (x86_64_init_abi): Register these two new functions.
5946
6d686a84
ML
59472003-03-07 Michal Ludvig <mludvig@suse.cz>
5948
5949 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
5950 (x86_64_skip_prologue): Move prologue detection to
5951 separate function.
5952 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
5953
6314f104
AC
59542003-03-05 Andrew Cagney <cagney@redhat.com>
5955
5956 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
5957 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
5958 * frame.c (get_prev_frame): Restructure the frame ID unwind code
5959 to use unwind_dummy_id when a dummy frame.
5960 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
5961 predicate.
5962 * gdbarch.h, gdbarch.c: Regneerate.
5963
ceea5145
AC
59642003-03-05 Andrew Cagney <cagney@redhat.com>
5965
5966 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
5967 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
5968 Do not use d10v_read_sp or d10v_read_fp when obtaining register
5969 values.
5970
0d843116
AC
59712003-03-05 Andrew Cagney <cagney@redhat.com>
5972
5973 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
5974 (struct d10v_unwind_cache): Delete field "frameless". Replace
5975 "next_addr" with "sp_offset". Add "r11_offset".
5976 (d10v_frame_unwind_cache): Update.
5977 (prologue_find_regs): Update. When "mv r11, sp", save the
5978 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
5979 RN was saved in r11_offset.
5980
b2579786
AC
59812003-03-05 Andrew Cagney <cagney@redhat.com>
5982
5983 * frame.c (deprecated_update_frame_pc_hack): Also update the the
5984 cached PC value in the next frame.
5985
218e5956
AC
59862003-03-05 Andrew Cagney <cagney@redhat.com>
5987
5988 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
5989 "id_unwind_cache" with "id".
5990 (frame_id_unwind): Delete declaration.
5991 * frame.c (frame_id_unwind): Delete function.
5992 (get_prev_frame): Call the frame id unwind method directly. Store
5993 the returned next frame's ID value in NEXT_FRAME. Note that there
5994 is a problem with the wrong unwind ID being called with the wrong
5995 unwind cache.
5996
ed363b1b
DJ
59972003-03-05 Daniel Jacobowitz <drow@mvista.com>
5998
5999 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
6000
fe1f4a5e
DJ
60012003-03-05 James Ingham <jingham@apple.com>
6002 Daniel Jacobowitz <drow@mvista.com>
6003
6004 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
6005 (auto_cp_abi): New variable.
6006 (current_cp_abi, num_cp_abis): Make static.
6007 (CP_ABI_MAX): Define.
6008 (cp_abis): Turn into an array.
6009 (value_virtual_fn_field): Fix formatting.
6010 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
6011 takes a pointer.
6012 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
6013 (list_cp_abis, _initialize_cp_abi): New functions.
6014 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
6015 declarations for cp_abis, num_cp_abis, current_cp_abi, and
6016 switch_to_cp_abi. Update prototype for register_cp_abi.
6017 * Makefile.in (cp-abi.o): Update dependencies.
6018 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
6019 instead of switch_to_cp_abi.
6020 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
6021 register_cp_abi.
6022 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
6023 register_cp_abi.
6024 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
6025
e4adbba9
DJ
60262003-03-05 Daniel Jacobowitz <drow@mvista.com>
6027
6028 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
6029 * dwarf2loc.c: Include "regcache.h".
6030 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
6031 register_size.
6032 * Makefile.in (dwarf2loc.o): Update dependencies.
6033
91ccbfc1
TR
60342003-03-04 Theodore A. Roth <troth@openavr.org>
6035
6036 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
6037 number of io registers reported by remote target is not a multiple of
6038 step.
6039
3d4e8fd2
DC
60402003-03-04 David Carlton <carlton@math.stanford.edu>
6041
6042 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
6043 (lookup_symbol_aux_psymtabs): Update call to
6044 lookup_partial_symbol.
6045 (lookup_transparent_type, find_main_psymtab)
6046 (make_symbol_overload_list): Ditto.
6047
ed42d87b
KH
60482003-03-04 Kazu Hirata <kazu@cs.umass.edu>
6049
6050 * MAINTAINERS (Write after approval): Update my email address.
6051
a0ed5532
AC
60522003-03-03 Andrew Cagney <cagney@redhat.com>
6053
6054 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
6055 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
6056 predicate. Replace MAX_REGISTER_RAW_SIZE.
6057 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
6058 MAX_REGISTER_VIRTUAL_SIZE.
6059 * regcache.c (legacy_max_register_raw_size): New function.
6060 (legacy_max_register_virtual_size): New function.
6061 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
6062 (MAX_REGISTER_RAW_SIZE): Define.
6063 (legacy_max_register_raw_size): Declare.
6064 (legacy_max_register_virtual_size): Declare.
6065 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6066 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
6067 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6068 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
6069 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6070 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
6071 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6072 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6073 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6074 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6075 * vax-tdep.c (vax_gdbarch_init): Update.
6076 * v850-tdep.c (v850_gdbarch_init): Update.
6077 * sparc-tdep.c (sparc_gdbarch_init): Update.
6078 * sh-tdep.c (sh_gdbarch_init): Update.
6079 * s390-tdep.c (s390_gdbarch_init): Update.
6080 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6081 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6082 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6083 * mips-tdep.c (mips_gdbarch_init): Update.
6084 * mcore-tdep.c (mcore_gdbarch_init): Update.
6085 * m68k-tdep.c (m68k_gdbarch_init): Update.
6086 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6087 * ia64-tdep.c (ia64_gdbarch_init): Update.
6088 * i386-tdep.c (i386_gdbarch_init): Update.
6089 * hppa-tdep.c (hppa_gdbarch_init): Update.
6090 * h8300-tdep.c (h8300_gdbarch_init): Update.
6091 * frv-tdep.c (frv_gdbarch_init): Update.
6092 * cris-tdep.c (cris_gdbarch_init): Update.
6093 * avr-tdep.c (avr_gdbarch_init): Update.
6094 * arm-tdep.c (arm_gdbarch_init): Update.
6095 * alpha-tdep.c (alpha_gdbarch_init): Update.
6096 * d10v-tdep.c (d10v_gdbarch_init): Do not set
6097 max_register_raw_size or max_register_virtual_size.
6098
8e437497
DC
60992003-03-03 David Carlton <carlton@math.stanford.edu>
6100
6101 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
6102 SYMBOL_MATCHES_NAME, add comment.
6103 (SYMBOL_MATCHES_NATURAL_NAME): New.
6104 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
6105 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
6106 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
6107 * symtab.c (lookup_partial_symbol): Use
6108 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
6109 unhelpful comment.
6110 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
6111 SYMBOL_MATCHES_NAME.
6112 Fix for PR c++/33.
6113
25120b0d
DC
61142003-03-03 David Carlton <carlton@math.stanford.edu>
6115
6116 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
6117 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
6118 by regexp matching against SYMBOL_NATURAL_NAME.
6119
78a11fb4
DC
61202003-03-03 David Carlton <carlton@math.stanford.edu>
6121
6122 * linespec.c (find_method): Extract code into collect_methods.
6123 (collect_methods): New.
6124
645dd519
MK
61252003-03-02 Mark Kettenis <kettenis@gnu.org>
6126
b4700d91
MK
6127 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
6128 get_frame_base.
6129
645dd519
MK
6130 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
6131 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6132
0aa7e1aa
SC
61332003-03-02 Stephane Carrez <stcarrez@nerim.fr>
6134
6135 * arch-utils.c (generic_register_byte): Fix to use the loop index
6136 and not regnum when summing the size of all registers up to regnum.
6137
f30ee0bc
AC
61382003-03-01 Andrew Cagney <cagney@redhat.com>
6139
6140 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
6141 FRAME_INIT_SAVED_REGS.
6142 * gdbarch.h, gdbarch.c: Regenerate.
6143 * stack.c (frame_info): Update.
6144 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
6145 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
6146 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
6147 * ns32k-tdep.c (ns32k_pop_frame): Update.
6148 * mips-tdep.c (mips_pop_frame): Update.
6149 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
6150 * ia64-tdep.c (ia64_frame_chain): Update.
6151 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
6152 (ia64_frameless_function_invocation): Update.
6153 (ia64_init_extra_frame_info): Update.
6154 (ia64_pop_frame_regular): Update.
6155 * frame.h (struct frame_info): Update comment.
6156 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
6157 * frame.c (frame_saved_regs_register_unwind): Update.
6158 (frame_saved_regs_register_unwind): Update.
6159 (deprecated_generic_get_saved_register): Update.
6160 * cris-tdep.c: Update comment.
6161 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
6162 Rename macro.
6163 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6164 * x86-64-tdep.c (x86_64_init_abi): Update.
6165 * vax-tdep.c (vax_gdbarch_init): Update.
6166 * v850-tdep.c (v850_gdbarch_init): Update.
6167 * sparc-tdep.c (sparc_gdbarch_init): Update.
6168 * sh-tdep.c (sh_gdbarch_init): Update.
6169 * s390-tdep.c (s390_gdbarch_init): Update.
6170 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6171 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6172 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6173 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6174 * mips-tdep.c (mips_gdbarch_init): Update.
6175 * mcore-tdep.c (mcore_gdbarch_init): Update.
6176 * m68k-tdep.c (m68k_gdbarch_init): Update.
6177 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6178 * ia64-tdep.c (ia64_gdbarch_init): Update.
6179 * i386-tdep.c (i386_gdbarch_init): Update.
6180 * frv-tdep.c (frv_gdbarch_init): Update.
6181 * avr-tdep.c (avr_gdbarch_init): Update.
6182 * arm-tdep.c (arm_gdbarch_init): Update.
6183 * alpha-tdep.c (alpha_gdbarch_init): Update.
6184
42fa7c0f
AC
61852003-03-01 Andrew Cagney <cagney@redhat.com>
6186
6187 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
6188 option enum and switch. When no windows, set the interpreter to
6189 INTERP_CONSOLE.
6190
49c7e338
AC
61912003-03-01 Andrew Cagney <cagney@redhat.com>
6192
6193 * main.c (captured_main): Replace magic option characters with an
6194 enum.
6195
e9582e71
AC
61962003-03-01 Andrew Cagney <cagney@redhat.com>
6197
6198 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
6199 INIT_EXTRA_FRAME_INFO.
6200 * gdbarch.h, gdbarch.c: Regenerate.
6201 * arm-tdep.c: Update comments.
6202 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
6203 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
6204 * frame.h, avr-tdep.c: Ditto.
6205 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
6206 (create_new_frame, legacy_get_prev_frame): Ditto.
6207 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
6208 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
6209 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
6210 deprecated_init_extra_frame_info instead of init_extra_frame_info.
6211 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6212 * v850-tdep.c (v850_gdbarch_init): Ditto.
6213 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6214 * sh-tdep.c (sh_gdbarch_init): Ditto.
6215 * s390-tdep.c (s390_gdbarch_init): Ditto.
6216 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
6217 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6218 * mips-tdep.c (mips_gdbarch_init): Ditto.
6219 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6220 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6221 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6222 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
6223 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6224 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6225 * frv-tdep.c (frv_gdbarch_init): Ditto.
6226 * cris-tdep.c (cris_gdbarch_init): Ditto.
6227 * avr-tdep.c (avr_gdbarch_init): Ditto.
6228 * arm-tdep.c (arm_gdbarch_init): Ditto.
6229 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6230 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6231
35cac7cf
AC
62322003-03-01 Andrew Cagney <cagney@redhat.com>
6233
6234 * gdbarch.sh (register_type): New function with predicate.
6235 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
6236 * gdbarch.h, gdbarch.c: Re-generate.
6237 * arch-utils.c (generic_register_byte): Use generic_register_size.
6238 (generic_register_size): When available, use
6239 gdbarch_register_type.
6240 * regcache.c (init_regcache_descr): When available, initialize the
6241 register type array using gdbarch_register_type. If the
6242 architecture supplies gdbarch_register_type, do not use the legacy
6243 regcache layout.
6244 * d10v-tdep.c (d10v_register_type): Replace
6245 d10v_register_virtual_type.
6246 (d10v_gdbarch_init): Set register_type instead of
6247 register_virtual_type.
6248
7b83296f
AC
62492003-03-01 Andrew Cagney <cagney@redhat.com>
6250
6251 * Makefile.in (ax-gdb.o): Update dependencies.
6252 * ax-gdb.c: Include "regcache.h".
6253 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
6254 * findvar.c (value_of_register): Ditto.
6255 * infcmd.c (default_print_registers_info): Ditto.
6256
eadc1c87
MK
62572003-03-01 Mark Kettenis <kettenis@gnu.org>
6258
6259 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
6260 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6261
14143612
MK
62622003-03-01 Mark Kettenis <kettenis@gnu.org>
6263
6264 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
6265 of STREQ.
6266
a55cc764
DJ
62672003-02-28 Daniel Jacobowitz <drow@mvista.com>
6268
6269 * Makefile.in (dwarf2loc.o): Update dependencies.
6270 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
6271 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
6272 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
6273 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
6274 (locexpr_tracepoint_var_ref): New function.
6275 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
6276
08a617da
AC
62772003-02-28 Andrew Cagney <cagney@redhat.com>
6278
6279 * regcache.c (register_size): New function.
6280 * regcache.h (register_size): Declare
6281 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
6282 max_register_size instead of MAX_REGISTER_RAW_SIZE.
6283
4224873a
DC
62842003-02-28 David Carlton <carlton@math.stanford.edu>
6285
6286 * linespec.c (decode_compound): Extract code into find_method.
6287 (find_method): New.
6288
ccdc5d7f
JB
62892003-02-28 J. Brobecker <brobecker@gnat.com>
6290
6291 * Makefile.in: Add rules to build and link in observer.o.
6292
974e8ced
JB
62932003-02-27 J. Brobecker <brobecker@gnat.com>
6294
6295 * observer.c: Minor comments edits.
6296
7a28f973
JB
62972003-02-27 J. Brobecker <brobecker@gnat.com>
6298
6299 * observer.h, observer.c: New file.
6300
27cddce2
AC
63012003-02-27 Andrew Cagney <cagney@redhat.com>
6302
6303 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
6304
b94a41a1
SC
63052003-02-27 Stephane Carrez <stcarrez@nerim.fr>
6306
6307 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
6308 (M6812_OP_STS_EXT): Likewise.
6309 (m6811_prologue): Use the above to recognize prologue.
6310 (m6812_prologue): Likewise.
6311
c8be8951
DC
63122003-02-27 David Carlton <carlton@math.stanford.edu>
6313
6314 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
6315 SYMBOL_PRINT_NAME.
6316 (compare_psymbols): Ditto.
6317 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
6318
d05bb1fc
MS
63192003-02-27 Michael Snyder <msnyder@redhat.com>
6320
4e845cd3
MS
6321 * f-lang.c (build_fortran_types): New function.
6322 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
6323 * doublest.c (extract_floating): Fix warning text.
6324
f3824013
AC
63252003-02-27 Andrew Cagney <cagney@redhat.com>
6326
6327 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
6328 predicate. Replaces PUSH_DUMMY_FRAME.
6329 * gdbarch.h, gdbarch.c: Regnerate.
6330 * valops.c (hand_function_call): Update. Call
6331 generic_push_dummy_frame directly.
6332 * vax-tdep.c (vax_gdbarch_init): Update.
6333 * sparc-tdep.c (sparc_gdbarch_init): Update.
6334 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6335 * m68k-tdep.c (m68k_gdbarch_init): Update.
6336 * hppa-tdep.c (hppa_gdbarch_init): Update.
6337 * alpha-tdep.c (alpha_gdbarch_init): Update.
6338 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
6339 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
6340 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
6341 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
6342 push_dummy_frame to generic_push_dummy_frame.
6343 * v850-tdep.c (v850_gdbarch_init): Ditto.
6344 * sh-tdep.c (sh_gdbarch_init): Ditto.
6345 * s390-tdep.c (s390_gdbarch_init): Ditto.
6346 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6347 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6348 * mips-tdep.c (mips_gdbarch_init): Ditto.
6349 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6350 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6351 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6352 * i386-tdep.c (i386_gdbarch_init): Ditto.
6353 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6354 * frv-tdep.c (frv_gdbarch_init): Ditto.
6355 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6356 * cris-tdep.c (cris_gdbarch_init): Ditto.
6357 * avr-tdep.c (avr_gdbarch_init): Ditto.
6358 * arm-tdep.c (arm_gdbarch_init): Ditto.
6359
ad188201
KB
63602003-02-26 Kevin Buettner <kevinb@redhat.com>
6361
6362 * mips-tdep.c (show_mips_abi): New function.
6363 (_initialize_mips_tdep): Use show_mips_abi() to implement the
6364 command ``show mips abi''.
6365
6b37567a
JJ
63662003-02-26 Jeff Johnston <jjohnstn@redhat.com>
6367
6368 From Elena Zannoni <ezannoni@redhat.com>
6369 * dbxread.c (process_one_symbol): Only record line 0 if one or
6370 more sline entries have been seen for the function.
6371
d3e0a5bf
MC
63722003-02-26 Michael Chastain <mec@shout.net>
6373
6374 * configure: Regenerate with autoconf 000227.
6375
18972eea
MC
63762003-02-26 Michael Chastain <mec@shout.net>
6377
6378 Close PR build/660.
6379 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
6380 for old libc5/glibc.
6381 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
6382
0bbde931
KW
63832003-02-26 Kris Warkentin <kewarken@qnx.com>
6384
6385 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
6386 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
6387
27ca5dad
MC
63882003-02-26 Michael Chastain <mec@shout.net>
6389
6390 * configure.in: New variable HAVE_UINTPTR_T.
6391 * configure, config.in: Regenerated.
6392
6f88d630
DJ
63932003-02-26 Daniel Jacobowitz <drow@mvista.com>
6394
6395 Fix PR build/1097.
6396 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
6397
b14185ce
AC
63982003-02-25 Andrew Cagney <cagney@redhat.com>
6399
6400 * frame.c (get_prev_frame): Add comment on check for
6401 inside_entry_func. Only check for inside_entry_file when not a
6402 dummy and not a sentinel. Check that the new frame is not inner
6403 to the old frame.
6404
ac2bd0a9
AC
64052003-02-25 Andrew Cagney <cagney@redhat.com>
6406
6407 * frame.c (frame_debug): New variable.
6408 (_initialize_frame): Add "set/show debug frame" command.
6409 (get_prev_frame): When frame_debug, print reason why unwind
6410 failed.
6411
b18a0fd2
MC
64122003-02-25 Michael Chastain <mec@shout.net>
6413
6414 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
6415 to avoid uintptr_t definition problems.
6416
22abf04a
DC
64172003-02-25 David Carlton <carlton@math.stanford.edu>
6418
6419 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
6420 (SYMBOL_LINKAGE_NAME): Ditto.
6421 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
6422 SYMBOL_LINKAGE_NAME.
6423 (struct general_symbol_info): Expand comment.
6424 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
6425 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
6426 (SYMBOL_MATCHES_REGEXP): Ditto.
6427 * symtab.c (symbol_natural_name): New function.
6428 * objfiles.h: Replace all uses of SYMBOL_NAME by
6429 DEPRECATED_SYMBOL_NAME.
6430 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
6431 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
6432 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
6433 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
6434 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
6435 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
6436 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
6437 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
6438 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
6439 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
6440 * ada-exp.y: Ditto.
6441 * ada-exp.y: Update copyright.
6442 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
6443 * cp-valprint.c: Ditto.
6444
1a5848f6
JJ
64452003-02-25 Jeff Johnston <jjohnstn@redhat.com>
6446
6447 * infptrace.c (detach): Do not flag error if ptrace detach fails
6448 and errno is set to ESRCH.
6449
7343d46a
AC
64502003-02-24 Andrew Cagney <cagney@redhat.com>
6451
6452 * infptrace.c (udot_info): Change type of udot_off to long. Use
6453 paddr when printing udot_off's value.
6454
49fa1dc2
DC
64552003-02-24 David Carlton <carlton@math.stanford.edu>
6456
6457 * symtab.c (make_symbol_overload_list): Only read in partial
6458 symtabs containing a matching partial symbol.
6459
0fe19209
DC
64602003-02-24 David Carlton <carlton@math.stanford.edu>
6461
6462 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
6463 do the comparison, not strcmp.
6464 * symfile.c (compare_psymbols): Ditto.
6465 * defs.h: Declare strcmp_iw_ordered.
6466 * utils.c (strcmp_iw_ordered): New function.
6467
8e3ee7b5
JB
64682003-02-24 Jim Blandy <jimb@redhat.com>
6469
6470 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
6471 support, shared libs): Remove my name from here, to better reflect
6472 reality.
6473
7df1a324
KW
64742003-02-24 Kris Warkentin <kewarken@qnx.com>
6475
6476 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
6477 (target_ops): Add to_have_continuable_watchpoint.
6478 * target.c (update_current_target): Add INHERIT line for
6479 to_have_continuable_watchpoint.
6480 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
6481 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
6482 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
6483 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
6484
d1c76907
EZ
64852003-02-24 Elena Zannoni <ezannoni@redhat.com>
6486
6487 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
6488 maintainership.
6489
2610b0bf
KW
64902003-02-24 Kris Warkentin <kewarken@qnx.com>
6491
f46169db
KW
6492 * solib.c (solib_open): Call target defined search function after
6493 failing with solib-search-path.
6494 * solist.h (target_so_ops): Add find_and_open_solib function hook and
6495 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 6496
9a3c34fe
KW
64972003-02-24 Kris Warkentin <kewarken@qnx.com>
6498
f46169db 6499 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 6500
2417dd25
SC
65012003-02-23 Stephane Carrez <stcarrez@nerim.fr>
6502
6503 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
6504
b631436b
SC
65052003-02-22 Stephane Carrez <stcarrez@nerim.fr>
6506
6507 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
6508 (m68hc11_add_reggroups): New function.
6509 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
6510 (m68hc11_gdbarch_init): Install the reggroups.
6511 (_initialize_m68hc11_tdep): Initialize them.
6512
0aa8c1e4
JW
65132003-02-21 James E Wilson <wilson@tuliptree.org>
6514
6515 * MAINTAINERS: Update my email address.
6516
50ceaba5
DC
65172003-02-21 David Carlton <carlton@math.stanford.edu>
6518
6519 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
6520
4c2df51b
DJ
65212003-02-21 Daniel Jacobowitz <drow@mvista.com>
6522
6523 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
6524 * symtab.h: Add opaque declarations of struct axs_value and
6525 struct agent_expr.
6526 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
6527 (struct location_funcs): New type.
6528 (struct symbol): Add "loc" to aux_value.
6529 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
6530 * dwarf2read.c: Include "dwarf2expr.h".
6531 (dwarf2_symbol_mark_computed): New function.
6532 (read_func_scope): Use it.
6533 (var_decode_location): New function.
6534 (new_symbol): Use it.
6535 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
6536
6537 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
6538 (dwarf2expr_h, dwarf2loc_h): New variables.
6539 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
6540 (dwarf2expr.o, dwarf2loc.o): New rules.
6541 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
6542 * buildsym.c (finish_block): Handle LOC_COMPUTED and
6543 LOC_COMPUTED_ARG.
6544 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6545 * m2-exp.y (yylex): Likewise.
6546 * printcmd.c (address_info, print_frame_args): Likewise.
6547 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
6548 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6549 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
6550 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
6551 * symtab.c (lookup_block_symbol): Likewise.
6552
5784d15e
AF
65532003-02-20 Adam Fedor <fedor@gnu.org>
6554
6555 * symtab.h: Remove objc_specific struct
6556 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
6557 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
6558 Have language_objc use cplus_specific struct.
6559
d4cad8db
TT
65602003-02-20 Tom Tromey <tromey@redhat.com>
6561
6562 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
6563 TYPE_NAME, when printing a String value. PR java/1075.
6564
2f9a90b4
AF
65652003-02-20 Adam Fedor <fedor@gnu.org>
6566
d38074a8 6567 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 6568 * objc-lang.c (find_methods): Make static.
2f9a90b4 6569
6f17862b
CF
65702003-02-20 Christopher Faylor <cgf@redhat.com>
6571
6572 * win32-nat.c (get_image_name): Check return value from
6573 ReadProcessMemory.
6574 (child_xfer_memory): Ditto.
6575
715d1656
AO
65762003-02-20 Alexandre Oliva <aoliva@redhat.com>
6577
6578 * configure.in (TARGET_SYSTEM_ROOT): Set default to
6579 ${exec_prefix}/${target_alias}/sys-root. Match explicit
6580 '${exec_prefix}' (in addition to the expansion thereof) as
6581 relocatable.
6582 * configure: Rebuilt.
6583
b1262a02
DC
65842003-02-20 David Carlton <carlton@math.stanford.edu>
6585
6586 * symtab.c (search_symbols): Revert the search_symbols part of my
6587 2002-12-23 patch. Add comment.
6588
7134143f
DJ
65892002-02-20 Daniel Jacobowitz <drow@mvista.com>
6590
6591 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
6592 * dbxread.c (elfstab_build_psymtabs): Don't call
6593 install_minimal_symbols.
6594 (stabsect_build_psymtabs): Likewise.
6595 * elfread.c (elf_symfile_read): Call install_minimal_symbols
6596 earlier.
6597 * somread.c (som_symfile_read): Call install_minimal_symbols
6598 and do_cleanups earlier.
6599 * nlmread.c (nlm_symfile_read): Likewise.
6600 * mdebugread.c (elfmdebug_build_psymtabs): Call
6601 install_minimal_symbols and make appropriate cleanups.
6602
cf466558
KB
66032003-02-20 Kevin Buettner <kevinb@redhat.com>
6604
6605 * solib.c (reload_shared_libraries): New function.
6606 (_initialize_solib): Add callbacks for ``set solib-search-path''
6607 and ``set solib-absolute-prefix''.
6608
de5ad195
DC
66092003-02-20 David Carlton <carlton@math.stanford.edu>
6610
6611 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
6612 expand comment.
6613 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
6614 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
6615 * ada-typeprint.c (ada_typedef_print): Ditto.
6616 * ax-gdb.c (gen_var_ref): Ditto.
6617 * breakpoint.c (print_one_breakpoint): Ditto.
6618 * buildsym.c (finish_block): Ditto.
6619 * c-valprint.c (c_val_print): Ditto.
6620 * expprint.c (print_subexp): Ditto.
6621 * findvar.c (locate_var_value): Ditto.
6622 * infcmd.c (jump_command): Ditto.
6623 * linespec.c (decode_line_2, decode_compound): Ditto.
6624 * maint.c (maintenance_translate_address): Ditto.
6625 * objc-lang.c (compare_selectors, compare_classes): Ditto.
6626 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
6627 Ditto.
6628 * p-valprint.c (pascal_val_print): Ditto.
6629 * stabsread.c (define_symbol): Ditto.
6630 * stack.c (print_frame, frame_info, print_block_frame_locals)
6631 (print_frame_arg_vars, return_command): Ditto.
6632 * symfile.c (compare_symbols, compare_psymbols): Ditto.
6633 * symmisc.c (print_symbol): Ditto.
6634 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
6635 (compare_search_syms, print_symbol_info, print_msymbol_info)
6636 (rbreak_command): Ditto.
6637 * tracepoint.c (tracepoints_info): Ditto.
6638 * typeprint.c (typedef_print): Ditto.
6639 * valops.c (value_of_variable, hand_function_call): Ditto.
6640 * cli/cli-cmds.c (edit_command, list_command): Ditto.
6641 * ada-typeprint.c: Update Copyright.
6642 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
6643 * tracepoint.c, cli/cli-cmds.c: Ditto.
6644
f796e4be
KB
66452003-02-20 Kevin Buettner <kevinb@redhat.com>
6646
6647 * frame.c (generic_unwind_get_saved_register): Make non-static.
6648 * frame.h (generic_unwind_get_saved_register): Declare.
6649 * mips-tdep.c (read_next_frame_reg): Fetch register from
6650 current regcache when frame is NULL.
6651 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
6652 that must be NULL.
6653 (mips_get_saved_register): Call generic_unwind_get_saved_register()
6654 instead of frame_register_unwind().
6655
836cc9f4
AC
66562003-02-20 Andrew Cagney <ac131313@redhat.com>
6657
6658 * remote-sim.c (gdbsim_insert_breakpoint)
6659 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
6660 code.
6661
501eef12
AC
66622003-02-20 Andrew Cagney <ac131313@redhat.com>
6663
6664 * remote.c (_initialize_remote): Add commands "set/show remote
6665 hardware-watchpoint-limit" and "set/show remote
6666 hardware-breakpoint-limit".
6667 (remote_hw_watchpoint_limit): Initialize to -1.
6668 (remote_hw_breakpoint_limit): Ditto.
6669 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
6670
1b6bc7e0
CF
66712003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
6672
6673 * coff-pe-read.c: New file - support reading of minimal symbols from a
6674 portable executable using the export table.
6675 * coff-pe-read.h: New file.
6676 * coffread.c: Include coff-pe-read.h.
6677 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
6678 debugging symbols found.
6679 * Makefile.in (SFILES): Add coff-pe-read.o.
6680 (coff_pe_read_h): Define.
6681 (COMMON_OBS): Add coff-pe-read.o.
6682 (coffread.o): Add coff_pe_read_h dependency.
6683 (coff-pe-read.o): New target.
6684
fe898f56
DC
66852003-02-19 David Carlton <carlton@math.stanford.edu>
6686
6687 * Makefile.in (SFILES): Add block.c.
6688 (block_h): New.
6689 (COMMON_OBS): Add block.o.
6690 (block.o): New.
6691 (x86-64-tdep.o): Add $(block_h).
6692 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
6693 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
6694 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
6695 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
6696 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
6697 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
6698 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
6699 * value.h: Add opaque declaration for struct block.
6700 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
6701 * ada-lang.h: Ditto.
6702 * x86-64-tdep.c: #include "block.h"
6703 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
6704 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
6705 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
6706 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
6707 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
6708 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
6709 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
6710 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
6711 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
6712 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
6713 * symtab.c (block_function): Ditto.
6714 (contained_in): Ditto.
6715 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
6716 block.h. Add opaque declaration for struct block.
6717 * symtab.h: Move block_function and contained_in declarations to
6718 block.h. Add opaque declarations for struct block, struct
6719 blockvector.
6720 (struct block): Move to block.h.
6721 (struct blockvector): Ditto.
6722 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
6723 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
6724 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
6725 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
6726 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
6727 Ditto.
6728 * block.c: New file.
6729 * block.h: New file.
6730
173345b5
TR
67312003-02-19 Theodore A. Roth <troth@openavr.org>
6732
6733 * avr-tdep.c (avr_extract_return_value): Remove function.
6734 (avr_store_return_value): Remove function.
6735 (avr_extract_struct_value_address): Remove function.
6736 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
6737
338ef23d
AC
67382003-02-19 Andrew Cagney <ac131313@redhat.com>
6739
6740 * rs6000-tdep.c: Include "gdb_assert.h".
6741 (registers_e500): Add "acc" and "spefscr".
6742 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
6743 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
6744 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
6745 really is "r0".
6746 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
6747
5412f5f3
KS
67482003-02-18 Keith Seitz <keiths@redhat.com>
6749
6750 * Makefile.in: Add gdbtk-interps.c.
6751
881324eb
KB
67522003-02-18 Kevin Buettner <kevinb@redhat.com>
6753
6754 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
6755 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
6756
6a2f5abf
AC
67572003-02-18 Andrew Cagney <cagney@redhat.com>
6758
6759 * symtab.h (struct objfile): Add opaque declaration.
6760
54c7009d
EZ
67612003-02-18 Elena Zannoni <ezannoni@redhat.com>
6762
6763 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
6764 * dbxread.c (process_one_symbol): Use last_function_start rather
6765 than function_start_offset to find the real beginning of the
6766 current function. The latter is just the text section offset on
6767 some systems, the former is always the real function start.
54c7009d 6768
7ee6d7eb
AC
67692003-02-17 Andrew Cagney <cagney@redhat.com>
6770
6771 * configure.in: Revert ${target} != ${host}.
6772
2846da9b
AC
67732003-02-17 Andrew Cagney <ac131313@redhat.com>
6774
6775 * configure.in (Makefile): Use the test ${target} != ${host},
6776 instead of the absence of the "nm.h" file, to determine of the
6777 configuration non-native.
6778 * configure: Regenerate.
6779
3b27aeea
EZ
67802003-02-14 Elena Zannoni <ezannoni@redhat.com>
6781
fbe586ae 6782 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
6783
6784 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
6785 conditionalize tui_active test.
6786 (lookup_cmd_1): Ditto.
6787
b0b1c2c0
MK
67882003-02-14 Mark Kettenis <kettenis@gnu.org>
6789
6790 * configure.in: Add check for _etext.
6791 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
6792 available.
6793 * config.in, configure: regenerated.
6794
8f05cde5
DJ
67952003-02-14 Daniel Jacobowitz <drow@mvista.com>
6796
6797 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
6798
021e7609
AC
67992003-02-14 Andrew Cagney <ac131313@redhat.com>
6800
6801 * main.c (tui_version): Delete variable.
6802 (captured_main): When --tui, set interpreter_p to "tui" instead of
6803 enabling tui_version.
6804 * printcmd.c (display_command) [TUI]: Test tui_active instead of
6805 tui_version.
6806 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
6807 * cli/cli-cmds.c (disassemble_command): Ditto.
6808 * defs.h (tui_version): Delete declaration.
6809 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
6810 (tui-interp.o): Add rules.
6811 (SUBDIR_TUI_OBS): Add "tui-interp.o".
6812
e325dcec
CF
68132003-02-14 Christopher Faylor <cgf@redhat.com>
6814
36ffb041 6815 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
6816 just-loaded dll.
6817
c4f90d87
JM
68182003-02-12 Jason Molenda (jmolenda@apple.com)
6819
fbe586ae
RH
6820 * symmisc.c (print_objfile_statistics): Include information about
6821 the number of psymtabs and symtabs in each object file.
c4f90d87 6822
e46e5ccd
KS
68232003-02-13 Keith R Seitz <keiths@redhat.com>
6824
6825 * main.h (struct captured_main_args): Add interpreter_p.
6826 * main.c (captured_main): Initialize interpreter_p from context.
6827 * gdb.c (main): Set interpreter_p argument.
6828 * Makefile.in (gdb.o): Add dependency for interps.h.
6829
fe97fe9c
AC
68302003-02-12 Andrew Cagney <ac131313@redhat.com>
6831
6832 * event-top.c (cli_command_loop): Delete declaration.
6833 (_initialize_event_loop): Delete function setting event_loop_hook.
6834 * event-top.h (cli_command_loop): Declare. Update copyright.
6835 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
6836 * interps.c (current_interp_command_loop): When event_loop_p, call
6837 cli_command_loop.
6838
1cdac4ef
AC
68392003-02-12 Andrew Cagney <ac131313@redhat.com>
6840
6841 * interps.h (interp_command_loop_ftype): Change return type to
6842 void.
6843
48037ead
ML
68442003-02-12 Michal Ludvig <mludvig@suse.cz>
6845
6846 * x86-64-tdep.c (x86_64_extract_return_value)
6847 (x86_64_store_return_value): Use regcache instead of regbuf.
6848 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
6849 * x86-64-linux-nat.c (fill_gregset): Use regcache.
6850
033afc63
AC
68512003-02-11 Andrew Cagney <ac131313@redhat.com>
6852
6853 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
6854 * aclocal.m4: Regenerate.
6855 * configure: Regenerate.
6856
6857 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
6858 TCL_LD_SEARCH_FLAGS.
6859
40d02bca
ML
68602003-02-10 Michal Ludvig <mludvig@suse.cz>
6861
6862 * dwarf2cfi.c: Reindented.
6863
11308a41
AC
68642003-02-09 Andrew Cagney <ac131313@redhat.com>
6865
6866 * interps.c (clear_interpreter_hooks): Convert function definition
6867 to ISO C.
6868
e1c1c0f6
DC
68692003-02-07 David Carlton <carlton@math.stanford.edu>
6870
6871 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
6872
ab5d3da6
KB
68732003-02-07 Kevin Buettner <kevinb@redhat.com>
6874
6875 * gdbtypes.h (struct main_type): Move ``length'' field from here...
6876 (struct type): ...to here.
6877 (TYPE_LENGTH): Adjust to reflect different location of ``length''
6878 field.
6879 * gdbtypes.c (make_qualified_type): Set length on newly created type.
6880 (replace_type): Set length on all type variants for a given type.
6881
b8a92b82
AC
68822003-02-07 Andrew Cagney <ac131313@redhat.com>
6883
6884 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
6885 <sys/stat.h>.
6886 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
6887
5cb316ef
AC
68882003-02-06 Andrew Cagney <ac131313@redhat.com>
6889
2555fe1a
AC
6890 * Makefile.in (symm-nat.o): Update dependencies.
6891 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
6892 (lynx-nat.o, ia64-linux-nat.): Ditto.
6893 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
6894 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
6895 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
6896
44270758
AC
6897 * Makefile.in (inflow_h): Define.
6898 (procfs.o, inflow.o, procfs.o): Update dependencies.
6899 * inftarg.c (child_stop): Delete extern declaration of
6900 inferior_process_group. Include "inflow.h".
6901 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
6902 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
6903 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
6904 (our_process_group, inferior_process_group): Extern declarations.
6905
df8f7274
AC
6906 * procfs.c: Include "gdb_assert.h".
6907
5cb316ef
AC
6908 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6909 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
6910 * jv-typeprint.c (java_type_print_base): Ditto.
6911 * typeprint.c (typedef_print): Eliminate STREQ.
6912 * cli/cli-script.c (define_command, define_command): Ditto.
6913 * main.c (captured_main): Ditto.
6914 * values.c (lookup_internalvar): Ditto.
6915 * utils.c (safe_strerror, parse_escape): Eliminate assignment
6916 within `if' conditional.
6917 * linespec.c (decode_line_2): Ditto.
6918 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
6919 (bfd_openw_with_cleanup): Ditto.
6920
2a28ccea
MK
69212003-02-07 Mark Kettenis <kettenis@gnu.org>
6922
6923 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
6924 legacy_extract_return_value and store_return_value to
6925 legacy_return_value.
6926
786b8124
CF
69272003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
6928
6929 * win32-nat.c (get_relocated_section_addrs): New function. Find
6930 section load addresses for symbol handling in relocated DLLs.
6931 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
6932
b871e4ec
FF
69332003-02-05 Fred Fish <fnf@intrinsity.com>
6934
6935 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
6936 '=' and '!='.
6937 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
6938 with '&' and '=='.
6939 (angel_RDI_info): Ditto.
6940 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
6941 with '&' and '!='.
6942 (threads_continue_all_with_signals): Ditto.
6943
4389a95a 69442003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
6945 Keith Seitz <keiths@redhat.com>
6946 Elena Zannoni <ezannoni@redhat.com>
6947 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
6948
6949 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
6950 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
6951 (SUBDIR_MI_OBS): Add "mi-interp.o".
6952 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
6953 (SFILES): Add "interps.c".
6954 (COMMON_OBS): Add "interps.o".
6955 (interps_h, mi_main_h): Define.
6956 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
6957 (mi-main.o, main.o, event-top.o): Update dependencies.
6958 * cli/cli-interp.c: New file.
6959 * interps.h, interps.c: New files.
6960 * top.c: (gdb_init): Don't install the default interpreter, handed
6961 by captured_main.
6962 * main.c: Include "interps.h".
6963 (interpreter_p): Note that it should malloc'ed.
6964 (captured_command_loop): Call current_interp_command_loop.
6965 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
6966 xfree and xstrdup when updating interpreter_p. Install the
6967 default interpreter. Add hack to stop mi1's copyright notice
6968 being encoded.
6969 * event-top.h (gdb_setup_readline): Declare.
6970 (gdb_disable_readline): Declare.
6971 * event-top.c: Include "interps.h".
6972 (display_gdb_prompt): Call current_interp_display_prompt_p.
6973 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
6974 gdb_stdlog, and gdb_stdtarg.
6975 (_initialize_event_loop): Don't call gdb_setup_readline.
6976 * cli-out.c (cli_out_set_stream): New function.
6977 * cli-out.h (cli_out_set_stream): Declare.
6978
ff3b5810
MK
69792003-02-06 Mark Kettenis <kettenis@gnu.org>
6980
6981 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
6982 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
6983 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
6984 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
6985 config/i386/i386v42mp.mt: Removed.
6986
5b729aa5
MK
69872003-02-05 Mark Kettenis <kettenis@gnu.org>
6988
6989 * configure.tgt (*-*-solaris*): Set gdb_osabi to
6990 GDB_OSABI_SOLARIS.
6991
8cc15142
MC
69922003-02-05 Michael Chastain <mec@shout.net>
6993
6994 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
6995 2.12.1 and earlier versions.
6996
5aa5d4b9
AC
69972003-02-05 Andrew Cagney <ac131313@redhat.com>
6998
6999 Remove orphaned hosts, targets and files.
7000 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
7001 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
7002 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
7003 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
7004 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
7005 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
7006 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
7007 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
7008 * config/sparc/tm-sp64sim.h: Delete.
7009 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
7010 hosts.
7011 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
7012 mips*-dec-mach3* targets.
7013
b68767c1
MC
70142003-02-04 Michael Chastain <mec@shout.net>
7015
7016 * NEWS: Fix typo: sepcifying -> specifying.
7017
5ae7ca1d
MC
70182003-02-04 Michael Chastain <mec@shout.net>
7019
7020 * dwarfread.c: Add documentation on the state of dwarf-1,
7021 looking towards obsoletion.
7022
d08a4280
MC
70232003-02-03 Michael Chastain <mec@shout.net>
7024
7025 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
7026 gdb/testsuite/gdb.c++/pr-1023.exp.
7027
e9be73e4
AC
70282003-02-04 Andrew Cagney <ac131313@redhat.com>
7029
7030 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
7031 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
7032
7033 * utils.c (init_page_info): Delete reference to MPW in comments.
7034 * main.c (captured_main): Delete #ifdef MPW.
7035
05d57f6f
AC
70362003-02-04 Andrew Cagney <ac131313@redhat.com>
7037
7038 * NEWS: Note that the m32r-*-elf* is obsolete.
7039 * monitor.c (monitor_expect): Obsolete reference to m32r.
7040 * configure.tgt: Mark m32r-*-elf* as obsolete.
7041 * MAINTAINERS: Mark m32k as obsolete.
7042 * m32r-rom.c: Obsolete file.
7043 * config/m32r/m32r.mt: Obsolete file.
7044 * config/m32r/tm-m32r.h: Obsolete file.
7045 * m32r-stub.c: Obsolete file.
7046 * m32r-tdep.c: Obsolete file.
7047
8b0e5691
AC
70482003-02-04 Andrew Cagney <ac131313@redhat.com>
7049
7050 * NEWS: Mention that the z8k-zilog-none is obsolete.
7051 * MAINTAINERS: Mark z8k as obsolete.
7052 * configure.tgt: Obsolete the z8k-*-coff* target.
7053 * config/z8k/z8k.mt: Obsolete file.
7054 * config/z8k/tm-z8k.h: Obsolete file.
7055 * z8k-tdep.c: Obsolete file.
7056
67f16606
AC
70572003-02-04 Andrew Cagney <ac131313@redhat.com>
7058
7059 * NEWS: Mention that the mn10200-elf is obsolete.
7060 * configure.tgt: Obsolete mn10200-*-* target.
7061 * breakpoint.c (update_breakpoints_after_exec): Update comment to
7062 mention that the mn10200 is obsolete.
7063 * breakpoint.h: Ditto.
7064 * MAINTAINERS: Mark the mn10200-elf as obsolete.
7065 * config/mn10200/mn10200.mt: Obsolete file.
7066 * config/mn10200/tm-mn10200.h: Obsolete file.
7067 * mn10200-tdep.c: Obsolete file.
7068
fd2299bd
AC
70692003-02-04 Andrew Cagney <ac131313@redhat.com>
7070
7071 * MAINTAINERS: Mark h8500 as obsolete.
7072 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
7073 * findvar.c (value_from_register): Ditto.
7074 * h8500-tdep.c: Mark file as obsolete.
7075 * config/h8500/h8500.mt: Ditto.
7076 * config/h8500/tm-h8500.h: Ditto.
7077 * NEWS: Mention that h8500 is obsolete.
7078
eb9a305d
DC
70792003-02-04 David Carlton <carlton@math.stanford.edu>
7080
7081 * objfiles.c (allocate_objfile): Always set name. Add comment at
7082 start of function.
7083 * jv-lang.c (get_dynamics_objfile): Add comment.
7084
406fc7fb
DC
70852003-02-04 David Carlton <carlton@math.stanford.edu>
7086
7087 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
7088 * printcmd.c (build_address_symbolic): Replace uses of
7089 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
7090 SYMBOL_NAME, and asm_demangle.
7091 Update copyright.
7092
93d91629
DC
70932003-02-04 David Carlton <carlton@math.stanford.edu>
7094
7095 * linespec.c (decode_compound): Extract code into
7096 lookup_prefix_sym.
7097 (lookup_prefix_sym): New function.
7098
1c5cb38e
DC
70992003-02-04 David Carlton <carlton@math.stanford.edu>
7100
7101 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
7102 FLOAT_COERCION_BADNESS.
7103 * gdbtypes.c (rank_one_type): Replace all uses of
7104 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
7105
0cf824c9
JB
71062003-02-04 Jim Blandy <jimb@redhat.com>
7107
7108 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
7109 section, let dwarf_macinfo_section point to it, not
7110 dwarf_loc_section.
7111
a2d356b0
DJ
71122003-02-04 Daniel Jacobowitz <drow@mvista.com>
7113
7114 Pointed out by Anton Blanchard <anton@samba.org>.
7115 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
7116 (ppc_linux_at_sigtramp_return_path): Use it.
7117
2de7ced7
DJ
71182003-02-04 Daniel Jacobowitz <drow@mvista.com>
7119
7120 * defs.h (streq): Add prototype.
7121 * utils.c (streq): New function.
7122
7123 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
7124 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
7125 * mdebugread.c (new_symbol): Likewise.
7126 * stabsread.c (define_symbol): Likewise.
7127 * coffread.c (process_coff_symbol): Likewise.
7128 * dwarfread.c (new_symbol): Likewise.
7129
7130 * minsyms.c (prim_record_minimal_symbol_and_info): Use
7131 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
7132 here.
7133 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
7134 SYMBOL_INIT_DEMANGLED_NAME.
7135 * objfiles.c: Include "hashtab.h".
7136 (allocate_objfile): Call htab_set_functions_ex for the
7137 demangled_names_hash.
7138 (free_objfile): Call htab_delete for the demangled_names_hash.
7139 * objfiles.h (struct htab): Add declaration.
7140 (struct objfile): Add demangled_names_hash.
7141 * symfile.c: Include "hashtab.h".
7142 (reread_symbols): Call htab_delete for the demangled_names_hash.
7143 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
7144 SYMBOL_NAME in the bcache.
7145 * symtab.c: Include "hashtab.h". Update comments.
7146 (create_demangled_names_hash, symbol_set_names): New functions.
7147 (symbol_find_demangled_name): New function, broken out from
7148 symbol_init_demangled_names.
7149 (symbol_init_demangled_names): Use it.
7150 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
7151 (SYMBOL_SET_NAMES): New macro.
7152 (symbol_set_names): Add prototype.
7153
15831452
JB
71542003-02-03 Jim Blandy <jimb@redhat.com>
7155
7156 Use a single, consistent representation for an empty minimal
7157 symbol table in an objfile.
7158 * objfiles.c (terminate_minimal_symbol_table): New function.
7159 (allocate_objfile): Call it.
7160 * objfiles.h (terminate_minimal_symbol_table): New declaration.
7161 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
7162 non-NULL.
7163 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
7164 objfile has minimal symbols, compare minimal_symbol_count to zero,
7165 instead of comparing msymbols with NULL.
7166 * objfiles.c (have_minimal_symbols): Same.
7167 * solib-sunos.c (solib_add_common_symbols): Call
7168 terminate_minimal_symbol_table.
7169 * symfile.c (reread_symbols): Same.
7170
ffc65945
KB
71712003-02-03 Kevin Buettner <kevinb@redhat.com>
7172
7173 * s390-tdep.c (s390_address_class_type_flags)
7174 (s390_address_class_type_flags_to_name)
7175 (s390_address_class_name_to_type_flags): New functions.
7176 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
7177 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
7178
f211c6d4
MS
71792003-02-03 Michael Snyder <msnyder@redhat.com>
7180
7181 * arm-tdep.c: Fix spell-o in comment.
7182
659b0389
ML
71832003-02-03 Michal Ludvig <mludvig@suse.cz>
7184
7185 * dwarf2cfi.c (pointer_encoding): Added new parameter.
7186 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
7187 error messages to contain BFD filename.
7188
3b31d625
EZ
71892003-02-02 Elena Zannoni <ezannoni@redhat.com>
7190
997b089a 7191 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
7192 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
7193 (do_mixed_source_and_assembly): Use
7194 make_cleanup_ui_out_tuple_begin_end and
7195 make_cleanup_ui_out_tuple_begin_end.
7196 (do_mixed_source_and_assembly): Ditto.
7197 * thread.c (do_captured_list_thread_ids): Ditto.
7198 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
7199 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
7200 ui_out_tuple_end): Delete prototypes.
7201 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
7202 ui_out_list_end, ui_out_tuple_end): Delete.
7203
7204 From Kevin Buettner <kevinb@redhat.com>:
7205 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
7206 * ui-out.c (make_cleanup_ui_out_table_begin_end)
7207 (do_cleanup_table_end): New functions.
7208 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
7209 Use cleanups to invoke_ui_out_tuple_end().
7210 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
7211 * cli/cli-setshow.c (cmd_show_list): Use
7212 make_cleanup_ui_out_tuple_begin_end.
7213
5b181d62
AC
72142003-02-02 Andrew Cagney <ac131313@redhat.com>
7215
7216 * frame.c (frame_unwind_register): New function.
7217 (frame_unwind_unsigned_register): Use.
7218 (frame_unwind_signed_register): Use.
7219 (frame_read_register): New function.
7220 * frame.h (frame_unwind_register): Declare.
7221 (frame_read_register): Declare.
7222
7223 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
7224 and frame_unwind_register instead of read_memory, write_register
7225 and deprecated_write_register_bytes.
7226
5f601589
AC
72272003-02-02 Andrew Cagney <ac131313@redhat.com>
7228
7229 * frame.h: Note that namelen can be negative.
7230 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
7231 NAME's length.
7232
7233 * NEWS: Mention that the d10v's `regs' command is deprecated.
7234 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
7235 (d10v_print_registers_info): New function.
7236 (show_regs): Call d10v_print_registers_info.
7237 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
7238
6a3fe0a4
MK
72392003-02-02 Mark Kettenis <kettenis@gnu.org>
7240
7241 * stack.c (print_frame_info): Restore call to annotate_frame_begin
7242 lost in the previous patch.
7243
075559bc
AC
72442003-02-01 Andrew Cagney <ac131313@redhat.com>
7245
7246 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
7247 * stack.c (print_frame_info_base): Output complete FRAME tuple
7248 for synthesized frames.
075559bc 7249
6789195b
AC
72502003-02-02 Andrew Cagney <ac131313@redhat.com>
7251
7252 * mips-nat.c (zerobuf): Delete.
7253 (fetch_inferior_registers): Alloc local zerobuf.
7254 (fetch_core_registers): Alloc local zerobuf.
7255 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
7256 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
7257 * thread-db.c (thread_db_store_registers): Ditto.
7258 * sh-tdep.c (sh_do_register): Ditto.
7259 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
7260 * remote-sim.c (gdbsim_store_register): Ditto.
7261 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7262 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7263 * monitor.c (monitor_supply_register): Ditto.
7264 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
7265 * mips-nat.c (fetch_inferior_registers): Ditto.
7266 * m68klinux-nat.c (fetch_register): Ditto.
7267 * lynx-nat.c (fetch_inferior_registers): Ditto.
7268 (fetch_inferior_registers): Ditto.
7269 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
7270 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7271 (hpux_thread_store_registers): Ditto.
7272 * hppah-nat.c (fetch_register): Ditto.
7273 * hppab-nat.c (fetch_register): Ditto.
7274 * hppa-tdep.c (pa_register_look_aside): Ditto.
7275 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
7276 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
7277
e669114a
AC
72782003-02-01 Andrew Cagney <ac131313@redhat.com>
7279
7280 * gdbarch.sh: Explictly specify all method levels. When a
7281 variable with an empty level, provide a non-multi-arch default.
7282 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
7283 * gdbarch.h: Re-generate.
7284 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
7285 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
7286
9a043c1d
AC
72872003-02-01 Andrew Cagney <ac131313@redhat.com>
7288
7289 * defs.h (host_pointer_to_address): Delete declaration.
7290 (address_to_host_pointer): Delete declaration.
7291 * utils.c (host_pointer_to_address): Delete function.
7292 (address_to_host_pointer): Delete function.
7293 * procfs.c (procfs_address_to_host_pointer): New function.
7294 * procfs.c (proc_set_watchpoint): Use.
7295 (procfs_can_use_hw_breakpoint): Update comments.
7296 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
7297 (som_solib_add): Use.
7298 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
7299 * hppa-tdep.c (unwind_command): Use.
7300
7ca9f392
AC
73012003-02-01 Andrew Cagney <ac131313@redhat.com>
7302
94bbfd30
AC
7303 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
7304 strlen d_name.
7305
7ca9f392
AC
7306 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
7307 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
7308 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
7309 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
7310 (define_symbol): Update.
7311 * symfile.c (generic_load): Remove references to nindy.
7312 * symtab.c: Remove references to nindy.
7313
31a85ea2
AC
73142003-02-01 Andrew Cagney <ac131313@redhat.com>
7315
7316 * infcmd.c (print_float_info): Delete code conditional on
7317 FLOAT_INFO.
7318 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
7319 * config/m68k/nm-apollo68b.h: Ditto.
7320 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
7321 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
7322 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
7323
f6e85fc8
MK
73242003-02-01 Mark Kettenis <kettenis@gnu.org>
7325
6015b6a0
MK
7326 * config/i386/tm-i386os9k.h: Removed.
7327
f7a30bdf
MK
7328 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
7329 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
7330 they're identical to i[3456]86-*-sysv* now.
7331 * config/i386/i386v32.mh: Removed.
7332 * config/i386/xm-i386v32.h: Removed.
7333 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
7334
28d52111
MK
7335 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
7336
4d3f6bce
MK
7337 * config/i386/i386dgux.mh: Removed.
7338 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
7339
f6e85fc8
MK
7340 * configure.in: Fix typo.
7341 * configure: Regenerated.
7342
53955967
DC
73432003-01-31 David Carlton <carlton@math.stanford.edu>
7344
7345 * dwarf2read.c (dwarf2_locate_sections): Set
7346 dwarf_ranges_section.
7347
b1364885
AC
73482003-01-31 Andrew Cagney <ac131313@redhat.com>
7349
8dbb1c65
AC
7350 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
7351 * utils.c: Update comments documenting legitimate uses of PTR.
7352
8731e58e
AC
7353 * utils.c: Re-indent.
7354
b1364885
AC
7355 * config/djgpp/fnchange.lst: Delete nindy files.
7356 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
7357 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
7358 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
7359 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
7360 * nindy-share/README, nindy-share/Onindy.c: Delete files.
7361 * nindy-tdep.c, nindy-share/Makefile: Delete files.
7362 * Makefile.in (init.c): Remove nindy references.
7363 (saber_gdb): Delete rule.
7364 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
7365 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
7366 and a68v-nat.c.
7367 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
7368 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
7369 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
7370 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
7371 nindy-share/stop.h.
7372 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
7373 * saber.suppress: Delete file.
7374
086df311
DJ
73752003-01-31 Daniel Jacobowitz <drow@mvista.com>
7376
7377 * dbxread.c (stabs_data): New static variable.
7378 (fill_symbuf): Support an in-memory buffer for stabs data.
7379 (stabs_seek): New function.
7380 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
7381 (read_ofile_symtab): Use stabs_seek.
7382 (elfstab_build_psymtabs): Take an asection* instead of
7383 an offset and size. Relocate the stabs data if necessary.
7384 Save the section* for dbx_psymtab_to_symtab.
7385 * dwarf2read.c: Add section variables for each debug section.
7386 (dwarf2_locate_sections): Fill them in.
7387 (dwarf2_read_section): Take an asection* argument.
7388 Relocate the section contents if necessary.
7389 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
7390 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
7391 it to dwarf2_read_section.
7392 (dwarf2_build_frame_info): Update callers.
7393 * elfread.c (elf_symfile_read): Update call to
7394 elfstab_build_psymtabs.
7395 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
7396 (DBX_STAB_SECTION): New macro.
7397 * stabsread.h (elfstab_build_psymtabs): Update prototype.
7398 * symfile.c (symfile_dummy_outputs): New function.
7399 (symfile_relocate_debug_section): New function.
7400 * symfile.h (symfile_relocate_debug_section): Add prototype.
7401
87d1b352
RH
74022003-01-31 Richard Henderson <rth@redhat.com>
7403
7404 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
7405 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
7406 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
7407 * alpha-tdep.c (alpha_register_name): Add "unique".
7408 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
7409 (ALPHA_UNIQUE_REGNUM): New.
7410 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
7411
c48861fb
AC
74122003-01-31 Andrew Cagney <ac131313@redhat.com>
7413
7414 * README: Remove reference to Ericsson 1800 monitor.
7415 * Makefile.in (remote-es.o): Delete rule.
7416 (ALLDEPFILES): Delete remote-es.c.
7417 * remote-es.c: Delete file.
7418 * config/m68k/es1800.mt: Delete file.
7419 * config/djgpp/fnchange.lst: Update.
7420 * configure.tgt: Delete m68*-ericsson-* target.
7421
d764a824
AF
74222003-01-31 Adam Fedor <fedor@gnu.org>
7423
7424 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
7425 Remove duplicate/shadowing variable of same name.
7426
fe36c4f4
JB
74272003-01-30 Jim Blandy <jimb@redhat.com>
7428
7429 * symfile.c (find_separate_debug_file): Assert that the objfile's
7430 directory name we compute ends with a slash, and then assume that
7431 that's so everywhere we use it.
7432
cb741690
DJ
74332003-01-30 Daniel Jacobowitz <drow@mvista.com>
7434
7435 * valops.c (value_assign): Flush frame cache after stores to memory
7436 also.
7437
96ee5227
AC
74382003-01-30 Andrew Cagney <ac131313@redhat.com>
7439
7440 * Makefile.in (mon960-rom.o): Delete rule.
7441 * mon960-rom.c: Delete file.
7442
7f6104a9
AC
74432003-01-30 Andrew Cagney <ac131313@redhat.com>
7444
7445 * d10v-tdep.c: Include "frame-unwind.h".
7446 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
7447 list.
7448 (next_addr, uses_frame): Delete.
7449 (struct d10v_unwind_cache): Define.
7450 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
7451 Use info instead of next_addr and uses_frame globals.
7452 (d10v_frame_init_saved_regs): Delete function.
7453 (d10v_init_extra_frame_info): Delete function.
7454 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
7455 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
7456 init_frame_pc or frame_saved_pc.
7457 (d10v_pop_frame): Delete function.
7458 (do_d10v_pop_frame): Delete function.
7459 (d10v_frame_chain): Delete function.
7460 (d10v_frame_chain_valid): Delete function.
7461 (d10v_frame_pc_unwind): New function.
7462 (d10v_frame_id_unwind): New function.
7463 (saved_regs_unwinder): New function.
7464 (d10v_frame_register_unwind): New function.
7465 (d10v_frame_pop): New function.
7466 (d10v_frame_unwind): New variable.
7467 (d10v_frame_p): New function.
7468 (d10v_frame_saved_pc): Delete function.
7469 * Makefile.in (d10v-tdep.o): Update dependencies.
7470
cad2e848
JB
74712003-01-30 J. Brobecker <brobecker@gnat.com>
7472
7473 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
7474 causing some regressions due to a change in the default value
7475 for this macro.
7476
af34e669
DJ
74772003-01-29 Richard Henderson <rth@redhat.com>
7478 Elena Zannoni <ezannoni@redhat.com>
7479 Daniel Jacobowitz <drow@mvista.com>
7480
7481 Fix PR gdb/961.
7482 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
7483 variables.
7484 (RANGES_SECTION): New.
7485 (dwarf_ranges_buffer): New variable.
7486 (struct comp_unit_head): Add member "die".
7487 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
7488 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
7489 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
7490 (dwarf2_locate_sections): Likewise.
7491 (dwarf2_build_psymtabs): Read .debug_ranges.
7492 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
7493 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
7494 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
7495 Look for DW_AT_ranges and return the bounding box.
7496
baa93fa6
CF
74972003-01-29 Brian Ford <ford@vss.fsi.com>
7498
7499 * win32-nat.c (cygwin_pid): Removed as unused.
7500 (child_attach): Try fall back to Cygwin pid.
7501
c63f977f
JB
75022003-01-29 Jim Blandy <jimb@redhat.com>
7503
7504 * objfiles.h (struct objfile): Doc fix.
7505
d62d1979
AC
75062003-01-29 Andrew Cagney <ac131313@redhat.com>
7507
7508 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
7509 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
7510 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
7511 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
7512 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
7513 (FRAME_SAVED_PC): Change to a function with predicate.
7514 * gdbarch.h, gdbarch.c: Re-generate.
7515
1ae18a04
AC
75162003-01-28 Andrew Cagney <ac131313@redhat.com>
7517
52287340
AC
7518 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
7519
1ae18a04
AC
7520 * complaints.c (complain): Delete function.
7521 * complaints.h (struct deprecated_complaint): Delete definition.
7522 (complain): Delete declaration.
7523
f2c16bd6
KB
75242003-01-28 Kevin Buettner <kevinb@redhat.com>
7525
7526 * mips-tdep.c (mips_init_extra_frame_info): Return early for
7527 dummy frames.
7528
a94dd1fd
AC
75292003-01-27 Andrew Cagney <ac131313@redhat.com>
7530
7531 * sentinel-frame.h, sentinel-frame.c: New files.
7532 * Makefile.in (frame.o): Update dependencies.
7533 (SFILES): Add sentinel-frame.c.
7534 (sentinel_frame_h): Define.
7535 (COMMON_OBS): Add sentinel-frame.o.
7536 (sentinel-frame.o): Specify dependencies.
7537 * frame.c: Include "sentinel-frame.h".
7538 (frame_register_unwind): Rewrite assuming that there is always a a
7539 ->next frame.
7540 (frame_register, generic_unwind_get_saved_register): Ditto.
7541 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
7542 (create_sentinel_frame, unwind_to_current_frame): New functions.
7543 (get_current_frame): Rewrite using create_sentinel_frame and
7544 unwind_to_current_frame. When possible, always create a frame.
7545 (create_new_frame): Set next to the sentinel frame.
7546 (get_next_frame): Rewrite. Don't go below the level 0 frame.
7547 (deprecated_update_frame_pc_hack): Update the next frame's PC and
7548 ID cache when necessary.
7549 (frame_saved_regs_id_unwind): Use frame_relative_level.
7550 (deprecated_generic_get_saved_register): Use frame_relative_level,
7551 get_frame_saved_regs, get_frame_pc, get_frame_base and
7552 get_next_frame.
7553 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
7554 frame_register.
7555
5378adc4
DJ
75562003-01-27 Daniel Jacobowitz <drow@mvista.com>
7557
7558 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
7559
51ee2ddc
DJ
75602003-01-27 Daniel Jacobowitz <drow@mvista.com>
7561
7562 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
7563 (maintenance_set_profile_cmd): Use error () instead of warning ().
7564
d9feb4e7
DJ
75652003-01-27 Daniel Jacobowitz <drow@mvista.com>
7566
7567 * configure.in: Check that -pg works if using --enable-profiling.
7568 Check for monstartup and _mcleanup regardless of --enable-profiling.
7569 * maint.c: Check for monstartup and _mcleanup before using them.
7570 * config.in: Regenerated.
7571 * configure: Regenerated.
7572
2d188dd3
NC
75732003-01-24 Nick Clifton <nickc@redhat.com>
7574
7575 * Add sh2e support:
7576
7577 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
7578
7579 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
7580 (sh2e_show_regs): New.
7581 (sh_gdbarch_init): Handle bfd_mach_sh2e.
7582 * config/sh/tm-sh.h: Added sh2e to comments.
7583
cb3c37b2
JB
75842003-01-23 Jim Blandy <jimb@redhat.com>
7585
7586 * symfile.c (syms_from_objfile): Don't print the "(no debugging
7587 symbols found)" message here; we haven't checked for a separate
7588 debug info file yet, so we don't know yet.
7589 (symbol_file_add_with_addrs_or_offsets): Print it here, after
7590 we've looked everywhere. Also, there's no need to print a special
7591 message when we're loading the separate debug info file: the one
7592 symbol_file_add prints is fine.
7593
5b5d99cf
JB
75942003-01-23 Alexander Larsson <alexl@redhat.com>
7595 Jim Blandy <jimb@redhat.com>
7596
7597 Add support for executables whose debug info has been separated
7598 out into a separate file, leaving only a link behind.
7599 * objfiles.h (struct objfile): New fields: separate_debug_objfile
7600 and separate_debug_objfile_backlink.
7601 (put_objfile_before): New declaration.
7602 * symfile.c: #include "filenames.h".
7603 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
7604 debug info in a separate file, read that, too. Save the addrs
7605 argument, so we can use it again to read the separated debug info;
7606 syms_from_objfile modifies the table we pass it.
7607 (reread_symbols): After re-reading an objfile, call
7608 reread_separate_symbols to refresh its separate debug info
7609 objfile, if it has one.
7610 (reread_separate_symbols, find_separate_debug_file,
7611 get_debug_link_info, separate_debug_file_exists): New functions.
7612 (debug_file_directory): New global var.
7613 (_initialize_symfile): Initialize debug_file_directory, and
7614 provide the new `set debug-file-directory' command to let the user
7615 change it.
7616 * objfiles.c (free_objfile): If this objfile has its debug info in
7617 a separate objfile, free that one too. If this is itself a
7618 separate debug info objfile, clear our parent's backlink.
7619 (put_objfile_before): New function.
7620 * utils.c (gnu_debuglink_crc32): New function.
7621 * defs.h (gnu_debuglink_crc32): New declaration.
7622 * Makefile.in (symfile.o): Note dependency on "filenames.h".
7623 * configure.in: Handle --with-separate-debug-dir config option.
7624 * acinclude.m4 (AC_DEFINE_DIR): New macro.
7625 * acconfig.h (DEBUGDIR): New macro.
7626 * configure, aclocal.m4, config.in: Regenerated.
7627
7e8580c1
JB
76282003-01-22 Jim Blandy <jimb@redhat.com>
7629
7904e09f
JB
7630 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
7631 like the old symbol_file_add, but taking new arguments: you can
7632 now pass in either a `struct section_addr_info' list to say where
7633 each section is loaded, or a `struct section_offsets' table. Pass
7634 these new arguments through to syms_from_objfile as appropriate.
7635 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7636 with the appropriate quiescent values for the new arguments.
7637
7e8580c1
JB
7638 * symfile.c: #include "gdb_assert.h".
7639 (syms_from_objfile): Add the ability to pass in a section offset
7640 table directly, as an alternative to the section_addr_info table.
7641 Document arguments better.
7642 (symbol_file_add): Pass extra arguments to syms_from_objfile.
7643 * symfile.h (syms_from_objfile): Update declaration.
7644 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
7645 syms_from_objfile.
7646 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
7647
d28f9cdf
DJ
76482003-01-22 Daniel Jacobowitz <drow@mvista.com>
7649
7650 Original patch by Tom Tromey <tromey@cygnus.com> and
7651 Jason Molenda <jmolenda@apple.com>.
7652 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
7653 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
7654 * NEWS: Mention profiling.
7655 * configure.in (--enable-gdbtk): Fix typo.
7656 (--enable-profiling): New. Set PROFILE_CFLAGS.
7657 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
7658 Fill in function.
7659 (profiling_state): New variable.
7660 (mcleanup_wrapper): New function.
7661 (_initialize_maint): Remove NOTYET, fix call to
7662 add_setshow_boolean_cmd for "maint set profile".
7663 * configure: Regenerated.
7664
df21e465
MH
76652003-01-21 Martin M. Hunt <hunt@redhat.com>
7666
7667 * Makefile.in (install-gdbtk): Install PNG images too.
7668
73c1f219
AC
76692003-01-21 Andrew Cagney <ac131313@redhat.com>
7670
7671 * exec.c (text_start): Delete global variable.
7672 (exec_file_attach): Make text_start local to the function.
7673 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
7674 * valops.c (hand_function_call): Delete code that handles
7675 BEFORE_TEXT_END and AFTER_TEXT_END.
7676 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
7677 of CALL_DUMMY_LOCATION.
7678 * gdbarch.c: Regenerate.
7679 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
7680 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
7681 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
7682 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
7683 (text_end): Delete extern declaration.
7684
eb4f72c5
AC
76852003-01-21 Andrew Cagney <ac131313@redhat.com>
7686
7687 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
7688 * blockframe.c (backtrace_below_main): Move to "frame.c".
7689 (frame_chain_valid): Delete check for backtrace_below_main.
7690 (_initialize_blockframe): Delete initialization, move ``set
7691 backtrace-below-main'' command to "frame.c".
7692 (do_flush_frames_sfunc): Delete function.
7693 * frame.c: Include "command.h" and "gdbcmd.h".
7694 (frame_type_from_pc): New function.
7695 (create_new_frame): Use frame_type_from_pc.
7696 (legacy_get_prev_frame): New function.
7697 (get_prev_frame): Rewrite. When an old style frame, call
7698 legacy_get_prev_frame. Otherwize, unwind the PC first.
7699 (_initialize_frame): Add ``set backtrace-below-main'' command.
7700 * Makefile.in (frame.o): Update dependencies.
7701
778ce8cc
AC
77022003-01-19 Andrew Cagney <ac131313@redhat.com>
7703
7704 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
7705 DEPRECATED_REGISTERS_INFO.
7706
01c193c8
AC
77072003-01-19 Andrew Cagney <ac131313@redhat.com>
7708
7709 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
7710 Maintainers'. Update `Various Maintainers'.
7711
dedc2a2b
AC
77122003-01-19 Andrew Cagney <ac131313@redhat.com>
7713
7714 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
7715 * gdbarch.sh (POP_FRAME): Change to function with predicate.
7716 Suppress actual parameters when `-'.
7717 * gdbarch.h, gdbarch.c: Regenerate.
7718
b7261c70
AC
77192003-01-19 Andrew Cagney <ac131313@redhat.com>
7720
7721 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
7722 code handling dummy frames.
7723
dbe9fe58
AC
77242003-01-19 Andrew Cagney <ac131313@redhat.com>
7725
7726 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
7727 (struct frame_unwind): Add field pop.
7728 * frame.h (frame_pop): Declare.
7729 * frame.c (frame_saved_regs_pop): New function.
7730 (trad_frame_unwinder): Add frame_saved_regs_pop.
7731 (frame_pop): New function.
7732 * dummy-frame.c (dummy_frame_pop): New function.
7733 (discard_innermost_dummy): New function.
7734 (generic_pop_dummy_frame): Use discard_innermost_dummy.
7735 (dummy_frame_unwind): Add dummy_frame_pop.
7736 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
7737 * valops.c (hand_function_call): Ditto.
7738 * stack.c (return_command): Ditto.
7739
570b8f7c
AC
77402003-01-18 Andrew Cagney <ac131313@redhat.com>
7741
7742 * cris-tdep.c: Fix function declaration indentation.
7743 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
7744 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
7745 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
7746 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
7747 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
7748 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
7749
77502003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
7751
7752 * README (Unpacking and Installation -- quick overview):
7753 Warn against ".../gdb-5.3/gdb/configure".
7754
494cca16
AC
77552003-01-18 Andrew Cagney <ac131313@redhat.com>
7756
7757 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
7758 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
7759 (struct frame_unwind): Declare opaque.
7760 (dummy_frame_p): Declare function.
7761 * dummy-frame.c (dummy_frame_id_unwind): Make static.
7762 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
7763 * dummy-frame.c: Include "frame-unwind.h".
7764 (dummy_frame_p): New function.
7765 (dummy_frame_unwind): New variable.
7766 * frame.c: Include "frame-unwind.h".
7767 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
7768 to use the new unwind field.
7769 (set_unwind_by_pc): Delete function.
7770 (create_new_frame, get_prev_frame): Set unwind field using
7771 frame_unwind_find_by_pc.
7772 (trad_frame_unwind, trad_frame_unwinder): New variables.
7773 * frame.h (trad_frame_unwind): Declare variable.
7774 (frame_id_unwind_ftype): Delete declaration.
7775 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
7776 (struct frame_unwind): Declare opaque.
7777 (struct frame_info): Replace the fields id_unwind, pc_unwind and
7778 register_unwind with a single unwind pointer.
7779 * frame-unwind.h, frame-unwind.c: New files.
7780 * Makefile.in (SFILES): Add frame-unwind.c.
7781 (frame_unwind_h): Define.
7782 (COMMON_OBS): Add frame-unwind.o.
7783 (frame-unwind.o): Specify dependencies.
7784 (frame.o, dummy-frame.o): Update dependencies.
7785
4efb68b1
AC
77862003-01-18 Andrew Cagney <ac131313@redhat.com>
7787
7788 * ada-valprint.c: Eliminate PTR.
7789 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
7790 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
7791 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
7792 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
7793 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
7794 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
7795 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
7796
a84d24ee
AC
77972003-01-17 Andrew Cagney <ac131313@redhat.com>
7798
762f08a3
AC
7799 * main.c (captured_main): Don't use PTR.
7800 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
7801 * gdbtypes.c (lookup_primitive_typename): Ditto.
7802 (lookup_struct_elt_type): Ditto.
7803 * f-valprint.c (info_common_command): Ditto.
7804 (list_all_visible_commons): Ditto.
7805 * jv-typeprint.c (java_type_print_base): Ditto.
7806
a84d24ee
AC
7807 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
7808 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
7809 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
7810 i386-interix-nat.c and i386-interix-tdep.c. Rename
7811 m68klinux-nat.c and m68klinux-tdep.c. Rename
7812 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
7813 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
7814 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
7815 * main.c (captured_main): Use xfree, not free.
7816
c170fb60
AC
78172003-01-16 Andrew Cagney <ac131313@redhat.com>
7818
7819 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
7820 ID back using a parameter.
7821 * frame.c (frame_id_unwind): Update call.
7822 (frame_saved_regs_id_unwind): Update.
7823 * dummy-frame.c (dummy_frame_id_unwind): Update function.
7824 * dummy-frame.h (struct frame_id): Add opaque declaration.
7825 (dummy_frame_id_unwind): Update declaration.
7826
867f3898
AC
78272003-01-15 Andrew Cagney <ac131313@redhat.com>
7828
7829 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
7830
40622be8 78312003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 7832
40622be8 7833 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 7834
ae66c1fc
EZ
78352003-01-14 Elena Zannoni <ezannoni@redhat.com>
7836
997b089a 7837 Fix PR gdb/898
ae66c1fc
EZ
7838 * breakpoint.c (until_break_command): Add new argument. Use it to
7839 decide whether to stop only at the current frame or not.
7840 * breakpoint.h (until_break_command): Update prototype.
7841 * infcmd.c (until_command): Add new argument to until_break_command
7842 call.
7843 (advance_command): New function.
7844 (_initialize_infcmd): Update help string for 'until' command.
7845 Add new 'advance' command.
7846
a04257e6
DC
78472003-01-14 David Carlton <carlton@math.stanford.edu>
7848
7849 * linespec.c (decode_line_1): Normalize comments.
7850 (set_flags): Ditto.
7851 (locate_first_half): Ditto.
7852 (decode_compound): Ditto.
7853 (symtab_from_filename): Ditto.
7854 (decode_all_digits): Ditto.
7855 (decode_dollar): Ditto.
7856 (find_methods): Ditto.
7857 (find_toplevel_char): Ditto.
7858
1bac305b
AC
78592003-01-13 Andrew Cagney <ac131313@redhat.com>
7860
7861 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
7862 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
7863 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
7864 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
7865 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
7866 * language.c, language.h, m32r-tdep.c: Update copyright.
7867 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
7868 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
7869 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
7870 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
7871 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
7872 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
7873
25caa7a8
EZ
78742003-01-13 Elena Zannoni <ezannoni@redhat.com>
7875
7876 * stabsread.h (process_later, resolve_cfront_continuation):
7877 Obsolete.
7878 Update copyright years.
7879 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
7880 Update copyright year.
7881 * dbxread.c(struct cont_elem): Obsolete.
7882 (process_later, process_now): Obsolete functions.
7883 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
7884 Update copyright year.
7885 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
7886 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
7887 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
7888 (parse_partial_symbols): Obsolete cfront support.
7889 * stabsread.c
7890 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
7891 macros.
7892 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
7893 read_cfront_baseclasses, read_cfront_member_functions,
7894 resolve_cfront_continuation,read_cfront_static_fields,
7895 copy_cfront_struct_fields): Obsolete functions.
7896 (define_symbol, read_one_struct_field): Obsolete cfront support.
7897 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
7898 Update Copyright year.
7899
7789c6f5
EZ
79002003-01-13 Elena Zannoni <ezannoni@redhat.com>
7901
7902 * stack.c (print_frame_info, print_stack_frame_base_stub,
7903 print_stack_frame_base, show_and_print_stack_frame_stub,
7904 show_and_print_stack_frame, print_only_stack_frame_stub,
7905 print_only_stack_frame): Delete functions.
7906 (print_stack_frame_stub): Call print_frame_info instead of
7907 print_frame_info_base.
7908 (print_frame_info_base): Rename to print_frame_info.
7909 (backtrace_command_1): Call print_frame_info, instead of
7910 print_frame_info_base.
7911 (current_frame_command): Call print_stack_frame, instead of
7912 print_only_stack_frame.
7913 (frame_command): Call print_stack_frame, instead of
7914 show_and_print_stack_frame.
7915 (up_command): Ditto.
7916 (down_command): Ditto.
7917 * frame.h (print_only_stack_frame): Delete prototype.
7918 * infrun.c (normal_stop): Call print_stack_frame, instead of
7919 show_and_print_stack_frame.
7920 * thread.c (info_threads_command): Call print_stack_frame, instead
7921 of print_only_stack_frame.
7922
3f5a3016
AC
79232003-01-13 Andrew Cagney <ac131313@redhat.com>
7924
d99ba314
AC
7925 * README (Graphical interface to GDB): Update URL. Point at
7926 gdb/links/.
7927
3f5a3016
AC
7928 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
7929 version match.
7930
083ae935
DJ
79312003-01-13 Daniel Jacobowitz <drow@mvista.com>
7932
7933 * symtab.c (find_pc_sect_line): Don't consider end-of-function
7934 lines.
7935
5365276c
DJ
79362003-01-13 Daniel Jacobowitz <drow@mvista.com>
7937
7938 * thread-db.c (attach_thread): Prototype.
7939 (struct private_thread_info): Remove lwpid. Add thread handle (th),
7940 thread information (ti), and valid flags (th_valid, ti_valid).
7941 (attach_thread): Move target_pid_to_str call to after the thread
7942 is added to GDB's list. Initialize the cache.
7943 (thread_get_info_callback, thread_db_map_id2thr)
7944 (thread_db_get_info): New functions.
7945 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
7946 (thread_db_store_registers, thread_db_thread_alive)
7947 (thread_db_get_thread_local_address): Use them.
7948 (thread_db_pid_to_str): Likewise. Return "Missing" instead
7949 of calling error() for threads in unknown state.
7950
7951 (clear_lwpid_callback): New function.
7952 (thread_db_resume): Use it to clear the cache.
7953
9fc30b6b
DJ
79542003-01-13 Daniel Jacobowitz <drow@mvista.com>
7955
7956 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
7957 (resume_callback): Remove dead code.
7958
8f871025
AC
79592003-01-13 Andrew Cagney <ac131313@redhat.com>
7960
7961 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
7962 predicate.
7963 * gdbarch.h, gdbarch.c: Regenerate.
7964 * stack.c (frame_info): Only initialize the saved registers when
7965 FRAME_INIT_SAVED_REGS_P.
7966 * frame.c (frame_saved_regs_register_unwind): Assert
7967 FRAME_INIT_SAVED_REGS_P.
7968 (deprecated_generic_get_saved_register): Ditto.
7969
3f565f1e
DJ
79702003-01-13 Daniel Jacobowitz <drow@mvista.com>
7971
7972 * source.c (openp): Squelch warning about "filename".
7973
072b1022
DJ
79742003-01-13 Daniel Jacobowitz <drow@mvista.com>
7975
7976 * source.c (openp): If the file does not exist don't necessarily
7977 search the path.
7978
973ccf8b
DJ
79792003-01-13 Daniel Jacobowitz <drow@mvista.com>
7980
7981 Fix PR gdb/872.
7982 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
7983 (integer_types_same_name_p): New function.
7984 (rank_one_type): Use it.
7985 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
7986
030292b7
DJ
79872003-01-13 Daniel Jacobowitz <drow@mvista.com>
7988
7989 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
7990 variables.
7991 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
7992 * configure.in: Add --with-sysroot.
7993 * configure: Regenerated.
7994 * main.c (gdb_sysroot): New variable.
7995 (captured_main): Initialize gdb_sysroot.
7996 * defs.h (gdb_sysroot): New extern declaration.
7997 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
7998
afb5d334
MC
79992003-01-12 Michael Chastain <mec@shout.net>
8000
8001 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
8002
751ceeb4
MC
80032003-01-12 Michael Chastain <mec@shout.net>
8004
8005 * top.c (print_gdb_version): Bump copyright year to 2003.
8006
94cd26f8
DC
80072003-01-12 David Carlton <carlton@bactrian.org>
8008
8009 * linespec.c (symtab_from_filename): Rename variable 's' to
8010 'file_symtab'.
8011
1ce79225
AC
80122003-01-12 Andrew Cagney <ac131313@redhat.com>
8013
8014 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
8015 dummy frame.
8016 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
8017
fa1fd571
AC
80182003-01-12 Andrew Cagney <ac131313@redhat.com>
8019
8020 * d10v-tdep.c: Include "gdb_assert.h".
8021 (d10v_store_return_value): Rewrite to match current interface.
8022 (d10v_extract_struct_value_address): Ditto.
8023 (d10v_extract_return_value): Ditto.
8024 (d10v_gdbarch_init): Set store_restore_value,
8025 extract_struct_value_address and extract_return_value.
8026
68b8d23e
JB
80272003-01-12 J. Brobecker <brobecker@gnat.com>
8028
8029 * hpread.c (set_namestring): New procedure replacing the
8030 SET_NAMESTRING macro.
8031 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
8032 by calls to set_namestring.
8033
80342003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
8035
8036 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
8037 a compilation warning.
8038 (hpread_process_one_debug_symbol): Likewise.
8039
88d262ca
DC
80402003-01-10 David Carlton <carlton@math.stanford.edu>
8041
8042 * linespec.c (decode_line_1): Rename variable 's' to
8043 'file_symtab'.
8044 (decode_all_digits): Rename argument 's' to 'file_symtab'.
8045 (decode_dollar): Ditto.
8046 (decode_variable): Ditto.
8047 (symbol_found): Ditto.
8048
86669319
MC
80492003-01-09 Michael Chastain <mec@shout.net>
8050
8051 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
8052
616a9dc4
CV
80532003-01-07 Corinna Vinschen <vinschen@redhat.com>
8054
8055 * win32-nat.c (set_process_privilege): New function.
8056 (child_attach): Call set_process_privilege() to enable the
8057 SE_DEBUG_NAME user privilege if available in process token.
8058
3269bcfa
JB
80592003-01-10 J. Brobecker <brobecker@gnat.com>
8060
8061 * hpread.c (hpread_process_one_debug_symbol): Fix a small
8062 compilation error in the previous revision.
8063
2b0ee454
DC
80642003-01-09 David Carlton <carlton@math.stanford.edu>
8065
8066 * linespec.c: Update copyright.
8067
b3ba1b44
DJ
80682003-01-09 Daniel Jacobowitz <drow@mvista.com>
8069
8070 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
8071 than inferior_ptid.
8072 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
8073
4ef3f3be
AC
80742003-01-09 Andrew Cagney <ac131313@redhat.com>
8075
479ab5a0
AC
8076 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
8077 Update comments.
8078 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
8079 (frame_saved_regs_zalloc): Update.
8080 (frame_saved_regs_register_unwind): Update.
8081 (create_new_frame): Update.
8082 (get_prev_frame): Update.
8083 (frame_extra_info_zalloc): Update.
8084 (deprecated_get_frame_saved_regs): Update.
8085 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
8086 * cris-tdep.c: Update comment.
8087
bde58177
AC
8088 * somsolib.h: Fix function indentation.
8089 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
8090 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
8091 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
8092 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
8093 * somsolib.c, inftarg.c: Remove assignment in if conditional.
8094
4ef3f3be
AC
8095 * infrun.c (follow_fork): Use ISO C definition.
8096 * expprint.c (print_subexp): Use xfree instead of free.
8097 * charset.c: Include "gdb_string.h" instead of <string.h>.
8098 (register_iconv_charsets): Use ISO C definition.
8099 (host_charset, target_charset): Ditto.
8100 * Makefile.in (charset.o): Update dependencies.
8101 (mi-cmd-env.o): Update dependencies.
8102
1c615f7a
AC
81032003-01-08 Andrew Cagney <cagney@redhat.com>
8104
8105 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
8106 get_frame_base.
8107
c9a1dc08
AC
81082003-01-08 Andrew Cagney <ac131313@redhat.com>
8109
8110 * gdb_mbuild.sh: Add --keep option. When specified, keep the
8111 build directories. Save edited gdb output in Mbuild.log. If a
8112 build fails, remove any final GDB executable.
8113
dbad9d94
AC
81142003-01-08 Andrew Cagney <ac131313@redhat.com>
8115
8116 * gdb_mbuild.sh: Edit the output of `maint print architecture'
8117 replacing hex constants with function names and stripping leading
8118 file name directory prefixes.
8119
8d357cca
AC
81202003-01-08 Andrew Cagney <cagney@redhat.com>
8121
8122 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
8123 get_frame_base.
8124
bca02a8a
DC
81252003-01-08 David Carlton <carlton@math.stanford.edu>
8126
8127 * linespec.c (decode_line_1): Move code into decode_variable.
8128 (decode_variable): New function.
8129
7f8ab3a0
AC
81302003-01-08 Andrew Cagney <ac131313@redhat.com>
8131
8132 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
8133
7b5849cc
AC
81342003-01-08 Andrew Cagney <cagney@redhat.com>
8135
8136 * cris-tdep.c (cris_frame_init_saved_regs): Use
8137 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
8138 saved_regs buffer.
8139 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8140 (sh64_nofp_frame_init_saved_regs): Ditto.
8141 (sh_fp_frame_init_saved_regs): Ditto.
8142 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
8143 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
8144 * mcore-tdep.c (analyze_dummy_frame): Ditto.
8145 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8146
72a5efb3
DJ
81472003-01-08 Daniel Jacobowitz <drow@mvista.com>
8148
8149 * minsyms.c (lookup_minimal_symbol): Update comment.
8150 (lookup_minimal_symbol_text): Update comment. Use the hash table.
8151 (lookup_minimal_symbol_solib_trampoline): Likewise.
8152
11c02a10
AC
81532003-01-08 Andrew Cagney <cagney@redhat.com>
8154
aab3ea25
AC
8155 * d10v-tdep.c (d10v_init_extra_frame_info): Use
8156 frame_relative_level.
8157
da50a4b7
AC
8158 * alpha-tdep.c: Use get_frame_extra_info.
8159 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8160 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
8161 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
8162 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
8163
11c02a10
AC
8164 * alpha-tdep.c: Use get_next_frame.
8165 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8166 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
8167 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
8168 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
8169 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
8170 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
8171 * xstormy16-tdep.c: Ditto.
8172
1e2330ba
AC
81732003-01-07 Andrew Cagney <cagney@redhat.com>
8174
8175 * alpha-tdep.c: Use get_frame_base.
8176 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8177 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
8178 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
8179 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
8180 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
8181 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
8182 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
8183 * config/sparc/tm-sparc.h: Ditto.
8184
2d75187b
AC
81852003-01-07 Andrew Cagney <cagney@redhat.com>
8186
8187 * frame.c (deprecated_get_frame_context): New function.
8188 (deprecated_set_frame_context): New function.
8189 * frame.h (deprecated_get_frame_context): Declare.
8190 (deprecated_set_frame_context): Declare.
8191 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
8192 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8193
483d36b2
AC
81942003-01-07 Andrew Cagney <cagney@redhat.com>
8195
8196 * frame.c (deprecated_set_frame_next_hack): New function.
8197 (deprecated_set_frame_prev_hack): New function.
8198 * frame.h (deprecated_set_frame_next_hack): Declare.
8199 (deprecated_set_frame_prev_hack): Declare.
8200 * mcore-tdep.c (analyze_dummy_frame): Use
8201 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
8202 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8203
14e91ac5
DC
82042003-01-07 David Carlton <carlton@math.stanford.edu>
8205
8206 * linespec.c (decode_line_1): Move code into decode_dollar.
8207 (decode_dollar): New function.
8208
b0c6b05c
AC
82092003-01-07 Andrew Cagney <cagney@redhat.com>
8210
8211 * arm-tdep.c (arm_init_extra_frame_info): Use
8212 deprecated_update_frame_base_hack.
8213 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
8214 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8215 (fix_frame_pointer): Ditto.
8216 (mn10300_analyze_prologue): Ditto.
8217
a00a19e9
AC
82182003-01-07 Andrew Cagney <cagney@redhat.com>
8219
8220 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
8221 extra_info using frame_extra_info_zalloc.
8222 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8223 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
8224 (sh64_init_extra_frame_info): Ditto.
8225 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
8226 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
8227 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
8228 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
8229 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
8230 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
8231 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
8232 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
8233 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
8234 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
8235 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8236 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
8237
8238 * mn10300-tdep.c (analyze_dummy_frame): Use
8239 deprecated_set_frame_extra_info_hack.
8240 * mcore-tdep.c (analyze_dummy_frame): Ditto.
8241
1fb4c65b
JB
82422003-01-07 J. Brobecker <brobecker@gnat.com>
8243
8244 * mdebugread.c (parse_symbol): Skip stProc entries which storage
8245 class is not scText. These do not define "real" procedures.
8246 (parse_partial_symbols): Likewise.
8247
9fe7d6bf
MS
82482003-01-06 Michael Snyder <msnyder@redhat.com>
8249
8250 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
8251
f6c609c4
AC
82522003-01-06 Andrew Cagney <ac131313@redhat.com>
8253
8254 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
8255 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
8256 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
8257 deprecated_frame_xmalloc_with_cleanup.
8258 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
8259 deprecated_frame_xmalloc.
8260 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
8261 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
8262
d995ff4b
AC
82632003-01-06 Andrew Cagney <cagney@redhat.com>
8264
84dc46cb
AC
8265 * x86-64-linux-tdep.c: Include "osabi.h".
8266 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
8267
d995ff4b
AC
8268 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
8269
66140c26
AC
82702003-01-06 Andrew Cagney <cagney@redhat.com>
8271
8272 * MAINTAINERS (Target Instruction Set Architectures): Update
8273 arm-elf. Can be built with -Werror, has been multiarched.
8274
8275 * value.h (unpack_long): Make buffer parameter constant.
8276 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
8277 * scm-lang.h (scm_parse): Ditto.
8278 * defs.h (extract_typed_address, extract_address): Ditto.
8279 (extract_long_unsigned_integer): Ditto.
8280 * inferior.h (unsigned_pointer_to_address): Ditto.
8281 (signed_pointer_to_address): Ditto.
8282 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
8283 * gdbarch.h, gdbarch.c: Regenerate.
8284 * findvar.c (extract_long_unsigned_integer): Update.
8285 (extract_address): Update.
8286 (extract_typed_address): Update.
8287 (unsigned_pointer_to_address): Update.
8288 * values.c (unpack_long): Update.
8289 (unpack_double): Update.
8290 (unpack_pointer): Update.
8291 (unpack_field_as_long): Update.
8292 * d10v-tdep.c (d10v_pointer_to_address): Update.
8293 * avr-tdep.c (avr_pointer_to_address): Update.
8294 * scm-lang.c (scm_unpack): Update.
8295 * findvar.c (signed_pointer_to_address): Update.
8296
b089b3da
ML
82972003-01-06 Michal Ludvig <mludvig@suse.cz>
8298
8299 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
8300 since it is in i386-tdep.c.
8301
aff87235
JB
83022003-01-06 J. Brobecker <brobecker@gnat.com>
8303
8304 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
8305 failure introduced in the previous change.
8306
34f5e845
MC
83072003-01-05 Michael Chastain <mec@shout.net>
8308
8309 * README: Remove references to deleted remote-*.c files:
8310 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
8311 remote-nrom.c, remote-os9k.c, remote-udi.c.
8312
28bcfd30
MK
83132003-01-05 Mark Kettenis <kettenis@gnu.org>
8314
8315 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
8316 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
8317 i386_get_longjmp_target.
8318
15a5b3ee
AC
83192003-01-05 Andrew Cagney <ac131313@redhat.com>
8320
8321 * arm-tdep.c (prologue_cache): Change to a pointer.
8322 (_initialize_arm_tdep): Allocate prologue_cache.
8323 (check_prologue_cache): Update.
8324 (save_prologue_cache): Update.
8325 (arm_gdbarch_init): Update.
8326
c263362b
DJ
83272003-01-04 Daniel Jacobowitz <drow@mvista.com>
8328
8329 * stabsread.c (update_method_name_from_physname): Call complaint()
8330 instead of error.
8331
51603483
DJ
83322003-01-04 Daniel Jacobowitz <drow@mvista.com>
8333
8334 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
8335 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
8336 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
8337
8338 * blockframe.c: Include "gdbcmd.h" and "command.h".
8339 (backtrace_below_main): New variable.
8340 (file_frame_chain_valid, func_frame_chain_valid)
8341 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
8342 (generic_func_frame_chain_valid): Remove functions.
8343 (frame_chain_valid, do_flush_frames_sfunc): New functions.
8344 (_initialize_blockframe): New function.
8345 * Makefile.in (blockframe.o): Update dependencies.
8346 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
8347 comment. Call frame_chain_valid ().
8348 * frame.h: Remove old prototypes. Add prototype for
8349 frame_chain_valid and update comments to match.
8350 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
8351 Remove old comment.
8352 * gdbarch.h: Regenerated.
8353 * gdbarch.c: Regenerated.
8354
8355 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8356 set_gdbarch_frame_chain_valid.
8357 * avr-tdep.c (avr_gdbarch_init): Likewise.
8358 * cris-tdep.c (cris_gdbarch_init): Likewise.
8359 * frv-tdep.c (frv_gdbarch_init): Likewise.
8360 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8361 * i386-tdep.c (i386_svr4_init_abi): Likewise.
8362 (i386_nw_init_abi): Likewise.
8363 (i386_gdbarch_init): Likewise.
8364 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
8365 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8366 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8367 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
8368 * mips-tdep.c (mips_gdbarch_init): Likewise.
8369 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8370 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
8371 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8372 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8373 * s390-tdep.c (s390_gdbarch_init): Likewise.
8374 * sh-tdep.c (sh_gdbarch_init): Likewise.
8375 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
8376 * v850-tdep.c (v850_gdbarch_init): Likewise.
8377 * vax-tdep.c (vax_gdbarch_init): Likewise.
8378 * x86-64-tdep.c (x86_64_init_abi): Likewise.
8379
8380 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
8381 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
8382 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
8383 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
8384 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
8385 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
8386 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
8387 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
8388
b00a8037
DJ
83892002-01-04 Daniel Jacobowitz <drow@mvista.com>
8390
8391 * Makefile.in (acconfig_h): Remove incorrect macro.
8392 (config_h): Define.
8393 (osabi.o): Update dependencies.
8394 * configure.tgt: Set gdb_osabi based on target triplet.
8395 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
8396 * configure: Regenerated.
8397 * config.in: Regenerated.
8398 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
8399 (GDB_OSABI_DEFAULT): Define if not already defined.
8400 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
8401 (set_osabi_string): New variables.
8402 (gdbarch_register_osabi): Add new OS ABI to
8403 gdb_osabi_available_names.
8404 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
8405 (set_osabi, show_osabi): New functions.
8406 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
8407
4be87837
DJ
84082003-01-04 Daniel Jacobowitz <drow@mvista.com>
8409
8410 * arch-utils.c (gdbarch_info_init): Set osabi to
8411 GDB_OSABI_UNINITIALIZED.
8412 * gdbarch.sh: Add osabi to struct gdbarch and to struct
8413 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
8414 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
8415 * gdbarch.c: Regenerated.
8416 * gdbarch.h: Regenerated.
8417 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
8418 there's no BFD.
8419 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
8420 * osabi.h (enum gdb_osabi): Move to defs.h.
8421 (gdbarch_init_osabi): Update prototype.
8422 * defs.h (enum gdb_osabi): Moved here.
8423 * Makefile.in: Update dependencies.
8424
8425 * alpha-tdep.h: Don't include "osabi.h".
8426 (struct gdbarch_tdep): Remove osabi member.
8427 * alpha-tdep.c: Include "osabi.h".
8428 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8429 iterate over arches. Update call to gdbarch_init_osabi.
8430 (alpha_dump_tdep): Don't dump osabi.
8431 * alpha-linux-tdep.c: Include "osabi.h".
8432 * alpha-osf1-tdep.c: Include "osabi.h".
8433 * alphafbsd-tdep.c: Include "osabi.h".
8434 * alphanbsd-tdep.c: Include "osabi.h".
8435
8436 * arm-tdep.h: Don't include "osabi.h".
8437 (struct gdbarch_tdep): Remove osabi member.
8438 * arm-tdep.c: Include "osabi.h".
8439 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8440 iterate over arches. Update call to gdbarch_init_osabi.
8441 (arm_dump_tdep): Don't dump osabi.
8442 * arm-linux-tdep.c: Include "osabi.h".
8443 * armnbsd-tdep.c: Include "osabi.h".
8444
8445 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
8446 Update call to gdbarch_init_osabi.
8447
8448 * i386-tdep.h: Don't include "osabi.h".
8449 (struct gdbarch_tdep): Remove osabi member.
8450 * i386-tdep.c: Include "osabi.h".
8451 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8452 iterate over arches. Update call to gdbarch_init_osabi.
8453 (i386_dump_tdep): Don't dump osabi.
8454 * i386-linux-tdep.c: Include "osabi.h".
8455 * i386-sol2-tdep.c: Include "osabi.h".
8456 * i386bsd-tdep.c: Include "osabi.h".
8457 * i386gnu-tdep.c: Include "osabi.h".
8458 * i386ly-tdep.c: Include "osabi.h".
8459 * i386nbsd-tdep.c: Include "osabi.h".
8460 * i386obsd-tdep.c: Include "osabi.h".
8461
8462 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
8463 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8464 check osabi when iterating over arches. Update call to
8465 gdbarch_init_osabi.
8466 (mips_dump_tdep): Don't dump osabi.
8467
8468 * ns32k-tdep.h: Don't include "osabi.h".
8469 (struct gdbarch_tdep): Remove.
8470 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
8471 gdbarch_lookup_osabi. Don't iterate over arches. Don't
8472 allocate tdep. Update call to gdbarch_init_osabi.
8473 (ns32k_dump_tdep): Remove.
8474 (_initialize_ns32k_tdep): Update call to gdbarch_register.
8475 * ns32knbsd-tdep.c: Include "osabi.h".
8476
8477 * ppc-tdep.h: Don't include "osabi.h".
8478 (struct gdbarch_tdep): Remove osabi member.
8479 * rs6000-tdep.c: Include "osabi.h".
8480 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
8481 osabi when iterating over arches. Update call to
8482 gdbarch_init_osabi.
8483 (rs6000_dump_tdep): Don't dump osabi.
8484 * ppc-linux-tdep.c: Include "osabi.h".
8485 * ppcnbsd-tdep.c: Include "osabi.h".
8486
8487 * sh-tdep.h: Don't include "osabi.h".
8488 (struct gdbarch_tdep): Remove osabi member.
8489 * sh-tdep.c: Include "osabi.h".
8490 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8491 iterate over arches. Update call to gdbarch_init_osabi.
8492 (sh_dump_tdep): Don't dump osabi.
8493 * shnbsd-tdep.c: Include "osabi.h".
8494
8495 * sparc-tdep.c: Include "osabi.h".
8496 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8497 iterate over arches. Update call to gdbarch_init_osabi.
8498 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
8499 tdep structure.
8500
8501 * vax-tdep.h: Don't include "osabi.h".
8502 (struct gdbarch_tdep): Remove.
8503 * vax-tdep.c: Include "osabi.h".
8504 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8505 iterate over arches. Don't allocate tdep. Update call
8506 to gdbarch_init_osabi.
8507 (vax_dump_tdep): Remove.
8508 (_initialize_vax_tdep): Update call to gdbarch_register.
8509
a881cf8e
DJ
85102003-01-04 Daniel Jacobowitz <drow@mvista.com>
8511
8512 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
8513 entirely.
8514 (breakpoint_re_set_one): Don't fetch the value for a disabled
8515 watchpoint.
8516
1e698235
DJ
85172003-01-04 Daniel Jacobowitz <drow@mvista.com>
8518
8519 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
8520 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
8521 (COERCE_FLOAT_TO_DOUBLE): Remove.
8522 * gdbarch.c: Regenerate.
8523 * gdbarch.h: Regenerate.
8524 * Makefile.in: Remove value_h from gdbarch_h.
8525 * valops.c (coerce_float_to_double): New variable.
8526 (default_coerce_float_to_double): Remove.
8527 (standard_coerce_float_to_double): Remove.
8528 (value_arg_coerce): Use coerce_float_to_double.
8529 (_initialize_valops): Add "set coerce-float-to-double".
8530 * value.h (default_coerce_float_to_double): Remove prototype.
8531 (standard_coerce_float_to_double): Remove prototype.
8532
8533 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
8534 prototyped.
8535 * mdebugread.c (parse_symbol): Likewise.
8536 * stabsread.c (define_symbol): Mark all functions as prototyped.
8537
8538 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
8539 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
8540 set_gdbarch_coerce_float_to_double.
8541 * arm-tdep.c (arm_gdbarch_init): Likewise.
8542 * frv-tdep.c (frv_gdbarch_init): Likewise.
8543 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
8544 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
8545 * mips-tdep.c (mips_gdbarch_init): Likewise.
8546 (mips_coerce_float_to_double): Remove.
8547 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8548 (rs6000_coerce_float_to_double): Remove.
8549 * s390-tdep.c (s390_gdbarch_init): Likewise.
8550 * sh-tdep.c (sh_gdbarch_init): Likewise.
8551 (sh_coerce_float_to_double): Remove.
8552 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
8553 (sparc_coerce_float_to_double): Remove.
8554 * v850-tdep.c (v850_gdbarch_init): Likewise.
8555 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8556 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8557 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
8558 (hppa_coerce_float_to_double): Remove prototype.
8559 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8560
f436a26a
DJ
85612003-01-04 Daniel Jacobowitz <drow@mvista.com>
8562
8563 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
8564
248f8055
DJ
85652003-01-04 Daniel Jacobowitz <drow@mvista.com>
8566
8567 Suggested by Stewart Brown <sb24@avaya.com>:
8568 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
8569 in recursive calls. Handle TYPE_CODE_TYPEDEF.
8570 (c_type_print_varspec_suffix): Likewise.
8571
72cfdc76
MK
85722003-01-04 Mark Kettenis <kettenis@gnu.org>
8573
bfd260bb
MK
8574 * configure.in: Don't set and AC_SUBST SUBDIRS.
8575 * configure: Regenerated.
8576
72cfdc76
MK
8577 * configure.in: Remove code dealing with shared libraries.
8578 * Makefile.in: Remove HLDFLAGS and HLDENV.
8579 * configure: Regenerated.
8580
c8b8a898
AC
85812003-01-04 Andrew Cagney <ac131313@redhat.com>
8582
8583 * frame.c (deprecated_frame_xmalloc): New function.
8584 (deprecated_set_frame_saved_regs_hack): New function.
8585 (deprecated_set_frame_extra_info_hack): New function.
8586 * frame.h (deprecated_frame_xmalloc): Declare.
8587 (deprecated_set_frame_saved_regs_hack): Declare.
8588 (deprecated_set_frame_extra_info_hack): Declare.
8589
14abd0fb
MK
85902003-01-04 Mark Kettenis <kettenis@gnu.org>
8591
8ee53726
MK
8592 * configure.in: Move code that provides the --enable-gdbtk option
8593 right after the code that handles the --enable-tui option, and
8594 polish it somewhat.
8595 * configure: Regenerated.
8596
14abd0fb
MK
8597 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
8598 AC_CHECK_FUNCS and remove the old check for pread64.
8599 * acinclude.m4 (AC_GNU_SOURCE): New macro.
8600 * acconfig.h (_GNU_SOURCE): Add.
8601 (HAVE_PREAD64): Remove.
8602 * configure, aclocal.m4, config.in: Regenerated.
8603
b2fb4676
AC
86042003-01-03 Andrew Cagney <ac131313@redhat.com>
8605
8606 * alpha-tdep.c: Use get_frame_saved_regs.
8607 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8608 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
8609 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
8610 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
8611 * vax-tdep.c, xstormy16-tdep.c: Ditto.
8612
8dcde887
MK
86132003-01-03 Mark Kettenis <kettenis@gnu.org>
8614
8615 * configure.in: Remove all use of the SUBDIRS variable; add
8616 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
8617 code providing the --enable-multi-ice option, and move it right in
8618 front of the code that checks whether gdbserver is supported.
8619 Polish that too.
8620 * configure: Regenerated.
8621 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
8622 @SUBDIRS@.
8623
8ccd593b
AC
86242003-01-03 Andrew Cagney <cagney@redhat.com>
8625
8626 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
8627 * avr-tdep.c, cris-tdep.c: Ditto.
8628 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
8629 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8630
91151a06
MK
86312003-01-03 Mark Kettenis <kettenis@gnu.org>
8632
8633 * configure.in: Remove --enable-netrom option.
8634 * configure: Regenerated.
8635
8fe84d01
MK
86362003-01-03 Mark Kettenis <kettenis@gnu.org>
8637
8638 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
8639 declaration for `struct re_pattern_buffer' instead.
8640 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
8641
f0394be6
JB
86422003-01-03 J. Brobecker <brobecker@gnat.com>
8643
8644 * mdebugread.c (parse_symbol): Count until the stEnd matching
8645 the structure name.
8646
27e9bf90
MK
86472003-01-02 Mark Kettenis <kettenis@gnu.org>
8648
93d331ba
MK
8649 * configure.in: Remove --with-cpu option.
8650 subscripts. Remove evil changequotes here.
8651 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
8652 * config.in, configure: Regenerated.
8653
27e9bf90
MK
8654 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
8655 * configure.in: Cleanup section that sources GDB and BFD configure
8656 subscripts. Remove evil changequotes here.
8657 * config.in, configure: Regenerated.
8658
50abf9e5
AC
86592003-01-02 Andrew Cagney <ac131313@redhat.com>
8660
8661 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
8662 frame accessor methods.
8663 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8664 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
8665 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
8666 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
8667 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8668 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
8669 * z8k-tdep.c: Ditto.
8670
287c1a40
MK
86712003-01-02 Mark Kettenis <kettenis@gnu.org>
8672
f5dbc56d
MK
8673 * configure.in: Remove UI_OUT configuration code.
8674 * ada-lang.c: Update assuming UI_OUT is always true.
8675 * Makefile.in (UIOUT_CFLAGS): Remove.
8676 * configure: Regenerated.
8677 * TODO: Remove blurb about elimination of -DUI_OUT.
8678
627af7ea
MK
8679 * configure.in: Move code that provides the --enable-gdbcli,
8680 --enable-gdbmi options right before the code that handles the
8681 --enable-tui option. Polish a bit.
8682 * configure: Regenerated.
8683
06825bd1
MK
8684 * configure.in: Rewrite check for GNU regex and the
8685 --without-included regex option, and move it into the "Checks for
8686 library functions" section. This makes us use the system regex
8687 again by default on systems with version 2 of the GNU C library.
8688 This was apparently broken.
8689 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
8690 * acconfig.h (USE_INCLUDED_REGEX): Remove.
8691 * config.in, configure: Regenerated.
8692
287c1a40
MK
8693 * configure.in: Move code that provides the --enable-tui option
8694 before the "Checks for libraries" section. Polish the code
8695 somewhat and set need_curses to yes if we build the TUI. Rewrite
8696 code that looks for a library providing termcap functionality to
8697 match more closely what's done in the Readline library, and move
8698 it into to the "Checks for libraries" section.
8699 * configure: Regenerated.
8700 * Makefile.in (TERMCAP): Remove variable.
8701 * config/i386/go32.mh (TERMCAP): Remove variable.
8702
684e56bf
AC
87032003-01-02 Andrew Cagney <ac131313@redhat.com>
8704
8705 * MAINTAINERS: Mention gdb_mbuild.sh.
8706 * gdb_mbuild.sh: Rewrite.
8707
e1ea1d75
MK
87082003-01-02 Mark Kettenis <kettenis@gnu.org>
8709
8710 * configure.in: Fix typo in last change.
8711 * config.in, configure: Regenerated.
8712
1b831c93
AC
87132003-01-02 Andrew Cagney <ac131313@redhat.com>
8714
8715 * valarith.c (value_binop): Delete obsolete code and comments.
8716 * configure.host: Ditto.
8717 * buildsym.h (make_blockvector): Ditto.
8718 * buildsym.c (make_blockvector): Ditto.
8719 * defs.h (enum language): Ditto.
8720 (chill_demangle): Ditto.
8721 * elfread.c (elf_symtab_read): Ditto.
8722 * dwarfread.c (CHILL_PRODUCER): Ditto.
8723 (set_cu_language): Ditto.
8724 (handle_producer): Ditto.
8725 * expprint.c (print_subexp): Ditto.
8726 * gdbtypes.c (chill_varying_type): Ditto.
8727 * gdbtypes.h (builtin_type_chill_bool): Ditto.
8728 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
8729 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
8730 (chill_varying_type): Ditto.
8731 * language.h (_LANG_chill): Ditto.
8732 * language.c (binop_result_type, integral_type): Ditto.
8733 (character_type, string_type, structured_type): Ditto.
8734 (lang_bool_type, binop_type_check): Ditto.
8735 * stabsread.h (os9k_stabs): Ditto.
8736 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
8737 (define_symbol, read_type, read_struct_fields): Ditto.
8738 (read_array_type, read_enum_type, read_huge_number): Ditto.
8739 (read_range_type, start_stabs): Ditto.
8740 * symfile.c (init_filename_language_table): Ditto.
8741 (add_psymbol_with_dem_name_to_list): Ditto.
8742 * symtab.c (symbol_init_language_specific): Ditto.
8743 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
8744 * symtab.h (struct general_symbol_info): Ditto.
8745 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
8746 * typeprint.c (typedef_print): Ditto.
8747 * utils.c (fprintf_symbol_filtered): Ditto.
8748 * valops.c (value_cast, search_struct_field, value_slice): Delete
8749 obsolete code.
8750 (varying_to_slice): Delete function.
8751 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
8752 (varying_to_slice): Delete declaration.
8753 * MAINTAINERS: Update.
8754
8bb2c122
MK
87552003-01-02 Mark Kettenis <kettenis@gnu.org>
8756
97bf5e38
MK
8757 * configure.in: Reorganize "Checks for library functions section"
8758 a bit. Remove check for `btowc' and `isascii' functions.
8759 * configure: Regenerated.
8760
5ee754fc
MK
8761 * acconfig.h (_MSE_INT_H): Remove.
8762 * configure.in: Create "Checks for header files" section, and move
8763 appropriate tests there. Don't check for objlist.h, wchar.h,
8764 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
8765 misdetection fix. Also add "Checks for types", "Checks for
8766 compiler characteristics" and "Checks for library functions"
8767 sections.
8768 * config.in, configure: Regenerated.
8769
8bb2c122
MK
8770 * configure.in: Create "Checks for programs" section, and move
8771 appropriate tests there.
8772
9a156167
MK
87732003-01-01 Mark Kettenis <kettenis@gnu.org>
8774
8775 * configure.in: Create "Checks for libraries" section, and move
8776 appropriate tests there. Cleanup check for wctype in libw. Use
8777 AC_SEARCH_LIBS to see whether we need libsocket.
8778 * configure: Regenerated.
8779
a80e2bcb 8780For older changes see ChangeLog-2002
c906108c
SS
8781\f
8782Local Variables:
8783mode: change-log
8784left-margin: 8
8785fill-column: 74
8786version-control: never
8787End:
This page took 1.634748 seconds and 4 git commands to generate.