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