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