OSDN Git Service

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