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