2003-04-12 Andrew Cagney <cagney@redhat.com>
[external/binutils.git] / gdb / ChangeLog
1 2003-04-12  Andrew Cagney  <cagney@redhat.com>
2
3         * gdbthread.h (save_infrun_state): Delete parameter
4         "prev_func_start".
5         (struct thread_info): Delete field "prev_func_start".
6         (load_infrun_state): Ditto.
7         * thread.c (load_infrun_state, save_infrun_state): Update.
8         * infrun.c (prev_func_start): Delete variable.
9         (context_switch, init_wait_for_inferior): Update.
10         (stop_stepping, keep_going): Update.
11
12 2003-04-12  Andrew Cagney  <cagney@redhat.com>
13
14         * gdbarch.sh: Add missing opaque declarations.
15         * gdbarch.h: Regnerate.
16         * symtab.h: Add missing opaque declarations.
17         * value.h, target.h, symfile.h, stabsread.h: Ditto.
18         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
19         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
20         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
21         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
22         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
23         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
24         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
25         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
26         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
27         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
28         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
29         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
30
31 2003-04-11  Andrew Cagney  <cagney@redhat.com>
32
33         * frame.c (get_frame_id): Return this frame's "id".
34         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
35         function start.
36         (legacy_saved_regs_this_id): Replace function body with
37         internal-error.
38         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
39         FRAME_OBSTACK_ZALLOC.
40         (create_new_frame): Mark the frame ID as valid.
41
42 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
43
44         * Makefile.in (libbfd_h): Added missing setting.
45         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
46         according to the selected ABI.
47
48 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
49
50         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
51
52 2003-04-11  Andrew Cagney  <cagney@redhat.com>
53
54         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
55         SAVED_PC_AFTER_CALL.
56         * gdbarch.h, gdbarch.c: Regenerate.
57         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
58         * x86-64-tdep.c (x86_64_init_abi): Update.
59         * vax-tdep.c (vax_gdbarch_init): Update.
60         * v850-tdep.c (v850_gdbarch_init): Update.
61         * sparc-tdep.c (sparc_gdbarch_init): Update.
62         * sh-tdep.c (sh_gdbarch_init): Update.
63         * s390-tdep.c (s390_gdbarch_init): Update.
64         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
65         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
66         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
67         * mips-tdep.c (mips_gdbarch_init): Update.
68         * mcore-tdep.c (mcore_gdbarch_init): Update.
69         * m68k-tdep.c (m68k_gdbarch_init): Update.
70         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
71         * ia64-tdep.c (ia64_gdbarch_init): Update.
72         (ia64_saved_pc_after_call): Update declaration.
73         * i386ly-tdep.c (i386lynx_init_abi): Update.
74         * i386-tdep.c (i386_gdbarch_init): Update.
75         * hppa-tdep.c (hppa_gdbarch_init): Update.
76         * h8300-tdep.c (h8300_gdbarch_init): Update.
77         * frv-tdep.c (frv_gdbarch_init): Update.
78         * cris-tdep.c (cris_gdbarch_init): Update.
79         * avr-tdep.c (avr_gdbarch_init): Update.
80         * arm-tdep.c (arm_gdbarch_init): Update.
81         * alpha-tdep.c (alpha_gdbarch_init): Update.
82         * ns32knbsd-nat.c (frame_num_args): Update.
83         * ns32k-tdep.c (umax_frame_num_args): Update.
84         * mips-tdep.c (mips_init_frame_pc_first): Update.
85         * infrun.c (step_over_function): Update.
86         * i386-linux-tdep.c (skip_hurd_resolver): Update.
87         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
88         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
89         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
90         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
91         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
92         * arm-linux-tdep.c (skip_hurd_resolver): Update.
93         * arch-utils.c (init_frame_pc_default): Update.
94         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
95         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
96         declaration.
97         
98 2003-04-11  Andrew Cagney  <cagney@redhat.com>
99
100         * i387-tdep.c: Update copyright.
101         (i387_to_double): Delete function.
102         (double_to_i387): Delete function.
103
104 2003-04-10  Andrew Cagney  <cagney@redhat.com>
105
106         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
107         frame's function's address.  Simplify.
108         (d10v_frame_unwind_cache): Check that the frame's function is
109         non-zero.
110
111 2003-04-10  Jim Blandy  <jimb@redhat.com>
112
113         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
114         call to set_gdbarch_deprecated_push_arguments.
115
116 2003-04-10  Andrew Cagney  <cagney@redhat.com>
117
118         * frame.c (fprint_frame_id): New function.
119         (fprint_frame_type, fprint_frame): New function.
120         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
121         (create_sentinel_frame, get_frame_id): Ditto.
122         (frame_id_p, frame_id_eq): Ditto.
123         (frame_id_inner, create_new_frame): Ditto.
124         (legacy_get_prev_frame, get_prev_frame): Ditto.
125         (deprecated_update_frame_pc_hack): Ditto.
126         (frame_register_unwind): Ditto.
127         (deprecated_update_frame_base_hack): Ditto.
128
129 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
130
131         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
132         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
133         frame_chain function.
134         * Makefile.in: Add dependencies due to above change.
135
136 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
137
138         * blockframe.c (legacy_frame_chain_valid): Move call to
139         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
140         inside_entry_file.
141
142 2003-04-09  Andrew Cagney  <cagney@redhat.com>
143
144         * frame.h (struct frame_id): Replace "pc" and "base" with
145         "stack_addr" and "code_addr".  Update comments.
146         (frame_id_build): Update parameter names and comment.
147         (struct frame_info): Replace "id_p" and "id" with "this_id".
148         * dummy-frame.c (dummy_frame_this_id): Update.
149         * breakpoint.c (print_one_breakpoint): Update.
150         * frame.c (get_frame_id): Update.
151         (get_frame_base, frame_id_build): Update.
152         (create_sentinel_frame, legacy_get_prev_frame): Update.
153         (deprecated_update_frame_base_hack): Update.
154         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
155         (frame_id_inner): Ditto.
156
157 2003-04-09  Andrew Cagney  <cagney@redhat.com>
158
159         * defs.h (gdb_print_host_address): Make "addr" parameter a
160         pointer constant.
161         * utils.c (gdb_print_host_address): Update.
162
163 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
164
165         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
166         register number for R0 is 0.
167
168 2003-04-09  J. Brobecker  <brobecker@gnat.com>
169
170         * frame.h (struct gdbarch): Add opaque structure definition
171         to avoid a compilation warning on LynxOS 4.0.
172
173 2003-04-09  Andrew Cagney  <cagney@redhat.com>
174
175         * frame.h (struct frame_info): Delete field "pc".  Replace
176         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
177         structure.
178         * frame.c (frame_pc_unwind): Update.
179         (create_sentinel_frame): Do not set "pc".
180         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
181         (get_frame_pc): Call frame_pc_unwind.
182         (deprecated_update_frame_pc_hack): Update.
183         (create_new_frame): Use "pc" not "->pc".
184
185 2003-04-09  Andrew Cagney  <cagney@redhat.com>
186
187         * frame.c (get_frame_id): Eliminate code updating "frame".
188         (legacy_get_prev_frame): Ditto.
189         (get_frame_base): Return id.base directly.
190         (deprecated_update_frame_base_hack): Update "id.base".
191         * frame.h (struct frame_info): Delete field "frame".
192
193 2003-04-09  Andrew Cagney  <cagney@redhat.com>
194
195         * NEWS: Mention that the "Sequent family" is obsolete.
196         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
197         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
198         * configure.host: Obsolete i[3456]86-sequent-bsd*,
199         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
200         * config/i386/tm-ptx4.h: Obsolete file.
201         * config/i386/tm-ptx.h: Obsolete file.
202         * symm-tdep.c: Obsolete file.
203         * config/i386/symmetry.mt: Obsolete file.
204         * config/i386/tm-symmetry.h: Obsolete file.
205         * symm-nat.c: Obsolete file.
206         * config/i386/nm-symmetry.h: Obsolete file.
207         * config/i386/xm-symmetry.h: Obsolete file.
208         * config/i386/symmetry.mh: Obsolete file.
209         * config/i386/nm-ptx4.h: Obsolete file.
210         * config/i386/ptx4.mh: Obsolete file.
211         * config/i386/ptx.mt: Obsolete file.
212         * config/i386/ptx.mh: Obsolete file.
213         * config/i386/xm-ptx4.h: Obsolete file.
214         * config/i386/xm-ptx.h: Obsolete file.
215
216 2003-04-09  Andrew Cagney  <cagney@redhat.com>
217
218         Obsolete mips*-*-mach3*.
219         * NEWS: Mention that mips*-*-mach3* is obsolete.
220         * m3-nat.c: Obsolete file.
221         * config/nm-m3.h: Obsolete file.
222         * config/mips/tm-mipsm3.h: Obsolete file.
223         * config/mips/mipsm3.mt: Obsolete file.
224         * config/mips/mipsm3.mh: Obsolete file.
225         * config/mips/xm-mipsm3.h: Obsolete file.
226         * mipsm3-nat.c: Obsolete file.
227         * configure.host: Obsolete mips-dec-mach3*.
228         * configure.tgt: Obsolete mips*-*-mach3*.
229
230 2003-04-09  Andrew Cagney  <cagney@redhat.com>
231
232         * doublest.h: Update copyright.
233         (deprecated_store_floating, deprecated_extract_floating): Rename
234         store_floating and extract_floating.  Update comments.
235         * doublest.c: Update copyright.
236         (extract_floating_by_length): Replace extract_floating.
237         (store_floating_by_length): Replace store_floating.
238         (deprecated_extract_floating): New function.
239         (deprecated_store_floating): New function.
240         (extract_typed_floating): Call extract_floating_by_length.
241         (store_typed_floating): Call store_floating_by_length.
242         * x86-64-tdep.c (x86_64_store_return_value): Update.
243         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
244         (sh64_extract_return_value): Update.
245         (sh_sh4_register_convert_to_virtual): Update.
246         (sh_sh64_register_convert_to_virtual): Update.
247         (sh_sh4_register_convert_to_raw): Update.
248         (sh_sh64_register_convert_to_raw): Update.
249         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
250         (rs6000_register_convert_to_raw): Update.
251         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
252         (ia64_register_convert_to_raw): Update.
253         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
254         (REGISTER_CONVERT_TO_VIRTUAL): Update.
255         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
256         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
257         (alpha_register_convert_to_raw): Update.
258
259 2003-04-08  Andrew Cagney  <cagney@redhat.com>
260
261         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
262         * gdbarch.h, gdbarch.c: Re-generate.
263         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
264         (d10v_gdbarch_init): Do not set saved_pc_after_call.
265         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
266         conditionally, use frame_pc_unwind as an alternative.  Add
267         comments.
268         * arch-utils.c (init_frame_pc_default): Only call
269         SAVED_PC_AFTER_CALL when available.
270
271 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
272
273         * infrun.c (stop_soon): Rename from stop_soon_quietly.
274         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
275         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
276         (start_remote): Ditto.
277         (handle_inferior_event): Ditto.
278         (save_inferior_status): Ditto.
279         (restore_inferior_status): Ditto.
280         * infcmd.c (attach_command): Ditto.
281         * fork-child.c (startup_inferior): Ditto.
282         * inferior.h (stop_soon): Rename from stop_soon_quietly.
283         * alpha-tdep.c (heuristic_proc_start): Ditto.
284         * mips-tdep.c (heuristic_proc_start): Ditto.
285         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
286         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
287         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
288         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
289         * remote-vx.c (vx_create_inferior): Ditto.
290
291 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
292
293         * infrun.c (stop_soon_quietly): Make it an enum, to better
294         override the default behavior of handle_inferior_event.
295         (clear_proceed_status): Update uses of stop_soon_quietly to
296         reflect that it is now an enum.
297         (start_remote): Ditto.
298         (handle_inferior_event): Change logic a bit if stop_soon_quietly
299         is set to handle the new GNU/Linux kernel behavior for
300         attach/sigstop.  Update uses of stop_soon_quietly.
301         * inferior.h (enum stop_kind): New enum.
302         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
303         Reset normal handle_inferior_event behavior, afterwards.
304         * fork-child.c (startup_inferior): Update.
305         * alpha-tdep.c (heuristic_proc_start): Update.
306         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
307         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
308         * solib-osf.c (osf_solib_create_inferior_hook): Update.
309         * solib-irix.c (irix_solib_create_inferior_hook): Update.
310         * remote-vx.c (vx_create_inferior): Update.
311         * mips-tdep.c (heuristic_proc_start): Update.
312
313 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
314
315         * disasm.c (dump_insns):  Move variables inside loop, or they will
316         be freed more than once, causing wild memory corruptions.
317         (gdb_disassembly): Look for the substring "-thread",
318         instead of "-threads" in the target name, to make sure to find
319         the 'multi-thread' target.  Also, make sure we do the right thing 
320         with the "core" target.
321
322 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
323
324         * mips-tdep.c (mips_print_fp_register): New function, created from
325         do_fp_register_row().  Registers are now (also) printed as hex.
326         Only one register is printed per row.
327         (mips_print_register, do_fp_register_row): Print floating point
328         registers with mips_print_fp_register().
329
330 2003-04-06  Andrew Cagney  <cagney@redhat.com>
331
332         * valprint.h (inspect_it): Add extern declaration.
333         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
334         (selectors_info, classes_info): Ditto.
335         (find_objc_msgcall): Fix indentation.
336         (objc_printstr): Delete extern declarations.
337
338         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
339
340 2003-04-06  Andrew Cagney  <cagney@redhat.com>
341
342         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
343         Update comment.
344         * frame.c (legacy_saved_regs_this_id): Update.
345         (legacy_get_prev_frame): Update.
346         * xstormy16-tdep.c: Update comment.
347         * sparc-tdep.c (sparc_frame_chain): Update comment.
348         * blockframe.c (legacy_frame_chain_valid): Update.
349
350 2003-04-06  Andrew Cagney  <cagney@redhat.com>
351
352         * valprint.c (val_print_type_code_int): Delete #ifdef
353         PRINT_TYPELESS_INTEGER code.
354
355         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
356         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
357         multi-arch definition.
358         * gdbarch.h: Re-generate.
359
360 2003-04-05  Andrew Cagney  <cagney@redhat.com>
361
362         Eliminate FRAME_FIND_SAVED_REGS.
363         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
364         Change FSR parameter to a pointer.
365         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
366         Assume FSR parameter is a pointer.
367         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
368         Make fsr a pointer.
369         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
370         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
371         saved_regs a pointer.
372         (hppa_frame_saved_pc): Ditto.
373         (find_dummy_frame_regs): Make frame_saved_regs a pointer
374         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
375         pointer.
376         (restore_pc_queue): Make fsr a pointer.
377         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
378         (hppa_frame_chain): Make saved_regs a pointer, call
379         hppa_frame_init_saved_regs.
380         * sparc-tdep.c: Include "gdb_assert.h".
381         (sparc_frame_find_saved_regs): Replace internal_error with
382         gdb_assert.
383         * remote-vxsparc.c (vx_read_register): Delete reference to
384         FRAME_FIND_SAVED_REGS.
385         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
386         * gdbarch.h: Regenerate.
387         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
388         (deprecated_get_frame_saved_regs): Delete declaration.
389         (struct frame_saved_regs): Delete definition.
390         * frame.c (deprecated_get_frame_saved_regs): Delete function.
391         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
392         (hppa_frame_find_saved_regs): Delete declaration.
393         (FRAME_FIND_SAVED_REGS): Delete macro.
394         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
395         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
396         FRAME_FIND_SAVED_REGS in comment.
397
398 2003-04-05  Andrew Cagney  <cagney@redhat.com>
399
400         * frame.c (frame_func_unwind, get_frame_func): New functions.
401         * frame.h (get_frame_func, frame_func_unwind): Declare.
402         (struct frame_info): Add field "prev_func" for caching the
403         previous frame's function address.
404         * arm-tdep.c (arm_frameless_function_invocation): Combine
405         get_pc_function_start and get_frame_pc into get_frame_func.
406         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
407         (sh64_nofp_frame_init_saved_regs): Ditto.
408         * s390-tdep.c (s390_function_start): Ditto.
409         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
410         (rs6000_frameless_function_invocation): Ditto.
411         (rs6000_frame_saved_pc): Ditto.
412         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
413         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
414         * i386-tdep.c (i386_frameless_signal_p): Ditto.
415         (i386_frame_init_saved_regs): Ditto.
416         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
417         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
418         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
419         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
420         * blockframe.c (frameless_look_for_prologue): Ditto.
421
422 2003-04-05  Andrew Cagney  <cagney@redhat.com>
423
424         * frame.c (legacy_get_prev_frame): Link prev to next at the
425         function start.  Update comments.
426
427 2003-04-05  Andrew Cagney  <cagney@redhat.com>
428
429         * frame.c (get_frame_id): Update comment.
430         (legacy_get_prev_frame): Update comment.
431         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
432         * gdbarch.h: Regenerate.
433         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
434         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
435
436 2003-04-05  Andrew Cagney  <cagney@redhat.com>
437
438         * stack.c (print_frame_info): Use get_frame_pc.
439
440 2003-04-04  Andrew Cagney  <cagney@redhat.com>
441
442         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
443         the frame's type from the unwinder.
444         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
445         (create_new_frame, legacy_get_prev_frame): When the unwinder's
446         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
447         (get_frame_base_address): Use get_frame_type.
448         (get_frame_locals_address, get_frame_args_address): Ditto.
449         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
450         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
451         (struct frame_info): Add comment explaining why the frame contains
452         a "type" field.
453         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
454         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
455         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
456         NORMAL_FRAME.
457         * frame-unwind.h: Include "frame.h".
458         (struct frame_unwind): Add "type" field.
459         * Makefile.in (frame_unwind_h): Add $(frame_h).
460         
461 2003-04-04  Andrew Cagney  <cagney@redhat.com>
462
463         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
464         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
465         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
466         get_frame_base.
467         (d10v_unwind_dummy_id): Use frame_id_build.
468         * frame.c (find_frame_sal): Use get_frame_pc.
469         (create_new_frame): Use deprecated_update_frame_pc_hack and
470         deprecated_update_frame_base_hack.
471         (create_sentinel_frame): Add comment about ->pc going away.
472         (get_prev_frame): Add comment about ->pc going away.
473         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
474         frame_id_build, deprecated_update_frame_pc_hack and
475         deprecated_update_frame_base_hack.
476         (select_frame): Use get_frame_pc.
477         (legacy_saved_regs_this_id): Use frame_id_build.
478
479 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
480
481         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
482         signed integer case.
483         (classify_argument): Handle enumerations and references.
484
485 2003-04-04  Andrew Cagney  <cagney@redhat.com>
486
487         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
488         ID to NULL.
489
490 2003-04-01  Adam Fedor  <fedor@gnu.org>
491
492         * gdb/objc-lang.c (selectors_info): Replace calls to
493         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
494         SYMBOL_NATURAL_NAME.
495         (classes_info, find_methods): Likewise.
496
497 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
498
499         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
500         ``mach'' to the value determined by bfd_default_set_arch_mach().
501
502 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
503
504         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
505         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
506         (mi-cmd-file.o): Update dependencies.
507
508 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
509
510         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
511         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
512
513 2003-04-01  Adam Fedor  <fedor@gnu.org>
514
515         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
516         * language.h (struct language_defn): Add la_demangle.
517         (language_demangle): Declare.
518         * language.c (language_demangle): New function.
519         (unk_lang_demangle): Likewise.
520         (unknown_language_defn, auto_language_defn, local_language_defn):
521         Add ukn_lang_demangle.
522         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
523         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
524         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
525         (cplus_language_defn): Add cplus_demangle for la_demangle element.
526         * jv-lang.c (java_demangle): New function
527         (java_language_defn): Use it for la_demangle element.
528         * objc-lang.c (objc_demangle): Add options argument
529         (objc_language_defn): Use objc_demangle for la_demangle element.
530         * maint.c (maintenance_demangle): Replace switch with
531         call to language_demangle.
532         * utils.c (fprintf_symbol_filtered): Likewise.
533
534 2003-04-01  Andrew Cagney  <cagney@redhat.com>
535
536         * printcmd.c (print_frame_nameless_args): Delete #ifdef
537         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
538         PRINT_TYPELESS_INTEGER.
539         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
540         PUSH_RETURN_ADDRESS.
541
542 2003-04-01  Andrew Cagney  <cagney@redhat.com>
543
544         * Makefile.in (d10v-tdep.o): Update dependencies.
545         * d10v-tdep.c: Include "frame-base.h".
546         (d10v_frame_unwind): Make constant.
547         (d10v_frame_base_address): New function.
548         (d10v_frame_base): New variable.
549         (d10v_gdbarch_init): Set frame_base default.
550         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
551         comment for base.
552         (d10v_frame_unwind_cache): Set and use "prev_sp".
553         (d10v_frame_this_id): Use the previous frame's inner most stack
554         address and this frame's func address for the frame ID.  Use
555         frame_id_build.  Don't analyze beyond the current instruction.
556         
557 2003-04-01  Andrew Cagney  <cagney@redhat.com>
558
559         * frame.h (get_frame_locals_address, get_frame_args_address):
560         Refer to the base address, instead of the address of the first
561         local or parameter.
562         
563 2003-04-01  Andrew Cagney  <cagney@redhat.com>
564
565         Add frame debug info addresses:
566         * frame-base.c: New file.
567         * frame-base.h: New file.
568         * frame.h (struct frame_base): Add opaque declaration.
569         (get_frame_base): Update comment.
570         (get_frame_base_address): Declare.
571         (get_frame_locals_address): Declare.
572         (get_frame_args_address): Declare.
573         (struct frame_info): Add "base" and "base_cache".  Update
574         comments on the unwinder.
575         * frame.c: Include "frame-base.h".
576         (get_frame_locals_address): New function.
577         (get_frame_base_address): New function.
578         (get_frame_args_address): New function.
579         * findvar.c (read_var_value): Use get_frame_locals_address and
580         get_frame_args_address.
581         * stack.c (frame_info): Use get_frame_locals_address and
582         get_frame_args_address.
583         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
584         moved to "frame-base.c".
585         * printcmd.c (print_frame_nameless_args): Ditto.
586         * symtab.h (address_class): Update comments.
587         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
588         get_frame_base_address.
589         * dwarf2expr.c (execute_stack_op): Ditto.
590         * Makefile.in (frame_base_h): Define.
591         (frame.o): Update dependencies.
592         (frame-base.o): Add dependencies.
593         (SFILES): Add frame-base.c.
594         (COMMON_OBS): Add frame-base.o.
595
596 2003-04-01  Andrew Cagney  <cagney@redhat.com>
597
598         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
599         CALL_DUMMY_LENGTH): Ditto.
600         * gdbarch.c: Re-generate.
601         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
602         (CALL_DUMMY_LENGTH): Delete macro.
603         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
604         * arm-tdep.c (arm_gdbarch_init): Ditto.
605         * avr-tdep.c (avr_gdbarch_init): Ditto.
606         * cris-tdep.c (cris_gdbarch_init): Ditto.
607         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
608         * frv-tdep.c (frv_gdbarch_init): Ditto.
609         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
610         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
611         * i386-tdep.c (i386_gdbarch_init): Ditto.
612         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
613         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
614         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
615         * mips-tdep.c (mips_gdbarch_init): Ditto.
616         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
617         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
618         * s390-tdep.c (s390_gdbarch_init): Ditto.
619         * sh-tdep.c (sh_gdbarch_init): Ditto.
620         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
621         * v850-tdep.c (v850_gdbarch_init): Ditto.
622         * vax-tdep.c (vax_gdbarch_init): Ditto.
623         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
624
625 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
626
627         * frame.c (get_prev_frame): Disable call to inside_entry_file().
628
629 2003-04-01  Andrew Cagney  <cagney@redhat.com>
630
631         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
632         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
633         * gdbarch.h, gdbarch.c: Re-generate.
634         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
635         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
636         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
637         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
638         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
639         * infcmd.c (run_stack_dummy): Simplify assuming
640         CALL_DUMMY_BREAKPOINT_OFFSET_P.
641         * infrun.c (handle_inferior_event): Ditto.
642         * alpha-tdep.c (alpha_gdbarch_init): Do not set
643         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
644         * arm-tdep.c (arm_gdbarch_init): Ditto.
645         * avr-tdep.c (avr_gdbarch_init): Ditto.
646         * cris-tdep.c (cris_gdbarch_init): Ditto.
647         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
648         * frv-tdep.c (frv_gdbarch_init): Ditto.
649         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
650         * i386-tdep.c (i386_gdbarch_init): Ditto.
651         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
652         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
653         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
654         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
655         * mips-tdep.c (mips_gdbarch_init): Ditto.
656         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
657         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
658         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
659         * s390-tdep.c (s390_gdbarch_init): Ditto.
660         * sh-tdep.c (sh_gdbarch_init): Ditto.
661         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
662         * v850-tdep.c (v850_gdbarch_init): Ditto.
663         * vax-tdep.c (vax_gdbarch_init): Ditto.
664         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
665
666 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
667
668         * symfile.c (symfile_relocate_debug_section): Update call to
669         bfd_simple_get_relocated_section_contents.
670
671 2003-03-31  Andrew Cagney  <cagney@redhat.com>
672
673         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
674         * gdbarch.h, gdbarch.c: Regenerate.
675         * inferior.h (FIX_CALL_DUMMY): Delete macro.
676         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
677         available.
678         * frame.h (generic_fix_call_dummy): Delete declaration.
679         * dummy-frame.h: Update comment.
680         * dummy-frame.c (generic_fix_call_dummy): Delete function.
681         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
682         fix_call_dummy.
683         * sh-tdep.c (sh_gdbarch_init): Ditto.
684         * s390-tdep.c (s390_gdbarch_init): Ditto.
685         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
686         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
687         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
688         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
689         * i386-tdep.c (i386_gdbarch_init): Ditto.
690         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
691         * frv-tdep.c (frv_gdbarch_init): Ditto.
692         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
693         * cris-tdep.c (cris_gdbarch_init): Ditto.
694         * avr-tdep.c (avr_gdbarch_init): Ditto.
695         * arm-tdep.c (arm_gdbarch_init): Ditto.
696
697 2003-03-31  J. Brobecker  <brobecker@gnat.com>
698
699         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
700         (INIT_FRAME_AP): Likewise.
701         (EXTRA_FRAME_INFO): Likewise.
702
703 2003-03-31  Andrew Cagney  <cagney@redhat.com>
704
705         * gdbarch.sh: Include "symfile.h".
706         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
707         * gdbarch.h, gdbarch.c: Re-generate.
708         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
709         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
710         call_dummy_address, the default is at entry_point_address.
711         * v850-tdep.c (v850_gdbarch_init): Ditto.
712         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
713         * sh-tdep.c (sh_gdbarch_init): Ditto.
714         * s390-tdep.c (s390_gdbarch_init): Ditto.
715         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
716         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
717         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
718         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
719         * i386-tdep.c (i386_gdbarch_init): Ditto.
720         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
721         * frv-tdep.c (frv_gdbarch_init): Ditto.
722         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
723         * cris-tdep.c (cris_gdbarch_init): Ditto.
724         * arm-tdep.c (arm_gdbarch_init): Ditto.
725
726 2003-03-31  Andrew Cagney  <cagney@redhat.com>
727
728         * gdbarch.sh (CALL_DUMMY_P): Delete.
729         * gdbarch.h, gdbarch.c: Re-generate.
730         * inferior.h (CALL_DUMMY_P): Delete macro.
731         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
732         * vax-tdep.c (vax_gdbarch_init): Update.
733         * v850-tdep.c (v850_gdbarch_init): Update.
734         * sparc-tdep.c (sparc_gdbarch_init): Update.
735         * sh-tdep.c (sh_gdbarch_init): Update.
736         * s390-tdep.c (s390_gdbarch_init): Update.
737         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
738         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
739         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
740         * mips-tdep.c (mips_gdbarch_init): Update.
741         * mcore-tdep.c (mcore_gdbarch_init): Update.
742         * m68k-tdep.c (m68k_gdbarch_init): Update.
743         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
744         * ia64-tdep.c (ia64_gdbarch_init): Update.
745         * i386-tdep.c (i386_gdbarch_init): Update.
746         * h8300-tdep.c (h8300_gdbarch_init): Update.
747         * frv-tdep.c (frv_gdbarch_init): Update.
748         * d10v-tdep.c (d10v_gdbarch_init): Update.
749         * cris-tdep.c (cris_gdbarch_init): Update.
750         * breakpoint.c (deprecated_frame_in_dummy): Update.
751         * avr-tdep.c (avr_gdbarch_init): Update.
752         * alpha-tdep.c (alpha_gdbarch_init): Update.
753         * arm-tdep.c (arm_gdbarch_init): Update.
754         * dummy-frame.c (dummy_frame_this_id): Update comments.
755         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
756         * frame.c (legacy_get_prev_frame): Ditto.
757         * valops.c (call_function_by_hand): Delete function.
758         (hand_function_call): Rename to call_function_by_hand
759
760 2003-03-30  Andrew Cagney  <cagney@redhat.com>
761
762         2002-11-10 Klee Dienes <kdienes@apple.com>
763         * value.h (struct value): Update comment.
764
765 2003-03-30  Andrew Cagney  <cagney@redhat.com>
766
767         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
768         D10V_FP_REGNUM.
769         (d10v_gdbarch_init): Do not set fp_regnum.
770
771         * frame.c (get_frame_base): Force ID initialization.
772         (get_prev_frame): Move computation of the frame ID from here ...
773         (get_frame_id): ... to here.
774         (legacy_get_prev_frame): Mark the frame ID as valid.
775         * frame.h (struct frame_info): Add field "id_p".
776
777 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
778
779         * i386-tdep.c (i386_store_struct_return): Removed.
780         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
781
782 2003-03-30  Andrew Cagney  <cagney@redhat.com>
783
784         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
785         * gdbarch.h, gdbarch.c: Regenerate.
786         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
787         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
788         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
789         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
790         * i386-tdep.c (i386_gdbarch_init): Ditto.
791         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
792         * cris-tdep.c (cris_gdbarch_init): Ditto.
793         * vax-tdep.c (vax_gdbarch_init): Ditto.
794         * s390-tdep.c (s390_gdbarch_init): Ditto.
795         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
796         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
797         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
798         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
799         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
800         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
801         * sparc-tdep.c (sparc_gdbarch_init): Update.
802         * sh-tdep.c (sh_gdbarch_init): Update.
803         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
804         * mips-tdep.c (mips_gdbarch_init): Update.
805         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
806         * ia64-tdep.c (ia64_gdbarch_init): Update.
807         * frv-tdep.c (frv_gdbarch_init): Update.
808         * avr-tdep.c (avr_gdbarch_init): Update.
809         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
810         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
811         instead of when push_dummy_call is not available.
812         
813 2003-03-30  Andrew Cagney  <cagney@redhat.com>
814
815         * infttrace.c: Include "gdbthread.h".
816         (parent_attach_all): Fix function signature.
817         (call_ptrace): Update call.
818         * Makefile.in (infttrace.o): Update dependencies.
819
820 2003-03-30  Andrew Cagney  <cagney@redhat.com>
821
822         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
823         PUSH_RETURN_ADDRESS.
824         * gdbarch.h, gdbarch.c: Regenerate.
825         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
826         * x86-64-tdep.c (x86_64_init_abi): Update.
827         * v850-tdep.c (v850_gdbarch_init): Update.
828         * sparc-tdep.c (sparc_gdbarch_init): Update.
829         * sh-tdep.c (sh_gdbarch_init): Update.
830         * s390-tdep.c (s390_gdbarch_init): Update.
831         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
832         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
833         * mips-tdep.c (mips_gdbarch_init): Update.
834         * mcore-tdep.c (mcore_gdbarch_init): Update.
835         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
836         * ia64-tdep.c (ia64_gdbarch_init): Update.
837         * i386-tdep.c (i386_gdbarch_init): Update.
838         * h8300-tdep.c (h8300_gdbarch_init): Update.
839         * frv-tdep.c (frv_gdbarch_init): Update.
840         * cris-tdep.c (cris_gdbarch_init): Update.
841         * avr-tdep.c (avr_gdbarch_init): Update.
842         * arm-tdep.c (arm_gdbarch_init): Update.
843         * valops.c (hand_function_call): Update.
844
845 2003-03-29  Andrew Cagney  <cagney@redhat.com>
846
847         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
848         sizeof_call_dummy_words.
849         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
850         define.
851         * gdbarch.h: Regenerate.
852         
853 2003-03-29  Andrew Cagney  <cagney@redhat.com>
854
855         * infttrace.h: New file.
856         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
857         (hpread_get_textlow): Detect an uninitialized dn_bufp.
858         (hpread_read_doc_function_type): Detect an initialized type1.
859         (hpread_quick_traverse): Initialize mod_name_string.
860         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
861         (som_solib_get_solib_by_pc): Declare.
862         (so_lib_thread_start_addr): Declare.
863         (no_shared_libraries): Declare.
864         * somread.c (init_import_symbols): Make static.  Add forward
865         declaration.
866         * config/pa/nm-hppah.h: Include "infttrace.h" for
867         parent_attach_all.
868         (hppa_insert_hw_watchpoint): Declare.
869         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
870         * hppah-nat.c: Include "gdb_string.h".
871         (parent_attach_all): Delete extern declaration, moved to
872         "infttrace.h".
873         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
874         int.
875         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
876         * Makefile.in (infttrace_h): Define.
877         (hpread.o): Update dependencies.
878         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
879         * hppa-hpux-tdep.c: Include "gdb_string.h".
880         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
881         * infrun.c (handle_inferior_event): Always initialize
882         stepped_after_stopped_by_watchpoint.  Add default and remove
883         fallthrough in switch statement.
884         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
885         parameter to int.
886         (hppa_remove_hw_watchpoint): Ditto.
887
888 2003-03-29  Andrew Cagney  <cagney@redhat.com>
889
890         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
891         offset.
892
893 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
894
895         * arm-tdep.c (arm_push_arguments): Delete.
896         (struct stack_item): New type.
897         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
898         (arm_store_struct_return): Delte.
899         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
900         arm_push_arguments or arm_store_struct_return.
901
902 2003-03-28  Andrew Cagney  <cagney@redhat.com>
903
904         * Makefile.in (d10v-tdep.o): Update dependencies.
905         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
906         * d10v-tdep.c: Include "remote.h".
907         (target_resume_hook): Delete extern declaration.
908         (target_wait_loop_hook): Ditto.
909         (tdisassemble_command): Eliminate assignment in "if" conditional.
910         (d10v_ts2_register_sim_regno): Eliminate call to
911         legacy_register_sim_regno.
912         (d10v_ts3_register_sim_regno): Ditto.
913
914 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
915
916         * thread.c: Reindented.
917         * lin-lwp.c: Ditto.
918         * linux-proc.c: Ditto.
919
920 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
921
922         * MAINTAINERS (write after approval): Add myself.
923
924 2003-03-27  Theodore A. Roth  <troth@openavr.org>
925
926         * objc-exp.y: Add missing semi-colons.
927
928 2003-03-27  Andrew Cagney  <cagney@redhat.com>
929
930         * regcache.c (write_sp): Delete function and references.
931         * inferior.h (write_sp): Delete declaration.
932         * valops.c (hand_function_call): Replace write_sp with
933         TARGET_WRITE_SP.
934         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
935         (sparc_pop_frame): Ditto.
936         
937 2003-03-27  Andrew Cagney  <cagney@redhat.com>
938
939         * NEWS: Mention removal of support for hppa*-*-bsd* and
940         hppa*-*-osf* natives, and hppa*-*-pro* target.
941         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
942         * config/pa/xm-pa.h: Obsolete file.
943         * config/pa/xm-hppab.h: Obsolete file.
944         * config/pa/nm-hppab.h: Obsolete file.
945         * config/pa/tm-hppab.h: Obsolete file.
946         * config/pa/tm-hppao.h: Obsolete file.
947         * config/pa/nm-hppao.h: Obsolete file.
948         * config/pa/tm-pro.h: Obsolete file.
949         * config/pa/hppaosf.mt: Obsolete file.
950         * config/pa/hppaosf.mh: Obsolete file.
951         * config/pa/hppapro.mt: Obsolete file.
952         * config/pa/hppabsd.mt: Obsolete file.
953         * config/pa/hppabsd.mh: Obsolete file.
954         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
955         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
956         hppa*-*-osf*.
957
958 2003-03-27  Andrew Cagney  <cagney@redhat.com>
959
960         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
961         push_arguments.  Don't set push_return_address or write_sp.
962         (d10v_push_dummy_call): Replace d10v_push_arguments.
963         (d10v_push_return_address, d10v_write_sp): Delete function,
964         handled by push_dummy_call.
965
966 2003-03-26  Andrew Cagney  <cagney@redhat.com>
967
968         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
969         (push_dummy_call): New pure multi-arch replacement with gdbarch,
970         regcache and dummy_addr parameters.
971         * gdbarch.h, gdbarch.c: Re-generate.
972         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
973         available; assume it will handle stack alignment and return
974         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
975         legacy_push_arguments.
976         (legacy_push_arguments): Rename default_push_arguments.
977         * value.h (legacy_push_arguments): Rename default_push_arguments.
978         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
979         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
980         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
981         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
982         * config/i386/tm-symmetry.h: Update.
983         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
984         * x86-64-tdep.c (x86_64_init_abi): Update.
985         * v850-tdep.c (v850_gdbarch_init): Update.
986         * sparc-tdep.c (sparc_gdbarch_init): Update.
987         * sh-tdep.c (sh_gdbarch_init): Update.
988         * s390-tdep.c (s390_gdbarch_init): Update.
989         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
990         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
991         * mips-tdep.c (mips_gdbarch_init): Update.
992         * mcore-tdep.c (mcore_gdbarch_init): Update.
993         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
994         * ia64-tdep.c (ia64_gdbarch_init): Update.
995         * i386-tdep.c (i386_gdbarch_init): Update.
996         * hppa-tdep.c (hppa_gdbarch_init): Update.
997         * h8300-tdep.c (h8300_gdbarch_init): Update.
998         * frv-tdep.c (frv_gdbarch_init): Update.
999         * d10v-tdep.c (d10v_gdbarch_init): Update.
1000         * cris-tdep.c (cris_gdbarch_init): Update.
1001         * avr-tdep.c (avr_gdbarch_init): Update.
1002         * arm-tdep.c (arm_gdbarch_init): Update.
1003         * arm-linux-tdep.c (arm_linux_init_abi): Update.
1004         * alpha-tdep.c (alpha_gdbarch_init): Update.
1005
1006 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
1007
1008         * signals/signals.c (do_target_signal_to_host): Correct realtime
1009         signal range test.
1010
1011 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
1012
1013         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
1014         (struct sal_chain, map_catch_names): Remove.
1015         (catch_exception_command_1): Don't call
1016         handle_gnu_4_16_catch_command.
1017
1018 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
1019
1020         From Mark Dettinger <dettinge@de.ibm.com>:
1021         * dwarf2cfi.c (read_2u): Increment pointer by two.
1022
1023 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
1024
1025         * signals/signals.c: Fix typos in last change.
1026
1027 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
1028
1029         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
1030         not already defined.  Use __SIGRTMIN if available.
1031         (target_signal_from_host): Remove SIGRTMIN block.
1032         (do_target_signal_to_host): Remove SIGRTMIN block; check that
1033         the signal is within the realtime range.
1034
1035 2003-03-25  Adam Fedor  <fedor@gnu.org>
1036
1037         * Makefile.in (infrun.o): Add $(language_h)
1038         * infrun.c (handle_inferior_event): Use skip_language_trampoline
1039         for language specific trampolines.
1040         * language.h (struct language_defn): Add skip_trampoline.
1041         (skip_language_trampoline): Declare.
1042         * language.c (unk_lang_trampoline, skip_language_trampoline):
1043         New functions.
1044         (unknown_language_defn, auto_language_defn, local_language_defn):
1045         Add ukn_lang_trampoline.
1046         * ada-lang.c (ada_language_defn): Add NULL for language
1047         specific skip_trampoline.
1048         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
1049         scm-lang.c: Likewise.
1050         * objc-lang.c (objc_skip_trampoline): New function.
1051         (objc_language_defn): Add objc_skip_trampoline.
1052
1053 2003-03-25  Andrew Cagney  <cagney@redhat.com>
1054
1055         * frame.c (get_prev_frame): Delay validating a frame's ID -
1056         non-NULL, didn't go backwards - until an attempt to unwind it to
1057         the previous frame.
1058
1059 2003-03-25  Andrew Cagney  <cagney@redhat.com>
1060
1061         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
1062         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
1063         * gdbarch.h, gdbarch.c: Re-generate.
1064         * config/sparc/tm-sparc.h
1065         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
1066         * sparc-tdep.c (sparc_gdbarch_init): Set
1067         deprecated_extra_stack_alignment_needed.
1068         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
1069         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
1070         extra_stack_alignment_needed.
1071         * v850-tdep.c (v850_gdbarch_init): Ditto.
1072         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1073         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1074         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1075         * cris-tdep.c (cris_gdbarch_init): Ditto.
1076         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1077         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1078         
1079 2003-03-25  Andrew Cagney  <cagney@redhat.com>
1080
1081         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
1082         STORE_STRUCT_RETURN.
1083         * gdbarch.h, gdbarch.c: Regenerate.
1084         * d10v-tdep.c (d10v_store_struct_return): Delete function.
1085         (d10v_push_arguments): Set the struct return register.
1086         (d10v_gdbarch_init): Update.
1087         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1088         * x86-64-tdep.c (x86_64_init_abi): Update.
1089         * vax-tdep.c (vax_gdbarch_init): Update.
1090         * v850-tdep.c (v850_gdbarch_init): Update.
1091         * sparc-tdep.c (sparc_gdbarch_init): Update.
1092         * sh-tdep.c (sh_gdbarch_init): Update.
1093         * s390-tdep.c (s390_gdbarch_init): Update.
1094         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1095         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1096         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1097         * mips-tdep.c (mips_gdbarch_init): Update.
1098         * mcore-tdep.c (mcore_gdbarch_init): Update.
1099         * m68k-tdep.c (m68k_gdbarch_init): Update.
1100         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1101         * ia64-tdep.c (ia64_gdbarch_init): Update.
1102         * i386-tdep.c (i386_gdbarch_init): Update.
1103         * hppa-tdep.c (hppa_gdbarch_init): Update.
1104         * h8300-tdep.c (h8300_gdbarch_init): Update.
1105         * frv-tdep.c (frv_gdbarch_init): Update.
1106         * cris-tdep.c (cris_gdbarch_init): Update.
1107         * avr-tdep.c (avr_gdbarch_init): Update.
1108         * arm-tdep.c (arm_gdbarch_init): Update.
1109         * alpha-tdep.c (alpha_gdbarch_init): Update.
1110         
1111 2003-03-25  Andrew Cagney  <cagney@redhat.com>
1112
1113         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
1114         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
1115         CALL_DUMMY_STACK_ADJUST with a predicate variable.
1116         * gdbarch.h, gdbarch.c: Regenerate.
1117         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1118         call_dummy_stack_adjust_p.
1119         * vax-tdep.c (vax_gdbarch_init): Ditto.
1120         * v850-tdep.c (v850_gdbarch_init): Ditto.
1121         * sh-tdep.c (sh_gdbarch_init): Ditto.
1122         * s390-tdep.c (s390_gdbarch_init): Ditto.
1123         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1124         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1125         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1126         * mips-tdep.c (mips_gdbarch_init): Ditto.
1127         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1128         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1129         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1130         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1131         * i386-tdep.c (i386_gdbarch_init): Ditto.
1132         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1133         * frv-tdep.c (frv_gdbarch_init): Ditto.
1134         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1135         * cris-tdep.c (cris_gdbarch_init): Ditto.
1136         * avr-tdep.c (avr_gdbarch_init): Ditto.
1137         * arm-tdep.c (arm_gdbarch_init): Ditto.
1138         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1139         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
1140         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
1141         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
1142         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
1143         call_dummy_stack_adjust_p.
1144         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
1145         (CALL_DUMMY_STACK_ADJUST): Delete macro.
1146         * sparc-tdep.c (sparc32_push_arguments): Update.
1147         * valops.c (hand_function_call): Update.
1148
1149 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
1150
1151         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
1152         set_gdbarch_char_signed.
1153
1154 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
1155
1156         PR cli/548
1157         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
1158
1159 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
1160
1161         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
1162         (_initialize_arm_tdep): Don't set tm_print_insn.
1163
1164 2003-03-24  Adam Fedor  <fedor@gnu.org>
1165
1166         * Makefile.in (YYOBJ): Add objc-exp.tab.o
1167         * objc-lang.h: Add multiple inclusion protection.
1168         (start_msglist, add_msglist, end_msglist): Additional declarations.
1169
1170 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
1171
1172         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
1173         value was renamed to ARM_FLOAT_SOFT_FPA.
1174
1175 2003-03-23  Andrew Cagney  <cagney@redhat.com>
1176
1177         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
1178         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
1179         * gdbarch.h, gdbarch.c: Regenerate.
1180         * valops.c (hand_function_call): Update.
1181         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
1182         * frame.c (legacy_saved_regs_this_id): Update.
1183         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
1184         * dummy-frame.h: Update.
1185         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
1186         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
1187         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
1188         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
1189         * config/m68k/tm-sun3.h: Update.
1190         * blockframe.c (inside_main_func, frame_chain_valid): Update.
1191         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1192         * x86-64-tdep.c (x86_64_init_abi): Update.
1193         * vax-tdep.c (vax_gdbarch_init): Update.
1194         * v850-tdep.c (v850_gdbarch_init): Update.
1195         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
1196         * sh-tdep.c (sh_gdbarch_init): Update.
1197         * s390-tdep.c (s390_gdbarch_init): Update.
1198         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1199         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
1200         (frame_get_saved_regs): Update.
1201         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1202         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1203         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1204         * mips-tdep.c (mips_gdbarch_init): Update.
1205         * mcore-tdep.c (mcore_gdbarch_init): Update.
1206         * m68k-tdep.c (m68k_gdbarch_init): Update.
1207         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1208         * ia64-tdep.c (ia64_gdbarch_init): Update.
1209         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
1210         * i386-interix-tdep.c (i386_interix_init_abi): Update.
1211         (i386_interix_back_one_frame): Update.
1212         * hppa-tdep.c (hppa_gdbarch_init): Update.
1213         (hppa_init_extra_frame_info): Update.
1214         * h8300-tdep.c (h8300_gdbarch_init): Update.
1215         * frv-tdep.c (frv_gdbarch_init): Update.
1216         * cris-tdep.c (cris_gdbarch_init): Update.
1217         * avr-tdep.c (avr_gdbarch_init): Update.
1218         * arm-tdep.c (arm_gdbarch_init): Update.
1219         * alpha-tdep.c (alpha_gdbarch_init): Update.
1220
1221 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
1222
1223         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
1224         (arm_get_fp_model): Declare.
1225         * arm-tdep.c (fp_model_strings): New string array.
1226         (arm_fp_model, current_fp_model): New variables.
1227         (arm_get_fp_model): New function.
1228         (arm_set_fp): New function.
1229         (set_fp_model_sfunc): New function.
1230         (show_fp_model): New function.
1231         (_initialize_arm_tdep): Add new command to set/show the FPU.
1232         (arm_extract_return_value): Use arm_get_fp_model.
1233         (arm_store_return_value): Likewise.
1234         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
1235         to initialize the floating-point data types.
1236         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
1237         model is FPA.
1238
1239 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
1240
1241         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
1242         the current setting of each value.
1243         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
1244         new_set and new_show.  Use add_setshow_cmd_full and 
1245         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
1246         commands and add new version as subcommands of "set/show arm".
1247
1248 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
1249
1250         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
1251         (set_arm_command, show_arm_command): New functions.
1252         (_initialize_arm_tdep): Add them.
1253         (num_disassembly_options): Renamed from num_flavor_options.
1254         (valid_disassembly_styles): Renamed from valid_flavors.
1255         (disassembly_style): Renamed from disassembly_flavor.
1256         (set_disassembly_style_sfunc): Renamed from 
1257         set_disassembly_flavor_sfunc.
1258         (set_disassembly_style): Renamed from set_disassembly_flavor.
1259         (arm_othernames): Updated.
1260         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
1261         command.  Add "set/show arm disassembly" commands.  Deprecate
1262         "othernames" command.
1263
1264 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
1265
1266         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
1267         (arm-tdep.o): Depend on elf_arm_h.
1268
1269 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
1270
1271         * Makefile.in (coff_internal_h): Define.
1272         (arm-tdep.o): Update dependencies.
1273
1274 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
1275
1276         * arm-tdep.c (prologue_cache): Delete.
1277         (check_prologue_cache, save_prologue_cache): Delete.
1278         (arm_scan_prologue): Don't check or update the prologue_cache.
1279         (arm_gdb_arch_init): Don't initialize it.
1280         (_initialize_arm_tdep): Likewise.
1281
1282 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
1283
1284         * MAINTAINERS (tui): Maintainer of tui code.
1285
1286 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
1287
1288         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
1289         (i386-cygwin-tdep.o): Add dependencies.
1290         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
1291         * i386-cygwin-tdep.c: New file.
1292         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
1293         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
1294
1295 2003-03-20  Andrew Cagney  <cagney@redhat.com>
1296
1297         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
1298         (handle_inferior_event): Remove code calling
1299         DYNAMIC_TRAMPOLINE_NEXTPC.
1300
1301         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
1302         already has a full path.
1303
1304         * main.c (gdb_main): Return 1.
1305         (captured_main): Call error to report an invalid interpreter.
1306
1307         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
1308         * alpha-osf1-tdep.c: Include "gdb_string.h".
1309
1310 2003-03-19  J. Brobecker  <brobecker@gnat.com>
1311
1312         Continuing work to convert the hppa targets to multiarch partial.
1313
1314         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
1315         method, now that hppa_push_dummy_frame has a conformant prototype.
1316         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
1317         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
1318         for the switch to multiarch partial.
1319
1320 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
1321
1322         * mdebugread.c (parse_symbol): For stEnd, we're done counting
1323         when iss is issNull.
1324
1325 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
1326
1327         * mips-tdep.c (mips_register_name): Fix fencepost error involving
1328         NUM_REGS bounds check.
1329
1330 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
1331
1332         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
1333         * mips-tdep.c (gdb_assert.h): Include.
1334         (mips_generic_reg_names, mips_processor_reg_names): Make static.
1335         (mips_register_name): Handle integer registers explicitly.  Add
1336         bounds checking.
1337         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
1338         (mips_lsi33k_reg_names): Don't list integer registers; they're
1339         handled by mips_register_name() now.
1340         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
1341         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
1342         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
1343         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
1344         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
1345
1346 2003-03-18  Andrew Cagney  <cagney@redhat.com>
1347
1348         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
1349         a void pointer.
1350         * gdbtypes.h (print_scalar_formatted): Update declaration.
1351         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
1352
1353 2003-03-18  J. Brobecker  <brobecker@gnat.com>
1354
1355         * infrun.c (observer.h): Add #include.
1356         (normal_stop): Add call to observer_notify_normal_stop.
1357         * Makefile.in (infrun.o): Add dependency on observer.h.
1358
1359 2003-03-18  J. Brobecker  <brobecker@gnat.com>
1360
1361         Continuing work to convert the hppa targets to multiarch partial.
1362         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
1363         parameter. Reformat comment.
1364         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
1365         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
1366         to match new profile.
1367
1368 2003-03-18  J. Brobecker  <brobecker@gnat.com>
1369
1370         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
1371         appear to be working in any case.
1372
1373 2003-03-18  J. Brobecker  <brobecker@gnat.com>
1374
1375         * observer.c (observer_test_first_observer): New static variable.
1376         (observer_test_second_observer): Likewise.
1377         (observer_test_third_observer): Likewise.
1378         (observer_test_first_notification_function): New static function.
1379         (observer_test_second_notification_function): Likewise.
1380         (observer_test_third_notification_function): Likewise.
1381
1382 2003-03-17  J. Brobecker  <brobecker@gnat.com>
1383
1384         * hppa-tdep.c (gdb_assert.h): Add missing #include.
1385         * somsolib.c (gdb_assert.h): Likewise.
1386         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
1387         (somsolib.o): Likewise.
1388
1389 2003-03-17  Andrew Cagney  <cagney@redhat.com>
1390
1391         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
1392         BFD.  Simplify setting of di.endian.
1393
1394 2003-03-17  Andrew Cagney  <cagney@redhat.com>
1395
1396         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
1397         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
1398
1399         From Elena Zannoni  <ezannoni@redhat.com>
1400         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
1401         vector and floating-point parameters.
1402         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
1403         convention.
1404         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
1405
1406 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
1407
1408         * MAINTAINERS: Remove my name from several maintainership roles.
1409
1410 2003-03-17  Andrew Cagney  <cagney@redhat.com>
1411
1412         Fix frame off-by-one bug.
1413         * frame-unwind.h (frame_this_id_ftype): Replace
1414         frame_unwind_id_ftype.
1415         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
1416         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
1417         with "prev_register".
1418         * frame-unwind.c (frame_unwind_find_by_pc): Return
1419         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
1420         comment.
1421         * dummy-frame.c (cached_find_dummy_frame): Delete function.
1422         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
1423         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
1424         (dummy_frame_unwind): Update.
1425         * sentinel-frame.c (sentinel_frame_prev_register): Replace
1426         sentinel_frame_register_unwind.
1427         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
1428         (sentinel_frame_unwinder): Update.
1429         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1430         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
1431         * frame.c (create_sentinel_frame): Update. Initialize
1432         "prologue_cache" instead of "unwind_cache".
1433         (frame_register_unwind): Call this frame's prev_register with the
1434         next frame and this frame's prologue cache.
1435         (get_prev_frame): Simplify.  Always call prev frame's this_id with
1436         this frame and prev frame's prologue cache.  Document that this
1437         call is shifted one to the left when compared to the
1438         frame_register_unwind call.
1439         (legacy_saved_regs_prev_register): Replace
1440         frame_saved_regs_register_unwind.
1441         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
1442         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
1443         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1444         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
1445         (d10v_frame_unwind): Update.
1446         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
1447         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
1448         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
1449         "saved_regs" with "this_saved_regs".
1450
1451 2003-03-16  Andrew Cagney  <cagney@redhat.com>
1452
1453         * frame.c (frame_pop): Don't call target_store_registers.  Fix
1454         problem reported by Mark Kettenis.
1455
1456 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
1457
1458         * i386-tdep.c (i386_register_type): Renamed from
1459         i386_register_virtual_type.  Adjust function signature.
1460         (i386_gdbarch_init): Set register_type instead of
1461         deprecated_max_register_raw_size,
1462         deprecated_max_register_virtual_size and register_virtual_type.
1463
1464 2003-03-14  Andrew Cagney  <cagney@redhat.com>
1465
1466         * frame.c (get_prev_frame): When a legacy frame, always call
1467         legacy_get_prev_frame.  Simplify unwind code using assumption that
1468         the unwinder is new.
1469         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
1470         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
1471         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
1472
1473 2003-03-14  Andrew Cagney  <cagney@redhat.com>
1474
1475         * frame.c (get_saved_register): Delete function.
1476         * frame.h (get_saved_register): Delete declaration.
1477         * xstormy16-tdep.c: Update comment.
1478         * regcache.h: Update comments.
1479         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
1480         get_saved_register and extract_address, use
1481         frame_read_unsigned_register.
1482         (sparc_frame_saved_pc): Ditto.
1483         (sparc_get_saved_register): Instead of get_saved_register, use
1484         frame_register.
1485         (sparc_pop_frame): Ditto.
1486         * findvar.c: Update comments.
1487         (value_of_register): Call frame_register instead of
1488         get_saved_register.
1489         (value_from_register): Ditto.
1490         * config/sparc/tm-sparc.h: Update comment.
1491         * breakpoint.c: Update comment.
1492
1493 2003-03-14  Andrew Cagney  <cagney@redhat.com>
1494
1495         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
1496         GET_SAVED_REGISTER.
1497         * gdbarch.h, gdbarch.c: Re-generate.
1498         * frame.h: Update comments.
1499         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1500         * x86-64-tdep.c (x86_64_init_abi): Update.
1501         * sparc-tdep.c (sparc_gdbarch_init): Update.
1502         * sh-tdep.c (sh_gdbarch_init): Update.
1503         * mips-tdep.c (mips_gdbarch_init): Update.
1504         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1505         * cris-tdep.c (cris_gdbarch_init): Update.
1506         * ia64-tdep.c (ia64_gdbarch_init): Update.
1507         * frame.c (frame_register): Update.
1508         (get_saved_register): Update.
1509         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
1510         
1511 2003-03-13  Andrew Cagney  <cagney@redhat.com>
1512
1513         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
1514         * gdbarch.h, gdbarch.c: Regenerate.
1515         * valops.c (hand_function_call): Update comment.
1516         * stack.c (return_command): Update comment.
1517         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
1518         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
1519         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1520         * x86-64-tdep.c (x86_64_init_abi): Update.
1521         * vax-tdep.c (vax_gdbarch_init): Update.
1522         * v850-tdep.c (v850_gdbarch_init): Update.
1523         * sparc-tdep.c (sparc_gdbarch_init): Update.
1524         * sh-tdep.c (sh_gdbarch_init): Update.
1525         * s390-tdep.c (s390_gdbarch_init): Update.
1526         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1527         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1528         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1529         * mips-tdep.c (mips_gdbarch_init): Update.
1530         * mcore-tdep.c (mcore_gdbarch_init): Update.
1531         * m68k-tdep.c (m68k_gdbarch_init): Update.
1532         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1533         * ia64-tdep.c (ia64_gdbarch_init): Update.
1534         * i386-tdep.c (i386_gdbarch_init): Update.
1535         * hppa-tdep.c (hppa_gdbarch_init): Update.
1536         * h8300-tdep.c (h8300_gdbarch_init): Update.
1537         * frv-tdep.c (frv_gdbarch_init): Update.
1538         * cris-tdep.c (cris_gdbarch_init): Update.
1539         * avr-tdep.c (avr_gdbarch_init): Update.
1540         * arm-tdep.c (arm_gdbarch_init): Update.
1541         * alpha-tdep.c (alpha_gdbarch_init): Update.
1542
1543 2003-03-13  Andrew Cagney  <cagney@redhat.com>
1544
1545         * frame.c (legacy_frame_p): New function.
1546         (get_prev_frame): Use legacy_frame_p.
1547         * frame.h (legacy_frame_p): Declare.
1548
1549 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
1550
1551         * MAINTAINERS (write after approval): Alphabetically
1552         listing corrected.
1553
1554 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
1555
1556         * MAINTAINERS (write after approval): Add myself.
1557
1558 2003-03-12  Andrew Cagney  <cagney@redhat.com>
1559
1560         * frame.c (get_prev_frame): Rename the frame parameter to
1561         "this_frame".
1562         (get_next_frame, legacy_get_prev_frame): Ditto.
1563
1564 2003-03-12  Andrew Cagney  <cagney@redhat.com>
1565
1566         * frame.c (get_current_frame): Check target_has_registers before
1567         checking target_has_stack.
1568         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
1569         instead of deprecated_selected_frame.
1570         * findvar.c (value_of_register): Pass "frame", not
1571         deprecated_selected_frame, to value_of_builtin_reg.
1572
1573 2003-03-12  Andrew Cagney  <cagney@redhat.com>
1574
1575         * regcache.c (regcache_cooked_write_signed): New function.
1576         (regcache_cooked_write_unsigned): New function.
1577         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
1578         (regcache_cooked_read_signed): Fix regnum in range assertion.
1579         * regcache.h (regcache_cooked_write_signed): Declare.
1580         (regcache_cooked_write_unsigned): Declare.
1581
1582 2003-03-12  Andrew Cagney  <cagney@redhat.com>
1583
1584         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1585         * gdbarch.h, gdbarch.c: Re-generate.
1586         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1587         * x86-64-tdep.h: Update.
1588         * x86-64-tdep.c (x86_64_init_abi): Update.
1589         * v850-tdep.c (v850_gdbarch_init): Update.
1590         * sparc-tdep.c (sparc_gdbarch_init): Update.
1591         * sh-tdep.c (sh_gdbarch_init): Update.
1592         * s390-tdep.c (s390_gdbarch_init): Update.
1593         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1594         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1595         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1596         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1597         * mips-tdep.c (mips_gdbarch_init): Update.
1598         * mcore-tdep.c (mcore_gdbarch_init): Update.
1599         * m68k-tdep.c (m68k_gdbarch_init): Update.
1600         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1601         * ia64-tdep.c (ia64_gdbarch_init): Update.
1602         * i386-tdep.c (i386_gdbarch_init): Update.
1603         * i386-interix-tdep.c (i386_interix_init_abi): Update.
1604         * hppa-tdep.c (hppa_gdbarch_init): Update.
1605         * h8300-tdep.c (h8300_gdbarch_init): Update.
1606         * frv-tdep.c (frv_gdbarch_init): Update.
1607         * cris-tdep.c (cris_gdbarch_init): Update.
1608         * avr-tdep.c (avr_gdbarch_init): Update.
1609         * arm-tdep.c (arm_gdbarch_init): Update.
1610         * alpha-tdep.c (alpha_gdbarch_init): Update.
1611         * sh-tdep.c (sh_init_extra_frame_info): Update.
1612         (sh64_init_extra_frame_info): Update.
1613         * ns32knbsd-nat.c (frame_num_args): Update.
1614         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1615         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1616         (xstormy16_frame_chain_valid): Update.
1617         * vax-tdep.c (vax_saved_pc_after_call): Update.
1618         * v850-tdep.c (v850_frame_chain): Update.
1619         (v850_pop_frame): Update.
1620         (v850_init_extra_frame_info): Update.
1621         * sparc-tdep.c (setup_arbitrary_frame): Update.
1622         * ns32k-tdep.c (umax_frame_num_args): Update.
1623         * s390-tdep.c (s390_pop_frame_regular): Update.
1624         * mn10300-tdep.c (mn10300_frame_chain): Update.
1625         (mn10300_pop_frame_regular): Update.
1626         (mn10300_init_extra_frame_info): Update.
1627         * mips-tdep.c (mips_init_frame_pc_first): Update.
1628         (mips_frame_chain): Update.
1629         (mips_pop_frame): Update.
1630         * mcore-tdep.c (mcore_frame_chain): Update.
1631         (mcore_pop_frame): Update.
1632         (mcore_init_extra_frame_info): Update.
1633         * arch-utils.c (init_frame_pc_default): Update.
1634         * m68k-tdep.c (isi_frame_num_args): Update.
1635         (delta68_frame_num_args): Update.
1636         (news_frame_num_args): Update.
1637         * ia64-tdep.c (ia64_pop_frame_regular): Update.
1638         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1639         (alpha_frame_chain): Update.
1640         (alpha_pop_frame): Update.
1641         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1642         (hppa_init_extra_frame_info): Update.
1643         (hppa_frame_chain): Update.
1644         (hppa_frame_chain_valid): Update.
1645         * cris-tdep.c (cris_init_extra_frame_info): Update.
1646         * avr-tdep.c (avr_init_extra_frame_info): Update.
1647         * arm-tdep.c (arm_frame_chain_valid): Update.
1648         (arm_init_extra_frame_info): Update.
1649         (arm_pop_frame): Update.
1650         * frame.c (frame_pc_unwind): Update.
1651         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1652         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1653         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1654         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1655         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1656         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1657         
1658 2003-03-12  Andrew Cagney  <cagney@redhat.com>
1659
1660         Eliminate the need for POP_FRAME.
1661         * frame.c (do_frame_unwind_register): New function.
1662         (frame_pop): When no POP_FRAME, pop the frame using register
1663         unwind and a scratch regcache.
1664         (frame_saved_regs_pop): Delete function.
1665         (trad_frame_unwinder): Update.
1666         * d10v-tdep.c (d10v_frame_pop): Delete function.
1667         (d10v_frame_unwind): Update.
1668         * sentinel-frame.c (sentinel_frame_pop): Delete function.
1669         (sentinel_frame_unwinder): Update.
1670         * dummy-frame.c (dummy_frame_pop): Delete function.
1671         (dummy_frame_unwind): Update.
1672         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
1673         (struct frame_unwind): Update.
1674
1675 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
1676
1677         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
1678         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
1679         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
1680         Do range checks on register number obtained from debugging info.
1681         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
1682         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
1683         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
1684         mapping function.
1685         (do_fp_register_row): Fix typo which caused double type to be
1686         used when attempting to unpack a float.
1687
1688 2003-03-11  J. Brobecker  <brobecker@gnat.com>
1689
1690         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
1691
1692 2003-03-11  Andrew Cagney  <cagney@redhat.com>
1693
1694         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
1695         frame.  Problem found by Corinna Vinschen.
1696
1697 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
1698
1699         * doublest.c (floatformat_from_length): Accept also
1700         the real size of 'long double' type.
1701
1702 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
1703
1704         From Klee Dienes <kdienes@apple.com>:
1705         * breakpoint.c (bpstat_copy): Copy the command lines as well
1706         as the old value, to match what is freed in bpstat_clear.
1707
1708 2003-03-10  David Carlton  <carlton@math.stanford.edu>
1709
1710         * minsyms.c (add_minsym_to_hash_table): Replace
1711         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1712         (compare_minimal_symbols, compact_minimal_symbols)
1713         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
1714         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
1715         of DEPRECATED_SYMBOL_MATCHES_NAME.
1716         (lookup_minimal_symbol_solib_trampoline): Ditto.
1717
1718 2003-03-10  Andrew Cagney  <cagney@redhat.com>
1719
1720         * regcache.h (regcache_cooked_read_ftype): Define.
1721         (regcache_save, regcache_restore): Add a cooked_read parameter.
1722         * regcache.c (regcache_save, regcache_restore): Update.
1723         (do_cooked_read): New function.
1724         (regcache_cpy): Pass do_cooked_read to regcache_save and
1725         regcache_restore.
1726
1727 2003-03-10  Andrew Cagney  <cagney@redhat.com>
1728
1729         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1730         * gdbarch.h, gdbarch.c: Re-generate.
1731         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1732         * x86-64-tdep.h: Update.
1733         * x86-64-tdep.c (x86_64_init_abi): Update.
1734         * v850-tdep.c (v850_gdbarch_init): Update.
1735         * sparc-tdep.c (sparc_gdbarch_init): Update.
1736         * sh-tdep.c (sh_gdbarch_init): Update.
1737         * s390-tdep.c (s390_gdbarch_init): Update.
1738         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1739         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1740         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1741         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1742         * mips-tdep.c (mips_gdbarch_init): Update.
1743         * mcore-tdep.c (mcore_gdbarch_init): Update.
1744         * m68k-tdep.c (m68k_gdbarch_init): Update.
1745         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1746         * ia64-tdep.c (ia64_gdbarch_init): Update.
1747         * i386-tdep.c (i386_gdbarch_init): Update.
1748         * i386-interix-tdep.c (i386_interix_init_abi): Update.
1749         * hppa-tdep.c (hppa_gdbarch_init): Update.
1750         * h8300-tdep.c (h8300_gdbarch_init): Update.
1751         * frv-tdep.c (frv_gdbarch_init): Update.
1752         * cris-tdep.c (cris_gdbarch_init): Update.
1753         * avr-tdep.c (avr_gdbarch_init): Update.
1754         * arm-tdep.c (arm_gdbarch_init): Update.
1755         * alpha-tdep.c (alpha_gdbarch_init): Update.
1756         * sh-tdep.c (sh_init_extra_frame_info): Update.
1757         (sh64_init_extra_frame_info): Update.
1758         * ns32knbsd-nat.c (frame_num_args): Update.
1759         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1760         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1761         (xstormy16_frame_chain_valid): Update.
1762         * vax-tdep.c (vax_saved_pc_after_call): Update.
1763         * v850-tdep.c (v850_frame_chain): Update.
1764         (v850_pop_frame): Update.
1765         (v850_init_extra_frame_info): Update.
1766         * sparc-tdep.c (setup_arbitrary_frame): Update.
1767         * ns32k-tdep.c (umax_frame_num_args): Update.
1768         * s390-tdep.c (s390_pop_frame_regular): Update.
1769         * mn10300-tdep.c (mn10300_frame_chain): Update.
1770         (mn10300_pop_frame_regular): Update.
1771         (mn10300_init_extra_frame_info): Update.
1772         * mips-tdep.c (mips_init_frame_pc_first): Update.
1773         (mips_frame_chain): Update.
1774         (mips_pop_frame): Update.
1775         * mcore-tdep.c (mcore_frame_chain): Update.
1776         (mcore_pop_frame): Update.
1777         (mcore_init_extra_frame_info): Update.
1778         * arch-utils.c (init_frame_pc_default): Update.
1779         * m68k-tdep.c (isi_frame_num_args): Update.
1780         (delta68_frame_num_args): Update.
1781         (news_frame_num_args): Update.
1782         * ia64-tdep.c (ia64_pop_frame_regular): Update.
1783         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1784         (alpha_frame_chain): Update.
1785         (alpha_pop_frame): Update.
1786         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1787         (hppa_init_extra_frame_info): Update.
1788         (hppa_frame_chain): Update.
1789         (hppa_frame_chain_valid): Update.
1790         * cris-tdep.c (cris_init_extra_frame_info): Update.
1791         * avr-tdep.c (avr_init_extra_frame_info): Update.
1792         * arm-tdep.c (arm_frame_chain_valid): Update.
1793         (arm_init_extra_frame_info): Update.
1794         (arm_pop_frame): Update.
1795         * frame.c (frame_pc_unwind): Update.
1796         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1797         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1798         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1799         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1800         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1801         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1802         
1803 2003-03-10  Andrew Cagney  <cagney@redhat.com>
1804
1805         * gdbarch.sh (gdbarch_unwind_pc): New method.
1806         * gdbarch.h, gdbarch.c: Regenerate.
1807         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
1808         but use read_pc and FRAME_SAVED_PC as fall backs.
1809         (frame_saved_regs_pc_unwind): Delete function.
1810         (trad_frame_unwinder): Update.
1811         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
1812         (struct frame_unwind): Update.
1813         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
1814         (dummy_frame_unwind): Update.
1815         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
1816         (sentinel_frame_unwinder): Update.
1817         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
1818         (d10v_frame_unwind): Update.
1819         (d10v_unwind_pc): New function.
1820         (d10v_gdbarch_init): Set unwind_pc.
1821
1822 2003-03-10  Andrew Cagney  <cagney@redhat.com>
1823
1824         * gdbarch.h: Re-generate.
1825
1826         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
1827         PC.
1828         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
1829         the PC register.
1830
1831 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
1832
1833         * gdbarch.sh (save_dummy_frame_tos): Add comment.
1834
1835 2003-03-08  Andrew Cagney  <cagney@redhat.com>
1836
1837         * cli-out.c: Update copyright.
1838         (cli_out_data): Define typedef.  Use instead of ui_out_data.
1839
1840 2003-03-08  Andrew Cagney  <cagney@redhat.com>
1841
1842         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
1843         the result.
1844
1845 2003-03-07  Andrew Cagney  <cagney@redhat.com>
1846
1847         * gdbarch.sh: Don't generate two macro definitions when an
1848         undefined macro taking no arguments.
1849         * gdbarch.h: Regenerate.
1850         
1851 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
1852
1853         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
1854         (x86_64_unwind_dummy_id): New functions.
1855         (x86_64_init_abi): Register these two new functions.
1856
1857 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
1858
1859         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
1860         (x86_64_skip_prologue): Move prologue detection to 
1861         separate function.
1862         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
1863
1864 2003-03-05  Andrew Cagney  <cagney@redhat.com>
1865
1866         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
1867         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
1868         * frame.c (get_prev_frame): Restructure the frame ID unwind code
1869         to use unwind_dummy_id when a dummy frame.
1870         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
1871         predicate.
1872         * gdbarch.h, gdbarch.c: Regneerate.
1873         
1874 2003-03-05  Andrew Cagney  <cagney@redhat.com>
1875
1876         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
1877         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
1878         Do not use d10v_read_sp or d10v_read_fp when obtaining register
1879         values.
1880
1881 2003-03-05  Andrew Cagney  <cagney@redhat.com>
1882
1883         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
1884         (struct d10v_unwind_cache): Delete field "frameless".  Replace
1885         "next_addr" with "sp_offset".  Add "r11_offset".
1886         (d10v_frame_unwind_cache): Update.
1887         (prologue_find_regs): Update.  When "mv r11, sp", save the
1888         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
1889         RN was saved in r11_offset.
1890
1891 2003-03-05  Andrew Cagney  <cagney@redhat.com>
1892
1893         * frame.c (deprecated_update_frame_pc_hack): Also update the the
1894         cached PC value in the next frame.
1895
1896 2003-03-05  Andrew Cagney  <cagney@redhat.com>
1897
1898         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
1899         "id_unwind_cache" with "id".
1900         (frame_id_unwind): Delete declaration.
1901         * frame.c (frame_id_unwind): Delete function.
1902         (get_prev_frame): Call the frame id unwind method directly.  Store
1903         the returned next frame's ID value in NEXT_FRAME.  Note that there
1904         is a problem with the wrong unwind ID being called with the wrong
1905         unwind cache.
1906
1907 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
1908
1909         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
1910
1911 2003-03-05  James Ingham <jingham@apple.com>
1912             Daniel Jacobowitz  <drow@mvista.com>
1913
1914         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
1915         (auto_cp_abi): New variable.
1916         (current_cp_abi, num_cp_abis): Make static.
1917         (CP_ABI_MAX): Define.
1918         (cp_abis): Turn into an array.
1919         (value_virtual_fn_field): Fix formatting.
1920         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
1921         takes a pointer.
1922         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
1923         (list_cp_abis, _initialize_cp_abi): New functions.
1924         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
1925         declarations for cp_abis, num_cp_abis, current_cp_abi, and
1926         switch_to_cp_abi.  Update prototype for register_cp_abi.
1927         * Makefile.in (cp-abi.o): Update dependencies.
1928         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
1929         instead of switch_to_cp_abi.
1930         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
1931         register_cp_abi.
1932         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
1933         register_cp_abi.
1934         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
1935
1936 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
1937
1938         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
1939         * dwarf2loc.c: Include "regcache.h".
1940         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
1941         register_size.
1942         * Makefile.in (dwarf2loc.o): Update dependencies.
1943
1944 2003-03-04  Theodore A. Roth  <troth@openavr.org>
1945
1946         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
1947         number of io registers reported by remote target is not a multiple of
1948         step.
1949
1950 2003-03-04  David Carlton  <carlton@math.stanford.edu>
1951
1952         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
1953         (lookup_symbol_aux_psymtabs): Update call to
1954         lookup_partial_symbol.
1955         (lookup_transparent_type, find_main_psymtab)
1956         (make_symbol_overload_list): Ditto.
1957
1958 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
1959
1960         * MAINTAINERS (Write after approval): Update my email address.
1961
1962 2003-03-03  Andrew Cagney  <cagney@redhat.com>
1963
1964         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
1965         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
1966         predicate.  Replace MAX_REGISTER_RAW_SIZE.
1967         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
1968         MAX_REGISTER_VIRTUAL_SIZE.
1969         * regcache.c (legacy_max_register_raw_size): New function.
1970         (legacy_max_register_virtual_size): New function.
1971         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
1972         (MAX_REGISTER_RAW_SIZE): Define.
1973         (legacy_max_register_raw_size): Declare.
1974         (legacy_max_register_virtual_size): Declare.
1975         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1976         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
1977         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1978         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1979         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1980         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1981         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1982         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1983         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1984         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1985         * vax-tdep.c (vax_gdbarch_init): Update.
1986         * v850-tdep.c (v850_gdbarch_init): Update.
1987         * sparc-tdep.c (sparc_gdbarch_init): Update.
1988         * sh-tdep.c (sh_gdbarch_init): Update.
1989         * s390-tdep.c (s390_gdbarch_init): Update.
1990         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1991         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1992         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1993         * mips-tdep.c (mips_gdbarch_init): Update.
1994         * mcore-tdep.c (mcore_gdbarch_init): Update.
1995         * m68k-tdep.c (m68k_gdbarch_init): Update.
1996         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1997         * ia64-tdep.c (ia64_gdbarch_init): Update.
1998         * i386-tdep.c (i386_gdbarch_init): Update.
1999         * hppa-tdep.c (hppa_gdbarch_init): Update.
2000         * h8300-tdep.c (h8300_gdbarch_init): Update.
2001         * frv-tdep.c (frv_gdbarch_init): Update.
2002         * cris-tdep.c (cris_gdbarch_init): Update.
2003         * avr-tdep.c (avr_gdbarch_init): Update.
2004         * arm-tdep.c (arm_gdbarch_init): Update.
2005         * alpha-tdep.c (alpha_gdbarch_init): Update.
2006         * d10v-tdep.c (d10v_gdbarch_init): Do not set
2007         max_register_raw_size or max_register_virtual_size.
2008
2009 2003-03-03  David Carlton  <carlton@math.stanford.edu>
2010
2011         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
2012         SYMBOL_MATCHES_NAME, add comment.
2013         (SYMBOL_MATCHES_NATURAL_NAME): New.
2014         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
2015         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
2016         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
2017         * symtab.c (lookup_partial_symbol): Use
2018         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
2019         unhelpful comment.
2020         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
2021         SYMBOL_MATCHES_NAME.
2022         Fix for PR c++/33.
2023
2024 2003-03-03  David Carlton  <carlton@math.stanford.edu>
2025
2026         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
2027         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
2028         by regexp matching against SYMBOL_NATURAL_NAME.
2029
2030 2003-03-03  David Carlton  <carlton@math.stanford.edu>
2031
2032         * linespec.c (find_method): Extract code into collect_methods.
2033         (collect_methods): New.
2034
2035 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
2036
2037         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
2038         get_frame_base.
2039
2040         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
2041         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2042
2043 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2044
2045         * arch-utils.c (generic_register_byte): Fix to use the loop index 
2046         and not regnum when summing the size of all registers up to regnum.
2047
2048 2003-03-01  Andrew Cagney  <cagney@redhat.com>
2049
2050         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
2051         FRAME_INIT_SAVED_REGS.
2052         * gdbarch.h, gdbarch.c: Regenerate.
2053         * stack.c (frame_info): Update.
2054         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
2055         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
2056         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
2057         * ns32k-tdep.c (ns32k_pop_frame): Update.
2058         * mips-tdep.c (mips_pop_frame): Update.
2059         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
2060         * ia64-tdep.c (ia64_frame_chain): Update.
2061         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
2062         (ia64_frameless_function_invocation): Update.
2063         (ia64_init_extra_frame_info): Update.
2064         (ia64_pop_frame_regular): Update.
2065         * frame.h (struct frame_info): Update comment.
2066         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
2067         * frame.c (frame_saved_regs_register_unwind): Update.
2068         (frame_saved_regs_register_unwind): Update.
2069         (deprecated_generic_get_saved_register): Update.
2070         * cris-tdep.c: Update comment.
2071         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
2072         Rename macro.
2073         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2074         * x86-64-tdep.c (x86_64_init_abi): Update.
2075         * vax-tdep.c (vax_gdbarch_init): Update.
2076         * v850-tdep.c (v850_gdbarch_init): Update.
2077         * sparc-tdep.c (sparc_gdbarch_init): Update.
2078         * sh-tdep.c (sh_gdbarch_init): Update.
2079         * s390-tdep.c (s390_gdbarch_init): Update.
2080         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2081         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2082         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2083         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2084         * mips-tdep.c (mips_gdbarch_init): Update.
2085         * mcore-tdep.c (mcore_gdbarch_init): Update.
2086         * m68k-tdep.c (m68k_gdbarch_init): Update.
2087         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2088         * ia64-tdep.c (ia64_gdbarch_init): Update.
2089         * i386-tdep.c (i386_gdbarch_init): Update.
2090         * frv-tdep.c (frv_gdbarch_init): Update.
2091         * avr-tdep.c (avr_gdbarch_init): Update.
2092         * arm-tdep.c (arm_gdbarch_init): Update.
2093         * alpha-tdep.c (alpha_gdbarch_init): Update.
2094         
2095 2003-03-01  Andrew Cagney  <cagney@redhat.com>
2096
2097         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
2098         option enum and switch.  When no windows, set the interpreter to
2099         INTERP_CONSOLE.
2100         
2101 2003-03-01  Andrew Cagney  <cagney@redhat.com>
2102
2103         * main.c (captured_main): Replace magic option characters with an
2104         enum.
2105
2106 2003-03-01  Andrew Cagney  <cagney@redhat.com>
2107
2108         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
2109         INIT_EXTRA_FRAME_INFO.
2110         * gdbarch.h, gdbarch.c: Regenerate.
2111         * arm-tdep.c: Update comments.
2112         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
2113         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
2114         * frame.h, avr-tdep.c: Ditto.
2115         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
2116         (create_new_frame, legacy_get_prev_frame): Ditto.
2117         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
2118         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
2119         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
2120         deprecated_init_extra_frame_info instead of init_extra_frame_info.
2121         * x86-64-tdep.c (x86_64_init_abi): Ditto.
2122         * v850-tdep.c (v850_gdbarch_init): Ditto.
2123         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2124         * sh-tdep.c (sh_gdbarch_init): Ditto.
2125         * s390-tdep.c (s390_gdbarch_init): Ditto.
2126         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
2127         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2128         * mips-tdep.c (mips_gdbarch_init): Ditto.
2129         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2130         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2131         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2132         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2133         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2134         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2135         * frv-tdep.c (frv_gdbarch_init): Ditto.
2136         * cris-tdep.c (cris_gdbarch_init): Ditto.
2137         * avr-tdep.c (avr_gdbarch_init): Ditto.
2138         * arm-tdep.c (arm_gdbarch_init): Ditto.
2139         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2140         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2141
2142 2003-03-01  Andrew Cagney  <cagney@redhat.com>
2143
2144         * gdbarch.sh (register_type): New function with predicate.
2145         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
2146         * gdbarch.h, gdbarch.c: Re-generate.
2147         * arch-utils.c (generic_register_byte): Use generic_register_size.
2148         (generic_register_size): When available, use
2149         gdbarch_register_type.
2150         * regcache.c (init_regcache_descr): When available, initialize the
2151         register type array using gdbarch_register_type.  If the
2152         architecture supplies gdbarch_register_type, do not use the legacy
2153         regcache layout.
2154         * d10v-tdep.c (d10v_register_type): Replace
2155         d10v_register_virtual_type.
2156         (d10v_gdbarch_init): Set register_type instead of
2157         register_virtual_type.
2158
2159 2003-03-01  Andrew Cagney  <cagney@redhat.com>
2160
2161         * Makefile.in (ax-gdb.o): Update dependencies.
2162         * ax-gdb.c: Include "regcache.h".
2163         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
2164         * findvar.c (value_of_register): Ditto.
2165         * infcmd.c (default_print_registers_info): Ditto.
2166
2167 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
2168
2169         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
2170         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2171
2172 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
2173
2174         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
2175         of STREQ.
2176
2177 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
2178
2179         * Makefile.in (dwarf2loc.o): Update dependencies.
2180         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
2181         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
2182         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
2183         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
2184         (locexpr_tracepoint_var_ref): New function.
2185         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
2186
2187 2003-02-28  Andrew Cagney  <cagney@redhat.com>
2188
2189         * regcache.c (register_size): New function.
2190         * regcache.h (register_size): Declare
2191         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
2192         max_register_size instead of MAX_REGISTER_RAW_SIZE.
2193
2194 2003-02-28  David Carlton  <carlton@math.stanford.edu>
2195
2196         * linespec.c (decode_compound): Extract code into find_method.
2197         (find_method): New.
2198
2199 2003-02-28  J. Brobecker  <brobecker@gnat.com>
2200
2201         * Makefile.in: Add rules to build and link in observer.o.
2202
2203 2003-02-27  J. Brobecker  <brobecker@gnat.com>
2204
2205         * observer.c: Minor comments edits.
2206
2207 2003-02-27  J. Brobecker  <brobecker@gnat.com>
2208
2209         * observer.h, observer.c: New file.
2210
2211 2003-02-27  Andrew Cagney  <cagney@redhat.com>
2212
2213         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
2214
2215 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
2216
2217         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
2218         (M6812_OP_STS_EXT): Likewise.
2219         (m6811_prologue): Use the above to recognize prologue.
2220         (m6812_prologue): Likewise.
2221
2222 2003-02-27  David Carlton  <carlton@math.stanford.edu>
2223
2224         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
2225         SYMBOL_PRINT_NAME.
2226         (compare_psymbols): Ditto.
2227         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
2228
2229 2003-02-27  Michael Snyder  <msnyder@redhat.com>
2230
2231         * f-lang.c (build_fortran_types): New function.
2232         (_initialize_f_language): Gdbarch-register built-in fortran types.
2233         * doublest.c (extract_floating): Fix warning text.
2234
2235 2003-02-27  Andrew Cagney  <cagney@redhat.com>
2236
2237         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
2238         predicate.  Replaces PUSH_DUMMY_FRAME.
2239         * gdbarch.h, gdbarch.c: Regnerate.
2240         * valops.c (hand_function_call): Update.  Call
2241         generic_push_dummy_frame directly.
2242         * vax-tdep.c (vax_gdbarch_init): Update.
2243         * sparc-tdep.c (sparc_gdbarch_init): Update.
2244         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2245         * m68k-tdep.c (m68k_gdbarch_init): Update.
2246         * hppa-tdep.c (hppa_gdbarch_init): Update.
2247         * alpha-tdep.c (alpha_gdbarch_init): Update.
2248         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
2249         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
2250         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
2251         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
2252         push_dummy_frame to generic_push_dummy_frame.
2253         * v850-tdep.c (v850_gdbarch_init): Ditto.
2254         * sh-tdep.c (sh_gdbarch_init): Ditto.
2255         * s390-tdep.c (s390_gdbarch_init): Ditto.
2256         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2257         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2258         * mips-tdep.c (mips_gdbarch_init): Ditto.
2259         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2260         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2261         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2262         * i386-tdep.c (i386_gdbarch_init): Ditto.
2263         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2264         * frv-tdep.c (frv_gdbarch_init): Ditto.
2265         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2266         * cris-tdep.c (cris_gdbarch_init): Ditto.
2267         * avr-tdep.c (avr_gdbarch_init): Ditto.
2268         * arm-tdep.c (arm_gdbarch_init): Ditto.
2269         
2270 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
2271
2272         * mips-tdep.c (show_mips_abi): New function.
2273         (_initialize_mips_tdep): Use show_mips_abi() to implement the
2274         command ``show mips abi''.
2275
2276 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
2277  
2278         From Elena Zannoni  <ezannoni@redhat.com>
2279         * dbxread.c (process_one_symbol): Only record line 0 if one or 
2280         more sline entries have been seen for the function.
2281
2282 2003-02-26  Michael Chastain  <mec@shout.net>
2283
2284         * configure: Regenerate with autoconf 000227.
2285
2286 2003-02-26  Michael Chastain  <mec@shout.net>
2287
2288         Close PR build/660.
2289         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
2290         for old libc5/glibc.
2291         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
2292
2293 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
2294
2295         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
2296         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
2297
2298 2003-02-26  Michael Chastain  <mec@shout.net>
2299
2300         * configure.in: New variable HAVE_UINTPTR_T.
2301         * configure, config.in: Regenerated.
2302
2303 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
2304
2305         Fix PR build/1097.
2306         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
2307
2308 2003-02-25  Andrew Cagney  <cagney@redhat.com>
2309
2310         * frame.c (get_prev_frame): Add comment on check for
2311         inside_entry_func. Only check for inside_entry_file when not a
2312         dummy and not a sentinel.  Check that the new frame is not inner
2313         to the old frame.
2314
2315 2003-02-25  Andrew Cagney  <cagney@redhat.com>
2316
2317         * frame.c (frame_debug): New variable.
2318         (_initialize_frame): Add "set/show debug frame" command.
2319         (get_prev_frame): When frame_debug, print reason why unwind
2320         failed.
2321
2322 2003-02-25  Michael Chastain  <mec@shout.net>
2323
2324         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
2325         to avoid uintptr_t definition problems.
2326
2327 2003-02-25  David Carlton  <carlton@math.stanford.edu>
2328
2329         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
2330         (SYMBOL_LINKAGE_NAME): Ditto.
2331         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
2332         SYMBOL_LINKAGE_NAME.
2333         (struct general_symbol_info): Expand comment.
2334         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
2335         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
2336         (SYMBOL_MATCHES_REGEXP): Ditto.
2337         * symtab.c (symbol_natural_name): New function.
2338         * objfiles.h: Replace all uses of SYMBOL_NAME by
2339         DEPRECATED_SYMBOL_NAME.
2340         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
2341         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
2342         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
2343         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
2344         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
2345         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
2346         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
2347         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
2348         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
2349         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
2350         * ada-exp.y: Ditto.
2351         * ada-exp.y: Update copyright.
2352         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
2353         * cp-valprint.c: Ditto.
2354
2355 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
2356
2357         * infptrace.c (detach): Do not flag error if ptrace detach fails
2358         and errno is set to ESRCH.
2359
2360 2003-02-24  Andrew Cagney  <cagney@redhat.com>
2361
2362         * infptrace.c (udot_info): Change type of udot_off to long.  Use
2363         paddr when printing udot_off's value.
2364
2365 2003-02-24  David Carlton  <carlton@math.stanford.edu>
2366
2367         * symtab.c (make_symbol_overload_list): Only read in partial
2368         symtabs containing a matching partial symbol.
2369
2370 2003-02-24  David Carlton  <carlton@math.stanford.edu>
2371
2372         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
2373         do the comparison, not strcmp.
2374         * symfile.c (compare_psymbols): Ditto.
2375         * defs.h: Declare strcmp_iw_ordered.
2376         * utils.c (strcmp_iw_ordered): New function.
2377
2378 2003-02-24  Jim Blandy  <jimb@redhat.com>
2379
2380         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
2381         support, shared libs): Remove my name from here, to better reflect
2382         reality.
2383
2384 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
2385
2386         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
2387         (target_ops): Add to_have_continuable_watchpoint.
2388         * target.c (update_current_target): Add INHERIT line for
2389         to_have_continuable_watchpoint.
2390         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
2391         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
2392         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
2393         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
2394
2395 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
2396
2397         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
2398         maintainership.
2399
2400 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
2401
2402         * solib.c (solib_open): Call target defined search function after
2403         failing with solib-search-path.
2404         * solist.h (target_so_ops): Add find_and_open_solib function hook and
2405         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2406
2407 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
2408
2409         * MAINTAINERS: Add myself to Write After section.
2410
2411 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
2412
2413         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
2414
2415 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
2416
2417         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
2418         (m68hc11_add_reggroups): New function.
2419         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
2420         (m68hc11_gdbarch_init): Install the reggroups.
2421         (_initialize_m68hc11_tdep): Initialize them.
2422
2423 2003-02-21  James E Wilson  <wilson@tuliptree.org>
2424
2425         * MAINTAINERS: Update my email address.
2426
2427 2003-02-21  David Carlton  <carlton@math.stanford.edu>
2428
2429         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
2430
2431 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
2432
2433         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
2434         * symtab.h: Add opaque declarations of struct axs_value and
2435         struct agent_expr.
2436         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
2437         (struct location_funcs): New type.
2438         (struct symbol): Add "loc" to aux_value.
2439         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
2440         * dwarf2read.c: Include "dwarf2expr.h".
2441         (dwarf2_symbol_mark_computed): New function.
2442         (read_func_scope): Use it.
2443         (var_decode_location): New function.
2444         (new_symbol): Use it.
2445         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
2446
2447         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
2448         (dwarf2expr_h, dwarf2loc_h): New variables.
2449         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
2450         (dwarf2expr.o, dwarf2loc.o): New rules.
2451         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
2452         * buildsym.c (finish_block): Handle LOC_COMPUTED and
2453         LOC_COMPUTED_ARG.
2454         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2455         * m2-exp.y (yylex): Likewise.
2456         * printcmd.c (address_info, print_frame_args): Likewise.
2457         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
2458         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2459         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
2460         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
2461         * symtab.c (lookup_block_symbol): Likewise.
2462
2463 2003-02-20  Adam Fedor  <fedor@gnu.org>
2464
2465         * symtab.h: Remove objc_specific struct
2466         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
2467         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
2468         Have language_objc use cplus_specific struct.
2469
2470 2003-02-20  Tom Tromey  <tromey@redhat.com>
2471
2472         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
2473         TYPE_NAME, when printing a String value.  PR java/1075.
2474
2475 2003-02-20  Adam Fedor  <fedor@gnu.org>
2476
2477         * objc-lang.h (find_methods): Remove declaration.
2478         * objc-lang.c (find_methods): Make static.
2479
2480 2003-02-20  Christopher Faylor  <cgf@redhat.com>
2481
2482         * win32-nat.c (get_image_name): Check return value from
2483         ReadProcessMemory.
2484         (child_xfer_memory): Ditto.
2485
2486 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
2487
2488         * configure.in (TARGET_SYSTEM_ROOT): Set default to
2489         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
2490         '${exec_prefix}' (in addition to the expansion thereof) as
2491         relocatable.
2492         * configure: Rebuilt.
2493
2494 2003-02-20  David Carlton  <carlton@math.stanford.edu>
2495
2496         * symtab.c (search_symbols): Revert the search_symbols part of my
2497         2002-12-23 patch.  Add comment.
2498
2499 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
2500
2501         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
2502         * dbxread.c (elfstab_build_psymtabs): Don't call
2503         install_minimal_symbols.
2504         (stabsect_build_psymtabs): Likewise.
2505         * elfread.c (elf_symfile_read): Call install_minimal_symbols
2506         earlier.
2507         * somread.c (som_symfile_read): Call install_minimal_symbols
2508         and do_cleanups earlier.
2509         * nlmread.c (nlm_symfile_read): Likewise.
2510         * mdebugread.c (elfmdebug_build_psymtabs): Call
2511         install_minimal_symbols and make appropriate cleanups.
2512
2513 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
2514
2515         * solib.c (reload_shared_libraries): New function.
2516         (_initialize_solib): Add callbacks for ``set solib-search-path''
2517         and ``set solib-absolute-prefix''.
2518
2519 2003-02-20  David Carlton  <carlton@math.stanford.edu>
2520
2521         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
2522         expand comment.
2523         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
2524         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
2525         * ada-typeprint.c (ada_typedef_print): Ditto.
2526         * ax-gdb.c (gen_var_ref): Ditto.
2527         * breakpoint.c (print_one_breakpoint): Ditto.
2528         * buildsym.c (finish_block): Ditto.
2529         * c-valprint.c (c_val_print): Ditto.
2530         * expprint.c (print_subexp): Ditto.
2531         * findvar.c (locate_var_value): Ditto.
2532         * infcmd.c (jump_command): Ditto. 
2533         * linespec.c (decode_line_2, decode_compound): Ditto. 
2534         * maint.c (maintenance_translate_address): Ditto. 
2535         * objc-lang.c (compare_selectors, compare_classes): Ditto. 
2536         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
2537         Ditto.
2538         * p-valprint.c (pascal_val_print): Ditto. 
2539         * stabsread.c (define_symbol): Ditto. 
2540         * stack.c (print_frame, frame_info, print_block_frame_locals)
2541         (print_frame_arg_vars, return_command): Ditto. 
2542         * symfile.c (compare_symbols, compare_psymbols): Ditto. 
2543         * symmisc.c (print_symbol): Ditto. 
2544         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
2545         (compare_search_syms, print_symbol_info, print_msymbol_info)
2546         (rbreak_command): Ditto. 
2547         * tracepoint.c (tracepoints_info): Ditto. 
2548         * typeprint.c (typedef_print): Ditto. 
2549         * valops.c (value_of_variable, hand_function_call): Ditto. 
2550         * cli/cli-cmds.c (edit_command, list_command): Ditto.
2551         * ada-typeprint.c: Update Copyright.
2552         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
2553         * tracepoint.c, cli/cli-cmds.c: Ditto.
2554
2555 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
2556
2557         * frame.c (generic_unwind_get_saved_register): Make non-static.
2558         * frame.h (generic_unwind_get_saved_register): Declare.
2559         * mips-tdep.c (read_next_frame_reg): Fetch register from
2560         current regcache when frame is NULL.
2561         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
2562         that must be NULL.
2563         (mips_get_saved_register): Call generic_unwind_get_saved_register()
2564         instead of frame_register_unwind().
2565
2566 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
2567
2568         * remote-sim.c (gdbsim_insert_breakpoint)
2569         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
2570         code.
2571
2572 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
2573
2574         * remote.c (_initialize_remote): Add commands "set/show remote
2575         hardware-watchpoint-limit" and "set/show remote
2576         hardware-breakpoint-limit".
2577         (remote_hw_watchpoint_limit): Initialize to -1.
2578         (remote_hw_breakpoint_limit): Ditto.
2579         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
2580
2581 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
2582
2583         * coff-pe-read.c: New file - support reading of minimal symbols from a
2584         portable executable using the export table.
2585         * coff-pe-read.h: New file.
2586         * coffread.c: Include coff-pe-read.h.
2587         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
2588         debugging symbols found.
2589         * Makefile.in (SFILES): Add coff-pe-read.o.
2590         (coff_pe_read_h): Define.
2591         (COMMON_OBS): Add coff-pe-read.o.
2592         (coffread.o): Add coff_pe_read_h dependency.
2593         (coff-pe-read.o): New target.
2594
2595 2003-02-19  David Carlton  <carlton@math.stanford.edu>
2596
2597         * Makefile.in (SFILES): Add block.c.
2598         (block_h): New.
2599         (COMMON_OBS): Add block.o.
2600         (block.o): New.
2601         (x86-64-tdep.o): Add $(block_h).
2602         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
2603         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
2604         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
2605         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
2606         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
2607         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
2608         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
2609         * value.h: Add opaque declaration for struct block.
2610         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
2611         * ada-lang.h: Ditto.
2612         * x86-64-tdep.c: #include "block.h"
2613         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
2614         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
2615         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
2616         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
2617         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
2618         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
2619         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
2620         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
2621         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
2622         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
2623         * symtab.c (block_function): Ditto.
2624         (contained_in): Ditto.
2625         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
2626         block.h.  Add opaque declaration for struct block.
2627         * symtab.h: Move block_function and contained_in declarations to
2628         block.h.  Add opaque declarations for struct block, struct
2629         blockvector.
2630         (struct block): Move to block.h.
2631         (struct blockvector): Ditto.
2632         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
2633         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
2634         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
2635         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
2636         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
2637         Ditto.
2638         * block.c: New file.
2639         * block.h: New file.
2640
2641 2003-02-19  Theodore A. Roth  <troth@openavr.org>
2642
2643         * avr-tdep.c (avr_extract_return_value): Remove function.
2644         (avr_store_return_value): Remove function.
2645         (avr_extract_struct_value_address): Remove function.
2646         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
2647
2648 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
2649
2650         * rs6000-tdep.c: Include "gdb_assert.h".
2651         (registers_e500): Add "acc" and "spefscr".
2652         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
2653         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
2654         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
2655         really is "r0".
2656         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
2657
2658 2003-02-18  Keith Seitz  <keiths@redhat.com>
2659
2660         * Makefile.in: Add gdbtk-interps.c.
2661
2662 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
2663
2664         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
2665         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
2666
2667 2003-02-18  Andrew Cagney  <cagney@redhat.com>
2668
2669         * symtab.h (struct objfile): Add opaque declaration.
2670
2671 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
2672
2673         From Jim Ingham   <jingham@apple.com>:
2674         * dbxread.c (process_one_symbol): Use last_function_start rather
2675         than function_start_offset to find the real beginning of the
2676         current function.  The latter is just the text section offset on
2677         some systems, the former is always the real function start.
2678
2679 2003-02-17  Andrew Cagney  <cagney@redhat.com>
2680
2681         * configure.in: Revert ${target} != ${host}.
2682
2683 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
2684
2685         * configure.in (Makefile): Use the test ${target} != ${host},
2686         instead of the absence of the "nm.h" file, to determine of the
2687         configuration non-native.
2688         * configure: Regenerate.
2689         
2690 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
2691
2692         From Brian Ford  <ford@vss.fsi.com>
2693
2694         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
2695         conditionalize tui_active test.
2696         (lookup_cmd_1): Ditto.
2697
2698 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
2699
2700         * configure.in: Add check for _etext.
2701         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
2702         available.
2703         * config.in, configure: regenerated.
2704
2705 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
2706
2707         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
2708
2709 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
2710
2711         * main.c (tui_version): Delete variable.
2712         (captured_main): When --tui, set interpreter_p to "tui" instead of
2713         enabling tui_version.
2714         * printcmd.c (display_command) [TUI]: Test tui_active instead of
2715         tui_version.
2716         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
2717         * cli/cli-cmds.c (disassemble_command): Ditto.
2718         * defs.h (tui_version): Delete declaration.
2719         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
2720         (tui-interp.o): Add rules.
2721         (SUBDIR_TUI_OBS): Add "tui-interp.o".
2722
2723 2003-02-14  Christopher Faylor  <cgf@redhat.com>
2724
2725         * win32-nat.c (register_loaded_dll): Correctly set address range for
2726         just-loaded dll.
2727
2728 2003-02-12  Jason Molenda  (jmolenda@apple.com)
2729
2730         * symmisc.c (print_objfile_statistics): Include information about
2731         the number of psymtabs and symtabs in each object file.
2732
2733 2003-02-13  Keith R Seitz  <keiths@redhat.com>
2734
2735         * main.h (struct captured_main_args): Add interpreter_p.
2736         * main.c (captured_main): Initialize interpreter_p from context.
2737         * gdb.c (main): Set interpreter_p argument.
2738         * Makefile.in (gdb.o): Add dependency for interps.h.
2739
2740 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
2741
2742         * event-top.c (cli_command_loop): Delete declaration.
2743         (_initialize_event_loop): Delete function setting event_loop_hook.
2744         * event-top.h (cli_command_loop): Declare.  Update copyright.
2745         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
2746         * interps.c (current_interp_command_loop): When event_loop_p, call
2747         cli_command_loop.
2748
2749 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
2750
2751         * interps.h (interp_command_loop_ftype): Change return type to
2752         void.
2753
2754 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
2755
2756         * x86-64-tdep.c (x86_64_extract_return_value)
2757         (x86_64_store_return_value): Use regcache instead of regbuf.
2758         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
2759         * x86-64-linux-nat.c (fill_gregset): Use regcache.
2760
2761 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
2762
2763         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
2764         * aclocal.m4: Regenerate.
2765         * configure: Regenerate.
2766
2767         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
2768         TCL_LD_SEARCH_FLAGS.
2769
2770 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
2771
2772         * dwarf2cfi.c: Reindented.
2773
2774 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
2775
2776         * interps.c (clear_interpreter_hooks): Convert function definition
2777         to ISO C.
2778
2779 2003-02-07  David Carlton  <carlton@math.stanford.edu>
2780
2781         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
2782
2783 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
2784
2785         * gdbtypes.h (struct main_type): Move ``length'' field from here...
2786         (struct type): ...to here.
2787         (TYPE_LENGTH): Adjust to reflect different location of ``length''
2788         field.
2789         * gdbtypes.c (make_qualified_type): Set length on newly created type.
2790         (replace_type): Set length on all type variants for a given type.
2791
2792 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
2793
2794         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
2795         <sys/stat.h>.
2796         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
2797         
2798 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
2799
2800         * Makefile.in (symm-nat.o): Update dependencies.
2801         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
2802         (lynx-nat.o, ia64-linux-nat.): Ditto.
2803         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
2804         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
2805         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
2806
2807         * Makefile.in (inflow_h): Define.
2808         (procfs.o, inflow.o, procfs.o): Update dependencies.
2809         * inftarg.c (child_stop): Delete extern declaration of
2810         inferior_process_group.  Include "inflow.h".
2811         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
2812         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
2813         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
2814         (our_process_group, inferior_process_group): Extern declarations.
2815
2816         * procfs.c: Include "gdb_assert.h".
2817
2818         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2819         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
2820         * jv-typeprint.c (java_type_print_base): Ditto.
2821         * typeprint.c (typedef_print): Eliminate STREQ.
2822         * cli/cli-script.c (define_command, define_command): Ditto.
2823         * main.c (captured_main): Ditto.
2824         * values.c (lookup_internalvar): Ditto.
2825         * utils.c (safe_strerror, parse_escape): Eliminate assignment
2826         within `if' conditional.
2827         * linespec.c (decode_line_2): Ditto.
2828         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
2829         (bfd_openw_with_cleanup): Ditto.
2830
2831 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
2832
2833         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
2834         legacy_extract_return_value and store_return_value to
2835         legacy_return_value.
2836
2837 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
2838
2839         * win32-nat.c (get_relocated_section_addrs): New function.  Find
2840         section load addresses for symbol handling in relocated DLLs.
2841         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
2842
2843 2003-02-05  Fred Fish  <fnf@intrinsity.com>
2844
2845         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
2846         '=' and '!='.
2847         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
2848         with '&' and '=='.
2849         (angel_RDI_info): Ditto.
2850         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
2851         with '&' and '!='.
2852         (threads_continue_all_with_signals): Ditto.
2853   
2854 2003-02-05  Jim Ingham <jingham@apple.com>
2855             Keith Seitz  <keiths@redhat.com>
2856             Elena Zannoni  <ezannoni@redhat.com>
2857             Andrew Cagney  <ac131313@redhat.com>
2858
2859         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
2860         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
2861         (SUBDIR_MI_OBS): Add "mi-interp.o".
2862         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
2863         (SFILES): Add "interps.c".
2864         (COMMON_OBS): Add "interps.o".
2865         (interps_h, mi_main_h): Define.
2866         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
2867         (mi-main.o, main.o, event-top.o): Update dependencies.
2868         * cli/cli-interp.c: New file.
2869         * interps.h, interps.c: New files.
2870         * top.c: (gdb_init): Don't install the default interpreter, handed
2871         by captured_main.
2872         * main.c: Include "interps.h".
2873         (interpreter_p): Note that it should malloc'ed.
2874         (captured_command_loop): Call current_interp_command_loop.
2875         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
2876         xfree and xstrdup when updating interpreter_p.  Install the
2877         default interpreter.  Add hack to stop mi1's copyright notice
2878         being encoded.
2879         * event-top.h (gdb_setup_readline): Declare.
2880         (gdb_disable_readline): Declare.
2881         * event-top.c: Include "interps.h".
2882         (display_gdb_prompt): Call current_interp_display_prompt_p.
2883         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
2884         gdb_stdlog, and gdb_stdtarg.
2885         (_initialize_event_loop): Don't call gdb_setup_readline.
2886         * cli-out.c (cli_out_set_stream): New function.
2887         * cli-out.h (cli_out_set_stream): Declare.
2888
2889 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
2890
2891         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
2892         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
2893         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
2894         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
2895         config/i386/i386v42mp.mt: Removed.
2896
2897 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
2898
2899         * configure.tgt (*-*-solaris*): Set gdb_osabi to
2900         GDB_OSABI_SOLARIS.
2901
2902 2003-02-05  Michael Chastain  <mec@shout.net>
2903
2904         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
2905         2.12.1 and earlier versions.
2906
2907 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
2908
2909         Remove orphaned hosts, targets and files.
2910         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
2911         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
2912         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
2913         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
2914         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
2915         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
2916         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
2917         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
2918         * config/sparc/tm-sp64sim.h: Delete.
2919         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
2920         hosts.
2921         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
2922         mips*-dec-mach3* targets.
2923
2924 2003-02-04  Michael Chastain  <mec@shout.net>
2925
2926         * NEWS: Fix typo: sepcifying -> specifying.
2927
2928 2003-02-04  Michael Chastain  <mec@shout.net>
2929
2930         * dwarfread.c: Add documentation on the state of dwarf-1,
2931         looking towards obsoletion.
2932
2933 2003-02-03  Michael Chastain  <mec@shout.net>
2934
2935         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
2936         gdb/testsuite/gdb.c++/pr-1023.exp.
2937
2938 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
2939
2940         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
2941         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
2942
2943         * utils.c (init_page_info): Delete reference to MPW in comments.
2944         * main.c (captured_main): Delete #ifdef MPW.
2945
2946 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
2947
2948         * NEWS: Note that the m32r-*-elf* is obsolete. 
2949         * monitor.c (monitor_expect): Obsolete reference to m32r.
2950         * configure.tgt: Mark m32r-*-elf* as obsolete.
2951         * MAINTAINERS: Mark m32k as obsolete.
2952         * m32r-rom.c: Obsolete file.
2953         * config/m32r/m32r.mt: Obsolete file.
2954         * config/m32r/tm-m32r.h: Obsolete file.
2955         * m32r-stub.c: Obsolete file.
2956         * m32r-tdep.c: Obsolete file.
2957
2958 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
2959
2960         * NEWS: Mention that the z8k-zilog-none is obsolete.
2961         * MAINTAINERS: Mark z8k as obsolete.
2962         * configure.tgt: Obsolete the z8k-*-coff* target.
2963         * config/z8k/z8k.mt: Obsolete file.
2964         * config/z8k/tm-z8k.h: Obsolete file.
2965         * z8k-tdep.c: Obsolete file.
2966
2967 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
2968
2969         * NEWS: Mention that the mn10200-elf is obsolete.
2970         * configure.tgt: Obsolete mn10200-*-* target.
2971         * breakpoint.c (update_breakpoints_after_exec): Update comment to
2972         mention that the mn10200 is obsolete.
2973         * breakpoint.h: Ditto.
2974         * MAINTAINERS: Mark the mn10200-elf as obsolete.
2975         * config/mn10200/mn10200.mt: Obsolete file.
2976         * config/mn10200/tm-mn10200.h: Obsolete file.
2977         * mn10200-tdep.c: Obsolete file.
2978
2979 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
2980
2981         * MAINTAINERS: Mark h8500 as obsolete.
2982         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
2983         * findvar.c (value_from_register): Ditto.
2984         * h8500-tdep.c: Mark file as obsolete.
2985         * config/h8500/h8500.mt: Ditto.
2986         * config/h8500/tm-h8500.h: Ditto.
2987         * NEWS: Mention that h8500 is obsolete.
2988
2989 2003-02-04  David Carlton  <carlton@math.stanford.edu>
2990
2991         * objfiles.c (allocate_objfile): Always set name.  Add comment at
2992         start of function.
2993         * jv-lang.c (get_dynamics_objfile): Add comment.
2994
2995 2003-02-04  David Carlton  <carlton@math.stanford.edu>
2996
2997         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
2998         * printcmd.c (build_address_symbolic): Replace uses of
2999         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
3000         SYMBOL_NAME, and asm_demangle.
3001         Update copyright.
3002
3003 2003-02-04  David Carlton  <carlton@math.stanford.edu>
3004
3005         * linespec.c (decode_compound): Extract code into
3006         lookup_prefix_sym.
3007         (lookup_prefix_sym): New function.
3008
3009 2003-02-04  David Carlton  <carlton@math.stanford.edu>
3010
3011         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
3012         FLOAT_COERCION_BADNESS.
3013         * gdbtypes.c (rank_one_type): Replace all uses of
3014         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
3015
3016 2003-02-04  Jim Blandy  <jimb@redhat.com>
3017
3018         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
3019         section, let dwarf_macinfo_section point to it, not
3020         dwarf_loc_section.
3021
3022 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
3023
3024         Pointed out by Anton Blanchard <anton@samba.org>.
3025         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
3026         (ppc_linux_at_sigtramp_return_path): Use it.
3027
3028 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
3029
3030         * defs.h (streq): Add prototype.
3031         * utils.c (streq): New function.
3032
3033         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
3034         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
3035         * mdebugread.c (new_symbol): Likewise.
3036         * stabsread.c (define_symbol): Likewise.
3037         * coffread.c (process_coff_symbol): Likewise.
3038         * dwarfread.c (new_symbol): Likewise.
3039
3040         * minsyms.c (prim_record_minimal_symbol_and_info): Use
3041         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
3042         here.
3043         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
3044         SYMBOL_INIT_DEMANGLED_NAME.
3045         * objfiles.c: Include "hashtab.h".
3046         (allocate_objfile): Call htab_set_functions_ex for the
3047         demangled_names_hash.
3048         (free_objfile): Call htab_delete for the demangled_names_hash.
3049         * objfiles.h (struct htab): Add declaration.
3050         (struct objfile): Add demangled_names_hash.
3051         * symfile.c: Include "hashtab.h".
3052         (reread_symbols): Call htab_delete for the demangled_names_hash.
3053         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
3054         SYMBOL_NAME in the bcache.
3055         * symtab.c: Include "hashtab.h".  Update comments.
3056         (create_demangled_names_hash, symbol_set_names): New functions.
3057         (symbol_find_demangled_name): New function, broken out from
3058         symbol_init_demangled_names.
3059         (symbol_init_demangled_names): Use it.
3060         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
3061         (SYMBOL_SET_NAMES): New macro.
3062         (symbol_set_names): Add prototype.
3063
3064 2003-02-03  Jim Blandy  <jimb@redhat.com>
3065
3066         Use a single, consistent representation for an empty minimal
3067         symbol table in an objfile.
3068         * objfiles.c (terminate_minimal_symbol_table): New function.
3069         (allocate_objfile): Call it.
3070         * objfiles.h (terminate_minimal_symbol_table): New declaration.
3071         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
3072         non-NULL. 
3073         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
3074         objfile has minimal symbols, compare minimal_symbol_count to zero,
3075         instead of comparing msymbols with NULL.
3076         * objfiles.c (have_minimal_symbols): Same.
3077         * solib-sunos.c (solib_add_common_symbols): Call
3078         terminate_minimal_symbol_table.
3079         * symfile.c (reread_symbols): Same.
3080         
3081 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
3082
3083         * s390-tdep.c (s390_address_class_type_flags)
3084         (s390_address_class_type_flags_to_name)
3085         (s390_address_class_name_to_type_flags): New functions.
3086         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
3087         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
3088
3089 2003-02-03  Michael Snyder  <msnyder@redhat.com>
3090
3091         * arm-tdep.c: Fix spell-o in comment.
3092
3093 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
3094
3095         * dwarf2cfi.c (pointer_encoding): Added new parameter.
3096         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
3097         error messages to contain BFD filename. 
3098
3099 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
3100
3101         Fix PR gdb/742 gdb/743 gdb/877
3102         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
3103         (do_mixed_source_and_assembly): Use
3104         make_cleanup_ui_out_tuple_begin_end and
3105         make_cleanup_ui_out_tuple_begin_end.
3106         (do_mixed_source_and_assembly): Ditto.
3107         * thread.c (do_captured_list_thread_ids): Ditto.
3108         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
3109         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
3110         ui_out_tuple_end): Delete prototypes.
3111         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
3112         ui_out_list_end, ui_out_tuple_end): Delete.
3113
3114         From Kevin Buettner  <kevinb@redhat.com>:
3115         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
3116         * ui-out.c (make_cleanup_ui_out_table_begin_end)
3117         (do_cleanup_table_end):  New functions.
3118         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
3119         Use cleanups to invoke_ui_out_tuple_end().
3120         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3121         * cli/cli-setshow.c (cmd_show_list): Use
3122         make_cleanup_ui_out_tuple_begin_end.
3123         
3124 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
3125
3126         * frame.c (frame_unwind_register): New function.
3127         (frame_unwind_unsigned_register): Use.
3128         (frame_unwind_signed_register): Use.
3129         (frame_read_register): New function.
3130         * frame.h (frame_unwind_register): Declare.
3131         (frame_read_register): Declare.
3132
3133         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
3134         and frame_unwind_register instead of read_memory, write_register
3135         and deprecated_write_register_bytes.
3136
3137 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
3138
3139         * frame.h: Note that namelen can be negative.
3140         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
3141         NAME's length.
3142
3143         * NEWS: Mention that the d10v's `regs' command is deprecated.
3144         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
3145         (d10v_print_registers_info): New function.
3146         (show_regs): Call d10v_print_registers_info.
3147         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
3148
3149 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
3150
3151         * stack.c (print_frame_info): Restore call to annotate_frame_begin
3152         lost in the previous patch.
3153
3154 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
3155
3156         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
3157         * stack.c (print_frame_info_base): Output complete FRAME tuple
3158         for synthesized frames.
3159
3160 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
3161
3162         * mips-nat.c (zerobuf): Delete.
3163         (fetch_inferior_registers): Alloc local zerobuf.
3164         (fetch_core_registers): Alloc local zerobuf.
3165         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
3166         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
3167         * thread-db.c (thread_db_store_registers): Ditto.
3168         * sh-tdep.c (sh_do_register): Ditto.
3169         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3170         * remote-sim.c (gdbsim_store_register): Ditto.
3171         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3172         * remote-e7000.c (fetch_regs_from_dump): Ditto.
3173         * monitor.c (monitor_supply_register): Ditto.
3174         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
3175         * mips-nat.c (fetch_inferior_registers): Ditto.
3176         * m68klinux-nat.c (fetch_register): Ditto.
3177         * lynx-nat.c (fetch_inferior_registers): Ditto.
3178         (fetch_inferior_registers): Ditto.
3179         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
3180         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
3181         (hpux_thread_store_registers): Ditto.
3182         * hppah-nat.c (fetch_register): Ditto.
3183         * hppab-nat.c (fetch_register): Ditto.
3184         * hppa-tdep.c (pa_register_look_aside): Ditto.
3185         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
3186         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
3187
3188 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
3189
3190         * gdbarch.sh: Explictly specify all method levels.  When a
3191         variable with an empty level, provide a non-multi-arch default.
3192         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
3193         * gdbarch.h: Re-generate.
3194         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
3195         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
3196
3197 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
3198
3199         * defs.h (host_pointer_to_address): Delete declaration.
3200         (address_to_host_pointer): Delete declaration.
3201         * utils.c (host_pointer_to_address): Delete function.
3202         (address_to_host_pointer): Delete function.
3203         * procfs.c (procfs_address_to_host_pointer): New function.
3204         * procfs.c (proc_set_watchpoint): Use.
3205         (procfs_can_use_hw_breakpoint): Update comments.
3206         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
3207         (som_solib_add): Use.
3208         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
3209         * hppa-tdep.c (unwind_command): Use.
3210         
3211 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
3212
3213         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
3214         strlen d_name.
3215
3216         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
3217         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
3218         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
3219         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
3220         (define_symbol): Update.
3221         * symfile.c (generic_load): Remove references to nindy.
3222         * symtab.c: Remove references to nindy.
3223
3224 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
3225
3226         * infcmd.c (print_float_info): Delete code conditional on
3227         FLOAT_INFO.
3228         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
3229         * config/m68k/nm-apollo68b.h: Ditto.
3230         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
3231         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
3232         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
3233
3234 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
3235
3236         * config/i386/tm-i386os9k.h: Removed.
3237
3238         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
3239         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
3240         they're identical to i[3456]86-*-sysv* now.
3241         * config/i386/i386v32.mh: Removed.
3242         * config/i386/xm-i386v32.h: Removed.
3243         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
3244
3245         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
3246
3247         * config/i386/i386dgux.mh: Removed.
3248         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
3249
3250         * configure.in: Fix typo.
3251         * configure: Regenerated.
3252
3253 2003-01-31  David Carlton  <carlton@math.stanford.edu>
3254
3255         * dwarf2read.c (dwarf2_locate_sections): Set
3256         dwarf_ranges_section.
3257
3258 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
3259
3260         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
3261         * utils.c: Update comments documenting legitimate uses of PTR.
3262         
3263         * utils.c: Re-indent.
3264
3265         * config/djgpp/fnchange.lst: Delete nindy files.
3266         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
3267         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
3268         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
3269         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
3270         * nindy-share/README, nindy-share/Onindy.c: Delete files.
3271         * nindy-tdep.c, nindy-share/Makefile: Delete files.
3272         * Makefile.in (init.c): Remove nindy references.
3273         (saber_gdb): Delete rule.
3274         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
3275         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
3276         and a68v-nat.c.
3277         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
3278         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
3279         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
3280         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
3281         nindy-share/stop.h.
3282         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
3283         * saber.suppress: Delete file.
3284
3285 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
3286
3287         * dbxread.c (stabs_data): New static variable.
3288         (fill_symbuf): Support an in-memory buffer for stabs data.
3289         (stabs_seek): New function.
3290         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
3291         (read_ofile_symtab): Use stabs_seek.
3292         (elfstab_build_psymtabs): Take an asection* instead of
3293         an offset and size.  Relocate the stabs data if necessary.
3294         Save the section* for dbx_psymtab_to_symtab.
3295         * dwarf2read.c: Add section variables for each debug section.
3296         (dwarf2_locate_sections): Fill them in.
3297         (dwarf2_read_section): Take an asection* argument.
3298         Relocate the section contents if necessary.
3299         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
3300         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
3301         it to dwarf2_read_section.
3302         (dwarf2_build_frame_info): Update callers.
3303         * elfread.c (elf_symfile_read): Update call to
3304         elfstab_build_psymtabs.
3305         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
3306         (DBX_STAB_SECTION): New macro.
3307         * stabsread.h (elfstab_build_psymtabs): Update prototype. 
3308         * symfile.c (symfile_dummy_outputs): New function.
3309         (symfile_relocate_debug_section): New function.
3310         * symfile.h (symfile_relocate_debug_section): Add prototype.
3311
3312 2003-01-31  Richard Henderson  <rth@redhat.com>
3313
3314         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
3315         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
3316         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
3317         * alpha-tdep.c (alpha_register_name): Add "unique".
3318         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
3319         (ALPHA_UNIQUE_REGNUM): New.
3320         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
3321
3322 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
3323
3324         * README: Remove reference to Ericsson 1800 monitor.
3325         * Makefile.in (remote-es.o): Delete rule.
3326         (ALLDEPFILES): Delete remote-es.c.
3327         * remote-es.c: Delete file.
3328         * config/m68k/es1800.mt: Delete file.
3329         * config/djgpp/fnchange.lst: Update.
3330         * configure.tgt: Delete m68*-ericsson-* target.
3331
3332 2003-01-31  Adam Fedor  <fedor@gnu.org>
3333
3334         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
3335         Remove duplicate/shadowing variable of same name.
3336
3337 2003-01-30  Jim Blandy  <jimb@redhat.com>
3338
3339         * symfile.c (find_separate_debug_file): Assert that the objfile's
3340         directory name we compute ends with a slash, and then assume that
3341         that's so everywhere we use it.
3342
3343 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
3344
3345         * valops.c (value_assign): Flush frame cache after stores to memory
3346         also.
3347
3348 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
3349
3350         * Makefile.in (mon960-rom.o): Delete rule.
3351         * mon960-rom.c: Delete file.
3352
3353 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
3354
3355         * d10v-tdep.c: Include "frame-unwind.h".
3356         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
3357         list.
3358         (next_addr, uses_frame): Delete.
3359         (struct d10v_unwind_cache): Define.
3360         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
3361         Use info instead of next_addr and uses_frame globals.
3362         (d10v_frame_init_saved_regs): Delete function.
3363         (d10v_init_extra_frame_info): Delete function.
3364         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
3365         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
3366         init_frame_pc or frame_saved_pc.
3367         (d10v_pop_frame): Delete function.
3368         (do_d10v_pop_frame): Delete function.
3369         (d10v_frame_chain): Delete function.
3370         (d10v_frame_chain_valid): Delete function.
3371         (d10v_frame_pc_unwind): New function.
3372         (d10v_frame_id_unwind): New function.
3373         (saved_regs_unwinder): New function.
3374         (d10v_frame_register_unwind): New function.
3375         (d10v_frame_pop): New function.
3376         (d10v_frame_unwind): New variable.
3377         (d10v_frame_p): New function.
3378         (d10v_frame_saved_pc): Delete function.
3379         * Makefile.in (d10v-tdep.o): Update dependencies.
3380
3381 2003-01-30  J. Brobecker  <brobecker@gnat.com>
3382
3383         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
3384         causing some regressions due to a change in the default value
3385         for this macro.
3386
3387 2003-01-29  Richard Henderson  <rth@redhat.com>
3388             Elena Zannoni  <ezannoni@redhat.com>
3389             Daniel Jacobowitz  <drow@mvista.com>
3390
3391         Fix PR gdb/961.
3392         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
3393         variables.
3394         (RANGES_SECTION): New.
3395         (dwarf_ranges_buffer): New variable.
3396         (struct comp_unit_head): Add member "die".
3397         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
3398         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
3399         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
3400         (dwarf2_locate_sections): Likewise.
3401         (dwarf2_build_psymtabs): Read .debug_ranges.
3402         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
3403         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
3404         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
3405         Look for DW_AT_ranges and return the bounding box.
3406
3407 2003-01-29  Brian Ford <ford@vss.fsi.com>
3408
3409         * win32-nat.c (cygwin_pid): Removed as unused.
3410         (child_attach): Try fall back to Cygwin pid.
3411
3412 2003-01-29  Jim Blandy  <jimb@redhat.com>
3413
3414         * objfiles.h (struct objfile): Doc fix.
3415
3416 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
3417
3418         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
3419         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
3420         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
3421         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
3422         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
3423         (FRAME_SAVED_PC): Change to a function with predicate.
3424         * gdbarch.h, gdbarch.c: Re-generate.
3425
3426 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
3427
3428         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
3429
3430         * complaints.c (complain): Delete function.
3431         * complaints.h (struct deprecated_complaint): Delete definition.
3432         (complain): Delete declaration.
3433
3434 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
3435
3436         * mips-tdep.c (mips_init_extra_frame_info): Return early for
3437         dummy frames.
3438
3439 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
3440
3441         * sentinel-frame.h, sentinel-frame.c: New files.
3442         * Makefile.in (frame.o): Update dependencies.
3443         (SFILES): Add sentinel-frame.c.
3444         (sentinel_frame_h): Define.
3445         (COMMON_OBS): Add sentinel-frame.o.
3446         (sentinel-frame.o): Specify dependencies.
3447         * frame.c: Include "sentinel-frame.h".
3448         (frame_register_unwind): Rewrite assuming that there is always a a
3449         ->next frame.
3450         (frame_register, generic_unwind_get_saved_register): Ditto.
3451         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
3452         (create_sentinel_frame, unwind_to_current_frame): New functions.
3453         (get_current_frame): Rewrite using create_sentinel_frame and
3454         unwind_to_current_frame.  When possible, always create a frame.
3455         (create_new_frame): Set next to the sentinel frame.
3456         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
3457         (deprecated_update_frame_pc_hack): Update the next frame's PC and
3458         ID cache when necessary.
3459         (frame_saved_regs_id_unwind): Use frame_relative_level.
3460         (deprecated_generic_get_saved_register): Use frame_relative_level,
3461         get_frame_saved_regs, get_frame_pc, get_frame_base and
3462         get_next_frame.
3463         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
3464         frame_register.
3465
3466 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
3467
3468         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
3469
3470 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
3471
3472         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
3473         (maintenance_set_profile_cmd): Use error () instead of warning ().
3474
3475 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
3476
3477         * configure.in: Check that -pg works if using --enable-profiling.
3478         Check for monstartup and _mcleanup regardless of --enable-profiling.
3479         * maint.c: Check for monstartup and _mcleanup before using them.
3480         * config.in: Regenerated.
3481         * configure: Regenerated.
3482
3483 2003-01-24  Nick Clifton  <nickc@redhat.com>
3484
3485         * Add sh2e support:
3486
3487         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
3488
3489                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
3490                 (sh2e_show_regs): New.
3491                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
3492                 * config/sh/tm-sh.h: Added sh2e to comments.
3493
3494 2003-01-23  Jim Blandy  <jimb@redhat.com>
3495
3496         * symfile.c (syms_from_objfile): Don't print the "(no debugging
3497         symbols found)" message here; we haven't checked for a separate
3498         debug info file yet, so we don't know yet.
3499         (symbol_file_add_with_addrs_or_offsets): Print it here, after
3500         we've looked everywhere.  Also, there's no need to print a special
3501         message when we're loading the separate debug info file: the one
3502         symbol_file_add prints is fine.
3503
3504 2003-01-23  Alexander Larsson <alexl@redhat.com>
3505             Jim Blandy  <jimb@redhat.com>
3506
3507         Add support for executables whose debug info has been separated
3508         out into a separate file, leaving only a link behind.
3509         * objfiles.h (struct objfile): New fields: separate_debug_objfile
3510         and separate_debug_objfile_backlink.
3511         (put_objfile_before): New declaration.
3512         * symfile.c: #include "filenames.h".
3513         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
3514         debug info in a separate file, read that, too. Save the addrs
3515         argument, so we can use it again to read the separated debug info;
3516         syms_from_objfile modifies the table we pass it.
3517         (reread_symbols): After re-reading an objfile, call
3518         reread_separate_symbols to refresh its separate debug info
3519         objfile, if it has one.
3520         (reread_separate_symbols, find_separate_debug_file,
3521         get_debug_link_info, separate_debug_file_exists): New functions.
3522         (debug_file_directory): New global var.
3523         (_initialize_symfile): Initialize debug_file_directory, and
3524         provide the new `set debug-file-directory' command to let the user
3525         change it.
3526         * objfiles.c (free_objfile): If this objfile has its debug info in
3527         a separate objfile, free that one too.  If this is itself a
3528         separate debug info objfile, clear our parent's backlink.
3529         (put_objfile_before): New function.
3530         * utils.c (gnu_debuglink_crc32): New function.
3531         * defs.h (gnu_debuglink_crc32): New declaration.
3532         * Makefile.in (symfile.o): Note dependency on "filenames.h".
3533         * configure.in: Handle --with-separate-debug-dir config option.
3534         * acinclude.m4 (AC_DEFINE_DIR): New macro.
3535         * acconfig.h (DEBUGDIR): New macro.
3536         * configure, aclocal.m4, config.in: Regenerated.
3537
3538 2003-01-22  Jim Blandy  <jimb@redhat.com>
3539
3540         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
3541         like the old symbol_file_add, but taking new arguments: you can
3542         now pass in either a `struct section_addr_info' list to say where
3543         each section is loaded, or a `struct section_offsets' table.  Pass
3544         these new arguments through to syms_from_objfile as appropriate.
3545         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets, 
3546         with the appropriate quiescent values for the new arguments.
3547
3548         * symfile.c: #include "gdb_assert.h".
3549         (syms_from_objfile): Add the ability to pass in a section offset
3550         table directly, as an alternative to the section_addr_info table.
3551         Document arguments better.
3552         (symbol_file_add): Pass extra arguments to syms_from_objfile.
3553         * symfile.h (syms_from_objfile): Update declaration.
3554         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
3555         syms_from_objfile.
3556         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
3557
3558 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
3559
3560         Original patch by Tom Tromey <tromey@cygnus.com> and
3561         Jason Molenda <jmolenda@apple.com>.
3562         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
3563         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
3564         * NEWS: Mention profiling.
3565         * configure.in (--enable-gdbtk): Fix typo.
3566         (--enable-profiling): New.  Set PROFILE_CFLAGS.
3567         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
3568         Fill in function.
3569         (profiling_state): New variable.
3570         (mcleanup_wrapper): New function.
3571         (_initialize_maint): Remove NOTYET, fix call to
3572         add_setshow_boolean_cmd for "maint set profile".
3573         * configure: Regenerated.
3574
3575 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
3576
3577         * Makefile.in (install-gdbtk): Install PNG images too.
3578
3579 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
3580
3581         * exec.c (text_start): Delete global variable.
3582         (exec_file_attach): Make text_start local to the function.
3583         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
3584         * valops.c (hand_function_call): Delete code that handles
3585         BEFORE_TEXT_END and AFTER_TEXT_END.
3586         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
3587         of CALL_DUMMY_LOCATION.
3588         * gdbarch.c: Regenerate.
3589         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
3590         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
3591         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
3592         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
3593         (text_end): Delete extern declaration.
3594
3595 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
3596
3597         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
3598         * blockframe.c (backtrace_below_main): Move to "frame.c".
3599         (frame_chain_valid): Delete check for backtrace_below_main.
3600         (_initialize_blockframe): Delete initialization, move ``set
3601         backtrace-below-main'' command to "frame.c".
3602         (do_flush_frames_sfunc): Delete function.
3603         * frame.c: Include "command.h" and "gdbcmd.h".
3604         (frame_type_from_pc): New function.
3605         (create_new_frame): Use frame_type_from_pc.
3606         (legacy_get_prev_frame): New function.
3607         (get_prev_frame): Rewrite.  When an old style frame, call
3608         legacy_get_prev_frame.  Otherwize, unwind the PC first.
3609         (_initialize_frame): Add ``set backtrace-below-main'' command.
3610         * Makefile.in (frame.o): Update dependencies.
3611
3612 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
3613
3614         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
3615         DEPRECATED_REGISTERS_INFO.
3616
3617 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
3618
3619         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
3620         Maintainers'.  Update `Various Maintainers'.
3621
3622 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
3623
3624         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
3625         * gdbarch.sh (POP_FRAME): Change to function with predicate.
3626         Suppress actual parameters when `-'.
3627         * gdbarch.h, gdbarch.c: Regenerate.
3628
3629 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
3630
3631         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
3632         code handling dummy frames.
3633
3634 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
3635
3636         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
3637         (struct frame_unwind): Add field pop.
3638         * frame.h (frame_pop): Declare.
3639         * frame.c (frame_saved_regs_pop): New function.
3640         (trad_frame_unwinder): Add frame_saved_regs_pop.
3641         (frame_pop): New function.
3642         * dummy-frame.c (dummy_frame_pop): New function.
3643         (discard_innermost_dummy): New function.
3644         (generic_pop_dummy_frame): Use discard_innermost_dummy.
3645         (dummy_frame_unwind): Add dummy_frame_pop.
3646         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
3647         * valops.c (hand_function_call): Ditto.
3648         * stack.c (return_command): Ditto.
3649
3650 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
3651
3652         * cris-tdep.c: Fix function declaration indentation.
3653         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
3654         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
3655         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
3656         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
3657         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
3658         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
3659
3660 2003-01-18  Michael Chastain  <mec@shout.net>
3661
3662         * README (Unpacking and Installation -- quick overview):
3663         Warn against ".../gdb-5.3/gdb/configure".
3664
3665 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
3666
3667         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
3668         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3669         (struct frame_unwind): Declare opaque.
3670         (dummy_frame_p): Declare function.
3671         * dummy-frame.c (dummy_frame_id_unwind): Make static.
3672         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3673         * dummy-frame.c: Include "frame-unwind.h".
3674         (dummy_frame_p): New function.
3675         (dummy_frame_unwind): New variable.
3676         * frame.c: Include "frame-unwind.h".
3677         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
3678         to use the new unwind field.
3679         (set_unwind_by_pc): Delete function.
3680         (create_new_frame, get_prev_frame): Set unwind field using
3681         frame_unwind_find_by_pc.
3682         (trad_frame_unwind, trad_frame_unwinder): New variables.
3683         * frame.h (trad_frame_unwind): Declare variable.
3684         (frame_id_unwind_ftype): Delete declaration.
3685         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
3686         (struct frame_unwind): Declare opaque.
3687         (struct frame_info): Replace the fields id_unwind, pc_unwind and
3688         register_unwind with a single unwind pointer.
3689         * frame-unwind.h, frame-unwind.c: New files.
3690         * Makefile.in (SFILES): Add frame-unwind.c.
3691         (frame_unwind_h): Define.
3692         (COMMON_OBS): Add frame-unwind.o.
3693         (frame-unwind.o): Specify dependencies.
3694         (frame.o, dummy-frame.o): Update dependencies.
3695         
3696 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
3697
3698         * ada-valprint.c: Eliminate PTR.
3699         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
3700         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
3701         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
3702         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
3703         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
3704         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
3705         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
3706         
3707 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
3708
3709         * main.c (captured_main): Don't use PTR.
3710         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
3711         * gdbtypes.c (lookup_primitive_typename): Ditto.
3712         (lookup_struct_elt_type): Ditto.
3713         * f-valprint.c (info_common_command): Ditto.
3714         (list_all_visible_commons): Ditto.
3715         * jv-typeprint.c (java_type_print_base): Ditto.
3716
3717         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
3718         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
3719         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
3720         i386-interix-nat.c and i386-interix-tdep.c.  Rename
3721         m68klinux-nat.c and m68klinux-tdep.c.  Rename
3722         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
3723         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
3724         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
3725         * main.c (captured_main): Use xfree, not free.
3726
3727 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
3728
3729         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
3730         ID back using a parameter.
3731         * frame.c (frame_id_unwind): Update call.
3732         (frame_saved_regs_id_unwind): Update.
3733         * dummy-frame.c (dummy_frame_id_unwind): Update function.
3734         * dummy-frame.h (struct frame_id): Add opaque declaration.
3735         (dummy_frame_id_unwind): Update declaration.
3736
3737 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
3738
3739         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
3740
3741 2003-01-15  Stephen P. Smith <ischis2@cox.net>
3742
3743         * MAINTAINERS (Stephen P. Smith): Updated email address.
3744
3745 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
3746
3747         Fix PR gdb/898
3748         * breakpoint.c (until_break_command): Add new argument.  Use it to
3749         decide whether to stop only at the current frame or not.
3750         * breakpoint.h (until_break_command): Update prototype.
3751         * infcmd.c (until_command): Add new argument to until_break_command
3752         call.
3753         (advance_command): New function.
3754         (_initialize_infcmd): Update help string for 'until' command.
3755         Add new 'advance' command.
3756
3757 2003-01-14  David Carlton  <carlton@math.stanford.edu>
3758
3759         * linespec.c (decode_line_1): Normalize comments.
3760         (set_flags): Ditto.
3761         (locate_first_half): Ditto.
3762         (decode_compound): Ditto.
3763         (symtab_from_filename): Ditto.
3764         (decode_all_digits): Ditto.
3765         (decode_dollar): Ditto.
3766         (find_methods): Ditto.
3767         (find_toplevel_char): Ditto.
3768
3769 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
3770
3771         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
3772         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
3773         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
3774         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
3775         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
3776         * language.c, language.h, m32r-tdep.c: Update copyright.
3777         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
3778         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
3779         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
3780         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
3781         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
3782         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
3783
3784 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
3785
3786         * stabsread.h (process_later, resolve_cfront_continuation):
3787         Obsolete.
3788         Update copyright years.
3789         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
3790         Update copyright year.
3791         * dbxread.c(struct cont_elem): Obsolete.
3792         (process_later, process_now): Obsolete functions. 
3793         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
3794         Update copyright year.
3795         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
3796         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
3797         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
3798         (parse_partial_symbols): Obsolete cfront support.
3799         * stabsread.c
3800         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
3801         macros.
3802         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
3803         read_cfront_baseclasses, read_cfront_member_functions,
3804         resolve_cfront_continuation,read_cfront_static_fields,
3805         copy_cfront_struct_fields): Obsolete functions.
3806         (define_symbol, read_one_struct_field): Obsolete cfront support.
3807         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
3808         Update Copyright year.
3809
3810 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
3811
3812         * stack.c (print_frame_info, print_stack_frame_base_stub,
3813         print_stack_frame_base, show_and_print_stack_frame_stub,
3814         show_and_print_stack_frame, print_only_stack_frame_stub,
3815         print_only_stack_frame): Delete functions.
3816         (print_stack_frame_stub): Call print_frame_info instead of
3817         print_frame_info_base.
3818         (print_frame_info_base): Rename to print_frame_info.
3819         (backtrace_command_1): Call print_frame_info, instead of
3820         print_frame_info_base.
3821         (current_frame_command): Call print_stack_frame, instead of
3822         print_only_stack_frame.
3823         (frame_command): Call print_stack_frame, instead of
3824         show_and_print_stack_frame.
3825         (up_command): Ditto.
3826         (down_command): Ditto.
3827         * frame.h (print_only_stack_frame): Delete prototype.
3828         * infrun.c (normal_stop): Call print_stack_frame, instead of
3829         show_and_print_stack_frame.
3830         * thread.c (info_threads_command): Call print_stack_frame, instead
3831         of print_only_stack_frame.
3832
3833 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
3834
3835         * README (Graphical interface to GDB): Update URL.  Point at
3836         gdb/links/.
3837
3838         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
3839         version match.
3840
3841 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
3842
3843         * symtab.c (find_pc_sect_line): Don't consider end-of-function
3844         lines.
3845
3846 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
3847
3848         * thread-db.c (attach_thread): Prototype.
3849         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
3850         thread information (ti), and valid flags (th_valid, ti_valid).
3851         (attach_thread): Move target_pid_to_str call to after the thread
3852         is added to GDB's list.  Initialize the cache.
3853         (thread_get_info_callback, thread_db_map_id2thr)
3854         (thread_db_get_info): New functions.
3855         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
3856         (thread_db_store_registers, thread_db_thread_alive)
3857         (thread_db_get_thread_local_address): Use them.
3858         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
3859         of calling error() for threads in unknown state.
3860
3861         (clear_lwpid_callback): New function.
3862         (thread_db_resume): Use it to clear the cache.
3863
3864 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
3865
3866         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
3867         (resume_callback): Remove dead code.
3868
3869 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
3870
3871         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
3872         predicate.
3873         * gdbarch.h, gdbarch.c: Regenerate.
3874         * stack.c (frame_info): Only initialize the saved registers when
3875         FRAME_INIT_SAVED_REGS_P.
3876         * frame.c (frame_saved_regs_register_unwind): Assert
3877         FRAME_INIT_SAVED_REGS_P.
3878         (deprecated_generic_get_saved_register): Ditto.
3879
3880 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
3881
3882         * source.c (openp): Squelch warning about "filename".
3883
3884 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
3885
3886         * source.c (openp): If the file does not exist don't necessarily
3887         search the path.
3888
3889 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
3890
3891         Fix PR gdb/872.
3892         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
3893         (integer_types_same_name_p): New function.
3894         (rank_one_type): Use it.
3895         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
3896
3897 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
3898
3899         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
3900         variables.
3901         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
3902         * configure.in: Add --with-sysroot.
3903         * configure: Regenerated.
3904         * main.c (gdb_sysroot): New variable.
3905         (captured_main): Initialize gdb_sysroot.
3906         * defs.h (gdb_sysroot): New extern declaration.
3907         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
3908
3909 2003-01-12  Michael Chastain  <mec@shout.net>
3910
3911         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
3912
3913 2003-01-12  Michael Chastain  <mec@shout.net>
3914
3915         * top.c (print_gdb_version): Bump copyright year to 2003.
3916
3917 2003-01-12  David Carlton  <carlton@bactrian.org>
3918
3919         * linespec.c (symtab_from_filename): Rename variable 's' to
3920         'file_symtab'.
3921
3922 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
3923
3924         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
3925         dummy frame.
3926         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
3927
3928 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
3929
3930         * d10v-tdep.c: Include "gdb_assert.h".
3931         (d10v_store_return_value): Rewrite to match current interface.
3932         (d10v_extract_struct_value_address): Ditto.
3933         (d10v_extract_return_value): Ditto.
3934         (d10v_gdbarch_init): Set store_restore_value,
3935         extract_struct_value_address and extract_return_value.
3936
3937 2003-01-12  J. Brobecker  <brobecker@gnat.com>
3938
3939         * hpread.c (set_namestring): New procedure replacing the
3940         SET_NAMESTRING macro.
3941         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
3942         by calls to set_namestring.
3943
3944 2003-01-11  J. Brobecker  <brobecker@gnat.com>
3945
3946         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
3947         a compilation warning.
3948         (hpread_process_one_debug_symbol): Likewise.
3949
3950 2003-01-10  David Carlton  <carlton@math.stanford.edu>
3951
3952         * linespec.c (decode_line_1): Rename variable 's' to
3953         'file_symtab'.
3954         (decode_all_digits): Rename argument 's' to 'file_symtab'.
3955         (decode_dollar): Ditto.
3956         (decode_variable): Ditto.
3957         (symbol_found): Ditto.
3958
3959 2003-01-09  Michael Chastain  <mec@shout.net>
3960
3961         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
3962
3963 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
3964
3965         * win32-nat.c (set_process_privilege): New function.
3966         (child_attach): Call set_process_privilege() to enable the
3967         SE_DEBUG_NAME user privilege if available in process token.
3968
3969 2003-01-10  J. Brobecker  <brobecker@gnat.com>
3970
3971         * hpread.c (hpread_process_one_debug_symbol): Fix a small
3972         compilation error in the previous revision.
3973
3974 2003-01-09  David Carlton  <carlton@math.stanford.edu>
3975
3976         * linespec.c: Update copyright.
3977
3978 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
3979
3980         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
3981         than inferior_ptid.
3982         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
3983
3984 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
3985
3986         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
3987         Update comments.
3988         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
3989         (frame_saved_regs_zalloc): Update.
3990         (frame_saved_regs_register_unwind): Update.
3991         (create_new_frame): Update.
3992         (get_prev_frame): Update.
3993         (frame_extra_info_zalloc): Update.
3994         (deprecated_get_frame_saved_regs): Update.
3995         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
3996         * cris-tdep.c: Update comment.
3997
3998         * somsolib.h: Fix function indentation.
3999         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
4000         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
4001         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
4002         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
4003         * somsolib.c, inftarg.c: Remove assignment in if conditional.
4004
4005         * infrun.c (follow_fork): Use ISO C definition.
4006         * expprint.c (print_subexp): Use xfree instead of free.
4007         * charset.c: Include "gdb_string.h" instead of <string.h>.
4008         (register_iconv_charsets): Use ISO C definition.
4009         (host_charset, target_charset): Ditto.
4010         * Makefile.in (charset.o): Update dependencies.
4011         (mi-cmd-env.o): Update dependencies.
4012
4013 2003-01-08  Andrew Cagney  <cagney@redhat.com>
4014
4015         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
4016         get_frame_base.
4017
4018 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
4019
4020         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
4021         build directories.  Save edited gdb output in Mbuild.log.  If a
4022         build fails, remove any final GDB executable.
4023
4024 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
4025
4026         * gdb_mbuild.sh: Edit the output of `maint print architecture'
4027         replacing hex constants with function names and stripping leading
4028         file name directory prefixes.
4029
4030 2003-01-08  Andrew Cagney  <cagney@redhat.com>
4031
4032         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
4033         get_frame_base.
4034
4035 2003-01-08  David Carlton  <carlton@math.stanford.edu>
4036
4037         * linespec.c (decode_line_1): Move code into decode_variable.
4038         (decode_variable): New function.
4039
4040 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
4041
4042         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
4043
4044 2003-01-08  Andrew Cagney  <cagney@redhat.com>
4045
4046         * cris-tdep.c (cris_frame_init_saved_regs): Use
4047         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
4048         saved_regs buffer.
4049         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
4050         (sh64_nofp_frame_init_saved_regs): Ditto.
4051         (sh_fp_frame_init_saved_regs): Ditto.
4052         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
4053         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
4054         * mcore-tdep.c (analyze_dummy_frame): Ditto.
4055         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4056
4057 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
4058
4059         * minsyms.c (lookup_minimal_symbol): Update comment.
4060         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
4061         (lookup_minimal_symbol_solib_trampoline): Likewise.
4062
4063 2003-01-08  Andrew Cagney  <cagney@redhat.com>
4064
4065         * d10v-tdep.c (d10v_init_extra_frame_info): Use
4066         frame_relative_level.
4067
4068         * alpha-tdep.c: Use get_frame_extra_info.
4069         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4070         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
4071         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
4072         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
4073
4074         * alpha-tdep.c: Use get_next_frame.
4075         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4076         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
4077         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
4078         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
4079         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
4080         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
4081         * xstormy16-tdep.c: Ditto.
4082         
4083 2003-01-07  Andrew Cagney  <cagney@redhat.com>
4084
4085         * alpha-tdep.c: Use get_frame_base.
4086         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4087         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
4088         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
4089         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
4090         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
4091         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
4092         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
4093         * config/sparc/tm-sparc.h: Ditto.
4094         
4095 2003-01-07  Andrew Cagney  <cagney@redhat.com>
4096
4097         * frame.c (deprecated_get_frame_context): New function.
4098         (deprecated_set_frame_context): New function.
4099         * frame.h (deprecated_get_frame_context): Declare.
4100         (deprecated_set_frame_context): Declare.
4101         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
4102         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
4103         
4104 2003-01-07  Andrew Cagney  <cagney@redhat.com>
4105
4106         * frame.c (deprecated_set_frame_next_hack): New function.
4107         (deprecated_set_frame_prev_hack): New function.
4108         * frame.h (deprecated_set_frame_next_hack): Declare.
4109         (deprecated_set_frame_prev_hack): Declare.
4110         * mcore-tdep.c (analyze_dummy_frame): Use
4111         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
4112         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4113
4114 2003-01-07  David Carlton  <carlton@math.stanford.edu>
4115
4116         * linespec.c (decode_line_1): Move code into decode_dollar.
4117         (decode_dollar): New function.
4118
4119 2003-01-07  Andrew Cagney  <cagney@redhat.com>
4120
4121         * arm-tdep.c (arm_init_extra_frame_info): Use
4122         deprecated_update_frame_base_hack.
4123         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
4124         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4125         (fix_frame_pointer): Ditto.
4126         (mn10300_analyze_prologue): Ditto.
4127
4128 2003-01-07  Andrew Cagney  <cagney@redhat.com>
4129
4130         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
4131         extra_info using frame_extra_info_zalloc.
4132         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4133         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
4134         (sh64_init_extra_frame_info): Ditto.
4135         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
4136         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
4137         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
4138         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
4139         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
4140         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
4141         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
4142         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
4143         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
4144         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
4145         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
4146         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
4147
4148         * mn10300-tdep.c (analyze_dummy_frame): Use
4149         deprecated_set_frame_extra_info_hack.
4150         * mcore-tdep.c (analyze_dummy_frame): Ditto.
4151
4152 2003-01-07  J. Brobecker  <brobecker@gnat.com>
4153
4154         * mdebugread.c (parse_symbol): Skip stProc entries which storage
4155         class is not scText. These do not define "real" procedures.
4156         (parse_partial_symbols): Likewise.
4157
4158 2003-01-06  Michael Snyder  <msnyder@redhat.com>
4159
4160         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
4161
4162 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
4163
4164         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
4165         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
4166         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
4167         deprecated_frame_xmalloc_with_cleanup.
4168         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
4169         deprecated_frame_xmalloc.
4170         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
4171         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
4172
4173 2003-01-06  Andrew Cagney  <cagney@redhat.com>
4174
4175         * x86-64-linux-tdep.c: Include "osabi.h".
4176         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
4177
4178         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
4179
4180 2003-01-06  Andrew Cagney  <cagney@redhat.com>
4181
4182         * MAINTAINERS (Target Instruction Set Architectures): Update
4183         arm-elf.  Can be built with -Werror, has been multiarched.
4184
4185         * value.h (unpack_long): Make buffer parameter constant.
4186         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
4187         * scm-lang.h (scm_parse): Ditto.
4188         * defs.h (extract_typed_address, extract_address): Ditto.
4189         (extract_long_unsigned_integer): Ditto.
4190         * inferior.h (unsigned_pointer_to_address): Ditto.
4191         (signed_pointer_to_address): Ditto.
4192         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
4193         * gdbarch.h, gdbarch.c: Regenerate.
4194         * findvar.c (extract_long_unsigned_integer): Update.
4195         (extract_address): Update.
4196         (extract_typed_address): Update.
4197         (unsigned_pointer_to_address): Update.
4198         * values.c (unpack_long): Update.
4199         (unpack_double): Update.
4200         (unpack_pointer): Update.
4201         (unpack_field_as_long): Update.
4202         * d10v-tdep.c (d10v_pointer_to_address): Update.
4203         * avr-tdep.c (avr_pointer_to_address): Update.
4204         * scm-lang.c (scm_unpack): Update.
4205         * findvar.c (signed_pointer_to_address): Update.
4206
4207 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
4208
4209         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore 
4210         since it is in i386-tdep.c.
4211
4212 2003-01-06  J. Brobecker  <brobecker@gnat.com>
4213
4214         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
4215         failure introduced in the previous change.
4216
4217 2003-01-05  Michael Chastain  <mec@shout.net>
4218
4219         * README: Remove references to deleted remote-*.c files:
4220         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
4221         remote-nrom.c, remote-os9k.c, remote-udi.c.
4222
4223 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
4224
4225         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
4226         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
4227         i386_get_longjmp_target.
4228
4229 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
4230
4231         * arm-tdep.c (prologue_cache): Change to a pointer.
4232         (_initialize_arm_tdep): Allocate prologue_cache.
4233         (check_prologue_cache): Update.
4234         (save_prologue_cache): Update.
4235         (arm_gdbarch_init): Update.
4236
4237 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
4238
4239         * stabsread.c (update_method_name_from_physname): Call complaint()
4240         instead of error.
4241
4242 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
4243
4244         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
4245         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
4246         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
4247
4248         * blockframe.c: Include "gdbcmd.h" and "command.h".
4249         (backtrace_below_main): New variable.
4250         (file_frame_chain_valid, func_frame_chain_valid)
4251         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
4252         (generic_func_frame_chain_valid): Remove functions.
4253         (frame_chain_valid, do_flush_frames_sfunc): New functions.
4254         (_initialize_blockframe): New function.
4255         * Makefile.in (blockframe.o): Update dependencies.
4256         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
4257         comment.  Call frame_chain_valid ().
4258         * frame.h: Remove old prototypes.  Add prototype for
4259         frame_chain_valid and update comments to match.
4260         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
4261         Remove old comment.
4262         * gdbarch.h: Regenerated.
4263         * gdbarch.c: Regenerated.
4264
4265         * alpha-tdep.c (alpha_gdbarch_init): Don't call
4266         set_gdbarch_frame_chain_valid.
4267         * avr-tdep.c (avr_gdbarch_init): Likewise.
4268         * cris-tdep.c (cris_gdbarch_init): Likewise.
4269         * frv-tdep.c (frv_gdbarch_init): Likewise.
4270         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4271         * i386-tdep.c (i386_svr4_init_abi): Likewise.
4272         (i386_nw_init_abi): Likewise.
4273         (i386_gdbarch_init): Likewise.
4274         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4275         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4276         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4277         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
4278         * mips-tdep.c (mips_gdbarch_init): Likewise.
4279         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4280         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
4281         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
4282         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4283         * s390-tdep.c (s390_gdbarch_init): Likewise.
4284         * sh-tdep.c (sh_gdbarch_init): Likewise.
4285         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4286         * v850-tdep.c (v850_gdbarch_init): Likewise.
4287         * vax-tdep.c (vax_gdbarch_init): Likewise.
4288         * x86-64-tdep.c (x86_64_init_abi): Likewise.
4289
4290         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
4291         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
4292         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
4293         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
4294         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
4295         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
4296         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
4297         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
4298
4299 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
4300
4301         * Makefile.in (acconfig_h): Remove incorrect macro.
4302         (config_h): Define.
4303         (osabi.o): Update dependencies.
4304         * configure.tgt: Set gdb_osabi based on target triplet.
4305         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
4306         * configure: Regenerated.
4307         * config.in: Regenerated.
4308         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
4309         (GDB_OSABI_DEFAULT): Define if not already defined.
4310         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
4311         (set_osabi_string): New variables.
4312         (gdbarch_register_osabi): Add new OS ABI to
4313         gdb_osabi_available_names.
4314         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
4315         (set_osabi, show_osabi): New functions.
4316         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
4317
4318 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
4319
4320         * arch-utils.c (gdbarch_info_init): Set osabi to
4321         GDB_OSABI_UNINITIALIZED.
4322         * gdbarch.sh: Add osabi to struct gdbarch and to struct
4323         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
4324         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
4325         * gdbarch.c: Regenerated.
4326         * gdbarch.h: Regenerated.
4327         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
4328         there's no BFD.
4329         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
4330         * osabi.h (enum gdb_osabi): Move to defs.h.
4331         (gdbarch_init_osabi): Update prototype.
4332         * defs.h (enum gdb_osabi): Moved here.
4333         * Makefile.in: Update dependencies.
4334
4335         * alpha-tdep.h: Don't include "osabi.h".
4336         (struct gdbarch_tdep): Remove osabi member.
4337         * alpha-tdep.c: Include "osabi.h".
4338         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
4339         iterate over arches.  Update call to gdbarch_init_osabi.
4340         (alpha_dump_tdep): Don't dump osabi.
4341         * alpha-linux-tdep.c: Include "osabi.h".
4342         * alpha-osf1-tdep.c: Include "osabi.h".
4343         * alphafbsd-tdep.c: Include "osabi.h".
4344         * alphanbsd-tdep.c: Include "osabi.h".
4345
4346         * arm-tdep.h: Don't include "osabi.h".
4347         (struct gdbarch_tdep): Remove osabi member.
4348         * arm-tdep.c: Include "osabi.h".
4349         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
4350         iterate over arches.  Update call to gdbarch_init_osabi.
4351         (arm_dump_tdep): Don't dump osabi.
4352         * arm-linux-tdep.c: Include "osabi.h".
4353         * armnbsd-tdep.c: Include "osabi.h".
4354
4355         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
4356         Update call to gdbarch_init_osabi.
4357
4358         * i386-tdep.h: Don't include "osabi.h".
4359         (struct gdbarch_tdep): Remove osabi member.
4360         * i386-tdep.c: Include "osabi.h".
4361         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
4362         iterate over arches.  Update call to gdbarch_init_osabi.
4363         (i386_dump_tdep): Don't dump osabi.
4364         * i386-linux-tdep.c: Include "osabi.h".
4365         * i386-sol2-tdep.c: Include "osabi.h".
4366         * i386bsd-tdep.c: Include "osabi.h".
4367         * i386gnu-tdep.c: Include "osabi.h".
4368         * i386ly-tdep.c: Include "osabi.h".
4369         * i386nbsd-tdep.c: Include "osabi.h".
4370         * i386obsd-tdep.c: Include "osabi.h".
4371
4372         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
4373         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
4374         check osabi when iterating over arches.  Update call to
4375         gdbarch_init_osabi.
4376         (mips_dump_tdep): Don't dump osabi.
4377
4378         * ns32k-tdep.h: Don't include "osabi.h".
4379         (struct gdbarch_tdep): Remove.
4380         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
4381         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
4382         allocate tdep.  Update call to gdbarch_init_osabi.
4383         (ns32k_dump_tdep): Remove.
4384         (_initialize_ns32k_tdep): Update call to gdbarch_register.
4385         * ns32knbsd-tdep.c: Include "osabi.h".
4386
4387         * ppc-tdep.h: Don't include "osabi.h".
4388         (struct gdbarch_tdep): Remove osabi member.
4389         * rs6000-tdep.c: Include "osabi.h".
4390         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
4391         osabi when iterating over arches.  Update call to
4392         gdbarch_init_osabi.
4393         (rs6000_dump_tdep): Don't dump osabi.
4394         * ppc-linux-tdep.c: Include "osabi.h".
4395         * ppcnbsd-tdep.c: Include "osabi.h".
4396
4397         * sh-tdep.h: Don't include "osabi.h".
4398         (struct gdbarch_tdep): Remove osabi member.
4399         * sh-tdep.c: Include "osabi.h".
4400         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
4401         iterate over arches.  Update call to gdbarch_init_osabi.
4402         (sh_dump_tdep): Don't dump osabi.
4403         * shnbsd-tdep.c: Include "osabi.h".
4404
4405         * sparc-tdep.c: Include "osabi.h".
4406         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
4407         iterate over arches.  Update call to gdbarch_init_osabi.
4408         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
4409         tdep structure.
4410
4411         * vax-tdep.h: Don't include "osabi.h".
4412         (struct gdbarch_tdep): Remove.
4413         * vax-tdep.c: Include "osabi.h".
4414         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
4415         iterate over arches.  Don't allocate tdep.  Update call
4416         to gdbarch_init_osabi.
4417         (vax_dump_tdep): Remove.
4418         (_initialize_vax_tdep): Update call to gdbarch_register.
4419
4420 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
4421
4422         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
4423         entirely.
4424         (breakpoint_re_set_one): Don't fetch the value for a disabled
4425         watchpoint.
4426
4427 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
4428
4429         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
4430         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
4431         (COERCE_FLOAT_TO_DOUBLE): Remove.
4432         * gdbarch.c: Regenerate.
4433         * gdbarch.h: Regenerate.
4434         * Makefile.in: Remove value_h from gdbarch_h.
4435         * valops.c (coerce_float_to_double): New variable.
4436         (default_coerce_float_to_double): Remove.
4437         (standard_coerce_float_to_double): Remove.
4438         (value_arg_coerce): Use coerce_float_to_double.
4439         (_initialize_valops): Add "set coerce-float-to-double".
4440         * value.h (default_coerce_float_to_double): Remove prototype.
4441         (standard_coerce_float_to_double): Remove prototype.
4442
4443         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
4444         prototyped.
4445         * mdebugread.c (parse_symbol): Likewise.
4446         * stabsread.c (define_symbol): Mark all functions as prototyped.
4447
4448         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
4449         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
4450         set_gdbarch_coerce_float_to_double.
4451         * arm-tdep.c (arm_gdbarch_init): Likewise.
4452         * frv-tdep.c (frv_gdbarch_init): Likewise.
4453         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
4454         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
4455         * mips-tdep.c (mips_gdbarch_init): Likewise.
4456         (mips_coerce_float_to_double): Remove.
4457         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4458         (rs6000_coerce_float_to_double): Remove.
4459         * s390-tdep.c (s390_gdbarch_init): Likewise.
4460         * sh-tdep.c (sh_gdbarch_init): Likewise.
4461         (sh_coerce_float_to_double): Remove.
4462         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4463         (sparc_coerce_float_to_double): Remove.
4464         * v850-tdep.c (v850_gdbarch_init): Likewise.
4465         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4466         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4467         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
4468         (hppa_coerce_float_to_double): Remove prototype.
4469         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4470
4471 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
4472
4473         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
4474
4475 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
4476
4477         Suggested by Stewart Brown <sb24@avaya.com>:
4478         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
4479         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
4480         (c_type_print_varspec_suffix): Likewise.
4481
4482 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
4483
4484         * configure.in: Don't set and AC_SUBST SUBDIRS.
4485         * configure: Regenerated.
4486
4487         * configure.in: Remove code dealing with shared libraries.
4488         * Makefile.in: Remove HLDFLAGS and HLDENV.
4489         * configure: Regenerated.
4490
4491 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
4492
4493         * frame.c (deprecated_frame_xmalloc): New function.
4494         (deprecated_set_frame_saved_regs_hack): New function.
4495         (deprecated_set_frame_extra_info_hack): New function.
4496         * frame.h (deprecated_frame_xmalloc): Declare.
4497         (deprecated_set_frame_saved_regs_hack): Declare.
4498         (deprecated_set_frame_extra_info_hack): Declare.
4499
4500 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
4501
4502         * configure.in: Move code that provides the --enable-gdbtk option
4503         right after the code that handles the --enable-tui option, and
4504         polish it somewhat.
4505         * configure: Regenerated.
4506
4507         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
4508         AC_CHECK_FUNCS and remove the old check for pread64.
4509         * acinclude.m4 (AC_GNU_SOURCE): New macro.
4510         * acconfig.h (_GNU_SOURCE): Add.
4511         (HAVE_PREAD64): Remove.
4512         * configure, aclocal.m4, config.in: Regenerated.
4513
4514 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
4515
4516         * alpha-tdep.c: Use get_frame_saved_regs.
4517         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4518         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
4519         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
4520         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
4521         * vax-tdep.c, xstormy16-tdep.c: Ditto.
4522
4523 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
4524
4525         * configure.in: Remove all use of the SUBDIRS variable; add
4526         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
4527         code providing the --enable-multi-ice option, and move it right in
4528         front of the code that checks whether gdbserver is supported.
4529         Polish that too.
4530         * configure: Regenerated.
4531         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
4532         @SUBDIRS@.
4533
4534 2003-01-03  Andrew Cagney  <cagney@redhat.com>
4535
4536         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
4537         * avr-tdep.c, cris-tdep.c: Ditto.
4538         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
4539         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4540         
4541 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
4542
4543         * configure.in: Remove --enable-netrom option.
4544         * configure: Regenerated.
4545
4546 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
4547
4548         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
4549         declaration for `struct re_pattern_buffer' instead.
4550         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
4551
4552 2003-01-03  J. Brobecker  <brobecker@gnat.com>
4553
4554         * mdebugread.c (parse_symbol): Count until the stEnd matching
4555         the structure name.
4556
4557 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
4558
4559         * configure.in: Remove --with-cpu option.
4560         subscripts.  Remove evil changequotes here.
4561         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
4562         * config.in, configure: Regenerated.
4563         
4564         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
4565         * configure.in: Cleanup section that sources GDB and BFD configure
4566         subscripts.  Remove evil changequotes here.
4567         * config.in, configure: Regenerated.
4568
4569 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
4570
4571         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
4572         frame accessor methods.
4573         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4574         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
4575         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
4576         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
4577         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4578         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
4579         * z8k-tdep.c: Ditto.
4580         
4581 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
4582
4583         * configure.in: Remove UI_OUT configuration code.
4584         * ada-lang.c: Update assuming UI_OUT is always true.
4585         * Makefile.in (UIOUT_CFLAGS): Remove.
4586         * configure: Regenerated.
4587         * TODO: Remove blurb about elimination of -DUI_OUT.
4588
4589         * configure.in: Move code that provides the --enable-gdbcli,
4590         --enable-gdbmi options right before the code that handles the
4591         --enable-tui option.  Polish a bit.
4592         * configure: Regenerated.
4593
4594         * configure.in: Rewrite check for GNU regex and the
4595         --without-included regex option, and move it into the "Checks for
4596         library functions" section.  This makes us use the system regex
4597         again by default on systems with version 2 of the GNU C library.
4598         This was apparently broken.
4599         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
4600         * acconfig.h (USE_INCLUDED_REGEX): Remove.
4601         * config.in, configure: Regenerated.
4602
4603         * configure.in: Move code that provides the --enable-tui option
4604         before the "Checks for libraries" section.  Polish the code
4605         somewhat and set need_curses to yes if we build the TUI.  Rewrite
4606         code that looks for a library providing termcap functionality to
4607         match more closely what's done in the Readline library, and move
4608         it into to the "Checks for libraries" section.
4609         * configure: Regenerated.
4610         * Makefile.in (TERMCAP): Remove variable.
4611         * config/i386/go32.mh (TERMCAP): Remove variable.
4612
4613 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
4614
4615         * MAINTAINERS: Mention gdb_mbuild.sh.
4616         * gdb_mbuild.sh: Rewrite.
4617
4618 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
4619
4620         * configure.in: Fix typo in last change.
4621         * config.in, configure: Regenerated.
4622
4623 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
4624
4625         * valarith.c (value_binop): Delete obsolete code and comments.
4626         * configure.host: Ditto.
4627         * buildsym.h (make_blockvector): Ditto.
4628         * buildsym.c (make_blockvector): Ditto.
4629         * defs.h (enum language): Ditto.
4630         (chill_demangle): Ditto.
4631         * elfread.c (elf_symtab_read): Ditto.
4632         * dwarfread.c (CHILL_PRODUCER): Ditto.
4633         (set_cu_language): Ditto.
4634         (handle_producer): Ditto.
4635         * expprint.c (print_subexp): Ditto.
4636         * gdbtypes.c (chill_varying_type): Ditto.
4637         * gdbtypes.h (builtin_type_chill_bool): Ditto.
4638         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
4639         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
4640         (chill_varying_type): Ditto.
4641         * language.h (_LANG_chill): Ditto.
4642         * language.c (binop_result_type, integral_type): Ditto.
4643         (character_type, string_type, structured_type): Ditto.
4644         (lang_bool_type, binop_type_check): Ditto.
4645         * stabsread.h (os9k_stabs): Ditto.
4646         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
4647         (define_symbol, read_type, read_struct_fields): Ditto.
4648         (read_array_type, read_enum_type, read_huge_number): Ditto.
4649         (read_range_type, start_stabs): Ditto.
4650         * symfile.c (init_filename_language_table): Ditto.
4651         (add_psymbol_with_dem_name_to_list): Ditto.
4652         * symtab.c (symbol_init_language_specific): Ditto.
4653         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
4654         * symtab.h (struct general_symbol_info): Ditto.
4655         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4656         * typeprint.c (typedef_print): Ditto.
4657         * utils.c (fprintf_symbol_filtered): Ditto.
4658         * valops.c (value_cast, search_struct_field, value_slice): Delete
4659         obsolete code.
4660         (varying_to_slice): Delete function.
4661         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
4662         (varying_to_slice): Delete declaration.
4663         * MAINTAINERS: Update.
4664
4665 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
4666
4667         * configure.in: Reorganize "Checks for library functions section"
4668         a bit.  Remove check for `btowc' and `isascii' functions.
4669         * configure: Regenerated.
4670
4671         * acconfig.h (_MSE_INT_H): Remove.
4672         * configure.in: Create "Checks for header files" section, and move
4673         appropriate tests there.  Don't check for objlist.h, wchar.h,
4674         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
4675         misdetection fix.  Also add "Checks for types", "Checks for
4676         compiler characteristics" and "Checks for library functions"
4677         sections.
4678         * config.in, configure: Regenerated.
4679
4680         * configure.in: Create "Checks for programs" section, and move
4681         appropriate tests there.
4682
4683 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
4684
4685         * configure.in: Create "Checks for libraries" section, and move
4686         appropriate tests there.  Cleanup check for wctype in libw.  Use
4687         AC_SEARCH_LIBS to see whether we need libsocket.
4688         * configure: Regenerated.
4689
4690 For older changes see ChangeLog-2002
4691 \f
4692 Local Variables:
4693 mode: change-log
4694 left-margin: 8
4695 fill-column: 74
4696 version-control: never
4697 End: