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