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