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