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