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