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