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