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