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