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