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